From a7a08ab0975385ae6136400ff4e589382bced535 Mon Sep 17 00:00:00 2001 From: harshrajat Date: Sat, 20 Jan 2024 05:41:54 +0400 Subject: [PATCH] Updates --- 1067.fe6170d9fed44f21.esm.js | 1 + 1331.2ae4073da754c55f.esm.js | 1 + 1557.0e1100dcc17aaed4.esm.js | 1 + 1597.dc85e3dc4654d1d7.esm.js | 1 + 190.cf636d2cc47b4e10.esm.js | 1 + 2071.7ee2e24de11bab89.esm.js | 1 + 2156.9d079842b723f75a.esm.js | 1 + 2422.23a03fcb8b094df6.esm.js | 1 + 2459.a7675ea34a1a95e3.esm.js | 1 + 2465.ca32db1e6f2be204.esm.js | 1 + 2751.a89f3392449ed30a.esm.js | 1 + 2788.cfa3ef2fa82b1b96.esm.js | 1 + 2907.a323ade730f1b9c9.esm.js | 1 + 3140.5c703870f628aca3.esm.js | 1 + 3158.a1317d19c59ab407.esm.js | 1 + 3173.2c238b5139b102ff.esm.js | 1 + 3323.a1e8729dc5dca75a.esm.js | 1 + 3355.9f31c0cefaaeedab.esm.js | 2 + 3355.9f31c0cefaaeedab.esm.js.LICENSE.txt | 29 + 3626.1790f8d71320dbc5.esm.js | 1 + 3rdpartylicenses.txt | 12302 ++++++++++++++++ 4469.f9212a3ea2d6c3c1.esm.js | 1 + 4567.0957307651e46ff5.esm.js | 1 + 4582.af172a18887555af.esm.js | 1 + 4656.b2fb24af5105e864.esm.js | 1 + 4783.90f55e76df46950b.esm.js | 1 + 4918.e856eae06761f0a8.esm.js | 1 + 5194.3f6b42ebfcec5db6.esm.js | 1 + 5207.519c94da46aef2f2.esm.js | 1 + 5287.8c601b3fcf5b22b1.esm.js | 1 + 5472.28581cf37798e7a7.esm.js | 1 + 5712.57e18a42301313bf.esm.js | 1 + 5926.751187af64f973dc.esm.js | 1 + 5930.6079fdf3d325dd4f.esm.js | 1 + 6050.7192c28b4a1d4ae8.esm.js | 2 + 6050.7192c28b4a1d4ae8.esm.js.LICENSE.txt | 20 + 6093.1580692781e95c5a.esm.js | 1 + 6112.67878eafcc019c48.esm.js | 1 + 6177.dd09b0c962864858.esm.js | 1 + 6251.c6da5bbce1099045.esm.js | 1 + 627.4b0e63d2a7f4e592.esm.js | 1 + 6306.6c194cef393d8633.esm.js | 1 + 6319.1416526bf44167a5.esm.js | 1 + 6498.3d213c67fa331852.esm.js | 1 + 69.c626fe60da82e4d3.esm.js | 1 + 6927.b915f577f122af9d.esm.js | 1 + 7005.62bd75fc90e00b5e.esm.js | 1 + 7039.bddc36de72efcb1a.esm.js | 1 + 7054.a6391950395546c1.esm.js | 1 + 7087.f0298b3043b93021.esm.js | 1 + 7417.faca252efadd2e7b.esm.js | 1 + 7579.1ba7e8761e462afe.esm.js | 1 + 763.3feb1ecc1cd499dc.esm.js | 1 + 7641.760b5b1606b1ae6a.esm.js | 1 + 7720.871b7be048b5d453.esm.js | 1 + 787.a8d54e18dae086f5.esm.js | 1 + 8294.792c2875870724b6.esm.js | 1 + 8445.b710d1bf99bbcd39.esm.js | 1 + 8513.7bf6976d991be68d.esm.js | 1 + 8588.b29882b8ef4a4fbe.esm.js | 1 + 8790.a6521ce6ce49dad3.esm.js | 1 + 8792.5bbbad64c9aa5db9.esm.js | 1 + 8858.f05232a1e1d2ba7b.esm.js | 2 + 8858.f05232a1e1d2ba7b.esm.js.LICENSE.txt | 8 + 886.ca636dfd1d01e1fa.esm.js | 1 + 9198.6eaf0bf1a27b91a4.esm.js | 1 + 9211.40061eeed645e7d7.esm.js | 1 + 931.88ffdc95aae970d1.esm.js | 1 + 9517.a6a819956d9ee215.esm.js | 1 + 9822.d0b1bdedd3ebc6f2.esm.js | 1 + Strawford-Black.3194ca21ffe535661a5b.woff | Bin 0 -> 22876 bytes Strawford-Black.731b3e7bcbab0a14cae2.ttf | Bin 0 -> 51800 bytes Strawford-Black.7b02fe002b857e4ee79f.woff2 | Bin 0 -> 16020 bytes Strawford-Black.f23f5335c6ff935d3f5e.eot | Bin 0 -> 52072 bytes Strawford-ExtraLight.14c21d8b22bafb7bd0e2.ttf | Bin 0 -> 52752 bytes Strawford-ExtraLight.2807c50e2850d16a355f.otf | Bin 0 -> 37392 bytes ...ford-ExtraLight.a28ae3a431235bd9abdf.woff2 | Bin 0 -> 16428 bytes Strawford-Light.7fd529ec2ea797467cfc.ttf | Bin 0 -> 52472 bytes Strawford-Light.86b3d47eed9587b43471.otf | Bin 0 -> 37216 bytes Strawford-Light.8c8c8fddb3d756eb3958.woff2 | Bin 0 -> 16400 bytes Strawford-Medium.63b993904c1a7d3fbd97.ttf | Bin 0 -> 52304 bytes Strawford-Medium.8628f32126c517c34404.woff2 | Bin 0 -> 16564 bytes Strawford-Medium.d7f54a5b9bab78a69d45.otf | Bin 0 -> 37364 bytes Strawford-Regular.619d728732757cfa6790.eot | Bin 0 -> 18707 bytes Strawford-Regular.6c54fdc3c8b274bde71f.ttf | Bin 0 -> 52436 bytes Strawford-Regular.d2e8a16541a2ad7c2a52.woff2 | Bin 0 -> 16128 bytes Strawford-Regular.d2fcd9f51d937079eddd.woff | Bin 0 -> 23116 bytes assets/dark.svg | 5 + assets/epnsLogo.png | Bin 0 -> 8773 bytes assets/light.svg | 27 + assets/pushLogo.svg | 49 + common.74e62dfb3c1e2da9.esm.js | 2 + common.74e62dfb3c1e2da9.esm.js.LICENSE.txt | 1 + favicon.ico | Bin 0 -> 15086 bytes index.html | 16 + main.d5268db37c9d70e9.esm.js | 2 + main.d5268db37c9d70e9.esm.js.LICENSE.txt | 198 + polyfills.b08964c1e26acb77.esm.js | 1 + pushLogo.7caf977.svg | 49 + runtime.c53f8791f08fe6f4.esm.js | 1 + 100 files changed, 12779 insertions(+) create mode 100644 1067.fe6170d9fed44f21.esm.js create mode 100644 1331.2ae4073da754c55f.esm.js create mode 100644 1557.0e1100dcc17aaed4.esm.js create mode 100644 1597.dc85e3dc4654d1d7.esm.js create mode 100644 190.cf636d2cc47b4e10.esm.js create mode 100644 2071.7ee2e24de11bab89.esm.js create mode 100644 2156.9d079842b723f75a.esm.js create mode 100644 2422.23a03fcb8b094df6.esm.js create mode 100644 2459.a7675ea34a1a95e3.esm.js create mode 100644 2465.ca32db1e6f2be204.esm.js create mode 100644 2751.a89f3392449ed30a.esm.js create mode 100644 2788.cfa3ef2fa82b1b96.esm.js create mode 100644 2907.a323ade730f1b9c9.esm.js create mode 100644 3140.5c703870f628aca3.esm.js create mode 100644 3158.a1317d19c59ab407.esm.js create mode 100644 3173.2c238b5139b102ff.esm.js create mode 100644 3323.a1e8729dc5dca75a.esm.js create mode 100644 3355.9f31c0cefaaeedab.esm.js create mode 100644 3355.9f31c0cefaaeedab.esm.js.LICENSE.txt create mode 100644 3626.1790f8d71320dbc5.esm.js create mode 100644 3rdpartylicenses.txt create mode 100644 4469.f9212a3ea2d6c3c1.esm.js create mode 100644 4567.0957307651e46ff5.esm.js create mode 100644 4582.af172a18887555af.esm.js create mode 100644 4656.b2fb24af5105e864.esm.js create mode 100644 4783.90f55e76df46950b.esm.js create mode 100644 4918.e856eae06761f0a8.esm.js create mode 100644 5194.3f6b42ebfcec5db6.esm.js create mode 100644 5207.519c94da46aef2f2.esm.js create mode 100644 5287.8c601b3fcf5b22b1.esm.js create mode 100644 5472.28581cf37798e7a7.esm.js create mode 100644 5712.57e18a42301313bf.esm.js create mode 100644 5926.751187af64f973dc.esm.js create mode 100644 5930.6079fdf3d325dd4f.esm.js create mode 100644 6050.7192c28b4a1d4ae8.esm.js create mode 100644 6050.7192c28b4a1d4ae8.esm.js.LICENSE.txt create mode 100644 6093.1580692781e95c5a.esm.js create mode 100644 6112.67878eafcc019c48.esm.js create mode 100644 6177.dd09b0c962864858.esm.js create mode 100644 6251.c6da5bbce1099045.esm.js create mode 100644 627.4b0e63d2a7f4e592.esm.js create mode 100644 6306.6c194cef393d8633.esm.js create mode 100644 6319.1416526bf44167a5.esm.js create mode 100644 6498.3d213c67fa331852.esm.js create mode 100644 69.c626fe60da82e4d3.esm.js create mode 100644 6927.b915f577f122af9d.esm.js create mode 100644 7005.62bd75fc90e00b5e.esm.js create mode 100644 7039.bddc36de72efcb1a.esm.js create mode 100644 7054.a6391950395546c1.esm.js create mode 100644 7087.f0298b3043b93021.esm.js create mode 100644 7417.faca252efadd2e7b.esm.js create mode 100644 7579.1ba7e8761e462afe.esm.js create mode 100644 763.3feb1ecc1cd499dc.esm.js create mode 100644 7641.760b5b1606b1ae6a.esm.js create mode 100644 7720.871b7be048b5d453.esm.js create mode 100644 787.a8d54e18dae086f5.esm.js create mode 100644 8294.792c2875870724b6.esm.js create mode 100644 8445.b710d1bf99bbcd39.esm.js create mode 100644 8513.7bf6976d991be68d.esm.js create mode 100644 8588.b29882b8ef4a4fbe.esm.js create mode 100644 8790.a6521ce6ce49dad3.esm.js create mode 100644 8792.5bbbad64c9aa5db9.esm.js create mode 100644 8858.f05232a1e1d2ba7b.esm.js create mode 100644 8858.f05232a1e1d2ba7b.esm.js.LICENSE.txt create mode 100644 886.ca636dfd1d01e1fa.esm.js create mode 100644 9198.6eaf0bf1a27b91a4.esm.js create mode 100644 9211.40061eeed645e7d7.esm.js create mode 100644 931.88ffdc95aae970d1.esm.js create mode 100644 9517.a6a819956d9ee215.esm.js create mode 100644 9822.d0b1bdedd3ebc6f2.esm.js create mode 100644 Strawford-Black.3194ca21ffe535661a5b.woff create mode 100644 Strawford-Black.731b3e7bcbab0a14cae2.ttf create mode 100644 Strawford-Black.7b02fe002b857e4ee79f.woff2 create mode 100644 Strawford-Black.f23f5335c6ff935d3f5e.eot create mode 100644 Strawford-ExtraLight.14c21d8b22bafb7bd0e2.ttf create mode 100644 Strawford-ExtraLight.2807c50e2850d16a355f.otf create mode 100644 Strawford-ExtraLight.a28ae3a431235bd9abdf.woff2 create mode 100644 Strawford-Light.7fd529ec2ea797467cfc.ttf create mode 100644 Strawford-Light.86b3d47eed9587b43471.otf create mode 100644 Strawford-Light.8c8c8fddb3d756eb3958.woff2 create mode 100644 Strawford-Medium.63b993904c1a7d3fbd97.ttf create mode 100644 Strawford-Medium.8628f32126c517c34404.woff2 create mode 100644 Strawford-Medium.d7f54a5b9bab78a69d45.otf create mode 100644 Strawford-Regular.619d728732757cfa6790.eot create mode 100644 Strawford-Regular.6c54fdc3c8b274bde71f.ttf create mode 100644 Strawford-Regular.d2e8a16541a2ad7c2a52.woff2 create mode 100644 Strawford-Regular.d2fcd9f51d937079eddd.woff create mode 100644 assets/dark.svg create mode 100644 assets/epnsLogo.png create mode 100644 assets/light.svg create mode 100644 assets/pushLogo.svg create mode 100644 common.74e62dfb3c1e2da9.esm.js create mode 100644 common.74e62dfb3c1e2da9.esm.js.LICENSE.txt create mode 100644 favicon.ico create mode 100644 index.html create mode 100644 main.d5268db37c9d70e9.esm.js create mode 100644 main.d5268db37c9d70e9.esm.js.LICENSE.txt create mode 100644 polyfills.b08964c1e26acb77.esm.js create mode 100644 pushLogo.7caf977.svg create mode 100644 runtime.c53f8791f08fe6f4.esm.js diff --git a/1067.fe6170d9fed44f21.esm.js b/1067.fe6170d9fed44f21.esm.js new file mode 100644 index 000000000..926fdbfca --- /dev/null +++ b/1067.fe6170d9fed44f21.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1067],{1067:(t,e,r)=>{r.r(e),r.d(e,{AlchemyProvider:()=>wt,AlchemyWebSocketProvider:()=>kt,BaseProvider:()=>z,CloudflareProvider:()=>yt,EtherscanProvider:()=>xt,FallbackProvider:()=>Ht,Formatter:()=>_,InfuraProvider:()=>Xt,InfuraWebSocketProvider:()=>Vt,IpcProvider:()=>Wt,JsonRpcBatchProvider:()=>Zt,JsonRpcProvider:()=>ot,JsonRpcSigner:()=>et,NodesmithProvider:()=>te,PocketProvider:()=>ne,Provider:()=>n.zt,Resolver:()=>F,StaticJsonRpcProvider:()=>pt,UrlJsonRpcProvider:()=>mt,Web3Provider:()=>ae,WebSocketProvider:()=>ut,getDefaultProvider:()=>ce,getNetwork:()=>o.H,isCommunityResourcable:()=>N,isCommunityResource:()=>E,showThrottleMessage:()=>P});var n=r(44609),o=r(23660),s=r(64455),i=r(12943),a=r(18334),l=r(36620),c=r(61790),u=r(94073),h=r(15477),d=r(35124),p=r(51125),m=r(89887),f=r.n(m),g=r(3114);const k="providers/5.5.0";var w=r(76384),b=r(29897),v=r(98399);const y=new g.Yd(k);class _{constructor(){y.checkNew(new.target,_),this.formats=this.getDefaultFormats()}getDefaultFormats(){const t={},e=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),o=this.data.bind(this),s=this.hash.bind(this),i=this.hex.bind(this),a=this.number.bind(this),l=this.type.bind(this);return t.transaction={hash:s,type:l,accessList:_.allowNull(this.accessList.bind(this),null),blockHash:_.allowNull(s,null),blockNumber:_.allowNull(a,null),transactionIndex:_.allowNull(a,null),confirmations:_.allowNull(a,null),from:e,gasPrice:_.allowNull(r),maxPriorityFeePerGas:_.allowNull(r),maxFeePerGas:_.allowNull(r),gasLimit:r,to:_.allowNull(e,null),value:r,nonce:a,data:o,r:_.allowNull(this.uint256),s:_.allowNull(this.uint256),v:_.allowNull(a),creates:_.allowNull(e,null),raw:_.allowNull(o)},t.transactionRequest={from:_.allowNull(e),nonce:_.allowNull(a),gasLimit:_.allowNull(r),gasPrice:_.allowNull(r),maxPriorityFeePerGas:_.allowNull(r),maxFeePerGas:_.allowNull(r),to:_.allowNull(e),value:_.allowNull(r),data:_.allowNull((t=>this.data(t,!0))),type:_.allowNull(a),accessList:_.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:a,blockNumber:a,transactionHash:s,address:e,topics:_.arrayOf(s),data:o,logIndex:a,blockHash:s},t.receipt={to:_.allowNull(this.address,null),from:_.allowNull(this.address,null),contractAddress:_.allowNull(e,null),transactionIndex:a,root:_.allowNull(i),gasUsed:r,logsBloom:_.allowNull(o),blockHash:s,transactionHash:s,logs:_.arrayOf(this.receiptLog.bind(this)),blockNumber:a,confirmations:_.allowNull(a,null),cumulativeGasUsed:r,effectiveGasPrice:_.allowNull(r),status:_.allowNull(a),type:l},t.block={hash:s,parentHash:s,number:a,timestamp:a,nonce:_.allowNull(i),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:e,extraData:o,transactions:_.allowNull(_.arrayOf(s)),baseFeePerGas:_.allowNull(r)},t.blockWithTransactions=(0,u.DC)(t.block),t.blockWithTransactions.transactions=_.allowNull(_.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:_.allowNull(n,void 0),toBlock:_.allowNull(n,void 0),blockHash:_.allowNull(s,void 0),address:_.allowNull(e,void 0),topics:_.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:_.allowNull(a),blockHash:_.allowNull(s),transactionIndex:a,removed:_.allowNull(this.boolean.bind(this)),address:e,data:_.allowFalsish(o,"0x"),topics:_.arrayOf(s),transactionHash:s,logIndex:a},t}accessList(t){return(0,b.z7)(t||[])}number(t){return"0x"===t?0:i.O$.from(t).toNumber()}type(t){return"0x"===t||null==t?0:i.O$.from(t).toNumber()}bigNumber(t){return i.O$.from(t)}boolean(t){if("boolean"==typeof t)return t;if("string"==typeof t){if("true"===(t=t.toLowerCase()))return!0;if("false"===t)return!1}throw new Error("invalid boolean - "+t)}hex(t,e){return"string"==typeof t&&(e||"0x"===t.substring(0,2)||(t="0x"+t),(0,a.A7)(t))?t.toLowerCase():y.throwArgumentError("invalid hash","value",t)}data(t,e){const r=this.hex(t,e);if(r.length%2!=0)throw new Error("invalid data; odd-length - "+t);return r}address(t){return(0,w.Kn)(t)}callAddress(t){if(!(0,a.A7)(t,32))return null;const e=(0,w.Kn)((0,a.p3)(t,12));return e===l.AddressZero?null:e}contractAddress(t){return(0,w.CR)(t)}blockTag(t){if(null==t)return"latest";if("earliest"===t)return"0x0";if("latest"===t||"pending"===t)return t;if("number"==typeof t||(0,a.A7)(t))return(0,a.$P)(t);throw new Error("invalid blockTag")}hash(t,e){const r=this.hex(t,e);return 32!==(0,a.E1)(r)?y.throwArgumentError("invalid hash","value",t):r}difficulty(t){if(null==t)return null;const e=i.O$.from(t);try{return e.toNumber()}catch(r){}return null}uint256(t){if(!(0,a.A7)(t))throw new Error("invalid uint256");return(0,a.$m)(t,32)}_block(t,e){null!=t.author&&null==t.miner&&(t.miner=t.author);const r=null!=t._difficulty?t._difficulty:t.difficulty,n=_.check(e,t);return n._difficulty=null==r?null:i.O$.from(r),n}block(t){return this._block(t,this.formats.block)}blockWithTransactions(t){return this._block(t,this.formats.blockWithTransactions)}transactionRequest(t){return _.check(this.formats.transactionRequest,t)}transactionResponse(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&i.O$.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),1!==t.type&&2!==t.type||null!=t.accessList||(t.accessList=[]);const e=_.check(this.formats.transaction,t);if(null!=t.chainId){let r=t.chainId;(0,a.A7)(r)&&(r=i.O$.from(r).toNumber()),e.chainId=r}else{let r=t.networkId;null==r&&null==e.v&&(r=t.chainId),(0,a.A7)(r)&&(r=i.O$.from(r).toNumber()),"number"!=typeof r&&null!=e.v&&(r=(e.v-35)/2,r<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),e.chainId=r}return e.blockHash&&"x"===e.blockHash.replace(/0/g,"")&&(e.blockHash=null),e}transaction(t){return(0,b.Qc)(t)}receiptLog(t){return _.check(this.formats.receiptLog,t)}receipt(t){const e=_.check(this.formats.receipt,t);if(null!=e.root)if(e.root.length<=4){const t=i.O$.from(e.root).toNumber();0===t||1===t?(null!=e.status&&e.status!==t&&y.throwArgumentError("alt-root-status/status mismatch","value",{root:e.root,status:e.status}),e.status=t,delete e.root):y.throwArgumentError("invalid alt-root-status","value.root",e.root)}else 66!==e.root.length&&y.throwArgumentError("invalid root hash","value.root",e.root);return null!=e.status&&(e.byzantium=!0),e}topics(t){return Array.isArray(t)?t.map((t=>this.topics(t))):null!=t?this.hash(t,!0):null}filter(t){return _.check(this.formats.filter,t)}filterLog(t){return _.check(this.formats.filterLog,t)}static check(t,e){const r={};for(const o in t)try{const n=t[o](e[o]);void 0!==n&&(r[o]=n)}catch(n){throw n.checkKey=o,n.checkValue=e[o],n}return r}static allowNull(t,e){return function(r){return null==r?e:t(r)}}static allowFalsish(t,e){return function(r){return r?t(r):e}}static arrayOf(t){return function(e){if(!Array.isArray(e))throw new Error("not an array");const r=[];return e.forEach((function(e){r.push(t(e))})),r}}}function N(t){return t&&"function"==typeof t.isCommunityResource}function E(t){return N(t)&&t.isCommunityResource()}let T=!1;function P(){T||(T=!0,v.log("========= NOTICE ========="),v.log("Request-Rate Exceeded (this message will not be repeated)"),v.log(""),v.log("The default API keys for each service are provided as a highly-throttled,"),v.log("community resource for low-traffic projects and early prototyping."),v.log(""),v.log("While your application will continue to function, we highly recommended"),v.log("signing up for your own API keys to improve performance, increase your"),v.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),v.log(""),v.log("For more details: https://docs.ethers.io/api-keys/"),v.log("=========================="))}var R=function(t,e,r,n){return new(r||(r=Promise))((function(o,s){function i(t){try{l(n.next(t))}catch(e){s(e)}}function a(t){try{l(n.throw(t))}catch(e){s(e)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,a)}l((n=n.apply(t,e||[])).next())}))};const A=new g.Yd(k);function I(t){return null==t?"null":(32!==(0,a.E1)(t)&&A.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function x(t){for(t=t.slice();t.length>0&&null==t[t.length-1];)t.pop();return t.map((t=>{if(Array.isArray(t)){const e={};t.forEach((t=>{e[I(t)]=!0}));const r=Object.keys(e);return r.sort(),r.join("|")}return I(t)})).join("&")}function O(t){if("string"==typeof t){if(t=t.toLowerCase(),32===(0,a.E1)(t))return"tx:"+t;if(-1===t.indexOf(":"))return t}else{if(Array.isArray(t))return"filter:*:"+x(t);if(n.Sg.isForkEvent(t))throw A.warn("not implemented"),new Error("not implemented");if(t&&"object"==typeof t)return"filter:"+(t.address||"*")+":"+x(t.topics||[])}throw new Error("invalid event - "+t)}function B(){return(new Date).getTime()}function S(t){return new Promise((e=>{setTimeout(e,t)}))}const C=["block","network","pending","poll"];class L{constructor(t,e,r){(0,u.zG)(this,"tag",t),(0,u.zG)(this,"listener",e),(0,u.zG)(this,"once",r)}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const t=this.tag.split(":");return"tx"!==t[0]?null:t[1]}get filter(){const t=this.tag.split(":");if("filter"!==t[0])return null;const e=t[1],r=""===(n=t[2])?[]:n.split(/&/g).map((t=>{if(""===t)return[];const e=t.split("|").map((t=>"null"===t?null:t));return 1===e.length?e[0]:e}));var n;const o={};return r.length>0&&(o.topics=r),e&&"*"!==e&&(o.address=e),o}pollable(){return this.tag.indexOf(":")>=0||C.indexOf(this.tag)>=0}}const U={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function D(t){return(0,a.$m)(i.O$.from(t).toHexString(),32)}function Y(t){return s.eU.encode((0,a.zo)([t,(0,a.p3)((0,h.JQ)((0,h.JQ)(t)),0,4)]))}const G=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),new RegExp("^(ipfs)://(.*)$","i"),new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function $(t){try{return(0,d.ZN)(j(t))}catch(e){}return null}function j(t){if("0x"===t)return null;const e=i.O$.from((0,a.p3)(t,0,32)).toNumber(),r=i.O$.from((0,a.p3)(t,e,e+32)).toNumber();return(0,a.p3)(t,e+32,e+32+r)}class F{constructor(t,e,r,n){(0,u.zG)(this,"provider",t),(0,u.zG)(this,"name",r),(0,u.zG)(this,"address",t.formatter.address(e)),(0,u.zG)(this,"_resolvedAddress",n)}_fetchBytes(t,e){return R(this,void 0,void 0,(function*(){const r={to:this.address,data:(0,a.xs)([t,(0,c.VM)(this.name),e||"0x"])};try{return j(yield this.provider.call(r))}catch(n){return n.code,g.Yd.errors.CALL_EXCEPTION,null}}))}_getAddress(t,e){const r=U[String(t)];if(null==r&&A.throwError(`unsupported coin type: ${t}`,g.Yd.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`}),"eth"===r.ilk)return this.provider.formatter.address(e);const n=(0,a.lE)(e);if(null!=r.p2pkh){const t=e.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(t){const e=parseInt(t[1],16);if(t[2].length===2*e&&e>=1&&e<=75)return Y((0,a.zo)([[r.p2pkh],"0x"+t[2]]))}}if(null!=r.p2sh){const t=e.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(t){const e=parseInt(t[1],16);if(t[2].length===2*e&&e>=1&&e<=75)return Y((0,a.zo)([[r.p2sh],"0x"+t[2]]))}}if(null!=r.prefix){const t=n[1];let e=n[0];if(0===e?20!==t&&32!==t&&(e=-1):e=-1,e>=0&&n.length===2+t&&t>=1&&t<=75){const t=f().toWords(n.slice(2));return t.unshift(e),f().encode(r.prefix,t)}}return null}getAddress(t){return R(this,void 0,void 0,(function*(){if(null==t&&(t=60),60===t)try{const t={to:this.address,data:"0x3b3b57de"+(0,c.VM)(this.name).substring(2)},e=yield this.provider.call(t);return"0x"===e||e===l.HashZero?null:this.provider.formatter.callAddress(e)}catch(n){if(n.code===g.Yd.errors.CALL_EXCEPTION)return null;throw n}const e=yield this._fetchBytes("0xf1cb7e06",D(t));if(null==e||"0x"===e)return null;const r=this._getAddress(t,e);return null==r&&A.throwError("invalid or unsupported coin data",g.Yd.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`,coinType:t,data:e}),r}))}getAvatar(){return R(this,void 0,void 0,(function*(){const t=[];try{const e=yield this.getText("avatar");if(null==e)return null;for(let r=0;r{})),this._ready().catch((t=>{}));else{const e=(0,u.tu)(new.target,"getNetwork")(t);e?((0,u.zG)(this,"_network",e),this.emit("network",e,null)):A.throwArgumentError("invalid network","network",t)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return R(this,void 0,void 0,(function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(t){}null==e&&(e=yield this.detectNetwork()),e||A.throwError("no network detected",g.Yd.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:(0,u.zG)(this,"_network",e),this.emit("network",e,null))}return this._network}))}get ready(){return(0,p.$l)((()=>this._ready().then((t=>t),(t=>{if(t.code!==g.Yd.errors.NETWORK_ERROR||"noNetwork"!==t.event)throw t}))))}static getFormatter(){return null==q&&(q=new _),q}static getNetwork(t){return(0,o.H)(null==t?"homestead":t)}_getInternalBlockNumber(t){return R(this,void 0,void 0,(function*(){if(yield this._ready(),t>0)for(;this._internalBlockNumber;){const e=this._internalBlockNumber;try{const r=yield e;if(B()-r.respTime<=t)return r.blockNumber;break}catch(n){if(this._internalBlockNumber===e)break}}const e=B(),r=(0,u.mE)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((t=>null),(t=>t))}).then((({blockNumber:t,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;const o=B();return(t=i.O$.from(t).toNumber()){this._internalBlockNumber===r&&(this._internalBlockNumber=null)})),(yield r).blockNumber}))}poll(){return R(this,void 0,void 0,(function*(){const t=K++,e=[];let r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(n){return void this.emit("error",n)}if(this._setFastBlockNumber(r),this.emit("poll",t,r),r!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)A.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",A.makeError("network block skew detected",g.Yd.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let t=this._emitted.block+1;t<=r;t++)this.emit("block",t);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((t=>{if("block"===t)return;const e=this._emitted[t];"pending"!==e&&r-e>12&&delete this._emitted[t]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((t=>{switch(t.type){case"tx":{const r=t.hash;let n=this.getTransactionReceipt(r).then((t=>t&&null!=t.blockNumber?(this._emitted["t:"+r]=t.blockNumber,this.emit(r,t),null):null)).catch((t=>{this.emit("error",t)}));e.push(n);break}case"filter":{const n=t.filter;n.fromBlock=this._lastBlockNumber+1,n.toBlock=r;const o=this.getLogs(n).then((t=>{0!==t.length&&t.forEach((t=>{this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit(n,t)}))})).catch((t=>{this.emit("error",t)}));e.push(o);break}}})),this._lastBlockNumber=r,Promise.all(e).then((()=>{this.emit("didPoll",t)})).catch((t=>{this.emit("error",t)}))}else this.emit("didPoll",t)}))}resetEventsBlock(t){this._lastBlockNumber=t-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return R(this,void 0,void 0,(function*(){return A.throwError("provider does not support network detection",g.Yd.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return R(this,void 0,void 0,(function*(){const t=yield this._ready(),e=yield this.detectNetwork();if(t.chainId!==e.chainId){if(this.anyNetwork)return this._network=e,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",e,t),yield S(0),this._network;const r=A.makeError("underlying network changed",g.Yd.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:e});throw this.emit("error",r),r}return t}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then((t=>{this._setFastBlockNumber(t)}),(t=>{})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(t){t&&!this._poller?(this._poller=setInterval((()=>{this.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((()=>{this.poll(),this._bootstrapPoll=setTimeout((()=>{this._poller||this.poll(),this._bootstrapPoll=null}),this.pollingInterval)}),0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(t){if("number"!=typeof t||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval((()=>{this.poll()}),this._pollingInterval))}_getFastBlockNumber(){const t=B();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((t=>((null==this._fastBlockNumber||t>this._fastBlockNumber)&&(this._fastBlockNumber=t),this._fastBlockNumber)))),this._fastBlockNumberPromise}_setFastBlockNumber(t){null!=this._fastBlockNumber&&tthis._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))}waitForTransaction(t,e,r){return R(this,void 0,void 0,(function*(){return this._waitForTransaction(t,null==e?1:e,r||0,null)}))}_waitForTransaction(t,e,r,n){return R(this,void 0,void 0,(function*(){const o=yield this.getTransactionReceipt(t);return(o?o.confirmations:0)>=e?o:new Promise(((o,s)=>{const i=[];let a=!1;const l=function(){return!!a||(a=!0,i.forEach((t=>{t()})),!1)},c=t=>{t.confirmations{this.removeListener(t,c)})),n){let r=n.startBlock,o=null;const c=i=>R(this,void 0,void 0,(function*(){a||(yield S(1e3),this.getTransactionCount(n.from).then((u=>R(this,void 0,void 0,(function*(){if(!a){if(u<=n.nonce)r=i;else{{const e=yield this.getTransaction(t);if(e&&null!=e.blockNumber)return}for(null==o&&(o=r-3,o{a||this.once("block",c)})))}));if(a)return;this.once("block",c),i.push((()=>{this.removeListener("block",c)}))}if("number"==typeof r&&r>0){const t=setTimeout((()=>{l()||s(A.makeError("timeout exceeded",g.Yd.errors.TIMEOUT,{timeout:r}))}),r);t.unref&&t.unref(),i.push((()=>{clearTimeout(t)}))}}))}))}getBlockNumber(){return R(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield this.perform("getGasPrice",{});try{return i.O$.from(t)}catch(e){return A.throwError("bad result from backend",g.Yd.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e})}}))}getBalance(t,e){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,u.mE)({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),n=yield this.perform("getBalance",r);try{return i.O$.from(n)}catch(o){return A.throwError("bad result from backend",g.Yd.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:o})}}))}getTransactionCount(t,e){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,u.mE)({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),n=yield this.perform("getTransactionCount",r);try{return i.O$.from(n).toNumber()}catch(o){return A.throwError("bad result from backend",g.Yd.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:o})}}))}getCode(t,e){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,u.mE)({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),n=yield this.perform("getCode",r);try{return(0,a.Dv)(n)}catch(o){return A.throwError("bad result from backend",g.Yd.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:o})}}))}getStorageAt(t,e,r){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield(0,u.mE)({address:this._getAddress(t),blockTag:this._getBlockTag(r),position:Promise.resolve(e).then((t=>(0,a.$P)(t)))}),o=yield this.perform("getStorageAt",n);try{return(0,a.Dv)(o)}catch(s){return A.throwError("bad result from backend",g.Yd.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:o,error:s})}}))}_wrapTransaction(t,e,r){if(null!=e&&32!==(0,a.E1)(e))throw new Error("invalid response - sendTransaction");const n=t;return null!=e&&t.hash!==e&&A.throwError("Transaction hash mismatch from Provider.sendTransaction.",g.Yd.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:e}),n.wait=(e,n)=>R(this,void 0,void 0,(function*(){let o;null==e&&(e=1),null==n&&(n=0),0!==e&&null!=r&&(o={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:r});const s=yield this._waitForTransaction(t.hash,e,n,o);return null==s&&0===e?null:(this._emitted["t:"+t.hash]=s.blockNumber,0===s.status&&A.throwError("transaction failed",g.Yd.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:s}),s)})),n}sendTransaction(t){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield Promise.resolve(t).then((t=>(0,a.Dv)(t))),r=this.formatter.transaction(t);null==r.confirmations&&(r.confirmations=0);const n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const t=yield this.perform("sendTransaction",{signedTransaction:e});return this._wrapTransaction(r,t,n)}catch(o){throw o.transaction=r,o.transactionHash=r.hash,o}}))}_getTransactionRequest(t){return R(this,void 0,void 0,(function*(){const e=yield t,r={};return["from","to"].forEach((t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((t=>t?this._getAddress(t):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((t=>t?i.O$.from(t):null)))})),["type"].forEach((t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((t=>null!=t?t:null)))})),e.accessList&&(r.accessList=this.formatter.accessList(e.accessList)),["data"].forEach((t=>{null!=e[t]&&(r[t]=Promise.resolve(e[t]).then((t=>t?(0,a.Dv)(t):null)))})),this.formatter.transactionRequest(yield(0,u.mE)(r))}))}_getFilter(t){return R(this,void 0,void 0,(function*(){t=yield t;const e={};return null!=t.address&&(e.address=this._getAddress(t.address)),["blockHash","topics"].forEach((r=>{null!=t[r]&&(e[r]=t[r])})),["fromBlock","toBlock"].forEach((r=>{null!=t[r]&&(e[r]=this._getBlockTag(t[r]))})),this.formatter.filter(yield(0,u.mE)(e))}))}call(t,e){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,u.mE)({transaction:this._getTransactionRequest(t),blockTag:this._getBlockTag(e)}),n=yield this.perform("call",r);try{return(0,a.Dv)(n)}catch(o){return A.throwError("bad result from backend",g.Yd.errors.SERVER_ERROR,{method:"call",params:r,result:n,error:o})}}))}estimateGas(t){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield(0,u.mE)({transaction:this._getTransactionRequest(t)}),r=yield this.perform("estimateGas",e);try{return i.O$.from(r)}catch(n){return A.throwError("bad result from backend",g.Yd.errors.SERVER_ERROR,{method:"estimateGas",params:e,result:r,error:n})}}))}_getAddress(t){return R(this,void 0,void 0,(function*(){"string"!=typeof(t=yield t)&&A.throwArgumentError("invalid address or ENS name","name",t);const e=yield this.resolveName(t);return null==e&&A.throwError("ENS name not configured",g.Yd.errors.UNSUPPORTED_OPERATION,{operation:`resolveName(${JSON.stringify(t)})`}),e}))}_getBlock(t,e){return R(this,void 0,void 0,(function*(){yield this.getNetwork(),t=yield t;let r=-128;const n={includeTransactions:!!e};if((0,a.A7)(t,32))n.blockHash=t;else try{n.blockTag=yield this._getBlockTag(t),(0,a.A7)(n.blockTag)&&(r=parseInt(n.blockTag.substring(2),16))}catch(o){A.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",t)}return(0,p.$l)((()=>R(this,void 0,void 0,(function*(){const t=yield this.perform("getBlock",n);if(null==t)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(e){let e=null;for(let n=0;nthis._wrapTransaction(t))),r}return this.formatter.block(t)}))),{oncePoll:this})}))}getBlock(t){return this._getBlock(t,!1)}getBlockWithTransactions(t){return this._getBlock(t,!0)}getTransaction(t){return R(this,void 0,void 0,(function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return(0,p.$l)((()=>R(this,void 0,void 0,(function*(){const r=yield this.perform("getTransaction",e);if(null==r)return null==this._emitted["t:"+t]?null:void 0;const n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let t=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;t<=0&&(t=1),n.confirmations=t}return this._wrapTransaction(n)}))),{oncePoll:this})}))}getTransactionReceipt(t){return R(this,void 0,void 0,(function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return(0,p.$l)((()=>R(this,void 0,void 0,(function*(){const r=yield this.perform("getTransactionReceipt",e);if(null==r)return null==this._emitted["t:"+t]?null:void 0;if(null==r.blockHash)return;const n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let t=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;t<=0&&(t=1),n.confirmations=t}return n}))),{oncePoll:this})}))}getLogs(t){return R(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield(0,u.mE)({filter:this._getFilter(t)}),r=yield this.perform("getLogs",e);return r.forEach((t=>{null==t.removed&&(t.removed=!1)})),_.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)}))}getEtherPrice(){return R(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(t){return R(this,void 0,void 0,(function*(){if("number"==typeof(t=yield t)&&t<0){t%1&&A.throwArgumentError("invalid BlockTag","blockTag",t);let e=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return e+=t,e<0&&(e=0),this.formatter.blockTag(e)}return this.formatter.blockTag(t)}))}getResolver(t){return R(this,void 0,void 0,(function*(){try{const e=yield this._getResolver(t);return null==e?null:new F(this,e,t)}catch(e){return e.code,g.Yd.errors.CALL_EXCEPTION,null}}))}_getResolver(t){return R(this,void 0,void 0,(function*(){const e=yield this.getNetwork();e.ensAddress||A.throwError("network does not support ENS",g.Yd.errors.UNSUPPORTED_OPERATION,{operation:"ENS",network:e.name});const r={to:e.ensAddress,data:"0x0178b8bf"+(0,c.VM)(t).substring(2)};try{return this.formatter.callAddress(yield this.call(r))}catch(n){if(n.code===g.Yd.errors.CALL_EXCEPTION)return null;throw n}}))}resolveName(t){return R(this,void 0,void 0,(function*(){t=yield t;try{return Promise.resolve(this.formatter.address(t))}catch(r){if((0,a.A7)(t))throw r}"string"!=typeof t&&A.throwArgumentError("invalid ENS name","name",t);const e=yield this.getResolver(t);return e?yield e.getAddress():null}))}lookupAddress(t){return R(this,void 0,void 0,(function*(){t=yield t;const e=(t=this.formatter.address(t)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(e);if(!r)return null;let n=(0,a.lE)(yield this.call({to:r,data:"0x691f3431"+(0,c.VM)(e).substring(2)}));if(n.length<32||!i.O$.from(n.slice(0,32)).eq(32))return null;if(n=n.slice(32),n.length<32)return null;const o=i.O$.from(n.slice(0,32)).toNumber();if(n=n.slice(32),o>n.length)return null;const s=(0,d.ZN)(n.slice(0,o));return(yield this.resolveName(s))!=t?null:s}))}getAvatar(t){return R(this,void 0,void 0,(function*(){let e=null;if((0,a.A7)(t)){const r=this.formatter.address(t),n=r.substring(2).toLowerCase()+".addr.reverse",o=yield this._getResolver(n);if(!o)return null;e=new F(this,o,"_",r)}else e=yield this.getResolver(t);const r=yield e.getAvatar();return null==r?null:r.url}))}perform(t,e){return A.throwError(t+" not implemented",g.Yd.errors.NOT_IMPLEMENTED,{operation:t})}_startEvent(t){this.polling=this._events.filter((t=>t.pollable())).length>0}_stopEvent(t){this.polling=this._events.filter((t=>t.pollable())).length>0}_addEventListener(t,e,r){const n=new L(O(t),e,r);return this._events.push(n),this._startEvent(n),this}on(t,e){return this._addEventListener(t,e,!1)}once(t,e){return this._addEventListener(t,e,!0)}emit(t,...e){let r=!1,n=[],o=O(t);return this._events=this._events.filter((t=>t.tag!==o||(setTimeout((()=>{t.listener.apply(this,e)}),0),r=!0,!t.once||(n.push(t),!1)))),n.forEach((t=>{this._stopEvent(t)})),r}listenerCount(t){if(!t)return this._events.length;let e=O(t);return this._events.filter((t=>t.tag===e)).length}listeners(t){if(null==t)return this._events.map((t=>t.listener));let e=O(t);return this._events.filter((t=>t.tag===e)).map((t=>t.listener))}off(t,e){if(null==e)return this.removeAllListeners(t);const r=[];let n=!1,o=O(t);return this._events=this._events.filter((t=>t.tag!==o||t.listener!=e||(!!n||(n=!0,r.push(t),!1)))),r.forEach((t=>{this._stopEvent(t)})),this}removeAllListeners(t){let e=[];if(null==t)e=this._events,this._events=[];else{const r=O(t);this._events=this._events.filter((t=>t.tag!==r||(e.push(t),!1)))}return e.forEach((t=>{this._stopEvent(t)})),this}}var H=r(61024),W=function(t,e,r,n){return new(r||(r=Promise))((function(o,s){function i(t){try{l(n.next(t))}catch(e){s(e)}}function a(t){try{l(n.throw(t))}catch(e){s(e)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,a)}l((n=n.apply(t,e||[])).next())}))};const M=new g.Yd(k),J=["call","estimateGas"];function V(t,e,r){if("call"===t&&e.code===g.Yd.errors.SERVER_ERROR){const t=e.error;if(t&&t.message.match("reverted")&&(0,a.A7)(t.data))return t.data;M.throwError("missing revert data in call exception",g.Yd.errors.CALL_EXCEPTION,{error:e,data:"0x"})}let n=e.message;e.code===g.Yd.errors.SERVER_ERROR&&e.error&&"string"==typeof e.error.message?n=e.error.message:"string"==typeof e.body?n=e.body:"string"==typeof e.responseText&&(n=e.responseText),n=(n||"").toLowerCase();const o=r.transaction||r.signedTransaction;throw n.match(/insufficient funds|base fee exceeds gas limit/)&&M.throwError("insufficient funds for intrinsic transaction cost",g.Yd.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:o}),n.match(/nonce too low/)&&M.throwError("nonce has already been used",g.Yd.errors.NONCE_EXPIRED,{error:e,method:t,transaction:o}),n.match(/replacement transaction underpriced/)&&M.throwError("replacement fee too low",g.Yd.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:o}),n.match(/only replay-protected/)&&M.throwError("legacy pre-eip-155 transactions not supported",g.Yd.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:o}),J.indexOf(t)>=0&&n.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&M.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",g.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:o}),e}function X(t){return new Promise((function(e){setTimeout(e,t)}))}function Z(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function Q(t){return t?t.toLowerCase():t}const tt={};class et extends H.E{constructor(t,e,r){if(M.checkNew(new.target,et),super(),t!==tt)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,u.zG)(this,"provider",e),null==r&&(r=0),"string"==typeof r?((0,u.zG)(this,"_address",this.provider.formatter.address(r)),(0,u.zG)(this,"_index",null)):"number"==typeof r?((0,u.zG)(this,"_index",r),(0,u.zG)(this,"_address",null)):M.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(t){return M.throwError("cannot alter JSON-RPC Signer connection",g.Yd.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new rt(tt,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((t=>(t.length<=this._index&&M.throwError("unknown account #"+this._index,g.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(t[this._index]))))}sendUncheckedTransaction(t){t=(0,u.DC)(t);const e=this.getAddress().then((t=>(t&&(t=t.toLowerCase()),t)));if(null==t.gasLimit){const r=(0,u.DC)(t);r.from=e,t.gasLimit=this.provider.estimateGas(r)}return null!=t.to&&(t.to=Promise.resolve(t.to).then((t=>W(this,void 0,void 0,(function*(){if(null==t)return null;const e=yield this.provider.resolveName(t);return null==e&&M.throwArgumentError("provided ENS name resolves to null","tx.to",t),e}))))),(0,u.mE)({tx:(0,u.mE)(t),sender:e}).then((({tx:e,sender:r})=>{null!=e.from?e.from.toLowerCase()!==r&&M.throwArgumentError("from address mismatch","transaction",t):e.from=r;const n=this.provider.constructor.hexlifyTransaction(e,{from:!0});return this.provider.send("eth_sendTransaction",[n]).then((t=>t),(t=>V("sendTransaction",t,n)))}))}signTransaction(t){return M.throwError("signing transactions is unsupported",g.Yd.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(t){return W(this,void 0,void 0,(function*(){const e=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(t);try{return yield(0,p.$l)((()=>W(this,void 0,void 0,(function*(){const t=yield this.provider.getTransaction(r);if(null!==t)return this.provider._wrapTransaction(t,r,e)}))),{oncePoll:this.provider})}catch(n){throw n.transactionHash=r,n}}))}signMessage(t){return W(this,void 0,void 0,(function*(){const e="string"==typeof t?(0,d.Y0)(t):t,r=yield this.getAddress();return yield this.provider.send("personal_sign",[(0,a.Dv)(e),r.toLowerCase()])}))}_legacySignMessage(t){return W(this,void 0,void 0,(function*(){const e="string"==typeof t?(0,d.Y0)(t):t,r=yield this.getAddress();return yield this.provider.send("eth_sign",[r.toLowerCase(),(0,a.Dv)(e)])}))}_signTypedData(t,e,r){return W(this,void 0,void 0,(function*(){const n=yield c.H1.resolveNames(t,e,r,(t=>this.provider.resolveName(t))),o=yield this.getAddress();return yield this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(c.H1.getPayload(n.domain,e,n.value))])}))}unlock(t){return W(this,void 0,void 0,(function*(){const e=this.provider,r=yield this.getAddress();return e.send("personal_unlockAccount",[r.toLowerCase(),t,null])}))}}class rt extends et{sendTransaction(t){return this.sendUncheckedTransaction(t).then((t=>({hash:t,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:e=>this.provider.waitForTransaction(t,e)})))}}const nt={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class ot extends z{constructor(t,e){M.checkNew(new.target,ot);let r=e;null==r&&(r=new Promise(((t,e)=>{setTimeout((()=>{this.detectNetwork().then((e=>{t(e)}),(t=>{e(t)}))}),0)}))),super(r),t||(t=(0,u.tu)(this.constructor,"defaultUrl")()),"string"==typeof t?(0,u.zG)(this,"connection",Object.freeze({url:t})):(0,u.zG)(this,"connection",Object.freeze((0,u.DC)(t))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((()=>{this._cache.detectNetwork=null}),0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return W(this,void 0,void 0,(function*(){yield X(0);let t=null;try{t=yield this.send("eth_chainId",[])}catch(e){try{t=yield this.send("net_version",[])}catch(e){}}if(null!=t){const r=(0,u.tu)(this.constructor,"getNetwork");try{return r(i.O$.from(t).toNumber())}catch(e){return M.throwError("could not detect network",g.Yd.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e})}}return M.throwError("could not detect network",g.Yd.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(t){return new et(tt,this,t)}getUncheckedSigner(t){return this.getSigner(t).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then((t=>t.map((t=>this.formatter.address(t)))))}send(t,e){const r={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,u.p$)(r),provider:this});const n=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(n&&this._cache[t])return this._cache[t];const o=(0,p.rd)(this.connection,JSON.stringify(r),Z).then((t=>(this.emit("debug",{action:"response",request:r,response:t,provider:this}),t)),(t=>{throw this.emit("debug",{action:"response",error:t,request:r,provider:this}),t}));return n&&(this._cache[t]=o,setTimeout((()=>{this._cache[t]=null}),0)),o}prepareRequest(t,e){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[Q(e.address),e.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[Q(e.address),e.blockTag]];case"getCode":return["eth_getCode",[Q(e.address),e.blockTag]];case"getStorageAt":return["eth_getStorageAt",[Q(e.address),e.position,e.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[e.signedTransaction]];case"getBlock":return e.blockTag?["eth_getBlockByNumber",[e.blockTag,!!e.includeTransactions]]:e.blockHash?["eth_getBlockByHash",[e.blockHash,!!e.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[e.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[e.transactionHash]];case"call":return["eth_call",[(0,u.tu)(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0}),e.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,u.tu)(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0})]];case"getLogs":return e.filter&&null!=e.filter.address&&(e.filter.address=Q(e.filter.address)),["eth_getLogs",[e.filter]]}return null}perform(t,e){return W(this,void 0,void 0,(function*(){if("call"===t||"estimateGas"===t){const t=e.transaction;if(t&&null!=t.type&&i.O$.from(t.type).isZero()&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){const r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((e=(0,u.DC)(e)).transaction=(0,u.DC)(t),delete e.transaction.type)}}const r=this.prepareRequest(t,e);null==r&&M.throwError(t+" not implemented",g.Yd.errors.NOT_IMPLEMENTED,{operation:t});try{return yield this.send(r[0],r[1])}catch(n){return V(t,n,e)}}))}_startEvent(t){"pending"===t.tag&&this._startPending(),super._startEvent(t)}_startPending(){if(null!=this._pendingFilter)return;const t=this,e=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=e,e.then((function(r){return function n(){t.send("eth_getFilterChanges",[r]).then((function(r){if(t._pendingFilter!=e)return null;let n=Promise.resolve();return r.forEach((function(e){t._emitted["t:"+e.toLowerCase()]="pending",n=n.then((function(){return t.getTransaction(e).then((function(e){return t.emit("pending",e),null}))}))})),n.then((function(){return X(1e3)}))})).then((function(){if(t._pendingFilter==e)return setTimeout((function(){n()}),0),null;t.send("eth_uninstallFilter",[r])})).catch((t=>{}))}(),r})).catch((t=>{}))}_stopEvent(t){"pending"===t.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(t)}static hexlifyTransaction(t,e){const r=(0,u.DC)(nt);if(e)for(const o in e)e[o]&&(r[o]=!0);(0,u.uj)(t,r);const n={};return["gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(e){if(null==t[e])return;const r=(0,a.$P)(t[e]);"gasLimit"===e&&(e="gas"),n[e]=r})),["from","to","data"].forEach((function(e){null!=t[e]&&(n[e]=(0,a.Dv)(t[e]))})),t.accessList&&(n.accessList=(0,b.z7)(t.accessList)),n}}let st=null;try{if(st=WebSocket,null==st)throw new Error("inject please")}catch(ue){const t=new g.Yd(k);st=function(){t.throwError("WebSockets not supported in this environment",g.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var it=r(98399),at=function(t,e,r,n){return new(r||(r=Promise))((function(o,s){function i(t){try{l(n.next(t))}catch(e){s(e)}}function a(t){try{l(n.throw(t))}catch(e){s(e)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,a)}l((n=n.apply(t,e||[])).next())}))};const lt=new g.Yd(k);let ct=1;class ut extends ot{constructor(t,e){"any"===e&<.throwError("WebSocketProvider does not support 'any' network yet",g.Yd.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),super(t,e),this._pollingInterval=-1,this._wsReady=!1,(0,u.zG)(this,"_websocket",new st(this.connection.url)),(0,u.zG)(this,"_requests",{}),(0,u.zG)(this,"_subs",{}),(0,u.zG)(this,"_subIds",{}),(0,u.zG)(this,"_detectNetwork",super.detectNetwork()),this._websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach((t=>{this._websocket.send(this._requests[t].payload)}))},this._websocket.onmessage=t=>{const e=t.data,r=JSON.parse(e);if(null!=r.id){const t=String(r.id),n=this._requests[t];if(delete this._requests[t],void 0!==r.result)n.callback(null,r.result),this.emit("debug",{action:"response",request:JSON.parse(n.payload),response:r.result,provider:this});else{let t=null;r.error?(t=new Error(r.error.message||"unknown error"),(0,u.zG)(t,"code",r.error.code||null),(0,u.zG)(t,"response",e)):t=new Error("unknown error"),n.callback(t,void 0),this.emit("debug",{action:"response",error:t,request:JSON.parse(n.payload),provider:this})}}else if("eth_subscription"===r.method){const t=this._subs[r.params.subscription];t&&t.processFunc(r.params.result)}else it.warn("this should not happen")};const r=setInterval((()=>{this.emit("poll")}),1e3);r.unref&&r.unref()}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(t){lt.throwError("cannot reset events block on WebSocketProvider",g.Yd.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(t){lt.throwError("cannot set polling interval on WebSocketProvider",g.Yd.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return at(this,void 0,void 0,(function*(){return null}))}set polling(t){t&<.throwError("cannot set polling on WebSocketProvider",g.Yd.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(t,e){const r=ct++;return new Promise(((n,o)=>{const s=JSON.stringify({method:t,params:e,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(s),provider:this}),this._requests[String(r)]={callback:function(t,e){return t?o(t):n(e)},payload:s},this._wsReady&&this._websocket.send(s)}))}static defaultUrl(){return"ws://localhost:8546"}_subscribe(t,e,r){return at(this,void 0,void 0,(function*(){let n=this._subIds[t];null==n&&(n=Promise.all(e).then((t=>this.send("eth_subscribe",t))),this._subIds[t]=n);const o=yield n;this._subs[o]={tag:t,processFunc:r}}))}_startEvent(t){switch(t.type){case"block":this._subscribe("block",["newHeads"],(t=>{const e=i.O$.from(t.number).toNumber();this._emitted.block=e,this.emit("block",e)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(t=>{this.emit("pending",t)}));break;case"filter":this._subscribe(t.tag,["logs",this._getFilter(t.filter)],(e=>{null==e.removed&&(e.removed=!1),this.emit(t.filter,this.formatter.filterLog(e))}));break;case"tx":{const e=t=>{const e=t.hash;this.getTransactionReceipt(e).then((t=>{t&&this.emit(e,t)}))};e(t),this._subscribe("tx",["newHeads"],(t=>{this._events.filter((t=>"tx"===t.type)).forEach(e)}));break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:it.log("unhandled:",t)}}_stopEvent(t){let e=t.tag;if("tx"===t.type){if(this._events.filter((t=>"tx"===t.type)).length)return;e="tx"}else if(this.listenerCount(t.event))return;const r=this._subIds[e];r&&(delete this._subIds[e],r.then((t=>{this._subs[t]&&(delete this._subs[t],this.send("eth_unsubscribe",[t]))})))}destroy(){return at(this,void 0,void 0,(function*(){this._websocket.readyState===st.CONNECTING&&(yield new Promise((t=>{this._websocket.onopen=function(){t(!0)},this._websocket.onerror=function(){t(!1)}}))),this._websocket.close(1e3)}))}}var ht=function(t,e,r,n){return new(r||(r=Promise))((function(o,s){function i(t){try{l(n.next(t))}catch(e){s(e)}}function a(t){try{l(n.throw(t))}catch(e){s(e)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,a)}l((n=n.apply(t,e||[])).next())}))};const dt=new g.Yd(k);class pt extends ot{detectNetwork(){const t=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return ht(this,void 0,void 0,(function*(){let e=this.network;return null==e&&(e=yield t.detectNetwork.call(this),e||dt.throwError("no network detected",g.Yd.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,u.zG)(this,"_network",e),this.emit("network",e,null))),e}))}}class mt extends pt{constructor(t,e){dt.checkAbstract(new.target,mt),t=(0,u.tu)(new.target,"getNetwork")(t),e=(0,u.tu)(new.target,"getApiKey")(e);super((0,u.tu)(new.target,"getUrl")(t,e),t),"string"==typeof e?(0,u.zG)(this,"apiKey",e):null!=e&&Object.keys(e).forEach((t=>{(0,u.zG)(this,t,e[t])}))}_startPending(){dt.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(t){return dt.throwError("API provider does not support signing",g.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(t){return t}static getUrl(t,e){return dt.throwError("not implemented; sub-classes must override getUrl",g.Yd.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}const ft=new g.Yd(k),gt="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class kt extends ut{constructor(t,e){const r=new wt(t,e);super(r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi."),r.network),(0,u.zG)(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===gt}}class wt extends mt{static getWebSocketProvider(t,e){return new kt(t,e)}static getApiKey(t){return null==t?gt:(t&&"string"!=typeof t&&ft.throwArgumentError("invalid apiKey","apiKey",t),t)}static getUrl(t,e){let r=null;switch(t.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"ropsten":r="eth-ropsten.alchemyapi.io/v2/";break;case"rinkeby":r="eth-rinkeby.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.alchemyapi.io/v2/";break;case"kovan":r="eth-kovan.alchemyapi.io/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;default:ft.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+e,throttleCallback:(t,r)=>(e===gt&&P(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===gt}}var bt=function(t,e,r,n){return new(r||(r=Promise))((function(o,s){function i(t){try{l(n.next(t))}catch(e){s(e)}}function a(t){try{l(n.throw(t))}catch(e){s(e)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,a)}l((n=n.apply(t,e||[])).next())}))};const vt=new g.Yd(k);class yt extends mt{static getApiKey(t){return null!=t&&vt.throwArgumentError("apiKey not supported for cloudflare","apiKey",t),null}static getUrl(t,e){let r=null;if("homestead"===t.name)r="https://cloudflare-eth.com/";else vt.throwArgumentError("unsupported network","network",arguments[0]);return r}perform(t,e){const r=Object.create(null,{perform:{get:()=>super.perform}});return bt(this,void 0,void 0,(function*(){if("getBlockNumber"===t){return(yield r.perform.call(this,"getBlock",{blockTag:"latest"})).number}return r.perform.call(this,t,e)}))}}var _t=function(t,e,r,n){return new(r||(r=Promise))((function(o,s){function i(t){try{l(n.next(t))}catch(e){s(e)}}function a(t){try{l(n.throw(t))}catch(e){s(e)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,a)}l((n=n.apply(t,e||[])).next())}))};const Nt=new g.Yd(k);function Et(t){const e={};for(let r in t){if(null==t[r])continue;let n=t[r];"type"===r&&0===n||(n={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r]?(0,a.$P)((0,a.Dv)(n)):"accessList"===r?"["+(0,b.z7)(n).map((t=>`{address:"${t.address}",storageKeys:["${t.storageKeys.join('","')}"]}`)).join(",")+"]":(0,a.Dv)(n),e[r]=n)}return e}function Tt(t){if(0==t.status&&("No records found"===t.message||"No transactions found"===t.message))return t.result;if(1!=t.status||"OK"!=t.message){const e=new Error("invalid response");throw e.result=JSON.stringify(t),(t.result||"").toLowerCase().indexOf("rate limit")>=0&&(e.throttleRetry=!0),e}return t.result}function Pt(t){if(t&&0==t.status&&"NOTOK"==t.message&&(t.result||"").toLowerCase().indexOf("rate limit")>=0){const e=new Error("throttled response");throw e.result=JSON.stringify(t),e.throttleRetry=!0,e}if("2.0"!=t.jsonrpc){const e=new Error("invalid response");throw e.result=JSON.stringify(t),e}if(t.error){const e=new Error(t.error.message||"unknown error");throw t.error.code&&(e.code=t.error.code),t.error.data&&(e.data=t.error.data),e}return t.result}function Rt(t){if("pending"===t)throw new Error("pending not supported");return"latest"===t?t:parseInt(t.substring(2),16)}const At="9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB";function It(t,e,r){if("call"===t&&e.code===g.Yd.errors.SERVER_ERROR){const t=e.error;if(t&&(t.message.match(/reverted/i)||t.message.match(/VM execution error/i))){let r=t.data;if(r&&(r="0x"+r.replace(/^.*0x/i,"")),(0,a.A7)(r))return r;Nt.throwError("missing revert data in call exception",g.Yd.errors.CALL_EXCEPTION,{error:e,data:"0x"})}}let n=e.message;throw e.code===g.Yd.errors.SERVER_ERROR&&(e.error&&"string"==typeof e.error.message?n=e.error.message:"string"==typeof e.body?n=e.body:"string"==typeof e.responseText&&(n=e.responseText)),n=(n||"").toLowerCase(),n.match(/insufficient funds/)&&Nt.throwError("insufficient funds for intrinsic transaction cost",g.Yd.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:r}),n.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Nt.throwError("nonce has already been used",g.Yd.errors.NONCE_EXPIRED,{error:e,method:t,transaction:r}),n.match(/another transaction with same nonce/)&&Nt.throwError("replacement fee too low",g.Yd.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:r}),n.match(/execution failed due to an exception|execution reverted/)&&Nt.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",g.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:r}),e}class xt extends z{constructor(t,e){Nt.checkNew(new.target,xt),super(t),(0,u.zG)(this,"baseUrl",this.getBaseUrl()),(0,u.zG)(this,"apiKey",e||At)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"ropsten":return"https://api-ropsten.etherscan.io";case"rinkeby":return"https://api-rinkeby.etherscan.io";case"kovan":return"https://api-kovan.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io"}return Nt.throwArgumentError("unsupported network","network",name)}getUrl(t,e){const r=Object.keys(e).reduce(((t,r)=>{const n=e[r];return null!=n&&(t+=`&${r}=${n}`),t}),""),n=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${t}${r}${n}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(t,e){return e.module=t,e.apikey=this.apiKey,e}fetch(t,e,r){return _t(this,void 0,void 0,(function*(){const n=r?this.getPostUrl():this.getUrl(t,e),o=r?this.getPostData(t,e):null,s="proxy"===t?Pt:Tt;this.emit("debug",{action:"request",request:n,provider:this});const i={url:n,throttleSlotInterval:1e3,throttleCallback:(t,e)=>(this.isCommunityResource()&&P(),Promise.resolve(!0))};let a=null;o&&(i.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},a=Object.keys(o).map((t=>`${t}=${o[t]}`)).join("&"));const l=yield(0,p.rd)(i,a,s||Pt);return this.emit("debug",{action:"response",request:n,response:(0,u.p$)(l),provider:this}),l}))}detectNetwork(){return _t(this,void 0,void 0,(function*(){return this.network}))}perform(t,e){const r=Object.create(null,{perform:{get:()=>super.perform}});return _t(this,void 0,void 0,(function*(){switch(t){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:e.address,tag:e.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:e.address,tag:e.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:e.address,tag:e.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:e.address,position:e.position,tag:e.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:e.signedTransaction},!0).catch((t=>It("sendTransaction",t,e.signedTransaction)));case"getBlock":if(e.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:e.blockTag,boolean:e.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:e.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:e.transactionHash});case"call":{if("latest"!==e.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const t=Et(e.transaction);t.module="proxy",t.action="eth_call";try{return yield this.fetch("proxy",t,!0)}catch(ue){return It("call",ue,e.transaction)}}case"estimateGas":{const t=Et(e.transaction);t.module="proxy",t.action="eth_estimateGas";try{return yield this.fetch("proxy",t,!0)}catch(ue){return It("estimateGas",ue,e.transaction)}}case"getLogs":{const t={action:"getLogs"};if(e.filter.fromBlock&&(t.fromBlock=Rt(e.filter.fromBlock)),e.filter.toBlock&&(t.toBlock=Rt(e.filter.toBlock)),e.filter.address&&(t.address=e.filter.address),e.filter.topics&&e.filter.topics.length>0&&(e.filter.topics.length>1&&Nt.throwError("unsupported topic count",g.Yd.errors.UNSUPPORTED_OPERATION,{topics:e.filter.topics}),1===e.filter.topics.length)){const r=e.filter.topics[0];"string"==typeof r&&66===r.length||Nt.throwError("unsupported topic format",g.Yd.errors.UNSUPPORTED_OPERATION,{topic0:r}),t.topic0=r}const r=yield this.fetch("logs",t);let n={};for(let e=0;e{["contractAddress","to"].forEach((function(e){""==t[e]&&delete t[e]})),null==t.creates&&null!=t.contractAddress&&(t.creates=t.contractAddress);const e=this.formatter.transactionResponse(t);return t.timeStamp&&(e.timestamp=parseInt(t.timeStamp)),e}))}))}isCommunityResource(){return this.apiKey===At}}var Ot=r(31203),Bt=function(t,e,r,n){return new(r||(r=Promise))((function(o,s){function i(t){try{l(n.next(t))}catch(e){s(e)}}function a(t){try{l(n.throw(t))}catch(e){s(e)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(i,a)}l((n=n.apply(t,e||[])).next())}))};const St=new g.Yd(k);function Ct(){return(new Date).getTime()}function Lt(t){let e=null;for(let r=0;re?null:(n+o)/2}function Dt(t){if(null===t)return"null";if("number"==typeof t||"boolean"==typeof t)return JSON.stringify(t);if("string"==typeof t)return t;if(i.O$.isBigNumber(t))return t.toString();if(Array.isArray(t))return JSON.stringify(t.map((t=>Dt(t))));if("object"==typeof t){const e=Object.keys(t);return e.sort(),"{"+e.map((e=>{let r=t[e];return r="function"==typeof r?"[function]":Dt(r),JSON.stringify(e)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+typeof t)}let Yt=1;function Gt(t){let e=null,r=null,n=new Promise((n=>{e=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(e,t)}));return{cancel:e,getPromise:function(){return n},wait:t=>(n=n.then(t),n)}}const $t=[g.Yd.errors.CALL_EXCEPTION,g.Yd.errors.INSUFFICIENT_FUNDS,g.Yd.errors.NONCE_EXPIRED,g.Yd.errors.REPLACEMENT_UNDERPRICED,g.Yd.errors.UNPREDICTABLE_GAS_LIMIT],jt=["address","args","errorArgs","errorSignature","method","transaction"];function Ft(t,e){const r={weight:t.weight};return Object.defineProperty(r,"provider",{get:()=>t.provider}),t.start&&(r.start=t.start),e&&(r.duration=e-t.start),t.done&&(t.error?r.error=t.error:r.result=t.result||null),r}function qt(t,e,r){let n=Dt;switch(e){case"getBlockNumber":return function(e){const r=e.map((t=>t.result));let n=Ut(e.map((t=>t.result)),2);if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=t._highestBlockNumber&&(t._highestBlockNumber=n),t._highestBlockNumber};case"getGasPrice":return function(t){const e=t.map((t=>t.result));return e.sort(),e[Math.floor(e.length/2)]};case"getEtherPrice":return function(t){return Ut(t.map((t=>t.result)))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(t){return null==t?null:((t=(0,u.DC)(t)).confirmations=-1,Dt(t))};break;case"getBlock":n=r.includeTransactions?function(t){return null==t?null:((t=(0,u.DC)(t)).transactions=t.transactions.map((t=>((t=(0,u.DC)(t)).confirmations=-1,t))),Dt(t))}:function(t){return null==t?null:Dt(t)};break;default:throw new Error("unknown method: "+e)}return function(t,e){return function(r){const n={};r.forEach((e=>{const r=t(e.result);n[r]||(n[r]={count:0,result:e.result}),n[r].count++}));const o=Object.keys(n);for(let t=0;t=e)return r.result}}}(n,t.quorum)}function Kt(t,e){return Bt(this,void 0,void 0,(function*(){const r=t.provider;return null!=r.blockNumber&&r.blockNumber>=e||-1===e?r:(0,p.$l)((()=>new Promise(((n,o)=>{setTimeout((function(){return r.blockNumber>=e?n(r):t.cancelled?n(null):n(void 0)}),0)}))),{oncePoll:r})}))}function zt(t,e,r,n){return Bt(this,void 0,void 0,(function*(){let o=t.provider;switch(r){case"getBlockNumber":case"getGasPrice":return o[r]();case"getEtherPrice":if(o.getEtherPrice)return o.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return n.blockTag&&(0,a.A7)(n.blockTag)&&(o=yield Kt(t,e)),o[r](n.address,n.blockTag||"latest");case"getStorageAt":return n.blockTag&&(0,a.A7)(n.blockTag)&&(o=yield Kt(t,e)),o.getStorageAt(n.address,n.position,n.blockTag||"latest");case"getBlock":return n.blockTag&&(0,a.A7)(n.blockTag)&&(o=yield Kt(t,e)),o[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash);case"call":case"estimateGas":return n.blockTag&&(0,a.A7)(n.blockTag)&&(o=yield Kt(t,e)),o[r](n.transaction);case"getTransaction":case"getTransactionReceipt":return o[r](n.transactionHash);case"getLogs":{let r=n.filter;return(r.fromBlock&&(0,a.A7)(r.fromBlock)||r.toBlock&&(0,a.A7)(r.toBlock))&&(o=yield Kt(t,e)),o.getLogs(r)}}return St.throwError("unknown method error",g.Yd.errors.UNKNOWN_ERROR,{method:r,params:n})}))}class Ht extends z{constructor(t,e){St.checkNew(new.target,Ht),0===t.length&&St.throwArgumentError("missing providers","providers",t);const r=t.map(((t,e)=>{if(n.zt.isProvider(t)){const e=E(t)?2e3:750,r=1;return Object.freeze({provider:t,weight:1,stallTimeout:e,priority:r})}const r=(0,u.DC)(t);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=E(t)?2e3:750),null==r.weight&&(r.weight=1);const o=r.weight;return(o%1||o>512||o<1)&&St.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${e}].weight`,o),Object.freeze(r)})),o=r.reduce(((t,e)=>t+e.weight),0);null==e?e=o/2:e>o&&St.throwArgumentError("quorum will always fail; larger than total weight","quorum",e);let s=Lt(r.map((t=>t.provider.network)));null==s&&(s=new Promise(((t,e)=>{setTimeout((()=>{this.detectNetwork().then(t,e)}),0)}))),super(s),(0,u.zG)(this,"providerConfigs",Object.freeze(r)),(0,u.zG)(this,"quorum",e),this._highestBlockNumber=-1}detectNetwork(){return Bt(this,void 0,void 0,(function*(){return Lt(yield Promise.all(this.providerConfigs.map((t=>t.provider.getNetwork()))))}))}perform(t,e){return Bt(this,void 0,void 0,(function*(){if("sendTransaction"===t){const t=yield Promise.all(this.providerConfigs.map((t=>t.provider.sendTransaction(e.signedTransaction).then((t=>t.hash),(t=>t)))));for(let e=0;et.priority-e.priority));const o=this._highestBlockNumber;let s=0,i=!0;for(;;){const a=Ct();let l=n.filter((t=>t.runner&&a-t.startt+e.weight),0);for(;l{r.staller=null})),r.runner=zt(r,o,t,e).then((n=>{r.done=!0,r.result=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:i,backend:Ft(r,Ct()),request:{method:t,params:(0,u.p$)(e)},provider:this})}),(n=>{r.done=!0,r.error=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:i,backend:Ft(r,Ct()),request:{method:t,params:(0,u.p$)(e)},provider:this})})),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:i,backend:Ft(r,null),request:{method:t,params:(0,u.p$)(e)},provider:this}),l+=r.weight}const c=[];n.forEach((t=>{!t.done&&t.runner&&(c.push(t.runner),t.staller&&c.push(t.staller.getPromise()))})),c.length&&(yield Promise.race(c));const h=n.filter((t=>t.done&&null==t.error));if(h.length>=this.quorum){const t=r(h);if(void 0!==t)return n.forEach((t=>{t.staller&&t.staller.cancel(),t.cancelled=!0})),t;i||(yield Gt(100).getPromise()),i=!1}const d=n.reduce(((t,e)=>{if(!e.done||null==e.error)return t;const r=e.error.code;return $t.indexOf(r)>=0&&(t[r]||(t[r]={error:e.error,weight:0}),t[r].weight+=e.weight),t}),{});if(Object.keys(d).forEach((t=>{const e=d[t];if(e.weight{t.staller&&t.staller.cancel(),t.cancelled=!0}));const r=e.error,o={};jt.forEach((t=>{null!=r[t]&&(o[t]=r[t])})),St.throwError(r.reason||r.message,t,o)})),0===n.filter((t=>!t.done)).length)break}return n.forEach((t=>{t.staller&&t.staller.cancel(),t.cancelled=!0})),St.throwError("failed to meet quorum",g.Yd.errors.SERVER_ERROR,{method:t,params:e,results:n.map((t=>Ft(t))),provider:this})}))}}const Wt=null,Mt=new g.Yd(k),Jt="84842078b09946638c03157f83405213";class Vt extends ut{constructor(t,e){const r=new Xt(t,e),n=r.connection;n.password&&Mt.throwError("INFURA WebSocket project secrets unsupported",g.Yd.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});super(n.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),t),(0,u.zG)(this,"apiKey",r.projectId),(0,u.zG)(this,"projectId",r.projectId),(0,u.zG)(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===Jt}}class Xt extends mt{static getWebSocketProvider(t,e){return new Vt(t,e)}static getApiKey(t){const e={apiKey:Jt,projectId:Jt,projectSecret:null};return null==t||("string"==typeof t?e.projectId=t:null!=t.projectSecret?(Mt.assertArgument("string"==typeof t.projectId,"projectSecret requires a projectId","projectId",t.projectId),Mt.assertArgument("string"==typeof t.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),e.projectId=t.projectId,e.projectSecret=t.projectSecret):t.projectId&&(e.projectId=t.projectId),e.apiKey=e.projectId),e}static getUrl(t,e){let r=null;switch(t?t.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"ropsten":r="ropsten.infura.io";break;case"rinkeby":r="rinkeby.infura.io";break;case"kovan":r="kovan.infura.io";break;case"goerli":r="goerli.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;default:Mt.throwError("unsupported network",g.Yd.errors.INVALID_ARGUMENT,{argument:"network",value:t})}const n={allowGzip:!0,url:"https://"+r+"/v3/"+e.projectId,throttleCallback:(t,r)=>(e.projectId===Jt&&P(),Promise.resolve(!0))};return null!=e.projectSecret&&(n.user="",n.password=e.projectSecret),n}isCommunityResource(){return this.projectId===Jt}}class Zt extends ot{send(t,e){const r={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const n={request:r,resolve:null,reject:null},o=new Promise(((t,e)=>{n.resolve=t,n.reject=e}));return this._pendingBatch.push(n),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const t=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const e=t.map((t=>t.request));return this.emit("debug",{action:"requestBatch",request:(0,u.p$)(e),provider:this}),(0,p.rd)(this.connection,JSON.stringify(e)).then((r=>{this.emit("debug",{action:"response",request:e,response:r,provider:this}),t.forEach(((t,e)=>{const n=r[e];if(n.error){const e=new Error(n.error.message);e.code=n.error.code,e.data=n.error.data,t.reject(e)}else t.resolve(n.result)}))}),(r=>{this.emit("debug",{action:"response",error:r,request:e,provider:this}),t.forEach((t=>{t.reject(r)}))}))}),10)),o}}const Qt=new g.Yd(k);class te extends mt{static getApiKey(t){return t&&"string"!=typeof t&&Qt.throwArgumentError("invalid apiKey","apiKey",t),t||"ETHERS_JS_SHARED"}static getUrl(t,e){Qt.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let r=null;switch(t.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:Qt.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+e}}const ee=new g.Yd(k),re={homestead:"6004bcd10040261633ade990",ropsten:"6004bd4d0040261633ade991",rinkeby:"6004bda20040261633ade994",goerli:"6004bd860040261633ade992"};class ne extends mt{constructor(t,e){if(null==e){const r=(0,u.tu)(new.target,"getNetwork")(t);if(r){const t=re[r.name];t&&(e={applicationId:t,loadBalancer:!0})}null==e&&ee.throwError("unsupported network",g.Yd.errors.INVALID_ARGUMENT,{argument:"network",value:t})}super(t,e)}static getApiKey(t){null==t&&ee.throwArgumentError("PocketProvider.getApiKey does not support null apiKey","apiKey",t);const e={applicationId:null,loadBalancer:!1,applicationSecretKey:null};return"string"==typeof t?e.applicationId=t:null!=t.applicationSecretKey?(ee.assertArgument("string"==typeof t.applicationId,"applicationSecretKey requires an applicationId","applicationId",t.applicationId),ee.assertArgument("string"==typeof t.applicationSecretKey,"invalid applicationSecretKey","applicationSecretKey","[REDACTED]"),e.applicationId=t.applicationId,e.applicationSecretKey=t.applicationSecretKey,e.loadBalancer=!!t.loadBalancer):t.applicationId?(ee.assertArgument("string"==typeof t.applicationId,"apiKey.applicationId must be a string","apiKey.applicationId",t.applicationId),e.applicationId=t.applicationId,e.loadBalancer=!!t.loadBalancer):ee.throwArgumentError("unsupported PocketProvider apiKey","apiKey",t),e}static getUrl(t,e){let r=null;switch(t?t.name:"unknown"){case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"goerli":r="eth-goerli.gateway.pokt.network";break;default:ee.throwError("unsupported network",g.Yd.errors.INVALID_ARGUMENT,{argument:"network",value:t})}let n=null;n=e.loadBalancer?`https://${r}/v1/lb/${e.applicationId}`:`https://${r}/v1/${e.applicationId}`;const o={url:n,headers:{}};return null!=e.applicationSecretKey&&(o.user="",o.password=e.applicationSecretKey),o}isCommunityResource(){return this.applicationId===re[this.network.name]}}const oe=new g.Yd(k);let se=1;function ie(t,e){const r="Web3LegacyFetcher";return function(t,n){const o={method:t,params:n,id:se++,jsonrpc:"2.0"};return new Promise(((t,n)=>{this.emit("debug",{action:"request",fetcher:r,request:(0,u.p$)(o),provider:this}),e(o,((e,s)=>{if(e)return this.emit("debug",{action:"response",fetcher:r,error:e,request:o,provider:this}),n(e);if(this.emit("debug",{action:"response",fetcher:r,request:o,response:s,provider:this}),s.error){const t=new Error(s.error.message);return t.code=s.error.code,t.data=s.error.data,n(t)}t(s.result)}))}))}}class ae extends ot{constructor(t,e){oe.checkNew(new.target,ae),null==t&&oe.throwArgumentError("missing provider","provider",t);let r=null,n=null,o=null;"function"==typeof t?(r="unknown:",n=t):(r=t.host||t.path||"",!r&&t.isMetaMask&&(r="metamask"),o=t,t.request?(""===r&&(r="eip-1193:"),n=function(t){return function(e,r){null==r&&(r=[]);const n={method:e,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,u.p$)(n),provider:this}),t.request(n).then((t=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,response:t,provider:this}),t)),(t=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,error:t,provider:this}),t}))}}(t)):t.sendAsync?n=ie(0,t.sendAsync.bind(t)):t.send?n=ie(0,t.send.bind(t)):oe.throwArgumentError("unsupported provider","provider",t),r||(r="unknown:")),super(r,e),(0,u.zG)(this,"jsonRpcFetchFunc",n),(0,u.zG)(this,"provider",o)}send(t,e){return this.jsonRpcFetchFunc(t,e)}}const le=new g.Yd(k);function ce(t,e){if(null==t&&(t="homestead"),"string"==typeof t){const e=t.match(/^(ws|http)s?:/i);if(e)switch(e[1]){case"http":return new ot(t);case"ws":return new ut(t);default:le.throwArgumentError("unsupported URL scheme","network",t)}}const r=(0,o.H)(t);return r&&r._defaultProvider||le.throwError("unsupported getDefaultProvider network",g.Yd.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:t}),r._defaultProvider({FallbackProvider:Ht,AlchemyProvider:wt,CloudflareProvider:yt,EtherscanProvider:xt,InfuraProvider:Xt,JsonRpcProvider:ot,NodesmithProvider:te,PocketProvider:ne,Web3Provider:ae,IpcProvider:Wt},e)}}}]); \ No newline at end of file diff --git a/1331.2ae4073da754c55f.esm.js b/1331.2ae4073da754c55f.esm.js new file mode 100644 index 000000000..26eed8ba1 --- /dev/null +++ b/1331.2ae4073da754c55f.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1331],{71331:(n,e,t)=>{t.r(e),t.d(e,{default:()=>i});const i='\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'}}]); \ No newline at end of file diff --git a/1557.0e1100dcc17aaed4.esm.js b/1557.0e1100dcc17aaed4.esm.js new file mode 100644 index 000000000..dd1caa9d2 --- /dev/null +++ b/1557.0e1100dcc17aaed4.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1557],{61557:(c,n,t)=>{t.r(n),t.d(n,{default:()=>s});const s='\n\n\x3c!-- Generator: Adobe Illustrator 23.0.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n\n\n\n\n\n'}}]); \ No newline at end of file diff --git a/1597.dc85e3dc4654d1d7.esm.js b/1597.dc85e3dc4654d1d7.esm.js new file mode 100644 index 000000000..63ba4c706 --- /dev/null +++ b/1597.dc85e3dc4654d1d7.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1597],{21597:(c,s,e)=>{e.r(s),e.d(s,{default:()=>l});const l=''}}]); \ No newline at end of file diff --git a/190.cf636d2cc47b4e10.esm.js b/190.cf636d2cc47b4e10.esm.js new file mode 100644 index 000000000..e75a63bda --- /dev/null +++ b/190.cf636d2cc47b4e10.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[190],{70190:(A,D,t)=>{t.r(D),t.d(D,{default:()=>e});const e='\n\n\n\n\n\n\n\n\n'}}]); \ No newline at end of file diff --git a/2071.7ee2e24de11bab89.esm.js b/2071.7ee2e24de11bab89.esm.js new file mode 100644 index 000000000..e0ea381ce --- /dev/null +++ b/2071.7ee2e24de11bab89.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2071],{72071:(t,n,e)=>{e.r(n),e.d(n,{default:()=>W});var o=e(32332),i=e(99359),r=e(2131),a=e(84416);e(49531),e(94202),e(90059),e(75442),e(37020),e(89728),e(45905),e(74092),e(35630),e(56560);function s(t,{from:n,to:e},i={}){const r=getComputedStyle(t),a="none"===r.transform?"":r.transform,[s,l]=r.transformOrigin.split(" ").map(parseFloat),c=n.left+n.width*s/e.width-(e.left+s),d=n.top+n.height*l/e.height-(e.top+l),{delay:f=0,duration:p=(t=>120*Math.sqrt(t)),easing:v=o.an}=i;return{delay:f,duration:(0,o.Z)(p)?p(Math.sqrt(c*c+d*d)):p,easing:v,css:(t,o)=>{const i=o*c,r=o*d,s=t+o*n.width/e.width,l=t+o*n.height/e.height;return`transform: ${a} translate(${i}px, ${r}px) scale(${s}, ${l});`}}}function l(t){(0,o.a)(t,"svelte-13cuwwo","div.svelte-13cuwwo{box-sizing:content-box}.border.svelte-13cuwwo{border:2px solid;border-radius:120px;overflow:hidden}")}function c(t){let n,e;return{c(){n=(0,o.j)("div"),(0,o.k)(n,"class","border svelte-13cuwwo"),(0,o.k)(n,"style",e=`\n width: ${t[2]-2*t[3]}px; \n height: ${t[2]-2*t[3]}px; \n border-color: var(${t[1]}); \n padding: ${t[3]}px; \n background-color: ${t[4]};\n border-radius: 50%;\n display: flex;\n justify-content: center;\n `)},m(e,i){(0,o.b)(e,n,i),n.innerHTML=t[0]},p(t,[i]){1&i&&(n.innerHTML=t[0]),30&i&&e!==(e=`\n width: ${t[2]-2*t[3]}px; \n height: ${t[2]-2*t[3]}px; \n border-color: var(${t[1]}); \n padding: ${t[3]}px; \n background-color: ${t[4]};\n border-radius: 50%;\n display: flex;\n justify-content: center;\n `)&&(0,o.k)(n,"style",e)},i:o.n,o:o.n,d(t){t&&(0,o.d)(n)}}}function d(t,n,e){let{icon:o}=n,{borderColorVar:i}=n,{size:r}=n,{padding:a=0}=n,{background:s="transparent"}=n;return t.$$set=t=>{"icon"in t&&e(0,o=t.icon),"borderColorVar"in t&&e(1,i=t.borderColorVar),"size"in t&&e(2,r=t.size),"padding"in t&&e(3,a=t.padding),"background"in t&&e(4,s=t.background)},[o,i,r,a,s]}class f extends o.S{constructor(t){super(),(0,o.i)(this,t,d,c,o.s,{icon:0,borderColorVar:1,size:2,padding:3,background:4},l)}}function p(t){(0,o.a)(t,"svelte-jvic9v","div.notification-icons-wrapper.svelte-jvic9v{height:32px;width:32px}.border.svelte-jvic9v{border-radius:8px}div.notification-icon.svelte-jvic9v{padding:6px}div.pending-icon.svelte-jvic9v{animation:svelte-jvic9v-blink 2s ease-in infinite;height:100%;width:100%;padding:7px}@keyframes svelte-jvic9v-blink{from,to{opacity:1}50%{opacity:0.2}}div.border-action.svelte-jvic9v{height:32px;min-width:32px;border-radius:8px;overflow:hidden;will-change:transform}div.border-action.svelte-jvic9v:before{content:'';background-image:conic-gradient(#b1b7f2 20deg, #6370e5 120deg);height:140%;width:140%;position:absolute;left:-25%;top:-25%;animation:svelte-jvic9v-rotate 2s infinite linear}div.chain-icon-container.svelte-jvic9v{left:18px;top:18px}@keyframes svelte-jvic9v-rotate{100%{transform:rotate(-360deg)}}")}function v(t){let n,e,i,r,a,s,l,c,d=o.ao[t[1].type].eventIcon+"",f=!t[1].id.includes("customNotification")&&!t[1].id.includes("preflight"),p="pending"===t[1].type&&u(),v=f&&y(t);return{c(){n=(0,o.j)("div"),p&&p.c(),e=(0,o.G)(),i=(0,o.j)("div"),r=(0,o.j)("div"),l=(0,o.G)(),v&&v.c(),(0,o.k)(r,"class",a=(0,o.l)("notification-icon flex items-center justify-center "+("pending"===t[1].type?"pending-icon":""))+" svelte-jvic9v"),(0,o.k)(i,"class","flex items-center justify-center border relative notification-icons-wrapper svelte-jvic9v"),(0,o.k)(i,"style",s=`background:${o.ao[t[1].type].backgroundColor}; color: ${o.ao[t[1].type].iconColor||""}; ${"pending"===t[1].type?"height: 28px; width: 28px; margin: 2px;":`border: 2px solid ${o.ao[t[1].type].borderColor}`}; `),(0,o.k)(n,"class","relative")},m(t,a){(0,o.b)(t,n,a),p&&p.m(n,null),(0,o.m)(n,e),(0,o.m)(n,i),(0,o.m)(i,r),r.innerHTML=d,(0,o.m)(n,l),v&&v.m(n,null),c=!0},p(t,l){"pending"===t[1].type?p||(p=u(),p.c(),p.m(n,e)):p&&(p.d(1),p=null),(!c||2&l)&&d!==(d=o.ao[t[1].type].eventIcon+"")&&(r.innerHTML=d),(!c||2&l&&a!==(a=(0,o.l)("notification-icon flex items-center justify-center "+("pending"===t[1].type?"pending-icon":""))+" svelte-jvic9v"))&&(0,o.k)(r,"class",a),(!c||2&l&&s!==(s=`background:${o.ao[t[1].type].backgroundColor}; color: ${o.ao[t[1].type].iconColor||""}; ${"pending"===t[1].type?"height: 28px; width: 28px; margin: 2px;":`border: 2px solid ${o.ao[t[1].type].borderColor}`}; `))&&(0,o.k)(i,"style",s),2&l&&(f=!t[1].id.includes("customNotification")&&!t[1].id.includes("preflight")),f?v?(v.p(t,l),2&l&&(0,o.x)(v,1)):(v=y(t),v.c(),(0,o.x)(v,1),v.m(n,null)):v&&((0,o.y)(),(0,o.A)(v,1,1,(()=>{v=null})),(0,o.z)())},i(t){c||((0,o.x)(v),c=!0)},o(t){(0,o.A)(v),c=!1},d(t){t&&(0,o.d)(n),p&&p.d(),v&&v.d()}}}function u(t){let n;return{c(){n=(0,o.j)("div"),(0,o.k)(n,"class","border-action absolute svelte-jvic9v")},m(t,e){(0,o.b)(t,n,e)},d(t){t&&(0,o.d)(n)}}}function y(t){let n,e,i;return e=new f({props:{icon:t[0].icon,size:16,background:t[0].color,borderColorVar:"--notify-onboard-background, var(--onboard-gray-600, var(--gray-600))",padding:3}}),{c(){n=(0,o.j)("div"),(0,o.F)(e.$$.fragment),(0,o.k)(n,"class","absolute chain-icon-container svelte-jvic9v")},m(t,r){(0,o.b)(t,n,r),(0,o.I)(e,n,null),i=!0},p(t,n){const o={};1&n&&(o.icon=t[0].icon),1&n&&(o.background=t[0].color),e.$set(o)},i(t){i||((0,o.x)(e.$$.fragment,t),i=!0)},o(t){(0,o.A)(e.$$.fragment,t),i=!1},d(t){t&&(0,o.d)(n),(0,o.K)(e)}}}function m(t){let n,e,i=t[1].type&&v(t);return{c(){i&&i.c(),n=(0,o.e)()},m(t,r){i&&i.m(t,r),(0,o.b)(t,n,r),e=!0},p(t,[e]){t[1].type?i?(i.p(t,e),2&e&&(0,o.x)(i,1)):(i=v(t),i.c(),(0,o.x)(i,1),i.m(n.parentNode,n)):i&&((0,o.y)(),(0,o.A)(i,1,1,(()=>{i=null})),(0,o.z)())},i(t){e||((0,o.x)(i),e=!0)},o(t){(0,o.A)(i),e=!1},d(t){i&&i.d(t),t&&(0,o.d)(n)}}}function b(t,n,e){let{chainStyles:i=o.a6}=n,{notification:r}=n;return t.$$set=t=>{"chainStyles"in t&&e(0,i=t.chainStyles),"notification"in t&&e(1,r=t.notification)},[i,r]}class h extends o.S{constructor(t){super(),(0,o.i)(this,t,b,m,o.s,{chainStyles:0,notification:1},p)}}function g(t){(0,o.a)(t,"svelte-pm7idu","div.svelte-pm7idu{display:flex;justify-content:center;font-size:inherit;font-family:inherit;margin:0 1.5rem 0 0.75rem}span.svelte-pm7idu{font-family:inherit;display:flex;align-items:center;margin:0 2px}.time.svelte-pm7idu{color:var(\n --notify-onboard-timer-color,\n var(--onboard-gray-300, var(--gray-300))\n );margin-left:4px}")}function k(t){let n,e,i,r,a=t[2](t[1]-t[0])+"";return{c(){n=(0,o.t)("-\n "),e=(0,o.j)("span"),i=(0,o.t)(a),r=(0,o.t)("\n ago"),(0,o.k)(e,"class","svelte-pm7idu")},m(t,a){(0,o.b)(t,n,a),(0,o.b)(t,e,a),(0,o.m)(e,i),(0,o.b)(t,r,a)},p(t,n){3&n&&a!==(a=t[2](t[1]-t[0])+"")&&(0,o.v)(i,a)},d(t){t&&(0,o.d)(n),t&&(0,o.d)(e),t&&(0,o.d)(r)}}}function x(t){let n,e=t[0]&&k(t);return{c(){n=(0,o.j)("div"),e&&e.c(),(0,o.k)(n,"class","time svelte-pm7idu")},m(t,i){(0,o.b)(t,n,i),e&&e.m(n,null)},p(t,[o]){t[0]?e?e.p(t,o):(e=k(t),e.c(),e.m(n,null)):e&&(e.d(1),e=null)},i:o.n,o:o.n,d(t){t&&(0,o.d)(n),e&&e.d()}}}function w(t,n,e){let r,a;(0,o.c)(t,i._,(t=>e(3,r=t))),(0,o.c)(t,i.SP,(t=>e(4,a=t)));let{startTime:s}=n;let l=Date.now();const c=setInterval((()=>{e(1,l=Date.now())}),1e3);return(0,o.al)((()=>{clearInterval(c)})),t.$$set=t=>{"startTime"in t&&e(0,s=t.startTime)},[s,l,function(t){const n=Math.floor(t/1e3),e=n<0?0:n;return e>=60?`${Math.floor(e/60).toLocaleString(a)} ${r("notify.time.minutes")}`:`${e.toLocaleString(a)} ${r("notify.time.seconds")}`}]}class $ extends o.S{constructor(t){super(),(0,o.i)(this,t,w,x,o.s,{startTime:0},g)}}function j(t){(0,o.a)(t,"svelte-1otz6tt","div.notify-transaction-data.svelte-1otz6tt{font-size:var(\n --notify-onboard-transaction-font-size,\n var(--onboard-font-size-6, var(--font-size-6))\n );font-family:inherit;margin:0px 20px 0px 8px;justify-content:center}.hash-time.svelte-1otz6tt{display:inline-flex;margin-top:4px;font-size:var(\n --notify-onboard-hash-time-font-size,\n var(--onboard-font-size-7, var(--font-size-7))\n );line-height:var(\n --notify-onboard-hash-time-font-line-height,\n var(--onboard-font-line-height-4, var(--font-line-height-4))\n )}.address-hash.svelte-1otz6tt{color:var(\n --notify-onboard-address-hash-color,\n var(--onboard-primary-200, var(--primary-200))\n )}a.address-hash.svelte-1otz6tt{color:var(\n --notify-onboard-anchor-color,\n var(--onboard-primary-400, var(--primary-400))\n )}a.svelte-1otz6tt{display:flex;text-decoration:none;color:inherit}.transaction-status.svelte-1otz6tt{color:var(--notify-onboard-transaction-status, inherit);line-height:var(\n --notify-onboard-font-size-5,\n var(--onboard-font-size-5, var(--font-size-5))\n );font-weight:400;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}")}function z(t){let n,e,i,r;function a(t,n){return t[0].link?L:C}let s=a(t),l=s(t);return i=new $({props:{startTime:t[0].startTime}}),{c(){n=(0,o.j)("span"),l.c(),e=(0,o.G)(),(0,o.F)(i.$$.fragment),(0,o.k)(n,"class","hash-time svelte-1otz6tt")},m(t,a){(0,o.b)(t,n,a),l.m(n,null),(0,o.m)(n,e),(0,o.I)(i,n,null),r=!0},p(t,o){s===(s=a(t))&&l?l.p(t,o):(l.d(1),l=s(t),l&&(l.c(),l.m(n,e)));const r={};1&o&&(r.startTime=t[0].startTime),i.$set(r)},i(t){r||((0,o.x)(i.$$.fragment,t),r=!0)},o(t){(0,o.A)(i.$$.fragment,t),r=!1},d(t){t&&(0,o.d)(n),l.d(),(0,o.K)(i)}}}function C(t){let n,e,i=(0,o.E)(t[0].id)+"";return{c(){n=(0,o.j)("div"),e=(0,o.t)(i),(0,o.k)(n,"class","address-hash svelte-1otz6tt")},m(t,i){(0,o.b)(t,n,i),(0,o.m)(n,e)},p(t,n){1&n&&i!==(i=(0,o.E)(t[0].id)+"")&&(0,o.v)(e,i)},d(t){t&&(0,o.d)(n)}}}function L(t){let n,e,i,r=(0,o.E)(t[0].id)+"";return{c(){n=(0,o.j)("a"),e=(0,o.t)(r),(0,o.k)(n,"class","address-hash svelte-1otz6tt"),(0,o.k)(n,"href",i=t[0].link),(0,o.k)(n,"target","_blank"),(0,o.k)(n,"rel","noreferrer noopener")},m(t,i){(0,o.b)(t,n,i),(0,o.m)(n,e)},p(t,a){1&a&&r!==(r=(0,o.E)(t[0].id)+"")&&(0,o.v)(e,r),1&a&&i!==(i=t[0].link)&&(0,o.k)(n,"href",i)},d(t){t&&(0,o.d)(n)}}}function P(t){let n,e,i,r,a,s=t[0].message+"",l=t[0].id&&!t[0].id.includes("customNotification")&&!t[0].id.includes("preflight"),c=l&&z(t);return{c(){n=(0,o.j)("div"),e=(0,o.j)("span"),i=(0,o.t)(s),r=(0,o.G)(),c&&c.c(),(0,o.k)(e,"class","transaction-status svelte-1otz6tt"),(0,o.k)(n,"class","flex flex-column notify-transaction-data svelte-1otz6tt")},m(t,s){(0,o.b)(t,n,s),(0,o.m)(n,e),(0,o.m)(e,i),(0,o.m)(n,r),c&&c.m(n,null),a=!0},p(t,[e]){(!a||1&e)&&s!==(s=t[0].message+"")&&(0,o.v)(i,s),1&e&&(l=t[0].id&&!t[0].id.includes("customNotification")&&!t[0].id.includes("preflight")),l?c?(c.p(t,e),1&e&&(0,o.x)(c,1)):(c=z(t),c.c(),(0,o.x)(c,1),c.m(n,null)):c&&((0,o.y)(),(0,o.A)(c,1,1,(()=>{c=null})),(0,o.z)())},i(t){a||((0,o.x)(c),a=!0)},o(t){(0,o.A)(c),a=!1},d(t){t&&(0,o.d)(n),c&&c.d()}}}function T(t,n,e){let{notification:o}=n;return t.$$set=t=>{"notification"in t&&e(0,o=t.notification)},[o]}class S extends o.S{constructor(t){super(),(0,o.i)(this,t,T,P,o.s,{notification:0},j)}}const A=["txPool"],M=["main","matic-main"],F=["Ledger","Trezor","Keystone","KeepKey","D'CENT"],G=t=>A.includes(t),I=t=>M.includes(t),R=t=>t&&F.includes(t.label);async function E({type:t,wallet:n,transaction:e}){const{from:i,input:r,value:s,to:l,nonce:c,gas:d,network:f}=e,p=o.ap[f],{gasPriceProbability:v}=o.a3.get().notify.replacement,{gas:u,apiKey:y}=o.af,[m]=await u.get({chains:[o.ap[f]],endpoint:"blockPrices",apiKey:y}),{maxFeePerGas:b,maxPriorityFeePerGas:h}=m.blockPrices[0].estimatedPrices.find((({confidence:n})=>n===("speedup"===t?v.speedup:v.cancel))),g=(0,o.aq)(b),k=(0,o.aq)(h),x="0x"===r?{}:{data:r};return n.provider.request({method:"eth_sendTransaction",params:[{type:"0x2",from:i,to:"cancel"===t?i:l,chainId:parseInt(p),value:`${a.O$.from(s).toHexString()}`,nonce:(0,o.ar)(c),gasLimit:(0,o.ar)(d),maxFeePerGas:g,maxPriorityFeePerGas:k,...x}]})}function H(t){(0,o.a)(t,"svelte-ftkynd",".bn-notify-notification.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{--backround-color:var(--notify-onboard-background, var(--w3o-backround-color, var(--gray-700)));--foreground-color:var(--w3o-foreground-color, var(--gray-600));--text-color:var(--w3o-text-color, #FFF);--border-color:var(--w3o-border-color);font-family:inherit;transition:background 300ms ease-in-out, color 300ms ease-in-out;pointer-events:all;backdrop-filter:blur(5px);width:100%;min-height:56px;display:flex;flex-direction:column;position:relative;overflow:hidden;border:1px solid transparent;border-radius:var(\n --notify-onboard-border-radius,\n var(--onboard-border-radius-4, var(--border-radius-4))\n );background:var(--foreground-color);color:var(--text-color)}.bn-notify-notification-inner.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{padding:0.75rem}.bn-notify-notification.svelte-ftkynd:hover>div.bn-notify-notification-inner.svelte-ftkynd>div.notify-close-btn-desktop.svelte-ftkynd{visibility:visible;opacity:1}div.notify-close-btn.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{margin-left:auto;margin-bottom:auto;height:24px;width:24px;position:absolute;top:8px;right:8px;justify-content:center;align-items:center}div.notify-close-btn-desktop.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{visibility:hidden;transition:visibility 0.15s linear, opacity 0.15s linear;opacity:0}.notify-close-btn.svelte-ftkynd .close-icon.svelte-ftkynd.svelte-ftkynd{width:20px;margin:auto;color:var(--text-color)}.notify-close-btn.svelte-ftkynd>.close-icon.svelte-ftkynd.svelte-ftkynd{color:var(--notify-onboard-close-icon-color)}.notify-close-btn.svelte-ftkynd:hover>.close-icon.svelte-ftkynd.svelte-ftkynd{color:var(--notify-onboard-close-icon-hover)}.transaction-status.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{color:var(\n --notify-onboard-transaction-status-color,\n var(--onboard-primary-100, var(--primary-100))\n );line-height:14px}.dropdown.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{height:0px;overflow:hidden;transition:height 150ms ease-in-out}.dropdown-visible.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{height:48px}.dropdown-buttons.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{background-color:var(\n --notify-onboard-dropdown-background,\n var(--onboard-gray-700, var(--gray-700))\n );width:100%;padding:8px}.dropdown-button.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd{padding:4px 12px;border-radius:var(\n --notify-onboard-dropdown-border-radius,\n var(--onboard-border-radius-5, var(--border-radius-5))\n );background-color:transparent;font-size:var(\n --notify-onboard-dropdown-font-size,\n var(--onboard-font-size-6, var(--font-size-6))\n );color:var(\n --notify-onboard-dropdown-text-color,\n var(--onboard-primary-400, var(--primary-400))\n );transition:all 150ms ease-in-out;cursor:pointer}.dropdown-button.svelte-ftkynd.svelte-ftkynd.svelte-ftkynd:hover{background:var(\n --notify-onboard-dropdown-btn-hover-background,\n rgba(146, 155, 237, 0.2)\n )}")}function K(t){let n,e,i,r,a,s;return{c(){n=(0,o.j)("div"),e=(0,o.j)("button"),e.textContent="Cancel",i=(0,o.G)(),r=(0,o.j)("button"),r.textContent="Speed-up",(0,o.k)(e,"class","dropdown-button svelte-ftkynd"),(0,o.k)(r,"class","dropdown-button svelte-ftkynd"),(0,o.k)(n,"class","dropdown-buttons flex items-center justify-end svelte-ftkynd")},m(l,c){(0,o.b)(l,n,c),(0,o.m)(n,e),(0,o.m)(n,i),(0,o.m)(n,r),a||(s=[(0,o.p)(e,"click",t[9]),(0,o.p)(r,"click",t[10])],a=!0)},p:o.n,d(t){t&&(0,o.d)(n),a=!1,(0,o.L)(s)}}}function D(t){let n,e,i,r,a,s,l,c,d,f,p,v,u,y;i=new h({props:{notification:t[0],chainStyles:o.as[o.ap[t[0].network]]}}),a=new S({props:{notification:t[0]}});let m="txPool"===t[0].eventCode&&K(t);return{c(){n=(0,o.j)("div"),e=(0,o.j)("div"),(0,o.F)(i.$$.fragment),r=(0,o.G)(),(0,o.F)(a.$$.fragment),s=(0,o.G)(),l=(0,o.j)("div"),c=(0,o.j)("div"),d=(0,o.G)(),f=(0,o.j)("div"),m&&m.c(),(0,o.k)(c,"class","flex items-center close-icon svelte-ftkynd"),(0,o.k)(l,"class","notify-close-btn notify-close-btn-"+t[4].type+" pointer flex svelte-ftkynd"),(0,o.k)(e,"class","flex bn-notify-notification-inner svelte-ftkynd"),(0,o.k)(f,"class","dropdown svelte-ftkynd"),(0,o.H)(f,"dropdown-visible",t[2]&&t[5]&&G(t[0].eventCode)&&I(t[0].network)&&R(t[7])),(0,o.k)(n,"class",p="bn-notify-notification bn-notify-notification-"+t[0].type+"} svelte-ftkynd"),(0,o.H)(n,"bn-notify-clickable",t[0].onClick)},m(p,b){(0,o.b)(p,n,b),(0,o.m)(n,e),(0,o.I)(i,e,null),(0,o.m)(e,r),(0,o.I)(a,e,null),(0,o.m)(e,s),(0,o.m)(e,l),(0,o.m)(l,c),c.innerHTML='\n\n \n\n',(0,o.m)(n,d),(0,o.m)(n,f),m&&m.m(f,null),v=!0,u||(y=[(0,o.p)(l,"click",(0,o.J)(t[8])),(0,o.p)(n,"mouseenter",t[11]),(0,o.p)(n,"mouseleave",t[12]),(0,o.p)(n,"click",t[13])],u=!0)},p(t,[e]){const r={};1&e&&(r.notification=t[0]),1&e&&(r.chainStyles=o.as[o.ap[t[0].network]]),i.$set(r);const s={};1&e&&(s.notification=t[0]),a.$set(s),"txPool"===t[0].eventCode?m?m.p(t,e):(m=K(t),m.c(),m.m(f,null)):m&&(m.d(1),m=null),(!v||165&e)&&(0,o.H)(f,"dropdown-visible",t[2]&&t[5]&&G(t[0].eventCode)&&I(t[0].network)&&R(t[7])),(!v||1&e&&p!==(p="bn-notify-notification bn-notify-notification-"+t[0].type+"} svelte-ftkynd"))&&(0,o.k)(n,"class",p),(!v||1&e)&&(0,o.H)(n,"bn-notify-clickable",t[0].onClick)},i(t){v||((0,o.x)(i.$$.fragment,t),(0,o.x)(a.$$.fragment,t),v=!0)},o(t){(0,o.A)(i.$$.fragment,t),(0,o.A)(a.$$.fragment,t),v=!1},d(t){t&&(0,o.d)(n),(0,o.K)(i),(0,o.K)(a),m&&m.d(),u=!1,(0,o.L)(y)}}}function N(t,n,e){let r,a;(0,o.c)(t,o.w,(t=>e(15,r=t))),(0,o.c)(t,i._,(t=>e(3,a=t)));const{device:s,gas:l}=o.af;let c,{notification:d}=n,{updateParentOnRemove:f}=n,p=!1;const v=o.at.getValue().find((({hash:t})=>t===d.id)),u=v&&r.find((({accounts:t})=>!!t.find((({address:t})=>t.toLowerCase()===v.from.toLowerCase()))));(0,o.al)((()=>{clearTimeout(c)}));return t.$$set=t=>{"notification"in t&&e(0,d=t.notification),"updateParentOnRemove"in t&&e(1,f=t.updateParentOnRemove)},t.$$.update=()=>{1&t.$$.dirty&&d.autoDismiss&&(c=setTimeout((()=>{(0,o.au)(d.id),(0,o.av)(d.id)}),d.autoDismiss))},[d,f,p,a,s,l,v,u,()=>{(0,o.au)(d.id),(0,o.av)(d.id),f()},async()=>{try{await E({type:"cancel",wallet:u,transaction:v})}catch(t){const n=`${v.hash.slice(0,9)}:txReplaceError${v.hash.slice(-5)}`;(0,o.aw)({id:n,type:"hint",eventCode:"txError",message:a("notify.transaction.txReplaceError"),key:n,autoDismiss:4e3})}},async()=>{try{await E({type:"speedup",wallet:u,transaction:v})}catch(t){const n=`${v.hash.slice(0,9)}:txReplaceError${v.hash.slice(-5)}`;(0,o.aw)({id:n,type:"hint",eventCode:"txError",message:a("notify.transaction.txReplaceError"),key:n,autoDismiss:4e3})}},()=>e(2,p=!0),()=>e(2,p=!1),t=>d.onClick&&d.onClick(t)]}class O extends o.S{constructor(t){super(),(0,o.i)(this,t,N,D,o.s,{notification:0,updateParentOnRemove:1},H)}}function V(t){(0,o.a)(t,"svelte-1h8mmo3","ul.svelte-1h8mmo3{padding-left:0;display:flex;flex-flow:column nowrap;font-size:var(\n --notify-onboard-font-size,\n var(--onboard-font-size-5, var(--font-size-5))\n );list-style-type:none;overflow:visible;scrollbar-width:none;box-sizing:border-box;z-index:var(--notify-onboard-z-index, 300);font-family:var(\n --notify-onboard-font-family,\n var(--onboard-font-family-normal, inherit)\n );margin:8px 0;pointer-events:all}.y-scroll.svelte-1h8mmo3{overflow-y:scroll}.y-visible.svelte-1h8mmo3{overflow-y:visible}li.notification-list-top.svelte-1h8mmo3:not(:first-child){margin-top:8px}li.notification-list-bottom.svelte-1h8mmo3:not(:first-child){margin-bottom:8px}ul.bn-notify-bottomLeft.svelte-1h8mmo3,ul.bn-notify-bottomRight.svelte-1h8mmo3{flex-direction:column-reverse}@media only screen and (max-width: 450px){ul.svelte-1h8mmo3{width:100%}}.bn-notify-clickable:hover{cursor:pointer}.svelte-1h8mmo3::-webkit-scrollbar{display:none}")}function q(t,n,e){const o=t.slice();return o[12]=n[e],o}function _(t){let n,e,i,r,a=[],s=new Map,l=t[2];const c=t=>t[12].key;for(let o=0;o{f&&(c&&c.end(1),l=(0,o.V)(e,o.ab,{duration:1200,delay:300,x:n[3],y:n[4],easing:J}),l.start())})),f=!0)},o(t){(0,o.A)(i.$$.fragment,t),l&&l.invalidate(),c=(0,o.ak)(e,o.X,{duration:300,easing:o.an}),f=!1},d(t){t&&(0,o.d)(e),(0,o.K)(i),t&&c&&c.end(),p=!1,v()}}}function B(t){let n,e,i=t[2].length&&_(t);return{c(){i&&i.c(),n=(0,o.e)()},m(t,r){i&&i.m(t,r),(0,o.b)(t,n,r),e=!0},p(t,[e]){t[2].length?i?(i.p(t,e),4&e&&(0,o.x)(i,1)):(i=_(t),i.c(),(0,o.x)(i,1),i.m(n.parentNode,n)):i&&((0,o.y)(),(0,o.A)(i,1,1,(()=>{i=null})),(0,o.z)())},i(t){e||((0,o.x)(i),e=!0)},o(t){(0,o.A)(i),e=!1},d(t){i&&i.d(t),t&&(0,o.d)(n)}}}function J(t){return Math.sin(-13*(t+1)*Math.PI/2)*Math.pow(2,-35*t)+1}function U(t,n,e){let i;const{device:a}=o.af,s=o.a3.select("accountCenter").pipe((0,r.startWith)(o.a3.get().accountCenter),(0,r.shareReplay)(1));(0,o.c)(t,s,(t=>e(6,i=t)));let l,c,{position:d}=n,{sharedContainer:f}=n,{notifications:p}=n;l=0,c=0;let v="y-scroll";const u=function(){let t=null;return(n,e)=>{clearTimeout(t),t=setTimeout(n,e)}}();return t.$$set=t=>{"position"in t&&e(0,d=t.position),"sharedContainer"in t&&e(1,f=t.sharedContainer),"notifications"in t&&e(2,p=t.notifications)},t.$$.update=()=>{1&t.$$.dirty&&(d.includes("top")?e(4,c=-50):e(4,c=50))},[d,f,p,0,c,v,i,a,s,()=>{"y-visible"!==v&&e(5,v="y-visible"),u((function(){e(5,v="y-scroll")}),1e3)},function(n){o.ai.call(this,t,n)}]}class W extends o.S{constructor(t){super(),(0,o.i)(this,t,U,B,o.s,{position:0,sharedContainer:1,notifications:2},V)}}}}]); \ No newline at end of file diff --git a/2156.9d079842b723f75a.esm.js b/2156.9d079842b723f75a.esm.js new file mode 100644 index 000000000..feff5a710 --- /dev/null +++ b/2156.9d079842b723f75a.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2156],{42156:(n,A,e)=>{e.r(A),e.d(A,{default:()=>I});const I=' \n'}}]); \ No newline at end of file diff --git a/2422.23a03fcb8b094df6.esm.js b/2422.23a03fcb8b094df6.esm.js new file mode 100644 index 000000000..fbd0ace2d --- /dev/null +++ b/2422.23a03fcb8b094df6.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2422],{2422:(l,h,t)=>{t.r(h),t.d(h,{default:()=>f});const f='\n \n'}}]); \ No newline at end of file diff --git a/2459.a7675ea34a1a95e3.esm.js b/2459.a7675ea34a1a95e3.esm.js new file mode 100644 index 000000000..a716f7e6e --- /dev/null +++ b/2459.a7675ea34a1a95e3.esm.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[2459],{82459:(e,t,n)=>{var r=n(98399),o=n(13158);function i(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var a=n(47177),l=i(n(80437)),c=i(n(8412)),u=n(1438);"undefined"!=typeof Symbol&&(Symbol.iterator||(Symbol.iterator=Symbol("Symbol.iterator"))),"undefined"!=typeof Symbol&&(Symbol.asyncIterator||(Symbol.asyncIterator=Symbol("Symbol.asyncIterator")));var s="walletconnect-wrapper",f="walletconnect-style-sheet",p="walletconnect-qrcode-modal",h="walletconnect-qrcode-text";function d(e){return u.createElement("div",{className:"walletconnect-modal__header"},u.createElement("img",{src:"data:image/svg+xml,%3Csvg height='185' viewBox='0 0 300 185' width='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m61.4385429 36.2562612c48.9112241-47.8881663 128.2119871-47.8881663 177.1232091 0l5.886545 5.7634174c2.445561 2.3944081 2.445561 6.2765112 0 8.6709204l-20.136695 19.715503c-1.222781 1.1972051-3.2053 1.1972051-4.428081 0l-8.100584-7.9311479c-34.121692-33.4079817-89.443886-33.4079817-123.5655788 0l-8.6750562 8.4936051c-1.2227816 1.1972041-3.205301 1.1972041-4.4280806 0l-20.1366949-19.7155031c-2.4455612-2.3944092-2.4455612-6.2765122 0-8.6709204zm218.7677961 40.7737449 17.921697 17.546897c2.445549 2.3943969 2.445563 6.2764769.000031 8.6708899l-80.810171 79.121134c-2.445544 2.394426-6.410582 2.394453-8.85616.000062-.00001-.00001-.000022-.000022-.000032-.000032l-57.354143-56.154572c-.61139-.598602-1.60265-.598602-2.21404 0-.000004.000004-.000007.000008-.000011.000011l-57.3529212 56.154531c-2.4455368 2.394432-6.4105755 2.394472-8.8561612.000087-.0000143-.000014-.0000296-.000028-.0000449-.000044l-80.81241943-79.122185c-2.44556021-2.394408-2.44556021-6.2765115 0-8.6709197l17.92172963-17.5468673c2.4455602-2.3944082 6.4105989-2.3944082 8.8561602 0l57.3549775 56.155357c.6113908.598602 1.602649.598602 2.2140398 0 .0000092-.000009.0000174-.000017.0000265-.000024l57.3521031-56.155333c2.445505-2.3944633 6.410544-2.3945531 8.856161-.0002.000034.0000336.000068.0000673.000101.000101l57.354902 56.155432c.61139.598601 1.60265.598601 2.21404 0l57.353975-56.1543249c2.445561-2.3944092 6.410599-2.3944092 8.85616 0z' fill='%233b99fc'/%3E%3C/svg%3E",className:"walletconnect-modal__headerLogo"}),u.createElement("p",null,"WalletConnect"),u.createElement("div",{className:"walletconnect-modal__close__wrapper",onClick:e.onClose},u.createElement("div",{id:"walletconnect-qrcode-close",className:"walletconnect-modal__close__icon"},u.createElement("div",{className:"walletconnect-modal__close__line1"}),u.createElement("div",{className:"walletconnect-modal__close__line2"}))))}function _(e){return u.createElement("a",{className:"walletconnect-connect__button",href:e.href,id:"walletconnect-connect-button-"+e.name,onClick:e.onClick,rel:"noopener noreferrer",style:{backgroundColor:e.color},target:"_blank"},e.name)}function g(e){var t=e.color,n=e.href,r=e.name,o=e.logo,i=e.onClick;return u.createElement("a",{className:"walletconnect-modal__base__row",href:n,onClick:i,rel:"noopener noreferrer",target:"_blank"},u.createElement("h3",{className:"walletconnect-modal__base__row__h3"},r),u.createElement("div",{className:"walletconnect-modal__base__row__right"},u.createElement("div",{className:"walletconnect-modal__base__row__right__app-icon",style:{background:"url('"+o+"') "+t,backgroundSize:"100%"}}),u.createElement("img",{src:"data:image/svg+xml,%3Csvg fill='none' height='18' viewBox='0 0 8 18' width='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath clip-rule='evenodd' d='m.586301.213898c-.435947.33907-.5144813.967342-.175411 1.403292l4.87831 6.27212c.28087.36111.28087.86677 0 1.22788l-4.878311 6.27211c-.33907.436-.260536 1.0642.175412 1.4033.435949.3391 1.064219.2605 1.403289-.1754l4.87832-6.2721c.84259-1.08336.84259-2.60034 0-3.68367l-4.87832-6.27212c-.33907-.4359474-.96734-.514482-1.403289-.175412z' fill='%233c4252' fill-rule='evenodd'/%3E%3C/svg%3E",className:"walletconnect-modal__base__row__right__caret"})))}function m(e){var t=e.color,n=e.href,r=e.name,o=e.logo,i=e.onClick,a=window.innerWidth<768?(r.length>8?2.5:2.7)+"vw":"inherit";return u.createElement("a",{className:"walletconnect-connect__button__icon_anchor",href:n,onClick:i,rel:"noopener noreferrer",target:"_blank"},u.createElement("div",{className:"walletconnect-connect__button__icon",style:{background:"url('"+o+"') "+t,backgroundSize:"100%"}}),u.createElement("div",{style:{fontSize:a},className:"walletconnect-connect__button__text"},r))}function v(e){var t=a.isAndroid(),n=u.useState(""),r=n[0],o=n[1],i=u.useState(""),l=i[0],c=i[1],s=u.useState(1),f=s[0],p=s[1],d=l?e.links.filter((function(e){return e.name.toLowerCase().includes(l.toLowerCase())})):e.links,v=e.errorMessage,y=l||d.length>5,w=Math.ceil(d.length/12),b=[12*(f-1)+1,12*f],E=d.length?d.filter((function(e,t){return t+1>=b[0]&&t+1<=b[1]})):[],x=!(t||!(w>1)),C=void 0;return u.createElement("div",null,u.createElement("p",{id:h,className:"walletconnect-qrcode__text"},t?e.text.connect_mobile_wallet:e.text.choose_preferred_wallet),!t&&u.createElement("input",{className:"walletconnect-search__input",placeholder:"Search",value:r,onChange:function(e){o(e.target.value),clearTimeout(C),e.target.value?C=setTimeout((function(){c(e.target.value),p(1)}),1e3):(o(""),c(""),p(1))}}),u.createElement("div",{className:"walletconnect-connect__buttons__wrapper"+(t?"__android":y&&d.length?"__wrap":"")},t?u.createElement(_,{name:e.text.connect,color:"rgb(64, 153, 255)",href:e.uri,onClick:u.useCallback((function(){a.saveMobileLinkInfo({name:"Unknown",href:e.uri})}),[])}):E.length?E.map((function(t){var n=t.color,r=t.name,o=t.shortName,i=t.logo,l=a.formatIOSMobile(e.uri,t),c=u.useCallback((function(){a.saveMobileLinkInfo({name:r,href:l})}),[E]);return y?u.createElement(m,{color:n,href:l,name:o||r,logo:i,onClick:c}):u.createElement(g,{color:n,href:l,name:r,logo:i,onClick:c})})):u.createElement(u.Fragment,null,u.createElement("p",null,v.length?e.errorMessage:e.links.length&&!d.length?e.text.no_wallets_found:e.text.loading))),x&&u.createElement("div",{className:"walletconnect-modal__footer"},Array(w).fill(0).map((function(e,t){var n=t+1,r=f===n;return u.createElement("a",{style:{margin:"auto 10px",fontWeight:r?"bold":"normal"},onClick:function(){return p(n)}},n)}))))}function y(e){var t=!!e.message.trim();return u.createElement("div",{className:"walletconnect-qrcode__notification"+(t?" notification__show":"")},e.message)}function w(e){var t=u.useState(""),n=t[0],r=t[1],o=u.useState(""),i=o[0],a=o[1];u.useEffect((function(){try{return Promise.resolve(function(e){try{var t="";return Promise.resolve(l.toString(e,{margin:0,type:"svg"})).then((function(e){return"string"==typeof e&&(t=e.replace("0||u.useEffect((function(){!function(){try{if(t)return Promise.resolve();c(!0);var i=function(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}((function(){var t=e.qrcodeModalOptions&&e.qrcodeModalOptions.registryUrl?e.qrcodeModalOptions.registryUrl:a.getWalletRegistryUrl();return Promise.resolve(fetch(t)).then((function(t){return Promise.resolve(t.json()).then((function(t){var r=t.listings,i=n?"mobile":"desktop",l=a.getMobileLinkRegistry(a.formatMobileRegistry(r,i),o);c(!1),h(!0),U(l.length?"":e.text.no_supported_wallets),S(l);var u=1===l.length;u&&(x(a.formatIOSMobile(e.uri,l[0])),m(!0)),k(u)}))}))}),(function(t){c(!1),h(!0),U(e.text.something_went_wrong),r.error(t)}));Promise.resolve(i&&i.then?i.then((function(){})):void 0)}catch(l){return Promise.reject(l)}}()}))};N();var I=n?g:!g;return u.createElement("div",{id:p,className:"walletconnect-qrcode__base animated fadeIn"},u.createElement("div",{className:"walletconnect-modal__base"},u.createElement(d,{onClose:e.onClose}),A&&g?u.createElement("div",{className:"walletconnect-modal__single_wallet"},u.createElement("a",{onClick:function(){return a.saveMobileLinkInfo({name:R[0].name,href:E})},href:E,rel:"noopener noreferrer",target:"_blank"},e.text.connect_with+" "+(A?R[0].name:"")+" \u203a")):t||l||!l&&R.length?u.createElement("div",{className:"walletconnect-modal__mobile__toggle"+(I?" right__selected":"")},u.createElement("div",{className:"walletconnect-modal__mobile__toggle_selector"}),n?u.createElement(u.Fragment,null,u.createElement("a",{onClick:function(){return m(!1),N()}},e.text.mobile),u.createElement("a",{onClick:function(){return m(!0)}},e.text.qrcode)):u.createElement(u.Fragment,null,u.createElement("a",{onClick:function(){return m(!0)}},e.text.qrcode),u.createElement("a",{onClick:function(){return m(!1),N()}},e.text.desktop))):null,u.createElement("div",null,g||!t&&!l&&!R.length?u.createElement(w,Object.assign({},y)):u.createElement(v,Object.assign({},y,{links:R,errorMessage:P})))))}var E={de:{choose_preferred_wallet:"W\xe4hle bevorzugte Wallet",connect_mobile_wallet:"Verbinde mit Mobile Wallet",scan_qrcode_with_wallet:"Scanne den QR-code mit einer WalletConnect kompatiblen Wallet",connect:"Verbinden",qrcode:"QR-Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"In die Zwischenablage kopieren",copied_to_clipboard:"In die Zwischenablage kopiert!",connect_with:"Verbinden mit Hilfe von",loading:"Laden...",something_went_wrong:"Etwas ist schief gelaufen",no_supported_wallets:"Es gibt noch keine unterst\xfctzten Wallet",no_wallets_found:"keine Wallet gefunden"},en:{choose_preferred_wallet:"Choose your preferred wallet",connect_mobile_wallet:"Connect to Mobile Wallet",scan_qrcode_with_wallet:"Scan QR code with a WalletConnect-compatible wallet",connect:"Connect",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copy to clipboard",copied_to_clipboard:"Copied to clipboard!",connect_with:"Connect with",loading:"Loading...",something_went_wrong:"Something went wrong",no_supported_wallets:"There are no supported wallets yet",no_wallets_found:"No wallets found"},es:{choose_preferred_wallet:"Elige tu billetera preferida",connect_mobile_wallet:"Conectar a billetera m\xf3vil",scan_qrcode_with_wallet:"Escanea el c\xf3digo QR con una billetera compatible con WalletConnect",connect:"Conectar",qrcode:"C\xf3digo QR",mobile:"M\xf3vil",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Conectar mediante",loading:"Cargando...",something_went_wrong:"Algo sali\xf3 mal",no_supported_wallets:"Todav\xeda no hay billeteras compatibles",no_wallets_found:"No se encontraron billeteras"},fr:{choose_preferred_wallet:"Choisissez votre portefeuille pr\xe9f\xe9r\xe9",connect_mobile_wallet:"Se connecter au portefeuille mobile",scan_qrcode_with_wallet:"Scannez le QR code avec un portefeuille compatible WalletConnect",connect:"Se connecter",qrcode:"QR Code",mobile:"Mobile",desktop:"Desktop",copy_to_clipboard:"Copier",copied_to_clipboard:"Copi\xe9!",connect_with:"Connectez-vous \xe0 l'aide de",loading:"Chargement...",something_went_wrong:"Quelque chose a mal tourn\xe9",no_supported_wallets:"Il n'y a pas encore de portefeuilles pris en charge",no_wallets_found:"Aucun portefeuille trouv\xe9"},ko:{choose_preferred_wallet:"\uc6d0\ud558\ub294 \uc9c0\uac11\uc744 \uc120\ud0dd\ud558\uc138\uc694",connect_mobile_wallet:"\ubaa8\ubc14\uc77c \uc9c0\uac11\uacfc \uc5f0\uacb0",scan_qrcode_with_wallet:"WalletConnect \uc9c0\uc6d0 \uc9c0\uac11\uc5d0\uc11c QR\ucf54\ub4dc\ub97c \uc2a4\uce94\ud558\uc138\uc694",connect:"\uc5f0\uacb0",qrcode:"QR \ucf54\ub4dc",mobile:"\ubaa8\ubc14\uc77c",desktop:"\ub370\uc2a4\ud06c\ud0d1",copy_to_clipboard:"\ud074\ub9bd\ubcf4\ub4dc\uc5d0 \ubcf5\uc0ac",copied_to_clipboard:"\ud074\ub9bd\ubcf4\ub4dc\uc5d0 \ubcf5\uc0ac\ub418\uc5c8\uc2b5\ub2c8\ub2e4!",connect_with:"\uc640 \uc5f0\uacb0\ud558\ub2e4",loading:"\ub85c\ub4dc \uc911...",something_went_wrong:"\ubb38\uc81c\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4.",no_supported_wallets:"\uc544\uc9c1 \uc9c0\uc6d0\ub418\ub294 \uc9c0\uac11\uc774 \uc5c6\uc2b5\ub2c8\ub2e4",no_wallets_found:"\uc9c0\uac11\uc744 \ucc3e\uc744 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4"},pt:{choose_preferred_wallet:"Escolha sua carteira preferida",connect_mobile_wallet:"Conectar-se \xe0 carteira m\xf3vel",scan_qrcode_with_wallet:"Ler o c\xf3digo QR com uma carteira compat\xedvel com WalletConnect",connect:"Conectar",qrcode:"C\xf3digo QR",mobile:"M\xf3vel",desktop:"Desktop",copy_to_clipboard:"Copiar",copied_to_clipboard:"Copiado!",connect_with:"Ligar por meio de",loading:"Carregamento...",something_went_wrong:"Algo correu mal",no_supported_wallets:"Ainda n\xe3o h\xe1 carteiras suportadas",no_wallets_found:"Nenhuma carteira encontrada"},zh:{choose_preferred_wallet:"\u9009\u62e9\u4f60\u7684\u94b1\u5305",connect_mobile_wallet:"\u8fde\u63a5\u81f3\u79fb\u52a8\u7aef\u94b1\u5305",scan_qrcode_with_wallet:"\u4f7f\u7528\u517c\u5bb9 WalletConnect \u7684\u94b1\u5305\u626b\u63cf\u4e8c\u7ef4\u7801",connect:"\u8fde\u63a5",qrcode:"\u4e8c\u7ef4\u7801",mobile:"\u79fb\u52a8",desktop:"\u684c\u9762",copy_to_clipboard:"\u590d\u5236\u5230\u526a\u8d34\u677f",copied_to_clipboard:"\u590d\u5236\u5230\u526a\u8d34\u677f\u6210\u529f\uff01",connect_with:"\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u8fde\u63a5",loading:"\u6b63\u5728\u52a0\u8f7d...",something_went_wrong:"\u51fa\u4e86\u95ee\u9898",no_supported_wallets:"\u76ee\u524d\u8fd8\u6ca1\u6709\u652f\u6301\u7684\u94b1\u5305",no_wallets_found:"\u6ca1\u6709\u627e\u5230\u94b1\u5305"},fa:{choose_preferred_wallet:"\u06a9\u06cc\u0641 \u067e\u0648\u0644 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u062e\u0648\u062f \u0631\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f",connect_mobile_wallet:"\u0628\u0647 \u06a9\u06cc\u0641 \u067e\u0648\u0644 \u0645\u0648\u0628\u0627\u06cc\u0644 \u0648\u0635\u0644 \u0634\u0648\u06cc\u062f",scan_qrcode_with_wallet:"\u06a9\u062f QR \u0631\u0627 \u0628\u0627 \u06cc\u06a9 \u06a9\u06cc\u0641 \u067e\u0648\u0644 \u0633\u0627\u0632\u06af\u0627\u0631 \u0628\u0627 WalletConnect \u0627\u0633\u06a9\u0646 \u06a9\u0646\u06cc\u062f",connect:"\u0627\u062a\u0635\u0627\u0644",qrcode:"\u06a9\u062f QR",mobile:"\u0633\u06cc\u0627\u0631",desktop:"\u062f\u0633\u06a9\u062a\u0627\u067e",copy_to_clipboard:"\u06a9\u067e\u06cc \u0628\u0647 \u06a9\u0644\u06cc\u067e \u0628\u0648\u0631\u062f",copied_to_clipboard:"\u062f\u0631 \u06a9\u0644\u06cc\u067e \u0628\u0648\u0631\u062f \u06a9\u067e\u06cc \u0634\u062f!",connect_with:"\u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u0627",loading:"...\u0628\u0627\u0631\u06af\u0630\u0627\u0631\u06cc",something_went_wrong:"\u0645\u0634\u06a9\u0644\u06cc \u067e\u06cc\u0634 \u0622\u0645\u062f",no_supported_wallets:"\u0647\u0646\u0648\u0632 \u0647\u06cc\u0686 \u06a9\u06cc\u0641 \u067e\u0648\u0644 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0634\u062f\u0647 \u0627\u06cc \u0648\u062c\u0648\u062f \u0646\u062f\u0627\u0631\u062f",no_wallets_found:"\u0647\u06cc\u0686 \u06a9\u06cc\u0641 \u067e\u0648\u0644\u06cc \u067e\u06cc\u062f\u0627 \u0646\u0634\u062f"}};function x(){var e=a.getDocumentOrThrow(),t=e.getElementById(p);t&&(t.className=t.className.replace("fadeIn","fadeOut"),setTimeout((function(){var t=e.getElementById(s);t&&e.body.removeChild(t)}),300))}function C(e){return function(){x(),e&&e()}}function A(e,t,n){!function(){var e=a.getDocumentOrThrow(),t=e.getElementById(f);t&&e.head.removeChild(t);var n=e.createElement("style");n.setAttribute("id",f),n.innerText=':root {\n --animation-duration: 300ms;\n}\n\n@keyframes fadeIn {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n}\n\n@keyframes fadeOut {\n from {\n opacity: 1;\n }\n to {\n opacity: 0;\n }\n}\n\n.animated {\n animation-duration: var(--animation-duration);\n animation-fill-mode: both;\n}\n\n.fadeIn {\n animation-name: fadeIn;\n}\n\n.fadeOut {\n animation-name: fadeOut;\n}\n\n#walletconnect-wrapper {\n -webkit-user-select: none;\n align-items: center;\n display: flex;\n height: 100%;\n justify-content: center;\n left: 0;\n pointer-events: none;\n position: fixed;\n top: 0;\n user-select: none;\n width: 100%;\n z-index: 99999999999999;\n}\n\n.walletconnect-modal__headerLogo {\n height: 21px;\n}\n\n.walletconnect-modal__header p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n align-items: flex-start;\n display: flex;\n flex: 1;\n margin-left: 5px;\n}\n\n.walletconnect-modal__close__wrapper {\n position: absolute;\n top: 0px;\n right: 0px;\n z-index: 10000;\n background: white;\n border-radius: 26px;\n padding: 6px;\n box-sizing: border-box;\n width: 26px;\n height: 26px;\n cursor: pointer;\n}\n\n.walletconnect-modal__close__icon {\n position: relative;\n top: 7px;\n right: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n transform: rotate(45deg);\n}\n\n.walletconnect-modal__close__line1 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n}\n\n.walletconnect-modal__close__line2 {\n position: absolute;\n width: 100%;\n border: 1px solid rgb(48, 52, 59);\n transform: rotate(90deg);\n}\n\n.walletconnect-qrcode__base {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n background: rgba(37, 41, 46, 0.95);\n height: 100%;\n left: 0;\n pointer-events: auto;\n position: fixed;\n top: 0;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n width: 100%;\n will-change: opacity;\n padding: 40px;\n box-sizing: border-box;\n}\n\n.walletconnect-qrcode__text {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 10px 0 20px 0;\n text-align: center;\n width: 100%;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-qrcode__text {\n font-size: 4vw;\n }\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-qrcode__text {\n font-size: 14px;\n }\n}\n\n.walletconnect-qrcode__image {\n width: calc(100% - 30px);\n box-sizing: border-box;\n cursor: none;\n margin: 0 auto;\n}\n\n.walletconnect-qrcode__notification {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n font-size: 16px;\n padding: 16px 20px;\n border-radius: 16px;\n text-align: center;\n transition: all 0.1s ease-in-out;\n background: white;\n color: black;\n margin-bottom: -60px;\n opacity: 0;\n}\n\n.walletconnect-qrcode__notification.notification__show {\n opacity: 1;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__header {\n height: 130px;\n }\n .walletconnect-modal__base {\n overflow: auto;\n }\n}\n\n@media only screen and (min-device-width: 415px) and (max-width: 768px) {\n #content {\n max-width: 768px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 375px) and (max-width: 415px) {\n #content {\n max-width: 414px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (min-width: 320px) and (max-width: 375px) {\n #content {\n max-width: 375px;\n box-sizing: border-box;\n }\n}\n\n@media only screen and (max-width: 320px) {\n #content {\n max-width: 320px;\n box-sizing: border-box;\n }\n}\n\n.walletconnect-modal__base {\n -webkit-font-smoothing: antialiased;\n background: #ffffff;\n border-radius: 24px;\n box-shadow: 0 10px 50px 5px rgba(0, 0, 0, 0.4);\n font-family: ui-rounded, "SF Pro Rounded", "SF Pro Text", medium-content-sans-serif-font,\n -apple-system, BlinkMacSystemFont, ui-sans-serif, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,\n "Open Sans", "Helvetica Neue", sans-serif;\n margin-top: 41px;\n padding: 24px 24px 22px;\n pointer-events: auto;\n position: relative;\n text-align: center;\n transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);\n will-change: transform;\n overflow: visible;\n transform: translateY(-50%);\n top: 50%;\n max-width: 500px;\n margin: auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__base {\n padding: 24px 12px;\n }\n}\n\n.walletconnect-modal__base .hidden {\n transform: translateY(150%);\n transition: 0.125s cubic-bezier(0.4, 0, 1, 1);\n}\n\n.walletconnect-modal__header {\n align-items: center;\n display: flex;\n height: 26px;\n left: 0;\n justify-content: space-between;\n position: absolute;\n top: -42px;\n width: 100%;\n}\n\n.walletconnect-modal__base .wc-logo {\n align-items: center;\n display: flex;\n height: 26px;\n margin-top: 15px;\n padding-bottom: 15px;\n pointer-events: auto;\n}\n\n.walletconnect-modal__base .wc-logo div {\n background-color: #3399ff;\n height: 21px;\n margin-right: 5px;\n mask-image: url("images/wc-logo.svg") center no-repeat;\n width: 32px;\n}\n\n.walletconnect-modal__base .wc-logo p {\n color: #ffffff;\n font-size: 20px;\n font-weight: 600;\n margin: 0;\n}\n\n.walletconnect-modal__base h2 {\n color: rgba(60, 66, 82, 0.6);\n font-size: 16px;\n font-weight: 600;\n letter-spacing: 0;\n line-height: 1.1875em;\n margin: 0 0 19px 0;\n text-align: center;\n width: 100%;\n}\n\n.walletconnect-modal__base__row {\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n align-items: center;\n border-radius: 20px;\n cursor: pointer;\n display: flex;\n height: 56px;\n justify-content: space-between;\n padding: 0 15px;\n position: relative;\n margin: 0px 0px 8px;\n text-align: left;\n transition: 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n will-change: transform;\n text-decoration: none;\n}\n\n.walletconnect-modal__base__row:hover {\n background: rgba(60, 66, 82, 0.06);\n}\n\n.walletconnect-modal__base__row:active {\n background: rgba(60, 66, 82, 0.06);\n transform: scale(0.975);\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n}\n\n.walletconnect-modal__base__row__h3 {\n color: #25292e;\n font-size: 20px;\n font-weight: 700;\n margin: 0;\n padding-bottom: 3px;\n}\n\n.walletconnect-modal__base__row__right {\n align-items: center;\n display: flex;\n justify-content: center;\n}\n\n.walletconnect-modal__base__row__right__app-icon {\n border-radius: 8px;\n height: 34px;\n margin: 0 11px 2px 0;\n width: 34px;\n background-size: 100%;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-modal__base__row__right__caret {\n height: 18px;\n opacity: 0.3;\n transition: 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n width: 8px;\n will-change: opacity;\n}\n\n.walletconnect-modal__base__row:hover .caret,\n.walletconnect-modal__base__row:active .caret {\n opacity: 0.6;\n}\n\n.walletconnect-modal__mobile__toggle {\n width: 80%;\n display: flex;\n margin: 0 auto;\n position: relative;\n overflow: hidden;\n border-radius: 8px;\n margin-bottom: 18px;\n background: #d4d5d9;\n}\n\n.walletconnect-modal__single_wallet {\n display: flex;\n justify-content: center;\n margin-top: 7px;\n margin-bottom: 18px;\n}\n\n.walletconnect-modal__single_wallet a {\n cursor: pointer;\n color: rgb(64, 153, 255);\n font-size: 21px;\n font-weight: 800;\n text-decoration: none !important;\n margin: 0 auto;\n}\n\n.walletconnect-modal__mobile__toggle_selector {\n width: calc(50% - 8px);\n background: white;\n position: absolute;\n border-radius: 5px;\n height: calc(100% - 8px);\n top: 4px;\n transition: all 0.2s ease-in-out;\n transform: translate3d(4px, 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle.right__selected .walletconnect-modal__mobile__toggle_selector {\n transform: translate3d(calc(100% + 12px), 0, 0);\n}\n\n.walletconnect-modal__mobile__toggle a {\n font-size: 12px;\n width: 50%;\n text-align: center;\n padding: 8px;\n margin: 0;\n font-weight: 600;\n z-index: 1;\n}\n\n.walletconnect-modal__footer {\n display: flex;\n justify-content: center;\n margin-top: 20px;\n}\n\n@media only screen and (max-width: 768px) {\n .walletconnect-modal__footer {\n margin-top: 5vw;\n }\n}\n\n.walletconnect-modal__footer a {\n cursor: pointer;\n color: #898d97;\n font-size: 15px;\n margin: 0 auto;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-modal__footer a {\n font-size: 14px;\n }\n}\n\n.walletconnect-connect__buttons__wrapper {\n max-height: 44vh;\n}\n\n.walletconnect-connect__buttons__wrapper__android {\n margin: 50% 0;\n}\n\n.walletconnect-connect__buttons__wrapper__wrap {\n display: grid;\n grid-template-columns: repeat(4, 1fr);\n margin: 10px 0;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__buttons__wrapper__wrap {\n margin-top: 40px;\n }\n}\n\n.walletconnect-connect__button {\n background-color: rgb(64, 153, 255);\n padding: 12px;\n border-radius: 8px;\n text-decoration: none;\n color: rgb(255, 255, 255);\n font-weight: 500;\n}\n\n.walletconnect-connect__button__icon_anchor {\n cursor: pointer;\n display: flex;\n justify-content: flex-start;\n align-items: center;\n margin: 8px;\n width: 42px;\n justify-self: center;\n flex-direction: column;\n text-decoration: none !important;\n}\n\n@media only screen and (max-width: 320px) {\n .walletconnect-connect__button__icon_anchor {\n margin: 4px;\n }\n}\n\n.walletconnect-connect__button__icon {\n border-radius: 10px;\n height: 42px;\n margin: 0;\n width: 42px;\n background-size: cover !important;\n box-shadow: 0 4px 12px 0 rgba(37, 41, 46, 0.25);\n}\n\n.walletconnect-connect__button__text {\n color: #424952;\n font-size: 2.7vw;\n text-decoration: none !important;\n padding: 0;\n margin-top: 1.8vw;\n font-weight: 600;\n}\n\n@media only screen and (min-width: 768px) {\n .walletconnect-connect__button__text {\n font-size: 16px;\n margin-top: 12px;\n }\n}\n\n.walletconnect-search__input {\n border: none;\n background: #d4d5d9;\n border-style: none;\n padding: 8px 16px;\n outline: none;\n font-style: normal;\n font-stretch: normal;\n font-size: 16px;\n font-style: normal;\n font-stretch: normal;\n line-height: normal;\n letter-spacing: normal;\n text-align: left;\n border-radius: 8px;\n width: calc(100% - 16px);\n margin: 0;\n margin-bottom: 8px;\n}\n',e.head.appendChild(n)}();var r,o=function(){var e=a.getDocumentOrThrow(),t=e.createElement("div");return t.setAttribute("id",s),e.body.appendChild(t),t}();u.render(u.createElement(b,{text:(r=a.getNavigatorOrThrow().language.split("-")[0]||"en",E[r]||E.en),uri:e,onClose:C(t),qrcodeModalOptions:n}),o)}var k=function(){return void 0!==o&&void 0!==o.versions&&void 0!==o.versions.node};var B={open:function(e,t,n){r.log(e),k()?function(e){l.toString(e,{type:"terminal"}).then(r.log)}(e):A(e,t,n)},close:function(){k()||x()}};e.exports=B},8412:(e,t,n)=>{"use strict";var r=n(98399),o=n(52846),i={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,a,l,c,u,s,f=!1;t||(t={}),n=t.debug||!1;try{if(l=o(),c=document.createRange(),u=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",(function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),void 0===o.clipboardData){n&&r.warn("unable to use e.clipboardData"),n&&r.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=i[t.format]||i.default;window.clipboardData.setData(a,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))})),document.body.appendChild(s),c.selectNodeContents(s),u.addRange(c),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");f=!0}catch(p){n&&r.error("unable to copy using execCommand: ",p),n&&r.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(p){n&&r.error("unable to copy using clipboardData: ",p),n&&r.error("falling back to prompt"),a=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,e)}}finally{u&&("function"==typeof u.removeRange?u.removeRange(c):u.removeAllRanges()),s&&document.body.removeChild(s),l()}return f}},66360:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},1438:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Children:()=>ve,Component:()=>y,Fragment:()=>v,PureComponent:()=>he,Suspense:()=>be,SuspenseList:()=>Ce,cloneElement:()=>qe,createContext:()=>D,createElement:()=>_,createFactory:()=>De,createPortal:()=>Re,createRef:()=>m,default:()=>Ye,findDOMNode:()=>He,forwardRef:()=>ge,hydrate:()=>Ue,isValidElement:()=>ze,lazy:()=>xe,memo:()=>de,render:()=>Pe,unmountComponentAtNode:()=>Fe,unstable_batchedUpdates:()=>je,useCallback:()=>ne,useContext:()=>re,useDebugValue:()=>oe,useEffect:()=>Z,useErrorBoundary:()=>ie,useImperativeHandle:()=>ee,useLayoutEffect:()=>X,useMemo:()=>te,useReducer:()=>$,useRef:()=>G,useState:()=>K,version:()=>Oe});var r,o,i,a,l,c,u,s={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord/i;function h(e,t){for(var n in t)e[n]=t[n];return e}function d(e){var t=e.parentNode;t&&t.removeChild(e)}function _(e,t,n){var r,o=arguments,i={};for(r in t)"key"!==r&&"ref"!==r&&(i[r]=t[r]);if(arguments.length>3)for(n=[n],r=3;r2&&(t.children=f.slice.call(arguments,2)),n={},t)"key"!==r&&"ref"!==r&&(n[r]=t[r]);return g(e.type,n,t.key||e.key,t.ref||e.ref,null)}function D(e){var t={},n={__c:"__cC"+u++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,o=this;return this.getChildContext||(r=[],this.getChildContext=function(){return t[n.__c]=o,t},this.shouldComponentUpdate=function(e){o.props.value!==e.value&&r.some((function(t){t.context=e.value,E(t)}))},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Consumer.contextType=n,n.Provider.__=n,n}r={__e:function(e,t){for(var n,r;t=t.__;)if((n=t.__c)&&!n.__)try{if(n.constructor&&null!=n.constructor.getDerivedStateFromError&&(r=!0,n.setState(n.constructor.getDerivedStateFromError(e))),null!=n.componentDidCatch&&(r=!0,n.componentDidCatch(e)),r)return E(n.__E=n)}catch(t){e=t}throw e}},y.prototype.setState=function(e,t){var n;n=this.__s!==this.state?this.__s:this.__s=h({},this.state),"function"==typeof e&&(e=e(n,this.props)),e&&h(n,e),null!=e&&this.__v&&(t&&this.__h.push(t),E(this))},y.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},y.prototype.render=v,o=[],i=0,a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=s,u=0;var z,q,F,H=0,j=[],Y=r.__r,W=r.diffed,V=r.__c,J=r.unmount;function Q(e,t){r.__h&&r.__h(q,e,H||t),H=0;var n=q.__H||(q.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function K(e){return H=1,$(se,e)}function $(e,t,n){var r=Q(z++,2);return r.__c||(r.__c=q,r.__=[n?n(t):se(void 0,t),function(t){var n=e(r.__[0],t);r.__[0]!==n&&(r.__[0]=n,r.__c.setState({}))}]),r.__}function Z(e,t){var n=Q(z++,3);!r.__s&&ue(n.__H,t)&&(n.__=e,n.__H=t,q.__H.__h.push(n))}function X(e,t){var n=Q(z++,4);!r.__s&&ue(n.__H,t)&&(n.__=e,n.__H=t,q.__h.push(n))}function G(e){return H=5,te((function(){return{current:e}}),[])}function ee(e,t,n){H=6,X((function(){"function"==typeof e?e(t()):e&&(e.current=t())}),null==n?n:n.concat(e))}function te(e,t){var n=Q(z++,7);return ue(n.__H,t)?(n.__H=t,n.__h=e,n.__=e()):n.__}function ne(e,t){return H=8,te((function(){return e}),t)}function re(e){var t=q.context[e.__c],n=Q(z++,9);return n.__c=e,t?(null==n.__&&(n.__=!0,t.sub(q)),t.props.value):e.__}function oe(e,t){r.useDebugValue&&r.useDebugValue(t?t(e):e)}function ie(e){var t=Q(z++,10),n=K();return t.__=e,q.componentDidCatch||(q.componentDidCatch=function(e){t.__&&t.__(e),n[1](e)}),[n[0],function(){n[1](void 0)}]}function ae(){j.some((function(e){if(e.__P)try{e.__H.__h.forEach(le),e.__H.__h.forEach(ce),e.__H.__h=[]}catch(o){return e.__H.__h=[],r.__e(o,e.__v),!0}})),j=[]}function le(e){e.t&&e.t()}function ce(e){var t=e.__();"function"==typeof t&&(e.t=t)}function ue(e,t){return!e||t.some((function(t,n){return t!==e[n]}))}function se(e,t){return"function"==typeof t?t(e):t}function fe(e,t){for(var n in t)e[n]=t[n];return e}function pe(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}r.__r=function(e){Y&&Y(e),z=0,(q=e.__c).__H&&(q.__H.__h.forEach(le),q.__H.__h.forEach(ce),q.__H.__h=[])},r.diffed=function(e){W&&W(e);var t=e.__c;if(t){var n=t.__H;n&&n.__h.length&&(1!==j.push(t)&&F===r.requestAnimationFrame||((F=r.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);"undefined"!=typeof window&&(t=requestAnimationFrame(n))})(ae))}},r.__c=function(e,t){t.some((function(e){try{e.__h.forEach(le),e.__h=e.__h.filter((function(e){return!e.__||ce(e)}))}catch(l){t.some((function(e){e.__h&&(e.__h=[])})),t=[],r.__e(l,e.__v)}})),V&&V(e,t)},r.unmount=function(e){J&&J(e);var t=e.__c;if(t){var n=t.__H;if(n)try{n.__.forEach((function(e){return e.t&&e.t()}))}catch(e){r.__e(e,t.__v)}}};var he=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).isPureReactComponent=!0,n}return n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,r.prototype.shouldComponentUpdate=function(e,t){return pe(this.props,e)||pe(this.state,t)},r}(y);function de(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:pe(this.props,e)}function r(t){return this.shouldComponentUpdate=n,_(e,fe({},t))}return r.prototype.isReactComponent=!0,r.displayName="Memo("+(e.displayName||e.name)+")",r.t=!0,r}var _e=r.__b;function ge(e){function t(t){var n=fe({},t);return delete n.ref,e(n,t.ref)}return t.prototype.isReactComponent=t.t=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}r.__b=function(e){e.type&&e.type.t&&e.ref&&(e.props.ref=e.ref,e.ref=null),_e&&_e(e)};var me=function(e,t){return e?A(e).reduce((function(e,n,r){return e.concat(t(n,r))}),[]):null},ve={map:me,forEach:me,count:function(e){return e?A(e).length:0},only:function(e){if(1!==(e=A(e)).length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:A},ye=r.__e;function we(e){return e&&((e=fe({},e)).__c=null,e.__k=e.__k&&e.__k.map(we)),e}function be(){this.__u=0,this.o=null,this.__b=null}function Ee(e){var t=e.__.__c;return t&&t.u&&t.u(e)}function xe(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return _(n,o)}return o.displayName="Lazy",o.t=!0,o}function Ce(){this.i=null,this.l=null}r.__e=function(e,t,n){if(e.then)for(var r,o=t;o=o.__;)if((r=o.__c)&&r.__c)return r.__c(e,t.__c);ye(e,t,n)},(be.prototype=new y).__c=function(e,t){var n=this;null==n.o&&(n.o=[]),n.o.push(t);var r=Ee(n.__v),o=!1,i=function(){o||(o=!0,r?r(a):a())};t.__c=t.componentWillUnmount,t.componentWillUnmount=function(){i(),t.__c&&t.__c()};var a=function(){var e;if(!--n.__u)for(n.__v.__k[0]=n.state.u,n.setState({u:n.__b=null});e=n.o.pop();)e.forceUpdate()};n.__u++||n.setState({u:n.__b=n.__v.__k[0]}),e.then(i,i)},be.prototype.render=function(e,t){return this.__b&&(this.__v.__k[0]=we(this.__b),this.__b=null),[_(y,null,t.u?null:e.children),t.u&&e.fallback]};var Ae=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]{var r=n(50085),o=n(27235),i=n(45606),a=n(6452);function l(e,t,n,i,a){var l=[].slice.call(arguments,1),c=l.length,u="function"==typeof l[c-1];if(!u&&!r())throw new Error("Callback required as last argument");if(!u){if(c<1)throw new Error("Too few arguments provided");return 1===c?(n=t,t=i=void 0):2!==c||t.getContext||(i=n,n=t,t=void 0),new Promise((function(r,a){try{var l=o.create(n,i);r(e(l,t,i))}catch(c){a(c)}}))}if(c<2)throw new Error("Too few arguments provided");2===c?(a=n,n=t,t=i=void 0):3===c&&(t.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=n,n=t,t=void 0));try{var s=o.create(n,i);a(null,e(s,t,i))}catch(f){a(f)}}t.create=o.create,t.toCanvas=l.bind(null,i.render),t.toDataURL=l.bind(null,i.renderToDataURL),t.toString=l.bind(null,(function(e,t,n){return a.render(e,n)}))},50085:e=>{e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},49018:(e,t,n)=>{var r=n(49596).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,n=r(e),o=145===n?26:2*Math.ceil((n-13)/(2*t-2)),i=[n-7],a=1;a{var r=n(82994),o=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=r.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){var t;for(t=0;t+2<=this.data.length;t+=2){var n=45*o.indexOf(this.data[t]);n+=o.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(o.indexOf(this.data[t]),6)},e.exports=i},64855:e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},51360:(e,t,n)=>{var r=n(32283);function o(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=r.alloc(e*e),this.reservedBit=r.alloc(e*e)}o.prototype.set=function(e,t,n,r){var o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},o.prototype.get=function(e,t){return this.data[e*this.size+t]},o.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},o.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=o},67921:(e,t,n)=>{var r=n(32283),o=n(82994);function i(e){this.mode=o.BYTE,this.data=r.from(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(var t=0,n=this.data.length;t{var r=n(51278),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return o[4*(e-1)+0];case r.M:return o[4*(e-1)+1];case r.Q:return o[4*(e-1)+2];case r.H:return o[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}}},51278:(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(r){return n}}},98114:(e,t,n)=>{var r=n(49596).getSymbolSize;t.getPositions=function(e){var t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},15725:(e,t,n)=>{var r=n(49596),o=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){for(var n=e.bit<<3|t,i=n<<10;r.getBCHDigit(i)-o>=0;)i^=1335<{var r=n(32283),o=r.alloc(512),i=r.alloc(256);!function(){for(var e=1,t=0;t<255;t++)o[t]=e,i[e]=t,256&(e<<=1)&&(e^=285);for(t=255;t<512;t++)o[t]=o[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return i[e]},t.exp=function(e){return o[e]},t.mul=function(e,t){return 0===e||0===t?0:o[i[e]+i[t]]}},26846:(e,t,n)=>{var r=n(82994),o=n(49596);function i(e){this.mode=r.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){var t;for(t=0;t=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=i},38524:(e,t)=>{t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var n=3,r=3,o=40,i=10;function a(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2==0;case t.Patterns.PATTERN001:return n%2==0;case t.Patterns.PATTERN010:return r%3==0;case t.Patterns.PATTERN011:return(n+r)%3==0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2==0;case t.Patterns.PATTERN101:return n*r%2+n*r%3==0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2==0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,r=0,o=0,i=0,a=null,l=null,c=0;c=5&&(r+=n+(o-5)),a=s,o=1),(s=e.get(u,c))===l?i++:(i>=5&&(r+=n+(i-5)),l=s,i=1)}o>=5&&(r+=n+(o-5)),i>=5&&(r+=n+(i-5))}return r},t.getPenaltyN2=function(e){for(var t=e.size,n=0,o=0;o=10&&(1488===r||93===r)&&n++,i=i<<1&2047|e.get(l,a),l>=10&&(1488===i||93===i)&&n++}return n*o},t.getPenaltyN4=function(e){for(var t=0,n=e.data.length,r=0;r{var r=n(99454),o=n(92289);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return o.testNumeric(e)?t.NUMERIC:o.testAlphanumeric(e)?t.ALPHANUMERIC:o.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(r){return n}}},99172:(e,t,n)=>{var r=n(82994);function o(e){this.mode=r.NUMERIC,this.data=e.toString()}o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){var t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);var o=this.data.length-t;o>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*o+1))},e.exports=o},93617:(e,t,n)=>{var r=n(32283),o=n(69678);t.mul=function(e,t){for(var n=r.alloc(e.length+t.length-1),i=0;i=0;){for(var i=n[0],a=0;a{var r=n(32283),o=n(49596),i=n(51278),a=n(64855),l=n(51360),c=n(49018),u=n(98114),s=n(38524),f=n(31364),p=n(92122),h=n(97120),d=n(15725),_=n(82994),g=n(23670),m=n(66360);function v(e,t,n){var r,o,i=e.size,a=d.getEncodedBits(t,n);for(r=0;r<15;r++)o=1==(a>>r&1),r<6?e.set(r,8,o,!0):r<8?e.set(r+1,8,o,!0):e.set(i-15+r,8,o,!0),r<8?e.set(8,i-r-1,o,!0):r<9?e.set(8,15-r-1+1,o,!0):e.set(8,15-r-1,o,!0);e.set(i-8,8,1,!0)}function y(e,t,n){var i=new a;n.forEach((function(t){i.put(t.mode.bit,4),i.put(t.getLength(),_.getCharCountIndicator(t.mode,e)),t.write(i)}));var l=8*(o.getSymbolTotalCodewords(e)-f.getTotalCodewordsCount(e,t));for(i.getLengthInBits()+4<=l&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(0);for(var c=(l-i.getLengthInBits())/8,u=0;u=0&&l<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===l||6===l)||l>=2&&l<=4&&c>=2&&c<=4?e.set(i+l,a+c,!0,!0):e.set(i+l,a+c,!1,!0))}(w,t),function(e){for(var t=e.size,n=8;n=7&&function(e,t){for(var n,r,o,i=e.size,a=h.getEncodedBits(t),l=0;l<18;l++)n=Math.floor(l/3),r=l%3+i-8-3,o=1==(a>>l&1),e.set(n,r,o,!0),e.set(r,n,o,!0)}(w,t),function(e,t){for(var n=e.size,r=-1,o=n-1,i=7,a=0,l=n-1;l>0;l-=2)for(6===l&&l--;;){for(var c=0;c<2;c++)if(!e.isReserved(o,l-c)){var u=!1;a>>i&1)),e.set(o,l-c,u),-1==--i&&(a++,i=7)}if((o+=r)<0||n<=o){o-=r,r=-r;break}}}(w,d),isNaN(r)&&(r=s.getBestMask(w,v.bind(null,w,n))),s.applyMask(r,w),v(w,n,r),{modules:w,version:t,errorCorrectionLevel:n,maskPattern:r,segments:i}}t.create=function(e,t){if(void 0===e||""===e)throw new Error("No input text");var n,r,a=i.M;return void 0!==t&&(a=i.from(t.errorCorrectionLevel,i.M),n=h.from(t.version),r=s.from(t.maskPattern),t.toSJISFunc&&o.setToSJISFunction(t.toSJISFunc)),w(e,n,a,r)}},92122:(e,t,n)=>{var r=n(32283),o=n(93617),i=n(85676).lW;function a(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(e){this.degree=e,this.genPoly=o.generateECPolynomial(this.degree)},a.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");var t=r.alloc(this.degree),n=i.concat([e,t],e.length+this.degree),a=o.mod(n,this.genPoly),l=this.degree-a.length;if(l>0){var c=r.alloc(this.degree);return a.copy(c,l),c}return a},e.exports=a},92289:(e,t)=>{var n="[0-9]+",r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",o="(?:(?![A-Z0-9 $%*+\\-./:]|"+(r=r.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(o,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var i=new RegExp("^"+r+"$"),a=new RegExp("^[0-9]+$"),l=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return l.test(e)}},23670:(e,t,n)=>{var r=n(82994),o=n(99172),i=n(62197),a=n(67921),l=n(26846),c=n(92289),u=n(49596),s=n(48137);function f(e){return unescape(encodeURIComponent(e)).length}function p(e,t,n){for(var r,o=[];null!==(r=e.exec(n));)o.push({data:r[0],index:r.index,mode:t,length:r[0].length});return o}function h(e){var t,n,o=p(c.NUMERIC,r.NUMERIC,e),i=p(c.ALPHANUMERIC,r.ALPHANUMERIC,e);return u.isKanjiModeEnabled()?(t=p(c.BYTE,r.BYTE,e),n=p(c.KANJI,r.KANJI,e)):(t=p(c.BYTE_KANJI,r.BYTE,e),n=[]),o.concat(i,t,n).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function d(e,t){switch(t){case r.NUMERIC:return o.getBitsLength(e);case r.ALPHANUMERIC:return i.getBitsLength(e);case r.KANJI:return l.getBitsLength(e);case r.BYTE:return a.getBitsLength(e)}}function _(e,t){var n,c=r.getBestModeForData(e);if((n=r.from(t,c))!==r.BYTE&&n.bit=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(l))},t.rawSplit=function(e){return t.fromArray(h(e,u.isKanjiModeEnabled()))}},49596:(e,t)=>{var n,r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){for(var t=0;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return void 0!==n},t.toSJIS=function(e){return n(e)}},99454:(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},97120:(e,t,n)=>{var r=n(49596),o=n(31364),i=n(51278),a=n(82994),l=n(99454),c=n(66360),u=r.getBCHDigit(7973);function s(e,t){return a.getCharCountIndicator(e,t)+4}function f(e,t){var n=0;return e.forEach((function(e){var r=s(e.mode,t);n+=r+e.getBitsLength()})),n}t.from=function(e,t){return l.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!l.isValid(e))throw new Error("Invalid QR Code version");void 0===n&&(n=a.BYTE);var i=8*(r.getSymbolTotalCodewords(e)-o.getTotalCodewordsCount(e,t));if(n===a.MIXED)return i;var c=i-s(n,e);switch(n){case a.NUMERIC:return Math.floor(c/10*3);case a.ALPHANUMERIC:return Math.floor(c/11*2);case a.KANJI:return Math.floor(c/13);case a.BYTE:default:return Math.floor(c/8)}},t.getBestVersionForData=function(e,n){var r,o=i.from(n,i.M);if(c(e)){if(e.length>1)return function(e,n){for(var r=1;r<=40;r++)if(f(e,r)<=t.getCapacity(r,n,a.MIXED))return r}(e,o);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(var o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}(r.mode,r.getLength(),o)},t.getEncodedBits=function(e){if(!l.isValid(e)||e<7)throw new Error("Invalid QR Code version");for(var t=e<<12;r.getBCHDigit(t)-u>=0;)t^=7973<{var r=n(36728);t.render=function(e,t,n){var o=n,i=t;void 0!==o||t&&t.getContext||(o=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),o=r.getOptions(o);var a=r.getImageWidth(e.modules.size,o),l=i.getContext("2d"),c=l.createImageData(a,a);return r.qrToImageData(c.data,e,o),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(l,i,a),l.putImageData(c,0,0),i},t.renderToDataURL=function(e,n,r){var o=r;void 0!==o||n&&n.getContext||(o=n,n=void 0),o||(o={});var i=t.render(e,n,o),a=o.type||"image/png",l=o.rendererOpts||{};return i.toDataURL(a,l.quality)}},6452:(e,t,n)=>{var r=n(36728);function o(e,t){var n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function i(e,t,n){var r=e+t;return void 0!==n&&(r+=" "+n),r}t.render=function(e,t,n){var a=r.getOptions(t),l=e.modules.size,c=e.modules.data,u=l+2*a.margin,s=a.color.light.a?"':"",f="0&&u>0&&e[c-1]||(r+=a?i("M",u+n,.5+s+n):i("m",o,0),o=0,a=!1),u+1',p='viewBox="0 0 '+u+" "+u+'"',h=''+s+f+"\n";return"function"==typeof n&&n(null,h),h}},36728:(e,t)=>{function n(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:r,scale:r?4:o,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){var r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){for(var o=n.modules.size,i=n.modules.data,a=t.getScale(o,r),l=Math.floor((o+2*r.margin)*a),c=r.margin*a,u=[r.color.light,r.color.dark],s=0;s=c&&f>=c&&s{"use strict";var r=n(66360);i.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()}catch(t){return!1}}();var o=i.TYPED_ARRAY_SUPPORT?2147483647:1073741823;function i(e,t,n){return i.TYPED_ARRAY_SUPPORT||this instanceof i?"number"==typeof e?c(this,e):function(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer)return function(e,t,n,r){if(n<0||t.byteLength=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function l(e,t){var n;return i.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t)).__proto__=i.prototype:(null===(n=e)&&(n=new i(t)),n.length=t),n}function c(e,t){var n=l(e,t<0?0:0|a(t));if(!i.TYPED_ARRAY_SUPPORT)for(var r=0;r55295&&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 f(e){return i.isBuffer(e)?e.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer)?e.byteLength:("string"!=typeof e&&(e=""+e),0===e.length?0:s(e).length)}i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&i[Symbol.species]===i&&Object.defineProperty(i,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),i.prototype.write=function(e,t,n){void 0===t||void 0===n&&"string"==typeof t?(n=this.length,t=0):isFinite(t)&&(t|=0,isFinite(n)?n|=0:n=void 0);var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(e,t,n,r){return function(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}(s(t,e.length-n),e,n,r)}(this,e,t,n)},i.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(a<1e3||!i.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o{"use strict";var r=n(98399),o=n(97421),i=n(89540),a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=u,t.h2=50;var l=2147483647;function c(e){if(e>l)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(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 p(e)}return s(e,t,n)}function s(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|g(e,t),r=c(n),o=r.write(e,t);o!==n&&(r=r.slice(0,o));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(H(e,Uint8Array)){var t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return h(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(H(e,ArrayBuffer)||e&&H(e.buffer,ArrayBuffer))return d(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(H(e,SharedArrayBuffer)||e&&H(e.buffer,SharedArrayBuffer)))return d(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return u.from(r,t,n);var o=function(e){if(u.isBuffer(e)){var t=0|_(e.length),n=c(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||j(e.length)?c(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.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 f(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 p(e){return f(e),c(e<0?0:0|_(e))}function h(e){for(var t=e.length<0?0:0|_(e.length),n=c(t),r=0;r=l)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l.toString(16)+" bytes");return 0|e}function g(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||H(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(o)return r?-1:z(e).length;t=(""+t).toLowerCase(),o=!0}}function m(e,t,n){var 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 P(this,t,n);case"utf8":case"utf-8":return B(this,t,n);case"ascii":return S(this,t,n);case"latin1":case"binary":return T(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(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),j(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=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:w(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):w(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function w(e,t,n,r,o){var i,a=1,l=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,l/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var s=-1;for(i=n;il&&(n=l-c),i=n;i>=0;i--){for(var f=!0,p=0;po&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,n))}function B(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(s=u);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&u)<<6|63&i)>127&&(s=c);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(c=(15&u)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(s=c);break;case 4:i=e[o+1],a=e[o+2],l=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&l)&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&l)>65535&&c<1114112&&(s=c)}null===s?(s=65533,f=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),o+=f}return function(e){var t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);var n="",r=0;for(;rr.length?u.from(i).copy(r,o):Uint8Array.prototype.set.call(r,i,o);else{if(!u.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o)}o+=i.length}return r},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tn&&(e+=" ... "),""},a&&(u.prototype[a]=u.prototype.inspect),u.prototype.compare=function(e,t,n,r,o){if(H(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.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;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),l=Math.min(i,a),c=this.slice(r,o),s=e.slice(t,n),f=0;f>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var 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");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":case"latin1":case"binary":return x(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function S(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function M(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 L(e,t,n,r,o){return t=+t,n>>>=0,o||M(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function O(e,t,n,r,o){return t=+t,n>>>=0,o||M(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var 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>>=0,t>>>=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i>>=0,t>>>=0,n||N(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||N(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.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]},u.prototype.readUint32BE=u.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])},u.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||N(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return e>>>=0,t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||N(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){e>>>=0,t||N(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.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},u.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]},u.prototype.readFloatLE=function(e,t){return e>>>=0,t||N(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||N(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||N(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i>>=0,n>>>=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(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},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(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},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var i=0,a=1,l=0;for(this[t]=255&e;++i>0)-l&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var i=n-1,a=1,l=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===l&&0!==this[t+i+1]&&(l=1),this[t+i]=(e/a>>0)-l&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||I(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||I(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},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||I(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},u.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return O(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return O(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(!u.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=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>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&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 q(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(D,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function F(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function H(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function j(e){return e!=e}var Y=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,o=0;o<16;++o)t[r+o]=e[n]+e[o];return t}()},52846:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r{E.r(h),E.d(h,{default:()=>V});const V='\n\n \n \n \n \n \n \n \n\n'}}]); \ No newline at end of file diff --git a/2751.a89f3392449ed30a.esm.js b/2751.a89f3392449ed30a.esm.js new file mode 100644 index 000000000..530486921 --- /dev/null +++ b/2751.a89f3392449ed30a.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2751],{42751:(e,n,i)=>{i.r(n),i.d(n,{default:()=>t});const t='\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'}}]); \ No newline at end of file diff --git a/2788.cfa3ef2fa82b1b96.esm.js b/2788.cfa3ef2fa82b1b96.esm.js new file mode 100644 index 000000000..fdbaa9e98 --- /dev/null +++ b/2788.cfa3ef2fa82b1b96.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2788],{42788:(c,n,l)=>{l.r(n),l.d(n,{default:()=>s});const s='\n\n'}}]); \ No newline at end of file diff --git a/2907.a323ade730f1b9c9.esm.js b/2907.a323ade730f1b9c9.esm.js new file mode 100644 index 000000000..a0faa1105 --- /dev/null +++ b/2907.a323ade730f1b9c9.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2907],{12907:(n,e,i)=>{i.r(e),i.d(e,{default:()=>l});const l='\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'}}]); \ No newline at end of file diff --git a/3140.5c703870f628aca3.esm.js b/3140.5c703870f628aca3.esm.js new file mode 100644 index 000000000..6af1a9a5f --- /dev/null +++ b/3140.5c703870f628aca3.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3140],{63140:(s,t,o)=>{o.r(t),o.d(t,{default:()=>a});const a='\n\n\n \n \n \n \n \n \n \n \n\n'}}]); \ No newline at end of file diff --git a/3158.a1317d19c59ab407.esm.js b/3158.a1317d19c59ab407.esm.js new file mode 100644 index 000000000..8e58046fb --- /dev/null +++ b/3158.a1317d19c59ab407.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3158],{23158:(s,l,c)=>{c.r(l),c.d(l,{default:()=>f});const f='\n\n \n \n \n \n \n \n \n\n'}}]); \ No newline at end of file diff --git a/3173.2c238b5139b102ff.esm.js b/3173.2c238b5139b102ff.esm.js new file mode 100644 index 000000000..d836bbb34 --- /dev/null +++ b/3173.2c238b5139b102ff.esm.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[3173],{3771:()=>{},14412:()=>{},12107:()=>{}}]); \ No newline at end of file diff --git a/3323.a1e8729dc5dca75a.esm.js b/3323.a1e8729dc5dca75a.esm.js new file mode 100644 index 000000000..3f70b4a13 --- /dev/null +++ b/3323.a1e8729dc5dca75a.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3323],{43323:(e,n,t)=>{t.r(n),t.d(n,{default:()=>Ve});var o=t(32332),r=t(2131),a=t(99359),i=t(49531),c=t(37020),l=(t(94202),t(74092),t(84416),t(90059),t(89728),t(45905),t(75442),t(35630),t(56560),t(98399)),s='',d='\n \n \n \n';function u(e){(0,o.a)(e,"svelte-1uqued6","select.svelte-1uqued6{border:none;background-image:none;background-color:transparent;-webkit-appearance:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;appearance:none;font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));transition:width 250ms ease-in-out;background-repeat:no-repeat, repeat;background-position:right 0px top 0px, 0 0;scrollbar-width:none;-ms-overflow-style:none;padding:0 14px 0 0;white-space:nowrap;text-overflow:ellipsis}select.minimized_ac.svelte-1uqued6{min-width:80px;max-width:80px}select.maximized_ac.svelte-1uqued6{width:auto !important}select.svelte-1uqued6:focus{outline:none}span.switching-placeholder.svelte-1uqued6{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));min-width:80px;max-width:80px;padding:0 8px 0 4px}")}function m(e,n,t){const o=e.slice();return o[15]=n[t],o}function p(e){let n;function t(e,n){return e[7]?f:v}let r=t(e),a=r(e);return{c(){a.c(),n=(0,o.e)()},m(e,t){a.m(e,t),(0,o.b)(e,n,t)},p(e,o){r===(r=t(e))&&a?a.p(e,o):(a.d(1),a=r(e),a&&(a.c(),a.m(n.parentNode,n)))},d(e){a.d(e),e&&(0,o.d)(n)}}}function v(e){let n,t,r,a,i,c,l,s=!(0,o.h)(e[6].chains[0],e[2]),d=[],u=new Map,p=s&&g(e),v=e[2];const f=e=>e[15].id;for(let o=0;ot(12,l=e)));let{selectIcon:u=s}=n,{colorVar:m}=n,{chains:p}=n,{bold:v=!1}=n,{parentCSSId:f=""}=n;const g=new i.BehaviorSubject(!1);let b;(0,o.c)(e,g,(e=>t(7,d=e)));const h=(0,i.merge)(o.w,g.pipe((0,r.skip)(1))).pipe((0,r.debounceTime)(50),(0,r.distinctUntilChanged)(((e,n)=>"boolean"!=typeof e&&"boolean"!=typeof n&&(e[0]&&n[0]&&e[0].chains[0].id===n[0].chains[0].id))));return(0,o.c)(e,h,(e=>t(11,c=e))),e.$$set=e=>{"selectIcon"in e&&t(0,u=e.selectIcon),"colorVar"in e&&t(1,m=e.colorVar),"chains"in e&&t(2,p=e.chains),"bold"in e&&t(3,v=e.bold),"parentCSSId"in e&&t(4,f=e.parentCSSId)},e.$$.update=()=>{4096&e.$$.dirty&&t(6,[a]=l,a),2048&e.$$.dirty&&c&&function(){if(!b)return;let e=document.createElement("option");e.textContent=b.selectedOptions[0].textContent;let n=document.createElement("select");n.style.visibility="hidden",n.style.position="fixed",n.appendChild(e),b.after(n),t(5,b.style.width=n.clientWidth-22+"px",b),n.remove()}()},[u,m,p,v,f,b,a,d,g,h,async function(){const e=b.selectedOptions[0].value;e!==a.chains[0].id&&(g.next(!0),await(0,o.f)({chainId:e,chainNamespace:"evm",wallet:a.label}),g.next(!1))},c,l,function(e){o.g[e?"unshift":"push"]((()=>{b=e,t(5,b),t(2,p),t(6,a),t(12,l)}))}]}class w extends o.S{constructor(e){super(),(0,o.i)(this,e,x,h,o.s,{selectIcon:0,colorVar:1,chains:2,bold:3,parentCSSId:4},u)}}function k(e){(0,o.a)(e,"svelte-hb2n95",".container.svelte-hb2n95.svelte-hb2n95{display:flex;align-items:center;gap:0.5rem;cursor:pointer;position:relative;z-index:0;width:100%;padding:0.25rem;margin-bottom:0.25rem;border-radius:12px;transition:background-color 150ms ease-in-out}.container.svelte-hb2n95.svelte-hb2n95::before{content:'';display:block;position:absolute;top:0;bottom:0;left:0;right:0;height:100%;width:100%;background:var(--action-color);border-radius:12px;z-index:-1;opacity:0}.container.svelte-hb2n95.svelte-hb2n95:hover::before{opacity:0.2}.container.svelte-hb2n95:hover .balance.svelte-hb2n95,.container.svelte-hb2n95:hover .elipsis-container.svelte-hb2n95{opacity:1}.container.svelte-hb2n95:hover .balance.svelte-hb2n95{color:var(--account-center-maximized-balance-color, inherit)}.container.primary.svelte-hb2n95.svelte-hb2n95:hover{background-color:var(\n --account-center-maximized-account-section-background-hover\n )}.account-details.svelte-hb2n95.svelte-hb2n95{flex:1 1;display:flex;gap:inherit;overflow:hidden}.address-domain.svelte-hb2n95.svelte-hb2n95{flex:1 0 auto;max-width:70%;white-space:nowrap;font-weight:600;color:var(--account-center-maximized-address-color, inherit);overflow:scroll;scrollbar-width:none;-ms-overflow-style:none}.address-domain.svelte-hb2n95.svelte-hb2n95::-webkit-scrollbar{display:none}.balance.svelte-hb2n95.svelte-hb2n95{flex:1 1 auto;max-width:70%;white-space:nowrap;text-align:end;opacity:0.4;transition:color 150ms ease-in-out, background-color 150ms ease-in-out;overflow:scroll;scrollbar-width:none;-ms-overflow-style:none}.balance.svelte-hb2n95.svelte-hb2n95::-webkit-scrollbar{display:none}.elipsis-container.svelte-hb2n95.svelte-hb2n95{flex:0;padding:0.25rem;border-radius:24px;transition:color 150ms ease-in-out, background-color 150ms ease-in-out;background-color:transparent;opacity:0.4}.elipsis-container.svelte-hb2n95.svelte-hb2n95:hover{color:var(--text-color)}.elipsis-container.active.svelte-hb2n95.svelte-hb2n95{color:var(--text-color)}.elipsis.svelte-hb2n95.svelte-hb2n95{width:24px}.menu.svelte-hb2n95.svelte-hb2n95{background:var(--onboard-white, var(--white));border:1px solid var(--onboard-gray-100, var(--gray-100));border-radius:8px;list-style-type:none;right:0.25rem;top:2.25rem;margin:0;padding:0;border:none;overflow:hidden;z-index:1}.menu.svelte-hb2n95 li.svelte-hb2n95{color:var(--onboard-primary-500, var(--primary-500));font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));padding:12px 16px;background:var(--onboard-white, var(--white));transition:background-color 150ms ease-in-out;cursor:pointer}.menu.svelte-hb2n95 li.svelte-hb2n95:hover{background:var(--onboard-primary-200, var(--primary-200))}")}function y(e,n,t){const o=e.slice();return o[14]=n[t].address,o[15]=n[t].ens,o[16]=n[t].uns,o[17]=n[t].balance,o[19]=t,o}function $(e){let n,t,r;return t=new o.R({props:{size:14}}),{c(){n=(0,o.j)("div"),(0,o.F)(t.$$.fragment),(0,o.T)(n,"right","-5px"),(0,o.T)(n,"bottom","-5px"),(0,o.k)(n,"class","drop-shadow absolute")},m(e,a){(0,o.b)(e,n,a),(0,o.I)(t,n,null),r=!0},i(e){r||((0,o.x)(t.$$.fragment,e),r=!0)},o(e){(0,o.A)(t.$$.fragment,e),r=!1},d(e){e&&(0,o.d)(n),(0,o.K)(t)}}}function C(e){let n,t,r,a=T(e[17])+"";return{c(){n=(0,o.j)("div"),t=(0,o.t)(a),(0,o.k)(n,"class","balance svelte-hb2n95")},m(e,r){(0,o.b)(e,n,r),(0,o.m)(n,t)},p(e,n){1&n&&a!==(a=T(e[17])+"")&&(0,o.v)(t,a)},i(e){e&&(r||(0,o.U)((()=>{r=(0,o.V)(n,o.X,{}),r.start()})))},o:o.n,d(e){e&&(0,o.d)(n)}}}function j(e){let n,t,r,a,i,c,l,s,d,u,m,p,v,f=e[4]("accountCenter.addAccount",{default:e[2].accountCenter.addAccount})+"",g=e[4]("accountCenter.disconnectWallet",{default:e[2].accountCenter.disconnectWallet})+"",b=e[2].accountCenter.copyAddress+"",h=!(e[1]&&0===e[19])&&z(e);function x(){return e[13](e[15],e[16],e[14])}return{c(){n=(0,o.j)("ul"),t=(0,o.j)("li"),r=(0,o.t)(f),a=(0,o.G)(),h&&h.c(),i=(0,o.G)(),c=(0,o.j)("li"),l=(0,o.t)(g),s=(0,o.G)(),d=(0,o.j)("li"),u=(0,o.t)(b),(0,o.k)(t,"class","svelte-hb2n95"),(0,o.k)(c,"class","svelte-hb2n95"),(0,o.k)(d,"class","svelte-hb2n95"),(0,o.k)(n,"class","menu absolute svelte-hb2n95")},m(m,f){(0,o.b)(m,n,f),(0,o.m)(n,t),(0,o.m)(t,r),(0,o.m)(n,a),h&&h.m(n,null),(0,o.m)(n,i),(0,o.m)(n,c),(0,o.m)(c,l),(0,o.m)(n,s),(0,o.m)(n,d),(0,o.m)(d,u),p||(v=[(0,o.p)(t,"click",(0,o.J)(e[10])),(0,o.p)(c,"click",(0,o.J)(e[12])),(0,o.p)(d,"click",(0,o.J)(x))],p=!0)},p(t,a){e=t,20&a&&f!==(f=e[4]("accountCenter.addAccount",{default:e[2].accountCenter.addAccount})+"")&&(0,o.v)(r,f),e[1]&&0===e[19]?h&&(h.d(1),h=null):h?h.p(e,a):(h=z(e),h.c(),h.m(n,i)),20&a&&g!==(g=e[4]("accountCenter.disconnectWallet",{default:e[2].accountCenter.disconnectWallet})+"")&&(0,o.v)(l,g),4&a&&b!==(b=e[2].accountCenter.copyAddress+"")&&(0,o.v)(u,b)},i(e){e&&(m||(0,o.U)((()=>{m=(0,o.V)(n,o.X,{}),m.start()})))},o:o.n,d(e){e&&(0,o.d)(n),h&&h.d(),p=!1,(0,o.L)(v)}}}function z(e){let n,t,r,a,i=e[4]("accountCenter.setPrimaryAccount",{default:e[2].accountCenter.setPrimaryAccount})+"";function c(){return e[11](e[14])}return{c(){n=(0,o.j)("li"),t=(0,o.t)(i),(0,o.k)(n,"class","svelte-hb2n95")},m(e,i){(0,o.b)(e,n,i),(0,o.m)(n,t),r||(a=(0,o.p)(n,"click",(0,o.J)(c)),r=!0)},p(n,r){e=n,20&r&&i!==(i=e[4]("accountCenter.setPrimaryAccount",{default:e[2].accountCenter.setPrimaryAccount})+"")&&(0,o.v)(t,i)},d(e){e&&(0,o.d)(n),r=!1,a()}}}function A(e){let n,t,r,a,i,c,l,s,d,u,m,p,v,f,g,b,h,x,w=(e[15]?(0,o.D)(e[15].name):e[16]?(0,o.D)(e[16].name):(0,o.E)(e[14]))+"";a=new o.W({props:{size:32,padding:4,background:"custom",color:"#EFF1FC",customBackgroundColor:e[1]&&0===e[19]?"rgba(24, 206, 102, 0.2)":"rgba(235, 235, 237, 0.1)",border:e[1]&&0===e[19]?"green":"gray",radius:8,icon:e[0].icon}});let k=e[1]&&0===e[19]&&$(),y=e[17]&&C(e);function z(){return e[8](e[14])}function A(){return e[9](e[14])}let G=e[3]===e[14]&&j(e);return{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.j)("div"),(0,o.F)(a.$$.fragment),i=(0,o.G)(),k&&k.c(),c=(0,o.G)(),l=(0,o.j)("div"),s=(0,o.j)("div"),d=(0,o.t)(w),u=(0,o.G)(),y&&y.c(),m=(0,o.G)(),p=(0,o.j)("div"),v=(0,o.j)("div"),f=(0,o.G)(),G&&G.c(),g=(0,o.G)(),(0,o.k)(r,"class","flex items-center relative"),(0,o.k)(s,"class","address-domain svelte-hb2n95"),(0,o.k)(l,"class","account-details svelte-hb2n95"),(0,o.k)(v,"class","elipsis pointer flex items-center justify-center relative svelte-hb2n95"),(0,o.k)(p,"class","elipsis-container svelte-hb2n95"),(0,o.H)(p,"active",e[3]===e[14]),(0,o.k)(t,"class","container svelte-hb2n95"),(0,o.H)(t,"primary",e[1]&&0===e[19]),(0,o.k)(n,"class","relative")},m(e,w){(0,o.b)(e,n,w),(0,o.m)(n,t),(0,o.m)(t,r),(0,o.I)(a,r,null),(0,o.m)(r,i),k&&k.m(r,null),(0,o.m)(t,c),(0,o.m)(t,l),(0,o.m)(l,s),(0,o.m)(s,d),(0,o.m)(l,u),y&&y.m(l,null),(0,o.m)(t,m),(0,o.m)(t,p),(0,o.m)(p,v),v.innerHTML='\n \n \n \n',(0,o.m)(n,f),G&&G.m(n,null),(0,o.m)(n,g),b=!0,h||(x=[(0,o.p)(v,"click",(0,o.J)(z)),(0,o.p)(t,"click",A)],h=!0)},p(i,c){e=i;const s={};2&c&&(s.customBackgroundColor=e[1]&&0===e[19]?"rgba(24, 206, 102, 0.2)":"rgba(235, 235, 237, 0.1)"),2&c&&(s.border=e[1]&&0===e[19]?"green":"gray"),1&c&&(s.icon=e[0].icon),a.$set(s),e[1]&&0===e[19]?k?2&c&&(0,o.x)(k,1):(k=$(),k.c(),(0,o.x)(k,1),k.m(r,null)):k&&((0,o.y)(),(0,o.A)(k,1,1,(()=>{k=null})),(0,o.z)()),(!b||1&c)&&w!==(w=(e[15]?(0,o.D)(e[15].name):e[16]?(0,o.D)(e[16].name):(0,o.E)(e[14]))+"")&&(0,o.v)(d,w),e[17]?y?(y.p(e,c),1&c&&(0,o.x)(y,1)):(y=C(e),y.c(),(0,o.x)(y,1),y.m(l,null)):y&&(y.d(1),y=null),(!b||9&c)&&(0,o.H)(p,"active",e[3]===e[14]),(!b||2&c)&&(0,o.H)(t,"primary",e[1]&&0===e[19]),e[3]===e[14]?G?(G.p(e,c),9&c&&(0,o.x)(G,1)):(G=j(e),G.c(),(0,o.x)(G,1),G.m(n,g)):G&&(G.d(1),G=null)},i(e){b||((0,o.x)(a.$$.fragment,e),(0,o.x)(k),(0,o.x)(y),(0,o.x)(G),b=!0)},o(e){(0,o.A)(a.$$.fragment,e),(0,o.A)(k),b=!1},d(e){e&&(0,o.d)(n),(0,o.K)(a),k&&k.d(),y&&y.d(),G&&G.d(),h=!1,(0,o.L)(x)}}}function G(e){let n,t,r=e[0].accounts,a=[];for(let o=0;o(0,o.A)(a[e],1,1,(()=>{a[e]=null}));return{c(){for(let e=0;e7?e[n].slice(0,7):e[n]} ${n}`}function I(e,n,t){let r;(0,o.c)(e,a._,(e=>t(4,r=e)));let{wallet:i}=n,{primary:l}=n;function s(){t(3,d="")}let d="";async function u(e){try{await(0,o.M)(e.provider)}catch(n){const{code:t}=n;t!==c.ProviderRpcErrorCode.UNSUPPORTED_METHOD&&t!==c.ProviderRpcErrorCode.DOES_NOT_EXIST||o.N.next({inProgress:!1,actionRequired:e.label})}}function m(){t(2,o.C.accountCenter.copyAddress="Copied Successfully",o.C),setTimeout(s,500),setTimeout((()=>{t(2,o.C.accountCenter.copyAddress="Copy Wallet address",o.C)}),700)}return e.$$set=e=>{"wallet"in e&&t(0,i=e.wallet),"primary"in e&&t(1,l=e.primary)},[i,l,o.C,d,r,u,m,s,e=>t(3,d=d===e?"":e),e=>(0,o.O)(i,e),()=>{t(3,d=""),u(i)},e=>{t(3,d=""),(0,o.O)(i,e)},()=>{t(3,d=""),(0,o.P)({label:i.label})},(e,n,t)=>{(0,o.Q)(e?e.name:n?n.name:t).then((()=>{m()}))}]}class F extends o.S{constructor(e){super(),(0,o.i)(this,e,I,G,o.s,{wallet:0,primary:1,hideMenu:7},k)}get hideMenu(){return this.$$.ctx[7]}}var H='\n \n \n \n',L='\n \n \n \n',M='\n\n\n';function P(e){(0,o.a)(e,"svelte-1ubxcdp",".content.svelte-1ubxcdp{padding:1rem;width:300px;font-family:var(--onboard-font-family-normal, var(--font-family-normal));font-size:var(--onboard-font-size-5, var(--font-size-5));line-height:24px}.icon-container.svelte-1ubxcdp{width:3rem;height:3rem;background:var(--onboard-warning-100, var(--warning-100));border-radius:24px;padding:12px;color:var(--onboard-warning-500, var(--warning-500))}h4.svelte-1ubxcdp{margin:1.5rem 0 0.5rem 0;font-weight:600}p.svelte-1ubxcdp{margin:0;font-weight:400}button.svelte-1ubxcdp{margin-top:1.5rem;width:50%;font-weight:600}.right.svelte-1ubxcdp{margin-left:0.5rem;width:60%}")}function S(e){let n,t,r,a,i,c,l,s,u,m,p,v,f,g,b,h,x,w=e[2]("modals.confirmDisconnectAll.heading",{default:o.C.modals.confirmDisconnectAll.heading})+"",k=e[2]("modals.confirmDisconnectAll.description")+"",y=e[2]("modals.confirmDisconnectAll.cancel",{default:o.C.modals.confirmDisconnectAll.cancel})+"",$=e[2]("modals.confirmDisconnectAll.confirm",{default:o.C.modals.confirmDisconnectAll.confirm})+"";return{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.G)(),a=(0,o.j)("h4"),i=(0,o.t)(w),c=(0,o.G)(),l=(0,o.j)("p"),s=(0,o.t)(k),u=(0,o.G)(),m=(0,o.j)("div"),p=(0,o.j)("button"),v=(0,o.t)(y),f=(0,o.G)(),g=(0,o.j)("button"),b=(0,o.t)($),(0,o.k)(t,"class","icon-container flex justify-center items-center svelte-1ubxcdp"),(0,o.k)(a,"class","svelte-1ubxcdp"),(0,o.k)(l,"class","svelte-1ubxcdp"),(0,o.k)(p,"class","button-neutral-solid-b rounded svelte-1ubxcdp"),(0,o.k)(g,"class","right button-neutral-solid rounded svelte-1ubxcdp"),(0,o.k)(m,"class","flex justify-between items-center w-100"),(0,o.k)(n,"class","content svelte-1ubxcdp")},m(w,k){(0,o.b)(w,n,k),(0,o.m)(n,t),t.innerHTML=d,(0,o.m)(n,r),(0,o.m)(n,a),(0,o.m)(a,i),(0,o.m)(n,c),(0,o.m)(n,l),(0,o.m)(l,s),(0,o.m)(n,u),(0,o.m)(n,m),(0,o.m)(m,p),(0,o.m)(p,v),(0,o.m)(m,f),(0,o.m)(m,g),(0,o.m)(g,b),h||(x=[(0,o.p)(p,"click",(function(){(0,o.Z)(e[1])&&e[1].apply(this,arguments)})),(0,o.p)(g,"click",(function(){(0,o.Z)(e[0])&&e[0].apply(this,arguments)}))],h=!0)},p(n,t){e=n,4&t&&w!==(w=e[2]("modals.confirmDisconnectAll.heading",{default:o.C.modals.confirmDisconnectAll.heading})+"")&&(0,o.v)(i,w),4&t&&k!==(k=e[2]("modals.confirmDisconnectAll.description")+"")&&(0,o.v)(s,k),4&t&&y!==(y=e[2]("modals.confirmDisconnectAll.cancel",{default:o.C.modals.confirmDisconnectAll.cancel})+"")&&(0,o.v)(v,y),4&t&&$!==($=e[2]("modals.confirmDisconnectAll.confirm",{default:o.C.modals.confirmDisconnectAll.confirm})+"")&&(0,o.v)(b,$)},d(e){e&&(0,o.d)(n),h=!1,(0,o.L)(x)}}}function V(e){let n,t;return n=new o.Y({props:{close:e[1],$$slots:{default:[S]},$$scope:{ctx:e}}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p(e,[t]){const o={};2&t&&(o.close=e[1]),15&t&&(o.$$scope={dirty:t,ctx:e}),n.$set(o)},i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function D(e,n,t){let r;(0,o.c)(e,a._,(e=>t(2,r=e)));let{onConfirm:i}=n,{onClose:c}=n;return e.$$set=e=>{"onConfirm"in e&&t(0,i=e.onConfirm),"onClose"in e&&t(1,c=e.onClose)},[i,c,r]}class q extends o.S{constructor(e){super(),(0,o.i)(this,e,D,V,o.s,{onConfirm:0,onClose:1},P)}}function _(e){(0,o.a)(e,"svelte-ruodf3",".content.svelte-ruodf3{--background-color:var(--w3o-background-color);--text-color:var(--w3o-text-color);--action-color:var(--w3o-action-color, var(--primary-500));font-size:1rem;line-height:1.5rem;display:flex;flex-flow:column;gap:1.5rem;padding:1rem;max-width:320px;background:var(--background-color);color:var(--text-color)}.icon-container.svelte-ruodf3{position:relative;overflow:hidden;width:3rem;height:3rem;border-radius:24px;padding:0.75rem;background:none}.icon-container.svelte-ruodf3::before{content:'';position:absolute;height:100%;width:100%;opacity:0.2;background:var(--action-color)}.text-container.svelte-ruodf3{display:flex;flex-flow:column;gap:0.5rem;padding:0 0.5rem}.actions-container.svelte-ruodf3{display:flex;flex-flow:row nowrap;gap:1rem}.heading.svelte-ruodf3{font-weight:600}button.svelte-ruodf3{font-weight:600}button.primary.svelte-ruodf3{background:var(--action-color)}")}function W(e){let n,t,r,a,i,c,l,s,d,u,m,p,v,f,g,b,h,x,w,k,y,$=e[3]("modals.confirmTransactionProtection.heading",{default:o.C.modals.confirmTransactionProtection.heading})+"",C=e[3]("modals.confirmTransactionProtection.description")+"",j=e[3]("modals.confirmTransactionProtection.link",{default:o.C.modals.confirmTransactionProtection.link})+"",z=e[3]("modals.confirmTransactionProtection.dismiss",{default:o.C.modals.confirmTransactionProtection.dismiss})+"",A=e[3]("modals.confirmTransactionProtection.enable",{default:o.C.modals.confirmTransactionProtection.enable})+"";return{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.G)(),a=(0,o.j)("div"),i=(0,o.j)("div"),c=(0,o.t)($),l=(0,o.G)(),s=(0,o.j)("div"),d=(0,o.t)(C),u=(0,o.G)(),m=(0,o.j)("a"),p=(0,o.t)(j),v=(0,o.G)(),f=(0,o.j)("div"),g=(0,o.j)("button"),b=(0,o.t)(z),h=(0,o.G)(),x=(0,o.j)("button"),w=(0,o.t)(A),(0,o.k)(t,"class","icon-container flex justify-center items-center svelte-ruodf3"),(0,o.k)(i,"class","heading svelte-ruodf3"),(0,o.k)(m,"href",e[2]),(0,o.k)(m,"target","_blank"),(0,o.k)(m,"rel","noreferrer noopener"),(0,o.k)(m,"class","no-link"),(0,o.k)(a,"class","text-container svelte-ruodf3"),(0,o.k)(g,"class","button-neutral-solid-b svelte-ruodf3"),(0,o.k)(x,"class","button-neutral-solid rounded primary svelte-ruodf3"),(0,o.k)(f,"class","actions-container svelte-ruodf3"),(0,o.k)(n,"class","content svelte-ruodf3")},m($,C){(0,o.b)($,n,C),(0,o.m)(n,t),t.innerHTML=M,(0,o.m)(n,r),(0,o.m)(n,a),(0,o.m)(a,i),(0,o.m)(i,c),(0,o.m)(a,l),(0,o.m)(a,s),(0,o.m)(s,d),(0,o.m)(a,u),(0,o.m)(a,m),(0,o.m)(m,p),(0,o.m)(n,v),(0,o.m)(n,f),(0,o.m)(f,g),(0,o.m)(g,b),(0,o.m)(f,h),(0,o.m)(f,x),(0,o.m)(x,w),k||(y=[(0,o.p)(g,"click",(function(){(0,o.Z)(e[1])&&e[1].apply(this,arguments)})),(0,o.p)(x,"click",(function(){(0,o.Z)(e[0])&&e[0].apply(this,arguments)}))],k=!0)},p(n,t){e=n,8&t&&$!==($=e[3]("modals.confirmTransactionProtection.heading",{default:o.C.modals.confirmTransactionProtection.heading})+"")&&(0,o.v)(c,$),8&t&&C!==(C=e[3]("modals.confirmTransactionProtection.description")+"")&&(0,o.v)(d,C),8&t&&j!==(j=e[3]("modals.confirmTransactionProtection.link",{default:o.C.modals.confirmTransactionProtection.link})+"")&&(0,o.v)(p,j),4&t&&(0,o.k)(m,"href",e[2]),8&t&&z!==(z=e[3]("modals.confirmTransactionProtection.dismiss",{default:o.C.modals.confirmTransactionProtection.dismiss})+"")&&(0,o.v)(b,z),8&t&&A!==(A=e[3]("modals.confirmTransactionProtection.enable",{default:o.C.modals.confirmTransactionProtection.enable})+"")&&(0,o.v)(w,A)},d(e){e&&(0,o.d)(n),k=!1,(0,o.L)(y)}}}function K(e){let n,t;return n=new o.Y({props:{close:e[1],$$slots:{default:[W]},$$scope:{ctx:e}}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p(e,[t]){const o={};2&t&&(o.close=e[1]),31&t&&(o.$$scope={dirty:t,ctx:e}),n.$set(o)},i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function B(e,n,t){let r;(0,o.c)(e,a._,(e=>t(3,r=e)));let{onEnable:i}=n,{onDismiss:c}=n,{infoLink:l}=n;return e.$$set=e=>{"onEnable"in e&&t(0,i=e.onEnable),"onDismiss"in e&&t(1,c=e.onDismiss),"infoLink"in e&&t(2,l=e.infoLink)},[i,c,l,r]}class E extends o.S{constructor(e){super(),(0,o.i)(this,e,B,K,o.s,{onEnable:0,onDismiss:1,infoLink:2},_)}}function Z(e){(0,o.a)(e,"svelte-b848yl",".secondary-token-container.svelte-b848yl.svelte-b848yl{width:100%}table.svelte-b848yl.svelte-b848yl{width:100%}tr.svelte-b848yl.svelte-b848yl{padding:0.25rem 1rem;line-height:1rem;border-bottom:1px solid var(--border-color);display:flex;flex-direction:row;align-items:flex-start;gap:1rem}thead.svelte-b848yl .secondary-token-table-header.svelte-b848yl{text-align:inherit;font-size:var(--onboard-font-size-7, var(--font-size-7))}.token-icon.svelte-b848yl.svelte-b848yl{width:30%;font-weight:700;font-size:var(--onboard-font-size-6, var(--font-size-6));color:var(--text-color)}.icon-name-container.svelte-b848yl.svelte-b848yl{display:flex;flex-direction:row;align-items:flex-start;padding:0px;gap:0.5rem}.icon.svelte-b848yl.svelte-b848yl{width:1rem;height:1rem}img.svelte-b848yl.svelte-b848yl{height:100%;width:100%}.token-balance.svelte-b848yl.svelte-b848yl{width:70%;font-weight:200;font-size:var(--onboard-font-size-6, var(--font-size-6));color:var(--text-color)}")}function N(e,n,t){const o=e.slice();return o[1]=n[t],o}function R(e){let n,t,r,a,i,c,l,s,d,u=e[1].name.toUpperCase()+"",m=(e[1].balance.length>7?e[1].balance.slice(0,7):e[1].balance)+"";function p(e,n){return e[1].icon?O:U}let v=p(e),f=v(e);return{c(){n=(0,o.j)("tr"),t=(0,o.j)("td"),r=(0,o.j)("div"),f.c(),a=(0,o.G)(),i=(0,o.t)(u),c=(0,o.G)(),l=(0,o.j)("td"),s=(0,o.t)(m),d=(0,o.G)(),(0,o.k)(r,"class","icon-name-container svelte-b848yl"),(0,o.k)(t,"class","token-icon svelte-b848yl"),(0,o.k)(l,"class","token-balance svelte-b848yl"),(0,o.k)(n,"class","token-row svelte-b848yl")},m(e,u){(0,o.b)(e,n,u),(0,o.m)(n,t),(0,o.m)(t,r),f.m(r,null),(0,o.m)(r,a),(0,o.m)(r,i),(0,o.m)(n,c),(0,o.m)(n,l),(0,o.m)(l,s),(0,o.m)(n,d)},p(e,n){v===(v=p(e))&&f?f.p(e,n):(f.d(1),f=v(e),f&&(f.c(),f.m(r,a))),1&n&&u!==(u=e[1].name.toUpperCase()+"")&&(0,o.v)(i,u),1&n&&m!==(m=(e[1].balance.length>7?e[1].balance.slice(0,7):e[1].balance)+"")&&(0,o.v)(s,m)},d(e){e&&(0,o.d)(n),f.d()}}}function U(e){let n;return{c(){n=(0,o.j)("div"),(0,o.k)(n,"class","icon svelte-b848yl")},m(e,t){(0,o.b)(e,n,t)},p:o.n,d(e){e&&(0,o.d)(n)}}}function O(e){let n,t,r={ctx:e,current:null,token:null,hasCatch:!1,pending:ee,then:X,catch:J,value:4};return(0,o._)(t=e[1].icon,r),{c(){n=(0,o.e)(),r.block.c()},m(e,t){(0,o.b)(e,n,t),r.block.m(e,r.anchor=t),r.mount=()=>n.parentNode,r.anchor=n},p(n,a){e=n,r.ctx=e,1&a&&t!==(t=e[1].icon)&&(0,o._)(t,r)||(0,o.$)(r,e,a)},d(e){e&&(0,o.d)(n),r.block.d(e),r.token=null,r=null}}}function J(e){return{c:o.n,m:o.n,p:o.n,i:o.n,o:o.n,d:o.n}}function X(e){let n,t,r;function a(e,n){return 1&n&&(t=null),null==t&&(t=!!(0,o.a0)(e[4])),t?Q:Y}let i=a(e,-1),c=i(e);return{c(){n=(0,o.j)("div"),c.c(),(0,o.k)(n,"class","icon svelte-b848yl")},m(e,t){(0,o.b)(e,n,t),c.m(n,null)},p(e,t){i===(i=a(e,t))&&c?c.p(e,t):(c.d(1),c=i(e),c&&(c.c(),c.m(n,null)))},i(e){e&&(r||(0,o.U)((()=>{r=(0,o.V)(n,o.X,{}),r.start()})))},o:o.n,d(e){e&&(0,o.d)(n),c.d()}}}function Y(e){let n,t;return{c(){n=(0,o.j)("img"),(0,o.a1)(n.src,t=e[4])||(0,o.k)(n,"src",t),(0,o.k)(n,"alt","logo"),(0,o.k)(n,"class","svelte-b848yl")},m(e,t){(0,o.b)(e,n,t)},p(e,r){1&r&&!(0,o.a1)(n.src,t=e[4])&&(0,o.k)(n,"src",t)},d(e){e&&(0,o.d)(n)}}}function Q(e){let n,t,r=e[4]+"";return{c(){n=new o.a2(!1),t=(0,o.e)(),n.a=t},m(e,a){n.m(r,e,a),(0,o.b)(e,t,a)},p(e,t){1&t&&r!==(r=e[4]+"")&&n.p(r)},d(e){e&&(0,o.d)(t),e&&n.d()}}}function ee(e){return{c:o.n,m:o.n,p:o.n,i:o.n,o:o.n,d:o.n}}function ne(e){let n,t=e[1]&&e[1].name&&e[1].balance&&R(e);return{c(){t&&t.c(),n=(0,o.e)()},m(e,r){t&&t.m(e,r),(0,o.b)(e,n,r)},p(e,o){e[1]&&e[1].name&&e[1].balance?t?t.p(e,o):(t=R(e),t.c(),t.m(n.parentNode,n)):t&&(t.d(1),t=null)},d(e){t&&t.d(e),e&&(0,o.d)(n)}}}function te(e){let n,t,r,a,i,c=e[0],l=[];for(let o=0;oToken Balances:',a=(0,o.G)(),i=(0,o.j)("tbody");for(let e=0;e{"secondaryTokens"in e&&t(0,o=e.secondaryTokens)},[o]}class re extends o.S{constructor(e){super(),(0,o.i)(this,e,oe,te,o.s,{secondaryTokens:0},Z)}}function ae(e){(0,o.a)(e,"svelte-177u10y",".outer-container.svelte-177u10y{--background-color:var(--w3o-background-color);--text-color:var(--w3o-text-color);--border-color:var(--w3o-border-color, var(--gray-500));--action-color:var(--w3o-action-color, var(--primary-500));--border-radius:var(--w3o-border-radius, 1rem);--account-center-network-selector-color:var(--text-color, white);width:100%;overflow:hidden;pointer-events:auto;border:1px solid transparent;background:var(\n --account-center-maximized-upper-background,\n var(--background-color)\n );border-color:var(--border-color);border-radius:var(--account-center-border-radius, var(--border-radius))}.wallets-section.svelte-177u10y{width:100%;color:var(--text-color, var(--gray-100));background:var(--background-color, var(--gray-700))}.p5.svelte-177u10y{padding:var(--onboard-spacing-5, var(--spacing-5))}.wallets.svelte-177u10y{width:100%;margin-bottom:0.5rem}.actions.svelte-177u10y{color:var(\n --account-center-maximized-upper-action-color,\n var(--action-color)\n );padding-left:2px}.action-container.svelte-177u10y{padding:0.25rem 12px 0.25rem 0.5rem;border-radius:0.5rem;transition:background-color 150ms ease-in-out}.action-container.svelte-177u10y:hover{background-color:var(\n --account-center-maximized-upper-action-background-hover,\n rgba(146, 155, 237, 0.2)\n )}.plus-icon.svelte-177u10y{width:20px}.arrow-forward.svelte-177u10y{width:20px}.mt.svelte-177u10y{margin-top:0.25rem}.action-text.svelte-177u10y{font-size:var(--onboard-font-size-6, var(--font-size-6));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));margin-left:0.5rem}.background-blue.svelte-177u10y{background:var(\n --account-center-maximized-network-section-background,\n var(--onboard-primary-100, var(--primary-100))\n )}.background-gray.svelte-177u10y{background:var(--onboard-gray-100, var(--gray-100))}.background-yellow.svelte-177u10y{background:var(--onboard-warning-100, var(--warning-100))}.network-container.svelte-177u10y{background:var(--background-color);border-top:1px solid var(--border-color);width:100%;display:flex;flex-direction:column;align-items:flex-start;padding:0.75rem;gap:0.5rem;border-radius:var(\n --account-center-border-radius,\n var(--onboard-border-radius-3, var(--border-radius-3))\n );color:var(\n --account-center-maximized-network-text-color,\n var(--account-center-maximized-network-section, inherit)\n )}.network-section.svelte-177u10y{flex-direction:row;align-items:flex-start;padding:0px;gap:16px}.network-selector-container.svelte-177u10y{width:100%}.protect.svelte-177u10y{flex-direction:row;padding:0.25rem 0.375rem 0;gap:0.375rem;width:100%}.shield.svelte-177u10y{width:20px;height:20px;display:flex;justify-content:center}.protect-text.svelte-177u10y{font-size:var(--onboard-font-size-6, var(--font-size-6));color:var(\n --account-center-maximized-upper-action-color,\n var(--action-color)\n );line-height:1.75rem;display:flex;align-items:center}.network-selector-container.svelte-177u10y{margin-left:1rem;width:100%}.network-selector-label.svelte-177u10y{font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3))}.app-info-container.svelte-177u10y{color:var(--text-color, var(--gray-700));background:var(\n --account-center-maximized-info-section-background-color,\n var(\n --account-center-maximized-info-section,\n var(--background-color, #fff)\n )\n );border-top:1px solid var(--border-color);border-radius:var(--account-center-border-radius, inherit);display:flex;flex-direction:column;align-items:flex-start;padding:0px}.app-info-header.svelte-177u10y{width:100%;flex-direction:column;align-items:flex-start;padding:0.75rem;gap:0.5rem;border-bottom:1px solid var(--border-color)}.app-icon-name.svelte-177u10y{display:flex;align-items:center;flex-direction:row;gap:0.75rem}.app-name.svelte-177u10y{font-size:1rem;font-weight:600;line-height:1rem;margin-bottom:0.25rem;color:var(--account-center-maximized-app-name-color, inherit)}.app-description.svelte-177u10y{margin:0;font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));color:var(--account-center-maximized-app-info-color, inherit);display:flex;flex-direction:row;align-items:flex-start;padding:0px 0.25rem;gap:1rem}.app-info.svelte-177u10y{width:100%;font-size:var(--onboard-font-size-7, var(--font-size-7));line-height:var(--onboard-font-line-height-3, var(--font-line-height-3));color:var(--account-center-maximized-app-info-color, inherit);border-bottom:1px solid var(--border-color);display:flex;flex-direction:column;align-items:flex-start;padding:0.5rem 1rem;gap:0.25rem}.app-info-heading.svelte-177u10y{font-weight:700;color:var(--account-center-maximized-app-info-color, inherit)}.w100.svelte-177u10y{width:100%}a.svelte-177u10y{font-weight:700}.powered-by-container.svelte-177u10y{color:var(--text-color);padding:0.75rem}")}function ie(e,n,t){const o=e.slice();return o[29]=n[t],o[31]=t,o}function ce(e){let n,t;return n=new q({props:{onClose:e[22],onConfirm:e[13]}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p(e,t){const o={};4&t[0]&&(o.onClose=e[22]),n.$set(o)},i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function le(e){let n,t;return n=new E({props:{onDismiss:e[23],onEnable:e[24],infoLink:e[9].transactionProtectionInfoLink||o.a5}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p(e,t){const r={};16&t[0]&&(r.onDismiss=e[23]),512&t[0]&&(r.infoLink=e[9].transactionProtectionInfoLink||o.a5),n.$set(r)},i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function se(e){let n,t,r,a,i,c,l,s,u,m,p,v,f,g,b,h,x,k,y,$,C,j,z,A,G,T,I,F,M,P,S=[],V=new Map,D=e[10]("accountCenter.currentNetwork",{default:o.C.accountCenter.currentNetwork})+"",q=e[1];const _=e=>e[29].label;for(let o=0;o',parentCSSId:"maximized_ac"}});let B=!e[9].hideTransactionProtectionBtn&&(e[6]||e[5]?.protectedRpcUrl)&&me(e),E=e[11]&&pe(e),Z=e[8]&&e[8].length&&be(e);return{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.j)("div"),a=(0,o.j)("div");for(let e=0;e{K=null})),(0,o.z)()),(!F||1024&t[0])&&D!==(D=e[10]("accountCenter.currentNetwork",{default:o.C.accountCenter.currentNetwork})+"")&&(0,o.v)(h,D),e[9].hideTransactionProtectionBtn||!e[6]&&!e[5]?.protectedRpcUrl?B&&(B.d(1),B=null):B?B.p(e,t):(B=me(e),B.c(),B.m(s,null)),(!F||160&t[0])&&(0,o.H)(s,"background-blue",e[5]&&e[5].icon||e[7]),(!F||32&t[0])&&(0,o.H)(s,"background-yellow",!e[5]),(!F||160&t[0])&&(0,o.H)(s,"background-gray",e[5]&&!e[7]),e[11]?E?(E.p(e,t),2048&t[0]&&(0,o.x)(E,1)):(E=pe(e),E.c(),(0,o.x)(E,1),E.m(j,z)):E&&((0,o.y)(),(0,o.A)(E,1,1,(()=>{E=null})),(0,o.z)()),e[8]&&e[8].length?Z?(Z.p(e,t),256&t[0]&&(0,o.x)(Z,1)):(Z=be(e),Z.c(),(0,o.x)(Z,1),Z.m(j,A)):Z&&((0,o.y)(),(0,o.A)(Z,1,1,(()=>{Z=null})),(0,o.z)())},i(t){if(!F){for(let e=0;e{F&&(I||(I=(0,o.a9)(n,o.ab,{duration:600,y:e[16].includes("bottom")?56:-76,easing:o.aa,opacity:0},!0)),I.run(1))})),F=!0}},o(t){for(let e=0;e(0,o.ac)(r,"hideMenu",c))),{key:e,first:null,c(){t=(0,o.e)(),(0,o.F)(r.$$.fragment),this.first=t},m(e,n){(0,o.b)(e,t,n),(0,o.I)(r,e,n),i=!0},p(e,t){n=e;const i={};2&t[0]&&(i.wallet=n[29]),2&t[0]&&(i.primary=0===n[31]),!a&&8&t[0]&&(a=!0,i.hideMenu=n[3],(0,o.ad)((()=>a=!1))),r.$set(i)},i(e){i||((0,o.x)(r.$$.fragment,e),i=!0)},o(e){(0,o.A)(r.$$.fragment,e),i=!1},d(e){e&&(0,o.d)(t),(0,o.K)(r,e)}}}function ue(e){let n,t,r;return t=new o.R({props:{size:14}}),{c(){n=(0,o.j)("div"),(0,o.F)(t.$$.fragment),(0,o.T)(n,"right","-5px"),(0,o.T)(n,"bottom","-5px"),(0,o.k)(n,"class","drop-shadow absolute")},m(e,a){(0,o.b)(e,n,a),(0,o.I)(t,n,null),r=!0},i(e){r||((0,o.x)(t.$$.fragment,e),r=!0)},o(e){(0,o.A)(t.$$.fragment,e),r=!1},d(e){e&&(0,o.d)(n),(0,o.K)(t)}}}function me(e){let n,t,r,a,i,c,l,s=e[10]("accountCenter.enableTransactionProtection",{default:o.C.accountCenter.enableTransactionProtection})+"";return{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.G)(),a=(0,o.j)("span"),i=(0,o.t)(s),(0,o.k)(t,"class","shield svelte-177u10y"),(0,o.k)(a,"class","protect-text svelte-177u10y"),(0,o.k)(n,"class","protect action-container flex items-center pointer svelte-177u10y")},m(s,d){(0,o.b)(s,n,d),(0,o.m)(n,t),t.innerHTML=M,(0,o.m)(n,r),(0,o.m)(n,a),(0,o.m)(a,i),c||(l=(0,o.p)(n,"click",e[28]),c=!0)},p(e,n){1024&n[0]&&s!==(s=e[10]("accountCenter.enableTransactionProtection",{default:o.C.accountCenter.enableTransactionProtection})+"")&&(0,o.v)(i,s)},d(e){e&&(0,o.d)(n),c=!1,l()}}}function pe(e){let n,t,r,a,i,c,l,s,d,u,m,p,v=(e[11]&&e[11].name||"App Name")+"",f=(e[11]&&e[11].description||"This app has not added a description.")+"";r=new o.W({props:{size:32,padding:4,background:"white",border:"black",radius:8,icon:e[11]&&e[11].icon||o.ae}});let g=(e[11].gettingStartedGuide||e[11].explore)&&ve(e);return{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),(0,o.F)(r.$$.fragment),a=(0,o.G)(),i=(0,o.j)("div"),c=(0,o.t)(v),l=(0,o.G)(),s=(0,o.j)("div"),d=(0,o.t)(f),u=(0,o.G)(),g&&g.c(),m=(0,o.e)(),(0,o.k)(i,"class","app-name svelte-177u10y"),(0,o.k)(t,"class","relative flex app-icon-name svelte-177u10y"),(0,o.k)(s,"class","app-description svelte-177u10y"),(0,o.k)(n,"class","flex items-start app-info-header svelte-177u10y")},m(e,v){(0,o.b)(e,n,v),(0,o.m)(n,t),(0,o.I)(r,t,null),(0,o.m)(t,a),(0,o.m)(t,i),(0,o.m)(i,c),(0,o.m)(n,l),(0,o.m)(n,s),(0,o.m)(s,d),(0,o.b)(e,u,v),g&&g.m(e,v),(0,o.b)(e,m,v),p=!0},p(e,n){const t={};2048&n[0]&&(t.icon=e[11]&&e[11].icon||o.ae),r.$set(t),(!p||2048&n[0])&&v!==(v=(e[11]&&e[11].name||"App Name")+"")&&(0,o.v)(c,v),(!p||2048&n[0])&&f!==(f=(e[11]&&e[11].description||"This app has not added a description.")+"")&&(0,o.v)(d,f),e[11].gettingStartedGuide||e[11].explore?g?g.p(e,n):(g=ve(e),g.c(),g.m(m.parentNode,m)):g&&(g.d(1),g=null)},i(e){p||((0,o.x)(r.$$.fragment,e),p=!0)},o(e){(0,o.A)(r.$$.fragment,e),p=!1},d(e){e&&(0,o.d)(n),(0,o.K)(r),e&&(0,o.d)(u),g&&g.d(e),e&&(0,o.d)(m)}}}function ve(e){let n,t,r,a,i,c=e[10]("accountCenter.appInfo",{default:o.C.accountCenter.appInfo})+"",l=e[11].gettingStartedGuide&&fe(e),s=e[11].explore&&ge(e);return{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.t)(c),a=(0,o.G)(),l&&l.c(),i=(0,o.G)(),s&&s.c(),(0,o.k)(t,"class","app-info-heading svelte-177u10y"),(0,o.k)(n,"class","app-info svelte-177u10y")},m(e,c){(0,o.b)(e,n,c),(0,o.m)(n,t),(0,o.m)(t,r),(0,o.m)(n,a),l&&l.m(n,null),(0,o.m)(n,i),s&&s.m(n,null)},p(e,t){1024&t[0]&&c!==(c=e[10]("accountCenter.appInfo",{default:o.C.accountCenter.appInfo})+"")&&(0,o.v)(r,c),e[11].gettingStartedGuide?l?l.p(e,t):(l=fe(e),l.c(),l.m(n,i)):l&&(l.d(1),l=null),e[11].explore?s?s.p(e,t):(s=ge(e),s.c(),s.m(n,null)):s&&(s.d(1),s=null)},d(e){e&&(0,o.d)(n),l&&l.d(),s&&s.d()}}}function fe(e){let n,t,r,a,i,c,l,s=e[10]("accountCenter.learnMore",{default:o.C.accountCenter.learnMore})+"",d=e[10]("accountCenter.gettingStartedGuide",{default:o.C.accountCenter.gettingStartedGuide})+"";return{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.t)(s),a=(0,o.G)(),i=(0,o.j)("a"),c=(0,o.t)(d),(0,o.k)(i,"href",l=e[11].gettingStartedGuide),(0,o.k)(i,"target","_blank"),(0,o.k)(i,"rel","noreferrer noopener"),(0,o.k)(i,"class","svelte-177u10y"),(0,o.k)(n,"class","flex justify-between items-center w100 svelte-177u10y")},m(e,l){(0,o.b)(e,n,l),(0,o.m)(n,t),(0,o.m)(t,r),(0,o.m)(n,a),(0,o.m)(n,i),(0,o.m)(i,c)},p(e,n){1024&n[0]&&s!==(s=e[10]("accountCenter.learnMore",{default:o.C.accountCenter.learnMore})+"")&&(0,o.v)(r,s),1024&n[0]&&d!==(d=e[10]("accountCenter.gettingStartedGuide",{default:o.C.accountCenter.gettingStartedGuide})+"")&&(0,o.v)(c,d),2048&n[0]&&l!==(l=e[11].gettingStartedGuide)&&(0,o.k)(i,"href",l)},d(e){e&&(0,o.d)(n)}}}function ge(e){let n,t,r,a,i,c,l,s=e[10]("accountCenter.smartContracts",{default:o.C.accountCenter.smartContracts})+"",d=e[10]("accountCenter.explore",{default:o.C.accountCenter.explore})+"";return{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.t)(s),a=(0,o.G)(),i=(0,o.j)("a"),c=(0,o.t)(d),(0,o.k)(i,"href",l=e[11].explore),(0,o.k)(i,"target","_blank"),(0,o.k)(i,"rel","noreferrer noopener"),(0,o.k)(i,"class","svelte-177u10y"),(0,o.k)(n,"class","flex justify-between items-center w100 svelte-177u10y")},m(e,l){(0,o.b)(e,n,l),(0,o.m)(n,t),(0,o.m)(t,r),(0,o.m)(n,a),(0,o.m)(n,i),(0,o.m)(i,c)},p(e,n){1024&n[0]&&s!==(s=e[10]("accountCenter.smartContracts",{default:o.C.accountCenter.smartContracts})+"")&&(0,o.v)(r,s),1024&n[0]&&d!==(d=e[10]("accountCenter.explore",{default:o.C.accountCenter.explore})+"")&&(0,o.v)(c,d),2048&n[0]&&l!==(l=e[11].explore)&&(0,o.k)(i,"href",l)},d(e){e&&(0,o.d)(n)}}}function be(e){let n,t;return n=new re({props:{secondaryTokens:e[8]}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p(e,t){const o={};256&t[0]&&(o.secondaryTokens=e[8]),n.$set(o)},i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function he(e){let n,t,r,a,i=e[2]&&ce(e),c=e[4]&&le(e),l=e[0]&&se(e);return{c(){i&&i.c(),n=(0,o.G)(),c&&c.c(),t=(0,o.G)(),l&&l.c(),r=(0,o.e)()},m(e,s){i&&i.m(e,s),(0,o.b)(e,n,s),c&&c.m(e,s),(0,o.b)(e,t,s),l&&l.m(e,s),(0,o.b)(e,r,s),a=!0},p(e,a){e[2]?i?(i.p(e,a),4&a[0]&&(0,o.x)(i,1)):(i=ce(e),i.c(),(0,o.x)(i,1),i.m(n.parentNode,n)):i&&((0,o.y)(),(0,o.A)(i,1,1,(()=>{i=null})),(0,o.z)()),e[4]?c?(c.p(e,a),16&a[0]&&(0,o.x)(c,1)):(c=le(e),c.c(),(0,o.x)(c,1),c.m(t.parentNode,t)):c&&((0,o.y)(),(0,o.A)(c,1,1,(()=>{c=null})),(0,o.z)()),e[0]?l?(l.p(e,a),1&a[0]&&(0,o.x)(l,1)):(l=se(e),l.c(),(0,o.x)(l,1),l.m(r.parentNode,r)):l&&((0,o.y)(),(0,o.A)(l,1,1,(()=>{l=null})),(0,o.z)())},i(e){a||((0,o.x)(i),(0,o.x)(c),(0,o.x)(l),a=!0)},o(e){(0,o.A)(i),(0,o.A)(c),(0,o.A)(l),a=!1},d(e){i&&i.d(e),e&&(0,o.d)(n),c&&c.d(e),e&&(0,o.d)(t),l&&l.d(e),e&&(0,o.d)(r)}}}function xe(e,n,t){let r,c,s,d,u,m,p,v,f,g;(0,o.c)(e,o.w,(e=>t(1,p=e))),(0,o.c)(e,a._,(e=>t(10,f=e)));let{expanded:b}=n;const h=o.a3.select("accountCenter").pipe((0,i.startWith)(o.a3.get().accountCenter),(0,i.shareReplay)(1));(0,o.c)(e,h,(e=>t(9,v=e)));const{chains:x}=o.a3.get();let w,k=!1,y=!1;const $=o.a3.select("appMetadata").pipe((0,i.startWith)(o.a3.get().appMetadata),(0,i.shareReplay)(1));(0,o.c)(e,$,(e=>t(11,g=e)));const{position:C}=o.a3.get().accountCenter,{device:j}=o.af,z=async()=>{try{await(0,o.ag)(r.provider,d,d?.protectedRpcUrl||o.ah),t(4,y=!1)}catch(e){const{code:n}=e;l.log(e,n)}};return e.$$set=e=>{"expanded"in e&&t(0,b=e.expanded)},e.$$.update=()=>{2&e.$$.dirty[0]&&t(19,[r]=p,r),524288&e.$$.dirty[0]&&t(20,[c]=r?r.chains:[],c),524288&e.$$.dirty[0]&&t(8,s=r&&r.accounts.length&&r.accounts[0].secondaryTokens),1048576&e.$$.dirty[0]&&t(5,d=x.find((({id:e,namespace:n})=>!!c&&(e===c.id&&n===c.namespace)))),1048576&e.$$.dirty[0]&&t(7,u=(0,o.a4)(c&&c.id)),1048576&e.$$.dirty[0]&&t(6,m=c&&"0x1"===c.id)},[b,p,k,w,y,d,m,u,s,v,f,g,h,function(){p.forEach((({label:e})=>(0,o.P)({label:e})))},x,$,C,j,z,r,c,function(n){o.ai.call(this,e,n)},()=>t(2,k=!1),()=>t(4,y=!1),()=>z(),function(e){w=e,t(3,w)},()=>(0,o.aj)(),()=>t(2,k=!0),()=>t(4,y=!0)]}class we extends o.S{constructor(e){super(),(0,o.i)(this,e,xe,he,o.s,{expanded:0},ae,[-1,-1])}}function ke(e){(0,o.a)(e,"svelte-1xsvwqj",".ac-trigger.svelte-1xsvwqj{--background-color:var(\n --account-center-minimized-background,\n var(--w3o-background-color, white)\n );--text-color:var(--w3o-text-color, var(--gray-700));--border-color:var(\n --account-center-border,\n var(--w3o-border-color, var(--onboard-gray-200, var(--gray-200)))\n );--border-radius:var(\n --account-center-border-radius,\n var(--w3o-border-radius, 1rem)\n );cursor:pointer;pointer-events:auto;width:100%;padding:0.5rem;border:1px solid;background:var(--background-color);color:var(--text-color);border-color:var(--border-color);border-radius:var(--border-radius);box-shadow:var(\n --account-center-box-shadow,\n var(--onboard-shadow-3, var(--shadow-3))\n );z-index:var(--account-center-z-index, 1)}.inner-row.svelte-1xsvwqj{display:flex;flex-flow:row nowrap;align-items:center;gap:0.5rem;padding:0 0.25rem}.wallet-info.svelte-1xsvwqj{display:flex;flex:1;flex-flow:column;height:2.5rem;overflow:hidden}.address.svelte-1xsvwqj{font-weight:600;line-height:1.25rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:var(--account-center-minimized-address-color, inherit)}.balance.svelte-1xsvwqj{font-weight:400;line-height:1.25rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;opacity:0.6;color:var(--account-center-minimized-balance-color, inherit)}.chain-icon-container.svelte-1xsvwqj{margin-right:4px}.container.svelte-1xsvwqj{border:1px solid transparent;border-radius:16px;padding:1px;transition:border-color 250ms ease-in-out, backround 250ms ease-in-out;max-width:128px;cursor:default}.drop-shadow.svelte-1xsvwqj{filter:drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.2))}")}function ye(e){let n,t,r,a,i,c=(e[5].length>7?e[5].slice(0,7):e[5])+"";return{c(){n=(0,o.j)("div"),t=(0,o.t)(c),r=(0,o.G)(),a=(0,o.t)(e[2]),(0,o.k)(n,"class","balance svelte-1xsvwqj")},m(e,i){(0,o.b)(e,n,i),(0,o.m)(n,t),(0,o.m)(n,r),(0,o.m)(n,a)},p(e,n){32&n&&c!==(c=(e[5].length>7?e[5].slice(0,7):e[5])+"")&&(0,o.v)(t,c),4&n&&(0,o.v)(a,e[2])},i(e){e&&(i||(0,o.U)((()=>{i=(0,o.V)(n,o.X,{}),i.start()})))},o:o.n,d(e){e&&(0,o.d)(n)}}}function $e(e){let n,t,r,a,i,c,l,u,m,p,v,f,g,b,h,x,k,y,$,C,j,z,A,G,T,I,F,H,L,M,P=(e[8]?(0,o.D)(e[8]):e[7]?(0,o.D)(e[7]):e[6])+"";i=new o.W({props:{size:32,padding:4,background:"white",border:"darkGreen",radius:8,icon:e[9]&&e[9].icon||o.ae}}),u=new o.W({props:{size:32,padding:4,background:"green",border:"darkGreen",radius:8,icon:e[1]?e[1].icon:""}}),v=new o.R({props:{size:14}});let S=e[5]&&ye(e);return z=new o.W({props:{size:22,padding:4,background:"custom",color:e[4]?e[4].icon?void 0:"var(--onboard-primary-100, var(--primary-100))":"var(\n --account-center-chain-warning,\n var(--onboard-warning-500, var(--warning-500))\n )",customBackgroundColor:e[4]?e[4].color||e[3]&&e[3].color||o.a6.color:"var(--onboard-warning-200, var(--warning-200))",border:"transparent",radius:25,icon:e[4]?e[4].icon||e[3]&&e[3].icon||o.a6.icon:d}}),G=new w({props:{chains:e[11],colorVar:"--account-center-minimized-network-selector-color",selectIcon:s,parentCSSId:"minimized_ac"}}),{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.j)("div"),a=(0,o.j)("div"),(0,o.F)(i.$$.fragment),c=(0,o.G)(),l=(0,o.j)("div"),(0,o.F)(u.$$.fragment),m=(0,o.G)(),p=(0,o.j)("div"),(0,o.F)(v.$$.fragment),f=(0,o.G)(),g=(0,o.j)("div"),b=(0,o.j)("div"),h=(0,o.t)(P),x=(0,o.G)(),S&&S.c(),k=(0,o.G)(),y=(0,o.j)("div"),$=(0,o.j)("div"),C=(0,o.j)("div"),j=(0,o.j)("div"),(0,o.F)(z.$$.fragment),A=(0,o.G)(),(0,o.F)(G.$$.fragment),(0,o.k)(a,"class","drop-shadow svelte-1xsvwqj"),(0,o.T)(l,"margin-left","-0.5rem"),(0,o.k)(l,"class","drop-shadow svelte-1xsvwqj"),(0,o.T)(p,"right","-4px"),(0,o.T)(p,"bottom","-4px"),(0,o.k)(p,"class","drop-shadow absolute svelte-1xsvwqj"),(0,o.k)(r,"class","flex relative"),(0,o.k)(b,"class","address svelte-1xsvwqj"),(0,o.k)(g,"class","wallet-info svelte-1xsvwqj"),(0,o.k)(j,"class","chain-icon-container svelte-1xsvwqj"),(0,o.k)(C,"class","flex items-center"),(0,o.k)($,"class","container shadow-1 flex items-center svelte-1xsvwqj"),(0,o.k)($,"style",T=`border-color: var(${e[4]?"--onboard-primary-200, var(--primary-200)":"--onboard-warning-500, var(--warning-500)"}); background-color: var(${e[4]?"--account-center-minimized-chain-select-background, var(--primary-100)":"--account-center-minimized-chain-select-background-warning, var(--warning-100)"})`),(0,o.k)(y,"class","network"),(0,o.k)(t,"class","inner-row svelte-1xsvwqj"),(0,o.k)(n,"class","ac-trigger svelte-1xsvwqj")},m(s,d){(0,o.b)(s,n,d),(0,o.m)(n,t),(0,o.m)(t,r),(0,o.m)(r,a),(0,o.I)(i,a,null),(0,o.m)(r,c),(0,o.m)(r,l),(0,o.I)(u,l,null),(0,o.m)(r,m),(0,o.m)(r,p),(0,o.I)(v,p,null),(0,o.m)(t,f),(0,o.m)(t,g),(0,o.m)(g,b),(0,o.m)(b,h),(0,o.m)(g,x),S&&S.m(g,null),(0,o.m)(t,k),(0,o.m)(t,y),(0,o.m)(y,$),(0,o.m)($,C),(0,o.m)(C,j),(0,o.I)(z,j,null),(0,o.m)(C,A),(0,o.I)(G,C,null),H=!0,L||(M=[(0,o.p)($,"click",(0,o.J)(e[15])),(0,o.p)(n,"click",(0,o.J)((function(){(0,o.Z)(e[0])&&e[0].apply(this,arguments)})))],L=!0)},p(n,[t]){e=n;const r={};512&t&&(r.icon=e[9]&&e[9].icon||o.ae),i.$set(r);const a={};2&t&&(a.icon=e[1]?e[1].icon:""),u.$set(a),(!H||448&t)&&P!==(P=(e[8]?(0,o.D)(e[8]):e[7]?(0,o.D)(e[7]):e[6])+"")&&(0,o.v)(h,P),e[5]?S?(S.p(e,t),32&t&&(0,o.x)(S,1)):(S=ye(e),S.c(),(0,o.x)(S,1),S.m(g,null)):S&&(S.d(1),S=null);const c={};16&t&&(c.color=e[4]?e[4].icon?void 0:"var(--onboard-primary-100, var(--primary-100))":"var(\n --account-center-chain-warning,\n var(--onboard-warning-500, var(--warning-500))\n )"),24&t&&(c.customBackgroundColor=e[4]?e[4].color||e[3]&&e[3].color||o.a6.color:"var(--onboard-warning-200, var(--warning-200))"),24&t&&(c.icon=e[4]?e[4].icon||e[3]&&e[3].icon||o.a6.icon:d),z.$set(c),(!H||16&t&&T!==(T=`border-color: var(${e[4]?"--onboard-primary-200, var(--primary-200)":"--onboard-warning-500, var(--warning-500)"}); background-color: var(${e[4]?"--account-center-minimized-chain-select-background, var(--primary-100)":"--account-center-minimized-chain-select-background-warning, var(--warning-100)"})`))&&(0,o.k)($,"style",T)},i(e){H||((0,o.x)(i.$$.fragment,e),(0,o.x)(u.$$.fragment,e),(0,o.x)(v.$$.fragment,e),(0,o.x)(S),(0,o.x)(z.$$.fragment,e),(0,o.x)(G.$$.fragment,e),e&&(0,o.U)((()=>{H&&(F&&F.end(1),I=(0,o.V)(n,o.X,{duration:250}),I.start())})),H=!0)},o(e){(0,o.A)(i.$$.fragment,e),(0,o.A)(u.$$.fragment,e),(0,o.A)(v.$$.fragment,e),(0,o.A)(z.$$.fragment,e),(0,o.A)(G.$$.fragment,e),I&&I.invalidate(),F=(0,o.ak)(n,o.X,{duration:100}),H=!1},d(e){e&&(0,o.d)(n),(0,o.K)(i),(0,o.K)(u),(0,o.K)(v),S&&S.d(),(0,o.K)(z),(0,o.K)(G),e&&F&&F.end(),L=!1,(0,o.L)(M)}}}function Ce(e,n,t){let r,a,c,l,s,d,u,m,p,v,f,g;(0,o.c)(e,o.w,(e=>t(14,f=e)));let{toggle:b}=n;const h=o.a3.select("appMetadata").pipe((0,i.startWith)(o.a3.get().appMetadata),(0,i.shareReplay)(1));(0,o.c)(e,h,(e=>t(9,g=e)));const x=o.a3.get().chains;return e.$$set=e=>{"toggle"in e&&t(0,b=e.toggle)},e.$$.update=()=>{16384&e.$$.dirty&&t(1,[r]=f,r),2&e.$$.dirty&&t(13,[a]=r?r.accounts:[],a),8192&e.$$.dirty&&t(8,c=a&&a.ens&&(0,o.D)(a.ens.name)),8192&e.$$.dirty&&t(7,l=a&&a.uns&&(0,o.D)(a.uns.name)),8192&e.$$.dirty&&t(6,s=a?(0,o.E)(a.address):""),8192&e.$$.dirty&&t(2,[d]=a&&a.balance?Object.keys(a.balance):[],d),8196&e.$$.dirty&&t(5,u=a&&a.balance?a.balance[d]:null),2&e.$$.dirty&&t(12,m=r&&r.chains[0]),4096&e.$$.dirty&&t(4,p=x.find((({id:e,namespace:n})=>!!m&&(e===m.id&&n===m.namespace)))),4096&e.$$.dirty&&t(3,v=(0,o.a4)(m&&m.id))},[b,r,d,v,p,u,s,l,c,g,h,x,m,a,f,function(n){o.ai.call(this,e,n)}]}class je extends o.S{constructor(e){super(),(0,o.i)(this,e,Ce,$e,o.s,{toggle:0},ke)}}function ze(e){(0,o.a)(e,"svelte-1o9vinu",".ac-trigger.svelte-1o9vinu{--background-color:var(\n --account-center-minimized-background,\n var(--w3o-background-color, white)\n );--text-color:var(--w3o-text-color, var(--gray-700));--border-color:var(\n --account-center-border,\n var(--w3o-border-color, var(--onboard-gray-200, var(--gray-200)))\n );--border-radius:var(\n --account-center-border-radius,\n var(--w3o-border-radius, 1rem)\n );position:relative;cursor:pointer;pointer-events:auto;min-width:80px;background:var(--background-color);color:var(--text-color);border:1px solid var(--border-color);border-radius:var(--border-radius);box-shadow:var(\n --account-center-box-shadow,\n var(--onboard-shadow-3, var(--shadow-3))\n );z-index:var(--account-center-z-index, 1)}.wallet-square-wrapper.svelte-1o9vinu{position:relative;margin-left:-8px}.check-icon-wrapper.svelte-1o9vinu{position:absolute;right:-4px;bottom:-4px}.inner-row.svelte-1o9vinu{display:flex;flex-flow:row nowrap;width:80px;padding:0.75rem}.drop-shadow.svelte-1o9vinu{filter:drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.2))}")}function Ae(e){let n,t,r,a,i,c,l,s,d,u,m,p,v,f,g;return a=new o.W({props:{size:32,padding:4,background:"white",border:"darkGreen",radius:8,icon:e[3]&&e[3].icon||o.ae}}),s=new o.W({props:{size:32,padding:4,background:"green",border:"darkGreen",radius:8,icon:e[1]?e[1].icon:""}}),m=new o.R({props:{size:14}}),{c(){n=(0,o.j)("div"),t=(0,o.j)("div"),r=(0,o.j)("div"),(0,o.F)(a.$$.fragment),i=(0,o.G)(),c=(0,o.j)("div"),l=(0,o.j)("div"),(0,o.F)(s.$$.fragment),d=(0,o.G)(),u=(0,o.j)("div"),(0,o.F)(m.$$.fragment),(0,o.k)(r,"class","drop-shadow svelte-1o9vinu"),(0,o.k)(l,"class","drop-shadow svelte-1o9vinu"),(0,o.k)(u,"class","check-icon-wrapper drop-shadow svelte-1o9vinu"),(0,o.k)(c,"class","wallet-square-wrapper svelte-1o9vinu"),(0,o.k)(t,"class","inner-row svelte-1o9vinu"),(0,o.k)(n,"class","ac-trigger svelte-1o9vinu"),(0,o.k)(n,"style",p=e[2].position.includes("Left")?"align-self: flex-start":null)},m(p,b){(0,o.b)(p,n,b),(0,o.m)(n,t),(0,o.m)(t,r),(0,o.I)(a,r,null),(0,o.m)(t,i),(0,o.m)(t,c),(0,o.m)(c,l),(0,o.I)(s,l,null),(0,o.m)(c,d),(0,o.m)(c,u),(0,o.I)(m,u,null),v=!0,f||(g=(0,o.p)(n,"click",(0,o.J)((function(){(0,o.Z)(e[0])&&e[0].apply(this,arguments)}))),f=!0)},p(t,[r]){e=t;const i={};8&r&&(i.icon=e[3]&&e[3].icon||o.ae),a.$set(i);const c={};2&r&&(c.icon=e[1]?e[1].icon:""),s.$set(c),(!v||4&r&&p!==(p=e[2].position.includes("Left")?"align-self: flex-start":null))&&(0,o.k)(n,"style",p)},i(e){v||((0,o.x)(a.$$.fragment,e),(0,o.x)(s.$$.fragment,e),(0,o.x)(m.$$.fragment,e),v=!0)},o(e){(0,o.A)(a.$$.fragment,e),(0,o.A)(s.$$.fragment,e),(0,o.A)(m.$$.fragment,e),v=!1},d(e){e&&(0,o.d)(n),(0,o.K)(a),(0,o.K)(s),(0,o.K)(m),f=!1,g()}}}function Ge(e,n,t){let a,i,c,l;(0,o.c)(e,o.w,(e=>t(6,i=e)));let{toggle:s}=n;const d=o.a3.select("appMetadata").pipe((0,r.startWith)(o.a3.get().appMetadata),(0,r.shareReplay)(1));(0,o.c)(e,d,(e=>t(3,l=e)));const u=o.a3.select("accountCenter").pipe((0,r.startWith)(o.a3.get().accountCenter),(0,r.shareReplay)(1));return(0,o.c)(e,u,(e=>t(2,c=e))),e.$$set=e=>{"toggle"in e&&t(0,s=e.toggle)},e.$$.update=()=>{64&e.$$.dirty&&t(1,[a]=i,a)},[s,a,c,l,d,u,i]}class Te extends o.S{constructor(e){super(),(0,o.i)(this,e,Ge,Ae,o.s,{toggle:0},ze)}}function Ie(e){(0,o.a)(e,"svelte-1nua59o",".ac-container.svelte-1nua59o{display:flex;flex-flow:column;align-items:flex-end;gap:0.5rem}")}function Fe(e){let n,t;return n=new we({props:{expanded:e[0]}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p(e,t){const o={};1&t&&(o.expanded=e[0]),n.$set(o)},i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function He(e){let n,t;return n=new je({props:{toggle:e[4]}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p:o.n,i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function Le(e){let n,t;return n=new Te({props:{toggle:e[4]}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p:o.n,i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function Me(e){let n,t;return n=new we({props:{expanded:e[0]}}),{c(){(0,o.F)(n.$$.fragment)},m(e,r){(0,o.I)(n,e,r),t=!0},p(e,t){const o={};1&t&&(o.expanded=e[0]),n.$set(o)},i(e){t||((0,o.x)(n.$$.fragment,e),t=!0)},o(e){(0,o.A)(n.$$.fragment,e),t=!1},d(e){(0,o.K)(n,e)}}}function Pe(e){let n,t,r,a,i,c,l,s,d=e[1].position.includes("bottom"),u=e[1].position.includes("top"),m=d&&Fe(e);const p=[Le,He],v=[];function f(e,n){return e[1].minimal?0:1}r=f(e),a=v[r]=p[r](e);let g=u&&Me(e);return{c(){n=(0,o.j)("div"),m&&m.c(),t=(0,o.G)(),a.c(),i=(0,o.G)(),g&&g.c(),(0,o.k)(n,"class","ac-container svelte-1nua59o")},m(a,d){(0,o.b)(a,n,d),m&&m.m(n,null),(0,o.m)(n,t),v[r].m(n,null),(0,o.m)(n,i),g&&g.m(n,null),c=!0,l||(s=(0,o.p)(window,"click",e[3]),l=!0)},p(e,[c]){2&c&&(d=e[1].position.includes("bottom")),d?m?(m.p(e,c),2&c&&(0,o.x)(m,1)):(m=Fe(e),m.c(),(0,o.x)(m,1),m.m(n,t)):m&&((0,o.y)(),(0,o.A)(m,1,1,(()=>{m=null})),(0,o.z)());let l=r;r=f(e),r===l?v[r].p(e,c):((0,o.y)(),(0,o.A)(v[l],1,1,(()=>{v[l]=null})),(0,o.z)(),a=v[r],a?a.p(e,c):(a=v[r]=p[r](e),a.c()),(0,o.x)(a,1),a.m(n,i)),2&c&&(u=e[1].position.includes("top")),u?g?(g.p(e,c),2&c&&(0,o.x)(g,1)):(g=Me(e),g.c(),(0,o.x)(g,1),g.m(n,null)):g&&((0,o.y)(),(0,o.A)(g,1,1,(()=>{g=null})),(0,o.z)())},i(e){c||((0,o.x)(m),(0,o.x)(a),(0,o.x)(g),c=!0)},o(e){(0,o.A)(m),(0,o.A)(a),(0,o.A)(g),c=!1},d(e){e&&(0,o.d)(n),m&&m.d(),v[r].d(),g&&g.d(),l=!1,s()}}}function Se(e,n,t){let a,i=!1;const c=o.a3.select("accountCenter").pipe((0,r.startWith)(o.a3.get().accountCenter),(0,r.shareReplay)(1));function l(){a.expanded&&((0,o.am)({expanded:!1}),t(0,i=!1))}return(0,o.c)(e,c,(e=>t(1,a=e))),(0,o.al)(l),[i,a,c,l,function(){(0,o.am)({expanded:!a.expanded}),t(0,i=!i)}]}class Ve extends o.S{constructor(e){super(),(0,o.i)(this,e,Se,Pe,o.s,{},Ie)}}}}]); \ No newline at end of file diff --git a/3355.9f31c0cefaaeedab.esm.js b/3355.9f31c0cefaaeedab.esm.js new file mode 100644 index 000000000..bed7eb11d --- /dev/null +++ b/3355.9f31c0cefaaeedab.esm.js @@ -0,0 +1,2 @@ +/*! For license information please see 3355.9f31c0cefaaeedab.esm.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[3355],{61405:(t,e,r)=>{const o=r(43595),n=r(85628),i=r(38434),a=r(55346);function s(t,e,r,i,a){const s=[].slice.call(arguments,1),l=s.length,c="function"==typeof s[l-1];if(!c&&!o())throw new Error("Callback required as last argument");if(!c){if(l<1)throw new Error("Too few arguments provided");return 1===l?(r=e,e=i=void 0):2!==l||e.getContext||(i=r,r=e,e=void 0),new Promise((function(o,a){try{const a=n.create(r,i);o(t(a,e,i))}catch(s){a(s)}}))}if(l<2)throw new Error("Too few arguments provided");2===l?(a=r,r=e,e=i=void 0):3===l&&(e.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=r,r=e,e=void 0));try{const o=n.create(r,i);a(null,t(o,e,i))}catch(d){a(d)}}e.create=n.create,e.toCanvas=s.bind(null,i.render),e.toDataURL=s.bind(null,i.renderToDataURL),e.toString=s.bind(null,(function(t,e,r){return a.render(t,r)}))},43595:t=>{t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},32759:(t,e,r)=>{const o=r(32981).getSymbolSize;e.getRowColCoords=function(t){if(1===t)return[];const e=Math.floor(t/7)+2,r=o(t),n=145===r?26:2*Math.ceil((r-13)/(2*e-2)),i=[r-7];for(let o=1;o{const o=r(7185),n=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(t){this.mode=o.ALPHANUMERIC,this.data=t}i.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let e;for(e=0;e+2<=this.data.length;e+=2){let r=45*n.indexOf(this.data[e]);r+=n.indexOf(this.data[e+1]),t.put(r,11)}this.data.length%2&&t.put(n.indexOf(this.data[e]),6)},t.exports=i},7076:t=>{function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){const e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)},put:function(t,e){for(let r=0;r>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},t.exports=e},99076:t=>{function e(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}e.prototype.set=function(t,e,r,o){const n=t*this.size+e;this.data[n]=r,o&&(this.reservedBit[n]=!0)},e.prototype.get=function(t,e){return this.data[t*this.size+e]},e.prototype.xor=function(t,e,r){this.data[t*this.size+e]^=r},e.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]},t.exports=e},29031:(t,e,r)=>{const o=r(13163),n=r(7185);function i(t){this.mode=n.BYTE,"string"==typeof t&&(t=o(t)),this.data=new Uint8Array(t)}i.getBitsLength=function(t){return 8*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){for(let e=0,r=this.data.length;e{const o=r(32196),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];e.getBlocksCount=function(t,e){switch(e){case o.L:return n[4*(t-1)+0];case o.M:return n[4*(t-1)+1];case o.Q:return n[4*(t-1)+2];case o.H:return n[4*(t-1)+3];default:return}},e.getTotalCodewordsCount=function(t,e){switch(e){case o.L:return i[4*(t-1)+0];case o.M:return i[4*(t-1)+1];case o.Q:return i[4*(t-1)+2];case o.H:return i[4*(t-1)+3];default:return}}},32196:(t,e)=>{e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2},e.isValid=function(t){return t&&void 0!==t.bit&&t.bit>=0&&t.bit<4},e.from=function(t,r){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(o){return r}}},69395:(t,e,r)=>{const o=r(32981).getSymbolSize;e.getPositions=function(t){const e=o(t);return[[0,0],[e-7,0],[0,e-7]]}},77484:(t,e,r)=>{const o=r(32981),n=o.getBCHDigit(1335);e.getEncodedBits=function(t,e){const r=t.bit<<3|e;let i=r<<10;for(;o.getBCHDigit(i)-n>=0;)i^=1335<{const r=new Uint8Array(512),o=new Uint8Array(256);!function(){let t=1;for(let e=0;e<255;e++)r[e]=t,o[t]=e,t<<=1,256&t&&(t^=285);for(let e=255;e<512;e++)r[e]=r[e-255]}(),e.log=function(t){if(t<1)throw new Error("log("+t+")");return o[t]},e.exp=function(t){return r[t]},e.mul=function(t,e){return 0===t||0===e?0:r[o[t]+o[e]]}},10089:(t,e,r)=>{const o=r(7185),n=r(32981);function i(t){this.mode=o.KANJI,this.data=t}i.getBitsLength=function(t){return 13*t},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let e;for(e=0;e=33088&&r<=40956)r-=33088;else{if(!(r>=57408&&r<=60351))throw new Error("Invalid SJIS character: "+this.data[e]+"\nMake sure your charset is UTF-8");r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13)}},t.exports=i},3310:(t,e)=>{e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const r=3,o=3,n=40,i=10;function a(t,r,o){switch(t){case e.Patterns.PATTERN000:return(r+o)%2==0;case e.Patterns.PATTERN001:return r%2==0;case e.Patterns.PATTERN010:return o%3==0;case e.Patterns.PATTERN011:return(r+o)%3==0;case e.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(o/3))%2==0;case e.Patterns.PATTERN101:return r*o%2+r*o%3==0;case e.Patterns.PATTERN110:return(r*o%2+r*o%3)%2==0;case e.Patterns.PATTERN111:return(r*o%3+(r+o)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}e.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const e=t.size;let o=0,n=0,i=0,a=null,s=null;for(let l=0;l=5&&(o+=r+(n-5)),a=e,n=1),e=t.get(c,l),e===s?i++:(i>=5&&(o+=r+(i-5)),s=e,i=1)}n>=5&&(o+=r+(n-5)),i>=5&&(o+=r+(i-5))}return o},e.getPenaltyN2=function(t){const e=t.size;let r=0;for(let o=0;o=10&&(1488===o||93===o)&&r++,i=i<<1&2047|t.get(a,n),a>=10&&(1488===i||93===i)&&r++}return r*n},e.getPenaltyN4=function(t){let e=0;const r=t.data.length;for(let o=0;o{const o=r(55831),n=r(67720);e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(t,e){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!o.isValid(e))throw new Error("Invalid version: "+e);return e>=1&&e<10?t.ccBits[0]:e<27?t.ccBits[1]:t.ccBits[2]},e.getBestModeForData=function(t){return n.testNumeric(t)?e.NUMERIC:n.testAlphanumeric(t)?e.ALPHANUMERIC:n.testKanji(t)?e.KANJI:e.BYTE},e.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},e.isValid=function(t){return t&&t.bit&&t.ccBits},e.from=function(t,r){if(e.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(o){return r}}},97505:(t,e,r)=>{const o=r(7185);function n(t){this.mode=o.NUMERIC,this.data=t.toString()}n.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(t){let e,r,o;for(e=0;e+3<=this.data.length;e+=3)r=this.data.substr(e,3),o=parseInt(r,10),t.put(o,10);const n=this.data.length-e;n>0&&(r=this.data.substr(e),o=parseInt(r,10),t.put(o,3*n+1))},t.exports=n},64818:(t,e,r)=>{const o=r(92038);e.mul=function(t,e){const r=new Uint8Array(t.length+e.length-1);for(let n=0;n=0;){const t=r[0];for(let i=0;i{const o=r(32981),n=r(32196),i=r(7076),a=r(99076),s=r(32759),l=r(69395),c=r(3310),d=r(60094),h=r(98853),u=r(90403),m=r(77484),p=r(7185),g=r(93711);function w(t,e,r){const o=t.size,n=m.getEncodedBits(e,r);let i,a;for(i=0;i<15;i++)a=1==(n>>i&1),i<6?t.set(i,8,a,!0):i<8?t.set(i+1,8,a,!0):t.set(o-15+i,8,a,!0),i<8?t.set(8,o-i-1,a,!0):i<9?t.set(8,15-i-1+1,a,!0):t.set(8,15-i-1,a,!0);t.set(o-8,8,1,!0)}function f(t,e,r){const n=new i;r.forEach((function(e){n.put(e.mode.bit,4),n.put(e.getLength(),p.getCharCountIndicator(e.mode,t)),e.write(n)}));const a=8*(o.getSymbolTotalCodewords(t)-d.getTotalCodewordsCount(t,e));for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);const s=(a-n.getLengthInBits())/8;for(let o=0;o=0&&o<=6&&(0===n||6===n)||n>=0&&n<=6&&(0===o||6===o)||o>=2&&o<=4&&n>=2&&n<=4?t.set(e+o,i+n,!0,!0):t.set(e+o,i+n,!1,!0))}}(p,e),function(t){const e=t.size;for(let r=8;r=7&&function(t,e){const r=t.size,o=u.getEncodedBits(e);let n,i,a;for(let s=0;s<18;s++)n=Math.floor(s/3),i=s%3+r-8-3,a=1==(o>>s&1),t.set(n,i,a,!0),t.set(i,n,a,!0)}(p,e),function(t,e){const r=t.size;let o=-1,n=r-1,i=7,a=0;for(let s=r-1;s>0;s-=2)for(6===s&&s--;;){for(let r=0;r<2;r++)if(!t.isReserved(n,s-r)){let o=!1;a>>i&1)),t.set(n,s-r,o),i--,-1===i&&(a++,i=7)}if(n+=o,n<0||r<=n){n-=o,o=-o;break}}}(p,h),isNaN(n)&&(n=c.getBestMask(p,w.bind(null,p,r))),c.applyMask(n,p),w(p,r,n),{modules:p,version:e,errorCorrectionLevel:r,maskPattern:n,segments:i}}e.create=function(t,e){if(void 0===t||""===t)throw new Error("No input text");let r,i,a=n.M;return void 0!==e&&(a=n.from(e.errorCorrectionLevel,n.M),r=u.from(e.version),i=c.from(e.maskPattern),e.toSJISFunc&&o.setToSJISFunction(e.toSJISFunc)),v(t,r,a,i)}},98853:(t,e,r)=>{const o=r(64818);function n(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}n.prototype.initialize=function(t){this.degree=t,this.genPoly=o.generateECPolynomial(this.degree)},n.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const e=new Uint8Array(t.length+this.degree);e.set(t);const r=o.mod(e,this.genPoly),n=this.degree-r.length;if(n>0){const t=new Uint8Array(this.degree);return t.set(r,n),t}return r},t.exports=n},67720:(t,e)=>{const r="[0-9]+";let o="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";o=o.replace(/u/g,"\\u");const n="(?:(?![A-Z0-9 $%*+\\-./:]|"+o+")(?:.|[\r\n]))+";e.KANJI=new RegExp(o,"g"),e.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),e.BYTE=new RegExp(n,"g"),e.NUMERIC=new RegExp(r,"g"),e.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const i=new RegExp("^"+o+"$"),a=new RegExp("^[0-9]+$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");e.testKanji=function(t){return i.test(t)},e.testNumeric=function(t){return a.test(t)},e.testAlphanumeric=function(t){return s.test(t)}},93711:(t,e,r)=>{const o=r(7185),n=r(97505),i=r(65619),a=r(29031),s=r(10089),l=r(67720),c=r(32981),d=r(48137);function h(t){return unescape(encodeURIComponent(t)).length}function u(t,e,r){const o=[];let n;for(;null!==(n=t.exec(r));)o.push({data:n[0],index:n.index,mode:e,length:n[0].length});return o}function m(t){const e=u(l.NUMERIC,o.NUMERIC,t),r=u(l.ALPHANUMERIC,o.ALPHANUMERIC,t);let n,i;c.isKanjiModeEnabled()?(n=u(l.BYTE,o.BYTE,t),i=u(l.KANJI,o.KANJI,t)):(n=u(l.BYTE_KANJI,o.BYTE,t),i=[]);return e.concat(r,n,i).sort((function(t,e){return t.index-e.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function p(t,e){switch(e){case o.NUMERIC:return n.getBitsLength(t);case o.ALPHANUMERIC:return i.getBitsLength(t);case o.KANJI:return s.getBitsLength(t);case o.BYTE:return a.getBitsLength(t)}}function g(t,e){let r;const l=o.getBestModeForData(t);if(r=o.from(e,l),r!==o.BYTE&&r.bit=0?t[t.length-1]:null;return r&&r.mode===e.mode?(t[t.length-1].data+=e.data,t):(t.push(e),t)}),[])}(s))},e.rawSplit=function(t){return e.fromArray(m(t,c.isKanjiModeEnabled()))}},32981:(t,e)=>{let r;const o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];e.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},e.getSymbolTotalCodewords=function(t){return o[t]},e.getBCHDigit=function(t){let e=0;for(;0!==t;)e++,t>>>=1;return e},e.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');r=t},e.isKanjiModeEnabled=function(){return void 0!==r},e.toSJIS=function(t){return r(t)}},55831:(t,e)=>{e.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},90403:(t,e,r)=>{const o=r(32981),n=r(60094),i=r(32196),a=r(7185),s=r(55831),l=o.getBCHDigit(7973);function c(t,e){return a.getCharCountIndicator(t,e)+4}function d(t,e){let r=0;return t.forEach((function(t){const o=c(t.mode,e);r+=o+t.getBitsLength()})),r}e.from=function(t,e){return s.isValid(t)?parseInt(t,10):e},e.getCapacity=function(t,e,r){if(!s.isValid(t))throw new Error("Invalid QR Code version");void 0===r&&(r=a.BYTE);const i=8*(o.getSymbolTotalCodewords(t)-n.getTotalCodewordsCount(t,e));if(r===a.MIXED)return i;const l=i-c(r,t);switch(r){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},e.getBestVersionForData=function(t,r){let o;const n=i.from(r,i.M);if(Array.isArray(t)){if(t.length>1)return function(t,r){for(let o=1;o<=40;o++)if(d(t,o)<=e.getCapacity(o,r,a.MIXED))return o}(t,n);if(0===t.length)return 1;o=t[0]}else o=t;return function(t,r,o){for(let n=1;n<=40;n++)if(r<=e.getCapacity(n,o,t))return n}(o.mode,o.getLength(),n)},e.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw new Error("Invalid QR Code version");let e=t<<12;for(;o.getBCHDigit(e)-l>=0;)e^=7973<{const o=r(99165);e.render=function(t,e,r){let n=r,i=e;void 0!==n||e&&e.getContext||(n=e,e=void 0),e||(i=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}()),n=o.getOptions(n);const a=o.getImageWidth(t.modules.size,n),s=i.getContext("2d"),l=s.createImageData(a,a);return o.qrToImageData(l.data,t,n),function(t,e,r){t.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=r,e.width=r,e.style.height=r+"px",e.style.width=r+"px"}(s,i,a),s.putImageData(l,0,0),i},e.renderToDataURL=function(t,r,o){let n=o;void 0!==n||r&&r.getContext||(n=r,r=void 0),n||(n={});const i=e.render(t,r,n),a=n.type||"image/png",s=n.rendererOpts||{};return i.toDataURL(a,s.quality)}},55346:(t,e,r)=>{const o=r(99165);function n(t,e){const r=t.a/255,o=e+'="'+t.hex+'"';return r<1?o+" "+e+'-opacity="'+r.toFixed(2).slice(1)+'"':o}function i(t,e,r){let o=t+e;return void 0!==r&&(o+=" "+r),o}e.render=function(t,e,r){const a=o.getOptions(e),s=t.modules.size,l=t.modules.data,c=s+2*a.margin,d=a.color.light.a?"':"",h="0&&c>0&&t[l-1]||(o+=a?i("M",c+r,.5+d+r):i("m",n,0),n=0,a=!1),c+1',u='viewBox="0 0 '+c+" "+c+'"',m=''+d+h+"\n";return"function"==typeof r&&r(null,m),m}},99165:(t,e)=>{function r(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let e=t.slice().replace("#","").split("");if(e.length<3||5===e.length||e.length>8)throw new Error("Invalid hex color: "+t);3!==e.length&&4!==e.length||(e=Array.prototype.concat.apply([],e.map((function(t){return[t,t]})))),6===e.length&&e.push("F","F");const r=parseInt(e.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+e.slice(0,6).join("")}}e.getOptions=function(t){t||(t={}),t.color||(t.color={});const e=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,o=t.width&&t.width>=21?t.width:void 0,n=t.scale||4;return{width:o,scale:o?4:n,margin:e,color:{dark:r(t.color.dark||"#000000ff"),light:r(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},e.getScale=function(t,e){return e.width&&e.width>=t+2*e.margin?e.width/(t+2*e.margin):e.scale},e.getImageWidth=function(t,r){const o=e.getScale(t,r);return Math.floor((t+2*r.margin)*o)},e.qrToImageData=function(t,r,o){const n=r.modules.size,i=r.modules.data,a=e.getScale(n,o),s=Math.floor((n+2*o.margin)*a),l=o.margin*a,c=[o.color.light,o.color.dark];for(let e=0;e=l&&r>=l&&e{"use strict";t.exports=function(t){for(var e=[],r=t.length,o=0;o=55296&&n<=56319&&r>o+1){var i=t.charCodeAt(o+1);i>=56320&&i<=57343&&(n=1024*(n-55296)+i-56320+65536,o+=1)}n<128?e.push(n):n<2048?(e.push(n>>6|192),e.push(63&n|128)):n<55296||n>=57344&&n<65536?(e.push(n>>12|224),e.push(n>>6&63|128),e.push(63&n|128)):n>=65536&&n<=1114111?(e.push(n>>18|240),e.push(n>>12&63|128),e.push(n>>6&63|128),e.push(63&n|128)):e.push(239,191,189)}return new Uint8Array(e).buffer}},63355:(t,e,r)=>{"use strict";r.r(e),r.d(e,{WcmModal:()=>Xo,WcmQrCode:()=>qr});const o=window,n=o.ShadowRoot&&(void 0===o.ShadyCSS||o.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),a=new WeakMap;class s{constructor(t,e,r){if(this._$cssResult$=!0,r!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(n&&void 0===t){const r=void 0!==e&&1===e.length;r&&(t=a.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&a.set(e,t))}return t}toString(){return this.cssText}}const l=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,r,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+t[o+1]),t[0]);return new s(r,t,i)},c=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return(t=>new s("string"==typeof t?t:t+"",void 0,i))(e)})(t):t;var d;const h=window,u=h.trustedTypes,m=u?u.emptyScript:"",p=h.reactiveElementPolyfillSupport,g={toAttribute(t,e){switch(e){case Boolean:t=t?m:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=null!==t;break;case Number:r=null===t?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch(t){r=null}}return r}},w=(t,e)=>e!==t&&(e==e||t==t),f={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:w},v="finalized";class b extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,r)=>{const o=this._$Ep(r,e);void 0!==o&&(this._$Ev.set(o,r),t.push(o))})),t}static createProperty(t,e=f){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,r,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||f}static finalize(){if(this.hasOwnProperty(v))return!1;this[v]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const r of e)this.createProperty(r,t[r])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const t of r)e.unshift(c(t))}else void 0!==t&&e.push(c(t));return e}static _$Ep(t,e){const r=e.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,r;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(r=t.hostConnected)||void 0===r||r.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{n?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const r=document.createElement("style"),n=o.litNonce;void 0!==n&&r.setAttribute("nonce",n),r.textContent=e.cssText,t.appendChild(r)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e,r=f){var o;const n=this.constructor._$Ep(t,r);if(void 0!==n&&!0===r.reflect){const i=(void 0!==(null===(o=r.converter)||void 0===o?void 0:o.toAttribute)?r.converter:g).toAttribute(e,r.type);this._$El=t,null==i?this.removeAttribute(n):this.setAttribute(n,i),this._$El=null}}_$AK(t,e){var r;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),i="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(r=t.converter)||void 0===r?void 0:r.fromAttribute)?t.converter:g;this._$El=n,this[n]=i.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,r){let o=!0;void 0!==t&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||w)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===r.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,r))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(r)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var y;b[v]=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==p||p({ReactiveElement:b}),(null!==(d=h.reactiveElementVersions)&&void 0!==d?d:h.reactiveElementVersions=[]).push("1.6.3");const x=window,$=x.trustedTypes,C=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,A="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,k="?"+E,O=`<${k}>`,_=document,I=()=>_.createComment(""),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,P=t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,S=/-->/g,L=/>/g,N=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),B=/'/g,D=/"/g,j=/^(?:script|style|textarea|title)$/i,W=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),U=W(1),z=W(2),H=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),Z=new WeakMap,F=_.createTreeWalker(_,129,null,!1);function q(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(e):e}const K=(t,e)=>{const r=t.length-1,o=[];let n,i=2===e?"":"",a=R;for(let s=0;s"===l[0]?(a=null!=n?n:R,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,r=l[1],a=void 0===l[3]?N:'"'===l[3]?D:B):a===D||a===B?a=N:a===S||a===L?a=R:(a=N,n=void 0);const h=a===N&&t[s+1].startsWith("/>")?" ":"";i+=a===R?e+O:c>=0?(o.push(r),e.slice(0,c)+A+e.slice(c)+E+h):e+E+(-2===c?(o.push(void 0),s):h)}return[q(t,i+(t[r]||"")+(2===e?"":"")),o]};class Y{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let n=0,i=0;const a=t.length-1,s=this.parts,[l,c]=K(t,e);if(this.el=Y.createElement(l,r),F.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=F.nextNode())&&s.length0){o.textContent=$?$.emptyScript:"";for(let r=0;r2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=V}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,o){const n=this.strings;let i=!1;if(void 0===n)t=J(this,t,e,0),i=!M(t)||t!==this._$AH&&t!==H,i&&(this._$AH=t);else{const o=t;let a,s;for(t=n[0],a=0;a{var o,n;const i=null!==(o=null==r?void 0:r.renderBefore)&&void 0!==o?o:e;let a=i._$litPart$;if(void 0===a){const t=null!==(n=null==r?void 0:r.renderBefore)&&void 0!==n?n:null;i._$litPart$=a=new G(e.insertBefore(I(),t),t,void 0,null!=r?r:{})}return a._$AI(t),a})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return H}}lt.finalized=!0,lt._$litElement$=!0,null===(at=globalThis.litElementHydrateSupport)||void 0===at||at.call(globalThis,{LitElement:lt});const ct=globalThis.litElementPolyfillSupport;null==ct||ct({LitElement:lt});(null!==(st=globalThis.litElementVersions)&&void 0!==st?st:globalThis.litElementVersions=[]).push("3.3.3");const dt=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:r,elements:o}=e;return{kind:r,elements:o,finisher(e){customElements.define(t,e)}}})(t,e),ht=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function ut(t){return(e,r)=>void 0!==r?((t,e,r)=>{e.constructor.createProperty(r,t)})(t,e,r):ht(t,e)}function mt(t){return ut({...t,state:!0})}var pt;null===(pt=window.HTMLSlotElement)||void 0===pt||pt.prototype.assignedElements;const gt=1;class wt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const ft=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends wt{constructor(t){var e;if(super(t),t.type!==gt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var r,o;if(void 0===this.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(r=this.nt)||void 0===r?void 0:r.has(t))&&this.it.add(t);return this.render(e)}const n=t.element.classList;this.it.forEach((t=>{t in e||(n.remove(t),this.it.delete(t))}));for(const i in e){const t=!!e[i];t===this.it.has(i)||(null===(o=this.nt)||void 0===o?void 0:o.has(i))||(t?(n.add(i),this.it.add(i)):(n.remove(i),this.it.delete(i)))}return H}});var vt=r(89682);const bt=(t,e,r)=>Math.min(Math.max(r,t),e),yt={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},xt=t=>"number"==typeof t,$t=t=>Array.isArray(t)&&!xt(t[0]);const Ct=(t,e,r)=>-r*t+r*e+t,At=()=>{},Et=t=>t,kt=(t,e,r)=>e-t==0?1:(r-t)/(e-t);function Ot(t,e){const r=t[t.length-1];for(let o=1;o<=e;o++){const n=kt(0,e,o);t.push(Ct(r,1,n))}}function _t(t,e=function(t){const e=[0];return Ot(e,t-1),e}(t.length),r=Et){const o=t.length,n=o-e.length;return n>0&&Ot(e,n),n=>{let i=0;for(;i{const o=e-t;return((r-t)%o+o)%o+t})(0,t.length,e)]:t}(r,i);return a=s(a),Ct(t[i],t[i+1],a)}}const It=t=>Array.isArray(t)&&xt(t[0]),Mt=t=>"object"==typeof t&&Boolean(t.createAnimation),Tt=t=>"function"==typeof t,Pt=t=>"string"==typeof t,Rt=t=>1e3*t,St=t=>t/1e3;const Lt=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t;function Nt(t,e,r,o){if(t===e&&r===o)return Et;const n=e=>function(t,e,r,o,n){let i,a,s=0;do{a=e+(r-e)/2,i=Lt(a,o,n)-t,i>0?r=a:e=a}while(Math.abs(i)>1e-7&&++s<12);return a}(e,0,1,t,r);return t=>0===t||1===t?t:Lt(n(t),e,o)}const Bt={ease:Nt(.25,.1,.25,1),"ease-in":Nt(.42,0,1,1),"ease-in-out":Nt(.42,0,.58,1),"ease-out":Nt(0,0,.58,1)},Dt=/\((.*?)\)/;function jt(t){if(Tt(t))return t;if(It(t))return Nt(...t);if(Bt[t])return Bt[t];if(t.startsWith("steps")){const e=Dt.exec(t);if(e){const t=e[1].split(",");return((t,e="end")=>r=>{const o=(r="end"===e?Math.min(r,.999):Math.max(r,.001))*t,n="end"===e?Math.floor(o):Math.ceil(o);return bt(0,1,n/t)})(parseFloat(t[0]),t[1].trim())}}return Et}class Wt{constructor(t,e=[0,1],{easing:r,duration:o=yt.duration,delay:n=yt.delay,endDelay:i=yt.endDelay,repeat:a=yt.repeat,offset:s,direction:l="normal"}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=Et,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise(((t,e)=>{this.resolve=t,this.reject=e})),r=r||yt.easing,Mt(r)){const t=r.createAnimation(e);r=t.easing,e=t.keyframes||e,o=t.duration||o}this.repeat=a,this.easing=$t(r)?Et:jt(r),this.updateDuration(o);const c=_t(e,s,$t(r)?r.map(jt):Et);this.tick=e=>{var r;let o=0;o=void 0!==this.pauseTime?this.pauseTime:(e-this.startTime)*this.rate,this.t=o,o/=1e3,o=Math.max(o-n,0),"finished"===this.playState&&void 0===this.pauseTime&&(o=this.totalDuration);const a=o/this.duration;let s=Math.floor(a),d=a%1;!d&&a>=1&&(d=1),1===d&&s--;const h=s%2;("reverse"===l||"alternate"===l&&h||"alternate-reverse"===l&&!h)&&(d=1-d);const u=o>=this.totalDuration?1:Math.min(d,1),m=c(this.easing(u));t(m);void 0===this.pauseTime&&("finished"===this.playState||o>=this.totalDuration+i)?(this.playState="finished",null===(r=this.resolve)||void 0===r||r.call(this,m)):"idle"!==this.playState&&(this.frameRequestId=requestAnimationFrame(this.tick))},this.play()}play(){const t=performance.now();this.playState="running",void 0!==this.pauseTime?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var t;this.playState="idle",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(t=this.reject)||void 0===t||t.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}get currentTime(){return this.t}set currentTime(t){void 0!==this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}get playbackRate(){return this.rate}set playbackRate(t){this.rate=t}}class Ut{setAnimation(t){this.animation=t,null==t||t.finished.then((()=>this.clearAnimation())).catch((()=>{}))}clearAnimation(){this.animation=this.generator=void 0}}const zt=new WeakMap;function Ht(t){return zt.has(t)||zt.set(t,{transforms:[],values:new Map}),zt.get(t)}const Vt=["","X","Y","Z"],Zt={x:"translateX",y:"translateY",z:"translateZ"},Ft={syntax:"",initialValue:"0deg",toDefaultUnit:t=>t+"deg"},qt={translate:{syntax:"",initialValue:"0px",toDefaultUnit:t=>t+"px"},rotate:Ft,scale:{syntax:"",initialValue:1,toDefaultUnit:Et},skew:Ft},Kt=new Map,Yt=t=>`--motion-${t}`,Jt=["x","y","z"];["translate","scale","rotate","skew"].forEach((t=>{Vt.forEach((e=>{Jt.push(t+e),Kt.set(Yt(t+e),qt[t])}))}));const Qt=(t,e)=>Jt.indexOf(t)-Jt.indexOf(e),Gt=new Set(Jt),Xt=t=>Gt.has(t),te=t=>t.sort(Qt).reduce(ee,"").trim(),ee=(t,e)=>`${t} ${e}(var(${Yt(e)}))`,re=t=>t.startsWith("--"),oe=new Set;const ne=(t,e)=>document.createElement("div").animate(t,e),ie={cssRegisterProperty:()=>"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{ne({opacity:[1]})}catch(t){return!1}return!0},finished:()=>Boolean(ne({opacity:[0,1]},{duration:.001}).finished),linearEasing:()=>{try{ne({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}},ae={},se={};for(const Yn in ie)se[Yn]=()=>(void 0===ae[Yn]&&(ae[Yn]=ie[Yn]()),ae[Yn]);const le=(t,e)=>Tt(t)?se.linearEasing()?`linear(${((t,e)=>{let r="";const o=Math.round(e/.015);for(let n=0;n`cubic-bezier(${t}, ${e}, ${r}, ${o})`;function de(t){return Zt[t]&&(t=Zt[t]),Xt(t)?Yt(t):t}const he=(t,e)=>{e=de(e);let r=re(e)?t.style.getPropertyValue(e):getComputedStyle(t)[e];if(!r&&0!==r){const t=Kt.get(e);t&&(r=t.initialValue)}return r},ue=(t,e,r)=>{e=de(e),re(e)?t.style.setProperty(e,r):t.style[e]=r};function me(t,e=!0){if(t&&"finished"!==t.playState)try{t.stop?t.stop():(e&&t.commitStyles(),t.cancel())}catch(r){}}function pe(t,e){var r;let o=(null==e?void 0:e.toDefaultUnit)||Et;const n=t[t.length-1];if(Pt(n)){const t=(null===(r=n.match(/(-?[\d.]+)([a-z%]*)/))||void 0===r?void 0:r[2])||"";t&&(o=e=>e+t)}return o}function ge(t,e,r,o={},n){const i=window.__MOTION_DEV_TOOLS_RECORD,a=!1!==o.record&&i;let s,{duration:l=yt.duration,delay:c=yt.delay,endDelay:d=yt.endDelay,repeat:h=yt.repeat,easing:u=yt.easing,persist:m=!1,direction:p,offset:g,allowWebkitAcceleration:w=!1}=o;const f=Ht(t),v=Xt(e);let b=se.waapi();v&&((t,e)=>{Zt[e]&&(e=Zt[e]);const{transforms:r}=Ht(t);var o,n;n=e,-1===(o=r).indexOf(n)&&o.push(n),t.style.transform=te(r)})(t,e);const y=de(e),x=function(t,e){return t.has(e)||t.set(e,new Ut),t.get(e)}(f.values,y),$=Kt.get(y);return me(x.animation,!(Mt(u)&&x.generator)&&!1!==o.record),()=>{const f=()=>{var e,r;return null!==(r=null!==(e=he(t,y))&&void 0!==e?e:null==$?void 0:$.initialValue)&&void 0!==r?r:0};let C=function(t,e){for(let r=0;rArray.isArray(t)?t:[t])(r),f);const A=pe(C,$);if(Mt(u)){const t=u.createAnimation(C,"opacity"!==e,f,y,x);u=t.easing,C=t.keyframes||C,l=t.duration||l}if(re(y)&&(se.cssRegisterProperty()?function(t){if(!oe.has(t)){oe.add(t);try{const{syntax:e,initialValue:r}=Kt.has(t)?Kt.get(t):{};CSS.registerProperty({name:t,inherits:!1,syntax:e,initialValue:r})}catch(e){}}}(y):b=!1),v&&!se.linearEasing()&&(Tt(u)||$t(u)&&u.some(Tt))&&(b=!1),b){$&&(C=C.map((t=>xt(t)?$.toDefaultUnit(t):t))),1!==C.length||se.partialKeyframes()&&!a||C.unshift(f());const e={delay:Rt(c),duration:Rt(l),endDelay:Rt(d),easing:$t(u)?void 0:le(u,l),direction:p,iterations:h+1,fill:"both"};s=t.animate({[y]:C,offset:g,easing:$t(u)?u.map((t=>le(t,l))):void 0},e),s.finished||(s.finished=new Promise(((t,e)=>{s.onfinish=t,s.oncancel=e})));const r=C[C.length-1];s.finished.then((()=>{m||(ue(t,y,r),s.cancel())})).catch(At),w||(s.playbackRate=1.000001)}else if(n&&v)C=C.map((t=>"string"==typeof t?parseFloat(t):t)),1===C.length&&C.unshift(parseFloat(f())),s=new n((e=>{ue(t,y,A?A(e):e)}),C,Object.assign(Object.assign({},o),{duration:l,easing:u}));else{const e=C[C.length-1];ue(t,y,$&&xt(e)?$.toDefaultUnit(e):e)}return a&&i(t,e,C,{duration:l,delay:c,easing:u,repeat:h,offset:g},"motion-one"),x.setAnimation(s),s}}const we=(t,e)=>t[e]?Object.assign(Object.assign({},t),t[e]):Object.assign({},t);function fe(t,e){var r;return"string"==typeof t?e?(null!==(r=e[t])&&void 0!==r||(e[t]=document.querySelectorAll(t)),t=e[t]):t=document.querySelectorAll(t):t instanceof Element&&(t=[t]),Array.from(t||[])}const ve=t=>t(),be=(t,e,r=yt.duration)=>new Proxy({animations:t.map(ve).filter(Boolean),duration:r,options:e},ye),ye={get:(t,e)=>{const r=t.animations[0];switch(e){case"duration":return t.duration;case"currentTime":return St((null==r?void 0:r[e])||0);case"playbackRate":case"playState":return null==r?void 0:r[e];case"finished":return t.finished||(t.finished=Promise.all(t.animations.map(xe)).catch(At)),t.finished;case"stop":return()=>{t.animations.forEach((t=>me(t)))};case"forEachNative":return e=>{t.animations.forEach((r=>e(r,t)))};default:return void 0===(null==r?void 0:r[e])?void 0:()=>t.animations.forEach((t=>t[e]()))}},set:(t,e,r)=>{switch(e){case"currentTime":r=Rt(r);case"currentTime":case"playbackRate":for(let o=0;ot.finished;function $e(t,e,r){return Tt(t)?t(e,r):t}const Ce=(Ae=Wt,function(t,e,r={}){const o=(t=fe(t)).length;Boolean(o),Boolean(e);const n=[];for(let i=0;i{i=i?St(i):0;const l={done:!1,hasReachedTarget:!1,current:o,target:n},c=n-o,d=Math.sqrt(t/r)/1e3,h=((t=Oe,e=_e,r=Ie)=>e/(2*Math.sqrt(t*r)))(t,e,r);let u;if(h<1){const t=d*Math.sqrt(1-h*h);u=e=>n-Math.exp(-h*d*e)*((h*d*c-i)/t*Math.sin(t*e)+c*Math.cos(t*e))}else u=t=>n-Math.exp(-d*t)*(c+(d*c-i)*t);return t=>{l.current=u(t);const e=0===t?i:ke(u,t,l.current),r=Math.abs(e)<=a,c=Math.abs(n-l.current)<=s;var d,h,m;return l.done=r&&c,l.hasReachedTarget=(d=o,h=n,m=l.current,d=h||d>h&&m<=h),l}};function Te(t){return xt(t)&&!isNaN(t)}function Pe(t){return Pt(t)?parseFloat(t):t}function Re(t){const e=new WeakMap;return(r={})=>{const o=new Map,n=(e=0,n=100,i=0,a=!1)=>{const s=`${e}-${n}-${i}-${a}`;return o.has(s)||o.set(s,t(Object.assign({from:e,to:n,velocity:i,restSpeed:a?.05:2,restDistance:a?.01:.5},r))),o.get(s)},i=(t,r)=>(e.has(t)||e.set(t,function(t,e=Et){let r,o=10,n=t(0);const i=[e(n.current)];for(;!n.done&&o<1e4;)n=t(o),i.push(e(n.done?n.target:n.current)),void 0===r&&n.hasReachedTarget&&(r=o),o+=10;const a=o-10;return 1===i.length&&i.push(n.current),{keyframes:i,duration:a/1e3,overshootDuration:(null!=r?r:a)/1e3}}(t,r)),e.get(t));return{createAnimation:(t,e=!0,r,o,a)=>{let s,l,c,d=0,h=Et;const u=t.length;if(e){h=pe(t,o?Kt.get(de(o)):void 0);if(c=Pe(t[u-1]),u>1&&null!==t[0])l=Pe(t[0]);else{const t=null==a?void 0:a.generator;if(t){const{animation:e,generatorStartTime:r}=a,o=(null==e?void 0:e.startTime)||r||0,n=(null==e?void 0:e.currentTime)||performance.now()-o,i=t(n).current;l=i,d=ke((e=>t(e).current),n,i)}else r&&(l=Pe(r()))}}if(Te(l)&&Te(c)){const t=n(l,c,d,null==o?void 0:o.includes("scale"));s=Object.assign(Object.assign({},i(t,h)),{easing:"linear"}),a&&(a.generator=t,a.generatorStartTime=performance.now())}if(!s){s={easing:"ease",duration:i(n(0,100)).overshootDuration}}return s}}}}Re(Me),Re((({from:t=0,velocity:e=0,power:r=.8,decay:o=.325,bounceDamping:n,bounceStiffness:i,changeTarget:a,min:s,max:l,restDistance:c=.5,restSpeed:d})=>{o=Rt(o);const h={hasReachedTarget:!1,done:!1,current:t,target:t},u=t=>void 0===s?l:void 0===l||Math.abs(s-t)-m*Math.exp(-t/o),f=t=>g+w(t),v=t=>{const e=w(t),r=f(t);h.done=Math.abs(e)<=c,h.current=h.done?g:r};let b,y;const x=t=>{(t=>void 0!==s&&tl)(h.current)&&(b=t,y=Me({from:h.current,to:u(h.current),velocity:ke(f,t,h.current),damping:n,stiffness:i,restDistance:c,restSpeed:d}))};return x(0),t=>{let e=!1;return y||void 0!==b||(e=!0,v(t),x(t)),void 0!==b&&t>b?(h.hasReachedTarget=!0,y(t-b)):(h.hasReachedTarget=!1,!e&&v(t),h)}}));const Se={any:0,all:1};new WeakMap;new Set;new WeakMap,new WeakMap,new WeakMap;function Le(t,e,r){t.dispatchEvent(new CustomEvent(e,{detail:{originalEvent:r}}))}function Ne(t,e,r){t.dispatchEvent(new CustomEvent(e,{detail:{originalEntry:r}}))}const Be={isActive:t=>Boolean(t.inView),subscribe:(t,{enable:e,disable:r},{inViewOptions:o={}})=>{const{once:n}=o,i=Ee(o,["once"]);return function(t,e,{root:r,margin:o,amount:n="any"}={}){if("undefined"==typeof IntersectionObserver)return()=>{};const i=fe(t),a=new WeakMap,s=new IntersectionObserver((t=>{t.forEach((t=>{const r=a.get(t.target);if(t.isIntersecting!==Boolean(r))if(t.isIntersecting){const r=e(t);Tt(r)?a.set(t.target,r):s.unobserve(t.target)}else r&&(r(t),a.delete(t.target))}))}),{root:r,rootMargin:o,threshold:"number"==typeof n?n:Se[n]});return i.forEach((t=>s.observe(t))),()=>s.disconnect()}(t,(o=>{if(e(),Ne(t,"viewenter",o),!n)return e=>{r(),Ne(t,"viewleave",e)}}),i)}},De=(t,e,r)=>o=>{o.pointerType&&"mouse"!==o.pointerType||(r(),Le(t,e,o))},je={inView:Be,hover:{isActive:t=>Boolean(t.hover),subscribe:(t,{enable:e,disable:r})=>{const o=De(t,"hoverstart",e),n=De(t,"hoverend",r);return t.addEventListener("pointerenter",o),t.addEventListener("pointerleave",n),()=>{t.removeEventListener("pointerenter",o),t.removeEventListener("pointerleave",n)}}},press:{isActive:t=>Boolean(t.press),subscribe:(t,{enable:e,disable:r})=>{const o=e=>{r(),Le(t,"pressend",e),window.removeEventListener("pointerup",o)},n=r=>{e(),Le(t,"pressstart",r),window.addEventListener("pointerup",o)};return t.addEventListener("pointerdown",n),()=>{t.removeEventListener("pointerdown",n),window.removeEventListener("pointerup",o)}}}};Object.keys(je),new WeakMap;function We(t,e={}){return be([()=>{const r=new Wt(t,[0,1],e);return r.finished.catch((()=>{})),r}],e,e.duration)}function Ue(t,e,r){return(Tt(t)?We:Ce)(t,e,r)}const ze=t=>null!=t?t:V;var He=r(61405),Ve=r(98399),Ze=Object.defineProperty,Fe=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,Ye=(t,e,r)=>e in t?Ze(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Je=(t,e)=>{for(var r in e||(e={}))qe.call(e,r)&&Ye(t,r,e[r]);if(Fe)for(var r of Fe(e))Ke.call(e,r)&&Ye(t,r,e[r]);return t};const Qe={getPreset:t=>({"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}[t]),setTheme(){const t=document.querySelector(":root"),{themeVariables:e}=vt.Ic.state;if(t){const r=Je(Je(Je({},function(){var t;const e={light:{foreground:{1:"rgb(20,20,20)",2:"rgb(121,134,134)",3:"rgb(158,169,169)"},background:{1:"rgb(255,255,255)",2:"rgb(241,243,243)",3:"rgb(228,231,231)"},overlay:"rgba(0,0,0,0.1)"},dark:{foreground:{1:"rgb(228,231,231)",2:"rgb(148,158,158)",3:"rgb(110,119,119)"},background:{1:"rgb(20,20,20)",2:"rgb(39,42,42)",3:"rgb(59,64,64)"},overlay:"rgba(255,255,255,0.1)"}}[null!=(t=vt.Ic.state.themeMode)?t:"dark"];return{"--wcm-color-fg-1":e.foreground[1],"--wcm-color-fg-2":e.foreground[2],"--wcm-color-fg-3":e.foreground[3],"--wcm-color-bg-1":e.background[1],"--wcm-color-bg-2":e.background[2],"--wcm-color-bg-3":e.background[3],"--wcm-color-overlay":e.overlay}}()),{"--wcm-accent-color":"#3396FF","--wcm-accent-fill-color":"#FFFFFF","--wcm-z-index":"89","--wcm-background-color":"#3396FF","--wcm-background-border-radius":"8px","--wcm-container-border-radius":"30px","--wcm-wallet-icon-border-radius":"15px","--wcm-wallet-icon-large-border-radius":"30px","--wcm-wallet-icon-small-border-radius":"7px","--wcm-input-border-radius":"28px","--wcm-button-border-radius":"10px","--wcm-notification-border-radius":"36px","--wcm-secondary-button-border-radius":"28px","--wcm-icon-button-border-radius":"50%","--wcm-button-hover-highlight-border-radius":"10px","--wcm-text-big-bold-size":"20px","--wcm-text-big-bold-weight":"600","--wcm-text-big-bold-line-height":"24px","--wcm-text-big-bold-letter-spacing":"-0.03em","--wcm-text-big-bold-text-transform":"none","--wcm-text-xsmall-bold-size":"10px","--wcm-text-xsmall-bold-weight":"700","--wcm-text-xsmall-bold-line-height":"12px","--wcm-text-xsmall-bold-letter-spacing":"0.02em","--wcm-text-xsmall-bold-text-transform":"uppercase","--wcm-text-xsmall-regular-size":"12px","--wcm-text-xsmall-regular-weight":"600","--wcm-text-xsmall-regular-line-height":"14px","--wcm-text-xsmall-regular-letter-spacing":"-0.03em","--wcm-text-xsmall-regular-text-transform":"none","--wcm-text-small-thin-size":"14px","--wcm-text-small-thin-weight":"500","--wcm-text-small-thin-line-height":"16px","--wcm-text-small-thin-letter-spacing":"-0.03em","--wcm-text-small-thin-text-transform":"none","--wcm-text-small-regular-size":"14px","--wcm-text-small-regular-weight":"600","--wcm-text-small-regular-line-height":"16px","--wcm-text-small-regular-letter-spacing":"-0.03em","--wcm-text-small-regular-text-transform":"none","--wcm-text-medium-regular-size":"16px","--wcm-text-medium-regular-weight":"600","--wcm-text-medium-regular-line-height":"20px","--wcm-text-medium-regular-letter-spacing":"-0.03em","--wcm-text-medium-regular-text-transform":"none","--wcm-font-family":"-apple-system, system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', sans-serif","--wcm-font-feature-settings":"'tnum' on, 'lnum' on, 'case' on","--wcm-success-color":"rgb(38,181,98)","--wcm-error-color":"rgb(242, 90, 103)","--wcm-overlay-background-color":"rgba(0, 0, 0, 0.3)","--wcm-overlay-backdrop-filter":"none"}),e);Object.entries(r).forEach((([e,r])=>t.style.setProperty(e,r)))}},globalCss:l`*,::after,::before{margin:0;padding:0;box-sizing:border-box;font-style:normal;text-rendering:optimizeSpeed;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-tap-highlight-color:transparent;backface-visibility:hidden}button{cursor:pointer;display:flex;justify-content:center;align-items:center;position:relative;border:none;background-color:transparent;transition:all .2s ease}@media (hover:hover) and (pointer:fine){button:active{transition:all .1s ease;transform:scale(.93)}}button::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;transition:background-color,.2s ease}button:disabled{cursor:not-allowed}button svg,button wcm-text{position:relative;z-index:1}input{border:none;outline:0;appearance:none}img{display:block}::selection{color:var(--wcm-accent-fill-color);background:var(--wcm-accent-color)}`},Ge=l`button{border-radius:var(--wcm-secondary-button-border-radius);height:28px;padding:0 10px;background-color:var(--wcm-accent-color)}button path{fill:var(--wcm-accent-fill-color)}button::after{border-radius:inherit;border:1px solid var(--wcm-color-overlay)}button:disabled::after{background-color:transparent}.wcm-icon-left svg{margin-right:5px}.wcm-icon-right svg{margin-left:5px}button:active::after{background-color:var(--wcm-color-overlay)}.wcm-ghost,.wcm-ghost:active::after,.wcm-outline{background-color:transparent}.wcm-ghost:active{opacity:.5}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}.wcm-ghost:hover::after{background-color:transparent}.wcm-ghost:hover{opacity:.5}}button:disabled{background-color:var(--wcm-color-bg-3);pointer-events:none}.wcm-ghost::after{border-color:transparent}.wcm-ghost path{fill:var(--wcm-color-fg-2)}.wcm-outline path{fill:var(--wcm-accent-color)}.wcm-outline:disabled{background-color:transparent;opacity:.5}`;var Xe=Object.defineProperty,tr=Object.getOwnPropertyDescriptor,er=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?tr(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Xe(e,r,i),i};let rr=class extends lt{constructor(){super(...arguments),this.disabled=!1,this.iconLeft=void 0,this.iconRight=void 0,this.onClick=()=>null,this.variant="default"}render(){const t={"wcm-icon-left":void 0!==this.iconLeft,"wcm-icon-right":void 0!==this.iconRight,"wcm-ghost":"ghost"===this.variant,"wcm-outline":"outline"===this.variant};let e="inverse";return"ghost"===this.variant&&(e="secondary"),"outline"===this.variant&&(e="accent"),U``}};rr.styles=[Qe.globalCss,Ge],er([ut({type:Boolean})],rr.prototype,"disabled",2),er([ut()],rr.prototype,"iconLeft",2),er([ut()],rr.prototype,"iconRight",2),er([ut()],rr.prototype,"onClick",2),er([ut()],rr.prototype,"variant",2),rr=er([dt("wcm-button")],rr);const or=l`:host{display:inline-block}button{padding:0 15px 1px;height:40px;border-radius:var(--wcm-button-border-radius);color:var(--wcm-accent-fill-color);background-color:var(--wcm-accent-color)}button::after{content:'';top:0;bottom:0;left:0;right:0;position:absolute;background-color:transparent;border-radius:inherit;transition:background-color .2s ease;border:1px solid var(--wcm-color-overlay)}button:active::after{background-color:var(--wcm-color-overlay)}button:disabled{padding-bottom:0;background-color:var(--wcm-color-bg-3);color:var(--wcm-color-fg-3)}.wcm-secondary{color:var(--wcm-accent-color);background-color:transparent}.wcm-secondary::after{display:none}@media(hover:hover){button:hover::after{background-color:var(--wcm-color-overlay)}}`;var nr=Object.defineProperty,ir=Object.getOwnPropertyDescriptor,ar=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?ir(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&nr(e,r,i),i};let sr=class extends lt{constructor(){super(...arguments),this.disabled=!1,this.variant="primary"}render(){const t={"wcm-secondary":"secondary"===this.variant};return U``}};sr.styles=[Qe.globalCss,or],ar([ut({type:Boolean})],sr.prototype,"disabled",2),ar([ut()],sr.prototype,"variant",2),sr=ar([dt("wcm-button-big")],sr);const lr=l`:host{background-color:var(--wcm-color-bg-2);border-top:1px solid var(--wcm-color-bg-3)}div{padding:10px 20px;display:inherit;flex-direction:inherit;align-items:inherit;width:inherit;justify-content:inherit}`;var cr=Object.defineProperty,dr=Object.getOwnPropertyDescriptor;let hr=class extends lt{render(){return U`
`}};hr.styles=[Qe.globalCss,lr],hr=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?dr(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&cr(e,r,i),i})([dt("wcm-info-footer")],hr);const ur={CROSS_ICON:z``,WALLET_CONNECT_LOGO:z``,WALLET_CONNECT_ICON:z``,WALLET_CONNECT_ICON_COLORED:z``,BACK_ICON:z``,COPY_ICON:z``,RETRY_ICON:z``,DESKTOP_ICON:z``,MOBILE_ICON:z``,ARROW_DOWN_ICON:z``,ARROW_UP_RIGHT_ICON:z``,ARROW_RIGHT_ICON:z``,QRCODE_ICON:z``,SCAN_ICON:z``,CHECKMARK_ICON:z``,SEARCH_ICON:z``,WALLET_PLACEHOLDER:z``,GLOBE_ICON:z``},mr=l`.wcm-toolbar-placeholder{top:0;bottom:0;left:0;right:0;width:100%;position:absolute;display:block;pointer-events:none;height:100px;border-radius:calc(var(--wcm-background-border-radius) * .9);background-color:var(--wcm-background-color);background-position:center;background-size:cover}.wcm-toolbar{height:38px;display:flex;position:relative;margin:5px 15px 5px 5px;justify-content:space-between;align-items:center}.wcm-toolbar img,.wcm-toolbar svg{height:28px;object-position:left center;object-fit:contain}#wcm-wc-logo path{fill:var(--wcm-accent-fill-color)}button{width:28px;height:28px;border-radius:var(--wcm-icon-button-border-radius);border:0;display:flex;justify-content:center;align-items:center;cursor:pointer;background-color:var(--wcm-color-bg-1);box-shadow:0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-bg-2)}button svg{display:block;object-position:center}button path{fill:var(--wcm-color-fg-1)}.wcm-toolbar div{display:flex}@media(hover:hover){button:hover{background-color:var(--wcm-color-bg-2)}}`;var pr=Object.defineProperty,gr=Object.getOwnPropertyDescriptor;let wr=class extends lt{render(){return U`
${ur.WALLET_CONNECT_LOGO}
`}};wr.styles=[Qe.globalCss,mr],wr=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?gr(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&pr(e,r,i),i})([dt("wcm-modal-backcard")],wr);const fr=l`main{padding:20px;padding-top:0;width:100%}`;var vr=Object.defineProperty,br=Object.getOwnPropertyDescriptor;let yr=class extends lt{render(){return U`
`}};yr.styles=[Qe.globalCss,fr],yr=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?br(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&vr(e,r,i),i})([dt("wcm-modal-content")],yr);const xr=l`footer{padding:10px;display:flex;flex-direction:column;align-items:inherit;justify-content:inherit;border-top:1px solid var(--wcm-color-bg-2)}`;var $r=Object.defineProperty,Cr=Object.getOwnPropertyDescriptor;let Ar=class extends lt{render(){return U`
`}};Ar.styles=[Qe.globalCss,xr],Ar=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Cr(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&$r(e,r,i),i})([dt("wcm-modal-footer")],Ar);const Er=l`header{display:flex;justify-content:center;align-items:center;padding:20px;position:relative}.wcm-border{border-bottom:1px solid var(--wcm-color-bg-2);margin-bottom:20px}header button{padding:15px 20px}header button:active{opacity:.5}@media(hover:hover){header button:hover{opacity:.5}}.wcm-back-btn{position:absolute;left:0}.wcm-action-btn{position:absolute;right:0}path{fill:var(--wcm-accent-color)}`;var kr=Object.defineProperty,Or=Object.getOwnPropertyDescriptor,_r=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Or(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&kr(e,r,i),i};let Ir=class extends lt{constructor(){super(...arguments),this.title="",this.onAction=void 0,this.actionIcon=void 0,this.border=!1}backBtnTemplate(){return U``}actionBtnTemplate(){return U``}render(){const t={"wcm-border":this.border},e=vt.AV.state.history.length>1,r=this.title?U`${this.title}`:U``;return U`
${e?this.backBtnTemplate():null} ${r} ${this.onAction?this.actionBtnTemplate():null}
`}};Ir.styles=[Qe.globalCss,Er],_r([ut()],Ir.prototype,"title",2),_r([ut()],Ir.prototype,"onAction",2),_r([ut()],Ir.prototype,"actionIcon",2),_r([ut({type:Boolean})],Ir.prototype,"border",2),Ir=_r([dt("wcm-modal-header")],Ir);const Mr={MOBILE_BREAKPOINT:600,WCM_RECENT_WALLET_DATA:"WCM_RECENT_WALLET_DATA",EXPLORER_WALLET_URL:"https://explorer.walletconnect.com/?type=wallet",getShadowRootElement(t,e){const r=t.renderRoot.querySelector(e);if(!r)throw new Error(`${e} not found`);return r},getWalletIcon({id:t,image_id:e}){const{walletImages:r}=vt.t0.state;return null!=r&&r[t]?r[t]:e?vt.uc.getWalletImageUrl(e):""},getWalletName:(t,e=!1)=>e&&t.length>8?`${t.substring(0,8)}..`:t,isMobileAnimation:()=>window.innerWidth<=Mr.MOBILE_BREAKPOINT,async preloadImage(t){const e=new Promise(((e,r)=>{const o=new Image;o.onload=e,o.onerror=r,o.crossOrigin="anonymous",o.src=t}));return Promise.race([e,vt.zv.wait(3e3)])},getErrorMessage:t=>t instanceof Error?t.message:"Unknown Error",debounce(t,e=500){let r;return(...o)=>{r&&clearTimeout(r),r=setTimeout((function(){t(...o)}),e)}},handleMobileLinking(t){const{walletConnectUri:e}=vt.zb.state,{mobile:r,name:o}=t,n=r?.native,i=r?.universal;Mr.setRecentWallet(t),e&&function(t){let e="";n?e=vt.zv.formatUniversalUrl(n,t,o):i&&(e=vt.zv.formatNativeUrl(i,t,o)),vt.zv.openHref(e,"_self")}(e)},handleAndroidLinking(){const{walletConnectUri:t}=vt.zb.state;t&&(vt.zv.setWalletConnectAndroidDeepLink(t),vt.zv.openHref(t,"_self"))},async handleUriCopy(){const{walletConnectUri:t}=vt.zb.state;if(t)try{await navigator.clipboard.writeText(t),vt.Vs.openToast("Link copied","success")}catch{vt.Vs.openToast("Failed to copy","error")}},getCustomImageUrls(){const{walletImages:t}=vt.t0.state,e=Object.values(t??{});return Object.values(e)},truncate:(t,e=8)=>t.length<=e?t:`${t.substring(0,4)}...${t.substring(t.length-4)}`,setRecentWallet(t){try{localStorage.setItem(Mr.WCM_RECENT_WALLET_DATA,JSON.stringify(t))}catch{Ve.info("Unable to set recent wallet")}},getRecentWallet(){try{const t=localStorage.getItem(Mr.WCM_RECENT_WALLET_DATA);return t?JSON.parse(t):void 0}catch{Ve.info("Unable to get recent wallet")}},caseSafeIncludes:(t,e)=>t.toUpperCase().includes(e.toUpperCase()),openWalletExplorerUrl(){vt.zv.openHref(Mr.EXPLORER_WALLET_URL,"_blank")},getCachedRouterWalletPlatforms(){const{desktop:t,mobile:e}=vt.zv.getWalletRouterData(),r=Boolean(t?.native),o=Boolean(t?.universal);return{isDesktop:r,isMobile:Boolean(e?.native)||Boolean(e?.universal),isWeb:o}},goToConnectingView(t){vt.AV.setData({Wallet:t});const e=vt.zv.isMobile(),{isDesktop:r,isWeb:o,isMobile:n}=Mr.getCachedRouterWalletPlatforms();e?n?vt.AV.push("MobileConnecting"):o?vt.AV.push("WebConnecting"):vt.AV.push("InstallWallet"):r?vt.AV.push("DesktopConnecting"):o?vt.AV.push("WebConnecting"):n?vt.AV.push("MobileQrcodeConnecting"):vt.AV.push("InstallWallet")}},Tr=l`.wcm-router{overflow:hidden;will-change:transform}.wcm-content{display:flex;flex-direction:column}`;var Pr=Object.defineProperty,Rr=Object.getOwnPropertyDescriptor,Sr=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Rr(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Pr(e,r,i),i};let Lr=class extends lt{constructor(){super(),this.view=vt.AV.state.view,this.prevView=vt.AV.state.view,this.unsubscribe=void 0,this.oldHeight="0px",this.resizeObserver=void 0,this.unsubscribe=vt.AV.subscribe((t=>{this.view!==t.view&&this.onChangeRoute()}))}firstUpdated(){this.resizeObserver=new ResizeObserver((([t])=>{const e=`${t.contentRect.height}px`;"0px"!==this.oldHeight&&Ue(this.routerEl,{height:[this.oldHeight,e]},{duration:.2}),this.oldHeight=e})),this.resizeObserver.observe(this.contentEl)}disconnectedCallback(){var t,e;null==(t=this.unsubscribe)||t.call(this),null==(e=this.resizeObserver)||e.disconnect()}get routerEl(){return Mr.getShadowRootElement(this,".wcm-router")}get contentEl(){return Mr.getShadowRootElement(this,".wcm-content")}viewTemplate(){switch(this.view){case"ConnectWallet":return U``;case"DesktopConnecting":return U``;case"MobileConnecting":return U``;case"WebConnecting":return U``;case"MobileQrcodeConnecting":return U``;case"WalletExplorer":return U``;case"Qrcode":return U``;case"InstallWallet":return U``;default:return U`
Not Found
`}}async onChangeRoute(){await Ue(this.routerEl,{opacity:[1,0],scale:[1,1.02]},{duration:.15,delay:.1}).finished,this.view=vt.AV.state.view,Ue(this.routerEl,{opacity:[0,1],scale:[.99,1]},{duration:.37,delay:.05})}render(){return U`
${this.viewTemplate()}
`}};Lr.styles=[Qe.globalCss,Tr],Sr([mt()],Lr.prototype,"view",2),Sr([mt()],Lr.prototype,"prevView",2),Lr=Sr([dt("wcm-modal-router")],Lr);const Nr=l`div{height:36px;width:max-content;display:flex;justify-content:center;align-items:center;padding:9px 15px 11px;position:absolute;top:12px;box-shadow:0 6px 14px -6px rgba(10,16,31,.3),0 10px 32px -4px rgba(10,16,31,.15);z-index:2;left:50%;transform:translateX(-50%);pointer-events:none;backdrop-filter:blur(20px) saturate(1.8);-webkit-backdrop-filter:blur(20px) saturate(1.8);border-radius:var(--wcm-notification-border-radius);border:1px solid var(--wcm-color-overlay);background-color:var(--wcm-color-overlay)}svg{margin-right:5px}@-moz-document url-prefix(){div{background-color:var(--wcm-color-bg-3)}}.wcm-success path{fill:var(--wcm-accent-color)}.wcm-error path{fill:var(--wcm-error-color)}`;var Br=Object.defineProperty,Dr=Object.getOwnPropertyDescriptor,jr=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Dr(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Br(e,r,i),i};let Wr=class extends lt{constructor(){super(),this.open=!1,this.unsubscribe=void 0,this.timeout=void 0,this.unsubscribe=vt.Vs.subscribe((t=>{t.open?(this.open=!0,this.timeout=setTimeout((()=>vt.Vs.closeToast()),2200)):(this.open=!1,clearTimeout(this.timeout))}))}disconnectedCallback(){var t;null==(t=this.unsubscribe)||t.call(this),clearTimeout(this.timeout),vt.Vs.closeToast()}render(){const{message:t,variant:e}=vt.Vs.state,r={"wcm-success":"success"===e,"wcm-error":"error"===e};return this.open?U`
${"success"===e?ur.CHECKMARK_ICON:null} ${"error"===e?ur.CROSS_ICON:null}${t}
`:null}};Wr.styles=[Qe.globalCss,Nr],jr([mt()],Wr.prototype,"open",2),Wr=jr([dt("wcm-modal-toast")],Wr);function Ur(t,e,r){return t!==e&&(t-e<0?e-t:t-e)<=r+.1}const zr={generate(t,e,r){const o="#141414",n=[],i=function(t,e){const r=Array.prototype.slice.call(He.create(t,{errorCorrectionLevel:e}).modules.data,0),o=Math.sqrt(r.length);return r.reduce(((t,e,r)=>(r%o==0?t.push([e]):t[t.length-1].push(e))&&t),[])}(t,"Q"),a=e/i.length,s=[{x:0,y:0},{x:1,y:0},{x:0,y:1}];s.forEach((({x:t,y:e})=>{const r=(i.length-7)*a*t,l=(i.length-7)*a*e;for(let i=0;i`)}}));const l=Math.floor((r+25)/a),c=i.length/2-l/2,d=i.length/2+l/2-1,h=[];i.forEach(((t,e)=>{t.forEach(((t,r)=>{if(i[e][r]&&!(e<7&&r<7||e>i.length-8&&r<7||e<7&&r>i.length-8)&&!(e>c&&ec&&r{u[t]?u[t].push(e):u[t]=[e]})),Object.entries(u).map((([t,e])=>{const r=e.filter((t=>e.every((e=>!Ur(t,e,a)))));return[Number(t),r]})).forEach((([t,e])=>{e.forEach((e=>{n.push(z``)}))})),Object.entries(u).filter((([t,e])=>e.length>1)).map((([t,e])=>{const r=e.filter((t=>e.some((e=>Ur(t,e,a)))));return[Number(t),r]})).map((([t,e])=>{e.sort(((t,e)=>tt.some((t=>Ur(o,t,a)))));t?t.push(o):r.push([o])}return[t,r.map((t=>[t[0],t[t.length-1]]))]})).forEach((([t,e])=>{e.forEach((([e,r])=>{n.push(z``)}))})),n}},Hr=l`@keyframes fadeIn{0%{opacity:0}100%{opacity:1}}div{position:relative;user-select:none;display:block;overflow:hidden;aspect-ratio:1/1;animation:fadeIn ease .2s}.wcm-dark{background-color:#fff;border-radius:var(--wcm-container-border-radius);padding:18px;box-shadow:0 2px 5px #000}svg:first-child,wcm-wallet-image{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{transform:translateY(-50%) translateX(-50%)}wcm-wallet-image{width:25%;height:25%;border-radius:var(--wcm-wallet-icon-border-radius)}svg:first-child{transform:translateY(-50%) translateX(-50%) scale(.9)}svg:first-child path:first-child{fill:var(--wcm-accent-color)}svg:first-child path:last-child{stroke:var(--wcm-color-overlay)}`;var Vr=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor,Fr=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Zr(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Vr(e,r,i),i};let qr=class extends lt{constructor(){super(...arguments),this.uri="",this.size=0,this.imageId=void 0,this.walletId=void 0,this.imageUrl=void 0}svgTemplate(){const t="light"===vt.Ic.state.themeMode?this.size:this.size-36;return z`${zr.generate(this.uri,t,t/4)}`}render(){const t={"wcm-dark":"dark"===vt.Ic.state.themeMode};return U`
${this.walletId||this.imageUrl?U``:ur.WALLET_CONNECT_ICON_COLORED} ${this.svgTemplate()}
`}};qr.styles=[Qe.globalCss,Hr],Fr([ut()],qr.prototype,"uri",2),Fr([ut({type:Number})],qr.prototype,"size",2),Fr([ut()],qr.prototype,"imageId",2),Fr([ut()],qr.prototype,"walletId",2),Fr([ut()],qr.prototype,"imageUrl",2),qr=Fr([dt("wcm-qrcode")],qr);const Kr=l`:host{position:relative;height:28px;width:80%}input{width:100%;height:100%;line-height:28px!important;border-radius:var(--wcm-input-border-radius);font-style:normal;font-family:-apple-system,system-ui,BlinkMacSystemFont,'Segoe UI',Roboto,Ubuntu,'Helvetica Neue',sans-serif;font-feature-settings:'case' on;font-weight:500;font-size:16px;letter-spacing:-.03em;padding:0 10px 0 34px;transition:.2s all ease;color:var(--wcm-color-fg-1);background-color:var(--wcm-color-bg-3);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay);caret-color:var(--wcm-accent-color)}input::placeholder{color:var(--wcm-color-fg-2)}svg{left:10px;top:4px;pointer-events:none;position:absolute;width:20px;height:20px}input:focus-within{box-shadow:inset 0 0 0 1px var(--wcm-accent-color)}path{fill:var(--wcm-color-fg-2)}`;var Yr=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,Qr=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Jr(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Yr(e,r,i),i};let Gr=class extends lt{constructor(){super(...arguments),this.onChange=()=>null}render(){return U` ${ur.SEARCH_ICON}`}};Gr.styles=[Qe.globalCss,Kr],Qr([ut()],Gr.prototype,"onChange",2),Gr=Qr([dt("wcm-search-input")],Gr);const Xr=l`@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dasharray:1,150;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-35}100%{stroke-dasharray:90,150;stroke-dashoffset:-124}}svg{animation:rotate 2s linear infinite;display:flex;justify-content:center;align-items:center}svg circle{stroke-linecap:round;animation:dash 1.5s ease infinite;stroke:var(--wcm-accent-color)}`;var to=Object.defineProperty,eo=Object.getOwnPropertyDescriptor;let ro=class extends lt{render(){return U``}};ro.styles=[Qe.globalCss,Xr],ro=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?eo(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&to(e,r,i),i})([dt("wcm-spinner")],ro);const oo=l`span{font-style:normal;font-family:var(--wcm-font-family);font-feature-settings:var(--wcm-font-feature-settings)}.wcm-xsmall-bold{font-family:var(--wcm-text-xsmall-bold-font-family);font-weight:var(--wcm-text-xsmall-bold-weight);font-size:var(--wcm-text-xsmall-bold-size);line-height:var(--wcm-text-xsmall-bold-line-height);letter-spacing:var(--wcm-text-xsmall-bold-letter-spacing);text-transform:var(--wcm-text-xsmall-bold-text-transform)}.wcm-xsmall-regular{font-family:var(--wcm-text-xsmall-regular-font-family);font-weight:var(--wcm-text-xsmall-regular-weight);font-size:var(--wcm-text-xsmall-regular-size);line-height:var(--wcm-text-xsmall-regular-line-height);letter-spacing:var(--wcm-text-xsmall-regular-letter-spacing);text-transform:var(--wcm-text-xsmall-regular-text-transform)}.wcm-small-thin{font-family:var(--wcm-text-small-thin-font-family);font-weight:var(--wcm-text-small-thin-weight);font-size:var(--wcm-text-small-thin-size);line-height:var(--wcm-text-small-thin-line-height);letter-spacing:var(--wcm-text-small-thin-letter-spacing);text-transform:var(--wcm-text-small-thin-text-transform)}.wcm-small-regular{font-family:var(--wcm-text-small-regular-font-family);font-weight:var(--wcm-text-small-regular-weight);font-size:var(--wcm-text-small-regular-size);line-height:var(--wcm-text-small-regular-line-height);letter-spacing:var(--wcm-text-small-regular-letter-spacing);text-transform:var(--wcm-text-small-regular-text-transform)}.wcm-medium-regular{font-family:var(--wcm-text-medium-regular-font-family);font-weight:var(--wcm-text-medium-regular-weight);font-size:var(--wcm-text-medium-regular-size);line-height:var(--wcm-text-medium-regular-line-height);letter-spacing:var(--wcm-text-medium-regular-letter-spacing);text-transform:var(--wcm-text-medium-regular-text-transform)}.wcm-big-bold{font-family:var(--wcm-text-big-bold-font-family);font-weight:var(--wcm-text-big-bold-weight);font-size:var(--wcm-text-big-bold-size);line-height:var(--wcm-text-big-bold-line-height);letter-spacing:var(--wcm-text-big-bold-letter-spacing);text-transform:var(--wcm-text-big-bold-text-transform)}:host(*){color:var(--wcm-color-fg-1)}.wcm-color-primary{color:var(--wcm-color-fg-1)}.wcm-color-secondary{color:var(--wcm-color-fg-2)}.wcm-color-tertiary{color:var(--wcm-color-fg-3)}.wcm-color-inverse{color:var(--wcm-accent-fill-color)}.wcm-color-accnt{color:var(--wcm-accent-color)}.wcm-color-error{color:var(--wcm-error-color)}`;var no=Object.defineProperty,io=Object.getOwnPropertyDescriptor,ao=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?io(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&no(e,r,i),i};let so=class extends lt{constructor(){super(...arguments),this.variant="medium-regular",this.color="primary"}render(){const t={"wcm-big-bold":"big-bold"===this.variant,"wcm-medium-regular":"medium-regular"===this.variant,"wcm-small-regular":"small-regular"===this.variant,"wcm-small-thin":"small-thin"===this.variant,"wcm-xsmall-regular":"xsmall-regular"===this.variant,"wcm-xsmall-bold":"xsmall-bold"===this.variant,"wcm-color-primary":"primary"===this.color,"wcm-color-secondary":"secondary"===this.color,"wcm-color-tertiary":"tertiary"===this.color,"wcm-color-inverse":"inverse"===this.color,"wcm-color-accnt":"accent"===this.color,"wcm-color-error":"error"===this.color};return U``}};so.styles=[Qe.globalCss,oo],ao([ut()],so.prototype,"variant",2),ao([ut()],so.prototype,"color",2),so=ao([dt("wcm-text")],so);const lo=l`button{width:100%;height:100%;border-radius:var(--wcm-button-hover-highlight-border-radius);display:flex;align-items:flex-start}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}button>div{width:80px;padding:5px 0;display:flex;flex-direction:column;align-items:center}wcm-text{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}wcm-wallet-image{height:60px;width:60px;transition:all .2s ease;border-radius:var(--wcm-wallet-icon-border-radius);margin-bottom:5px}.wcm-sublabel{margin-top:2px}`;var co=Object.defineProperty,ho=Object.getOwnPropertyDescriptor,uo=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?ho(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&co(e,r,i),i};let mo=class extends lt{constructor(){super(...arguments),this.onClick=()=>null,this.name="",this.walletId="",this.label=void 0,this.imageId=void 0,this.installed=!1,this.recent=!1}sublabelTemplate(){return this.recent?U`RECENT`:this.installed?U`INSTALLED`:null}handleClick(){vt.uA.click({name:"WALLET_BUTTON",walletId:this.walletId}),this.onClick()}render(){var t;return U``}};mo.styles=[Qe.globalCss,lo],uo([ut()],mo.prototype,"onClick",2),uo([ut()],mo.prototype,"name",2),uo([ut()],mo.prototype,"walletId",2),uo([ut()],mo.prototype,"label",2),uo([ut()],mo.prototype,"imageId",2),uo([ut({type:Boolean})],mo.prototype,"installed",2),uo([ut({type:Boolean})],mo.prototype,"recent",2),mo=uo([dt("wcm-wallet-button")],mo);const po=l`:host{display:block}div{overflow:hidden;position:relative;border-radius:inherit;width:100%;height:100%;background-color:var(--wcm-color-overlay)}svg{position:relative;width:100%;height:100%}div::after{content:'';position:absolute;top:0;bottom:0;left:0;right:0;border-radius:inherit;border:1px solid var(--wcm-color-overlay)}div img{width:100%;height:100%;object-fit:cover;object-position:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var go=Object.defineProperty,wo=Object.getOwnPropertyDescriptor,fo=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?wo(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&go(e,r,i),i};let vo=class extends lt{constructor(){super(...arguments),this.walletId="",this.imageId=void 0,this.imageUrl=void 0}render(){var t;const e=null!=(t=this.imageUrl)&&t.length?this.imageUrl:Mr.getWalletIcon({id:this.walletId,image_id:this.imageId});return U`${e.length?U`
${this.id}
`:ur.WALLET_PLACEHOLDER}`}};vo.styles=[Qe.globalCss,po],fo([ut()],vo.prototype,"walletId",2),fo([ut()],vo.prototype,"imageId",2),fo([ut()],vo.prototype,"imageUrl",2),vo=fo([dt("wcm-wallet-image")],vo);var bo=Object.defineProperty,yo=Object.getOwnPropertyDescriptor,xo=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?yo(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&bo(e,r,i),i};let $o=class extends lt{constructor(){super(),this.preload=!0,this.preloadData()}async loadImages(t){try{null!=t&&t.length&&await Promise.all(t.map((async t=>Mr.preloadImage(t))))}catch{Ve.info("Unsuccessful attempt at preloading some images",t)}}async preloadListings(){if(vt.t0.state.enableExplorer){await vt.uc.getRecomendedWallets(),vt.zb.setIsDataLoaded(!0);const{recomendedWallets:t}=vt.uc.state,e=t.map((t=>Mr.getWalletIcon(t)));await this.loadImages(e)}else vt.zb.setIsDataLoaded(!0)}async preloadCustomImages(){const t=Mr.getCustomImageUrls();await this.loadImages(t)}async preloadData(){try{this.preload&&(this.preload=!1,await Promise.all([this.preloadListings(),this.preloadCustomImages()]))}catch(t){Ve.error(t),vt.Vs.openToast("Failed preloading","error")}}};xo([mt()],$o.prototype,"preload",2),$o=xo([dt("wcm-explorer-context")],$o);var Co=Object.defineProperty,Ao=Object.getOwnPropertyDescriptor;let Eo=class extends lt{constructor(){super(),this.unsubscribeTheme=void 0,Qe.setTheme(),this.unsubscribeTheme=vt.Ic.subscribe(Qe.setTheme)}disconnectedCallback(){var t;null==(t=this.unsubscribeTheme)||t.call(this)}};Eo=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Ao(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Co(e,r,i),i})([dt("wcm-theme-context")],Eo);const ko=l`@keyframes scroll{0%{transform:translate3d(0,0,0)}100%{transform:translate3d(calc(-70px * 9),0,0)}}.wcm-slider{position:relative;overflow-x:hidden;padding:10px 0;margin:0 -20px;width:calc(100% + 40px)}.wcm-track{display:flex;width:calc(70px * 18);animation:scroll 20s linear infinite;opacity:.7}.wcm-track svg{margin:0 5px}wcm-wallet-image{width:60px;height:60px;margin:0 5px;border-radius:var(--wcm-wallet-icon-border-radius)}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-title{display:flex;align-items:center;margin-bottom:10px}.wcm-title svg{margin-right:6px}.wcm-title path{fill:var(--wcm-accent-color)}wcm-modal-footer .wcm-title{padding:0 10px}wcm-button-big{position:absolute;top:50%;left:50%;transform:translateY(-50%) translateX(-50%);filter:drop-shadow(0 0 17px var(--wcm-color-bg-1))}wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-info-footer wcm-text{text-align:center;margin-bottom:15px}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var Oo=Object.defineProperty,_o=Object.getOwnPropertyDescriptor;let Io=class extends lt{onGoToQrcode(){vt.AV.push("Qrcode")}render(){const{recomendedWallets:t}=vt.uc.state,e=[...t,...t],r=2*vt.zv.RECOMMENDED_WALLET_AMOUNT;return U`
${ur.MOBILE_ICON}WalletConnect
${[...Array(r)].map(((t,r)=>{const o=e[r%e.length];return o?U``:ur.WALLET_PLACEHOLDER}))}
Select Wallet
Choose WalletConnect to see supported apps on your device`}};Io.styles=[Qe.globalCss,ko],Io=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?_o(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Oo(e,r,i),i})([dt("wcm-android-wallet-selection")],Io);const Mo=l`@keyframes loading{to{stroke-dashoffset:0}}@keyframes shake{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(1px,0,0)}30%,50%,70%{transform:translate3d(-2px,0,0)}40%,60%{transform:translate3d(2px,0,0)}}:host{display:flex;flex-direction:column;align-items:center}div{position:relative;width:110px;height:110px;display:flex;justify-content:center;align-items:center;margin:40px 0 20px 0;transform:translate3d(0,0,0)}svg{position:absolute;width:110px;height:110px;fill:none;stroke:transparent;stroke-linecap:round;stroke-width:2px;top:0;left:0}use{stroke:var(--wcm-accent-color);animation:loading 1s linear infinite}wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:90px;height:90px}wcm-text{margin-bottom:40px}.wcm-error svg{stroke:var(--wcm-error-color)}.wcm-error use{display:none}.wcm-error{animation:shake .4s cubic-bezier(.36,.07,.19,.97) both}.wcm-stale svg,.wcm-stale use{display:none}`;var To=Object.defineProperty,Po=Object.getOwnPropertyDescriptor,Ro=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Po(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&To(e,r,i),i};let So=class extends lt{constructor(){super(...arguments),this.walletId=void 0,this.imageId=void 0,this.isError=!1,this.isStale=!1,this.label=""}svgLoaderTemplate(){var t,e;const r=null!=(e=null==(t=vt.Ic.state.themeVariables)?void 0:t["--wcm-wallet-icon-large-border-radius"])?e:Qe.getPreset("--wcm-wallet-icon-large-border-radius");let o=0;o=r.includes("%")?.88*parseInt(r,10):parseInt(r,10),o*=1.17;return U``}render(){const t={"wcm-error":this.isError,"wcm-stale":this.isStale};return U`
${this.svgLoaderTemplate()}
${this.isError?"Connection declined":this.label}`}};So.styles=[Qe.globalCss,Mo],Ro([ut()],So.prototype,"walletId",2),Ro([ut()],So.prototype,"imageId",2),Ro([ut({type:Boolean})],So.prototype,"isError",2),Ro([ut({type:Boolean})],So.prototype,"isStale",2),Ro([ut()],So.prototype,"label",2),So=Ro([dt("wcm-connector-waiting")],So);const Lo={manualWallets(){var t,e;const{mobileWallets:r,desktopWallets:o}=vt.t0.state,n=null==(t=Lo.recentWallet())?void 0:t.id,i=(vt.zv.isMobile()?r:o)?.filter((t=>n!==t.id));return null!=(e=vt.zv.isMobile()?i?.map((({id:t,name:e,links:r})=>({id:t,name:e,mobile:r,links:r}))):i?.map((({id:t,name:e,links:r})=>({id:t,name:e,desktop:r,links:r}))))?e:[]},recentWallet:()=>Mr.getRecentWallet(),recomendedWallets(t=!1){var e;const r=t||null==(e=Lo.recentWallet())?void 0:e.id,{recomendedWallets:o}=vt.uc.state;return o.filter((t=>r!==t.id))}},No={onConnecting(t){Mr.goToConnectingView(t)},manualWalletsTemplate(){return Lo.manualWallets().map((t=>U``))},recomendedWalletsTemplate(t=!1){return Lo.recomendedWallets(t).map((t=>U``))},recentWalletTemplate(){const t=Lo.recentWallet();if(t)return U``}},Bo=l`.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between}.wcm-desktop-title,.wcm-mobile-title{display:flex;align-items:center}.wcm-mobile-title{justify-content:space-between;margin-bottom:20px;margin-top:-10px}.wcm-desktop-title{margin-bottom:10px;padding:0 10px}.wcm-subtitle{display:flex;align-items:center}.wcm-subtitle:last-child path{fill:var(--wcm-color-fg-3)}.wcm-desktop-title svg,.wcm-mobile-title svg{margin-right:6px}.wcm-desktop-title path,.wcm-mobile-title path{fill:var(--wcm-accent-color)}`;var Do=Object.defineProperty,jo=Object.getOwnPropertyDescriptor;let Wo=class extends lt{render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=vt.t0.state,r="ALL"!==t&&e,o=No.manualWalletsTemplate(),n=No.recomendedWalletsTemplate();let i=[No.recentWalletTemplate(),...o,...n];i=i.filter(Boolean);const a=i.length>4||r;let s=[];s=a?i.slice(0,3):i;const l=Boolean(s.length);return U`
${ur.MOBILE_ICON}Mobile
${ur.SCAN_ICON}Scan with your wallet
${l?U`
${ur.DESKTOP_ICON}Desktop
${s} ${a?U``:null}
`:null}`}};Wo.styles=[Qe.globalCss,Bo],Wo=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?jo(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Do(e,r,i),i})([dt("wcm-desktop-wallet-selection")],Wo);const Uo=l`div{background-color:var(--wcm-color-bg-2);padding:10px 20px 15px 20px;border-top:1px solid var(--wcm-color-bg-3);text-align:center}a{color:var(--wcm-accent-color);text-decoration:none;transition:opacity .2s ease-in-out;display:inline}a:active{opacity:.8}@media(hover:hover){a:hover{opacity:.8}}`;var zo=Object.defineProperty,Ho=Object.getOwnPropertyDescriptor;let Vo=class extends lt{render(){const{termsOfServiceUrl:t,privacyPolicyUrl:e}=vt.t0.state;return t??e?U`
By connecting your wallet to this app, you agree to the app's ${t?U`Terms of Service`:null} ${t&&e?"and":null} ${e?U`Privacy Policy`:null}
`:null}};Vo.styles=[Qe.globalCss,Uo],Vo=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Ho(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&zo(e,r,i),i})([dt("wcm-legal-notice")],Vo);const Zo=l`div{display:grid;grid-template-columns:repeat(4,80px);margin:0 -10px;justify-content:space-between;row-gap:10px}`;var Fo=Object.defineProperty,qo=Object.getOwnPropertyDescriptor;let Ko=class extends lt{onQrcode(){vt.AV.push("Qrcode")}render(){const{explorerExcludedWalletIds:t,enableExplorer:e}=vt.t0.state,r="ALL"!==t&&e,o=No.manualWalletsTemplate(),n=No.recomendedWalletsTemplate();let i=[No.recentWalletTemplate(),...o,...n];i=i.filter(Boolean);const a=i.length>8||r;let s=[];s=a?i.slice(0,7):i;const l=Boolean(s.length);return U`${l?U`
${s} ${a?U``:null}
`:null}`}};Ko.styles=[Qe.globalCss,Zo],Ko=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?qo(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Fo(e,r,i),i})([dt("wcm-mobile-wallet-selection")],Ko);const Yo=l`:host{all:initial}.wcm-overlay{top:0;bottom:0;left:0;right:0;position:fixed;z-index:var(--wcm-z-index);overflow:hidden;display:flex;justify-content:center;align-items:center;opacity:0;pointer-events:none;background-color:var(--wcm-overlay-background-color);backdrop-filter:var(--wcm-overlay-backdrop-filter)}@media(max-height:720px) and (orientation:landscape){.wcm-overlay{overflow:scroll;align-items:flex-start;padding:20px 0}}.wcm-active{pointer-events:auto}.wcm-container{position:relative;max-width:360px;width:100%;outline:0;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) var(--wcm-container-border-radius) var(--wcm-container-border-radius);border:1px solid var(--wcm-color-overlay);overflow:hidden}.wcm-card{width:100%;position:relative;border-radius:var(--wcm-container-border-radius);overflow:hidden;box-shadow:0 6px 14px -6px rgba(10,16,31,.12),0 10px 32px -4px rgba(10,16,31,.1),0 0 0 1px var(--wcm-color-overlay);background-color:var(--wcm-color-bg-1);color:var(--wcm-color-fg-1)}@media(max-width:600px){.wcm-container{max-width:440px;border-radius:var(--wcm-background-border-radius) var(--wcm-background-border-radius) 0 0}.wcm-card{border-radius:var(--wcm-container-border-radius) var(--wcm-container-border-radius) 0 0}.wcm-overlay{align-items:flex-end}}@media(max-width:440px){.wcm-container{border:0}}`;var Jo=Object.defineProperty,Qo=Object.getOwnPropertyDescriptor,Go=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Qo(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Jo(e,r,i),i};let Xo=class extends lt{constructor(){super(),this.open=!1,this.active=!1,this.unsubscribeModal=void 0,this.abortController=void 0,this.unsubscribeModal=vt.jb.subscribe((t=>{t.open?this.onOpenModalEvent():this.onCloseModalEvent()}))}disconnectedCallback(){var t;null==(t=this.unsubscribeModal)||t.call(this)}get overlayEl(){return Mr.getShadowRootElement(this,".wcm-overlay")}get containerEl(){return Mr.getShadowRootElement(this,".wcm-container")}toggleBodyScroll(t){if(document.querySelector("body"))if(t){document.getElementById("wcm-styles")?.remove()}else document.head.insertAdjacentHTML("beforeend",'')}onCloseModal(t){t.target===t.currentTarget&&vt.jb.close()}onOpenModalEvent(){this.toggleBodyScroll(!1),this.addKeyboardEvents(),this.open=!0,setTimeout((async()=>{const t=Mr.isMobileAnimation()?{y:["50vh","0vh"]}:{scale:[.98,1]};await Promise.all([Ue(this.overlayEl,{opacity:[0,1]},{delay:.1,duration:.2}).finished,Ue(this.containerEl,t,{delay:.1,duration:.2}).finished]),this.active=!0}),0)}async onCloseModalEvent(){this.toggleBodyScroll(!0),this.removeKeyboardEvents();const t=Mr.isMobileAnimation()?{y:["0vh","50vh"]}:{scale:[1,.98]};await Promise.all([Ue(this.overlayEl,{opacity:[1,0]},{duration:.2}).finished,Ue(this.containerEl,t,{duration:.2}).finished]),this.containerEl.removeAttribute("style"),this.active=!1,this.open=!1}addKeyboardEvents(){this.abortController=new AbortController,window.addEventListener("keydown",(t=>{var e;"Escape"===t.key?vt.jb.close():"Tab"===t.key&&(null!=(e=t.target)&&e.tagName.includes("wcm-")||this.containerEl.focus())}),this.abortController),this.containerEl.focus()}removeKeyboardEvents(){var t;null==(t=this.abortController)||t.abort(),this.abortController=void 0}render(){const t={"wcm-overlay":!0,"wcm-active":this.active};return U`
${this.open?U`
`:null}
`}};Xo.styles=[Qe.globalCss,Yo],Go([mt()],Xo.prototype,"open",2),Go([mt()],Xo.prototype,"active",2),Xo=Go([dt("wcm-modal")],Xo);const tn=l`div{display:flex;margin-top:15px}slot{display:inline-block;margin:0 5px}wcm-button{margin:0 5px}`;var en=Object.defineProperty,rn=Object.getOwnPropertyDescriptor,on=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?rn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&en(e,r,i),i};let nn=class extends lt{constructor(){super(...arguments),this.isMobile=!1,this.isDesktop=!1,this.isWeb=!1,this.isRetry=!1}onMobile(){vt.zv.isMobile()?vt.AV.replace("MobileConnecting"):vt.AV.replace("MobileQrcodeConnecting")}onDesktop(){vt.AV.replace("DesktopConnecting")}onWeb(){vt.AV.replace("WebConnecting")}render(){return U`
${this.isRetry?U``:null} ${this.isMobile?U`Mobile`:null} ${this.isDesktop?U`Desktop`:null} ${this.isWeb?U`Web`:null}
`}};nn.styles=[Qe.globalCss,tn],on([ut({type:Boolean})],nn.prototype,"isMobile",2),on([ut({type:Boolean})],nn.prototype,"isDesktop",2),on([ut({type:Boolean})],nn.prototype,"isWeb",2),on([ut({type:Boolean})],nn.prototype,"isRetry",2),nn=on([dt("wcm-platform-selection")],nn);const an=l`button{display:flex;flex-direction:column;padding:5px 10px;border-radius:var(--wcm-button-hover-highlight-border-radius);height:100%;justify-content:flex-start}.wcm-icons{width:60px;height:60px;display:flex;flex-wrap:wrap;padding:7px;border-radius:var(--wcm-wallet-icon-border-radius);justify-content:space-between;align-items:center;margin-bottom:5px;background-color:var(--wcm-color-bg-2);box-shadow:inset 0 0 0 1px var(--wcm-color-overlay)}button:active{background-color:var(--wcm-color-overlay)}@media(hover:hover){button:hover{background-color:var(--wcm-color-overlay)}}.wcm-icons img{width:21px;height:21px;object-fit:cover;object-position:center;border-radius:calc(var(--wcm-wallet-icon-border-radius)/ 2);border:1px solid var(--wcm-color-overlay)}.wcm-icons svg{width:21px;height:21px}.wcm-icons img:nth-child(1),.wcm-icons img:nth-child(2),.wcm-icons svg:nth-child(1),.wcm-icons svg:nth-child(2){margin-bottom:4px}wcm-text{width:100%;text-align:center}#wallet-placeholder-fill{fill:var(--wcm-color-bg-3)}#wallet-placeholder-dash{stroke:var(--wcm-color-overlay)}`;var sn=Object.defineProperty,ln=Object.getOwnPropertyDescriptor;let cn=class extends lt{onClick(){vt.AV.push("WalletExplorer")}render(){const{recomendedWallets:t}=vt.uc.state,e=[...t,...Lo.manualWallets()].reverse().slice(0,4);return U``}};cn.styles=[Qe.globalCss,an],cn=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?ln(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&sn(e,r,i),i})([dt("wcm-view-all-wallets-button")],cn);const dn=l`.wcm-qr-container{width:100%;display:flex;justify-content:center;align-items:center;aspect-ratio:1/1}`;var hn=Object.defineProperty,un=Object.getOwnPropertyDescriptor,mn=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?un(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&hn(e,r,i),i};let pn=class extends lt{constructor(){super(),this.walletId="",this.imageId="",this.uri="",setTimeout((()=>{const{walletConnectUri:t}=vt.zb.state;this.uri=t}),0)}get overlayEl(){return Mr.getShadowRootElement(this,".wcm-qr-container")}render(){return U`
${this.uri?U``:U``}
`}};pn.styles=[Qe.globalCss,dn],mn([ut()],pn.prototype,"walletId",2),mn([ut()],pn.prototype,"imageId",2),mn([mt()],pn.prototype,"uri",2),pn=mn([dt("wcm-walletconnect-qr")],pn);var gn=Object.defineProperty,wn=Object.getOwnPropertyDescriptor;let fn=class extends lt{viewTemplate(){return vt.zv.isAndroid()?U``:vt.zv.isMobile()?U``:U``}render(){return U`${this.viewTemplate()}`}};fn.styles=[Qe.globalCss],fn=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?wn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&gn(e,r,i),i})([dt("wcm-connect-wallet-view")],fn);const vn=l`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var bn=Object.defineProperty,yn=Object.getOwnPropertyDescriptor,xn=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?yn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&bn(e,r,i),i};let $n=class extends lt{constructor(){super(),this.isError=!1,this.openDesktopApp()}onFormatAndRedirect(t){const{desktop:e,name:r}=vt.zv.getWalletRouterData(),o=e?.native;if(o){const e=vt.zv.formatNativeUrl(o,t,r);vt.zv.openHref(e,"_self")}}openDesktopApp(){const{walletConnectUri:t}=vt.zb.state,e=vt.zv.getWalletRouterData();Mr.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=vt.zv.getWalletRouterData(),{isMobile:o,isWeb:n}=Mr.getCachedRouterWalletPlatforms();return U`${`Connection can continue loading if ${t} is not installed on your device`}Retry`}};$n.styles=[Qe.globalCss,vn],xn([mt()],$n.prototype,"isError",2),$n=xn([dt("wcm-desktop-connecting-view")],$n);const Cn=l`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}wcm-button{margin-top:15px}`;var An=Object.defineProperty,En=Object.getOwnPropertyDescriptor;let kn=class extends lt{onInstall(t){t&&vt.zv.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,homepage:o}=vt.zv.getWalletRouterData();return U`${`Download ${t} to continue. If multiple browser extensions are installed, disable non ${t} ones and try again`}Download`}};kn.styles=[Qe.globalCss,Cn],kn=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?En(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&An(e,r,i),i})([dt("wcm-install-wallet-view")],kn);const On=l`wcm-wallet-image{border-radius:var(--wcm-wallet-icon-large-border-radius);width:96px;height:96px;margin-bottom:20px}wcm-info-footer{display:flex;width:100%}.wcm-app-store{justify-content:space-between}.wcm-app-store wcm-wallet-image{margin-right:10px;margin-bottom:0;width:28px;height:28px;border-radius:var(--wcm-wallet-icon-small-border-radius)}.wcm-app-store div{display:flex;align-items:center}.wcm-app-store wcm-button{margin-right:-10px}.wcm-note{flex-direction:column;align-items:center;padding:5px 0}.wcm-note wcm-text{text-align:center}wcm-platform-selection{margin-top:-15px}.wcm-note wcm-text{margin-top:15px}.wcm-note wcm-text span{color:var(--wcm-accent-color)}`;var _n=Object.defineProperty,In=Object.getOwnPropertyDescriptor,Mn=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?In(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&_n(e,r,i),i};let Tn=class extends lt{constructor(){super(),this.isError=!1,this.openMobileApp()}onFormatAndRedirect(t,e=!1){const{mobile:r,name:o}=vt.zv.getWalletRouterData(),n=r?.native,i=r?.universal;if(n&&!e){const e=vt.zv.formatNativeUrl(n,t,o);vt.zv.openHref(e,"_self")}else if(i){const e=vt.zv.formatUniversalUrl(i,t,o);vt.zv.openHref(e,"_self")}}openMobileApp(t=!1){const{walletConnectUri:e}=vt.zb.state,r=vt.zv.getWalletRouterData();Mr.setRecentWallet(r),e&&this.onFormatAndRedirect(e,t)}onGoToAppStore(t){t&&vt.zv.openHref(t,"_blank")}render(){const{name:t,id:e,image_id:r,app:o,mobile:n}=vt.zv.getWalletRouterData(),{isWeb:i}=Mr.getCachedRouterWalletPlatforms(),a=o?.ios,s=n?.universal;return U`Retry${s?U`Still doesn't work? Try this alternate link`:null}
${`Get ${t}`}
App Store
`}};Tn.styles=[Qe.globalCss,On],Mn([mt()],Tn.prototype,"isError",2),Tn=Mn([dt("wcm-mobile-connecting-view")],Tn);const Pn=l`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var Rn=Object.defineProperty,Sn=Object.getOwnPropertyDescriptor;let Ln=class extends lt{render(){const{name:t,id:e,image_id:r}=vt.zv.getWalletRouterData(),{isDesktop:o,isWeb:n}=Mr.getCachedRouterWalletPlatforms();return U`${`Scan this QR Code with your phone's camera or inside ${t} app`}`}};Ln.styles=[Qe.globalCss,Pn],Ln=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Sn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Rn(e,r,i),i})([dt("wcm-mobile-qr-connecting-view")],Ln);var Nn=Object.defineProperty,Bn=Object.getOwnPropertyDescriptor;let Dn=class extends lt{render(){return U``}};Dn.styles=[Qe.globalCss],Dn=((t,e,r,o)=>{for(var n,i=o>1?void 0:o?Bn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Nn(e,r,i),i})([dt("wcm-qrcode-view")],Dn);const jn=l`wcm-modal-content{height:clamp(200px,60vh,600px);display:block;overflow:scroll;scrollbar-width:none;position:relative;margin-top:1px}.wcm-grid{display:grid;grid-template-columns:repeat(4,80px);justify-content:space-between;margin:-15px -10px;padding-top:20px}wcm-modal-content::after,wcm-modal-content::before{content:'';position:fixed;pointer-events:none;z-index:1;width:100%;height:20px;opacity:1}wcm-modal-content::before{box-shadow:0 -1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(var(--wcm-color-bg-1),rgba(255,255,255,0))}wcm-modal-content::after{box-shadow:0 1px 0 0 var(--wcm-color-bg-1);background:linear-gradient(rgba(255,255,255,0),var(--wcm-color-bg-1));top:calc(100% - 20px)}wcm-modal-content::-webkit-scrollbar{display:none}.wcm-placeholder-block{display:flex;justify-content:center;align-items:center;height:100px;overflow:hidden}.wcm-empty,.wcm-loading{display:flex}.wcm-loading .wcm-placeholder-block{height:100%}.wcm-end-reached .wcm-placeholder-block{height:0;opacity:0}.wcm-empty .wcm-placeholder-block{opacity:1;height:100%}wcm-wallet-button{margin:calc((100% - 60px)/ 3) 0}`;var Wn=Object.defineProperty,Un=Object.getOwnPropertyDescriptor,zn=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Un(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Wn(e,r,i),i};let Hn=class extends lt{constructor(){super(...arguments),this.loading=!vt.uc.state.wallets.listings.length,this.firstFetch=!vt.uc.state.wallets.listings.length,this.search="",this.endReached=!1,this.intersectionObserver=void 0,this.searchDebounce=Mr.debounce((t=>{t.length>=1?(this.firstFetch=!0,this.endReached=!1,this.search=t,vt.uc.resetSearch(),this.fetchWallets()):this.search&&(this.search="",this.endReached=this.isLastPage(),vt.uc.resetSearch())}))}firstUpdated(){this.createPaginationObserver()}disconnectedCallback(){var t;null==(t=this.intersectionObserver)||t.disconnect()}get placeholderEl(){return Mr.getShadowRootElement(this,".wcm-placeholder-block")}createPaginationObserver(){this.intersectionObserver=new IntersectionObserver((([t])=>{t.isIntersecting&&(!this.search||!this.firstFetch)&&this.fetchWallets()})),this.intersectionObserver.observe(this.placeholderEl)}isLastPage(){const{wallets:t,search:e}=vt.uc.state,{listings:r,total:o}=this.search?e:t;return o<=40||r.length>=o}async fetchWallets(){var t;const{wallets:e,search:r}=vt.uc.state,{listings:o,total:n,page:i}=this.search?r:e;if(!this.endReached&&(this.firstFetch||n>40&&o.lengthMr.getWalletIcon(t)));await Promise.all([...o.map((async t=>Mr.preloadImage(t))),vt.zv.wait(300)]),this.endReached=this.isLastPage()}catch(l){Ve.error(l),vt.Vs.openToast(Mr.getErrorMessage(l),"error")}finally{this.loading=!1,this.firstFetch=!1}}onConnect(t){vt.zv.isAndroid()?Mr.handleMobileLinking(t):Mr.goToConnectingView(t)}onSearchChange(t){const{value:e}=t.target;this.searchDebounce(e)}render(){const{wallets:t,search:e}=vt.uc.state,{listings:r}=this.search?e:t,o=this.loading&&!r.length,n=this.search.length>=3;let i=No.manualWalletsTemplate(),a=No.recomendedWalletsTemplate(!0);n&&(i=i.filter((({values:t})=>Mr.caseSafeIncludes(t[0],this.search))),a=a.filter((({values:t})=>Mr.caseSafeIncludes(t[0],this.search))));const s=!this.loading&&!r.length&&!a.length,l={"wcm-loading":o,"wcm-end-reached":this.endReached||!this.loading,"wcm-empty":s};return U`
${o?null:i} ${o?null:a} ${o?null:r.map((t=>U`${t?U``:null}`))}
${s?U`No results found`:null} ${!s&&this.loading?U``:null}
`}};Hn.styles=[Qe.globalCss,jn],zn([mt()],Hn.prototype,"loading",2),zn([mt()],Hn.prototype,"firstFetch",2),zn([mt()],Hn.prototype,"search",2),zn([mt()],Hn.prototype,"endReached",2),Hn=zn([dt("wcm-wallet-explorer-view")],Hn);const Vn=l`wcm-info-footer{flex-direction:column;align-items:center;display:flex;width:100%;padding:5px 0}wcm-text{text-align:center}`;var Zn=Object.defineProperty,Fn=Object.getOwnPropertyDescriptor,qn=(t,e,r,o)=>{for(var n,i=o>1?void 0:o?Fn(e,r):e,a=t.length-1;a>=0;a--)(n=t[a])&&(i=(o?n(e,r,i):n(i))||i);return o&&i&&Zn(e,r,i),i};let Kn=class extends lt{constructor(){super(),this.isError=!1,this.openWebWallet()}onFormatAndRedirect(t){const{desktop:e,name:r}=vt.zv.getWalletRouterData(),o=e?.universal;if(o){const e=vt.zv.formatUniversalUrl(o,t,r);vt.zv.openHref(e,"_blank")}}openWebWallet(){const{walletConnectUri:t}=vt.zb.state,e=vt.zv.getWalletRouterData();Mr.setRecentWallet(e),t&&this.onFormatAndRedirect(t)}render(){const{name:t,id:e,image_id:r}=vt.zv.getWalletRouterData(),{isMobile:o,isDesktop:n}=Mr.getCachedRouterWalletPlatforms(),i=vt.zv.isMobile();return U`${`${t} web app has opened in a new tab. Go there, accept the connection, and come back`}Retry`}};Kn.styles=[Qe.globalCss,Vn],qn([mt()],Kn.prototype,"isError",2),Kn=qn([dt("wcm-web-connecting-view")],Kn)}}]); \ No newline at end of file diff --git a/3355.9f31c0cefaaeedab.esm.js.LICENSE.txt b/3355.9f31c0cefaaeedab.esm.js.LICENSE.txt new file mode 100644 index 000000000..0816087ab --- /dev/null +++ b/3355.9f31c0cefaaeedab.esm.js.LICENSE.txt @@ -0,0 +1,29 @@ +/** + * @license + * Copyright 2017 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ + +/** + * @license + * Copyright 2018 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ + +/** + * @license + * Copyright 2019 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ + +/** + * @license + * Copyright 2021 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ + +/** + * @license + * Copyright 2022 Google LLC + * SPDX-License-Identifier: BSD-3-Clause + */ diff --git a/3626.1790f8d71320dbc5.esm.js b/3626.1790f8d71320dbc5.esm.js new file mode 100644 index 000000000..0fadbcd78 --- /dev/null +++ b/3626.1790f8d71320dbc5.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3626],{3626:(n,a,t)=>{t.r(a),t.d(a,{default:()=>r});const r='\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'}}]); \ No newline at end of file diff --git a/3rdpartylicenses.txt b/3rdpartylicenses.txt new file mode 100644 index 000000000..a05323037 --- /dev/null +++ b/3rdpartylicenses.txt @@ -0,0 +1,12302 @@ +@coinbase/wallet-sdk +Apache-2.0 +Copyright (c) 2018-2020 Coinbase, Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + + +@emotion/is-prop-valid +MIT +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@emotion/memoize +MIT +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@emotion/unitless +MIT +MIT License + +Copyright (c) Emotion team and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethereumjs/rlp +MPL-2.0 +Mozilla Public License Version 2.0 +================================== + +1. Definitions +-------------- + +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + +1.6. "Executable Form" + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + +1.8. "License" + means this document. + +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + +1.10. "Modifications" + means any of the following: + + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + + (b) any new file in Source Code Form that contains any Covered + Software. + +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + +1.13. "Source Code Form" + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + +2. License Grants and Conditions +-------------------------------- + +2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: + +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ + +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. + + +@ethereumjs/util +MPL-2.0 +Mozilla Public License Version 2.0 +================================== + +1. Definitions +-------------- + +1.1. "Contributor" + means each individual or legal entity that creates, contributes to + the creation of, or owns Covered Software. + +1.2. "Contributor Version" + means the combination of the Contributions of others (if any) used + by a Contributor and that particular Contributor's Contribution. + +1.3. "Contribution" + means Covered Software of a particular Contributor. + +1.4. "Covered Software" + means Source Code Form to which the initial Contributor has attached + the notice in Exhibit A, the Executable Form of such Source Code + Form, and Modifications of such Source Code Form, in each case + including portions thereof. + +1.5. "Incompatible With Secondary Licenses" + means + + (a) that the initial Contributor has attached the notice described + in Exhibit B to the Covered Software; or + + (b) that the Covered Software was made available under the terms of + version 1.1 or earlier of the License, but not also under the + terms of a Secondary License. + +1.6. "Executable Form" + means any form of the work other than Source Code Form. + +1.7. "Larger Work" + means a work that combines Covered Software with other material, in + a separate file or files, that is not Covered Software. + +1.8. "License" + means this document. + +1.9. "Licensable" + means having the right to grant, to the maximum extent possible, + whether at the time of the initial grant or subsequently, any and + all of the rights conveyed by this License. + +1.10. "Modifications" + means any of the following: + + (a) any file in Source Code Form that results from an addition to, + deletion from, or modification of the contents of Covered + Software; or + + (b) any new file in Source Code Form that contains any Covered + Software. + +1.11. "Patent Claims" of a Contributor + means any patent claim(s), including without limitation, method, + process, and apparatus claims, in any patent Licensable by such + Contributor that would be infringed, but for the grant of the + License, by the making, using, selling, offering for sale, having + made, import, or transfer of either its Contributions or its + Contributor Version. + +1.12. "Secondary License" + means either the GNU General Public License, Version 2.0, the GNU + Lesser General Public License, Version 2.1, the GNU Affero General + Public License, Version 3.0, or any later versions of those + licenses. + +1.13. "Source Code Form" + means the form of the work preferred for making modifications. + +1.14. "You" (or "Your") + means an individual or a legal entity exercising rights under this + License. For legal entities, "You" includes any entity that + controls, is controlled by, or is under common control with You. For + purposes of this definition, "control" means (a) the power, direct + or indirect, to cause the direction or management of such entity, + whether by contract or otherwise, or (b) ownership of more than + fifty percent (50%) of the outstanding shares or beneficial + ownership of such entity. + +2. License Grants and Conditions +-------------------------------- + +2.1. Grants + +Each Contributor hereby grants You a world-wide, royalty-free, +non-exclusive license: + +(a) under intellectual property rights (other than patent or trademark) + Licensable by such Contributor to use, reproduce, make available, + modify, display, perform, distribute, and otherwise exploit its + Contributions, either on an unmodified basis, with Modifications, or + as part of a Larger Work; and + +(b) under Patent Claims of such Contributor to make, use, sell, offer + for sale, have made, import, and otherwise transfer either its + Contributions or its Contributor Version. + +2.2. Effective Date + +The licenses granted in Section 2.1 with respect to any Contribution +become effective for each Contribution on the date the Contributor first +distributes such Contribution. + +2.3. Limitations on Grant Scope + +The licenses granted in this Section 2 are the only rights granted under +this License. No additional rights or licenses will be implied from the +distribution or licensing of Covered Software under this License. +Notwithstanding Section 2.1(b) above, no patent license is granted by a +Contributor: + +(a) for any code that a Contributor has removed from Covered Software; + or + +(b) for infringements caused by: (i) Your and any other third party's + modifications of Covered Software, or (ii) the combination of its + Contributions with other software (except as part of its Contributor + Version); or + +(c) under Patent Claims infringed by Covered Software in the absence of + its Contributions. + +This License does not grant any rights in the trademarks, service marks, +or logos of any Contributor (except as may be necessary to comply with +the notice requirements in Section 3.4). + +2.4. Subsequent Licenses + +No Contributor makes additional grants as a result of Your choice to +distribute the Covered Software under a subsequent version of this +License (see Section 10.2) or under the terms of a Secondary License (if +permitted under the terms of Section 3.3). + +2.5. Representation + +Each Contributor represents that the Contributor believes its +Contributions are its original creation(s) or it has sufficient rights +to grant the rights to its Contributions conveyed by this License. + +2.6. Fair Use + +This License is not intended to limit any rights You have under +applicable copyright doctrines of fair use, fair dealing, or other +equivalents. + +2.7. Conditions + +Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted +in Section 2.1. + +3. Responsibilities +------------------- + +3.1. Distribution of Source Form + +All distribution of Covered Software in Source Code Form, including any +Modifications that You create or to which You contribute, must be under +the terms of this License. You must inform recipients that the Source +Code Form of the Covered Software is governed by the terms of this +License, and how they can obtain a copy of this License. You may not +attempt to alter or restrict the recipients' rights in the Source Code +Form. + +3.2. Distribution of Executable Form + +If You distribute Covered Software in Executable Form then: + +(a) such Covered Software must also be made available in Source Code + Form, as described in Section 3.1, and You must inform recipients of + the Executable Form how they can obtain a copy of such Source Code + Form by reasonable means in a timely manner, at a charge no more + than the cost of distribution to the recipient; and + +(b) You may distribute such Executable Form under the terms of this + License, or sublicense it under different terms, provided that the + license for the Executable Form does not attempt to limit or alter + the recipients' rights in the Source Code Form under this License. + +3.3. Distribution of a Larger Work + +You may create and distribute a Larger Work under terms of Your choice, +provided that You also comply with the requirements of this License for +the Covered Software. If the Larger Work is a combination of Covered +Software with a work governed by one or more Secondary Licenses, and the +Covered Software is not Incompatible With Secondary Licenses, this +License permits You to additionally distribute such Covered Software +under the terms of such Secondary License(s), so that the recipient of +the Larger Work may, at their option, further distribute the Covered +Software under the terms of either this License or such Secondary +License(s). + +3.4. Notices + +You may not remove or alter the substance of any license notices +(including copyright notices, patent notices, disclaimers of warranty, +or limitations of liability) contained within the Source Code Form of +the Covered Software, except that You may alter any license notices to +the extent required to remedy known factual inaccuracies. + +3.5. Application of Additional Terms + +You may choose to offer, and to charge a fee for, warranty, support, +indemnity or liability obligations to one or more recipients of Covered +Software. However, You may do so only on Your own behalf, and not on +behalf of any Contributor. You must make it absolutely clear that any +such warranty, support, indemnity, or liability obligation is offered by +You alone, and You hereby agree to indemnify every Contributor for any +liability incurred by such Contributor as a result of warranty, support, +indemnity or liability terms You offer. You may include additional +disclaimers of warranty and limitations of liability specific to any +jurisdiction. + +4. Inability to Comply Due to Statute or Regulation +--------------------------------------------------- + +If it is impossible for You to comply with any of the terms of this +License with respect to some or all of the Covered Software due to +statute, judicial order, or regulation then You must: (a) comply with +the terms of this License to the maximum extent possible; and (b) +describe the limitations and the code they affect. Such description must +be placed in a text file included with all distributions of the Covered +Software under this License. Except to the extent prohibited by statute +or regulation, such description must be sufficiently detailed for a +recipient of ordinary skill to be able to understand it. + +5. Termination +-------------- + +5.1. The rights granted under this License will terminate automatically +if You fail to comply with any of its terms. However, if You become +compliant, then the rights granted under this License from a particular +Contributor are reinstated (a) provisionally, unless and until such +Contributor explicitly and finally terminates Your grants, and (b) on an +ongoing basis, if such Contributor fails to notify You of the +non-compliance by some reasonable means prior to 60 days after You have +come back into compliance. Moreover, Your grants from a particular +Contributor are reinstated on an ongoing basis if such Contributor +notifies You of the non-compliance by some reasonable means, this is the +first time You have received notice of non-compliance with this License +from such Contributor, and You become compliant prior to 30 days after +Your receipt of the notice. + +5.2. If You initiate litigation against any entity by asserting a patent +infringement claim (excluding declaratory judgment actions, +counter-claims, and cross-claims) alleging that a Contributor Version +directly or indirectly infringes any patent, then the rights granted to +You by any and all Contributors for the Covered Software under Section +2.1 of this License shall terminate. + +5.3. In the event of termination under Sections 5.1 or 5.2 above, all +end user license agreements (excluding distributors and resellers) which +have been validly granted by You or Your distributors under this License +prior to termination shall survive termination. + +************************************************************************ +* * +* 6. Disclaimer of Warranty * +* ------------------------- * +* * +* Covered Software is provided under this License on an "as is" * +* basis, without warranty of any kind, either expressed, implied, or * +* statutory, including, without limitation, warranties that the * +* Covered Software is free of defects, merchantable, fit for a * +* particular purpose or non-infringing. The entire risk as to the * +* quality and performance of the Covered Software is with You. * +* Should any Covered Software prove defective in any respect, You * +* (not any Contributor) assume the cost of any necessary servicing, * +* repair, or correction. This disclaimer of warranty constitutes an * +* essential part of this License. No use of any Covered Software is * +* authorized under this License except under this disclaimer. * +* * +************************************************************************ + +************************************************************************ +* * +* 7. Limitation of Liability * +* -------------------------- * +* * +* Under no circumstances and under no legal theory, whether tort * +* (including negligence), contract, or otherwise, shall any * +* Contributor, or anyone who distributes Covered Software as * +* permitted above, be liable to You for any direct, indirect, * +* special, incidental, or consequential damages of any character * +* including, without limitation, damages for lost profits, loss of * +* goodwill, work stoppage, computer failure or malfunction, or any * +* and all other commercial damages or losses, even if such party * +* shall have been informed of the possibility of such damages. This * +* limitation of liability shall not apply to liability for death or * +* personal injury resulting from such party's negligence to the * +* extent applicable law prohibits such limitation. Some * +* jurisdictions do not allow the exclusion or limitation of * +* incidental or consequential damages, so this exclusion and * +* limitation may not apply to You. * +* * +************************************************************************ + +8. Litigation +------------- + +Any litigation relating to this License may be brought only in the +courts of a jurisdiction where the defendant maintains its principal +place of business and such litigation shall be governed by laws of that +jurisdiction, without reference to its conflict-of-law provisions. +Nothing in this Section shall prevent a party's ability to bring +cross-claims or counter-claims. + +9. Miscellaneous +---------------- + +This License represents the complete agreement concerning the subject +matter hereof. If any provision of this License is held to be +unenforceable, such provision shall be reformed only to the extent +necessary to make it enforceable. Any law or regulation which provides +that the language of a contract shall be construed against the drafter +shall not be used to construe this License against a Contributor. + +10. Versions of the License +--------------------------- + +10.1. New Versions + +Mozilla Foundation is the license steward. Except as provided in Section +10.3, no one other than the license steward has the right to modify or +publish new versions of this License. Each version will be given a +distinguishing version number. + +10.2. Effect of New Versions + +You may distribute the Covered Software under the terms of the version +of the License under which You originally received the Covered Software, +or under the terms of any subsequent version published by the license +steward. + +10.3. Modified Versions + +If you create software not governed by this License, and you want to +create a new license for such software, you may create and use a +modified version of this License if you rename the license and remove +any references to the name of the license steward (except to note that +such modified license differs from this License). + +10.4. Distributing Source Code Form that is Incompatible With Secondary +Licenses + +If You choose to distribute Source Code Form that is Incompatible With +Secondary Licenses under the terms of this version of the License, the +notice described in Exhibit B of this License must be attached. + +Exhibit A - Source Code Form License Notice +------------------------------------------- + + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. + +If it is not possible or desirable to put the notice in a particular +file, then You may include the notice in a location (such as a LICENSE +file in a relevant directory) where a recipient would be likely to look +for such a notice. + +You may add additional accurate notices of copyright ownership. + +Exhibit B - "Incompatible With Secondary Licenses" Notice +--------------------------------------------------------- + + This Source Code Form is "Incompatible With Secondary Licenses", as + defined by the Mozilla Public License, v. 2.0. + + +@ethersproject/abi +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/abstract-provider +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/abstract-signer +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/address +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/base64 +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/basex +MIT +Forked from https://github.com/cryptocoinjs/bs58 +Originally written by Mike Hearn for BitcoinJ +Copyright (c) 2011 Google Inc + +Ported to JavaScript by Stefan Thomas +Merged Buffer refactorings from base58-native by Stephen Pair +Copyright (c) 2013 BitPay Inc + +Removed Buffer Dependency +Copyright (c) 2019 Richard Moore + + +MIT License + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/bignumber +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/bytes +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/constants +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/contracts +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/hash +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/hdnode +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/json-wallets +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/keccak256 +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/logger +MIT + +@ethersproject/networks +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/pbkdf2 +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/properties +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/providers +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/random +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/rlp +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/sha2 +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/signing-key +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/solidity +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/strings +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/transactions +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/units +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/wallet +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/web +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@ethersproject/wordlists +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@floating-ui/react-dom +MIT +MIT License + +Copyright (c) 2021 Floating UI contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@formatjs/fast-memoize +MIT +MIT License + +Copyright (c) 2021 FormatJS + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +@formatjs/icu-messageformat-parser +MIT +MIT License + +Copyright (c) 2021 FormatJS + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +@formatjs/icu-skeleton-parser +MIT +MIT License + +Copyright (c) 2021 FormatJS + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +@livepeer/core +MIT +MIT License + +Copyright (c) 2022 Livepeer Inc + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@livepeer/core-react +MIT +MIT License + +Copyright (c) 2022 Livepeer Inc + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@livepeer/react +MIT +MIT License + +Copyright (c) 2022 Livepeer Inc + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@metamask/eth-sig-util +ISC +ISC License + +Copyright (c) 2020 MetaMask + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +@metamask/safe-event-emitter +ISC +ISC License + +Copyright (c) 2020 MetaMask + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +@metamask/utils +ISC +ISC License + +Copyright (c) 2022 MetaMask + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +@motionone/animation +MIT +MIT License + +Copyright (c) 2021 Matt Perry + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@motionone/dom +MIT +MIT License + +Copyright (c) 2021 Matt Perry + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@motionone/easing +MIT +MIT License + +Copyright (c) 2021 Matt Perry + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@motionone/generators +MIT +MIT License + +Copyright (c) 2021 Matt Perry + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@motionone/types +MIT +MIT License + +Copyright (c) 2021 Matt Perry + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@motionone/utils +MIT +MIT License + +Copyright (c) 2021 Matt Perry + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@noble/curves +MIT +The MIT License (MIT) + +Copyright (c) 2022 Paul Miller (https://paulmillr.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the “Software”), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +@noble/hashes +MIT +The MIT License (MIT) + +Copyright (c) 2022 Paul Miller (https://paulmillr.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the “Software”), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +@nrwl/web +MIT +(The MIT License) + +Copyright (c) 2017-2022 Narwhal Technologies Inc. + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +@pushprotocol/restapi + +@pushprotocol/socket + +@pushprotocol/uiembed + +@pushprotocol/uiweb + +@react-hook/latest +MIT +MIT License + +Copyright (c) 2019 Jared Lunde + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@stablelib/binary +MIT +This software is licensed under the MIT license: + +Copyright (C) 2016 Dmitry Chestnykh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@stablelib/chacha +MIT +This software is licensed under the MIT license: + +Copyright (C) 2016 Dmitry Chestnykh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@stablelib/chacha20poly1305 +MIT +This software is licensed under the MIT license: + +Copyright (C) 2016 Dmitry Chestnykh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@stablelib/constant-time +MIT +This software is licensed under the MIT license: + +Copyright (C) 2016 Dmitry Chestnykh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +--- + +This software includes code derived from other projects: + +Copyright (c) 2012 The Go Authors. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * Neither the name of Google Inc. nor the names of its +contributors may be used to endorse or promote products derived from +this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +@stablelib/ed25519 +MIT +This software is licensed under the MIT license: + +Copyright (C) 2016 Dmitry Chestnykh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +--- + +This software includes code derived from other projects: + + +TweetNaCl.js +https://tweetnacl.js.org + +Public domain code written by Dmitry Chestnykh, Devi Mandiri, AndSDev, +derived from public domain code in TweetNaCl by Bernard van Gastel, +Daniel J. Bernstein, Peter Schwabe, Sjaak Smetsers, Tanja Lange, +Wesley Janssen. + +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +@stablelib/hash +MIT +This software is licensed under the MIT license: + +Copyright (C) 2016 Dmitry Chestnykh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@stablelib/hkdf +MIT +This software is licensed under the MIT license: + +Copyright (C) 2016 Dmitry Chestnykh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@stablelib/hmac +MIT +This software is licensed under the MIT license: + +Copyright (C) 2016 Dmitry Chestnykh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@stablelib/int +MIT +This software is licensed under the MIT license: + +Copyright (C) 2016 Dmitry Chestnykh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@stablelib/poly1305 +MIT +This software is licensed under the MIT license: + +Copyright (C) 2016 Dmitry Chestnykh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +--- + +This software includes code derived from other projects: + +TweetNaCl.js +https://tweetnacl.js.org + +Public domain code written by Dmitry Chestnykh, Devi Mandiri, AndSDev, +derived from public domain code in TweetNaCl by Bernard van Gastel, +Daniel J. Bernstein, Peter Schwabe, Sjaak Smetsers, Tanja Lange, +Wesley Janssen. + +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +Poly1305-donna +https://github.com/floodyberry/poly1305-donna + +by Andrew Moon +MIT or PUBLIC DOMAIN + + +@stablelib/random +MIT +This software is licensed under the MIT license: + +Copyright (C) 2016 Dmitry Chestnykh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@stablelib/sha256 +MIT +This software is licensed under the MIT license: + +Copyright (C) 2016 Dmitry Chestnykh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@stablelib/sha512 +MIT +This software is licensed under the MIT license: + +Copyright (C) 2016 Dmitry Chestnykh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +--- + +This software includes code derived from other projects: + +TweetNaCl.js +https://tweetnacl.js.org + +Public domain code written by Dmitry Chestnykh, Devi Mandiri, AndSDev, +derived from public domain code in TweetNaCl by Bernard van Gastel, +Daniel J. Bernstein, Peter Schwabe, Sjaak Smetsers, Tanja Lange, +Wesley Janssen. + +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +@stablelib/wipe +MIT +This software is licensed under the MIT license: + +Copyright (C) 2016 Dmitry Chestnykh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@stablelib/x25519 +MIT +This software is licensed under the MIT license: + +Copyright (C) 2016 Dmitry Chestnykh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies +of the Software, and to permit persons to whom the Software is furnished to do +so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +--- + +This software includes code derived from other projects: + + +TweetNaCl.js +https://tweetnacl.js.org + +Public domain code written by Dmitry Chestnykh, Devi Mandiri, AndSDev, +derived from public domain code in TweetNaCl by Bernard van Gastel, +Daniel J. Bernstein, Peter Schwabe, Sjaak Smetsers, Tanja Lange, +Wesley Janssen. + +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +@unstoppabledomains/resolution +MIT +MIT License + +Copyright (c) 2022 Unstoppable Domains + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@walletconnect/browser-utils +Apache-2.0 + +@walletconnect/client +Apache-2.0 + +@walletconnect/core +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + Copyright 2021 WalletConnect, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@walletconnect/crypto +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@walletconnect/encoding +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@walletconnect/environment +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@walletconnect/ethereum-provider +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + Copyright 2021 WalletConnect, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@walletconnect/events +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@walletconnect/heartbeat +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@walletconnect/iso-crypto +Apache-2.0 + +@walletconnect/jsonrpc-http-connection +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@walletconnect/jsonrpc-provider +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@walletconnect/jsonrpc-types +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@walletconnect/jsonrpc-utils +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@walletconnect/jsonrpc-ws-connection +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@walletconnect/keyvaluestorage +MIT +MIT License + +Copyright (c) 2022 WalletConnect + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@walletconnect/logger +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@walletconnect/modal +Apache-2.0 + +@walletconnect/modal-core +Apache-2.0 + +@walletconnect/modal-ui +Apache-2.0 + +@walletconnect/qrcode-modal +Apache-2.0 + +@walletconnect/randombytes +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@walletconnect/relay-api +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@walletconnect/relay-auth +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@walletconnect/safe-json +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@walletconnect/sign-client +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + Copyright 2021 WalletConnect, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@walletconnect/socket-transport +Apache-2.0 + +@walletconnect/time +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@walletconnect/types +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + Copyright 2021 WalletConnect, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@walletconnect/universal-provider +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + Copyright 2021 WalletConnect, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@walletconnect/utils +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + Copyright 2021 WalletConnect, Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +@walletconnect/window-getters +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +@walletconnect/window-metadata +MIT +MIT License + +Copyright (c) 2022 WalletConnect, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +@web3-onboard/coinbase +MIT + +@web3-onboard/common +MIT + +@web3-onboard/core +MIT + +@web3-onboard/injected-wallets +MIT + +@web3-onboard/walletconnect +MIT + +@web3-react/abstract-connector +GPL-3.0-or-later + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + +@web3-react/core +GPL-3.0-or-later + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + +@web3-react/injected-connector +GPL-3.0-or-later + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + +@web3-react/types +GPL-3.0-or-later + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. + +abitype +MIT +MIT License + +Copyright (c) 2022-present weth, LLC + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +aes-js +MIT +The MIT License (MIT) + +Copyright (c) 2015 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + +aria-hidden +MIT +MIT License + +Copyright (c) 2017 Anton Korzunov + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +asn1.js +MIT +MIT License + +Copyright (c) 2017 Fedor Indutny + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +assert +MIT +Copyright Joyent, Inc. and other Node contributors. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. + + +async-mutex +MIT +The MIT License (MIT) + +Copyright (c) 2016 Christian Speckner + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +available-typed-arrays +MIT +MIT License + +Copyright (c) 2020 Inspect JS + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +axios +MIT +Copyright (c) 2014-present Matt Zabriskie + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +base64-js +MIT +The MIT License (MIT) + +Copyright (c) 2014 Jameson Little + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +bech32 +MIT +MIT License + +Copyright (c) 2017 Pieter Wuille +Copyright (c) 2018 bitcoinjs contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +bignumber.js +MIT +The MIT License (MIT) +===================== + +Copyright © `<2023>` `Michael Mclaughlin` + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the “Software”), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + + +bind-decorator +MIT +MIT License + +Copyright (c) 2016 Ivo Stratev + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +bn.js +MIT +Copyright Fedor Indutny, 2015. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +bnc-sdk +MIT +MIT License + +Copyright (c) 2019 Blocknative Corp + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +bowser +MIT +Copyright 2015, Dustin Diaz (the "Original Author") +All rights reserved. + +MIT License + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +Distributions of all or part of the Software intended to be used +by the recipients as they would use the unmodified Software, +containing modifications that substantially alter, remove, or +disable functionality of the Software, outside of the documented +configuration mechanisms provided by the Software, shall be +modified such that the Original Author's bug reporting email +addresses and urls are either replaced with the contact information +of the parties responsible for the changes, or removed entirely. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +Except where noted, this license applies to any and all software +programs and associated documentation files created by the +Original Author, when distributed with the Software. + + +brorand +MIT + +browserify-aes +MIT +The MIT License (MIT) + +Copyright (c) 2014-2017 browserify-aes contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +browserify-cipher +MIT +The MIT License (MIT) + +Copyright (c) 2014-2017 Calvin Metcalf & contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +browserify-des +MIT +The MIT License (MIT) + +Copyright (c) 2014-2017 Calvin Metcalf, Fedor Indutny & contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +browserify-rsa +MIT +The MIT License (MIT) + +Copyright (c) 2014-2016 Calvin Metcalf & contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +browserify-sign +ISC +Copyright (c) 2014-2015 Calvin Metcalf and browserify-sign contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +browserify-zlib +MIT +The MIT License (MIT) + +Copyright (c) 2014-2015 Devon Govett + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +This project contains parts of Node.js. +Node.js is licensed for use as follows: + +""" +Copyright Node.js contributors. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + +This license applies to parts of Node.js originating from the +https://github.com/joyent/node repository: + +""" +Copyright Joyent, Inc. and other Node contributors. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + + +buffer +MIT +The MIT License (MIT) + +Copyright (c) Feross Aboukhadijeh, and other contributors. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +buffer-xor +MIT +The MIT License (MIT) + +Copyright (c) 2015 Daniel Cousens + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +builtin-status-codes +MIT +The MIT License (MIT) + +Copyright (c) Ben Drucker (bendrucker.me) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +call-bind +MIT +MIT License + +Copyright (c) 2020 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +cipher-base +MIT +The MIT License (MIT) + +Copyright (c) 2017 crypto-browserify contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +clsx +MIT +MIT License + +Copyright (c) Luke Edwards (lukeed.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +console-browserify +MIT +Copyright (c) 2012 Raynos. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +copy-to-clipboard +MIT +MIT License + +Copyright (c) 2017 sudodoki + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +core-js +MIT +Copyright (c) 2014-2022 Denis Pushkarev + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +create-ecdh +MIT +The MIT License (MIT) + +Copyright (c) 2014-2017 createECDH contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +create-hash +MIT +The MIT License (MIT) + +Copyright (c) 2017 crypto-browserify contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +create-hmac +MIT +The MIT License (MIT) + +Copyright (c) 2017 crypto-browserify contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +cross-fetch +MIT +The MIT License (MIT) + +Copyright (c) 2017 Leonardo Quixadá + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +crypto-browserify +MIT +The MIT License + +Copyright (c) 2013 Dominic Tarr + +Permission is hereby granted, free of charge, +to any person obtaining a copy of this software and +associated documentation files (the "Software"), to +deal in the Software without restriction, including +without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom +the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +crypto-js +MIT +# License + +[The MIT License (MIT)](http://opensource.org/licenses/MIT) + +Copyright (c) 2009-2013 Jeff Mott +Copyright (c) 2013-2016 Evan Vosberg + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +date-fns +MIT +MIT License + +Copyright (c) 2021 Sasha Koss and Lesha Koss https://kossnocorp.mit-license.org + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +debug +MIT +(The MIT License) + +Copyright (c) 2014-2017 TJ Holowaychuk +Copyright (c) 2018-2021 Josh Junon + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software +and associated documentation files (the 'Software'), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial +portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT +LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +decode-uri-component +MIT +The MIT License (MIT) + +Copyright (c) 2017, Sam Verschueren (github.com/SamVerschueren) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +deepmerge +MIT +The MIT License (MIT) + +Copyright (c) 2012 James Halliday, Josh Duff, and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +define-data-property +MIT +MIT License + +Copyright (c) 2023 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +define-properties +MIT +The MIT License (MIT) + +Copyright (C) 2015 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +des.js +MIT + +detect-browser +MIT +The MIT License (MIT) + +Copyright (c) 2019 Damon Oehlman + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +detect-node-es +MIT +MIT License + +Copyright (c) 2017 Ilya Kantor + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +diffie-hellman +MIT +Copyright (c) 2017 Calvin Metcalf + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +dijkstrajs +MIT +``` +Dijkstra path-finding functions. Adapted from the Dijkstar Python project. + +Copyright (C) 2008 + Wyatt Baldwin + All rights reserved + +Licensed under the MIT license. + + http://www.opensource.org/licenses/mit-license.php + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. +``` + + +domelementtype +BSD-2-Clause +Copyright (c) Felix Böhm +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +domhandler +BSD-2-Clause +Copyright (c) Felix Böhm +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +THIS IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS, +EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +elliptic +MIT + +emoji-picker-react +MIT +MIT License + +Copyright (c) 2022 ealush + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +encode-utf8 +MIT + +err-code +MIT + +eth-block-tracker +MIT +MIT License + +Copyright (c) 2018 MetaMask + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + + +eth-json-rpc-filters +ISC +ISC License + +Copyright (c) 2020 MetaMask + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +eth-query +ISC + +eth-rpc-errors +MIT +MIT License + +Copyright (c) 2019 MetaMask + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +ethereum-cryptography +MIT +The MIT License (MIT) + +Copyright (c) 2021 Patricio Palladino, Paul Miller, ethereum-cryptography contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the “Software”), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +ethers +MIT +MIT License + +Copyright (c) 2019 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +ethjs-util +MIT +The MIT License + +Copyright (c) 2016 Nick Dodson. nickdodson.com + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +eventemitter3 +MIT +The MIT License (MIT) + +Copyright (c) 2014 Arnout Kazemier + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +events +MIT +MIT + +Copyright Joyent, Inc. and other Node contributors. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to permit +persons to whom the Software is furnished to do so, subject to the +following conditions: + +The above copyright notice and this permission notice shall be included +in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +USE OR OTHER DEALINGS IN THE SOFTWARE. + + +evp_bytestokey +MIT +The MIT License (MIT) + +Copyright (c) 2017 crypto-browserify contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +fast-safe-stringify +MIT +The MIT License (MIT) + +Copyright (c) 2016 David Mark Clements +Copyright (c) 2017 David Mark Clements & Matteo Collina +Copyright (c) 2018 David Mark Clements, Matteo Collina & Ruben Bridgewater + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +filter-obj +MIT +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +for-each +MIT +The MIT License (MIT) + +Copyright (c) 2012 Raynos. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +function-bind +MIT +Copyright (c) 2013 Raynos. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + +get-browser-rtc +MIT + +get-intrinsic +MIT +MIT License + +Copyright (c) 2020 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +get-nonce +MIT +MIT License + +Copyright (c) 2020 Anton Korzunov + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +global-tld-list +MIT +MIT License + +Copyright (c) 2020 Munjal Dhamecha + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +gopd +MIT +MIT License + +Copyright (c) 2022 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +has +MIT +Copyright (c) 2013 Thiago de Arruda + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +has-property-descriptors +MIT +MIT License + +Copyright (c) 2022 Inspect JS + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +has-proto +MIT +MIT License + +Copyright (c) 2022 Inspect JS + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +has-symbols +MIT +MIT License + +Copyright (c) 2016 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +has-tostringtag +MIT +MIT License + +Copyright (c) 2021 Inspect JS + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +hash-base +MIT +The MIT License (MIT) + +Copyright (c) 2016 Kirill Fomichev + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +hash.js +MIT + +hasown +MIT +MIT License + +Copyright (c) Jordan Harband and contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +hey-listen +MIT +MIT License + +Copyright (c) 2018 Popmotion + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +history +MIT +MIT License + +Copyright (c) React Training 2016-2020 +Copyright (c) Remix Software 2020-2021 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +hmac-drbg +MIT + +hooks +MIT + +html-dom-parser +MIT +MIT License + +Copyright (c) 2016 Menglin "Mark" Xu + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +html-react-parser +MIT +The MIT License + +Copyright (c) 2016 Menglin "Mark" Xu + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +https-browserify +MIT +This software is released under the MIT license: + +Copyright (c) James Halliday + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +ieee754 +BSD-3-Clause +Copyright 2008 Fair Oaks Labs, Inc. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +inherits +ISC +The ISC License + +Copyright (c) Isaac Z. Schlueter + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + + + +inline-style-parser +MIT + +intl-messageformat +BSD-3-Clause +Copyright (c) 2021, Oath Inc. + +Licensed under the terms of the New BSD license. See below for terms. + +Redistribution and use of this software in source and binary forms, +with or without modification, are permitted provided that the following +conditions are met: + +- Redistributions of source code must retain the above + copyright notice, this list of conditions and the + following disclaimer. + +- Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the + following disclaimer in the documentation and/or other + materials provided with the distribution. + +- Neither the name of Oath Inc. nor the names of its + contributors may be used to endorse or promote products + derived from this software without specific prior + written permission of Oath Inc. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS +IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +is-arguments +MIT +The MIT License (MIT) + +Copyright (c) 2014 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +is-callable +MIT +The MIT License (MIT) + +Copyright (c) 2015 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +is-generator-function +MIT +The MIT License (MIT) + +Copyright (c) 2014 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +is-hex-prefixed +MIT +The MIT License + +Copyright (c) 2016 Nick Dodson. nickdodson.com + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +is-nan +MIT +The MIT License (MIT) + +Copyright (c) 2014 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +is-typed-array +MIT +The MIT License (MIT) + +Copyright (c) 2015 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +is-typedarray +MIT +This software is released under the MIT license: + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +isarray +MIT +MIT License + +Copyright (c) 2013 Julian Gruber + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +joi +BSD-3-Clause +Copyright (c) 2012-2022, Project contributors. +Copyright (c) 2012-2022, Sideway. Inc. +Copyright (c) 2012-2014, Walmart. +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +* The names of any contributors may not be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +js-sha3 +MIT +Copyright 2015-2018 Chen, Yi-Cyuan + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +json-rpc-engine +ISC +ISC License + +Copyright (c) 2020 MetaMask + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +json-rpc-random-id +ISC + +keccak +MIT +The MIT License (MIT) + +Copyright (c) 2016-2019 https://github.com/cryptocoinjs/keccak contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +livepeer +MIT +MIT License + +Copyright (c) 2022 Livepeer Inc + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +lodash.defaults +MIT +Copyright jQuery Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. + + +lodash.isequal +MIT +Copyright JS Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. + + +lodash.merge +MIT +Copyright OpenJS Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. + + +lodash.partition +MIT +Copyright jQuery Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. + + +lodash.uniqby +MIT +Copyright jQuery Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. + + +loglevel +MIT +Copyright (c) 2013 Tim Perry + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +lru-cache +ISC +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +md5.js +MIT +The MIT License (MIT) + +Copyright (c) 2016 Kirill Fomichev + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +micro-ftch +MIT +The MIT License (MIT) + +Copyright (c) 2020 Paul Miller (https://paulmillr.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the “Software”), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +miller-rabin +MIT + +minimalistic-assert +ISC +Copyright 2015 Calvin Metcalf + +Permission to use, copy, modify, and/or distribute this software for any purpose +with or without fee is hereby granted, provided that the above copyright notice +and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE +OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +minimalistic-crypto-utils +MIT + +moment +MIT +Copyright (c) JS Foundation and other contributors + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +motion +MIT +MIT License + +Copyright (c) 2021 Matt Perry + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +ms +MIT +The MIT License (MIT) + +Copyright (c) 2016 Zeit, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +multiformats +(Apache-2.0 AND MIT) +Copyright 2020 Protocol Labs + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + + +nanoid +MIT +The MIT License (MIT) + +Copyright 2017 Andrey Sitnik + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +normalize-wheel +BSD-3-Clause +BSD License + +For FixedDataTable software + +Copyright (c) 2015, Facebook, Inc. All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + * Neither the name Facebook nor the names of its contributors may be used to + endorse or promote products derived from this software without specific + prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +object-assign +MIT +The MIT License (MIT) + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +object-inspect +MIT +MIT License + +Copyright (c) 2013 James Halliday + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +object-is +MIT +The MIT License (MIT) + +Copyright (c) 2014 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +object-keys +MIT +The MIT License (MIT) + +Copyright (C) 2013 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + +object.assign +MIT +The MIT License (MIT) + +Copyright (c) 2014 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +pako +(MIT AND Zlib) +(The MIT License) + +Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +parse-asn1 +ISC +Copyright (c) 2017, crypto-browserify contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +pbkdf2 +MIT +The MIT License (MIT) + +Copyright (c) 2014 Daniel Cousens + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +pify +MIT +MIT License + +Copyright (c) Sindre Sorhus (https://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +pino +MIT +The MIT License (MIT) + +Copyright (c) 2016-2019 Matteo Collina, David Mark Clements and the Pino contributors + +Pino contributors listed at https://github.com/pinojs/pino#the-team and in +the README file. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +preact +MIT +The MIT License (MIT) + +Copyright (c) 2015-present Jason Miller + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +preact-compat +MIT + +preact-hooks +MIT + +process +MIT +(The MIT License) + +Copyright (c) 2013 Roman Shtylman + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +prop-types +MIT +MIT License + +Copyright (c) 2013-present, Facebook, Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +proxy-compare +MIT +The MIT License (MIT) + +Copyright (c) 2020-2023 Daishi Kato + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +public-encrypt +MIT +Copyright (c) 2017 Calvin Metcalf + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +punycode +MIT +Copyright Mathias Bynens + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +qrcode +MIT +The MIT License (MIT) + +Copyright (c) 2012 Ryan Day + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +qs +BSD-3-Clause +BSD 3-Clause License + +Copyright (c) 2014, Nathan LaFreniere and other [contributors](https://github.com/ljharb/qs/graphs/contributors) +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +query-string +MIT +MIT License + +Copyright (c) Sindre Sorhus (http://sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +querystringify +MIT +The MIT License (MIT) + +Copyright (c) 2015 Unshift.io, Arnout Kazemier, the Contributors. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +queue-microtask +MIT +The MIT License (MIT) + +Copyright (c) Feross Aboukhadijeh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +quick-format-unescaped +MIT +The MIT License (MIT) + +Copyright (c) 2016-2019 David Mark Clements + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +randombytes +MIT +MIT License + +Copyright (c) 2017 crypto-browserify + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +randomfill +MIT +MIT License + +Copyright (c) 2017 crypto-browserify + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +react +MIT +MIT License + +Copyright (c) Facebook, Inc. and its affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +react-dom +MIT +MIT License + +Copyright (c) Facebook, Inc. and its affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +react-easy-crop +MIT +MIT License + +Copyright (c) 2022 Valentin Hervieu + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +react-icons +MIT +Copyright 2018 kamijin_fanta + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +--- +Icons are taken from the other projects +so please check each project licences accordingly. + +Circum Icons - https://circumicons.com/ +License: MPL-2.0 license https://github.com/Klarr-Agency/Circum-Icons/blob/main/LICENSE + +Font Awesome 5 - https://fontawesome.com/ +License: CC BY 4.0 License https://creativecommons.org/licenses/by/4.0/ + +Font Awesome 6 - https://fontawesome.com/ +License: CC BY 4.0 License https://creativecommons.org/licenses/by/4.0/ + +Ionicons 4 - https://ionicons.com/ +License: MIT https://github.com/ionic-team/ionicons/blob/master/LICENSE + +Ionicons 5 - https://ionicons.com/ +License: MIT https://github.com/ionic-team/ionicons/blob/master/LICENSE + +Material Design icons - http://google.github.io/material-design-icons/ +License: Apache License Version 2.0 https://github.com/google/material-design-icons/blob/master/LICENSE + +Typicons - http://s-ings.com/typicons/ +License: CC BY-SA 3.0 https://creativecommons.org/licenses/by-sa/3.0/ + +Github Octicons icons - https://octicons.github.com/ +License: MIT https://github.com/primer/octicons/blob/master/LICENSE + +Feather - https://feathericons.com/ +License: MIT https://github.com/feathericons/feather/blob/master/LICENSE + +Lucide - https://lucide.dev/ +License: ISC https://github.com/lucide-icons/lucide/blob/main/LICENSE + +Game Icons - https://game-icons.net/ +License: CC BY 3.0 https://creativecommons.org/licenses/by/3.0/ + +Weather Icons - https://erikflowers.github.io/weather-icons/ +License: SIL OFL 1.1 http://scripts.sil.org/OFL + +Devicons - https://vorillaz.github.io/devicons/ +License: MIT https://opensource.org/licenses/MIT + +Ant Design Icons - https://github.com/ant-design/ant-design-icons +License: MIT https://opensource.org/licenses/MIT + +Bootstrap Icons - https://github.com/twbs/icons +License: MIT https://opensource.org/licenses/MIT + +Remix Icon - https://github.com/Remix-Design/RemixIcon +License: Apache License Version 2.0 http://www.apache.org/licenses/ + +Flat Color Icons - https://github.com/icons8/flat-color-icons +License: MIT https://opensource.org/licenses/MIT + +Grommet-Icons - https://github.com/grommet/grommet-icons +License: Apache License Version 2.0 http://www.apache.org/licenses/ + +Heroicons - https://github.com/tailwindlabs/heroicons +License: MIT https://opensource.org/licenses/MIT + +Heroicons 2 - https://github.com/tailwindlabs/heroicons +License: MIT https://opensource.org/licenses/MIT + +Simple Icons - https://simpleicons.org/ +License: CC0 1.0 Universal https://creativecommons.org/publicdomain/zero/1.0/ + +Simple Line Icons - https://thesabbir.github.io/simple-line-icons/ +License: MIT https://opensource.org/licenses/MIT + +IcoMoon Free - https://github.com/Keyamoon/IcoMoon-Free +License: CC BY 4.0 License https://github.com/Keyamoon/IcoMoon-Free/blob/master/License.txt + +BoxIcons - https://github.com/atisawd/boxicons +License: CC BY 4.0 License https://github.com/atisawd/boxicons/blob/master/LICENSE + +css.gg - https://github.com/astrit/css.gg +License: MIT https://opensource.org/licenses/MIT + +VS Code Icons - https://github.com/microsoft/vscode-codicons +License: CC BY 4.0 https://creativecommons.org/licenses/by/4.0/ + +Tabler Icons - https://github.com/tabler/tabler-icons +License: MIT https://opensource.org/licenses/MIT + +Themify Icons - https://github.com/lykmapipo/themify-icons +License: MIT https://github.com/thecreation/standard-icons/blob/master/modules/themify-icons/LICENSE + +Radix Icons - https://icons.radix-ui.com +License: MIT https://github.com/radix-ui/icons/blob/master/LICENSE + +Phosphor Icons - https://github.com/phosphor-icons/core +License: MIT https://github.com/phosphor-icons/core/blob/main/LICENSE + +Icons8 Line Awesome - https://icons8.com/line-awesome +License: MIT https://github.com/icons8/line-awesome/blob/master/LICENSE.md + + +react-image-file-resizer +MIT +MIT License + +Copyright (c) 2018-2021 Onur Zorluer + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +react-property +MIT + +react-remove-scroll +MIT +MIT License + +Copyright (c) 2017 Anton Korzunov + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +react-remove-scroll-bar +MIT + +react-router +MIT +MIT License + +Copyright (c) React Training 2015-2019 +Copyright (c) Remix Software 2020-2021 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +react-router-dom +MIT +MIT License + +Copyright (c) React Training 2015-2019 +Copyright (c) Remix Software 2020-2021 + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +react-style-singleton +MIT + +react-toastify +MIT +MIT License + +Copyright (c) 2023 Fadi Khadra + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +react-twitter-embed +MIT + +readable-stream +MIT +Node.js is licensed for use as follows: + +""" +Copyright Node.js contributors. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + +This license applies to parts of Node.js originating from the +https://github.com/joyent/node repository: + +""" +Copyright Joyent, Inc. and other Node contributors. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + + +requires-port +MIT +The MIT License (MIT) + +Copyright (c) 2015 Unshift.io, Arnout Kazemier, the Contributors. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +ripemd160 +MIT +The MIT License (MIT) + +Copyright (c) 2016 crypto-browserify + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +rxjs +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +safe-buffer +MIT +The MIT License (MIT) + +Copyright (c) Feross Aboukhadijeh + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +safe-json-utils +MIT +MIT License + +Copyright (c) 2020 Pedro Gomes + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +safer-buffer +MIT +MIT License + +Copyright (c) 2018 Nikita Skovoroda + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +scheduler +MIT +MIT License + +Copyright (c) Facebook, Inc. and its affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +scriptjs +MIT +(The MIT License) + +Copyright (c) 2011 - 2015 Dustin Diaz + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +scrypt-js +MIT +The MIT License (MIT) + +Copyright (c) 2016 Richard Moore + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + + +sdk +MIT +Business Source License 1.1 + +License text copyright (c) 2017 MariaDB Corporation Ab, All Rights Reserved. +"Business Source License" is a trademark of MariaDB Corporation Ab. + +----------------------------------------------------------------------------- + +Parameters + +Licensor: Push Org + +Licensed Work: Push SDK + The Licensed Work is (c) 2022 ETHEREUM PUSH NOTIFICATION SERVICE LIMITED + +Additional Use Grant: Any uses listed and defined by Push Org + +Change Date: 2023-11-11 + +Change License: GNU General Public License v2.0 or later + +----------------------------------------------------------------------------- + +Terms + +The Licensor hereby grants you the right to copy, modify, create derivative +works, redistribute, and make non-production use of the Licensed Work. The +Licensor may make an Additional Use Grant, above, permitting limited +production use. + +Effective on the Change Date, or the fourth anniversary of the first publicly +available distribution of a specific version of the Licensed Work under this +License, whichever comes first, the Licensor hereby grants you rights under +the terms of the Change License, and the rights granted in the paragraph +above terminate. + +If your use of the Licensed Work does not comply with the requirements +currently in effect as described in this License, you must purchase a +commercial license from the Licensor, its affiliated entities, or authorized +resellers, or you must refrain from using the Licensed Work. + +All copies of the original and modified Licensed Work, and derivative works +of the Licensed Work, are subject to this License. This License applies +separately for each version of the Licensed Work and the Change Date may vary +for each version of the Licensed Work released by Licensor. + +You must conspicuously display this License on each original or modified copy +of the Licensed Work. If you receive the Licensed Work in original or +modified form from a third party, the terms and conditions set forth in this +License apply to your use of that work. + +Any use of the Licensed Work in violation of this License will automatically +terminate your rights under this License for the current and all other +versions of the Licensed Work. + +This License does not grant you any right in any trademark or logo of +Licensor or its affiliates (provided that you may use a trademark or logo of +Licensor as expressly required by this License). + +TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON +AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, +EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND +TITLE. + +MariaDB hereby grants you permission to use this License’s text to license +your works, and to refer to it using the trademark "Business Source License", +as long as you comply with the Covenants of Licensor below. + +----------------------------------------------------------------------------- + +Covenants of Licensor + +In consideration of the right to use this License’s text and the "Business +Source License" name and trademark, Licensor covenants to MariaDB, and to all +other recipients of the licensed work to be provided by Licensor: + +1. To specify as the Change License the GPL Version 2.0 or any later version, + or a license that is compatible with GPL Version 2.0 or a later version, + where "compatible" means that software provided under the Change License can + be included in a program with software provided under GPL Version 2.0 or a + later version. Licensor may specify additional Change Licenses without + limitation. + +2. To either: (a) specify an additional grant of rights to use that does not + impose any additional restriction on the right granted in this License, as + the Additional Use Grant; or (b) insert the text "None". + +3. To specify a Change Date. + +4. Not to modify this License in any other way. + +----------------------------------------------------------------------------- + +Notice + +The Business Source License (this document, or the "License") is not an Open +Source license. However, the Licensed Work will eventually be made available +under an Open Source License, as stated in this License. + + +semver +ISC +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + + +set-function-length +MIT +MIT License + +Copyright (c) Jordan Harband and contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +sha.js +(MIT AND BSD-3-Clause) +Copyright (c) 2013-2018 sha.js contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +Copyright (c) 1998 - 2009, Paul Johnston & Contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright notice, this +list of conditions and the following disclaimer in the documentation and/or +other materials provided with the distribution. + +Neither the name of the author nor the names of its contributors may be used to +endorse or promote products derived from this software without specific prior +written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + + +shallowequal +MIT +MIT License + +Copyright (c) 2017 Alberto Leal (github.com/dashed) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +side-channel +MIT +MIT License + +Copyright (c) 2019 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +simple-peer +MIT +The MIT License (MIT) + +Copyright (c) Feross Aboukhadijeh + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +split-on-first +MIT +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +stream-browserify +MIT +MIT License + +Copyright (c) James Halliday + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +stream-http +MIT +The MIT License + +Copyright (c) 2015 John Hiesey + +Permission is hereby granted, free of charge, +to any person obtaining a copy of this software and +associated documentation files (the "Software"), to +deal in the Software without restriction, including +without limitation the rights to use, copy, modify, +merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom +the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +strict-uri-encode +MIT +The MIT License (MIT) + +Copyright (c) Kevin Martensson (github.com/kevva) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +string_decoder +MIT +Node.js is licensed for use as follows: + +""" +Copyright Node.js contributors. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + +This license applies to parts of Node.js originating from the +https://github.com/joyent/node repository: + +""" +Copyright Joyent, Inc. and other Node contributors. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. +""" + + + +strip-hex-prefix +MIT +The MIT License + +Copyright (c) 2016 Nick Dodson. nickdodson.com + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +sturdy-websocket +MIT +MIT License + +Copyright (c) 2017 David Philipson + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +style-loader +MIT +Copyright JS Foundation and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +style-to-js +MIT +The MIT License (MIT) + +Copyright (c) 2020 Menglin "Mark" Xu + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +style-to-object +MIT +The MIT License (MIT) + +Copyright (c) 2017 Menglin "Mark" Xu + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +styled-components +MIT +MIT License + +Copyright (c) 2016-present Glen Maddern and Maximilian Stoiber + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +superstruct +MIT +The MIT License + +Copyright © 2017, [Ian Storm Taylor](https://ianstormtaylor.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +svelte +MIT +Copyright (c) 2016-23 [these people](https://github.com/sveltejs/svelte/graphs/contributors) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +svelte-i18n +MIT +Copyright 2017 Christian Kaisermann + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +tiny-warning +MIT +MIT License + +Copyright (c) 2019 Alexander Reardon + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +toggle-selection +MIT + +tslib +0BSD +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +tus-js-client +MIT +The MIT License (MIT) + +Copyright (c) 2015 tus - Resumable File Uploads + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +tweetnacl +Unlicense +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to + + +tweetnacl-util +Unlicense +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to + + +typedarray-to-buffer +MIT +The MIT License (MIT) + +Copyright (c) Feross Aboukhadijeh + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +url +MIT +The MIT License (MIT) + +Copyright 2014 Joyent, Inc. and other Node contributors. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +url-parse +MIT +The MIT License (MIT) + +Copyright (c) 2015 Unshift.io, Arnout Kazemier, the Contributors. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +use-callback-ref +MIT +MIT License + +Copyright (c) 2017 Anton Korzunov + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +use-sidecar +MIT +MIT License + +Copyright (c) 2017 Anton Korzunov + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +use-sync-external-store +MIT +MIT License + +Copyright (c) Facebook, Inc. and its affiliates. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +usehooks-ts +MIT +The MIT License (MIT) + +Copyright (c) 2020 Julien CARON + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +util +MIT +Copyright Joyent, Inc. and other Node contributors. All rights reserved. +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to +deal in the Software without restriction, including without limitation the +rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +sell copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. + + +util-deprecate +MIT +(The MIT License) + +Copyright (c) 2014 Nathan Rajlich + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation +files (the "Software"), to deal in the Software without +restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + + +uuid +MIT +The MIT License (MIT) + +Copyright (c) 2010-2020 Robert Kieffer and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +viem +MIT +MIT License + +Copyright (c) 2023-present weth, LLC + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +which-typed-array +MIT +The MIT License (MIT) + +Copyright (c) 2015 Jordan Harband + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + + +ws +MIT +The MIT License (MIT) + +Copyright (c) 2011 Einar Otto Stangvik + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + +xtend +MIT +The MIT License (MIT) +Copyright (c) 2012-2014 Raynos. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + +yallist +ISC +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/4469.f9212a3ea2d6c3c1.esm.js b/4469.f9212a3ea2d6c3c1.esm.js new file mode 100644 index 000000000..b246ab126 --- /dev/null +++ b/4469.f9212a3ea2d6c3c1.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4469],{14469:(e,t,a)=>{a.r(t),a.d(t,{default:()=>i});const i='\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'}}]); \ No newline at end of file diff --git a/4567.0957307651e46ff5.esm.js b/4567.0957307651e46ff5.esm.js new file mode 100644 index 000000000..379311c7f --- /dev/null +++ b/4567.0957307651e46ff5.esm.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[4567],{84567:(t,e,i)=>{"use strict";i.r(e),i.d(e,{default:()=>wt});var r={};i.r(r),i.d(r,{decrypt:()=>yt,encrypt:()=>Mt,generateKey:()=>gt,verifyHmac:()=>vt});var n=i(47177);const s=["session_request","session_update","exchange_key","connect","disconnect","display_uri","modal_closed","transport_open","transport_close","transport_error"],o=["eth_sendTransaction","eth_signTransaction","eth_sign","eth_signTypedData","eth_signTypedData_v1","eth_signTypedData_v2","eth_signTypedData_v3","eth_signTypedData_v4","personal_sign","wallet_addEthereumChain","wallet_switchEthereumChain","wallet_getPermissions","wallet_requestPermissions","wallet_registerOnboarding","wallet_watchAsset","wallet_scanQRCode"];var h=i(58992),a=i.n(h),u=(i(7357),i(76186)),l=i.n(u),c=i(75291).Buffer;const d="hex",p="utf8",f="0";function m(t){return new Uint8Array(t)}function g(t,e=!1){const i=t.toString(d);return e?E(i):i}function v(t){return t.toString(p)}function M(t){return l()(t)}function y(t,e=!1){return g(M(t),e)}function w(t){return v(M(t))}function _(t){return c.from(O(t),d)}function b(t){return m(_(t))}function k(t){return c.from(t,p)}function S(t){return m(k(t))}function I(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}function R(...t){let e=[];return t.forEach((t=>e=e.concat(Array.from(t)))),new Uint8Array([...e])}function q(t,e=8,i="0"){return function(t,e,i="0"){return x(t,e,!0,i)}(t,function(t,e=8){const i=t%e;return i?(t-i)/e*e+e:t}(t.length,e),i)}function O(t){return t.replace(/^0x/,"")}function E(t){return t.startsWith("0x")?t:`0x${t}`}function A(t){return(t=q(t=O(t),2))&&(t=E(t)),t}function x(t,e,i,r="0"){const n=e-t.length;let s=t;if(n>0){const e=r.repeat(n);s=i?e+t:t+e}return s}function T(t){return M(new Uint8Array(t))}function j(t,e){return function(t,e=!1){return g(k(t),e)}(t,!e)}function C(t,e){const i=O(A(new(a())(t).toString(16)));return e?i:E(i)}var N=i(80471),U=i(31587);i(98399);function L(t){return A(t)}function B(t){return function(t){const e=t.startsWith("0x");return t=(t=O(t)).startsWith(f)?t.substring(1):t,e?E(t):t}(E(t))}const P=U.payloadId;function F(){return((t,e)=>{for(e=t="";t++<36;e+=51*t&52?(15^t?8^Math.random()*(20^t?16:4):4).toString(16):"-");return e})()}function Z(t,e){return I(t,e)}function $(t){return void 0!==t.result}function J(t){return void 0!==t.error}function D(t){return void 0!==t.event}function K(t){t=O(t.toLowerCase());const e=O((0,N.keccak_256)(k(t)));let i="";for(let r=0;r7?i+=t[r].toUpperCase():i+=t[r];return E(i)}function W(t){var e;return(e=t)&&e.length&&!Z(t[0])&&(t[0]=j(t[0])),t}function z(t){if(void 0!==t.type&&"0"!==t.type)return t;if(void 0===t.from||(!(e=t.from)||"0x"!==e.toLowerCase().substring(0,2)||!/^(0x)?[0-9a-f]{40}$/i.test(e)||!/^(0x)?[0-9a-f]{40}$/.test(e)&&!/^(0x)?[0-9A-F]{40}$/.test(e)&&e!==K(e)))throw new Error("Transaction object must include a valid 'from' value.");var e;function i(t){let e=t;return("number"==typeof t||"string"==typeof t&&!function(t){return""===t||"string"==typeof t&&""===t.trim()}(t))&&(Z(t)?"string"==typeof t&&(e=L(t)):e=C(t)),"string"==typeof e&&(e=B(e)),e}const r={from:L(t.from),to:void 0===t.to?void 0:L(t.to),gasPrice:void 0===t.gasPrice?"":i(t.gasPrice),gas:void 0===t.gas?void 0===t.gasLimit?"":i(t.gasLimit):i(t.gas),value:void 0===t.value?"":i(t.value),nonce:void 0===t.nonce?"":i(t.nonce),data:void 0===t.data?"":L(t.data)||"0x"},n=["gasPrice","gas","value","nonce"];return Object.keys(r).forEach((t=>{(void 0===r[t]||"string"==typeof r[t]&&!r[t].trim().length)&&n.includes(t)&&delete r[t]})),r}var Q=i(37658);function H(t,e){let i=V(t);return i=Object.assign(Object.assign({},i),e),t=function(t){return Q.stringify(t)}(i),t}function V(t){return Q.parse(t)}const G=class{constructor(){this._eventEmitters=[],"undefined"!=typeof window&&void 0!==window.addEventListener&&(window.addEventListener("online",(()=>this.trigger("online"))),window.addEventListener("offline",(()=>this.trigger("offline"))))}on(t,e){this._eventEmitters.push({event:t,callback:e})}trigger(t){let e=[];t&&(e=this._eventEmitters.filter((e=>e.event===t))),e.forEach((t=>{t.callback()}))}},X=void 0!==global.WebSocket?global.WebSocket:i(94563);const Y=class{constructor(t){if(this.opts=t,this._queue=[],this._events=[],this._subscriptions=[],this._protocol=t.protocol,this._version=t.version,this._url="",this._netMonitor=null,this._socket=null,this._nextSocket=null,this._subscriptions=t.subscriptions||[],this._netMonitor=t.netMonitor||new G,!t.url||"string"!=typeof t.url)throw new Error("Missing or invalid WebSocket url");this._url=t.url,this._netMonitor.on("online",(()=>this._socketCreate()))}set readyState(t){}get readyState(){return this._socket?this._socket.readyState:-1}set connecting(t){}get connecting(){return 0===this.readyState}set connected(t){}get connected(){return 1===this.readyState}set closing(t){}get closing(){return 2===this.readyState}set closed(t){}get closed(){return 3===this.readyState}open(){this._socketCreate()}close(){this._socketClose()}send(t,e,i){if(!e||"string"!=typeof e)throw new Error("Missing or invalid topic field");this._socketSend({topic:e,type:"pub",payload:t,silent:!!i})}subscribe(t){this._socketSend({topic:t,type:"sub",payload:"",silent:!0})}on(t,e){this._events.push({event:t,callback:e})}_socketCreate(){if(this._nextSocket)return;const t=function(t,e,i){var r,s;const o=(t.startsWith("https")?t.replace("https","wss"):t.startsWith("http")?t.replace("http","ws"):t).split("?"),h=(0,n.isBrowser)()?{protocol:e,version:i,env:"browser",host:(null===(r=(0,n.getLocation)())||void 0===r?void 0:r.host)||""}:{protocol:e,version:i,env:(null===(s=(0,n.detectEnv)())||void 0===s?void 0:s.name)||""},a=H(function(t){const e=-1!==t.indexOf("?")?t.indexOf("?"):void 0;return void 0!==e?t.substr(e):""}(o[1]||""),h);return o[0]+"?"+a}(this._url,this._protocol,this._version);if(this._nextSocket=new X(t),!this._nextSocket)throw new Error("Failed to create socket");this._nextSocket.onmessage=t=>this._socketReceive(t),this._nextSocket.onopen=()=>this._socketOpen(),this._nextSocket.onerror=t=>this._socketError(t),this._nextSocket.onclose=()=>{setTimeout((()=>{this._nextSocket=null,this._socketCreate()}),1e3)}}_socketOpen(){this._socketClose(),this._socket=this._nextSocket,this._nextSocket=null,this._queueSubscriptions(),this._pushQueue()}_socketClose(){this._socket&&(this._socket.onclose=()=>{},this._socket.close())}_socketSend(t){const e=JSON.stringify(t);this._socket&&1===this._socket.readyState?this._socket.send(e):(this._setToQueue(t),this._socketCreate())}async _socketReceive(t){let e;try{e=JSON.parse(t.data)}catch(i){return}if(this._socketSend({topic:e.topic,type:"ack",payload:"",silent:!0}),this._socket&&1===this._socket.readyState){const t=this._events.filter((t=>"message"===t.event));t&&t.length&&t.forEach((t=>t.callback(e)))}}_socketError(t){const e=this._events.filter((t=>"error"===t.event));e&&e.length&&e.forEach((e=>e.callback(t)))}_queueSubscriptions(){this._subscriptions.forEach((t=>this._queue.push({topic:t,type:"sub",payload:"",silent:!0}))),this._subscriptions=this.opts.subscriptions||[]}_setToQueue(t){this._queue.push(t)}_pushQueue(){this._queue.forEach((t=>this._socketSend(t))),this._queue=[]}},tt="Session currently connected",et="Session currently disconnected",it="JSON RPC response format is invalid",rt="User close QRCode Modal";const nt=class{constructor(){this._eventEmitters=[]}subscribe(t){this._eventEmitters.push(t)}unsubscribe(t){this._eventEmitters=this._eventEmitters.filter((e=>e.event!==t))}trigger(t){let e,i=[];e=void 0!==t.method?t.method:$(t)||J(t)?`response:${t.id}`:D(t)?t.event:"",e&&(i=this._eventEmitters.filter((t=>t.event===e))),i&&i.length||function(t){return s.includes(t)||t.startsWith("wc_")}(e)||D(e)||(i=this._eventEmitters.filter((t=>"call_request"===t.event))),i.forEach((e=>{if(J(t)){const i=new Error(t.error.message);e.callback(i,null)}else e.callback(null,t)}))}};const st=class{constructor(t="walletconnect"){this.storageId=t}getSession(){let t=null;const e=(0,n.getLocal)(this.storageId);return e&&void 0!==e.bridge&&(t=e),t}setSession(t){return(0,n.setLocal)(this.storageId,t),t}removeSession(){(0,n.removeLocal)(this.storageId)}},ot="abcdefghijklmnopqrstuvwxyz0123456789".split("").map((t=>`https://${t}.bridge.walletconnect.org`));function ht(){return ot[Math.floor(Math.random()*ot.length)]}const at=class{constructor(t){if(this.protocol="wc",this.version=1,this._bridge="",this._key=null,this._clientId="",this._clientMeta=null,this._peerId="",this._peerMeta=null,this._handshakeId=0,this._handshakeTopic="",this._connected=!1,this._accounts=[],this._chainId=0,this._networkId=0,this._rpcUrl="",this._eventManager=new nt,this._clientMeta=(0,n.getClientMeta)()||t.connectorOpts.clientMeta||null,this._cryptoLib=t.cryptoLib,this._sessionStorage=t.sessionStorage||new st(t.connectorOpts.storageId),this._qrcodeModal=t.connectorOpts.qrcodeModal,this._qrcodeModalOptions=t.connectorOpts.qrcodeModalOptions,this._signingMethods=[...o,...t.connectorOpts.signingMethods||[]],!t.connectorOpts.bridge&&!t.connectorOpts.uri&&!t.connectorOpts.session)throw new Error("Missing one of the required parameters: bridge / uri / session");var e;t.connectorOpts.bridge&&(this.bridge=function(t){return"walletconnect.org"===function(t){return function(t){let e=t.indexOf("//")>-1?t.split("/")[2]:t.split("/")[0];return e=e.split(":")[0],e=e.split("?")[0],e}(t).split(".").slice(-2).join(".")}(t)}(e=t.connectorOpts.bridge)?ht():e),t.connectorOpts.uri&&(this.uri=t.connectorOpts.uri);const i=t.connectorOpts.session||this._getStorageSession();i&&(this.session=i),this.handshakeId&&this._subscribeToSessionResponse(this.handshakeId,"Session request rejected"),this._transport=t.transport||new Y({protocol:this.protocol,version:this.version,url:this.bridge,subscriptions:[this.clientId]}),this._subscribeToInternalEvents(),this._initTransport(),t.connectorOpts.uri&&this._subscribeToSessionRequest(),t.pushServerOpts&&this._registerPushServer(t.pushServerOpts)}set bridge(t){t&&(this._bridge=t)}get bridge(){return this._bridge}set key(t){if(!t)return;const e=b(t).buffer;this._key=e}get key(){if(this._key){return t=this._key,e=!0,y(new Uint8Array(t),!e)}var t,e;return""}set clientId(t){t&&(this._clientId=t)}get clientId(){let t=this._clientId;return t||(t=this._clientId=F()),this._clientId}set peerId(t){t&&(this._peerId=t)}get peerId(){return this._peerId}set clientMeta(t){}get clientMeta(){let t=this._clientMeta;return t||(t=this._clientMeta=(0,n.getClientMeta)()),t}set peerMeta(t){this._peerMeta=t}get peerMeta(){return this._peerMeta}set handshakeTopic(t){t&&(this._handshakeTopic=t)}get handshakeTopic(){return this._handshakeTopic}set handshakeId(t){t&&(this._handshakeId=t)}get handshakeId(){return this._handshakeId}get uri(){return this._formatUri()}set uri(t){if(!t)return;const{handshakeTopic:e,bridge:i,key:r}=this._parseUri(t);this.handshakeTopic=e,this.bridge=i,this.key=r}set chainId(t){this._chainId=t}get chainId(){return this._chainId}set networkId(t){this._networkId=t}get networkId(){return this._networkId}set accounts(t){this._accounts=t}get accounts(){return this._accounts}set rpcUrl(t){this._rpcUrl=t}get rpcUrl(){return this._rpcUrl}set connected(t){}get connected(){return this._connected}set pending(t){}get pending(){return!!this._handshakeTopic}get session(){return{connected:this.connected,accounts:this.accounts,chainId:this.chainId,bridge:this.bridge,key:this.key,clientId:this.clientId,clientMeta:this.clientMeta,peerId:this.peerId,peerMeta:this.peerMeta,handshakeId:this.handshakeId,handshakeTopic:this.handshakeTopic}}set session(t){t&&(this._connected=t.connected,this.accounts=t.accounts,this.chainId=t.chainId,this.bridge=t.bridge,this.key=t.key,this.clientId=t.clientId,this.clientMeta=t.clientMeta,this.peerId=t.peerId,this.peerMeta=t.peerMeta,this.handshakeId=t.handshakeId,this.handshakeTopic=t.handshakeTopic)}on(t,e){const i={event:t,callback:e};this._eventManager.subscribe(i)}off(t){this._eventManager.unsubscribe(t)}async createInstantRequest(t){this._key=await this._generateKey();const e=this._formatRequest({method:"wc_instantRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,request:this._formatRequest(t)}]});this.handshakeId=e.id,this.handshakeTopic=F(),this._eventManager.trigger({event:"display_uri",params:[this.uri]}),this.on("modal_closed",(()=>{throw new Error(rt)}));const i=()=>{this.killSession()};try{const t=await this._sendCallRequest(e);return t&&i(),t}catch(r){throw i(),r}}async connect(t){if(!this._qrcodeModal)throw new Error("QRCode Modal not provided");return this.connected?{chainId:this.chainId,accounts:this.accounts}:(await this.createSession(t),new Promise((async(t,e)=>{this.on("modal_closed",(()=>e(new Error(rt)))),this.on("connect",((i,r)=>{if(i)return e(i);t(r.params[0])}))})))}async createSession(t){if(this._connected)throw new Error(tt);if(this.pending)return;this._key=await this._generateKey();const e=this._formatRequest({method:"wc_sessionRequest",params:[{peerId:this.clientId,peerMeta:this.clientMeta,chainId:t&&t.chainId?t.chainId:null}]});this.handshakeId=e.id,this.handshakeTopic=F(),this._sendSessionRequest(e,"Session update rejected",{topic:this.handshakeTopic}),this._eventManager.trigger({event:"display_uri",params:[this.uri]})}approveSession(t){if(this._connected)throw new Error(tt);this.chainId=t.chainId,this.accounts=t.accounts,this.networkId=t.networkId||0,this.rpcUrl=t.rpcUrl||"";const e={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl,peerId:this.clientId,peerMeta:this.clientMeta},i={id:this.handshakeId,jsonrpc:"2.0",result:e};this._sendResponse(i),this._connected=!0,this._setStorageSession(),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})}rejectSession(t){if(this._connected)throw new Error(tt);const e=t&&t.message?t.message:"Session Rejected",i=this._formatResponse({id:this.handshakeId,error:{message:e}});this._sendResponse(i),this._connected=!1,this._eventManager.trigger({event:"disconnect",params:[{message:e}]}),this._removeStorageSession()}updateSession(t){if(!this._connected)throw new Error(et);this.chainId=t.chainId,this.accounts=t.accounts,this.networkId=t.networkId||0,this.rpcUrl=t.rpcUrl||"";const e={approved:!0,chainId:this.chainId,networkId:this.networkId,accounts:this.accounts,rpcUrl:this.rpcUrl},i=this._formatRequest({method:"wc_sessionUpdate",params:[e]});this._sendSessionRequest(i,"Session update rejected"),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]}),this._manageStorageSession()}async killSession(t){const e=t?t.message:"Session Disconnected",i=this._formatRequest({method:"wc_sessionUpdate",params:[{approved:!1,chainId:null,networkId:null,accounts:null}]});await this._sendRequest(i),this._handleSessionDisconnect(e)}async sendTransaction(t){if(!this._connected)throw new Error(et);const e=z(t),i=this._formatRequest({method:"eth_sendTransaction",params:[e]});return await this._sendCallRequest(i)}async signTransaction(t){if(!this._connected)throw new Error(et);const e=z(t),i=this._formatRequest({method:"eth_signTransaction",params:[e]});return await this._sendCallRequest(i)}async signMessage(t){if(!this._connected)throw new Error(et);const e=this._formatRequest({method:"eth_sign",params:t});return await this._sendCallRequest(e)}async signPersonalMessage(t){if(!this._connected)throw new Error(et);t=W(t);const e=this._formatRequest({method:"personal_sign",params:t});return await this._sendCallRequest(e)}async signTypedData(t){if(!this._connected)throw new Error(et);const e=this._formatRequest({method:"eth_signTypedData",params:t});return await this._sendCallRequest(e)}async updateChain(t){if(!this._connected)throw new Error("Session currently disconnected");const e=this._formatRequest({method:"wallet_updateChain",params:[t]});return await this._sendCallRequest(e)}unsafeSend(t,e){return this._sendRequest(t,e),this._eventManager.trigger({event:"call_request_sent",params:[{request:t,options:e}]}),new Promise(((e,i)=>{this._subscribeToResponse(t.id,((t,r)=>{if(t)i(t);else{if(!r)throw new Error("Missing JSON RPC response");e(r)}}))}))}async sendCustomRequest(t,e){if(!this._connected)throw new Error(et);switch(t.method){case"eth_accounts":return this.accounts;case"eth_chainId":return C(this.chainId);case"eth_sendTransaction":case"eth_signTransaction":t.params&&(t.params[0]=z(t.params[0]));break;case"personal_sign":t.params&&(t.params=W(t.params))}const i=this._formatRequest(t);return await this._sendCallRequest(i,e)}approveRequest(t){if(!$(t))throw new Error('JSON-RPC success response must include "result" field');{const e=this._formatResponse(t);this._sendResponse(e)}}rejectRequest(t){if(!J(t))throw new Error('JSON-RPC error response must include "error" field');{const e=this._formatResponse(t);this._sendResponse(e)}}transportClose(){this._transport.close()}async _sendRequest(t,e){const i=this._formatRequest(t),r=await this._encrypt(i),n=void 0!==(null==e?void 0:e.topic)?e.topic:this.peerId,s=JSON.stringify(r),h=void 0!==(null==e?void 0:e.forcePushNotification)?!e.forcePushNotification:function(t){return!!t.method.startsWith("wc_")||!o.includes(t.method)}(i);this._transport.send(s,n,h)}async _sendResponse(t){const e=await this._encrypt(t),i=this.peerId,r=JSON.stringify(e);this._transport.send(r,i,!0)}async _sendSessionRequest(t,e,i){this._sendRequest(t,i),this._subscribeToSessionResponse(t.id,e)}_sendCallRequest(t,e){return this._sendRequest(t,e),this._eventManager.trigger({event:"call_request_sent",params:[{request:t,options:e}]}),this._subscribeToCallResponse(t.id)}_formatRequest(t){if(void 0===t.method)throw new Error('JSON RPC request must have valid "method" value');return{id:void 0===t.id?P():t.id,jsonrpc:"2.0",method:t.method,params:void 0===t.params?[]:t.params}}_formatResponse(t){if(void 0===t.id)throw new Error('JSON RPC request must have valid "id" value');const e={id:t.id,jsonrpc:"2.0"};if(J(t)){const i=function(t){const e=t.message||"Failed or Rejected Request";let i=-32e3;if(t&&!t.code)switch(e){case"Parse error":i=-32700;break;case"Invalid request":i=-32600;break;case"Method not found":i=-32601;break;case"Invalid params":i=-32602;break;case"Internal error":i=-32603;break;default:i=-32e3}const r={code:i,message:e};return t.data&&(r.data=t.data),r}(t.error);return Object.assign(Object.assign(Object.assign({},e),t),{error:i})}if($(t)){return Object.assign(Object.assign({},e),t)}throw new Error(it)}_handleSessionDisconnect(t){const e=t||"Session Disconnected";this._connected||(this._qrcodeModal&&this._qrcodeModal.close(),(0,n.removeLocal)(n.mobileLinkChoiceKey)),this._connected&&(this._connected=!1),this._handshakeId&&(this._handshakeId=0),this._handshakeTopic&&(this._handshakeTopic=""),this._peerId&&(this._peerId=""),this._eventManager.trigger({event:"disconnect",params:[{message:e}]}),this._removeStorageSession(),this.transportClose()}_handleSessionResponse(t,e){e&&e.approved?(this._connected?(e.chainId&&(this.chainId=e.chainId),e.accounts&&(this.accounts=e.accounts),this._eventManager.trigger({event:"session_update",params:[{chainId:this.chainId,accounts:this.accounts}]})):(this._connected=!0,e.chainId&&(this.chainId=e.chainId),e.accounts&&(this.accounts=e.accounts),e.peerId&&!this.peerId&&(this.peerId=e.peerId),e.peerMeta&&!this.peerMeta&&(this.peerMeta=e.peerMeta),this._eventManager.trigger({event:"connect",params:[{peerId:this.peerId,peerMeta:this.peerMeta,chainId:this.chainId,accounts:this.accounts}]})),this._manageStorageSession()):this._handleSessionDisconnect(t)}async _handleIncomingMessages(t){if(![this.clientId,this.handshakeTopic].includes(t.topic))return;let e;try{e=JSON.parse(t.payload)}catch(r){return}const i=await this._decrypt(e);i&&this._eventManager.trigger(i)}_subscribeToSessionRequest(){this._transport.subscribe(this.handshakeTopic)}_subscribeToResponse(t,e){this.on(`response:${t}`,e)}_subscribeToSessionResponse(t,e){this._subscribeToResponse(t,((t,i)=>{t?this._handleSessionResponse(t.message):$(i)?this._handleSessionResponse(e,i.result):i.error&&i.error.message?this._handleSessionResponse(i.error.message):this._handleSessionResponse(e)}))}_subscribeToCallResponse(t){return new Promise(((e,i)=>{this._subscribeToResponse(t,((t,r)=>{t?i(t):$(r)?e(r.result):r.error&&r.error.message?i(r.error):i(new Error(it))}))}))}_subscribeToInternalEvents(){this.on("display_uri",(()=>{this._qrcodeModal&&this._qrcodeModal.open(this.uri,(()=>{this._eventManager.trigger({event:"modal_closed",params:[]})}),this._qrcodeModalOptions)})),this.on("connect",(()=>{this._qrcodeModal&&this._qrcodeModal.close()})),this.on("call_request_sent",((t,e)=>{const{request:i}=e.params[0];if((0,n.isMobile)()&&this._signingMethods.includes(i.method)){const t=(0,n.getLocal)(n.mobileLinkChoiceKey);t&&(window.location.href=t.href)}})),this.on("wc_sessionRequest",((t,e)=>{t&&this._eventManager.trigger({event:"error",params:[{code:"SESSION_REQUEST_ERROR",message:t.toString()}]}),this.handshakeId=e.id,this.peerId=e.params[0].peerId,this.peerMeta=e.params[0].peerMeta;const i=Object.assign(Object.assign({},e),{method:"session_request"});this._eventManager.trigger(i)})),this.on("wc_sessionUpdate",((t,e)=>{t&&this._handleSessionResponse(t.message),this._handleSessionResponse("Session disconnected",e.params[0])}))}_initTransport(){this._transport.on("message",(t=>this._handleIncomingMessages(t))),this._transport.on("open",(()=>this._eventManager.trigger({event:"transport_open",params:[]}))),this._transport.on("close",(()=>this._eventManager.trigger({event:"transport_close",params:[]}))),this._transport.on("error",(()=>this._eventManager.trigger({event:"transport_error",params:["Websocket connection failed"]}))),this._transport.open()}_formatUri(){return`${this.protocol}:${this.handshakeTopic}@${this.version}?bridge=${encodeURIComponent(this.bridge)}&key=${this.key}`}_parseUri(t){const e=function(t){const e=t.indexOf(":"),i=-1!==t.indexOf("?")?t.indexOf("?"):void 0,r=t.substring(0,e),n=function(t){const e=t.split("@");return{handshakeTopic:e[0],version:parseInt(e[1],10)}}(t.substring(e+1,i)),s=function(t){const e=V(t);return{key:e.key||"",bridge:e.bridge||""}}(void 0!==i?t.substr(i):"");return Object.assign(Object.assign({protocol:r},n),s)}(t);if(e.protocol===this.protocol){if(!e.handshakeTopic)throw Error("Invalid or missing handshakeTopic parameter value");const t=e.handshakeTopic;if(!e.bridge)throw Error("Invalid or missing bridge url parameter value");const i=decodeURIComponent(e.bridge);if(!e.key)throw Error("Invalid or missing key parameter value");return{handshakeTopic:t,bridge:i,key:e.key}}throw new Error("URI format is invalid")}async _generateKey(){if(this._cryptoLib){return await this._cryptoLib.generateKey()}return null}async _encrypt(t){const e=this._key;if(this._cryptoLib&&e){return await this._cryptoLib.encrypt(t,e)}return null}async _decrypt(t){const e=this._key;if(this._cryptoLib&&e){return await this._cryptoLib.decrypt(t,e)}return null}_getStorageSession(){let t=null;return this._sessionStorage&&(t=this._sessionStorage.getSession()),t}_setStorageSession(){this._sessionStorage&&this._sessionStorage.setSession(this.session)}_removeStorageSession(){this._sessionStorage&&this._sessionStorage.removeSession()}_manageStorageSession(){this._connected?this._setStorageSession():this._removeStorageSession()}_registerPushServer(t){if(!t.url||"string"!=typeof t.url)throw Error("Invalid or missing pushServerOpts.url parameter value");if(!t.type||"string"!=typeof t.type)throw Error("Invalid or missing pushServerOpts.type parameter value");if(!t.token||"string"!=typeof t.token)throw Error("Invalid or missing pushServerOpts.token parameter value");const e={bridge:this.bridge,topic:this.clientId,type:t.type,token:t.token,peerName:"",language:t.language||""};this.on("connect",(async(i,r)=>{if(i)throw i;if(t.peerMeta){const t=r.params[0].peerMeta.name;e.peerName=t}try{const i=await fetch(`${t.url}/new`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(e)});if(!(await i.json()).success)throw Error("Failed to register in Push Server")}catch(i){throw Error("Failed to register in Push Server")}}))}};var ut=i(32785);const lt="AES-CBC",ct="HMAC";async function dt(t,e="AES-CBC"){return ut.getSubtleCrypto().importKey("raw",t,function(t){return t===lt?{length:256,name:lt}:{hash:{name:"SHA-256"},name:ct}}(e),!0,function(t){return t===lt?["encrypt","decrypt"]:["sign","verify"]}(e))}function pt(t,e,i){return async function(t,e,i){const r=ut.getSubtleCrypto(),n=await dt(e,lt),s=await r.encrypt({iv:t,name:lt},n,i);return new Uint8Array(s)}(t,e,i)}function ft(t,e,i){return async function(t,e,i){const r=ut.getSubtleCrypto(),n=await dt(e,lt),s=await r.decrypt({iv:t,name:lt},n,i);return new Uint8Array(s)}(t,e,i)}i(29197);async function mt(t,e){const i=await async function(t,e){const i=ut.getSubtleCrypto(),r=await dt(t,ct),n=await i.sign({length:256,name:ct},r,e);return new Uint8Array(n)}(t,e);return i}async function gt(t){const e=function(t){return ut.getBrowerCrypto().getRandomValues(new Uint8Array(t))}((t||256)/8);return m(M(e)).buffer}async function vt(t,e){const i=b(t.data),r=b(t.iv),n=y(b(t.hmac),!1),s=R(i,r),o=y(await mt(e,s),!1);return O(n)===O(o)}async function Mt(t,e,i){const r=m(T(e)),n=m(T(i||await gt(128))),s=y(n,!1),o=S(JSON.stringify(t)),h=await pt(n,r,o),a=y(h,!1),u=R(h,n);return{data:a,hmac:y(await mt(r,u),!1),iv:s}}async function yt(t,e){const i=m(T(e));if(!i)throw new Error("Missing key: required for decryption");if(!(await vt(t,i)))return null;const r=b(t.data),n=b(t.iv),s=w(await ft(n,i,r));let o;try{o=JSON.parse(s)}catch(h){return null}return o}const wt=class extends at{constructor(t,e){super({cryptoLib:r,connectorOpts:t,pushServerOpts:e})}}},29197:()=>{},94563:t=>{"use strict";t.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},58992:function(t,e,i){!function(t,e){"use strict";function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function n(t,e){t.super_=e;var i=function(){};i.prototype=e.prototype,t.prototype=new i,t.prototype.constructor=t}function s(t,e,i){if(s.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(i=e,e=10),this._init(t||0,e||10,i||"be"))}var o;"object"==typeof t?t.exports=s:e.BN=s,s.BN=s,s.wordSize=26;try{o=i(90763).Buffer}catch(S){}function h(t,e,i){for(var r=0,n=Math.min(t.length,i),s=e;s=49&&o<=54?o-49+10:o>=17&&o<=22?o-17+10:15&o}return r}function a(t,e,i,r){for(var n=0,s=Math.min(t.length,i),o=e;o=49?h-49+10:h>=17?h-17+10:h}return n}s.isBN=function(t){return t instanceof s||null!==t&&"object"==typeof t&&t.constructor.wordSize===s.wordSize&&Array.isArray(t.words)},s.max=function(t,e){return t.cmp(e)>0?t:e},s.min=function(t,e){return t.cmp(e)<0?t:e},s.prototype._init=function(t,e,i){if("number"==typeof t)return this._initNumber(t,e,i);if("object"==typeof t)return this._initArray(t,e,i);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var n=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&n++,16===e?this._parseHex(t,n):this._parseBase(t,e,n),"-"===t[0]&&(this.negative=1),this.strip(),"le"===i&&this._initArray(this.toArray(),e,i)},s.prototype._initNumber=function(t,e,i){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),e,i)},s.prototype._initArray=function(t,e,i){if(r("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var n=0;n=0;n-=3)o=t[n]|t[n-1]<<8|t[n-2]<<16,this.words[s]|=o<>>26-h&67108863,(h+=24)>=26&&(h-=26,s++);else if("le"===i)for(n=0,s=0;n>>26-h&67108863,(h+=24)>=26&&(h-=26,s++);return this.strip()},s.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i=e;i-=6)n=h(t,i,i+6),this.words[r]|=n<>>26-s&4194303,(s+=24)>=26&&(s-=26,r++);i+6!==e&&(n=h(t,e,i+6),this.words[r]|=n<>>26-s&4194303),this.strip()},s.prototype._parseBase=function(t,e,i){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=e)r++;r--,n=n/e|0;for(var s=t.length-i,o=s%r,h=Math.min(s,s-o)+i,u=0,l=i;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},s.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],c=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t,e,i){i.negative=e.negative^t.negative;var r=t.length+e.length|0;i.length=r,r=r-1|0;var n=0|t.words[0],s=0|e.words[0],o=n*s,h=67108863&o,a=o/67108864|0;i.words[0]=h;for(var u=1;u>>26,c=67108863&a,d=Math.min(u,e.length-1),p=Math.max(0,u-t.length+1);p<=d;p++){var f=u-p|0;l+=(o=(n=0|t.words[f])*(s=0|e.words[p])+c)/67108864|0,c=67108863&o}i.words[u]=0|c,a=0|l}return 0!==a?i.words[u]=0|a:i.length--,i.strip()}s.prototype.toString=function(t,e){var i;if(e=0|e||1,16===(t=t||10)||"hex"===t){i="";for(var n=0,s=0,o=0;o>>24-n&16777215)||o!==this.length-1?u[6-a.length]+a+i:a+i,(n+=2)>=26&&(n-=26,o--)}for(0!==s&&(i=s.toString(16)+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(t===(0|t)&&t>=2&&t<=36){var d=l[t],p=c[t];i="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);i=(f=f.idivn(p)).isZero()?m+i:u[d-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%e!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},s.prototype.toJSON=function(){return this.toString(16)},s.prototype.toBuffer=function(t,e){return r(void 0!==o),this.toArrayLike(o,t,e)},s.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},s.prototype.toArrayLike=function(t,e,i){var n=this.byteLength(),s=i||Math.max(1,n);r(n<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0"),this.strip();var o,h,a="le"===e,u=new t(s),l=this.clone();if(a){for(h=0;!l.isZero();h++)o=l.andln(255),l.iushrn(8),u[h]=o;for(;h=4096&&(i+=13,e>>>=13),e>=64&&(i+=7,e>>>=7),e>=8&&(i+=4,e>>>=4),e>=2&&(i+=2,e>>>=2),i+e},s.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,i=0;return 0==(8191&e)&&(i+=13,e>>>=13),0==(127&e)&&(i+=7,e>>>=7),0==(15&e)&&(i+=4,e>>>=4),0==(3&e)&&(i+=2,e>>>=2),0==(1&e)&&i++,i},s.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},s.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},s.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var i=0;it.length?this.clone().iand(t):t.clone().iand(this)},s.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},s.prototype.iuxor=function(t){var e,i;this.length>t.length?(e=this,i=t):(e=t,i=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},s.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},s.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),i=t%26;this._expand(e),i>0&&e--;for(var n=0;n0&&(this.words[n]=~this.words[n]&67108863>>26-i),this.strip()},s.prototype.notn=function(t){return this.clone().inotn(t)},s.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var i=t/26|0,n=t%26;return this._expand(i+1),this.words[i]=e?this.words[i]|1<t.length?(i=this,r=t):(i=t,r=this);for(var n=0,s=0;s>>26;for(;0!==n&&s>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;st.length?this.clone().iadd(t):t.clone().iadd(this)},s.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var i,r,n=this.cmp(t);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(i=this,r=t):(i=t,r=this);for(var s=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==s&&o>26,this.words[o]=67108863&e;if(0===s&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],v=8191&g,M=g>>>13,y=0|o[3],w=8191&y,_=y>>>13,b=0|o[4],k=8191&b,S=b>>>13,I=0|o[5],R=8191&I,q=I>>>13,O=0|o[6],E=8191&O,A=O>>>13,x=0|o[7],T=8191&x,j=x>>>13,C=0|o[8],N=8191&C,U=C>>>13,L=0|o[9],B=8191&L,P=L>>>13,F=0|h[0],Z=8191&F,$=F>>>13,J=0|h[1],D=8191&J,K=J>>>13,W=0|h[2],z=8191&W,Q=W>>>13,H=0|h[3],V=8191&H,G=H>>>13,X=0|h[4],Y=8191&X,tt=X>>>13,et=0|h[5],it=8191&et,rt=et>>>13,nt=0|h[6],st=8191&nt,ot=nt>>>13,ht=0|h[7],at=8191&ht,ut=ht>>>13,lt=0|h[8],ct=8191<,dt=lt>>>13,pt=0|h[9],ft=8191&pt,mt=pt>>>13;i.negative=t.negative^e.negative,i.length=19;var gt=(u+(r=Math.imul(c,Z))|0)+((8191&(n=(n=Math.imul(c,$))+Math.imul(d,Z)|0))<<13)|0;u=((s=Math.imul(d,$))+(n>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(f,Z),n=(n=Math.imul(f,$))+Math.imul(m,Z)|0,s=Math.imul(m,$);var vt=(u+(r=r+Math.imul(c,D)|0)|0)+((8191&(n=(n=n+Math.imul(c,K)|0)+Math.imul(d,D)|0))<<13)|0;u=((s=s+Math.imul(d,K)|0)+(n>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(v,Z),n=(n=Math.imul(v,$))+Math.imul(M,Z)|0,s=Math.imul(M,$),r=r+Math.imul(f,D)|0,n=(n=n+Math.imul(f,K)|0)+Math.imul(m,D)|0,s=s+Math.imul(m,K)|0;var Mt=(u+(r=r+Math.imul(c,z)|0)|0)+((8191&(n=(n=n+Math.imul(c,Q)|0)+Math.imul(d,z)|0))<<13)|0;u=((s=s+Math.imul(d,Q)|0)+(n>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(w,Z),n=(n=Math.imul(w,$))+Math.imul(_,Z)|0,s=Math.imul(_,$),r=r+Math.imul(v,D)|0,n=(n=n+Math.imul(v,K)|0)+Math.imul(M,D)|0,s=s+Math.imul(M,K)|0,r=r+Math.imul(f,z)|0,n=(n=n+Math.imul(f,Q)|0)+Math.imul(m,z)|0,s=s+Math.imul(m,Q)|0;var yt=(u+(r=r+Math.imul(c,V)|0)|0)+((8191&(n=(n=n+Math.imul(c,G)|0)+Math.imul(d,V)|0))<<13)|0;u=((s=s+Math.imul(d,G)|0)+(n>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(k,Z),n=(n=Math.imul(k,$))+Math.imul(S,Z)|0,s=Math.imul(S,$),r=r+Math.imul(w,D)|0,n=(n=n+Math.imul(w,K)|0)+Math.imul(_,D)|0,s=s+Math.imul(_,K)|0,r=r+Math.imul(v,z)|0,n=(n=n+Math.imul(v,Q)|0)+Math.imul(M,z)|0,s=s+Math.imul(M,Q)|0,r=r+Math.imul(f,V)|0,n=(n=n+Math.imul(f,G)|0)+Math.imul(m,V)|0,s=s+Math.imul(m,G)|0;var wt=(u+(r=r+Math.imul(c,Y)|0)|0)+((8191&(n=(n=n+Math.imul(c,tt)|0)+Math.imul(d,Y)|0))<<13)|0;u=((s=s+Math.imul(d,tt)|0)+(n>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(R,Z),n=(n=Math.imul(R,$))+Math.imul(q,Z)|0,s=Math.imul(q,$),r=r+Math.imul(k,D)|0,n=(n=n+Math.imul(k,K)|0)+Math.imul(S,D)|0,s=s+Math.imul(S,K)|0,r=r+Math.imul(w,z)|0,n=(n=n+Math.imul(w,Q)|0)+Math.imul(_,z)|0,s=s+Math.imul(_,Q)|0,r=r+Math.imul(v,V)|0,n=(n=n+Math.imul(v,G)|0)+Math.imul(M,V)|0,s=s+Math.imul(M,G)|0,r=r+Math.imul(f,Y)|0,n=(n=n+Math.imul(f,tt)|0)+Math.imul(m,Y)|0,s=s+Math.imul(m,tt)|0;var _t=(u+(r=r+Math.imul(c,it)|0)|0)+((8191&(n=(n=n+Math.imul(c,rt)|0)+Math.imul(d,it)|0))<<13)|0;u=((s=s+Math.imul(d,rt)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(E,Z),n=(n=Math.imul(E,$))+Math.imul(A,Z)|0,s=Math.imul(A,$),r=r+Math.imul(R,D)|0,n=(n=n+Math.imul(R,K)|0)+Math.imul(q,D)|0,s=s+Math.imul(q,K)|0,r=r+Math.imul(k,z)|0,n=(n=n+Math.imul(k,Q)|0)+Math.imul(S,z)|0,s=s+Math.imul(S,Q)|0,r=r+Math.imul(w,V)|0,n=(n=n+Math.imul(w,G)|0)+Math.imul(_,V)|0,s=s+Math.imul(_,G)|0,r=r+Math.imul(v,Y)|0,n=(n=n+Math.imul(v,tt)|0)+Math.imul(M,Y)|0,s=s+Math.imul(M,tt)|0,r=r+Math.imul(f,it)|0,n=(n=n+Math.imul(f,rt)|0)+Math.imul(m,it)|0,s=s+Math.imul(m,rt)|0;var bt=(u+(r=r+Math.imul(c,st)|0)|0)+((8191&(n=(n=n+Math.imul(c,ot)|0)+Math.imul(d,st)|0))<<13)|0;u=((s=s+Math.imul(d,ot)|0)+(n>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(T,Z),n=(n=Math.imul(T,$))+Math.imul(j,Z)|0,s=Math.imul(j,$),r=r+Math.imul(E,D)|0,n=(n=n+Math.imul(E,K)|0)+Math.imul(A,D)|0,s=s+Math.imul(A,K)|0,r=r+Math.imul(R,z)|0,n=(n=n+Math.imul(R,Q)|0)+Math.imul(q,z)|0,s=s+Math.imul(q,Q)|0,r=r+Math.imul(k,V)|0,n=(n=n+Math.imul(k,G)|0)+Math.imul(S,V)|0,s=s+Math.imul(S,G)|0,r=r+Math.imul(w,Y)|0,n=(n=n+Math.imul(w,tt)|0)+Math.imul(_,Y)|0,s=s+Math.imul(_,tt)|0,r=r+Math.imul(v,it)|0,n=(n=n+Math.imul(v,rt)|0)+Math.imul(M,it)|0,s=s+Math.imul(M,rt)|0,r=r+Math.imul(f,st)|0,n=(n=n+Math.imul(f,ot)|0)+Math.imul(m,st)|0,s=s+Math.imul(m,ot)|0;var kt=(u+(r=r+Math.imul(c,at)|0)|0)+((8191&(n=(n=n+Math.imul(c,ut)|0)+Math.imul(d,at)|0))<<13)|0;u=((s=s+Math.imul(d,ut)|0)+(n>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(N,Z),n=(n=Math.imul(N,$))+Math.imul(U,Z)|0,s=Math.imul(U,$),r=r+Math.imul(T,D)|0,n=(n=n+Math.imul(T,K)|0)+Math.imul(j,D)|0,s=s+Math.imul(j,K)|0,r=r+Math.imul(E,z)|0,n=(n=n+Math.imul(E,Q)|0)+Math.imul(A,z)|0,s=s+Math.imul(A,Q)|0,r=r+Math.imul(R,V)|0,n=(n=n+Math.imul(R,G)|0)+Math.imul(q,V)|0,s=s+Math.imul(q,G)|0,r=r+Math.imul(k,Y)|0,n=(n=n+Math.imul(k,tt)|0)+Math.imul(S,Y)|0,s=s+Math.imul(S,tt)|0,r=r+Math.imul(w,it)|0,n=(n=n+Math.imul(w,rt)|0)+Math.imul(_,it)|0,s=s+Math.imul(_,rt)|0,r=r+Math.imul(v,st)|0,n=(n=n+Math.imul(v,ot)|0)+Math.imul(M,st)|0,s=s+Math.imul(M,ot)|0,r=r+Math.imul(f,at)|0,n=(n=n+Math.imul(f,ut)|0)+Math.imul(m,at)|0,s=s+Math.imul(m,ut)|0;var St=(u+(r=r+Math.imul(c,ct)|0)|0)+((8191&(n=(n=n+Math.imul(c,dt)|0)+Math.imul(d,ct)|0))<<13)|0;u=((s=s+Math.imul(d,dt)|0)+(n>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,Z),n=(n=Math.imul(B,$))+Math.imul(P,Z)|0,s=Math.imul(P,$),r=r+Math.imul(N,D)|0,n=(n=n+Math.imul(N,K)|0)+Math.imul(U,D)|0,s=s+Math.imul(U,K)|0,r=r+Math.imul(T,z)|0,n=(n=n+Math.imul(T,Q)|0)+Math.imul(j,z)|0,s=s+Math.imul(j,Q)|0,r=r+Math.imul(E,V)|0,n=(n=n+Math.imul(E,G)|0)+Math.imul(A,V)|0,s=s+Math.imul(A,G)|0,r=r+Math.imul(R,Y)|0,n=(n=n+Math.imul(R,tt)|0)+Math.imul(q,Y)|0,s=s+Math.imul(q,tt)|0,r=r+Math.imul(k,it)|0,n=(n=n+Math.imul(k,rt)|0)+Math.imul(S,it)|0,s=s+Math.imul(S,rt)|0,r=r+Math.imul(w,st)|0,n=(n=n+Math.imul(w,ot)|0)+Math.imul(_,st)|0,s=s+Math.imul(_,ot)|0,r=r+Math.imul(v,at)|0,n=(n=n+Math.imul(v,ut)|0)+Math.imul(M,at)|0,s=s+Math.imul(M,ut)|0,r=r+Math.imul(f,ct)|0,n=(n=n+Math.imul(f,dt)|0)+Math.imul(m,ct)|0,s=s+Math.imul(m,dt)|0;var It=(u+(r=r+Math.imul(c,ft)|0)|0)+((8191&(n=(n=n+Math.imul(c,mt)|0)+Math.imul(d,ft)|0))<<13)|0;u=((s=s+Math.imul(d,mt)|0)+(n>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(B,D),n=(n=Math.imul(B,K))+Math.imul(P,D)|0,s=Math.imul(P,K),r=r+Math.imul(N,z)|0,n=(n=n+Math.imul(N,Q)|0)+Math.imul(U,z)|0,s=s+Math.imul(U,Q)|0,r=r+Math.imul(T,V)|0,n=(n=n+Math.imul(T,G)|0)+Math.imul(j,V)|0,s=s+Math.imul(j,G)|0,r=r+Math.imul(E,Y)|0,n=(n=n+Math.imul(E,tt)|0)+Math.imul(A,Y)|0,s=s+Math.imul(A,tt)|0,r=r+Math.imul(R,it)|0,n=(n=n+Math.imul(R,rt)|0)+Math.imul(q,it)|0,s=s+Math.imul(q,rt)|0,r=r+Math.imul(k,st)|0,n=(n=n+Math.imul(k,ot)|0)+Math.imul(S,st)|0,s=s+Math.imul(S,ot)|0,r=r+Math.imul(w,at)|0,n=(n=n+Math.imul(w,ut)|0)+Math.imul(_,at)|0,s=s+Math.imul(_,ut)|0,r=r+Math.imul(v,ct)|0,n=(n=n+Math.imul(v,dt)|0)+Math.imul(M,ct)|0,s=s+Math.imul(M,dt)|0;var Rt=(u+(r=r+Math.imul(f,ft)|0)|0)+((8191&(n=(n=n+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;u=((s=s+Math.imul(m,mt)|0)+(n>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,r=Math.imul(B,z),n=(n=Math.imul(B,Q))+Math.imul(P,z)|0,s=Math.imul(P,Q),r=r+Math.imul(N,V)|0,n=(n=n+Math.imul(N,G)|0)+Math.imul(U,V)|0,s=s+Math.imul(U,G)|0,r=r+Math.imul(T,Y)|0,n=(n=n+Math.imul(T,tt)|0)+Math.imul(j,Y)|0,s=s+Math.imul(j,tt)|0,r=r+Math.imul(E,it)|0,n=(n=n+Math.imul(E,rt)|0)+Math.imul(A,it)|0,s=s+Math.imul(A,rt)|0,r=r+Math.imul(R,st)|0,n=(n=n+Math.imul(R,ot)|0)+Math.imul(q,st)|0,s=s+Math.imul(q,ot)|0,r=r+Math.imul(k,at)|0,n=(n=n+Math.imul(k,ut)|0)+Math.imul(S,at)|0,s=s+Math.imul(S,ut)|0,r=r+Math.imul(w,ct)|0,n=(n=n+Math.imul(w,dt)|0)+Math.imul(_,ct)|0,s=s+Math.imul(_,dt)|0;var qt=(u+(r=r+Math.imul(v,ft)|0)|0)+((8191&(n=(n=n+Math.imul(v,mt)|0)+Math.imul(M,ft)|0))<<13)|0;u=((s=s+Math.imul(M,mt)|0)+(n>>>13)|0)+(qt>>>26)|0,qt&=67108863,r=Math.imul(B,V),n=(n=Math.imul(B,G))+Math.imul(P,V)|0,s=Math.imul(P,G),r=r+Math.imul(N,Y)|0,n=(n=n+Math.imul(N,tt)|0)+Math.imul(U,Y)|0,s=s+Math.imul(U,tt)|0,r=r+Math.imul(T,it)|0,n=(n=n+Math.imul(T,rt)|0)+Math.imul(j,it)|0,s=s+Math.imul(j,rt)|0,r=r+Math.imul(E,st)|0,n=(n=n+Math.imul(E,ot)|0)+Math.imul(A,st)|0,s=s+Math.imul(A,ot)|0,r=r+Math.imul(R,at)|0,n=(n=n+Math.imul(R,ut)|0)+Math.imul(q,at)|0,s=s+Math.imul(q,ut)|0,r=r+Math.imul(k,ct)|0,n=(n=n+Math.imul(k,dt)|0)+Math.imul(S,ct)|0,s=s+Math.imul(S,dt)|0;var Ot=(u+(r=r+Math.imul(w,ft)|0)|0)+((8191&(n=(n=n+Math.imul(w,mt)|0)+Math.imul(_,ft)|0))<<13)|0;u=((s=s+Math.imul(_,mt)|0)+(n>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(B,Y),n=(n=Math.imul(B,tt))+Math.imul(P,Y)|0,s=Math.imul(P,tt),r=r+Math.imul(N,it)|0,n=(n=n+Math.imul(N,rt)|0)+Math.imul(U,it)|0,s=s+Math.imul(U,rt)|0,r=r+Math.imul(T,st)|0,n=(n=n+Math.imul(T,ot)|0)+Math.imul(j,st)|0,s=s+Math.imul(j,ot)|0,r=r+Math.imul(E,at)|0,n=(n=n+Math.imul(E,ut)|0)+Math.imul(A,at)|0,s=s+Math.imul(A,ut)|0,r=r+Math.imul(R,ct)|0,n=(n=n+Math.imul(R,dt)|0)+Math.imul(q,ct)|0,s=s+Math.imul(q,dt)|0;var Et=(u+(r=r+Math.imul(k,ft)|0)|0)+((8191&(n=(n=n+Math.imul(k,mt)|0)+Math.imul(S,ft)|0))<<13)|0;u=((s=s+Math.imul(S,mt)|0)+(n>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,it),n=(n=Math.imul(B,rt))+Math.imul(P,it)|0,s=Math.imul(P,rt),r=r+Math.imul(N,st)|0,n=(n=n+Math.imul(N,ot)|0)+Math.imul(U,st)|0,s=s+Math.imul(U,ot)|0,r=r+Math.imul(T,at)|0,n=(n=n+Math.imul(T,ut)|0)+Math.imul(j,at)|0,s=s+Math.imul(j,ut)|0,r=r+Math.imul(E,ct)|0,n=(n=n+Math.imul(E,dt)|0)+Math.imul(A,ct)|0,s=s+Math.imul(A,dt)|0;var At=(u+(r=r+Math.imul(R,ft)|0)|0)+((8191&(n=(n=n+Math.imul(R,mt)|0)+Math.imul(q,ft)|0))<<13)|0;u=((s=s+Math.imul(q,mt)|0)+(n>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(B,st),n=(n=Math.imul(B,ot))+Math.imul(P,st)|0,s=Math.imul(P,ot),r=r+Math.imul(N,at)|0,n=(n=n+Math.imul(N,ut)|0)+Math.imul(U,at)|0,s=s+Math.imul(U,ut)|0,r=r+Math.imul(T,ct)|0,n=(n=n+Math.imul(T,dt)|0)+Math.imul(j,ct)|0,s=s+Math.imul(j,dt)|0;var xt=(u+(r=r+Math.imul(E,ft)|0)|0)+((8191&(n=(n=n+Math.imul(E,mt)|0)+Math.imul(A,ft)|0))<<13)|0;u=((s=s+Math.imul(A,mt)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,at),n=(n=Math.imul(B,ut))+Math.imul(P,at)|0,s=Math.imul(P,ut),r=r+Math.imul(N,ct)|0,n=(n=n+Math.imul(N,dt)|0)+Math.imul(U,ct)|0,s=s+Math.imul(U,dt)|0;var Tt=(u+(r=r+Math.imul(T,ft)|0)|0)+((8191&(n=(n=n+Math.imul(T,mt)|0)+Math.imul(j,ft)|0))<<13)|0;u=((s=s+Math.imul(j,mt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,ct),n=(n=Math.imul(B,dt))+Math.imul(P,ct)|0,s=Math.imul(P,dt);var jt=(u+(r=r+Math.imul(N,ft)|0)|0)+((8191&(n=(n=n+Math.imul(N,mt)|0)+Math.imul(U,ft)|0))<<13)|0;u=((s=s+Math.imul(U,mt)|0)+(n>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Ct=(u+(r=Math.imul(B,ft))|0)+((8191&(n=(n=Math.imul(B,mt))+Math.imul(P,ft)|0))<<13)|0;return u=((s=Math.imul(P,mt))+(n>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,a[0]=gt,a[1]=vt,a[2]=Mt,a[3]=yt,a[4]=wt,a[5]=_t,a[6]=bt,a[7]=kt,a[8]=St,a[9]=It,a[10]=Rt,a[11]=qt,a[12]=Ot,a[13]=Et,a[14]=At,a[15]=xt,a[16]=Tt,a[17]=jt,a[18]=Ct,0!==u&&(a[19]=u,i.length++),i};function f(t,e,i){return(new m).mulp(t,e,i)}function m(t,e){this.x=t,this.y=e}Math.imul||(p=d),s.prototype.mulTo=function(t,e){var i,r=this.length+t.length;return i=10===this.length&&10===t.length?p(this,t,e):r<63?d(this,t,e):r<1024?function(t,e,i){i.negative=e.negative^t.negative,i.length=t.length+e.length;for(var r=0,n=0,s=0;s>>26)|0)>>>26,o&=67108863}i.words[s]=h,r=o,o=n}return 0!==r?i.words[s]=r:i.length--,i.strip()}(this,t,e):f(this,t,e),i},m.prototype.makeRBT=function(t){for(var e=new Array(t),i=s.prototype._countBits(t)-1,r=0;r>=1;return r},m.prototype.permute=function(t,e,i,r,n,s){for(var o=0;o>>=1)n++;return 1<>>=13,i[2*o+1]=8191&s,s>>>=13;for(o=2*e;o>=26,e+=n/67108864|0,e+=s>>>26,this.words[i]=67108863&s}return 0!==e&&(this.words[i]=e,this.length++),this},s.prototype.muln=function(t){return this.clone().imuln(t)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),i=0;i>>n}return e}(t);if(0===e.length)return new s(1);for(var i=this,r=0;r=0);var e,i=t%26,n=(t-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var o=0;for(e=0;e>>26-i}o&&(this.words[e]=o,this.length++)}if(0!==n){for(e=this.length-1;e>=0;e--)this.words[e+n]=this.words[e];for(e=0;e=0),n=e?(e-e%26)/26:0;var s=t%26,o=Math.min((t-s)/26,this.length),h=67108863^67108863>>>s<o)for(this.length-=o,u=0;u=0&&(0!==l||u>=n);u--){var c=0|this.words[u];this.words[u]=l<<26-s|c>>>s,l=c&h}return a&&0!==l&&(a.words[a.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},s.prototype.ishrn=function(t,e,i){return r(0===this.negative),this.iushrn(t,e,i)},s.prototype.shln=function(t){return this.clone().ishln(t)},s.prototype.ushln=function(t){return this.clone().iushln(t)},s.prototype.shrn=function(t){return this.clone().ishrn(t)},s.prototype.ushrn=function(t){return this.clone().iushrn(t)},s.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,i=(t-e)/26,n=1<=0);var e=t%26,i=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==e&&i++,this.length=Math.min(i,this.length),0!==e){var n=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},s.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(a/67108864|0),this.words[n+i]=67108863&s}for(;n>26,this.words[n+i]=67108863&s;if(0===h)return this.strip();for(r(-1===h),h=0,n=0;n>26,this.words[n]=67108863&s;return this.negative=1,this.strip()},s.prototype._wordDiv=function(t,e){var i=(this.length,t.length),r=this.clone(),n=t,o=0|n.words[n.length-1];0!==(i=26-this._countBits(o))&&(n=n.ushln(i),r.iushln(i),o=0|n.words[n.length-1]);var h,a=r.length-n.length;if("mod"!==e){(h=new s(null)).length=a+1,h.words=new Array(h.length);for(var u=0;u=0;c--){var d=67108864*(0|r.words[n.length+c])+(0|r.words[n.length+c-1]);for(d=Math.min(d/o|0,67108863),r._ishlnsubmul(n,d,c);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(n,1,c),r.isZero()||(r.negative^=1);h&&(h.words[c]=d)}return h&&h.strip(),r.strip(),"div"!==e&&0!==i&&r.iushrn(i),{div:h||null,mod:r}},s.prototype.divmod=function(t,e,i){return r(!t.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===t.negative?(h=this.neg().divmod(t,e),"mod"!==e&&(n=h.div.neg()),"div"!==e&&(o=h.mod.neg(),i&&0!==o.negative&&o.iadd(t)),{div:n,mod:o}):0===this.negative&&0!==t.negative?(h=this.divmod(t.neg(),e),"mod"!==e&&(n=h.div.neg()),{div:n,mod:h.mod}):0!=(this.negative&t.negative)?(h=this.neg().divmod(t.neg(),e),"div"!==e&&(o=h.mod.neg(),i&&0!==o.negative&&o.isub(t)),{div:h.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new s(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new s(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new s(this.modn(t.words[0]))}:this._wordDiv(t,e);var n,o,h},s.prototype.div=function(t){return this.divmod(t,"div",!1).div},s.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},s.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},s.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var i=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),n=t.andln(1),s=i.cmp(r);return s<0||1===n&&0===s?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},s.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,i=0,n=this.length-1;n>=0;n--)i=(e*i+(0|this.words[n]))%t;return i},s.prototype.idivn=function(t){r(t<=67108863);for(var e=0,i=this.length-1;i>=0;i--){var n=(0|this.words[i])+67108864*e;this.words[i]=n/t|0,e=n%t}return this.strip()},s.prototype.divn=function(t){return this.clone().idivn(t)},s.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n=new s(1),o=new s(0),h=new s(0),a=new s(1),u=0;e.isEven()&&i.isEven();)e.iushrn(1),i.iushrn(1),++u;for(var l=i.clone(),c=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(n.isOdd()||o.isOdd())&&(n.iadd(l),o.isub(c)),n.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(i.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(h.isOdd()||a.isOdd())&&(h.iadd(l),a.isub(c)),h.iushrn(1),a.iushrn(1);e.cmp(i)>=0?(e.isub(i),n.isub(h),o.isub(a)):(i.isub(e),h.isub(n),a.isub(o))}return{a:h,b:a,gcd:i.iushln(u)}},s.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,i=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var n,o=new s(1),h=new s(0),a=i.clone();e.cmpn(1)>0&&i.cmpn(1)>0;){for(var u=0,l=1;0==(e.words[0]&l)&&u<26;++u,l<<=1);if(u>0)for(e.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(a),o.iushrn(1);for(var c=0,d=1;0==(i.words[0]&d)&&c<26;++c,d<<=1);if(c>0)for(i.iushrn(c);c-- >0;)h.isOdd()&&h.iadd(a),h.iushrn(1);e.cmp(i)>=0?(e.isub(i),o.isub(h)):(i.isub(e),h.isub(o))}return(n=0===e.cmpn(1)?o:h).cmpn(0)<0&&n.iadd(t),n},s.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),i=t.clone();e.negative=0,i.negative=0;for(var r=0;e.isEven()&&i.isEven();r++)e.iushrn(1),i.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=e.cmp(i);if(n<0){var s=e;e=i,i=s}else if(0===n||0===i.cmpn(1))break;e.isub(i)}return i.iushln(r)},s.prototype.invm=function(t){return this.egcd(t).a.umod(t)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(t){return this.words[0]&t},s.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,i=(t-e)/26,n=1<>>26,h&=67108863,this.words[o]=h}return 0!==s&&(this.words[o]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(t){var e,i=t<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this.strip(),this.length>1)e=1;else{i&&(t=-t),r(t<=67108863,"Number is too big");var n=0|this.words[0];e=n===t?0:nt.length)return 1;if(this.length=0;i--){var r=0|this.words[i],n=0|t.words[i];if(r!==n){rn&&(e=1);break}}return e},s.prototype.gtn=function(t){return 1===this.cmpn(t)},s.prototype.gt=function(t){return 1===this.cmp(t)},s.prototype.gten=function(t){return this.cmpn(t)>=0},s.prototype.gte=function(t){return this.cmp(t)>=0},s.prototype.ltn=function(t){return-1===this.cmpn(t)},s.prototype.lt=function(t){return-1===this.cmp(t)},s.prototype.lten=function(t){return this.cmpn(t)<=0},s.prototype.lte=function(t){return this.cmp(t)<=0},s.prototype.eqn=function(t){return 0===this.cmpn(t)},s.prototype.eq=function(t){return 0===this.cmp(t)},s.red=function(t){return new b(t)},s.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},s.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(t){return this.red=t,this},s.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},s.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},s.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},s.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},s.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},s.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},s.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},s.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},s.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new s(e,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function b(t){if("string"==typeof t){var e=s._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){b.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new s(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,i=t;do{this.split(i,this.tmp),e=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?i.isub(this.p):i.strip(),i},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},n(M,v),M.prototype.split=function(t,e){for(var i=4194303,r=Math.min(t.length,9),n=0;n>>22,s=o}s>>>=22,t.words[n-10]=s,0===s&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,i=0;i>>=26,t.words[i]=n,e=r}return 0!==e&&(t.words[t.length++]=e),t},s._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new y;else if("p192"===t)e=new w;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new _}return g[t]=e,e},b.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},b.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},b.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},b.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},b.prototype.add=function(t,e){this._verify2(t,e);var i=t.add(e);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},b.prototype.iadd=function(t,e){this._verify2(t,e);var i=t.iadd(e);return i.cmp(this.m)>=0&&i.isub(this.m),i},b.prototype.sub=function(t,e){this._verify2(t,e);var i=t.sub(e);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},b.prototype.isub=function(t,e){this._verify2(t,e);var i=t.isub(e);return i.cmpn(0)<0&&i.iadd(this.m),i},b.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},b.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},b.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},b.prototype.isqr=function(t){return this.imul(t,t.clone())},b.prototype.sqr=function(t){return this.mul(t,t)},b.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var i=this.m.add(new s(1)).iushrn(2);return this.pow(t,i)}for(var n=this.m.subn(1),o=0;!n.isZero()&&0===n.andln(1);)o++,n.iushrn(1);r(!n.isZero());var h=new s(1).toRed(this),a=h.redNeg(),u=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new s(2*l*l).toRed(this);0!==this.pow(l,u).cmp(a);)l.redIAdd(a);for(var c=this.pow(l,n),d=this.pow(t,n.addn(1).iushrn(1)),p=this.pow(t,n),f=o;0!==p.cmp(h);){for(var m=p,g=0;0!==m.cmp(h);g++)m=m.redSqr();r(g=0;r--){for(var u=e.words[r],l=a-1;l>=0;l--){var c=u>>l&1;n!==i[0]&&(n=this.sqr(n)),0!==c||0!==o?(o<<=1,o|=c,(4===++h||0===r&&0===l)&&(n=this.mul(n,i[o]),h=0,o=0)):h=0}a=26}return n},b.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},b.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},s.mont=function(t){return new k(t)},n(k,b),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var i=t.imul(e),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new s(0)._forceRed(this);var i=t.mul(e),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),o=n;return n.cmp(this.m)>=0?o=n.isub(this.m):n.cmpn(0)<0&&(o=n.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t=i.nmd(t),this)},7357:t=>{t.exports=r,r.strict=n,r.loose=s;var e=Object.prototype.toString,i={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function r(t){return n(t)||s(t)}function n(t){return t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array}function s(t){return i[e.call(t)]}},37658:(t,e,i)=>{"use strict";const r=i(89151),n=i(9569),s=i(72717);function o(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function h(t,e){return e.encode?e.strict?r(t):encodeURIComponent(t):t}function a(t,e){return e.decode?n(t):t}function u(t){return Array.isArray(t)?t.sort():"object"==typeof t?u(Object.keys(t)).sort(((t,e)=>Number(t)-Number(e))).map((e=>t[e])):t}function l(t){const e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function c(t){const e=(t=l(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function d(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function p(t,e){o((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const i=function(t){let e;switch(t.arrayFormat){case"index":return(t,i,r)=>{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===r[t]&&(r[t]={}),r[t][e[1]]=i):r[t]=i};case"bracket":return(t,i,r)=>{e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==r[t]?r[t]=[].concat(r[t],i):r[t]=[i]:r[t]=i};case"comma":case"separator":return(e,i,r)=>{const n="string"==typeof i&&i.split("").indexOf(t.arrayFormatSeparator)>-1?i.split(t.arrayFormatSeparator).map((e=>a(e,t))):null===i?i:a(i,t);r[e]=n};default:return(t,e,i)=>{void 0!==i[t]?i[t]=[].concat(i[t],e):i[t]=e}}}(e),r=Object.create(null);if("string"!=typeof t)return r;if(!(t=t.trim().replace(/^[?#&]/,"")))return r;for(const n of t.split("&")){let[t,o]=s(e.decode?n.replace(/\+/g," "):n,"=");o=void 0===o?null:["comma","separator"].includes(e.arrayFormat)?o:a(o,e),i(a(t,e),o,r)}for(const n of Object.keys(r)){const t=r[n];if("object"==typeof t&&null!==t)for(const i of Object.keys(t))t[i]=d(t[i],e);else r[n]=d(t,e)}return!1===e.sort?r:(!0===e.sort?Object.keys(r).sort():Object.keys(r).sort(e.sort)).reduce(((t,e)=>{const i=r[e];return Boolean(i)&&"object"==typeof i&&!Array.isArray(i)?t[e]=u(i):t[e]=i,t}),Object.create(null))}e.extract=c,e.parse=p,e.stringify=(t,e)=>{if(!t)return"";o((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const i=i=>e.skipNull&&null==t[i]||e.skipEmptyString&&""===t[i],r=function(t){switch(t.arrayFormat){case"index":return e=>(i,r)=>{const n=i.length;return void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?i:null===r?[...i,[h(e,t),"[",n,"]"].join("")]:[...i,[h(e,t),"[",h(n,t),"]=",h(r,t)].join("")]};case"bracket":return e=>(i,r)=>void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?i:null===r?[...i,[h(e,t),"[]"].join("")]:[...i,[h(e,t),"[]=",h(r,t)].join("")];case"comma":case"separator":return e=>(i,r)=>null==r||0===r.length?i:0===i.length?[[h(e,t),"=",h(r,t)].join("")]:[[i,h(r,t)].join(t.arrayFormatSeparator)];default:return e=>(i,r)=>void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?i:null===r?[...i,h(e,t)]:[...i,[h(e,t),"=",h(r,t)].join("")]}}(e),n={};for(const o of Object.keys(t))i(o)||(n[o]=t[o]);const s=Object.keys(n);return!1!==e.sort&&s.sort(e.sort),s.map((i=>{const n=t[i];return void 0===n?"":null===n?h(i,e):Array.isArray(n)?n.reduce(r(i),[]).join("&"):h(i,e)+"="+h(n,e)})).filter((t=>t.length>0)).join("&")},e.parseUrl=(t,e)=>{e=Object.assign({decode:!0},e);const[i,r]=s(t,"#");return Object.assign({url:i.split("?")[0]||"",query:p(c(t),e)},e&&e.parseFragmentIdentifier&&r?{fragmentIdentifier:a(r,e)}:{})},e.stringifyUrl=(t,i)=>{i=Object.assign({encode:!0,strict:!0},i);const r=l(t.url).split("?")[0]||"",n=e.extract(t.url),s=e.parse(n,{sort:!1}),o=Object.assign(s,t.query);let a=e.stringify(o,i);a&&(a=`?${a}`);let u=function(t){let e="";const i=t.indexOf("#");return-1!==i&&(e=t.slice(i)),e}(t.url);return t.fragmentIdentifier&&(u=`#${h(t.fragmentIdentifier,i)}`),`${r}${a}${u}`}},76186:(t,e,i)=>{var r=i(75291).Buffer,n=i(7357).strict;t.exports=function(t){if(n(t)){var e=r.from(t.buffer);return t.byteLength!==t.buffer.byteLength&&(e=e.slice(t.byteOffset,t.byteOffset+t.byteLength)),e}return r.from(t)}}}]); \ No newline at end of file diff --git a/4582.af172a18887555af.esm.js b/4582.af172a18887555af.esm.js new file mode 100644 index 000000000..6a62dcd48 --- /dev/null +++ b/4582.af172a18887555af.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4582],{94582:(n,s,t)=>{t.r(s),t.d(s,{default:()=>o});const o='\n\n\n\n\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\n\n\t\n\t\n\n\n\n\n\t\n\t\n\t\n\t\n\n\n\t\n\t\n\t\n\t\n\n\n\n\n\n\n\t\n\t\n\n\n\n\n\n'}}]); \ No newline at end of file diff --git a/4656.b2fb24af5105e864.esm.js b/4656.b2fb24af5105e864.esm.js new file mode 100644 index 000000000..8af2a6038 --- /dev/null +++ b/4656.b2fb24af5105e864.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4656],{64656:(l,n,e)=>{e.r(n),e.d(n,{default:()=>C});const C='\n\n\n\n\n'}}]); \ No newline at end of file diff --git a/4783.90f55e76df46950b.esm.js b/4783.90f55e76df46950b.esm.js new file mode 100644 index 000000000..823cd2868 --- /dev/null +++ b/4783.90f55e76df46950b.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4783],{94783:(C,e,l)=>{l.r(e),l.d(e,{default:()=>L});const L='\n\n\n\n'}}]); \ No newline at end of file diff --git a/4918.e856eae06761f0a8.esm.js b/4918.e856eae06761f0a8.esm.js new file mode 100644 index 000000000..9cab4427b --- /dev/null +++ b/4918.e856eae06761f0a8.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4918],{89682:(e,t,s)=>{s.d(t,{t0:()=>E,zv:()=>v,uA:()=>I,uc:()=>B,jb:()=>K,zb:()=>O,AV:()=>y,Ic:()=>Y,Vs:()=>ee});Symbol();const o=Symbol();const n=Object.getPrototypeOf,a=new WeakMap,r=e=>e&&(a.has(e)?a.get(e):n(e)===Object.prototype||n(e)===Array.prototype),i=(e,t=!0)=>{a.set(e,t)};var l=s(98399);const c=e=>"object"==typeof e&&null!==e,d=new WeakMap,p=new WeakSet,u=(e=Object.is,t=((e,t)=>new Proxy(e,t)),s=(e=>c(e)&&!p.has(e)&&(Array.isArray(e)||!(Symbol.iterator in e))&&!(e instanceof WeakMap)&&!(e instanceof WeakSet)&&!(e instanceof Error)&&!(e instanceof Number)&&!(e instanceof Date)&&!(e instanceof String)&&!(e instanceof RegExp)&&!(e instanceof ArrayBuffer)),n=(e=>e.configurable&&e.enumerable&&e.writable),a=(e=>{switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e}}),l=new WeakMap,u=((e,t,s=a)=>{const o=l.get(e);if((null==o?void 0:o[0])===t)return o[1];const n=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));return i(n,!0),l.set(e,[t,n]),Reflect.ownKeys(e).forEach((t=>{if(Object.getOwnPropertyDescriptor(n,t))return;const o=Reflect.get(e,t),a={value:o,enumerable:!0,configurable:!0};if(p.has(o))i(o,!1);else if(o instanceof Promise)delete a.value,a.get=()=>s(o);else if(d.has(o)){const[e,t]=d.get(o);a.value=u(e,t(),s)}Object.defineProperty(n,t,a)})),Object.preventExtensions(n)}),f=new WeakMap,h=[1,1],g=(a=>{if(!c(a))throw new Error("object required");const i=f.get(a);if(i)return i;let l=h[0];const m=new Set,b=(e,t=++h[0])=>{l!==t&&(l=t,m.forEach((s=>s(e,t))))};let y=h[1];const v=e=>(t,s)=>{const o=[...t];o[1]=[e,...o[1]],b(o,s)},w=new Map,I=e=>{var t;const s=w.get(e);s&&(w.delete(e),null==(t=s[1])||t.call(s))},C=Array.isArray(a)?[]:Object.create(Object.getPrototypeOf(a)),O=(t,n,a,i,l)=>{if(t&&(e(n,i)||f.has(i)&&e(n,f.get(i))))return;I(a),c(i)&&(i=(e=>r(e)&&e[o]||null)(i)||i);let u=i;if(i instanceof Promise)i.then((e=>{i.status="fulfilled",i.value=e,b(["resolve",[a],e])})).catch((e=>{i.status="rejected",i.reason=e,b(["reject",[a],e])}));else{!d.has(i)&&s(i)&&(u=g(i));const e=!p.has(u)&&d.get(u);e&&((e,t)=>{if(w.has(e))throw new Error("prop listener already exists");if(m.size){const s=t[3](v(e));w.set(e,[t,s])}else w.set(e,[t])})(a,e)}l(u),b(["set",[a],i,n])},W=t(C,{deleteProperty(e,t){const s=Reflect.get(e,t);I(t);const o=Reflect.deleteProperty(e,t);return o&&b(["delete",[t],s]),o},set(e,t,s,o){const n=Reflect.has(e,t),a=Reflect.get(e,t,o);return O(n,a,t,s,(s=>{Reflect.set(e,t,s,o)})),!0},defineProperty(e,t,s){if(n(s)){const o=Reflect.getOwnPropertyDescriptor(e,t);if(!o||n(o))return O(!!o&&"value"in o,null==o?void 0:o.value,t,s.value,(o=>{Reflect.defineProperty(e,t,{...s,value:o})})),!0}return Reflect.defineProperty(e,t,s)}});f.set(a,W);const E=[C,(e=++h[1])=>(y===e||m.size||(y=e,w.forEach((([t])=>{const s=t[1](e);s>l&&(l=s)}))),l),u,e=>{m.add(e),1===m.size&&w.forEach((([e,t],s)=>{if(t)throw new Error("remove already exists");const o=e[3](v(s));w.set(s,[e,o])}));return()=>{m.delete(e),0===m.size&&w.forEach((([e,t],s)=>{t&&(t(),w.set(s,[e]))}))}}];return d.set(W,E),Reflect.ownKeys(a).forEach((e=>{const t=Object.getOwnPropertyDescriptor(a,e);"value"in t&&(W[e]=a[e],delete t.value,delete t.writable),Object.defineProperty(C,e,t)})),W}))=>[g,d,p,e,t,s,n,a,l,u,f,h],[f]=u();function h(e={}){return f(e)}function g(e,t,s){const o=d.get(e);let n;o||l.warn("Please use proxy object");const a=[],r=o[3];let i=!1;const c=r((e=>{a.push(e),s?t(a.splice(0)):n||(n=Promise.resolve().then((()=>{n=void 0,i&&t(a.splice(0))})))}));return i=!0,()=>{i=!1,c()}}var m=s(98399);const b=h({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),y={state:b,subscribe:e=>g(b,(()=>e(b))),push(e,t){e!==b.view&&(b.view=e,t&&(b.data=t),b.history.push(e))},reset(e){b.view=e,b.history=[e]},replace(e){b.history.length>1&&(b.history[b.history.length-1]=e,b.view=e)},goBack(){if(b.history.length>1){b.history.pop();const[e]=b.history.slice(-1);b.view=e}},setData(e){b.data=e}},v={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile:()=>typeof window<"u"&&Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid:()=>v.isMobile()&&navigator.userAgent.toLowerCase().includes("android"),isIos(){const e=navigator.userAgent.toLowerCase();return v.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl:e=>e.startsWith("http://")||e.startsWith("https://"),isArray:e=>Array.isArray(e)&&e.length>0,formatNativeUrl(e,t,s){if(v.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let o=e;o.includes("://")||(o=e.replaceAll("/","").replaceAll(":",""),o=`${o}://`),o.endsWith("/")||(o=`${o}/`),this.setWalletConnectDeepLink(o,s);return`${o}wc?uri=${encodeURIComponent(t)}`},formatUniversalUrl(e,t,s){if(!v.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let o=e;o.endsWith("/")||(o=`${o}/`),this.setWalletConnectDeepLink(o,s);return`${o}wc?uri=${encodeURIComponent(t)}`},wait:async e=>new Promise((t=>{setTimeout(t,e)})),openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(v.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{m.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(v.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{m.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(v.WALLETCONNECT_DEEPLINK_CHOICE)}catch{m.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(v.WCM_VERSION,"2.6.1")}catch{m.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;const t=null==(e=y.state.data)?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},w=h({enabled:typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),userSessionId:"",events:[],connectedWalletId:void 0}),I={state:w,subscribe:e=>g(w.events,(()=>e(function(e,t){const s=d.get(e);s||l.warn("Please use proxy object");const[o,n,a]=s;return a(o,n(),t)}(w.events[w.events.length-1])))),initialize(){w.enabled&&typeof(null==crypto?void 0:crypto.randomUUID)<"u"&&(w.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){w.connectedWalletId=e},click(e){if(w.enabled){const t={type:"CLICK",name:e.name,userSessionId:w.userSessionId,timestamp:Date.now(),data:e};w.events.push(t)}},track(e){if(w.enabled){const t={type:"TRACK",name:e.name,userSessionId:w.userSessionId,timestamp:Date.now(),data:e};w.events.push(t)}},view(e){if(w.enabled){const t={type:"VIEW",name:e.name,userSessionId:w.userSessionId,timestamp:Date.now(),data:e};w.events.push(t)}}},C=h({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),O={state:C,subscribe:e=>g(C,(()=>e(C))),setChains(e){C.chains=e},setWalletConnectUri(e){C.walletConnectUri=e},setIsCustomDesktop(e){C.isCustomDesktop=e},setIsCustomMobile(e){C.isCustomMobile=e},setIsDataLoaded(e){C.isDataLoaded=e},setIsUiLoaded(e){C.isUiLoaded=e},setIsAuth(e){C.isAuth=e}},W=h({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),E={state:W,subscribe:e=>g(W,(()=>e(W))),setConfig(e){var t,s;I.initialize(),O.setChains(e.chains),O.setIsAuth(Boolean(e.enableAuthMode)),O.setIsCustomMobile(Boolean(null==(t=e.mobileWallets)?void 0:t.length)),O.setIsCustomDesktop(Boolean(null==(s=e.desktopWallets)?void 0:s.length)),v.setModalVersionInStorage(),Object.assign(W,e)}};var j=Object.defineProperty,L=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,M=(e,t,s)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;const P="https://explorer-api.walletconnect.com",U="wcm",D="js-2.6.1";async function S(e,t){const s=((e,t)=>{for(var s in t||(t={}))A.call(t,s)&&M(e,s,t[s]);if(L)for(var s of L(t))k.call(t,s)&&M(e,s,t[s]);return e})({sdkType:U,sdkVersion:D},t),o=new URL(e,P);return o.searchParams.append("projectId",E.state.projectId),Object.entries(s).forEach((([e,t])=>{t&&o.searchParams.append(e,String(t))})),(await fetch(o)).json()}const N={getDesktopListings:async e=>S("/w3m/v1/getDesktopListings",e),getMobileListings:async e=>S("/w3m/v1/getMobileListings",e),getInjectedListings:async e=>S("/w3m/v1/getInjectedListings",e),getAllListings:async e=>S("/w3m/v1/getAllListings",e),getWalletImageUrl:e=>`${P}/w3m/v1/getWalletImage/${e}?projectId=${E.state.projectId}&sdkType=wcm&sdkVersion=js-2.6.1`,getAssetImageUrl:e=>`${P}/w3m/v1/getAssetImage/${e}?projectId=${E.state.projectId}&sdkType=wcm&sdkVersion=js-2.6.1`};var R=Object.defineProperty,x=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable,V=(e,t,s)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;const $=v.isMobile(),z=h({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),B={state:z,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=E.state;if("NONE"===e||"ALL"===t&&!e)return z.recomendedWallets;if(v.isArray(e)){const t={recommendedIds:e.join(",")},{listings:s}=await N.getAllListings(t),o=Object.values(s);o.sort(((t,s)=>e.indexOf(t.id)-e.indexOf(s.id))),z.recomendedWallets=o}else{const{chains:e,isAuth:s}=O.state,o=e?.join(","),n=v.isArray(t),a={page:1,sdks:s?"auth_v1":void 0,entries:v.RECOMMENDED_WALLET_AMOUNT,chains:o,version:2,excludedIds:n?t.join(","):void 0},{listings:r}=$?await N.getMobileListings(a):await N.getDesktopListings(a);z.recomendedWallets=Object.values(r)}return z.recomendedWallets},async getWallets(e){const t=((e,t)=>{for(var s in t||(t={}))T.call(t,s)&&V(e,s,t[s]);if(x)for(var s of x(t))_.call(t,s)&&V(e,s,t[s]);return e})({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:o}=E.state,{recomendedWallets:n}=z;if("ALL"===o)return z.wallets;n.length?t.excludedIds=n.map((e=>e.id)).join(","):v.isArray(s)&&(t.excludedIds=s.join(",")),v.isArray(o)&&(t.excludedIds=[t.excludedIds,o].filter(Boolean).join(",")),O.state.isAuth&&(t.sdks="auth_v1");const{page:a,search:r}=e,{listings:i,total:l}=$?await N.getMobileListings(t):await N.getDesktopListings(t),c=Object.values(i),d=r?"search":"wallets";return z[d]={listings:[...z[d].listings,...c],total:l,page:a??1},{listings:c,total:l}},getWalletImageUrl:e=>N.getWalletImageUrl(e),getAssetImageUrl:e=>N.getAssetImageUrl(e),resetSearch(){z.search={listings:[],total:0,page:1}}},H=h({open:!1}),K={state:H,subscribe:e=>g(H,(()=>e(H))),open:async e=>new Promise((t=>{const{isUiLoaded:s,isDataLoaded:o}=O.state;if(v.removeWalletConnectDeepLink(),O.setWalletConnectUri(e?.uri),O.setChains(e?.chains),y.reset("ConnectWallet"),s&&o)H.open=!0,t();else{const e=setInterval((()=>{const s=O.state;s.isUiLoaded&&s.isDataLoaded&&(clearInterval(e),H.open=!0,t())}),200)}})),close(){H.open=!1}};var J=Object.defineProperty,q=Object.getOwnPropertySymbols,F=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,Q=(e,t,s)=>t in e?J(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;const X=h({themeMode:typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}),Y={state:X,subscribe:e=>g(X,(()=>e(X))),setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(X.themeMode=t),s&&(X.themeVariables=((e,t)=>{for(var s in t||(t={}))F.call(t,s)&&Q(e,s,t[s]);if(q)for(var s of q(t))G.call(t,s)&&Q(e,s,t[s]);return e})({},s))}},Z=h({open:!1,message:"",variant:"success"}),ee={state:Z,subscribe:e=>g(Z,(()=>e(Z))),openToast(e,t){Z.open=!0,Z.message=e,Z.variant=t},closeToast(){Z.open=!1}}},74918:(e,t,s)=>{s.r(t),s.d(t,{WalletConnectModal:()=>n});var o=s(89682);class n{constructor(e){this.openModal=o.jb.open,this.closeModal=o.jb.close,this.subscribeModal=o.jb.subscribe,this.setTheme=o.Ic.setThemeConfig,o.Ic.setThemeConfig(e),o.t0.setConfig(e),this.initUi()}async initUi(){if(typeof window<"u"){await Promise.all([s.e(8592),s.e(3355)]).then(s.bind(s,63355));const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),o.zb.setIsUiLoaded(!0)}}}}}]); \ No newline at end of file diff --git a/5194.3f6b42ebfcec5db6.esm.js b/5194.3f6b42ebfcec5db6.esm.js new file mode 100644 index 000000000..6c8c9332f --- /dev/null +++ b/5194.3f6b42ebfcec5db6.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5194],{5194:(e,l,n)=>{n.r(l),n.d(l,{default:()=>i});const i='\n \n \n \n \n \n'}}]); \ No newline at end of file diff --git a/5207.519c94da46aef2f2.esm.js b/5207.519c94da46aef2f2.esm.js new file mode 100644 index 000000000..84bf01344 --- /dev/null +++ b/5207.519c94da46aef2f2.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5207],{5207:(C,s,e)=>{e.r(s),e.d(s,{default:()=>n});const n='\n\n\n'}}]); \ No newline at end of file diff --git a/5287.8c601b3fcf5b22b1.esm.js b/5287.8c601b3fcf5b22b1.esm.js new file mode 100644 index 000000000..764be1ecd --- /dev/null +++ b/5287.8c601b3fcf5b22b1.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5287],{25287:(C,t,h)=>{h.r(t),h.d(t,{default:()=>l});const l='\n\n\n\n'}}]); \ No newline at end of file diff --git a/5472.28581cf37798e7a7.esm.js b/5472.28581cf37798e7a7.esm.js new file mode 100644 index 000000000..f0edf1f3c --- /dev/null +++ b/5472.28581cf37798e7a7.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5472],{45472:(n,s,e)=>{e.r(s),e.d(s,{default:()=>l});const l='\n\n\n \n \n \n \n\n\n \n \n\n\n'}}]); \ No newline at end of file diff --git a/5712.57e18a42301313bf.esm.js b/5712.57e18a42301313bf.esm.js new file mode 100644 index 000000000..eed15dd09 --- /dev/null +++ b/5712.57e18a42301313bf.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5712],{75712:(M,I,N)=>{N.r(I),N.d(I,{default:()=>j});const j="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIyIiBoZWlnaHQ9IjEyNCIgdmlld0JveD0iMCAwIDEyMiAxMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxtYXNrIGlkPSJtYXNrMF8zMF8xMTAiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSIxMjIiIGhlaWdodD0iMTI0Ij4KPHBhdGggZD0iTTEyMS43ODcgMzQuODMzMUw2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ii8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI0RBQkRGRiIgc3RvcC1vcGFjaXR5PSIwIi8+CjwvcmFkaWFsR3JhZGllbnQ+CjwvZGVmcz4KPC9zdmc+Cg=="}}]); \ No newline at end of file diff --git a/5926.751187af64f973dc.esm.js b/5926.751187af64f973dc.esm.js new file mode 100644 index 000000000..509be4d17 --- /dev/null +++ b/5926.751187af64f973dc.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5926],{15926:(i,t,n)=>{n.r(t),n.d(t,{default:()=>l});const l='\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'}}]); \ No newline at end of file diff --git a/5930.6079fdf3d325dd4f.esm.js b/5930.6079fdf3d325dd4f.esm.js new file mode 100644 index 000000000..cddb5c810 --- /dev/null +++ b/5930.6079fdf3d325dd4f.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5930],{5930:(A,B,n)=>{n.r(B),n.d(B,{default:()=>Q});const Q='\n\n\n\n\n\n\n\n\n'}}]); \ No newline at end of file diff --git a/6050.7192c28b4a1d4ae8.esm.js b/6050.7192c28b4a1d4ae8.esm.js new file mode 100644 index 000000000..fae092719 --- /dev/null +++ b/6050.7192c28b4a1d4ae8.esm.js @@ -0,0 +1,2 @@ +/*! For license information please see 6050.7192c28b4a1d4ae8.esm.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[6050],{16050:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>ms});var r=n(78834);class s{static create(...t){return new this(...t)}mixIn(t){return Object.assign(this,t)}clone(){const t=new this.constructor;return Object.assign(t,this),t}}class o extends s{constructor(t=[],e=4*t.length){super();let n=t;if(n instanceof ArrayBuffer&&(n=new Uint8Array(n)),(n instanceof Int8Array||n instanceof Uint8ClampedArray||n instanceof Int16Array||n instanceof Uint16Array||n instanceof Int32Array||n instanceof Uint32Array||n instanceof Float32Array||n instanceof Float64Array)&&(n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength)),n instanceof Uint8Array){const t=n.byteLength,e=[];for(let r=0;r>>2]|=n[r]<<24-r%4*8;this.words=e,this.sigBytes=t}else this.words=t,this.sigBytes=e}static random(t){const e=[],n=t=>{let e=t,n=987654321;const r=4294967295;return()=>{n=36969*(65535&n)+(n>>16)&r,e=18e3*(65535&e)+(e>>16)&r;let t=(n<<16)+e&r;return t/=4294967296,t+=.5,t*(Math.random()>.5?1:-1)}};for(let r,s=0;s>>2]>>>24-o%4*8&255;e[r+o>>>2]|=t<<24-(r+o)%4*8}else for(let o=0;o>>2]=n[o>>>2];return this.sigBytes+=s,this}clamp(){const{words:t,sigBytes:e}=this;t[e>>>2]&=4294967295<<32-e%4*8,t.length=Math.ceil(e/4)}clone(){const t=super.clone.call(this);return t.words=this.words.slice(0),t}}const i={stringify(t){const{words:e,sigBytes:n}=t,r=[];for(let s=0;s>>2]>>>24-s%4*8&255;r.push((t>>>4).toString(16)),r.push((15&t).toString(16))}return r.join("")},parse(t){const e=t.length,n=[];for(let r=0;r>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new o(n,e/2)}},c={stringify(t){const{words:e,sigBytes:n}=t,r=[];for(let s=0;s>>2]>>>24-s%4*8&255;r.push(String.fromCharCode(t))}return r.join("")},parse(t){const e=t.length,n=[];for(let r=0;r>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new o(n,e)}},a={stringify(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:t=>c.parse(unescape(encodeURIComponent(t)))};class u extends s{constructor(){super(),this._minBufferSize=0}reset(){this._data=new o,this._nDataBytes=0}_append(t){let e=t;"string"==typeof e&&(e=a.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes}_process(t){let e;const{_data:n,blockSize:r}=this,s=n.words,i=n.sigBytes;let c=i/(4*r);c=t?Math.ceil(c):Math.max((0|c)-this._minBufferSize,0);const a=c*r,u=Math.min(4*a,i);if(a){for(let t=0;tnew t(n).finalize(e)}static _createHmacHelper(t){return(e,n)=>new l(t,n).finalize(e)}reset(){super.reset.call(this),this._doReset()}update(t){return this._append(t),this._process(),this}finalize(t){t&&this._append(t);return this._doFinalize()}}class l extends s{constructor(t,e){super();const n=new t;this._hasher=n;let r=e;"string"==typeof r&&(r=a.parse(r));const s=n.blockSize,o=4*s;r.sigBytes>o&&(r=n.finalize(e)),r.clamp();const i=r.clone();this._oKey=i;const c=r.clone();this._iKey=c;const u=i.words,h=c.words;for(let a=0;a>>2]>>>24-i%4*8&255)<<16|(e[i+1>>>2]>>>24-(i+1)%4*8&255)<<8|e[i+2>>>2]>>>24-(i+2)%4*8&255;for(let e=0;e<4&&i+.75*e>>6*(3-e)&63))}const o=r.charAt(64);if(o)for(;s.length%4;)s.push(o);return s.join("")},parse(t){let e=t.length;const n=this._map;let r=this._reverseMap;if(!r){this._reverseMap=[],r=this._reverseMap;for(let t=0;t{const r=[];let s=0;for(let o=0;o>>6-o%4*2;r[s>>>2]|=e<<24-s%4*8,s+=1}return o.create(r,s)})(t,e,r)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},b=[];for(let Ss=0;Ss<64;Ss+=1)b[Ss]=4294967296*Math.abs(Math.sin(Ss+1))|0;const w=(t,e,n,r,s,o,i)=>{const c=t+(e&n|~e&r)+s+i;return(c<>>32-o)+e},_=(t,e,n,r,s,o,i)=>{const c=t+(e&r|n&~r)+s+i;return(c<>>32-o)+e},g=(t,e,n,r,s,o,i)=>{const c=t+(e^n^r)+s+i;return(c<>>32-o)+e},v=(t,e,n,r,s,o,i)=>{const c=t+(n^(e|~r))+s+i;return(c<>>32-o)+e};class m extends h{_doReset(){this._hash=new o([1732584193,4023233417,2562383102,271733878])}_doProcessBlock(t,e){const n=t;for(let b=0;b<16;b+=1){const r=e+b,s=t[r];n[r]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}const r=this._hash.words,s=n[e+0],o=n[e+1],i=n[e+2],c=n[e+3],a=n[e+4],u=n[e+5],h=n[e+6],l=n[e+7],d=n[e+8],p=n[e+9],f=n[e+10],y=n[e+11],m=n[e+12],S=n[e+13],E=n[e+14],x=n[e+15];let k=r[0],T=r[1],B=r[2],C=r[3];k=w(k,T,B,C,s,7,b[0]),C=w(C,k,T,B,o,12,b[1]),B=w(B,C,k,T,i,17,b[2]),T=w(T,B,C,k,c,22,b[3]),k=w(k,T,B,C,a,7,b[4]),C=w(C,k,T,B,u,12,b[5]),B=w(B,C,k,T,h,17,b[6]),T=w(T,B,C,k,l,22,b[7]),k=w(k,T,B,C,d,7,b[8]),C=w(C,k,T,B,p,12,b[9]),B=w(B,C,k,T,f,17,b[10]),T=w(T,B,C,k,y,22,b[11]),k=w(k,T,B,C,m,7,b[12]),C=w(C,k,T,B,S,12,b[13]),B=w(B,C,k,T,E,17,b[14]),T=w(T,B,C,k,x,22,b[15]),k=_(k,T,B,C,o,5,b[16]),C=_(C,k,T,B,h,9,b[17]),B=_(B,C,k,T,y,14,b[18]),T=_(T,B,C,k,s,20,b[19]),k=_(k,T,B,C,u,5,b[20]),C=_(C,k,T,B,f,9,b[21]),B=_(B,C,k,T,x,14,b[22]),T=_(T,B,C,k,a,20,b[23]),k=_(k,T,B,C,p,5,b[24]),C=_(C,k,T,B,E,9,b[25]),B=_(B,C,k,T,c,14,b[26]),T=_(T,B,C,k,d,20,b[27]),k=_(k,T,B,C,S,5,b[28]),C=_(C,k,T,B,i,9,b[29]),B=_(B,C,k,T,l,14,b[30]),T=_(T,B,C,k,m,20,b[31]),k=g(k,T,B,C,u,4,b[32]),C=g(C,k,T,B,d,11,b[33]),B=g(B,C,k,T,y,16,b[34]),T=g(T,B,C,k,E,23,b[35]),k=g(k,T,B,C,o,4,b[36]),C=g(C,k,T,B,a,11,b[37]),B=g(B,C,k,T,l,16,b[38]),T=g(T,B,C,k,f,23,b[39]),k=g(k,T,B,C,S,4,b[40]),C=g(C,k,T,B,s,11,b[41]),B=g(B,C,k,T,c,16,b[42]),T=g(T,B,C,k,h,23,b[43]),k=g(k,T,B,C,p,4,b[44]),C=g(C,k,T,B,m,11,b[45]),B=g(B,C,k,T,x,16,b[46]),T=g(T,B,C,k,i,23,b[47]),k=v(k,T,B,C,s,6,b[48]),C=v(C,k,T,B,l,10,b[49]),B=v(B,C,k,T,E,15,b[50]),T=v(T,B,C,k,u,21,b[51]),k=v(k,T,B,C,m,6,b[52]),C=v(C,k,T,B,c,10,b[53]),B=v(B,C,k,T,f,15,b[54]),T=v(T,B,C,k,o,21,b[55]),k=v(k,T,B,C,d,6,b[56]),C=v(C,k,T,B,x,10,b[57]),B=v(B,C,k,T,h,15,b[58]),T=v(T,B,C,k,S,21,b[59]),k=v(k,T,B,C,a,6,b[60]),C=v(C,k,T,B,y,10,b[61]),B=v(B,C,k,T,i,15,b[62]),T=v(T,B,C,k,p,21,b[63]),r[0]=r[0]+k|0,r[1]=r[1]+T|0,r[2]=r[2]+B|0,r[3]=r[3]+C|0}_doFinalize(){const t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32;const s=Math.floor(n/4294967296),o=n;e[15+(r+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e[14+(r+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(e.length+1),this._process();const i=this._hash,c=i.words;for(let a=0;a<4;a+=1){const t=c[a];c[a]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8)}return i}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const S=h._createHelper(m),E=h._createHmacHelper(m);class x extends s{constructor(t){super(),this.cfg=Object.assign(new s,{keySize:4,hasher:m,iterations:1},t)}compute(t,e){let n;const{cfg:r}=this,s=r.hasher.create(),i=o.create(),c=i.words,{keySize:a,iterations:u}=r;for(;c.length"string"==typeof t?D:R;return{encrypt:(n,r,s)=>e(r).encrypt(t,n,r,s),decrypt:(n,r,s)=>e(r).decrypt(t,n,r,s)}}reset(){super.reset.call(this),this._doReset()}process(t){return this._append(t),this._process()}finalize(t){t&&this._append(t);return this._doFinalize()}}k._ENC_XFORM_MODE=1,k._DEC_XFORM_MODE=2,k.keySize=4,k.ivSize=4;class T extends k{constructor(...t){super(...t),this.blockSize=1}_doFinalize(){return this._process(!0)}}class B extends s{constructor(t,e){super(),this._cipher=t,this._iv=e}static createEncryptor(t,e){return this.Encryptor.create(t,e)}static createDecryptor(t,e){return this.Decryptor.create(t,e)}}function C(t,e,n){const r=t;let s;const o=this._iv;o?(s=o,this._iv=void 0):s=this._prevBlock;for(let i=0;i>>2];e.sigBytes-=n}};class A extends k{constructor(t,e,n){super(t,e,Object.assign({mode:O,padding:I},n)),this.blockSize=4}reset(){let t;super.reset.call(this);const{cfg:e}=this,{iv:n,mode:r}=e;this._xformMode===this.constructor._ENC_XFORM_MODE?t=r.createEncryptor:(t=r.createDecryptor,this._minBufferSize=1),this._mode=t.call(r,this,n&&n.words),this._mode.__creator=t}_doProcessBlock(t,e){this._mode.processBlock(t,e)}_doFinalize(){let t;const{padding:e}=this.cfg;return this._xformMode===this.constructor._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t}}class H extends s{constructor(t){super(),this.mixIn(t)}toString(t){return(t||this.formatter).stringify(this)}}const P={stringify(t){let e;const{ciphertext:n,salt:r}=t;return e=r?o.create([1398893684,1701076831]).concat(r).concat(n):n,e.toString(y)},parse(t){let e;const n=y.parse(t),r=n.words;return 1398893684===r[0]&&1701076831===r[1]&&(e=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),H.create({ciphertext:n,salt:e})}};class R extends s{static encrypt(t,e,n,r){const o=Object.assign(new s,this.cfg,r),i=t.createEncryptor(n,o),c=i.finalize(e),a=i.cfg;return H.create({ciphertext:c,key:n,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:i.blockSize,formatter:o.format})}static decrypt(t,e,n,r){let o=e;const i=Object.assign(new s,this.cfg,r);o=this._parse(o,i.format);return t.createDecryptor(n,i).finalize(o.ciphertext)}static _parse(t,e){return"string"==typeof t?e.parse(t,this):t}}R.cfg=Object.assign(new s,{format:P});const z={execute(t,e,n,r){let s=r;s||(s=o.random(8));const i=x.create({keySize:e+n}).compute(t,s),c=o.create(i.words.slice(e),4*n);return i.sigBytes=4*e,H.create({key:i,iv:c,salt:s})}};class D extends R{static encrypt(t,e,n,r){const o=Object.assign(new s,this.cfg,r),i=o.kdf.execute(n,t.keySize,t.ivSize);o.iv=i.iv;const c=R.encrypt.call(this,t,e,i.key,o);return c.mixIn(i),c}static decrypt(t,e,n,r){let o=e;const i=Object.assign(new s,this.cfg,r);o=this._parse(o,i.format);const c=i.kdf.execute(n,t.keySize,t.ivSize,o.salt);i.iv=c.iv;return R.decrypt.call(this,t,o,c.key,i)}}D.cfg=Object.assign(R.cfg,{kdf:z});const M=t=>t<<8&4278255360|t>>>8&16711935,j={stringify(t){const{words:e,sigBytes:n}=t,r=[];for(let s=0;s>>2]>>>16-s%4*8&65535;r.push(String.fromCharCode(t))}return r.join("")},parse(t){const e=t.length,n=[];for(let r=0;r>>1]|=t.charCodeAt(r)<<16-r%2*16;return o.create(n,2*e)}},N=j,F={stringify(t){const{words:e,sigBytes:n}=t,r=[];for(let s=0;s>>2]>>>16-s%4*8&65535);r.push(String.fromCharCode(t))}return r.join("")},parse(t){const e=t.length,n=[];for(let r=0;r>>1]|=M(t.charCodeAt(r)<<16-r%2*16);return o.create(n,2*e)}},L=[];class U extends h{_doReset(){this._hash=new o([1732584193,4023233417,2562383102,271733878,3285377520])}_doProcessBlock(t,e){const n=this._hash.words;let r=n[0],s=n[1],o=n[2],i=n[3],c=n[4];for(let a=0;a<80;a+=1){if(a<16)L[a]=0|t[e+a];else{const t=L[a-3]^L[a-8]^L[a-14]^L[a-16];L[a]=t<<1|t>>>31}let n=(r<<5|r>>>27)+c+L[a];n+=a<20?1518500249+(s&o|~s&i):a<40?1859775393+(s^o^i):a<60?(s&o|s&i|o&i)-1894007588:(s^o^i)-899497514,c=i,i=o,o=s<<30|s>>>2,s=r,r=n}n[0]=n[0]+r|0,n[1]=n[1]+s|0,n[2]=n[2]+o|0,n[3]=n[3]+i|0,n[4]=n[4]+c|0}_doFinalize(){const t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const K=h._createHelper(U),V=h._createHmacHelper(U),$=[],W=[],q=t=>{const e=Math.sqrt(t);for(let n=2;n<=e;n+=1)if(!(t%n))return!1;return!0},X=t=>4294967296*(t-(0|t))|0;let Y=2,G=0;for(;G<64;)q(Y)&&(G<8&&($[G]=X(Y**.5)),W[G]=X(Y**(1/3)),G+=1),Y+=1;const Q=[];class Z extends h{_doReset(){this._hash=new o($.slice(0))}_doProcessBlock(t,e){const n=this._hash.words;let r=n[0],s=n[1],o=n[2],i=n[3],c=n[4],a=n[5],u=n[6],h=n[7];for(let l=0;l<64;l+=1){if(l<16)Q[l]=0|t[e+l];else{const t=Q[l-15],e=(t<<25|t>>>7)^(t<<14|t>>>18)^t>>>3,n=Q[l-2],r=(n<<15|n>>>17)^(n<<13|n>>>19)^n>>>10;Q[l]=e+Q[l-7]+r+Q[l-16]}const n=r&s^r&o^s&o,d=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),p=h+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&a^~c&u)+W[l]+Q[l];h=u,u=a,a=c,c=i+p|0,i=o,o=s,s=r,r=p+(d+n)|0}n[0]=n[0]+r|0,n[1]=n[1]+s|0,n[2]=n[2]+o|0,n[3]=n[3]+i|0,n[4]=n[4]+c|0,n[5]=n[5]+a|0,n[6]=n[6]+u|0,n[7]=n[7]+h|0}_doFinalize(){const t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;return e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(r+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const J=h._createHelper(Z),tt=h._createHmacHelper(Z);class et extends Z{_doReset(){this._hash=new o([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])}_doFinalize(){const t=super._doFinalize.call(this);return t.sigBytes-=4,t}}const nt=Z._createHelper(et),rt=Z._createHmacHelper(et),st=[new p(1116352408,3609767458),new p(1899447441,602891725),new p(3049323471,3964484399),new p(3921009573,2173295548),new p(961987163,4081628472),new p(1508970993,3053834265),new p(2453635748,2937671579),new p(2870763221,3664609560),new p(3624381080,2734883394),new p(310598401,1164996542),new p(607225278,1323610764),new p(1426881987,3590304994),new p(1925078388,4068182383),new p(2162078206,991336113),new p(2614888103,633803317),new p(3248222580,3479774868),new p(3835390401,2666613458),new p(4022224774,944711139),new p(264347078,2341262773),new p(604807628,2007800933),new p(770255983,1495990901),new p(1249150122,1856431235),new p(1555081692,3175218132),new p(1996064986,2198950837),new p(2554220882,3999719339),new p(2821834349,766784016),new p(2952996808,2566594879),new p(3210313671,3203337956),new p(3336571891,1034457026),new p(3584528711,2466948901),new p(113926993,3758326383),new p(338241895,168717936),new p(666307205,1188179964),new p(773529912,1546045734),new p(1294757372,1522805485),new p(1396182291,2643833823),new p(1695183700,2343527390),new p(1986661051,1014477480),new p(2177026350,1206759142),new p(2456956037,344077627),new p(2730485921,1290863460),new p(2820302411,3158454273),new p(3259730800,3505952657),new p(3345764771,106217008),new p(3516065817,3606008344),new p(3600352804,1432725776),new p(4094571909,1467031594),new p(275423344,851169720),new p(430227734,3100823752),new p(506948616,1363258195),new p(659060556,3750685593),new p(883997877,3785050280),new p(958139571,3318307427),new p(1322822218,3812723403),new p(1537002063,2003034995),new p(1747873779,3602036899),new p(1955562222,1575990012),new p(2024104815,1125592928),new p(2227730452,2716904306),new p(2361852424,442776044),new p(2428436474,593698344),new p(2756734187,3733110249),new p(3204031479,2999351573),new p(3329325298,3815920427),new p(3391569614,3928383900),new p(3515267271,566280711),new p(3940187606,3454069534),new p(4118630271,4000239992),new p(116418474,1914138554),new p(174292421,2731055270),new p(289380356,3203993006),new p(460393269,320620315),new p(685471733,587496836),new p(852142971,1086792851),new p(1017036298,365543100),new p(1126000580,2618297676),new p(1288033470,3409855158),new p(1501505948,4234509866),new p(1607167915,987167468),new p(1816402316,1246189591)],ot=[];for(let Ss=0;Ss<80;Ss+=1)ot[Ss]=new p;class it extends h{constructor(){super(),this.blockSize=32}_doReset(){this._hash=new f([new p(1779033703,4089235720),new p(3144134277,2227873595),new p(1013904242,4271175723),new p(2773480762,1595750129),new p(1359893119,2917565137),new p(2600822924,725511199),new p(528734635,4215389547),new p(1541459225,327033209)])}_doProcessBlock(t,e){const n=this._hash.words,r=n[0],s=n[1],o=n[2],i=n[3],c=n[4],a=n[5],u=n[6],h=n[7],l=r.high;let d=r.low;const p=s.high;let f=s.low;const y=o.high;let b=o.low;const w=i.high;let _=i.low;const g=c.high;let v=c.low;const m=a.high;let S=a.low;const E=u.high;let x=u.low;const k=h.high;let T=h.low,B=l,C=d,O=p,I=f,A=y,H=b,P=w,R=_,z=g,D=v,M=m,j=S,N=E,F=x,L=k,U=T;for(let K=0;K<80;K+=1){let n,r;const s=ot[K];if(K<16)s.high=0|t[e+2*K],r=s.high,s.low=0|t[e+2*K+1],n=s.low;else{const t=ot[K-15],e=t.high,o=t.low,i=(e>>>1|o<<31)^(e>>>8|o<<24)^e>>>7,c=(o>>>1|e<<31)^(o>>>8|e<<24)^(o>>>7|e<<25),a=ot[K-2],u=a.high,h=a.low,l=(u>>>19|h<<13)^(u<<3|h>>>29)^u>>>6,d=(h>>>19|u<<13)^(h<<3|u>>>29)^(h>>>6|u<<26),p=ot[K-7],f=p.high,y=p.low,b=ot[K-16],w=b.high,_=b.low;n=c+y,r=i+f+(n>>>0>>0?1:0),n+=d,r=r+l+(n>>>0>>0?1:0),n+=_,r=r+w+(n>>>0<_>>>0?1:0),s.high=r,s.low=n}const o=z&M^~z&N,i=D&j^~D&F,c=B&O^B&A^O&A,a=C&I^C&H^I&H,u=(B>>>28|C<<4)^(B<<30|C>>>2)^(B<<25|C>>>7),h=(C>>>28|B<<4)^(C<<30|B>>>2)^(C<<25|B>>>7),l=(z>>>14|D<<18)^(z>>>18|D<<14)^(z<<23|D>>>9),d=(D>>>14|z<<18)^(D>>>18|z<<14)^(D<<23|z>>>9),p=st[K],f=p.high,y=p.low;let b=U+d,w=L+l+(b>>>0>>0?1:0);b+=i,w=w+o+(b>>>0>>0?1:0),b+=y,w=w+f+(b>>>0>>0?1:0),b+=n,w=w+r+(b>>>0>>0?1:0);const _=h+a;L=N,U=F,N=M,F=j,M=z,j=D,D=R+b|0,z=P+w+(D>>>0>>0?1:0)|0,P=A,R=H,A=O,H=I,O=B,I=C,C=b+_|0,B=w+(u+c+(_>>>0>>0?1:0))+(C>>>0>>0?1:0)|0}r.low=d+C,d=r.low,r.high=l+B+(d>>>0>>0?1:0),s.low=f+I,f=s.low,s.high=p+O+(f>>>0>>0?1:0),o.low=b+H,b=o.low,o.high=y+A+(b>>>0>>0?1:0),i.low=_+R,_=i.low,i.high=w+P+(_>>>0>>0?1:0),c.low=v+D,v=c.low,c.high=g+z+(v>>>0>>0?1:0),a.low=S+j,S=a.low,a.high=m+M+(S>>>0>>0?1:0),u.low=x+F,x=u.low,u.high=E+N+(x>>>0>>0?1:0),h.low=T+U,T=h.low,h.high=k+L+(T>>>0>>0?1:0)}_doFinalize(){const t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(r+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process();return this._hash.toX32()}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const ct=h._createHelper(it),at=h._createHmacHelper(it);class ut extends it{_doReset(){this._hash=new f([new p(3418070365,3238371032),new p(1654270250,914150663),new p(2438529370,812702999),new p(355462360,4144912697),new p(1731405415,4290775857),new p(2394180231,1750603025),new p(3675008525,1694076839),new p(1203062813,3204075428)])}_doFinalize(){const t=super._doFinalize.call(this);return t.sigBytes-=16,t}}const ht=it._createHelper(ut),lt=it._createHmacHelper(ut),dt=[],pt=[],ft=[];let yt=1,bt=0;for(let Ss=0;Ss<24;Ss+=1){dt[yt+5*bt]=(Ss+1)*(Ss+2)/2%64;const t=(2*yt+3*bt)%5;yt=bt%5,bt=t}for(let Ss=0;Ss<5;Ss+=1)for(let t=0;t<5;t+=1)pt[Ss+5*t]=t+(2*Ss+3*t)%5*5;let wt=1;for(let Ss=0;Ss<24;Ss+=1){let t=0,e=0;for(let n=0;n<7;n+=1){if(1&wt){const r=(1<>>24)|4278255360&(r<<24|r>>>8),o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8);const i=n[s];i.high^=o,i.low^=r}for(let s=0;s<24;s+=1){for(let s=0;s<5;s+=1){let t=0,e=0;for(let o=0;o<5;o+=1){const r=n[s+5*o];t^=r.high,e^=r.low}const r=_t[s];r.high=t,r.low=e}for(let s=0;s<5;s+=1){const t=_t[(s+4)%5],e=_t[(s+1)%5],r=e.high,o=e.low,i=t.high^(r<<1|o>>>31),c=t.low^(o<<1|r>>>31);for(let a=0;a<5;a+=1){const t=n[s+5*a];t.high^=i,t.low^=c}}for(let s=1;s<25;s+=1){let t,e;const r=n[s],o=r.high,i=r.low,c=dt[s];c<32?(t=o<>>32-c,e=i<>>32-c):(t=i<>>64-c,e=o<>>64-c);const a=_t[pt[s]];a.high=t,a.low=e}const t=_t[0],e=n[0];t.high=e.high,t.low=e.low;for(let s=0;s<5;s+=1)for(let t=0;t<5;t+=1){const e=s+5*t,r=n[e],o=_t[e],i=_t[(s+1)%5+5*t],c=_t[(s+2)%5+5*t];r.high=o.high^~i.high&c.high,r.low=o.low^~i.low&c.low}const r=n[0],o=ft[s];r.high^=o.high,r.low^=o.low}}_doFinalize(){const t=this._data,e=t.words,n=8*t.sigBytes,r=32*this.blockSize;e[n>>>5]|=1<<24-n%32,e[(Math.ceil((n+1)/r)*r>>>5)-1]|=128,t.sigBytes=4*e.length,this._process();const s=this._state,i=this.cfg.outputLength/8,c=i/8,a=[];for(let o=0;o>>24)|4278255360&(e<<24|e>>>8),n=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),a.push(n),a.push(e)}return new o(a,i)}clone(){const t=super.clone.call(this);t._state=this._state.slice(0);const e=t._state;for(let n=0;n<25;n+=1)e[n]=e[n].clone();return t}}const vt=h._createHelper(gt),mt=h._createHmacHelper(gt),St=o.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),Et=o.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),xt=o.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),kt=o.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),Tt=o.create([0,1518500249,1859775393,2400959708,2840853838]),Bt=o.create([1352829926,1548603684,1836072691,2053994217,0]),Ct=(t,e,n)=>t^e^n,Ot=(t,e,n)=>t&e|~t&n,It=(t,e,n)=>(t|~e)^n,At=(t,e,n)=>t&n|e&~n,Ht=(t,e,n)=>t^(e|~n),Pt=(t,e)=>t<>>32-e;class Rt extends h{_doReset(){this._hash=o.create([1732584193,4023233417,2562383102,271733878,3285377520])}_doProcessBlock(t,e){const n=t;for(let m=0;m<16;m+=1){const t=e+m,r=n[t];n[t]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8)}const r=this._hash.words,s=Tt.words,o=Bt.words,i=St.words,c=Et.words,a=xt.words,u=kt.words;let h,l=r[0],d=r[1],p=r[2],f=r[3],y=r[4],b=r[0],w=r[1],_=r[2],g=r[3],v=r[4];for(let m=0;m<80;m+=1)h=l+n[e+i[m]]|0,h+=m<16?Ct(d,p,f)+s[0]:m<32?Ot(d,p,f)+s[1]:m<48?It(d,p,f)+s[2]:m<64?At(d,p,f)+s[3]:Ht(d,p,f)+s[4],h|=0,h=Pt(h,a[m]),h=h+y|0,l=y,y=f,f=Pt(p,10),p=d,d=h,h=b+n[e+c[m]]|0,h+=m<16?Ht(w,_,g)+o[0]:m<32?At(w,_,g)+o[1]:m<48?It(w,_,g)+o[2]:m<64?Ot(w,_,g)+o[3]:Ct(w,_,g)+o[4],h|=0,h=Pt(h,u[m]),h=h+v|0,b=v,v=g,g=Pt(_,10),_=w,w=h;h=r[1]+p+g|0,r[1]=r[2]+f+v|0,r[2]=r[3]+y+b|0,r[3]=r[4]+l+w|0,r[4]=r[0]+d+_|0,r[0]=h}_doFinalize(){const t=this._data,e=t.words,n=8*this._nDataBytes,r=8*t.sigBytes;e[r>>>5]|=128<<24-r%32,e[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();const s=this._hash,o=s.words;for(let i=0;i<5;i+=1){const t=o[i];o[i]=16711935&(t<<8|t>>>24)|4278255360&(t<<24|t>>>8)}return s}clone(){const t=super.clone.call(this);return t._hash=this._hash.clone(),t}}const zt=h._createHelper(Rt),Dt=h._createHmacHelper(Rt);class Mt extends s{constructor(t){super(),this.cfg=Object.assign(new s,{keySize:4,hasher:U,iterations:1},t)}compute(t,e){const{cfg:n}=this,r=l.create(n.hasher,t),s=o.create(),i=o.create([1]),c=s.words,a=i.words,{keySize:u,iterations:h}=n;for(;c.length>>8^255&t^99,jt[Yt]=t,Nt[t]=Yt;const e=Xt[Yt],n=Xt[e],r=Xt[n];let s=257*Xt[t]^16843008*t;Ft[Yt]=s<<24|s>>>8,Lt[Yt]=s<<16|s>>>16,Ut[Yt]=s<<8|s>>>24,Kt[Yt]=s,s=16843009*r^65537*n^257*e^16843008*Yt,Vt[t]=s<<24|s>>>8,$t[t]=s<<16|s>>>16,Wt[t]=s<<8|s>>>24,qt[t]=s,Yt?(Yt=e^Xt[Xt[Xt[r^e]]],Gt^=Xt[Xt[Gt]]):(Gt=1,Yt=Gt)}const Qt=[0,1,2,4,8,16,32,64,128,27,54];class Zt extends A{_doReset(){let t;if(this._nRounds&&this._keyPriorReset===this._key)return;this._keyPriorReset=this._key;const e=this._keyPriorReset,n=e.words,r=e.sigBytes/4;this._nRounds=r+6;const s=4*(this._nRounds+1);this._keySchedule=[];const o=this._keySchedule;for(let c=0;c6&&c%r==4&&(t=jt[t>>>24]<<24|jt[t>>>16&255]<<16|jt[t>>>8&255]<<8|jt[255&t]):(t=t<<8|t>>>24,t=jt[t>>>24]<<24|jt[t>>>16&255]<<16|jt[t>>>8&255]<<8|jt[255&t],t^=Qt[c/r|0]<<24),o[c]=o[c-r]^t);this._invKeySchedule=[];const i=this._invKeySchedule;for(let c=0;c>>24]]^$t[jt[t>>>16&255]]^Wt[jt[t>>>8&255]]^qt[jt[255&t]]}}encryptBlock(t,e){this._doCryptBlock(t,e,this._keySchedule,Ft,Lt,Ut,Kt,jt)}decryptBlock(t,e){const n=t;let r=n[e+1];n[e+1]=n[e+3],n[e+3]=r,this._doCryptBlock(n,e,this._invKeySchedule,Vt,$t,Wt,qt,Nt),r=n[e+1],n[e+1]=n[e+3],n[e+3]=r}_doCryptBlock(t,e,n,r,s,o,i,c){const a=t,u=this._nRounds;let h=a[e]^n[0],l=a[e+1]^n[1],d=a[e+2]^n[2],p=a[e+3]^n[3],f=4;for(let g=1;g>>24]^s[l>>>16&255]^o[d>>>8&255]^i[255&p]^n[f];f+=1;const e=r[l>>>24]^s[d>>>16&255]^o[p>>>8&255]^i[255&h]^n[f];f+=1;const c=r[d>>>24]^s[p>>>16&255]^o[h>>>8&255]^i[255&l]^n[f];f+=1;const a=r[p>>>24]^s[h>>>16&255]^o[l>>>8&255]^i[255&d]^n[f];f+=1,h=t,l=e,d=c,p=a}const y=(c[h>>>24]<<24|c[l>>>16&255]<<16|c[d>>>8&255]<<8|c[255&p])^n[f];f+=1;const b=(c[l>>>24]<<24|c[d>>>16&255]<<16|c[p>>>8&255]<<8|c[255&h])^n[f];f+=1;const w=(c[d>>>24]<<24|c[p>>>16&255]<<16|c[h>>>8&255]<<8|c[255&l])^n[f];f+=1;const _=(c[p>>>24]<<24|c[h>>>16&255]<<16|c[l>>>8&255]<<8|c[255&d])^n[f];f+=1,a[e]=y,a[e+1]=b,a[e+2]=w,a[e+3]=_}}Zt.keySize=8;const Jt=A._createHelper(Zt),te=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],ee=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],ne=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],re=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],se=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679];function oe(t,e){const n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<>>5]>>>31-n%32&1}this._subKeys=[];const n=this._subKeys;for(let s=0;s<16;s+=1){n[s]=[];const t=n[s],r=ne[s];for(let n=0;n<24;n+=1)t[n/6|0]|=e[(ee[n]-1+r)%28]<<31-n%6,t[4+(n/6|0)]|=e[28+(ee[n+24]-1+r)%28]<<31-n%6;t[0]=t[0]<<1|t[0]>>>31;for(let e=1;e<7;e+=1)t[e]>>>=4*(e-1)+3;t[7]=t[7]<<5|t[7]>>>27}this._invSubKeys=[];const r=this._invSubKeys;for(let s=0;s<16;s+=1)r[s]=n[15-s]}encryptBlock(t,e){this._doCryptBlock(t,e,this._subKeys)}decryptBlock(t,e){this._doCryptBlock(t,e,this._invSubKeys)}_doCryptBlock(t,e,n){const r=t;this._lBlock=t[e],this._rBlock=t[e+1],oe.call(this,4,252645135),oe.call(this,16,65535),ie.call(this,2,858993459),ie.call(this,8,16711935),oe.call(this,1,1431655765);for(let o=0;o<16;o+=1){const t=n[o],e=this._lBlock,r=this._rBlock;let s=0;for(let n=0;n<8;n+=1)s|=re[n][((r^t[n])&se[n])>>>0];this._lBlock=r,this._rBlock=e^s}const s=this._lBlock;this._lBlock=this._rBlock,this._rBlock=s,oe.call(this,1,1431655765),ie.call(this,8,16711935),ie.call(this,2,858993459),oe.call(this,16,65535),oe.call(this,4,252645135),r[e]=this._lBlock,r[e+1]=this._rBlock}}ce.keySize=2,ce.ivSize=2,ce.blockSize=2;const ae=A._createHelper(ce);class ue extends A{_doReset(){const t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");const e=t.slice(0,2),n=t.length<4?t.slice(0,2):t.slice(2,4),r=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=ce.createEncryptor(o.create(e)),this._des2=ce.createEncryptor(o.create(n)),this._des3=ce.createEncryptor(o.create(r))}encryptBlock(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)}decryptBlock(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)}}ue.keySize=6,ue.ivSize=2,ue.blockSize=2;const he=A._createHelper(ue),le=[],de=[],pe=[];function fe(){const t=this._X,e=this._C;for(let n=0;n<8;n+=1)de[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0>>0?1:0)|0,this._b=e[7]>>>0>>0?1:0;for(let n=0;n<8;n+=1){const r=t[n]+e[n],s=65535&r,o=r>>>16,i=((s*s>>>17)+s*o>>>15)+o*o,c=((4294901760&r)*r|0)+((65535&r)*r|0);pe[n]=i^c}t[0]=pe[0]+(pe[7]<<16|pe[7]>>>16)+(pe[6]<<16|pe[6]>>>16)|0,t[1]=pe[1]+(pe[0]<<8|pe[0]>>>24)+pe[7]|0,t[2]=pe[2]+(pe[1]<<16|pe[1]>>>16)+(pe[0]<<16|pe[0]>>>16)|0,t[3]=pe[3]+(pe[2]<<8|pe[2]>>>24)+pe[1]|0,t[4]=pe[4]+(pe[3]<<16|pe[3]>>>16)+(pe[2]<<16|pe[2]>>>16)|0,t[5]=pe[5]+(pe[4]<<8|pe[4]>>>24)+pe[3]|0,t[6]=pe[6]+(pe[5]<<16|pe[5]>>>16)+(pe[4]<<16|pe[4]>>>16)|0,t[7]=pe[7]+(pe[6]<<8|pe[6]>>>24)+pe[5]|0}class ye extends T{constructor(...t){super(...t),this.blockSize=4,this.ivSize=2}_doReset(){const t=this._key.words,{iv:e}=this.cfg;for(let s=0;s<4;s+=1)t[s]=16711935&(t[s]<<8|t[s]>>>24)|4278255360&(t[s]<<24|t[s]>>>8);this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];const n=this._X;this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];const r=this._C;this._b=0;for(let s=0;s<4;s+=1)fe.call(this);for(let s=0;s<8;s+=1)r[s]^=n[s+4&7];if(e){const t=e.words,n=t[0],s=t[1],o=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),i=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=o>>>16|4294901760&i,a=i<<16|65535&o;r[0]^=o,r[1]^=c,r[2]^=i,r[3]^=a,r[4]^=o,r[5]^=c,r[6]^=i,r[7]^=a;for(let e=0;e<4;e+=1)fe.call(this)}}_doProcessBlock(t,e){const n=t,r=this._X;fe.call(this),le[0]=r[0]^r[5]>>>16^r[3]<<16,le[1]=r[2]^r[7]>>>16^r[5]<<16,le[2]=r[4]^r[1]>>>16^r[7]<<16,le[3]=r[6]^r[3]>>>16^r[1]<<16;for(let s=0;s<4;s+=1)le[s]=16711935&(le[s]<<8|le[s]>>>24)|4278255360&(le[s]<<24|le[s]>>>8),n[e+s]^=le[s]}}const be=T._createHelper(ye),we=[],_e=[],ge=[];function ve(){const t=this._X,e=this._C;for(let n=0;n<8;n+=1)_e[n]=e[n];e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<_e[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<_e[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<_e[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<_e[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<_e[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<_e[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<_e[6]>>>0?1:0)|0,this._b=e[7]>>>0<_e[7]>>>0?1:0;for(let n=0;n<8;n+=1){const r=t[n]+e[n],s=65535&r,o=r>>>16,i=((s*s>>>17)+s*o>>>15)+o*o,c=((4294901760&r)*r|0)+((65535&r)*r|0);ge[n]=i^c}t[0]=ge[0]+(ge[7]<<16|ge[7]>>>16)+(ge[6]<<16|ge[6]>>>16)|0,t[1]=ge[1]+(ge[0]<<8|ge[0]>>>24)+ge[7]|0,t[2]=ge[2]+(ge[1]<<16|ge[1]>>>16)+(ge[0]<<16|ge[0]>>>16)|0,t[3]=ge[3]+(ge[2]<<8|ge[2]>>>24)+ge[1]|0,t[4]=ge[4]+(ge[3]<<16|ge[3]>>>16)+(ge[2]<<16|ge[2]>>>16)|0,t[5]=ge[5]+(ge[4]<<8|ge[4]>>>24)+ge[3]|0,t[6]=ge[6]+(ge[5]<<16|ge[5]>>>16)+(ge[4]<<16|ge[4]>>>16)|0,t[7]=ge[7]+(ge[6]<<8|ge[6]>>>24)+ge[5]|0}class me extends T{constructor(...t){super(...t),this.blockSize=4,this.ivSize=2}_doReset(){const t=this._key.words,{iv:e}=this.cfg;this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16];const n=this._X;this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];const r=this._C;this._b=0;for(let s=0;s<4;s+=1)ve.call(this);for(let s=0;s<8;s+=1)r[s]^=n[s+4&7];if(e){const t=e.words,n=t[0],s=t[1],o=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),i=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),c=o>>>16|4294901760&i,a=i<<16|65535&o;r[0]^=o,r[1]^=c,r[2]^=i,r[3]^=a,r[4]^=o,r[5]^=c,r[6]^=i,r[7]^=a;for(let e=0;e<4;e+=1)ve.call(this)}}_doProcessBlock(t,e){const n=t,r=this._X;ve.call(this),we[0]=r[0]^r[5]>>>16^r[3]<<16,we[1]=r[2]^r[7]>>>16^r[5]<<16,we[2]=r[4]^r[1]>>>16^r[7]<<16,we[3]=r[6]^r[3]>>>16^r[1]<<16;for(let s=0;s<4;s+=1)we[s]=16711935&(we[s]<<8|we[s]>>>24)|4278255360&(we[s]<<24|we[s]>>>8),n[e+s]^=we[s]}}const Se=T._createHelper(me);function Ee(){const t=this._S;let e=this._i,n=this._j,r=0;for(let s=0;s<4;s+=1){e=(e+1)%256,n=(n+t[e])%256;const o=t[e];t[e]=t[n],t[n]=o,r|=t[(t[e]+t[n])%256]<<24-8*s}return this._i=e,this._j=n,r}class xe extends T{_doReset(){const t=this._key,e=t.words,n=t.sigBytes;this._S=[];const r=this._S;for(let s=0;s<256;s+=1)r[s]=s;for(let s=0,o=0;s<256;s+=1){const t=s%n,i=e[t>>>2]>>>24-t%4*8&255;o=(o+r[s]+i)%256;const c=r[s];r[s]=r[o],r[o]=c}this._j=0,this._i=this._j}_doProcessBlock(t,e){t[e]^=Ee.call(this)}}xe.keySize=8,xe.ivSize=0;const ke=T._createHelper(xe);class Te extends xe{constructor(...t){super(...t),Object.assign(this.cfg,{drop:192})}_doReset(){super._doReset.call(this);for(let t=this.cfg.drop;t>0;t-=1)Ee.call(this)}}const Be=T._createHelper(Te);function Ce(t,e,n,r){const s=t;let o;const i=this._iv;i?(o=i.slice(0),this._iv=void 0):o=this._prevBlock,r.encryptBlock(o,0);for(let c=0;c{let e=t;if(255==(t>>24&255)){let n=t>>16&255,r=t>>8&255,s=255&t;255===n?(n=0,255===r?(r=0,255===s?s=0:s+=1):r+=1):n+=1,e=0,e+=n<<16,e+=r<<8,e+=s}else e+=1<<24;return e};class He extends B{}He.Encryptor=class extends He{processBlock(t,e){const n=t,r=this._cipher,{blockSize:s}=r,o=this._iv;let i=this._counter;o&&(this._counter=o.slice(0),i=this._counter,this._iv=void 0),(t=>{const e=t;e[0]=Ae(e[0]),0===e[0]&&(e[1]=Ae(e[1]))})(i);const c=i.slice(0);r.encryptBlock(c,0);for(let a=0;a>>2];e.sigBytes-=n}},De={pad(t,e){const n=t,r=4*e;n.clamp(),n.sigBytes+=r-(t.sigBytes%r||r)},unpad(t){const e=t,n=e.words;for(let r=e.sigBytes-1;r>=0;r-=1)if(n[r>>>2]>>>24-r%4*8&255){e.sigBytes=r+1;break}}},Me={pad(t,e){t.concat(o.create([2147483648],1)),De.pad(t,e)},unpad(t){const e=t;De.unpad(e),e.sigBytes-=1}},je={stringify:t=>t.ciphertext.toString(i),parse(t){const e=i.parse(t);return H.create({ciphertext:e})}},Ne={lib:{Base:s,WordArray:o,BufferedBlockAlgorithm:u,Hasher:h,Cipher:k,StreamCipher:T,BlockCipherMode:B,BlockCipher:A,CipherParams:H,SerializableCipher:R,PasswordBasedCipher:D},x64:{Word:p,WordArray:f},enc:{Hex:i,Latin1:c,Utf8:a,Utf16:N,Utf16BE:j,Utf16LE:F,Base64:y},algo:{HMAC:l,MD5:m,SHA1:U,SHA224:et,SHA256:Z,SHA384:ut,SHA512:it,SHA3:gt,RIPEMD160:Rt,PBKDF2:Mt,EvpKDF:x,AES:Zt,DES:ce,TripleDES:ue,Rabbit:ye,RabbitLegacy:me,RC4:xe,RC4Drop:Te},mode:{CBC:O,CFB:Oe,CTR:Ie,CTRGladman:He,ECB:Pe,OFB:Re},pad:{Pkcs7:I,AnsiX923:{pad(t,e){const n=t,r=n.sigBytes,s=4*e,o=s-r%s,i=r+o-1;n.clamp(),n.words[i>>>2]|=o<<24-i%4*8,n.sigBytes+=o},unpad(t){const e=t,n=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=n}},Iso10126:ze,Iso97971:Me,NoPadding:{pad(){},unpad(){}},ZeroPadding:De},format:{OpenSSL:P,Hex:je},kdf:{OpenSSL:z},MD5:S,HmacMD5:E,SHA1:K,HmacSHA1:V,SHA224:nt,HmacSHA224:rt,SHA256:J,HmacSHA256:tt,SHA384:ht,HmacSHA384:lt,SHA512:ct,HmacSHA512:at,SHA3:vt,HmacSHA3:mt,RIPEMD160:zt,HmacRIPEMD160:Dt,PBKDF2:(t,e,n)=>Mt.create(n).compute(t,e),EvpKDF:(t,e,n)=>x.create(n).compute(t,e),AES:Jt,DES:ae,TripleDES:he,Rabbit:be,RabbitLegacy:Se,RC4:ke,RC4Drop:Be};let Fe=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce(((t,e)=>t+=(e&=63)<36?e.toString(36):e<62?(e-26).toString(36).toUpperCase():e>62?"-":"_"),"");var Le=n(19062);function Ue(t){return"function"==typeof t}n(98399);var Ke=!1,Ve={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;Ke=t},get useDeprecatedSynchronousErrorHandling(){return Ke}};function $e(t){setTimeout((function(){throw t}),0)}var We={closed:!0,next:function(t){},error:function(t){if(Ve.useDeprecatedSynchronousErrorHandling)throw t;$e(t)},complete:function(){}},qe=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function Xe(t){return null!==t&&"object"==typeof t}var Ye=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),Ge=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this,r=n._parentOrParents,s=n._ctorUnsubscribe,o=n._unsubscribe,i=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof t)r.remove(this);else if(null!==r)for(var c=0;c0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(Hn);function Mn(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),Rn(nn,t)}function jn(t,e,n,r){return Ue(n)&&(r=n,n=void 0),r?jn(t,e,n).pipe(Sn((function(t){return qe(t)?r.apply(void 0,t):r(t)}))):new on((function(r){Nn(t,e,(function(t){arguments.length>1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}function Nn(t,e,n,r,s){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var i=t;t.addEventListener(e,n,s),o=function(){return i.removeEventListener(e,n,s)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var c=t;t.on(e,n),o=function(){return c.off(e,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var a=t;t.addListener(e,n),o=function(){return a.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var u=0,h=t.length;u=0}function Ln(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}var Un=n(98399);const Kn={ethereum:{1:"main",5:"goerli",100:"xdai",137:"matic-main",80001:"matic-mumbai"}},Vn=[2,3,4,42,56,250],$n={points:150,duration:1};function Wn(t){const{name:e,value:n,type:r,optional:s,customValidation:o}=t;if(!s&&void 0===n)throw new Error(`"${e}" is required`);if(void 0!==n&&("array"===r?Array.isArray(r):typeof n!==r))throw new Error(`"${e}" must be of type: ${r}, received type: ${typeof n} from value: ${n}`);if(void 0!==n&&o&&!o(n))throw new Error(`"${n}" is not a valid "${e}"`)}function qn(t){Wn({name:"sdk options",value:t,type:"object"});const{dappId:e,system:n,name:r,appVersion:s,networkId:o,transactionHandlers:i,apiUrl:c,ws:a,onopen:u,ondown:h,onreopen:l,onerror:d,onclose:p,...f}=t;!function(t,e,n){const r=Object.keys(t);if(r.length>0)throw new Error(`${r[0]} is not a valid parameter for ${n}, must be one of the following valid parameters: ${e.join(", ")}`)}(f,["dappId","system","name","appVersion","networkId","transactionHandlers","apiUrl","ws","onopen","ondown","onreopen","onerror","onclose"],"Initialization Options"),Wn({name:"dappId",value:e,type:"string",optional:!0}),Wn({name:"system",value:n,type:"string",optional:!0,customValidation:Xn}),Wn({name:"name",value:r,type:"string",optional:!0}),Wn({name:"appVersion",value:s,type:"string",optional:!0}),Wn({name:"networkId",value:o,type:"number"}),Vn.includes(o)&&Un.error(`Blocknative SDK: Network with ID: ${o} has been deprecated and you will no longer receive transaction events on this network.`),Wn({name:"transactionHandler",value:i,type:"array",optional:!0}),i&&i.forEach((t=>Wn({name:"transactionHandler",value:t,type:"function"}))),Wn({name:"apiUrl",value:c,type:"string",optional:!0}),Wn({name:"ws",value:a,type:"function",optional:!0}),Wn({name:"onopen",value:u,type:"function",optional:!0}),Wn({name:"ondown",value:h,type:"function",optional:!0}),Wn({name:"onreopen",value:l,type:"function",optional:!0}),Wn({name:"onerror",value:d,type:"function",optional:!0}),Wn({name:"onclose",value:p,type:"function",optional:!0})}function Xn(t){return!!Kn[t]}function Yn(){return{listeners:{},on:function(t,e){switch(t){case"txSent":case"txPool":case"txConfirmed":case"txSpeedUp":case"txCancel":case"txFailed":case"txDropped":case"txRequest":case"nsfFail":case"txRepeat":case"txAwaitingApproval":case"txConfirmReminder":case"txSendFail":case"txError":case"txUnderPriced":case"txPoolSimulation":case"all":break;default:throw new Error(`${t} is not a valid event code, for a list of valid event codes see: https://docs.blocknative.com/notify-sdk#event-codes`)}if("function"!=typeof e)throw new Error("Listener must be a function");this.listeners[t]=e},off:function(t){delete this.listeners[t]},emit:function(t){return this.listeners[t.eventCode]?this.listeners[t.eventCode](t):this.listeners.all?this.listeners.all(t):void 0}}}function Gn(t,e){return Kn[t][e]}function Qn(t){return new Promise((e=>{setTimeout(e,t)}))}const Zn=(t,e)=>void 0===e?"undefined":e;function Jn(){if("undefined"!=typeof window&&"localStorage"in window){const e="__testLocalStorage";try{return window.localStorage.setItem(e,"1"),window.localStorage.removeItem(e),!0}catch(t){return!1}}return!1}function tr(t,e){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");const n=Date.now(),r=Yn(),s="txSent";this.watchedTransactions.push({hash:t,emitter:r});const o={..."ethereum"===this._system?{hash:t}:{txid:t},id:e||t,startTime:n,status:"sent"},i={...o,eventCode:s};this._sendMessage({eventCode:s,categoryCode:"activeTransaction",transaction:o});const c={details:i,emitter:r};return setTimeout((function(){const t=r.emit(i);this._transactionHandlers.forEach((e=>e({transaction:i,emitterResult:t})))}).bind(this),5),c}function er(t){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");t="ethereum"===this._system?t.toLowerCase():t;const e=Yn(),n=this.watchedAccounts.find((e=>e.address===t));return n?n.emitters.push(e):this.watchedAccounts.push({address:t,emitters:[e]}),this._sendMessage({eventCode:"watch",categoryCode:"accountAddress",account:{address:t}}),{emitter:e,details:{address:t}}}function nr(t){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");this._sendMessage(t)}var rr=function(t,e){return rr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},rr(t,e)};function sr(t,e){function n(){this.constructor=t}rr(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function or(t){return"function"==typeof t}var ir=!1,cr={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;ir=t},get useDeprecatedSynchronousErrorHandling(){return ir}};function ar(t){setTimeout((function(){throw t}),0)}var ur={closed:!0,next:function(t){},error:function(t){if(cr.useDeprecatedSynchronousErrorHandling)throw t;ar(t)},complete:function(){}},hr=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function lr(t){return null!==t&&"object"==typeof t}var dr=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map((function(t,e){return e+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),pr=dr,fr=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this,r=n._parentOrParents,s=n._ctorUnsubscribe,o=n._unsubscribe,i=n._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,r instanceof t)r.remove(this);else if(null!==r)for(var c=0;c{ns.pipe(Nr((({eventId:t})=>t===r)),Ur(1)).subscribe({next:({transaction:e})=>t(e),error:({error:t})=>e(t.message)})}))}function ss(t){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");const e=Fe();return this._sendMessage({categoryCode:"simulate",eventCode:"txSimulation",eventId:e,transaction:t}),new Promise(((t,n)=>{ns.pipe(Nr((({eventId:t})=>t===e)),Ur(1)).subscribe({next:({transaction:e})=>t(e),error:({error:t})=>n(t.message)})}))}function os(t){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");const e=function(t,e){switch(t){case"ethereum":return 42===e.length;case"bitcoin":return 64!==e.length;default:return!1}}(this._system,t),n=function(t,e){switch(t){case"ethereum":return 66===e.length;case"bitcoin":return 64===e.length;default:return!1}}(this._system,t);if(e){const e="ethereum"===this._system?t.toLowerCase():t;this.watchedAccounts=this.watchedAccounts.filter((t=>t.address!==e)),this.configurations.delete(e),this._sendMessage({categoryCode:"accountAddress",eventCode:"unwatch",account:{address:e}})}else{if(!n)throw new Error(`Error trying to unsubscribe ${t}: not a valid address or transaction id/hash`);{this.watchedTransactions=this.watchedTransactions.filter((e=>e.hash!==t));const e={..."ethereum"===this._system?{hash:t}:{txid:t},id:t,status:"unsubscribed"};this._sendMessage({categoryCode:"activeTransaction",eventCode:"unwatch",transaction:e})}}}function is(t){if(this._destroyed)throw new Error("The WebSocket instance has been destroyed, re-initialize to continue making requests.");const e="ethereum"===this._system?t.scope.toLowerCase():t.scope,n=this.configurations.get(e);n&&n.subscription&&n.subscription.next();const r=new ln,s=t.watchAddress?{emitter:Yn()}:{};return this.configurations.set(e,{...t,...s,subscription:r}),this._sendMessage({categoryCode:"configs",eventCode:"put",config:t}),new Promise(((e,n)=>{r.pipe(Ur(1),es(5e3)).subscribe({next:()=>e({...s,details:{config:t}}),error:r=>{const s="Timeout has occurred"===r.message?`Configuration with scope: ${t.scope} has been sent to the Blocknative server, but has not received a reply within 5 seconds.`:r.message;this._onerror?(this._onerror({message:s}),e(`Error: ${s}`)):n(s)}})}))}function cs(t){const{id:e,chainId:n,type:r}=t;if(!Gn("ethereum",parseInt(n,16)))throw new Error(`chainId: ${n} is an unsupported network`);this.connections[n]||(this.connections[n]=new this.Blocknative({system:"ethereum",networkId:parseInt(n,16),dappId:this.apiKey,ws:this.ws,apiUrl:this.apiUrl,transactionHandlers:[({transaction:t})=>{this.onTransaction$.next(t)}],onerror:t=>this.errors$.next(t)}));const s=this.connections[n];if("account"===r){const{filters:r=[],abi:o}=t;return s.configuration({scope:e,filters:r,...o?{abi:o}:{},watchAddress:!0}),this.transactions$.pipe(Nr((({watchedAddress:t})=>t===e)),$r((()=>{this.unsubscribe({id:e,chainId:n})})))}{const{emitter:t}=s.transaction(e);return jn(t,"all").pipe((o=({status:t})=>"confirmed"!==t&&"failed"!==t&&"dropped"!==t,void 0===(i=!0)&&(i=!1),function(t){return t.lift(new Xr(o,i))}),$r((()=>{this.unsubscribe({id:e,chainId:n})})))}var o,i}function as(t){const{id:e,chainId:n,timeout:r=0}=t,s=function(t,e,n){void 0===t&&(t=0);var r=-1;return Fn(e)?r=Number(e)<1?1:Number(e):bn(e)&&(n=e),bn(n)||(n=mn),new on((function(e){var s=Fn(t)?t:+t-n.now();return n.schedule(Ln,s,{index:0,period:r,subscriber:e})}))}(r);(function(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof s&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof on?t[0]:Mn(n)(vn(t,r))})(this.transactions$.pipe(Nr((({hash:t,watchedAddress:n})=>t===e||n===e))),s).pipe(Ur(1)).subscribe((r=>{if("number"==typeof r){Object.entries(this.connections).filter((([t,e])=>null!==e)).forEach((([t,r])=>{n&&t!==n||(r.unsubscribe(e),r.watchedAccounts.length||r.watchedTransactions.length||r.configurations.size||(r.destroy(),this.connections[t]=null))}))}else this.unsubscribe(t)}))}class us{constructor(t,e){const{ws:n}=t,{apiKey:r}=t,{apiUrl:s}=t;this.apiKey=r,this.apiUrl=s,this.ws=n,this.connections={},this.onTransaction$=new ln,this.transactions$=this.onTransaction$.asObservable(),this.errors$=new ln,this.Blocknative=e,this.subscribe=cs.bind(this),this.unsubscribe=as.bind(this)}}function hs(t){if(this._queuedMessages.length>1e4)throw new Error("Queue limit of 10000 messages has been reached.");this._queuedMessages.push(ps.bind(this)(t)),this._processingQueue||this._processQueue()}async function ls(){for(this._processingQueue=!0,this._connected||await fs.bind(this)();this._queuedMessages.length>0;){await Qn(1),null!==this._waitToRetry&&(await this._waitToRetry,this._waitToRetry=null);const t=this._queuedMessages.shift(),e=this._limitRules.duration/this._limitRules.points*1e3;await Qn(e),this._socket.send(t)}this._processingQueue=!1,this._limitRules=$n}function ds(t){const{status:e,reason:n,event:r,connectionId:s,serverVersion:o,retryMs:i,limitRules:c,blockedMsg:a,dispatchTimestamp:u}=JSON.parse(t.data);if(s&&(Jn()&&window.localStorage.setItem(this._storageKey,s),this._connectionId=s),"error"===e){if(n.includes("ratelimit")&&!n.match(/IP (PendingSimulation|Notification) ratelimit reached/))return this._waitToRetry=Qn(i),this._limitRules=c,void(a&&this._queuedMessages.unshift(a));if(n.includes("upgrade your plan")){if(this._onerror)return void this._onerror({message:n});throw new Error(n)}if(n.includes("not a valid API key")){if(this._onerror)return void this._onerror({message:n});throw new Error(n)}if(n.includes("network not supported")){if(this._onerror)return void this._onerror({message:n});throw new Error(n)}if(n.includes("maximum allowed amount")){if(this._onerror)return void this._onerror({message:n});throw new Error(n)}if(n.includes("invalid txid")){const t=`${r.transaction.txid} is an invalid txid`;if(this._onerror)return void this._onerror({message:t,transaction:r.transaction.txid});throw new Error(t)}if(n.includes("invalid hash")){const t=`${r.transaction.hash} is an invalid transaction hash`;if(this._onerror)return void this._onerror({message:t,transaction:r.transaction.hash});throw new Error(t)}if(n.includes("invalid address")){const t=`${r.account.address} is an invalid address`;if(this._onerror)return void this._onerror({message:t,account:r.account.address});throw new Error(t)}if(n.includes("not a valid Bitcoin")){if(this._onerror)return void this._onerror({message:n,account:r.account.address});throw new Error(n)}if(n.includes("not a valid Ethereum")){if(this._onerror)return void this._onerror({message:n,account:r.account.address});throw new Error(n)}if(r&&"simulate"===r.categoryCode)return void ns.error({eventId:r.eventId,error:{message:n}});if(r&&r.config){const t=this.configurations.get(r.config.scope);return void(t&&t.subscription&&t.subscription.error({message:n}))}if(this._onerror)return void this._onerror({message:n});throw new Error(n)}if(r&&r.config){const t="ethereum"===this._system?r.config.scope.toLowerCase():r.config.scope,e=this.configurations.get(t);e&&e.subscription&&e.subscription.next()}if(r&&r.transaction){const{eventId:t,transaction:e,eventCode:n,contractCall:s,timeStamp:i,blockchain:{system:c,network:a}}=r,h="ethereum"===this._system?{...e,serverVersion:o,eventCode:n,timeStamp:i,dispatchTimestamp:u,system:c,network:a,contractCall:s}:{...e,serverVersion:o,eventCode:n,timeStamp:i,dispatchTimestamp:u,system:c,network:a};if(function(t){switch(t){case"txRequest":case"nsfFail":case"txRepeat":case"txAwaitingApproval":case"txConfirmReminder":case"txSendFail":case"txError":case"txUnderPriced":case"txSent":return!0;default:return!1}}(n)||"unsubscribed"===e.status)return;if(h.originalHash&&(h.replaceHash=h.hash,h.hash=h.originalHash,delete h.originalHash),"txSpeedUp"===n&&"speedup"!==h.status&&(h.status="speedup"),"txCancel"===n&&"cancel"!==h.status&&(h.status="cancel"),"txSpeedUp"!==n&&"txCancel"!==n||(this.watchedTransactions=this.watchedTransactions.map((t=>(t.hash===h.replaceHash&&(t.hash=e.hash||e.txid),t)))),r&&"simulate"===r.categoryCode)return h.contractCall=r.transaction.contractCall,delete h.dispatchTimestamp,void ns.next({eventId:t,transaction:h});const l=e.watchedAddress&&"ethereum"===this._system?e.watchedAddress.toLowerCase():e.watchedAddress;if(l){const t=this.watchedAccounts.find((t=>t.address===l)),e=!!t&&t.emitters.map((t=>t.emit(h))).reverse()[0],n=this.configurations.get(l),r=n&&n.emitter&&n.emitter.emit(h)||e;this._transactionHandlers.forEach((t=>t({transaction:h,emitterResult:r})))}else{const t=this.watchedTransactions.find((t=>t.hash===h.hash||h.txid)),e=t&&t.emitter.emit(h);this._transactionHandlers.forEach((t=>t({transaction:h,emitterResult:e}))),"speedup"!==h.status&&"cancel"!==h.status||(this.watchedTransactions=this.watchedTransactions.map((t=>t.hash===h.hash||h.txid?{...t,hash:h.replaceHash}:t)))}}}function ps(t){return JSON.stringify({timeStamp:(new Date).toISOString(),dappId:this._dappId,version:"4.6.7",appName:this._appName,appVersion:this._appVersion,blockchain:{system:this._system,network:Gn(this._system,this._networkId)||"local"},...t},"configs"===t.categoryCode?Zn:void 0)}function fs(){return new Promise((t=>{const e=setInterval((()=>{this._connected&&(setTimeout(t,100),clearInterval(e))}))}))}const ys="unknown",bs="unknown",ws="ethereum";function _s(t){this._connected=!0;const e={categoryCode:"initialize",eventCode:"checkDappId",connectionId:this._connectionId};this._socket.send(ps.bind(this)(e)),this._heartbeat&&this._heartbeat(),t&&t()}function gs(t,e){this._connected=!1,t&&t(e),this._pingTimeout&&clearTimeout(this._pingTimeout)}async function vs(t){this._connected=!0;const e={categoryCode:"initialize",eventCode:"checkDappId",connectionId:this._connectionId};this._socket.send(ps.bind(this)(e));const n=Array.from(this.configurations.values()),r=this.configurations.get("global");if(r)try{const{emitter:t,subscription:e,...n}=r;await this.configuration(n)}catch(s){Un.warn("Error re-sending global configuration upon reconnection:",s)}n.filter((({scope:t})=>"global"!==t)).forEach((t=>{const{emitter:e,subscription:n,...r}=t;this._sendMessage({categoryCode:"configs",eventCode:"put",config:r})})),this.watchedAccounts.forEach((t=>{this._sendMessage({eventCode:"accountAddress",categoryCode:"watch",account:{address:t.address}})})),t&&t(),this._socket.ws&&this._socket.ws.on&&(this._socket.ws.on("ping",(()=>{this._heartbeat&&this._heartbeat()})),this._heartbeat())}const ms=class{constructor(t){qn(t);const{system:e=ws,name:n=ys,appVersion:s=bs,networkId:o,transactionHandlers:i=[],ws:c,onopen:a,ondown:u,onreopen:h,onerror:l,onclose:d}=t,{apiUrl:p}=t,{dappId:f}=t,y={connectTimeout:1e4},b=new r.Z(p||"wss://api.blocknative.com/v0",c?{wsConstructor:c,...y}:{...y});b.onopen=_s.bind(this,a),b.ondown=gs.bind(this,u),b.onreopen=vs.bind(this,h),b.onmessage=ds.bind(this),b.onerror=t=>l&&l({message:"There was a WebSocket error",error:t}),b.onclose=()=>{this._pingTimeout&&clearInterval(this._pingTimeout),d&&d()};const w=Ne.SHA1(`${f} - ${n}`).toString(),_=Jn()&&window.localStorage.getItem(w);this._storageKey=w,this._connectionId=_||void 0,this._dappId=f,this._system=e,this._networkId=o,this._appName=n,this._appVersion=s,this._transactionHandlers=i,this._socket=b,this._connected=!1,this._sendMessage=hs.bind(this),this._pingTimeout=void 0,this._destroyed=!1,this._onerror=l,this._queuedMessages=[],this._limitRules=$n,this._waitToRetry=null,this._processingQueue=!1,this._processQueue=ls.bind(this),this._socket.ws.on&&(this._heartbeat=()=>{this._pingTimeout&&clearTimeout(this._pingTimeout),this._pingTimeout=setTimeout((()=>{this._socket.ws.terminate()}),31e3)},this._socket.ws.on("ping",(()=>{this._heartbeat&&this._heartbeat()}))),this.watchedTransactions=[],this.watchedAccounts=[],this.configurations=new Map,this.transaction=tr.bind(this),this.account=er.bind(this),this.event=nr.bind(this),this.simulate=rs.bind(this),this.multiSim=ss.bind(this),this.unsubscribe=os.bind(this),this.configuration=is.bind(this),this.destroy=()=>{this._socket.close(),this._destroyed=!0,this._socket.onclose()}}static multichain(t){return new us(t,this)}}},32783:t=>{var e=9007199254740991,n="[object Arguments]",r="[object Function]",s="[object GeneratorFunction]",o=/^(?:0|[1-9]\d*)$/;function i(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var c=Object.prototype,a=c.hasOwnProperty,u=c.toString,h=c.propertyIsEnumerable,l=Math.max;function d(t,e){var r=g(t)||function(t){return function(t){return function(t){return!!t&&"object"==typeof t}(t)&&v(t)}(t)&&a.call(t,"callee")&&(!h.call(t,"callee")||u.call(t)==n)}(t)?function(t,e){for(var n=-1,r=Array(t);++n-1&&t%1==0&&t-1&&t%1==0&&t<=e}(t.length)&&!function(t){var e=m(t)?u.call(t):"";return e==r||e==s}(t)}function m(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var S,E=(S=function(t,e,n,r){!function(t,e,n,r){n||(n={});for(var s=-1,o=e.length;++s1?e[r-1]:void 0,o=r>2?e[2]:void 0;for(s=S.length>3&&"function"==typeof s?(r--,s):void 0,o&&function(t,e,n){if(!m(n))return!1;var r=typeof e;return!!("number"==r?v(n)&&w(e,n.length):"string"==r&&e in n)&&_(n[e],t)}(e[0],e[1],o)&&(s=r<3?void 0:s,r=1),t=Object(t);++n{"use strict";var r=n(98399);var s=n(32783),o=function(){function t(e,n,r){if(this.url=e,this.onclose=null,this.onerror=null,this.onmessage=null,this.onopen=null,this.ondown=null,this.onreopen=null,this.CONNECTING=t.CONNECTING,this.OPEN=t.OPEN,this.CLOSING=t.CLOSING,this.CLOSED=t.CLOSED,this.hasBeenOpened=!1,this.isClosed=!1,this.messageBuffer=[],this.nextRetryTime=0,this.reconnectCount=0,this.lastKnownExtensions="",this.lastKnownProtocol="",this.listeners={},null==n||"string"==typeof n||Array.isArray(n)?this.protocols=n:r=n,this.options=s({},r,t.DEFAULT_OPTIONS),!this.options.wsConstructor){if("undefined"==typeof WebSocket)throw new Error("WebSocket not present in global scope and no wsConstructor option was provided.");this.options.wsConstructor=WebSocket}this.openNewWebSocket()}return Object.defineProperty(t.prototype,"binaryType",{get:function(){return this.binaryTypeInternal||"blob"},set:function(t){this.binaryTypeInternal=t,this.ws&&(this.ws.binaryType=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bufferedAmount",{get:function(){var t=this.ws?this.ws.bufferedAmount:0,e=!1;return this.messageBuffer.forEach((function(n){var r=function(t){return"string"==typeof t?2*t.length:t instanceof ArrayBuffer?t.byteLength:t instanceof Blob?t.size:void 0}(n);null!=r?t+=r:e=!0})),e&&this.debugLog("Some buffered data had unknown length. bufferedAmount() return value may be below the correct amount."),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extensions",{get:function(){return this.ws?this.ws.extensions:this.lastKnownExtensions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"protocol",{get:function(){return this.ws?this.ws.protocol:this.lastKnownProtocol},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readyState",{get:function(){return this.isClosed?t.CLOSED:t.OPEN},enumerable:!0,configurable:!0}),t.prototype.close=function(t,e){this.ws&&this.ws.close(t,e),this.shutdown(),this.debugLog("WebSocket permanently closed by client.")},t.prototype.send=function(t){this.ws&&this.ws.readyState===this.OPEN?this.ws.send(t):this.messageBuffer.push(t)},t.prototype.addEventListener=function(t,e){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e)},t.prototype.dispatchEvent=function(t){return this.dispatchEventOfType(t.type,t)},t.prototype.removeEventListener=function(t,e){this.listeners[t]&&(this.listeners[t]=this.listeners[t].filter((function(t){return t!==e})))},t.prototype.openNewWebSocket=function(){var t=this;if(!this.isClosed){var e=this.options,n=e.connectTimeout,r=e.wsConstructor;this.debugLog("Opening new WebSocket to "+this.url+".");var s=new r(this.url,this.protocols);s.onclose=function(e){return t.handleClose(e)},s.onerror=function(e){return t.handleError(e)},s.onmessage=function(e){return t.handleMessage(e)},s.onopen=function(e){return t.handleOpen(e)},this.connectTimeoutId=setTimeout((function(){t.clearConnectTimeout(),s.close()}),n),this.ws=s}},t.prototype.handleOpen=function(t){var e=this;if(this.ws&&!this.isClosed){var n=this.options.allClearResetTime;this.debugLog("WebSocket opened."),null!=this.binaryTypeInternal?this.ws.binaryType=this.binaryTypeInternal:this.binaryTypeInternal=this.ws.binaryType,this.clearConnectTimeout(),this.hasBeenOpened?this.dispatchEventOfType("reopen",t):(this.dispatchEventOfType("open",t),this.hasBeenOpened=!0),this.messageBuffer.forEach((function(t){return e.send(t)})),this.messageBuffer=[],this.allClearTimeoutId=setTimeout((function(){e.clearAllClearTimeout(),e.nextRetryTime=0,e.reconnectCount=0;var t=n/1e3|0;e.debugLog("WebSocket remained open for "+t+" seconds. Resetting retry time and count.")}),n)}},t.prototype.handleMessage=function(t){this.isClosed||this.dispatchEventOfType("message",t)},t.prototype.handleClose=function(t){var e=this;if(!this.isClosed){var n=this.options,r=n.maxReconnectAttempts,s=n.shouldReconnect;if(this.clearConnectTimeout(),this.clearAllClearTimeout(),this.ws&&(this.lastKnownExtensions=this.ws.extensions,this.lastKnownProtocol=this.ws.protocol,this.ws=void 0),this.dispatchEventOfType("down",t),this.reconnectCount>=r)this.stopReconnecting(t,this.getTooManyFailedReconnectsMessage());else{var o=s(t);"boolean"==typeof o?this.handleWillReconnect(o,t,"Provided shouldReconnect() returned false. Closing permanently."):o.then((function(n){e.isClosed||e.handleWillReconnect(n,t,"Provided shouldReconnect() resolved to false. Closing permanently.")}))}}},t.prototype.handleError=function(t){this.dispatchEventOfType("error",t),this.debugLog("WebSocket encountered an error.")},t.prototype.handleWillReconnect=function(t,e,n){t?this.reconnect():this.stopReconnecting(e,n)},t.prototype.reconnect=function(){var t=this,e=this.options,n=e.minReconnectDelay,r=e.maxReconnectDelay,s=e.reconnectBackoffFactor;this.reconnectCount++;var o=this.nextRetryTime;this.nextRetryTime=Math.max(n,Math.min(this.nextRetryTime*s,r)),setTimeout((function(){return t.openNewWebSocket()}),o);var i=o/1e3|0;this.debugLog("WebSocket was closed. Re-opening in "+i+" seconds.")},t.prototype.stopReconnecting=function(t,e){this.debugLog(e),this.shutdown(),this.dispatchEventOfType("close",t)},t.prototype.shutdown=function(){this.isClosed=!0,this.clearAllTimeouts(),this.messageBuffer=[]},t.prototype.clearAllTimeouts=function(){this.clearConnectTimeout(),this.clearAllClearTimeout()},t.prototype.clearConnectTimeout=function(){null!=this.connectTimeoutId&&(clearTimeout(this.connectTimeoutId),this.connectTimeoutId=void 0)},t.prototype.clearAllClearTimeout=function(){null!=this.allClearTimeoutId&&(clearTimeout(this.allClearTimeoutId),this.allClearTimeoutId=void 0)},t.prototype.dispatchEventOfType=function(t,e){var n=this;switch(t){case"close":this.onclose&&this.onclose(e);break;case"error":this.onerror&&this.onerror(e);break;case"message":this.onmessage&&this.onmessage(e);break;case"open":this.onopen&&this.onopen(e);break;case"down":this.ondown&&this.ondown(e);break;case"reopen":this.onreopen&&this.onreopen(e)}return t in this.listeners&&this.listeners[t].slice().forEach((function(t){return n.callListener(t,e)})),!e||!e.defaultPrevented},t.prototype.callListener=function(t,e){"function"==typeof t?t.call(this,e):t.handleEvent.call(this,e)},t.prototype.debugLog=function(t){this.options.debug&&r.log(t)},t.prototype.getTooManyFailedReconnectsMessage=function(){var t,e=this.options.maxReconnectAttempts;return"Failed to reconnect after "+e+" "+(t="attempt",(1===e?t:t+"s")+". Closing permanently.")},t.DEFAULT_OPTIONS={allClearResetTime:5e3,connectTimeout:5e3,debug:!1,minReconnectDelay:1e3,maxReconnectDelay:3e4,maxReconnectAttempts:Number.POSITIVE_INFINITY,reconnectBackoffFactor:1.5,shouldReconnect:function(){return!0},wsConstructor:void 0},t.CONNECTING=0,t.OPEN=1,t.CLOSING=2,t.CLOSED=3,t}();e.Z=o}}]); \ No newline at end of file diff --git a/6050.7192c28b4a1d4ae8.esm.js.LICENSE.txt b/6050.7192c28b4a1d4ae8.esm.js.LICENSE.txt new file mode 100644 index 000000000..9ccbd1dbb --- /dev/null +++ b/6050.7192c28b4a1d4ae8.esm.js.LICENSE.txt @@ -0,0 +1,20 @@ +/*! ***************************************************************************** +Copyright (c) Microsoft Corporation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); you may not use +this file except in compliance with the License. You may obtain a copy of the +License at http://www.apache.org/licenses/LICENSE-2.0 + +THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED +WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, +MERCHANTABLITY OR NON-INFRINGEMENT. + +See the Apache Version 2.0 License for specific language governing permissions +and limitations under the License. +***************************************************************************** */ + +/** @preserve + * Counter block mode compatible with Dr Brian Gladman fileenc.c + * derived from CryptoJS.mode.CTR + * Jan Hruby jhruby.web@gmail.com + */ diff --git a/6093.1580692781e95c5a.esm.js b/6093.1580692781e95c5a.esm.js new file mode 100644 index 000000000..16a6fd50f --- /dev/null +++ b/6093.1580692781e95c5a.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6093],{6093:(n,i,t)=>{t.r(i),t.d(i,{default:()=>e});const e='\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'}}]); \ No newline at end of file diff --git a/6112.67878eafcc019c48.esm.js b/6112.67878eafcc019c48.esm.js new file mode 100644 index 000000000..88650724d --- /dev/null +++ b/6112.67878eafcc019c48.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6112],{76112:(C,e,l)=>{l.r(e),l.d(e,{default:()=>t});const t='\n\n\n\n'}}]); \ No newline at end of file diff --git a/6177.dd09b0c962864858.esm.js b/6177.dd09b0c962864858.esm.js new file mode 100644 index 000000000..32ad12ae4 --- /dev/null +++ b/6177.dd09b0c962864858.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6177],{56177:(t,e,l)=>{l.r(e),l.d(e,{default:()=>C});const C='\n\t\n\t\t\n\t\t\n\t\n'}}]); \ No newline at end of file diff --git a/6251.c6da5bbce1099045.esm.js b/6251.c6da5bbce1099045.esm.js new file mode 100644 index 000000000..e1343dfb0 --- /dev/null +++ b/6251.c6da5bbce1099045.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6251],{36251:(t,n,i)=>{i.r(n),i.d(n,{default:()=>l});const l='\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'}}]); \ No newline at end of file diff --git a/627.4b0e63d2a7f4e592.esm.js b/627.4b0e63d2a7f4e592.esm.js new file mode 100644 index 000000000..8aa6814e1 --- /dev/null +++ b/627.4b0e63d2a7f4e592.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[627],{80627:(C,L,n)=>{n.r(L),n.d(L,{default:()=>l});const l='\n\n \n \n \n\n'}}]); \ No newline at end of file diff --git a/6306.6c194cef393d8633.esm.js b/6306.6c194cef393d8633.esm.js new file mode 100644 index 000000000..bcff0187c --- /dev/null +++ b/6306.6c194cef393d8633.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6306],{76306:(n,t,e)=>{e.r(t),e.d(t,{default:()=>s});const s='\n \n \n \n \n \n \n \n '}}]); \ No newline at end of file diff --git a/6319.1416526bf44167a5.esm.js b/6319.1416526bf44167a5.esm.js new file mode 100644 index 000000000..8672be0c4 --- /dev/null +++ b/6319.1416526bf44167a5.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6319],{56319:(s,c,n)=>{n.r(c),n.d(c,{default:()=>e});const e='\n \n \n \n'}}]); \ No newline at end of file diff --git a/6498.3d213c67fa331852.esm.js b/6498.3d213c67fa331852.esm.js new file mode 100644 index 000000000..7daadf2a3 --- /dev/null +++ b/6498.3d213c67fa331852.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6498],{86498:(h,l,c)=>{c.r(l),c.d(l,{default:()=>t});const t=''}}]); \ No newline at end of file diff --git a/69.c626fe60da82e4d3.esm.js b/69.c626fe60da82e4d3.esm.js new file mode 100644 index 000000000..11e9f9334 --- /dev/null +++ b/69.c626fe60da82e4d3.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[69],{80069:(A,I,E)=>{E.r(I),E.d(I,{default:()=>g});const g='\n\n\n\n\n\n\n\n\n'}}]); \ No newline at end of file diff --git a/6927.b915f577f122af9d.esm.js b/6927.b915f577f122af9d.esm.js new file mode 100644 index 000000000..391ae5cb9 --- /dev/null +++ b/6927.b915f577f122af9d.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6927],{86927:(n,i,t)=>{t.r(i),t.d(i,{default:()=>e});const e='\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'}}]); \ No newline at end of file diff --git a/7005.62bd75fc90e00b5e.esm.js b/7005.62bd75fc90e00b5e.esm.js new file mode 100644 index 000000000..494f06e94 --- /dev/null +++ b/7005.62bd75fc90e00b5e.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7005],{87005:(C,s,e)=>{e.r(s),e.d(s,{default:()=>l});const l='\n\n'}}]); \ No newline at end of file diff --git a/7039.bddc36de72efcb1a.esm.js b/7039.bddc36de72efcb1a.esm.js new file mode 100644 index 000000000..4b250cc62 --- /dev/null +++ b/7039.bddc36de72efcb1a.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7039],{7039:(t,d,e)=>{e.r(d),e.d(d,{default:()=>a});const a='\n\n \n \n \n \n \n \n \n \n \n\n'}}]); \ No newline at end of file diff --git a/7054.a6391950395546c1.esm.js b/7054.a6391950395546c1.esm.js new file mode 100644 index 000000000..f20cb34f1 --- /dev/null +++ b/7054.a6391950395546c1.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7054],{87054:(c,l,h)=>{h.r(l),h.d(l,{default:()=>t});const t='\n\n \n'}}]); \ No newline at end of file diff --git a/7087.f0298b3043b93021.esm.js b/7087.f0298b3043b93021.esm.js new file mode 100644 index 000000000..523b48804 --- /dev/null +++ b/7087.f0298b3043b93021.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7087],{50280:(n,s,l)=>{l.r(s),l.d(s,{default:()=>e});const e='\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'}}]); \ No newline at end of file diff --git a/7417.faca252efadd2e7b.esm.js b/7417.faca252efadd2e7b.esm.js new file mode 100644 index 000000000..4e8c6c8e5 --- /dev/null +++ b/7417.faca252efadd2e7b.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7417],{17417:(e,n,t)=>{t.r(n),t.d(n,{default:()=>i});const i='\n\nShape Copy\nCreated with Sketch.\n\n \n \n \n \n\n\n \n\n\n'}}]); \ No newline at end of file diff --git a/7579.1ba7e8761e462afe.esm.js b/7579.1ba7e8761e462afe.esm.js new file mode 100644 index 000000000..8b0bb0161 --- /dev/null +++ b/7579.1ba7e8761e462afe.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7579],{57579:(t,o,n)=>{n.r(o),n.d(o,{default:()=>s});const s='\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\t\n\t\t\n\t\t\n\t\n'}}]); \ No newline at end of file diff --git a/763.3feb1ecc1cd499dc.esm.js b/763.3feb1ecc1cd499dc.esm.js new file mode 100644 index 000000000..d6d22f944 --- /dev/null +++ b/763.3feb1ecc1cd499dc.esm.js @@ -0,0 +1 @@ +(self.webpackChunk=self.webpackChunk||[]).push([[763],{90763:()=>{}}]); \ No newline at end of file diff --git a/7641.760b5b1606b1ae6a.esm.js b/7641.760b5b1606b1ae6a.esm.js new file mode 100644 index 000000000..7d06bd789 --- /dev/null +++ b/7641.760b5b1606b1ae6a.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7641],{17641:(C,n,t)=>{t.r(n),t.d(n,{default:()=>e});const e='\n\n brave-browser\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'}}]); \ No newline at end of file diff --git a/7720.871b7be048b5d453.esm.js b/7720.871b7be048b5d453.esm.js new file mode 100644 index 000000000..90dadfef9 --- /dev/null +++ b/7720.871b7be048b5d453.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7720],{17720:(e,l,t)=>{t.r(l),t.d(l,{default:()=>n});const n='\n\t\n\t\t\n\t\n'}}]); \ No newline at end of file diff --git a/787.a8d54e18dae086f5.esm.js b/787.a8d54e18dae086f5.esm.js new file mode 100644 index 000000000..366aa6faf --- /dev/null +++ b/787.a8d54e18dae086f5.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[787],{30787:(C,e,l)=>{l.r(e),l.d(e,{default:()=>n});const n='\n\n\n\n\n'}}]); \ No newline at end of file diff --git a/8294.792c2875870724b6.esm.js b/8294.792c2875870724b6.esm.js new file mode 100644 index 000000000..e4fe39e95 --- /dev/null +++ b/8294.792c2875870724b6.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8294],{28294:(c,l,n)=>{n.r(l),n.d(l,{default:()=>s});const s='\n \n \n \n'}}]); \ No newline at end of file diff --git a/8445.b710d1bf99bbcd39.esm.js b/8445.b710d1bf99bbcd39.esm.js new file mode 100644 index 000000000..8ee5f6b2d --- /dev/null +++ b/8445.b710d1bf99bbcd39.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8445],{38445:(t,h,l)=>{l.r(h),l.d(h,{default:()=>e});const e='\n\n\n\n\n'}}]); \ No newline at end of file diff --git a/8513.7bf6976d991be68d.esm.js b/8513.7bf6976d991be68d.esm.js new file mode 100644 index 000000000..c6a41999c --- /dev/null +++ b/8513.7bf6976d991be68d.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8513],{88513:(C,l,n)=>{n.r(l),n.d(l,{default:()=>t});const t='\nIcons/Illustrations/Logo_40x40_white_background\n\n \n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'}}]); \ No newline at end of file diff --git a/8588.b29882b8ef4a4fbe.esm.js b/8588.b29882b8ef4a4fbe.esm.js new file mode 100644 index 000000000..159402411 --- /dev/null +++ b/8588.b29882b8ef4a4fbe.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8588],{58588:(c,n,s)=>{s.r(n),s.d(n,{default:()=>l});const l='\n\n\x3c!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --\x3e\n\n'}}]); \ No newline at end of file diff --git a/8790.a6521ce6ce49dad3.esm.js b/8790.a6521ce6ce49dad3.esm.js new file mode 100644 index 000000000..3df636bfa --- /dev/null +++ b/8790.a6521ce6ce49dad3.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8790],{38790:(L,n,t)=>{t.r(n),t.d(n,{default:()=>e});const e='\n\n\n'}}]); \ No newline at end of file diff --git a/8792.5bbbad64c9aa5db9.esm.js b/8792.5bbbad64c9aa5db9.esm.js new file mode 100644 index 000000000..6937f7699 --- /dev/null +++ b/8792.5bbbad64c9aa5db9.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8792],{68792:(C,e,l)=>{l.r(e),l.d(e,{default:()=>t});const t='\n\n\n'}}]); \ No newline at end of file diff --git a/8858.f05232a1e1d2ba7b.esm.js b/8858.f05232a1e1d2ba7b.esm.js new file mode 100644 index 000000000..0e430cb49 --- /dev/null +++ b/8858.f05232a1e1d2ba7b.esm.js @@ -0,0 +1,2 @@ +/*! For license information please see 8858.f05232a1e1d2ba7b.esm.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[8858],{72872:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletSDK=void 0;const n=r(63711),i=r(34112),s=r(47762),o=r(94767),a=r(81946),c=r(12376),u=r(89155),l=r(35314),h=r(20943);class d{constructor(e){var t,r,n;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;const o=e.linkAPIUrl||i.LINK_API_URL;let l;if(l=e.uiConstructor?e.uiConstructor:e=>new a.WalletSDKUI(e),void 0===e.overrideIsMetaMask?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=e.overrideIsMetaMask,this._overrideIsCoinbaseWallet=null===(t=e.overrideIsCoinbaseWallet)||void 0===t||t,this._overrideIsCoinbaseBrowser=null!==(r=e.overrideIsCoinbaseBrowser)&&void 0!==r&&r,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this._diagnosticLogger={log:e.eventListener.onEvent}:this._diagnosticLogger=e.diagnosticLogger,this._reloadOnDisconnect=null===(n=e.reloadOnDisconnect)||void 0===n||n;const f=new URL(o),p=`${f.protocol}//${f.host}`;this._storage=new s.ScopedLocalStorage(`-walletlink:${p}`),this._storage.setItem("version",d.VERSION),this.walletExtension||this.coinbaseBrowser||(this._relayEventManager=new u.WalletSDKRelayEventManager,this._relay=new c.WalletSDKRelay({linkAPIUrl:o,version:h.LIB_VERSION,darkMode:!!e.darkMode,uiConstructor:l,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),this.setAppInfo(e.appName,e.appLogoUrl),e.headlessMode||this._relay.attachUI())}makeWeb3Provider(e="",t=1){const r=this.walletExtension;if(r)return this.isCipherProvider(r)||r.setProviderInfo(e,t),!1===this._reloadOnDisconnect&&"function"==typeof r.disableReloadOnDisconnect&&r.disableReloadOnDisconnect(),r;const n=this.coinbaseBrowser;if(n)return n;const i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return e||i.setConnectDisabled(!0),new o.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(i),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:e,chainId:t,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(e,t){var r;this._appName=e||"DApp",this._appLogoUrl=t||(0,l.getFavicon)();const n=this.walletExtension;n?this.isCipherProvider(n)||n.setAppInfo(this._appName,this._appLogoUrl):null===(r=this._relay)||void 0===r||r.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var e;const t=this.walletExtension;t?t.close():null===(e=this._relay)||void 0===e||e.resetAndReload()}getQrUrl(){var e,t;return null!==(t=null===(e=this._relay)||void 0===e?void 0:e.getQRCodeUrl())&&void 0!==t?t:null}getCoinbaseWalletLogo(e,t=240){return(0,n.walletLogo)(e,t)}get walletExtension(){var e;return null!==(e=window.coinbaseWalletExtension)&&void 0!==e?e:window.walletLinkExtension}get coinbaseBrowser(){var e,t;try{const r=null!==(e=window.ethereum)&&void 0!==e?e:null===(t=window.top)||void 0===t?void 0:t.ethereum;if(!r)return;return"isCoinbaseBrowser"in r&&r.isCoinbaseBrowser?r:void 0}catch(r){return}}isCipherProvider(e){return"boolean"==typeof e.isCipher&&e.isCipher}}t.CoinbaseWalletSDK=d,d.VERSION=h.LIB_VERSION},63711:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walletLogo=void 0;t.walletLogo=(e,t)=>{let r;switch(e){case"standard":default:return r=t,`data:image/svg+xml,%3Csvg width='${t}' height='${r}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return r=t,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${r}' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return r=(.1*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return r=(.25*t).toFixed(2),`data:image/svg+xml,%3Csvg width='${t}' height='${r}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`}}},67948:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"},89154:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseAppSteps=t.CoinbaseWalletSteps=t.ConnectItem=t.ConnectContent=void 0;const i=n(r(54325)),s=r(96574),o=r(98128),a=r(35314),c=r(20943),u=r(55769),l=n(r(94368)),h=n(r(37231)),d=r(78293),f=n(r(57568)),p=n(r(82898)),y=r(14333),g=r(84418),b=r(41876),m=n(r(67948)),v={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:h.default,steps:E},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:l.default,steps:S}},_=e=>"light"===e?"#FFFFFF":"#0A0B0D";function w({title:e,description:t,icon:r,selected:n,theme:o,onClick:a}){return(0,s.h)("div",{onClick:a,class:(0,i.default)("-cbwsdk-connect-item",o,{selected:n})},(0,s.h)("div",null,(0,s.h)("img",{src:r,alt:e})),(0,s.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,s.h)("h3",{class:"-cbwsdk-connect-item-title"},e),(0,s.h)("p",{class:"-cbwsdk-connect-item-description"},t)))}function E({theme:e}){return(0,s.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",e)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",e)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,s.h)("span",null,"Tap ",(0,s.h)("strong",null,"Scan")," "),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,s.h)(d.QRCodeIcon,{fill:_(e)})))))}function S({theme:e}){return(0,s.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",e)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",e)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,s.h)("span",null,"Tap ",(0,s.h)("strong",null,"More")),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,s.h)(y.StatusDotIcon,{fill:_(e)})),(0,s.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,s.h)("strong",null,"Scan")),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,s.h)(d.QRCodeIcon,{fill:_(e)})))))}t.ConnectContent=function(e){const{theme:t}=e,[r,n]=(0,o.useState)("coinbase-wallet-app"),l=(0,o.useCallback)((e=>{n(e)}),[]),h=(0,a.createQrUrl)(e.sessionId,e.sessionSecret,e.linkAPIUrl,e.isParentConnection,e.version,e.chainId);if(!r)return null;const d=v[r].steps,y="coinbase-app"===r;return(0,s.h)("div",{"data-testid":"connect-content",class:(0,i.default)("-cbwsdk-connect-content",t)},(0,s.h)("style",null,m.default),(0,s.h)("div",{class:"-cbwsdk-connect-content-header"},(0,s.h)("h2",{class:(0,i.default)("-cbwsdk-connect-content-heading",t)},"Scan to connect with one of our mobile apps"),e.onCancel&&(0,s.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:e.onCancel},(0,s.h)(u.CloseIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,s.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,s.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,s.h)("div",null,Object.entries(v).map((([e,n])=>(0,s.h)(w,{key:e,title:n.title,description:n.description,icon:n.icon,selected:r===e,onClick:()=>l(e),theme:t})))),y&&(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-content-update-app",t)},"Don\u2019t see a ",(0,s.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,s.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,s.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,s.h)(g.QRCode,{content:h,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:(_=r,"coinbase-app"===_?f.default:p.default),width:25,height:25}}),(0,s.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:c.LIB_VERSION}),(0,s.h)("input",{type:"hidden",value:h})),(0,s.h)(d,{theme:t}),!e.isConnected&&(0,s.h)("div",{"data-testid":"connecting-spinner",class:(0,i.default)("-cbwsdk-connect-content-qr-connecting",t)},(0,s.h)(b.Spinner,{size:36,color:"dark"===t?"#FFF":"#000"}),(0,s.h)("p",null,"Connecting...")))));var _},t.ConnectItem=w,t.CoinbaseWalletSteps=E,t.CoinbaseAppSteps=S},32974:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"},20298:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConnectDialog=void 0;const i=n(r(54325)),s=r(96574),o=r(98128),a=r(89154),c=r(60772),u=n(r(32974));t.ConnectDialog=e=>{const{isOpen:t,darkMode:r}=e,[n,l]=(0,o.useState)(!t),[h,d]=(0,o.useState)(!t);(0,o.useEffect)((()=>{const e=[window.setTimeout((()=>{d(!t)}),10)];return t?l(!1):e.push(window.setTimeout((()=>{l(!0)}),360)),()=>{e.forEach(window.clearTimeout)}}),[e.isOpen]);const f=r?"dark":"light";return(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-container",n&&"-cbwsdk-connect-dialog-container-hidden")},(0,s.h)("style",null,u.default),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-backdrop",f,h&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,s.h)("div",{class:"-cbwsdk-connect-dialog"},(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-box",h&&"-cbwsdk-connect-dialog-box-hidden")},e.connectDisabled?null:(0,s.h)(a.ConnectContent,{theme:f,version:e.version,sessionId:e.sessionId,sessionSecret:e.sessionSecret,linkAPIUrl:e.linkAPIUrl,isConnected:e.isConnected,isParentConnection:e.isParentConnection,chainId:e.chainId,onCancel:e.onCancel}),(0,s.h)(c.TryExtensionContent,{theme:f}))))}},22483:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkFlow=void 0;const n=r(96574),i=r(82145),s=r(20298);t.LinkFlow=class{constructor(e){this.extensionUI$=new i.BehaviorSubject({}),this.subscriptions=new i.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=e.darkMode,this.version=e.version,this.sessionId=e.sessionId,this.sessionSecret=e.sessionSecret,this.linkAPIUrl=e.linkAPIUrl,this.isParentConnection=e.isParentConnection,this.connected$=e.connected$,this.chainId$=e.chainId$}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",e.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe((e=>{this.isConnected!==e&&(this.isConnected=e,this.render())}))),this.subscriptions.add(this.chainId$.subscribe((e=>{this.chainId!==e&&(this.chainId=e,this.render())})))}detach(){var e;this.root&&(this.subscriptions.unsubscribe(),(0,n.render)(null,this.root),null===(e=this.root.parentElement)||void 0===e||e.removeChild(this.root))}setConnectDisabled(e){this.connectDisabled=e}open(e){this.isOpen=!0,this.onCancel=e.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;const e=this.extensionUI$.subscribe((()=>{this.root&&(0,n.render)((0,n.h)(s.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)}));this.subscriptions.add(e)}}},84418:function(e,t,r){"use strict";var n=r(75291).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=void 0;const s=r(96574),o=r(98128),a=i(r(40055));t.QRCode=e=>{const[t,r]=(0,o.useState)("");return(0,o.useEffect)((()=>{var t,i;const s=new a.default({content:e.content,background:e.bgColor||"#ffffff",color:e.fgColor||"#000000",container:"svg",ecl:"M",width:null!==(t=e.width)&&void 0!==t?t:256,height:null!==(i=e.height)&&void 0!==i?i:256,padding:0,image:e.image}),o=n.from(s.svg(),"utf8").toString("base64");r(`data:image/svg+xml;base64,${o}`)})),t?(0,s.h)("img",{src:t,alt:"QR Code"}):null}},75558:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"},19844:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SnackbarInstance=t.SnackbarContainer=t.Snackbar=void 0;const i=n(r(54325)),s=r(96574),o=r(98128),a=n(r(75558));function c(e){return"coinbase-app"===e?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAu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jQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"}t.Snackbar=class{constructor(e){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=e.darkMode}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){const t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,s.render)((0,s.h)("div",null,(0,s.h)(t.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map((([e,r])=>(0,s.h)(t.SnackbarInstance,Object.assign({},r,{key:e})))))),this.root)}};t.SnackbarContainer=e=>(0,s.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-container")},(0,s.h)("style",null,a.default),(0,s.h)("div",{class:"-cbwsdk-snackbar"},e.children));t.SnackbarInstance=({autoExpand:e,message:t,menuItems:r,appSrc:n})=>{const[a,u]=(0,o.useState)(!0),[l,h]=(0,o.useState)(null!=e&&e);(0,o.useEffect)((()=>{const e=[window.setTimeout((()=>{u(!1)}),1),window.setTimeout((()=>{h(!0)}),1e4)];return()=>{e.forEach(window.clearTimeout)}}));return(0,s.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance",a&&"-cbwsdk-snackbar-instance-hidden",l&&"-cbwsdk-snackbar-instance-expanded")},(0,s.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:()=>{h(!l)}},(0,s.h)("img",{src:c(n),class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,s.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},t),(0,s.h)("div",{class:"-gear-container"},!l&&(0,s.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,s.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),r&&r.length>0&&(0,s.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},r.map(((e,t)=>(0,s.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:e.onClick,key:t},(0,s.h)("svg",{width:e.svgWidth,height:e.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("path",{"fill-rule":e.defaultFillRule,"clip-rule":e.defaultClipRule,d:e.path,fill:"#AAAAAA"})),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item-info",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},e.info))))))}},71625:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"},41876:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=void 0;const i=r(96574),s=n(r(71625));t.Spinner=e=>{var t;const r=null!==(t=e.size)&&void 0!==t?t:64,n=e.color||"#000";return(0,i.h)("div",{class:"-cbwsdk-spinner"},(0,i.h)("style",null,s.default),(0,i.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:r,height:r}},(0,i.h)("circle",{style:{cx:50,cy:50,r:45,stroke:n}})))}},89170:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}"},60772:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TryExtensionContent=void 0;const i=n(r(54325)),s=r(96574),o=r(98128),a=r(29483),c=r(44962),u=r(3027),l=n(r(89170));t.TryExtensionContent=function({theme:e}){const[t,r]=(0,o.useState)(!1),n=(0,o.useCallback)((()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")}),[]),h=(0,o.useCallback)((()=>{t?window.location.reload():(n(),r(!0))}),[n,t]);return(0,s.h)("div",{class:(0,i.default)("-cbwsdk-try-extension",e)},(0,s.h)("style",null,l.default),(0,s.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,s.h)("h3",{class:(0,i.default)("-cbwsdk-try-extension-heading",e)},"Or try the Coinbase Wallet browser extension"),(0,s.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,s.h)("button",{class:(0,i.default)("-cbwsdk-try-extension-cta",e),onClick:h},t?"Refresh":"Install"),(0,s.h)("div",null,!t&&(0,s.h)(a.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:"light"===e?"#0052FF":"#588AF5"})))),(0,s.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,s.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,s.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,s.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,s.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,s.h)(c.LaptopIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",e)},"Connect with dapps with just one click on your desktop browser")),(0,s.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,s.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,s.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,s.h)(u.SafeIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",e)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}},29483:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowLeftIcon=void 0;const n=r(96574);t.ArrowLeftIcon=function(e){return(0,n.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,n.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}},55769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloseIcon=void 0;const n=r(96574);t.CloseIcon=function(e){return(0,n.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,n.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}},44962:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LaptopIcon=void 0;const n=r(96574);t.LaptopIcon=function(e){return(0,n.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,n.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,n.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}},78293:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QRCodeIcon=void 0;const n=r(96574);t.QRCodeIcon=function(e){return(0,n.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},e),(0,n.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,n.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,n.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,n.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,n.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,n.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,n.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,n.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,n.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}},57568:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default='\n \n \n \n \n \n'},82898:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default='\n \n \n \n \n \n \n'},3027:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SafeIcon=void 0;const n=r(96574);t.SafeIcon=function(e){return(0,n.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,n.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}},14333:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatusDotIcon=void 0;const n=r(96574);t.StatusDotIcon=function(e){return(0,n.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},e),(0,n.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}},94368:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default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OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="},8848:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientMessagePublishEvent=t.ClientMessageSetSessionConfig=t.ClientMessageGetSessionConfig=t.ClientMessageIsLinked=t.ClientMessageHostSession=void 0,t.ClientMessageHostSession=function(e){return Object.assign({type:"HostSession"},e)},t.ClientMessageIsLinked=function(e){return Object.assign({type:"IsLinked"},e)},t.ClientMessageGetSessionConfig=function(e){return Object.assign({type:"GetSessionConfig"},e)},t.ClientMessageSetSessionConfig=function(e){return Object.assign({type:"SetSessionConfig"},e)},t.ClientMessagePublishEvent=function(e){return Object.assign({type:"PublishEvent"},e)}},38567:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EVENTS=void 0,t.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}},69904:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RxWebSocket=t.ConnectionState=void 0;const n=r(82145),i=r(68353);var s;!function(e){e[e.DISCONNECTED=0]="DISCONNECTED",e[e.CONNECTING=1]="CONNECTING",e[e.CONNECTED=2]="CONNECTED"}(s=t.ConnectionState||(t.ConnectionState={}));t.RxWebSocket=class{constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.connectionStateSubject=new n.BehaviorSubject(s.DISCONNECTED),this.incomingDataSubject=new n.Subject,this.url=e.replace(/^http/,"ws")}connect(){return this.webSocket?(0,n.throwError)(new Error("webSocket object is not null")):new n.Observable((e=>{let t;try{this.webSocket=t=new this.WebSocketClass(this.url)}catch(r){return void e.error(r)}this.connectionStateSubject.next(s.CONNECTING),t.onclose=t=>{this.clearWebSocket(),e.error(new Error(`websocket error ${t.code}: ${t.reason}`)),this.connectionStateSubject.next(s.DISCONNECTED)},t.onopen=t=>{e.next(),e.complete(),this.connectionStateSubject.next(s.CONNECTED)},t.onmessage=e=>{this.incomingDataSubject.next(e.data)}})).pipe((0,i.take)(1))}disconnect(){const{webSocket:e}=this;if(e){this.clearWebSocket(),this.connectionStateSubject.next(s.DISCONNECTED);try{e.close()}catch(t){}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,i.flatMap)((e=>{let t;try{t=JSON.parse(e)}catch(r){return(0,n.empty)()}return(0,n.of)(t)})))}sendData(e){const{webSocket:t}=this;if(!t)throw new Error("websocket is not connected");t.send(e)}clearWebSocket(){const{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}}},71275:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isServerMessageFail=void 0,t.isServerMessageFail=function(e){return e&&"Fail"===e.type&&"number"==typeof e.id&&"string"==typeof e.sessionId&&"string"==typeof e.error}},23034:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKConnection=void 0;const n=r(82145),i=r(68353),s=r(86443),o=r(25927),a=r(8848),c=r(38567),u=r(69904),l=r(71275);t.WalletSDKConnection=class{constructor(e,t,r,a,l=WebSocket){this.sessionId=e,this.sessionKey=t,this.diagnostic=a,this.subscriptions=new n.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,o.IntNumber)(1),this.connectedSubject=new n.BehaviorSubject(!1),this.linkedSubject=new n.BehaviorSubject(!1),this.sessionConfigSubject=new n.ReplaySubject(1);const h=new u.RxWebSocket(r+"/rpc",l);this.ws=h,this.subscriptions.add(h.connectionState$.pipe((0,i.tap)((t=>{var r;return null===(r=this.diagnostic)||void 0===r?void 0:r.log(c.EVENTS.CONNECTED_STATE_CHANGE,{state:t,sessionIdHash:s.Session.hash(e)})})),(0,i.skip)(1),(0,i.filter)((e=>e===u.ConnectionState.DISCONNECTED&&!this.destroyed)),(0,i.delay)(5e3),(0,i.filter)((e=>!this.destroyed)),(0,i.flatMap)((e=>h.connect())),(0,i.retry)()).subscribe()),this.subscriptions.add(h.connectionState$.pipe((0,i.skip)(2),(0,i.switchMap)((e=>(0,n.iif)((()=>e===u.ConnectionState.CONNECTED),this.authenticate().pipe((0,i.tap)((e=>this.sendIsLinked())),(0,i.tap)((e=>this.sendGetSessionConfig())),(0,i.map)((e=>!0))),(0,n.of)(!1)))),(0,i.distinctUntilChanged)(),(0,i.catchError)((e=>(0,n.of)(!1)))).subscribe((e=>this.connectedSubject.next(e)))),this.subscriptions.add(h.connectionState$.pipe((0,i.skip)(1),(0,i.switchMap)((e=>(0,n.iif)((()=>e===u.ConnectionState.CONNECTED),(0,n.timer)(0,1e4))))).subscribe((e=>0===e?this.updateLastHeartbeat():this.heartbeat()))),this.subscriptions.add(h.incomingData$.pipe((0,i.filter)((e=>"h"===e))).subscribe((e=>this.updateLastHeartbeat()))),this.subscriptions.add(h.incomingJSONData$.pipe((0,i.filter)((e=>["IsLinkedOK","Linked"].includes(e.type)))).subscribe((t=>{var r;const n=t;null===(r=this.diagnostic)||void 0===r||r.log(c.EVENTS.LINKED,{sessionIdHash:s.Session.hash(e),linked:n.linked,type:t.type,onlineGuests:n.onlineGuests}),this.linkedSubject.next(n.linked||n.onlineGuests>0)}))),this.subscriptions.add(h.incomingJSONData$.pipe((0,i.filter)((e=>["GetSessionConfigOK","SessionConfigUpdated"].includes(e.type)))).subscribe((t=>{var r;const n=t;null===(r=this.diagnostic)||void 0===r||r.log(c.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:s.Session.hash(e),metadata_keys:n&&n.metadata?Object.keys(n.metadata):void 0}),this.sessionConfigSubject.next({webhookId:n.webhookId,webhookUrl:n.webhookUrl,metadata:n.metadata})})))}connect(){var e;if(this.destroyed)throw new Error("instance is destroyed");null===(e=this.diagnostic)||void 0===e||e.log(c.EVENTS.STARTED_CONNECTING,{sessionIdHash:s.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var e;this.subscriptions.unsubscribe(),this.ws.disconnect(),null===(e=this.diagnostic)||void 0===e||e.log(c.EVENTS.DISCONNECTED,{sessionIdHash:s.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,i.filter)((e=>e)),(0,i.take)(1),(0,i.map)((()=>{})))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,i.filter)((e=>e)),(0,i.take)(1),(0,i.map)((()=>{})))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,i.filter)((e=>{if("Event"!==e.type)return!1;const t=e;return"string"==typeof t.sessionId&&"string"==typeof t.eventId&&"string"==typeof t.event&&"string"==typeof t.data})),(0,i.map)((e=>e)))}setSessionMetadata(e,t){const r=(0,a.ClientMessageSetSessionConfig)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[e]:t}});return this.onceConnected$.pipe((0,i.flatMap)((e=>this.makeRequest(r))),(0,i.map)((e=>{if((0,l.isServerMessageFail)(e))throw new Error(e.error||"failed to set session metadata")})))}publishEvent(e,t,r=!1){const n=(0,a.ClientMessagePublishEvent)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:e,data:t,callWebhook:r});return this.onceLinked$.pipe((0,i.flatMap)((e=>this.makeRequest(n))),(0,i.map)((e=>{if((0,l.isServerMessageFail)(e))throw new Error(e.error||"failed to publish event");return e.eventId})))}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4)this.ws.disconnect();else try{this.ws.sendData("h")}catch(e){}}makeRequest(e,t=6e4){const r=e.id;try{this.sendData(e)}catch(s){return(0,n.throwError)(s)}return this.ws.incomingJSONData$.pipe((0,i.timeoutWith)(t,(0,n.throwError)(new Error(`request ${r} timed out`))),(0,i.filter)((e=>e.id===r)),(0,i.take)(1))}authenticate(){const e=(0,a.ClientMessageHostSession)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(e).pipe((0,i.map)((e=>{if((0,l.isServerMessageFail)(e))throw new Error(e.error||"failed to authentcate")})))}sendIsLinked(){const e=(0,a.ClientMessageIsLinked)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}sendGetSessionConfig(){const e=(0,a.ClientMessageGetSessionConfig)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}}},34112:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LINK_API_URL=void 0,t.LINK_API_URL="https://www.walletlink.org"},37190:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCode=t.serializeError=t.standardErrors=t.standardErrorMessage=t.standardErrorCodes=void 0;const n=r(14803),i=r(42529),s=r(20943);t.standardErrorCodes=Object.freeze(Object.assign(Object.assign({},n.errorCodes),{provider:Object.freeze(Object.assign(Object.assign({},n.errorCodes.provider),{unsupportedChain:4902}))})),t.standardErrorMessage=function(e){return void 0!==e?(0,n.getMessageFromCode)(e):"Unknown error"},t.standardErrors=Object.freeze(Object.assign(Object.assign({},n.ethErrors),{provider:Object.freeze(Object.assign(Object.assign({},n.ethErrors.provider),{unsupportedChain:(e="")=>n.ethErrors.provider.custom({code:t.standardErrorCodes.provider.unsupportedChain,message:`Unrecognized chain ID ${e}. Try adding the chain using wallet_addEthereumChain first.`})}))})),t.serializeError=function(e,r){const o=(0,n.serializeError)(function(e){return"string"==typeof e?{message:e,code:t.standardErrorCodes.rpc.internal}:(0,i.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method,result:e.result}}):e}(e),{shouldIncludeStack:!0}),a=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");a.searchParams.set("version",s.LIB_VERSION),a.searchParams.set("code",o.code.toString());const c=function(e,t){var r;const n=null===(r=e)||void 0===r?void 0:r.method;if(n)return n;return void 0===t?void 0:"string"==typeof t?t:Array.isArray(t)?t.length>0?t[0].method:void 0:t.method}(o.data,r);return c&&a.searchParams.set("method",c),a.searchParams.set("message",o.message),Object.assign(Object.assign({},o),{docUrl:a.href})},t.getErrorCode=function(e){var t;return"number"==typeof e?e:function(e){return"object"==typeof e&&null!==e&&("number"==typeof e.code||"number"==typeof e.errorCode)}(e)?null!==(t=e.code)&&void 0!==t?t:e.errorCode:void 0}},48858:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletProvider=t.CoinbaseWalletSDK=void 0;const n=r(72872),i=r(94767);var s=r(72872);Object.defineProperty(t,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return s.CoinbaseWalletSDK}});var o=r(94767);Object.defineProperty(t,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return o.CoinbaseWalletProvider}}),t.default=n.CoinbaseWalletSDK,"undefined"!=typeof window&&(window.CoinbaseWalletSDK=n.CoinbaseWalletSDK,window.CoinbaseWalletProvider=i.CoinbaseWalletProvider,window.WalletLink=n.CoinbaseWalletSDK,window.WalletLinkProvider=i.CoinbaseWalletProvider)},47762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopedLocalStorage=void 0;t.ScopedLocalStorage=class{constructor(e){this.scope=e}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){const e=this.scopedKey(""),t=[];for(let r=0;rlocalStorage.removeItem(e)))}scopedKey(e){return`${this.scope}:${e}`}}},77209:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'},54573:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectCssReset=void 0;const i=n(r(77209));t.injectCssReset=function(){const e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(i.default)),document.documentElement.appendChild(e)}},94767:function(e,t,r){"use strict";var n=r(75291).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletProvider=void 0;const s=i(r(68997)),o=i(r(86788)),a=r(38567),c=r(37190),u=r(86443),l=r(56014),h=r(11688),d=r(42529),f=r(35314),p=i(r(17429)),y=r(81804),g=r(26493),b=r(55439),m="DefaultChainId",v="DefaultJsonRpcUrl";class _ extends s.default{constructor(e){var t,r;super(),this._filterPolyfill=new y.FilterPolyfill(this),this._subscriptionManager=new b.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=e.chainId,this._jsonRpcUrlFromOpts=e.jsonRpcUrl,this._overrideIsMetaMask=e.overrideIsMetaMask,this._relayProvider=e.relayProvider,this._storage=e.storage,this._relayEventManager=e.relayEventManager,this.diagnostic=e.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=null===(t=e.overrideIsCoinbaseWallet)||void 0===t||t,this.isCoinbaseBrowser=null!==(r=e.overrideIsCoinbaseBrowser)&&void 0!==r&&r,this.qrUrl=e.qrUrl;const n=this.getChainId(),i=(0,f.prepend0x)(n.toString(16));this.emit("connect",{chainIdStr:i});const s=this._storage.getItem(l.LOCAL_STORAGE_ADDRESSES_KEY);if(s){const e=s.split(" ");""!==e[0]&&(this._addresses=e.map((e=>(0,f.ensureAddressString)(e))),this.emit("accountsChanged",e))}this._subscriptionManager.events.on("notification",(e=>{this.emit("message",{type:e.method,data:e.params})})),this._isAuthorized()&&this.initializeRelay(),window.addEventListener("message",(e=>{var t;if(e.origin===location.origin&&e.source===window&&"walletLinkMessage"===e.data.type){if("dappChainSwitched"===e.data.data.action){const r=e.data.data.chainId,n=null!==(t=e.data.data.jsonRpcUrl)&&void 0!==t?t:this.jsonRpcUrl;this.updateProviderInfo(n,Number(r))}"addressChanged"===e.data.data.action&&this._setAddresses([e.data.data.address])}}))}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,f.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var e;return null!==(e=this._storage.getItem(v))&&void 0!==e?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(v,e)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(e,t){this.isCoinbaseBrowser||(this._chainIdFromOpts=t,this._jsonRpcUrlFromOpts=e),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(e,t){this.jsonRpcUrl=e;const r=this.getChainId();this._storage.setItem(m,t.toString(10));!((0,f.ensureIntNumber)(t)!==r)&&this.hasMadeFirstChainChangedEmission||(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,r,n,i,s){const o=await this.initializeRelay();return!!(await o.watchAsset(e,t,r,n,i,null==s?void 0:s.toString()).promise).result}async addEthereumChain(e,t,r,n,i,s){var o,a;if((0,f.ensureIntNumber)(e)===this.getChainId())return!1;const c=await this.initializeRelay(),u=c.inlineAddEthereumChain(e.toString());this._isAuthorized()||u||await c.requestEthereumAccounts().promise;const l=await c.addEthereumChain(e.toString(),t,i,r,n,s).promise;return!0===(null===(o=l.result)||void 0===o?void 0:o.isApproved)&&this.updateProviderInfo(t[0],e),!0===(null===(a=l.result)||void 0===a?void 0:a.isApproved)}async switchEthereumChain(e){const t=await this.initializeRelay(),r=await t.switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;if((0,d.isErrorResponse)(r)&&r.errorCode)throw r.errorCode===c.standardErrorCodes.provider.unsupportedChain?c.standardErrors.provider.unsupportedChain(e):c.standardErrors.provider.custom({message:r.errorMessage,code:r.errorCode});const n=r.result;n.isApproved&&n.rpcUrl.length>0&&this.updateProviderInfo(n.rpcUrl,e)}setAppInfo(e,t){this.initializeRelay().then((r=>r.setAppInfo(e,t)))}async enable(){var e;return null===(e=this.diagnostic)||void 0===e||e.log(a.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?u.Session.hash(this._relay.session.id):void 0}),this._isAuthorized()?[...this._addresses]:await this.send(g.JSONRPCMethod.eth_requestAccounts)}async close(){(await this.initializeRelay()).resetAndReload()}send(e,t){try{const r=this._send(e,t);if(r instanceof Promise)return r.catch((t=>{throw(0,c.serializeError)(t,e)}))}catch(r){throw(0,c.serializeError)(r,e)}}_send(e,t){if("string"==typeof e){const r={jsonrpc:"2.0",id:0,method:e,params:Array.isArray(t)?t:void 0!==t?[t]:[]};return this._sendRequestAsync(r).then((e=>e.result))}if("function"==typeof t){const r=e,n=t;return this._sendAsync(r,n)}if(Array.isArray(e)){return e.map((e=>this._sendRequest(e)))}const r=e;return this._sendRequest(r)}async sendAsync(e,t){try{return this._sendAsync(e,t).catch((t=>{throw(0,c.serializeError)(t,e)}))}catch(r){return Promise.reject((0,c.serializeError)(r,e))}}async _sendAsync(e,t){if("function"!=typeof t)throw new Error("callback is required");if(Array.isArray(e)){const r=t;return void this._sendMultipleRequestsAsync(e).then((e=>r(null,e))).catch((e=>r(e,null)))}const r=t;return this._sendRequestAsync(e).then((e=>r(null,e))).catch((e=>r(e,null)))}async request(e){try{return this._request(e).catch((t=>{throw(0,c.serializeError)(t,e.method)}))}catch(t){return Promise.reject((0,c.serializeError)(t,e.method))}}async _request(e){if(!e||"object"!=typeof e||Array.isArray(e))throw c.standardErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});const{method:t,params:r}=e;if("string"!=typeof t||0===t.length)throw c.standardErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});if(void 0!==r&&!Array.isArray(r)&&("object"!=typeof r||null===r))throw c.standardErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});const n=void 0===r?[]:r,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:t,params:n,jsonrpc:"2.0",id:i})).result}async scanQRCode(e){var t;const r=await this.initializeRelay(),n=await r.scanQRCode((0,f.ensureRegExpString)(e)).promise;if("string"!=typeof n.result)throw(0,c.serializeError)(null!==(t=n.errorMessage)&&void 0!==t?t:"result was not a string",h.Web3Method.scanQRCode);return n.result}async genericRequest(e,t){var r;const n=await this.initializeRelay(),i=await n.genericRequest(e,t).promise;if("string"!=typeof i.result)throw(0,c.serializeError)(null!==(r=i.errorMessage)&&void 0!==r?r:"result was not a string",h.Web3Method.generic);return i.result}async selectProvider(e){var t;const r=await this.initializeRelay(),n=await r.selectProvider(e).promise;if("string"!=typeof n.result)throw(0,c.serializeError)(null!==(t=n.errorMessage)&&void 0!==t?t:"result was not a string",h.Web3Method.selectProvider);return n.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(e){const t={jsonrpc:"2.0",id:e.id},{method:r}=e;if(t.result=this._handleSynchronousMethods(e),void 0===t.result)throw new Error(`Coinbase Wallet does not support calling ${r} synchronously without a callback. Please provide a callback parameter to call ${r} asynchronously.`);return t}_setAddresses(e,t){if(!Array.isArray(e))throw new Error("addresses is not an array");const r=e.map((e=>(0,f.ensureAddressString)(e)));JSON.stringify(r)!==JSON.stringify(this._addresses)&&(this._addresses=r,this.emit("accountsChanged",this._addresses),this._storage.setItem(l.LOCAL_STORAGE_ADDRESSES_KEY,r.join(" ")))}_sendRequestAsync(e){return new Promise(((t,r)=>{try{const n=this._handleSynchronousMethods(e);if(void 0!==n)return t({jsonrpc:"2.0",id:e.id,result:n});const i=this._handleAsynchronousFilterMethods(e);if(void 0!==i)return void i.then((r=>t(Object.assign(Object.assign({},r),{id:e.id})))).catch((e=>r(e)));const s=this._handleSubscriptionMethods(e);if(void 0!==s)return void s.then((r=>t({jsonrpc:"2.0",id:e.id,result:r.result}))).catch((e=>r(e)))}catch(n){return r(n)}this._handleAsynchronousMethods(e).then((r=>r&&t(Object.assign(Object.assign({},r),{id:e.id})))).catch((e=>r(e)))}))}_sendMultipleRequestsAsync(e){return Promise.all(e.map((e=>this._sendRequestAsync(e))))}_handleSynchronousMethods(e){const{method:t}=e,r=e.params||[];switch(t){case g.JSONRPCMethod.eth_accounts:return this._eth_accounts();case g.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case g.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(r);case g.JSONRPCMethod.net_version:return this._net_version();case g.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){const{method:t}=e,r=e.params||[];switch(t){case g.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case g.JSONRPCMethod.eth_sign:return this._eth_sign(r);case g.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(r);case g.JSONRPCMethod.personal_sign:return this._personal_sign(r);case g.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(r);case g.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(r);case g.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(r);case g.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(r);case g.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(r);case g.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case g.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(r);case g.JSONRPCMethod.eth_signTypedData_v4:case g.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(r);case g.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(r);case g.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(r);case g.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(r);case g.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(r)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(e,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(e){const{method:t}=e,r=e.params||[];switch(t){case g.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(r);case g.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case g.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case g.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(r);case g.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(r)}}_handleSubscriptionMethods(e){switch(e.method){case g.JSONRPCMethod.eth_subscribe:case g.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{const t=(0,f.ensureAddressString)(e);return this._addresses.map((e=>(0,f.ensureAddressString)(e))).includes(t)}catch(t){}return!1}_ensureKnownAddress(e){var t;if(!this._isKnownAddress(e))throw null===(t=this.diagnostic)||void 0===t||t.log(a.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(e){const t=e.from?(0,f.ensureAddressString)(e.from):this.selectedAddress;if(!t)throw new Error("Ethereum address is unavailable");this._ensureKnownAddress(t);return{fromAddress:t,toAddress:e.to?(0,f.ensureAddressString)(e.to):null,weiValue:null!=e.value?(0,f.ensureBN)(e.value):new o.default(0),data:e.data?(0,f.ensureBuffer)(e.data):n.alloc(0),nonce:null!=e.nonce?(0,f.ensureIntNumber)(e.nonce):null,gasPriceInWei:null!=e.gasPrice?(0,f.ensureBN)(e.gasPrice):null,maxFeePerGas:null!=e.maxFeePerGas?(0,f.ensureBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:null!=e.maxPriorityFeePerGas?(0,f.ensureBN)(e.maxPriorityFeePerGas):null,gasLimit:null!=e.gas?(0,f.ensureBN)(e.gas):null,chainId:this.getChainId()}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw c.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw c.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,r,n){this._ensureKnownAddress(t);try{const i=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await i.signEthereumMessage(e,t,r,n).promise).result}}catch(i){if("string"==typeof i.message&&i.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied message signature");throw i}}async _ethereumAddressFromSignedMessage(e,t,r){const n=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await n.ethereumAddressFromSignedMessage(e,t,r).promise).result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,f.hexStringFromIntNumber)(this.getChainId())}getChainId(){const e=this._storage.getItem(m);if(!e)return(0,f.ensureIntNumber)(this._chainIdFromOpts);const t=parseInt(e,10);return(0,f.ensureIntNumber)(t)}async _eth_requestAccounts(){var e;if(null===(e=this.diagnostic)||void 0===e||e.log(a.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?u.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let t;try{const e=await this.initializeRelay();t=await e.requestEthereumAccounts().promise}catch(r){if("string"==typeof r.message&&r.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied account authorization");throw r}if(!t.result)throw new Error("accounts received is empty");return this._setAddresses(t.result),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();const t=(0,f.ensureAddressString)(e[0]),r=(0,f.ensureBuffer)(e[1]);return this._signEthereumMessage(r,t,!1)}_eth_ecRecover(e){const t=(0,f.ensureBuffer)(e[0]),r=(0,f.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,r,!1)}_personal_sign(e){this._requireAuthorization();const t=(0,f.ensureBuffer)(e[0]),r=(0,f.ensureAddressString)(e[1]);return this._signEthereumMessage(t,r,!0)}_personal_ecRecover(e){const t=(0,f.ensureBuffer)(e[0]),r=(0,f.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,r,!0)}async _eth_signTransaction(e){this._requireAuthorization();const t=this._prepareTransactionParams(e[0]||{});try{const e=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await e.signEthereumTransaction(t).promise).result}}catch(r){if("string"==typeof r.message&&r.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw r}}async _eth_sendRawTransaction(e){const t=(0,f.ensureBuffer)(e[0]),r=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await r.submitEthereumTransaction(t,this.getChainId()).promise).result}}async _eth_sendTransaction(e){this._requireAuthorization();const t=this._prepareTransactionParams(e[0]||{});try{const e=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await e.signAndSubmitEthereumTransaction(t).promise).result}}catch(r){if("string"==typeof r.message&&r.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw r}}async _eth_signTypedData_v1(e){this._requireAuthorization();const t=(0,f.ensureParsedJSONObject)(e[0]),r=(0,f.ensureAddressString)(e[1]);this._ensureKnownAddress(r);const n=p.default.hashForSignTypedDataLegacy({data:t}),i=JSON.stringify(t,null,2);return this._signEthereumMessage(n,r,!1,i)}async _eth_signTypedData_v3(e){this._requireAuthorization();const t=(0,f.ensureAddressString)(e[0]),r=(0,f.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);const n=p.default.hashForSignTypedData_v3({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(n,t,!1,i)}async _eth_signTypedData_v4(e){this._requireAuthorization();const t=(0,f.ensureAddressString)(e[0]),r=(0,f.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);const n=p.default.hashForSignTypedData_v4({data:r}),i=JSON.stringify(r,null,2);return this._signEthereumMessage(n,t,!1,i)}async _cbwallet_arbitrary(e){const t=e[0],r=e[1];if("string"!=typeof r)throw new Error("parameter must be a string");if("object"!=typeof t||null===t)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(t,r)}}async _wallet_addEthereumChain(e){var t,r,n,i;const s=e[0];if(0===(null===(t=s.rpcUrls)||void 0===t?void 0:t.length))return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!s.chainName||""===s.chainName.trim())throw c.standardErrors.rpc.invalidParams("chainName is a required field");if(!s.nativeCurrency)throw c.standardErrors.rpc.invalidParams("nativeCurrency is a required field");const o=parseInt(s.chainId,16);return await this.addEthereumChain(o,null!==(r=s.rpcUrls)&&void 0!==r?r:[],null!==(n=s.blockExplorerUrls)&&void 0!==n?n:[],s.chainName,null!==(i=s.iconUrls)&&void 0!==i?i:[],s.nativeCurrency)?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(e){const t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){const t=Array.isArray(e)?e[0]:e;if(!t.type)throw c.standardErrors.rpc.invalidParams("Type is required");if("ERC20"!==(null==t?void 0:t.type))throw c.standardErrors.rpc.invalidParams(`Asset of type '${t.type}' is not supported`);if(!(null==t?void 0:t.options))throw c.standardErrors.rpc.invalidParams("Options are required");if(!(null==t?void 0:t.options.address))throw c.standardErrors.rpc.invalidParams("Address is required");const r=this.getChainId(),{address:n,symbol:i,image:s,decimals:o}=t.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(t.type,n,i,o,s,r)}}_eth_uninstallFilter(e){const t=(0,f.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(t)}async _eth_newFilter(e){const t=e[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(t)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(e){const t=(0,f.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(t)}_eth_getFilterLogs(e){const t=(0,f.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(t)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then((e=>(e.setAccountsCallback(((e,t)=>this._setAddresses(e,t))),e.setChainCallback(((e,t)=>{this.updateProviderInfo(t,parseInt(e,10))})),e.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=e,e)))}}t.CoinbaseWalletProvider=_},81804:(e,t,r)=>{"use strict";var n=r(98399);Object.defineProperty(t,"__esModule",{value:!0}),t.filterFromParam=t.FilterPolyfill=void 0;const i=r(25927),s=r(35314),o={jsonrpc:"2.0",id:0};function a(e){return{fromBlock:u(e.fromBlock),toBlock:u(e.toBlock),addresses:void 0===e.address?null:Array.isArray(e.address)?e.address:[e.address],topics:e.topics||[]}}function c(e){const t={fromBlock:l(e.fromBlock),toBlock:l(e.toBlock),topics:e.topics};return null!==e.addresses&&(t.address=e.addresses),t}function u(e){if(void 0===e||"latest"===e||"pending"===e)return"latest";if("earliest"===e)return(0,i.IntNumber)(0);if((0,s.isHexString)(e))return(0,s.intNumberFromHexString)(e);throw new Error(`Invalid block option: ${String(e)}`)}function l(e){return"latest"===e?e:(0,s.hexStringFromIntNumber)(e)}function h(){return Object.assign(Object.assign({},o),{error:{code:-32e3,message:"filter not found"}})}function d(){return Object.assign(Object.assign({},o),{result:[]})}t.FilterPolyfill=class{constructor(e){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,i.IntNumber)(1),this.provider=e}async newFilter(e){const t=a(e),r=this.makeFilterId(),i=await this.setInitialCursorPosition(r,t.fromBlock);return n.log(`Installing new log filter(${r}):`,t,"initial cursor position:",i),this.logFilters.set(r,t),this.setFilterTimeout(r),(0,s.hexStringFromIntNumber)(r)}async newBlockFilter(){const e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return n.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.blockFilters.add(e),this.setFilterTimeout(e),(0,s.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){const e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return n.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,s.hexStringFromIntNumber)(e)}uninstallFilter(e){const t=(0,s.intNumberFromHexString)(e);return n.log(`Uninstalling filter (${t})`),this.deleteFilter(t),!0}getFilterChanges(e){const t=(0,s.intNumberFromHexString)(e);return this.timeouts.has(t)&&this.setFilterTimeout(t),this.logFilters.has(t)?this.getLogFilterChanges(t):this.blockFilters.has(t)?this.getBlockFilterChanges(t):this.pendingTransactionFilters.has(t)?this.getPendingTransactionFilterChanges(t):Promise.resolve(h())}async getFilterLogs(e){const t=(0,s.intNumberFromHexString)(e),r=this.logFilters.get(t);return r?this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[c(r)]})):h()}makeFilterId(){return(0,i.IntNumber)(++this.nextFilterId)}sendAsyncPromise(e){return new Promise(((t,r)=>{this.provider.sendAsync(e,((e,n)=>e?r(e):Array.isArray(n)||null==n?r(new Error(`unexpected response received: ${JSON.stringify(n)}`)):void t(n)))}))}deleteFilter(e){n.log(`Deleting filter (${e})`),this.logFilters.delete(e),this.blockFilters.delete(e),this.pendingTransactionFilters.delete(e),this.cursors.delete(e),this.timeouts.delete(e)}async getLogFilterChanges(e){const t=this.logFilters.get(e),r=this.cursors.get(e);if(!r||!t)return h();const a=await this.getCurrentBlockHeight(),u="latest"===t.toBlock?a:t.toBlock;if(r>a)return d();if(r>t.toBlock)return d();n.log(`Fetching logs from ${r} to ${u} for filter ${e}`);const l=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[c(Object.assign(Object.assign({},t),{fromBlock:r,toBlock:u}))]}));if(Array.isArray(l.result)){const t=l.result.map((e=>(0,s.intNumberFromHexString)(e.blockNumber||"0x0"))),o=Math.max(...t);if(o&&o>r){const t=(0,i.IntNumber)(o+1);n.log(`Moving cursor position for filter (${e}) from ${r} to ${t}`),this.cursors.set(e,t)}}return l}async getBlockFilterChanges(e){const t=this.cursors.get(e);if(!t)return h();const r=await this.getCurrentBlockHeight();if(t>r)return d();n.log(`Fetching blocks from ${t} to ${r} for filter (${e})`);const a=(await Promise.all((0,s.range)(t,r+1).map((e=>this.getBlockHashByNumber((0,i.IntNumber)(e)))))).filter((e=>!!e)),c=(0,i.IntNumber)(t+a.length);return n.log(`Moving cursor position for filter (${e}) from ${t} to ${c}`),this.cursors.set(e,c),Object.assign(Object.assign({},o),{result:a})}async getPendingTransactionFilterChanges(e){return Promise.resolve(d())}async setInitialCursorPosition(e,t){const r=await this.getCurrentBlockHeight(),n="number"==typeof t&&t>r?t:r;return this.cursors.set(e,n),n}setFilterTimeout(e){const t=this.timeouts.get(e);t&&window.clearTimeout(t);const r=window.setTimeout((()=>{n.log(`Filter (${e}) timed out`),this.deleteFilter(e)}),3e5);this.timeouts.set(e,r)}async getCurrentBlockHeight(){const{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_blockNumber",params:[]}));return(0,s.intNumberFromHexString)((0,s.ensureHexString)(e))}async getBlockHashByNumber(e){const t=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getBlockByNumber",params:[(0,s.hexStringFromIntNumber)(e),!1]}));return t.result&&"string"==typeof t.result.hash?(0,s.ensureHexString)(t.result.hash):null}},t.filterFromParam=a},26493:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONRPCMethod=void 0,function(e){e.eth_accounts="eth_accounts",e.eth_coinbase="eth_coinbase",e.net_version="net_version",e.eth_chainId="eth_chainId",e.eth_uninstallFilter="eth_uninstallFilter",e.eth_requestAccounts="eth_requestAccounts",e.eth_sign="eth_sign",e.eth_ecRecover="eth_ecRecover",e.personal_sign="personal_sign",e.personal_ecRecover="personal_ecRecover",e.eth_signTransaction="eth_signTransaction",e.eth_sendRawTransaction="eth_sendRawTransaction",e.eth_sendTransaction="eth_sendTransaction",e.eth_signTypedData_v1="eth_signTypedData_v1",e.eth_signTypedData_v2="eth_signTypedData_v2",e.eth_signTypedData_v3="eth_signTypedData_v3",e.eth_signTypedData_v4="eth_signTypedData_v4",e.eth_signTypedData="eth_signTypedData",e.cbWallet_arbitrary="walletlink_arbitrary",e.wallet_addEthereumChain="wallet_addEthereumChain",e.wallet_switchEthereumChain="wallet_switchEthereumChain",e.wallet_watchAsset="wallet_watchAsset",e.eth_subscribe="eth_subscribe",e.eth_unsubscribe="eth_unsubscribe",e.eth_newFilter="eth_newFilter",e.eth_newBlockFilter="eth_newBlockFilter",e.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",e.eth_getFilterChanges="eth_getFilterChanges",e.eth_getFilterLogs="eth_getFilterLogs"}(t.JSONRPCMethod||(t.JSONRPCMethod={}))},55439:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionManager=void 0;const n=r(89198),i=r(22066),s=()=>{};t.SubscriptionManager=class{constructor(e){const t=new n.PollingBlockTracker({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:r,middleware:s}=i({blockTracker:t,provider:e});this.events=r,this.subscriptionMiddleware=s}async handleRequest(e){const t={};return await this.subscriptionMiddleware(e,t,s,s),t}destroy(){this.subscriptionMiddleware.destroy()}}},81946:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKUI=void 0;const n=r(22483),i=r(19844),s=r(54573);t.WalletSDKUI=class{constructor(e){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new i.Snackbar({darkMode:e.darkMode}),this.linkFlow=new n.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,connected$:e.connected$,chainId$:e.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");const e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.linkFlow.attach(t),this.snackbar.attach(t),this.attached=!0,(0,s.injectCssReset)()}setConnectDisabled(e){this.linkFlow.setConnectDisabled(e)}addEthereumChain(e){}watchAsset(e){}switchEthereumChain(e){}requestEthereumAccounts(e){this.linkFlow.open({onCancel:e.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(e){}signEthereumTransaction(e){}submitEthereumTransaction(e){}ethereumAddressFromSignedMessage(e){}showConnecting(e){let t;return t=e.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",appSrc:this.appSrc,menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:{message:"Confirm on phone",appSrc:this.appSrc,menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}setAppSrc(e){this.appSrc=e}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(e){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(e){this.standalone=e}isStandalone(){var e;return null!==(e=this.standalone)&&void 0!==e&&e}}},87051:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RelayMessageType=void 0,function(e){e.SESSION_ID_REQUEST="SESSION_ID_REQUEST",e.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",e.LINKED="LINKED",e.UNLINKED="UNLINKED",e.WEB3_REQUEST="WEB3_REQUEST",e.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",e.WEB3_RESPONSE="WEB3_RESPONSE"}(t.RelayMessageType||(t.RelayMessageType={}))},86443:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;const n=r(2297),i=r(35314),s="session:id",o="session:secret",a="session:linked";class c{constructor(e,t,r,s){this._storage=e,this._id=t||(0,i.randomBytesHex)(16),this._secret=r||(0,i.randomBytesHex)(32),this._key=(new n.sha256).update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!s}static load(e){const t=e.getItem(s),r=e.getItem(a),n=e.getItem(o);return t&&n?new c(e,t,n,"1"===r):null}static hash(e){return(new n.sha256).update(e).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(s,this._id),this._storage.setItem(o,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(a,this._linked?"1":"0")}}t.Session=c},12376:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),s=this&&this.__decorate||function(e,t,r,n){var i,s=arguments.length,o=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o},o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKRelay=void 0;const c=a(r(49420)),u=r(82145),l=r(68353),h=r(38567),d=r(23034),f=r(37190),p=r(25927),y=r(35314),g=o(r(78652)),b=r(86443),m=r(56014),v=r(11688),_=r(48768),w=r(13974),E=r(42529),S=r(56553);class x extends m.WalletSDKRelayAbstract{constructor(e){var t;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new u.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new u.Subscription,this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;const{session:r,ui:n,connection:i}=this.subscribe();if(this._session=r,this.connection=i,this.relayEventManager=e.relayEventManager,e.diagnosticLogger&&e.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this.diagnostic={log:e.eventListener.onEvent}:this.diagnostic=e.diagnosticLogger,this._reloadOnDisconnect=null===(t=e.reloadOnDisconnect)||void 0===t||t,this.ui=n}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe((e=>{this.dappDefaultChain!==e&&(this.dappDefaultChain=e)})));const e=b.Session.load(this.storage)||new b.Session(this.storage).save(),t=new d.WalletSDKConnection(e.id,e.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(t.sessionConfig$.subscribe({next:e=>{this.onSessionConfigChanged(e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(t.incomingEvent$.pipe((0,l.filter)((e=>"Web3Response"===e.event))).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(t.linked$.pipe((0,l.skip)(1),(0,l.tap)((e=>{var t;this.isLinked=e;const r=this.storage.getItem(m.LOCAL_STORAGE_ADDRESSES_KEY);if(e&&(this.session.linked=e),this.isUnlinkedErrorState=!1,r){const n=r.split(" "),i="true"===this.storage.getItem("IsStandaloneSigning");if(""!==n[0]&&!e&&this.session.linked&&!i){this.isUnlinkedErrorState=!0;const e=this.getSessionIdHash();null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:e})}}}))).subscribe()),this.subscriptions.add(t.sessionConfig$.pipe((0,l.filter)((e=>!!e.metadata&&"1"===e.metadata.__destroyed))).subscribe((()=>{var e;const r=t.isDestroyed;return null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:r,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()}))),this.subscriptions.add(t.sessionConfig$.pipe((0,l.filter)((e=>e.metadata&&void 0!==e.metadata.WalletUsername))).pipe((0,l.mergeMap)((t=>g.decrypt(t.metadata.WalletUsername,e.secret)))).subscribe({next:e=>{this.storage.setItem(m.WALLET_USER_NAME_KEY,e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,l.filter)((e=>e.metadata&&void 0!==e.metadata.AppVersion))).pipe((0,l.mergeMap)((t=>g.decrypt(t.metadata.AppVersion,e.secret)))).subscribe({next:e=>{this.storage.setItem(m.APP_VERSION_KEY,e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,l.filter)((e=>e.metadata&&void 0!==e.metadata.ChainId&&void 0!==e.metadata.JsonRpcUrl))).pipe((0,l.mergeMap)((t=>(0,u.zip)(g.decrypt(t.metadata.ChainId,e.secret),g.decrypt(t.metadata.JsonRpcUrl,e.secret))))).pipe((0,l.distinctUntilChanged)()).subscribe({next:([e,t])=>{this.chainCallback&&this.chainCallback(e,t)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,l.filter)((e=>e.metadata&&void 0!==e.metadata.EthereumAddress))).pipe((0,l.mergeMap)((t=>g.decrypt(t.metadata.EthereumAddress,e.secret)))).subscribe({next:e=>{this.accountsCallback&&this.accountsCallback([e]),x.accountRequestCallbackIds.size>0&&(Array.from(x.accountRequestCallbackIds.values()).forEach((t=>{const r=(0,S.Web3ResponseMessage)({id:t,response:(0,E.RequestEthereumAccountsResponse)([e])});this.invokeCallback(Object.assign(Object.assign({},r),{id:t}))})),x.accountRequestCallbackIds.clear())},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,l.filter)((e=>e.metadata&&void 0!==e.metadata.AppSrc))).pipe((0,l.mergeMap)((t=>g.decrypt(t.metadata.AppSrc,e.secret)))).subscribe({next:e=>{this.ui.setAppSrc(e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));const r=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:e,connected$:t.connected$,chainId$:this.dappDefaultChainSubject});return t.connect(),{session:e,ui:r,connection:t}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,l.timeout)(1e3),(0,l.catchError)((e=>(0,u.of)(null)))).subscribe((e=>{var t,r,n;const i=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch(l){null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}null===(r=this.diagnostic)||void 0===r||r.log(h.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();const s=b.Session.load(this.storage);if((null==s?void 0:s.id)===this._session.id?this.storage.clear():s&&(null===(n=this.diagnostic)||void 0===n||n.log(h.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:b.Session.hash(s.id)})),this._reloadOnDisconnect)return void this.ui.reloadUI();this.accountsCallback&&this.accountsCallback([],!0),this.subscriptions=new u.Subscription;const{session:o,ui:a,connection:c}=this.subscribe();this._session=o,this.connection=c,this.ui=a,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()}),(e=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${e}`,sessionIdHash:this.getSessionIdHash()})}))}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}get session(){return this._session}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,r,n){return this.sendRequest({method:v.Web3Method.signEthereumMessage,params:{message:(0,y.hexStringFromBuffer)(e,!0),address:t,addPrefix:r,typedDataJson:n||null}})}ethereumAddressFromSignedMessage(e,t,r){return this.sendRequest({method:v.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,y.hexStringFromBuffer)(e,!0),signature:(0,y.hexStringFromBuffer)(t,!0),addPrefix:r}})}signEthereumTransaction(e){return this.sendRequest({method:v.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,y.bigIntStringFromBN)(e.weiValue),data:(0,y.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,y.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,y.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,y.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,y.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:v.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,y.bigIntStringFromBN)(e.weiValue),data:(0,y.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,y.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,y.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,y.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,y.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:v.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,y.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:v.Web3Method.scanQRCode,params:{regExp:e}})}getQRCodeUrl(){return(0,y.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(e,t){return this.sendRequest({method:v.Web3Method.generic,params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null;const r=(0,y.randomBytesHex)(8),n=n=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,e.method,n),null==t||t()};return{promise:new Promise(((i,s)=>{this.ui.isStandalone()||(t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:n,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(r,(e=>{if(null==t||t(),e.errorMessage)return s(new Error(e.errorMessage));i(e)})),this.ui.isStandalone()?this.sendRequestStandalone(r,e):this.publishWeb3RequestEvent(r,e)})),cancel:n}}setConnectDisabled(e){this.ui.setConnectDisabled(e)}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChainSubject.next(e)}publishWeb3RequestEvent(e,t){var r;const n=(0,w.Web3RequestMessage)({id:e,request:t}),i=b.Session.load(this.storage);null===(r=this.diagnostic)||void 0===r||r.log(h.EVENTS.WEB3_REQUEST,{eventId:n.id,method:`relay::${n.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?b.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",n,!0).subscribe({next:e=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:n.id,method:`relay::${n.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?b.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()})},error:e=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:n.id,response:{method:n.request.method,errorMessage:e.message}}))}}))}publishWeb3RequestCanceledEvent(e){const t=(0,_.Web3RequestCanceledMessage)(e);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",t,!1).subscribe())}publishEvent(e,t,r){const n=this.session.secret;return new u.Observable((e=>{g.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin})),n).then((t=>{e.next(t),e.complete()}))})).pipe((0,l.mergeMap)((t=>this.connection.publishEvent(e,t,r))))}handleIncomingEvent(e){try{this.subscriptions.add((0,u.from)(g.decrypt(e.data,this.session.secret)).pipe((0,l.map)((e=>JSON.parse(e)))).subscribe({next:e=>{const t=(0,S.isWeb3ResponseMessage)(e)?e:null;t&&this.handleWeb3ResponseMessage(t)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch(t){return}}handleWeb3ResponseMessage(e){var t;const{response:r}=e;if(null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:`relay::${r.method}`,sessionIdHash:this.getSessionIdHash()}),(0,E.isRequestEthereumAccountsResponse)(r))return x.accountRequestCallbackIds.forEach((t=>this.invokeCallback(Object.assign(Object.assign({},e),{id:t})))),void x.accountRequestCallbackIds.clear();this.invokeCallback(e)}handleErrorResponse(e,t,r,n){var i;const s=null!==(i=null==r?void 0:r.message)&&void 0!==i?i:(0,f.standardErrorMessage)(n);this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:e,response:{method:t,errorMessage:s,errorCode:n}}))}invokeCallback(e){const t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){const e={method:v.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},t=(0,y.randomBytesHex)(8),r=r=>{this.publishWeb3RequestCanceledEvent(t),this.handleErrorResponse(t,e.method,r)};return{promise:new Promise(((n,i)=>{var s;this.relayEventManager.callbacks.set(t,(e=>{if(this.ui.hideRequestEthereumAccounts(),e.errorMessage)return i(new Error(e.errorMessage));n(e)}));const o=(null===(s=null===window||void 0===window?void 0:window.navigator)||void 0===s?void 0:s.userAgent)||null;if(o&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(o)){let e;try{e=(0,y.isInIFrame)()&&window.top?window.top.location:window.location}catch(a){e=window.location}e.href=`https://www.coinbase.com/connect-dapp?uri=${encodeURIComponent(e.href)}`}else{if(this.ui.inlineAccountsResponse()){const e=e=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:t,response:(0,E.RequestEthereumAccountsResponse)(e)}))};this.ui.requestEthereumAccounts({onCancel:r,onAccounts:e})}else{const e=f.standardErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>r(e)})}x.accountRequestCallbackIds.add(t),this.ui.inlineAccountsResponse()||this.ui.isStandalone()||this.publishWeb3RequestEvent(t,e)}})),cancel:r}}selectProvider(e){const t={method:v.Web3Method.selectProvider,params:{providerOptions:e}},r=(0,y.randomBytesHex)(8);return{cancel:e=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,t.method,e)},promise:new Promise(((t,n)=>{this.relayEventManager.callbacks.set(r,(e=>{if(e.errorMessage)return n(new Error(e.errorMessage));t(e)}));this.ui.selectProvider&&this.ui.selectProvider({onApprove:e=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:r,response:(0,E.SelectProviderResponse)(e)}))},onCancel:e=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:r,response:(0,E.SelectProviderResponse)(p.ProviderType.Unselected)}))},providerOptions:e})}))}}watchAsset(e,t,r,n,i,s){const o={method:v.Web3Method.watchAsset,params:{type:e,options:{address:t,symbol:r,decimals:n,image:i},chainId:s}};let a=null;const c=(0,y.randomBytesHex)(8),u=e=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,o.method,e),null==a||a()};this.ui.inlineWatchAsset()||(a=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:u,onResetConnection:this.resetAndReload}));return{cancel:u,promise:new Promise(((u,l)=>{this.relayEventManager.callbacks.set(c,(e=>{if(null==a||a(),e.errorMessage)return l(new Error(e.errorMessage));u(e)}));const h=e=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:c,response:(0,E.WatchAssetReponse)(!1)}))},d=()=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:c,response:(0,E.WatchAssetReponse)(!0)}))};this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:d,onCancel:h,type:e,address:t,symbol:r,decimals:n,image:i,chainId:s}),this.ui.inlineWatchAsset()||this.ui.isStandalone()||this.publishWeb3RequestEvent(c,o)}))}}addEthereumChain(e,t,r,n,i,s){const o={method:v.Web3Method.addEthereumChain,params:{chainId:e,rpcUrls:t,blockExplorerUrls:n,chainName:i,iconUrls:r,nativeCurrency:s}};let a=null;const c=(0,y.randomBytesHex)(8),u=e=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,o.method,e),null==a||a()};this.ui.inlineAddEthereumChain(e)||(a=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:u,onResetConnection:this.resetAndReload}));return{promise:new Promise(((t,r)=>{this.relayEventManager.callbacks.set(c,(e=>{if(null==a||a(),e.errorMessage)return r(new Error(e.errorMessage));t(e)}));const n=e=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:c,response:(0,E.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},i=e=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:c,response:(0,E.AddEthereumChainResponse)({isApproved:!0,rpcUrl:e})}))};this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:n,onApprove:i,chainId:o.params.chainId,rpcUrls:o.params.rpcUrls,blockExplorerUrls:o.params.blockExplorerUrls,chainName:o.params.chainName,iconUrls:o.params.iconUrls,nativeCurrency:o.params.nativeCurrency}),this.ui.inlineAddEthereumChain(e)||this.ui.isStandalone()||this.publishWeb3RequestEvent(c,o)})),cancel:u}}switchEthereumChain(e,t){const r={method:v.Web3Method.switchEthereumChain,params:Object.assign({chainId:e},{address:t})},n=(0,y.randomBytesHex)(8);return{promise:new Promise(((t,i)=>{this.relayEventManager.callbacks.set(n,(e=>(0,E.isErrorResponse)(e)&&e.errorCode?i(f.standardErrors.provider.custom({code:e.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):e.errorMessage?i(new Error(e.errorMessage)):void t(e)));this.ui.switchEthereumChain({onCancel:t=>{var r;if(t){const i=null!==(r=(0,f.getErrorCode)(t))&&void 0!==r?r:f.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(n,v.Web3Method.switchEthereumChain,t instanceof Error?t:f.standardErrors.provider.unsupportedChain(e),i)}else this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:n,response:(0,E.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:e=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:n,response:(0,E.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:e})}))},chainId:r.params.chainId,address:r.params.address}),this.ui.inlineSwitchEthereumChain()||this.ui.isStandalone()||this.publishWeb3RequestEvent(n,r)})),cancel:e=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,r.method,e)}}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return b.Session.hash(this._session.id)}sendRequestStandalone(e,t){const r=r=>{this.handleErrorResponse(e,t.method,r)},n=t=>{this.handleWeb3ResponseMessage((0,S.Web3ResponseMessage)({id:e,response:t}))};switch(t.method){case v.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:t,onSuccess:n,onCancel:r});break;case v.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:t,onSuccess:n,onCancel:r});break;case v.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:t,onSuccess:n,onCancel:r});break;case v.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:t,onSuccess:n});break;default:r()}}onSessionConfigChanged(e){}}x.accountRequestCallbackIds=new Set,s([c.default],x.prototype,"resetAndReload",null),s([c.default],x.prototype,"handleIncomingEvent",null),t.WalletSDKRelay=x},56014:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKRelayAbstract=t.APP_VERSION_KEY=t.LOCAL_STORAGE_ADDRESSES_KEY=t.WALLET_USER_NAME_KEY=void 0;const n=r(37190);t.WALLET_USER_NAME_KEY="walletUsername",t.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",t.APP_VERSION_KEY="AppVersion";t.WalletSDKRelayAbstract=class{async makeEthereumJSONRPCRequest(e,t){if(!t)throw new Error("Error: No jsonRpcUrl provided");return window.fetch(t,{method:"POST",body:JSON.stringify(e),mode:"cors",headers:{"Content-Type":"application/json"}}).then((e=>e.json())).then((t=>{if(!t)throw n.standardErrors.rpc.parse({});const r=t,{error:i}=r;if(i)throw(0,n.serializeError)(i,e.method);return r}))}}},89155:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKRelayEventManager=void 0;const n=r(35314);t.WalletSDKRelayEventManager=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;const e=this._nextRequestId,t=(0,n.prepend0x)(e.toString(16));return this.callbacks.get(t)&&this.callbacks.delete(t),e}}},11688:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Web3Method=void 0,function(e){e.requestEthereumAccounts="requestEthereumAccounts",e.signEthereumMessage="signEthereumMessage",e.signEthereumTransaction="signEthereumTransaction",e.submitEthereumTransaction="submitEthereumTransaction",e.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",e.scanQRCode="scanQRCode",e.generic="generic",e.childRequestEthereumAccounts="childRequestEthereumAccounts",e.addEthereumChain="addEthereumChain",e.switchEthereumChain="switchEthereumChain",e.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",e.watchAsset="watchAsset",e.selectProvider="selectProvider"}(t.Web3Method||(t.Web3Method={}))},48768:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Web3RequestCanceledMessage=void 0;const n=r(87051);t.Web3RequestCanceledMessage=function(e){return{type:n.RelayMessageType.WEB3_REQUEST_CANCELED,id:e}}},13974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Web3RequestMessage=void 0;const n=r(87051);t.Web3RequestMessage=function(e){return Object.assign({type:n.RelayMessageType.WEB3_REQUEST},e)}},42529:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumAddressFromSignedMessageResponse=t.SubmitEthereumTransactionResponse=t.SignEthereumTransactionResponse=t.SignEthereumMessageResponse=t.isRequestEthereumAccountsResponse=t.SelectProviderResponse=t.WatchAssetReponse=t.RequestEthereumAccountsResponse=t.SwitchEthereumChainResponse=t.AddEthereumChainResponse=t.isErrorResponse=void 0;const n=r(11688);t.isErrorResponse=function(e){var t,r;return void 0!==(null===(t=e)||void 0===t?void 0:t.method)&&void 0!==(null===(r=e)||void 0===r?void 0:r.errorMessage)},t.AddEthereumChainResponse=function(e){return{method:n.Web3Method.addEthereumChain,result:e}},t.SwitchEthereumChainResponse=function(e){return{method:n.Web3Method.switchEthereumChain,result:e}},t.RequestEthereumAccountsResponse=function(e){return{method:n.Web3Method.requestEthereumAccounts,result:e}},t.WatchAssetReponse=function(e){return{method:n.Web3Method.watchAsset,result:e}},t.SelectProviderResponse=function(e){return{method:n.Web3Method.selectProvider,result:e}},t.isRequestEthereumAccountsResponse=function(e){return e&&e.method===n.Web3Method.requestEthereumAccounts},t.SignEthereumMessageResponse=function(e){return{method:n.Web3Method.signEthereumMessage,result:e}},t.SignEthereumTransactionResponse=function(e){return{method:n.Web3Method.signEthereumTransaction,result:e}},t.SubmitEthereumTransactionResponse=function(e){return{method:n.Web3Method.submitEthereumTransaction,result:e}},t.EthereumAddressFromSignedMessageResponse=function(e){return{method:n.Web3Method.ethereumAddressFromSignedMessage,result:e}}},56553:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWeb3ResponseMessage=t.Web3ResponseMessage=void 0;const n=r(87051);t.Web3ResponseMessage=function(e){return Object.assign({type:n.RelayMessageType.WEB3_RESPONSE},e)},t.isWeb3ResponseMessage=function(e){return e&&e.type===n.RelayMessageType.WEB3_RESPONSE}},78652:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=void 0;const n=r(35314);t.encrypt=async function(e,t){if(64!==t.length)throw Error("secret must be 256 bits");const r=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.importKey("raw",(0,n.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),s=new TextEncoder,o=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:r},i,s.encode(e)),a=o.slice(o.byteLength-16),c=o.slice(0,o.byteLength-16),u=new Uint8Array(a),l=new Uint8Array(c),h=new Uint8Array([...r,...u,...l]);return(0,n.uint8ArrayToHex)(h)},t.decrypt=function(e,t){if(64!==t.length)throw Error("secret must be 256 bits");return new Promise(((r,i)=>{!async function(){const s=await crypto.subtle.importKey("raw",(0,n.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=(0,n.hexStringToUint8Array)(e),a=o.slice(0,12),c=o.slice(12,28),u=o.slice(28),l=new Uint8Array([...u,...c]),h={name:"AES-GCM",iv:new Uint8Array(a)};try{const e=await window.crypto.subtle.decrypt(h,s,l),t=new TextDecoder;r(t.decode(e))}catch(d){i(d)}}()}))}},25927:(e,t)=>{"use strict";function r(){return e=>e}Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderType=t.RegExpString=t.IntNumber=t.BigIntString=t.AddressString=t.HexString=t.OpaqueType=void 0,t.OpaqueType=r,t.HexString=e=>e,t.AddressString=e=>e,t.BigIntString=e=>e,t.IntNumber=function(e){return Math.floor(e)},t.RegExpString=e=>e,function(e){e.CoinbaseWallet="CoinbaseWallet",e.MetaMask="MetaMask",e.Unselected=""}(t.ProviderType||(t.ProviderType={}))},35314:function(e,t,r){"use strict";var n=r(75291).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isInIFrame=t.createQrUrl=t.getFavicon=t.range=t.isBigNumber=t.ensureParsedJSONObject=t.ensureBN=t.ensureRegExpString=t.ensureIntNumber=t.ensureBuffer=t.ensureAddressString=t.ensureEvenLengthHexString=t.ensureHexString=t.isHexString=t.prepend0x=t.strip0x=t.has0xPrefix=t.hexStringFromIntNumber=t.intNumberFromHexString=t.bigIntStringFromBN=t.hexStringFromBuffer=t.hexStringToUint8Array=t.uint8ArrayToHex=t.randomBytesHex=void 0;const s=i(r(86788)),o=r(24983),a=r(37190),c=r(25927),u=/^[0-9]*$/,l=/^[a-f0-9]*$/;function h(e){return[...e].map((e=>e.toString(16).padStart(2,"0"))).join("")}function d(e){return e.startsWith("0x")||e.startsWith("0X")}function f(e){return d(e)?e.slice(2):e}function p(e){return d(e)?"0x"+e.slice(2):"0x"+e}function y(e){if("string"!=typeof e)return!1;const t=f(e).toLowerCase();return l.test(t)}function g(e,t=!1){if("string"==typeof e){const r=f(e).toLowerCase();if(l.test(r))return(0,c.HexString)(t?"0x"+r:r)}throw a.standardErrors.rpc.invalidParams(`"${String(e)}" is not a hexadecimal string`)}function b(e,t=!1){let r=g(e,!1);return r.length%2==1&&(r=(0,c.HexString)("0"+r)),t?(0,c.HexString)("0x"+r):r}function m(e){if("number"==typeof e&&Number.isInteger(e))return(0,c.IntNumber)(e);if("string"==typeof e){if(u.test(e))return(0,c.IntNumber)(Number(e));if(y(e))return(0,c.IntNumber)(new s.default(b(e,!1),16).toNumber())}throw a.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}function v(e){if(null==e||"function"!=typeof e.constructor)return!1;const{constructor:t}=e;return"function"==typeof t.config&&"number"==typeof t.EUCLID}t.randomBytesHex=function(e){return h(crypto.getRandomValues(new Uint8Array(e)))},t.uint8ArrayToHex=h,t.hexStringToUint8Array=function(e){return new Uint8Array(e.match(/.{1,2}/g).map((e=>parseInt(e,16))))},t.hexStringFromBuffer=function(e,t=!1){const r=e.toString("hex");return(0,c.HexString)(t?"0x"+r:r)},t.bigIntStringFromBN=function(e){return(0,c.BigIntString)(e.toString(10))},t.intNumberFromHexString=function(e){return(0,c.IntNumber)(new s.default(b(e,!1),16).toNumber())},t.hexStringFromIntNumber=function(e){return(0,c.HexString)("0x"+new s.default(e).toString(16))},t.has0xPrefix=d,t.strip0x=f,t.prepend0x=p,t.isHexString=y,t.ensureHexString=g,t.ensureEvenLengthHexString=b,t.ensureAddressString=function(e){if("string"==typeof e){const t=f(e).toLowerCase();if(y(t)&&40===t.length)return(0,c.AddressString)(p(t))}throw a.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)},t.ensureBuffer=function(e){if(n.isBuffer(e))return e;if("string"==typeof e){if(y(e)){const t=b(e,!1);return n.from(t,"hex")}return n.from(e,"utf8")}throw a.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)},t.ensureIntNumber=m,t.ensureRegExpString=function(e){if(e instanceof RegExp)return(0,c.RegExpString)(e.toString());throw a.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)},t.ensureBN=function(e){if(null!==e&&(s.default.isBN(e)||v(e)))return new s.default(e.toString(10),10);if("number"==typeof e)return new s.default(m(e));if("string"==typeof e){if(u.test(e))return new s.default(e,10);if(y(e))return new s.default(b(e,!1),16)}throw a.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)},t.ensureParsedJSONObject=function(e){if("string"==typeof e)return JSON.parse(e);if("object"==typeof e)return e;throw a.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)},t.isBigNumber=v,t.range=function(e,t){return Array.from({length:t-e},((t,r)=>e+r))},t.getFavicon=function(){const e=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:t,host:r}=document.location,n=e?e.getAttribute("href"):null;return!n||n.startsWith("javascript:")?null:n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")?n:n.startsWith("//")?t+n:`${t}//${r}${n}`},t.createQrUrl=function(e,t,r,n,i,s){const a=n?"parent-id":"id";return`${r}/#/link?${(0,o.stringify)({[a]:e,secret:t,server:r,v:i,chainId:s})}`},t.isInIFrame=function(){try{return null!==window.frameElement}catch(e){return!1}}},28120:(e,t,r)=>{var n=r(75291).Buffer;const i=r(13541),s=r(86788);function o(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}function a(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function c(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function u(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function l(e){var t=typeof e;if("string"===t)return i.isHexString(e)?new s(i.stripHexPrefix(e),16):new s(e,10);if("number"===t)return new s(e);if(e.toArray)return e;throw new Error("Argument is not a number")}function h(e,t){var r,o,d,f;if("address"===e)return h("uint160",l(t));if("bool"===e)return h("uint8",t?1:0);if("string"===e)return h("bytes",new n(t,"utf8"));if(function(e){return e.lastIndexOf("]")===e.length-1}(e)){if(void 0===t.length)throw new Error("Not an array?");if("dynamic"!==(r=u(e))&&0!==r&&t.length>r)throw new Error("Elements exceed array size: "+r);for(f in d=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)d.push(h(e,t[f]));if("dynamic"===r){var p=h("uint256",t.length);d.unshift(p)}return n.concat(d)}if("bytes"===e)return t=new n(t),d=n.concat([h("uint256",t.length),t]),t.length%32!=0&&(d=n.concat([d,i.zeros(32-t.length%32)])),d;if(e.startsWith("bytes")){if((r=a(e))<1||r>32)throw new Error("Invalid bytes width: "+r);return i.setLengthRight(t,32)}if(e.startsWith("uint")){if((r=a(e))%8||r<8||r>256)throw new Error("Invalid uint width: "+r);if((o=l(t)).bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+o.bitLength());if(o<0)throw new Error("Supplied uint is negative");return o.toArrayLike(n,"be",32)}if(e.startsWith("int")){if((r=a(e))%8||r<8||r>256)throw new Error("Invalid int width: "+r);if((o=l(t)).bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+o.bitLength());return o.toTwos(256).toArrayLike(n,"be",32)}if(e.startsWith("ufixed")){if(r=c(e),(o=l(t))<0)throw new Error("Supplied ufixed is negative");return h("uint256",o.mul(new s(2).pow(new s(r[1]))))}if(e.startsWith("fixed"))return r=c(e),h("int256",l(t).mul(new s(2).pow(new s(r[1]))));throw new Error("Unsupported or invalid type: "+e)}function d(e){return"string"===e||"bytes"===e||"dynamic"===u(e)}function f(e,t){if(e.length!==t.length)throw new Error("Number of types are not matching the values");for(var r,s,c=[],u=0;u32)throw new Error("Invalid bytes width: "+r);c.push(i.setLengthRight(d,r))}else if(h.startsWith("uint")){if((r=a(h))%8||r<8||r>256)throw new Error("Invalid uint width: "+r);if((s=l(d)).bitLength()>r)throw new Error("Supplied uint exceeds width: "+r+" vs "+s.bitLength());c.push(s.toArrayLike(n,"be",r/8))}else{if(!h.startsWith("int"))throw new Error("Unsupported or invalid type: "+h);if((r=a(h))%8||r<8||r>256)throw new Error("Invalid int width: "+r);if((s=l(d)).bitLength()>r)throw new Error("Supplied int exceeds width: "+r+" vs "+s.bitLength());c.push(s.toTwos(r).toArrayLike(n,"be",r/8))}}return n.concat(c)}e.exports={rawEncode:function(e,t){var r=[],i=[],s=32*e.length;for(var a in e){var c=o(e[a]),u=h(c,t[a]);d(c)?(r.push(h("uint256",s)),i.push(u),s+=u.length):r.push(u)}return n.concat(r.concat(i))},solidityPack:f,soliditySHA3:function(e,t){return i.keccak(f(e,t))}}},17429:(e,t,r)=>{var n=r(75291).Buffer;const i=r(13541),s=r(28120),o={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},a={encodeData(e,t,r,o=!0){const a=["bytes32"],c=[this.hashType(e,r)];if(o){const u=(e,t,a)=>{if(void 0!==r[t])return["bytes32",null==a?"0x0000000000000000000000000000000000000000000000000000000000000000":i.keccak(this.encodeData(t,a,r,o))];if(void 0===a)throw new Error(`missing value for field ${e} of type ${t}`);if("bytes"===t)return["bytes32",i.keccak(a)];if("string"===t)return"string"==typeof a&&(a=n.from(a,"utf8")),["bytes32",i.keccak(a)];if(t.lastIndexOf("]")===t.length-1){const r=t.slice(0,t.lastIndexOf("[")),n=a.map((t=>u(e,r,t)));return["bytes32",i.keccak(s.rawEncode(n.map((([e])=>e)),n.map((([,e])=>e))))]}return[t,a]};for(const n of r[e]){const[e,r]=u(n.name,n.type,t[n.name]);a.push(e),c.push(r)}}else for(const s of r[e]){let e=t[s.name];if(void 0!==e)if("bytes"===s.type)a.push("bytes32"),e=i.keccak(e),c.push(e);else if("string"===s.type)a.push("bytes32"),"string"==typeof e&&(e=n.from(e,"utf8")),e=i.keccak(e),c.push(e);else if(void 0!==r[s.type])a.push("bytes32"),e=i.keccak(this.encodeData(s.type,e,r,o)),c.push(e);else{if(s.type.lastIndexOf("]")===s.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");a.push(s.type),c.push(e)}}return s.rawEncode(a,c)},encodeType(e,t){let r="",n=this.findTypeDependencies(e,t).filter((t=>t!==e));n=[e].concat(n.sort());for(const i of n){if(!t[i])throw new Error("No type definition specified: "+i);r+=i+"("+t[i].map((({name:e,type:t})=>t+" "+e)).join(",")+")"}return r},findTypeDependencies(e,t,r=[]){if(e=e.match(/^\w*/)[0],r.includes(e)||void 0===t[e])return r;r.push(e);for(const n of t[e])for(const e of this.findTypeDependencies(n.type,t,r))!r.includes(e)&&r.push(e);return r},hashStruct(e,t,r,n=!0){return i.keccak(this.encodeData(e,t,r,n))},hashType(e,t){return i.keccak(this.encodeType(e,t))},sanitizeData(e){const t={};for(const r in o.properties)e[r]&&(t[r]=e[r]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){const r=this.sanitizeData(e),s=[n.from("1901","hex")];return s.push(this.hashStruct("EIP712Domain",r.domain,r.types,t)),"EIP712Domain"!==r.primaryType&&s.push(this.hashStruct(r.primaryType,r.message,r.types,t)),i.keccak(n.concat(s))}};e.exports={TYPED_MESSAGE_SCHEMA:o,TypedDataUtils:a,hashForSignTypedDataLegacy:function(e){return function(e){const t=new Error("Expect argument to be non-empty array");if("object"!=typeof e||!e.length)throw t;const r=e.map((function(e){return"bytes"===e.type?i.toBuffer(e.value):e.value})),n=e.map((function(e){return e.type})),o=e.map((function(e){if(!e.name)throw t;return e.type+" "+e.name}));return s.soliditySHA3(["bytes32","bytes32"],[s.soliditySHA3(new Array(e.length).fill("string"),o),s.soliditySHA3(n,r)])}(e.data)},hashForSignTypedData_v3:function(e){return a.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return a.hash(e.data)}}},13541:(e,t,r)=>{var n=r(75291).Buffer;const i=r(43151),s=r(86788);function o(e){return n.allocUnsafe(e).fill(0)}function a(e,t,r){const n=o(t);return e=c(e),r?e.length{function t(e){this.mode=n.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,r=this.data.length;t65536?(i[0]=240|(1835008&s)>>>18,i[1]=128|(258048&s)>>>12,i[2]=128|(4032&s)>>>6,i[3]=128|63&s):s>2048?(i[0]=224|(61440&s)>>>12,i[1]=128|(4032&s)>>>6,i[2]=128|63&s):s>128?(i[0]=192|(1984&s)>>>6,i[1]=128|63&s):i[0]=s,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function r(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}t.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,r=this.parsedData.length;t=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(this.modules[e+r][t+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},getBestMaskPattern:function(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=g.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t},createMovieClip:function(e,t,r){var n=e.createEmptyMovieClip(t,r);this.make();for(var i=0;i>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!e&&1==(t>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},setupTypeInfo:function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=g.getBCHTypeInfo(r),i=0;i<15;i++){var s=!e&&1==(n>>i&1);i<6?this.modules[i][8]=s:i<8?this.modules[i+1][8]=s:this.modules[this.moduleCount-15+i][8]=s}for(i=0;i<15;i++){s=!e&&1==(n>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=s:i<9?this.modules[8][15-i-1+1]=s:this.modules[8][15-i-1]=s}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var r=-1,n=this.moduleCount-1,i=7,s=0,o=this.moduleCount-1;o>0;o-=2)for(6==o&&o--;;){for(var a=0;a<2;a++)if(null==this.modules[n][o-a]){var c=!1;s>>i&1)),g.getMask(t,n,o-a)&&(c=!c),this.modules[n][o-a]=c,-1==--i&&(s++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}}},r.PAD0=236,r.PAD1=17,r.createData=function(e,t,n){for(var i=_.getRSBlocks(e,t),s=new w,o=0;o8*c)throw new Error("code length overflow. ("+s.getLengthInBits()+">"+8*c+")");for(s.getLengthInBits()+4<=8*c&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*c||(s.put(r.PAD0,8),s.getLengthInBits()>=8*c));)s.put(r.PAD1,8);return r.createBytes(s,i)},r.createBytes=function(e,t){for(var r=0,n=0,i=0,s=new Array(t.length),o=new Array(t.length),a=0;a=0?d.get(f):0}}var p=0;for(l=0;l=0;)t^=g.G15<=0;)t^=g.G18<>>=1;return t},getPatternPosition:function(e){return g.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case c:return(t+r)%2==0;case u:return t%2==0;case l:return r%3==0;case h:return(t+r)%3==0;case d:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case f:return t*r%2+t*r%3==0;case p:return(t*r%2+t*r%3)%2==0;case y:return(t*r%3+(t+r)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new v([1],0),r=0;r5&&(r+=3+s-5)}for(n=0;n=256;)e-=255;return b.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},m=0;m<8;m++)b.EXP_TABLE[m]=1<>>7-e%8&1)},put:function(e,t){for(var r=0;r>>t-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var E=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function S(e){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},"string"==typeof e&&(e={content:e}),e)for(var t in e)this.options[t]=e[t];if("string"!=typeof this.options.content)throw new Error("Expected 'content' as string!");if(0===this.options.content.length)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0&&this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");var n=this.options.content,c=function(e,t){for(var r=function(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}(e),n=1,i=0,s=0,o=E.length;s<=o;s++){var a=E[s];if(!a)throw new Error("Content too long: expected "+i+" but got "+r);switch(t){case"L":i=a[0];break;case"M":i=a[1];break;case"Q":i=a[2];break;case"H":i=a[3];break;default:throw new Error("Unknwon error correction level: "+t)}if(r<=i)break;n++}if(n>E.length)throw new Error("Content too long");return n}(n,this.options.ecl),u=function(e){switch(e){case"L":return i;case"M":return s;case"Q":return o;case"H":return a;default:throw new Error("Unknwon error correction level: "+e)}}(this.options.ecl);this.qrcode=new r(c,u),this.qrcode.addData(n),this.qrcode.make()}S.prototype.svg=function(e){var t=this.options||{},r=this.qrcode.modules;void 0===e&&(e={container:t.container||"svg"});for(var n=void 0===t.pretty||!!t.pretty,i=n?" ":"",s=n?"\r\n":"",o=t.width,a=t.height,c=r.length,u=o/(c+2*t.padding),l=a/(c+2*t.padding),h=void 0!==t.join&&!!t.join,d=void 0!==t.swap&&!!t.swap,f=void 0===t.xmlDeclaration||!!t.xmlDeclaration,p=void 0!==t.predefined&&!!t.predefined,y=p?i+''+s:"",g=i+''+s,b="",m="",v=0;v'+s:i+''+s}}h&&(b=i+'');let C="";if(void 0!==this.options.image&&this.options.image.svg){const e=o*this.options.image.width/100,t=a*this.options.image.height/100;C+=``,C+=this.options.image.svg+s,C+=""}var I="";switch(e.container){case"svg":f&&(I+=''+s),I+=''+s,I+=y+g+b,I+=C,I+="";break;case"svg-viewbox":f&&(I+=''+s),I+=''+s,I+=y+g+b,I+=C,I+="";break;case"g":I+=''+s,I+=y+g+b,I+=C,I+="";break;default:I+=(y+g+b+C).replace(/^\s+/,"")}return I},e.exports=S},20943:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LIB_VERSION=void 0,t.LIB_VERSION="3.7.2"},96574:(e,t,r)=>{"use strict";r.r(t),r.d(t,{Component:()=>E,Fragment:()=>w,cloneElement:()=>H,createContext:()=>W,createElement:()=>m,createRef:()=>_,h:()=>m,hydrate:()=>V,isValidElement:()=>o,options:()=>i,render:()=>z,toChildArray:()=>A});var n,i,s,o,a,c,u,l,h,d={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function g(e,t){for(var r in t)e[r]=t[r];return e}function b(e){var t=e.parentNode;t&&t.removeChild(e)}function m(e,t,r){var i,s,o,a={};for(o in t)"key"==o?i=t[o]:"ref"==o?s=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?n.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return v(e,a,i,s,null)}function v(e,t,r,n,o){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++s:o};return null==o&&null!=i.vnode&&i.vnode(a),a}function _(){return{current:null}}function w(e){return e.children}function E(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(e.__,e.__.__k.indexOf(e)+1):null;for(var r;tt&&a.sort(l));C.__r=0}function I(e,t,r,n,i,s,o,a,c,u,l){var h,p,g,b,m,_,E,x,k,C=0,I=n&&n.__k||f,A=I.length,O=A,T=t.length;for(r.__k=[],h=0;h0?v(b.type,b.props,b.key,b.ref?b.ref:null,b.__v):b)?(b.__=r,b.__b=r.__b+1,-1===(x=N(b,I,E=h+C,O))?g=d:(g=I[x]||d,I[x]=void 0,O--),P(e,b,g,i,s,o,a,c,u,l),m=b.__e,(p=b.ref)&&g.ref!=p&&(g.ref&&F(g.ref,null,b),l.push(p,b.__c||m,b)),null!=m&&(null==_&&(_=m),(k=g===d||null===g.__v)?-1==x&&C--:x!==E&&(x===E+1?C++:x>E?O>T-E?C+=x-E:C--:C=x(null!=c?1:0))for(;o>=0||a=0){if((c=t[o])&&i==c.key&&s===c.type)return o;o--}if(a2&&(c.children=arguments.length>3?n.call(arguments,2):r),v(e.type,c,i||e.key,s||e.ref,null)}function W(e,t){var r={__c:t="__cC"+h++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,n;return this.getChildContext||(r=[],(n={})[t]=this,this.getChildContext=function(){return n},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&r.some((function(e){e.__e=!0,k(e)}))},this.sub=function(e){r.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r.splice(r.indexOf(e),1),t&&t.call(e)}}),e.children}};return r.Provider.__=r.Consumer.contextType=r}n=f.slice,i={__e:function(e,t,r,n){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&null!=s.getDerivedStateFromError&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},s=0,o=function(e){return null!=e&&void 0===e.constructor},E.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},r),this.props)),e&&g(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),k(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},E.prototype.render=w,a=[],u="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},C.__r=0,h=0},98128:(e,t,r)=>{"use strict";r.r(t),r.d(t,{useCallback:()=>x,useContext:()=>k,useDebugValue:()=>C,useEffect:()=>v,useErrorBoundary:()=>I,useId:()=>R,useImperativeHandle:()=>E,useLayoutEffect:()=>_,useMemo:()=>S,useReducer:()=>m,useRef:()=>w,useState:()=>b});var n,i,s,o,a=r(96574),c=0,u=[],l=[],h=a.options.__b,d=a.options.__r,f=a.options.diffed,p=a.options.__c,y=a.options.unmount;function g(e,t){a.options.__h&&a.options.__h(i,e,c||t),c=0;var r=i.__H||(i.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:l}),r.__[e]}function b(e){return c=1,m(L,e)}function m(e,t,r){var s=g(n++,2);if(s.t=e,!s.__c&&(s.__=[r?r(t):L(void 0,t),function(e){var t=s.__N?s.__N[0]:s.__[0],r=s.t(t,e);t!==r&&(s.__N=[r,s.__[1]],s.__c.setState({}))}],s.__c=i,!i.u)){var o=function(e,t,r){if(!s.__c.__H)return!0;var n=s.__c.__H.__.filter((function(e){return e.__c}));if(n.every((function(e){return!e.__N})))return!a||a.call(this,e,t,r);var i=!1;return n.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),!(!i&&s.__c.props===e)&&(!a||a.call(this,e,t,r))};i.u=!0;var a=i.shouldComponentUpdate,c=i.componentWillUpdate;i.componentWillUpdate=function(e,t,r){if(this.__e){var n=a;a=void 0,o(e,t,r),a=n}c&&c.call(this,e,t,r)},i.shouldComponentUpdate=o}return s.__N||s.__}function v(e,t){var r=g(n++,3);!a.options.__s&&j(r.__H,t)&&(r.__=e,r.i=t,i.__H.__h.push(r))}function _(e,t){var r=g(n++,4);!a.options.__s&&j(r.__H,t)&&(r.__=e,r.i=t,i.__h.push(r))}function w(e){return c=5,S((function(){return{current:e}}),[])}function E(e,t,r){c=6,_((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==r?r:r.concat(e))}function S(e,t){var r=g(n++,7);return j(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function x(e,t){return c=8,S((function(){return e}),t)}function k(e){var t=i.context[e.__c],r=g(n++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(i)),t.props.value):e.__}function C(e,t){a.options.useDebugValue&&a.options.useDebugValue(t?t(e):e)}function I(e){var t=g(n++,10),r=b();return t.__=e,i.componentDidCatch||(i.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]}function R(){var e=g(n++,11);if(!e.__){for(var t=i.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function A(){for(var e;e=u.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(O),e.__H.__h.forEach(T),e.__H.__h=[]}catch(i){e.__H.__h=[],a.options.__e(i,e.__v)}}a.options.__b=function(e){i=null,h&&h(e)},a.options.__r=function(e){d&&d(e),n=0;var t=(i=e.__c).__H;t&&(s===i?(t.__h=[],i.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=l,e.__N=e.i=void 0}))):(t.__h.forEach(O),t.__h.forEach(T),t.__h=[],n=0)),s=i},a.options.diffed=function(e){f&&f(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==u.push(t)&&o===a.options.requestAnimationFrame||((o=a.options.requestAnimationFrame)||N)(A)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==l&&(e.__=e.__V),e.i=void 0,e.__V=l}))),s=i=null},a.options.__c=function(e,t){t.some((function(e){try{e.__h.forEach(O),e.__h=e.__h.filter((function(e){return!e.__||T(e)}))}catch(s){t.some((function(e){e.__h&&(e.__h=[])})),t=[],a.options.__e(s,e.__v)}})),p&&p(e,t)},a.options.unmount=function(e){y&&y(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{O(e)}catch(e){t=e}})),r.__H=void 0,t&&a.options.__e(t,r.__v))};var M="function"==typeof requestAnimationFrame;function N(e){var t,r=function(){clearTimeout(n),M&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);M&&(t=requestAnimationFrame(r))}function O(e){var t=i,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),i=t}function T(e){var t=i;e.__c=e.__(),i=t}function j(e,t){return!e||e.length!==t.length||t.some((function(t,r){return t!==e[r]}))}function L(e,t){return"function"==typeof t?t(e):t}},82145:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ArgumentOutOfRangeError:()=>M.W,AsyncSubject:()=>l.c,BehaviorSubject:()=>c.X,ConnectableObservable:()=>i.c,EMPTY:()=>Q.E,EmptyError:()=>N.K,GroupedObservable:()=>s.T,NEVER:()=>fe,Notification:()=>k.P,NotificationKind:()=>k.W,ObjectUnsubscribedError:()=>O.N,Observable:()=>n.y,ReplaySubject:()=>u.t,Scheduler:()=>E.b,Subject:()=>a.xQ,Subscriber:()=>x.L,Subscription:()=>S.w,TimeoutError:()=>j.W,UnsubscriptionError:()=>T.B,VirtualAction:()=>w,VirtualTimeScheduler:()=>_,animationFrame:()=>v,animationFrameScheduler:()=>m,asap:()=>h.e,asapScheduler:()=>h.E,async:()=>d.P,asyncScheduler:()=>d.z,bindCallback:()=>U,bindNodeCallback:()=>H,combineLatest:()=>G.aj,concat:()=>Z.z,config:()=>Ne.v,defer:()=>Y.P,empty:()=>Q.c,forkJoin:()=>ee,from:()=>X.D,fromEvent:()=>ne,fromEventPattern:()=>se,generate:()=>oe,identity:()=>R.y,iif:()=>ce,interval:()=>le,isObservable:()=>A,merge:()=>de.T,never:()=>pe,noop:()=>I.Z,observable:()=>o.L,of:()=>ye.of,onErrorResumeNext:()=>ge,pairs:()=>be,partition:()=>Ee,pipe:()=>C.z,queue:()=>f.c,queueScheduler:()=>f.N,race:()=>Se.S3,range:()=>xe,scheduled:()=>Me.x,throwError:()=>Ce._,timer:()=>Ie.H,using:()=>Re,zip:()=>Ae.$R});var n=r(22900),i=r(54463),s=r(98527),o=r(8149),a=r(73339),c=r(23427),u=r(31786),l=r(45189),h=r(28423),d=r(17865),f=r(13533),p=r(19062),y=r(98786),g=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return p.__extends(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame((function(){return t.flush(null)}))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);0===t.actions.length&&(cancelAnimationFrame(r),t.scheduled=void 0)},t}(y.o),b=r(11545),m=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p.__extends(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,r=this.actions,n=-1,i=r.length;e=e||r.shift();do{if(t=e.execute(e.state,e.delay))break}while(++nt.index?1:-1:e.delay>t.delay?1:-1},t}(y.o),E=r(21569),S=r(34292),x=r(82817),k=r(82929),C=r(1030),I=r(99458),R=r(95478);function A(e){return!!e&&(e instanceof n.y||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var M=r(35843),N=r(27238),O=r(4135),T=r(98690),j=r(35624),L=r(28256),P=r(8370),D=r(28211),B=r(63857),F=r(98399);function U(e,t,r){if(t){if(!(0,B.K)(t))return function(){for(var n=[],i=0;i1?n.next(Array.prototype.slice.call(arguments)):n.next(e)}),n,r)}))}function ie(e,t,r,n,i){var s;if(function(e){return e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}(e)){var o=e;e.addEventListener(t,r,i),s=function(){return o.removeEventListener(t,r,i)}}else if(function(e){return e&&"function"==typeof e.on&&"function"==typeof e.off}(e)){var a=e;e.on(t,r),s=function(){return a.off(t,r)}}else if(function(e){return e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}(e)){var c=e;e.addListener(t,r),s=function(){return c.removeListener(t,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var u=0,l=e.length;u=t){n.complete();break}if(n.next(s++),n.closed)break}}))}function ke(e){var t=e.start,r=e.index,n=e.count,i=e.subscriber;r>=n?i.complete():(i.next(t),i.closed||(e.index=r+1,e.start=t+1,this.schedule(e)))}var Ce=r(83267),Ie=r(1152);function Re(e,t){return new n.y((function(r){var n,i;try{n=e()}catch(o){return void r.error(o)}try{i=t(n)}catch(o){return void r.error(o)}var s=(i?(0,X.D)(i):Q.E).subscribe(r);return function(){s.unsubscribe(),n&&n.unsubscribe()}}))}var Ae=r(56030),Me=r(62062),Ne=r(86331)},45189:(e,t,r)=>{"use strict";r.d(t,{c:()=>o});var n=r(19062),i=r(73339),s=r(34292),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return n.__extends(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),s.w.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),s.w.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(i.xQ)},23427:(e,t,r)=>{"use strict";r.d(t,{X:()=>o});var n=r(19062),i=r(73339),s=r(4135),o=function(e){function t(t){var r=e.call(this)||this;return r._value=t,r}return n.__extends(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r&&!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.N;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(i.xQ)},82929:(e,t,r)=>{"use strict";r.d(t,{P:()=>a,W:()=>n});var n,i=r(94109),s=r(9401),o=r(83267);n||(n={});var a=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,r){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return r&&r()}},e.prototype.accept=function(e,t,r){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,i.c)()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},22900:(e,t,r)=>{"use strict";r.d(t,{y:()=>h});var n=r(8370),i=r(82817),s=r(28106),o=r(97066);var a=r(8149),c=r(1030),u=r(86331),l=r(98399),h=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n=this.operator,a=function(e,t,r){if(e){if(e instanceof i.L)return e;if(e[s.b])return e[s.b]()}return e||t||r?new i.L(e,t,r):new i.L(o.c)}(e,t,r);if(n?a.add(n.call(a,this.source)):a.add(this.source||u.v.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),u.v.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){u.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),(0,n._)(e)?e.error(t):l.warn(t)}},e.prototype.forEach=function(e,t){var r=this;return new(t=d(t))((function(t,n){var i;i=r.subscribe((function(t){try{e(t)}catch(r){n(r),i&&i.unsubscribe()}}),n,t)}))},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[a.L]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t{"use strict";r.d(t,{c:()=>s});var n=r(86331),i=r(41528),s={closed:!0,next:function(e){},error:function(e){if(n.v.useDeprecatedSynchronousErrorHandling)throw e;(0,i.z)(e)},complete:function(){}}},41606:(e,t,r)=>{"use strict";r.d(t,{L:()=>i});var n=r(19062),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.notifyNext=function(e,t,r,n,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(r(82817).L)},31786:(e,t,r)=>{"use strict";r.d(t,{t:()=>l});var n=r(19062),i=r(73339),s=r(13533),o=r(34292),a=r(72358),c=r(4135),u=r(35759),l=function(e){function t(t,r,n){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY);var i=e.call(this)||this;return i.scheduler=n,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=r<1?1:r,r===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return n.__extends(t,e),t.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var r=this._events;r.push(t),r.length>this._bufferSize&&r.shift()}e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new h(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,r=this._infiniteTimeWindow,n=r?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=n.length;if(this.closed)throw new c.N;if(this.isStopped||this.hasError?t=o.w.EMPTY:(this.observers.push(e),t=new u.W(this,e)),i&&e.add(e=new a.ht(e,i)),r)for(var l=0;lt&&(s=Math.max(s,i-t)),s>0&&n.splice(0,s),n},t}(i.xQ),h=function(){return function(e,t){this.time=e,this.value=t}}()},21569:(e,t,r)=>{"use strict";r.d(t,{b:()=>n});var n=function(){function e(t,r){void 0===r&&(r=e.now),this.SchedulerAction=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(r,t)},e.now=function(){return Date.now()},e}()},73339:(e,t,r)=>{"use strict";r.d(t,{Yc:()=>l,xQ:()=>h});var n=r(19062),i=r(22900),s=r(82817),o=r(34292),a=r(4135),c=r(35759),u=r(28106),l=function(e){function t(t){var r=e.call(this,t)||this;return r.destination=t,r}return n.__extends(t,e),t}(s.L),h=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return n.__extends(t,e),t.prototype[u.b]=function(){return new l(this)},t.prototype.lift=function(e){var t=new d(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new a.N;if(!this.isStopped)for(var t=this.observers,r=t.length,n=t.slice(),i=0;i{"use strict";r.d(t,{W:()=>i});var n=r(19062),i=function(e){function t(t,r){var n=e.call(this)||this;return n.subject=t,n.subscriber=r,n.closed=!1,n}return n.__extends(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var r=t.indexOf(this.subscriber);-1!==r&&t.splice(r,1)}}},t}(r(34292).w)},82817:(e,t,r)=>{"use strict";r.d(t,{L:()=>l});var n=r(19062),i=r(98259),s=r(97066),o=r(34292),a=r(28106),c=r(86331),u=r(41528),l=function(e){function t(r,n,i){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=s.c;break;case 1:if(!r){o.destination=s.c;break}if("object"==typeof r){r instanceof t?(o.syncErrorThrowable=r.syncErrorThrowable,o.destination=r,r.add(o)):(o.syncErrorThrowable=!0,o.destination=new h(o,r));break}default:o.syncErrorThrowable=!0,o.destination=new h(o,r,n,i)}return o}return n.__extends(t,e),t.prototype[a.b]=function(){return this},t.create=function(e,r,n){var i=new t(e,r,n);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(o.w),h=function(e){function t(t,r,n,o){var a,c=e.call(this)||this;c._parentSubscriber=t;var u=c;return(0,i.m)(r)?a=r:r&&(a=r.next,n=r.error,o=r.complete,r!==s.c&&(u=Object.create(r),(0,i.m)(u.unsubscribe)&&c.add(u.unsubscribe.bind(u)),u.unsubscribe=c.unsubscribe.bind(c))),c._context=u,c._next=a,c._error=n,c._complete=o,c}return n.__extends(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;c.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,r=c.v.useDeprecatedSynchronousErrorHandling;if(this._error)r&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)r?(t.syncErrorValue=e,t.syncErrorThrown=!0):(0,u.z)(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;(0,u.z)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var r=function(){return e._complete.call(e._context)};c.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(r){if(this.unsubscribe(),c.v.useDeprecatedSynchronousErrorHandling)throw r;(0,u.z)(r)}},t.prototype.__tryOrSetError=function(e,t,r){if(!c.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,r)}catch(n){return c.v.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=n,e.syncErrorThrown=!0,!0):((0,u.z)(n),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(l)},34292:(e,t,r)=>{"use strict";r.d(t,{w:()=>a});var n=r(28211),i=r(51502),s=r(98259),o=r(98690),a=function(){function e(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var t;if(!this.closed){var r=this,a=r._parentOrParents,u=r._ctorUnsubscribe,l=r._unsubscribe,h=r._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,a instanceof e)a.remove(this);else if(null!==a)for(var d=0;d{"use strict";r.d(t,{v:()=>i});r(98399);var n=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){e&&(new Error).stack;n=e},get useDeprecatedSynchronousErrorHandling(){return n}}},81108:(e,t,r)=>{"use strict";r.d(t,{Ds:()=>c,IY:()=>a,ft:()=>u});var n=r(19062),i=r(82817),s=r(22900),o=r(31835),a=function(e){function t(t){var r=e.call(this)||this;return r.parent=t,r}return n.__extends(t,e),t.prototype._next=function(e){this.parent.notifyNext(e)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},t}(i.L),c=(i.L,function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(i.L));i.L;function u(e,t){if(!t.closed){if(e instanceof s.y)return e.subscribe(t);var r;try{r=(0,o.s)(e)(t)}catch(n){t.error(n)}return r}}},54463:(e,t,r)=>{"use strict";r.d(t,{N:()=>l,c:()=>u});var n=r(19062),i=r(73339),s=r(22900),o=r(82817),a=r(34292),c=r(4279),u=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subjectFactory=r,n._refCount=0,n._isComplete=!1,n}return n.__extends(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new a.w).add(this.source.subscribe(new h(this.getSubject(),this))),e.closed&&(this._connection=null,e=a.w.EMPTY)),e},t.prototype.refCount=function(){return(0,c.x)()(this)},t}(s.y),l=function(){var e=u.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),h=function(e){function t(t,r){var n=e.call(this,t)||this;return n.connectable=r,n}return n.__extends(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(i.Yc);o.L},47631:(e,t,r)=>{"use strict";r.d(t,{Ms:()=>h,aj:()=>l});var n=r(19062),i=r(63857),s=r(28211),o=r(41606),a=r(66065),c=r(1876),u={};function l(){for(var e=[],t=0;t{"use strict";r.d(t,{z:()=>s});var n=r(9401),i=r(54995);function s(){for(var e=[],t=0;t{"use strict";r.d(t,{P:()=>o});var n=r(22900),i=r(43410),s=r(94109);function o(e){return new n.y((function(t){var r;try{r=e()}catch(n){return void t.error(n)}return(r?(0,i.D)(r):(0,s.c)()).subscribe(t)}))}},94109:(e,t,r)=>{"use strict";r.d(t,{E:()=>i,c:()=>s});var n=r(22900),i=new n.y((function(e){return e.complete()}));function s(e){return e?function(e){return new n.y((function(t){return e.schedule((function(){return t.complete()}))}))}(e):i}},43410:(e,t,r)=>{"use strict";r.d(t,{D:()=>o});var n=r(22900),i=r(31835),s=r(62062);function o(e,t){return t?(0,s.x)(e,t):e instanceof n.y?e:new n.y((0,i.s)(e))}},1876:(e,t,r)=>{"use strict";r.d(t,{n:()=>o});var n=r(22900),i=r(30681),s=r(66167);function o(e,t){return t?(0,s.r)(e,t):new n.y((0,i.V)(e))}},77696:(e,t,r)=>{"use strict";r.d(t,{T:()=>a});var n=r(22900),i=r(63857),s=r(31114),o=r(1876);function a(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof c&&(r=e.pop()),null===a&&1===e.length&&e[0]instanceof n.y?e[0]:(0,s.J)(r)((0,o.n)(e,a))}},9401:(e,t,r)=>{"use strict";r.d(t,{of:()=>o});var n=r(63857),i=r(1876),s=r(66167);function o(){for(var e=[],t=0;t{"use strict";r.d(t,{S3:()=>c});var n=r(19062),i=r(28211),s=r(1876),o=r(41606),a=r(66065);function c(){for(var e=[],t=0;t{"use strict";r.d(t,{_:()=>i});var n=r(22900);function i(e,t){return t?new n.y((function(r){return t.schedule(s,0,{error:e,subscriber:r})})):new n.y((function(t){return t.error(e)}))}function s(e){var t=e.error;e.subscriber.error(t)}},1152:(e,t,r)=>{"use strict";r.d(t,{H:()=>a});var n=r(22900),i=r(17865),s=r(1601),o=r(63857);function a(e,t,r){void 0===e&&(e=0);var a=-1;return(0,s.k)(t)?a=Number(t)<1?1:Number(t):(0,o.K)(t)&&(r=t),(0,o.K)(r)||(r=i.P),new n.y((function(t){var n=(0,s.k)(e)?e:+e-r.now();return r.schedule(c,n,{index:0,period:a,subscriber:t})}))}function c(e){var t=e.index,r=e.period,n=e.subscriber;if(n.next(t),!n.closed){if(-1===r)return n.complete();e.index=t+1,this.schedule(e,r)}}},56030:(e,t,r)=>{"use strict";r.d(t,{$R:()=>u,mx:()=>l});var n=r(19062),i=r(1876),s=r(28211),o=r(82817),a=r(71906),c=r(81108);function u(){for(var e=[],t=0;tthis.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),p=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.parent=r,i.observable=n,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return n.__extends(t,e),t.prototype[a.hZ]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e){this.buffer.push(e),this.parent.checkIterators()},t.prototype.subscribe=function(){return(0,c.ft)(this.observable,new c.IY(this))},t}(c.Ds)},54995:(e,t,r)=>{"use strict";r.d(t,{u:()=>i});var n=r(31114);function i(){return(0,n.J)(1)}},36519:(e,t,r)=>{"use strict";r.d(t,{h:()=>s});var n=r(19062),i=r(82817);function s(e,t){return function(r){return r.lift(new o(e,t))}}var o=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.predicate,this.thisArg))},e}(),a=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.predicate=r,i.thisArg=n,i.count=0,i}return n.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}t&&this.destination.next(e)},t}(i.L)},98527:(e,t,r)=>{"use strict";r.d(t,{T:()=>d,v:()=>c});var n=r(19062),i=r(82817),s=r(34292),o=r(22900),a=r(73339);function c(e,t,r,n){return function(i){return i.lift(new u(e,t,r,n))}}var u=function(){function e(e,t,r,n){this.keySelector=e,this.elementSelector=t,this.durationSelector=r,this.subjectSelector=n}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),l=function(e){function t(t,r,n,i,s){var o=e.call(this,t)||this;return o.keySelector=r,o.elementSelector=n,o.durationSelector=i,o.subjectSelector=s,o.groups=null,o.attemptedToUnsubscribe=!1,o.count=0,o}return n.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(r){return void this.error(r)}this._group(e,t)},t.prototype._group=function(e,t){var r=this.groups;r||(r=this.groups=new Map);var n,i=r.get(t);if(this.elementSelector)try{n=this.elementSelector(e)}catch(c){this.error(c)}else n=e;if(!i){i=this.subjectSelector?this.subjectSelector():new a.xQ,r.set(t,i);var s=new d(t,i,this);if(this.destination.next(s),this.durationSelector){var o=void 0;try{o=this.durationSelector(new d(t,i))}catch(c){return void this.error(c)}this.add(o.subscribe(new h(t,i,this)))}}i.closed||i.next(n)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach((function(t,r){t.error(e)})),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach((function(e,t){e.complete()})),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(i.L),h=function(e){function t(t,r,n){var i=e.call(this,r)||this;return i.key=t,i.group=r,i.parent=n,i}return n.__extends(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(i.L),d=function(e){function t(t,r,n){var i=e.call(this)||this;return i.key=t,i.groupSubject=r,i.refCountSubscription=n,i}return n.__extends(t,e),t.prototype._subscribe=function(e){var t=new s.w,r=this.refCountSubscription,n=this.groupSubject;return r&&!r.closed&&t.add(new f(r)),t.add(n.subscribe(e)),t},t}(o.y),f=function(e){function t(t){var r=e.call(this)||this;return r.parent=t,t.count++,r}return n.__extends(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(s.w)},28256:(e,t,r)=>{"use strict";r.d(t,{U:()=>s});var n=r(19062),i=r(82817);function s(e,t){return function(r){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new o(e,t))}}var o=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.project,this.thisArg))},e}(),a=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.project=r,i.count=0,i.thisArg=n||i,i}return n.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(t)},t}(i.L)},31114:(e,t,r)=>{"use strict";r.d(t,{J:()=>s});var n=r(45536),i=r(95478);function s(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),(0,n.zg)(i.y,e)}},45536:(e,t,r)=>{"use strict";r.d(t,{VS:()=>l,zg:()=>a});var n=r(19062),i=r(28256),s=r(43410),o=r(81108);function a(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof t?function(n){return n.pipe(a((function(r,n){return(0,s.D)(e(r,n)).pipe((0,i.U)((function(e,i){return t(r,e,n,i)})))}),r))}:("number"==typeof t&&(r=t),function(t){return t.lift(new c(e,r))})}var c=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.project,this.concurrent))},e}(),u=function(e){function t(t,r,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this,t)||this;return i.project=r,i.concurrent=n,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return n.__extends(t,e),t.prototype._next=function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.Ds),l=a},72358:(e,t,r)=>{"use strict";r.d(t,{QV:()=>o,ht:()=>c});var n=r(19062),i=r(82817),s=r(82929);function o(e,t){return void 0===t&&(t=0),function(r){return r.lift(new a(e,t))}}var a=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.scheduler,this.delay))},e}(),c=function(e){function t(t,r,n){void 0===n&&(n=0);var i=e.call(this,t)||this;return i.scheduler=r,i.delay=n,i}return n.__extends(t,e),t.dispatch=function(e){var t=e.notification,r=e.destination;t.observe(r),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new u(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(s.P.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(s.P.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(s.P.createComplete()),this.unsubscribe()},t}(i.L),u=function(){return function(e,t){this.notification=e,this.destination=t}}()},4279:(e,t,r)=>{"use strict";r.d(t,{x:()=>s});var n=r(19062),i=r(82817);function s(){return function(e){return e.lift(new o(e))}}var o=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var r=this.connectable;r._refCount++;var n=new a(e,r),i=t.subscribe(n);return n.closed||(n.connection=r.connect()),i},e}(),a=function(e){function t(t,r){var n=e.call(this,t)||this;return n.connectable=r,n}return n.__extends(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var r=this.connection,n=e._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},t}(i.L)},66167:(e,t,r)=>{"use strict";r.d(t,{r:()=>s});var n=r(22900),i=r(34292);function s(e,t){return new n.y((function(r){var n=new i.w,s=0;return n.add(t.schedule((function(){s!==e.length?(r.next(e[s++]),r.closed||n.add(this.schedule())):r.complete()}))),n}))}},62062:(e,t,r)=>{"use strict";r.d(t,{x:()=>l});var n=r(22900),i=r(34292),s=r(8149);var o=r(66167),a=r(71906);var c=r(14523),u=r(92746);function l(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[s.L]}(e))return function(e,t){return new n.y((function(r){var n=new i.w;return n.add(t.schedule((function(){var i=e[s.L]();n.add(i.subscribe({next:function(e){n.add(t.schedule((function(){return r.next(e)})))},error:function(e){n.add(t.schedule((function(){return r.error(e)})))},complete:function(){n.add(t.schedule((function(){return r.complete()})))}}))}))),n}))}(e,t);if((0,c.t)(e))return function(e,t){return new n.y((function(r){var n=new i.w;return n.add(t.schedule((function(){return e.then((function(e){n.add(t.schedule((function(){r.next(e),n.add(t.schedule((function(){return r.complete()})))})))}),(function(e){n.add(t.schedule((function(){return r.error(e)})))}))}))),n}))}(e,t);if((0,u.z)(e))return(0,o.r)(e,t);if(function(e){return e&&"function"==typeof e[a.hZ]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new n.y((function(r){var n,s=new i.w;return s.add((function(){n&&"function"==typeof n.return&&n.return()})),s.add(t.schedule((function(){n=e[a.hZ](),s.add(t.schedule((function(){if(!r.closed){var e,t;try{var i=n.next();e=i.value,t=i.done}catch(s){return void r.error(s)}t?r.complete():(r.next(e),this.schedule())}})))}))),s}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}},98786:(e,t,r)=>{"use strict";r.d(t,{o:()=>i});var n=r(19062),i=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return n.__extends(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r=!1,n=void 0;try{this.work(e)}catch(i){r=!0,n=!!i&&i||new Error(i)}if(r)return this.unsubscribe(),n},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,r=t.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,r){return e.call(this)||this}return n.__extends(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(r(34292).w))},11545:(e,t,r)=>{"use strict";r.d(t,{v:()=>s});var n=r(19062),i=r(21569),s=function(e){function t(r,n){void 0===n&&(n=i.b.now);var s=e.call(this,r,(function(){return t.delegate&&t.delegate!==s?t.delegate.now():n()}))||this;return s.actions=[],s.active=!1,s.scheduled=void 0,s}return n.__extends(t,e),t.prototype.schedule=function(r,n,i){return void 0===n&&(n=0),t.delegate&&t.delegate!==this?t.delegate.schedule(r,n,i):e.prototype.schedule.call(this,r,n,i)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var r;this.active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(i.b)},28423:(e,t,r)=>{"use strict";r.d(t,{e:()=>d,E:()=>h});var n=r(19062),i=1,s=function(){return Promise.resolve()}(),o={};function a(e){return e in o&&(delete o[e],!0)}var c=function(e){var t=i++;return o[t]=!0,s.then((function(){return a(t)&&e()})),t},u=function(e){a(e)},l=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return n.__extends(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t.scheduled||(t.scheduled=c(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);0===t.actions.length&&(u(r),t.scheduled=void 0)},t}(r(98786).o),h=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,r=this.actions,n=-1,i=r.length;e=e||r.shift();do{if(t=e.execute(e.state,e.delay))break}while(++n{"use strict";r.d(t,{P:()=>s,z:()=>i});var n=r(98786),i=new(r(11545).v)(n.o),s=i},13533:(e,t,r)=>{"use strict";r.d(t,{c:()=>o,N:()=>s});var n=r(19062),i=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return n.__extends(t,e),t.prototype.schedule=function(t,r){return void 0===r&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?e.prototype.requestAsyncId.call(this,t,r,n):t.flush(this)},t}(r(98786).o),s=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t}(r(11545).v))(i),o=s},71906:(e,t,r)=>{"use strict";function n(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}r.d(t,{hZ:()=>i});var i=n()},8149:(e,t,r)=>{"use strict";r.d(t,{L:()=>n});var n=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},28106:(e,t,r)=>{"use strict";r.d(t,{b:()=>n});var n=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},35843:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});var n=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},27238:(e,t,r)=>{"use strict";r.d(t,{K:()=>n});var n=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}()},4135:(e,t,r)=>{"use strict";r.d(t,{N:()=>n});var n=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},35624:(e,t,r)=>{"use strict";r.d(t,{W:()=>n});var n=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}()},98690:(e,t,r)=>{"use strict";r.d(t,{B:()=>n});var n=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map((function(e,t){return t+1+") "+e.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}()},8370:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(82817);function i(e){for(;e;){var t=e,r=t.closed,i=t.destination,s=t.isStopped;if(r||s)return!1;e=i&&i instanceof n.L?i:null}return!0}},41528:(e,t,r)=>{"use strict";function n(e){setTimeout((function(){throw e}),0)}r.d(t,{z:()=>n})},95478:(e,t,r)=>{"use strict";function n(e){return e}r.d(t,{y:()=>n})},28211:(e,t,r)=>{"use strict";r.d(t,{k:()=>n});var n=function(){return Array.isArray||function(e){return e&&"number"==typeof e.length}}()},92746:(e,t,r)=>{"use strict";r.d(t,{z:()=>n});var n=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},98259:(e,t,r)=>{"use strict";function n(e){return"function"==typeof e}r.d(t,{m:()=>n})},1601:(e,t,r)=>{"use strict";r.d(t,{k:()=>i});var n=r(28211);function i(e){return!(0,n.k)(e)&&e-parseFloat(e)+1>=0}},51502:(e,t,r)=>{"use strict";function n(e){return null!==e&&"object"==typeof e}r.d(t,{K:()=>n})},14523:(e,t,r)=>{"use strict";function n(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}r.d(t,{t:()=>n})},63857:(e,t,r)=>{"use strict";function n(e){return e&&"function"==typeof e.schedule}r.d(t,{K:()=>n})},99458:(e,t,r)=>{"use strict";function n(){}r.d(t,{Z:()=>n})},15225:(e,t,r)=>{"use strict";function n(e,t){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=e,r.thisArg=t,r}r.d(t,{f:()=>n})},1030:(e,t,r)=>{"use strict";r.d(t,{U:()=>s,z:()=>i});var n=r(95478);function i(){for(var e=[],t=0;t{"use strict";r.d(t,{s:()=>l});var n=r(30681),i=r(41528),s=r(71906),o=r(8149),a=r(92746),c=r(14523),u=r(51502),l=function(e){if(e&&"function"==typeof e[o.L])return l=e,function(e){var t=l[o.L]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if((0,a.z)(e))return(0,n.V)(e);if((0,c.t)(e))return r=e,function(e){return r.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,i.z),e};if(e&&"function"==typeof e[s.hZ])return t=e,function(e){for(var r=t[s.hZ]();;){var n=void 0;try{n=r.next()}catch(i){return e.error(i),e}if(n.done){e.complete();break}if(e.next(n.value),e.closed)break}return"function"==typeof r.return&&e.add((function(){r.return&&r.return()})),e};var t,r,l,h=(0,u.K)(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+h+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},30681:(e,t,r)=>{"use strict";r.d(t,{V:()=>n});var n=function(e){return function(t){for(var r=0,n=e.length;r{"use strict";r.d(t,{D:()=>a});var n=r(19062),i=function(e){function t(t,r,n){var i=e.call(this)||this;return i.parent=t,i.outerValue=r,i.outerIndex=n,i.index=0,i}return n.__extends(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(r(82817).L),s=r(31835),o=r(22900);function a(e,t,r,n,a){if(void 0===a&&(a=new i(e,r,n)),!a.closed)return t instanceof o.y?t.subscribe(a):(0,s.s)(t)(a)}},68353:(e,t,r)=>{"use strict";r.r(t),r.d(t,{audit:()=>s,auditTime:()=>l,buffer:()=>h,bufferCount:()=>y,bufferTime:()=>_,bufferToggle:()=>M,bufferWhen:()=>T,catchError:()=>P,combineAll:()=>U,combineLatest:()=>V,concat:()=>W,concatAll:()=>q.u,concatMap:()=>G,concatMapTo:()=>Z,count:()=>Y,debounce:()=>X,debounceTime:()=>re,defaultIfEmpty:()=>oe,delay:()=>he,delayWhen:()=>ge,dematerialize:()=>we,distinct:()=>xe,distinctUntilChanged:()=>Ie,distinctUntilKeyChanged:()=>Me,elementAt:()=>ze,endWith:()=>He,every:()=>We,exhaust:()=>Ge,exhaustMap:()=>Ke,expand:()=>tt,filter:()=>Oe.h,finalize:()=>it,find:()=>at,findIndex:()=>lt,first:()=>dt,flatMap:()=>J.VS,groupBy:()=>ft.v,ignoreElements:()=>pt,isEmpty:()=>bt,last:()=>St,map:()=>Qe.U,mapTo:()=>xt,materialize:()=>It,max:()=>Lt,merge:()=>Dt,mergeAll:()=>Bt.J,mergeMap:()=>J.zg,mergeMapTo:()=>Ft,mergeScan:()=>Ut,min:()=>Vt,multicast:()=>Wt,observeOn:()=>Jt.QV,onErrorResumeNext:()=>Gt,pairwise:()=>Qt,partition:()=>tr,pluck:()=>rr,publish:()=>sr,publishBehavior:()=>ar,publishLast:()=>ur,publishReplay:()=>hr,race:()=>fr,reduce:()=>jt,refCount:()=>Cr.x,repeat:()=>pr,repeatWhen:()=>br,retry:()=>_r,retryWhen:()=>Sr,sample:()=>Ir,sampleTime:()=>Mr,scan:()=>Mt,sequenceEqual:()=>jr,share:()=>Fr,shareReplay:()=>Ur,single:()=>$r,skip:()=>Hr,skipLast:()=>Jr,skipUntil:()=>Yr,skipWhile:()=>Xr,startWith:()=>rn,subscribeOn:()=>an,switchAll:()=>dn,switchMap:()=>un,switchMapTo:()=>fn,take:()=>Fe,takeLast:()=>_t,takeUntil:()=>pn,takeWhile:()=>bn,tap:()=>En,throttle:()=>Cn,throttleTime:()=>An,throwIfEmpty:()=>je,timeInterval:()=>jn,timeout:()=>$n,timeoutWith:()=>Dn,timestamp:()=>zn,toArray:()=>Wn,window:()=>qn,windowCount:()=>Zn,windowTime:()=>Kn,windowToggle:()=>si,windowWhen:()=>ci,withLatestFrom:()=>hi,zip:()=>yi,zipAll:()=>gi});var n=r(19062),i=r(81108);function s(e){return function(t){return t.lift(new o(e))}}var o=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.durationSelector))},e}(),a=function(e){function t(t,r){var n=e.call(this,t)||this;return n.durationSelector=r,n.hasValue=!1,n}return n.__extends(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=void 0;try{t=(0,this.durationSelector)(e)}catch(n){return this.destination.error(n)}var r=(0,i.ft)(t,new i.IY(this));!r||r.closed?this.clearThrottle():this.add(this.throttled=r)}},t.prototype.clearThrottle=function(){var e=this,t=e.value,r=e.hasValue,n=e.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),r&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))},t.prototype.notifyNext=function(){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(i.Ds),c=r(17865),u=r(1152);function l(e,t){return void 0===t&&(t=c.P),s((function(){return(0,u.H)(e,t)}))}function h(e){return function(t){return t.lift(new d(e))}}var d=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new f(e,this.closingNotifier))},e}(),f=function(e){function t(t,r){var n=e.call(this,t)||this;return n.buffer=[],n.add((0,i.ft)(r,new i.IY(n))),n}return n.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(){var e=this.buffer;this.buffer=[],this.destination.next(e)},t}(i.Ds),p=r(82817);function y(e,t){return void 0===t&&(t=null),function(r){return r.lift(new g(e,t))}}var g=function(){function e(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?m:b}return e.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),b=function(e){function t(t,r){var n=e.call(this,t)||this;return n.bufferSize=r,n.buffer=[],n}return n.__extends(t,e),t.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},t}(p.L),m=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.bufferSize=r,i.startBufferEvery=n,i.buffers=[],i.count=0,i}return n.__extends(t,e),t.prototype._next=function(e){var t=this,r=t.bufferSize,n=t.startBufferEvery,i=t.buffers,s=t.count;this.count++,s%n==0&&i.push([]);for(var o=i.length;o--;){var a=i[o];a.push(e),a.length===r&&(i.splice(o,1),this.destination.next(a))}},t.prototype._complete=function(){for(var t=this.buffers,r=this.destination;t.length>0;){var n=t.shift();n.length>0&&r.next(n)}e.prototype._complete.call(this)},t}(p.L),v=r(63857);function _(e){var t=arguments.length,r=c.P;(0,v.K)(arguments[arguments.length-1])&&(r=arguments[arguments.length-1],t--);var n=null;t>=2&&(n=arguments[1]);var i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new w(e,n,i,r))}}var w=function(){function e(e,t,r,n){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=r,this.scheduler=n}return e.prototype.call=function(e,t){return t.subscribe(new S(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),E=function(){return function(){this.buffer=[]}}(),S=function(e){function t(t,r,n,i,s){var o=e.call(this,t)||this;o.bufferTimeSpan=r,o.bufferCreationInterval=n,o.maxBufferSize=i,o.scheduler=s,o.contexts=[];var a=o.openContext();if(o.timespanOnly=null==n||n<0,o.timespanOnly){var c={subscriber:o,context:a,bufferTimeSpan:r};o.add(a.closeAction=s.schedule(x,r,c))}else{var u={subscriber:o,context:a},l={bufferTimeSpan:r,bufferCreationInterval:n,subscriber:o,scheduler:s};o.add(a.closeAction=s.schedule(C,r,u)),o.add(s.schedule(k,n,l))}return o}return n.__extends(t,e),t.prototype._next=function(e){for(var t,r=this.contexts,n=r.length,i=0;i0;){var n=t.shift();r.next(n.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var r=this.bufferTimeSpan,n={subscriber:this,context:e,bufferTimeSpan:r};this.add(e.closeAction=this.scheduler.schedule(x,r,n))}},t.prototype.openContext=function(){var e=new E;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(p.L);function x(e){var t=e.subscriber,r=e.context;r&&t.closeContext(r),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function k(e){var t=e.bufferCreationInterval,r=e.bufferTimeSpan,n=e.subscriber,i=e.scheduler,s=n.openContext();n.closed||(n.add(s.closeAction=i.schedule(C,r,{subscriber:n,context:s})),this.schedule(e,t))}function C(e){var t=e.subscriber,r=e.context;t.closeContext(r)}var I=r(34292),R=r(66065),A=r(41606);function M(e,t){return function(r){return r.lift(new N(e,t))}}var N=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new O(e,this.openings,this.closingSelector))},e}(),O=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.closingSelector=n,i.contexts=[],i.add((0,R.D)(i,r)),i}return n.__extends(t,e),t.prototype._next=function(e){for(var t=this.contexts,r=t.length,n=0;n0;){var n=r.shift();n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var r=t.shift();this.destination.next(r.buffer),r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(r){this._error(r)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var r=e.buffer,n=e.subscription;this.destination.next(r),t.splice(t.indexOf(e),1),this.remove(n),n.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,r=new I.w,n={buffer:[],subscription:r};t.push(n);var i=(0,R.D)(this,e,n);!i||i.closed?this.closeBuffer(n):(i.context=n,this.add(i),r.add(i))},t}(A.L);function T(e){return function(t){return t.lift(new j(e))}}var j=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new L(e,this.closingSelector))},e}(),L=function(e){function t(t,r){var n=e.call(this,t)||this;return n.closingSelector=r,n.subscribing=!1,n.openBuffer(),n}return n.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},t.prototype.notifyNext=function(){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var t,r=this.buffer;this.buffer&&this.destination.next(r),this.buffer=[];try{t=(0,this.closingSelector)()}catch(n){return this.error(n)}e=new I.w,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add((0,i.ft)(t,new i.IY(this))),this.subscribing=!1},t}(i.Ds);function P(e){return function(t){var r=new D(e),n=t.lift(r);return r.caught=n}}var D=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new B(e,this.selector,this.caught))},e}(),B=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.selector=r,i.caught=n,i}return n.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var r=void 0;try{r=this.selector(t,this.caught)}catch(o){return void e.prototype.error.call(this,o)}this._unsubscribeAndRecycle();var n=new i.IY(this);this.add(n);var s=(0,i.ft)(r,n);s!==n&&this.add(s)}},t}(i.Ds),F=r(47631);function U(e){return function(t){return t.lift(new F.Ms(e))}}var $=r(28211),z=r(43410);function V(){for(var e=[],t=0;t0&&r[0].time-n.now()<=0;)r.shift().notification.observe(i);if(r.length>0){var s=Math.max(0,r[0].time-n.now());this.schedule(e,s)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,r=new pe(t.now()+this.delay,e);this.queue.push(r),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(le.P.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(le.P.createComplete()),this.unsubscribe()},t}(p.L),pe=function(){return function(e,t){this.time=e,this.notification=t}}(),ye=r(22900);function ge(e,t){return t?function(r){return new ve(r,t).lift(new be(e))}:function(t){return t.lift(new be(e))}}var be=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new me(e,this.delayDurationSelector))},e}(),me=function(e){function t(t,r){var n=e.call(this,t)||this;return n.delayDurationSelector=r,n.completed=!1,n.delayNotifierSubscriptions=[],n.index=0,n}return n.__extends(t,e),t.prototype.notifyNext=function(e,t,r,n,i){this.destination.next(e),this.removeSubscription(i),this.tryComplete()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},t.prototype._next=function(e){var t=this.index++;try{var r=this.delayDurationSelector(e,t);r&&this.tryDelay(r,e)}catch(n){this.destination.error(n)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},t.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return-1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},t.prototype.tryDelay=function(e,t){var r=(0,R.D)(this,e,t);r&&!r.closed&&(this.destination.add(r),this.delayNotifierSubscriptions.push(r))},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(A.L),ve=function(e){function t(t,r){var n=e.call(this)||this;return n.source=t,n.subscriptionDelay=r,n}return n.__extends(t,e),t.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new _e(e,this.source))},t}(ye.y),_e=function(e){function t(t,r){var n=e.call(this)||this;return n.parent=t,n.source=r,n.sourceSubscribed=!1,n}return n.__extends(t,e),t.prototype._next=function(e){this.subscribeToSource()},t.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},t.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(p.L);function we(){return function(e){return e.lift(new Ee)}}var Ee=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new Se(e))},e}(),Se=function(e){function t(t){return e.call(this,t)||this}return n.__extends(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(p.L);function xe(e,t){return function(r){return r.lift(new ke(e,t))}}var ke=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new Ce(e,this.keySelector,this.flushes))},e}(),Ce=function(e){function t(t,r,n){var s=e.call(this,t)||this;return s.keySelector=r,s.values=new Set,n&&s.add((0,i.ft)(n,new i.IY(s))),s}return n.__extends(t,e),t.prototype.notifyNext=function(){this.values.clear()},t.prototype.notifyError=function(e){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},t.prototype._useKeySelector=function(e){var t,r=this.destination;try{t=this.keySelector(e)}catch(n){return void r.error(n)}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var r=this.values;r.has(e)||(r.add(e),this.destination.next(t))},t}(i.Ds);function Ie(e,t){return function(r){return r.lift(new Re(e,t))}}var Re=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new Ae(e,this.compare,this.keySelector))},e}(),Ae=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.keySelector=n,i.hasKey=!1,"function"==typeof r&&(i.compare=r),i}return n.__extends(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t;try{var r=this.keySelector;t=r?r(e):e}catch(i){return this.destination.error(i)}var n=!1;if(this.hasKey)try{n=(0,this.compare)(this.key,t)}catch(i){return this.destination.error(i)}else this.hasKey=!0;n||(this.key=t,this.destination.next(e))},t}(p.L);function Me(e,t){return Ie((function(r,n){return t?t(r[e],n[e]):r[e]===n[e]}))}var Ne=r(35843),Oe=r(36519),Te=r(27238);function je(e){return void 0===e&&(e=De),function(t){return t.lift(new Le(e))}}var Le=function(){function e(e){this.errorFactory=e}return e.prototype.call=function(e,t){return t.subscribe(new Pe(e,this.errorFactory))},e}(),Pe=function(e){function t(t,r){var n=e.call(this,t)||this;return n.errorFactory=r,n.hasValue=!1,n}return n.__extends(t,e),t.prototype._next=function(e){this.hasValue=!0,this.destination.next(e)},t.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var e=void 0;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)},t}(p.L);function De(){return new Te.K}var Be=r(94109);function Fe(e){return function(t){return 0===e?(0,Be.c)():t.lift(new Ue(e))}}var Ue=function(){function e(e){if(this.total=e,this.total<0)throw new Ne.W}return e.prototype.call=function(e,t){return t.subscribe(new $e(e,this.total))},e}(),$e=function(e){function t(t,r){var n=e.call(this,t)||this;return n.total=r,n.count=0,n}return n.__extends(t,e),t.prototype._next=function(e){var t=this.total,r=++this.count;r<=t&&(this.destination.next(e),r===t&&(this.destination.complete(),this.unsubscribe()))},t}(p.L);function ze(e,t){if(e<0)throw new Ne.W;var r=arguments.length>=2;return function(n){return n.pipe((0,Oe.h)((function(t,r){return r===e})),Fe(1),r?oe(t):je((function(){return new Ne.W})))}}var Ve=r(9401);function He(){for(var e=[],t=0;t0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(i.Ds);function it(e){return function(t){return t.lift(new st(e))}}var st=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new ot(e,this.callback))},e}(),ot=function(e){function t(t,r){var n=e.call(this,t)||this;return n.add(new I.w(r)),n}return n.__extends(t,e),t}(p.L);function at(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(r){return r.lift(new ct(e,r,!1,t))}}var ct=function(){function e(e,t,r,n){this.predicate=e,this.source=t,this.yieldIndex=r,this.thisArg=n}return e.prototype.call=function(e,t){return t.subscribe(new ut(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),ut=function(e){function t(t,r,n,i,s){var o=e.call(this,t)||this;return o.predicate=r,o.source=n,o.yieldIndex=i,o.thisArg=s,o.index=0,o}return n.__extends(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},t.prototype._next=function(e){var t=this.predicate,r=this.thisArg,n=this.index++;try{t.call(r||this,e,n,this.source)&&this.notifyComplete(this.yieldIndex?n:e)}catch(i){this.destination.error(i)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(p.L);function lt(e,t){return function(r){return r.lift(new ct(e,r,!0,t))}}var ht=r(95478);function dt(e,t){var r=arguments.length>=2;return function(n){return n.pipe(e?(0,Oe.h)((function(t,r){return e(t,r,n)})):ht.y,Fe(1),r?oe(t):je((function(){return new Te.K})))}}var ft=r(98527);function pt(){return function(e){return e.lift(new yt)}}var yt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new gt(e))},e}(),gt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n.__extends(t,e),t.prototype._next=function(e){},t}(p.L);function bt(){return function(e){return e.lift(new mt)}}var mt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new vt(e))},e}(),vt=function(e){function t(t){return e.call(this,t)||this}return n.__extends(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(p.L);function _t(e){return function(t){return 0===e?(0,Be.c)():t.lift(new wt(e))}}var wt=function(){function e(e){if(this.total=e,this.total<0)throw new Ne.W}return e.prototype.call=function(e,t){return t.subscribe(new Et(e,this.total))},e}(),Et=function(e){function t(t,r){var n=e.call(this,t)||this;return n.total=r,n.ring=new Array,n.count=0,n}return n.__extends(t,e),t.prototype._next=function(e){var t=this.ring,r=this.total,n=this.count++;t.length0)for(var r=this.count>=this.total?this.total:this.count,n=this.ring,i=0;i=2;return function(n){return n.pipe(e?(0,Oe.h)((function(t,r){return e(t,r,n)})):ht.y,_t(1),r?oe(t):je((function(){return new Te.K})))}}function xt(e){return function(t){return t.lift(new kt(e))}}var kt=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new Ct(e,this.value))},e}(),Ct=function(e){function t(t,r){var n=e.call(this,t)||this;return n.value=r,n}return n.__extends(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(p.L);function It(){return function(e){return e.lift(new Rt)}}var Rt=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new At(e))},e}(),At=function(e){function t(t){return e.call(this,t)||this}return n.__extends(t,e),t.prototype._next=function(e){this.destination.next(le.P.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(le.P.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(le.P.createComplete()),e.complete()},t}(p.L);function Mt(e,t){var r=!1;return arguments.length>=2&&(r=!0),function(n){return n.lift(new Nt(e,t,r))}}var Nt=function(){function e(e,t,r){void 0===r&&(r=!1),this.accumulator=e,this.seed=t,this.hasSeed=r}return e.prototype.call=function(e,t){return t.subscribe(new Ot(e,this.accumulator,this.seed,this.hasSeed))},e}(),Ot=function(e){function t(t,r,n,i){var s=e.call(this,t)||this;return s.accumulator=r,s._seed=n,s.hasSeed=i,s.index=0,s}return n.__extends(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,r=this.index++;try{t=this.accumulator(this.seed,e,r)}catch(n){this.destination.error(n)}this.seed=t,this.destination.next(t)},t}(p.L),Tt=r(1030);function jt(e,t){return arguments.length>=2?function(r){return(0,Tt.z)(Mt(e,t),_t(1),oe(t))(r)}:function(t){return(0,Tt.z)(Mt((function(t,r,n){return e(t,r,n+1)})),_t(1))(t)}}function Lt(e){return jt("function"==typeof e?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t})}var Pt=r(77696);function Dt(){for(var e=[],t=0;t0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(i.Ds);function Vt(e){return jt("function"==typeof e?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e-1&&(this.count=r-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(p.L);function br(e){return function(t){return t.lift(new mr(e))}}var mr=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new vr(e,this.notifier,t))},e}(),vr=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.notifier=r,i.source=n,i.sourceIsBeingSubscribedTo=!0,i}return n.__extends(t,e),t.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},t.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},t.prototype.subscribeToRetries=function(){var t;this.notifications=new ir.xQ;try{t=(0,this.notifier)(this.notifications)}catch(r){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=(0,i.ft)(t,new i.IY(this))},t}(i.Ds);function _r(e){return void 0===e&&(e=-1),function(t){return t.lift(new wr(e,t))}}var wr=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Er(e,this.count,this.source))},e}(),Er=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.count=r,i.source=n,i}return n.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var r=this.source,n=this.count;if(0===n)return e.prototype.error.call(this,t);n>-1&&(this.count=n-1),r.subscribe(this._unsubscribeAndRecycle())}},t}(p.L);function Sr(e){return function(t){return t.lift(new xr(e,t))}}var xr=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new kr(e,this.notifier,this.source))},e}(),kr=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.notifier=r,i.source=n,i}return n.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var r=this.errors,n=this.retries,s=this.retriesSubscription;if(n)this.errors=void 0,this.retriesSubscription=void 0;else{r=new ir.xQ;try{n=(0,this.notifier)(r)}catch(o){return e.prototype.error.call(this,o)}s=(0,i.ft)(n,new i.IY(this))}this._unsubscribeAndRecycle(),this.errors=r,this.retries=n,this.retriesSubscription=s,r.next(t)}},t.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype.notifyNext=function(){var e=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)},t}(i.Ds),Cr=r(4279);function Ir(e){return function(t){return t.lift(new Rr(e))}}var Rr=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var r=new Ar(e),n=t.subscribe(r);return n.add((0,i.ft)(this.notifier,new i.IY(r))),n},e}(),Ar=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return n.__extends(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(i.Ds);function Mr(e,t){return void 0===t&&(t=c.P),function(r){return r.lift(new Nr(e,t))}}var Nr=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new Or(e,this.period,this.scheduler))},e}(),Or=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.period=r,i.scheduler=n,i.hasValue=!1,i.add(n.schedule(Tr,r,{subscriber:i,period:r})),i}return n.__extends(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(p.L);function Tr(e){var t=e.subscriber,r=e.period;t.notifyNext(),this.schedule(e,r)}function jr(e,t){return function(r){return r.lift(new Lr(e,t))}}var Lr=function(){function e(e,t){this.compareTo=e,this.comparator=t}return e.prototype.call=function(e,t){return t.subscribe(new Pr(e,this.compareTo,this.comparator))},e}(),Pr=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.compareTo=r,i.comparator=n,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(r.subscribe(new Dr(t,i))),i}return n.__extends(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},t.prototype.checkValues=function(){for(var e=this,t=e._a,r=e._b,n=e.comparator;t.length>0&&r.length>0;){var i=t.shift(),s=r.shift(),o=!1;try{o=n?n(i,s):i===s}catch(a){this.destination.error(a)}o||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t}(p.L),Dr=function(e){function t(t,r){var n=e.call(this,t)||this;return n.parent=r,n}return n.__extends(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},t}(p.L);function Br(){return new ir.xQ}function Fr(){return function(e){return(0,Cr.x)()(Wt(Br)(e))}}function Ur(e,t,r){var n;return n=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:r},function(e){return e.lift(function(e){var t,r,n=e.bufferSize,i=void 0===n?Number.POSITIVE_INFINITY:n,s=e.windowTime,o=void 0===s?Number.POSITIVE_INFINITY:s,a=e.refCount,c=e.scheduler,u=0,l=!1,h=!1;return function(e){var n;u++,!t||l?(l=!1,t=new lr.t(i,o,c),n=t.subscribe(this),r=e.subscribe({next:function(e){t.next(e)},error:function(e){l=!0,t.error(e)},complete:function(){h=!0,r=void 0,t.complete()}}),h&&(r=void 0)):n=t.subscribe(this),this.add((function(){u--,n.unsubscribe(),n=void 0,r&&!h&&a&&0===u&&(r.unsubscribe(),r=void 0,t=void 0)}))}}(n))}}function $r(e){return function(t){return t.lift(new zr(e,t))}}var zr=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new Vr(e,this.predicate,this.source))},e}(),Vr=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.predicate=r,i.source=n,i.seenValue=!1,i.index=0,i}return n.__extends(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(r){this.destination.error(r)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new Te.K)},t}(p.L);function Hr(e){return function(t){return t.lift(new Wr(e))}}var Wr=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new qr(e,this.total))},e}(),qr=function(e){function t(t,r){var n=e.call(this,t)||this;return n.total=r,n.count=0,n}return n.__extends(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(p.L);function Jr(e){return function(t){return t.lift(new Gr(e))}}var Gr=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new Ne.W}return e.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new p.L(e)):t.subscribe(new Zr(e,this._skipCount))},e}(),Zr=function(e){function t(t,r){var n=e.call(this,t)||this;return n._skipCount=r,n._count=0,n._ring=new Array(r),n}return n.__extends(t,e),t.prototype._next=function(e){var t=this._skipCount,r=this._count++;if(r0?this.startWindowEvery:this.windowSize,r=this.destination,n=this.windowSize,i=this.windows,s=i.length,o=0;o=0&&a%t==0&&!this.closed&&i.shift().complete(),++this.count%t==0&&!this.closed){var c=new ir.xQ;i.push(c),r.next(c)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(p.L);function Kn(e){var t=c.P,r=null,n=Number.POSITIVE_INFINITY;return(0,v.K)(arguments[3])&&(t=arguments[3]),(0,v.K)(arguments[2])?t=arguments[2]:(0,sn.k)(arguments[2])&&(n=Number(arguments[2])),(0,v.K)(arguments[1])?t=arguments[1]:(0,sn.k)(arguments[1])&&(r=Number(arguments[1])),function(i){return i.lift(new Xn(e,r,n,t))}}var Xn=function(){function e(e,t,r,n){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=r,this.scheduler=n}return e.prototype.call=function(e,t){return t.subscribe(new ti(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),ei=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return n.__extends(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(ir.xQ),ti=function(e){function t(t,r,n,i,s){var o=e.call(this,t)||this;o.destination=t,o.windowTimeSpan=r,o.windowCreationInterval=n,o.maxWindowSize=i,o.scheduler=s,o.windows=[];var a=o.openWindow();if(null!==n&&n>=0){var c={subscriber:o,window:a,context:null},u={windowTimeSpan:r,windowCreationInterval:n,subscriber:o,scheduler:s};o.add(s.schedule(ii,r,c)),o.add(s.schedule(ni,n,u))}else{var l={subscriber:o,window:a,windowTimeSpan:r};o.add(s.schedule(ri,r,l))}return o}return n.__extends(t,e),t.prototype._next=function(e){for(var t=this.windows,r=t.length,n=0;n=this.maxWindowSize&&this.closeWindow(i))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new ei;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(p.L);function ri(e){var t=e.subscriber,r=e.windowTimeSpan,n=e.window;n&&t.closeWindow(n),e.window=t.openWindow(),this.schedule(e,r)}function ni(e){var t=e.windowTimeSpan,r=e.subscriber,n=e.scheduler,i=e.windowCreationInterval,s=r.openWindow(),o=this,a={action:o,subscription:null},c={subscriber:r,window:s,context:a};a.subscription=n.schedule(ii,t,c),o.add(a.subscription),o.schedule(e,i)}function ii(e){var t=e.subscriber,r=e.window,n=e.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),t.closeWindow(r)}function si(e,t){return function(r){return r.lift(new oi(e,t))}}var oi=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new ai(e,this.openings,this.closingSelector))},e}(),ai=function(e){function t(t,r,n){var i=e.call(this,t)||this;return i.openings=r,i.closingSelector=n,i.contexts=[],i.add(i.openSubscription=(0,R.D)(i,r,r)),i}return n.__extends(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var r=t.length,n=0;n0){var i=n.indexOf(r);-1!==i&&n.splice(i,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(r){return void this.destination.error(r)}this.destination.next(t)},t}(A.L),pi=r(56030);function yi(){for(var e=[],t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(71715);function i(e,t,r){try{Reflect.apply(e,t,r)}catch(n){setTimeout((()=>{throw n}))}}class s extends n.EventEmitter{emit(e,...t){let r="error"===e;const n=this._events;if(void 0!==n)r=r&&void 0===n.error;else if(!r)return!1;if(r){let e;if(t.length>0&&([e]=t),e instanceof Error)throw e;const r=new Error("Unhandled error."+(e?` (${e.message})`:""));throw r.context=e,r}const s=n[e];if(void 0===s)return!1;if("function"==typeof s)i(s,this,t);else{const e=s.length,r=function(e){const t=e.length,r=new Array(t);for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertExhaustive=t.assertStruct=t.assert=t.AssertionError=void 0;const n=r(88917);function i(e,t){return r=e,Boolean("string"==typeof(null===(i=null===(n=null==r?void 0:r.prototype)||void 0===n?void 0:n.constructor)||void 0===i?void 0:i.name))?new e({message:t}):e({message:t});var r,n,i}class s extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}t.AssertionError=s,t.assert=function(e,t="Assertion failed.",r=s){if(!e){if(t instanceof Error)throw t;throw i(r,t)}},t.assertStruct=function(e,t,r="Assertion failed",o=s){try{(0,n.assert)(e,t)}catch(a){throw i(o,`${r}: ${function(e){const t=function(e){return"object"==typeof e&&null!==e&&"message"in e}(e)?e.message:String(e);return t.endsWith(".")?t.slice(0,-1):t}(a)}.`)}},t.assertExhaustive=function(e){throw new Error("Invalid branch reached. Should be detected during compilation.")}},19661:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64=void 0;const n=r(88917),i=r(28800);t.base64=(e,t={})=>{var r,s;const o=null!==(r=t.paddingRequired)&&void 0!==r&&r,a=null!==(s=t.characterSet)&&void 0!==s?s:"base64";let c,u;return"base64"===a?c=String.raw`[A-Za-z0-9+\/]`:((0,i.assert)("base64url"===a),c=String.raw`[-_A-Za-z0-9]`),u=o?new RegExp(`^(?:${c}{4})*(?:${c}{3}=|${c}{2}==)?$`,"u"):new RegExp(`^(?:${c}{4})*(?:${c}{2,3}|${c}{3}=|${c}{2}==)?$`,"u"),(0,n.pattern)(e,u)}},9461:(e,t,r)=>{"use strict";var n=r(75291).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.createDataView=t.concatBytes=t.valueToBytes=t.stringToBytes=t.numberToBytes=t.signedBigIntToBytes=t.bigIntToBytes=t.hexToBytes=t.bytesToString=t.bytesToNumber=t.bytesToSignedBigInt=t.bytesToBigInt=t.bytesToHex=t.assertIsBytes=t.isBytes=void 0;const i=r(28800),s=r(50035);const o=function(){const e=[];return()=>{if(0===e.length)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}();function a(e){return e instanceof Uint8Array}function c(e){(0,i.assert)(a(e),"Value must be a Uint8Array.")}function u(e){if(c(e),0===e.length)return"0x";const t=o(),r=new Array(e.length);for(let n=0;n=BigInt(0),"Value must be a non-negative bigint.");return h(e.toString(16))}function f(e){(0,i.assert)("number"==typeof e,"Value must be a number."),(0,i.assert)(e>=0,"Value must be a non-negative number."),(0,i.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead.");return h(e.toString(16))}function p(e){return(0,i.assert)("string"==typeof e,"Value must be a string."),(new TextEncoder).encode(e)}function y(e){if("bigint"==typeof e)return d(e);if("number"==typeof e)return f(e);if("string"==typeof e)return e.startsWith("0x")?h(e):p(e);if(a(e))return e;throw new TypeError(`Unsupported value type: "${typeof e}".`)}t.isBytes=a,t.assertIsBytes=c,t.bytesToHex=u,t.bytesToBigInt=l,t.bytesToSignedBigInt=function(e){c(e);let t=BigInt(0);for(const r of e)t=(t<0,"Byte length must be greater than 0."),(0,i.assert)(function(e,t){(0,i.assert)(t>0);const r=e>>BigInt(31);return!((~e&r)+(e&~r)>>BigInt(8*t-1))}(e,t),"Byte length is too small to represent the given value.");let r=e;const n=new Uint8Array(t);for(let i=0;i>=BigInt(8);return n.reverse()},t.numberToBytes=f,t.stringToBytes=p,t.valueToBytes=y,t.concatBytes=function(e){const t=new Array(e.length);let r=0;for(let i=0;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChecksumStruct=void 0;const n=r(88917),i=r(19661);t.ChecksumStruct=(0,n.size)((0,i.base64)((0,n.string)(),{paddingRequired:!0}),44,44)},30353:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHex=t.createBytes=t.createBigInt=t.createNumber=void 0;const n=r(88917),i=r(28800),s=r(9461),o=r(50035),a=(0,n.union)([(0,n.number)(),(0,n.bigint)(),(0,n.string)(),o.StrictHexStruct]),c=(0,n.coerce)((0,n.number)(),a,Number),u=(0,n.coerce)((0,n.bigint)(),a,BigInt),l=((0,n.union)([o.StrictHexStruct,(0,n.instance)(Uint8Array)]),(0,n.coerce)((0,n.instance)(Uint8Array),(0,n.union)([o.StrictHexStruct]),s.hexToBytes)),h=(0,n.coerce)(o.StrictHexStruct,(0,n.instance)(Uint8Array),s.bytesToHex);t.createNumber=function(e){try{const t=(0,n.create)(e,c);return(0,i.assert)(Number.isFinite(t),`Expected a number-like value, got "${e}".`),t}catch(t){if(t instanceof n.StructError)throw new Error(`Expected a number-like value, got "${e}".`);throw t}},t.createBigInt=function(e){try{return(0,n.create)(e,u)}catch(t){if(t instanceof n.StructError)throw new Error(`Expected a number-like value, got "${String(t.value)}".`);throw t}},t.createBytes=function(e){if("string"==typeof e&&"0x"===e.toLowerCase())return new Uint8Array;try{return(0,n.create)(e,l)}catch(t){if(t instanceof n.StructError)throw new Error(`Expected a bytes-like value, got "${String(t.value)}".`);throw t}},t.createHex=function(e){if(e instanceof Uint8Array&&0===e.length||"string"==typeof e&&"0x"===e.toLowerCase())return"0x";try{return(0,n.create)(e,h)}catch(t){if(t instanceof n.StructError)throw new Error(`Expected a bytes-like value, got "${String(t.value)}".`);throw t}}},88067:function(e,t){"use strict";var r,n,i=this&&this.__classPrivateFieldSet||function(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r},s=this&&this.__classPrivateFieldGet||function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.FrozenSet=t.FrozenMap=void 0;class o{constructor(e){r.set(this,void 0),i(this,r,new Map(e),"f"),Object.freeze(this)}get size(){return s(this,r,"f").size}[(r=new WeakMap,Symbol.iterator)](){return s(this,r,"f")[Symbol.iterator]()}entries(){return s(this,r,"f").entries()}forEach(e,t){return s(this,r,"f").forEach(((r,n,i)=>e.call(t,r,n,this)))}get(e){return s(this,r,"f").get(e)}has(e){return s(this,r,"f").has(e)}keys(){return s(this,r,"f").keys()}values(){return s(this,r,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map((([e,t])=>`${String(e)} => ${String(t)}`)).join(", ")} `:""}}`}}t.FrozenMap=o;class a{constructor(e){n.set(this,void 0),i(this,n,new Set(e),"f"),Object.freeze(this)}get size(){return s(this,n,"f").size}[(n=new WeakMap,Symbol.iterator)](){return s(this,n,"f")[Symbol.iterator]()}entries(){return s(this,n,"f").entries()}forEach(e,t){return s(this,n,"f").forEach(((r,n,i)=>e.call(t,r,n,this)))}has(e){return s(this,n,"f").has(e)}keys(){return s(this,n,"f").keys()}values(){return s(this,n,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map((e=>String(e))).join(", ")} `:""}}`}}t.FrozenSet=a,Object.freeze(o),Object.freeze(o.prototype),Object.freeze(a),Object.freeze(a.prototype)},50035:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.remove0x=t.add0x=t.assertIsStrictHexString=t.assertIsHexString=t.isStrictHexString=t.isHexString=t.StrictHexStruct=t.HexStruct=void 0;const n=r(88917),i=r(28800);function s(e){return(0,n.is)(e,t.HexStruct)}function o(e){return(0,n.is)(e,t.StrictHexStruct)}t.HexStruct=(0,n.pattern)((0,n.string)(),/^(?:0x)?[0-9a-f]+$/iu),t.StrictHexStruct=(0,n.pattern)((0,n.string)(),/^0x[0-9a-f]+$/iu),t.isHexString=s,t.isStrictHexString=o,t.assertIsHexString=function(e){(0,i.assert)(s(e),"Value must be a hexadecimal string.")},t.assertIsStrictHexString=function(e){(0,i.assert)(o(e),'Value must be a hexadecimal string, starting with "0x".')},t.add0x=function(e){return e.startsWith("0x")?e:e.startsWith("0X")?`0x${e.substring(2)}`:`0x${e}`},t.remove0x=function(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):e}},31959:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(28800),t),i(r(19661),t),i(r(9461),t),i(r(95295),t),i(r(30353),t),i(r(88067),t),i(r(50035),t),i(r(15435),t),i(r(12562),t),i(r(32315),t),i(r(92662),t),i(r(22476),t),i(r(34228),t),i(r(38940),t)},15435:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateJsonAndGetSize=t.getJsonRpcIdValidator=t.assertIsJsonRpcError=t.isJsonRpcError=t.assertIsJsonRpcFailure=t.isJsonRpcFailure=t.assertIsJsonRpcSuccess=t.isJsonRpcSuccess=t.assertIsJsonRpcResponse=t.isJsonRpcResponse=t.assertIsPendingJsonRpcResponse=t.isPendingJsonRpcResponse=t.JsonRpcResponseStruct=t.JsonRpcFailureStruct=t.JsonRpcSuccessStruct=t.PendingJsonRpcResponseStruct=t.assertIsJsonRpcRequest=t.isJsonRpcRequest=t.assertIsJsonRpcNotification=t.isJsonRpcNotification=t.JsonRpcNotificationStruct=t.JsonRpcRequestStruct=t.JsonRpcParamsStruct=t.JsonRpcErrorStruct=t.JsonRpcIdStruct=t.JsonRpcVersionStruct=t.jsonrpc2=t.isValidJson=t.JsonStruct=void 0;const n=r(88917),i=r(28800),s=r(32315);function o(e,t=!1){const r=new Set;return function e(t,n){if(void 0===t)return[!1,0];if(null===t)return[!0,n?0:s.JsonSize.Null];const i=typeof t;try{if("function"===i)return[!1,0];if("string"===i||t instanceof String)return[!0,n?0:(0,s.calculateStringSize)(t)+2*s.JsonSize.Quote];if("boolean"===i||t instanceof Boolean)return n?[!0,0]:[!0,1==t?s.JsonSize.True:s.JsonSize.False];if("number"===i||t instanceof Number)return n?[!0,0]:[!0,(0,s.calculateNumberSize)(t)];if(t instanceof Date)return n?[!0,0]:[!0,isNaN(t.getDate())?s.JsonSize.Null:s.JsonSize.Date+2*s.JsonSize.Quote]}catch(o){return[!1,0]}if(!(0,s.isPlainObject)(t)&&!Array.isArray(t))return[!1,0];if(r.has(t))return[!1,0];r.add(t);try{return[!0,Object.entries(t).reduce(((i,[o,a],c,u)=>{let[l,h]=e(a,n);if(!l)throw new Error("JSON validation did not pass. Validation process stopped.");if(r.delete(t),n)return 0;return i+(Array.isArray(t)?0:o.length+s.JsonSize.Comma+2*s.JsonSize.Colon)+h+(c{const[t]=o(e,!0);return!!t||"Expected a valid JSON-serializable value"})),t.isValidJson=function(e){return(0,n.is)(e,t.JsonStruct)},t.jsonrpc2="2.0",t.JsonRpcVersionStruct=(0,n.literal)(t.jsonrpc2),t.JsonRpcIdStruct=(0,n.nullable)((0,n.union)([(0,n.number)(),(0,n.string)()])),t.JsonRpcErrorStruct=(0,n.object)({code:(0,n.integer)(),message:(0,n.string)(),data:(0,n.optional)(t.JsonStruct),stack:(0,n.optional)((0,n.string)())}),t.JsonRpcParamsStruct=(0,n.optional)((0,n.union)([(0,n.record)((0,n.string)(),t.JsonStruct),(0,n.array)(t.JsonStruct)])),t.JsonRpcRequestStruct=(0,n.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,method:(0,n.string)(),params:t.JsonRpcParamsStruct}),t.JsonRpcNotificationStruct=(0,n.omit)(t.JsonRpcRequestStruct,["id"]),t.isJsonRpcNotification=function(e){return(0,n.is)(e,t.JsonRpcNotificationStruct)},t.assertIsJsonRpcNotification=function(e,r){(0,i.assertStruct)(e,t.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",r)},t.isJsonRpcRequest=function(e){return(0,n.is)(e,t.JsonRpcRequestStruct)},t.assertIsJsonRpcRequest=function(e,r){(0,i.assertStruct)(e,t.JsonRpcRequestStruct,"Invalid JSON-RPC request",r)},t.PendingJsonRpcResponseStruct=(0,n.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,result:(0,n.optional)((0,n.unknown)()),error:(0,n.optional)(t.JsonRpcErrorStruct)}),t.JsonRpcSuccessStruct=(0,n.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,result:t.JsonStruct}),t.JsonRpcFailureStruct=(0,n.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,error:t.JsonRpcErrorStruct}),t.JsonRpcResponseStruct=(0,n.union)([t.JsonRpcSuccessStruct,t.JsonRpcFailureStruct]),t.isPendingJsonRpcResponse=function(e){return(0,n.is)(e,t.PendingJsonRpcResponseStruct)},t.assertIsPendingJsonRpcResponse=function(e,r){(0,i.assertStruct)(e,t.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",r)},t.isJsonRpcResponse=function(e){return(0,n.is)(e,t.JsonRpcResponseStruct)},t.assertIsJsonRpcResponse=function(e,r){(0,i.assertStruct)(e,t.JsonRpcResponseStruct,"Invalid JSON-RPC response",r)},t.isJsonRpcSuccess=function(e){return(0,n.is)(e,t.JsonRpcSuccessStruct)},t.assertIsJsonRpcSuccess=function(e,r){(0,i.assertStruct)(e,t.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",r)},t.isJsonRpcFailure=function(e){return(0,n.is)(e,t.JsonRpcFailureStruct)},t.assertIsJsonRpcFailure=function(e,r){(0,i.assertStruct)(e,t.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",r)},t.isJsonRpcError=function(e){return(0,n.is)(e,t.JsonRpcErrorStruct)},t.assertIsJsonRpcError=function(e,r){(0,i.assertStruct)(e,t.JsonRpcErrorStruct,"Invalid JSON-RPC error",r)},t.getJsonRpcIdValidator=function(e){const{permitEmptyString:t,permitFractions:r,permitNull:n}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},e);return e=>Boolean("number"==typeof e&&(r||Number.isInteger(e))||"string"==typeof e&&(t||e.length>0)||n&&null===e)},t.validateJsonAndGetSize=o},12562:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.createProjectLogger=void 0;const i=(0,n(r(64447)).default)("metamask");t.createProjectLogger=function(e){return i.extend(e)},t.createModuleLogger=function(e,t){return e.extend(t)}},32315:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.calculateNumberSize=t.calculateStringSize=t.isASCII=t.isPlainObject=t.ESCAPE_CHARACTERS_REGEXP=t.JsonSize=t.hasProperty=t.isObject=t.isNullOrUndefined=t.isNonEmptyArray=void 0,t.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},t.isNullOrUndefined=function(e){return null==e},t.isObject=function(e){return Boolean(e)&&"object"==typeof e&&!Array.isArray(e)};function r(e){return e.charCodeAt(0)<=127}t.hasProperty=(e,t)=>Object.hasOwnProperty.call(e,t),function(e){e[e.Null=4]="Null",e[e.Comma=1]="Comma",e[e.Wrapper=1]="Wrapper",e[e.True=4]="True",e[e.False=5]="False",e[e.Quote=1]="Quote",e[e.Colon=1]="Colon",e[e.Date=24]="Date"}(t.JsonSize||(t.JsonSize={})),t.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu,t.isPlainObject=function(e){if("object"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(t){return!1}},t.isASCII=r,t.calculateStringSize=function(e){var n;return e.split("").reduce(((e,t)=>r(t)?e+1:e+2),0)+(null!==(n=e.match(t.ESCAPE_CHARACTERS_REGEXP))&&void 0!==n?n:[]).length},t.calculateNumberSize=function(e){return e.toString().length}},92662:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBigInt=t.hexToNumber=t.bigIntToHex=t.numberToHex=void 0;const n=r(28800),i=r(50035);t.numberToHex=e=>((0,n.assert)("number"==typeof e,"Value must be a number."),(0,n.assert)(e>=0,"Value must be a non-negative number."),(0,n.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,i.add0x)(e.toString(16)));t.bigIntToHex=e=>((0,n.assert)("bigint"==typeof e,"Value must be a bigint."),(0,n.assert)(e>=0,"Value must be a non-negative bigint."),(0,i.add0x)(e.toString(16)));t.hexToNumber=e=>{(0,i.assertIsHexString)(e);const t=parseInt(e,16);return(0,n.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t};t.hexToBigInt=e=>((0,i.assertIsHexString)(e),BigInt((0,i.add0x)(e)))},22476:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},34228:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.timeSince=t.inMilliseconds=t.Duration=void 0,function(e){e[e.Millisecond=1]="Millisecond",e[e.Second=1e3]="Second",e[e.Minute=6e4]="Minute",e[e.Hour=36e5]="Hour",e[e.Day=864e5]="Day",e[e.Week=6048e5]="Week",e[e.Year=31536e6]="Year"}(t.Duration||(t.Duration={}));const r=(e,t)=>{if(!(e=>Number.isInteger(e)&&e>=0)(e))throw new Error(`"${t}" must be a non-negative integer. Received: "${e}".`)};t.inMilliseconds=function(e,t){return r(e,"count"),e*t},t.timeSince=function(e){return r(e,"timestamp"),Date.now()-e}},38940:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.satisfiesVersionRange=t.gtRange=t.gtVersion=t.assertIsSemVerRange=t.assertIsSemVerVersion=t.isValidSemVerRange=t.isValidSemVerVersion=t.VersionRangeStruct=t.VersionStruct=void 0;const n=r(37229),i=r(88917),s=r(28800);t.VersionStruct=(0,i.refine)((0,i.string)(),"Version",(e=>null!==(0,n.valid)(e)||`Expected SemVer version, got "${e}"`)),t.VersionRangeStruct=(0,i.refine)((0,i.string)(),"Version range",(e=>null!==(0,n.validRange)(e)||`Expected SemVer range, got "${e}"`)),t.isValidSemVerVersion=function(e){return(0,i.is)(e,t.VersionStruct)},t.isValidSemVerRange=function(e){return(0,i.is)(e,t.VersionRangeStruct)},t.assertIsSemVerVersion=function(e){(0,s.assertStruct)(e,t.VersionStruct)},t.assertIsSemVerRange=function(e){(0,s.assertStruct)(e,t.VersionRangeStruct)},t.gtVersion=function(e,t){return(0,n.gt)(e,t)},t.gtRange=function(e,t){return(0,n.gtr)(e,t)},t.satisfiesVersionRange=function(e,t){return(0,n.satisfies)(e,t,{includePrerelease:!0})}},53995:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(26274),i=r(93585),s=function(){function e(){this._semaphore=new i.default(1)}return e.prototype.acquire=function(){return n.__awaiter(this,void 0,void 0,(function(){var e;return n.__generator(this,(function(t){switch(t.label){case 0:return[4,this._semaphore.acquire()];case 1:return e=t.sent(),[2,e[1]]}}))}))},e.prototype.runExclusive=function(e){return this._semaphore.runExclusive((function(){return e()}))},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.release=function(){this._semaphore.release()},e}();t.default=s},93585:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(26274),i=function(){function e(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw new Error("semaphore must be initialized to a positive value");this._value=e}return e.prototype.acquire=function(){var e=this,t=this.isLocked(),r=new Promise((function(t){return e._queue.push(t)}));return t||this._dispatch(),r},e.prototype.runExclusive=function(e){return n.__awaiter(this,void 0,void 0,(function(){var t,r,i;return n.__generator(this,(function(n){switch(n.label){case 0:return[4,this.acquire()];case 1:t=n.sent(),r=t[0],i=t[1],n.label=2;case 2:return n.trys.push([2,,4,5]),[4,e(r)];case 3:return[2,n.sent()];case 4:return i(),[7];case 5:return[2]}}))}))},e.prototype.isLocked=function(){return this._value<=0},e.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},e.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(t){var r=!1;this._currentReleaser=function(){r||(r=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},e}();t.default=i},32304:(e,t,r)=>{"use strict";t.WU=void 0;var n=r(53995);Object.defineProperty(t,"WU",{enumerable:!0,get:function(){return n.default}});var i=r(93585);var s=r(28361)},28361:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withTimeout=void 0;var n=r(26274);t.withTimeout=function(e,t,r){var i=this;return void 0===r&&(r=new Error("timeout")),{acquire:function(){return new Promise((function(s,o){return n.__awaiter(i,void 0,void 0,(function(){var i,a;return n.__generator(this,(function(n){switch(n.label){case 0:return i=!1,setTimeout((function(){i=!0,o(r)}),t),[4,e.acquire()];case 1:return a=n.sent(),i?(Array.isArray(a)?a[1]:a)():s(a),[2]}}))}))}))},runExclusive:function(e){return n.__awaiter(this,void 0,void 0,(function(){var t,r;return n.__generator(this,(function(n){switch(n.label){case 0:t=function(){},n.label=1;case 1:return n.trys.push([1,,7,8]),[4,this.acquire()];case 2:return r=n.sent(),Array.isArray(r)?(t=r[1],[4,e(r[0])]):[3,4];case 3:return[2,n.sent()];case 4:return t=r,[4,e()];case 5:return[2,n.sent()];case 6:return[3,8];case 7:return t(),[7];case 8:return[2]}}))}))},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}},26274:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__assign:()=>s,__asyncDelegator:()=>k,__asyncGenerator:()=>x,__asyncValues:()=>C,__await:()=>S,__awaiter:()=>p,__classPrivateFieldGet:()=>N,__classPrivateFieldIn:()=>T,__classPrivateFieldSet:()=>O,__createBinding:()=>g,__decorate:()=>a,__esDecorate:()=>u,__exportStar:()=>b,__extends:()=>i,__generator:()=>y,__importDefault:()=>M,__importStar:()=>A,__makeTemplateObject:()=>I,__metadata:()=>f,__param:()=>c,__propKey:()=>h,__read:()=>v,__rest:()=>o,__runInitializers:()=>l,__setFunctionName:()=>d,__spread:()=>_,__spreadArray:()=>E,__spreadArrays:()=>w,__values:()=>m});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var s=function(){return s=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;a--)(i=e[a])&&(o=(s<3?i(o):s>3?i(t,r,o):i(t,r))||o);return s>3&&o&&Object.defineProperty(t,r,o),o}function c(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,i,s){function o(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var a,c=n.kind,u="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?n.static?e:e.prototype:null,h=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),d=!1,f=r.length-1;f>=0;f--){var p={};for(var y in n)p[y]="access"===y?{}:n[y];for(var y in n.access)p.access[y]=n.access[y];p.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");s.push(o(e||null))};var g=(0,r[f])("accessor"===c?{get:h.get,set:h.set}:h[u],p);if("accessor"===c){if(void 0===g)continue;if(null===g||"object"!=typeof g)throw new TypeError("Object expected");(a=o(g.get))&&(h.get=a),(a=o(g.set))&&(h.set=a),(a=o(g.init))&&i.push(a)}else(a=o(g))&&("field"===c?i.push(a):h[u]=a)}l&&Object.defineProperty(l,n.name,h),d=!0}function l(e,t,r){for(var n=arguments.length>2,i=0;i0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=s.next()).done;)o.push(n.value)}catch(a){i={error:a}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function _(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(r=i[e](t)).value instanceof S?Promise.resolve(r.value.v).then(c,u):l(s[0][2],r)}catch(n){l(s[0][3],n)}var r}function c(e){a("next",e)}function u(e){a("throw",e)}function l(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function k(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:S(e[n](t)),done:!1}:i?i(t):t}:i}}function C(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=m(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}}function I(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var R=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function A(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&g(t,e,r);return R(t,e),t}function M(e){return e&&e.__esModule?e:{default:e}}function N(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function O(e,t,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}function T(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},49420:(e,t)=>{"use strict";var r;function n(e,t,n){if(!n||typeof n.value!==r.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+t+"> is not a method!");return{configurable:r.boolTrue,get:function(){var e=n.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:r.boolTrue,writable:r.boolTrue}),e}}}Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.typeOfFunction="function",e.boolTrue=!0}(r||(r={})),t.bind=n,t.default=n},19254:(e,t,r)=>{"use strict";var n=r(98399);const i=r(97421),s=r(89540),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function c(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,u.prototype),t}function u(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!u.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|g(e,t);let n=c(r);const i=n.write(e,t);i!==r&&(n=n.slice(0,i));return n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Y(e,Uint8Array)){const t=new Uint8Array(e);return p(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(Y(e,ArrayBuffer)||e&&Y(e.buffer,ArrayBuffer))return p(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(Y(e,SharedArrayBuffer)||e&&Y(e.buffer,SharedArrayBuffer)))return p(e,t,r);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return u.from(n,t,r);const i=function(e){if(u.isBuffer(e)){const t=0|y(e.length),r=c(t);return 0===r.length||e.copy(r,0,0,t),r}if(void 0!==e.length)return"number"!=typeof e.length||Q(e.length)?c(0):f(e);if("Buffer"===e.type&&Array.isArray(e.data))return f(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return u.from(e[Symbol.toPrimitive]("string"),t,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function h(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 d(e){return h(e),c(e<0?0:0|y(e))}function f(e){const t=e.length<0?0:0|y(e.length),r=c(t);for(let n=0;n=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function g(e,t){if(u.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Y(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 r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return G(e).length;default:if(i)return n?-1:J(e).length;t=(""+t).toLowerCase(),i=!0}}function b(e,t,r){let n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return A(this,t,r);case"latin1":case"binary":return M(this,t,r);case"base64":return C(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function m(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function v(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),Q(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:_(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):_(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function _(e,t,r,n,i){let s,o=1,a=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;o=2,a/=2,c/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){let n=-1;for(s=r;sa&&(r=a-c),s=r;s>=0;s--){let r=!0;for(let n=0;ni&&(n=i):n=i;const s=t.length;let o;for(n>s/2&&(n=s/2),o=0;o>8,i=r%256,s.push(i),s.push(n);return s}(t,e.length-r),e,r,n)}function C(e,t,r){return 0===t&&r===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,r))}function I(e,t,r){r=Math.min(e.length,r);const n=[];let i=t;for(;i239?4:t>223?3:t>191?2:1;if(i+o<=r){let r,n,a,c;switch(o){case 1:t<128&&(s=t);break;case 2:r=e[i+1],128==(192&r)&&(c=(31&t)<<6|63&r,c>127&&(s=c));break;case 3:r=e[i+1],n=e[i+2],128==(192&r)&&128==(192&n)&&(c=(15&t)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(s=c));break;case 4:r=e[i+1],n=e[i+2],a=e[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&a,c>65535&&c<1114112&&(s=c))}}null===s?(s=65533,o=1):s>65535&&(s-=65536,n.push(s>>>10&1023|55296),s=56320|1023&s),n.push(s),i+=o}return function(e){const t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);let r="",n=0;for(;nn.length?(u.isBuffer(t)||(t=u.from(t)),t.copy(n,i)):Uint8Array.prototype.set.call(n,t,i);else{if(!u.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,i)}i+=t.length}return n},u.byteLength=g,u.prototype._isBuffer=!0,u.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;tr&&(e+=" ... "),""},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(e,t,r,n,i){if(Y(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.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===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;let s=(i>>>=0)-(n>>>=0),o=(r>>>=0)-(t>>>=0);const a=Math.min(s,o),c=this.slice(n,i),l=e.slice(t,r);for(let u=0;u>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let s=!1;for(;;)switch(n){case"hex":return w(this,e,t,r);case"utf8":case"utf-8":return E(this,e,t,r);case"ascii":case"latin1":case"binary":return S(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(s)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),s=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const R=4096;function A(e,t,r){let n="";r=Math.min(e.length,r);for(let i=t;in)&&(r=n);let i="";for(let s=t;sr)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,r,n,i,s){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function L(e,t,r,n,i){V(t,n,i,e,r,7);let s=Number(t&BigInt(4294967295));e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s,s>>=8,e[r++]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,o>>=8,e[r++]=o,r}function P(e,t,r,n,i){V(t,n,i,e,r,7);let s=Number(t&BigInt(4294967295));e[r+7]=s,s>>=8,e[r+6]=s,s>>=8,e[r+5]=s,s>>=8,e[r+4]=s;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=o,o>>=8,e[r+2]=o,o>>=8,e[r+1]=o,o>>=8,e[r]=o,r+8}function D(e,t,r,n,i,s){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function B(e,t,r,n,i){return t=+t,r>>>=0,i||D(e,0,r,4),s.write(e,t,r,n,23,4),r+4}function F(e,t,r,n,i){return t=+t,r>>>=0,i||D(e,0,r,8),s.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){const r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||T(e,t,this.length);let n=this[e],i=1,s=0;for(;++s>>=0,t>>>=0,r||T(e,t,this.length);let n=this[e+--t],i=1;for(;t>0&&(i*=256);)n+=this[e+--t]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),this[e]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(e,t){return e>>>=0,t||T(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readBigUInt64LE=X((function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(i)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<>>=0,t>>>=0,r||T(e,t,this.length);let n=this[e],i=1,s=0;for(;++s=i&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||T(e,t,this.length);let n=t,i=1,s=this[e+--n];for(;n>0&&(i*=256);)s+=this[e+--n]*i;return i*=128,s>=i&&(s-=Math.pow(2,8*t)),s},u.prototype.readInt8=function(e,t){return e>>>=0,t||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){e>>>=0,t||T(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){e>>>=0,t||T(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return e>>>=0,t||T(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readBigInt64LE=X((function(e){H(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||W(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<>>=0,t||T(e,4,this.length),s.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return e>>>=0,t||T(e,4,this.length),s.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return e>>>=0,t||T(e,8,this.length),s.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return e>>>=0,t||T(e,8,this.length),s.read(this,e,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){j(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=1,s=0;for(this[t]=255&e;++s>>=0,r>>>=0,!n){j(this,e,t,r,Math.pow(2,8*r)-1,0)}let i=r-1,s=1;for(this[t+i]=255&e;--i>=0&&(s*=256);)this[t+i]=e/s&255;return t+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,1,255,0),this[t]=255&e,t+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||j(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},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||j(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},u.prototype.writeBigUInt64LE=X((function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=X((function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);j(this,e,t,r,n-1,-n)}let i=0,s=1,o=0;for(this[t]=255&e;++i>0)-o&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);j(this,e,t,r,n-1,-n)}let i=r-1,s=1,o=0;for(this[t+i]=255&e;--i>=0&&(s*=256);)e<0&&0===o&&0!==this[t+i+1]&&(o=1),this[t+i]=(e/s>>0)-o&255;return t+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||j(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||j(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},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||j(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},u.prototype.writeBigInt64LE=X((function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=X((function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(e,t,r){return B(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return B(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return F(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return F(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(!u.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function V(e,t,r,n,i,s){if(e>r||e3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(s+1)}${n}`:`>= -(2${n} ** ${8*(s+1)-1}${n}) and < 2 ** ${8*(s+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new U.ERR_OUT_OF_RANGE("value",i,e)}!function(e,t,r){H(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||W(t,e.length-(r+1))}(n,i,s)}function H(e,t){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function W(e,t,r){if(Math.floor(e)!==e)throw H(e,r),new U.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}$("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),$("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),$("ERR_OUT_OF_RANGE",(function(e,t,r){let n=`The value of "${e}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=z(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=z(i)),i+="n"),n+=` It must be ${t}. Received ${i}`,n}),RangeError);const q=/[^+/0-9A-Za-z-_]/g;function J(e,t){let r;t=t||1/0;const n=e.length;let i=null;const s=[];for(let o=0;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(o+1===n){(t-=3)>-1&&s.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&s.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return s}function G(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(q,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Z(e,t,r,n){let i;for(i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function Y(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function Q(e){return e!=e}const K=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)t[n+i]=e[r]+e[i]}return t}();function X(e){return"undefined"==typeof BigInt?ee:e}function ee(){throw new Error("BigInt not supported")}},49982:(e,t,r)=>{"use strict";var n=r(88030),i=r(63309),s=i(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&s(e,".prototype.")>-1?i(r):r}},63309:(e,t,r)=>{"use strict";var n=r(80487),i=r(88030),s=i("%Function.prototype.apply%"),o=i("%Function.prototype.call%"),a=i("%Reflect.apply%",!0)||n.call(o,s),c=i("%Object.getOwnPropertyDescriptor%",!0),u=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(u)try{u({},"a",{value:1})}catch(d){u=null}e.exports=function(e){var t=a(n,o,arguments);if(c&&u){var r=c(t,"length");r.configurable&&u(t,"length",{value:1+l(0,e.length-(arguments.length-1))})}return t};var h=function(){return a(n,s,arguments)};u?u(e.exports,"apply",{value:h}):e.exports.apply=h},85423:e=>{var t=1e3,r=60*t,n=60*r,i=24*n,s=7*i,o=365.25*i;function a(e,t,r,n){var i=t>=1.5*r;return Math.round(e/r)+" "+n+(i?"s":"")}e.exports=function(e,c){c=c||{};var u=typeof e;if("string"===u&&e.length>0)return function(e){if((e=String(e)).length>100)return;var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!a)return;var c=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*s;case"days":case"day":case"d":return c*i;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*r;case"seconds":case"second":case"secs":case"sec":case"s":return c*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(e);if("number"===u&&isFinite(e))return c.long?function(e){var s=Math.abs(e);if(s>=i)return a(e,s,i,"day");if(s>=n)return a(e,s,n,"hour");if(s>=r)return a(e,s,r,"minute");if(s>=t)return a(e,s,t,"second");return e+" ms"}(e):function(e){var s=Math.abs(e);if(s>=i)return Math.round(e/i)+"d";if(s>=n)return Math.round(e/n)+"h";if(s>=r)return Math.round(e/r)+"m";if(s>=t)return Math.round(e/t)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},64447:(e,t,r)=>{var n=r(98399),i=r(13158);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const r="color: "+this.color;t.splice(1,0,r,"color: inherit");let n=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(n++,"%c"===e&&(i=n))})),t.splice(i,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(r){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(r){}!e&&void 0!==i&&"env"in i&&(e={NODE_ENV:"production",NX_CLI_SET:"true",NX_WORKSPACE_ROOT:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk",NX_TERMINAL_OUTPUT_PATH:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk/node_modules/.cache/nx/terminalOutputs/0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"examples-sdk-frontend-react",NX_TASK_HASH:"0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13"}.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,n.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=n.debug||n.log||(()=>{}),e.exports=r(44053)(t);const{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},44053:(e,t,r)=>{var n=r(98399);e.exports=function(e){function t(e){let r,n,s,o=null;function a(...e){if(!a.enabled)return;const n=a,i=Number(new Date),s=i-(r||i);n.diff=s,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let o=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,i)=>{if("%%"===r)return"%";o++;const s=t.formatters[i];if("function"==typeof s){const t=e[o];r=s.call(n,t),e.splice(o,1),o--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=i,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(n!==t.namespaces&&(n=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(a),a}function i(e,r){const n=t(this.namespace+(void 0===r?":":r)+e);return n.log=this.log,n}function s(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(s),...t.skips.map(s).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let r;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").split(/[\s,]+/),i=n.length;for(r=0;r{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let r=0;for(let t=0;te+t,o=["sync","latest"];class a extends i.default{constructor(e){super(),this._blockResetDuration=e.blockResetDuration||2e4,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}async destroy(){this._cancelBlockResetTimeout(),await this._maybeEnd(),super.removeAllListeners()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){if(this._currentBlock)return this._currentBlock;return await new Promise((e=>this.once("latest",e)))}removeAllListeners(e){return e?super.removeAllListeners(e):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener(),this}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(e){o.includes(e)&&this._maybeStart()}_onRemoveListener(){this._getBlockTrackerEventCount()>0||this._maybeEnd()}async _maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),await this._start(),this.emit("_started"))}async _maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),await this._end(),this.emit("_ended"))}_getBlockTrackerEventCount(){return o.map((e=>this.listenerCount(e))).reduce(s)}_newPotentialLatest(e){const t=this._currentBlock;t&&c(e)<=c(t)||this._setCurrentBlock(e)}_setCurrentBlock(e){const t=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:t,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}}function c(e){return Number.parseInt(e,16)}t.BaseBlockTracker=a},91389:function(e,t,r){"use strict";var n=r(98399),i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PollingBlockTracker=void 0;const s=i(r(69437)),o=i(r(9860)),a=r(80350),c=r(60550),u=(0,c.createModuleLogger)(c.projectLogger,"polling-block-tracker"),l=(0,s.default)();class h extends a.BaseBlockTracker{constructor(e={}){var t;if(!e.provider)throw new Error("PollingBlockTracker - no provider specified.");super({blockResetDuration:null!==(t=e.blockResetDuration)&&void 0!==t?t:e.pollingInterval}),this._provider=e.provider,this._pollingInterval=e.pollingInterval||2e4,this._retryTimeout=e.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=void 0===e.keepEventLoopActive||e.keepEventLoopActive,this._setSkipCacheFlag=e.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var e;this._isRunning;)try{await this._updateLatestBlock();const e=d(this._pollingInterval,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await e}catch(t){const i=new Error(`PollingBlockTracker - encountered an error while attempting to update latest block:\n${null!==(e=t.stack)&&void 0!==e?e:t}`);try{this.emit("error",i)}catch(r){n.error(i)}const s=d(this._retryTimeout,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await s}}async _updateLatestBlock(){const e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){const e={jsonrpc:"2.0",id:l(),method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0),u("Making request",e);const t=await(0,o.default)((t=>this._provider.sendAsync(e,t)))();if(u("Got response",t),t.error)throw new Error(`PollingBlockTracker - encountered error fetching block:\n${t.error.message}`);return t.result}}function d(e,t){return new Promise((r=>{const n=setTimeout(r,e);n.unref&&t&&n.unref()}))}t.PollingBlockTracker=h},84072:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SubscribeBlockTracker=void 0;const i=n(r(69437)),s=r(80350),o=(0,i.default)();class a extends s.BaseBlockTracker{constructor(e={}){if(!e.provider)throw new Error("SubscribeBlockTracker - no provider specified.");super(e),this._provider=e.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}async _start(){if(void 0===this._subscriptionId||null===this._subscriptionId)try{const e=await this._call("eth_blockNumber");this._subscriptionId=await this._call("eth_subscribe","newHeads"),this._provider.on("data",this._handleSubData.bind(this)),this._newPotentialLatest(e)}catch(e){this.emit("error",e)}}async _end(){if(null!==this._subscriptionId&&void 0!==this._subscriptionId)try{await this._call("eth_unsubscribe",this._subscriptionId),this._subscriptionId=null}catch(e){this.emit("error",e)}}_call(e,...t){return new Promise(((r,n)=>{this._provider.sendAsync({id:o(),method:e,params:t,jsonrpc:"2.0"},((e,t)=>{e?n(e):r(t.result)}))}))}_handleSubData(e,t){var r;"eth_subscription"===t.method&&(null===(r=t.params)||void 0===r?void 0:r.subscription)===this._subscriptionId&&this._newPotentialLatest(t.params.result.number)}}t.SubscribeBlockTracker=a},89198:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(91389),t),i(r(84072),t),i(r(18827),t)},60550:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.projectLogger=void 0;const n=r(31959);Object.defineProperty(t,"createModuleLogger",{enumerable:!0,get:function(){return n.createModuleLogger}}),t.projectLogger=(0,n.createProjectLogger)("eth-block-tracker")},18827:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4664:(e,t,r)=>{const n=r(78425);e.exports=class extends n{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(e){this.allResults=this.allResults.concat(e),super.addResults(e)}addInitialResults(e){this.allResults=this.allResults.concat(e),super.addInitialResults(e)}getAllResults(){return this.allResults}}},78425:(e,t,r)=>{const n=r(68997).default;e.exports=class extends n{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(e){this.updates=this.updates.concat(e),e.forEach((e=>this.emit("update",e)))}addInitialResults(e){}getChangesAndClear(){const e=this.updates;return this.updates=[],e}}},71281:(e,t,r)=>{const n=r(78425),i=r(46973),{incrementHexInt:s}=r(99530);e.exports=class extends n{constructor({provider:e,params:t}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:t}){const r=t,n=s(e),o=(await i({provider:this.provider,fromBlock:n,toBlock:r})).map((e=>e.hash));this.addResults(o)}}},46973:(e,t,r)=>{var n=r(98399);function i(e){return null==e?e:Number.parseInt(e,16)}function s(e){if(null==e)return e;return"0x"+e.toString(16)}function o(e,t){return new Promise(((r,n)=>{e.sendAsync(t,((e,t)=>{e?n(e):t.error?n(t.error):t.result?r(t.result):n(new Error("Result was empty"))}))}))}e.exports=async function({provider:e,fromBlock:t,toBlock:r}){t||(t=r);const a=i(t),c=i(r),u=Array(c-a+1).fill().map(((e,t)=>a+t)).map(s);return await Promise.all(u.map((t=>async function(e,t,r){for(let s=0;s<3;s++)try{return await o(e,{id:1,jsonrpc:"2.0",method:t,params:r})}catch(i){n.error(`provider.sendAsync failed: ${i.stack||i.message||i}`)}throw new Error(`Block not found for params: ${JSON.stringify(r)}`)}(e,"eth_getBlockByNumber",[t,!1]))))}},99530:e=>{function t(e){return e.sort(((e,t)=>"latest"===e||"earliest"===t?1:"latest"===t||"earliest"===e?-1:r(e)-r(t)))}function r(e){return null==e?e:Number.parseInt(e,16)}function n(e){if(null==e)return e;let t=e.toString(16);return t.length%2&&(t="0"+t),"0x"+t}function i(){return Math.floor(16*Math.random()).toString(16)}e.exports={minBlockRef:function(...e){return t(e)[0]},maxBlockRef:function(...e){const r=t(e);return r[r.length-1]},sortBlockRefs:t,bnToHex:function(e){return"0x"+e.toString(16)},blockRefIsNumber:function(e){return e&&!["earliest","latest","pending"].includes(e)},hexToInt:r,incrementHexInt:function(e){if(null==e)return e;return n(r(e)+1)},intToHex:n,unsafeRandomBytes:function(e){let t="0x";for(let r=0;r{var n=r(98399);const i=r(32304).WU,{createAsyncMiddleware:s,createScaffoldMiddleware:o}=r(56927),a=r(65982),c=r(71281),u=r(46930),{intToHex:l,hexToInt:h}=r(99530);function d(e){return f((async(...t)=>{const r=await e(...t);return l(r.id)}))}function f(e){return s((async(t,r)=>{const n=await e.apply(null,t.params);r.result=n}))}function p(e,t){const r=[];for(let n in e)r.push(e[n]);return r}e.exports=function({blockTracker:e,provider:t}){let r=0,s={};const y=new i,g=function({mutex:e}){return t=>async(r,n,i,s)=>{(await e.acquire())(),t(r,n,i,s)}}({mutex:y}),b=o({eth_newFilter:g(d(v)),eth_newBlockFilter:g(d(_)),eth_newPendingTransactionFilter:g(d(w)),eth_uninstallFilter:g(f(x)),eth_getFilterChanges:g(f(E)),eth_getFilterLogs:g(f(S))}),m=async({oldBlock:e,newBlock:t})=>{if(0===s.length)return;const r=await y.acquire();try{await Promise.all(p(s).map((async r=>{try{await r.update({oldBlock:e,newBlock:t})}catch(i){n.error(i)}})))}catch(i){n.error(i)}r()};return b.newLogFilter=v,b.newBlockFilter=_,b.newPendingTransactionFilter=w,b.uninstallFilter=x,b.getFilterChanges=E,b.getFilterLogs=S,b.destroy=()=>{!async function(){const e=p(s).length;s={},C({prevFilterCount:e,newFilterCount:0})}()},b;async function v(e){const r=new a({provider:t,params:e});await k(r);return r}async function _(){const e=new c({provider:t});await k(e);return e}async function w(){const e=new u({provider:t});await k(e);return e}async function E(e){const t=h(e),r=s[t];if(!r)throw new Error(`No filter for index "${t}"`);return r.getChangesAndClear()}async function S(e){const t=h(e),r=s[t];if(!r)throw new Error(`No filter for index "${t}"`);let n=[];return"log"===r.type&&(n=r.getAllResults()),n}async function x(e){const t=h(e),r=s[t],n=Boolean(r);return n&&await async function(e){const t=p(s).length;delete s[e];const r=p(s).length;C({prevFilterCount:t,newFilterCount:r})}(t),n}async function k(t){const n=p(s).length,i=await e.getLatestBlock();await t.initialize({currentBlock:i}),r++,s[r]=t,t.id=r,t.idHex=l(r);return C({prevFilterCount:n,newFilterCount:p(s).length}),r}function C({prevFilterCount:t,newFilterCount:r}){0===t&&r>0?e.on("sync",m):t>0&&0===r&&e.removeListener("sync",m)}}},65982:(e,t,r)=>{const n=r(55876),i=r(89509),s=r(4664),{bnToHex:o,hexToInt:a,incrementHexInt:c,minBlockRef:u,blockRefIsNumber:l}=r(99530);e.exports=class extends s{constructor({provider:e,params:t}){super(),this.type="log",this.ethQuery=new n(e),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},t),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map((e=>e.toLowerCase())))}async initialize({currentBlock:e}){let t=this.params.fromBlock;["latest","pending"].includes(t)&&(t=e),"earliest"===t&&(t="0x0"),this.params.fromBlock=t;const r=u(this.params.toBlock,e),n=Object.assign({},this.params,{toBlock:r}),i=await this._fetchLogs(n);this.addInitialResults(i)}async update({oldBlock:e,newBlock:t}){const r=t;let n;n=e?c(e):t;const i=Object.assign({},this.params,{fromBlock:n,toBlock:r}),s=(await this._fetchLogs(i)).filter((e=>this.matchLog(e)));this.addResults(s)}async _fetchLogs(e){return await i((t=>this.ethQuery.getLogs(e,t)))()}matchLog(e){if(a(this.params.fromBlock)>=a(e.blockNumber))return!1;if(l(this.params.toBlock)&&a(this.params.toBlock)<=a(e.blockNumber))return!1;const t=e.address&&e.address.toLowerCase();if(this.params.address&&t&&!this.params.address.includes(t))return!1;return this.params.topics.every(((t,r)=>{let n=e.topics[r];if(!n)return!1;n=n.toLowerCase();let i=Array.isArray(t)?t:[t];if(i.includes(null))return!0;i=i.map((e=>e.toLowerCase()));return i.includes(n)}))}}},89509:e=>{"use strict";const t=(e,t,r,n)=>function(...i){return new(0,t.promiseModule)(((s,o)=>{t.multiArgs?i.push(((...e)=>{t.errorFirst?e[0]?o(e):(e.shift(),s(e)):s(e)})):t.errorFirst?i.push(((e,t)=>{e?o(e):s(t)})):i.push(s);const a=this===r?n:this;Reflect.apply(e,a,i)}))},r=new WeakMap;e.exports=(e,n)=>{n={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...n};const i=typeof e;if(null===e||"object"!==i&&"function"!==i)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":i}\``);const s=new WeakMap,o=new Proxy(e,{apply(e,r,i){const a=s.get(e);if(a)return Reflect.apply(a,r,i);const c=n.excludeMain?e:t(e,n,o,e);return s.set(e,c),Reflect.apply(c,r,i)},get(e,i){const a=e[i];if(!((e,t)=>{let i=r.get(e);if(i||(i={},r.set(e,i)),t in i)return i[t];const s=e=>"string"==typeof e||"symbol"==typeof t?t===e:e.test(t),o=Reflect.getOwnPropertyDescriptor(e,t),a=void 0===o||o.writable||o.configurable,c=(n.include?n.include.some(s):!n.exclude.some(s))&&a;return i[t]=c,c})(e,i)||a===Function.prototype[i])return a;const c=s.get(a);if(c)return c;if("function"==typeof a){const r=t(a,n,o,e);return s.set(a,r),r}return a}});return o}},22066:(e,t,r)=>{const n=r(68997).default,{createAsyncMiddleware:i,createScaffoldMiddleware:s}=r(56927),o=r(57530),{unsafeRandomBytes:a,incrementHexInt:c}=r(99530),u=r(46973);function l(e){return null==e?null:{hash:e.hash,parentHash:e.parentHash,sha3Uncles:e.sha3Uncles,miner:e.miner,stateRoot:e.stateRoot,transactionsRoot:e.transactionsRoot,receiptsRoot:e.receiptsRoot,logsBloom:e.logsBloom,difficulty:e.difficulty,number:e.number,gasLimit:e.gasLimit,gasUsed:e.gasUsed,nonce:e.nonce,mixHash:e.mixHash,timestamp:e.timestamp,extraData:e.extraData}}e.exports=function({blockTracker:e,provider:t}){const r={},h=o({blockTracker:e,provider:t});let d=!1;const f=new n,p=s({eth_subscribe:i((async function(n,i){if(d)throw new Error("SubscriptionManager - attempting to use after destroying");const s=n.params[0],o=a(16);let f;switch(s){case"newHeads":f=p({subId:o});break;case"logs":const e=n.params[1];f=g({subId:o,filter:await h.newLogFilter(e)});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${s}"`)}return r[o]=f,void(i.result=o);function p({subId:r}){const n={type:s,destroy:async()=>{e.removeListener("sync",n.update)},update:async({oldBlock:e,newBlock:n})=>{const i=n,s=c(e);(await u({provider:t,fromBlock:s,toBlock:i})).map(l).filter((e=>null!==e)).forEach((e=>{y(r,e)}))}};return e.on("sync",n.update),n}function g({subId:e,filter:t}){t.on("update",(t=>y(e,t)));return{type:s,destroy:async()=>await h.uninstallFilter(t.idHex)}}})),eth_unsubscribe:i((async function(e,t){if(d)throw new Error("SubscriptionManager - attempting to use after destroying");const n=e.params[0],i=r[n];if(!i)return void(t.result=!1);delete r[n],await i.destroy(),t.result=!0}))});return p.destroy=function(){f.removeAllListeners();for(const e in r)r[e].destroy(),delete r[e];d=!0},{events:f,middleware:p};function y(e,t){f.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:e,result:t}})}}},46930:(e,t,r)=>{const n=r(78425),i=r(46973),{incrementHexInt:s}=r(99530);e.exports=class extends n{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){const t=e,r=s(e),n=await i({provider:this.provider,fromBlock:r,toBlock:t}),o=[];for(const i of n)o.push(...i.transactions);this.addResults(o)}}},55876:(e,t,r)=>{const n=r(34810),i=r(69437)();function s(e){this.currentProvider=e}function o(e){return function(){const t=this;var r=[].slice.call(arguments),n=r.pop();t.sendAsync({method:e,params:r},n)}}function a(e,t){return function(){const r=this;var n=[].slice.call(arguments),i=n.pop();n.length{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumProviderError=t.EthereumRpcError=void 0;const n=r(50861);class i extends Error{constructor(e,t,r){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw new Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==r&&(this.data=r)}serialize(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return n.default(this.serialize(),s,2)}}t.EthereumRpcError=i;function s(e,t){if("[Circular]"!==t)return t}t.EthereumProviderError=class extends i{constructor(e,t,r){if(!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,r)}}},41620:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.errorCodes=void 0,t.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},t.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}},76540:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethErrors=void 0;const n=r(33772),i=r(72513),s=r(41620);function o(e,t){const[r,s]=c(t);return new n.EthereumRpcError(e,r||i.getMessageFromCode(e),s)}function a(e,t){const[r,s]=c(t);return new n.EthereumProviderError(e,r||i.getMessageFromCode(e),s)}function c(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&"string"!=typeof t)throw new Error("Must specify string message.");return[t||void 0,r]}}return[]}t.ethErrors={rpc:{parse:e=>o(s.errorCodes.rpc.parse,e),invalidRequest:e=>o(s.errorCodes.rpc.invalidRequest,e),invalidParams:e=>o(s.errorCodes.rpc.invalidParams,e),methodNotFound:e=>o(s.errorCodes.rpc.methodNotFound,e),internal:e=>o(s.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return o(t,e)},invalidInput:e=>o(s.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>o(s.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>o(s.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>o(s.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>o(s.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>o(s.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>a(s.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>a(s.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>a(s.errorCodes.provider.unsupportedMethod,e),disconnected:e=>a(s.errorCodes.provider.disconnected,e),chainDisconnected:e=>a(s.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:i}=e;if(!r||"string"!=typeof r)throw new Error('"message" must be a nonempty string');return new n.EthereumProviderError(t,r,i)}}}},14803:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromCode=t.serializeError=t.EthereumProviderError=t.EthereumRpcError=t.ethErrors=t.errorCodes=void 0;const n=r(33772);Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return n.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return n.EthereumProviderError}});const i=r(72513);Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return i.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}});const s=r(76540);Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return s.ethErrors}});const o=r(41620);Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return o.errorCodes}})},72513:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const n=r(41620),i=r(33772),s=n.errorCodes.rpc.internal,o={code:s,message:a(s)};function a(e,r="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(e)){const r=e.toString();if(h(n.errorValues,r))return n.errorValues[r].message;if(u(e))return t.JSON_RPC_SERVER_ERROR_MESSAGE}return r}function c(e){if(!Number.isInteger(e))return!1;const t=e.toString();return!!n.errorValues[t]||!!u(e)}function u(e){return e>=-32099&&e<=-32e3}function l(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=a,t.isValidCode=c,t.serializeError=function(e,{fallbackError:t=o,shouldIncludeStack:r=!1}={}){var n,s;if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw new Error("Must provide fallback error with integer number code and string message.");if(e instanceof i.EthereumRpcError)return e.serialize();const u={};if(e&&"object"==typeof e&&!Array.isArray(e)&&h(e,"code")&&c(e.code)){const t=e;u.code=t.code,t.message&&"string"==typeof t.message?(u.message=t.message,h(t,"data")&&(u.data=t.data)):(u.message=a(u.code),u.data={originalError:l(e)})}else{u.code=t.code;const r=null===(n=e)||void 0===n?void 0:n.message;u.message=r&&"string"==typeof r?r:t.message,u.data={originalError:l(e)}}const d=null===(s=e)||void 0===s?void 0:s.stack;return r&&e&&d&&"string"==typeof d&&(u.stack=d),u}},50861:e=>{e.exports=o,o.default=o,o.stable=l,o.stableStringify=l;var t="[...]",r="[Circular]",n=[],i=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(e,t,r,o){var a;void 0===o&&(o=s()),c(e,"",0,[],void 0,0,o);try{a=0===i.length?JSON.stringify(e,t,r):JSON.stringify(e,d(t),r)}catch(l){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var u=n.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return a}function a(e,t,r,s){var o=Object.getOwnPropertyDescriptor(s,r);void 0!==o.get?o.configurable?(Object.defineProperty(s,r,{value:e}),n.push([s,r,t,o])):i.push([t,r,e]):(s[r]=e,n.push([s,r,t]))}function c(e,n,i,s,o,u,l){var h;if(u+=1,"object"==typeof e&&null!==e){for(h=0;hl.depthLimit)return void a(t,e,n,o);if(void 0!==l.edgesLimit&&i+1>l.edgesLimit)return void a(t,e,n,o);if(s.push(e),Array.isArray(e))for(h=0;ht?1:0}function l(e,t,r,o){void 0===o&&(o=s());var a,c=h(e,"",0,[],void 0,0,o)||e;try{a=0===i.length?JSON.stringify(c,t,r):JSON.stringify(c,d(t),r)}catch(l){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var u=n.pop();4===u.length?Object.defineProperty(u[0],u[1],u[3]):u[0][u[1]]=u[2]}}return a}function h(e,i,s,o,c,l,d){var f;if(l+=1,"object"==typeof e&&null!==e){for(f=0;fd.depthLimit)return void a(t,e,i,c);if(void 0!==d.edgesLimit&&s+1>d.edgesLimit)return void a(t,e,i,c);if(o.push(e),Array.isArray(e))for(f=0;f0)for(var n=0;n{"use strict";var t="Function.prototype.bind called on incompatible ",r=Array.prototype.slice,n=Object.prototype.toString,i="[object Function]";e.exports=function(e){var s=this;if("function"!=typeof s||n.call(s)!==i)throw new TypeError(t+s);for(var o,a=r.call(arguments,1),c=function(){if(this instanceof o){var t=s.apply(this,a.concat(r.call(arguments)));return Object(t)===t?t:this}return s.apply(e,a.concat(r.call(arguments)))},u=Math.max(0,s.length-a.length),l=[],h=0;h{"use strict";var n=r(97217);e.exports=Function.prototype.bind||n},88030:(e,t,r)=>{"use strict";var n,i=SyntaxError,s=Function,o=TypeError,a=function(e){try{return s('"use strict"; return ('+e+").constructor;")()}catch(t){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(N){c=null}var u=function(){throw new o},l=c?function(){try{return u}catch(e){try{return c(arguments,"callee").get}catch(t){return u}}}():u,h=r(80740)(),d=r(84645)(),f=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),p={},y="undefined"!=typeof Uint8Array&&f?f(Uint8Array):n,g={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":h&&f?f([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":s,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":h&&f?f(f([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&h&&f?f((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&h&&f?f((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h&&f?f(""[Symbol.iterator]()):n,"%Symbol%":h?Symbol:n,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":y,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(f)try{null.error}catch(N){var b=f(f(N));g["%Error.prototype%"]=b}var m=function e(t){var r;if("%AsyncFunction%"===t)r=a("async function () {}");else if("%GeneratorFunction%"===t)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=a("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&f&&(r=f(i.prototype))}return g[t]=r,r},v={"%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"]},_=r(80487),w=r(47359),E=_.call(Function.call,Array.prototype.concat),S=_.call(Function.apply,Array.prototype.splice),x=_.call(Function.call,String.prototype.replace),k=_.call(Function.call,String.prototype.slice),C=_.call(Function.call,RegExp.prototype.exec),I=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,A=function(e){var t=k(e,0,1),r=k(e,-1);if("%"===t&&"%"!==r)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,I,(function(e,t,r,i){n[n.length]=r?x(i,R,"$1"):t||e})),n},M=function(e,t){var r,n=e;if(w(v,n)&&(n="%"+(r=v[n])[0]+"%"),w(g,n)){var s=g[n];if(s===p&&(s=m(n)),void 0===s&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:s}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===C(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=A(e),n=r.length>0?r[0]:"",s=M("%"+n+"%",t),a=s.name,u=s.value,l=!1,h=s.alias;h&&(n=h[0],S(r,E([0,1],h)));for(var d=1,f=!0;d=r.length){var m=c(u,p);u=(f=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:u[p]}else f=w(u,p),u=u[p];f&&!l&&(g[a]=u)}}return u}},84645:e=>{"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},80740:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,i=r(31960);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&i())))}},31960: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"),r=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(r))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 n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},47359:(e,t,r)=>{"use strict";var n=r(80487);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},50392:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonRpcEngine=void 0;const i=n(r(68997)),s=r(34251);class o extends i.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,t){if(t&&"function"!=typeof t)throw new Error('"callback" must be a function if provided.');return Array.isArray(e)?t?this._handleBatch(e,t):this._handleBatch(e):t?this._handle(e,t):this._promiseHandle(e)}asMiddleware(){return async(e,t,r,n)=>{try{const[i,s,a]=await o._runAllMiddleware(e,t,this._middleware);return s?(await o._runReturnHandlers(a),n(i)):r((async e=>{try{await o._runReturnHandlers(a)}catch(t){return e(t)}return e()}))}catch(i){return n(i)}}}async _handleBatch(e,t){try{const r=await Promise.all(e.map(this._promiseHandle.bind(this)));return t?t(null,r):r}catch(r){if(t)return t(r);throw r}}_promiseHandle(e){return new Promise((t=>{this._handle(e,((e,r)=>{t(r)}))}))}async _handle(e,t){if(!e||Array.isArray(e)||"object"!=typeof e){const r=new s.EthereumRpcError(s.errorCodes.rpc.invalidRequest,"Requests must be plain objects. Received: "+typeof e,{request:e});return t(r,{id:void 0,jsonrpc:"2.0",error:r})}if("string"!=typeof e.method){const r=new s.EthereumRpcError(s.errorCodes.rpc.invalidRequest,"Must specify a string method. Received: "+typeof e.method,{request:e});return t(r,{id:e.id,jsonrpc:"2.0",error:r})}const r=Object.assign({},e),n={id:r.id,jsonrpc:r.jsonrpc};let i=null;try{await this._processRequest(r,n)}catch(o){i=o}return i&&(delete n.result,n.error||(n.error=s.serializeError(i))),t(i,n)}async _processRequest(e,t){const[r,n,i]=await o._runAllMiddleware(e,t,this._middleware);if(o._checkForCompletion(e,t,n),await o._runReturnHandlers(i),r)throw r}static async _runAllMiddleware(e,t,r){const n=[];let i=null,s=!1;for(const a of r)if([i,s]=await o._runMiddleware(e,t,a,n),s)break;return[i,s,n.reverse()]}static _runMiddleware(e,t,r,n){return new Promise((i=>{const o=e=>{const r=e||t.error;r&&(t.error=s.serializeError(r)),i([r,!0])},c=r=>{t.error?o(t.error):(r&&("function"!=typeof r&&o(new s.EthereumRpcError(s.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof r}" for request:\n${a(e)}`,{request:e})),n.push(r)),i([null,!1]))};try{r(e,t,c,o)}catch(u){o(u)}}))}static async _runReturnHandlers(e){for(const t of e)await new Promise(((e,r)=>{t((t=>t?r(t):e()))}))}static _checkForCompletion(e,t,r){if(!("result"in t)&&!("error"in t))throw new s.EthereumRpcError(s.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request:\n${a(e)}`,{request:e});if(!r)throw new s.EthereumRpcError(s.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request:\n${a(e)}`,{request:e})}}function a(e){return JSON.stringify(e,null,2)}t.JsonRpcEngine=o},33364:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAsyncMiddleware=void 0,t.createAsyncMiddleware=function(e){return async(t,r,n,i)=>{let s;const o=new Promise((e=>{s=e}));let a=null,c=!1;const u=async()=>{c=!0,n((e=>{a=e,s()})),await o};try{await e(t,r,u),c?(await o,a(null)):i(null)}catch(l){a?a(l):i(l)}}}},4063:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createScaffoldMiddleware=void 0,t.createScaffoldMiddleware=function(e){return(t,r,n,i)=>{const s=e[t.method];return void 0===s?n():"function"==typeof s?s(t,r,n,i):(r.result=s,i())}}},74424:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUniqueId=void 0;const r=4294967295;let n=Math.floor(Math.random()*r);t.getUniqueId=function(){return n=(n+1)%r,n}},75002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createIdRemapMiddleware=void 0;const n=r(74424);t.createIdRemapMiddleware=function(){return(e,t,r,i)=>{const s=e.id,o=n.getUniqueId();e.id=o,t.id=o,r((r=>{e.id=s,t.id=s,r()}))}}},56927:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),i(r(75002),t),i(r(33364),t),i(r(4063),t),i(r(74424),t),i(r(50392),t),i(r(52288),t)},52288:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMiddleware=void 0;const n=r(50392);t.mergeMiddleware=function(e){const t=new n.JsonRpcEngine;return e.forEach((e=>t.push(e))),t.asMiddleware()}},76943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumProviderError=t.EthereumRpcError=void 0;const n=r(50861);class i extends Error{constructor(e,t,r){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw new Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==r&&(this.data=r)}serialize(){const e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return n.default(this.serialize(),s,2)}}t.EthereumRpcError=i;function s(e,t){if("[Circular]"!==t)return t}t.EthereumProviderError=class extends i{constructor(e,t,r){if(!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,r)}}},6864:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.errorCodes=void 0,t.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},t.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}},20405:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethErrors=void 0;const n=r(76943),i=r(27627),s=r(6864);function o(e,t){const[r,s]=c(t);return new n.EthereumRpcError(e,r||i.getMessageFromCode(e),s)}function a(e,t){const[r,s]=c(t);return new n.EthereumProviderError(e,r||i.getMessageFromCode(e),s)}function c(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&"string"!=typeof t)throw new Error("Must specify string message.");return[t||void 0,r]}}return[]}t.ethErrors={rpc:{parse:e=>o(s.errorCodes.rpc.parse,e),invalidRequest:e=>o(s.errorCodes.rpc.invalidRequest,e),invalidParams:e=>o(s.errorCodes.rpc.invalidParams,e),methodNotFound:e=>o(s.errorCodes.rpc.methodNotFound,e),internal:e=>o(s.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return o(t,e)},invalidInput:e=>o(s.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>o(s.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>o(s.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>o(s.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>o(s.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>o(s.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>a(s.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>a(s.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>a(s.errorCodes.provider.unsupportedMethod,e),disconnected:e=>a(s.errorCodes.provider.disconnected,e),chainDisconnected:e=>a(s.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:i}=e;if(!r||"string"!=typeof r)throw new Error('"message" must be a nonempty string');return new n.EthereumProviderError(t,r,i)}}}},34251:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromCode=t.serializeError=t.EthereumProviderError=t.EthereumRpcError=t.ethErrors=t.errorCodes=void 0;const n=r(76943);Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return n.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return n.EthereumProviderError}});const i=r(27627);Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return i.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}});const s=r(20405);Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return s.ethErrors}});const o=r(6864);Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return o.errorCodes}})},27627:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const n=r(6864),i=r(76943),s=n.errorCodes.rpc.internal,o={code:s,message:a(s)};function a(e,r="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(e)){const r=e.toString();if(h(n.errorValues,r))return n.errorValues[r].message;if(u(e))return t.JSON_RPC_SERVER_ERROR_MESSAGE}return r}function c(e){if(!Number.isInteger(e))return!1;const t=e.toString();return!!n.errorValues[t]||!!u(e)}function u(e){return e>=-32099&&e<=-32e3}function l(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function h(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=a,t.isValidCode=c,t.serializeError=function(e,{fallbackError:t=o,shouldIncludeStack:r=!1}={}){var n,s;if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw new Error("Must provide fallback error with integer number code and string message.");if(e instanceof i.EthereumRpcError)return e.serialize();const u={};if(e&&"object"==typeof e&&!Array.isArray(e)&&h(e,"code")&&c(e.code)){const t=e;u.code=t.code,t.message&&"string"==typeof t.message?(u.message=t.message,h(t,"data")&&(u.data=t.data)):(u.message=a(u.code),u.data={originalError:l(e)})}else{u.code=t.code;const r=null===(n=e)||void 0===n?void 0:n.message;u.message=r&&"string"==typeof r?r:t.message,u.data={originalError:l(e)}}const d=null===(s=e)||void 0===s?void 0:s.stack;return r&&e&&d&&"string"==typeof d&&(u.stack=d),u}},69437:e=>{e.exports=function(e){var t=(e=e||{}).max||Number.MAX_SAFE_INTEGER,r=void 0!==e.start?e.start:Math.floor(Math.random()*t);return function(){return r%=t,r++}}},43151:(e,t,r)=>{e.exports=r(63133)(r(54750))},63133:(e,t,r)=>{const n=r(86744),i=r(65666);e.exports=function(e){const t=n(e),r=i(e);return function(e,n){switch("string"==typeof e?e.toLowerCase():e){case"keccak224":return new t(1152,448,null,224,n);case"keccak256":return new t(1088,512,null,256,n);case"keccak384":return new t(832,768,null,384,n);case"keccak512":return new t(576,1024,null,512,n);case"sha3-224":return new t(1152,448,6,224,n);case"sha3-256":return new t(1088,512,6,256,n);case"sha3-384":return new t(832,768,6,384,n);case"sha3-512":return new t(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw new Error("Invald algorithm: "+e)}}}},86744:(e,t,r)=>{var n=r(75291).Buffer;const{Transform:i}=r(64604);e.exports=e=>class t extends i{constructor(t,r,n,i,s){super(s),this._rate=t,this._capacity=r,this._delimitedSuffix=n,this._hashBitLength=i,this._options=s,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let n=null;try{this.update(e,t)}catch(i){n=i}r(n)}_flush(e){let t=null;try{this.push(this.digest())}catch(r){t=r}e(t)}update(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this}digest(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let t=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(t=t.toString(e)),this._resetState(),t}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new t(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},65666:(e,t,r)=>{var n=r(75291).Buffer;const{Transform:i}=r(64604);e.exports=e=>class t extends i{constructor(t,r,n,i){super(i),this._rate=t,this._capacity=r,this._delimitedSuffix=n,this._options=i,this._state=new e,this._state.initialize(t,r),this._finalized=!1}_transform(e,t,r){let n=null;try{this.update(e,t)}catch(i){n=i}r(n)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,t){if(!n.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return n.isBuffer(e)||(e=n.from(e,t)),this._state.absorb(e),this}squeeze(e,t){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let r=this._state.squeeze(e);return void 0!==t&&(r=r.toString(t)),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const e=new t(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}},99108:(e,t)=>{const r=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];t.p1600=function(e){for(let t=0;t<24;++t){const n=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],o=e[3]^e[13]^e[23]^e[33]^e[43],a=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],u=e[6]^e[16]^e[26]^e[36]^e[46],l=e[7]^e[17]^e[27]^e[37]^e[47],h=e[8]^e[18]^e[28]^e[38]^e[48],d=e[9]^e[19]^e[29]^e[39]^e[49];let f=h^(s<<1|o>>>31),p=d^(o<<1|s>>>31);const y=e[0]^f,g=e[1]^p,b=e[10]^f,m=e[11]^p,v=e[20]^f,_=e[21]^p,w=e[30]^f,E=e[31]^p,S=e[40]^f,x=e[41]^p;f=n^(a<<1|c>>>31),p=i^(c<<1|a>>>31);const k=e[2]^f,C=e[3]^p,I=e[12]^f,R=e[13]^p,A=e[22]^f,M=e[23]^p,N=e[32]^f,O=e[33]^p,T=e[42]^f,j=e[43]^p;f=s^(u<<1|l>>>31),p=o^(l<<1|u>>>31);const L=e[4]^f,P=e[5]^p,D=e[14]^f,B=e[15]^p,F=e[24]^f,U=e[25]^p,$=e[34]^f,z=e[35]^p,V=e[44]^f,H=e[45]^p;f=a^(h<<1|d>>>31),p=c^(d<<1|h>>>31);const W=e[6]^f,q=e[7]^p,J=e[16]^f,G=e[17]^p,Z=e[26]^f,Y=e[27]^p,Q=e[36]^f,K=e[37]^p,X=e[46]^f,ee=e[47]^p;f=u^(n<<1|i>>>31),p=l^(i<<1|n>>>31);const te=e[8]^f,re=e[9]^p,ne=e[18]^f,ie=e[19]^p,se=e[28]^f,oe=e[29]^p,ae=e[38]^f,ce=e[39]^p,ue=e[48]^f,le=e[49]^p,he=y,de=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Ge&ot,e[14]=ye^~Ie&Fe,e[15]=ge^~Re&Ue,e[24]=We^~nt&ve,e[25]=qe^~it&_e,e[34]=ke^~De&Ze,e[35]=Ce^~Be&Ye,e[44]=tt^~be&Ae,e[45]=rt^~me&Me,e[6]=Je^~st&he,e[7]=Ge^~ot&de,e[16]=Ie^~Fe&$e,e[17]=Re^~Ue&ze,e[26]=nt^~ve&we,e[27]=it^~_e&Ee,e[36]=De^~Ze&Qe,e[37]=Be^~Ye&Ke,e[46]=be^~Ae&Ne,e[47]=me^~Me&Oe,e[8]=st^~he&Se,e[9]=ot^~de&xe,e[18]=Fe^~$e&Xe,e[19]=Ue^~ze&et,e[28]=ve^~we&Te,e[29]=_e^~Ee&je,e[38]=Ze^~Qe&fe,e[39]=Ye^~Ke&pe,e[48]=Ae^~Ne&Ve,e[49]=Me^~Oe&He,e[0]^=r[2*t],e[1]^=r[2*t+1]}}},54750:(e,t,r)=>{var n=r(75291).Buffer;const i=r(99108);function s(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}s.prototype.initialize=function(e,t){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},s.prototype.absorb=function(e){for(let t=0;t>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0);return t},s.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=s},59447:(e,t,r)=>{"use strict";const n=r(39789),i=Symbol("max"),s=Symbol("length"),o=Symbol("lengthCalculator"),a=Symbol("allowStale"),c=Symbol("maxAge"),u=Symbol("dispose"),l=Symbol("noDisposeOnSet"),h=Symbol("lruList"),d=Symbol("cache"),f=Symbol("updateAgeOnGet"),p=()=>1;const y=(e,t,r)=>{const n=e[d].get(t);if(n){const t=n.value;if(g(e,t)){if(m(e,n),!e[a])return}else r&&(e[f]&&(n.value.now=Date.now()),e[h].unshiftNode(n));return t.value}},g=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[c]&&r>e[c]},b=e=>{if(e[s]>e[i])for(let t=e[h].tail;e[s]>e[i]&&null!==t;){const r=t.prev;m(e,t),t=r}},m=(e,t)=>{if(t){const r=t.value;e[u]&&e[u](r.key,r.value),e[s]-=r.length,e[d].delete(r.key),e[h].removeNode(t)}};class v{constructor(e,t,r,n,i){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=i||0}}const _=(e,t,r,n)=>{let i=r.value;g(e,i)&&(m(e,r),e[a]||(i=void 0)),i&&t.call(n,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||p;if(this[o]="function"!=typeof t?p:t,this[a]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[u]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,b(this)}get max(){return this[i]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,b(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=p),e!==this[o]&&(this[o]=e,this[s]=0,this[h].forEach((e=>{e.length=this[o](e.value,e.key),this[s]+=e.length}))),b(this)}get lengthCalculator(){return this[o]}get length(){return this[s]}get itemCount(){return this[h].length}rforEach(e,t){t=t||this;for(let r=this[h].tail;null!==r;){const n=r.prev;_(this,e,r,t),r=n}}forEach(e,t){t=t||this;for(let r=this[h].head;null!==r;){const n=r.next;_(this,e,r,t),r=n}}keys(){return this[h].toArray().map((e=>e.key))}values(){return this[h].toArray().map((e=>e.value))}reset(){this[u]&&this[h]&&this[h].length&&this[h].forEach((e=>this[u](e.key,e.value))),this[d]=new Map,this[h]=new n,this[s]=0}dump(){return this[h].map((e=>!g(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[h]}set(e,t,r){if((r=r||this[c])&&"number"!=typeof r)throw new TypeError("maxAge must be a number");const n=r?Date.now():0,a=this[o](t,e);if(this[d].has(e)){if(a>this[i])return m(this,this[d].get(e)),!1;const o=this[d].get(e).value;return this[u]&&(this[l]||this[u](e,o.value)),o.now=n,o.maxAge=r,o.value=t,this[s]+=a-o.length,o.length=a,this.get(e),b(this),!0}const f=new v(e,t,a,n,r);return f.length>this[i]?(this[u]&&this[u](e,t),!1):(this[s]+=f.length,this[h].unshift(f),this[d].set(e,this[h].head),b(this),!0)}has(e){if(!this[d].has(e))return!1;const t=this[d].get(e).value;return!g(this,t)}get(e){return y(this,e,!0)}peek(e){return y(this,e,!1)}pop(){const e=this[h].tail;return e?(m(this,e),e.value):null}del(e){m(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r],i=n.e||0;if(0===i)this.set(n.k,n.v);else{const e=i-t;e>0&&this.set(n.k,n.v,e)}}}prune(){this[d].forEach(((e,t)=>y(this,t,!1)))}}},14171:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=n&&i&&"function"==typeof i.get?i.get:null,o=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=a&&c&&"function"==typeof c.get?c.get:null,l=a&&Set.prototype.forEach,h="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,y=Object.prototype.toString,g=Function.prototype.toString,b=String.prototype.match,m=String.prototype.slice,v=String.prototype.replace,_=String.prototype.toUpperCase,w=String.prototype.toLowerCase,E=RegExp.prototype.test,S=Array.prototype.concat,x=Array.prototype.join,k=Array.prototype.slice,C=Math.floor,I="function"==typeof BigInt?BigInt.prototype.valueOf:null,R=Object.getOwnPropertySymbols,A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,M="function"==typeof Symbol&&"object"==typeof Symbol.iterator,N="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===M||"symbol")?Symbol.toStringTag:null,O=Object.prototype.propertyIsEnumerable,T=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function j(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-C(-e):C(e);if(n!==e){var i=String(n),s=m.call(t,i.length+1);return v.call(i,r,"$&_")+"."+v.call(v.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,r,"$&_")}var L=r(3771),P=L.custom,D=z(P)?P:null;function B(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function F(e){return v.call(String(e),/"/g,""")}function U(e){return!("[object Array]"!==W(e)||N&&"object"==typeof e&&N in e)}function $(e){return!("[object RegExp]"!==W(e)||N&&"object"==typeof e&&N in e)}function z(e){if(M)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(t){}return!1}e.exports=function e(t,r,n,i){var a=r||{};if(H(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(H(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!H(a,"customInspect")||a.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(H(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(H(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=a.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 J(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return y?j(t,_):_}if("bigint"==typeof t){var E=String(t)+"n";return y?j(t,E):E}var C=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=C&&C>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var R=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=x.call(Array(e.indent+1)," ")}return{base:r,prev:x.call(Array(t+1),r)}}(a,n);if(void 0===i)i=[];else if(q(i,t)>=0)return"[Circular]";function P(t,r,s){if(r&&(i=k.call(i)).push(r),s){var o={depth:a.depth};return H(a,"quoteStyle")&&(o.quoteStyle=a.quoteStyle),e(t,o,n+1,i)}return e(t,a,n+1,i)}if("function"==typeof t&&!$(t)){var V=function(e){if(e.name)return e.name;var t=b.call(g.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),G=X(t,P);return"[Function"+(V?": "+V:" (anonymous)")+"]"+(G.length>0?" { "+x.call(G,", ")+" }":"")}if(z(t)){var ee=M?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):A.call(t);return"object"!=typeof t||M?ee:Z(ee)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var te="<"+w.call(String(t.nodeName)),re=t.attributes||[],ne=0;ne"}if(U(t)){if(0===t.length)return"[]";var ie=X(t,P);return R&&!function(e){for(var t=0;t=0)return!1;return!0}(ie)?"["+K(ie,R)+"]":"[ "+x.call(ie,", ")+" ]"}if(function(e){return!("[object Error]"!==W(e)||N&&"object"==typeof e&&N in e)}(t)){var se=X(t,P);return"cause"in Error.prototype||!("cause"in t)||O.call(t,"cause")?0===se.length?"["+String(t)+"]":"{ ["+String(t)+"] "+x.call(se,", ")+" }":"{ ["+String(t)+"] "+x.call(S.call("[cause]: "+P(t.cause),se),", ")+" }"}if("object"==typeof t&&c){if(D&&"function"==typeof t[D]&&L)return L(t,{depth:C-n});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e);try{u.call(e)}catch(te){return!0}return e instanceof Map}catch(t){}return!1}(t)){var oe=[];return o&&o.call(t,(function(e,r){oe.push(P(r,t,!0)+" => "+P(e,t))})),Q("Map",s.call(t),oe,R)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{s.call(e)}catch(t){return!0}return e instanceof Set}catch(r){}return!1}(t)){var ae=[];return l&&l.call(t,(function(e){ae.push(P(e,t))})),Q("Set",u.call(t),ae,R)}if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(te){return!0}return e instanceof WeakMap}catch(t){}return!1}(t))return Y("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(te){return!0}return e instanceof WeakSet}catch(t){}return!1}(t))return Y("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(t){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==W(e)||N&&"object"==typeof e&&N in e)}(t))return Z(P(Number(t)));if(function(e){if(!e||"object"!=typeof e||!I)return!1;try{return I.call(e),!0}catch(t){}return!1}(t))return Z(P(I.call(t)));if(function(e){return!("[object Boolean]"!==W(e)||N&&"object"==typeof e&&N in e)}(t))return Z(p.call(t));if(function(e){return!("[object String]"!==W(e)||N&&"object"==typeof e&&N in e)}(t))return Z(P(String(t)));if(!function(e){return!("[object Date]"!==W(e)||N&&"object"==typeof e&&N in e)}(t)&&!$(t)){var ce=X(t,P),ue=T?T(t)===Object.prototype:t instanceof Object||t.constructor===Object,le=t instanceof Object?"":"null prototype",he=!ue&&N&&Object(t)===t&&N in t?m.call(W(t),8,-1):le?"Object":"",de=(ue||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(he||le?"["+x.call(S.call([],he||[],le||[]),": ")+"] ":"");return 0===ce.length?de+"{}":R?de+"{"+K(ce,R)+"}":de+"{ "+x.call(ce,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function H(e,t){return V.call(e,t)}function W(e){return y.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;rt.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return J(m.call(e,0,t.maxStringLength),t)+n}return B(v.call(v.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",t)}function G(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+_.call(t.toString(16))}function Z(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function Q(e,t,r,n){return e+" ("+t+") {"+(n?K(r,n):x.call(r,", "))+"}"}function K(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+x.call(e,","+r)+"\n"+t.prev}function X(e,t){var r=U(e),n=[];if(r){n.length=e.length;for(var i=0;i{"use strict";const t=(e,t)=>function(){const r=t.promiseModule,n=new Array(arguments.length);for(let e=0;e{t.errorFirst?n.push((function(e,n){if(t.multiArgs){const t=new Array(arguments.length-1);for(let e=1;e{r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},r);const n=e=>{const t=t=>"string"==typeof t?e===t:t.test(e);return r.include?r.include.some(t):!r.exclude.some(t)};let i;i="function"==typeof e?function(){return r.excludeMain?e.apply(this,arguments):t(e,r).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e));for(const s in e){const o=e[s];i[s]="function"==typeof o&&n(s)?t(o,r):o}return i}},41209:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",i="RFC3986";e.exports={default:i,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:i}},24983:(e,t,r)=>{"use strict";var n=r(62302),i=r(4655),s=r(41209);e.exports={formats:s,parse:i,stringify:n}},4655:(e,t,r)=>{"use strict";var n=r(12491),i=Object.prototype.hasOwnProperty,s=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=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,r,n){if(e){var s=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(s),u=a?s.slice(0,a.index):s,l=[];if(u){if(!r.plainObjects&&i.call(Object.prototype,u)&&!r.allowPrototypes)return;l.push(u)}for(var h=0;r.depth>0&&null!==(a=o.exec(s))&&h=0;--s){var o,a=e[s];if("[]"===a&&r.parseArrays)o=[].concat(i);else{o=r.plainObjects?Object.create(null):{};var u="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(u,10);r.parseArrays||""!==u?!isNaN(l)&&a!==u&&String(l)===u&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(o=[])[l]=i:"__proto__"!==u&&(o[u]=i):o={0:i}}i=o}return i}(l,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return o;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?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,t){var r,u={__proto__:null},l=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=t.parameterLimit===1/0?void 0:t.parameterLimit,d=l.split(t.delimiter,h),f=-1,p=t.charset;if(t.charsetSentinel)for(r=0;r-1&&(g=s(g)?[g]:g),i.call(u,y)?u[y]=n.combine(u[y],g):u[y]=g}return u}(e,r):e,h=r.plainObjects?Object.create(null):{},d=Object.keys(l),f=0;f{"use strict";var n=r(98586),i=r(12491),s=r(41209),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},h=Date.prototype.toISOString,d=s.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:s.formatters[d],indices:!1,serializeDate:function(e){return h.call(e)},skipNulls:!1,strictNullHandling:!1},p={},y=function e(t,r,s,o,a,u,h,d,y,g,b,m,v,_,w,E){for(var S,x=t,k=E,C=0,I=!1;void 0!==(k=k.get(p))&&!I;){var R=k.get(t);if(C+=1,void 0!==R){if(R===C)throw new RangeError("Cyclic object value");I=!0}void 0===k.get(p)&&(C=0)}if("function"==typeof d?x=d(r,x):x instanceof Date?x=b(x):"comma"===s&&c(x)&&(x=i.maybeMap(x,(function(e){return e instanceof Date?b(e):e}))),null===x){if(a)return h&&!_?h(r,f.encoder,w,"key",m):r;x=""}if("string"==typeof(S=x)||"number"==typeof S||"boolean"==typeof S||"symbol"==typeof S||"bigint"==typeof S||i.isBuffer(x))return h?[v(_?r:h(r,f.encoder,w,"key",m))+"="+v(h(x,f.encoder,w,"value",m))]:[v(r)+"="+v(String(x))];var A,M=[];if(void 0===x)return M;if("comma"===s&&c(x))_&&h&&(x=i.maybeMap(x,h)),A=[{value:x.length>0?x.join(",")||null:void 0}];else if(c(d))A=d;else{var N=Object.keys(x);A=y?N.sort(y):N}for(var O=o&&c(x)&&1===x.length?r+"[]":r,T=0;T0?w+_:""}},12491:(e,t,r)=>{"use strict";var n=r(41209),i=Object.prototype.hasOwnProperty,s=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n1;){var t=e.pop(),r=t.obj[t.prop];if(s(r)){for(var n=[],i=0;i=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||s===n.RFC1738&&(40===l||41===l)?c+=a.charAt(u):l<128?c+=o[l]:l<2048?c+=o[192|l>>6]+o[128|63&l]:l<55296||l>=57344?c+=o[224|l>>12]+o[128|l>>6&63]+o[128|63&l]:(u+=1,l=65536+((1023&l)<<10|1023&a.charCodeAt(u)),c+=o[240|l>>18]+o[128|l>>12&63]+o[128|l>>6&63]+o[128|63&l])}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(s(e)){for(var r=[],n=0;n{"use strict";var t={};function r(e,r,n){n||(n=Error);var i=function(e){var t,n;function i(t,n,i){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,i))||this}return n=e,(t=i).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=e,t[e]=i}function n(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map((function(e){return String(e)})),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:2===r?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}r("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(e,t,r){var i,s,o,a;if("string"==typeof t&&(s="not ",t.substr(!o||o<0?0:+o,s.length)===s)?(i="must not be",t=t.replace(/^not /,"")):i="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}(e," argument"))a="The ".concat(e," ").concat(i," ").concat(n(t,"type"));else{var c=function(e,t,r){return"number"!=typeof r&&(r=0),!(r+t.length>e.length)&&-1!==e.indexOf(t,r)}(e,".")?"property":"argument";a='The "'.concat(e,'" ').concat(c," ").concat(i," ").concat(n(t,"type"))}return a+=". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.q=t},51718:(e,t,r)=>{"use strict";var n=r(13158),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var s=r(71184),o=r(62525);r(19574)(l,s);for(var a=i(o.prototype),c=0;c{"use strict";e.exports=i;var n=r(20392);function i(e){if(!(this instanceof i))return new i(e);n.call(this,e)}r(19574)(i,n),i.prototype._transform=function(e,t,r){r(null,e)}},71184:(e,t,r)=>{"use strict";var n,i=r(13158);e.exports=k,k.ReadableState=x;r(71715).EventEmitter;var s=function(e,t){return e.listeners(t).length},o=r(85612),a=r(19254).Buffer,c=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u,l=r(12107);u=l&&l.debuglog?l.debuglog("stream"):function(){};var h,d,f,p=r(49259),y=r(45750),g=r(97571).getHighWaterMark,b=r(62324).q,m=b.ERR_INVALID_ARG_TYPE,v=b.ERR_STREAM_PUSH_AFTER_EOF,_=b.ERR_METHOD_NOT_IMPLEMENTED,w=b.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(19574)(k,o);var E=y.errorOrDestroy,S=["error","close","destroy","pause","resume"];function x(e,t,i){n=n||r(51718),e=e||{},"boolean"!=typeof i&&(i=t instanceof n),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(h||(h=r(38550).s),this.decoder=new h(e.encoding),this.encoding=e.encoding)}function k(e){if(n=n||r(51718),!(this instanceof k))return new k(e);var t=this instanceof n;this._readableState=new x(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),o.call(this)}function C(e,t,r,n,i){u("readableAddChunk",t);var s,o=e._readableState;if(null===t)o.reading=!1,function(e,t){if(u("onEofChunk"),t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,t.sync?M(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,N(e)))}(e,o);else if(i||(s=function(e,t){var r;n=t,a.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new m("chunk",["string","Buffer","Uint8Array"],t));var n;return r}(o,t)),s)E(e,s);else if(o.objectMode||t&&t.length>0)if("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===a.prototype||(t=function(e){return a.from(e)}(t)),n)o.endEmitted?E(e,new w):I(e,o,t,!0);else if(o.ended)E(e,new v);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?I(e,o,t,!1):O(e,o)):I(e,o,t,!1)}else n||(o.reading=!1,O(e,o));return!o.ended&&(o.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=R?e=R:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function M(e){var t=e._readableState;u("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(u("emitReadable",t.flowing),t.emittedReadable=!0,i.nextTick(N,e))}function N(e){var t=e._readableState;u("emitReadable_",t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit("readable"),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,D(e)}function O(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(T,e,t))}function T(e,t){for(;!t.reading&&!t.ended&&(t.length0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function L(e){u("readable nexttick read 0"),e.read(0)}function P(e,t){u("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),D(e),t.flowing&&!t.reading&&e.read(0)}function D(e){var t=e._readableState;for(u("flow",t.flowing);t.flowing&&null!==e.read(););}function B(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):r=t.buffer.consume(e,t.decoder),r);var r}function F(e){var t=e._readableState;u("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(U,t,e))}function U(e,t){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,t.readable=!1,t.emit("end"),e.autoDestroy)){var r=t._writableState;(!r||r.autoDestroy&&r.finished)&&t.destroy()}}function $(e,t){for(var r=0,n=e.length;r=t.highWaterMark:t.length>0)||t.ended))return u("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):M(this),null;if(0===(e=A(e,t))&&t.ended)return 0===t.length&&F(this),null;var n,i=t.needReadable;return u("need readable",i),(0===t.length||t.length-e0?B(e,t):null)?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&F(this)),null!==n&&this.emit("data",n),n},k.prototype._read=function(e){E(this,new _("_read()"))},k.prototype.pipe=function(e,t){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=e;break;case 1:n.pipes=[n.pipes,e];break;default:n.pipes.push(e)}n.pipesCount+=1,u("pipe count=%d opts=%j",n.pipesCount,t);var o=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?c:g;function a(t,i){u("onunpipe"),t===r&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,u("cleanup"),e.removeListener("close",p),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",f),e.removeListener("unpipe",a),r.removeListener("end",c),r.removeListener("end",g),r.removeListener("data",d),h=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||l())}function c(){u("onend"),e.end()}n.endEmitted?i.nextTick(o):r.once("end",o),e.on("unpipe",a);var l=function(e){return function(){var t=e._readableState;u("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,D(e))}}(r);e.on("drain",l);var h=!1;function d(t){u("ondata");var i=e.write(t);u("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==$(n.pipes,e))&&!h&&(u("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(t){u("onerror",t),g(),e.removeListener("error",f),0===s(e,"error")&&E(e,t)}function p(){e.removeListener("finish",y),g()}function y(){u("onfinish"),e.removeListener("close",p),g()}function g(){u("unpipe"),r.unpipe(e)}return r.on("data",d),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",f),e.once("close",p),e.once("finish",y),e.emit("pipe",r),n.flowing||(u("pipe resume"),r.resume()),e},k.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,u("on readable",n.length,n.reading),n.length?M(this):n.reading||i.nextTick(L,this))),r},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,t){var r=o.prototype.removeListener.call(this,e,t);return"readable"===e&&i.nextTick(j,this),r},k.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(j,this),t},k.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(P,e,t))}(this,e)),e.paused=!1,this},k.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(u("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(u("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var s=0;s{"use strict";e.exports=l;var n=r(62324).q,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(51718);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new s);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length{"use strict";var n,i=r(13158);function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=k,k.WritableState=x;var o={deprecate:r(54762)},a=r(85612),c=r(19254).Buffer,u=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var l,h=r(45750),d=r(97571).getHighWaterMark,f=r(62324).q,p=f.ERR_INVALID_ARG_TYPE,y=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,b=f.ERR_STREAM_CANNOT_PIPE,m=f.ERR_STREAM_DESTROYED,v=f.ERR_STREAM_NULL_VALUES,_=f.ERR_STREAM_WRITE_AFTER_END,w=f.ERR_UNKNOWN_ENCODING,E=h.errorOrDestroy;function S(){}function x(e,t,o){n=n||r(51718),e=e||{},"boolean"!=typeof o&&(o=t instanceof n),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=d(this,e,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var a=!1===e.decodeStrings;this.decodeStrings=!a,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,s=r.writecb;if("function"!=typeof s)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,s){--t.pendingcb,r?(i.nextTick(s,n),i.nextTick(N,e,t),e._writableState.errorEmitted=!0,E(e,n)):(s(n),e._writableState.errorEmitted=!0,E(e,n),N(e,t))}(e,r,n,t,s);else{var o=A(r)||e.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||R(e,r),n?i.nextTick(I,e,r,o,s):I(e,r,o,s)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function k(e){var t=this instanceof(n=n||r(51718));if(!t&&!l.call(k,this))return new k(e);this._writableState=new x(e,this,t),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),a.call(this)}function C(e,t,r,n,i,s,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new m("write")):r?e._writev(i,t.onwrite):e._write(i,s,t.onwrite),t.sync=!1}function I(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),N(e,t)}function R(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var a=0,c=!0;r;)i[a]=r,r.isBuf||(c=!1),r=r.next,a+=1;i.allBuffers=c,C(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,h=r.callback;if(C(e,t,!1,t.objectMode?1:u.length,u,l,h),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function A(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function M(e,t){e._final((function(r){t.pendingcb--,r&&E(e,r),t.prefinished=!0,e.emit("prefinish"),N(e,t)}))}function N(e,t){var r=A(t);if(r&&(function(e,t){t.prefinished||t.finalCalled||("function"!=typeof e._final||t.destroyed?(t.prefinished=!0,e.emit("prefinish")):(t.pendingcb++,t.finalCalled=!0,i.nextTick(M,e,t)))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"),t.autoDestroy))){var n=e._readableState;(!n||n.autoDestroy&&n.endEmitted)&&e.destroy()}return r}r(19574)(k,a),x.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(x.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!l.call(this,e)||this===k&&(e&&e._writableState instanceof x)}})):l=function(e){return e instanceof this},k.prototype.pipe=function(){E(this,new b)},k.prototype.write=function(e,t,r){var n,s=this._writableState,o=!1,a=!s.objectMode&&(n=e,c.isBuffer(n)||n instanceof u);return a&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=s.defaultEncoding),"function"!=typeof r&&(r=S),s.ending?function(e,t){var r=new _;E(e,r),i.nextTick(t,r)}(this,r):(a||function(e,t,r,n){var s;return null===r?s=new v:"string"==typeof r||t.objectMode||(s=new p("chunk",["string","Buffer"],r)),!s||(E(e,s),i.nextTick(n,s),!1)}(this,s,e,r))&&(s.pendingcb++,o=function(e,t,r,n,i,s){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r));return t}(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length-1))throw new w(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,t,r){r(new y("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,t,r){var n=this._writableState;return"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||function(e,t,r){t.ending=!0,N(e,t),r&&(t.finished?i.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=h.destroy,k.prototype._undestroy=h.undestroy,k.prototype._destroy=function(e,t){t(e)}},89033:(e,t,r)=>{"use strict";var n,i=r(13158);function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=r(86650),a=Symbol("lastResolve"),c=Symbol("lastReject"),u=Symbol("error"),l=Symbol("ended"),h=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function p(e,t){return{value:e,done:t}}function y(e){var t=e[a];if(null!==t){var r=e[f].read();null!==r&&(e[h]=null,e[a]=null,e[c]=null,t(p(r,!1)))}}function g(e){i.nextTick(y,e)}var b=Object.getPrototypeOf((function(){})),m=Object.setPrototypeOf((s(n={get stream(){return this[f]},next:function(){var e=this,t=this[u];if(null!==t)return Promise.reject(t);if(this[l])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise((function(t,r){i.nextTick((function(){e[u]?r(e[u]):t(p(void 0,!0))}))}));var r,n=this[h];if(n)r=new Promise(function(e,t){return function(r,n){e.then((function(){t[l]?r(p(void 0,!0)):t[d](r,n)}),n)}}(n,this));else{var s=this[f].read();if(null!==s)return Promise.resolve(p(s,!1));r=new Promise(this[d])}return this[h]=r,r}},Symbol.asyncIterator,(function(){return this})),s(n,"return",(function(){var e=this;return new Promise((function(t,r){e[f].destroy(null,(function(e){e?r(e):t(p(void 0,!0))}))}))})),n),b);e.exports=function(e){var t,r=Object.create(m,(s(t={},f,{value:e,writable:!0}),s(t,a,{value:null,writable:!0}),s(t,c,{value:null,writable:!0}),s(t,u,{value:null,writable:!0}),s(t,l,{value:e._readableState.endEmitted,writable:!0}),s(t,d,{value:function(e,t){var n=r[f].read();n?(r[h]=null,r[a]=null,r[c]=null,e(p(n,!1))):(r[a]=e,r[c]=t)},writable:!0}),t));return r[h]=null,o(e,(function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[c];return null!==t&&(r[h]=null,r[a]=null,r[c]=null,t(e)),void(r[u]=e)}var n=r[a];null!==n&&(r[h]=null,r[a]=null,r[c]=null,n(p(void 0,!0))),r[l]=!0})),e.on("readable",g.bind(null,r)),r}},49259:(e,t,r)=>{"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:"unshift",value:function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r}},{key:"concat",value:function(e){if(0===this.length)return c.alloc(0);for(var t,r,n,i=c.allocUnsafe(e>>>0),s=this.head,o=0;s;)t=s.data,r=i,n=o,c.prototype.copy.call(t,r,n),o+=s.data.length,s=s.next;return i}},{key:"consume",value:function(e,t){var r;return ei.length?i.length:e;if(s===i.length?n+=i:n+=i.slice(0,e),0==(e-=s)){s===i.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=i.slice(s));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(e){var t=c.allocUnsafe(e),r=this.head,n=1;for(r.data.copy(t),e-=r.data.length;r=r.next;){var i=r.data,s=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,s),0==(e-=s)){s===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(s));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return u(this,i(i({},t),{},{depth:0,customInspect:!1}))}}])&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()},45750:(e,t,r)=>{"use strict";var n=r(13158);function i(e,t){o(e,t),s(e)}function s(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,a=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return a||c?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(o,this,e)):n.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted?n.nextTick(s,r):(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t?(n.nextTick(s,r),t(e)):n.nextTick(s,r)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}}},86650:(e,t,r)=>{"use strict";var n=r(62324).q.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,r,s){if("function"==typeof r)return e(t,null,r);r||(r={}),s=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i{e.exports=function(){throw new Error("Readable.from is not available in the browser")}},778:(e,t,r)=>{"use strict";var n;var i=r(62324).q,s=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function a(e){if(e)throw e}function c(e,t,i,s){s=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(s);var a=!1;e.on("close",(function(){a=!0})),void 0===n&&(n=r(86650)),n(e,{readable:t,writable:i},(function(e){if(e)return s(e);a=!0,s()}));var c=!1;return function(t){if(!a&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void s(t||new o("pipe"))}}function u(e){e()}function l(e,t){return e.pipe(t)}function h(e){return e.length?"function"!=typeof e[e.length-1]?a:e.pop():a}e.exports=function(){for(var e=arguments.length,t=new Array(e),r=0;r0,(function(e){n||(n=e),e&&o.forEach(u),s||(o.forEach(u),i(n))}))}));return t.reduce(l)}},97571:(e,t,r)=>{"use strict";var n=r(62324).q.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,i){var s=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,i,r);if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new n(i?r:"highWaterMark",s);return Math.floor(s)}return e.objectMode?16:16384}}},85612:(e,t,r)=>{e.exports=r(71715).EventEmitter},64604:(e,t,r)=>{(t=e.exports=r(71184)).Stream=t,t.Readable=t,t.Writable=r(62525),t.Duplex=r(51718),t.Transform=r(20392),t.PassThrough=r(69036),t.finished=r(86650),t.pipeline=r(778)},21893:(e,t,r)=>{var n=r(19254),i=n.Buffer;function s(e,t){for(var r in e)t[r]=e[r]}function o(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(s(n,t),t.Buffer=o),o.prototype=Object.create(i.prototype),s(i,o),o.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},o.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},o.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},o.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},47382:(e,t,r)=>{const n=Symbol("SemVer ANY");class i{static get ANY(){return n}constructor(e,t){if(t=s(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),u("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(e){const t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR],r=e.match(t);if(!r)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==r[1]?r[1]:"","="===this.operator&&(this.operator=""),r[2]?this.semver=new l(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(u("Comparator.test",e,this.options.loose),this.semver===n||e===n)return!0;if("string"==typeof e)try{e=new l(e,this.options)}catch(t){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new h(e.value,t).test(this.value):""===e.operator?""===e.value||new h(this.value,t).test(e.semver):(!(t=s(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}e.exports=i;const s=r(13259),{safeRe:o,t:a}=r(75826),c=r(40213),u=r(91243),l=r(37643),h=r(70032)},70032:(e,t,r)=>{class n{constructor(e,t){if(t=s(t),e instanceof n)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new n(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!g(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&b(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&p)|(this.options.loose&&y))+":"+e,r=i.get(t);if(r)return r;const n=this.options.loose,s=n?u[l.HYPHENRANGELOOSE]:u[l.HYPHENRANGE];e=e.replace(s,A(this.options.includePrerelease)),a("hyphen replace",e),e=e.replace(u[l.COMPARATORTRIM],h),a("comparator trim",e),e=e.replace(u[l.TILDETRIM],d),a("tilde trim",e),e=e.replace(u[l.CARETTRIM],f),a("caret trim",e);let c=e.split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>R(e,this.options)));n&&(c=c.filter((e=>(a("loose invalid filter",e,this.options),!!e.match(u[l.COMPARATORLOOSE]))))),a("range list",c);const b=new Map,m=c.map((e=>new o(e,this.options)));for(const i of m){if(g(i))return[i];b.set(i.value,i)}b.size>1&&b.has("")&&b.delete("");const _=[...b.values()];return i.set(t,_),_}intersects(e,t){if(!(e instanceof n))throw new TypeError("a Range is required");return this.set.some((r=>m(r,t)&&e.set.some((e=>m(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(t){return!1}for(let r=0;r"<0.0.0-0"===e.value,b=e=>""===e.value,m=(e,t)=>{let r=!0;const n=e.slice();let i=n.pop();for(;r&&n.length;)r=n.every((e=>i.intersects(e,t))),i=n.pop();return r},v=(e,t)=>(a("comp",e,t),e=S(e,t),a("caret",e),e=w(e,t),a("tildes",e),e=k(e,t),a("xrange",e),e=I(e,t),a("stars",e),e),_=e=>!e||"x"===e.toLowerCase()||"*"===e,w=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" "),E=(e,t)=>{const r=t.loose?u[l.TILDELOOSE]:u[l.TILDE];return e.replace(r,((t,r,n,i,s)=>{let o;return a("tilde",e,t,r,n,i,s),_(r)?o="":_(n)?o=`>=${r}.0.0 <${+r+1}.0.0-0`:_(i)?o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`:s?(a("replaceTilde pr",s),o=`>=${r}.${n}.${i}-${s} <${r}.${+n+1}.0-0`):o=`>=${r}.${n}.${i} <${r}.${+n+1}.0-0`,a("tilde return",o),o}))},S=(e,t)=>e.trim().split(/\s+/).map((e=>x(e,t))).join(" "),x=(e,t)=>{a("caret",e,t);const r=t.loose?u[l.CARETLOOSE]:u[l.CARET],n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,i,s,o)=>{let c;return a("caret",e,t,r,i,s,o),_(r)?c="":_(i)?c=`>=${r}.0.0${n} <${+r+1}.0.0-0`:_(s)?c="0"===r?`>=${r}.${i}.0${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.0${n} <${+r+1}.0.0-0`:o?(a("replaceCaret pr",o),c="0"===r?"0"===i?`>=${r}.${i}.${s}-${o} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}-${o} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s}-${o} <${+r+1}.0.0-0`):(a("no pr"),c="0"===r?"0"===i?`>=${r}.${i}.${s}${n} <${r}.${i}.${+s+1}-0`:`>=${r}.${i}.${s}${n} <${r}.${+i+1}.0-0`:`>=${r}.${i}.${s} <${+r+1}.0.0-0`),a("caret return",c),c}))},k=(e,t)=>(a("replaceXRanges",e,t),e.split(/\s+/).map((e=>C(e,t))).join(" ")),C=(e,t)=>{e=e.trim();const r=t.loose?u[l.XRANGELOOSE]:u[l.XRANGE];return e.replace(r,((r,n,i,s,o,c)=>{a("xRange",e,r,n,i,s,o,c);const u=_(i),l=u||_(s),h=l||_(o),d=h;return"="===n&&d&&(n=""),c=t.includePrerelease?"-0":"",u?r=">"===n||"<"===n?"<0.0.0-0":"*":n&&d?(l&&(s=0),o=0,">"===n?(n=">=",l?(i=+i+1,s=0,o=0):(s=+s+1,o=0)):"<="===n&&(n="<",l?i=+i+1:s=+s+1),"<"===n&&(c="-0"),r=`${n+i}.${s}.${o}${c}`):l?r=`>=${i}.0.0${c} <${+i+1}.0.0-0`:h&&(r=`>=${i}.${s}.0${c} <${i}.${+s+1}.0-0`),a("xRange return",r),r}))},I=(e,t)=>(a("replaceStars",e,t),e.trim().replace(u[l.STAR],"")),R=(e,t)=>(a("replaceGTE0",e,t),e.trim().replace(u[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),A=e=>(t,r,n,i,s,o,a,c,u,l,h,d,f)=>`${r=_(n)?"":_(i)?`>=${n}.0.0${e?"-0":""}`:_(s)?`>=${n}.${i}.0${e?"-0":""}`:o?`>=${r}`:`>=${r}${e?"-0":""}`} ${c=_(u)?"":_(l)?`<${+u+1}.0.0-0`:_(h)?`<${u}.${+l+1}.0-0`:d?`<=${u}.${l}.${h}-${d}`:e?`<${u}.${l}.${+h+1}-0`:`<=${c}`}`.trim(),M=(e,t,r)=>{for(let n=0;n0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}},37643:(e,t,r)=>{const n=r(91243),{MAX_LENGTH:i,MAX_SAFE_INTEGER:s}=r(77218),{safeRe:o,t:a}=r(75826),c=r(13259),{compareIdentifiers:u}=r(14695);class l{constructor(e,t){if(t=c(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);n("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(t===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let n=[t,e];!1===r&&(n=[t]),0===u(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=l},31185:(e,t,r)=>{const n=r(50748);e.exports=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null}},40213:(e,t,r)=>{const n=r(71376),i=r(86421),s=r(48572),o=r(5058),a=r(44161),c=r(50937);e.exports=(e,t,r,u)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e===r;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),e!==r;case"":case"=":case"==":return n(e,r,u);case"!=":return i(e,r,u);case">":return s(e,r,u);case">=":return o(e,r,u);case"<":return a(e,r,u);case"<=":return c(e,r,u);default:throw new TypeError(`Invalid operator: ${t}`)}}},48034:(e,t,r)=>{const n=r(37643),i=r(50748),{safeRe:s,t:o}=r(75826);e.exports=(e,t)=>{if(e instanceof n)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let r=null;if((t=t||{}).rtl){let t;for(;(t=s[o.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length);)r&&t.index+t[0].length===r.index+r[0].length||(r=t),s[o.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;s[o.COERCERTL].lastIndex=-1}else r=e.match(s[o.COERCE]);return null===r?null:i(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)}},48290:(e,t,r)=>{const n=r(37643);e.exports=(e,t,r)=>{const i=new n(e,r),s=new n(t,r);return i.compare(s)||i.compareBuild(s)}},54027:(e,t,r)=>{const n=r(89094);e.exports=(e,t)=>n(e,t,!0)},89094:(e,t,r)=>{const n=r(37643);e.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))},18938:(e,t,r)=>{const n=r(50748);e.exports=(e,t)=>{const r=n(e,null,!0),i=n(t,null,!0),s=r.compare(i);if(0===s)return null;const o=s>0,a=o?r:i,c=o?i:r,u=!!a.prerelease.length;if(!!c.prerelease.length&&!u)return c.patch||c.minor?a.patch?"patch":a.minor?"minor":"major":"major";const l=u?"pre":"";return r.major!==i.major?l+"major":r.minor!==i.minor?l+"minor":r.patch!==i.patch?l+"patch":"prerelease"}},71376:(e,t,r)=>{const n=r(89094);e.exports=(e,t,r)=>0===n(e,t,r)},48572:(e,t,r)=>{const n=r(89094);e.exports=(e,t,r)=>n(e,t,r)>0},5058:(e,t,r)=>{const n=r(89094);e.exports=(e,t,r)=>n(e,t,r)>=0},84474:(e,t,r)=>{const n=r(37643);e.exports=(e,t,r,i,s)=>{"string"==typeof r&&(s=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,s).version}catch(o){return null}}},44161:(e,t,r)=>{const n=r(89094);e.exports=(e,t,r)=>n(e,t,r)<0},50937:(e,t,r)=>{const n=r(89094);e.exports=(e,t,r)=>n(e,t,r)<=0},17206:(e,t,r)=>{const n=r(37643);e.exports=(e,t)=>new n(e,t).major},75289:(e,t,r)=>{const n=r(37643);e.exports=(e,t)=>new n(e,t).minor},86421:(e,t,r)=>{const n=r(89094);e.exports=(e,t,r)=>0!==n(e,t,r)},50748:(e,t,r)=>{const n=r(37643);e.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(i){if(!r)return null;throw i}}},20134:(e,t,r)=>{const n=r(37643);e.exports=(e,t)=>new n(e,t).patch},57725:(e,t,r)=>{const n=r(50748);e.exports=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}},41909:(e,t,r)=>{const n=r(89094);e.exports=(e,t,r)=>n(t,e,r)},46117:(e,t,r)=>{const n=r(48290);e.exports=(e,t)=>e.sort(((e,r)=>n(r,e,t)))},28212:(e,t,r)=>{const n=r(70032);e.exports=(e,t,r)=>{try{t=new n(t,r)}catch(i){return!1}return t.test(e)}},64152:(e,t,r)=>{const n=r(48290);e.exports=(e,t)=>e.sort(((e,r)=>n(e,r,t)))},62043:(e,t,r)=>{const n=r(50748);e.exports=(e,t)=>{const r=n(e,t);return r?r.version:null}},37229:(e,t,r)=>{const n=r(75826),i=r(77218),s=r(37643),o=r(14695),a=r(50748),c=r(62043),u=r(31185),l=r(84474),h=r(18938),d=r(17206),f=r(75289),p=r(20134),y=r(57725),g=r(89094),b=r(41909),m=r(54027),v=r(48290),_=r(64152),w=r(46117),E=r(48572),S=r(44161),x=r(71376),k=r(86421),C=r(5058),I=r(50937),R=r(40213),A=r(48034),M=r(47382),N=r(70032),O=r(28212),T=r(30257),j=r(44435),L=r(97849),P=r(25154),D=r(15712),B=r(10752),F=r(75059),U=r(63373),$=r(12554),z=r(59271),V=r(19272);e.exports={parse:a,valid:c,clean:u,inc:l,diff:h,major:d,minor:f,patch:p,prerelease:y,compare:g,rcompare:b,compareLoose:m,compareBuild:v,sort:_,rsort:w,gt:E,lt:S,eq:x,neq:k,gte:C,lte:I,cmp:R,coerce:A,Comparator:M,Range:N,satisfies:O,toComparators:T,maxSatisfying:j,minSatisfying:L,minVersion:P,validRange:D,outside:B,gtr:F,ltr:U,intersects:$,simplifyRange:z,subset:V,SemVer:s,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},77218:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},91243:(e,t,r)=>{var n=r(13158),i=r(98399);const s="object"==typeof n&&{NODE_ENV:"production",NX_CLI_SET:"true",NX_WORKSPACE_ROOT:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk",NX_TERMINAL_OUTPUT_PATH:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk/node_modules/.cache/nx/terminalOutputs/0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"examples-sdk-frontend-react",NX_TASK_HASH:"0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13"}.NODE_DEBUG&&/\bsemver\b/i.test({NODE_ENV:"production",NX_CLI_SET:"true",NX_WORKSPACE_ROOT:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk",NX_TERMINAL_OUTPUT_PATH:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk/node_modules/.cache/nx/terminalOutputs/0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"examples-sdk-frontend-react",NX_TASK_HASH:"0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13"}.NODE_DEBUG)?(...e)=>i.error("SEMVER",...e):()=>{};e.exports=s},14695:e=>{const t=/^[0-9]+$/,r=(e,r)=>{const n=t.test(e),i=t.test(r);return n&&i&&(e=+e,r=+r),e===r?0:n&&!i?-1:i&&!n?1:er(t,e)}},13259:e=>{const t=Object.freeze({loose:!0}),r=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:r},75826:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:s}=r(77218),o=r(91243),a=(t=e.exports={}).re=[],c=t.safeRe=[],u=t.src=[],l=t.t={};let h=0;const d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",s],[d,i]],p=(e,t,r)=>{const n=(e=>{for(const[t,r]of f)e=e.split(`${t}*`).join(`${t}{0,${r}}`).split(`${t}+`).join(`${t}{1,${r}}`);return e})(t),i=h++;o(e,i,t),l[e]=i,u[i]=t,a[i]=new RegExp(t,r?"g":void 0),c[i]=new RegExp(n,r?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),p("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER","[a-zA-Z0-9-]+"),p("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),p("FULL",`^${u[l.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),p("LOOSE",`^${u[l.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),p("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),p("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),p("COERCERTL",u[l.COERCE],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},75059:(e,t,r)=>{const n=r(10752);e.exports=(e,t,r)=>n(e,t,">",r)},12554:(e,t,r)=>{const n=r(70032);e.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))},63373:(e,t,r)=>{const n=r(10752);e.exports=(e,t,r)=>n(e,t,"<",r)},44435:(e,t,r)=>{const n=r(37643),i=r(70032);e.exports=(e,t,r)=>{let s=null,o=null,a=null;try{a=new i(t,r)}catch(c){return null}return e.forEach((e=>{a.test(e)&&(s&&-1!==o.compare(e)||(s=e,o=new n(s,r)))})),s}},97849:(e,t,r)=>{const n=r(37643),i=r(70032);e.exports=(e,t,r)=>{let s=null,o=null,a=null;try{a=new i(t,r)}catch(c){return null}return e.forEach((e=>{a.test(e)&&(s&&1!==o.compare(e)||(s=e,o=new n(s,r)))})),s}},25154:(e,t,r)=>{const n=r(37643),i=r(70032),s=r(48572);e.exports=(e,t)=>{e=new i(e,t);let r=new n("0.0.0");if(e.test(r))return r;if(r=new n("0.0.0-0"),e.test(r))return r;r=null;for(let i=0;i{const t=new n(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!s(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||r&&!s(r,o)||(r=o)}return r&&e.test(r)?r:null}},10752:(e,t,r)=>{const n=r(37643),i=r(47382),{ANY:s}=i,o=r(70032),a=r(28212),c=r(48572),u=r(44161),l=r(50937),h=r(5058);e.exports=(e,t,r,d)=>{let f,p,y,g,b;switch(e=new n(e,d),t=new o(t,d),r){case">":f=c,p=l,y=u,g=">",b=">=";break;case"<":f=u,p=h,y=c,g="<",b="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,d))return!1;for(let n=0;n{e.semver===s&&(e=new i(">=0.0.0")),o=o||e,a=a||e,f(e.semver,o.semver,d)?o=e:y(e.semver,a.semver,d)&&(a=e)})),o.operator===g||o.operator===b)return!1;if((!a.operator||a.operator===g)&&p(e,a.semver))return!1;if(a.operator===b&&y(e,a.semver))return!1}return!0}},59271:(e,t,r)=>{const n=r(28212),i=r(89094);e.exports=(e,t,r)=>{const s=[];let o=null,a=null;const c=e.sort(((e,t)=>i(e,t,r)));for(const i of c){n(i,t,r)?(a=i,o||(o=i)):(a&&s.push([o,a]),a=null,o=null)}o&&s.push([o,null]);const u=[];for(const[n,i]of s)n===i?u.push(n):i||n!==c[0]?i?n===c[0]?u.push(`<=${i}`):u.push(`${n} - ${i}`):u.push(`>=${n}`):u.push("*");const l=u.join(" || "),h="string"==typeof t.raw?t.raw:String(t);return l.length{const n=r(70032),i=r(47382),{ANY:s}=i,o=r(28212),a=r(89094),c=[new i(">=0.0.0-0")],u=[new i(">=0.0.0")],l=(e,t,r)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===s){if(1===t.length&&t[0].semver===s)return!0;e=r.includePrerelease?c:u}if(1===t.length&&t[0].semver===s){if(r.includePrerelease)return!0;t=u}const n=new Set;let i,l,f,p,y,g,b;for(const s of e)">"===s.operator||">="===s.operator?i=h(i,s,r):"<"===s.operator||"<="===s.operator?l=d(l,s,r):n.add(s.semver);if(n.size>1)return null;if(i&&l){if(f=a(i.semver,l.semver,r),f>0)return null;if(0===f&&(">="!==i.operator||"<="!==l.operator))return null}for(const s of n){if(i&&!o(s,String(i),r))return null;if(l&&!o(s,String(l),r))return null;for(const e of t)if(!o(s,String(e),r))return!1;return!0}let m=!(!l||r.includePrerelease||!l.semver.prerelease.length)&&l.semver,v=!(!i||r.includePrerelease||!i.semver.prerelease.length)&&i.semver;m&&1===m.prerelease.length&&"<"===l.operator&&0===m.prerelease[0]&&(m=!1);for(const s of t){if(b=b||">"===s.operator||">="===s.operator,g=g||"<"===s.operator||"<="===s.operator,i)if(v&&s.semver.prerelease&&s.semver.prerelease.length&&s.semver.major===v.major&&s.semver.minor===v.minor&&s.semver.patch===v.patch&&(v=!1),">"===s.operator||">="===s.operator){if(p=h(i,s,r),p===s&&p!==i)return!1}else if(">="===i.operator&&!o(i.semver,String(s),r))return!1;if(l)if(m&&s.semver.prerelease&&s.semver.prerelease.length&&s.semver.major===m.major&&s.semver.minor===m.minor&&s.semver.patch===m.patch&&(m=!1),"<"===s.operator||"<="===s.operator){if(y=d(l,s,r),y===s&&y!==l)return!1}else if("<="===l.operator&&!o(l.semver,String(s),r))return!1;if(!s.operator&&(l||i)&&0!==f)return!1}return!(i&&g&&!l&&0!==f)&&(!(l&&b&&!i&&0!==f)&&(!v&&!m))},h=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n>0?e:n<0||">"===t.operator&&">="===e.operator?t:e},d=(e,t,r)=>{if(!e)return t;const n=a(e.semver,t.semver,r);return n<0?e:n>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;e:for(const n of e.set){for(const e of t.set){const t=l(n,e,r);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},30257:(e,t,r)=>{const n=r(70032);e.exports=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},15712:(e,t,r)=>{const n=r(70032);e.exports=(e,t)=>{try{return new n(e,t).range||"*"}catch(r){return null}}},6361:(e,t,r)=>{var n=r(21893).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,s=e.length,o=this._len,a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var s=this._hash();return e?s.toString(e):s},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},2297:(e,t,r)=>{var n=e.exports=function(e){e=e.toLowerCase();var t=n[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t};n.sha=r(70474),n.sha1=r(21286),n.sha224=r(73361),n.sha256=r(3071),n.sha384=r(54047),n.sha512=r(97012)},70474:(e,t,r)=>{var n=r(19574),i=r(6361),s=r(21893).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,i.call(this,64,56)}function u(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),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,r=this._w,n=0|this._a,i=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,h=0;h<16;++h)r[h]=e.readInt32BE(4*h);for(;h<80;++h)r[h]=r[h-3]^r[h-8]^r[h-14]^r[h-16];for(var d=0;d<80;++d){var f=~~(d/20),p=0|((t=n)<<5|t>>>27)+l(f,i,s,a)+c+r[d]+o[f];c=a,a=s,s=u(i),i=n,n=p}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=s.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},21286:(e,t,r)=>{var n=r(19574),i=r(6361),s=r(21893).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function h(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),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,r=this._w,n=0|this._a,i=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,d=0;d<16;++d)r[d]=e.readInt32BE(4*d);for(;d<80;++d)r[d]=(t=r[d-3]^r[d-8]^r[d-14]^r[d-16])<<1|t>>>31;for(var f=0;f<80;++f){var p=~~(f/20),y=u(n)+h(p,i,s,a)+c+r[f]+o[p]|0;c=a,a=s,s=l(i),i=n,n=y}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=s.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},73361:(e,t,r)=>{var n=r(19574),i=r(3071),s=r(6361),o=r(21893).Buffer,a=new Array(64);function c(){this.init(),this._w=a,s.call(this,64,56)}n(c,i),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=o.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},3071:(e,t,r)=>{var n=r(19574),i=r(6361),s=r(21893).Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function c(){this.init(),this._w=a,i.call(this,64,56)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function h(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function f(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}n(c,i),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,r=this._w,n=0|this._a,i=0|this._b,s=0|this._c,a=0|this._d,c=0|this._e,p=0|this._f,y=0|this._g,g=0|this._h,b=0;b<16;++b)r[b]=e.readInt32BE(4*b);for(;b<64;++b)r[b]=0|(((t=r[b-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+r[b-7]+f(r[b-15])+r[b-16];for(var m=0;m<64;++m){var v=g+d(c)+u(c,p,y)+o[m]+r[m]|0,_=h(n)+l(n,i,s)|0;g=y,y=p,p=c,c=a+v|0,a=s,s=i,i=n,n=v+_|0}this._a=n+this._a|0,this._b=i+this._b|0,this._c=s+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0,this._f=p+this._f|0,this._g=y+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=s.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},54047:(e,t,r)=>{var n=r(19574),i=r(97012),s=r(6361),o=r(21893).Buffer,a=new Array(160);function c(){this.init(),this._w=a,s.call(this,128,112)}n(c,i),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=o.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+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},97012:(e,t,r)=>{var n=r(19574),i=r(6361),s=r(21893).Buffer,o=[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],a=new Array(160);function c(){this.init(),this._w=a,i.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function l(e,t,r){return e&t|r&(e|t)}function h(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function f(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 y(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function b(e,t){return e>>>0>>0?1:0}n(c,i),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,r=0|this._ah,n=0|this._bh,i=0|this._ch,s=0|this._dh,a=0|this._eh,c=0|this._fh,m=0|this._gh,v=0|this._hh,_=0|this._al,w=0|this._bl,E=0|this._cl,S=0|this._dl,x=0|this._el,k=0|this._fl,C=0|this._gl,I=0|this._hl,R=0;R<32;R+=2)t[R]=e.readInt32BE(4*R),t[R+1]=e.readInt32BE(4*R+4);for(;R<160;R+=2){var A=t[R-30],M=t[R-30+1],N=f(A,M),O=p(M,A),T=y(A=t[R-4],M=t[R-4+1]),j=g(M,A),L=t[R-14],P=t[R-14+1],D=t[R-32],B=t[R-32+1],F=O+P|0,U=N+L+b(F,O)|0;U=(U=U+T+b(F=F+j|0,j)|0)+D+b(F=F+B|0,B)|0,t[R]=U,t[R+1]=F}for(var $=0;$<160;$+=2){U=t[$],F=t[$+1];var z=l(r,n,i),V=l(_,w,E),H=h(r,_),W=h(_,r),q=d(a,x),J=d(x,a),G=o[$],Z=o[$+1],Y=u(a,c,m),Q=u(x,k,C),K=I+J|0,X=v+q+b(K,I)|0;X=(X=(X=X+Y+b(K=K+Q|0,Q)|0)+G+b(K=K+Z|0,Z)|0)+U+b(K=K+F|0,F)|0;var ee=W+V|0,te=H+z+b(ee,W)|0;v=m,I=C,m=c,C=k,c=a,k=x,a=s+X+b(x=S+K|0,S)|0,s=i,S=E,i=n,E=w,n=r,w=_,r=X+te+b(_=K+ee|0,K)|0}this._al=this._al+_|0,this._bl=this._bl+w|0,this._cl=this._cl+E|0,this._dl=this._dl+S|0,this._el=this._el+x|0,this._fl=this._fl+k|0,this._gl=this._gl+C|0,this._hl=this._hl+I|0,this._ah=this._ah+r+b(this._al,_)|0,this._bh=this._bh+n+b(this._bl,w)|0,this._ch=this._ch+i+b(this._cl,E)|0,this._dh=this._dh+s+b(this._dl,S)|0,this._eh=this._eh+a+b(this._el,x)|0,this._fh=this._fh+c+b(this._fl,k)|0,this._gh=this._gh+m+b(this._gl,C)|0,this._hh=this._hh+v+b(this._hl,I)|0},c.prototype._hash=function(){var e=s.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+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},98586:(e,t,r)=>{"use strict";var n=r(88030),i=r(49982),s=r(14171),o=n("%TypeError%"),a=n("%WeakMap%",!0),c=n("%Map%",!0),u=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),h=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),f=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),y=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new o("Side channel does not contain "+s(e))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(c){if(t)return d(t,n)}else if(r)return function(e,t){var r=y(e,t);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return h(e,n)}else if(c){if(t)return p(t,n)}else if(r)return function(e,t){return!!y(e,t)}(r,n);return!1},set:function(n,i){a&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new a),l(e,n,i)):c?(t||(t=new c),f(t,n,i)):(r||(r={key:{},next:null}),function(e,t,r){var n=y(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,i))}};return n}},38550:(e,t,r)=>{"use strict";var n=r(21893).Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=c,this.end=u,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=l,this.end=h,t=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function c(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function u(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function l(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function f(e){return e&&e.length?this.write(e):""}t.s=s,s.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},54762:(e,t,r)=>{var n=r(98399);function i(e){try{if(!global.localStorage)return!1}catch(r){return!1}var t=global.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(i("noDeprecation"))return e;var r=!1;return function(){if(!r){if(i("throwDeprecation"))throw new Error(t);i("traceDeprecation")?n.trace(t):n.warn(t),r=!0}return e.apply(this,arguments)}}},34810:e=>{e.exports=function(){for(var e={},r=0;r{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},39789:(e,t,r)=>{"use strict";function n(e){var t=this;if(t instanceof n||(t=new n),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var r=0,i=arguments.length;r1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var i=0;null!==n;i++)r=e(r,n.value,i),n=n.next;return r},n.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var i=this.length-1;null!==n;i--)r=e(r,n.value,i),n=n.prev;return r},n.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},n.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},n.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var r=new n;if(tthis.length&&(t=this.length);for(var i=0,s=this.head;null!==s&&ithis.length&&(t=this.length);for(var i=this.length,s=this.tail;null!==s&&i>t;i--)s=s.prev;for(;null!==s&&i>e;i--,s=s.prev)r.push(s.value);return r},n.prototype.splice=function(e,t,...r){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,s=this.head;null!==s&&n{"use strict";r.r(t),r.d(t,{Struct:()=>h,StructError:()=>i,any:()=>C,array:()=>I,assert:()=>d,assign:()=>b,bigint:()=>R,boolean:()=>A,coerce:()=>Q,create:()=>f,date:()=>M,defaulted:()=>K,define:()=>m,deprecated:()=>v,dynamic:()=>_,empty:()=>ee,enums:()=>N,func:()=>O,instance:()=>T,integer:()=>j,intersection:()=>L,is:()=>y,lazy:()=>w,literal:()=>P,map:()=>D,mask:()=>p,max:()=>re,min:()=>ne,never:()=>B,nonempty:()=>ie,nullable:()=>F,number:()=>U,object:()=>$,omit:()=>E,optional:()=>z,partial:()=>S,pattern:()=>se,pick:()=>x,record:()=>V,refine:()=>ae,regexp:()=>H,set:()=>W,size:()=>oe,string:()=>q,struct:()=>k,trimmed:()=>X,tuple:()=>J,type:()=>G,union:()=>Z,unknown:()=>Y,validate:()=>g});var n=r(98399);class i extends TypeError{constructor(e,t){let r;const{message:n,explanation:i,...s}=e,{path:o}=e,a=0===o.length?n:`At path: ${o.join(".")} -- ${n}`;super(i??a),null!=i&&(this.cause=a),Object.assign(this,s),this.name=this.constructor.name,this.failures=()=>r??(r=[e,...t()])}}function s(e){return"object"==typeof e&&null!=e}function o(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function a(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function c(e,t,r,n){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:i,branch:s}=t,{type:o}=r,{refinement:c,message:u=`Expected a value of type \`${o}\`${c?` with refinement \`${c}\``:""}, but received: \`${a(n)}\``}=e;return{value:n,type:o,refinement:c,key:i[i.length-1],path:i,branch:s,...e,message:u}}function*u(e,t,r,n){var i;s(i=e)&&"function"==typeof i[Symbol.iterator]||(e=[e]);for(const s of e){const e=c(s,t,r,n);e&&(yield e)}}function*l(e,t,r={}){const{path:n=[],branch:i=[e],coerce:o=!1,mask:a=!1}=r,c={path:n,branch:i};if(o&&(e=t.coercer(e,c),a&&"type"!==t.type&&s(t.schema)&&s(e)&&!Array.isArray(e)))for(const s in e)void 0===t.schema[s]&&delete e[s];let u="valid";for(const s of t.validator(e,c))s.explanation=r.message,u="not_valid",yield[s,void 0];for(let[h,d,f]of t.entries(e,c)){const t=l(d,f,{path:void 0===h?n:[...n,h],branch:void 0===h?i:[...i,d],coerce:o,mask:a,message:r.message});for(const r of t)r[0]?(u=null!=r[0].refinement?"not_refined":"not_valid",yield[r[0],void 0]):o&&(d=r[1],void 0===h?e=d:e instanceof Map?e.set(h,d):e instanceof Set?e.add(d):s(e)&&(void 0!==d||h in e)&&(e[h]=d))}if("not_valid"!==u)for(const s of t.refiner(e,c))s.explanation=r.message,u="not_refined",yield[s,void 0];"valid"===u&&(yield[void 0,e])}class h{constructor(e){const{type:t,schema:r,validator:n,refiner:i,coercer:s=(e=>e),entries:o=function*(){}}=e;this.type=t,this.schema=r,this.entries=o,this.coercer=s,this.validator=n?(e,t)=>u(n(e,t),t,this,e):()=>[],this.refiner=i?(e,t)=>u(i(e,t),t,this,e):()=>[]}assert(e,t){return d(e,this,t)}create(e,t){return f(e,this,t)}is(e){return y(e,this)}mask(e,t){return p(e,this,t)}validate(e,t={}){return g(e,this,t)}}function d(e,t,r){const n=g(e,t,{message:r});if(n[0])throw n[0]}function f(e,t,r){const n=g(e,t,{coerce:!0,message:r});if(n[0])throw n[0];return n[1]}function p(e,t,r){const n=g(e,t,{coerce:!0,mask:!0,message:r});if(n[0])throw n[0];return n[1]}function y(e,t){return!g(e,t)[0]}function g(e,t,r={}){const n=l(e,t,r),s=function(e){const{done:t,value:r}=e.next();return t?void 0:r}(n);if(s[0]){return[new i(s[0],(function*(){for(const e of n)e[0]&&(yield e[0])})),void 0]}return[void 0,s[1]]}function b(...e){const t="type"===e[0].type,r=e.map((e=>e.schema)),n=Object.assign({},...r);return t?G(n):$(n)}function m(e,t){return new h({type:e,schema:null,validator:t})}function v(e,t){return new h({...e,refiner:(t,r)=>void 0===t||e.refiner(t,r),validator:(r,n)=>void 0===r||(t(r,n),e.validator(r,n))})}function _(e){return new h({type:"dynamic",schema:null,*entries(t,r){const n=e(t,r);yield*n.entries(t,r)},validator:(t,r)=>e(t,r).validator(t,r),coercer:(t,r)=>e(t,r).coercer(t,r),refiner:(t,r)=>e(t,r).refiner(t,r)})}function w(e){let t;return new h({type:"lazy",schema:null,*entries(r,n){t??(t=e()),yield*t.entries(r,n)},validator:(r,n)=>(t??(t=e()),t.validator(r,n)),coercer:(r,n)=>(t??(t=e()),t.coercer(r,n)),refiner:(r,n)=>(t??(t=e()),t.refiner(r,n))})}function E(e,t){const{schema:r}=e,n={...r};for(const i of t)delete n[i];return"type"===e.type?G(n):$(n)}function S(e){const t=e instanceof h?{...e.schema}:{...e};for(const r in t)t[r]=z(t[r]);return $(t)}function x(e,t){const{schema:r}=e,n={};for(const i of t)n[i]=r[i];return $(n)}function k(e,t){return n.warn("superstruct@0.11 - The `struct` helper has been renamed to `define`."),m(e,t)}function C(){return m("any",(()=>!0))}function I(e){return new h({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[r,n]of t.entries())yield[r,n,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${a(e)}`})}function R(){return m("bigint",(e=>"bigint"==typeof e))}function A(){return m("boolean",(e=>"boolean"==typeof e))}function M(){return m("date",(e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${a(e)}`))}function N(e){const t={},r=e.map((e=>a(e))).join();for(const n of e)t[n]=n;return new h({type:"enums",schema:t,validator:t=>e.includes(t)||`Expected one of \`${r}\`, but received: ${a(t)}`})}function O(){return m("func",(e=>"function"==typeof e||`Expected a function, but received: ${a(e)}`))}function T(e){return m("instance",(t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${a(t)}`))}function j(){return m("integer",(e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${a(e)}`))}function L(e){return new h({type:"intersection",schema:null,*entries(t,r){for(const n of e)yield*n.entries(t,r)},*validator(t,r){for(const n of e)yield*n.validator(t,r)},*refiner(t,r){for(const n of e)yield*n.refiner(t,r)}})}function P(e){const t=a(e),r=typeof e;return new h({type:"literal",schema:"string"===r||"number"===r||"boolean"===r?e:null,validator:r=>r===e||`Expected the literal \`${t}\`, but received: ${a(r)}`})}function D(e,t){return new h({type:"map",schema:null,*entries(r){if(e&&t&&r instanceof Map)for(const[n,i]of r.entries())yield[n,n,e],yield[n,i,t]},coercer:e=>e instanceof Map?new Map(e):e,validator:e=>e instanceof Map||`Expected a \`Map\` object, but received: ${a(e)}`})}function B(){return m("never",(()=>!1))}function F(e){return new h({...e,validator:(t,r)=>null===t||e.validator(t,r),refiner:(t,r)=>null===t||e.refiner(t,r)})}function U(){return m("number",(e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${a(e)}`))}function $(e){const t=e?Object.keys(e):[],r=B();return new h({type:"object",schema:e||null,*entries(n){if(e&&s(n)){const i=new Set(Object.keys(n));for(const r of t)i.delete(r),yield[r,n[r],e[r]];for(const e of i)yield[e,n[e],r]}},validator:e=>s(e)||`Expected an object, but received: ${a(e)}`,coercer:e=>s(e)?{...e}:e})}function z(e){return new h({...e,validator:(t,r)=>void 0===t||e.validator(t,r),refiner:(t,r)=>void 0===t||e.refiner(t,r)})}function V(e,t){return new h({type:"record",schema:null,*entries(r){if(s(r))for(const n in r){const i=r[n];yield[n,n,e],yield[n,i,t]}},validator:e=>s(e)||`Expected an object, but received: ${a(e)}`})}function H(){return m("regexp",(e=>e instanceof RegExp))}function W(e){return new h({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(const r of t)yield[r,r,e]},coercer:e=>e instanceof Set?new Set(e):e,validator:e=>e instanceof Set||`Expected a \`Set\` object, but received: ${a(e)}`})}function q(){return m("string",(e=>"string"==typeof e||`Expected a string, but received: ${a(e)}`))}function J(e){const t=B();return new h({type:"tuple",schema:null,*entries(r){if(Array.isArray(r)){const n=Math.max(e.length,r.length);for(let i=0;iArray.isArray(e)||`Expected an array, but received: ${a(e)}`})}function G(e){const t=Object.keys(e);return new h({type:"type",schema:e,*entries(r){if(s(r))for(const n of t)yield[n,r[n],e[n]]},validator:e=>s(e)||`Expected an object, but received: ${a(e)}`,coercer:e=>s(e)?{...e}:e})}function Z(e){const t=e.map((e=>e.type)).join(" | ");return new h({type:"union",schema:null,coercer(t){for(const r of e){const[e,n]=r.validate(t,{coerce:!0});if(!e)return n}return t},validator(r,n){const i=[];for(const t of e){const[...e]=l(r,t,n),[s]=e;if(!s[0])return[];for(const[t]of e)t&&i.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${a(r)}`,...i]}})}function Y(){return m("unknown",(()=>!0))}function Q(e,t,r){return new h({...e,coercer:(n,i)=>y(n,t)?e.coercer(r(n,i),i):e.coercer(n,i)})}function K(e,t,r={}){return Q(e,Y(),(e=>{const n="function"==typeof t?t():t;if(void 0===e)return n;if(!r.strict&&o(e)&&o(n)){const t={...e};let r=!1;for(const e in n)void 0===t[e]&&(t[e]=n[e],r=!0);if(r)return t}return e}))}function X(e){return Q(e,q(),(e=>e.trim()))}function ee(e){return ae(e,"empty",(t=>{const r=te(t);return 0===r||`Expected an empty ${e.type} but received one with a size of \`${r}\``}))}function te(e){return e instanceof Map||e instanceof Set?e.size:e.length}function re(e,t,r={}){const{exclusive:n}=r;return ae(e,"max",(r=>n?rn?r>t:r>=t||`Expected a ${e.type} greater than ${n?"":"or equal to "}${t} but received \`${r}\``))}function ie(e){return ae(e,"nonempty",(t=>te(t)>0||`Expected a nonempty ${e.type} but received an empty one`))}function se(e,t){return ae(e,"pattern",(r=>t.test(r)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${r}"`))}function oe(e,t,r=t){const n=`Expected a ${e.type}`,i=t===r?`of \`${t}\``:`between \`${t}\` and \`${r}\``;return ae(e,"size",(e=>{if("number"==typeof e||e instanceof Date)return t<=e&&e<=r||`${n} ${i} but received \`${e}\``;if(e instanceof Map||e instanceof Set){const{size:s}=e;return t<=s&&s<=r||`${n} with a size ${i} but received one with a size of \`${s}\``}{const{length:s}=e;return t<=s&&s<=r||`${n} with a length ${i} but received one with a length of \`${s}\``}}))}function ae(e,t,r){return new h({...e,*refiner(n,i){yield*e.refiner(n,i);const s=u(r(n,i),i,e,n);for(const e of s)yield{...e,refinement:t}}})}}}]); \ No newline at end of file diff --git a/8858.f05232a1e1d2ba7b.esm.js.LICENSE.txt b/8858.f05232a1e1d2ba7b.esm.js.LICENSE.txt new file mode 100644 index 000000000..20fc25523 --- /dev/null +++ b/8858.f05232a1e1d2ba7b.esm.js.LICENSE.txt @@ -0,0 +1,8 @@ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ + +/*! safe-buffer. MIT License. Feross Aboukhadijeh */ diff --git a/886.ca636dfd1d01e1fa.esm.js b/886.ca636dfd1d01e1fa.esm.js new file mode 100644 index 000000000..877eaf5c1 --- /dev/null +++ b/886.ca636dfd1d01e1fa.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[886],{50886:(t,e,a)=>{a.r(e),a.d(e,{default:()=>s});const s='Coin98'}}]); \ No newline at end of file diff --git a/9198.6eaf0bf1a27b91a4.esm.js b/9198.6eaf0bf1a27b91a4.esm.js new file mode 100644 index 000000000..7055e2354 --- /dev/null +++ b/9198.6eaf0bf1a27b91a4.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9198],{9198:(e,l,C)=>{C.r(l),C.d(l,{default:()=>n});const n='\n \n \n \n \n'}}]); \ No newline at end of file diff --git a/9211.40061eeed645e7d7.esm.js b/9211.40061eeed645e7d7.esm.js new file mode 100644 index 000000000..098b94758 --- /dev/null +++ b/9211.40061eeed645e7d7.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9211],{59211:(e,i,r)=>{r.r(i),r.d(i,{default:()=>n});const n='\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'}}]); \ No newline at end of file diff --git a/931.88ffdc95aae970d1.esm.js b/931.88ffdc95aae970d1.esm.js new file mode 100644 index 000000000..dbcd44adc --- /dev/null +++ b/931.88ffdc95aae970d1.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[931],{90931:(e,l,C)=>{C.r(l),C.d(l,{default:()=>t});const t='\n\n\n\n'}}]); \ No newline at end of file diff --git a/9517.a6a819956d9ee215.esm.js b/9517.a6a819956d9ee215.esm.js new file mode 100644 index 000000000..36e3ce947 --- /dev/null +++ b/9517.a6a819956d9ee215.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9517],{99517:(t,e,l)=>{l.r(e),l.d(e,{default:()=>i});const i=''}}]); \ No newline at end of file diff --git a/9822.d0b1bdedd3ebc6f2.esm.js b/9822.d0b1bdedd3ebc6f2.esm.js new file mode 100644 index 000000000..4369c3368 --- /dev/null +++ b/9822.d0b1bdedd3ebc6f2.esm.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9822],{69822:(a,e,n)=>{n.r(e),n.d(e,{default:()=>t});const t='\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'}}]); \ No newline at end of file diff --git a/Strawford-Black.3194ca21ffe535661a5b.woff b/Strawford-Black.3194ca21ffe535661a5b.woff new file mode 100644 index 0000000000000000000000000000000000000000..0f96b296fc8404c12b6a2f6a17d9430c3c8dbaa8 GIT binary patch literal 22876 zcmY&fV{|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u7;5B$Jc$>YKyjQ$k-X3qi_lEbD*XkYfPI&Kmr@RjDtask~ z$h+*5uYBJhOym!TU~lIaK}sNFArm3skv{`+4`dFc*01vy`^)^5{%U`%zut$Je0a&< zFwe+OyU6Z)qiXCUVw_!fQafcz^#EU<&D0Ne_|t)L(n z9h3&;K}9e%m>J9t<_7bF`d~@0JXjU137!g`2{s0eK~u0b*dFW*b_e?~l~2;&JKq~S z2;C_5Cb4rx@0XORk*6<;{jBI;*C})^%qe=Q?vZ8 z61!OJda;*kJ7!7BGSQzC{bi~Ds*YEjD>)0q&KA2&>@ix?Q?adj1t|Gn7X5^zBqZl3 z$th*AHquW|hjEvXpvUbfM(=MC+(0KaHI>3Q_+L#Ey>0K7=h_61Y z^xO>bA?ovAc6u}xjrkNQ633EJVq?UPd?RUm_-w>%CXyRik3JUvDi=x5YOAG1lD*y4b`$=Uo{)XX)!fIi@dz_}msYJOVIiEpq| n{a@1I(s=*?c${NkU|?hbf?Gx(T0r!jdwW*EXaHB+2)+OSpPF1; literal 0 HcmV?d00001 diff --git a/Strawford-Black.731b3e7bcbab0a14cae2.ttf b/Strawford-Black.731b3e7bcbab0a14cae2.ttf new file mode 100644 index 0000000000000000000000000000000000000000..0f3baa8b00a58afdff2ea7a02c3fde2eada3886c GIT binary patch literal 51800 zcmb?^2Vfk<)&I=i=}uNJr`}FFbxX3OQ@1S3vMl#1SuVKAmfS7LvgC>jE?~fbaX>cM zF~*dDF(m{@;yAPrL#PH!-~$4f9s+@oKp;q`|L@K0-t83$^8G)pw%qQ{n>TOXym|B9 zn_0#gW1(ypGqBEvhNh`M`)bu|j6GY8yNToL$2FM#;2*=-u@CXPZv2etjW@Tw@q5N@ zGcuM{F}`tjUCgH$%NYB4He-HoPj4Jiy!vPN)-lF6 z8#)IDkP|!hHlF*hSi5EUe>$(4!C1&?#&+ecY-?#vY(M)Pp7mibTZtRyIO7(;E5Yyd zmFv1UuYav1AHUyV%(QlG$Fdg3w&b;p1$F~|#k!Wwo%};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_Bh}G{9VVcV^rum35oyK*vHoOEa>?Sfc z`w>lQ&-_cM%ofCuV!SQ<3^LvJV)gXR%qPf+X~Y{tD-aE%Xz+iVsp0`q16$wEm;I8C L7ccexCV%`7K44k? literal 0 HcmV?d00001 diff --git a/Strawford-ExtraLight.2807c50e2850d16a355f.otf b/Strawford-ExtraLight.2807c50e2850d16a355f.otf new file mode 100644 index 0000000000000000000000000000000000000000..ae041f10be3a22a36c4b0b960662d4113fd003d7 GIT binary patch literal 37392 zcmbrm2Urxz7ARajGd%-6Ix6iTf<1#`08s=)6eDIaA{fDhh>DUkE-JdNx@O&7*My?P z0mSSA=8OR&D(0NynySYd^quNK^zPmFzWaZ_yER>X>ZD4iPMxY|(2ya6P)(GI28dhs3LJ%bbw2l!8DPn(9j_tm^sgy}o=6z@Pnl zk`DyE{>P*^hkD6|0iO||GtkH;K>o)x40VC>|4!EduNP|gU+FrEmi@13HL{Zb_TNc1 z2>3>zdjFLMAXnLssTS%X`yZ2h1K^H9qh$@CF8`KB0=z$@5s-#J>hr%RW-#;_rT@32 z2bp?gEz^JfimstSkVZrDLD#;1ghU`!!aECTAS4fFEyek2g!C5DeRTNib9DUcYnqrM zG`c!5XavKco=h$2IfAi=XCKsFK0uO3Wzxh~J-@w=mg-3B`9CE2C%~g^MibPH2?qH; zrVP}E`IjV<1KuR$%)~*W&#EM=iTwZ9#5{xkFF|$wnV3DO0aJ463NbTVLGK_^+ke&l?Iq;hXPiGXzxI(%D zbcazx^a%B0#zPv0oR|*)>y30wU*sU+Ksj?7HHFlL`4gUh!qXX^&hR{21z!TsC8#aq z08bC#pAY@n1C5v4qw&no0Hg0+(O9{F#-cY+K2}Qo=o4K*{UG@;N1$zvzX5V zs0-Q*GQPnb%y5}KjG2Cr=<_bvlcCTKU7^2rBTh>9(9r7qRiJ?+YXkg`!}BESqNo8$ z4Ro_0r9quV)J7gCJv++IfxKz3wycHcHgi&BfE|iLy%72uNfQ$b3(igC3v!J;$gOF2S{b6+FB8WbrM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%axQ&<2jy literal 0 HcmV?d00001 diff --git a/Strawford-ExtraLight.a28ae3a431235bd9abdf.woff2 b/Strawford-ExtraLight.a28ae3a431235bd9abdf.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..27d2d7b0eb5a8208e82a0f017fcfcef9527f62a8 GIT binary patch literal 16428 zcmV+{K-0f>Pew8T0RR9106;7N4*&oF0L}~m06)wC0RR9100000000000000000000 z0000#Mn+Uk92!C!&2AivTn1nOhAt5Z3WA4Jfyp}yhByELHUcCAjBErT1&DnIlT{nA zsu#rFms8T6fU>2kc0ZPav1`WdKy-h64kH8go6=1*`~Ux>q+<*R=?1D+)%y>63MFWj zEznJJ1SS&6SbLahdk@5M+A-XA+5tlAIL$(Km*p;((@(j##uHd3tNWmPyM~^7H?6vN zxJz@+*-WdB>2*PtAPJIm`4F;{L`%ti4G{zThHt$;1PlBvD@xP4@cZ65nJ3z2(&cuR zIEr1x&%m~kKgp?==xcARXZPLZPgZ0F=ZH~*i;6-bY*v&Hu{_42R5BLJ{yaaoKj*$$ zBs_-j=NMH3CNoi#>X=c5&Bv&kS%qQZT$ci+FkHoi5VlE%Fwn zOBb0}?snlWdU4L~LJbI07@`xWiVm#$vO1~}cnkcco7JZ#%Wk1Mium@06oRD(Np0XZ z$}Pf#_qIy@eZNf)?@|7QL-Ua6)6lxHQyU%Iue(PW3+9G<1j(mw?EEJ~h71`pWXKQ- zF4hj*=Sq5bf}TdFgHaSkQ4~c{6pcos(P%UpjqV2L7DZ7MP17_@!^T)k5L}_EEAtd^ zbX%(b72XlBAif;r_`=0hU6qcSYC9mM%)r%Nw;&-IW68lWX95|R~mKatks_olb^R~+0NfLV>r}5ln*FmcXwUV$qsUjU5aYvz4@b=|2399f)!Y6 zM|&VRutotn3J83TmbF2ukUK+|xTt`uR8+L-Qm1RL3pQowdAV^5q_Zdb-OAb$3M3E@ zQ^@~!+9%ywA?$D&-g(lKb|m|Ix1-WiO7qo~71^4!j&j0+5`aSkD45X9|D0)o-RTK6 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I-kYyi56L2>iqRvXE5TEq^HC7C zv6$?UW{l@umSy!sV^6(oTPsbQ+A(E~?FH z6rtE37y!8&KHSisO1v!syx0urK(EkBr;kE4u;-BIMMP*RVc(!iS2R0F@0YGP5Ux{< zy#O)0V5(W)qA{fx$$@|5L0W=TOP#|zeV^IJcoXrz_-Yf}HZp<~Og7FD_oJcB8sB{N z-4g4aa>51$3QbewjAAF9cEMTaocBtJD=xZZqf#GDcimOjlzHQw@hX(7RIN&lMQYWn z)1XnaCPsa|*3SU_4K&ywyDT=;5W@`j)_Z$?5dns2*-ni%c0JxYyy7F^{3J4kN~1HF zEHy)NF|AH-Fq+I3tF4W9WjUNKY@BwJYeFL8mL{h( zusQJEqoAasmQ6!TSEaV|A-x>A42<%aTwd{t_!F;$g_Vt+L#Z<5t%6jjQw}hN zBbwwxOTO5KFD?{6NASs^P-%1qlf~w6d3=FTB$h~Ja)nZ*)@XHlgVAI}(qpw+pCCg$ zr>pebzck=51xwI-_+~c+*f&=swbHi&v9k zk!M7y&nO$w46bj0FJ(8TTsJ>^I?{DeiY&iN!#>qmKhta>x4mLR@Y8UhgJ3v)P|b`% zrbW<#3dev6A+J1U&NiW+bZMLnsh>aw@smTML0ldV&YmQhCNs(@6Mbp)v6sQmHTD+s zOT%3{_z$J-#c-y7W-vs?NFN_QtQqwM0u$N6pf@E_??9t#^z{CrYWoj;=&_*9zJ=|8T9~AHu+iM{OtOuJ3@!|2Ma^E1y;YQjCHsNUvEO{^;TrCPqK<- z0iol50a&pmAeF}0#g+1bfS(bZWt_hU zdHU5HbidLZT`!m|x^fzSO62@Xfo_}WOX%S6 GH`)N29j0~w literal 0 HcmV?d00001 diff --git a/Strawford-Light.7fd529ec2ea797467cfc.ttf b/Strawford-Light.7fd529ec2ea797467cfc.ttf new file mode 100644 index 0000000000000000000000000000000000000000..6faee6b40abe756f1e5d463cb5d587fb6ecbeb67 GIT binary patch literal 52472 zcmb@v31C#!^*?^^n`9;=WZxIUWZ$=$Om;%{gd~s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fCHf^Wdd^^L=v~z5!Ewkme(pK4OTWjlKg4co?K$}2YLBN%5wk@{J?zJ7Z%O0{v z>~Y&?`|TNf&R(>a>=k?6-n6&uUHiasXI-w#b1%38SL|lFxo*B&;40i=x74k4tK4e0 z&TVv?-8Q$w?Q*+ayW8guxP$JnJL*ojlkT(|bm!fB?y|e;K6b@V%!6g1o3;@Qy74)I(ApRZV*H8%*puUQD z+#UE%;+v_Q?`u-S#P?8%|4;yJ@WwsrTd8IT)odrei%Os!ZC)k*i^RW7d?E2)BL1hu ze~lb|1$9fzD)fv@R8sL)P4_@8+;9XgZ`=) zspS`_<#GDG@1G__({qtIl3RGKE_O3CNY_m`Tx3pKaIrL7STv&|6NV9wpA_bFt$bt8JZBJ~k+VrucmP$Rry-W&X%cB*(lw7}=m&o=zRpDz#fb!X2126;ay ADF6Tf literal 0 HcmV?d00001 diff --git a/Strawford-Light.86b3d47eed9587b43471.otf b/Strawford-Light.86b3d47eed9587b43471.otf new file mode 100644 index 0000000000000000000000000000000000000000..7bed36a720963f7d528694759736870d374c27b1 GIT binary patch literal 37216 zcmb5W2S60Z7cf41ce{ssdLrwgf_sNzMMR2jm zbT~K=d+&(7n?y}wqO)WU{od{&n*8#8|NLX-c6R2qDeujjH?w$;9qWx6p>!liKJK2L zHZM*;T8dEP5`=<>c#Ii37$HO+N8+Ph?cub zfF61Vsrw`-Q2Htk0Q|S`-e%I&B#f^vV+AlafCbAZL(&E7aQ{@yhn2RD=0zt9+Zf3NzYFq zA8#n)$LG}st`PcLk>RuvSNT%mRc>dQk z93{vHqCWqcWKbtV?I0ykchM9%K~u!%e@GK#cBrkCM7hP(LQ0W!&(H5I>^~;?5`Yat<7C#*o_|Z@pxhIZe_ea~!Sg>RYAlSIi2rX%2RwDi zLZA3@S zq5dVw%mHpHYD*0ig<-^K^Z z>&j} z8VN}(3lZ~F6QI8lxlmhCUv&S|kMb43vorMV9e96;+|g?^5d921+MCwO*(XJuXaB6u!> zxn%{$d$5& zr!73&qn;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|u@+-p#`_p!8JmrT=1E5aV_U`~#_o*CjH!%+8HY1I!T1zu zJawcqKEpT%>NO`j7BDVhT*0`SaUJ6(#x0CH8TT?CN}oJ^lH(X-5#t%gbBy0GUShn$ zSW2j=jLxZ$ycWh7#pq^?VQk14#~9D}5Mu|%uB4q*>&@7YaS-D$#!-we~>e=p+!#zMvujHemTGM;C=z<8O_k7rbc zp=bHmItsME6yx0?wH{E*eODO5q3#Y%4r?%CjtkQGHD>E>#Dkt7$9;E*(G*DK?vQ%C zg8RMyI->1G*tBAm8E)`>PprJ1LI9?PSnRK>t@H&JROE zE+qzNpeOhsdg9&i<(0@s^wg23*5!7w5o4M{Y=(bTHA{u(^e*=ZN_lmmW1^CFgt&jOiJmz`p(EU{( zld=<6ap#Ef0nr4r!A(Uo(Hv^0Jffc9??=%9v&8>2ugHrKb0NzcbKx!U_EnK`7_g8v$F1#_&tuJU$r6O$>&NkVDR;K<_}ny&p?8isVOMjG`0U4h3!K;h_&kUqvbC zTfski0Ce`gQb1>72_t_A!j0k>4Xs|^DE}aL^r6X5C$=Xc6mo-nP#sd)MlKJC7H}b( zM>J%cjv4X}@RTHy;Mz+(4BvsC=_oM41Hru zpzSOJn&*}(FDc9L4ZH&RJ3%=^sLJxLToxUWZZCWv_7TY6?7bsO)1^@s6 literal 0 HcmV?d00001 diff --git a/Strawford-Light.8c8c8fddb3d756eb3958.woff2 b/Strawford-Light.8c8c8fddb3d756eb3958.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..ee32ec889b545e0df79c1f2e00bb5a4ad8c22d92 GIT binary patch literal 16400 zcmV+rK<~eIPew8T0RR9106-7`4*&oF0L<_J06(t)0RR9100000000000000000000 z0000#Mn+Uk92!C!&2AivTn1nOhAt5Z3WA0NfyX2ZhByELHUcCAjBErT1&A^SlT{l| zsYk@!cTwbSRiy;X!rui`xOD)zSz_S&pT1EMY#abY@>9zG|NqZeP;!LD;wJ?DXnTfo z_a<=jgl85_GFW^|3`XtPuHi(=}fFAt-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v1jG@)3b z5BwD=(t$?Gd9&8VaGX3tPzePInZ)cxv-ky%WGXZY8+Q)ovX}@2NY!W}=l;+DObYHb zv_}DoV#Hr5;N44 z4g7aEh%+}K&W(5VB2(@Hg$ZN;rp$4_*`KZ zcc9Qf7dZ5pov64W9u%|;IkbciQPjn>5G|qhnATt%EF1iWHiyY;3&C=zG)rIkq2xi> zpy$Mr$?I@R)u5I>ll8n8%7FsFyMDWF1HlW?cm%w9#+nUy9)xIZ)b}ot z6;gj9UXFDY$mh8TDYYs!FO8Jy6FHPOHIQID2xVvWoD4ux8Gp3GJ!PgGLyV ruQ~&4UWVc~DZC_;tJA$QKXw!#(Gxc6bPFYpt$6aJ0000000000L8<&y literal 0 HcmV?d00001 diff --git a/Strawford-Regular.6c54fdc3c8b274bde71f.ttf b/Strawford-Regular.6c54fdc3c8b274bde71f.ttf new file mode 100644 index 0000000000000000000000000000000000000000..0c4c51c3aa2de3bd8b8a8c6065b82565d15b7772 GIT binary patch literal 52436 zcmc${31C#!**AX9oh>tyjbxHQ60+|kA(`y^LKw0@5|R-1umwbAiGXafX%Q8dA|fJE zi`H6;8(M1Bm$tstT58o7m$#+Vx>u}4#SN*F$^ZA9bMMTZ$pXIb_x-=zoO|!wY8##{}2C&D;JPrCpAoTnLi7d#uy)s-}RH)+d3~Sb>4vA za~Mk>J*jhAeat(VOBl;o!_hH5i)t4<; z-G}R;jOCxjG2pUg8*wV!ddSe?G-Otz&{AR^Valuk->t)w5rNK41iv=%Rux15| z6;H5%0pvu_6taN2SrZdj;e@&_+IP^trEV7XQ`#nD-_bS&`z~>}tD^FN< zSn%=%tFB~`$WP`;M+JRqMEQ{{g=OPc0Dfn&wLDUs8~GK6*dVhbP1J@*?NE=;p+?o> z+{7F#nkBF_yv3mY@=EUuea1j-!E#^7y*-6--Z zW%F?~q2AA;j_TjQVR=H=22N^Maef%@nVB7%0oW3XJV#+u_;S7iuwKvC;!ua@cc77$xg91(Y|-sS19*el<5ZiY&?($^H83^lXwbu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;V|YzMLT><=5cMypm+XSA!4eFckE-J%3@acmN^7}HAXTJ5UZYNJCn4kVOyL=Flf2X!h3 zg~~ylT7yt)(5W;CC5-Cy9XB^BjJ_*6hs$3P4(Ae`+L56`vn!U%92`b38Ah*(X=AC< za7aROX(|4aLnTt_*Qn;E)tJ%zT!l?)?pjTj=F>*A(my9bmZq&)8fR;)*Qg>TU0o;n zYD-y>-x4&sa=y(od{9A`l5C6E4WwX9^1lM8*(Z5Ml0 zS7~XkbgE`S2g`yZZo?9xZ?6-YhYD7;UD~y$_FT05vRIcE8EaJnGjSr8D_&yPoDvZ|!aTT+7 z4X-O|cvHBM$K*(+D3s_4xzNeyMZt?Znpi4|yOPz4Y*4PN<(1WBQCzLkF7yk($g8I` Pa=Dx)Rg3f9fZg{mU3yRi literal 0 HcmV?d00001 diff --git a/Strawford-Regular.d2e8a16541a2ad7c2a52.woff2 b/Strawford-Regular.d2e8a16541a2ad7c2a52.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..c4c3fb3afc4f6c8b8f4272c3726009033ca8aa16 GIT binary patch literal 16128 zcmV+bKmWjYPew8T0RR9106zc#4*&oF0L;(;06w1p0RR9100000000000000000000 z0000#Mn+Uk92!C!&KMkvTn1nOhCUGp3W9}vfyV|5hFkyvHUcCAjWh%x1%*Qgl?)sD zs5ivjcSXqUfd2*6uYbYVHRg8mqt{zIMk4G7Wra%q|NqmHjWG-`4-iCat^IxkNmY#i zkopKuoe^1?D>L^=ImoFN`51$2pBKezP!Z1JcBj+TKKls{bUEd>yHvKHwH6!wej*}* z{dM=HC9R@4=V-dR*-Nzkv)_kq2n+0=qfr@*ffo)l<6w}SAS%Ry_%fA&=1SdAdVcwf zm={I!7a|}+#u33>n4+TjKI{x^8~Kx*y!=By_WxV^oG)$>w`6YZPe(G%(hCg_mBtW7 zGl}8;Jgx2joI7{sPHX|g((90atrf;7jKU~BE?5OVp$#gG!on)-D$KsrY48=xK+_^H zjsf1<4vQ{EkaHcLpWFW#V2m7$kp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N?i^TNRrlno-ThKvT|4xQ-n#6^*6=R}2foln69AX~!0W0aG#9lCa!_pG#%MXfRQd zt6P$eXC@ND_No&TqS2Z#i!PH2tp)$47l`YCLI;eifI^}=UUDQR#6Vo9Ary_c@+c&N z?PW=&%aUp@`AV036$=kXBAU_Q+%oG-Nv@nbV7ir=!pG?FtZY&kmPDXK=Wpr!J5>Ib zYFLNP)KaYIm{(yf4$do!vA86w9HKGJhN**TR|q?6+DR*6beaj@6Gm1-A8FQXF*;QX zvJ#b@h59P9g^#g7S=nV)v+Ffu#sXz!tH#;pkdyaZXDA~k#qIPYVW$IKx;#gh*QLsH zBx<@czMVE*KbJLquf{3YjBXX#EsI>QORH}%x>aOXp+}v~O9Xq$+LQlpdt!Q2v8d6j zj6GFzZ*f3gaX@`)K)xDKpRT~y74)eJe2K|@u4Shu`^9ff-@mHy%e6qC9;B~tet%hx zBW3c!GI^{d8;ewh;}X@2N>_3GKUcA(RWq*Hrq~+N3~NS=c2$2`Las)_b2J+@n>5u; zi9{PDqhZy>Xe4Izr(Ltqj}e7_mFI{=Re#bFuE<;Ys*!)BqFp%N7*}j=(QGvqDhFc{ z#nnhC6w(Z9Ml_?Evo-5AW10<`b2J+@n-s&^Z#Z0?veLdQl4d@mmLhG6^=*}L-*u!C z4#z55x~r_Ztdq$0cF#A=x_mwq4w|w^Ez9d5<*B;=QmHjdLzD~C%zrwe4Q0K`P(PYl zQ8z^@)n@U6X#;sJr5rF7YaKV45;@DZY`rlqT&K=U83hkTcq2t^ikB(82L&OJa(q|P z8kYNcYqYqZFO*;x1!1K#Uh#nR=%uEM(L~nFC7ltwE@9@yj3vIvdzNEQtV|m+-NI8N zQl3<&OVyQb + + + + diff --git a/assets/epnsLogo.png b/assets/epnsLogo.png new file mode 100644 index 0000000000000000000000000000000000000000..31165338d42247d9d4742d7927aba586cfdcffcf GIT binary patch literal 8773 zcmb7~RZtv2mxTwn;O-XO-Q9w_ySogoVQ>iU?(Xgm!JWZ^O9n!42@v$pZq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I5nSjBJ^0M3YT8@5E^dm24exXKvI-fx^*4)Dw z6iS2(9Lt=EBH)hj3O-si30(hKH2%BS_QOg?UN={A$oPxd>=WhPb;AnY9|zT&)vsMmNvC4UtX%hKKXZZ6f*J2P0yx*AGuw!87jx5 zb=>*DDIU4NGTj`}ThP?e%-+Vwz(Fa|aXHqHe?iSamff2)l&WtYsqBhzAUKTfec({L zEf@YPGl2XyVyBNSzik0GENb025`X8~09U*7kv1oD3F{NFe(-P{HLb~d{JAJrB|}8w z>chp+Rd%=cpS9c@)|D>CJ^`wQz%3W37hd~7SH=ldzRly7B_VWyv*!R+-{&K$v_w*~ z(C!<#U}xW>^5Fb#Yt7%EggyQxU`@OxYpIPsL!_FTBD1c>!YxPWCK{#!PSS6Gj=aeq zYJZ5mOE$h|dzJfyC(`VT|KghssJRSVHGJH z`!2gVj-puk1Lkct)6tlmO#i=zjoX Cvg-~2 literal 0 HcmV?d00001 diff --git a/assets/light.svg b/assets/light.svg new file mode 100644 index 000000000..61ca3dcb4 --- /dev/null +++ b/assets/light.svg @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/assets/pushLogo.svg b/assets/pushLogo.svg new file mode 100644 index 000000000..93c3dc651 --- /dev/null +++ b/assets/pushLogo.svg @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/common.74e62dfb3c1e2da9.esm.js b/common.74e62dfb3c1e2da9.esm.js new file mode 100644 index 000000000..a9f163a0b --- /dev/null +++ b/common.74e62dfb3c1e2da9.esm.js @@ -0,0 +1,2 @@ +/*! For license information please see common.74e62dfb3c1e2da9.esm.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[8592],{47177:(e,t,n)=>{"use strict";n.r(t),n.d(t,{detectEnv:()=>v,detectOS:()=>y,formatIOSMobile:()=>U,formatMobileRegistry:()=>H,formatMobileRegistryEntry:()=>z,getClientMeta:()=>I,getCrypto:()=>$,getCryptoOrThrow:()=>B,getDappRegistryUrl:()=>Y,getDocument:()=>L,getDocumentOrThrow:()=>k,getFromWindow:()=>W,getFromWindowOrThrow:()=>A,getLocal:()=>V,getLocalStorage:()=>P,getLocalStorageOrThrow:()=>E,getLocation:()=>x,getLocationOrThrow:()=>T,getMobileLinkRegistry:()=>J,getMobileRegistryEntry:()=>G,getNavigator:()=>N,getNavigatorOrThrow:()=>_,getWalletRegistryUrl:()=>F,isAndroid:()=>O,isBrowser:()=>S,isIOS:()=>b,isMobile:()=>C,isNode:()=>M,mobileLinkChoiceKey:()=>Q,removeLocal:()=>K,safeJsonParse:()=>j,safeJsonStringify:()=>D,saveMobileLinkInfo:()=>X,setLocal:()=>R});var o=n(76036),r=n(98053),i=n(13158),s=function(){for(var e=0,t=0,n=arguments.length;t1)}function C(){return!!y()&&(O()||b())}function M(){const e=v();return!(!e||!e.name)&&"node"===e.name.toLowerCase()}function S(){return!M()&&!!N()}const W=r.sD,A=r.$2,k=r.uT,L=r.Me,_=r.Gw,N=r.jW,T=r.UO,x=r.k$,B=r.VQ,$=r.MX,E=r.xP,P=r.$o;function I(){return o.D()}const j=function(e){if("string"!=typeof e)throw new Error("Cannot safe json parse value of type "+typeof e);try{return JSON.parse(e)}catch(t){return e}},D=function(e){return"string"==typeof e?e:JSON.stringify(e)};function R(e,t){const n=D(t),o=P();o&&o.setItem(e,n)}function V(e){let t=null,n=null;const o=P();return o&&(n=o.getItem(e)),t=n?j(n):n,t}function K(e){const t=P();t&&t.removeItem(e)}const Q="WALLETCONNECT_DEEPLINK_CHOICE";function U(e,t){const n=encodeURIComponent(e);return t.universalLink?`${t.universalLink}/wc?uri=${n}`:t.deepLink?`${t.deepLink}${t.deepLink.endsWith(":")?"//":"/"}wc?uri=${n}`:""}function X(e){const t=e.href.split("?")[0];R(Q,Object.assign(Object.assign({},e),{href:t}))}function G(e,t){return e.filter((e=>e.name.toLowerCase().includes(t.toLowerCase())))[0]}function J(e,t){let n=e;return t&&(n=t.map((t=>G(e,t))).filter(Boolean)),n}const q="https://registry.walletconnect.com";function F(){return q+"/api/v2/wallets"}function Y(){return q+"/api/v2/dapps"}function z(e,t="mobile"){var n;return{name:e.name||"",shortName:e.metadata.shortName||"",color:e.metadata.colors.primary||"",logo:null!==(n=e.image_url.sm)&&void 0!==n?n:"",universalLink:e[t].universal||"",deepLink:e[t].native||""}}function H(e,t="mobile"){return Object.values(e).filter((e=>!!e[t].universal||!!e[t].native)).map((e=>z(e,t)))}},98053:(e,t)=>{"use strict";function n(e){let t;return"undefined"!=typeof window&&void 0!==window[e]&&(t=window[e]),t}function o(e){const t=n(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}t.$o=t.xP=t.MX=t.VQ=t.k$=t.UO=t.jW=t.Gw=t.Me=t.uT=t.$2=t.sD=void 0,t.sD=n,t.$2=o,t.uT=function(){return o("document")},t.Me=function(){return n("document")},t.Gw=function(){return o("navigator")},t.jW=function(){return n("navigator")},t.UO=function(){return o("location")},t.k$=function(){return n("location")},t.VQ=function(){return o("crypto")},t.MX=function(){return n("crypto")},t.xP=function(){return o("localStorage")},t.$o=function(){return n("localStorage")}},76036:(e,t,n)=>{"use strict";t.D=void 0;const o=n(69589);t.D=function(){let e,t;try{e=o.getDocumentOrThrow(),t=o.getLocationOrThrow()}catch(i){return null}function n(...t){const n=e.getElementsByTagName("meta");for(let e=0;eo.getAttribute(e))).filter((e=>!!e&&t.includes(e)));if(r.length&&r){const e=o.getAttribute("content");if(e)return e}}return""}const r=function(){let t=n("name","og:site_name","og:title","twitter:title");return t||(t=e.title),t}();return{description:n("description","og:description","twitter:description","keywords"),url:t.origin,icons:function(){const n=e.getElementsByTagName("link"),o=[];for(let e=0;e-1){const e=r.getAttribute("href");if(e)if(-1===e.toLowerCase().indexOf("https:")&&-1===e.toLowerCase().indexOf("http:")&&0!==e.indexOf("//")){let n=t.protocol+"//"+t.host;if(0===e.indexOf("/"))n+=e;else{const o=t.pathname.split("/");o.pop();n+=o.join("/")+"/"+e}o.push(n)}else if(0===e.indexOf("//")){const n=t.protocol+e;o.push(n)}else o.push(e)}}return o}(),name:r}}},97421:(e,t)=>{"use strict";t.byteLength=function(e){var t=u(e),n=t[0],o=t[1];return 3*(n+o)/4-o},t.toByteArray=function(e){var t,n,i=u(e),s=i[0],a=i[1],c=new r(function(e,t,n){return 3*(t+n)/4-n}(0,s,a)),f=0,l=a>0?s-4:s;for(n=0;n>16&255,c[f++]=t>>8&255,c[f++]=255&t;2===a&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,c[f++]=255&t);1===a&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t);return c},t.fromByteArray=function(e){for(var t,o=e.length,r=o%3,i=[],s=16383,a=0,u=o-r;au?u:a+s));1===r?(t=e[o-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===r&&(t=(e[o-2]<<8)+e[o-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],o=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=i.length;s0)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 c(e,t,o){for(var r,i,s=[],a=t;a>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},48137:e=>{"use strict";var t={single_source_shortest_paths:function(e,n,o){var r={},i={};i[n]=0;var s,a,u,c,f,l,d,h=t.PriorityQueue.make();for(h.push(n,0);!h.empty();)for(u in a=(s=h.pop()).value,c=s.cost,f=e[a]||{})f.hasOwnProperty(u)&&(l=c+f[u],d=i[u],(void 0===i[u]||d>l)&&(i[u]=l,h.push(u,l),r[u]=a));if(void 0!==o&&void 0===i[o]){var p=["Could not find a path from ",n," to ",o,"."].join("");throw new Error(p)}return r},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],o=t;o;)n.push(o),e[o],o=e[o];return n.reverse(),n},find_path:function(e,n,o){var r=t.single_source_shortest_paths(e,n,o);return t.extract_shortest_path_from_predecessor_list(r,o)},PriorityQueue:{make:function(e){var n,o=t.PriorityQueue,r={};for(n in e=e||{},o)o.hasOwnProperty(n)&&(r[n]=o[n]);return r.queue=[],r.sorter=e.sorter||o.default_sorter,r},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},89540:(e,t)=>{t.read=function(e,t,n,o,r){var i,s,a=8*r-o-1,u=(1<>1,f=-7,l=n?r-1:0,d=n?-1:1,h=e[t+l];for(l+=d,i=h&(1<<-f)-1,h>>=-f,f+=a;f>0;i=256*i+e[t+l],l+=d,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=o;f>0;s=256*s+e[t+l],l+=d,f-=8);if(0===i)i=1-c;else{if(i===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,o),i-=c}return(h?-1:1)*s*Math.pow(2,i-o)},t.write=function(e,t,n,o,r,i){var s,a,u,c=8*i-r-1,f=(1<>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,h=o?0:i-1,p=o?1:-1,w=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=f):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+l>=1?d/u:d*Math.pow(2,1-l))*u>=2&&(s++,u/=2),s+l>=f?(a=0,s=f):s+l>=1?(a=(t*u-1)*Math.pow(2,r),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,r),s=0));r>=8;e[n+h]=255&a,h+=p,a/=256,r-=8);for(s=s<0;e[n+h]=255&s,h+=p,s/=256,c-=8);e[n+h-p]|=128*w}}}]); \ No newline at end of file diff --git a/common.74e62dfb3c1e2da9.esm.js.LICENSE.txt b/common.74e62dfb3c1e2da9.esm.js.LICENSE.txt new file mode 100644 index 000000000..70277b0df --- /dev/null +++ b/common.74e62dfb3c1e2da9.esm.js.LICENSE.txt @@ -0,0 +1 @@ +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..4e7aa0203e9cc77791abe442e80223cf164577ba GIT binary patch literal 15086 zcmeI23wTu3wZ~5a3EGIUH)!>f3XD?QDpoXC?M3I2$-@Vr*LqPQAeMrHdfSRc^opn` zFRQ$4Zv_>r$Rr?-03ivlB)nge2LXZb$dHhPB*Fl_NJyC7-#RmAa*|9)jLE&+ex2{z z*_ku@ob})Tv-a9+ueCHSMC+j4e!E8BT}$ezX?JOw*1fy``&F8Dm}^(j%kR&2)U=5V z_$gz!MH@-y&=U-!?y|M(0XOL!}U7FL?@Mp*g%V?+MG%oxm<(HyiXv}MNFaE<#~X&EA1oNX>hBOgm+YN{1gRtbtG=)=|ge<{ZV1;M_n()Ie@tf zZ3zwBZ-aX>xc{h%;%2DBaeq<=<7TS^v7e~@v7ay9>rCo$sm%f0W5De#PMD;Q#=onI z;-`cA18{$+3S&P8_h;&B=X|x-xzJk>v*hJV4L`c_^3nJy1@8Fw^U;-jbS3{_?40}q zv7hGebI!|$^ZY%|Mftm9QVQ~8R$OxU;XEAdQDBb(dlcBC4#dul+7~-73hYr}j{?MiGc8})*IRblH%5IQ zUch`CZ4<4S=C0o+xJwcyy0MRLbjOYExWVoQyZcbwpWR@0gWZkIaqo})s~hZYu)Fs< zlihoqU%J8WMxWfQ1vl8;xsD8Xj$@5`mm|{+b~o6Ici6XNZ?|m|SEyAV@IFSXp(%6I z?W1mIruuAT{4}xex}Ah~buf0eZgb#Ww>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rzbLaJJ+ploMEv34w2^M$N&HU literal 0 HcmV?d00001 diff --git a/index.html b/index.html new file mode 100644 index 000000000..e14a734da --- /dev/null +++ b/index.html @@ -0,0 +1,16 @@ + + + + + Demoreact + + + + + +

+ + + diff --git a/main.d5268db37c9d70e9.esm.js b/main.d5268db37c9d70e9.esm.js new file mode 100644 index 000000000..011e8b1d3 --- /dev/null +++ b/main.d5268db37c9d70e9.esm.js @@ -0,0 +1,2 @@ +/*! For license information please see main.d5268db37c9d70e9.esm.js.LICENSE.txt */ +(self.webpackChunk=self.webpackChunk||[]).push([[179],{75635:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(37444).Buffer}catch(T){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function u(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function l(e,t,r,i){for(var o=0,s=0,a=Math.min(e.length,r),u=t;u=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&s0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)i=u(e,t,n)<=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(T){o.prototype.inspect=h}else o.prototype.inspect=h;function h(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,s=0;s>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),r=0!==o||s!==this.length-1?d[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],c=p[e];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(c).toString(e);r=(h=h.idivn(c)).isZero()?m+r:d[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(s,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&u,d=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=d;f++){var p=l-f|0;c+=(s=(i=0|e.words[p])*(o=0|t.words[f])+h)/67108864|0,h=67108863&s}r.words[l]=0|h,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var s=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,i),s},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===o?(r>=0&&(e[r--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,s=0;s>26,this.words[s]=67108863&t;for(;0!==o&&s>26,this.words[s]=67108863&t;if(0===o&&s>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,v=g>>>13,b=0|s[3],w=8191&b,_=b>>>13,E=0|s[4],A=8191&E,M=E>>>13,S=0|s[5],x=8191&S,k=S>>>13,T=0|s[6],C=8191&T,I=T>>>13,N=0|s[7],R=8191&N,P=N>>>13,D=0|s[8],L=8191&D,O=D>>>13,j=0|s[9],B=8191&j,U=j>>>13,F=0|a[0],z=8191&F,H=F>>>13,G=0|a[1],Y=8191&G,K=G>>>13,q=0|a[2],W=8191&q,V=q>>>13,$=0|a[3],Q=8191&$,J=$>>>13,Z=0|a[4],X=8191&Z,ee=Z>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ue=8191&ae,le=ae>>>13,ce=0|a[8],he=8191&ce,de=ce>>>13,fe=0|a[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(l+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,z)|0))<<13)|0;l=((o=Math.imul(d,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H);var ye=(l+(n=n+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,Y)|0))<<13)|0;l=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(v,z)|0,o=Math.imul(v,H),n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,K)|0;var ve=(l+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(_,z)|0,o=Math.imul(_,H),n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,V)|0;var be=(l+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,V)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,V)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,J)|0;var we=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,X)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var _e=(l+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;l=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,H))+Math.imul(I,z)|0,o=Math.imul(I,H),n=n+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,K)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(v,X)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var Ee=(l+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,se)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,se)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,H))+Math.imul(P,z)|0,o=Math.imul(P,H),n=n+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(x,W)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(k,W)|0,o=o+Math.imul(k,V)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var Ae=(l+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,le)|0)+Math.imul(d,ue)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(O,z)|0,o=Math.imul(O,H),n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,J)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,se)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,se)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0;var Me=(l+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(U,z)|0,o=Math.imul(U,H),n=n+Math.imul(L,Y)|0,i=(i=i+Math.imul(L,K)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,V)|0,n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,se)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,se)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,le)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,he)|0,o=o+Math.imul(m,de)|0;var Se=(l+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(d,pe)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(B,Y),i=(i=Math.imul(B,K))+Math.imul(U,Y)|0,o=Math.imul(U,K),n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,V)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(C,X)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,se)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,se)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(y,he)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var xe=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,V))+Math.imul(U,W)|0,o=Math.imul(U,V),n=n+Math.imul(L,Q)|0,i=(i=i+Math.imul(L,J)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,se)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,se)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,le)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var ke=(l+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(v,pe)|0))<<13)|0;l=((o=o+Math.imul(v,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(B,Q),i=(i=Math.imul(B,J))+Math.imul(U,Q)|0,o=Math.imul(U,J),n=n+Math.imul(L,X)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,se)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,se)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,le)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(M,he)|0,o=o+Math.imul(M,de)|0;var Te=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(B,X),i=(i=Math.imul(B,ee))+Math.imul(U,X)|0,o=Math.imul(U,ee),n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,se)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,se)|0,n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(x,he)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(k,he)|0,o=o+Math.imul(k,de)|0;var Ce=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(M,pe)|0))<<13)|0;l=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(B,re),i=(i=Math.imul(B,ne))+Math.imul(U,re)|0,o=Math.imul(U,ne),n=n+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,se)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,se)|0,n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,le)|0,n=n+Math.imul(C,he)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Ie=(l+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(k,pe)|0))<<13)|0;l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(B,oe),i=(i=Math.imul(B,se))+Math.imul(U,oe)|0,o=Math.imul(U,se),n=n+Math.imul(L,ue)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,le)|0,n=n+Math.imul(R,he)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(P,he)|0,o=o+Math.imul(P,de)|0;var Ne=(l+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(I,pe)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(B,ue),i=(i=Math.imul(B,le))+Math.imul(U,ue)|0,o=Math.imul(U,le),n=n+Math.imul(L,he)|0,i=(i=i+Math.imul(L,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Re=(l+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(P,pe)|0))<<13)|0;l=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(B,he),i=(i=Math.imul(B,de))+Math.imul(U,he)|0,o=Math.imul(U,de);var Pe=(l+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(O,pe)|0))<<13)|0;l=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863;var De=(l+(n=Math.imul(B,pe))|0)+((8191&(i=(i=Math.imul(B,me))+Math.imul(U,pe)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,u[0]=ge,u[1]=ye,u[2]=ve,u[3]=be,u[4]=we,u[5]=_e,u[6]=Ee,u[7]=Ae,u[8]=Me,u[9]=Se,u[10]=xe,u[11]=ke,u[12]=Te,u[13]=Ce,u[14]=Ie,u[15]=Ne,u[16]=Re,u[17]=Pe,u[18]=De,0!==l&&(u[19]=l,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function v(e,t,r){return y(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(g=m),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):r<63?m(this,e,t):r<1024?y(this,e,t):v(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*t;s>=26,r+=o/67108864|0,r+=s>>>26,this.words[i]=67108863&s}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,l=0;l=0&&(0!==c||l>=i);l--){var h=0|this.words[l];this.words[l]=c<<26-o|h>>>o,c=h&a}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,s=0|i.words[i.length-1];0!==(r=26-this._countBits(s))&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var a,u=n.length-i.length;if("mod"!==t){(a=new o(null)).length=u+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,s,a},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),s=new o(0),a=new o(0),u=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(c),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(c),u.isub(h)),a.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),s.isub(u)):(r.isub(t),a.isub(i),u.isub(s))}return{a,b:u,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,s=new o(1),a=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0==(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),s.isub(a)):(r.isub(t),a.isub(s))}return(i=0===t.cmpn(1)?s:a).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new x(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(E,_),E.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=s}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},E.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new E;else if("p224"===e)t=new A;else if("p192"===e)t=new M;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return w[e]=t,t},x.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var l=t.words[n],c=u-1;c>=0;c--){var h=l>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===n&&0===c)&&(i=this.mul(i,r[s]),a=0,s=0)):a=0}u=26}return i},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,x),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},68214:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var s;"object"==typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(72053).Buffer}catch(T){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function u(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function l(e,t,r,i){for(var o=0,s=0,a=Math.min(e.length,r),u=t;u=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&s0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=2)i=u(e,t,n)<=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;else for(n=(e.length-t)%2==0?t+1:t;n=18?(o-=18,s+=1,this.words[s]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,s=o%n,a=Math.min(o,o-s)+r,u=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(T){o.prototype.inspect=h}else o.prototype.inspect=h;function h(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var i=0,o=0,s=0;s>>24-i&16777215,(i+=2)>=26&&(i-=26,s--),r=0!==o||s!==this.length-1?d[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],c=p[e];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(c).toString(e);r=(h=h.idivn(c)).isZero()?m+r:d[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},s&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(s,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&u,d=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=d;f++){var p=l-f|0;c+=(s=(i=0|e.words[p])*(o=0|t.words[f])+h)/67108864|0,h=67108863&s}r.words[l]=0|h,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var s=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](s,i),s},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r=0&&(e[r--]=s>>8&255),r>=0&&(e[r--]=s>>16&255),6===o?(r>=0&&(e[r--]=s>>24&255),n=0,o=0):(n=s>>>24,o+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,s=0;s>26,this.words[s]=67108863&t;for(;0!==o&&s>26,this.words[s]=67108863&t;if(0===o&&s>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,v=g>>>13,b=0|s[3],w=8191&b,_=b>>>13,E=0|s[4],A=8191&E,M=E>>>13,S=0|s[5],x=8191&S,k=S>>>13,T=0|s[6],C=8191&T,I=T>>>13,N=0|s[7],R=8191&N,P=N>>>13,D=0|s[8],L=8191&D,O=D>>>13,j=0|s[9],B=8191&j,U=j>>>13,F=0|a[0],z=8191&F,H=F>>>13,G=0|a[1],Y=8191&G,K=G>>>13,q=0|a[2],W=8191&q,V=q>>>13,$=0|a[3],Q=8191&$,J=$>>>13,Z=0|a[4],X=8191&Z,ee=Z>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ue=8191&ae,le=ae>>>13,ce=0|a[8],he=8191&ce,de=ce>>>13,fe=0|a[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(l+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,z)|0))<<13)|0;l=((o=Math.imul(d,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H);var ye=(l+(n=n+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,Y)|0))<<13)|0;l=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(v,z)|0,o=Math.imul(v,H),n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,K)|0;var ve=(l+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(_,z)|0,o=Math.imul(_,H),n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,V)|0;var be=(l+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,V)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,V)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,J)|0;var we=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,X)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var _e=(l+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;l=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,H))+Math.imul(I,z)|0,o=Math.imul(I,H),n=n+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,K)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(v,X)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var Ee=(l+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,se)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,se)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,H))+Math.imul(P,z)|0,o=Math.imul(P,H),n=n+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(x,W)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(k,W)|0,o=o+Math.imul(k,V)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var Ae=(l+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,le)|0)+Math.imul(d,ue)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(O,z)|0,o=Math.imul(O,H),n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,J)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,se)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,se)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0;var Me=(l+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(U,z)|0,o=Math.imul(U,H),n=n+Math.imul(L,Y)|0,i=(i=i+Math.imul(L,K)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,V)|0,n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,se)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,se)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,le)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,he)|0,o=o+Math.imul(m,de)|0;var Se=(l+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(d,pe)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(B,Y),i=(i=Math.imul(B,K))+Math.imul(U,Y)|0,o=Math.imul(U,K),n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,V)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(C,X)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,se)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,se)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(y,he)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var xe=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,V))+Math.imul(U,W)|0,o=Math.imul(U,V),n=n+Math.imul(L,Q)|0,i=(i=i+Math.imul(L,J)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,se)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,se)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,le)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var ke=(l+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(v,pe)|0))<<13)|0;l=((o=o+Math.imul(v,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(B,Q),i=(i=Math.imul(B,J))+Math.imul(U,Q)|0,o=Math.imul(U,J),n=n+Math.imul(L,X)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,se)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,se)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,le)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(M,he)|0,o=o+Math.imul(M,de)|0;var Te=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(B,X),i=(i=Math.imul(B,ee))+Math.imul(U,X)|0,o=Math.imul(U,ee),n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,se)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,se)|0,n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(x,he)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(k,he)|0,o=o+Math.imul(k,de)|0;var Ce=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(M,pe)|0))<<13)|0;l=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(B,re),i=(i=Math.imul(B,ne))+Math.imul(U,re)|0,o=Math.imul(U,ne),n=n+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,se)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,se)|0,n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,le)|0,n=n+Math.imul(C,he)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Ie=(l+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(k,pe)|0))<<13)|0;l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(B,oe),i=(i=Math.imul(B,se))+Math.imul(U,oe)|0,o=Math.imul(U,se),n=n+Math.imul(L,ue)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,le)|0,n=n+Math.imul(R,he)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(P,he)|0,o=o+Math.imul(P,de)|0;var Ne=(l+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(I,pe)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(B,ue),i=(i=Math.imul(B,le))+Math.imul(U,ue)|0,o=Math.imul(U,le),n=n+Math.imul(L,he)|0,i=(i=i+Math.imul(L,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Re=(l+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(P,pe)|0))<<13)|0;l=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(B,he),i=(i=Math.imul(B,de))+Math.imul(U,he)|0,o=Math.imul(U,de);var Pe=(l+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(O,pe)|0))<<13)|0;l=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863;var De=(l+(n=Math.imul(B,pe))|0)+((8191&(i=(i=Math.imul(B,me))+Math.imul(U,pe)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,u[0]=ge,u[1]=ye,u[2]=ve,u[3]=be,u[4]=we,u[5]=_e,u[6]=Ee,u[7]=Ae,u[8]=Me,u[9]=Se,u[10]=xe,u[11]=ke,u[12]=Te,u[13]=Ce,u[14]=Ie,u[15]=Ne,u[16]=Re,u[17]=Pe,u[18]=De,0!==l&&(u[19]=l,r.length++),r};function y(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function v(e,t,r){return y(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(g=m),o.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):r<63?m(this,e,t):r<1024?y(this,e,t):v(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},b.prototype.permute=function(e,t,r,n,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,r[2*s+1]=8191&o,o>>>=13;for(s=2*t;s>=26,r+=o/67108864|0,r+=s>>>26,this.words[i]=67108863&s}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r>>i&1}return t}(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(t=0;t>>26-r}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,l=0;l=0&&(0!==c||l>=i);l--){var h=0|this.words[l];this.words[l]=c<<26-o|h>>>o,c=h&a}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===a)return this._strip();for(n(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,s=0|i.words[i.length-1];0!==(r=26-this._countBits(s))&&(i=i.ushln(r),n.iushln(r),s=0|i.words[i.length-1]);var a,u=n.length-i.length;if("mod"!==t){(a=new o(null)).length=u+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[i.length+h])+(0|n.words[i.length+h-1]);for(d=Math.min(d/s|0,67108863),n._ishlnsubmul(i,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(i,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(i=a.div.neg()),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.iadd(e)),{div:i,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(i=a.div.neg()),{div:i,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),r&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,s,a},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),s=new o(0),a=new o(0),u=new o(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),h=t.clone();!t.isZero();){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(c),s.isub(h)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(c),u.isub(h)),a.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(a),s.isub(u)):(r.isub(t),a.isub(i),u.isub(s))}return{a,b:u,gcd:r.iushln(l)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,s=new o(1),a=new o(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0==(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);t.cmp(r)>=0?(t.isub(r),s.isub(a)):(r.isub(t),a.isub(s))}return(i=0===t.cmpn(1)?s:a).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new x(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function k(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(E,_),E.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=s}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},E.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new E;else if("p224"===e)t=new A;else if("p192"===e)t=new M;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new S}return w[e]=t,t},x.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var a=new o(1).toRed(this),u=a.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new o(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),f=this.pow(e,i),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();n(g=0;n--){for(var l=t.words[n],c=u-1;c>=0;c--){var h=l>>c&1;i!==r[0]&&(i=this.sqr(i)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===n&&0===c)&&(i=this.mul(i,r[s]),a=0,s=0)):a=0}u=26}return i},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new k(e)},i(k,x),k.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},k.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},k.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},k.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},65570:(e,t,r)=>{"use strict";var n={};r.r(n),r.d(n,{decode:()=>fr,encode:()=>cr});var i={};r.r(i),r.d(i,{AddressZero:()=>Lr,EtherSymbol:()=>Kr,HashZero:()=>Yr,MaxInt256:()=>Gr,MaxUint256:()=>zr,MinInt256:()=>Hr,NegativeOne:()=>Or,One:()=>Br,Two:()=>Ur,WeiPerEther:()=>Fr,Zero:()=>jr});var o={};r.r(o),r.d(o,{decode:()=>Tn,encode:()=>Cn});var s={};r.r(s),r.d(s,{AlchemyProvider:()=>Wu,AlchemyWebSocketProvider:()=>qu,AnkrProvider:()=>Ju,BaseProvider:()=>wu,CloudflareProvider:()=>el,EtherscanProvider:()=>ul,FallbackProvider:()=>Al,Formatter:()=>qa,InfuraProvider:()=>Tl,InfuraWebSocketProvider:()=>kl,IpcProvider:()=>Ml,JsonRpcBatchProvider:()=>Cl,JsonRpcProvider:()=>Pu,JsonRpcSigner:()=>Iu,NodesmithProvider:()=>Nl,PocketProvider:()=>Dl,Provider:()=>Ii,Resolver:()=>yu,StaticJsonRpcProvider:()=>Hu,UrlJsonRpcProvider:()=>Gu,Web3Provider:()=>Bl,WebSocketProvider:()=>Uu,getDefaultProvider:()=>Fl,getNetwork:()=>Ia,isCommunityResourcable:()=>Wa,isCommunityResource:()=>Va,showThrottleMessage:()=>Qa});var a={};r.r(a),r.d(a,{AbiCoder:()=>Mn,ConstructorFragment:()=>Yt,ErrorFragment:()=>Wt,EventFragment:()=>Ft,FormatTypes:()=>Lt,Fragment:()=>Ut,FunctionFragment:()=>Kt,HDNode:()=>Ls,Indexed:()=>Ai,Interface:()=>xi,LogDescription:()=>wi,Logger:()=>Ae,ParamType:()=>jt,RLP:()=>n,SigningKey:()=>ko,SupportedAlgorithm:()=>ds,TransactionDescription:()=>_i,TransactionTypes:()=>No,UnicodeNormalizationForm:()=>Vr,Utf8ErrorFuncs:()=>Jr,Utf8ErrorReason:()=>$r,_TypedDataEncoder:()=>vi,_fetchData:()=>Ba,_toEscapedUtf8String:()=>tn,accessListify:()=>Fo,arrayify:()=>Ie,base58:()=>hs,base64:()=>o,checkProperties:()=>wt,checkResultErrors:()=>Xt,commify:()=>Jl,computeAddress:()=>Oo,computeHmac:()=>ys,computePublicKey:()=>Co,concat:()=>Ne,deepCopy:()=>St,defaultAbiCoder:()=>Sn,defaultPath:()=>Ds,defineReadOnly:()=>yt,dnsEncode:()=>ti,entropyToMnemonic:()=>Bs,fetchJson:()=>Ua,formatBytes32String:()=>sn,formatEther:()=>ec,formatUnits:()=>Zl,getAccountPath:()=>Fs,getAddress:()=>br,getContractAddress:()=>Er,getCreate2Address:()=>Ar,getIcapAddress:()=>_r,getJsonWalletAddress:()=>oa,getStatic:()=>vt,hashMessage:()=>ri,hexConcat:()=>Ue,hexDataLength:()=>je,hexDataSlice:()=>Be,hexStripZeros:()=>ze,hexValue:()=>Fe,hexZeroPad:()=>He,hexlify:()=>Oe,id:()=>xn,isAddress:()=>wr,isBytes:()=>Ce,isBytesLike:()=>ke,isHexString:()=>De,isValidMnemonic:()=>Us,isValidName:()=>Xn,joinSignature:()=>Ye,keccak256:()=>or,mnemonicToEntropy:()=>js,mnemonicToSeed:()=>Os,namehash:()=>ei,nameprep:()=>vn,parseBytes32String:()=>an,parseEther:()=>tc,parseTransaction:()=>qo,parseUnits:()=>Xl,poll:()=>Fa,randomBytes:()=>Ys,recoverAddress:()=>jo,recoverPublicKey:()=>To,resolveProperties:()=>bt,ripemd160:()=>ps,serializeTransaction:()=>Yo,sha256:()=>ms,sha512:()=>gs,shallowCopy:()=>_t,shuffled:()=>Ks,solidityKeccak256:()=>Wl,solidityPack:()=>ql,soliditySha256:()=>Vl,splitSignature:()=>Ge,stripZeros:()=>Re,toUtf8Bytes:()=>Xr,toUtf8CodePoints:()=>on,toUtf8String:()=>nn,verifyMessage:()=>_a,verifyTypedData:()=>Ea,zeroPad:()=>Pe});var u={};r.r(u),r.d(u,{BaseContract:()=>as,BigNumber:()=>Je,Contract:()=>us,ContractFactory:()=>ls,FixedNumber:()=>dt,Signer:()=>Li,VoidSigner:()=>Oi,Wallet:()=>wa,Wordlist:()=>ws,constants:()=>i,errors:()=>_e,getDefaultProvider:()=>Fl,logger:()=>nc,providers:()=>s,utils:()=>a,version:()=>rc,wordlists:()=>Ms});var l={};r.r(l),r.d(l,{Decoder:()=>em,Encoder:()=>Xp,PacketType:()=>Zp,protocol:()=>Jp});var c={};r.r(c),r.d(c,{Decoder:()=>KG,Encoder:()=>GG,PacketType:()=>HG,protocol:()=>zG});var h={};r.r(h),r.d(h,{decode:()=>uq,encode:()=>oq});var d={};r.r(d),r.d(d,{AddressZero:()=>Iq,EtherSymbol:()=>Fq,HashZero:()=>Uq,MaxInt256:()=>Bq,MaxUint256:()=>Oq,MinInt256:()=>jq,NegativeOne:()=>Nq,One:()=>Pq,Two:()=>Dq,WeiPerEther:()=>Lq,Zero:()=>Rq});var f={};r.r(f),r.d(f,{decode:()=>EW,encode:()=>AW});var p={};r.r(p),r.d(p,{AlchemyProvider:()=>FZ,AlchemyWebSocketProvider:()=>UZ,AnkrProvider:()=>YZ,BaseProvider:()=>fZ,CloudflareProvider:()=>WZ,EtherscanProvider:()=>tX,FallbackProvider:()=>gX,Formatter:()=>UJ,InfuraProvider:()=>_X,InfuraWebSocketProvider:()=>wX,IpcProvider:()=>yX,JsonRpcBatchProvider:()=>EX,JsonRpcProvider:()=>xZ,JsonRpcSigner:()=>AZ,NodesmithProvider:()=>MX,PocketProvider:()=>kX,Provider:()=>MV,Resolver:()=>cZ,StaticJsonRpcProvider:()=>LZ,UrlJsonRpcProvider:()=>OZ,Web3Provider:()=>NX,WebSocketProvider:()=>RZ,getDefaultProvider:()=>PX,getNetwork:()=>AJ,isCommunityResourcable:()=>FJ,isCommunityResource:()=>zJ,showThrottleMessage:()=>GJ});var m={};r.r(m),r.d(m,{AbiCoder:()=>vW,ConstructorFragment:()=>UK,ErrorFragment:()=>HK,EventFragment:()=>LK,FormatTypes:()=>IK,Fragment:()=>DK,FunctionFragment:()=>FK,HDNode:()=>TQ,Indexed:()=>yV,Interface:()=>wV,LogDescription:()=>pV,Logger:()=>vY,ParamType:()=>RK,RLP:()=>h,SigningKey:()=>w$,SupportedAlgorithm:()=>oQ,TransactionDescription:()=>mV,TransactionTypes:()=>M$,UnicodeNormalizationForm:()=>Gq,Utf8ErrorFuncs:()=>qq,Utf8ErrorReason:()=>Yq,_TypedDataEncoder:()=>dV,_fetchData:()=>NJ,_toEscapedUtf8String:()=>Qq,accessListify:()=>P$,arrayify:()=>SY,base58:()=>iQ,base64:()=>f,checkProperties:()=>mK,checkResultErrors:()=>VK,commify:()=>YX,computeAddress:()=>C$,computeHmac:()=>cQ,computePublicKey:()=>E$,concat:()=>xY,deepCopy:()=>wK,defaultAbiCoder:()=>bW,defaultPath:()=>kQ,defineReadOnly:()=>dK,dnsEncode:()=>$W,entropyToMnemonic:()=>NQ,fetchJson:()=>RJ,formatBytes32String:()=>eW,formatEther:()=>WX,formatUnits:()=>KX,getAccountPath:()=>PQ,getAddress:()=>pq,getContractAddress:()=>yq,getCreate2Address:()=>vq,getIcapAddress:()=>gq,getJsonWalletAddress:()=>ZQ,getStatic:()=>fK,hashMessage:()=>QW,hexConcat:()=>DY,hexDataLength:()=>RY,hexDataSlice:()=>PY,hexStripZeros:()=>OY,hexValue:()=>LY,hexZeroPad:()=>jY,hexlify:()=>NY,id:()=>wW,isAddress:()=>mq,isBytes:()=>MY,isBytesLike:()=>EY,isHexString:()=>CY,isValidMnemonic:()=>RQ,isValidName:()=>WW,joinSignature:()=>UY,keccak256:()=>eq,mnemonicToEntropy:()=>IQ,mnemonicToSeed:()=>CQ,namehash:()=>VW,nameprep:()=>dW,parseBytes32String:()=>tW,parseEther:()=>VX,parseTransaction:()=>U$,parseUnits:()=>qX,poll:()=>PJ,randomBytes:()=>jQ,recoverAddress:()=>I$,recoverPublicKey:()=>_$,resolveProperties:()=>pK,ripemd160:()=>aQ,serializeTransaction:()=>j$,sha256:()=>uQ,sha512:()=>lQ,shallowCopy:()=>gK,shuffled:()=>BQ,solidityKeccak256:()=>FX,solidityPack:()=>UX,soliditySha256:()=>zX,splitSignature:()=>BY,stripZeros:()=>kY,toUtf8Bytes:()=>Vq,toUtf8CodePoints:()=>Xq,toUtf8String:()=>Zq,verifyMessage:()=>pJ,verifyTypedData:()=>mJ,zeroPad:()=>TY});var g={};r.r(g),r.d(g,{BaseContract:()=>eQ,BigNumber:()=>qY,Contract:()=>tQ,ContractFactory:()=>rQ,FixedNumber:()=>aK,Signer:()=>CV,VoidSigner:()=>IV,Wallet:()=>fJ,Wordlist:()=>fQ,constants:()=>d,errors:()=>gY,getDefaultProvider:()=>PX,logger:()=>QX,providers:()=>p,utils:()=>m,version:()=>$X,wordlists:()=>yQ});var y={};r.r(y),r.d(y,{AlchemyProvider:()=>_5,AlchemyWebSocketProvider:()=>w5,AnkrProvider:()=>S5,BaseProvider:()=>V4,CloudflareProvider:()=>T5,EtherscanProvider:()=>O5,FallbackProvider:()=>J5,Formatter:()=>w4,InfuraProvider:()=>r8,InfuraWebSocketProvider:()=>t8,IpcProvider:()=>Z5,JsonRpcBatchProvider:()=>n8,JsonRpcProvider:()=>a5,JsonRpcSigner:()=>i5,NodesmithProvider:()=>o8,PocketProvider:()=>u8,Provider:()=>x6.zt,Resolver:()=>K4,StaticJsonRpcProvider:()=>g5,UrlJsonRpcProvider:()=>y5,Web3Provider:()=>d8,WebSocketProvider:()=>f5,getDefaultProvider:()=>p8,getNetwork:()=>l4.H,isCommunityResourcable:()=>_4,isCommunityResource:()=>E4,showThrottleMessage:()=>M4});var v={};r.r(v),r.d(v,{AbiCoder:()=>S6.AbiCoder,ConstructorFragment:()=>S6.ConstructorFragment,ErrorFragment:()=>S6.ErrorFragment,EventFragment:()=>S6.EventFragment,FormatTypes:()=>S6.FormatTypes,Fragment:()=>S6.Fragment,FunctionFragment:()=>S6.FunctionFragment,HDNode:()=>Z6.m$,Indexed:()=>S6.Indexed,Interface:()=>S6.Interface,LogDescription:()=>S6.LogDescription,Logger:()=>P6.Yd,ParamType:()=>S6.ParamType,RLP:()=>M8,SigningKey:()=>t4.Et,SupportedAlgorithm:()=>d4.p2,TransactionDescription:()=>S6.TransactionDescription,TransactionTypes:()=>R6.em,UnicodeNormalizationForm:()=>f4.Uj,Utf8ErrorFuncs:()=>f4.te,Utf8ErrorReason:()=>f4.Uw,_TypedDataEncoder:()=>J6.H1,_fetchData:()=>p4.MY,_toEscapedUtf8String:()=>f4.U$,accessListify:()=>R6.z7,arrayify:()=>I6.lE,base58:()=>h4.eU,base64:()=>c4,checkProperties:()=>N6.uj,checkResultErrors:()=>S6.checkResultErrors,commify:()=>k8,computeAddress:()=>R6.db,computeHmac:()=>d4.Gy,computePublicKey:()=>t4.VW,concat:()=>I6.zo,deepCopy:()=>N6.p$,defaultAbiCoder:()=>S6.defaultAbiCoder,defaultPath:()=>Z6.cD,defineReadOnly:()=>N6.zG,dnsEncode:()=>J6.Kn,entropyToMnemonic:()=>Z6.JJ,fetchJson:()=>p4.rd,formatBytes32String:()=>f4.s4,formatEther:()=>I8,formatUnits:()=>T8,getAccountPath:()=>Z6.ny,getAddress:()=>T6.Kn,getContractAddress:()=>T6.CR,getCreate2Address:()=>T6.hB,getIcapAddress:()=>T6.vU,getJsonWalletAddress:()=>r4.Rb,getStatic:()=>N6.tu,hashMessage:()=>J6.rj,hexConcat:()=>I6.xs,hexDataLength:()=>I6.E1,hexDataSlice:()=>I6.p3,hexStripZeros:()=>I6.Ou,hexValue:()=>I6.$P,hexZeroPad:()=>I6.$m,hexlify:()=>I6.Dv,id:()=>J6.id,isAddress:()=>T6.UJ,isBytes:()=>I6._t,isBytesLike:()=>I6.Zq,isHexString:()=>I6.A7,isValidMnemonic:()=>Z6.xh,isValidName:()=>J6.r1,joinSignature:()=>I6.gV,keccak256:()=>X6.w,mnemonicToEntropy:()=>Z6.oy,mnemonicToSeed:()=>Z6.OI,namehash:()=>J6.VM,nameprep:()=>f4.Ll,parseBytes32String:()=>f4.FH,parseEther:()=>N8,parseTransaction:()=>R6.Qc,parseUnits:()=>C8,poll:()=>p4.$l,randomBytes:()=>e4.O,recoverAddress:()=>R6.RJ,recoverPublicKey:()=>t4.LO,resolveProperties:()=>N6.mE,ripemd160:()=>d4.bP,serializeTransaction:()=>R6.qC,sha256:()=>d4.JQ,sha512:()=>d4.o,shallowCopy:()=>N6.DC,shuffled:()=>e4.y,solidityKeccak256:()=>E8,solidityPack:()=>_8,soliditySha256:()=>A8,splitSignature:()=>I6.N,stripZeros:()=>I6.G1,toUtf8Bytes:()=>f4.Y0,toUtf8CodePoints:()=>f4.XL,toUtf8String:()=>f4.ZN,verifyMessage:()=>s4,verifyTypedData:()=>a4,zeroPad:()=>I6.Bu});var b={};r.r(b),r.d(b,{BaseContract:()=>V6,BigNumber:()=>C6.O$,Contract:()=>$6,ContractFactory:()=>Q6,FixedNumber:()=>C6.xs,Signer:()=>k6.E,VoidSigner:()=>k6.b,Wallet:()=>o4,Wordlist:()=>m8.DC,constants:()=>u4,errors:()=>P6.jK,getDefaultProvider:()=>p8,logger:()=>P8,providers:()=>y,utils:()=>v,version:()=>R8,wordlists:()=>m8.ET});var w=r(32735),_=r.t(w,2),E=r(12788);function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(r),e=e.substr(0,r));var n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}r(98399);const P=(0,w.createContext)(null);const D=(0,w.createContext)(null);const L=(0,w.createContext)({outlet:null,matches:[]});function O(e,t){if(!e)throw new Error(t)}function j(e,t,r){void 0===r&&(r="/");let n=K(("string"==typeof t?R(t):t).pathname||"/",r);if(null==n)return null;let i=B(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let r=e.length===t.length&&e.slice(0,-1).every(((e,r)=>e===t[r]));return r?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(i);let o=null;for(let s=0;null==o&&s{let o={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};o.relativePath.startsWith("/")&&(o.relativePath.startsWith(n)||O(!1),o.relativePath=o.relativePath.slice(n.length));let s=q([n,o.relativePath]),a=r.concat(o);e.children&&e.children.length>0&&(!0===e.index&&O(!1),B(e.children,t,a,s)),(null!=e.path||e.index)&&t.push({path:s,score:z(s,e.index),routesMeta:a})})),t}const U=/^:\w+$/,F=e=>"*"===e;function z(e,t){let r=e.split("/"),n=r.length;return r.some(F)&&(n+=-2),t&&(n+=2),r.filter((e=>!F(e))).reduce(((e,t)=>e+(U.test(t)?3:""===t?1:10)),n)}function H(e,t){let{routesMeta:r}=e,n={},i="/",o=[];for(let s=0;s(n.push(t),"([^\\/]+)")));e.endsWith("*")?(n.push("*"),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):i+=r?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)";return[new RegExp(i,t?void 0:"i"),n]}(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1),u=n.reduce(((e,t,r)=>{if("*"===t){let e=a[r]||"";s=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(XMe){return e}}(a[r]||""),e}),{});return{params:u,pathname:o,pathnameBase:s,pattern:e}}function Y(e,t,r){let n,i="string"==typeof e?R(e):e,o=""===e||""===i.pathname?"/":i.pathname;if(null==o)n=r;else{let e=t.length-1;if(o.startsWith("..")){let t=o.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}n=e>=0?t[e]:"/"}let s=function(e,t){void 0===t&&(t="/");let{pathname:r,search:n="",hash:i=""}="string"==typeof e?R(e):e,o=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)})),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:o,search:V(n),hash:$(i)}}(i,n);return o&&"/"!==o&&o.endsWith("/")&&!s.pathname.endsWith("/")&&(s.pathname+="/"),s}function K(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=e.charAt(t.length);return r&&"/"!==r?null:e.slice(t.length)||"/"}const q=e=>e.join("/").replace(/\/\/+/g,"/"),W=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),V=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",$=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function Q(e){J()||O(!1);let{basename:t,navigator:r}=(0,w.useContext)(P),{hash:n,pathname:i,search:o}=ee(e),s=i;if("/"!==t){let r=function(e){return""===e||""===e.pathname?"/":"string"==typeof e?R(e).pathname:e.pathname}(e),n=null!=r&&r.endsWith("/");s="/"===i?t+(n?"/":""):q([t,i])}return r.createHref({pathname:s,search:o,hash:n})}function J(){return null!=(0,w.useContext)(D)}function Z(){return J()||O(!1),(0,w.useContext)(D).location}function X(){J()||O(!1);let{basename:e,navigator:t}=(0,w.useContext)(P),{matches:r}=(0,w.useContext)(L),{pathname:n}=Z(),i=JSON.stringify(r.map((e=>e.pathnameBase))),o=(0,w.useRef)(!1);(0,w.useEffect)((()=>{o.current=!0}));let s=(0,w.useCallback)((function(r,s){if(void 0===s&&(s={}),!o.current)return;if("number"==typeof r)return void t.go(r);let a=Y(r,JSON.parse(i),n);"/"!==e&&(a.pathname=q([e,a.pathname])),(s.replace?t.replace:t.push)(a,s.state)}),[e,t,i,n]);return s}function ee(e){let{matches:t}=(0,w.useContext)(L),{pathname:r}=Z(),n=JSON.stringify(t.map((e=>e.pathnameBase)));return(0,w.useMemo)((()=>Y(e,JSON.parse(n),r)),[e,n,r])}function te(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight(((r,n,i)=>(0,w.createElement)(L.Provider,{children:void 0!==n.route.element?n.route.element:r,value:{outlet:r,matches:t.concat(e.slice(0,i+1))}})),null)}function re(e){O(!1)}function ne(e){let{basename:t="/",children:r=null,location:n,navigationType:i=M.Pop,navigator:o,static:s=!1}=e;J()&&O(!1);let a=W(t),u=(0,w.useMemo)((()=>({basename:a,navigator:o,static:s})),[a,o,s]);"string"==typeof n&&(n=R(n));let{pathname:l="/",search:c="",hash:h="",state:d=null,key:f="default"}=n,p=(0,w.useMemo)((()=>{let e=K(l,a);return null==e?null:{pathname:e,search:c,hash:h,state:d,key:f}}),[a,l,c,h,d,f]);return null==p?null:(0,w.createElement)(P.Provider,{value:u},(0,w.createElement)(D.Provider,{children:r,value:{location:p,navigationType:i}}))}function ie(e){let{children:t,location:r}=e;return function(e,t){J()||O(!1);let{matches:r}=(0,w.useContext)(L),n=r[r.length-1],i=n?n.params:{},o=(n&&n.pathname,n?n.pathnameBase:"/");n&&n.route;let s,a=Z();if(t){var u;let e="string"==typeof t?R(t):t;"/"===o||(null==(u=e.pathname)?void 0:u.startsWith(o))||O(!1),s=e}else s=a;let l=s.pathname||"/",c=j(e,{pathname:"/"===o?l:l.slice(o.length)||"/"});return te(c&&c.map((e=>Object.assign({},e,{params:Object.assign({},i,e.params),pathname:q([o,e.pathname]),pathnameBase:"/"===e.pathnameBase?o:q([o,e.pathnameBase])}))),r)}(oe(t),r)}function oe(e){let t=[];return w.Children.forEach(e,(e=>{if(!(0,w.isValidElement)(e))return;if(e.type===w.Fragment)return void t.push.apply(t,oe(e.props.children));e.type!==re&&O(!1);let r={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(r.children=oe(e.props.children)),t.push(r)})),t}r(98399);function se(){return se=Object.assign||function(e){for(var t=1;t=0||(i[r]=e[r]);return i}const ue=["onClick","reloadDocument","replace","state","target","to"];function le(e){let{basename:t,children:r,window:n}=e,i=(0,w.useRef)();null==i.current&&(i.current=function(e){void 0===e&&(e={});var t=e.window,r=void 0===t?document.defaultView:t,n=r.history;function i(){var e=r.location,t=e.pathname,i=e.search,o=e.hash,s=n.state||{};return[s.idx,S({pathname:t,search:i,hash:o,state:s.usr||null,key:s.key||"default"})]}var o=null;r.addEventListener(k,(function(){if(o)h.call(o),o=null;else{var e=M.Pop,t=i(),r=t[0],n=t[1];if(h.length){if(null!=r){var s=u-r;s&&(o={action:e,location:n,retry:function(){y(-1*s)}},y(s))}}else g(e)}}));var s=M.Pop,a=i(),u=a[0],l=a[1],c=C(),h=C();function d(e){return"string"==typeof e?e:N(e)}function f(e,t){return void 0===t&&(t=null),S(A({pathname:l.pathname,hash:"",search:""},"string"==typeof e?R(e):e,{state:t,key:I()}))}function p(e,t){return[{usr:e.state,key:e.key,idx:t},d(e)]}function m(e,t,r){return!h.length||(h.call({action:e,location:t,retry:r}),!1)}function g(e){s=e;var t=i();u=t[0],l=t[1],c.call({action:s,location:l})}function y(e){n.go(e)}null==u&&(u=0,n.replaceState(A({},n.state,{idx:u}),""));var v={get action(){return s},get location(){return l},createHref:d,push:function e(t,i){var o=M.Push,s=f(t,i);if(m(o,s,(function(){e(t,i)}))){var a=p(s,u+1),l=a[0],c=a[1];try{n.pushState(l,"",c)}catch(XMe){r.location.assign(c)}g(o)}},replace:function e(t,r){var i=M.Replace,o=f(t,r);if(m(i,o,(function(){e(t,r)}))){var s=p(o,u),a=s[0],l=s[1];n.replaceState(a,"",l),g(i)}},go:y,back:function(){y(-1)},forward:function(){y(1)},listen:function(e){return c.push(e)},block:function(e){var t=h.push(e);return 1===h.length&&r.addEventListener(x,T),function(){t(),h.length||r.removeEventListener(x,T)}}};return v}({window:n}));let o=i.current,[s,a]=(0,w.useState)({action:o.action,location:o.location});return(0,w.useLayoutEffect)((()=>o.listen(a)),[o]),(0,w.createElement)(ne,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:o})}const ce=(0,w.forwardRef)((function(e,t){let{onClick:r,reloadDocument:n,replace:i=!1,state:o,target:s,to:a}=e,u=ae(e,ue),l=Q(a),c=function(e,t){let{target:r,replace:n,state:i}=void 0===t?{}:t,o=X(),s=Z(),a=ee(e);return(0,w.useCallback)((t=>{if(!(0!==t.button||r&&"_self"!==r||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t))){t.preventDefault();let r=!!n||N(s)===N(a);o(e,{replace:r,state:i})}}),[s,o,a,n,i,r,e])}(a,{replace:i,state:o,target:s});return(0,w.createElement)("a",se({},u,{href:l,onClick:function(e){r&&r(e),e.defaultPrevented||n||c(e)},ref:t,target:s}))}));var he=r(75635),de=r.n(he);var fe=r(98399);let pe=!1,me=!1;const ge={debug:1,default:2,info:2,warning:3,error:4,off:5};let ye=ge.default,ve=null;const be=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(XMe){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(XMe){return XMe.message}return null}();var we,_e;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(we||(we={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(_e||(_e={}));const Ee="0123456789abcdef";class Ae{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const r=e.toLowerCase();null==ge[r]&&this.throwArgumentError("invalid log level name","logLevel",e),ye>ge[r]||fe.log.apply(fe,t)}debug(...e){this._log(Ae.levels.DEBUG,e)}info(...e){this._log(Ae.levels.INFO,e)}warn(...e){this._log(Ae.levels.WARNING,e)}makeError(e,t,r){if(me)return this.makeError("censored error",t,{});t||(t=Ae.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((e=>{const t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e>4],r+=Ee[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch(s){n.push(e+"="+JSON.stringify(r[e].toString()))}})),n.push(`code=${t}`),n.push(`version=${this.version}`);const i=e;let o="";switch(t){case _e.NUMERIC_FAULT:{o="NUMERIC_FAULT";const t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":o+="-"+t;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case _e.CALL_EXCEPTION:case _e.INSUFFICIENT_FUNDS:case _e.MISSING_NEW:case _e.NONCE_EXPIRED:case _e.REPLACEMENT_UNDERPRICED:case _e.TRANSACTION_REPLACED:case _e.UNPREDICTABLE_GAS_LIMIT:o=t}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(e+=" ("+n.join(", ")+")");const s=new Error(e);return s.reason=i,s.code=t,Object.keys(r).forEach((function(e){s[e]=r[e]})),s}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,Ae.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),be&&this.throwError("platform missing String.prototype.normalize",Ae.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:be})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,Ae.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,Ae.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",et&&this.throwError("too many arguments"+r,Ae.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",Ae.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",Ae.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",Ae.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return ve||(ve=new Ae("logger/5.7.0")),ve}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",Ae.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),pe){if(!e)return;this.globalLogger().throwError("error censorship permanent",Ae.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}me=!!e,pe=!!t}static setLogLevel(e){const t=ge[e.toLowerCase()];null!=t?ye=t:Ae.globalLogger().warn("invalid log level - "+e)}static from(e){return new Ae(e)}}Ae.errors=_e,Ae.levels=we;const Me=new Ae("bytes/5.7.0");function Se(e){return!!e.toHexString}function xe(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return xe(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function ke(e){return De(e)&&!(e.length%2)||Ce(e)}function Te(e){return"number"==typeof e&&e==e&&e%1==0}function Ce(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!Te(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function Ie(e,t){if(t||(t={}),"number"==typeof e){Me.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),xe(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Se(e)&&(e=e.toHexString()),De(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":Me.throwArgumentError("hex data is odd-length","value",e));const n=[];for(let e=0;eIe(e))),r=t.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(r);return t.reduce(((e,t)=>(n.set(t,e),e+t.length)),0),xe(n)}function Re(e){let t=Ie(e);if(0===t.length)return t;let r=0;for(;rt&&Me.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(t);return r.set(e,t-e.length),xe(r)}function De(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}const Le="0123456789abcdef";function Oe(e,t){if(t||(t={}),"number"==typeof e){Me.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=Le[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Se(e))return e.toHexString();if(De(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":Me.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(Ce(e)){let t="0x";for(let r=0;r>4]+Le[15&n]}return t}return Me.throwArgumentError("invalid hexlify value","value",e)}function je(e){if("string"!=typeof e)e=Oe(e);else if(!De(e)||e.length%2)return null;return(e.length-2)/2}function Be(e,t,r){return"string"!=typeof e?e=Oe(e):(!De(e)||e.length%2)&&Me.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function Ue(e){let t="0x";return e.forEach((e=>{t+=Oe(e).substring(2)})),t}function Fe(e){const t=ze(Oe(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function ze(e){"string"!=typeof e&&(e=Oe(e)),De(e)||Me.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t2*t+2&&Me.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function Ge(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(ke(e)){let r=Ie(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=Oe(r.slice(0,32)),t.s=Oe(r.slice(32,64))):65===r.length?(t.r=Oe(r.slice(0,32)),t.s=Oe(r.slice(32,64)),t.v=r[64]):Me.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:Me.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=Oe(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){const r=Pe(Ie(t._vs),32);t._vs=Oe(r);const n=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=n:t.recoveryParam!==n&&Me.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;const i=Oe(r);null==t.s?t.s=i:t.s!==i&&Me.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?Me.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{const r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&Me.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&De(t.r)?t.r=He(t.r,32):Me.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&De(t.s)?t.s=He(t.s,32):Me.throwArgumentError("signature missing or invalid s","signature",e);const r=Ie(t.s);r[0]>=128&&Me.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);const n=Oe(r);t._vs&&(De(t._vs)||Me.throwArgumentError("signature invalid _vs","signature",e),t._vs=He(t._vs,32)),null==t._vs?t._vs=n:t._vs!==n&&Me.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function Ye(e){return Oe(Ne([(e=Ge(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}const Ke="bignumber/5.7.0";var qe=de().BN;const We=new Ae(Ke),Ve={},$e=9007199254740991;let Qe=!1;class Je{constructor(e,t){e!==Ve&&We.throwError("cannot call constructor directly; use BigNumber.from",Ae.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return Xe(et(this).fromTwos(e))}toTwos(e){return Xe(et(this).toTwos(e))}abs(){return"-"===this._hex[0]?Je.from(this._hex.substring(1)):this}add(e){return Xe(et(this).add(et(e)))}sub(e){return Xe(et(this).sub(et(e)))}div(e){return Je.from(e).isZero()&&tt("division-by-zero","div"),Xe(et(this).div(et(e)))}mul(e){return Xe(et(this).mul(et(e)))}mod(e){const t=et(e);return t.isNeg()&&tt("division-by-zero","mod"),Xe(et(this).umod(t))}pow(e){const t=et(e);return t.isNeg()&&tt("negative-power","pow"),Xe(et(this).pow(t))}and(e){const t=et(e);return(this.isNegative()||t.isNeg())&&tt("unbound-bitwise-result","and"),Xe(et(this).and(t))}or(e){const t=et(e);return(this.isNegative()||t.isNeg())&&tt("unbound-bitwise-result","or"),Xe(et(this).or(t))}xor(e){const t=et(e);return(this.isNegative()||t.isNeg())&&tt("unbound-bitwise-result","xor"),Xe(et(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&tt("negative-width","mask"),Xe(et(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&tt("negative-width","shl"),Xe(et(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&tt("negative-width","shr"),Xe(et(this).shrn(e))}eq(e){return et(this).eq(et(e))}lt(e){return et(this).lt(et(e))}lte(e){return et(this).lte(et(e))}gt(e){return et(this).gt(et(e))}gte(e){return et(this).gte(et(e))}isNegative(){return"-"===this._hex[0]}isZero(){return et(this).isZero()}toNumber(){try{return et(this).toNumber()}catch(XMe){tt("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return We.throwError("this platform does not support BigInt",Ae.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?Qe||(Qe=!0,We.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?We.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",Ae.errors.UNEXPECTED_ARGUMENT,{}):We.throwError("BigNumber.toString does not accept parameters",Ae.errors.UNEXPECTED_ARGUMENT,{})),et(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof Je)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new Je(Ve,Ze(e)):e.match(/^-?[0-9]+$/)?new Je(Ve,Ze(new qe(e))):We.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&tt("underflow","BigNumber.from",e),(e>=$e||e<=-$e)&&tt("overflow","BigNumber.from",e),Je.from(String(e));const t=e;if("bigint"==typeof t)return Je.from(t.toString());if(Ce(t))return Je.from(Oe(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"==typeof e)return Je.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(De(e)||"-"===e[0]&&De(e.substring(1))))return Je.from(e)}return We.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function Ze(e){if("string"!=typeof e)return Ze(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&We.throwArgumentError("invalid hex","value",e),"0x00"===(e=Ze(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function Xe(e){return Je.from(Ze(e))}function et(e){const t=Je.from(e).toHexString();return"-"===t[0]?new qe("-"+t.substring(3),16):new qe(t.substring(2),16)}function tt(e,t,r){const n={fault:e,operation:t};return null!=r&&(n.value=r),We.throwError(e,Ae.errors.NUMERIC_FAULT,n)}const rt=new Ae(Ke),nt={},it=Je.from(0),ot=Je.from(-1);function st(e,t,r,n){const i={fault:t,operation:r};return void 0!==n&&(i.value=n),rt.throwError(e,Ae.errors.NUMERIC_FAULT,i)}let at="0";for(;at.length<256;)at+=at;function ut(e){if("number"!=typeof e)try{e=Je.from(e).toNumber()}catch(t){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+at.substring(0,e):rt.throwArgumentError("invalid decimal size","decimals",e)}function lt(e,t){null==t&&(t=0);const r=ut(t),n=(e=Je.from(e)).lt(it);n&&(e=e.mul(ot));let i=e.mod(r).toString();for(;i.length2&&rt.throwArgumentError("too many decimal points","value",e);let o=i[0],s=i[1];for(o||(o="0"),s||(s="0");"0"===s[s.length-1];)s=s.substring(0,s.length-1);for(s.length>r.length-1&&st("fractional component exceeds decimals","underflow","parseFixed"),""===s&&(s="0");s.lengthnull==e[t]?n:(typeof e[t]!==r&&rt.throwArgumentError("invalid fixed format ("+t+" not "+r+")","format."+t,e[t]),e[t]);t=i("signed","boolean",t),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&rt.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&rt.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new ht(nt,t,r,n)}}class dt{constructor(e,t,r,n){e!==nt&&rt.throwError("cannot use FixedNumber constructor; use FixedNumber.from",Ae.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&rt.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const t=ct(this._value,this.format.decimals),r=ct(e._value,e.format.decimals);return dt.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const t=ct(this._value,this.format.decimals),r=ct(e._value,e.format.decimals);return dt.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const t=ct(this._value,this.format.decimals),r=ct(e._value,e.format.decimals);return dt.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const t=ct(this._value,this.format.decimals),r=ct(e._value,e.format.decimals);return dt.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=dt.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(ft.toFormat(t.format))),t}ceiling(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=dt.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(ft.toFormat(t.format))),t}round(e){null==e&&(e=0);const t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&rt.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;const r=dt.from("1"+at.substring(0,e),this.format),n=pt.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&rt.throwArgumentError("invalid byte width","width",e);return He(Je.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(),e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return dt.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||function(e){return null!=e&&(Je.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||De(e)||"bigint"==typeof e||Ce(e))}(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),dt.fromString(lt(e,t),ht.from(r))}static fromString(e,t){null==t&&(t="fixed");const r=ht.from(t),n=ct(e,r.decimals);!r.signed&&n.lt(it)&&st("unsigned value cannot be negative","overflow","value",e);let i=null;r.signed?i=n.toTwos(r.width).toHexString():(i=n.toHexString(),i=He(i,r.width/8));const o=lt(n,r.decimals);return new dt(nt,i,o,r)}static fromBytes(e,t){null==t&&(t="fixed");const r=ht.from(t);if(Ie(e).length>r.width/8)throw new Error("overflow");let n=Je.from(e);r.signed&&(n=n.fromTwos(r.width));const i=n.toTwos((r.signed?0:1)+r.width).toHexString(),o=lt(n,r.decimals);return new dt(nt,i,o,r)}static from(e,t){if("string"==typeof e)return dt.fromString(e,t);if(Ce(e))return dt.fromBytes(e,t);try{return dt.fromValue(e,0,t)}catch(XMe){if(XMe.code!==Ae.errors.INVALID_ARGUMENT)throw XMe}return rt.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!(!e||!e._isFixedNumber)}}const ft=dt.from(1),pt=dt.from("0.5");var mt=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const gt=new Ae("properties/5.7.0");function yt(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function vt(e,t){for(let r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function bt(e){return mt(this,void 0,void 0,(function*(){const t=Object.keys(e).map((t=>{const r=e[t];return Promise.resolve(r).then((e=>({key:t,value:e})))}));return(yield Promise.all(t)).reduce(((e,t)=>(e[t.key]=t.value,e)),{})}))}function wt(e,t){e&&"object"==typeof e||gt.throwArgumentError("invalid object","object",e),Object.keys(e).forEach((r=>{t[r]||gt.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)}))}function _t(e){const t={};for(const r in e)t[r]=e[r];return t}const Et={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function At(e){if(null==e||Et[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;const t=Object.keys(e);for(let r=0;rSt(e))));if("object"==typeof e){const t={};for(const r in e){const n=e[r];void 0!==n&&yt(t,r,St(n))}return t}return gt.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function St(e){return Mt(e)}class xt{constructor(e){for(const t in e)this[t]=St(e[t])}}const kt="abi/5.7.0";var Tt=r(98399);const Ct=new Ae(kt),It={};let Nt={calldata:!0,memory:!0,storage:!0},Rt={calldata:!0,memory:!0};function Pt(e,t){if("bytes"===e||"string"===e){if(Nt[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&Rt[t])return!0;return(Nt[t]||"payable"===t)&&Ct.throwArgumentError("invalid modifier","name",t),!1}function Dt(e,t){for(let r in t)yt(e,r,t[r])}const Lt=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),Ot=new RegExp(/^(.*)\[([0-9]*)\]$/);class jt{constructor(e,t){e!==It&&Ct.throwError("use fromString",Ae.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),Dt(this,t);let r=this.type.match(Ot);Dt(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:jt.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=Lt.sighash),Lt[e]||Ct.throwArgumentError("invalid format type","format",e),e===Lt.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((t=>JSON.parse(t.format(e))))),JSON.stringify(t)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==Lt.sighash&&(t+=this.type),t+="("+this.components.map((t=>t.format(e))).join(e===Lt.full?", ":",")+")"):t+=this.type,e!==Lt.sighash&&(!0===this.indexed&&(t+=" indexed"),e===Lt.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?jt.fromString(e,t):jt.fromObject(e)}static fromObject(e){return jt.isParamType(e)?e:new jt(It,{name:e.name||null,type:Vt(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(jt.fromObject):null})}static fromString(e,t){return function(e){return jt.fromObject({name:e.name,type:e.type,indexed:e.indexed,components:e.components})}(function(e,t){let r=e;function n(t){Ct.throwArgumentError(`unexpected character at position ${t}`,"param",e)}function i(e){let r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},s=o;for(let a=0;ajt.fromString(e,t)))}class Ut{constructor(e,t){e!==It&&Ct.throwError("use a static from method",Ae.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Dt(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return Ut.isFragment(e)?e:"string"==typeof e?Ut.fromString(e):Ut.fromObject(e)}static fromObject(e){if(Ut.isFragment(e))return e;switch(e.type){case"function":return Kt.fromObject(e);case"event":return Ft.fromObject(e);case"constructor":return Yt.fromObject(e);case"error":return Wt.fromObject(e);case"fallback":case"receive":return null}return Ct.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?Ft.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?Kt.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?Yt.fromString(e.trim()):"error"===e.split(" ")[0]?Wt.fromString(e.substring(5).trim()):Ct.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!(!e||!e._isFragment)}}class Ft extends Ut{format(e){if(e||(e=Lt.sighash),Lt[e]||Ct.throwArgumentError("invalid format type","format",e),e===Lt.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==Lt.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===Lt.full?", ":",")+") ",e!==Lt.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?Ft.fromString(e):Ft.fromObject(e)}static fromObject(e){if(Ft.isEventFragment(e))return e;"event"!==e.type&&Ct.throwArgumentError("invalid event object","value",e);const t={name:Qt(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(jt.fromObject):[],type:"event"};return new Ft(It,t)}static fromString(e){let t=e.match(Jt);t||Ct.throwArgumentError("invalid event string","value",e);let r=!1;return t[3].split(" ").forEach((e=>{switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:Ct.warn("unknown modifier: "+e)}})),Ft.fromObject({name:t[1].trim(),anonymous:r,inputs:Bt(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function zt(e,t){t.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&Ct.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||Ct.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=Je.from(r[1]),r[0]):e}function Ht(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:Tt.log("unknown modifier: "+e)}}))}function Gt(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&Ct.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&Ct.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||Ct.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&Ct.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&Ct.throwArgumentError("unable to determine stateMutability","value",e),t}class Yt extends Ut{format(e){if(e||(e=Lt.sighash),Lt[e]||Ct.throwArgumentError("invalid format type","format",e),e===Lt.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});e===Lt.sighash&&Ct.throwError("cannot format a constructor for sighash",Ae.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map((t=>t.format(e))).join(e===Lt.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?Yt.fromString(e):Yt.fromObject(e)}static fromObject(e){if(Yt.isConstructorFragment(e))return e;"constructor"!==e.type&&Ct.throwArgumentError("invalid constructor object","value",e);let t=Gt(e);t.constant&&Ct.throwArgumentError("constructor cannot be constant","value",e);const r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(jt.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?Je.from(e.gas):null};return new Yt(It,r)}static fromString(e){let t={type:"constructor"},r=(e=zt(e,t)).match(Jt);return r&&"constructor"===r[1].trim()||Ct.throwArgumentError("invalid constructor string","value",e),t.inputs=Bt(r[2].trim(),!1),Ht(r[3].trim(),t),Yt.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class Kt extends Yt{format(e){if(e||(e=Lt.sighash),Lt[e]||Ct.throwArgumentError("invalid format type","format",e),e===Lt.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e)))),outputs:this.outputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==Lt.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===Lt.full?", ":",")+") ",e!==Lt.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((t=>t.format(e))).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?Kt.fromString(e):Kt.fromObject(e)}static fromObject(e){if(Kt.isFunctionFragment(e))return e;"function"!==e.type&&Ct.throwArgumentError("invalid function object","value",e);let t=Gt(e);const r={type:e.type,name:Qt(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(jt.fromObject):[],outputs:e.outputs?e.outputs.map(jt.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?Je.from(e.gas):null};return new Kt(It,r)}static fromString(e){let t={type:"function"},r=(e=zt(e,t)).split(" returns ");r.length>2&&Ct.throwArgumentError("invalid function string","value",e);let n=r[0].match(Jt);if(n||Ct.throwArgumentError("invalid function signature","value",e),t.name=n[1].trim(),t.name&&Qt(t.name),t.inputs=Bt(n[2],!1),Ht(n[3].trim(),t),r.length>1){let n=r[1].match(Jt);""==n[1].trim()&&""==n[3].trim()||Ct.throwArgumentError("unexpected tokens","value",e),t.outputs=Bt(n[2],!1)}else t.outputs=[];return Kt.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function qt(e){const t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||Ct.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class Wt extends Ut{format(e){if(e||(e=Lt.sighash),Lt[e]||Ct.throwArgumentError("invalid format type","format",e),e===Lt.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==Lt.sighash&&(t+="error "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===Lt.full?", ":",")+") ",t.trim()}static from(e){return"string"==typeof e?Wt.fromString(e):Wt.fromObject(e)}static fromObject(e){if(Wt.isErrorFragment(e))return e;"error"!==e.type&&Ct.throwArgumentError("invalid error object","value",e);const t={type:e.type,name:Qt(e.name),inputs:e.inputs?e.inputs.map(jt.fromObject):[]};return qt(new Wt(It,t))}static fromString(e){let t={type:"error"},r=e.match(Jt);return r||Ct.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&Qt(t.name),t.inputs=Bt(r[2],!1),qt(Wt.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function Vt(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}const $t=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Qt(e){return e&&e.match($t)||Ct.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}const Jt=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");const Zt=new Ae(kt);function Xt(e){const t=[],r=function(e,n){if(Array.isArray(n))for(let i in n){const o=e.slice();o.push(i);try{r(o,n[i])}catch(XMe){t.push({path:o,error:XMe})}}};return r([],e),t}class er{constructor(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}_throwError(e,t){Zt.throwArgumentError(e,this.localName,t)}}class tr{constructor(e){yt(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return Ue(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData(Ne(e._data))}writeBytes(e){let t=Ie(e);const r=t.length%this.wordSize;return r&&(t=Ne([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=Ie(Je.from(e));return t.length>this.wordSize&&Zt.throwError("value out-of-bounds",Ae.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Ne([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class rr{constructor(e,t,r,n){yt(this,"_data",Ie(e)),yt(this,"wordSize",t||32),yt(this,"_coerceFunc",r),yt(this,"allowLoose",n),this._offset=0}get data(){return Oe(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):rr.coerce(e,t)}_peekBytes(e,t,r){let n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:Zt.throwError("data out-of-bounds",Ae.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(e){return new rr(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}readValue(){return Je.from(this.readBytes(this.wordSize))}}var nr=r(98810),ir=r.n(nr);function or(e){return"0x"+ir().keccak_256(Ie(e))}const sr=new Ae("rlp/5.7.0");function ar(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function ur(e,t,r){let n=0;for(let i=0;it+1+n&&sr.throwError("child data too short",Ae.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function dr(e,t){if(0===e.length&&sr.throwError("data too short",Ae.errors.BUFFER_OVERRUN,{}),e[t]>=248){const r=e[t]-247;t+1+r>e.length&&sr.throwError("data short segment too short",Ae.errors.BUFFER_OVERRUN,{});const n=ur(e,t+1,r);return t+1+r+n>e.length&&sr.throwError("data long segment too short",Ae.errors.BUFFER_OVERRUN,{}),hr(e,t,t+1+r,r+n)}if(e[t]>=192){const r=e[t]-192;return t+1+r>e.length&&sr.throwError("data array too short",Ae.errors.BUFFER_OVERRUN,{}),hr(e,t,t+1,r)}if(e[t]>=184){const r=e[t]-183;t+1+r>e.length&&sr.throwError("data array too short",Ae.errors.BUFFER_OVERRUN,{});const n=ur(e,t+1,r);t+1+r+n>e.length&&sr.throwError("data array too short",Ae.errors.BUFFER_OVERRUN,{});return{consumed:1+r+n,result:Oe(e.slice(t+1+r,t+1+r+n))}}if(e[t]>=128){const r=e[t]-128;t+1+r>e.length&&sr.throwError("data too short",Ae.errors.BUFFER_OVERRUN,{});return{consumed:1+r,result:Oe(e.slice(t+1,t+1+r))}}return{consumed:1,result:Oe(e[t])}}function fr(e){const t=Ie(e),r=dr(t,0);return r.consumed!==t.length&&sr.throwArgumentError("invalid rlp data","data",e),r.result}const pr=new Ae("address/5.7.0");function mr(e){De(e,20)||pr.throwArgumentError("invalid address","address",e);const t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let i=0;i<40;i++)r[i]=t[i].charCodeAt(0);const n=Ie(or(r));for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&(t[i]=t[i].toUpperCase()),(15&n[i>>1])>=8&&(t[i+1]=t[i+1].toUpperCase());return"0x"+t.join("")}const gr={};for(let pVe=0;pVe<10;pVe++)gr[String(pVe)]=String(pVe);for(let pVe=0;pVe<26;pVe++)gr[String.fromCharCode(65+pVe)]=String(10+pVe);const yr=Math.floor(function(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}(9007199254740991));function vr(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>gr[e])).join("");for(;t.length>=yr;){let e=t.substring(0,yr);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}function br(e){let t=null;if("string"!=typeof e&&pr.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=mr(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&pr.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==vr(e)&&pr.throwArgumentError("bad icap checksum","address",e),t=function(e){return new qe(e,36).toString(16)}(e.substring(4));t.length<40;)t="0"+t;t=mr("0x"+t)}else pr.throwArgumentError("invalid address","address",e);return t}function wr(e){try{return br(e),!0}catch(XMe){}return!1}function _r(e){let t=function(e){return new qe(e,16).toString(36)}(br(e).substring(2)).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+vr("XE00"+t)+t}function Er(e){let t=null;try{t=br(e.from)}catch(XMe){pr.throwArgumentError("missing from address","transaction",e)}return br(Be(or(cr([t,Re(Ie(Je.from(e.nonce).toHexString()))])),12))}function Ar(e,t,r){return 32!==je(t)&&pr.throwArgumentError("salt must be 32 bytes","salt",t),32!==je(r)&&pr.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),br(Be(or(Ne(["0xff",br(e),t,r])),12))}class Mr extends er{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=br(t)}catch(XMe){this._throwError(XMe.message,t)}return e.writeValue(t)}decode(e){return br(He(e.readValue().toHexString(),20))}}class Sr extends er{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}const xr=new Ae(kt);function kr(e,t,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let e={};n=t.map((t=>{const n=t.localName;return n||xr.throwError("cannot encode object for signature with missing names",Ae.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]&&xr.throwError("cannot encode object for signature with duplicate names",Ae.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]=!0,r[n]}))}else xr.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&xr.throwArgumentError("types/value length mismatch","tuple",r);let i=new tr(e.wordSize),o=new tr(e.wordSize),s=[];t.forEach(((e,t)=>{let r=n[t];if(e.dynamic){let t=o.length;e.encode(o,r);let n=i.writeUpdatableValue();s.push((e=>{n(e+t)}))}else e.encode(i,r)})),s.forEach((e=>{e(i.length)}));let a=e.appendWriter(i);return a+=e.appendWriter(o),a}function Tr(e,t){let r=[],n=e.subReader(0);t.forEach((t=>{let i=null;if(t.dynamic){let r=e.readValue(),o=n.subReader(r.toNumber());try{i=t.decode(o)}catch(XMe){if(XMe.code===Ae.errors.BUFFER_OVERRUN)throw XMe;i=XMe,i.baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(XMe){if(XMe.code===Ae.errors.BUFFER_OVERRUN)throw XMe;i=XMe,i.baseType=t.name,i.name=t.localName,i.type=t.type}null!=i&&r.push(i)}));const i=t.reduce(((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});t.forEach(((e,t)=>{let n=e.localName;if(!n||1!==i[n])return;if("length"===n&&(n="_length"),null!=r[n])return;const o=r[t];o instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw o}}):r[n]=o}));for(let o=0;o{throw e}})}return Object.freeze(r)}class Cr extends er{constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let r=0;re._data.length&&xr.throwError("insufficient data length",Ae.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}));let r=[];for(let n=0;n>6==2;n++)e++;return e}return e===$r.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(Vr||(Vr={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}($r||($r={}));const Jr=Object.freeze({error:function(e,t,r,n,i){return Wr.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:Qr,replace:function(e,t,r,n,i){return e===$r.OVERLONG?(n.push(i),0):(n.push(65533),Qr(e,t,r))}});function Zr(e,t){null==t&&(t=Jr.error),e=Ie(e);const r=[];let n=0;for(;n>7==0){r.push(i);continue}let o=null,s=null;if(192==(224&i))o=1,s=127;else if(224==(240&i))o=2,s=2047;else{if(240!=(248&i)){n+=t(128==(192&i)?$r.UNEXPECTED_CONTINUE:$r.BAD_PREFIX,n-1,e,r);continue}o=3,s=65535}if(n-1+o>=e.length){n+=t($r.OVERRUN,n-1,e,r);continue}let a=i&(1<<8-o-1)-1;for(let u=0;u1114111?n+=t($r.OUT_OF_RANGE,n-1-o,e,r,a):a>=55296&&a<=57343?n+=t($r.UTF16_SURROGATE,n-1-o,e,r,a):a<=s?n+=t($r.OVERLONG,n-1-o,e,r,a):r.push(a))}return r}function Xr(e,t=Vr.current){t!=Vr.current&&(Wr.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n>6|192),r.push(63&t|128);else if(55296==(64512&t)){n++;const i=e.charCodeAt(n);if(n>=e.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&t)<<10)+(1023&i);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(t>>12|224),r.push(t>>6&63|128),r.push(63&t|128)}return Ie(r)}function en(e){const t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function tn(e,t){return'"'+Zr(e,t).map((e=>{if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?en(e):en(55296+((e-=65536)>>10&1023))+en(56320+(1023&e))})).join("")+'"'}function rn(e){return e.map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")}function nn(e,t){return rn(Zr(e,t))}function on(e,t=Vr.current){return Zr(Xr(e,t))}function sn(e){const t=Xr(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return Oe(Ne([t,Yr]).slice(0,32))}function an(e){const t=Ie(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;0===t[r-1];)r--;return nn(t.slice(0,r))}function un(e,t){t||(t=function(e){return[parseInt(e,16)]});let r=0,n={};return e.split(",").forEach((e=>{let i=e.split(":");r+=parseInt(i[0],16),n[r]=t(i[1])})),n}function ln(e){let t=0;return e.split(",").map((e=>{let r=e.split("-");1===r.length?r[1]="0":""===r[1]&&(r[1]="1");let n=t+parseInt(r[0],16);return t=parseInt(r[1],16),{l:n,h:t}}))}function cn(e,t){let r=0;for(let n=0;n=r&&e<=r+i.h&&(e-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(e-r))continue;return i}}return null}const hn=ln("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),dn="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((e=>parseInt(e,16))),fn=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],pn=un("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),mn=un("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),gn=un("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!=0)throw new Error("bad data");let t=[];for(let r=0;r{if(dn.indexOf(e)>=0)return[];if(e>=65024&&e<=65039)return[];let t=function(e){let t=cn(e,fn);if(t)return[e+t.s];let r=pn[e];if(r)return r;let n=mn[e];return n?[e+n[0]]:gn[e]||null}(e);return t||[e]})),t=r.reduce(((e,t)=>(t.forEach((t=>{e.push(t)})),e)),[]),t=on(rn(t),Vr.NFKC),t.forEach((e=>{if(cn(e,yn))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),t.forEach((e=>{if(cn(e,hn))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));let n=rn(t);if("-"===n.substring(0,1)||"--"===n.substring(2,4)||"-"===n.substring(n.length-1))throw new Error("invalid hyphen");return n}class bn extends Nr{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,Xr(t))}decode(e){return nn(super.decode(e))}}class wn extends er{constructor(e,t){let r=!1;const n=[];e.forEach((e=>{e.dynamic&&(r=!0),n.push(e.type)}));super("tuple","tuple("+n.join(",")+")",t,r),this.coders=e}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});return this.coders.forEach(((r,n)=>{let i=r.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[n]))})),Object.freeze(e)}encode(e,t){return kr(e,this.coders,t)}decode(e){return e.coerce(this.name,Tr(e,this.coders))}}const _n=new Ae(kt),En=new RegExp(/^bytes([0-9]*)$/),An=new RegExp(/^(u?int)([0-9]*)$/);class Mn{constructor(e){yt(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new Mr(e.name);case"bool":return new Ir(e.name);case"string":return new bn(e.name);case"bytes":return new Rr(e.name);case"array":return new Cr(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new wn((e.components||[]).map((e=>this._getCoder(e))),e.name);case"":return new Dr(e.name)}let t=e.type.match(An);if(t){let r=parseInt(t[2]||"256");return(0===r||r>256||r%8!=0)&&_n.throwArgumentError("invalid "+t[1]+" bit length","param",e),new qr(r/8,"int"===t[1],e.name)}if(t=e.type.match(En),t){let r=parseInt(t[1]);return(0===r||r>32)&&_n.throwArgumentError("invalid bytes length","param",e),new Pr(r,e.name)}return _n.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new rr(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new tr(this._getWordSize())}getDefaultValue(e){const t=e.map((e=>this._getCoder(jt.from(e))));return new wn(t,"_").defaultValue()}encode(e,t){e.length!==t.length&&_n.throwError("types/values length mismatch",Ae.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});const r=e.map((e=>this._getCoder(jt.from(e)))),n=new wn(r,"_"),i=this._getWriter();return n.encode(i,t),i.data}decode(e,t,r){const n=e.map((e=>this._getCoder(jt.from(e))));return new wn(n,"_").decode(this._getReader(Ie(t),r))}}const Sn=new Mn;function xn(e){return or(Xr(e))}const kn="hash/5.7.0";function Tn(e){e=atob(e);const t=[];for(let r=0;r0&&Array.isArray(e)?i(e,t-1):r.push(e)}))};return i(e,t),r}function Nn(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,o=[0,1];for(let w=1;w>--u&1}const h=Math.pow(2,31),d=h>>>1,f=d>>1,p=h-1;let m=0;for(let w=0;w<31;w++)m=m<<1|c();let g=[],y=0,v=h;for(;;){let e=Math.floor(((m-y+1)*i-1)/v),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e>>1|c(),s=s<<1^d,a=(a^d)<<1|d|1;y=s,v=1+a-s}let b=n-4;return g.map((t=>{switch(t-b){case 3:return b+65792+(e[a++]<<16|e[a++]<<8|e[a++]);case 2:return b+256+(e[a++]<<8|e[a++]);case 1:return b+e[a++];default:return t-1}}))}(e))}function Rn(e){return 1&e?~e>>1:e>>1}function Pn(e,t){let r=Array(e);for(let n=0,i=-1;nt[e])):r}function On(e,t,r){let n=Array(e).fill(void 0).map((()=>[]));for(let i=0;in[t].push(e)));return n}function jn(e,t){let r=1+t(),n=t(),i=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(r)}return t}(t);return In(On(i.length,1+e,t).map(((e,t)=>{const o=e[0],s=e.slice(1);return Array(i[t]).fill(void 0).map(((e,t)=>{let i=t*n;return[o+t*r,s.map((e=>e+i))]}))})))}function Bn(e,t){return On(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}const Un=Nn(Tn("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByAD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JF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),Fn=new Set(Ln(Un)),zn=new Set(Ln(Un)),Hn=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(jn(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(Bn(r,e))}return function(e){const t={};for(let r=0;re-t));return function r(){let n=[];for(;;){let i=Ln(e,t);if(0==i.length)break;n.push({set:new Set(i),node:r()})}n.sort(((e,t)=>t.set.size-e.set.size));let i=e(),o=i%3;i=i/3|0;let s=!!(1&i);return i>>=1,{branches:n,valid:o,fe0f:s,save:1==i,check:2==i}}()}(Un);function Yn(e){return on(e)}function Kn(e){return e.filter((e=>65039!=e))}function qn(e){for(let r of e.split(".")){let e=Yn(r);try{for(let t=e.lastIndexOf(95)-1;t>=0;t--)if(95!==e[t])throw new Error("underscore only allowed at start");if(e.length>=4&&e.every((e=>e<128))&&45===e[2]&&45===e[3])throw new Error("invalid label extension")}catch(t){throw new Error(`Invalid label "${r}": ${t.message}`)}}return e}function Wn(e){return qn(function(e,t){let r=Yn(e).reverse(),n=[];for(;r.length;){let e=Vn(r);if(e){n.push(...t(e));continue}let i=r.pop();if(Fn.has(i)){n.push(i);continue}if(zn.has(i))continue;let o=Hn[i];if(!o)throw new Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`);n.push(...o)}return qn(function(e){return e.normalize("NFC")}(String.fromCodePoint(...n)))}(e,Kn))}function Vn(e,t){var r;let n,i,o=Gn,s=[],a=e.length;for(t&&(t.length=0);a;){let u=e[--a];if(o=null===(r=o.branches.find((e=>e.set.has(u))))||void 0===r?void 0:r.node,!o)break;if(o.save)i=u;else if(o.check&&u===i)break;s.push(u),o.fe0f&&(s.push(65039),a>0&&65039==e[a-1]&&a--),o.valid&&(n=s.slice(),2==o.valid&&n.splice(1,1),t&&t.push(...e.slice(a).reverse()),e.length=a)}return n}const $n=new Ae(kn),Qn=new Uint8Array(32);function Jn(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function Zn(e){const t=Xr(Wn(e)),r=[];if(0===e.length)return r;let n=0;for(let i=0;i=t.length)throw new Error("invalid ENS name; empty component");return r.push(Jn(t.slice(n))),r}function Xn(e){try{return 0!==Zn(e).length}catch(XMe){}return!1}function ei(e){"string"!=typeof e&&$n.throwArgumentError("invalid ENS name; not a string","name",e);let t=Qn;const r=Zn(e);for(;r.length;)t=or(Ne([t,or(r.pop())]));return Oe(t)}function ti(e){return Oe(Ne(Zn(e).map((e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"}Qn.fill(0);function ri(e){return"string"==typeof e&&(e=Xr(e)),or(Ne([Xr("\x19Ethereum Signed Message:\n"),Xr(String(e.length)),e]))}var ni=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const ii=new Ae(kn),oi=new Uint8Array(32);oi.fill(0);const si=Je.from(-1),ai=Je.from(0),ui=Je.from(1),li=Je.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const ci=He(ui.toHexString(),32),hi=He(ai.toHexString(),32),di={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},fi=["name","version","chainId","verifyingContract","salt"];function pi(e){return function(t){return"string"!=typeof t&&ii.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const mi={name:pi("name"),version:pi("version"),chainId:function(e){try{return Je.from(e).toString()}catch(XMe){}return ii.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return br(e).toLowerCase()}catch(XMe){}return ii.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{const t=Ie(e);if(32!==t.length)throw new Error("bad length");return Oe(t)}catch(XMe){}return ii.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function gi(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const r=""===t[1],n=parseInt(t[2]||"256");(n%8!=0||n>256||t[2]&&t[2]!==String(n))&&ii.throwArgumentError("invalid numeric width","type",e);const i=li.mask(r?n-1:n),o=r?i.add(ui).mul(si):ai;return function(t){const r=Je.from(t);return(r.lt(o)||r.gt(i))&&ii.throwArgumentError(`value out-of-bounds for ${e}`,"value",t),He(r.toTwos(256).toHexString(),32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&ii.throwArgumentError("invalid bytes width","type",e),function(t){return Ie(t).length!==r&&ii.throwArgumentError(`invalid length for ${e}`,"value",t),function(e){const t=Ie(e),r=t.length%32;return r?Ue([t,oi.slice(r)]):Oe(t)}(t)}}}switch(e){case"address":return function(e){return He(br(e),32)};case"bool":return function(e){return e?ci:hi};case"bytes":return function(e){return or(e)};case"string":return function(e){return xn(e)}}return null}function yi(e,t){return`${e}(${t.map((({name:e,type:t})=>t+" "+e)).join(",")})`}class vi{constructor(e){yt(this,"types",Object.freeze(St(e))),yt(this,"_encoderCache",{}),yt(this,"_types",{});const t={},r={},n={};Object.keys(e).forEach((e=>{t[e]={},r[e]=[],n[e]={}}));for(const o in e){const n={};e[o].forEach((i=>{n[i.name]&&ii.throwArgumentError(`duplicate variable name ${JSON.stringify(i.name)} in ${JSON.stringify(o)}`,"types",e),n[i.name]=!0;const s=i.type.match(/^([^\x5b]*)(\x5b|$)/)[1];s===o&&ii.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,"types",e);gi(s)||(r[s]||ii.throwArgumentError(`unknown type ${JSON.stringify(s)}`,"types",e),r[s].push(o),t[o][s]=!0)}))}const i=Object.keys(r).filter((e=>0===r[e].length));0===i.length?ii.throwArgumentError("missing primary type","types",e):i.length>1&&ii.throwArgumentError(`ambiguous primary types or unused types: ${i.map((e=>JSON.stringify(e))).join(", ")}`,"types",e),yt(this,"primaryType",i[0]),function i(o,s){s[o]&&ii.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",e),s[o]=!0,Object.keys(t[o]).forEach((e=>{r[e]&&(i(e,s),Object.keys(s).forEach((t=>{n[t][e]=!0})))})),delete s[o]}(this.primaryType,{});for(const o in n){const t=Object.keys(n[o]);t.sort(),this._types[o]=yi(o,e[o])+t.map((t=>yi(t,e[t]))).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{const t=gi(e);if(t)return t}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const e=t[1],r=this.getEncoder(e),n=parseInt(t[3]);return t=>{n>=0&&t.length!==n&&ii.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let i=t.map(r);return this._types[e]&&(i=i.map(or)),or(Ue(i))}}const r=this.types[e];if(r){const t=xn(this._types[e]);return e=>{const n=r.map((({name:t,type:r})=>{const n=this.getEncoder(r)(e[t]);return this._types[r]?or(n):n}));return n.unshift(t),Ue(n)}}return ii.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const t=this._types[e];return t||ii.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return or(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(gi(e))return r(e,t);const n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const e=n[1],i=parseInt(n[3]);return i>=0&&t.length!==i&&ii.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((t=>this._visit(e,t,r)))}const i=this.types[e];return i?i.reduce(((e,{name:n,type:i})=>(e[n]=this._visit(i,t[n],r),e)),{}):ii.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new vi(e)}static getPrimaryType(e){return vi.from(e).primaryType}static hashStruct(e,t,r){return vi.from(t).hashStruct(e,r)}static hashDomain(e){const t=[];for(const r in e){const n=di[r];n||ii.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort(((e,t)=>fi.indexOf(e.name)-fi.indexOf(t.name))),vi.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return Ue(["0x1901",vi.hashDomain(e),vi.from(t).hash(r)])}static hash(e,t,r){return or(vi.encode(e,t,r))}static resolveNames(e,t,r,n){return ni(this,void 0,void 0,(function*(){e=_t(e);const i={};e.verifyingContract&&!De(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const o=vi.from(t);o.visit(r,((e,t)=>("address"!==e||De(t,20)||(i[t]="0x"),t)));for(const e in i)i[e]=yield n(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),r=o.visit(r,((e,t)=>"address"===e&&i[t]?i[t]:t)),{domain:e,value:r}}))}static getPayload(e,t,r){vi.hashDomain(e);const n={},i=[];fi.forEach((t=>{const r=e[t];null!=r&&(n[t]=mi[t](r),i.push({name:t,type:di[t]}))}));const o=vi.from(t),s=_t(t);return s.EIP712Domain?ii.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):s.EIP712Domain=i,o.encode(r),{types:s,domain:n,primaryType:o.primaryType,message:o.visit(r,((e,t)=>{if(e.match(/^bytes(\d*)/))return Oe(Ie(t));if(e.match(/^u?int/))return Je.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&ii.throwArgumentError("invalid string","value",t),t}return ii.throwArgumentError("unsupported type","type",e)}))}}}const bi=new Ae(kt);class wi extends xt{}class _i extends xt{}class Ei extends xt{}class Ai extends xt{static isIndexed(e){return!(!e||!e._isIndexed)}}const Mi={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function Si(e,t){const r=new Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class xi{constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,yt(this,"fragments",t.map((e=>Ut.from(e))).filter((e=>null!=e))),yt(this,"_abiCoder",vt(new.target,"getAbiCoder")()),yt(this,"functions",{}),yt(this,"errors",{}),yt(this,"events",{}),yt(this,"structs",{}),this.fragments.forEach((e=>{let t=null;switch(e.type){case"constructor":return this.deploy?void bi.warn("duplicate definition - constructor"):void yt(this,"deploy",e);case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let r=e.format();t[r]?bi.warn("duplicate definition - "+r):t[r]=e})),this.deploy||yt(this,"deploy",Yt.from({payable:!1,type:"constructor"})),yt(this,"_isInterface",!0)}format(e){e||(e=Lt.full),e===Lt.sighash&&bi.throwArgumentError("interface does not support formatting sighash","format",e);const t=this.fragments.map((t=>t.format(e)));return e===Lt.json?JSON.stringify(t.map((e=>JSON.parse(e)))):t}static getAbiCoder(){return Sn}static getAddress(e){return br(e)}static getSighash(e){return Be(xn(e.format()),0,4)}static getEventTopic(e){return xn(e.format())}getFunction(e){if(De(e)){for(const t in this.functions)if(e===this.getSighash(t))return this.functions[t];bi.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.functions).filter((e=>e.split("(")[0]===t));return 0===r.length?bi.throwArgumentError("no matching function","name",t):r.length>1&&bi.throwArgumentError("multiple matching functions","name",t),this.functions[r[0]]}const t=this.functions[Kt.fromString(e).format()];return t||bi.throwArgumentError("no matching function","signature",e),t}getEvent(e){if(De(e)){const t=e.toLowerCase();for(const e in this.events)if(t===this.getEventTopic(e))return this.events[e];bi.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.events).filter((e=>e.split("(")[0]===t));return 0===r.length?bi.throwArgumentError("no matching event","name",t):r.length>1&&bi.throwArgumentError("multiple matching events","name",t),this.events[r[0]]}const t=this.events[Ft.fromString(e).format()];return t||bi.throwArgumentError("no matching event","signature",e),t}getError(e){if(De(e)){const t=vt(this.constructor,"getSighash");for(const r in this.errors){if(e===t(this.errors[r]))return this.errors[r]}bi.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.errors).filter((e=>e.split("(")[0]===t));return 0===r.length?bi.throwArgumentError("no matching error","name",t):r.length>1&&bi.throwArgumentError("multiple matching errors","name",t),this.errors[r[0]]}const t=this.errors[Kt.fromString(e).format()];return t||bi.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(XMe){try{e=this.getError(e)}catch(jh){throw XMe}}return vt(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),vt(this.constructor,"getEventTopic")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){"string"==typeof e&&(e=this.getError(e));const r=Ie(t);return Oe(r.slice(0,4))!==this.getSighash(e)&&bi.throwArgumentError(`data signature does not match error ${e.name}.`,"data",Oe(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,t){return"string"==typeof e&&(e=this.getError(e)),Oe(Ne([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"==typeof e&&(e=this.getFunction(e));const r=Ie(t);return Oe(r.slice(0,4))!==this.getSighash(e)&&bi.throwArgumentError(`data signature does not match function ${e.name}.`,"data",Oe(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Oe(Ne([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=Ie(t),n=null,i="",o=null,s=null,a=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(XMe){}break;case 4:{const e=Oe(r.slice(0,4)),t=Mi[e];if(t)o=this._abiCoder.decode(t.inputs,r.slice(4)),s=t.name,a=t.signature,t.reason&&(n=o[0]),"Error"===s?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}`:"Panic"===s&&(i=`; VM Exception while processing transaction: reverted with panic code ${o[0]}`);else try{const t=this.getError(e);o=this._abiCoder.decode(t.inputs,r.slice(4)),s=t.name,a=t.format()}catch(XMe){}break}}return bi.throwError("call revert exception"+i,Ae.errors.CALL_EXCEPTION,{method:e.format(),data:Oe(t),errorArgs:o,errorName:s,errorSignature:a,reason:n})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),Oe(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&bi.throwError("too many arguments for "+e.format(),Ae.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));const n=(e,t)=>"string"===e.type?xn(t):"bytes"===e.type?or(Oe(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=Je.from(t).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[t]),He(Oe(t),32));for(t.forEach(((t,i)=>{let o=e.inputs[i];o.indexed?null==t?r.push(null):"array"===o.baseType||"tuple"===o.baseType?bi.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?r.push(t.map((e=>n(o,e)))):r.push(n(o,t)):null!=t&&bi.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)}));r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));const r=[],n=[],i=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&bi.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(((e,o)=>{const s=t[o];if(e.indexed)if("string"===e.type)r.push(xn(s));else if("bytes"===e.type)r.push(or(s));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");r.push(this._abiCoder.encode([e.type],[s]))}else n.push(e),i.push(s)})),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){let t=this.getEventTopic(e);De(r[0],32)&&r[0].toLowerCase()===t||bi.throwError("fragment/topic mismatch",Ae.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:r[0]}),r=r.slice(1)}let n=[],i=[],o=[];e.inputs.forEach(((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push(jt.fromObject({type:"bytes32",name:e.name})),o.push(!0)):(n.push(e),o.push(!1)):(i.push(e),o.push(!1))}));let s=null!=r?this._abiCoder.decode(n,Ne(r)):null,a=this._abiCoder.decode(i,t,!0),u=[],l=0,c=0;e.inputs.forEach(((e,t)=>{if(e.indexed)if(null==s)u[t]=new Ai({_isIndexed:!0,hash:null});else if(o[t])u[t]=new Ai({_isIndexed:!0,hash:s[c++]});else try{u[t]=s[c++]}catch(XMe){u[t]=XMe}else try{u[t]=a[l++]}catch(XMe){u[t]=XMe}if(e.name&&null==u[e.name]){const r=u[t];r instanceof Error?Object.defineProperty(u,e.name,{enumerable:!0,get:()=>{throw Si(`property ${JSON.stringify(e.name)}`,r)}}):u[e.name]=r}}));for(let h=0;h{throw Si(`index ${h}`,e)}})}return Object.freeze(u)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new _i({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:Je.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new wi({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){const t=Oe(e);let r=this.getError(t.substring(0,10).toLowerCase());return r?new Ei({args:this._abiCoder.decode(r.inputs,"0x"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!(!e||!e._isInterface)}}var ki=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const Ti=new Ae("abstract-provider/5.7.0");class Ci extends xt{static isForkEvent(e){return!(!e||!e._isForkEvent)}}class Ii{constructor(){Ti.checkAbstract(new.target,Ii),yt(this,"_isProvider",!0)}getFeeData(){return ki(this,void 0,void 0,(function*(){const{block:e,gasPrice:t}=yield bt({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((e=>null))});let r=null,n=null,i=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,i=Je.from("1500000000"),n=e.baseFeePerGas.mul(2).add(i)),{lastBaseFeePerGas:r,maxFeePerGas:n,maxPriorityFeePerGas:i,gasPrice:t}}))}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!(!e||!e._isProvider)}}var Ni=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const Ri=new Ae("abstract-signer/5.7.0"),Pi=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],Di=[Ae.errors.INSUFFICIENT_FUNDS,Ae.errors.NONCE_EXPIRED,Ae.errors.REPLACEMENT_UNDERPRICED];class Li{constructor(){Ri.checkAbstract(new.target,Li),yt(this,"_isSigner",!0)}getBalance(e){return Ni(this,void 0,void 0,(function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)}))}getTransactionCount(e){return Ni(this,void 0,void 0,(function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)}))}estimateGas(e){return Ni(this,void 0,void 0,(function*(){this._checkProvider("estimateGas");const t=yield bt(this.checkTransaction(e));return yield this.provider.estimateGas(t)}))}call(e,t){return Ni(this,void 0,void 0,(function*(){this._checkProvider("call");const r=yield bt(this.checkTransaction(e));return yield this.provider.call(r,t)}))}sendTransaction(e){return Ni(this,void 0,void 0,(function*(){this._checkProvider("sendTransaction");const t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)}))}getChainId(){return Ni(this,void 0,void 0,(function*(){this._checkProvider("getChainId");return(yield this.provider.getNetwork()).chainId}))}getGasPrice(){return Ni(this,void 0,void 0,(function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()}))}getFeeData(){return Ni(this,void 0,void 0,(function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()}))}resolveName(e){return Ni(this,void 0,void 0,(function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)}))}checkTransaction(e){for(const r in e)-1===Pi.indexOf(r)&&Ri.throwArgumentError("invalid transaction key: "+r,"transaction",e);const t=_t(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then((t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&Ri.throwArgumentError("from address mismatch","transaction",e),t[0]))),t}populateTransaction(e){return Ni(this,void 0,void 0,(function*(){const t=yield bt(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then((e=>Ni(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.resolveName(e);return null==t&&Ri.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})))),t.to.catch((e=>{})));const r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null==t.gasPrice||2!==t.type&&!r?0!==t.type&&1!==t.type||!r||Ri.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):Ri.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==t.type&&null!=t.type||null==t.maxFeePerGas||null==t.maxPriorityFeePerGas)if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{const e=yield this.getFeeData();if(null==t.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(t.type=2,null!=t.gasPrice){const e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?(r&&Ri.throwError("network does not support EIP-1559",Ae.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):Ri.throwError("failed to get consistent fee data",Ae.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else t.type=2;return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch((e=>{if(Di.indexOf(e.code)>=0)throw e;return Ri.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Ae.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})}))),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then((t=>(0!==t[1]&&t[0]!==t[1]&&Ri.throwArgumentError("chainId address mismatch","transaction",e),t[0]))),yield bt(t)}))}_checkProvider(e){this.provider||Ri.throwError("missing provider",Ae.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!(!e||!e._isSigner)}}class Oi extends Li{constructor(e,t){super(),yt(this,"address",e),yt(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then((()=>{Ri.throwError(e,Ae.errors.UNSUPPORTED_OPERATION,{operation:t})}))}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new Oi(this.address,e)}}var ji=r(68214),Bi=r.n(ji),Ui=r(49e3),Fi=r.n(Ui);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function zi(e,t,r){return r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},e(r,r.exports),r.exports}var Hi=Gi;function Gi(e,t){if(!e)throw new Error(t||"Assertion failed")}Gi.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var Yi=zi((function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r>8,s=255&i;o?r.push(o,s):r.push(s)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}})),Ki=zi((function(e,t){var r=t;r.assert=Hi,r.toArray=Yi.toArray,r.zero2=Yi.zero2,r.toHex=Yi.toHex,r.encode=Yi.encode,r.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-u:u,o.isubn(a)):a=0,n[s]=a,o.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var s,a,u=e.andln(3)+i&3,l=t.andln(3)+o&3;3===u&&(u=-1),3===l&&(l=-1),s=0==(1&u)?0:3!==(n=e.andln(7)+i&7)&&5!==n||2!==l?u:-u,r[0].push(s),a=0==(1&l)?0:3!==(n=t.andln(7)+o&7)&&5!==n||2!==u?l:-l,r[1].push(a),2*i===s+1&&(i=1-i),2*o===a+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new(Bi())(e,"hex","le")}})),qi=Ki.getNAF,Wi=Ki.getJSF,Vi=Ki.assert;function $i(e,t){this.type=e,this.p=new(Bi())(t.p,16),this.red=t.prime?Bi().red(t.prime):Bi().mont(this.p),this.zero=new(Bi())(0).toRed(this.red),this.one=new(Bi())(1).toRed(this.red),this.two=new(Bi())(2).toRed(this.red),this.n=t.n&&new(Bi())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Qi=$i;function Ji(e,t){this.curve=e,this.type=t,this.precomputed=null}$i.prototype.point=function(){throw new Error("Not implemented")},$i.prototype.validate=function(){throw new Error("Not implemented")},$i.prototype._fixedNafMul=function(e,t){Vi(e.precomputed);var r=e._getDoubles(),n=qi(t,1,this._bitLength),i=(1<=o;u--)s=(s<<1)+n[u];a.push(s)}for(var l=this.jpoint(null,null,null),c=this.jpoint(null,null,null),h=i;h>0;h--){for(o=0;o=0;a--){for(var u=0;a>=0&&0===o[a];a--)u++;if(a>=0&&u++,s=s.dblp(u),a<0)break;var l=o[a];Vi(0!==l),s="affine"===e.type?l>0?s.mixedAdd(i[l-1>>1]):s.mixedAdd(i[-l-1>>1].neg()):l>0?s.add(i[l-1>>1]):s.add(i[-l-1>>1].neg())}return"affine"===e.type?s.toP():s},$i.prototype._wnafMulAdd=function(e,t,r,n,i){var o,s,a,u=this._wnafT1,l=this._wnafT2,c=this._wnafT3,h=0;for(o=0;o=1;o-=2){var f=o-1,p=o;if(1===u[f]&&1===u[p]){var m=[t[f],null,null,t[p]];0===t[f].y.cmp(t[p].y)?(m[1]=t[f].add(t[p]),m[2]=t[f].toJ().mixedAdd(t[p].neg())):0===t[f].y.cmp(t[p].y.redNeg())?(m[1]=t[f].toJ().mixedAdd(t[p]),m[2]=t[f].add(t[p].neg())):(m[1]=t[f].toJ().mixedAdd(t[p]),m[2]=t[f].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=Wi(r[f],r[p]);for(h=Math.max(y[0].length,h),c[f]=new Array(h),c[p]=new Array(h),s=0;s=0;o--){for(var E=0;o>=0;){var A=!0;for(s=0;s=0&&E++,w=w.dblp(E),o<0)break;for(s=0;s0?a=l[s][M-1>>1]:M<0&&(a=l[s][-M-1>>1].neg()),w="affine"===a.type?w.mixedAdd(a):w.add(a))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},Ji.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(o=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:n,b:i},{a:o,b:s}]},eo.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),u=i.mul(r.b),l=o.mul(n.b);return{k1:e.sub(s).sub(a),k2:u.add(l).neg()}},eo.prototype.pointFromX=function(e,t){(e=new(Bi())(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},eo.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},eo.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},ro.prototype.isInfinity=function(){return this.inf},ro.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},ro.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},ro.prototype.getX=function(){return this.x.fromRed()},ro.prototype.getY=function(){return this.y.fromRed()},ro.prototype.mul=function(e){return e=new(Bi())(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},ro.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},ro.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},ro.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},ro.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},ro.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},Zi(no,Qi.BasePoint),eo.prototype.jpoint=function(e,t,r){return new no(this,e,t,r)},no.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},no.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},no.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),a=n.redSub(i),u=o.redSub(s);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),c=l.redMul(a),h=n.redMul(l),d=u.redSqr().redIAdd(c).redISub(h).redISub(h),f=u.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(d,f,p)},no.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),c=r.redMul(u),h=a.redSqr().redIAdd(l).redISub(c).redISub(c),d=a.redMul(c.redISub(h)).redISub(i.redMul(l)),f=this.z.redMul(s);return this.curve.jpoint(h,d,f)},no.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},no.prototype.inspect=function(){return this.isInfinity()?"":""},no.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var io=zi((function(e,t){var r=t;r.base=Qi,r.short=to,r.mont=null,r.edwards=null})),oo=zi((function(e,t){var r,n=t,i=Ki.assert;function o(e){"short"===e.type?this.curve=new io.short(e):"edwards"===e.type?this.curve=new io.edwards(e):this.curve=new io.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new o(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Fi().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Fi().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Fi().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Fi().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Fi().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Fi().sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Fi().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(a){r=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Fi().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function so(e){if(!(this instanceof so))return new so(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=Yi.toArray(e.entropy,e.entropyEnc||"hex"),r=Yi.toArray(e.nonce,e.nonceEnc||"hex"),n=Yi.toArray(e.pers,e.persEnc||"hex");Hi(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var ao=so;so.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},so.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=Yi.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"};var ho=Ki.assert;function fo(e,t){if(e instanceof fo)return e;this._importDER(e,t)||(ho(e.r&&e.s,"Signature without r or s"),this.r=new(Bi())(e.r,16),this.s=new(Bi())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var po=fo;function mo(){this.place=0}function go(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,s=t.place;o>>=0;return!(i<=127)&&(t.place=s,i)}function yo(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}fo.prototype._importDER=function(e,t){e=Ki.toArray(e,t);var r=new mo;if(48!==e[r.place++])return!1;var n=go(e,r);if(!1===n)return!1;if(n+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var i=go(e,r);if(!1===i)return!1;var o=e.slice(r.place,i+r.place);if(r.place+=i,2!==e[r.place++])return!1;var s=go(e,r);if(!1===s)return!1;if(e.length!==s+r.place)return!1;var a=e.slice(r.place,s+r.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new(Bi())(o),this.s=new(Bi())(a),this.recoveryParam=null,!0},fo.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=yo(t),r=yo(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];vo(n,t.length),(n=n.concat(t)).push(2),vo(n,r.length);var i=n.concat(r),o=[48];return vo(o,i.length),o=o.concat(i),Ki.encode(o,e)};var bo=function(){throw new Error("unsupported")},wo=Ki.assert;function _o(e){if(!(this instanceof _o))return new _o(e);"string"==typeof e&&(wo(Object.prototype.hasOwnProperty.call(oo,e),"Unknown curve "+e),e=oo[e]),e instanceof oo.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var Eo=_o;_o.prototype.keyPair=function(e){return new co(this,e)},_o.prototype.keyFromPrivate=function(e,t){return co.fromPrivate(this,e,t)},_o.prototype.keyFromPublic=function(e,t){return co.fromPublic(this,e,t)},_o.prototype.genKeyPair=function(e){e||(e={});for(var t=new ao({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||bo(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(Bi())(2));;){var i=new(Bi())(t.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},_o.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},_o.prototype.sign=function(e,t,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new(Bi())(e,16));for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),s=e.toArray("be",i),a=new ao({hash:this.hash,entropy:o,nonce:s,pers:n.pers,persEnc:n.persEnc||"utf8"}),u=this.n.sub(new(Bi())(1)),l=0;;l++){var c=n.k?n.k(l):new(Bi())(a.generate(this.n.byteLength()));if(!((c=this._truncateToN(c,!0)).cmpn(1)<=0||c.cmp(u)>=0)){var h=this.g.mul(c);if(!h.isInfinity()){var d=h.getX(),f=d.umod(this.n);if(0!==f.cmpn(0)){var p=c.invm(this.n).mul(f.mul(t.getPrivate()).iadd(e));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==d.cmp(f)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new po({r:f,s:p,recoveryParam:m})}}}}}},_o.prototype.verify=function(e,t,r,n){e=this._truncateToN(new(Bi())(e,16)),r=this.keyFromPublic(r,n);var i=(t=new po(t,"hex")).r,o=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,a=o.invm(this.n),u=a.mul(e).umod(this.n),l=a.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,r.getPublic(),l)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(u,r.getPublic(),l)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},_o.prototype.recoverPubKey=function(e,t,r,n){wo((3&r)===r,"The recovery param is more than two bits"),t=new po(t,n);var i=this.n,o=new(Bi())(e),s=t.r,a=t.s,u=1&r,l=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var c=t.r.invm(i),h=i.sub(o).mul(c).umod(i),d=a.mul(c).umod(i);return this.g.mulAdd(h,s,d)},_o.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new po(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var Ao=zi((function(e,t){var r=t;r.version="6.5.4",r.utils=Ki,r.rand=function(){throw new Error("unsupported")},r.curve=io,r.curves=oo,r.ec=Eo,r.eddsa=null})).ec;const Mo=new Ae("signing-key/5.7.0");let So=null;function xo(){return So||(So=new Ao("secp256k1")),So}class ko{constructor(e){yt(this,"curve","secp256k1"),yt(this,"privateKey",Oe(e)),32!==je(this.privateKey)&&Mo.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const t=xo().keyFromPrivate(Ie(this.privateKey));yt(this,"publicKey","0x"+t.getPublic(!1,"hex")),yt(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),yt(this,"_isSigningKey",!0)}_addPoint(e){const t=xo().keyFromPublic(Ie(this.publicKey)),r=xo().keyFromPublic(Ie(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}signDigest(e){const t=xo().keyFromPrivate(Ie(this.privateKey)),r=Ie(e);32!==r.length&&Mo.throwArgumentError("bad digest length","digest",e);const n=t.sign(r,{canonical:!0});return Ge({recoveryParam:n.recoveryParam,r:He("0x"+n.r.toString(16),32),s:He("0x"+n.s.toString(16),32)})}computeSharedSecret(e){const t=xo().keyFromPrivate(Ie(this.privateKey)),r=xo().keyFromPublic(Ie(Co(e)));return He("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function To(e,t){const r=Ge(t),n={r:Ie(r.r),s:Ie(r.s)};return"0x"+xo().recoverPubKey(Ie(e),n,r.recoveryParam).encode("hex",!1)}function Co(e,t){const r=Ie(e);if(32===r.length){const e=new ko(r);return t?"0x"+xo().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?t?Oe(r):"0x"+xo().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+xo().keyFromPublic(r).getPublic(!0,"hex"):Oe(r):Mo.throwArgumentError("invalid public or private key","key","[REDACTED]")}const Io=new Ae("transactions/5.7.0");var No;function Ro(e){return"0x"===e?null:br(e)}function Po(e){return"0x"===e?jr:Je.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(No||(No={}));const Do=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],Lo={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function Oo(e){return br(Be(or(Be(Co(e),1)),12))}function jo(e,t){return Oo(To(Ie(e),t))}function Bo(e,t){const r=Re(Je.from(e).toHexString());return r.length>32&&Io.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function Uo(e,t){return{address:br(e),storageKeys:(t||[]).map(((t,r)=>(32!==je(t)&&Io.throwArgumentError("invalid access list storageKey",`accessList[${e}:${r}]`,t),t.toLowerCase())))}}function Fo(e){if(Array.isArray(e))return e.map(((e,t)=>Array.isArray(e)?(e.length>2&&Io.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),Uo(e[0],e[1])):Uo(e.address,e.storageKeys)));const t=Object.keys(e).map((t=>{const r=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return Uo(t,Object.keys(r).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}function zo(e){return Fo(e).map((e=>[e.address,e.storageKeys]))}function Ho(e,t){if(null!=e.gasPrice){const t=Je.from(e.gasPrice),r=Je.from(e.maxFeePerGas||0);t.eq(r)||Io.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:r})}const r=[Bo(e.chainId||0,"chainId"),Bo(e.nonce||0,"nonce"),Bo(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),Bo(e.maxFeePerGas||0,"maxFeePerGas"),Bo(e.gasLimit||0,"gasLimit"),null!=e.to?br(e.to):"0x",Bo(e.value||0,"value"),e.data||"0x",zo(e.accessList||[])];if(t){const e=Ge(t);r.push(Bo(e.recoveryParam,"recoveryParam")),r.push(Re(e.r)),r.push(Re(e.s))}return Ue(["0x02",cr(r)])}function Go(e,t){const r=[Bo(e.chainId||0,"chainId"),Bo(e.nonce||0,"nonce"),Bo(e.gasPrice||0,"gasPrice"),Bo(e.gasLimit||0,"gasLimit"),null!=e.to?br(e.to):"0x",Bo(e.value||0,"value"),e.data||"0x",zo(e.accessList||[])];if(t){const e=Ge(t);r.push(Bo(e.recoveryParam,"recoveryParam")),r.push(Re(e.r)),r.push(Re(e.s))}return Ue(["0x01",cr(r)])}function Yo(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&Io.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){wt(e,Lo);const r=[];Do.forEach((function(t){let n=e[t.name]||[];const i={};t.numeric&&(i.hexPad="left"),n=Ie(Oe(n,i)),t.length&&n.length!==t.length&&n.length>0&&Io.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=Re(n),n.length>t.maxLength&&Io.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n)),r.push(Oe(n))}));let n=0;if(null!=e.chainId?(n=e.chainId,"number"!=typeof n&&Io.throwArgumentError("invalid transaction.chainId","transaction",e)):t&&!ke(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push(Oe(n)),r.push("0x"),r.push("0x")),!t)return cr(r);const i=Ge(t);let o=27+i.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),o+=2*n+8,i.v>28&&i.v!==o&&Io.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==o&&Io.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push(Oe(o)),r.push(Re(Ie(i.r))),r.push(Re(Ie(i.s))),cr(r)}(e,t);switch(e.type){case 1:return Go(e,t);case 2:return Ho(e,t)}return Io.throwError(`unsupported transaction type: ${e.type}`,Ae.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function Ko(e,t,r){try{const r=Po(t[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");e.v=r}catch(XMe){Io.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=He(t[1],32),e.s=He(t[2],32);try{const t=or(r(e));e.from=jo(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(XMe){}}function qo(e){const t=Ie(e);if(t[0]>127)return function(e){const t=fr(e);9!==t.length&&6!==t.length&&Io.throwArgumentError("invalid raw transaction","rawTransaction",e);const r={nonce:Po(t[0]).toNumber(),gasPrice:Po(t[1]),gasLimit:Po(t[2]),to:Ro(t[3]),value:Po(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=Je.from(t[6]).toNumber()}catch(XMe){return r}if(r.r=He(t[7],32),r.s=He(t[8],32),Je.from(r.r).isZero()&&Je.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27;const i=t.slice(0,6);0!==r.chainId&&(i.push(Oe(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8);const o=or(cr(i));try{r.from=jo(o,{r:Oe(r.r),s:Oe(r.s),recoveryParam:n})}catch(XMe){}r.hash=or(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){const t=fr(e.slice(1));8!==t.length&&11!==t.length&&Io.throwArgumentError("invalid component count for transaction type: 1","payload",Oe(e));const r={type:1,chainId:Po(t[0]).toNumber(),nonce:Po(t[1]).toNumber(),gasPrice:Po(t[2]),gasLimit:Po(t[3]),to:Ro(t[4]),value:Po(t[5]),data:t[6],accessList:Fo(t[7])};return 8===t.length||(r.hash=or(e),Ko(r,t.slice(8),Go)),r}(t);case 2:return function(e){const t=fr(e.slice(1));9!==t.length&&12!==t.length&&Io.throwArgumentError("invalid component count for transaction type: 2","payload",Oe(e));const r=Po(t[2]),n=Po(t[3]),i={type:2,chainId:Po(t[0]).toNumber(),nonce:Po(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:Po(t[4]),to:Ro(t[5]),value:Po(t[6]),data:t[7],accessList:Fo(t[8])};return 9===t.length||(i.hash=or(e),Ko(i,t.slice(9),Ho)),i}(t)}return Io.throwError(`unsupported transaction type: ${t[0]}`,Ae.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}var Wo=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const Vo=new Ae("contracts/5.7.0"),$o={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function Qo(e,t){return Wo(this,void 0,void 0,(function*(){const r=yield t;"string"!=typeof r&&Vo.throwArgumentError("invalid address or ENS name","name",r);try{return br(r)}catch(XMe){}e||Vo.throwError("a provider or signer is needed to resolve ENS names",Ae.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield e.resolveName(r);return null==n&&Vo.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n}))}function Jo(e,t,r){return Wo(this,void 0,void 0,(function*(){return Array.isArray(r)?yield Promise.all(r.map(((r,n)=>Jo(e,Array.isArray(t)?t[n]:t[r.name],r)))):"address"===r.type?yield Qo(e,t):"tuple"===r.type?yield Jo(e,t,r.components):"array"===r.baseType?Array.isArray(t)?yield Promise.all(t.map((t=>Jo(e,t,r.arrayChildren)))):Promise.reject(Vo.makeError("invalid value for array",Ae.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t}))}function Zo(e,t,r){return Wo(this,void 0,void 0,(function*(){let n={};r.length===t.inputs.length+1&&"object"==typeof r[r.length-1]&&(n=_t(r.pop())),Vo.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?n.from?n.from=bt({override:Qo(e.signer,n.from),signer:e.signer.getAddress()}).then((e=>Wo(this,void 0,void 0,(function*(){return br(e.signer)!==e.override&&Vo.throwError("Contract with a Signer cannot override from",Ae.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})))):n.from=e.signer.getAddress():n.from&&(n.from=Qo(e.provider,n.from));const i=yield bt({args:Jo(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:bt(n)||{}}),o=e.interface.encodeFunctionData(t,i.args),s={data:o,to:i.address},a=i.overrides;if(null!=a.nonce&&(s.nonce=Je.from(a.nonce).toNumber()),null!=a.gasLimit&&(s.gasLimit=Je.from(a.gasLimit)),null!=a.gasPrice&&(s.gasPrice=Je.from(a.gasPrice)),null!=a.maxFeePerGas&&(s.maxFeePerGas=Je.from(a.maxFeePerGas)),null!=a.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=Je.from(a.maxPriorityFeePerGas)),null!=a.from&&(s.from=a.from),null!=a.type&&(s.type=a.type),null!=a.accessList&&(s.accessList=Fo(a.accessList)),null==s.gasLimit&&null!=t.gas){let e=21e3;const r=Ie(o);for(let t=0;tnull!=n[e]));return u.length&&Vo.throwError(`cannot override ${u.map((e=>JSON.stringify(e))).join(",")}`,Ae.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:u}),s}))}function Xo(e,t){const r=t.wait.bind(t);t.wait=t=>r(t).then((t=>(t.events=t.logs.map((r=>{let n=St(r),i=null;try{i=e.interface.parseLog(r)}catch(o){}return i&&(n.args=i.args,n.decode=(t,r)=>e.interface.decodeEventLog(i.eventFragment,t,r),n.event=i.name,n.eventSignature=i.signature),n.removeListener=()=>e.provider,n.getBlock=()=>e.provider.getBlock(t.blockHash),n.getTransaction=()=>e.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(t),n})),t)))}function es(e,t,r){const n=e.signer||e.provider;return function(...i){return Wo(this,void 0,void 0,(function*(){let o;if(i.length===t.inputs.length+1&&"object"==typeof i[i.length-1]){const e=_t(i.pop());null!=e.blockTag&&(o=yield e.blockTag),delete e.blockTag,i.push(e)}null!=e.deployTransaction&&(yield e._deployed(o));const s=yield Zo(e,t,i),a=yield n.call(s,o);try{let n=e.interface.decodeFunctionResult(t,a);return r&&1===t.outputs.length&&(n=n[0]),n}catch(XMe){throw XMe.code===Ae.errors.CALL_EXCEPTION&&(XMe.address=e.address,XMe.args=i,XMe.transaction=s),XMe}}))}}function ts(e,t,r){return t.constant?es(e,t,r):function(e,t){return function(...r){return Wo(this,void 0,void 0,(function*(){e.signer||Vo.throwError("sending a transaction requires a signer",Ae.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());const n=yield Zo(e,t,r),i=yield e.signer.sendTransaction(n);return Xo(e,i),i}))}}(e,t)}function rs(e){return!e.address||null!=e.topics&&0!==e.topics.length?(e.address||"*")+"@"+(e.topics?e.topics.map((e=>Array.isArray(e)?e.join("|"):e)).join(":"):""):"*"}class ns{constructor(e,t){yt(this,"tag",e),yt(this,"filter",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter((r=>!(!t&&r.listener===e)||(t=!0,!1)))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map((e=>e.listener))}listenerCount(){return this._listeners.length}run(e){const t=this.listenerCount();return this._listeners=this._listeners.filter((t=>{const r=e.slice();return setTimeout((()=>{t.listener.apply(this,r)}),0),!t.once})),t}prepareEvent(e){}getEmit(e){return[e]}}class is extends ns{constructor(){super("error",null)}}class os extends ns{constructor(e,t,r,n){const i={address:e};let o=t.getEventTopic(r);n?(o!==n[0]&&Vo.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[o],super(rs(i),i),yt(this,"address",e),yt(this,"interface",t),yt(this,"fragment",r)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(XMe){e.args=null,e.decodeError=XMe}}getEmit(e){const t=Xt(e.args);if(t.length)throw t[0].error;const r=(e.args||[]).slice();return r.push(e),r}}class ss extends ns{constructor(e,t){super("*",{address:e}),yt(this,"address",e),yt(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{const t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,r)=>this.interface.decodeEventLog(t.eventFragment,e,r),e.args=t.args}catch(XMe){}}}class as{constructor(e,t,r){yt(this,"interface",vt(new.target,"getInterface")(t)),null==r?(yt(this,"provider",null),yt(this,"signer",null)):Li.isSigner(r)?(yt(this,"provider",r.provider||null),yt(this,"signer",r)):Ii.isProvider(r)?(yt(this,"provider",r),yt(this,"signer",null)):Vo.throwArgumentError("invalid signer or provider","signerOrProvider",r),yt(this,"callStatic",{}),yt(this,"estimateGas",{}),yt(this,"functions",{}),yt(this,"populateTransaction",{}),yt(this,"filters",{});{const e={};Object.keys(this.interface.events).forEach((t=>{const r=this.interface.events[t];yt(this.filters,t,((...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,e)}))),e[r.name]||(e[r.name]=[]),e[r.name].push(t)})),Object.keys(e).forEach((t=>{const r=e[t];1===r.length?yt(this.filters,t,this.filters[r[0]]):Vo.warn(`Duplicate definition of ${t} (${r.join(", ")})`)}))}if(yt(this,"_runningEvents",{}),yt(this,"_wrappedEmits",{}),null==e&&Vo.throwArgumentError("invalid contract address or ENS name","addressOrName",e),yt(this,"address",e),this.provider)yt(this,"resolvedAddress",Qo(this.provider,e));else try{yt(this,"resolvedAddress",Promise.resolve(br(e)))}catch(XMe){Vo.throwError("provider is required to use ENS name as contract address",Ae.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((e=>{}));const n={},i={};Object.keys(this.interface.functions).forEach((e=>{const t=this.interface.functions[e];if(i[e])Vo.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);else{i[e]=!0;{const r=t.name;n[`%${r}`]||(n[`%${r}`]=[]),n[`%${r}`].push(e)}null==this[e]&&yt(this,e,ts(this,t,!0)),null==this.functions[e]&&yt(this.functions,e,ts(this,t,!1)),null==this.callStatic[e]&&yt(this.callStatic,e,es(this,t,!0)),null==this.populateTransaction[e]&&yt(this.populateTransaction,e,function(e,t){return function(...r){return Zo(e,t,r)}}(this,t)),null==this.estimateGas[e]&&yt(this.estimateGas,e,function(e,t){const r=e.signer||e.provider;return function(...n){return Wo(this,void 0,void 0,(function*(){r||Vo.throwError("estimate require a provider or signer",Ae.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield Zo(e,t,n);return yield r.estimateGas(i)}))}}(this,t))}})),Object.keys(n).forEach((e=>{const t=n[e];if(t.length>1)return;e=e.substring(1);const r=t[0];try{null==this[e]&&yt(this,e,this[r])}catch(i){}null==this.functions[e]&&yt(this.functions,e,this.functions[r]),null==this.callStatic[e]&&yt(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&yt(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&yt(this.estimateGas,e,this.estimateGas[r])}))}static getContractAddress(e){return Er(e)}static getInterface(e){return xi.isInterface(e)?e:new xi(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((()=>this)):this._deployedPromise=this.provider.getCode(this.address,e).then((e=>("0x"===e&&Vo.throwError("contract not deployed",Ae.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this)))),this._deployedPromise}fallback(e){this.signer||Vo.throwError("sending a transactions require a signer",Ae.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const t=_t(e||{});return["from","to"].forEach((function(e){null!=t[e]&&Vo.throwError("cannot override "+e,Ae.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.to=this.resolvedAddress,this.deployed().then((()=>this.signer.sendTransaction(t)))}connect(e){"string"==typeof e&&(e=new Oi(e,this.provider));const t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&yt(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return Ai.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new is);if("event"===e)return this._normalizeRunningEvent(new ns("event",null));if("*"===e)return this._normalizeRunningEvent(new ss(this.address,this.interface));const t=this.interface.getEvent(e);return this._normalizeRunningEvent(new os(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{const t=e.topics[0];if("string"!=typeof t)throw new Error("invalid topic");const r=this.interface.getEvent(t);return this._normalizeRunningEvent(new os(this.address,this.interface,r,e.topics))}catch(XMe){}const t={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new ns(rs(t),t))}return this._normalizeRunningEvent(new ss(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];const t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,r){const n=St(t);return n.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},n.getBlock=()=>this.provider.getBlock(t.blockHash),n.getTransaction=()=>this.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(n),n}_addEventListener(e,t,r){if(this.provider||Vo.throwError("events require a provider or a signer with a provider",Ae.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const r=r=>{let n=this._wrapEvent(e,r,t);if(null==n.decodeError)try{const t=e.getEmit(n);this.emit(e.filter,...t)}catch(XMe){n.decodeError=XMe.error}null!=e.filter&&this.emit("event",n),null!=n.decodeError&&this.emit("error",n.decodeError,n)};this._wrappedEmits[e.tag]=r,null!=e.filter&&this.provider.on(e.filter,r)}}queryFilter(e,t,r){const n=this._getRunningEvent(e),i=_t(n.filter);return"string"==typeof t&&De(t,32)?(null!=r&&Vo.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).then((e=>e.map((e=>this._wrapEvent(n,e,null)))))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e,...t){if(!this.provider)return!1;const r=this._getRunningEvent(e),n=r.run(t)>0;return this._checkRunningEvents(r),n}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce(((e,t)=>e+this._runningEvents[t].listenerCount()),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){const e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach((t=>{e.push(t)}));return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(const e in this._runningEvents){const t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}const t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;const r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class us extends as{}class ls{constructor(e,t,r){let n=null;n="string"==typeof t?t:Ce(t)?Oe(t):t&&"string"==typeof t.object?t.object:"!","0x"!==n.substring(0,2)&&(n="0x"+n),(!De(n)||n.length%2)&&Vo.throwArgumentError("invalid bytecode","bytecode",t),r&&!Li.isSigner(r)&&Vo.throwArgumentError("invalid signer","signer",r),yt(this,"bytecode",n),yt(this,"interface",vt(new.target,"getInterface")(e)),yt(this,"signer",r||null)}getDeployTransaction(...e){let t={};if(e.length===this.interface.deploy.inputs.length+1&&"object"==typeof e[e.length-1]){t=_t(e.pop());for(const e in t)if(!$o[e])throw new Error("unknown transaction override "+e)}if(["data","from","to"].forEach((e=>{null!=t[e]&&Vo.throwError("cannot override "+e,Ae.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.value){Je.from(t.value).isZero()||this.interface.deploy.payable||Vo.throwError("non-payable constructor cannot override value",Ae.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:t.value})}return Vo.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),t.data=Oe(Ne([this.bytecode,this.interface.encodeDeploy(e)])),t}deploy(...e){return Wo(this,void 0,void 0,(function*(){let t={};e.length===this.interface.deploy.inputs.length+1&&(t=e.pop()),Vo.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");const r=yield Jo(this.signer,e,this.interface.deploy.inputs);r.push(t);const n=this.getDeployTransaction(...r),i=yield this.signer.sendTransaction(n),o=vt(this.constructor,"getContractAddress")(i),s=vt(this.constructor,"getContract")(o,this.interface,this.signer);return Xo(s,i),yt(s,"deployTransaction",i),s}))}attach(e){return this.constructor.getContract(e,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,t){null==e&&Vo.throwError("missing compiler output",Ae.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof e&&(e=JSON.parse(e));const r=e.abi;let n=null;return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)}static getInterface(e){return us.getInterface(e)}static getContractAddress(e){return Er(e)}static getContract(e,t,r){return new us(e,t,r)}}class cs{constructor(e){yt(this,"alphabet",e),yt(this,"base",e.length),yt(this,"_alphabetMap",{}),yt(this,"_leader",e.charAt(0));for(let t=0;t0;)r.push(e%this.base),e=e/this.base|0}let n="";for(let i=0;0===t[i]&&i=0;--i)n+=this.alphabet[r[i]];return n}decode(e){if("string"!=typeof e)throw new TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let r=0;r>=8;for(;i>0;)t.push(255&i),i>>=8}for(let r=0;e[r]===this._leader&&r>24&255,u[t.length+1]=h>>16&255,u[t.length+2]=h>>8&255,u[t.length+3]=255&h;let d=Ie(ys(i,e,u));o||(o=d.length,c=new Uint8Array(o),s=Math.ceil(n/o),l=n-(s-1)*o),c.set(d);for(let t=1;t=256)throw new Error("Depth too large!");return Ns(Ne([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",Oe(this.depth),this.parentFingerprint,He(Oe(this.index),4),this.chainCode,null!=this.privateKey?Ne(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new Ls(Ps,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw new Error("invalid index - "+String(e));let t=this.path;t&&(t+="/"+(2147483647&e));const r=new Uint8Array(37);if(e&Ts){if(!this.privateKey)throw new Error("cannot derive child of neutered node");r.set(Ie(this.privateKey),1),t&&(t+="'")}else r.set(Ie(this.publicKey));for(let c=24;c>=0;c-=8)r[33+(c>>3)]=e>>24-c&255;const n=Ie(ys(ds.sha512,this.chainCode,r)),i=n.slice(0,32),o=n.slice(32);let s=null,a=null;if(this.privateKey)s=Is(Je.from(i).add(this.privateKey).mod(xs));else{a=new ko(Oe(i))._addPoint(this.publicKey)}let u=t;const l=this.mnemonic;return l&&(u=Object.freeze({phrase:l.phrase,path:t,locale:l.locale||"en"})),new Ls(Ps,s,a,this.fingerprint,Is(o),e,this.depth+1,u)}derivePath(e){const t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();let r=this;for(let n=0;n=Ts)throw new Error("invalid path index - "+e);r=r._derive(Ts+t)}else{if(!e.match(/^[0-9]+$/))throw new Error("invalid path component - "+e);{const t=parseInt(e);if(t>=Ts)throw new Error("invalid path index - "+e);r=r._derive(t)}}}return r}static _fromSeed(e,t){const r=Ie(e);if(r.length<16||r.length>64)throw new Error("invalid seed");const n=Ie(ys(ds.sha512,ks,r));return new Ls(Ps,Is(n.slice(0,32)),null,"0x00000000",Is(n.slice(32)),0,0,t)}static fromMnemonic(e,t,r){return e=Bs(js(e,r=Rs(r)),r),Ls._fromSeed(Os(e,t),{phrase:e,path:"m",locale:r.locale})}static fromSeed(e){return Ls._fromSeed(e,null)}static fromExtendedKey(e){const t=hs.decode(e);82===t.length&&Ns(t.slice(0,78))===e||Ss.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const r=t[4],n=Oe(t.slice(5,9)),i=parseInt(Oe(t.slice(9,13)).substring(2),16),o=Oe(t.slice(13,45)),s=t.slice(45,78);switch(Oe(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new Ls(Ps,null,Oe(s),n,o,i,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==s[0])break;return new Ls(Ps,Oe(s.slice(1)),null,n,o,i,r,null)}return Ss.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function Os(e,t){t||(t="");const r=Xr("mnemonic"+t,Vr.NFKD);return vs(Xr(e,Vr.NFKD),r,2048,64,"sha512")}function js(e,t){t=Rs(t),Ss.checkNormalize();const r=t.split(e);if(r.length%3!=0)throw new Error("invalid mnemonic");const n=Ie(new Uint8Array(Math.ceil(11*r.length/8)));let i=0;for(let a=0;a>3]|=1<<7-i%8),i++}const o=32*r.length/3,s=Cs(r.length/3);if((Ie(ms(n.slice(0,o/8)))[0]&s)!==(n[n.length-1]&s))throw new Error("invalid checksum");return Oe(n.slice(0,o/8))}function Bs(e,t){if(t=Rs(t),(e=Ie(e)).length%4!=0||e.length<16||e.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let s=0;s8?(r[r.length-1]<<=8,r[r.length-1]|=e[s],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[s]>>8-n,r.push(e[s]&(1<<8-n)-1),n+=3);const i=e.length/4,o=Ie(ms(e))[0]&Cs(i);return r[r.length-1]<<=i,r[r.length-1]|=o>>8-i,t.join(r.map((e=>t.getWord(e))))}function Us(e,t){try{return js(e,t),!0}catch(XMe){}return!1}function Fs(e){return("number"!=typeof e||e<0||e>=Ts||e%1)&&Ss.throwArgumentError("invalid account index","index",e),`m/44'/60'/${e}'/0/0`}const zs=new Ae("random/5.7.0");const Hs=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();let Gs=Hs.crypto||Hs.msCrypto;function Ys(e){(e<=0||e>1024||e%1||e!=e)&&zs.throwArgumentError("invalid length","length",e);const t=new Uint8Array(e);return Gs.getRandomValues(t),Ie(t)}function Ks(e){for(let t=(e=e.slice()).length-1;t>0;t--){const r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}Gs&&Gs.getRandomValues||(zs.warn("WARNING: Missing strong random number source"),Gs={getRandomValues:function(e){return zs.throwError("no secure random source avaialble",Ae.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});var qs=r(83917),Ws=r.n(qs);const Vs="json-wallets/5.7.0";function $s(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Ie(e)}function Qs(e,t){for(e=String(e);e.lengtht)),yt(this,"address",Oo(this.publicKey)),this.address!==br(e.address)&&ba.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){const t=e.mnemonic;return t&&t.phrase}(e)){const t=e.mnemonic;yt(this,"_mnemonic",(()=>({phrase:t.phrase,path:t.path||Ds,locale:t.locale||"en"})));const r=this.mnemonic;Oo(Ls.fromMnemonic(r.phrase,null,r.locale).derivePath(r.path).privateKey)!==this.address&&ba.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else yt(this,"_mnemonic",(()=>null))}else{if(ko.isSigningKey(e))"secp256k1"!==e.curve&&ba.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),yt(this,"_signingKey",(()=>e));else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);const t=new ko(e);yt(this,"_signingKey",(()=>t))}yt(this,"_mnemonic",(()=>null)),yt(this,"address",Oo(this.publicKey))}t&&!Ii.isProvider(t)&&ba.throwArgumentError("invalid provider","provider",t),yt(this,"provider",t||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new wa(this,e)}signTransaction(e){return bt(e).then((t=>{null!=t.from&&(br(t.from)!==this.address&&ba.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete t.from);const r=this._signingKey().signDigest(or(Yo(t)));return Yo(t,r)}))}signMessage(e){return va(this,void 0,void 0,(function*(){return Ye(this._signingKey().signDigest(ri(e)))}))}_signTypedData(e,t,r){return va(this,void 0,void 0,(function*(){const n=yield vi.resolveNames(e,t,r,(e=>(null==this.provider&&ba.throwError("cannot resolve ENS names without a provider",Ae.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),this.provider.resolveName(e))));return Ye(this._signingKey().signDigest(vi.hash(n.domain,t,n.value)))}))}encrypt(e,t,r){if("function"!=typeof t||r||(r=t,t={}),r&&"function"!=typeof r)throw new Error("invalid callback");return t||(t={}),function(e,t,r,n){try{if(br(e.address)!==Oo(e.privateKey))throw new Error("address/privateKey mismatch");if(ca(e)){const t=e.mnemonic;if(Ls.fromMnemonic(t.phrase,null,t.locale).derivePath(t.path||Ds).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(g){return Promise.reject(g)}"function"!=typeof r||n||(n=r,r={}),r||(r={});const i=Ie(e.privateKey),o=Js(t);let s=null,a=null,u=null;if(ca(e)){const t=e.mnemonic;s=Ie(js(t.phrase,t.locale||"en")),a=t.path||Ds,u=t.locale||"en"}let l=r.client;l||(l="ethers.js");let c=null;c=r.salt?Ie(r.salt):Ys(32);let h=null;if(r.iv){if(h=Ie(r.iv),16!==h.length)throw new Error("invalid iv")}else h=Ys(16);let d=null;if(r.uuid){if(d=Ie(r.uuid),16!==d.length)throw new Error("invalid uuid")}else d=Ys(16);let f=1<<17,p=8,m=1;return r.scrypt&&(r.scrypt.N&&(f=r.scrypt.N),r.scrypt.r&&(p=r.scrypt.r),r.scrypt.p&&(m=r.scrypt.p)),aa().scrypt(o,c,f,p,m,64,n).then((t=>{const r=(t=Ie(t)).slice(0,16),n=t.slice(16,32),o=t.slice(32,64),g=new(Ws().Counter)(h),y=Ie(new(Ws().ModeOfOperation.ctr)(r,g).encrypt(i)),v=or(Ne([n,y])),b={address:e.address.substring(2).toLowerCase(),id:Xs(d),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:Oe(h).substring(2)},ciphertext:Oe(y).substring(2),kdf:"scrypt",kdfparams:{salt:Oe(c).substring(2),n:f,dklen:32,p:m,r:p},mac:v.substring(2)}};if(s){const e=Ys(16),t=new(Ws().Counter)(e),r=Ie(new(Ws().ModeOfOperation.ctr)(o,t).encrypt(s)),n=new Date,i=n.getUTCFullYear()+"-"+Qs(n.getUTCMonth()+1,2)+"-"+Qs(n.getUTCDate(),2)+"T"+Qs(n.getUTCHours(),2)+"-"+Qs(n.getUTCMinutes(),2)+"-"+Qs(n.getUTCSeconds(),2)+".0Z";b["x-ethers"]={client:l,gethFilename:"UTC--"+i+"--"+b.address,mnemonicCounter:Oe(e).substring(2),mnemonicCiphertext:Oe(r).substring(2),path:a,locale:u,version:"0.1"}}return JSON.stringify(b)}))}(this,e,t,r)}static createRandom(e){let t=Ys(16);e||(e={}),e.extraEntropy&&(t=Ie(Be(or(Ne([t,e.extraEntropy])),0,16)));const r=Bs(t,e.locale);return wa.fromMnemonic(r,e.path,e.locale)}static fromEncryptedJson(e,t,r){return ga(e,t,r).then((e=>new wa(e)))}static fromEncryptedJsonSync(e,t){return new wa(ya(e,t))}static fromMnemonic(e,t,r){return t||(t=Ds),new wa(Ls.fromMnemonic(e,null,r).derivePath(t))}}function _a(e,t){return jo(ri(e),t)}function Ea(e,t,r,n){return jo(vi.hash(e,t,r),n)}const Aa=new Ae("networks/5.7.1");function Ma(e){const t=function(t,r){null==r&&(r={});const n=[];if(t.InfuraProvider&&"-"!==r.infura)try{n.push(new t.InfuraProvider(e,r.infura))}catch(XMe){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(XMe){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(XMe){}if(t.PocketProvider&&"-"!==r.pocket){const i=["goerli","ropsten","rinkeby","sepolia"];try{const o=new t.PocketProvider(e,r.pocket);o.network&&-1===i.indexOf(o.network.name)&&n.push(o)}catch(XMe){}}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new t.CloudflareProvider(e))}catch(XMe){}if(t.AnkrProvider&&"-"!==r.ankr)try{const i=["ropsten"],o=new t.AnkrProvider(e,r.ankr);o.network&&-1===i.indexOf(o.network.name)&&n.push(o)}catch(XMe){}if(0===n.length)return null;if(t.FallbackProvider){let i=1;return null!=r.quorum?i=r.quorum:"homestead"===e&&(i=2),new t.FallbackProvider(n,i)}return n[0]};return t.renetwork=function(e){return Ma(e)},t}function Sa(e,t){const r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return Sa(e,t)},r}const xa={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:Ma("homestead")},ka={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:Ma("ropsten")},Ta={chainId:63,name:"classicMordor",_defaultProvider:Sa("https://www.ethercluster.com/mordor","classicMordor")},Ca={unspecified:{chainId:0,name:"unspecified"},homestead:xa,mainnet:xa,morden:{chainId:2,name:"morden"},ropsten:ka,testnet:ka,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:Ma("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:Ma("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:Ma("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:Ma("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:Sa("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:Ta,classicTestnet:Ta,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:Sa("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:Ma("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:Ma("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function Ia(e){if(null==e)return null;if("number"==typeof e){for(const t in Ca){const r=Ca[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){const t=Ca[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}const t=Ca[e.name];if(!t)return"number"!=typeof e.chainId&&Aa.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&Aa.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;return null==r&&t._defaultProvider&&(r=function(e){return e&&"function"==typeof e.renetwork}(t._defaultProvider)?t._defaultProvider.renetwork(e):t._defaultProvider),{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}var Na=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};function Ra(e,t){return Na(this,void 0,void 0,(function*(){null==t&&(t={});const r={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0};if(!0!==t.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),null!=t.fetchOptions){const e=t.fetchOptions;e.mode&&(r.mode=e.mode),e.cache&&(r.cache=e.cache),e.credentials&&(r.credentials=e.credentials),e.redirect&&(r.redirect=e.redirect),e.referrer&&(r.referrer=e.referrer)}const n=yield fetch(e,r),i=yield n.arrayBuffer(),o={};return n.headers.forEach?n.headers.forEach(((e,t)=>{o[t.toLowerCase()]=e})):n.headers.keys().forEach((e=>{o[e.toLowerCase()]=n.headers.get(e)})),{headers:o,statusCode:n.status,statusMessage:n.statusText,body:Ie(new Uint8Array(i))}}))}var Pa=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const Da=new Ae("web/5.7.1");function La(e){return new Promise((t=>{setTimeout(t,e)}))}function Oa(e,t){if(null==e)return null;if("string"==typeof e)return e;if(ke(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return nn(e)}catch(XMe){}return Oe(e)}return e}function ja(e){return Xr(e.replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16)))))}function Ba(e,t,r){const n="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;Da.assertArgument(n>0&&n%1==0,"invalid connection throttle limit","connection.throttleLimit",n);const i="object"==typeof e?e.throttleCallback:null,o="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;Da.assertArgument(o>0&&o%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);const s="object"==typeof e&&!!e.errorPassThrough,a={};let u=null;const l={method:"GET"};let c=!1,h=12e4;if("string"==typeof e)u=e;else if("object"==typeof e){if(null!=e&&null!=e.url||Da.throwArgumentError("missing URL","connection.url",e),u=e.url,"number"==typeof e.timeout&&e.timeout>0&&(h=e.timeout),e.headers)for(const t in e.headers)a[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(c=!0);if(l.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==u.substring(0,6)&&!0!==e.allowInsecureAuthentication&&Da.throwError("basic authentication requires a secure https url",Ae.errors.INVALID_ARGUMENT,{argument:"url",url:u,user:e.user,password:"[REDACTED]"});const t=e.user+":"+e.password;a.authorization={key:"Authorization",value:"Basic "+Cn(Xr(t))}}null!=e.skipFetchSetup&&(l.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(l.fetchOptions=_t(e.fetchOptions))}const d=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),f=u?u.match(d):null;if(f)try{const e={statusCode:200,statusMessage:"OK",headers:{"content-type":f[1]||"text/plain"},body:f[2]?Tn(f[3]):ja(f[3])};let t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(XMe){Da.throwError("processing response error",Ae.errors.SERVER_ERROR,{body:Oa(f[1],f[2]),error:XMe,requestBody:null,requestMethod:"GET",url:u})}t&&(l.method="POST",l.body=t,null==a["content-type"]&&(a["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==a["content-length"]&&(a["content-length"]={key:"Content-Length",value:String(t.length)}));const p={};Object.keys(a).forEach((e=>{const t=a[e];p[t.key]=t.value})),l.headers=p;const m=function(){let e=null;const t=new Promise((function(t,r){h&&(e=setTimeout((()=>{null!=e&&(e=null,r(Da.makeError("timeout",Ae.errors.TIMEOUT,{requestBody:Oa(l.body,p["content-type"]),requestMethod:l.method,timeout:h,url:u})))}),h))}));return{promise:t,cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),g=function(){return Pa(this,void 0,void 0,(function*(){for(let e=0;e=300)&&(m.cancel(),Da.throwError("bad response",Ae.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:Oa(a,t.headers?t.headers["content-type"]:null),requestBody:Oa(l.body,p["content-type"]),requestMethod:l.method,url:u})),r)try{const e=yield r(a,t);return m.cancel(),e}catch(XMe){if(XMe.throttleRetry&&e"content-type"===e.toLowerCase())).length;e||(r.headers=_t(r.headers),r.headers["content-type"]="application/json")}else r.headers={"content-type":"application/json"};e=r}return Ba(e,n,((e,t)=>{let n=null;if(null!=e)try{n=JSON.parse(nn(e))}catch(XMe){Da.throwError("invalid JSON",Ae.errors.SERVER_ERROR,{body:e,error:XMe})}return r&&(n=r(n,t)),n}))}function Fa(e,t){return t||(t={}),null==(t=_t(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(r,n){let i=null,o=!1;const s=()=>!o&&(o=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout((()=>{s()&&n(new Error("timeout"))}),t.timeout));const a=t.retryLimit;let u=0;!function i(){return e().then((function(e){if(void 0!==e)s()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!o){if(u++,u>a)return void(s()&&n(new Error("retry limit reached")));let e=t.interval*parseInt(String(Math.random()*Math.pow(2,u)));et.ceiling&&(e=t.ceiling),setTimeout(i,e)}return null}),(function(e){s()&&n(e)}))}()}))}var za=r(29185),Ha=r.n(za);const Ga="providers/5.7.1";var Ya=r(98399);const Ka=new Ae(Ga);class qa{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},t=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),i=this.data.bind(this),o=this.hash.bind(this),s=this.hex.bind(this),a=this.number.bind(this),u=this.type.bind(this);return e.transaction={hash:o,type:u,accessList:qa.allowNull(this.accessList.bind(this),null),blockHash:qa.allowNull(o,null),blockNumber:qa.allowNull(a,null),transactionIndex:qa.allowNull(a,null),confirmations:qa.allowNull(a,null),from:t,gasPrice:qa.allowNull(r),maxPriorityFeePerGas:qa.allowNull(r),maxFeePerGas:qa.allowNull(r),gasLimit:r,to:qa.allowNull(t,null),value:r,nonce:a,data:i,r:qa.allowNull(this.uint256),s:qa.allowNull(this.uint256),v:qa.allowNull(a),creates:qa.allowNull(t,null),raw:qa.allowNull(i)},e.transactionRequest={from:qa.allowNull(t),nonce:qa.allowNull(a),gasLimit:qa.allowNull(r),gasPrice:qa.allowNull(r),maxPriorityFeePerGas:qa.allowNull(r),maxFeePerGas:qa.allowNull(r),to:qa.allowNull(t),value:qa.allowNull(r),data:qa.allowNull((e=>this.data(e,!0))),type:qa.allowNull(a),accessList:qa.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:a,blockNumber:a,transactionHash:o,address:t,topics:qa.arrayOf(o),data:i,logIndex:a,blockHash:o},e.receipt={to:qa.allowNull(this.address,null),from:qa.allowNull(this.address,null),contractAddress:qa.allowNull(t,null),transactionIndex:a,root:qa.allowNull(s),gasUsed:r,logsBloom:qa.allowNull(i),blockHash:o,transactionHash:o,logs:qa.arrayOf(this.receiptLog.bind(this)),blockNumber:a,confirmations:qa.allowNull(a,null),cumulativeGasUsed:r,effectiveGasPrice:qa.allowNull(r),status:qa.allowNull(a),type:u},e.block={hash:qa.allowNull(o),parentHash:o,number:a,timestamp:a,nonce:qa.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:qa.allowNull(t),extraData:i,transactions:qa.allowNull(qa.arrayOf(o)),baseFeePerGas:qa.allowNull(r)},e.blockWithTransactions=_t(e.block),e.blockWithTransactions.transactions=qa.allowNull(qa.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:qa.allowNull(n,void 0),toBlock:qa.allowNull(n,void 0),blockHash:qa.allowNull(o,void 0),address:qa.allowNull(t,void 0),topics:qa.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:qa.allowNull(a),blockHash:qa.allowNull(o),transactionIndex:a,removed:qa.allowNull(this.boolean.bind(this)),address:t,data:qa.allowFalsish(i,"0x"),topics:qa.arrayOf(o),transactionHash:o,logIndex:a},e}accessList(e){return Fo(e||[])}number(e){return"0x"===e?0:Je.from(e).toNumber()}type(e){return"0x"===e||null==e?0:Je.from(e).toNumber()}bigNumber(e){return Je.from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),De(e))?e.toLowerCase():Ka.throwArgumentError("invalid hash","value",e)}data(e,t){const r=this.hex(e,t);if(r.length%2!=0)throw new Error("invalid data; odd-length - "+e);return r}address(e){return br(e)}callAddress(e){if(!De(e,32))return null;const t=br(Be(e,12));return t===Lr?null:t}contractAddress(e){return Er(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||De(e))return Fe(e);throw new Error("invalid blockTag")}hash(e,t){const r=this.hex(e,t);return 32!==je(r)?Ka.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;const t=Je.from(e);try{return t.toNumber()}catch(XMe){}return null}uint256(e){if(!De(e))throw new Error("invalid uint256");return He(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);const r=null!=e._difficulty?e._difficulty:e.difficulty,n=qa.check(t,e);return n._difficulty=null==r?null:Je.from(r),n}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return qa.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&Je.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),1!==e.type&&2!==e.type||null!=e.accessList||(e.accessList=[]);const t=qa.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;De(r)&&(r=Je.from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),De(r)&&(r=Je.from(r).toNumber()),"number"!=typeof r&&null!=t.v&&(r=(t.v-35)/2,r<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),t.chainId=r}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return qo(e)}receiptLog(e){return qa.check(this.formats.receiptLog,e)}receipt(e){const t=qa.check(this.formats.receipt,e);if(null!=t.root)if(t.root.length<=4){const e=Je.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&Ka.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):Ka.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&Ka.throwArgumentError("invalid root hash","value.root",t.root);return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map((e=>this.topics(e))):null!=e?this.hash(e,!0):null}filter(e){return qa.check(this.formats.filter,e)}filterLog(e){return qa.check(this.formats.filterLog,e)}static check(e,t){const r={};for(const n in e)try{const i=e[n](t[n]);void 0!==i&&(r[n]=i)}catch(XMe){throw XMe.checkKey=n,XMe.checkValue=t[n],XMe}return r}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");const r=[];return t.forEach((function(t){r.push(e(t))})),r}}}function Wa(e){return e&&"function"==typeof e.isCommunityResource}function Va(e){return Wa(e)&&e.isCommunityResource()}let $a=!1;function Qa(){$a||($a=!0,Ya.log("========= NOTICE ========="),Ya.log("Request-Rate Exceeded (this message will not be repeated)"),Ya.log(""),Ya.log("The default API keys for each service are provided as a highly-throttled,"),Ya.log("community resource for low-traffic projects and early prototyping."),Ya.log(""),Ya.log("While your application will continue to function, we highly recommended"),Ya.log("signing up for your own API keys to improve performance, increase your"),Ya.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),Ya.log(""),Ya.log("For more details: https://docs.ethers.io/api-keys/"),Ya.log("=========================="))}var Ja=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const Za=new Ae(Ga);function Xa(e){return null==e?"null":(32!==je(e)&&Za.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function eu(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((e=>{if(Array.isArray(e)){const t={};e.forEach((e=>{t[Xa(e)]=!0}));const r=Object.keys(t);return r.sort(),r.join("|")}return Xa(e)})).join("&")}function tu(e){if("string"==typeof e){if(32===je(e=e.toLowerCase()))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+eu(e);if(Ci.isForkEvent(e))throw Za.warn("not implemented"),new Error("not implemented");if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+eu(e.topics||[])}throw new Error("invalid event - "+e)}function ru(){return(new Date).getTime()}function nu(e){return new Promise((t=>{setTimeout(t,e)}))}const iu=["block","network","pending","poll"];class ou{constructor(e,t,r){yt(this,"tag",e),yt(this,"listener",t),yt(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){const e=this.tag.split(":");if("filter"!==e[0])return null;const t=e[1],r=function(e){return""===e?[]:e.split(/&/g).map((e=>{if(""===e)return[];const t=e.split("|").map((e=>"null"===e?null:e));return 1===t.length?t[0]:t}))}(e[2]),n={};return r.length>0&&(n.topics=r),t&&"*"!==t&&(n.address=t),n}pollable(){return this.tag.indexOf(":")>=0||iu.indexOf(this.tag)>=0}}const su={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function au(e){return He(Je.from(e).toHexString(),32)}function uu(e){return hs.encode(Ne([e,Be(ms(ms(e)),0,4)]))}const lu=new RegExp("^(ipfs)://(.*)$","i"),cu=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),lu,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function hu(e,t){try{return nn(du(e,t))}catch(XMe){}return null}function du(e,t){if("0x"===e)return null;const r=Je.from(Be(e,t,t+32)).toNumber(),n=Je.from(Be(e,r,r+32)).toNumber();return Be(e,r+32,r+32+n)}function fu(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):Za.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function pu(e){const t=Ie(e);if(t.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(t,32-t.length),r}function mu(e){if(e.length%32==0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function gu(e){const t=[];let r=0;for(let n=0;nJe.from(e).eq(1))).catch((e=>{if(e.code===Ae.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e}))),this._supportsEip2544}_fetch(e,t){return Ja(this,void 0,void 0,(function*(){const r={to:this.address,ccipReadEnabled:!0,data:Ue([e,ei(this.name),t||"0x"])};let n=!1;(yield this.supportsWildcard())&&(n=!0,r.data=Ue(["0x9061b923",gu([ti(this.name),r.data])]));try{let e=yield this.provider.call(r);return Ie(e).length%32==4&&Za.throwError("resolver threw error",Ae.errors.CALL_EXCEPTION,{transaction:r,data:e}),n&&(e=du(e,0)),e}catch(XMe){if(XMe.code===Ae.errors.CALL_EXCEPTION)return null;throw XMe}}))}_fetchBytes(e,t){return Ja(this,void 0,void 0,(function*(){const r=yield this._fetch(e,t);return null!=r?du(r,0):null}))}_getAddress(e,t){const r=su[String(e)];if(null==r&&Za.throwError(`unsupported coin type: ${e}`,Ae.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(t);const n=Ie(t);if(null!=r.p2pkh){const e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return uu(Ne([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.p2sh){const e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return uu(Ne([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){const e=n[1];let t=n[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&n.length===2+e&&e>=1&&e<=75){const e=Ha().toWords(n.slice(2));return e.unshift(t),Ha().encode(r.prefix,e)}}return null}getAddress(e){return Ja(this,void 0,void 0,(function*(){if(null==e&&(e=60),60===e)try{const e=yield this._fetch("0x3b3b57de");return"0x"===e||e===Yr?null:this.provider.formatter.callAddress(e)}catch(XMe){if(XMe.code===Ae.errors.CALL_EXCEPTION)return null;throw XMe}const t=yield this._fetchBytes("0xf1cb7e06",au(e));if(null==t||"0x"===t)return null;const r=this._getAddress(e,t);return null==r&&Za.throwError("invalid or unsupported coin data",Ae.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r}))}getAvatar(){return Ja(this,void 0,void 0,(function*(){const e=[{type:"name",content:this.name}];try{const t=yield this.getText("avatar");if(null==t)return null;for(let r=0;re[t]));return"sia://"+t}return Za.throwError("invalid or unsupported content hash data",Ae.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})}))}getText(e){return Ja(this,void 0,void 0,(function*(){let t=Xr(e);t=Ne([au(64),au(t.length),t]),t.length%32!=0&&(t=Ne([t,He("0x",32-e.length%32)]));const r=yield this._fetchBytes("0x59d1d43c",Oe(t));return null==r||"0x"===r?null:nn(r)}))}}let vu=null,bu=1;class wu extends Ii{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),yt(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch((e=>{})),this._ready().catch((e=>{}));else{const t=vt(new.target,"getNetwork")(e);t?(yt(this,"_network",t),this.emit("network",t,null)):Za.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return Ja(this,void 0,void 0,(function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(XMe){}null==e&&(e=yield this.detectNetwork()),e||Za.throwError("no network detected",Ae.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:yt(this,"_network",e),this.emit("network",e,null))}return this._network}))}get ready(){return Fa((()=>this._ready().then((e=>e),(e=>{if(e.code!==Ae.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))))}static getFormatter(){return null==vu&&(vu=new qa),vu}static getNetwork(e){return Ia(null==e?"homestead":e)}ccipReadFetch(e,t,r){return Ja(this,void 0,void 0,(function*(){if(this.disableCcipRead||0===r.length)return null;const n=e.to.toLowerCase(),i=t.toLowerCase(),o=[];for(let e=0;e=0?null:JSON.stringify({data:i,sender:n}),u=yield Ua({url:s,errorPassThrough:!0},a,((e,t)=>(e.status=t.statusCode,e)));if(u.data)return u.data;const l=u.message||"unknown error";if(u.status>=400&&u.status<500)return Za.throwError(`response not found during CCIP fetch: ${l}`,Ae.errors.SERVER_ERROR,{url:t,errorMessage:l});o.push(l)}return Za.throwError(`error encountered during CCIP fetch: ${o.map((e=>JSON.stringify(e))).join(", ")}`,Ae.errors.SERVER_ERROR,{urls:r,errorMessages:o})}))}_getInternalBlockNumber(e){return Ja(this,void 0,void 0,(function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const t=this._internalBlockNumber;try{const r=yield t;if(ru()-r.respTime<=e)return r.blockNumber;break}catch(XMe){if(this._internalBlockNumber===t)break}}const t=ru(),r=bt({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((e=>null),(e=>e))}).then((({blockNumber:e,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;const i=ru();return(e=Je.from(e).toNumber()){this._internalBlockNumber===r&&(this._internalBlockNumber=null)})),(yield r).blockNumber}))}poll(){return Ja(this,void 0,void 0,(function*(){const e=bu++,t=[];let r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(XMe){return void this.emit("error",XMe)}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)Za.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",Za.makeError("network block skew detected",Ae.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let e=this._emitted.block+1;e<=r;e++)this.emit("block",e);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((e=>{if("block"===e)return;const t=this._emitted[e];"pending"!==t&&r-t>12&&delete this._emitted[e]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((e=>{switch(e.type){case"tx":{const r=e.hash;let n=this.getTransactionReceipt(r).then((e=>e&&null!=e.blockNumber?(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e),null):null)).catch((e=>{this.emit("error",e)}));t.push(n);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);const n=e.filter;n.fromBlock=e._lastBlockNumber+1,n.toBlock=r;const i=n.toBlock-this._maxFilterBlockRange;i>n.fromBlock&&(n.fromBlock=i),n.fromBlock<0&&(n.fromBlock=0);const o=this.getLogs(n).then((t=>{e._inflight=!1,0!==t.length&&t.forEach((t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit(n,t)}))})).catch((t=>{this.emit("error",t),e._inflight=!1}));t.push(o)}}})),this._lastBlockNumber=r,Promise.all(t).then((()=>{this.emit("didPoll",e)})).catch((e=>{this.emit("error",e)}))}else this.emit("didPoll",e)}))}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return Ja(this,void 0,void 0,(function*(){return Za.throwError("provider does not support network detection",Ae.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return Ja(this,void 0,void 0,(function*(){const e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),yield nu(0),this._network;const r=Za.makeError("underlying network changed",Ae.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",r),r}return e}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then((e=>{this._setFastBlockNumber(e)}),(e=>{})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval((()=>{this.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((()=>{this.poll(),this._bootstrapPoll=setTimeout((()=>{this._poller||this.poll(),this._bootstrapPoll=null}),this.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((()=>{this.poll()}),this._pollingInterval))}_getFastBlockNumber(){const e=ru();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then((e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber)))),this._fastBlockNumberPromise}_setFastBlockNumber(e){null!=this._fastBlockNumber&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,r){return Ja(this,void 0,void 0,(function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)}))}_waitForTransaction(e,t,r,n){return Ja(this,void 0,void 0,(function*(){const i=yield this.getTransactionReceipt(e);return(i?i.confirmations:0)>=t?i:new Promise(((i,o)=>{const s=[];let a=!1;const u=function(){return!!a||(a=!0,s.forEach((e=>{e()})),!1)},l=e=>{e.confirmations{this.removeListener(e,l)})),n){let r=n.startBlock,i=null;const l=s=>Ja(this,void 0,void 0,(function*(){a||(yield nu(1e3),this.getTransactionCount(n.from).then((c=>Ja(this,void 0,void 0,(function*(){if(!a){if(c<=n.nonce)r=s;else{{const t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==i&&(i=r-3,i{a||this.once("block",l)})))}));if(a)return;this.once("block",l),s.push((()=>{this.removeListener("block",l)}))}if("number"==typeof r&&r>0){const e=setTimeout((()=>{u()||o(Za.makeError("timeout exceeded",Ae.errors.TIMEOUT,{timeout:r}))}),r);e.unref&&e.unref(),s.push((()=>{clearTimeout(e)}))}}))}))}getBlockNumber(){return Ja(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return Ja(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return Je.from(e)}catch(XMe){return Za.throwError("bad result from backend",Ae.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:XMe})}}))}getBalance(e,t){return Ja(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield bt({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getBalance",r);try{return Je.from(n)}catch(XMe){return Za.throwError("bad result from backend",Ae.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:XMe})}}))}getTransactionCount(e,t){return Ja(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield bt({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getTransactionCount",r);try{return Je.from(n).toNumber()}catch(XMe){return Za.throwError("bad result from backend",Ae.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:XMe})}}))}getCode(e,t){return Ja(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield bt({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getCode",r);try{return Oe(n)}catch(XMe){return Za.throwError("bad result from backend",Ae.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:XMe})}}))}getStorageAt(e,t,r){return Ja(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield bt({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then((e=>Fe(e)))}),i=yield this.perform("getStorageAt",n);try{return Oe(i)}catch(XMe){return Za.throwError("bad result from backend",Ae.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:i,error:XMe})}}))}_wrapTransaction(e,t,r){if(null!=t&&32!==je(t))throw new Error("invalid response - sendTransaction");const n=e;return null!=t&&e.hash!==t&&Za.throwError("Transaction hash mismatch from Provider.sendTransaction.",Ae.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),n.wait=(t,n)=>Ja(this,void 0,void 0,(function*(){let i;null==t&&(t=1),null==n&&(n=0),0!==t&&null!=r&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});const o=yield this._waitForTransaction(e.hash,t,n,i);return null==o&&0===t?null:(this._emitted["t:"+e.hash]=o.blockNumber,0===o.status&&Za.throwError("transaction failed",Ae.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:o}),o)})),n}sendTransaction(e){return Ja(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield Promise.resolve(e).then((e=>Oe(e))),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);const n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,e,n)}catch(XMe){throw XMe.transaction=r,XMe.transactionHash=r.hash,XMe}}))}_getTransactionRequest(e){return Ja(this,void 0,void 0,(function*(){const t=yield e,r={};return["from","to"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?this._getAddress(e):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?Je.from(e):null)))})),["type"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>null!=e?e:null)))})),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?Oe(e):null)))})),this.formatter.transactionRequest(yield bt(r))}))}_getFilter(e){return Ja(this,void 0,void 0,(function*(){e=yield e;const t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach((r=>{null!=e[r]&&(t[r]=e[r])})),["fromBlock","toBlock"].forEach((r=>{null!=e[r]&&(t[r]=this._getBlockTag(e[r]))})),this.formatter.filter(yield bt(t))}))}_call(e,t,r){return Ja(this,void 0,void 0,(function*(){r>=10&&Za.throwError("CCIP read exceeded maximum redirections",Ae.errors.SERVER_ERROR,{redirects:r,transaction:e});const n=e.to,i=yield this.perform("call",{transaction:e,blockTag:t});if(r>=0&&"latest"===t&&null!=n&&"0x556f1830"===i.substring(0,10)&&je(i)%32==4)try{const o=Be(i,4),s=Be(o,0,32);Je.from(s).eq(n)||Za.throwError("CCIP Read sender did not match",Ae.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});const a=[],u=Je.from(Be(o,32,64)).toNumber(),l=Je.from(Be(o,u,u+32)).toNumber(),c=Be(o,u+32);for(let t=0;tJa(this,void 0,void 0,(function*(){const e=yield this.perform("getBlock",n);if(null==e)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(t){let t=null;for(let n=0;nthis._wrapTransaction(e))),r}return this.formatter.block(e)}))),{oncePoll:this})}))}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return Ja(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return Fa((()=>Ja(this,void 0,void 0,(function*(){const r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;const n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return this._wrapTransaction(n)}))),{oncePoll:this})}))}getTransactionReceipt(e){return Ja(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return Fa((()=>Ja(this,void 0,void 0,(function*(){const r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;const n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return n}))),{oncePoll:this})}))}getLogs(e){return Ja(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield bt({filter:this._getFilter(e)}),r=yield this.perform("getLogs",t);return r.forEach((e=>{null==e.removed&&(e.removed=!1)})),qa.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)}))}getEtherPrice(){return Ja(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(e){return Ja(this,void 0,void 0,(function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&Za.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return t+=e,t<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)}))}getResolver(e){return Ja(this,void 0,void 0,(function*(){let t=e;for(;;){if(""===t||"."===t)return null;if("eth"!==e&&"eth"===t)return null;const r=yield this._getResolver(t,"getResolver");if(null!=r){const n=new yu(this,r,e);return t===e||(yield n.supportsWildcard())?n:null}t=t.split(".").slice(1).join(".")}}))}_getResolver(e,t){return Ja(this,void 0,void 0,(function*(){null==t&&(t="ENS");const r=yield this.getNetwork();r.ensAddress||Za.throwError("network does not support ENS",Ae.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{const t=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+ei(e).substring(2)});return this.formatter.callAddress(t)}catch(XMe){}return null}))}resolveName(e){return Ja(this,void 0,void 0,(function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(XMe){if(De(e))throw XMe}"string"!=typeof e&&Za.throwArgumentError("invalid ENS name","name",e);const t=yield this.getResolver(e);return t?yield t.getAddress():null}))}lookupAddress(e){return Ja(this,void 0,void 0,(function*(){e=yield e;const t=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(t,"lookupAddress");if(null==r)return null;const n=hu(yield this.call({to:r,data:"0x691f3431"+ei(t).substring(2)}),0);return(yield this.resolveName(n))!=e?null:n}))}getAvatar(e){return Ja(this,void 0,void 0,(function*(){let t=null;if(De(e)){const r=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r,"getAvatar");if(!n)return null;t=new yu(this,n,r);try{const e=yield t.getAvatar();if(e)return e.url}catch(XMe){if(XMe.code!==Ae.errors.CALL_EXCEPTION)throw XMe}try{const e=hu(yield this.call({to:n,data:"0x691f3431"+ei(r).substring(2)}),0);t=yield this.getResolver(e)}catch(XMe){if(XMe.code!==Ae.errors.CALL_EXCEPTION)throw XMe;return null}}else if(t=yield this.getResolver(e),!t)return null;const r=yield t.getAvatar();return null==r?null:r.url}))}perform(e,t){return Za.throwError(e+" not implemented",Ae.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_stopEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_addEventListener(e,t,r){const n=new ou(tu(e),t,r);return this._events.push(n),this._startEvent(n),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let r=!1,n=[],i=tu(e);return this._events=this._events.filter((e=>e.tag!==i||(setTimeout((()=>{e.listener.apply(this,t)}),0),r=!0,!e.once||(n.push(e),!1)))),n.forEach((e=>{this._stopEvent(e)})),r}listenerCount(e){if(!e)return this._events.length;let t=tu(e);return this._events.filter((e=>e.tag===t)).length}listeners(e){if(null==e)return this._events.map((e=>e.listener));let t=tu(e);return this._events.filter((e=>e.tag===t)).map((e=>e.listener))}off(e,t){if(null==t)return this.removeAllListeners(e);const r=[];let n=!1,i=tu(e);return this._events=this._events.filter((e=>e.tag!==i||e.listener!=t||(!!n||(n=!0,r.push(e),!1)))),r.forEach((e=>{this._stopEvent(e)})),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{const r=tu(e);this._events=this._events.filter((e=>e.tag!==r||(t.push(e),!1)))}return t.forEach((e=>{this._stopEvent(e)})),this}}var _u=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const Eu=new Ae(Ga),Au=["call","estimateGas"];function Mu(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){const r=De(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"==typeof e){for(const r in e){const n=Mu(e[r],t);if(n)return n}return null}if("string"==typeof e)try{return Mu(JSON.parse(e),t)}catch(XMe){}return null}function Su(e,t,r){const n=r.transaction||r.signedTransaction;if("call"===e){const e=Mu(t,!0);if(e)return e.data;Eu.throwError("missing revert data in call exception; Transaction reverted without a reason string",Ae.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}if("estimateGas"===e){let r=Mu(t.body,!1);null==r&&(r=Mu(t,!1)),r&&Eu.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Ae.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:n,error:t})}let i=t.message;throw t.code===Ae.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit/i)&&Eu.throwError("insufficient funds for intrinsic transaction cost",Ae.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/nonce (is )?too low/i)&&Eu.throwError("nonce has already been used",Ae.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&Eu.throwError("replacement fee too low",Ae.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/only replay-protected/i)&&Eu.throwError("legacy pre-eip-155 transactions not supported",Ae.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),Au.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&Eu.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Ae.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function xu(e){return new Promise((function(t){setTimeout(t,e)}))}function ku(e){if(e.error){const t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function Tu(e){return e?e.toLowerCase():e}const Cu={};class Iu extends Li{constructor(e,t,r){if(super(),e!==Cu)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");yt(this,"provider",t),null==r&&(r=0),"string"==typeof r?(yt(this,"_address",this.provider.formatter.address(r)),yt(this,"_index",null)):"number"==typeof r?(yt(this,"_index",r),yt(this,"_address",null)):Eu.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return Eu.throwError("cannot alter JSON-RPC Signer connection",Ae.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new Nu(Cu,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((e=>(e.length<=this._index&&Eu.throwError("unknown account #"+this._index,Ae.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index]))))}sendUncheckedTransaction(e){e=_t(e);const t=this.getAddress().then((e=>(e&&(e=e.toLowerCase()),e)));if(null==e.gasLimit){const r=_t(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((e=>_u(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.provider.resolveName(e);return null==t&&Eu.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))))),bt({tx:bt(e),sender:t}).then((({tx:t,sender:r})=>{null!=t.from?t.from.toLowerCase()!==r&&Eu.throwArgumentError("from address mismatch","transaction",e):t.from=r;const n=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[n]).then((e=>e),(e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&Eu.throwError("user rejected transaction",Ae.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:t}),Su("sendTransaction",e,n))))}))}signTransaction(e){return Eu.throwError("signing transactions is unsupported",Ae.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return _u(this,void 0,void 0,(function*(){const t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield Fa((()=>_u(this,void 0,void 0,(function*(){const e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}))),{oncePoll:this.provider})}catch(XMe){throw XMe.transactionHash=r,XMe}}))}signMessage(e){return _u(this,void 0,void 0,(function*(){const t="string"==typeof e?Xr(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[Oe(t),r.toLowerCase()])}catch(XMe){throw"string"==typeof XMe.message&&XMe.message.match(/user denied/i)&&Eu.throwError("user rejected signing",Ae.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),XMe}}))}_legacySignMessage(e){return _u(this,void 0,void 0,(function*(){const t="string"==typeof e?Xr(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),Oe(t)])}catch(XMe){throw"string"==typeof XMe.message&&XMe.message.match(/user denied/i)&&Eu.throwError("user rejected signing",Ae.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),XMe}}))}_signTypedData(e,t,r){return _u(this,void 0,void 0,(function*(){const n=yield vi.resolveNames(e,t,r,(e=>this.provider.resolveName(e))),i=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(vi.getPayload(n.domain,t,n.value))])}catch(XMe){throw"string"==typeof XMe.message&&XMe.message.match(/user denied/i)&&Eu.throwError("user rejected signing",Ae.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:n.domain,types:t,value:n.value}}),XMe}}))}unlock(e){return _u(this,void 0,void 0,(function*(){const t=this.provider,r=yield this.getAddress();return t.send("personal_unlockAccount",[r.toLowerCase(),e,null])}))}}class Nu extends Iu{sendTransaction(e){return this.sendUncheckedTransaction(e).then((e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)})))}}const Ru={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class Pu extends wu{constructor(e,t){let r=t;null==r&&(r=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then((t=>{e(t)}),(e=>{t(e)}))}),0)}))),super(r),e||(e=vt(this.constructor,"defaultUrl")()),yt(this,"connection","string"==typeof e?Object.freeze({url:e}):Object.freeze(_t(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((()=>{this._cache.detectNetwork=null}),0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return _u(this,void 0,void 0,(function*(){yield xu(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(XMe){try{e=yield this.send("net_version",[])}catch(XMe){}}if(null!=e){const t=vt(this.constructor,"getNetwork");try{return t(Je.from(e).toNumber())}catch(XMe){return Eu.throwError("could not detect network",Ae.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:XMe})}}return Eu.throwError("could not detect network",Ae.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(e){return new Iu(Cu,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then((e=>e.map((e=>this.formatter.address(e)))))}send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:St(r),provider:this});const n=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(n&&this._cache[e])return this._cache[e];const i=Ua(this.connection,JSON.stringify(r),ku).then((e=>(this.emit("debug",{action:"response",request:r,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",error:e,request:r,provider:this}),e}));return n&&(this._cache[e]=i,setTimeout((()=>{this._cache[e]=null}),0)),i}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[Tu(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[Tu(t.address),t.blockTag]];case"getCode":return["eth_getCode",[Tu(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[Tu(t.address),He(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[vt(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[vt(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=Tu(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return _u(this,void 0,void 0,(function*(){if("call"===e||"estimateGas"===e){const e=t.transaction;if(e&&null!=e.type&&Je.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){const r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=_t(t)).transaction=_t(e),delete t.transaction.type)}}const r=this.prepareRequest(e,t);null==r&&Eu.throwError(e+" not implemented",Ae.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(XMe){return Su(e,XMe,t)}}))}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;const e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(r){return function n(){e.send("eth_getFilterChanges",[r]).then((function(r){if(e._pendingFilter!=t)return null;let n=Promise.resolve();return r.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),n.then((function(){return xu(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){n()}),0),null;e.send("eth_uninstallFilter",[r])})).catch((e=>{}))}(),r})).catch((e=>{}))}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){const r=_t(Ru);if(t)for(const i in t)t[i]&&(r[i]=!0);wt(e,r);const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null==e[t])return;const r=Fe(Je.from(e[t]));"gasLimit"===t&&(t="gas"),n[t]=r})),["from","to","data"].forEach((function(t){null!=e[t]&&(n[t]=Oe(e[t]))})),e.accessList&&(n.accessList=Fo(e.accessList)),n}}let Du=null;try{if(Du=WebSocket,null==Du)throw new Error("inject please")}catch(XMe){const e=new Ae(Ga);Du=function(){e.throwError("WebSockets not supported in this environment",Ae.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var Lu=r(98399),Ou=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const ju=new Ae(Ga);let Bu=1;class Uu extends Pu{constructor(e,t){"any"===t&&ju.throwError("WebSocketProvider does not support 'any' network yet",Ae.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),super("string"==typeof e?e:"_websocket",t),this._pollingInterval=-1,this._wsReady=!1,yt(this,"_websocket","string"==typeof e?new Du(this.connection.url):e),yt(this,"_requests",{}),yt(this,"_subs",{}),yt(this,"_subIds",{}),yt(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach((e=>{this.websocket.send(this._requests[e].payload)}))},this.websocket.onmessage=e=>{const t=e.data,r=JSON.parse(t);if(null!=r.id){const e=String(r.id),n=this._requests[e];if(delete this._requests[e],void 0!==r.result)n.callback(null,r.result),this.emit("debug",{action:"response",request:JSON.parse(n.payload),response:r.result,provider:this});else{let e=null;r.error?(e=new Error(r.error.message||"unknown error"),yt(e,"code",r.error.code||null),yt(e,"response",t)):e=new Error("unknown error"),n.callback(e,void 0),this.emit("debug",{action:"response",error:e,request:JSON.parse(n.payload),provider:this})}}else if("eth_subscription"===r.method){const e=this._subs[r.params.subscription];e&&e.processFunc(r.params.result)}else Lu.warn("this should not happen")};const r=setInterval((()=>{this.emit("poll")}),1e3);r.unref&&r.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){ju.throwError("cannot reset events block on WebSocketProvider",Ae.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){ju.throwError("cannot set polling interval on WebSocketProvider",Ae.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return Ou(this,void 0,void 0,(function*(){return null}))}set polling(e){e&&ju.throwError("cannot set polling on WebSocketProvider",Ae.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,t){const r=Bu++;return new Promise(((n,i)=>{const o=JSON.stringify({method:e,params:t,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(o),provider:this}),this._requests[String(r)]={callback:function(e,t){return e?i(e):n(t)},payload:o},this._wsReady&&this.websocket.send(o)}))}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,t,r){return Ou(this,void 0,void 0,(function*(){let n=this._subIds[e];null==n&&(n=Promise.all(t).then((e=>this.send("eth_subscribe",e))),this._subIds[e]=n);const i=yield n;this._subs[i]={tag:e,processFunc:r}}))}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],(e=>{const t=Je.from(e.number).toNumber();this._emitted.block=t,this.emit("block",t)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(e=>{this.emit("pending",e)}));break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],(t=>{null==t.removed&&(t.removed=!1),this.emit(e.filter,this.formatter.filterLog(t))}));break;case"tx":{const t=e=>{const t=e.hash;this.getTransactionReceipt(t).then((e=>{e&&this.emit(t,e)}))};t(e),this._subscribe("tx",["newHeads"],(e=>{this._events.filter((e=>"tx"===e.type)).forEach(t)}));break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:Lu.log("unhandled:",e)}}_stopEvent(e){let t=e.tag;if("tx"===e.type){if(this._events.filter((e=>"tx"===e.type)).length)return;t="tx"}else if(this.listenerCount(e.event))return;const r=this._subIds[t];r&&(delete this._subIds[t],r.then((e=>{this._subs[e]&&(delete this._subs[e],this.send("eth_unsubscribe",[e]))})))}destroy(){return Ou(this,void 0,void 0,(function*(){this.websocket.readyState===Du.CONNECTING&&(yield new Promise((e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}}))),this.websocket.close(1e3)}))}}var Fu=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const zu=new Ae(Ga);class Hu extends Pu{detectNetwork(){const e=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return Fu(this,void 0,void 0,(function*(){let t=this.network;return null==t&&(t=yield e.detectNetwork.call(this),t||zu.throwError("no network detected",Ae.errors.UNKNOWN_ERROR,{}),null==this._network&&(yt(this,"_network",t),this.emit("network",t,null))),t}))}}class Gu extends Hu{constructor(e,t){zu.checkAbstract(new.target,Gu),e=vt(new.target,"getNetwork")(e),t=vt(new.target,"getApiKey")(t);super(vt(new.target,"getUrl")(e,t),e),"string"==typeof t?yt(this,"apiKey",t):null!=t&&Object.keys(t).forEach((e=>{yt(this,e,t[e])}))}_startPending(){zu.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return zu.throwError("API provider does not support signing",Ae.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,t){return zu.throwError("not implemented; sub-classes must override getUrl",Ae.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}const Yu=new Ae(Ga),Ku="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class qu extends Uu{constructor(e,t){const r=new Wu(e,t);super(r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi."),r.network),yt(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===Ku}}class Wu extends Gu{static getWebSocketProvider(e,t){return new qu(e,t)}static getApiKey(e){return null==e?Ku:(e&&"string"!=typeof e&&Yu.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,t){let r=null;switch(e.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"ropsten":r="eth-ropsten.alchemyapi.io/v2/";break;case"rinkeby":r="eth-rinkeby.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.alchemyapi.io/v2/";break;case"kovan":r="eth-kovan.alchemyapi.io/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":r="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-rinkeby":r="arb-rinkeby.g.alchemy.com/v2/";break;case"arbitrum-goerli":r="arb-goerli.g.alchemy.com/v2/";break;case"optimism":r="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-kovan":r="opt-kovan.g.alchemy.com/v2/";break;case"optimism-goerli":r="opt-goerli.g.alchemy.com/v2/";break;default:Yu.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+t,throttleCallback:(e,r)=>(t===Ku&&Qa(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===Ku}}const Vu=new Ae(Ga),$u="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function Qu(e){switch(e){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return Vu.throwArgumentError("unsupported network","name",e)}class Ju extends Gu{isCommunityResource(){return this.apiKey===$u}static getApiKey(e){return null==e?$u:e}static getUrl(e,t){null==t&&(t=$u);const r={allowGzip:!0,url:"https://"+Qu(e.name)+t,throttleCallback:(e,r)=>(t.apiKey===$u&&Qa(),Promise.resolve(!0))};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}}var Zu=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const Xu=new Ae(Ga);class el extends Gu{static getApiKey(e){return null!=e&&Xu.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,t){let r=null;if("homestead"===e.name)r="https://cloudflare-eth.com/";else Xu.throwArgumentError("unsupported network","network",arguments[0]);return r}perform(e,t){const r=Object.create(null,{perform:{get:()=>super.perform}});return Zu(this,void 0,void 0,(function*(){if("getBlockNumber"===e){return(yield r.perform.call(this,"getBlock",{blockTag:"latest"})).number}return r.perform.call(this,e,t)}))}}var tl=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const rl=new Ae(Ga);function nl(e){const t={};for(let r in e){if(null==e[r])continue;let n=e[r];"type"===r&&0===n||(n={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r]?Fe(Oe(n)):"accessList"===r?"["+Fo(n).map((e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`)).join(",")+"]":Oe(n),t[r]=n)}return t}function il(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"string"!=typeof e.message||!e.message.match(/^OK/)){const t=new Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function ol(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){const t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){const t=new Error("invalid response");throw t.result=JSON.stringify(e),t}if(e.error){const t=new Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function sl(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function al(e,t,r){if("call"===e&&t.code===Ae.errors.SERVER_ERROR){const e=t.error;if(e&&(e.message.match(/reverted/i)||e.message.match(/VM execution error/i))){let r=e.data;if(r&&(r="0x"+r.replace(/^.*0x/i,"")),De(r))return r;rl.throwError("missing revert data in call exception",Ae.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let n=t.message;throw t.code===Ae.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?n=t.error.message:"string"==typeof t.body?n=t.body:"string"==typeof t.responseText&&(n=t.responseText)),n=(n||"").toLowerCase(),n.match(/insufficient funds/)&&rl.throwError("insufficient funds for intrinsic transaction cost",Ae.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),n.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&rl.throwError("nonce has already been used",Ae.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),n.match(/another transaction with same nonce/)&&rl.throwError("replacement fee too low",Ae.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),n.match(/execution failed due to an exception|execution reverted/)&&rl.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Ae.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}class ul extends wu{constructor(e,t){super(e),yt(this,"baseUrl",this.getBaseUrl()),yt(this,"apiKey",t||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"ropsten":return"https://api-ropsten.etherscan.io";case"rinkeby":return"https://api-rinkeby.etherscan.io";case"kovan":return"https://api-kovan.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-kovan":return"https://api-kovan-optimistic.etherscan.io"}return rl.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,t){const r=Object.keys(t).reduce(((e,r)=>{const n=t[r];return null!=n&&(e+=`&${r}=${n}`),e}),""),n=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${e}${r}${n}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}fetch(e,t,r){return tl(this,void 0,void 0,(function*(){const n=r?this.getPostUrl():this.getUrl(e,t),i=r?this.getPostData(e,t):null,o="proxy"===e?ol:il;this.emit("debug",{action:"request",request:n,provider:this});const s={url:n,throttleSlotInterval:1e3,throttleCallback:(e,t)=>(this.isCommunityResource()&&Qa(),Promise.resolve(!0))};let a=null;i&&(s.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},a=Object.keys(i).map((e=>`${e}=${i[e]}`)).join("&"));const u=yield Ua(s,a,o||ol);return this.emit("debug",{action:"response",request:n,response:St(u),provider:this}),u}))}detectNetwork(){return tl(this,void 0,void 0,(function*(){return this.network}))}perform(e,t){const r=Object.create(null,{perform:{get:()=>super.perform}});return tl(this,void 0,void 0,(function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((e=>al("sendTransaction",e,t.signedTransaction)));case"getBlock":if(t.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash});case"call":{if("latest"!==t.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const e=nl(t.transaction);e.module="proxy",e.action="eth_call";try{return yield this.fetch("proxy",e,!0)}catch(XMe){return al("call",XMe,t.transaction)}}case"estimateGas":{const e=nl(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return yield this.fetch("proxy",e,!0)}catch(XMe){return al("estimateGas",XMe,t.transaction)}}case"getLogs":{const e={action:"getLogs"};if(t.filter.fromBlock&&(e.fromBlock=sl(t.filter.fromBlock)),t.filter.toBlock&&(e.toBlock=sl(t.filter.toBlock)),t.filter.address&&(e.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&rl.throwError("unsupported topic count",Ae.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length)){const r=t.filter.topics[0];"string"==typeof r&&66===r.length||rl.throwError("unsupported topic format",Ae.errors.UNSUPPORTED_OPERATION,{topic0:r}),e.topic0=r}const r=yield this.fetch("logs",e);let n={};for(let t=0;t{["contractAddress","to"].forEach((function(t){""==e[t]&&delete e[t]})),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);const t=this.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t}))}))}isCommunityResource(){return null==this.apiKey}}var ll=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(t){o(t)}}function a(e){try{u(n.throw(e))}catch(t){o(t)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const cl=new Ae(Ga);function hl(){return(new Date).getTime()}function dl(e){let t=null;for(let r=0;rt?null:(n+i)/2}function pl(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if(Je.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((e=>pl(e))));if("object"==typeof e){const t=Object.keys(e);return t.sort(),"{"+t.map((t=>{let r=e[t];return r="function"==typeof r?"[function]":pl(r),JSON.stringify(t)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}let ml=1;function gl(e){let t=null,r=null,n=new Promise((n=>{t=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return n},wait:e=>(n=n.then(e),n)}}const yl=[Ae.errors.CALL_EXCEPTION,Ae.errors.INSUFFICIENT_FUNDS,Ae.errors.NONCE_EXPIRED,Ae.errors.REPLACEMENT_UNDERPRICED,Ae.errors.UNPREDICTABLE_GAS_LIMIT],vl=["address","args","errorArgs","errorSignature","method","transaction"];function bl(e,t){const r={weight:e.weight};return Object.defineProperty(r,"provider",{get:()=>e.provider}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function wl(e,t,r){let n=pl;switch(t){case"getBlockNumber":return function(t){const r=t.map((e=>e.result));let n=fl(t.map((e=>e.result)),2);if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=e._highestBlockNumber&&(e._highestBlockNumber=n),e._highestBlockNumber};case"getGasPrice":return function(e){const t=e.map((e=>e.result));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return fl(e.map((e=>e.result)))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(e){return null==e?null:((e=_t(e)).confirmations=-1,pl(e))};break;case"getBlock":n=r.includeTransactions?function(e){return null==e?null:((e=_t(e)).transactions=e.transactions.map((e=>((e=_t(e)).confirmations=-1,e))),pl(e))}:function(e){return null==e?null:pl(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(r){const n={};r.forEach((t=>{const r=e(t.result);n[r]||(n[r]={count:0,result:t.result}),n[r].count++}));const i=Object.keys(n);for(let e=0;e=t)return r.result}}}(n,e.quorum)}function _l(e,t){return ll(this,void 0,void 0,(function*(){const r=e.provider;return null!=r.blockNumber&&r.blockNumber>=t||-1===t?r:Fa((()=>new Promise(((n,i)=>{setTimeout((function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(void 0)}),0)}))),{oncePoll:r})}))}function El(e,t,r,n){return ll(this,void 0,void 0,(function*(){let i=e.provider;switch(r){case"getBlockNumber":case"getGasPrice":return i[r]();case"getEtherPrice":if(i.getEtherPrice)return i.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return n.blockTag&&De(n.blockTag)&&(i=yield _l(e,t)),i[r](n.address,n.blockTag||"latest");case"getStorageAt":return n.blockTag&&De(n.blockTag)&&(i=yield _l(e,t)),i.getStorageAt(n.address,n.position,n.blockTag||"latest");case"getBlock":return n.blockTag&&De(n.blockTag)&&(i=yield _l(e,t)),i[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash);case"call":case"estimateGas":return n.blockTag&&De(n.blockTag)&&(i=yield _l(e,t)),"call"===r&&n.blockTag?i[r](n.transaction,n.blockTag):i[r](n.transaction);case"getTransaction":case"getTransactionReceipt":return i[r](n.transactionHash);case"getLogs":{let r=n.filter;return(r.fromBlock&&De(r.fromBlock)||r.toBlock&&De(r.toBlock))&&(i=yield _l(e,t)),i.getLogs(r)}}return cl.throwError("unknown method error",Ae.errors.UNKNOWN_ERROR,{method:r,params:n})}))}class Al extends wu{constructor(e,t){0===e.length&&cl.throwArgumentError("missing providers","providers",e);const r=e.map(((e,t)=>{if(Ii.isProvider(e)){const t=Va(e)?2e3:750,r=1;return Object.freeze({provider:e,weight:1,stallTimeout:t,priority:r})}const r=_t(e);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=Va(e)?2e3:750),null==r.weight&&(r.weight=1);const n=r.weight;return(n%1||n>512||n<1)&&cl.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${t}].weight`,n),Object.freeze(r)})),n=r.reduce(((e,t)=>e+t.weight),0);null==t?t=n/2:t>n&&cl.throwArgumentError("quorum will always fail; larger than total weight","quorum",t);let i=dl(r.map((e=>e.provider.network)));null==i&&(i=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then(e,t)}),0)}))),super(i),yt(this,"providerConfigs",Object.freeze(r)),yt(this,"quorum",t),this._highestBlockNumber=-1}detectNetwork(){return ll(this,void 0,void 0,(function*(){return dl(yield Promise.all(this.providerConfigs.map((e=>e.provider.getNetwork()))))}))}perform(e,t){return ll(this,void 0,void 0,(function*(){if("sendTransaction"===e){const e=yield Promise.all(this.providerConfigs.map((e=>e.provider.sendTransaction(t.signedTransaction).then((e=>e.hash),(e=>e)))));for(let t=0;te.priority-t.priority));const i=this._highestBlockNumber;let o=0,s=!0;for(;;){const a=hl();let u=n.filter((e=>e.runner&&a-e.starte+t.weight),0);for(;u{r.staller=null})),r.runner=El(r,i,e,t).then((n=>{r.done=!0,r.result=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:s,backend:bl(r,hl()),request:{method:e,params:St(t)},provider:this})}),(n=>{r.done=!0,r.error=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:s,backend:bl(r,hl()),request:{method:e,params:St(t)},provider:this})})),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:s,backend:bl(r,null),request:{method:e,params:St(t)},provider:this}),u+=r.weight}const l=[];n.forEach((e=>{!e.done&&e.runner&&(l.push(e.runner),e.staller&&l.push(e.staller.getPromise()))})),l.length&&(yield Promise.race(l));const c=n.filter((e=>e.done&&null==e.error));if(c.length>=this.quorum){const e=r(c);if(void 0!==e)return n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),e;s||(yield gl(100).getPromise()),s=!1}const h=n.reduce(((e,t)=>{if(!t.done||null==t.error)return e;const r=t.error.code;return yl.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e}),{});if(Object.keys(h).forEach((e=>{const t=h[e];if(t.weight{e.staller&&e.staller.cancel(),e.cancelled=!0}));const r=t.error,i={};vl.forEach((e=>{null!=r[e]&&(i[e]=r[e])})),cl.throwError(r.reason||r.message,e,i)})),0===n.filter((e=>!e.done)).length)break}return n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),cl.throwError("failed to meet quorum",Ae.errors.SERVER_ERROR,{method:e,params:t,results:n.map((e=>bl(e))),provider:this})}))}}const Ml=null,Sl=new Ae(Ga),xl="84842078b09946638c03157f83405213";class kl extends Uu{constructor(e,t){const r=new Tl(e,t),n=r.connection;n.password&&Sl.throwError("INFURA WebSocket project secrets unsupported",Ae.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});super(n.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),e),yt(this,"apiKey",r.projectId),yt(this,"projectId",r.projectId),yt(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===xl}}class Tl extends Gu{static getWebSocketProvider(e,t){return new kl(e,t)}static getApiKey(e){const t={apiKey:xl,projectId:xl,projectSecret:null};return null==e||("string"==typeof e?t.projectId=e:null!=e.projectSecret?(Sl.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),Sl.assertArgument("string"==typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"ropsten":r="ropsten.infura.io";break;case"rinkeby":r="rinkeby.infura.io";break;case"kovan":r="kovan.infura.io";break;case"goerli":r="goerli.infura.io";break;case"sepolia":r="sepolia.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;case"optimism":r="optimism-mainnet.infura.io";break;case"optimism-kovan":r="optimism-kovan.infura.io";break;case"arbitrum":r="arbitrum-mainnet.infura.io";break;case"arbitrum-rinkeby":r="arbitrum-rinkeby.infura.io";break;default:Sl.throwError("unsupported network",Ae.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const n={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:(e,r)=>(t.projectId===xl&&Qa(),Promise.resolve(!0))};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}isCommunityResource(){return this.projectId===xl}}class Cl extends Pu{send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const n={request:r,resolve:null,reject:null},i=new Promise(((e,t)=>{n.resolve=e,n.reject=t}));return this._pendingBatch.push(n),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const e=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const t=e.map((e=>e.request));return this.emit("debug",{action:"requestBatch",request:St(t),provider:this}),Ua(this.connection,JSON.stringify(t)).then((r=>{this.emit("debug",{action:"response",request:t,response:r,provider:this}),e.forEach(((e,t)=>{const n=r[t];if(n.error){const t=new Error(n.error.message);t.code=n.error.code,t.data=n.error.data,e.reject(t)}else e.resolve(n.result)}))}),(r=>{this.emit("debug",{action:"response",error:r,request:t,provider:this}),e.forEach((e=>{e.reject(r)}))}))}),10)),i}}const Il=new Ae(Ga);class Nl extends Gu{static getApiKey(e){return e&&"string"!=typeof e&&Il.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}static getUrl(e,t){Il.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let r=null;switch(e.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:Il.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t}}const Rl=new Ae(Ga),Pl="62e1ad51b37b8e00394bda3b";class Dl extends Gu{static getApiKey(e){const t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId=Pl:"string"==typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:Rl.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"goerli":r="eth-goerli.gateway.pokt.network";break;case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"kovan":r="poa-kovan.gateway.pokt.network";break;case"matic":r="poly-mainnet.gateway.pokt.network";break;case"maticmum":r="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;default:Rl.throwError("unsupported network",Ae.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const n={headers:{},url:`https://${r}/v1/lb/${t.applicationId}`};return null!=t.applicationSecretKey&&(n.user="",n.password=t.applicationSecretKey),n}isCommunityResource(){return this.applicationId===Pl}}const Ll=new Ae(Ga);let Ol=1;function jl(e,t){const r="Web3LegacyFetcher";return function(e,n){const i={method:e,params:n,id:Ol++,jsonrpc:"2.0"};return new Promise(((e,n)=>{this.emit("debug",{action:"request",fetcher:r,request:St(i),provider:this}),t(i,((t,o)=>{if(t)return this.emit("debug",{action:"response",fetcher:r,error:t,request:i,provider:this}),n(t);if(this.emit("debug",{action:"response",fetcher:r,request:i,response:o,provider:this}),o.error){const e=new Error(o.error.message);return e.code=o.error.code,e.data=o.error.data,n(e)}e(o.result)}))}))}}class Bl extends Pu{constructor(e,t){null==e&&Ll.throwArgumentError("missing provider","provider",e);let r=null,n=null,i=null;"function"==typeof e?(r="unknown:",n=e):(r=e.host||e.path||"",!r&&e.isMetaMask&&(r="metamask"),i=e,e.request?(""===r&&(r="eip-1193:"),n=function(e){return function(t,r){null==r&&(r=[]);const n={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:St(n),provider:this}),e.request(n).then((e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,error:e,provider:this}),e}))}}(e)):e.sendAsync?n=jl(0,e.sendAsync.bind(e)):e.send?n=jl(0,e.send.bind(e)):Ll.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,t),yt(this,"jsonRpcFetchFunc",n),yt(this,"provider",i)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}const Ul=new Ae(Ga);function Fl(e,t){if(null==e&&(e="homestead"),"string"==typeof e){const t=e.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new Pu(e);case"ws":case"wss":return new Uu(e);default:Ul.throwArgumentError("unsupported URL scheme","network",e)}}const r=Ia(e);return r&&r._defaultProvider||Ul.throwError("unsupported getDefaultProvider network",Ae.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),r._defaultProvider({FallbackProvider:Al,AlchemyProvider:Wu,AnkrProvider:Ju,CloudflareProvider:el,EtherscanProvider:ul,InfuraProvider:Tl,JsonRpcProvider:Pu,NodesmithProvider:Nl,PocketProvider:Dl,Web3Provider:Bl,IpcProvider:Ml},t)}const zl=new RegExp("^bytes([0-9]+)$"),Hl=new RegExp("^(u?int)([0-9]*)$"),Gl=new RegExp("^(.*)\\[([0-9]*)\\]$"),Yl=new Ae("solidity/5.7.0");function Kl(e,t,r){switch(e){case"address":return r?Pe(t,32):Ie(t);case"string":return Xr(t);case"bytes":return Ie(t);case"bool":return t=t?"0x01":"0x00",r?Pe(t,32):Ie(t)}let n=e.match(Hl);if(n){let i=parseInt(n[2]||"256");return(n[2]&&String(i)!==n[2]||i%8!=0||0===i||i>256)&&Yl.throwArgumentError("invalid number type","type",e),r&&(i=256),Pe(t=Je.from(t).toTwos(i),i/8)}if(n=e.match(zl),n){const i=parseInt(n[1]);return(String(i)!==n[1]||0===i||i>32)&&Yl.throwArgumentError("invalid bytes type","type",e),Ie(t).byteLength!==i&&Yl.throwArgumentError(`invalid value for ${e}`,"value",t),r?Ie((t+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):t}if(n=e.match(Gl),n&&Array.isArray(t)){const r=n[1];parseInt(n[2]||String(t.length))!=t.length&&Yl.throwArgumentError(`invalid array length for ${e}`,"value",t);const i=[];return t.forEach((function(e){i.push(Kl(r,e,!0))})),Ne(i)}return Yl.throwArgumentError("invalid type","type",e)}function ql(e,t){e.length!=t.length&&Yl.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);const r=[];return e.forEach((function(e,n){r.push(Kl(e,t[n]))})),Oe(Ne(r))}function Wl(e,t){return or(ql(e,t))}function Vl(e,t){return ms(ql(e,t))}const $l=new Ae("units/5.7.0"),Ql=["wei","kwei","mwei","gwei","szabo","finney","ether"];function Jl(e){const t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&$l.throwArgumentError("invalid value","value",e);let r=t[0],n="";for("-"===r.substring(0,1)&&(n="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");let i="";for(2===t.length&&(i="."+(t[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1);const o=[];for(;r.length;){if(r.length<=3){o.unshift(r);break}{const e=r.length-3;o.unshift(r.substring(e)),r=r.substring(0,e)}}return n+o.join(",")+i}function Zl(e,t){if("string"==typeof t){const e=Ql.indexOf(t);-1!==e&&(t=3*e)}return lt(e,null!=t?t:18)}function Xl(e,t){if("string"!=typeof e&&$l.throwArgumentError("value must be a string","value",e),"string"==typeof t){const e=Ql.indexOf(t);-1!==e&&(t=3*e)}return ct(e,null!=t?t:18)}function ec(e){return Zl(e,18)}function tc(e){return Xl(e,18)}const rc="ethers/5.7.1",nc=new Ae(rc);try{const e=window;null==e._ethers&&(e._ethers=u)}catch(XMe){}var ic,oc="Invariant failed";function sc(e,t){if(!e)throw new Error(oc)}!function(e){e.Update="Web3ReactUpdate",e.Error="Web3ReactError",e.Deactivate="Web3ReactDeactivate"}(ic||(ic={}));r(98399);function ac(){return ac=Object.assign||function(e){for(var t=1;t>1]>>4>=8&&(r[s]=r[s].toUpperCase()),(15&o[s>>1])>=8&&(r[s+1]=r[s+1].toUpperCase());var a="0x"+r.join("");return t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==a&&sc(!1),a}var yc,vc=function(e,t){try{var r=function(r){return Promise.resolve(Promise.all([void 0===t.chainId?e.getChainId():t.chainId,void 0===t.account?e.getAccount():t.account])).then((function(t){var n=t[0],i=t[1],o=mc(n);if(e.supportedChainIds&&!e.supportedChainIds.includes(o))throw new wc(o,e.supportedChainIds);var s=null===i?i:gc(i);return{provider:r,chainId:o,account:s}}))},n=void 0===t.provider;return Promise.resolve(n?Promise.resolve(e.getProvider()).then(r):r(t.provider))}catch(i){return Promise.reject(i)}},bc=function(e){function t(){var t;return(t=e.call(this)||this).name=t.constructor.name,t}return uc(t,e),t}(fc(Error)),wc=function(e){function t(t,r){var n;return(n=e.call(this)||this).name=n.constructor.name,n.message="Unsupported chain id: "+t+". Supported chain ids are: "+r+".",n}return uc(t,e),t}(fc(Error));function _c(e,t){var r=t.type,n=t.payload;switch(r){case yc.ACTIVATE_CONNECTOR:return{connector:n.connector,provider:n.provider,chainId:n.chainId,account:n.account,onError:n.onError};case yc.UPDATE:var i=n.provider,o=n.chainId,s=n.account;return ac({},e,void 0===i?{}:{provider:i},void 0===o?{}:{chainId:o},void 0===s?{}:{account:s});case yc.UPDATE_FROM_ERROR:var a=n.provider,u=n.chainId,l=n.account;return ac({},e,void 0===a?{}:{provider:a},void 0===u?{}:{chainId:u},void 0===l?{}:{account:l},{error:void 0});case yc.ERROR:var c=n.error;return{connector:e.connector,error:c,onError:e.onError};case yc.ERROR_FROM_ACTIVATION:return{connector:n.connector,error:n.error};case yc.DEACTIVATE_CONNECTOR:return{}}}!function(e){e[e.ACTIVATE_CONNECTOR=0]="ACTIVATE_CONNECTOR",e[e.UPDATE=1]="UPDATE",e[e.UPDATE_FROM_ERROR=2]="UPDATE_FROM_ERROR",e[e.ERROR=3]="ERROR",e[e.ERROR_FROM_ACTIVATION=4]="ERROR_FROM_ACTIVATION",e[e.DEACTIVATE_CONNECTOR=5]="DEACTIVATE_CONNECTOR"}(yc||(yc={}));var Ec="primary",Ac={};function Mc(e){Ac[e]&&sc(!1),Ac[e]=(0,w.createContext)({activate:function(){try{return sc(!1),Promise.resolve()}catch(e){return Promise.reject(e)}},setError:function(){sc(!1)},deactivate:function(){sc(!1)},active:!1}),Ac[e].displayName="Web3ReactContext - "+e;var t=Ac[e].Provider;return function(e){var r=e.getLibrary,n=e.children,i=function(){var e=(0,w.useReducer)(_c,{}),t=e[0],r=e[1],n=t.connector,i=t.provider,o=t.chainId,s=t.account,a=t.onError,u=t.error,l=(0,w.useRef)(-1);l.current+=1;var c=(0,w.useCallback)((function(e,t,n){void 0===n&&(n=!1);try{var i=l.current,o=!1;return Promise.resolve(pc((function(){return Promise.resolve(e.activate().then((function(e){return o=!0,e}))).then((function(n){return Promise.resolve(vc(e,n)).then((function(n){if(l.current>i)throw new bc;r({type:yc.ACTIVATE_CONNECTOR,payload:ac({connector:e},n,{onError:t})})}))}))}),(function(i){if(i instanceof bc)o&&e.deactivate();else{if(n)throw o&&e.deactivate(),i;t?(o&&e.deactivate(),t(i)):r({type:yc.ERROR_FROM_ACTIVATION,payload:{connector:e,error:i}})}})))}catch(s){return Promise.reject(s)}}),[]),h=(0,w.useCallback)((function(e){r({type:yc.ERROR,payload:{error:e}})}),[]),d=(0,w.useCallback)((function(){r({type:yc.DEACTIVATE_CONNECTOR})}),[]),f=(0,w.useCallback)((function(e){try{if(!n)throw Error("This should never happen, it's just so Typescript stops complaining");var t=l.current;return Promise.resolve(function(){if(u)return pc((function(){return Promise.resolve(vc(n,e)).then((function(e){if(l.current>t)throw new bc;r({type:yc.UPDATE_FROM_ERROR,payload:e})}))}),(function(e){e instanceof bc||(a?a(e):r({type:yc.ERROR,payload:{error:e}}))}));var i=void 0===e.chainId?void 0:mc(e.chainId);if(void 0!==i&&n.supportedChainIds&&!n.supportedChainIds.includes(i)){var o=new wc(i,n.supportedChainIds);a?a(o):r({type:yc.ERROR,payload:{error:o}})}else{var s="string"==typeof e.account?gc(e.account):e.account;r({type:yc.UPDATE,payload:{provider:e.provider,chainId:i,account:s}})}}())}catch(i){return Promise.reject(i)}}),[n,u,a]),p=(0,w.useCallback)((function(e){a?a(e):r({type:yc.ERROR,payload:{error:e}})}),[a]),m=(0,w.useCallback)((function(){r({type:yc.DEACTIVATE_CONNECTOR})}),[]);return(0,w.useEffect)((function(){return function(){n&&n.deactivate()}}),[n]),(0,w.useEffect)((function(){return n&&n.on(ic.Update,f).on(ic.Error,p).on(ic.Deactivate,m),function(){n&&n.off(ic.Update,f).off(ic.Error,p).off(ic.Deactivate,m)}}),[n,f,p,m]),{connector:n,provider:i,chainId:o,account:s,activate:c,setError:h,deactivate:d,error:u}}(),o=i.connector,s=i.provider,a=i.chainId,u=i.account,l=i.activate,c=i.setError,h=i.deactivate,d=i.error,f=void 0!==o&&void 0!==a&&void 0!==u&&!d,p=(0,w.useMemo)((function(){return f&&void 0!==a&&Number.isInteger(a)&&o?r(s,o):void 0}),[f,r,s,o,a]),m={connector:o,library:p,chainId:a,account:u,activate:l,setError:c,deactivate:h,active:f,error:d};return w.createElement(t,{value:m},n)}}var Sc=Mc(Ec);function xc(e){return(0,w.useContext)(function(e){return void 0===e&&(e=Ec),Object.keys(Ac).includes(e)||sc(!1),Ac[e]}(e))}var kc=function(){return kc=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0?Kc(rh,--eh):0,Zc--,10===th&&(Zc=1,Jc--),th}function ah(){return th=eh2||hh(th)>3?"":" "}function gh(e,t){for(;--t&&ah()&&!(th<48||th>102||th>57&&th<65||th>70&&th<97););return ch(e,lh()+(t<6&&32==uh()&&32==ah()))}function yh(e){for(;ah();)switch(th){case e:return eh;case 34:case 39:34!==e&&39!==e&&yh(th);break;case 40:41===e&&yh(e);break;case 92:ah()}return eh}function vh(e,t){for(;ah()&&e+th!==57&&(e+th!==84||47!==uh()););return"/*"+ch(t,eh-1)+"*"+Uc(47===e?e:ah())}function bh(e){for(;!hh(uh());)ah();return ch(e,eh)}function wh(e){return fh(_h("",null,null,null,[""],e=dh(e),0,[0],e))}function _h(e,t,r,n,i,o,s,a,u){for(var l=0,c=0,h=s,d=0,f=0,p=0,m=1,g=1,y=1,v=0,b="",w=i,_=o,E=n,A=b;g;)switch(p=v,v=ah()){case 40:if(108!=p&&58==Kc(A,h-1)){-1!=Yc(A+=Gc(ph(v),"&","&\f"),"&\f")&&(y=-1);break}case 34:case 39:case 91:A+=ph(v);break;case 9:case 10:case 13:case 32:A+=mh(p);break;case 92:A+=gh(lh()-1,7);continue;case 47:switch(uh()){case 42:case 47:$c(Ah(vh(ah(),lh()),t,r,u),u);break;default:A+="/"}break;case 123*m:a[l++]=Wc(A)*y;case 125*m:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==y&&(A=Gc(A,/\f/g,"")),f>0&&Wc(A)-h&&$c(f>32?Mh(A+";",n,r,h-1,u):Mh(Gc(A," ","")+";",n,r,h-2,u),u);break;case 59:A+=";";default:if($c(E=Eh(A,t,r,l,c,i,a,b,w=[],_=[],h,o),o),123===v)if(0===c)_h(A,t,E,E,w,o,h,a,_);else switch(99===d&&110===Kc(A,3)?100:d){case 100:case 108:case 109:case 115:_h(e,E,E,n&&$c(Eh(e,E,E,0,0,i,a,b,i,w=[],h,_),_),i,_,h,a,n?w:_);break;default:_h(A,E,E,E,[""],_,0,a,_)}}l=c=f=0,m=y=1,b=A="",h=s;break;case 58:h=1+Wc(A),f=p;default:if(m<1)if(123==v)--m;else if(125==v&&0==m++&&125==sh())continue;switch(A+=Uc(v),v*m){case 38:y=c>0?1:(A+="\f",-1);break;case 44:a[l++]=(Wc(A)-1)*y,y=1;break;case 64:45===uh()&&(A+=ph(ah())),d=uh(),c=h=Wc(b=A+=bh(lh())),v++;break;case 45:45===p&&2==Wc(A)&&(m=0)}}return o}function Eh(e,t,r,n,i,o,s,a,u,l,c,h){for(var d=i-1,f=0===i?o:[""],p=Vc(f),m=0,g=0,y=0;m0?f[v]+" "+b:Gc(b,/&\f/g,f[v])))&&(u[y++]=w);return nh(e,t,r,0===i?Lc:a,u,l,c,h)}function Ah(e,t,r,n){return nh(e,t,r,Dc,Uc(th),qc(e,2,-2),0,n)}function Mh(e,t,r,n,i){return nh(e,t,r,Oc,qc(e,0,n),qc(e,n+1,-1),n,i)}function Sh(e,t,r){switch(function(e,t){return 45^Kc(e,0)?(((t<<2^Kc(e,0))<<2^Kc(e,1))<<2^Kc(e,2))<<2^Kc(e,3):0}(e,t)){case 5103:return Pc+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Pc+e+e;case 4789:return Rc+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Pc+e+Rc+e+Nc+e+e;case 5936:switch(Kc(e,t+11)){case 114:return Pc+e+Nc+Gc(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Pc+e+Nc+Gc(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Pc+e+Nc+Gc(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Pc+e+Nc+e+e;case 6165:return Pc+e+Nc+"flex-"+e+e;case 5187:return Pc+e+Gc(e,/(\w+).+(:[^]+)/,"-webkit-box-$1$2-ms-flex-$1$2")+e;case 5443:return Pc+e+Nc+"flex-item-"+Gc(e,/flex-|-self/g,"")+(Hc(e,/flex-|baseline/)?"":Nc+"grid-row-"+Gc(e,/flex-|-self/g,""))+e;case 4675:return Pc+e+Nc+"flex-line-pack"+Gc(e,/align-content|flex-|-self/g,"")+e;case 5548:return Pc+e+Nc+Gc(e,"shrink","negative")+e;case 5292:return Pc+e+Nc+Gc(e,"basis","preferred-size")+e;case 6060:return Pc+"box-"+Gc(e,"-grow","")+Pc+e+Nc+Gc(e,"grow","positive")+e;case 4554:return Pc+Gc(e,/([^-])(transform)/g,"$1-webkit-$2")+e;case 6187:return Gc(Gc(Gc(e,/(zoom-|grab)/,Pc+"$1"),/(image-set)/,Pc+"$1"),e,"")+e;case 5495:case 3959:return Gc(e,/(image-set\([^]*)/,Pc+"$1$`$1");case 4968:return Gc(Gc(e,/(.+:)(flex-)?(.*)/,"-webkit-box-pack:$3-ms-flex-pack:$3"),/s.+-b[^;]+/,"justify")+Pc+e+e;case 4200:if(!Hc(e,/flex-|baseline/))return Nc+"grid-column-align"+qc(e,t)+e;break;case 2592:case 3360:return Nc+Gc(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,Hc(e.props,/grid-\w+-end/)}))?~Yc(e+(r=r[t].value),"span")?e:Nc+Gc(e,"-start","")+e+Nc+"grid-row-span:"+(~Yc(r,"span")?Hc(r,/\d+/):+Hc(r,/\d+/)-+Hc(e,/\d+/))+";":Nc+Gc(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return Hc(e.props,/grid-\w+-start/)}))?e:Nc+Gc(Gc(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Gc(e,/(.+)-inline(.+)/,Pc+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Wc(e)-1-t>6)switch(Kc(e,t+1)){case 109:if(45!==Kc(e,t+4))break;case 102:return Gc(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1"+Rc+(108==Kc(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Yc(e,"stretch")?Sh(Gc(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Gc(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,n,i,o,s,a){return Nc+r+":"+n+a+(i?Nc+r+"-span:"+(o?s:+s-+n)+a:"")+e}));case 4949:if(121===Kc(e,t+6))return Gc(e,":",":"+Pc)+e;break;case 6444:switch(Kc(e,45===Kc(e,14)?18:11)){case 120:return Gc(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Pc+(45===Kc(e,14)?"inline-":"")+"box$3$1"+Pc+"$2$3$1"+Nc+"$2box$3")+e;case 100:return Gc(e,":",":"+Nc)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Gc(e,"scroll-","scroll-snap-")+e}return e}function xh(e,t){for(var r="",n=0;n-1&&!e.return)switch(e.type){case Oc:return void(e.return=Sh(e.value,e.length,r));case jc:return xh([ih(e,{value:Gc(e.value,"@","@"+Pc)})],n);case Lc:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(Hc(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":oh(ih(e,{props:[Gc(t,/:(read-\w+)/,":-moz-$1")]})),oh(ih(e,{props:[t]})),Fc(e,{props:Qc(r,n)});break;case"::placeholder":oh(ih(e,{props:[Gc(t,/:(plac\w+)/,":-webkit-input-$1")]})),oh(ih(e,{props:[Gc(t,/:(plac\w+)/,":-moz-$1")]})),oh(ih(e,{props:[Gc(t,/:(plac\w+)/,Nc+"input-$1")]})),oh(ih(e,{props:[t]})),Fc(e,{props:Qc(r,n)})}return""}))}}var Ch={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Ih=r(13158),Nh=void 0!==Ih&&void 0!=={NODE_ENV:"production",NX_CLI_SET:"true",NX_WORKSPACE_ROOT:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk",NX_TERMINAL_OUTPUT_PATH:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk/node_modules/.cache/nx/terminalOutputs/0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"examples-sdk-frontend-react",NX_TASK_HASH:"0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13"}&&({NODE_ENV:"production",NX_CLI_SET:"true",NX_WORKSPACE_ROOT:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk",NX_TERMINAL_OUTPUT_PATH:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk/node_modules/.cache/nx/terminalOutputs/0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"examples-sdk-frontend-react",NX_TASK_HASH:"0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13"}.REACT_APP_SC_ATTR||{NODE_ENV:"production",NX_CLI_SET:"true",NX_WORKSPACE_ROOT:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk",NX_TERMINAL_OUTPUT_PATH:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk/node_modules/.cache/nx/terminalOutputs/0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"examples-sdk-frontend-react",NX_TASK_HASH:"0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13"}.SC_ATTR)||"data-styled",Rh="undefined"!=typeof window&&"HTMLElement"in window,Ph=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==Ih&&void 0!=={NODE_ENV:"production",NX_CLI_SET:"true",NX_WORKSPACE_ROOT:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk",NX_TERMINAL_OUTPUT_PATH:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk/node_modules/.cache/nx/terminalOutputs/0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"examples-sdk-frontend-react",NX_TASK_HASH:"0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13"}&&void 0!=={NODE_ENV:"production",NX_CLI_SET:"true",NX_WORKSPACE_ROOT:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk",NX_TERMINAL_OUTPUT_PATH:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk/node_modules/.cache/nx/terminalOutputs/0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"examples-sdk-frontend-react",NX_TASK_HASH:"0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13"}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",NX_CLI_SET:"true",NX_WORKSPACE_ROOT:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk",NX_TERMINAL_OUTPUT_PATH:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk/node_modules/.cache/nx/terminalOutputs/0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"examples-sdk-frontend-react",NX_TASK_HASH:"0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13"}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",NX_CLI_SET:"true",NX_WORKSPACE_ROOT:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk",NX_TERMINAL_OUTPUT_PATH:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk/node_modules/.cache/nx/terminalOutputs/0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"examples-sdk-frontend-react",NX_TASK_HASH:"0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13"}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",NX_CLI_SET:"true",NX_WORKSPACE_ROOT:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk",NX_TERMINAL_OUTPUT_PATH:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk/node_modules/.cache/nx/terminalOutputs/0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"examples-sdk-frontend-react",NX_TASK_HASH:"0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13"}.REACT_APP_SC_DISABLE_SPEEDY:void 0!==Ih&&void 0!=={NODE_ENV:"production",NX_CLI_SET:"true",NX_WORKSPACE_ROOT:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk",NX_TERMINAL_OUTPUT_PATH:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk/node_modules/.cache/nx/terminalOutputs/0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"examples-sdk-frontend-react",NX_TASK_HASH:"0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13"}&&void 0!=={NODE_ENV:"production",NX_CLI_SET:"true",NX_WORKSPACE_ROOT:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk",NX_TERMINAL_OUTPUT_PATH:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk/node_modules/.cache/nx/terminalOutputs/0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"examples-sdk-frontend-react",NX_TASK_HASH:"0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13"}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",NX_CLI_SET:"true",NX_WORKSPACE_ROOT:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk",NX_TERMINAL_OUTPUT_PATH:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk/node_modules/.cache/nx/terminalOutputs/0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"examples-sdk-frontend-react",NX_TASK_HASH:"0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13"}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",NX_CLI_SET:"true",NX_WORKSPACE_ROOT:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk",NX_TERMINAL_OUTPUT_PATH:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk/node_modules/.cache/nx/terminalOutputs/0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"examples-sdk-frontend-react",NX_TASK_HASH:"0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13"}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",NX_CLI_SET:"true",NX_WORKSPACE_ROOT:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk",NX_TERMINAL_OUTPUT_PATH:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk/node_modules/.cache/nx/terminalOutputs/0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"examples-sdk-frontend-react",NX_TASK_HASH:"0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13"}.SC_DISABLE_SPEEDY)),Dh=(new Set,Object.freeze([])),Lh=Object.freeze({});function Oh(e,t,r){return void 0===r&&(r=Lh),e.theme!==r.theme&&e.theme||t||r.theme}var jh=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Bh=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Uh=/(^-|-$)/g;function Fh(e){return e.replace(Bh,"-").replace(Uh,"")}var zh=/(a)(d)/gi,Hh=function(e){return String.fromCharCode(e+(e>25?39:97))};function Gh(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Hh(t%52)+r;return(Hh(t%52)+r).replace(zh,"$1-$2")}var Yh,Kh=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},qh=function(e){return Kh(5381,e)};function Wh(e){return Gh(qh(e)>>>0)}function Vh(e){return"string"==typeof e&&!0}var $h="function"==typeof Symbol&&Symbol.for,Qh=$h?Symbol.for("react.memo"):60115,Jh=$h?Symbol.for("react.forward_ref"):60112,Zh={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Xh={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ed={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},td=((Yh={})[Jh]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Yh[Qh]=ed,Yh);function rd(e){return("type"in(t=e)&&t.type.$$typeof)===Qh?ed:"$$typeof"in e?td[e.$$typeof]:Zh;var t}var nd=Object.defineProperty,id=Object.getOwnPropertyNames,od=Object.getOwnPropertySymbols,sd=Object.getOwnPropertyDescriptor,ad=Object.getPrototypeOf,ud=Object.prototype;function ld(e,t,r){if("string"!=typeof t){if(ud){var n=ad(t);n&&n!==ud&&ld(e,n,r)}var i=id(t);od&&(i=i.concat(od(t)));for(var o=rd(e),s=rd(t),a=0;a0?" Args: ".concat(t.join(", ")):""))}var vd=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;e>=i;)if((i<<=1)<0)throw yd(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var o=n;o=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),i=n+r,o=n;o=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e0&&(u+="".concat(e,","))})),n+="".concat(s).concat(a,'{content:"').concat(u,'"}').concat("/*!sc*/\n")},o=0;o0?".".concat(t):e},c=u.slice();c.push((function(e){e.type===Lc&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Od,r).replace(n,l))})),s.prefix&&c.push(Th),c.push(kh);var h=function(e,i,o,a){void 0===i&&(i=""),void 0===o&&(o=""),void 0===a&&(a="&"),t=a,r=i,n=new RegExp("\\".concat(r,"\\b"),"g");var u=e.replace(jd,""),l=wh(o||i?"".concat(o," ").concat(i," { ").concat(u," }"):u);s.namespace&&(l=Bd(l,s.namespace));var h,d,f,p=[];return xh(l,(h=c.concat((f=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&f(e)})),d=Vc(h),function(e,t,r,n){for(var i="",o=0;o="A"&&e<="Z"};function Vd(e){for(var t="",r=0;r>>0);if(!t.hasNameForId(this.componentId,o)){var s=r(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,s)}n=dd(n,o),this.staticRulesId=o}else{for(var a=Kh(this.baseHash,r.hash),u="",l=0;l>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,r(u,".".concat(d),void 0,this.componentId)),n=dd(n,d)}}return n},e}(),tf=w.createContext(void 0);tf.Consumer;function rf(e){var t=w.useContext(tf),r=(0,w.useMemo)((function(){return function(e,t){if(!e)throw yd(14);if(cd(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw yd(8);return t?kc(kc({},t),e):e}(e.theme,t)}),[e.theme,t]);return e.children?w.createElement(tf.Provider,{value:r},e.children):null}var nf={};new Set;function of(e,t,r){var n=hd(e),i=e,o=!Vh(e),s=t.attrs,a=void 0===s?Dh:s,u=t.componentId,l=void 0===u?function(e,t){var r="string"!=typeof e?"sc":Fh(e);nf[r]=(nf[r]||0)+1;var n="".concat(r,"-").concat(Wh("6.1.0"+r+nf[r]));return t?"".concat(t,"-").concat(n):n}(t.displayName,t.parentComponentId):u,c=t.displayName,h=(void 0===c&&function(e){Vh(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e),t.displayName&&t.componentId?"".concat(Fh(t.displayName),"-").concat(t.componentId):t.componentId||l),d=n&&i.attrs?i.attrs.concat(a).filter(Boolean):a,f=t.shouldForwardProp;if(n&&i.shouldForwardProp){var p=i.shouldForwardProp;if(t.shouldForwardProp){var m=t.shouldForwardProp;f=function(e,t){return p(e,t)&&m(e,t)}}else f=p}var g=new ef(r,h,n?i.componentStyle:void 0);var y=w.forwardRef((function(e,t){return function(e,t,r){var n=e.attrs,i=e.componentStyle,o=e.defaultProps,s=e.foldedComponentIds,a=e.styledComponentId,u=e.target,l=w.useContext(tf),c=Yd(),h=e.shouldForwardProp||c.shouldForwardProp,d=function(e,t,r){for(var n,i=kc(kc({},t),{className:void 0,theme:r}),o=0;o2&&Ld.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)}}();function df(e){for(var t=[],r=1;r").concat(t,"")},this.getStyleTags=function(){if(e.sealed)throw yd(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw yd(2);var r=((t={})[Nh]="",t["data-styled-version"]="6.1.0",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=Td();return n&&(r.nonce=n),[w.createElement("style",kc({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Ld({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw yd(2);return w.createElement(Kd,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw yd(3)}})(),"__sc-".concat(Nh,"__");var ff=r(97531);var pf=function(e){var t,r;function n(t){var r,n=(void 0===t?{}:t).supportedChainIds;return(r=e.call(this)||this).supportedChainIds=n,r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.emitUpdate=function(e){this.emit(ic.Update,e)},i.emitError=function(e){this.emit(ic.Error,e)},i.emitDeactivate=function(){this.emit(ic.Deactivate)},n}(ff.EventEmitter);function mf(){return mf=Object.assign||function(e){for(var t=1;t0})))}),(function(){return!1}))):Promise.resolve(!1)}catch(e){return Promise.reject(e)}},t}(pf),Tf=r(74512),Cf=r(98399);const If={1:"ETH_MAIN_NET",11155111:"ETH_SEPOLIA",3:"ETH_ROPSTEN",137:"POLYGON_MAINNET",80001:"POLYGON_MUMBAI",56:"BSC_MAINNET",97:"BSC_TESTNET",420:"OPTIMISM_TESTNET",10:"OPTIMISM_MAINNET",1442:"POLYGON_ZK_EVM_TESTNET",1101:"POLYGON_ZK_EVM_MAINNET",421613:"ARBITRUM_TESTNET",42161:"ARBITRUMONE_MAINNET",122:"FUSE_MAINNET",123:"FUSE_TESTNET"},Nf=new kf({supportedChainIds:[1,3,4,11155111,42,137,80001,56,97,10,420,1442,1101,421613,42161,122,123]}),Rf=hf.div.withConfig({displayName:"Connect__ConnectWrapper",componentId:"sc-1nwn4oj-0"})(["display:flex;align-items:center;flex-direction:column;margin:20;& .account{font-size:1.2rem;border:1px solid green;border-radius:3px;padding:4px 7px;font-weight:500;font-family:monospace;}& .network{margin:5px 0;}"]),Pf=hf.button.withConfig({displayName:"Connect__StyledButton",componentId:"sc-1nwn4oj-1"})(["border:0px;outline:0px;padding:8px 15px;margin:10px;border-radius:20px;font-size:14px;cursor:pointer;"]),Df=hf(Pf).withConfig({displayName:"Connect",componentId:"sc-1nwn4oj-2"})(["color:rgb(255,255,255);background:rgb(103,76,159);"]),Lf=hf(Pf).withConfig({displayName:"Connect__Disconnect",componentId:"sc-1nwn4oj-3"})(["color:rgb(255,255,255);background:rgb(226,8,128);"]),Of=()=>{const{active:e,account:t,activate:r,deactivate:n,chainId:i}=xc();return(0,w.useEffect)((()=>{(async()=>{var e;if("true"===(null==(e=localStorage)?void 0:e.getItem("isWalletConnected")))try{await r(Nf),localStorage.setItem("isWalletConnected","true")}catch(t){Cf.log(t)}})()}),[r]),(0,Tf.jsx)(Rf,{children:e?(0,Tf.jsxs)(Tf.Fragment,{children:[(0,Tf.jsxs)("p",{children:["Connected with ",(0,Tf.jsx)("span",{className:"account",children:t})]}),i?(0,Tf.jsx)("p",{className:"network",children:If[i]}):null,(0,Tf.jsx)(Lf,{onClick:async function(){try{n(),localStorage.setItem("isWalletConnected","false")}catch(e){Cf.log(e)}},children:"Disconnect Metamask"})]}):(0,Tf.jsx)(Df,{onClick:async function(){try{await r(Nf),localStorage.setItem("isWalletConnected","true")}catch(e){Cf.log(e)}},children:"Connect to MetaMask"})})},jf=e=>(0,Tf.jsxs)("div",{children:[(0,Tf.jsx)("input",{id:e.id,type:"checkbox",checked:e.value,onChange:e.onChange}),(0,Tf.jsx)("label",{htmlFor:e.id,children:e.label})]}),Bf=({style:e,label:t,value:r,width:n,options:i,onChange:o})=>(0,Tf.jsxs)("label",{style:Object.assign({display:"flex",gap:8},e),children:[t,(0,Tf.jsx)("select",{value:r,onChange:o,style:{width:n},children:i.map((e=>(0,Tf.jsx)("option",{value:e.value,children:e.label},`option: ${e.label}`)))})]}),Uf=(0,w.createContext)({}),Ff=(0,w.createContext)({}),zf=(0,w.createContext)({}),Hf=(0,w.createContext)({});let Gf,Yf;!function(e){e.PROD="prod",e.STAGING="staging",e.DEV="dev",e.LOCAL="local"}(Gf||(Gf={})),function(e){e[e.PROD=1]="PROD",e[e.STAGING=11155111]="STAGING",e[e.DEV=11155111]="DEV",e[e.LOCAL=11155111]="LOCAL"}(Yf||(Yf={}));const Kf="connect",qf="disconnect",Wf="userFeeds",Vf="CHATS",$f="CHAT_GROUPS";r(96609);const Qf=Object.create(null);Qf.open="0",Qf.close="1",Qf.ping="2",Qf.pong="3",Qf.message="4",Qf.upgrade="5",Qf.noop="6";const Jf=Object.create(null);Object.keys(Qf).forEach((e=>{Jf[Qf[e]]=e}));const Zf={type:"error",data:"parser error"},Xf="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),ep="function"==typeof ArrayBuffer,tp=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+e)},r.readAsDataURL(e)},rp=({type:e,data:t},r,n)=>{return Xf&&t instanceof Blob?r?n(t):tp(t,n):ep&&(t instanceof ArrayBuffer||(i=t,"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(i):i&&i.buffer instanceof ArrayBuffer))?r?n(t):tp(new Blob([t]),n):n(Qf[e]+(t||""));var i},np="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ip="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let pVe=0;pVe{if(op){const r=(e=>{let t,r,n,i,o,s=.75*e.length,a=e.length,u=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);const l=new ArrayBuffer(s),c=new Uint8Array(l);for(t=0;t>4,c[u++]=(15&n)<<4|i>>2,c[u++]=(3&i)<<6|63&o;return l})(e);return ap(r,t)}return{base64:!0,data:e}},ap=(e,t)=>"blob"===t&&e instanceof ArrayBuffer?new Blob([e]):e,up=(e,t)=>{if("string"!=typeof e)return{type:"message",data:ap(e,t)};const r=e.charAt(0);if("b"===r)return{type:"message",data:sp(e.substring(1),t)};return Jf[r]?e.length>1?{type:Jf[r],data:e.substring(1)}:{type:Jf[r]}:Zf},lp=String.fromCharCode(30);function cp(e){if(e)return function(e){for(var t in cp.prototype)e[t]=cp.prototype[t];return e}(e)}cp.prototype.on=cp.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},cp.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},cp.prototype.off=cp.prototype.removeListener=cp.prototype.removeAllListeners=cp.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i(e.hasOwnProperty(r)&&(t[r]=e[r]),t)),{})}const fp=setTimeout,pp=clearTimeout;function mp(e,t){t.useNativeTimers?(e.setTimeoutFn=fp.bind(hp),e.clearTimeoutFn=pp.bind(hp)):(e.setTimeoutFn=setTimeout.bind(hp),e.clearTimeoutFn=clearTimeout.bind(hp))}class gp extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class yp extends cp{constructor(e){super(),this.writable=!1,mp(this,e),this.opts=e,this.query=e.query,this.readyState="",this.socket=e.socket}onError(e,t,r){return super.emitReserved("error",new gp(e,t,r)),this}open(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=up(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}}const vp="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),bp={};let wp,_p=0,Ep=0;function Ap(e){let t="";do{t=vp[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function Mp(){const e=Ap(+new Date);return e!==wp?(_p=0,wp=e):e+"."+Ap(_p++)}for(;Ep<64;Ep++)bp[vp[Ep]]=Ep;function Sp(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}let xp=!1;try{xp="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(dVe){}const kp=xp;function Tp(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||kp))return new XMLHttpRequest}catch(r){}if(!t)try{return new(hp[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(r){}}function Cp(){}const Ip=null!=new Tp({xdomain:!1}).responseType;class Np extends cp{constructor(e,t){super(),mp(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.create()}create(){const e=dp(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this.opts.xd,e.xscheme=!!this.opts.xs;const t=this.xhr=new Tp(e);try{t.open(this.method,this.uri,this.async);try{if(this.opts.extraHeaders){t.setDisableHeaderCheck&&t.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&t.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(r){}if("POST"===this.method)try{t.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(r){}try{t.setRequestHeader("Accept","*/*")}catch(r){}"withCredentials"in t&&(t.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(t.timeout=this.opts.requestTimeout),t.onreadystatechange=()=>{4===t.readyState&&(200===t.status||1223===t.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof t.status?t.status:0)}),0))},t.send(this.data)}catch(r){return void this.setTimeoutFn((()=>{this.onError(r)}),0)}"undefined"!=typeof document&&(this.index=Np.requestsCount++,Np.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=Cp,e)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete Np.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(Np.requestsCount=0,Np.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",Rp);else if("function"==typeof addEventListener){addEventListener("onpagehide"in hp?"pagehide":"unload",Rp,!1)}function Rp(){for(let e in Np.requests)Np.requests.hasOwnProperty(e)&&Np.requests[e].abort()}const Pp="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),Dp=hp.WebSocket||hp.MozWebSocket;r(75291).Buffer;const Lp="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();const Op={websocket:class extends yp{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,r=Lp?{}:dp(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=Lp?new Dp(e,t,r):t?new Dp(e,t):new Dp(e)}catch(dVe){return this.emitReserved("error",dVe)}this.ws.binaryType=this.socket.binaryType||"arraybuffer",this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.ws.send(e)}catch(t){}n&&Pp((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.query||{};const t=this.opts.secure?"wss":"ws";let r="";this.opts.port&&("wss"===t&&443!==Number(this.opts.port)||"ws"===t&&80!==Number(this.opts.port))&&(r=":"+this.opts.port),this.opts.timestampRequests&&(e[this.opts.timestampParam]=Mp()),this.supportsBinary||(e.b64=1);const n=Sp(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(n.length?"?"+n:"")}check(){return!!Dp}},polling:class extends yp{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port,this.xs=e.secure!==t}const t=e&&e.forceBase64;this.supportsBinary=Ip&&!t}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const r=e.split(lp),n=[];for(let i=0;i{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const r=e.length,n=new Array(r);let i=0;e.forEach(((e,o)=>{rp(e,!1,(e=>{n[o]=e,++i===r&&t(n.join(lp))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){let e=this.query||{};const t=this.opts.secure?"https":"http";let r="";!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=Mp()),this.supportsBinary||e.sid||(e.b64=1),this.opts.port&&("https"===t&&443!==Number(this.opts.port)||"http"===t&&80!==Number(this.opts.port))&&(r=":"+this.opts.port);const n=Sp(e);return t+"://"+(-1!==this.opts.hostname.indexOf(":")?"["+this.opts.hostname+"]":this.opts.hostname)+r+this.opts.path+(n.length?"?"+n:"")}request(e={}){return Object.assign(e,{xd:this.xd,xs:this.xs},this.opts),new Np(this.uri(),e)}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},jp=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Bp=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Up(e){const t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=jp.exec(e||""),o={},s=14;for(;s--;)o[Bp[s]]=i[s]||"";return-1!=r&&-1!=n&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){const r=/\/{2,9}/g,n=t.replace(r,"/").split("/");"/"!=t.substr(0,1)&&0!==t.length||n.splice(0,1);"/"==t.substr(t.length-1,1)&&n.splice(n.length-1,1);return n}(0,o.path),o.queryKey=function(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(r[t]=n)})),r}(0,o.query),o}class Fp extends cp{constructor(e,t={}){super(),e&&"object"==typeof e&&(t=e,e=null),e?(e=Up(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=Up(t.host).host),mp(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!0},t),this.opts.path=this.opts.path.replace(/\/$/,"")+"/","string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},r=e.split("&");for(let n=0,i=r.length;n{this.transport&&(this.transport.removeAllListeners(),this.transport.close())}),!1),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts.transportOptions[e],this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port});return new Op[e](r)}open(){let e;if(this.opts.rememberUpgrade&&Fp.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(t){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e),r=!1;Fp.priorWebsocketSuccess=!1;const n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Fp.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{r||"closed"!==this.readyState&&(l(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function i(){r||(r=!0,l(),t.close(),t=null)}const o=e=>{const r=new Error("probe error: "+e);r.transport=t.name,i(),this.emitReserved("upgradeError",r)};function s(){o("transport closed")}function a(){o("socket closed")}function u(e){t&&e.name!==t.name&&i()}const l=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",s),this.off("close",a),this.off("upgrading",u)};t.once("open",n),t.once("error",o),t.once("close",s),this.once("close",a),this.once("upgrading",u),t.open()}onOpen(){if(this.readyState="open",Fp.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade&&this.transport.pause){let e=0;const t=this.upgrades.length;for(;e{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let r=0;r=57344?r+=3:(n++,r+=4);return r}(t):Math.ceil(1.33*(t.byteLength||t.size))),r>0&&e>this.maxPayload)return this.writeBuffer.slice(0,r);e+=2}var t;return this.writeBuffer}write(e,t,r){return this.sendPacket("message",e,t,r),this}send(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?r():e()})):this.upgrading?r():e()),this}onError(e){Fp.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&removeEventListener("offline",this.offlineEventListener,!1),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let r=0;const n=e.length;for(;r"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||Gp&&e instanceof Blob||Yp&&e instanceof File}function qp(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t=0&&e.num0;case Zp.ACK:case Zp.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&this.reconstructor.finishedReconstruction()}}class tm{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const e=$p(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function rm(e,t,r){return e.on(t,r),function(){e.off(t,r)}}const nm=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class im extends cp{constructor(e,t,r){super(),this.connected=!1,this.receiveBuffer=[],this.sendBuffer=[],this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[rm(e,"open",this.onopen.bind(this)),rm(e,"packet",this.onpacket.bind(this)),rm(e,"error",this.onerror.bind(this)),rm(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(nm.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');t.unshift(e);const r={type:Zp.EVENT,data:t,options:{}};if(r.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){const e=this.ids++,n=t.pop();this._registerAckCallback(e,n),r.id=e}const n=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!n||!this.connected)||(this.connected?(this.notifyOutgoingListeners(r),this.packet(r)):this.sendBuffer.push(r)),this.flags={},this}_registerAckCallback(e,t){const r=this.flags.timeout;if(void 0===r)return void(this.acks[e]=t);const n=this.io.setTimeoutFn((()=>{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(n),t.apply(this,[null,...e])}}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this.packet({type:Zp.CONNECT,data:e})})):this.packet({type:Zp.CONNECT,data:this.auth})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case Zp.CONNECT:if(e.data&&e.data.sid){const t=e.data.sid;this.onconnect(t)}else this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Zp.EVENT:case Zp.BINARY_EVENT:this.onevent(e);break;case Zp.ACK:case Zp.BINARY_ACK:this.onack(e);break;case Zp.DISCONNECT:this.ondisconnect();break;case Zp.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e)}ack(e){const t=this;let r=!1;return function(...n){r||(r=!0,t.packet({type:Zp.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e){this.id=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Zp.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}om.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-r:e+r}return 0|Math.min(e,this.max)},om.prototype.reset=function(){this.attempts=0},om.prototype.setMin=function(e){this.ms=e},om.prototype.setMax=function(e){this.max=e},om.prototype.setJitter=function(e){this.jitter=e};class sm extends cp{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,mp(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new om({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||l;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new Fp(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const n=rm(t,"open",(function(){r.onopen(),e&&e()})),i=rm(t,"error",(t=>{r.cleanup(),r._readyState="closed",this.emitReserved("error",t),e?e(t):r.maybeReconnectOnOpen()}));if(!1!==this._timeout){const e=this._timeout;0===e&&n();const r=this.setTimeoutFn((()=>{n(),t.close(),t.emit("error",new Error("timeout"))}),e);this.opts.autoUnref&&r.unref(),this.subs.push((function(){clearTimeout(r)}))}return this.subs.push(n),this.subs.push(i),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(rm(e,"ping",this.onping.bind(this)),rm(e,"data",this.ondata.bind(this)),rm(e,"error",this.onerror.bind(this)),rm(e,"close",this.onclose.bind(this)),rm(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error")}}ondecoded(e){this.emitReserved("packet",e)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r||(r=new im(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t){if(this.nsps[r].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;re())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&r.unref(),this.subs.push((function(){clearTimeout(r)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const am={};function um(e,t){"object"==typeof e&&(t=e,e=void 0);const r=function(e,t="",r){let n=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),n=Up(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}(e,(t=t||{}).path||"/socket.io"),n=r.source,i=r.id,o=r.path,s=am[i]&&o in am[i].nsps;let a;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?a=new sm(n,t):(am[i]||(am[i]=new sm(n,t)),a=am[i]),r.query&&!t.query&&(t.query=r.queryKey),a.socket(r.path,t)}Object.assign(um,{Manager:sm,Socket:im,io:um,connect:um});const lm={[Gf.PROD]:"https://backend.epns.io",[Gf.STAGING]:"https://backend-staging.epns.io",[Gf.DEV]:"https://backend-dev.epns.io",[Gf.LOCAL]:"http://localhost:4000"};r(48868),r(54861),r(75093),r(13616);function cm(e){return wr(e)}const hm={eip155:({address:e})=>cm(e)};function dm(e){const[t,r,n]=e.split(":");if(!t)return!1;if(!r)return!1;if(!n)return!1;if((e=>{try{const t=e.split(":");return(5===t.length||6===t.length)&&"nft"===t[0].toLowerCase()&&!isNaN(Number(t[4]))&&Number(t[4])>0&&!isNaN(Number(t[2]))&&Number(t[2])>0&&wr(t[3])&&"eip155"===t[1]}catch(dVe){return!1}})(e))return!0;return(0,hm[t])({address:n})}function fm(e,t,r){if(dm(t))return t;if(cm(t))return function(e,t){let r;switch(e){case Gf.PROD:r=Yf.PROD;break;case Gf.STAGING:r=Yf.STAGING;break;case Gf.DEV:r=Yf.DEV;break;case Gf.LOCAL:r=Yf.LOCAL;break;default:r=Yf.PROD}return`eip155:${r}:${t}`}(e,t);throw Error(`Invalid Address! ${r}`)}var pm=r(98399);function mm({user:e,env:t,socketType:r="notification",apiKey:n,socketOptions:i}){const{autoConnect:o=!0,reconnectionAttempts:s=5,reconnectionDelay:a,reconnectionDelayMax:u}=i||{},l=lm[t],c=["websocket"];let h=null;try{const n="chat"===r?(d=e).includes("eip155:")?d:"eip155:"+d:fm(t,e,"User");let i;i="notification"===r?{address:n}:{mode:"chat",did:n};h=um(l,Object.assign({transports:c,query:i,autoConnect:o,reconnectionAttempts:s},void 0!==a&&{reconnectionDelay:a},void 0!==u&&{reconnectionDelayMax:u}))}catch(f){pm.error("[PUSH-SDK] - Socket connection error: "),pm.error(f)}finally{return h}var d}let gm;!function(e){e.PROD="prod",e.STAGING="staging",e.DEV="dev",e.LOCAL="local"}(gm||(gm={}));const ym=gm;function vm(e){return wr(e)}const bm={eip155:({address:e})=>vm(e)};function wm(e,t,r){if(function(e){const[t,r,n]=e.split(":");return!!t&&(!!r&&(!!n&&(0,bm[t])({address:n})))}(t))return t;if(vm(t))return function(e,t){let r=1;return e!==ym.DEV&&e!==ym.STAGING||(r=11155111),`eip155:${r}:${t}`}(e,t);throw Error(`Invalid Address! ${r}`)}const _m=e=>e.includes("eip155:")?e:"eip155:"+e;var Em=r(98399);const Am=({account:e,env:t=gm.PROD,chainId:r,isCAIP:n})=>{const[i,o]=(0,w.useState)(null),[s,a]=(0,w.useState)([]),[u,l]=(0,w.useState)(null==i?void 0:i.connected),[c,h]=(0,w.useState)("");return(0,w.useEffect)((()=>(i&&(Em.warn("\n--\x3e addSocketEvents"),null==i||i.on(Kf,(()=>{Em.log("CONNECTED: "),l(!0),h((new Date).toUTCString())})),null==i||i.on(qf,(()=>{Em.log("DIS-CONNECTED: "),l(!1),a([]),h("")})),Em.log("\t--\x3ewill attach eachFeed event now"),null==i||i.on(Wf,(e=>{Em.log("\n\n\n\neachFeed event: ",e),a((t=>[...t,e]))}))),()=>{i&&(Em.warn("\n--\x3e removeSocketEvents"),null==i||i.off(Kf),null==i||i.off(qf),null==i||i.off(Wf))})),[i]),(0,w.useEffect)((()=>{if(e){i&&(null==i||i.disconnect());const r=mm({user:wm(t,e,"User"),env:t,socketOptions:{autoConnect:!1}});Em.warn("new connection object: ",r),o(r)}}),[e,t,r,n]),{epnsSDKSocket:i,isSDKSocketConnected:u,feedsSinceLastConnection:s,lastConnectionTimestamp:c}};var Mm,Sm,xm=["title","titleId"];function km(){return km=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Cm=function(e,t){var r=e.title,n=e.titleId,i=Tm(e,xm);return w.createElement("svg",km({width:110,height:42,viewBox:"0 0 125 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",ref:t,"aria-labelledby":n},i),r?w.createElement("title",{id:n},r):null,Mm||(Mm=w.createElement("g",{clipPath:"url(#clip0_2132_7732)"},w.createElement("path",{d:"M22.5805 47.9999C23.8843 48.0008 25.1601 47.6228 26.2531 46.912C27.346 46.2012 28.2088 45.1881 28.7366 43.996C28.7948 43.8635 28.819 43.7186 28.807 43.5745C28.795 43.4303 28.7473 43.2913 28.668 43.1703C28.5888 43.0492 28.4806 42.9499 28.3533 42.8812C28.2259 42.8126 28.0834 42.7768 27.9387 42.7771H17.2272C17.0825 42.7768 16.94 42.8126 16.8127 42.8812C16.6853 42.9499 16.5771 43.0492 16.4979 43.1703C16.4187 43.2913 16.3709 43.4303 16.3589 43.5745C16.347 43.7186 16.3712 43.8635 16.4294 43.996C16.9573 45.187 17.8195 46.1992 18.9114 46.9099C20.0032 47.6206 21.2778 47.9992 22.5805 47.9999Z",fill:"url(#paint0_linear_2132_7732)"}),w.createElement("path",{d:"M39.0146 36.2961C38.6005 36.2961 38.1904 36.2145 37.8079 36.056C37.4253 35.8974 37.0777 35.665 36.785 35.3721C36.4923 35.0791 36.2602 34.7314 36.1019 34.3487C35.9437 33.966 35.8624 33.5559 35.8627 33.1418V22.0141C35.8627 16.1855 32.1863 11.0662 26.9709 9.18979C26.7086 9.09777 26.4682 8.95217 26.2651 8.76225C26.0621 8.57234 25.9008 8.34225 25.7914 8.08662C25.531 7.45025 25.0874 6.90561 24.5168 6.52185C23.9463 6.13808 23.2746 5.93248 22.587 5.93116C21.8994 5.92984 21.2269 6.13286 20.6549 6.51444C20.0829 6.89601 19.6372 7.43895 19.3744 8.07431C19.2675 8.32666 19.1088 8.55373 18.9086 8.74081C18.7084 8.92788 18.4711 9.07078 18.2121 9.16023C15.6089 10.0658 13.3522 11.7594 11.7553 14.0059C10.1584 16.2523 9.30044 18.9402 9.30057 21.6964V33.1393C9.30189 33.9723 8.97344 34.7719 8.38699 35.3634C7.80054 35.9549 7.00379 36.2903 6.17084 36.2961C5.97467 36.2939 5.77997 36.3303 5.59789 36.4033C5.41581 36.4764 5.24994 36.5846 5.10974 36.7218C4.96953 36.8591 4.85777 37.0226 4.78083 37.2031C4.7039 37.3835 4.66331 37.5774 4.66138 37.7736C4.66138 38.1654 4.81703 38.5412 5.0941 38.8183C5.37118 39.0954 5.74699 39.251 6.13883 39.251H39.0072C39.3991 39.251 39.7749 39.0954 40.052 38.8183C40.329 38.5412 40.4847 38.1654 40.4847 37.7736C40.4847 37.383 40.3301 37.0083 40.0546 36.7315C39.7791 36.4546 39.4052 36.2981 39.0146 36.2961Z",fill:"url(#paint1_linear_2132_7732)"}),w.createElement("path",{d:"M32.0978 6.4096C33.9126 6.8107 35.5542 7.77513 36.7881 9.16509C38.0219 10.5551 38.7849 12.2994 38.968 14.149C38.9866 14.3501 39.0843 14.5357 39.2397 14.6647C39.3951 14.7938 39.5954 14.8559 39.7966 14.8372C39.9977 14.8186 40.1832 14.7209 40.3123 14.5655C40.4414 14.4101 40.5034 14.2098 40.4848 14.0086C40.2807 11.833 39.3886 9.77902 37.938 8.14471C36.4875 6.51041 34.5539 5.38081 32.4179 4.91983C32.3654 4.90803 32.3117 4.90225 32.2579 4.9026C32.0714 4.9055 31.8925 4.97652 31.7548 5.10228C31.6172 5.22803 31.5303 5.39983 31.5106 5.58524C31.4909 5.77065 31.5398 5.95686 31.648 6.10872C31.7561 6.26059 31.9161 6.36762 32.0978 6.4096Z",fill:"url(#paint2_linear_2132_7732)"}),w.createElement("path",{d:"M32.9521 1.50708C35.7781 2.12903 38.3349 3.62896 40.2566 5.79222C42.1784 7.95549 43.3667 10.6712 43.6513 13.5508C43.6603 13.6503 43.6888 13.7471 43.7353 13.8356C43.7818 13.924 43.8453 14.0025 43.9222 14.0663C43.9991 14.1301 44.0878 14.1782 44.1833 14.2076C44.2788 14.237 44.3792 14.2473 44.4787 14.2378C44.5784 14.2292 44.6755 14.2008 44.7642 14.1545C44.853 14.1081 44.9317 14.0447 44.9958 13.9678C45.0599 13.8908 45.1081 13.802 45.1377 13.7063C45.1673 13.6107 45.1777 13.5101 45.1682 13.4104C44.8667 10.2048 43.5521 7.17858 41.415 4.77043C39.2778 2.36229 36.4291 0.697455 33.2821 0.0173184C33.2293 0.00684852 33.1758 0.00108218 33.122 8.33952e-05C32.9322 -0.00272556 32.7482 0.0655131 32.6061 0.191408C32.464 0.317303 32.3742 0.49176 32.3541 0.680526C32.3341 0.869292 32.3853 1.05874 32.4978 1.21167C32.6102 1.3646 32.7758 1.46996 32.9619 1.50708H32.9521Z",fill:"url(#paint3_linear_2132_7732)"}),w.createElement("path",{d:"M13.0631 6.40967C13.2492 6.37255 13.4148 6.26718 13.5272 6.11425C13.6397 5.96133 13.6909 5.77188 13.6709 5.58311C13.6508 5.39435 13.5609 5.21989 13.4189 5.094C13.2768 4.9681 13.0928 4.89986 12.903 4.90267C12.8492 4.90245 12.7955 4.90822 12.7429 4.9199C10.6069 5.38088 8.67335 6.51048 7.2228 8.14478C5.77225 9.77909 4.88018 11.8331 4.67603 14.0087C4.65834 14.21 4.72123 14.4102 4.85088 14.5652C4.91387 14.6428 4.99195 14.7069 5.08041 14.7534C5.16887 14.8 5.26587 14.8281 5.36552 14.8361C5.4652 14.8459 5.56584 14.8359 5.66163 14.8066C5.75742 14.7773 5.84647 14.7294 5.92362 14.6655C6.00077 14.6016 6.06449 14.5231 6.11113 14.4345C6.15777 14.3458 6.18641 14.2488 6.19535 14.1491C6.37755 12.2996 7.13989 10.5551 8.37339 9.16501C9.60689 7.77495 11.2484 6.81053 13.0631 6.40967Z",fill:"url(#paint4_linear_2132_7732)"}),w.createElement("path",{d:"M12.2086 1.50708C12.3948 1.46996 12.5603 1.3646 12.6728 1.21167C12.7852 1.05874 12.8365 0.869292 12.8164 0.680526C12.7964 0.49176 12.7065 0.317303 12.5644 0.191408C12.4223 0.0655131 12.2383 -0.00272556 12.0485 8.33952e-05C11.9956 0.000946957 11.9428 0.00671534 11.8909 0.0173184C8.74386 0.697455 5.89521 2.36229 3.75803 4.77043C1.62085 7.17858 0.306247 10.2048 0.00481955 13.4104C-0.00496335 13.51 0.00524829 13.6105 0.0348484 13.7061C0.0644484 13.8017 0.112828 13.8903 0.177177 13.9669C0.24017 14.0446 0.318275 14.1086 0.406737 14.1551C0.495198 14.2017 0.592198 14.2298 0.691845 14.2378C0.791525 14.2476 0.892165 14.2376 0.987955 14.2084C1.08375 14.1791 1.17276 14.1311 1.24992 14.0672C1.32707 14.0034 1.39081 13.9248 1.43746 13.8362C1.4841 13.7476 1.51273 13.6506 1.52168 13.5508C1.80558 10.6729 2.992 7.95839 4.91139 5.79531C6.83078 3.63224 9.3849 2.13131 12.2086 1.50708Z",fill:"url(#paint5_linear_2132_7732)"}),w.createElement("path",{d:"M118.204 17.296C117.337 17.2875 116.478 17.4504 115.675 17.7754C114.872 18.1004 114.142 18.581 113.525 19.1896V9.54429C113.525 9.52791 113.522 9.5117 113.515 9.4966C113.509 9.4815 113.5 9.46782 113.488 9.45635C113.476 9.44489 113.463 9.43586 113.447 9.42982C113.432 9.42378 113.416 9.42084 113.399 9.42117H109.669C109.653 9.42084 109.636 9.42378 109.621 9.42982C109.606 9.43586 109.592 9.44489 109.58 9.45635C109.569 9.46782 109.559 9.4815 109.553 9.4966C109.547 9.5117 109.543 9.52791 109.543 9.54429V35.5819C109.543 35.5983 109.547 35.6145 109.553 35.6296C109.559 35.6447 109.569 35.6584 109.58 35.6699C109.592 35.6814 109.606 35.6904 109.621 35.6964C109.636 35.7025 109.653 35.7054 109.669 35.7051H113.399C113.416 35.7054 113.432 35.7025 113.447 35.6964C113.463 35.6904 113.476 35.6814 113.488 35.6699C113.5 35.6584 113.509 35.6447 113.515 35.6296C113.522 35.6145 113.525 35.5983 113.525 35.5819V25.0132C113.523 24.0748 113.878 23.1708 114.518 22.4848C115.159 21.7988 116.036 21.3822 116.972 21.3196C117.462 21.2922 117.952 21.3646 118.413 21.5324C118.874 21.7001 119.296 21.9597 119.654 22.2954C120.011 22.6311 120.297 23.0359 120.493 23.4853C120.69 23.9347 120.793 24.4194 120.797 24.9098V35.5819C120.797 35.6146 120.81 35.6459 120.833 35.669C120.856 35.6921 120.887 35.7051 120.92 35.7051H124.613C124.63 35.7054 124.646 35.7025 124.661 35.6964C124.676 35.6904 124.69 35.6814 124.702 35.6699C124.714 35.6584 124.723 35.6447 124.729 35.6296C124.736 35.6145 124.739 35.5983 124.739 35.5819V23.9347C124.742 22.1908 124.058 20.5159 122.835 19.2731C121.611 18.0304 119.947 17.32 118.204 17.296Z",fill:"#121315"}),w.createElement("path",{d:"M90.0312 16.6189H86.3178C86.285 16.6189 86.2534 16.6318 86.2299 16.6548C86.2064 16.6778 86.1929 16.7091 86.1923 16.742V28.3154C86.1883 28.791 86.088 29.2608 85.8973 29.6966C85.7067 30.1323 85.4297 30.5248 85.0831 30.8505C84.7364 31.1762 84.3274 31.4282 83.8807 31.5913C83.4339 31.7545 82.9587 31.8254 82.4838 31.7997C81.5728 31.7432 80.7179 31.3403 80.0943 30.6737C79.4708 30.0071 79.1257 29.1272 79.13 28.2144V16.742C79.1294 16.7091 79.1159 16.6778 79.0924 16.6548C79.0689 16.6318 79.0373 16.6189 79.0044 16.6189H75.2911C75.2585 16.6189 75.2271 16.6319 75.2041 16.655C75.181 16.678 75.168 16.7094 75.168 16.742V28.1455C75.1641 30.1012 75.9195 31.982 77.275 33.3917C78.6305 34.8014 80.4803 35.6299 82.4346 35.7027C83.43 35.7376 84.4222 35.5728 85.3529 35.2181C86.2836 34.8635 87.1339 34.326 87.8535 33.6375C88.5732 32.9491 89.1478 32.1235 89.5434 31.2094C89.9389 30.2953 90.1475 29.3113 90.1567 28.3154V16.742C90.1561 16.7091 90.1426 16.6778 90.1191 16.6548C90.0956 16.6318 90.064 16.6189 90.0312 16.6189Z",fill:"#121315"}),w.createElement("path",{d:"M64.8824 9.45581H55.471C55.4021 9.45581 55.3479 9.48044 55.3479 9.54938L55.3799 35.6511C55.3799 35.6674 55.3832 35.6837 55.3895 35.6988C55.3958 35.7139 55.4051 35.7275 55.4168 35.739C55.4285 35.7505 55.4424 35.7595 55.4576 35.7655C55.4728 35.7716 55.4891 35.7745 55.5055 35.7742H59.1991C59.2318 35.7742 59.2631 35.7612 59.2862 35.7381C59.3093 35.715 59.3223 35.6837 59.3223 35.6511V25.139H64.8996C69.2163 25.139 72.5972 21.6916 72.5972 17.2962C72.5972 12.9007 69.199 9.45581 64.8824 9.45581ZM64.8159 21.2287H59.5291C59.4638 21.2287 59.4012 21.2027 59.355 21.1565C59.3088 21.1104 59.2828 21.0477 59.2828 20.9824V16.8061C59.28 16.1784 59.0674 15.5696 58.6788 15.0765C58.2901 14.5835 57.7478 14.2345 57.1381 14.0852C57.1105 14.0785 57.086 14.0627 57.0686 14.0403C57.0512 14.018 57.0418 13.9904 57.042 13.962V13.4819C57.042 13.4479 57.0555 13.4153 57.0796 13.3913C57.1036 13.3673 57.1361 13.3538 57.1701 13.3538H64.875C66.8819 13.3538 68.4283 14.8116 68.6795 16.8012C68.7622 17.3527 68.7242 17.9156 68.5681 18.4509C68.412 18.9863 68.1415 19.4814 67.7752 19.9019C67.409 20.3225 66.9558 20.6585 66.447 20.8867C65.9382 21.1149 65.3859 21.2299 64.8282 21.2237L64.8159 21.2287Z",fill:"#121315"}),w.createElement("path",{d:"M92.6708 31.5412C93.3849 33.1073 95.2169 35.7274 99.4991 35.7274C104.392 35.7274 106.581 32.8389 106.581 29.9751C106.581 26.8331 104.503 24.9395 100.233 24.1811C98.0635 23.8166 97.1351 23.1296 97.1351 21.8885C97.1351 20.7312 98.1669 19.9531 99.701 19.9531C101.085 19.9531 102.25 20.7287 102.671 21.923C102.676 21.9362 102.683 21.9482 102.693 21.9584C102.703 21.9686 102.714 21.9766 102.727 21.9821C102.753 21.992 102.781 21.992 102.806 21.9821L105.877 20.6105C105.9 20.6002 105.918 20.5815 105.928 20.5581C105.937 20.5347 105.938 20.5085 105.928 20.485C104.988 18.0595 102.644 16.6116 99.6616 16.6116C95.4385 16.6116 93.2273 19.2858 93.2273 21.9255C93.2273 25.0429 95.2637 26.9267 99.4523 27.6777C101.681 28.1283 102.631 28.8375 102.631 30.0515C102.631 31.3639 101.476 32.147 99.5385 32.147C98.8191 32.1495 98.1138 31.9485 97.5038 31.5672C96.8938 31.186 96.4041 30.64 96.0911 29.9924C96.0825 29.9755 96.0695 29.9613 96.0534 29.9513C96.0374 29.9413 96.0189 29.936 96 29.9357C95.987 29.9324 95.9735 29.9324 95.9606 29.9357L92.7225 31.396C92.7082 31.4003 92.695 31.408 92.6842 31.4184C92.6734 31.4287 92.6651 31.4415 92.6601 31.4556C92.6551 31.4697 92.6534 31.4848 92.6553 31.4997C92.6571 31.5146 92.6624 31.5288 92.6708 31.5412Z",fill:"#121315"}))),Sm||(Sm=w.createElement("defs",null,w.createElement("linearGradient",{id:"paint0_linear_2132_7732",x1:29.7806,y1:31.445,x2:21.0144,y2:46.3476,gradientUnits:"userSpaceOnUse"},w.createElement("stop",{stopColor:"#FF94A6"}),w.createElement("stop",{offset:.32,stopColor:"#E03DC1"}),w.createElement("stop",{offset:1,stopColor:"#8247E5"})),w.createElement("linearGradient",{id:"paint1_linear_2132_7732",x1:34.0036,y1:14.9346,x2:15.4936,y2:41.2357,gradientUnits:"userSpaceOnUse"},w.createElement("stop",{stopColor:"#FF94A6"}),w.createElement("stop",{offset:.32,stopColor:"#E03DC1"}),w.createElement("stop",{offset:1,stopColor:"#8247E5"})),w.createElement("linearGradient",{id:"paint2_linear_2132_7732",x1:48.8768,y1:1.31978,x2:3.96955,y2:31.1274,gradientUnits:"userSpaceOnUse"},w.createElement("stop",{stopColor:"#FF94A6"}),w.createElement("stop",{offset:.32,stopColor:"#E03DC1"}),w.createElement("stop",{offset:1,stopColor:"#8247E5"})),w.createElement("linearGradient",{id:"paint3_linear_2132_7732",x1:48.4555,y1:.684638,x2:3.54584,y2:30.4923,gradientUnits:"userSpaceOnUse"},w.createElement("stop",{stopColor:"#FF94A6"}),w.createElement("stop",{offset:.32,stopColor:"#E03DC1"}),w.createElement("stop",{offset:1,stopColor:"#8247E5"})),w.createElement("linearGradient",{id:"paint4_linear_2132_7732",x1:40.492,y1:-11.3124,x2:-4.41769,y2:18.4952,gradientUnits:"userSpaceOnUse"},w.createElement("stop",{stopColor:"#FF94A6"}),w.createElement("stop",{offset:.32,stopColor:"#E03DC1"}),w.createElement("stop",{offset:1,stopColor:"#8247E5"})),w.createElement("linearGradient",{id:"paint5_linear_2132_7732",x1:38.2856,y1:-14.6366,x2:-6.60679,y2:15.1637,gradientUnits:"userSpaceOnUse"},w.createElement("stop",{stopColor:"#FF94A6"}),w.createElement("stop",{offset:.32,stopColor:"#E03DC1"}),w.createElement("stop",{offset:1,stopColor:"#8247E5"})),w.createElement("clipPath",{id:"clip0_2132_7732"},w.createElement("rect",{width:124.736,height:48,fill:"white"})))))},Im=(0,w.forwardRef)(Cm);r.p;const Nm=hf.section.withConfig({displayName:"StyledComponents__Section",componentId:"sc-asv06x-0"})(["border:2px solid #ccc;padding:25px;margin:10px 0;display:flex;flex-direction:column;background-color:",";& .headerText{color:",";font-size:2rem;}& .subHeaderText{color:",";font-size:1.2rem;}"],(e=>"dark"===e.theme?"#000":"#fff"),(e=>"dark"===e.theme?"#fff":"#000"),(e=>"dark"===e.theme?"#fff":"#000")),Rm=hf.div.withConfig({displayName:"StyledComponents__SectionItem",componentId:"sc-asv06x-1"})(["display:flex;gap:15px;align-items:center;& label.consoleLabel{color:green;}"]),Pm=hf.pre.withConfig({displayName:"StyledComponents__CodeFormatter",componentId:"sc-asv06x-3"})(["background:#eeebeb;padding:15px;border-radius:7px;"]),Dm=hf.button.withConfig({displayName:"StyledComponents__SectionButton",componentId:"sc-asv06x-4"})(["font-family:'Source Sans Pro',Arial,sans-serif;font-size:16px;display:flex;margin-right:15px;padding:15px 20px;background:#674c9f;border:0;border-radius:7px;box-shadow:rgb(0 0 0 / 52%) 0px 0px 5px;color:#fff;justify-content:center;&:hover{cursor:pointer;background:rgb(226,8,128);}"]),Lm=hf.div.withConfig({displayName:"Loader__LoadingOverlay",componentId:"sc-1l83nhp-0"})(["position:fixed;top:0;left:0;right:0;bottom:0;background-color:#000;display:flex;justify-content:center;align-items:center;opacity:0.7;& .loaderText{font-size:3rem;color:#fff;}z-index:999999;"]),Om=hf.div.withConfig({displayName:"Loader__LoadingSpinner",componentId:"sc-1l83nhp-1"})(["@keyframes spinner{to{transform:rotate(360deg);}}&:before{content:'';box-sizing:border-box;position:absolute;top:50%;left:50%;width:60px;height:60px;margin-top:-10px;margin-left:-10px;border-radius:50%;border-top:4px solid #07d;border-right:2px solid transparent;animation:spinner 0.6s linear infinite;}"]);const jm=function({show:e}){return e?(0,Tf.jsx)(Lm,{children:(0,Tf.jsx)(Om,{})}):null};var Bm,Um=["title","titleId"];function Fm(){return Fm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Hm=function(e,t){var r=e.title,n=e.titleId,i=zm(e,Um);return w.createElement("svg",Fm({width:"32px",height:"32px",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",ref:t,"aria-labelledby":n},i),r?w.createElement("title",{id:n},r):null,Bm||(Bm=w.createElement("g",{id:"Lager_94","data-name":"Lager 94",transform:"translate(0)"},w.createElement("path",{id:"Path_70","data-name":"Path 70",d:"M12.516,4.509A12,12,0,0,0,22.3,19.881,12.317,12.317,0,0,0,24,20a11.984,11.984,0,0,0,3.49-.514,12.1,12.1,0,0,1-9.963,8.421A12.679,12.679,0,0,1,16,28,12,12,0,0,1,12.516,4.509M16,0a16.5,16.5,0,0,0-2.212.15A16,16,0,0,0,16,32a16.526,16.526,0,0,0,2.01-.123A16.04,16.04,0,0,0,31.85,18.212,16.516,16.516,0,0,0,32,15.944,1.957,1.957,0,0,0,30,14a2.046,2.046,0,0,0-1.23.413A7.942,7.942,0,0,1,24,16a8.35,8.35,0,0,1-1.15-.08,7.995,7.995,0,0,1-5.264-12.7A2.064,2.064,0,0,0,16.056,0Z",fill:"#040505"}))))},Gm=(0,w.forwardRef)(Hm);var Ym,Km=["title","titleId"];function qm(){return qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var Vm=function(e,t){var r=e.title,n=e.titleId,i=Wm(e,Km);return w.createElement("svg",qm({width:"36px",height:"36px",viewBox:"0 0 36 36",xmlns:"http://www.w3.org/2000/svg",role:"img",ref:t,"aria-labelledby":n},i),r?w.createElement("title",{id:n},r):null,Ym||(Ym=w.createElement("g",{id:"Lager_93","data-name":"Lager 93",transform:"translate(2 2)"},w.createElement("g",{id:"Sun_3_Brightness_3","data-name":"Sun 3, Brightness 3"},w.createElement("path",{id:"Path_68","data-name":"Path 68",d:"M32,14H27.033c-2,1.769-.779,4,.967,4h4.967C34.966,16.231,33.746,14,32,14Z",fill:"#040505"}),w.createElement("g",{id:"Path_69","data-name":"Path 69",fill:"none",strokeMiterlimit:10},w.createElement("path",{d:"M17.172,10.111a6,6,0,1,0,4.715,4.715A6.01,6.01,0,0,0,17.172,10.111Z",stroke:"none"}),w.createElement("path",{d:"M 15.99852275848389 13.99979972839355 C 15.40029907226563 13.99979972839355 14.83786392211914 14.26465797424316 14.45541763305664 14.72645950317383 C 14.18128776550293 15.05748176574707 13.88667678833008 15.62165832519531 14.04035758972168 16.43178939819336 C 14.1787109375 17.16349411010742 14.83581733703613 17.82003402709961 15.56771087646484 17.958740234375 C 15.71307563781738 17.98624801635742 15.85765266418457 18.00020027160645 15.99740505218506 18.00020027160645 C 16.59555816650391 18.00020027160645 17.15798187255859 17.73542404174805 17.54046440124512 17.27376556396484 C 17.81481742858887 16.94261169433594 18.1097583770752 16.37818908691406 17.95689964294434 15.57052993774414 C 17.81802749633789 14.83748245239258 17.1605224609375 14.17996406555176 16.42829895019531 14.041259765625 C 16.28293609619141 14.01375389099121 16.13835906982422 13.99979972839355 15.99860572814941 13.99979972839355 L 15.99852275848389 13.99979972839355 M 15.99860000610352 9.999795913696289 C 16.38235282897949 9.999801635742188 16.77459716796875 10.03580474853516 17.17200469970703 10.11100006103516 C 19.52100563049316 10.55599975585938 21.44199371337891 12.47699928283691 21.88699340820313 14.82600021362305 C 22.61180877685547 18.65568542480469 19.69624137878418 22.00020408630371 15.99740028381348 22.00020408630371 C 15.61366271972656 22.00020408630371 15.22141265869141 21.96419525146484 14.82400512695313 21.88899993896484 C 12.47600555419922 21.44400024414063 10.55400466918945 19.52299880981445 10.11000442504883 17.17499923706055 C 9.383377075195313 13.34440803527832 12.29961967468262 9.999755859375 15.99860000610352 9.999795913696289 Z",stroke:"none",fill:"#040505"})),w.createElement("rect",{id:"Rectangle_26","data-name":"Rectangle 26",width:8,height:4,rx:1.993,transform:"translate(26 14)",fill:"#040505"}),w.createElement("rect",{id:"Rectangle_27","data-name":"Rectangle 27",width:8,height:4,rx:1.993,transform:"translate(18 26) rotate(90)",fill:"#040505"}),w.createElement("rect",{id:"Rectangle_28","data-name":"Rectangle 28",width:8,height:4,rx:1.993,transform:"translate(18 -2) rotate(90)",fill:"#040505"}),w.createElement("rect",{id:"Rectangle_29","data-name":"Rectangle 29",width:8,height:4,rx:1.993,transform:"translate(-2 14)",fill:"#040505"}),w.createElement("g",{id:"Group_22","data-name":"Group 22"},w.createElement("rect",{id:"Rectangle_30","data-name":"Rectangle 30",width:6.925,height:3.766,rx:1.883,transform:"translate(23.22 6.117) rotate(-45)",fill:"#040505"})),w.createElement("g",{id:"Group_23","data-name":"Group 23"},w.createElement("rect",{id:"Rectangle_31","data-name":"Rectangle 31",width:3.766,height:6.925,rx:1.883,transform:"matrix(0.707, -0.707, 0.707, 0.707, 23.22, 25.883)",fill:"#040505"})),w.createElement("g",{id:"Group_24","data-name":"Group 24"},w.createElement("rect",{id:"Rectangle_32","data-name":"Rectangle 32",width:3.766,height:6.925,rx:1.883,transform:"translate(1.22 3.883) rotate(-45)",fill:"#040505"})),w.createElement("g",{id:"Group_25","data-name":"Group 25"},w.createElement("rect",{id:"Rectangle_33","data-name":"Rectangle 33",width:6.925,height:3.766,rx:1.883,transform:"translate(1.22 28.117) rotate(-45)",fill:"#040505"}))))))},$m=(0,w.forwardRef)(Vm);const Qm=hf.div.withConfig({displayName:"Icons__SVGIconButton",componentId:"sc-1ukq2m1-0"})(["cursor:pointer;"]),Jm=({title:e,onClick:t})=>(0,Tf.jsx)(Qm,{title:e,onClick:t,children:(0,Tf.jsx)(Gm,{})}),Zm=({title:e,onClick:t})=>(0,Tf.jsx)(Qm,{title:e,onClick:t,children:(0,Tf.jsx)($m,{})});r(67790),r(77532),r(86962),r(45156);const Xm=r(74648);let eg,tg,rg;!function(e){e.PROD="prod",e.STAGING="staging",e.DEV="dev",e.LOCAL="local"}(eg||(eg={})),function(e){e.PGP_V1="x25519-xsalsa20-poly1305",e.PGP_V2="aes256GcmHkdfSha256",e.PGP_V3="eip191-aes256-gcm-hkdf-sha256",e.NFTPGP_V1="pgpv1:nft"}(tg||(tg={})),function(e){e.TEXT="Text",e.IMAGE="Image",e.VIDEO="Video",e.AUDIO="Audio",e.FILE="File",e.GIF="GIF",e.MEDIA_EMBED="MediaEmbed",e.META="Meta",e.REACTION="Reaction",e.RECEIPT="Receipt",e.USER_ACTIVITY="UserActivity",e.INTENT="Intent",e.REPLY="Reply",e.COMPOSITE="Composite",e.PAYMENT="Payment"}(rg||(rg={}));const ng={SCALABILITY_V2:"SCALABILITY_V2"},ig=Xm.version.includes("alpha")?"ALPHA":"STABLE",og={ENV:eg,ENCRYPTION_TYPE:tg,PAGINATION:{INITIAL_PAGE:1,LIMIT:10,LIMIT_MIN:1,LIMIT_MAX:50},DEFAULT_CHAIN_ID:11155111,DEV_CHAIN_ID:99999,NON_ETH_CHAINS:[137,80001,56,97,10,420,1442,1101,421613,42161,122,123],ETH_CHAINS:[1,11155111],ENC_TYPE_V1:"x25519-xsalsa20-poly1305",ENC_TYPE_V2:"aes256GcmHkdfSha256",ENC_TYPE_V3:"eip191-aes256-gcm-hkdf-sha256",ENC_TYPE_V4:"pgpv1:nft",ALPHA_FEATURES:ng};function sg(e,t={}){const{fees:r=e.fees,formatters:n=e.formatters,serializers:i=e.serializers}=t;return{...e,fees:r,formatters:n,serializers:i}}const ag=sg({id:42161,name:"Arbitrum One",network:"arbitrum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-mainnet.g.alchemy.com/v2"],webSocket:["wss://arb-mainnet.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-mainnet.infura.io/v3"],webSocket:["wss://arbitrum-mainnet.infura.io/ws/v3"]},default:{http:["https://arb1.arbitrum.io/rpc"]},public:{http:["https://arb1.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://arbiscan.io"},default:{name:"Arbiscan",url:"https://arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:7654707}}}),ug=sg({id:421613,name:"Arbitrum Goerli",network:"arbitrum-goerli",nativeCurrency:{name:"Arbitrum Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://arb-goerli.g.alchemy.com/v2"],webSocket:["wss://arb-goerli.g.alchemy.com/v2"]},infura:{http:["https://arbitrum-goerli.infura.io/v3"],webSocket:["wss://arbitrum-goerli.infura.io/ws/v3"]},default:{http:["https://goerli-rollup.arbitrum.io/rpc"]},public:{http:["https://goerli-rollup.arbitrum.io/rpc"]}},blockExplorers:{etherscan:{name:"Arbiscan",url:"https://goerli.arbiscan.io"},default:{name:"Arbiscan",url:"https://goerli.arbiscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:88114}},testnet:!0});var lg=r(98062),cg=r(93266);const hg={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559"};function dg(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,lg.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,lg.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?hg[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t}const fg=(0,cg.$)("transaction",dg);function pg(e){const t=e.transactions?.map((e=>"string"==typeof e?e:dg(e)));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,difficulty:e.difficulty?BigInt(e.difficulty):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}const mg=(0,cg.$)("block",pg);function gg(e,{args:t,eventName:r}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...r?{args:t,eventName:r}:{}}}const yg={"0x0":"reverted","0x1":"success"};function vg(e){return{...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map((e=>gg(e))):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,lg.ly)(e.transactionIndex):null,status:e.status?yg[e.status]:null,type:e.type?hg[e.type]||e.type:null}}const bg=(0,cg.$)("transactionReceipt",vg),wg={block:mg({format(e){const t=e.transactions?.map((e=>{if("string"==typeof e)return e;const t=dg(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,lg.y_)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}));return{transactions:t,stateRoot:e.stateRoot}}}),transaction:fg({format(e){const t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,lg.y_)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:bg({format:e=>({l1GasPrice:e.l1GasPrice?(0,lg.y_)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,lg.y_)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,lg.y_)(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})},_g=sg({id:56,name:"BNB Smart Chain",network:"bsc",nativeCurrency:{decimals:18,name:"BNB",symbol:"BNB"},rpcUrls:{default:{http:["https://rpc.ankr.com/bsc"]},public:{http:["https://rpc.ankr.com/bsc"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://bscscan.com"},default:{name:"BscScan",url:"https://bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:15921452}}}),Eg=sg({id:97,name:"Binance Smart Chain Testnet",network:"bsc-testnet",nativeCurrency:{decimals:18,name:"BNB",symbol:"tBNB"},rpcUrls:{default:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]},public:{http:["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]}},blockExplorers:{etherscan:{name:"BscScan",url:"https://testnet.bscscan.com"},default:{name:"BscScan",url:"https://testnet.bscscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:17422483}},testnet:!0});var Ag=r(95754),Mg=r(87370),Sg=r(76102);var xg=r(65367),kg=r(45211),Tg=r(63590),Cg=r(56130),Ig=r(91210),Ng=r(90042);r(43769);function Rg(e,t,r){return n=>e[t.name||r]?.(n)??t(e,n)}var Pg=r(21425);class Dg extends kg.G{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}var Lg=r(50126),Og=r(90577),jg=r(95858),Bg=r(44226),Ug=r(74566),Fg=r(83840);function zg({abi:e,eventName:t,args:r}){let n=e[0];if(t&&(n=(0,Fg.mE)({abi:e,args:r,name:t}),!n))throw new Pg.mv(t,{docsPath:"/docs/contract/encodeEventTopics"});if("event"!==n.type)throw new Pg.mv(void 0,{docsPath:"/docs/contract/encodeEventTopics"});const i=(0,Ug.t)(n),o=(0,Og.e)(i);let s=[];if(r&&"inputs"in n){const e=n.inputs?.filter((e=>"indexed"in e&&e.indexed)),t=Array.isArray(r)?r:Object.values(r).length>0?e?.map((e=>r[e.name]))??[]:[];t.length>0&&(s=e?.map(((e,r)=>Array.isArray(t[r])?t[r].map(((n,i)=>Hg({param:e,value:t[r][i]}))):t[r]?Hg({param:e,value:t[r]}):null))??[])}return[o,...s]}function Hg({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,jg.w)((0,Lg.O0)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new Dg(e.type);return(0,Bg.E)([e],[t])}function Gg(e,{method:t}){const r={};return"fallback"===e.transport.type&&e.transport.onResponse?.((({method:e,response:n,status:i,transport:o})=>{"success"===i&&t===e&&(r[n]=o.request)})),t=>r[t]||e.request}async function Yg(e,{address:t,abi:r,args:n,eventName:i,fromBlock:o,strict:s,toBlock:a}){const u=Gg(e,{method:"eth_newFilter"}),l=i?zg({abi:r,args:n,eventName:i}):void 0,c=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof o?(0,Ag.eC)(o):o,toBlock:"bigint"==typeof a?(0,Ag.eC)(a):a,topics:l}]});return{abi:r,args:n,eventName:i,id:c,request:u(c),strict:s,type:"event"}}var Kg=r(97386),qg=r(96109),Wg=r(40049),Vg=r(96153);const $g=3;function Qg(e,{abi:t,address:r,args:n,docsPath:i,functionName:o,sender:s}){const{code:a,data:u,message:l,shortMessage:c}=e instanceof Wg.VQ?e:e instanceof kg.G?e.walk((e=>"data"in e))||e.walk():{},h=e instanceof Pg.wb?new Wg.Dk({functionName:o}):[$g,Vg.XS.code].includes(a)&&(u||l||c)?new Wg.Lu({abi:t,data:"object"==typeof u?u.data:u,functionName:o,message:c??l}):e;return new Wg.uq(h,{abi:t,args:n,contractAddress:r,docsPath:i,functionName:o,sender:s})}class Jg extends kg.G{constructor({docsPath:e}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient."].join("\n"),{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}var Zg=r(24895),Xg=r(43194),ey=r(37265);class ty extends kg.G{constructor(e,{account:t,docsPath:r,chain:n,data:i,gas:o,gasPrice:s,maxFeePerGas:a,maxPriorityFeePerGas:u,nonce:l,to:c,value:h}){const d=(0,ey.xr)({from:t?.address,to:c,value:void 0!==h&&`${(0,Zg.d)(h)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:o,gasPrice:void 0!==s&&`${(0,Xg.o)(s)} gwei`,maxFeePerGas:void 0!==a&&`${(0,Xg.o)(a)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${(0,Xg.o)(u)} gwei`,nonce:l});super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",d].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}var ry=r(11429);var ny=r(77362),iy=r(82003);class oy extends kg.G{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}class sy extends kg.G{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}class ay extends kg.G{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,Xg.o)(e)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}class uy extends kg.G{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}async function ly(e,{blockHash:t,blockNumber:r,blockTag:n,includeTransactions:i}={}){const o=n??"latest",s=i??!1,a=void 0!==r?(0,Ag.eC)(r):void 0;let u=null;if(u=t?await e.request({method:"eth_getBlockByHash",params:[t,s]}):await e.request({method:"eth_getBlockByNumber",params:[a||o,s]}),!u)throw new uy({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||pg)(u)}async function cy(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}async function hy(e,t){const{block:r,chain:n=e.chain,request:i}=t||{};if("function"==typeof n?.fees?.defaultPriorityFee){const t=r||await Rg(e,ly,"getBlock")({});return n.fees.defaultPriorityFee({block:t,client:e,request:i})}if(void 0!==n?.fees?.defaultPriorityFee)return n?.fees?.defaultPriorityFee;try{const t=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,lg.y_)(t)}catch{const[t,n]=await Promise.all([r?Promise.resolve(r):Rg(e,ly,"getBlock")({}),Rg(e,cy,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new sy;const i=n-t.baseFeePerGas;return i<0n?0n:i}}async function dy(e,t){const{block:r,chain:n=e.chain,request:i,type:o="eip1559"}=t||{},s=await(async()=>"function"==typeof n?.fees?.baseFeeMultiplier?n.fees.baseFeeMultiplier({block:r,client:e,request:i}):n?.fees?.baseFeeMultiplier??1.2)();if(s<1)throw new oy;const a=10**(s.toString().split(".")[1]?.length??0),u=e=>e*BigInt(Math.ceil(s*a))/BigInt(a),l=r||await Rg(e,ly,"getBlock")({});if("function"==typeof n?.fees?.estimateFeesPerGas)return n.fees.estimateFeesPerGas({block:r,client:e,multiply:u,request:i,type:o});if("eip1559"===o){if("bigint"!=typeof l.baseFeePerGas)throw new sy;const t=i?.maxPriorityFeePerGas?i.maxPriorityFeePerGas:await hy(e,{block:l,chain:n,request:i}),r=u(l.baseFeePerGas);return{maxFeePerGas:i?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:i?.gasPrice??u(await Rg(e,cy,"getGasPrice")({}))}}async function fy(e,{address:t,blockTag:r="latest",blockNumber:n}){const i=await e.request({method:"eth_getTransactionCount",params:[t,n?(0,Ag.eC)(n):r]});return(0,lg.ly)(i)}function py(e){if(e.type)return e.type;if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new ey.j3({transaction:e})}async function my(e,t){const{account:r=e.account,chain:n,gas:i,nonce:o,type:s}=t;if(!r)throw new Jg;const a=(0,Kg.T)(r),u=await Rg(e,ly,"getBlock")({blockTag:"latest"}),l={...t,from:a.address};if(void 0===o&&(l.nonce=await Rg(e,fy,"getTransactionCount")({address:a.address,blockTag:"pending"})),void 0===s)try{l.type=py(l)}catch{l.type="bigint"==typeof u.baseFeePerGas?"eip1559":"legacy"}if("eip1559"===l.type){const{maxFeePerGas:r,maxPriorityFeePerGas:i}=await dy(e,{block:u,chain:n,request:l});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas{const t=(0,ry.k)(e,r);return t instanceof Cg.cj?e:t})();return new ty(n,{docsPath:t,...r})}(dVe,{...t,account:n,chain:e.chain})}}async function yy(e,{abi:t,address:r,args:n,functionName:i,...o}){const s=(0,qg.R)({abi:t,args:n,functionName:i});try{return await Rg(e,gy,"estimateGas")({data:s,to:r,...o})}catch(dVe){throw Qg(dVe,{abi:t,address:r,args:n,docsPath:"/docs/contract/estimateContractGas",functionName:i,sender:(o.account?(0,Kg.T)(o.account):void 0)?.address})}}var vy=r(67807);const by="/docs/contract/decodeEventLog";function wy({abi:e,data:t,strict:r,topics:n}){const i=r??!0,[o,...s]=n;if(!o)throw new Pg.FM({docsPath:by});const a=e.find((e=>"event"===e.type&&o===(0,Og.e)((0,Ug.t)(e))));if(!a||!("name"in a)||"event"!==a.type)throw new Pg.lC(o,{docsPath:by});const{name:u,inputs:l}=a,c=l?.some((e=>!("name"in e&&e.name)));let h=c?[]:{};const d=l.filter((e=>"indexed"in e&&e.indexed));for(let p=0;p!("indexed"in e&&e.indexed)));if(f.length>0)if(t&&"0x"!==t)try{const e=(0,vy.r)(f,t);if(e)if(c)h=[...h,...e];else for(let t=0;t0?h:void 0}}function _y({param:e,value:t}){if("string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))return t;return((0,vy.r)([e],t)||[])[0]}async function Ey(e,{address:t,blockHash:r,fromBlock:n,toBlock:i,event:o,events:s,args:a,strict:u}={}){const l=u??!1,c=s??(o?[o]:void 0);let h,d=[];return c&&(d=[c.flatMap((e=>zg({abi:[e],eventName:e.name,args:a})))],o&&(d=d[0])),h=r?await e.request({method:"eth_getLogs",params:[{address:t,topics:d,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:d,fromBlock:"bigint"==typeof n?(0,Ag.eC)(n):n,toBlock:"bigint"==typeof i?(0,Ag.eC)(i):i}]}),h.map((e=>{try{const{eventName:t,args:r}=c?wy({abi:c,data:e.data,topics:e.topics,strict:l}):{eventName:void 0,args:void 0};return gg(e,{args:r,eventName:t})}catch(dVe){let r,n;if(dVe instanceof Pg.SM||dVe instanceof Pg.Gy){if(l)return;r=dVe.abiItem.name,n=dVe.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}return gg(e,{args:n?[]:{},eventName:r})}})).filter(Boolean)}async function Ay(e,{abi:t,address:r,args:n,blockHash:i,eventName:o,fromBlock:s,toBlock:a,strict:u}){const l=o?(0,Fg.mE)({abi:t,name:o}):void 0,c=l?void 0:t.filter((e=>"event"===e.type));return Rg(e,Ey,"getLogs")({address:r,args:n,blockHash:i,event:l,events:c,fromBlock:s,toBlock:a,strict:u})}var My=r(31448),Sy=r(91226);async function xy(e,{abi:t,address:r,args:n,functionName:i,...o}){const s=(0,qg.R)({abi:t,args:n,functionName:i});try{const{data:a}=await Rg(e,Sy.R,"call")({data:s,to:r,...o});return(0,My.k)({abi:t,args:n,functionName:i,data:a||"0x"})}catch(dVe){throw Qg(dVe,{abi:t,address:r,args:n,docsPath:"/docs/contract/readContract",functionName:i})}}async function ky(e,{abi:t,address:r,args:n,dataSuffix:i,functionName:o,...s}){const a=s.account?(0,Kg.T)(s.account):void 0,u=(0,qg.R)({abi:t,args:n,functionName:o});try{const{data:a}=await Rg(e,Sy.R,"call")({batch:!1,data:`${u}${i?i.replace("0x",""):""}`,to:r,...s});return{result:(0,My.k)({abi:t,args:n,functionName:o,data:a||"0x"}),request:{abi:t,address:r,args:n,dataSuffix:i,functionName:o,...s}}}catch(dVe){throw Qg(dVe,{abi:t,address:r,args:n,docsPath:"/docs/contract/simulateContract",functionName:o,sender:a?.address})}}const Ty=new Map,Cy=new Map;let Iy=0;function Ny(e,t,r){const n=++Iy,i=()=>Ty.get(e)||[],o=()=>{const t=Cy.get(e);1===i().length&&t&&t(),(()=>{const t=i();Ty.set(e,t.filter((e=>e.id!==n)))})()},s=i();if(Ty.set(e,[...s,{id:n,fns:t}]),s&&s.length>0)return o;const a={};for(const l in t)a[l]=(...e)=>{const t=i();if(0!==t.length)for(const r of t)r.fns[l]?.(...e)};const u=r(a);return"function"==typeof u&&Cy.set(e,u),o}async function Ry(e){return new Promise((t=>setTimeout(t,e)))}function Py(e,{emitOnBegin:t,initialWaitTime:r,interval:n}){let i=!0;const o=()=>i=!1;return(async()=>{let s;t&&(s=await e({unpoll:o}));const a=await(r?.(s))??n;await Ry(a);const u=async()=>{i&&(await e({unpoll:o}),await Ry(n),u())};u()})(),o}var Dy=r(77394);const Ly=new Map,Oy=new Map;async function jy(e,{cacheKey:t,cacheTime:r=1/0}){const n=function(e){const t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),r=t(e,Ly),n=t(e,Oy);return{clear:()=>{r.clear(),n.clear()},promise:r,response:n}}(t),i=n.response.get();if(i&&r>0){if((new Date).getTime()-i.created.getTime()`blockNumber.${e}`;async function Uy(e,{cacheTime:t=e.cacheTime,maxAge:r}={}){const n=await jy((()=>e.request({method:"eth_blockNumber"})),{cacheKey:By(e.uid),cacheTime:r??t});return BigInt(n)}async function Fy(e,{filter:t}){const r="strict"in t&&t.strict;return(await t.request({method:"eth_getFilterChanges",params:[t.id]})).map((e=>{if("string"==typeof e)return e;try{const{eventName:n,args:i}="abi"in t&&t.abi?wy({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return gg(e,{args:i,eventName:n})}catch(dVe){let n,i;if(dVe instanceof Pg.SM||dVe instanceof Pg.Gy){if("strict"in t&&t.strict)return;n=dVe.abiItem.name,i=dVe.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}return gg(e,{args:i?[]:{},eventName:n})}})).filter(Boolean)}async function zy(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}function Hy(e,{abi:t,address:r,args:n,batch:i=!0,eventName:o,onError:s,onLogs:a,poll:u,pollingInterval:l=e.pollingInterval,strict:c}){return(void 0!==u?u:"webSocket"!==e.transport.type)?(()=>{const u=(0,Dy.P)(["watchContractEvent",r,n,i,e.uid,o,l]),h=c??!1;return Ny(u,{onLogs:a,onError:s},(s=>{let a,u,c=!1;const d=Py((async()=>{if(c)try{let l;if(u)l=await Rg(e,Fy,"getFilterChanges")({filter:u});else{const i=await Rg(e,Uy,"getBlockNumber")({});l=a&&a!==i?await Rg(e,Ay,"getContractEvents")({abi:t,address:r,args:n,eventName:o,fromBlock:a+1n,toBlock:i,strict:h}):[],a=i}if(0===l.length)return;if(i)s.onLogs(l);else for(const e of l)s.onLogs([e])}catch(dVe){u&&dVe instanceof Vg.yR&&(c=!1),s.onError?.(dVe)}else{try{u=await Rg(e,Yg,"createContractEventFilter")({abi:t,address:r,args:n,eventName:o,strict:h})}catch{}c=!0}}),{emitOnBegin:!0,interval:l});return async()=>{u&&await Rg(e,zy,"uninstallFilter")({filter:u}),d()}}))})():(()=>{let i=!0,u=()=>i=!1;return(async()=>{try{const l=o?zg({abi:t,eventName:o,args:n}):[],{unsubscribe:h}=await e.transport.subscribe({params:["logs",{address:r,topics:l}],onData(e){if(!i)return;const r=e.result;try{const{eventName:e,args:n}=wy({abi:t,data:r.data,topics:r.topics,strict:c}),i=gg(r,{args:n,eventName:e});a([i])}catch(dVe){let t,n;if(dVe instanceof Pg.SM||dVe instanceof Pg.Gy){if(c)return;t=dVe.abiItem.name,n=dVe.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}const i=gg(r,{args:n?[]:{},eventName:t});a([i])}},onError(e){s?.(e)}});u=h,i||u()}catch(dVe){s?.(dVe)}})(),u})()}function Gy({chain:e,currentChainId:t}){if(!e)throw new Tg.Bk;if(t!==e.id)throw new Tg.Yl({chain:e,currentChainId:t})}async function Yy(e){const t=await e.request({method:"eth_chainId"});return(0,lg.ly)(t)}async function Ky(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]})}async function qy(e,t){const{account:r=e.account,chain:n=e.chain,accessList:i,data:o,gas:s,gasPrice:a,maxFeePerGas:u,maxPriorityFeePerGas:l,nonce:c,to:h,value:d,...f}=t;if(!r)throw new Jg({docsPath:"/docs/actions/wallet/sendTransaction"});const p=(0,Kg.T)(r);try{let r;if((0,iy.F)(t),null!==n&&(r=await Rg(e,Yy,"getChainId")({}),Gy({currentChainId:r,chain:n})),"local"===p.type){const t=await Rg(e,my,"prepareTransactionRequest")({account:p,accessList:i,chain:n,data:o,gas:s,gasPrice:a,maxFeePerGas:u,maxPriorityFeePerGas:l,nonce:c,to:h,value:d,...f});r||(r=await Rg(e,Yy,"getChainId")({}));const m=n?.serializers?.transaction,g=await p.signTransaction({...t,chainId:r},{serializer:m});return await Rg(e,Ky,"sendRawTransaction")({serializedTransaction:g})}const m=e.chain?.formatters?.transactionRequest?.format,g=(m||Mg.tG)({...(0,ny.K)(f,{format:m}),accessList:i,data:o,from:p.address,gas:s,gasPrice:a,maxFeePerGas:u,maxPriorityFeePerGas:l,nonce:c,to:h,value:d});return await e.request({method:"eth_sendTransaction",params:[g]})}catch(dVe){throw function(e,{docsPath:t,...r}){const n=(()=>{const t=(0,ry.k)(e,r);return t instanceof Cg.cj?e:t})();return new ey.mk(n,{docsPath:t,...r})}(dVe,{...t,account:p,chain:t.chain||void 0})}}async function Wy(e,{abi:t,address:r,args:n,dataSuffix:i,functionName:o,...s}){const a=(0,qg.R)({abi:t,args:n,functionName:o});return await Rg(e,qy,"sendTransaction")({data:`${a}${i?i.replace("0x",""):""}`,to:r,...s})}function Vy({abi:e,address:t,publicClient:r,walletClient:n}){const i=null!=r,o=null!=n,s={};let a=!1,u=!1,l=!1;for(const c of e)if("function"===c.type?"view"===c.stateMutability||"pure"===c.stateMutability?a=!0:u=!0:"event"===c.type&&(l=!0),a&&u&&l)break;return i&&(a&&(s.read=new Proxy({},{get:(n,i)=>(...n)=>{const{args:o,options:s}=$y(n);return Rg(r,xy,"readContract")({abi:e,address:t,functionName:i,args:o,...s})}})),u&&(s.simulate=new Proxy({},{get:(n,i)=>(...n)=>{const{args:o,options:s}=$y(n);return Rg(r,ky,"simulateContract")({abi:e,address:t,functionName:i,args:o,...s})}})),l&&(s.createEventFilter=new Proxy({},{get:(n,i)=>(...n)=>{const o=e.find((e=>"event"===e.type&&e.name===i)),{args:s,options:a}=Qy(n,o);return Rg(r,Yg,"createContractEventFilter")({abi:e,address:t,eventName:i,args:s,...a})}}),s.getEvents=new Proxy({},{get:(n,i)=>(...n)=>{const o=e.find((e=>"event"===e.type&&e.name===i)),{args:s,options:a}=Qy(n,o);return Rg(r,Ay,"getContractEvents")({abi:e,address:t,eventName:i,args:s,...a})}}),s.watchEvent=new Proxy({},{get:(n,i)=>(...n)=>{const o=e.find((e=>"event"===e.type&&e.name===i)),{args:s,options:a}=Qy(n,o);return Rg(r,Hy,"watchContractEvent")({abi:e,address:t,eventName:i,args:s,...a})}}))),o&&u&&(s.write=new Proxy({},{get:(r,i)=>(...r)=>{const{args:o,options:s}=$y(r);return Rg(n,Wy,"writeContract")({abi:e,address:t,functionName:i,args:o,...s})}})),(i||o)&&u&&(s.estimateGas=new Proxy({},{get:(i,o)=>(...i)=>{const{args:s,options:a}=$y(i);return Rg(r??n,yy,"estimateContractGas")({abi:e,address:t,functionName:o,args:s,...a,account:a.account??n.account})}})),s.address=t,s.abi=e,s}function $y(e){const t=e.length&&Array.isArray(e[0]);return{args:t?e[0]:[],options:(t?e[1]:e[0])??{}}}function Qy(e,t){let r=!1;Array.isArray(e[0])?r=!0:1===e.length?r=t.inputs.some((e=>e.indexed)):2===e.length&&(r=!0);return{args:r?e[0]:void 0,options:(r?e[1]:e[0])??{}}}var Jy=r(79858);let Zy,Xy=256;function ev(e=11){if(!Zy||Xy+e>512){Zy="",Xy=0;for(let e=0;e<256;e++)Zy+=(256+256*Math.random()|0).toString(16).substring(1)}return Zy.substring(Xy,Xy+++e)}function tv(e){const{batch:t,cacheTime:r=e.pollingInterval??4e3,key:n="base",name:i="Base Client",pollingInterval:o=4e3,type:s="base"}=e,a=e.chain,u=e.account?(0,Kg.T)(e.account):void 0,{config:l,request:c,value:h}=e.transport({chain:a,pollingInterval:o}),d={account:u,batch:t,cacheTime:r,chain:a,key:n,name:i,pollingInterval:o,request:c,transport:{...l,...h},type:s,uid:ev()};return Object.assign(d,{extend:function e(t){return r=>{const n=r(t);for(const e in d)delete n[e];const i={...t,...n};return Object.assign(i,{extend:e(i)})}}(d)})}var rv=r(73042);function nv(e,{delay:t=100,retryCount:r=2,shouldRetry:n=(()=>!0)}={}){return new Promise(((i,o)=>{const s=async({count:a=0}={})=>{try{const t=await e();i(t)}catch(dVe){if(a{const r="function"==typeof t?t({count:a,error:e}):t;r&&await Ry(r),s({count:a+1})})({error:dVe});o(dVe)}};s()}))}function iv(e,{retryDelay:t=150,retryCount:r=3}={}){return async n=>nv((async()=>{try{return await e(n)}catch(t){const e=t;switch(e.code){case Vg.s7.code:throw new Vg.s7(e);case Vg.B.code:throw new Vg.B(e);case Vg.LX.code:throw new Vg.LX(e);case Vg.nY.code:throw new Vg.nY(e);case Vg.XS.code:throw new Vg.XS(e);case Vg.yR.code:throw new Vg.yR(e);case Vg.Og.code:throw new Vg.Og(e);case Vg.pT.code:throw new Vg.pT(e);case Vg.KB.code:throw new Vg.KB(e);case Vg.gS.code:throw new Vg.gS(e);case Vg.Pv.code:throw new Vg.Pv(e);case Vg.GD.code:throw new Vg.GD(e);case Vg.ab.code:throw new Vg.ab(e);case Vg.PE.code:throw new Vg.PE(e);case Vg.Ts.code:throw new Vg.Ts(e);case Vg.u5.code:throw new Vg.u5(e);case Vg.I0.code:throw new Vg.I0(e);case Vg.x3.code:throw new Vg.x3(e);case 5e3:throw new Vg.ab(e);default:if(t instanceof kg.G)throw t;throw new Vg.ir(e)}}}),{delay:({count:e,error:r})=>{if(r&&r instanceof rv.Gg){const e=r?.headers?.get("Retry-After");if(e?.match(/\d/))return 1e3*parseInt(e)}return~~(1<!(e=>"code"in e?-1!==e.code&&-32004!==e.code&&-32005!==e.code&&-32042!==e.code&&-32603!==e.code:!!(e instanceof rv.Gg&&e.status)&&403!==e.status&&408!==e.status&&413!==e.status&&429!==e.status&&500!==e.status&&502!==e.status&&503!==e.status&&504!==e.status)(e)})}function ov({key:e,name:t,request:r,retryCount:n=3,retryDelay:i=150,timeout:o,type:s},a){return{config:{key:e,name:t,request:r,retryCount:n,retryDelay:i,timeout:o,type:s},request:iv(r,{retryCount:n,retryDelay:i}),value:a}}function sv(e,t={}){const{key:r="custom",name:n="Custom Provider",retryDelay:i}=t;return({retryCount:o})=>ov({key:r,name:n,request:e.request.bind(e),retryCount:t.retryCount??o,retryDelay:i,type:"custom"})}class av extends kg.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}var uv=r(89808);!function(){if("undefined"!=typeof WebSocket)return WebSocket;if(void 0!==global.WebSocket)return global.WebSocket;if(void 0!==window.WebSocket)return window.WebSocket;if(void 0!==self.WebSocket)return self.WebSocket;throw new Error("`WebSocket` is not supported in this environment")}();function lv(e,{errorInstance:t=new Error("timed out"),timeout:r,signal:n}){return new Promise(((i,o)=>{(async()=>{let s;try{const a=new AbortController;r>0&&(s=setTimeout((()=>{n?a.abort():o(t)}),r)),i(await e({signal:a?.signal}))}catch(dVe){"AbortError"===dVe.name&&o(t),o(dVe)}finally{clearTimeout(s)}})()}))}let cv=0;const hv={http:async function(e,{body:t,fetchOptions:r={},timeout:n=1e4}){const{headers:i,method:o,signal:s}=r;try{const a=await lv((async({signal:a})=>await fetch(e,{...r,body:Array.isArray(t)?(0,Dy.P)(t.map((e=>({jsonrpc:"2.0",id:e.id??cv++,...e})))):(0,Dy.P)({jsonrpc:"2.0",id:t.id??cv++,...t}),headers:{...i,"Content-Type":"application/json"},method:o||"POST",signal:s||(n>0?a:void 0)})),{errorInstance:new rv.W5({body:t,url:e}),timeout:n,signal:!0});let u;if(u=a.headers.get("Content-Type")?.startsWith("application/json")?await a.json():await a.text(),!a.ok)throw new rv.Gg({body:t,details:(0,Dy.P)(u.error)||a.statusText,headers:a.headers,status:a.status,url:e});return u}catch(dVe){if(dVe instanceof rv.Gg)throw dVe;if(dVe instanceof rv.W5)throw dVe;throw new rv.Gg({body:t,details:dVe.message,url:e})}},webSocket:function(e,{body:t,onResponse:r}){if(e.readyState===e.CLOSED||e.readyState===e.CLOSING)throw new rv.c9({body:t,url:e.url,details:"Socket is closed."});const n=cv++,i=({data:o})=>{const s=JSON.parse(o);"number"==typeof s.id&&n!==s.id||(r?.(s),"eth_subscribe"===t.method&&"string"==typeof s.result&&e.subscriptions.set(s.result,i),"eth_unsubscribe"===t.method&&e.subscriptions.delete(t.params?.[0]))};return e.requests.set(n,i),e.send(JSON.stringify({jsonrpc:"2.0",...t,id:n})),e},webSocketAsync:async function(e,{body:t,timeout:r=1e4}){return lv((()=>new Promise((r=>hv.webSocket(e,{body:t,onResponse:r})))),{errorInstance:new rv.W5({body:t,url:e.url}),timeout:r})}};function dv(e,t={}){const{batch:r,fetchOptions:n,key:i="http",name:o="HTTP JSON-RPC",retryDelay:s}=t;return({chain:a,retryCount:u,timeout:l})=>{const{batchSize:c=1e3,wait:h=0}="object"==typeof r?r:{},d=t.retryCount??u,f=l??t.timeout??1e4,p=e||a?.rpcUrls.default.http[0];if(!p)throw new av;return ov({key:i,name:o,async request({method:t,params:i}){const o={method:t,params:i},{schedule:s}=(0,uv.S)({id:`${e}`,wait:h,shouldSplitBatch:e=>e.length>c,fn:e=>hv.http(p,{body:e,fetchOptions:n,timeout:f}),sort:(e,t)=>e.id-t.id}),[{error:a,result:u}]=await(async e=>r?s(e):[await hv.http(p,{body:e,fetchOptions:n,timeout:f})])(o);if(a)throw new rv.bs({body:o,error:a,url:p});return u},retryCount:d,retryDelay:s,timeout:f,type:"http"},{fetchOptions:n,url:e})}}var fv=r(97546),pv=r(50801),mv=r(69300);function gv(e,t){if(!(e instanceof kg.G))return!1;const r=e.walk((e=>e instanceof Wg.Lu));return r instanceof Wg.Lu&&("ResolverNotFound"===r.data?.errorName||("ResolverWildcardNotSupported"===r.data?.errorName||(!!r.reason?.includes("Wildcard on non-extended resolvers is not supported")||"reverse"===t&&r.reason===mv.$[50])))}var yv=r(51389);function vv(e){if(66!==e.length)return null;if(0!==e.indexOf("["))return null;if(65!==e.indexOf("]"))return null;const t=`0x${e.slice(1,65)}`;return(0,yv.v)(t)?t:null}function bv(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,Ag.ci)(t);const r=e.split(".");for(let n=r.length-1;n>=0;n-=1){const e=vv(r[n]),i=e?(0,Lg.O0)(e):(0,jg.w)((0,Lg.qX)(r[n]),"bytes");t=(0,jg.w)((0,Ng.zo)([t,i]),"bytes")}return(0,Ag.ci)(t)}function wv(e){return`[${e.slice(2)}]`}function _v(e){const t=new Uint8Array(32).fill(0);return e?vv(e)||(0,jg.w)((0,Lg.qX)(e)):(0,Ag.ci)(t)}function Ev(e){const t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);const r=new Uint8Array((0,Lg.qX)(t).byteLength+2);let n=0;const i=t.split(".");for(let o=0;o255&&(e=(0,Lg.qX)(wv(_v(i[o])))),r[n]=e.length,r.set(e,n+1),n+=e.length+1}return r.byteLength!==n+1?r.slice(0,n+1):r}class Av extends kg.G{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class Mv extends kg.G{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class Sv extends kg.G{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class xv extends kg.G{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}const kv=/(?https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?\/)?(?ipfs\/|ipns\/)?(?[\w\-.]+)(?\/.*)?/,Tv=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?[\w\-.]+))?(?\/.*)?$/,Cv=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,Iv=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;function Nv(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function Rv({uri:e,gatewayUrls:t}){const r=Cv.test(e);if(r)return{uri:e,isOnChain:!0,isEncoded:r};const n=Nv(t?.ipfs,"https://ipfs.io"),i=Nv(t?.arweave,"https://arweave.net"),o=e.match(kv),{protocol:s,subpath:a,target:u,subtarget:l=""}=o?.groups||{},c="ipns:/"===s||"ipns/"===a,h="ipfs:/"===s||"ipfs/"===a||Tv.test(e);if(e.startsWith("http")&&!c&&!h){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((c||h)&&u)return{uri:`${n}/${c?"ipns":"ipfs"}/${u}${l}`,isOnChain:!1,isEncoded:!1};if("ar:/"===s&&u)return{uri:`${i}/${u}${l||""}`,isOnChain:!1,isEncoded:!1};let d=e.replace(Iv,"");if(d.startsWith("{const r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e}))}}(r);if(i)return r;throw new Sv({uri:t})}async function Lv(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?async function(e,{gatewayUrls:t,record:r}){const n=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[r,n,i]=t.split("/"),[o,s]=r.split(":"),[a,u]=n.split(":");if(!o||"eip155"!==o.toLowerCase())throw new Mv({reason:"Only EIP-155 supported"});if(!s)throw new Mv({reason:"Chain ID not found"});if(!u)throw new Mv({reason:"Contract address not found"});if(!i)throw new Mv({reason:"Token ID not found"});if(!a)throw new Mv({reason:"ERC namespace not found"});return{chainID:parseInt(s),namespace:a.toLowerCase(),contractAddress:u,tokenID:i}}(r),i=await async function(e,{nft:t}){if("erc721"===t.namespace)return xy(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return xy(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new xv({namespace:t.namespace})}(e,{nft:n}),{uri:o,isOnChain:s,isEncoded:a}=Rv({uri:i,gatewayUrls:t});if(s&&(o.includes("data:application/json;base64,")||o.startsWith("{"))){const e=a?atob(o.replace("data:application/json;base64,","")):o;return Dv({uri:Pv(JSON.parse(e)),gatewayUrls:t})}let u=n.tokenID;"erc1155"===n.namespace&&(u=u.replace("0x","").padStart(64,"0"));return async function({gatewayUrls:e,uri:t}){try{const r=await fetch(t).then((e=>e.json()));return await Dv({gatewayUrls:e,uri:Pv(r)})}catch{throw new Sv({uri:t})}}({gatewayUrls:t,uri:o.replace(/(?:0x)?{id}/,u)})}(e,{gatewayUrls:t,record:r}):Dv({uri:r,gatewayUrls:t})}async function Ov(e,{blockNumber:t,blockTag:r,name:n,key:i,universalResolverAddress:o}){let s=o;if(!s){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");s=(0,pv.L)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const o=await Rg(e,xy,"readContract")({address:s,abi:fv.k3,functionName:"resolve",args:[(0,Ag.NC)(Ev(n)),(0,qg.R)({abi:fv.nZ,functionName:"text",args:[bv(n),i]})],blockNumber:t,blockTag:r});if("0x"===o[0])return null;const a=(0,My.k)({abi:fv.nZ,functionName:"text",data:o[0]});return""===a?null:a}catch(dVe){if(gv(dVe,"resolve"))return null;throw dVe}}async function jv(e,{address:t,args:r,event:n,events:i,fromBlock:o,strict:s,toBlock:a}={}){const u=i??(n?[n]:void 0),l=Gg(e,{method:"eth_newFilter"});let c=[];u&&(c=[u.flatMap((e=>zg({abi:[e],eventName:e.name,args:r})))],n&&(c=c[0]));const h=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof o?(0,Ag.eC)(o):o,toBlock:"bigint"==typeof a?(0,Ag.eC)(a):a,...c.length?{topics:c}:{}}]});return{abi:u,args:r,eventName:n?n.name:void 0,fromBlock:o,id:h,request:l(h),strict:s,toBlock:a,type:"event"}}async function Bv(e){const t=Gg(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}async function Uv(e,{blockCount:t,blockNumber:r,blockTag:n="latest",rewardPercentiles:i}){const o=r?(0,Ag.eC)(r):void 0;return function(e){return{baseFeePerGas:e.baseFeePerGas.map((e=>BigInt(e))),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map((e=>e.map((e=>BigInt(e)))))}}(await e.request({method:"eth_feeHistory",params:[(0,Ag.eC)(t),o||n,i]}))}r(4852);const Fv=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,zv=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;var Hv=r(69764);function Gv({domain:e,message:t,primaryType:r,types:n}){const i=void 0===e?{}:e,o={EIP712Domain:Qv({domain:i}),...n};$v({domain:i,message:t,primaryType:r,types:o});const s=["0x1901"];return i&&s.push(function({domain:e,types:t}){return Yv({data:e,primaryType:"EIP712Domain",types:t})}({domain:i,types:o})),"EIP712Domain"!==r&&s.push(Yv({data:t,primaryType:r,types:o})),(0,jg.w)((0,Ng.zo)(s))}function Yv({data:e,primaryType:t,types:r}){const n=Kv({data:e,primaryType:t,types:r});return(0,jg.w)(n)}function Kv({data:e,primaryType:t,types:r}){const n=[{type:"bytes32"}],i=[qv({primaryType:t,types:r})];for(const o of r[t]){const[t,s]=Vv({types:r,name:o.name,type:o.type,value:e[o.name]});n.push(t),i.push(s)}return(0,Bg.E)(n,i)}function qv({primaryType:e,types:t}){const r=(0,Ag.NC)(function({primaryType:e,types:t}){let r="";const n=Wv({primaryType:e,types:t});n.delete(e);const i=[e,...Array.from(n).sort()];for(const o of i)r+=`${o}(${t[o].map((({name:e,type:t})=>`${t} ${e}`)).join(",")})`;return r}({primaryType:e,types:t}));return(0,jg.w)(r)}function Wv({primaryType:e,types:t},r=new Set){const n=e.match(/^\w*/u)?.[0];if(r.has(n)||void 0===t[n])return r;r.add(n);for(const i of t[n])Wv({primaryType:i.type,types:t},r);return r}function Vv({types:e,name:t,type:r,value:n}){if(void 0!==e[r])return[{type:"bytes32"},(0,jg.w)(Kv({data:n,primaryType:r,types:e}))];if("bytes"===r){return n=`0x${(n.length%2?"0":"")+n.slice(2)}`,[{type:"bytes32"},(0,jg.w)(n)]}if("string"===r)return[{type:"bytes32"},(0,jg.w)((0,Ag.NC)(n))];if(r.lastIndexOf("]")===r.length-1){const i=r.slice(0,r.lastIndexOf("[")),o=n.map((r=>Vv({name:t,type:i,types:e,value:r})));return[{type:"bytes32"},(0,jg.w)((0,Bg.E)(o.map((([e])=>e)),o.map((([,e])=>e))))]}return[{type:r},n]}function $v({domain:e,message:t,primaryType:r,types:n}){const i=n,o=(e,t)=>{for(const r of e){const{name:e,type:n}=r,s=n,a=t[e],u=s.match(zv);if(u&&("number"==typeof a||"bigint"==typeof a)){const[e,t,r]=u;(0,Ag.eC)(a,{signed:"int"===t,size:parseInt(r)/8})}if("address"===s&&"string"==typeof a&&!(0,Ig.U)(a))throw new xg.b({address:a});const l=s.match(Fv);if(l){const[e,t]=l;if(t&&(0,Hv.d)(a)!==parseInt(t))throw new Pg.KY({expectedSize:parseInt(t),givenSize:(0,Hv.d)(a)})}const c=i[s];c&&o(c,a)}};if(i.EIP712Domain&&e&&o(i.EIP712Domain,e),"EIP712Domain"!==r){const e=i[r];o(e,t)}}function Qv({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},"number"==typeof e?.chainId&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}r(24875),r(65270),r(4926);const Jv="/docs/contract/encodeDeployData";function Zv({abi:e,args:t,bytecode:r}){if(!t||0===t.length)return r;const n=e.find((e=>"type"in e&&"constructor"===e.type));if(!n)throw new Pg.fM({docsPath:Jv});if(!("inputs"in n))throw new Pg.cO({docsPath:Jv});if(!n.inputs||0===n.inputs.length)throw new Pg.cO({docsPath:Jv});const i=(0,Bg.E)(n.inputs,t);return(0,Ng.SM)([r,i])}r(36480);r(58290);r(80241);r(32716);class Xv extends kg.G{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}}class eb extends kg.G{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}}new Uint8Array,new DataView(new ArrayBuffer(0));r(18866);r(82455);r(79950),r(1623);const tb=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),rb=Uint8Array.from({length:16},((e,t)=>t)),nb=rb.map((e=>(9*e+5)%16));let ib=[rb],ob=[nb];for(let pVe=0;pVe<4;pVe++)for(let e of[ib,ob])e.push(e[pVe].map((e=>tb[e])));async function sb({hash:e,signature:t}){return function(e){const t=(0,jg.w)(`0x${e.substring(4)}`).substring(26);return(0,Jy.x)(`0x${t}`)}(await async function({hash:e,signature:t}){const n=(0,yv.v)(t)?t:(0,Ag.NC)(t),i=(0,yv.v)(e)?e:(0,Ag.NC)(e);let o=(0,lg.ly)(`0x${n.slice(130)}`);0!==o&&1!==o||(o+=27);const{secp256k1:s}=await Promise.resolve().then(r.bind(r,71318));return`0x${s.Signature.fromCompact(n.substring(2,130)).addRecoveryBit(o-27).recoverPublicKey(i.substring(2)).toHex(!1)}`}({hash:e,signature:t}))}function ab(e,t){const r="string"==typeof e?(0,Lg.qX)(e):e.raw instanceof Uint8Array?e.raw:(0,Lg.O0)(e.raw),n=(0,Lg.qX)(`\x19Ethereum Signed Message:\n${r.length}`);return(0,jg.w)((0,Ng.zo)([n,r]),t)}r(61209);function ub(e,t){let[r,n="0"]=e.split(".");const i=r.startsWith("-");if(i&&(r=r.slice(1)),n=n.replace(/(0+)$/,""),0===t)1===Math.round(Number(`.${n}`))&&(r=`${BigInt(r)+1n}`),n="";else if(n.length>t){const[e,i,o]=[n.slice(0,t-1),n.slice(t-1,t),n.slice(t)],s=Math.round(Number(`${i}.${o}`));n=s>9?`${BigInt(e)+BigInt(1)}0`.padStart(e.length+1,"0"):`${e}${s}`,n.length>t&&(n=n.slice(1),r=`${BigInt(r)+1n}`),n=n.slice(0,t)}else n=n.padEnd(t,"0");return BigInt(`${i?"-":""}${r}${n}`)}r(39908);async function lb(e,{address:t,blockNumber:r,blockTag:n,storageKeys:i}){const o=n??"latest",s=void 0!==r?(0,Ag.eC)(r):void 0;return function(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?(0,lg.ly)(e.nonce):void 0,storageProof:e.storageProof?(t=e.storageProof,t.map((e=>({...e,value:BigInt(e.value)})))):void 0};var t}(await e.request({method:"eth_getProof",params:[t,i,s||o]}))}async function cb(e,{blockHash:t,blockNumber:r,blockTag:n,hash:i,index:o}){const s=n||"latest",a=void 0!==r?(0,Ag.eC)(r):void 0;let u=null;if(i?u=await e.request({method:"eth_getTransactionByHash",params:[i]}):t?u=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,Ag.eC)(o)]}):(a||s)&&(u=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[a||s,(0,Ag.eC)(o)]})),!u)throw new ey.Bh({blockHash:t,blockNumber:r,blockTag:s,hash:i,index:o});return(e.chain?.formatters?.transaction?.format||dg)(u)}async function hb(e,{hash:t}){const r=await e.request({method:"eth_getTransactionReceipt",params:[t]});if(!r)throw new ey.Yb({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||vg)(r)}var db=r(91465);async function fb(e,{address:t,hash:r,signature:n,...i}){const o=(0,yv.v)(n)?n:(0,Ag.NC)(n);try{const{data:n}=await Rg(e,Sy.R,"call")({data:Zv({abi:fv.$o,args:[t,r,o],bytecode:"0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"}),...i});return function(e,t){const r=(0,yv.v)(e)?(0,Lg.O0)(e):e,n=(0,yv.v)(t)?(0,Lg.O0)(t):t;return(0,db.equalBytes)(r,n)}(n??"0x0","0x1")}catch(XMe){if(XMe instanceof Wg.cg)return!1;throw XMe}}function pb(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:n,onError:i,poll:o,pollingInterval:s=e.pollingInterval}){let a;return(void 0!==o?o:"webSocket"!==e.transport.type)?Ny((0,Dy.P)(["watchBlockNumber",e.uid,t,r,s]),{onBlockNumber:n,onError:i},(n=>Py((async()=>{try{const t=await Rg(e,Uy,"getBlockNumber")({cacheTime:0});if(a){if(t===a)return;if(t-a>1&&r)for(let e=a+1n;ea)&&(n.onBlockNumber(t,a),a=t)}catch(dVe){n.onError?.(dVe)}}),{emitOnBegin:t,interval:s}))):(()=>{let t=!0,r=()=>t=!1;return(async()=>{try{const{unsubscribe:o}=await e.transport.subscribe({params:["newHeads"],onData(e){if(!t)return;const r=(0,lg.y_)(e.result?.number);n(r,a),a=r},onError(e){i?.(e)}});r=o,t||r()}catch(dVe){i?.(dVe)}})(),r})()}function mb(e){return{call:t=>(0,Sy.R)(e,t),createBlockFilter:()=>async function(e){const t=Gg(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}(e),createContractEventFilter:t=>Yg(e,t),createEventFilter:t=>jv(e,t),createPendingTransactionFilter:()=>Bv(e),estimateContractGas:t=>yy(e,t),estimateGas:t=>gy(e,t),getBalance:t=>async function(e,{address:t,blockNumber:r,blockTag:n="latest"}){const i=r?(0,Ag.eC)(r):void 0,o=await e.request({method:"eth_getBalance",params:[t,i||n]});return BigInt(o)}(e,t),getBlock:t=>ly(e,t),getBlockNumber:t=>Uy(e,t),getBlockTransactionCount:t=>async function(e,{blockHash:t,blockNumber:r,blockTag:n="latest"}={}){const i=void 0!==r?(0,Ag.eC)(r):void 0;let o;return o=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[i||n]}),(0,lg.ly)(o)}(e,t),getBytecode:t=>async function(e,{address:t,blockNumber:r,blockTag:n="latest"}){const i=void 0!==r?(0,Ag.eC)(r):void 0,o=await e.request({method:"eth_getCode",params:[t,i||n]});if("0x"!==o)return o}(e,t),getChainId:()=>Yy(e),getContractEvents:t=>Ay(e,t),getEnsAddress:t=>async function(e,{blockNumber:t,blockTag:r,coinType:n,name:i,universalResolverAddress:o}){let s=o;if(!s){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");s=(0,pv.L)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}try{const o=(0,qg.R)({abi:fv.X$,functionName:"addr",...null!=n?{args:[bv(i),BigInt(n)]}:{args:[bv(i)]}}),a=await Rg(e,xy,"readContract")({address:s,abi:fv.k3,functionName:"resolve",args:[(0,Ag.NC)(Ev(i)),o],blockNumber:t,blockTag:r});if("0x"===a[0])return null;const u=(0,My.k)({abi:fv.X$,args:null!=n?[bv(i),BigInt(n)]:void 0,functionName:"addr",data:a[0]});return"0x"===u||"0x00"===(0,Sg.f)(u)?null:u}catch(dVe){if(gv(dVe,"resolve"))return null;throw dVe}}(e,t),getEnsAvatar:t=>async function(e,{blockNumber:t,blockTag:r,gatewayUrls:n,name:i,universalResolverAddress:o}){const s=await Rg(e,Ov,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:i,universalResolverAddress:o});if(!s)return null;try{return await Lv(e,{record:s,gatewayUrls:n})}catch{return null}}(e,t),getEnsName:t=>async function(e,{address:t,blockNumber:r,blockTag:n,universalResolverAddress:i}){let o=i;if(!o){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");o=(0,pv.L)({blockNumber:r,chain:e.chain,contract:"ensUniversalResolver"})}const s=`${t.toLowerCase().substring(2)}.addr.reverse`;try{const[i,a]=await Rg(e,xy,"readContract")({address:o,abi:fv.du,functionName:"reverse",args:[(0,Ag.NC)(Ev(s))],blockNumber:r,blockTag:n});return t.toLowerCase()!==a.toLowerCase()?null:i}catch(dVe){if(gv(dVe,"reverse"))return null;throw dVe}}(e,t),getEnsResolver:t=>async function(e,{blockNumber:t,blockTag:r,name:n,universalResolverAddress:i}){let o=i;if(!o){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");o=(0,pv.L)({blockNumber:t,chain:e.chain,contract:"ensUniversalResolver"})}const[s]=await Rg(e,xy,"readContract")({address:o,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,Ag.NC)(Ev(n))],blockNumber:t,blockTag:r});return s}(e,t),getEnsText:t=>Ov(e,t),getFeeHistory:t=>Uv(e,t),estimateFeesPerGas:t=>async function(e,t){return dy(e,t)}(e,t),getFilterChanges:e=>Fy(0,e),getFilterLogs:e=>async function(e,{filter:t}){const r=t.strict??!1;return(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map((e=>{try{const{eventName:n,args:i}="abi"in t&&t.abi?wy({abi:t.abi,data:e.data,topics:e.topics,strict:r}):{eventName:void 0,args:void 0};return gg(e,{args:i,eventName:n})}catch(dVe){let n,i;if(dVe instanceof Pg.SM||dVe instanceof Pg.Gy){if("strict"in t&&t.strict)return;n=dVe.abiItem.name,i=dVe.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}return gg(e,{args:i?[]:{},eventName:n})}})).filter(Boolean)}(0,e),getGasPrice:()=>cy(e),getLogs:t=>Ey(e,t),getProof:t=>lb(e,t),estimateMaxPriorityFeePerGas:t=>async function(e,t){return hy(e,t)}(e,t),getStorageAt:t=>async function(e,{address:t,blockNumber:r,blockTag:n="latest",slot:i}){const o=void 0!==r?(0,Ag.eC)(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,i,o||n]})}(e,t),getTransaction:t=>cb(e,t),getTransactionConfirmations:t=>async function(e,{hash:t,transactionReceipt:r}){const[n,i]=await Promise.all([Rg(e,Uy,"getBlockNumber")({}),t?Rg(e,cb,"getBlockNumber")({hash:t}):void 0]),o=r?.blockNumber||i?.blockNumber;return o?n-o+1n:0n}(e,t),getTransactionCount:t=>fy(e,t),getTransactionReceipt:t=>hb(e,t),multicall:t=>async function(e,t){const{allowFailure:r=!0,batchSize:n,blockNumber:i,blockTag:o,contracts:s,multicallAddress:a}=t,u=n??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024);let l=a;if(!l){if(!e.chain)throw new Error("client chain not configured. multicallAddress is required.");l=(0,pv.L)({blockNumber:i,chain:e.chain,contract:"multicall3"})}const c=[[]];let h=0,d=0;for(let m=0;m0&&d>u&&c[h].length>0&&(h++,d=(r.length-2)/2,c[h]=[]),c[h]=[...c[h],{allowFailure:!0,callData:r,target:t}]}catch(dVe){const s=Qg(dVe,{abi:e,address:t,args:n,docsPath:"/docs/contract/multicall",functionName:i});if(!r)throw s;c[h]=[...c[h],{allowFailure:!0,callData:"0x",target:t}]}}const f=await Promise.allSettled(c.map((t=>Rg(e,xy,"readContract")({abi:fv.F8,address:l,args:[t],blockNumber:i,blockTag:o,functionName:"aggregate3"})))),p=[];for(let m=0;mmy(e,t),readContract:t=>xy(e,t),sendRawTransaction:t=>Ky(e,t),simulateContract:t=>ky(e,t),verifyMessage:t=>async function(e,{address:t,message:r,signature:n,...i}){return fb(e,{address:t,hash:ab(r),signature:n,...i})}(e,t),verifyTypedData:t=>async function(e,{address:t,signature:r,message:n,primaryType:i,types:o,domain:s,...a}){return fb(e,{address:t,hash:Gv({message:n,primaryType:i,types:o,domain:s}),signature:r,...a})}(e,t),uninstallFilter:e=>zy(0,e),waitForTransactionReceipt:t=>async function(e,{confirmations:t=1,hash:r,onReplaced:n,pollingInterval:i=e.pollingInterval,timeout:o}){const s=(0,Dy.P)(["waitForTransactionReceipt",e.uid,r]);let a,u,l,c=!1;return new Promise(((h,d)=>{o&&setTimeout((()=>d(new ey.mc({hash:r}))),o);const f=Ny(s,{onReplaced:n,resolve:h,reject:d},(n=>{const o=Rg(e,pb,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:i,async onBlockNumber(i){if(c)return;let s=i;const h=e=>{o(),e(),f()};try{if(l){if(t>1&&(!l.blockNumber||s-l.blockNumber+1nn.resolve(l)))}if(a||(c=!0,await nv((async()=>{a=await Rg(e,cb,"getTransaction")({hash:r}),a.blockNumber&&(s=a.blockNumber)}),{delay:({count:e})=>200*~~(1<1&&(!l.blockNumber||s-l.blockNumber+1nn.resolve(l)))}catch(dVe){if(a&&(dVe instanceof ey.Bh||dVe instanceof ey.Yb))try{u=a,c=!0;const r=await nv((()=>Rg(e,ly,"getBlock")({blockNumber:s,includeTransactions:!0})),{delay:({count:e})=>200*~~(1<e instanceof uy});c=!1;const i=r.transactions.find((({from:e,nonce:t})=>e===u.from&&t===u.nonce));if(!i)return;if(l=await Rg(e,hb,"getTransactionReceipt")({hash:i.hash}),t>1&&(!l.blockNumber||s-l.blockNumber+1n{n.onReplaced?.({reason:o,replacedTransaction:u,transaction:i,transactionReceipt:l}),n.resolve(l)}))}catch(d){h((()=>n.reject(d)))}else h((()=>n.reject(dVe)))}}})}))}))}(e,t),watchBlocks:t=>function(e,{blockTag:t="latest",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:i,onError:o,includeTransactions:s,poll:a,pollingInterval:u=e.pollingInterval}){const l=void 0!==a?a:"webSocket"!==e.transport.type,c=s??!1;let h;return l?Ny((0,Dy.P)(["watchBlocks",e.uid,r,n,c,u]),{onBlock:i,onError:o},(i=>Py((async()=>{try{const n=await Rg(e,ly,"getBlock")({blockTag:t,includeTransactions:c});if(n.number&&h?.number){if(n.number===h.number)return;if(n.number-h.number>1&&r)for(let t=h?.number+1n;th.number)&&(i.onBlock(n,h),h=n)}catch(dVe){i.onError?.(dVe)}}),{emitOnBegin:n,interval:u}))):(()=>{let t=!0,r=()=>t=!1;return(async()=>{try{const{unsubscribe:n}=await e.transport.subscribe({params:["newHeads"],onData(r){if(!t)return;const n=(e.chain?.formatters?.block?.format||pg)(r.result);i(n,h),h=n},onError(e){o?.(e)}});r=n,t||r()}catch(dVe){o?.(dVe)}})(),r})()}(e,t),watchBlockNumber:t=>pb(e,t),watchContractEvent:t=>Hy(e,t),watchEvent:t=>function(e,{address:t,args:r,batch:n=!0,event:i,events:o,onError:s,onLogs:a,poll:u,pollingInterval:l=e.pollingInterval,strict:c}){const h=void 0!==u?u:"webSocket"!==e.transport.type,d=c??!1;return h?Ny((0,Dy.P)(["watchEvent",t,r,n,e.uid,i,l]),{onLogs:a,onError:s},(s=>{let a,u,c=!1;const h=Py((async()=>{if(c)try{let l;if(u)l=await Rg(e,Fy,"getFilterChanges")({filter:u});else{const n=await Rg(e,Uy,"getBlockNumber")({});l=a&&a!==n?await Rg(e,Ey,"getLogs")({address:t,args:r,event:i,events:o,fromBlock:a+1n,toBlock:n}):[],a=n}if(0===l.length)return;if(n)s.onLogs(l);else for(const e of l)s.onLogs([e])}catch(dVe){u&&dVe instanceof Vg.yR&&(c=!1),s.onError?.(dVe)}else{try{u=await Rg(e,jv,"createEventFilter")({address:t,args:r,event:i,events:o,strict:d})}catch{}c=!0}}),{emitOnBegin:!0,interval:l});return async()=>{u&&await Rg(e,zy,"uninstallFilter")({filter:u}),h()}})):(()=>{let n=!0,u=()=>n=!1;return(async()=>{try{const l=o??(i?[i]:void 0);let h=[];l&&(h=[l.flatMap((e=>zg({abi:[e],eventName:e.name,args:r})))],i&&(h=h[0]));const{unsubscribe:f}=await e.transport.subscribe({params:["logs",{address:t,topics:h}],onData(e){if(!n)return;const t=e.result;try{const{eventName:e,args:r}=wy({abi:l,data:t.data,topics:t.topics,strict:d}),n=gg(t,{args:r,eventName:e});a([n])}catch(dVe){let r,n;if(dVe instanceof Pg.SM||dVe instanceof Pg.Gy){if(c)return;r=dVe.abiItem.name,n=dVe.abiItem.inputs?.some((e=>!("name"in e&&e.name)))}const i=gg(t,{args:n?[]:{},eventName:r});a([i])}},onError(e){s?.(e)}});u=f,n||u()}catch(dVe){s?.(dVe)}})(),u})()}(e,t),watchPendingTransactions:t=>function(e,{batch:t=!0,onError:r,onTransactions:n,poll:i,pollingInterval:o=e.pollingInterval}){return(void 0!==i?i:"webSocket"!==e.transport.type)?Ny((0,Dy.P)(["watchPendingTransactions",e.uid,t,o]),{onTransactions:n,onError:r},(r=>{let n;const i=Py((async()=>{try{if(!n)try{return void(n=await Rg(e,Bv,"createPendingTransactionFilter")({}))}catch(dVe){throw i(),dVe}const o=await Rg(e,Fy,"getFilterChanges")({filter:n});if(0===o.length)return;if(t)r.onTransactions(o);else for(const e of o)r.onTransactions([e])}catch(dVe){r.onError?.(dVe)}}),{emitOnBegin:!0,interval:o});return async()=>{n&&await Rg(e,zy,"uninstallFilter")({filter:n}),i()}})):(()=>{let t=!0,i=()=>t=!1;return(async()=>{try{const{unsubscribe:o}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!t)return;const r=e.result;n([r])},onError(e){r?.(e)}});i=o,t||i()}catch(dVe){r?.(dVe)}})(),i})()}(e,t)}}function gb(e){const{key:t="public",name:r="Public Client"}=e;return tv({...e,key:t,name:r,type:"publicClient"}).extend(mb)}function yb(e){return{addChain:t=>async function(e,{chain:t}){const{id:r,name:n,nativeCurrency:i,rpcUrls:o,blockExplorers:s}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,Ag.eC)(r),chainName:n,nativeCurrency:i,rpcUrls:o.default.http,blockExplorerUrls:s?Object.values(s).map((({url:e})=>e)):void 0}]})}(e,t),deployContract:t=>function(e,{abi:t,args:r,bytecode:n,...i}){return qy(e,{...i,data:Zv({abi:t,args:r,bytecode:n})})}(e,t),getAddresses:()=>async function(e){return"local"===e.account?.type?[e.account.address]:(await e.request({method:"eth_accounts"})).map((e=>(0,Jy.x)(e)))}(e),getChainId:()=>Yy(e),getPermissions:()=>async function(e){return await e.request({method:"wallet_getPermissions"})}(e),prepareTransactionRequest:t=>my(e,t),requestAddresses:()=>async function(e){return(await e.request({method:"eth_requestAccounts"})).map((e=>(0,Jy.K)(e)))}(e),requestPermissions:t=>async function(e,t){return e.request({method:"wallet_requestPermissions",params:[t]})}(e,t),sendRawTransaction:t=>Ky(e,t),sendTransaction:t=>qy(e,t),signMessage:t=>async function(e,{account:t=e.account,message:r}){if(!t)throw new Jg({docsPath:"/docs/actions/wallet/signMessage"});const n=(0,Kg.T)(t);if("local"===n.type)return n.signMessage({message:r});const i="string"==typeof r?(0,Ag.$G)(r):r.raw instanceof Uint8Array?(0,Ag.NC)(r.raw):r.raw;return e.request({method:"personal_sign",params:[i,n.address]})}(e,t),signTransaction:t=>async function(e,t){const{account:r=e.account,chain:n=e.chain,...i}=t;if(!r)throw new Jg({docsPath:"/docs/actions/wallet/signTransaction"});const o=(0,Kg.T)(r);(0,iy.F)({account:o,...t});const s=await Rg(e,Yy,"getChainId")({});null!==n&&Gy({currentChainId:s,chain:n});const a=(n?.formatters||e.chain?.formatters)?.transactionRequest?.format||Mg.tG;return"local"===o.type?o.signTransaction({...i,chainId:s},{serializer:e.chain?.serializers?.transaction}):await e.request({method:"eth_signTransaction",params:[{...a(i),chainId:(0,Ag.eC)(s),from:o.address}]})}(e,t),signTypedData:t=>async function(e,{account:t=e.account,domain:r,message:n,primaryType:i,types:o}){if(!t)throw new Jg({docsPath:"/docs/actions/wallet/signTypedData"});const s=(0,Kg.T)(t),a={EIP712Domain:Qv({domain:r}),...o};if($v({domain:r,message:n,primaryType:i,types:a}),"local"===s.type)return s.signTypedData({domain:r,primaryType:i,types:a,message:n});const u=(0,Dy.P)({domain:r??{},primaryType:i,types:a,message:n},((e,t)=>(0,yv.v)(t)?t.toLowerCase():t));return e.request({method:"eth_signTypedData_v4",params:[s.address,u]})}(e,t),switchChain:t=>async function(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,Ag.eC)(t)}]})}(e,t),watchAsset:t=>async function(e,t){return await e.request({method:"wallet_watchAsset",params:t})}(e,t),writeContract:t=>Wy(e,t)}}function vb(e){const{key:t="wallet",name:r="Wallet Client",transport:n}=e;return tv({...e,key:t,name:r,transport:e=>n({...e,retryCount:0}),type:"walletClient"}).extend(yb)}r(72976);r(71318);r(43108),r(57239);const bb=sg({id:122,name:"Fuse",network:"fuse",nativeCurrency:{name:"Fuse",symbol:"FUSE",decimals:18},rpcUrls:{default:{http:["https://rpc.fuse.io"]},public:{http:["https://rpc.fuse.io"]}},blockExplorers:{default:{name:"Fuse Explorer",url:"https://explorer.fuse.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:16146628}}}),wb=sg({id:123,name:"Fuse Sparknet",network:"fuse",nativeCurrency:{name:"Spark",symbol:"SPARK",decimals:18},rpcUrls:{default:{http:["https://rpc.fusespark.io"]},public:{http:["https://rpc.fusespark.io"]}},blockExplorers:{default:{name:"Sparkent Explorer",url:"https://explorer.fusespark.io"}}}),_b=sg({id:1,network:"homestead",name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://eth-mainnet.g.alchemy.com/v2"],webSocket:["wss://eth-mainnet.g.alchemy.com/v2"]},infura:{http:["https://mainnet.infura.io/v3"],webSocket:["wss://mainnet.infura.io/ws/v3"]},default:{http:["https://cloudflare-eth.com"]},public:{http:["https://cloudflare-eth.com"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://etherscan.io"},default:{name:"Etherscan",url:"https://etherscan.io"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc0497E381f536Be9ce14B0dD3817cBcAe57d2F62",blockCreated:16966585},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}}),Eb=sg({id:10,name:"OP Mainnet",network:"optimism",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-mainnet.g.alchemy.com/v2"],webSocket:["wss://opt-mainnet.g.alchemy.com/v2"]},infura:{http:["https://optimism-mainnet.infura.io/v3"],webSocket:["wss://optimism-mainnet.infura.io/ws/v3"]},default:{http:["https://mainnet.optimism.io"]},public:{http:["https://mainnet.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://optimistic.etherscan.io"},default:{name:"Optimism Explorer",url:"https://explorer.optimism.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:4286263}}},{formatters:wg}),Ab=sg({id:420,name:"Optimism Goerli",network:"optimism-goerli",nativeCurrency:{name:"Goerli Ether",symbol:"ETH",decimals:18},rpcUrls:{alchemy:{http:["https://opt-goerli.g.alchemy.com/v2"],webSocket:["wss://opt-goerli.g.alchemy.com/v2"]},infura:{http:["https://optimism-goerli.infura.io/v3"],webSocket:["wss://optimism-goerli.infura.io/ws/v3"]},default:{http:["https://goerli.optimism.io"]},public:{http:["https://goerli.optimism.io"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"},default:{name:"Etherscan",url:"https://goerli-optimism.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:49461}},testnet:!0},{formatters:wg}),Mb=sg({id:137,name:"Polygon",network:"matic",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mainnet.g.alchemy.com/v2"],webSocket:["wss://polygon-mainnet.g.alchemy.com/v2"]},infura:{http:["https://polygon-mainnet.infura.io/v3"],webSocket:["wss://polygon-mainnet.infura.io/ws/v3"]},default:{http:["https://polygon-rpc.com"]},public:{http:["https://polygon-rpc.com"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://polygonscan.com"},default:{name:"PolygonScan",url:"https://polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}}}),Sb=sg({id:80001,name:"Polygon Mumbai",network:"maticmum",nativeCurrency:{name:"MATIC",symbol:"MATIC",decimals:18},rpcUrls:{alchemy:{http:["https://polygon-mumbai.g.alchemy.com/v2"],webSocket:["wss://polygon-mumbai.g.alchemy.com/v2"]},infura:{http:["https://polygon-mumbai.infura.io/v3"],webSocket:["wss://polygon-mumbai.infura.io/ws/v3"]},default:{http:["https://rpc.ankr.com/polygon_mumbai"]},public:{http:["https://rpc.ankr.com/polygon_mumbai"]}},blockExplorers:{etherscan:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"},default:{name:"PolygonScan",url:"https://mumbai.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:25770160}},testnet:!0}),xb=sg({id:1442,name:"Polygon zkEVM Testnet",network:"polygon-zkevm-testnet",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.public.zkevm-test.net"]},public:{http:["https://rpc.public.zkevm-test.net"]}},blockExplorers:{blockscout:{name:"Blockscout",url:"https://explorer.public.zkevm-test.net"},default:{name:"PolygonScan",url:"https://testnet-zkevm.polygonscan.com"}},testnet:!0,contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:525686}}}),kb=sg({id:1101,name:"Polygon zkEVM",network:"polygon-zkevm",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://zkevm-rpc.com"]},public:{http:["https://zkevm-rpc.com"]}},blockExplorers:{default:{name:"PolygonScan",url:"https://zkevm.polygonscan.com"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:57746}}}),Tb=sg({id:11155111,network:"sepolia",name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"SEP",decimals:18},rpcUrls:{alchemy:{http:["https://eth-sepolia.g.alchemy.com/v2"],webSocket:["wss://eth-sepolia.g.alchemy.com/v2"]},infura:{http:["https://sepolia.infura.io/v3"],webSocket:["wss://sepolia.infura.io/ws/v3"]},default:{http:["https://rpc.sepolia.org"]},public:{http:["https://rpc.sepolia.org"]}},blockExplorers:{etherscan:{name:"Etherscan",url:"https://sepolia.etherscan.io"},default:{name:"Etherscan",url:"https://sepolia.etherscan.io"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0x21B000Fd62a880b2125A61e36a284BB757b76025",blockCreated:3914906}},testnet:!0});const{ENV:Cb}=og,Ib={[Cb.PROD]:"https://backend.epns.io/apis",[Cb.STAGING]:"https://backend-staging.epns.io/apis",[Cb.DEV]:"https://backend-dev.epns.io/apis",[Cb.LOCAL]:"http://localhost:4000/apis"},Nb="eip155:1",Rb="eip155:11155111",Pb="eip155:137",Db="eip155:80001",Lb="eip155:56",Ob="eip155:97",jb="eip155:420",Bb="eip155:10",Ub="eip155:1442",Fb="eip155:1101",zb="eip155:421613",Hb="eip155:42161",Gb="eip155:123",Yb="eip155:122",Kb={[Cb.PROD]:1,[Cb.STAGING]:11155111,[Cb.DEV]:11155111,[Cb.LOCAL]:11155111},qb={POLYGON:{[Cb.PROD]:137,[Cb.STAGING]:80001,[Cb.DEV]:80001,[Cb.LOCAL]:80001},BSC:{[Cb.PROD]:56,[Cb.STAGING]:97,[Cb.DEV]:97,[Cb.LOCAL]:97},OPTIMISM:{[Cb.PROD]:10,[Cb.STAGING]:420,[Cb.DEV]:420,[Cb.LOCAL]:420},POLYGONZKEVM:{[Cb.PROD]:1101,[Cb.STAGING]:1442,[Cb.DEV]:1442,[Cb.LOCAL]:1442},ARBITRUMONE:{[Cb.PROD]:42161,[Cb.STAGING]:421613,[Cb.DEV]:421613,[Cb.LOCAL]:421613},FUSE:{[Cb.PROD]:122,[Cb.STAGING]:123,[Cb.DEV]:123,[Cb.LOCAL]:123}},Wb=(Object.assign({ETHEREUM:Kb},qb),Cb.PROD,Cb.PROD,Cb.STAGING,Cb.STAGING,Cb.DEV,Cb.DEV,Cb.LOCAL,Cb.DEV,{[Cb.PROD]:{API_BASE_URL:Ib[Cb.PROD],EPNS_CORE_CONTRACT:"0x66329Fdd4042928BfCAB60b179e1538D56eeeeeE"},[Cb.STAGING]:{API_BASE_URL:Ib[Cb.STAGING],EPNS_CORE_CONTRACT:"0x9d65129223451fbd58fc299c635cd919baf2564c"},[Cb.DEV]:{API_BASE_URL:Ib[Cb.DEV],EPNS_CORE_CONTRACT:"0x5ab1520e2bd519bdab2e1347eee81c00a77f4946"},[Cb.LOCAL]:{API_BASE_URL:Ib[Cb.DEV],EPNS_CORE_CONTRACT:"0x5ab1520e2bd519bdab2e1347eee81c00a77f4946"}}),Vb={[Cb.PROD]:{[Nb]:{API_BASE_URL:Ib[Cb.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Pb]:{API_BASE_URL:Ib[Cb.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Lb]:{API_BASE_URL:Ib[Cb.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Bb]:{API_BASE_URL:Ib[Cb.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Fb]:{API_BASE_URL:Ib[Cb.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Hb]:{API_BASE_URL:Ib[Cb.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Yb]:{API_BASE_URL:Ib[Cb.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"}},[Cb.STAGING]:{[Rb]:{API_BASE_URL:Ib[Cb.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x0c34d54a09cfe75bccd878a469206ae77e0fe6e7"},[Db]:{API_BASE_URL:Ib[Cb.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Ob]:{API_BASE_URL:Ib[Cb.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[jb]:{API_BASE_URL:Ib[Cb.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Ub]:{API_BASE_URL:Ib[Cb.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[zb]:{API_BASE_URL:Ib[Cb.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Gb]:{API_BASE_URL:Ib[Cb.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"}},[Cb.DEV]:{[Rb]:{API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9dDCD7ed7151afab43044E4D694FA064742C428c"},[Db]:{API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0xAf55BE8e6b0d6107891bA76eADeEa032ef8A4504"},[Ob]:{API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x4132061E3349ff36cFfCadA460E10Bd4f31F7ea8"},[jb]:{API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x4305D572F2bf38Fc2AE8D0172055b1EFd18F57a6"},[Ub]:{API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x630b152e4185c63D7177c656b56b26f878C61572"},[zb]:{API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x2f6aE0907116A2c50D712e78b48D874fadeB6850"},[Gb]:{API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x7eBb54D86CF928115965DB596a3E600404dD8039"}},[Cb.LOCAL]:{[Rb]:{API_BASE_URL:Ib[Cb.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x9dDCD7ed7151afab43044E4D694FA064742C428c"},[Db]:{API_BASE_URL:Ib[Cb.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0xAf55BE8e6b0d6107891bA76eADeEa032ef8A4504"},[Ob]:{API_BASE_URL:Ib[Cb.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x4132061E3349ff36cFfCadA460E10Bd4f31F7ea8"},[jb]:{API_BASE_URL:Ib[Cb.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x4305D572F2bf38Fc2AE8D0172055b1EFd18F57a6"},[Ub]:{API_BASE_URL:Ib[Cb.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x630b152e4185c63D7177c656b56b26f878C61572"},[zb]:{API_BASE_URL:Ib[Cb.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x2f6aE0907116A2c50D712e78b48D874fadeB6850"},[Gb]:{API_BASE_URL:Ib[Cb.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x7eBb54D86CF928115965DB596a3E600404dD8039"}}},$b={[Cb.PROD]:"0xf418588522d5dd018b425E472991E52EBBeEEEEE",[Cb.STAGING]:"0x37c779a1564DCc0e3914aB130e0e787d93e21804",[Cb.DEV]:"0x37c779a1564DCc0e3914aB130e0e787d93e21804",[Cb.LOCAL]:"0x37c779a1564DCc0e3914aB130e0e787d93e21804"},Qb={[Cb.PROD]:_b,[Cb.STAGING]:Tb,[Cb.DEV]:Tb,[Cb.LOCAL]:Tb},Jb={[Cb.PROD]:50,[Cb.STAGING]:50,[Cb.DEV]:50,[Cb.LOCAL]:50},Zb={CORE:[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"enum EPNSCoreStorageV1_5.ChannelType",name:"channelType",type:"uint8"},{indexed:!1,internalType:"bytes",name:"identity",type:"bytes"}],name:"AddChannel",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!1,internalType:"bytes",name:"_subGraphData",type:"bytes"}],name:"AddSubGraph",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"}],name:"ChannelBlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"_channel",type:"address"},{indexed:!1,internalType:"uint256",name:"totalNotifOptions",type:"uint256"},{indexed:!1,internalType:"string",name:"_notifSettings",type:"string"},{indexed:!1,internalType:"string",name:"_notifDescription",type:"string"}],name:"ChannelNotifcationSettingsAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"ChannelOwnershipTransfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"revoker",type:"address"}],name:"ChannelVerificationRevoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"verifier",type:"address"}],name:"ChannelVerified",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"uint256",name:"amountClaimed",type:"uint256"}],name:"ChatIncentiveClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"uint256",name:"amountRefunded",type:"uint256"}],name:"DeactivateChannel",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"requestSender",type:"address"},{indexed:!1,internalType:"address",name:"requestReceiver",type:"address"},{indexed:!1,internalType:"uint256",name:"amountForReqReceiver",type:"uint256"},{indexed:!1,internalType:"uint256",name:"feePoolAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"timestamp",type:"uint256"}],name:"IncentivizeChatReqReceived",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Paused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"uint256",name:"amountDeposited",type:"uint256"}],name:"ReactivateChannel",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"uint256",name:"rewardAmount",type:"uint256"}],name:"RewardsClaimed",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"uint256",name:"rewardAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"fromEpoch",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tillEpoch",type:"uint256"}],name:"RewardsHarvested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"uint256",name:"amountStaked",type:"uint256"}],name:"Staked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"uint256",name:"amountRefunded",type:"uint256"}],name:"TimeBoundChannelDestroyed",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"account",type:"address"}],name:"Unpaused",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!0,internalType:"uint256",name:"amountUnstaked",type:"uint256"}],name:"Unstaked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!1,internalType:"bytes",name:"identity",type:"bytes"},{indexed:!0,internalType:"uint256",name:"amountDeposited",type:"uint256"}],name:"UpdateChannel",type:"event"},{inputs:[],name:"ADD_CHANNEL_MIN_FEES",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"CHANNEL_POOL_FUNDS",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"CREATE_CHANNEL_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"FEE_AMOUNT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"MIN_POOL_CONTRIBUTION",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"PROTOCOL_POOL_FEES",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"PUSH_TOKEN_ADDRESS",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"REFERRAL_CODE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"UNISWAP_V2_ROUTER",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"WETH_ADDRESS",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"aDaiAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_rewardAmount",type:"uint256"}],name:"addPoolFees",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"_subGraphData",type:"bytes"}],name:"addSubGraph",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_startIndex",type:"uint256"},{internalType:"uint256",name:"_endIndex",type:"uint256"},{internalType:"address[]",name:"_channelList",type:"address[]"}],name:"batchVerification",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channelAddress",type:"address"}],name:"blockChannel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_user",type:"address"},{internalType:"uint256",name:"_epochId",type:"uint256"}],name:"calculateEpochRewards",outputs:[{internalType:"uint256",name:"rewards",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"celebUserFunds",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"channelById",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"channelNotifSettings",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"channelUpdateCounter",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"channels",outputs:[{internalType:"enum EPNSCoreStorageV1_5.ChannelType",name:"channelType",type:"uint8"},{internalType:"uint8",name:"channelState",type:"uint8"},{internalType:"address",name:"verifiedBy",type:"address"},{internalType:"uint256",name:"poolContribution",type:"uint256"},{internalType:"uint256",name:"channelHistoricalZ",type:"uint256"},{internalType:"uint256",name:"channelFairShareCount",type:"uint256"},{internalType:"uint256",name:"channelLastUpdate",type:"uint256"},{internalType:"uint256",name:"channelStartBlock",type:"uint256"},{internalType:"uint256",name:"channelUpdateBlock",type:"uint256"},{internalType:"uint256",name:"channelWeight",type:"uint256"},{internalType:"uint256",name:"expiryTime",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"channelsCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"claimChatIncentives",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_notifOptions",type:"uint256"},{internalType:"string",name:"_notifSettings",type:"string"},{internalType:"string",name:"_notifDescription",type:"string"},{internalType:"uint256",name:"_amountDeposited",type:"uint256"}],name:"createChannelSettings",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"enum EPNSCoreStorageV1_5.ChannelType",name:"_channelType",type:"uint8"},{internalType:"bytes",name:"_identity",type:"bytes"},{internalType:"uint256",name:"_amount",type:"uint256"},{internalType:"uint256",name:"_channelExpiryTime",type:"uint256"}],name:"createChannelWithPUSH",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"daiAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_tillEpoch",type:"uint256"}],name:"daoHarvestPaginated",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"deactivateChannel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channelAddress",type:"address"}],name:"destroyTimeBoundChannel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"epnsCommunicator",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"epochDuration",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"epochRewards",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"epochToTotalStakedWeight",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"genesisEpoch",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"}],name:"getChannelVerfication",outputs:[{internalType:"uint8",name:"verificationStatus",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"governance",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"groupFairShareCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"groupHistoricalZ",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"groupLastUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"groupNormalizedWeight",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"requestSender",type:"address"},{internalType:"address",name:"requestReceiver",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"handleChatRequestData",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"harvestAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_tillEpoch",type:"uint256"}],name:"harvestPaginated",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_pushChannelAdmin",type:"address"},{internalType:"address",name:"_pushTokenAddress",type:"address"},{internalType:"address",name:"_wethAddress",type:"address"},{internalType:"address",name:"_uniswapRouterAddress",type:"address"},{internalType:"address",name:"_lendingPoolProviderAddress",type:"address"},{internalType:"address",name:"_daiAddress",type:"address"},{internalType:"address",name:"_aDaiAddress",type:"address"},{internalType:"uint256",name:"_referralCode",type:"uint256"}],name:"initialize",outputs:[{internalType:"bool",name:"success",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"initializeStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"isMigrationComplete",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_from",type:"uint256"},{internalType:"uint256",name:"_to",type:"uint256"}],name:"lastEpochRelative",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"lendingPoolProviderAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"pauseContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"paused",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"previouslySetEpochRewards",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"pushChannelAdmin",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"reactivateChannel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_commAddress",type:"address"}],name:"setEpnsCommunicatorAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_newFees",type:"uint256"}],name:"setFeeAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_governanceAddress",type:"address"}],name:"setGovernanceAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_newFees",type:"uint256"}],name:"setMinChannelCreationFees",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_newAmount",type:"uint256"}],name:"setMinPoolContribution",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"_amount",type:"uint256"}],name:"stake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"totalStakedAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_newAdmin",type:"address"}],name:"transferPushChannelAdminControl",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unPauseContract",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unstake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"}],name:"unverifyChannel",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"bytes",name:"_newIdentity",type:"bytes"},{internalType:"uint256",name:"_amount",type:"uint256"}],name:"updateChannelMeta",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"userFeesInfo",outputs:[{internalType:"uint256",name:"stakedAmount",type:"uint256"},{internalType:"uint256",name:"stakedWeight",type:"uint256"},{internalType:"uint256",name:"lastStakedBlock",type:"uint256"},{internalType:"uint256",name:"lastClaimedBlock",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"usersRewardsClaimed",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"}],name:"verifyChannel",outputs:[],stateMutability:"nonpayable",type:"function"}],COMM:[{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"channel",type:"address"},{indexed:!1,internalType:"address",name:"delegate",type:"address"}],name:"AddDelegate",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"_chainName",type:"string"},{indexed:!0,internalType:"uint256",name:"_chainID",type:"uint256"},{indexed:!0,internalType:"address",name:"_channelOwnerAddress",type:"address"},{indexed:!1,internalType:"string",name:"_ethereumChannelAddress",type:"string"}],name:"ChannelAlias",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"bytes",name:"publickey",type:"bytes"}],name:"PublicKeyRegistered",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"channel",type:"address"},{indexed:!1,internalType:"address",name:"delegate",type:"address"}],name:"RemoveDelegate",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"bytes",name:"identity",type:"bytes"}],name:"SendNotification",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"user",type:"address"}],name:"Subscribe",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"channel",type:"address"},{indexed:!0,internalType:"address",name:"user",type:"address"}],name:"Unsubscribe",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"_channel",type:"address"},{indexed:!1,internalType:"address",name:"_user",type:"address"},{indexed:!1,internalType:"uint256",name:"_notifID",type:"uint256"},{indexed:!1,internalType:"string",name:"_notifSettings",type:"string"}],name:"UserNotifcationSettingsAdded",type:"event"},{inputs:[],name:"DOMAIN_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"EPNSCoreAddress",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"NAME_HASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"SEND_NOTIFICATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"SUBSCRIBE_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"UNSUBSCRIBE_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_delegate",type:"address"}],name:"addDelegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_channelList",type:"address[]"}],name:"batchSubscribe",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address[]",name:"_channelList",type:"address[]"}],name:"batchUnsubscribe",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"_publicKey",type:"bytes"}],name:"broadcastUserPublicKey",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"chainID",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"chainName",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"uint256",name:"_notifID",type:"uint256"},{internalType:"string",name:"_notifSettings",type:"string"}],name:"changeUserChannelSettings",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"completeMigration",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"delegatedNotificationSenders",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"_publicKey",type:"bytes"}],name:"getWalletFromPublicKey",outputs:[{internalType:"address",name:"wallet",type:"address"}],stateMutability:"pure",type:"function"},{inputs:[],name:"governance",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_pushChannelAdmin",type:"address"},{internalType:"string",name:"_chainName",type:"string"}],name:"initialize",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"isMigrationComplete",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"address",name:"_user",type:"address"}],name:"isUserSubscribed",outputs:[{internalType:"bool",name:"isSubscriber",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"mapAddressUsers",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_startIndex",type:"uint256"},{internalType:"uint256",name:"_endIndex",type:"uint256"},{internalType:"address[]",name:"_channelList",type:"address[]"},{internalType:"address[]",name:"_usersList",type:"address[]"}],name:"migrateSubscribeData",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"pushChannelAdmin",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_delegate",type:"address"}],name:"removeDelegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"bytes",name:"_identity",type:"bytes"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"sendNotifBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"address",name:"_recipient",type:"address"},{internalType:"bytes",name:"_identity",type:"bytes"}],name:"sendNotification",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_coreAddress",type:"address"}],name:"setEPNSCoreAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_governanceAddress",type:"address"}],name:"setGovernanceAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"}],name:"subscribe",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"channel",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"subscribeBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"},{internalType:"address",name:"_user",type:"address"}],name:"subscribeViaCore",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_newAdmin",type:"address"}],name:"transferPushChannelAdminControl",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_channel",type:"address"}],name:"unsubscribe",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"channel",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"unsubscribeBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"userToChannelNotifs",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"users",outputs:[{internalType:"bool",name:"userActivated",type:"bool"},{internalType:"bool",name:"publicKeyRegistered",type:"bool"},{internalType:"uint256",name:"userStartBlock",type:"uint256"},{internalType:"uint256",name:"subscribedCount",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"usersCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"_channelAddress",type:"string"}],name:"verifyChannelAlias",outputs:[],stateMutability:"nonpayable",type:"function"}],TOKEN:[{inputs:[{internalType:"address",name:"account",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegator",type:"address"},{indexed:!0,internalType:"address",name:"fromDelegate",type:"address"},{indexed:!0,internalType:"address",name:"toDelegate",type:"address"}],name:"DelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"delegate",type:"address"},{indexed:!1,internalType:"uint256",name:"previousBalance",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newBalance",type:"uint256"}],name:"DelegateVotesChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"holder",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"weight",type:"uint256"}],name:"HolderWeightChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DELEGATION_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"DOMAIN_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"PERMIT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"rawAmount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"born",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"rawAmount",type:"uint256"}],name:"burn",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint32",name:"",type:"uint32"}],name:"checkpoints",outputs:[{internalType:"uint32",name:"fromBlock",type:"uint32"},{internalType:"uint96",name:"votes",type:"uint96"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"}],name:"delegate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"delegatee",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"delegateBySig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"delegates",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getCurrentVotes",outputs:[{internalType:"uint96",name:"",type:"uint96"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"blockNumber",type:"uint256"}],name:"getPriorVotes",outputs:[{internalType:"uint96",name:"",type:"uint96"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"holderDelegation",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"holderWeight",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"numCheckpoints",outputs:[{internalType:"uint32",name:"",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"rawAmount",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"holder",type:"address"}],name:"resetHolderWeight",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"delegate",type:"address"}],name:"returnHolderDelegation",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"returnHolderRatio",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"delegate",type:"address"},{internalType:"bool",name:"value",type:"bool"}],name:"setHolderDelegation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"dst",type:"address"},{internalType:"uint256",name:"rawAmount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"src",type:"address"},{internalType:"address",name:"dst",type:"address"},{internalType:"uint256",name:"rawAmount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]},Xb=2,ew={[Cb.PROD]:{[Nb]:{NETWORK:_b,API_BASE_URL:Ib[Cb.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Pb]:{NETWORK:Mb,API_BASE_URL:Ib[Cb.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Lb]:{NETWORK:_g,API_BASE_URL:Ib[Cb.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Bb]:{NETWORK:Eb,API_BASE_URL:Ib[Cb.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Fb]:{NETWORK:kb,API_BASE_URL:Ib[Cb.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Hb]:{NETWORK:ag,API_BASE_URL:Ib[Cb.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Yb]:{NETWORK:bb,API_BASE_URL:Ib[Cb.PROD],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"}},[Cb.STAGING]:{[Rb]:{NETWORK:Tb,API_BASE_URL:Ib[Cb.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0x0c34d54a09cfe75bccd878a469206ae77e0fe6e7"},[Db]:{NETWORK:Sb,API_BASE_URL:Ib[Cb.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Ob]:{NETWORK:Eg,API_BASE_URL:Ib[Cb.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[jb]:{NETWORK:Ab,API_BASE_URL:Ib[Cb.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Ub]:{NETWORK:xb,API_BASE_URL:Ib[Cb.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[zb]:{NETWORK:ug,API_BASE_URL:Ib[Cb.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"},[Gb]:{NETWORK:wb,API_BASE_URL:Ib[Cb.STAGING],EPNS_COMMUNICATOR_CONTRACT:"0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa"}},[Cb.DEV]:{[Rb]:{NETWORK:Tb,API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9dDCD7ed7151afab43044E4D694FA064742C428c"},[Db]:{NETWORK:Sb,API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0xAf55BE8e6b0d6107891bA76eADeEa032ef8A4504"},[Ob]:{NETWORK:Eg,API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x4132061E3349ff36cFfCadA460E10Bd4f31F7ea8"},[jb]:{NETWORK:Ab,API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x4305D572F2bf38Fc2AE8D0172055b1EFd18F57a6"},[Ub]:{NETWORK:xb,API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x630b152e4185c63D7177c656b56b26f878C61572"},[zb]:{NETWORK:ug,API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x2f6aE0907116A2c50D712e78b48D874fadeB6850"},[Gb]:{NETWORK:wb,API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x7eBb54D86CF928115965DB596a3E600404dD8039"}},[Cb.LOCAL]:{[Rb]:{NETWORK:Tb,API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x9dDCD7ed7151afab43044E4D694FA064742C428c"},[Db]:{NETWORK:Sb,API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0xAf55BE8e6b0d6107891bA76eADeEa032ef8A4504"},[Ob]:{NETWORK:Eg,API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x4132061E3349ff36cFfCadA460E10Bd4f31F7ea8"},[jb]:{NETWORK:Ab,API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x4305D572F2bf38Fc2AE8D0172055b1EFd18F57a6"},[Ub]:{NETWORK:xb,API_BASE_URL:Ib[Cb.DEV],EPNS_COMMUNICATOR_CONTRACT:"0x630b152e4185c63D7177c656b56b26f878C61572"},[zb]:{NETWORK:ug,API_BASE_URL:Ib[Cb.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x2f6aE0907116A2c50D712e78b48D874fadeB6850"},[Gb]:{NETWORK:wb,API_BASE_URL:Ib[Cb.LOCAL],EPNS_COMMUNICATOR_CONTRACT:"0x7eBb54D86CF928115965DB596a3E600404dD8039"}}},tw={STABLE:{feature:[]},ALPHA:{feature:[og.ALPHA_FEATURES.SCALABILITY_V2]}},rw=(e,{blockchain:t,networkId:r})=>{const n=Vb[e][`${t}:${r}`];if(!n)throw Error(`\n [Push SDK] - cannot determine config for \n env: ${e},\n blockchain: ${t},\n networkId: ${r}\n `);return n};function nw(e){if(!e)throw Error("ENV not provided!");return Ib[e]}r(29796),r(92957),r(98413),r(79462),r(61333);var iw=r(51340);const ow=({plainText:e,secretKey:t})=>iw.AES.encrypt(e,t).toString(),sw=({cipherText:e,secretKey:t})=>iw.AES.decrypt(e,t).toString(iw.enc.Utf8),aw=e=>{let t="";const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=r.length;for(let i=0;i{this[hw]=e,this[dw]=t})),this[cw].catch((()=>{}))}}function mw(e){return e&&e.getReader&&Array.isArray(e)}function gw(e){if(!mw(e)){const t=e.getWriter(),r=t.releaseLock;return t.releaseLock=()=>{t.closed.catch((function(){})),r.call(t)},t}this.stream=e}pw.prototype.getReader=function(){return void 0===this[fw]&&(this[fw]=0),{read:async()=>(await this[cw],this[fw]===this.length?{value:void 0,done:!0}:{value:this[this[fw]++],done:!1})}},pw.prototype.readToEnd=async function(e){await this[cw];const t=e(this.slice(this[fw]));return this.length=0,t},pw.prototype.clone=function(){const e=new pw;return e[cw]=this[cw].then((()=>{e.push(...this)})),e},gw.prototype.write=async function(e){this.stream.push(e)},gw.prototype.close=async function(){this.stream[hw]()},gw.prototype.abort=async function(e){return this.stream[dw](e),e},gw.prototype.releaseLock=function(){};const yw="object"==typeof lw.process&&"object"==typeof lw.process.versions,vw=yw&&void 0;function bw(e){return mw(e)?"array":lw.ReadableStream&&lw.ReadableStream.prototype.isPrototypeOf(e)?"web":Nw&&Nw.prototype.isPrototypeOf(e)?"ponyfill":vw&&vw.prototype.isPrototypeOf(e)?"node":!(!e||!e.getReader)&&"web-like"}function ww(e){return Uint8Array.prototype.isPrototypeOf(e)}function _w(e){if(1===e.length)return e[0];let t=0;for(let i=0;i{t||(Ew.isBuffer(n)&&(n=new Uint8Array(n.buffer,n.byteOffset,n.byteLength)),r.enqueue(n),e.pause())})),e.on("end",(()=>{t||r.close()})),e.on("error",(e=>r.error(e)))},pull(){e.resume()},cancel(r){t=!0,e.destroy(r)}})};class e extends Aw{constructor(e,t){super(t),this._reader=Uw(e)}async _read(e){try{for(;;){const{done:e,value:t}=await this._reader.read();if(e){this.push(null);break}if(!this.push(t))break}}catch(e){this.destroy(e)}}async _destroy(e,t){this._reader.cancel(e).then(t,t)}}Sw=function(t,r){return new e(t,r)}}const xw=new WeakSet,kw=Symbol("externalBuffer");function Tw(e){if(this.stream=e,e[kw]&&(this[kw]=e[kw].slice()),mw(e)){const t=e.getReader();return this._read=t.read.bind(t),this._releaseLock=()=>{},void(this._cancel=async()=>{})}let t=bw(e);if("node"===t&&(e=Mw(e)),t){const t=e.getReader();return this._read=t.read.bind(t),this._releaseLock=()=>{t.closed.catch((function(){})),t.releaseLock()},void(this._cancel=t.cancel.bind(t))}let r=!1;this._read=async()=>r||xw.has(e)?{value:void 0,done:!0}:(r=!0,{value:e,done:!1}),this._releaseLock=()=>{if(r)try{xw.add(e)}catch(e){}}}Tw.prototype.read=async function(){return this[kw]&&this[kw].length?{done:!1,value:this[kw].shift()}:this._read()},Tw.prototype.releaseLock=function(){this[kw]&&(this.stream[kw]=this[kw]),this._releaseLock()},Tw.prototype.cancel=function(e){return this._cancel(e)},Tw.prototype.readLine=async function(){let e,t=[];for(;!e;){let{done:r,value:n}=await this.read();if(n+="",r)return t.length?Bw(t):void 0;const i=n.indexOf("\n")+1;i&&(e=Bw(t.concat(n.substr(0,i))),t=[]),i!==n.length&&t.push(n.substr(i))}return this.unshift(...t),e},Tw.prototype.readByte=async function(){const{done:e,value:t}=await this.read();if(e)return;const r=t[0];return this.unshift(Qw(t,1)),r},Tw.prototype.readBytes=async function(e){const t=[];let r=0;for(;;){const{done:n,value:i}=await this.read();if(n)return t.length?Bw(t):void 0;if(t.push(i),r+=i.length,r>=e){const r=Bw(t);return this.unshift(Qw(r,e)),Qw(r,0,e)}}},Tw.prototype.peekBytes=async function(e){const t=await this.readBytes(e);return this.unshift(t),t},Tw.prototype.unshift=function(...e){this[kw]||(this[kw]=[]),1===e.length&&ww(e[0])&&this[kw].length&&e[0].length&&this[kw][0].byteOffset>=e[0].length?this[kw][0]=new Uint8Array(this[kw][0].buffer,this[kw][0].byteOffset-e[0].length,this[kw][0].byteLength+e[0].length):this[kw].unshift(...e.filter((e=>e&&e.length)))},Tw.prototype.readToEnd=async function(e=Bw){const t=[];for(;;){const{done:e,value:r}=await this.read();if(e)break;t.push(r)}return e(t)};let Cw,Iw,{ReadableStream:Nw,WritableStream:Rw,TransformStream:Pw}=lw;async function Dw(){if(Pw)return;const[e,t]=await Promise.all([Promise.resolve().then((function(){return UP})),Promise.resolve().then((function(){return sD}))]);({ReadableStream:Nw,WritableStream:Rw,TransformStream:Pw}=e);const{createReadableStreamWrapper:r}=t;lw.ReadableStream&&Nw!==lw.ReadableStream&&(Cw=r(Nw),Iw=r(lw.ReadableStream))}const Lw=yw&&void 0;function Ow(e){let t=bw(e);return"node"===t?Mw(e):"web"===t&&Cw?Cw(e):t?e:new Nw({start(t){t.enqueue(e),t.close()}})}function jw(e){if(bw(e))return e;const t=new pw;return(async()=>{const r=Fw(t);await r.write(e),await r.close()})(),t}function Bw(e){return e.some((e=>bw(e)&&!mw(e)))?function(e){e=e.map(Ow);const t=Gw((async function(e){await Promise.all(n.map((t=>Zw(t,e))))}));let r=Promise.resolve();const n=e.map(((n,i)=>Kw(n,((n,o)=>(r=r.then((()=>zw(n,t.writable,{preventClose:i!==e.length-1}))),r)))));return t.readable}(e):e.some((e=>mw(e)))?function(e){const t=new pw;let r=Promise.resolve();return e.forEach(((n,i)=>(r=r.then((()=>zw(n,t,{preventClose:i!==e.length-1}))),r))),t}(e):"string"==typeof e[0]?e.join(""):Lw&&Lw.isBuffer(e[0])?Lw.concat(e):_w(e)}function Uw(e){return new Tw(e)}function Fw(e){return new gw(e)}async function zw(e,t,{preventClose:r=!1,preventAbort:n=!1,preventCancel:i=!1}={}){if(bw(e)&&!mw(e)){e=Ow(e);try{if(e[kw]){const r=Fw(t);for(let t=0;t{t=e})),t=null)},close:r.close.bind(r),abort:r.error.bind(r)})}}function Yw(e,t=(()=>{}),r=(()=>{})){if(mw(e)){const n=new pw;return(async()=>{const i=Fw(n);try{const n=await Jw(e),o=t(n),s=r();let a;a=void 0!==o&&void 0!==s?Bw([o,s]):void 0!==o?o:s,await i.write(a),await i.close()}catch(e){await i.abort(e)}})(),n}if(bw(e))return Hw(e,{async transform(e,r){try{const n=await t(e);void 0!==n&&r.enqueue(n)}catch(e){r.error(e)}},async flush(e){try{const t=await r();void 0!==t&&e.enqueue(t)}catch(t){e.error(t)}}});const n=t(e),i=r();return void 0!==n&&void 0!==i?Bw([n,i]):void 0!==n?n:i}function Kw(e,t){if(bw(e)&&!mw(e)){let r;const n=new Pw({start(e){r=e}}),i=zw(e,n.writable),o=Gw((async function(e){r.error(e),await i,await new Promise(setTimeout)}));return t(n.readable,o.writable),o.readable}e=jw(e);const r=new pw;return t(e,r),r}function qw(e,t){let r;const n=Kw(e,((e,i)=>{const o=Uw(e);o.remainder=()=>(o.releaseLock(),zw(e,i),n),r=t(o)}));return r}function Ww(e){if(mw(e))return e.clone();if(bw(e)){const t=function(e){if(mw(e))throw Error("ArrayStream cannot be tee()d, use clone() instead");if(bw(e)){const t=Ow(e).tee();return t[0][kw]=t[1][kw]=e[kw],t}return[Qw(e),Qw(e)]}(e);return $w(e,t[0]),t[1]}return Qw(e)}function Vw(e){return mw(e)?Ww(e):bw(e)?new Nw({start(t){const r=Kw(e,(async(e,r)=>{const n=Uw(e),i=Fw(r);try{for(;;){await i.ready;const{done:r,value:o}=await n.read();if(r){try{t.close()}catch(e){}return void(await i.close())}try{t.enqueue(o)}catch(e){}await i.write(o)}}catch(e){t.error(e),await i.abort(e)}}));$w(e,r)}}):Qw(e)}function $w(e,t){Object.entries(Object.getOwnPropertyDescriptors(e.constructor.prototype)).forEach((([r,n])=>{"constructor"!==r&&(n.value?n.value=n.value.bind(t):n.get=n.get.bind(t),Object.defineProperty(e,r,n))}))}function Qw(e,t=0,r=1/0){if(mw(e))throw Error("Not implemented");if(bw(e)){if(t>=0&&r>=0){let n=0;return Hw(e,{transform(e,i){n=t&&i.enqueue(Qw(e,Math.max(t-n,0),r-n)),n+=e.length):i.terminate()}})}if(t<0&&(r<0||r===1/0)){let n=[];return Yw(e,(e=>{e.length>=-t?n=[e]:n.push(e)}),(()=>Qw(Bw(n),t,r)))}if(0===t&&r<0){let n;return Yw(e,(e=>{const i=n?Bw([n,e]):e;if(i.length>=-r)return n=Qw(i,r),Qw(i,t,r);n=i}))}return uw.warn(`stream.slice(input, ${t}, ${r}) not implemented efficiently.`),Xw((async()=>Qw(await Jw(e),t,r)))}return e[kw]&&(e=Bw(e[kw].concat([e]))),!ww(e)||Lw&&Lw.isBuffer(e)?e.slice(t,r):(r===1/0&&(r=e.length),e.subarray(t,r))}async function Jw(e,t=Bw){return mw(e)?e.readToEnd(t):bw(e)?Uw(e).readToEnd(t):e}async function Zw(e,t){if(bw(e)){if(e.cancel)return e.cancel(t);if(e.destroy)return e.destroy(t),await new Promise(setTimeout),t}}function Xw(e){const t=new pw;return(async()=>{const r=Fw(t);try{await r.write(await e()),await r.close()}catch(e){await r.abort(e)}})(),t}class e_{constructor(e){if(void 0===e)throw Error("Invalid BigInteger input");if(e instanceof Uint8Array){const t=e,r=Array(t.length);for(let e=0;eBigInt(0);){const e=r&BigInt(1);r>>=BigInt(1);const o=i*n%t.value;i=e?o:i,n=n*n%t.value}return new e_(i)}modInv(e){const{gcd:t,x:r}=this._egcd(e);if(!t.isOne())throw Error("Inverse does not exist");return r.add(e).mod(e)}_egcd(e){let t=BigInt(0),r=BigInt(1),n=BigInt(1),i=BigInt(0),o=this.value;for(e=e.value;e!==BigInt(0);){const s=o/e;let a=t;t=n-s*t,n=a,a=r,r=i-s*r,i=a,a=e,e=o%e,o=a}return{x:new e_(n),y:new e_(i),gcd:new e_(o)}}gcd(e){let t=this.value;for(e=e.value;e!==BigInt(0);){const r=e;e=t%e,t=r}return new e_(t)}ileftShift(e){return this.value<<=e.value,this}leftShift(e){return this.clone().ileftShift(e)}irightShift(e){return this.value>>=e.value,this}rightShift(e){return this.clone().irightShift(e)}equal(e){return this.value===e.value}lt(e){return this.valuee.value}gte(e){return this.value>=e.value}isZero(){return this.value===BigInt(0)}isOne(){return this.value===BigInt(1)}isNegative(){return this.valueNumber.MAX_SAFE_INTEGER)throw Error("Number can only safely store up to 53 bits");return e}getBit(e){return(this.value>>BigInt(e)&BigInt(1))===BigInt(0)?0:1}bitLength(){const e=new e_(0),t=new e_(1),r=new e_(-1),n=this.isNegative()?r:e;let i=1;const o=this.clone();for(;!o.irightShift(t).equal(n);)i++;return i}byteLength(){const e=new e_(0),t=new e_(-1),r=this.isNegative()?t:e,n=new e_(8);let i=1;const o=this.clone();for(;!o.irightShift(n).equal(r);)i++;return i}toUint8Array(e="be",t){let r=this.value.toString(16);r.length%2==1&&(r="0"+r);const n=r.length/2,i=new Uint8Array(t||n),o=t?t-n:0;let s=0;for(;s{e[t_][r]=t}))),void 0!==e[t_][t])return e[t_][t];throw Error("Invalid enum value.")}};const n_=(()=>{try{return!1}catch(e){}return!1})(),i_={isString:function(e){return"string"==typeof e||e instanceof String},isArray:function(e){return e instanceof Array},isUint8Array:ww,isStream:bw,readNumber:function(e){let t=0;for(let r=0;r>8*(t-n-1)&255;return r},readDate:function(e){const t=i_.readNumber(e);return new Date(1e3*t)},writeDate:function(e){const t=Math.floor(e.getTime()/1e3);return i_.writeNumber(t,4)},normalizeDate:function(e=Date.now()){return null===e||e===1/0?e:new Date(1e3*Math.floor(+e/1e3))},readMPI:function(e){const t=7+(e[0]<<8|e[1])>>>3;return e.subarray(2,2+t)},leftPad(e,t){const r=new Uint8Array(t),n=t-e.length;return r.set(e,n),r},uint8ArrayToMPI:function(e){const t=i_.uint8ArrayBitLength(e);if(0===t)throw Error("Zero MPI");const r=e.subarray(e.length-Math.ceil(t/8)),n=new Uint8Array([(65280&t)>>8,255&t]);return i_.concatUint8Array([n,r])},uint8ArrayBitLength:function(e){let t;for(t=0;t>1);for(let r=0;r>1;r++)t[r]=parseInt(e.substr(r<<1,2),16);return t},uint8ArrayToHex:function(e){const t=[],r=e.length;let n,i=0;for(;i{if(!i_.isString(e))throw Error("stringToUint8Array: Data must be in the form of a string");const t=new Uint8Array(e.length);for(let r=0;rr("",!0)))},decodeUTF8:function(e){const t=new TextDecoder("utf-8");function r(e,r=!1){return t.decode(e,{stream:!r})}return Yw(e,r,(()=>r(new Uint8Array,!0)))},concat:Bw,concatUint8Array:_w,equalsUint8Array:function(e,t){if(!i_.isUint8Array(e)||!i_.isUint8Array(t))throw Error("Data must be in the form of a Uint8Array");if(e.length!==t.length)return!1;for(let r=0;r>>16;return 0!==r&&(e=r,t+=16),r=e>>8,0!==r&&(e=r,t+=8),r=e>>4,0!==r&&(e=r,t+=4),r=e>>2,0!==r&&(e=r,t+=2),r=e>>1,0!==r&&(e=r,t+=1),t},double:function(e){const t=new Uint8Array(e.length),r=e.length-1;for(let n=0;n>7;return t[r]=e[r]<<1^135*(e[0]>>7),t},shiftRight:function(e,t){if(t)for(let r=e.length-1;r>=0;r--)e[r]>>=t,r>0&&(e[r]|=e[r-1]<<8-t);return e},getWebCrypto:function(){return void 0!==lw&&lw.crypto&&lw.crypto.subtle},getBigInteger:async function(){if("undefined"!=typeof BigInt)return e_;{const{default:e}=await Promise.resolve().then((function(){return hD}));return e}},getNodeCrypto:function(){},getNodeZlib:function(){},getNodeBuffer:function(){return{}.Buffer},getHardwareConcurrency:function(){return"undefined"!=typeof navigator?navigator.hardwareConcurrency||1:(void 0).cpus().length},isEmailAddress:function(e){return!!i_.isString(e)&&/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+([a-zA-Z]{2,}[0-9]*|xn--[a-zA-Z\-0-9]+)))$/.test(e)},canonicalizeEOL:function(e){let t=!1;return Yw(e,(e=>{let r;t&&(e=i_.concatUint8Array([new Uint8Array([13]),e])),13===e[e.length-1]?(t=!0,e=e.subarray(0,-1)):t=!1;const n=[];for(let t=0;r=e.indexOf(10,t)+1,r;t=r)13!==e[r-2]&&n.push(r);if(!n.length)return e;const i=new Uint8Array(e.length+n.length);let o=0;for(let t=0;tt?new Uint8Array([13]):void 0))},nativeEOL:function(e){let t=!1;return Yw(e,(e=>{let r;13===(e=t&&10!==e[0]?i_.concatUint8Array([new Uint8Array([13]),e]):new Uint8Array(e))[e.length-1]?(t=!0,e=e.subarray(0,-1)):t=!1;let n=0;for(let t=0;t!==e.length;t=r){r=e.indexOf(13,t)+1,r||(r=e.length);const i=r-(10===e[r]?1:0);t&&e.copyWithin(n,t,i),n+=i-t}return e.subarray(0,n)}),(()=>t?new Uint8Array([13]):void 0))},removeTrailingSpaces:function(e){return e.split("\n").map((e=>{let t=e.length-1;for(;t>=0&&(" "===e[t]||"\t"===e[t]||"\r"===e[t]);t--);return e.substr(0,t+1)})).join("\n")},wrapError:function(e,t){if(!t)return Error(e);try{t.message=e+": "+t.message}catch(e){}return t},constructAllowedPackets:function(e){const t={};return e.forEach((e=>{if(!e.tag)throw Error("Invalid input: expected a packet class");t[e.tag]=e})),t},anyPromise:function(e){return new Promise((async(t,r)=>{let n;await Promise.all(e.map((async e=>{try{t(await e)}catch(e){n=e}}))),r(n)}))},selectUint8Array:function(e,t,r){const n=Math.max(t.length,r.length),i=new Uint8Array(n);let o=0;for(let s=0;s{t=i_.concatUint8Array([t,e]);const r=[],n=Math.floor(t.length/45),i=45*n,o=s_(t.subarray(0,i));for(let t=0;tt.length?s_(t)+"\n":""))}function l_(e){let t="";return Yw(e,(e=>{t+=e;let r=0;const n=[" ","\t","\r","\n"];for(let s=0;s0&&(i-r)%4!=0;i--)n.includes(t[i])&&r--;const o=a_(t.substr(0,i));return t=t.substr(i),o}),(()=>a_(t)))}function c_(e){return l_(e.replace(/-/g,"+").replace(/_/g,"/"))}function h_(e,t){let r=u_(e).replace(/[\r\n]/g,"");return t&&(r=r.replace(/[+]/g,"-").replace(/[/]/g,"_").replace(/[=]/g,"")),r}o_?(s_=e=>o_.from(e).toString("base64"),a_=e=>{const t=o_.from(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}):(s_=e=>btoa(i_.uint8ArrayToString(e)),a_=e=>i_.stringToUint8Array(atob(e)));var d_={preferredHashAlgorithm:r_.hash.sha256,preferredSymmetricAlgorithm:r_.symmetric.aes256,preferredCompressionAlgorithm:r_.compression.uncompressed,deflateLevel:6,aeadProtect:!1,preferredAEADAlgorithm:r_.aead.eax,aeadChunkSizeByte:12,v5Keys:!1,s2kIterationCountByte:224,allowUnauthenticatedMessages:!1,allowUnauthenticatedStream:!1,checksumRequired:!1,minRSABits:2047,passwordCollisionCheck:!1,revocationsExpire:!1,allowInsecureDecryptionWithSigningKeys:!1,allowInsecureVerificationWithReformattedKeys:!1,constantTimePKCS1Decryption:!1,constantTimePKCS1DecryptionSupportedSymmetricAlgorithms:new Set([r_.symmetric.aes128,r_.symmetric.aes192,r_.symmetric.aes256]),minBytesForWebCrypto:1e3,ignoreUnsupportedPackets:!0,ignoreMalformedPackets:!1,additionalAllowedPackets:[],showVersion:!1,showComment:!1,versionString:"OpenPGP.js 5.11.0",commentString:"https://openpgpjs.org",maxUserIDLength:5120,knownNotations:[],useIndutnyElliptic:!0,rejectHashAlgorithms:new Set([r_.hash.md5,r_.hash.ripemd]),rejectMessageHashAlgorithms:new Set([r_.hash.md5,r_.hash.ripemd,r_.hash.sha1]),rejectPublicKeyAlgorithms:new Set([r_.publicKey.elgamal,r_.publicKey.dsa]),rejectCurves:new Set([r_.curve.secp256k1])};function f_(e){const t=e.match(/^-----BEGIN PGP (MESSAGE, PART \d+\/\d+|MESSAGE, PART \d+|SIGNED MESSAGE|MESSAGE|PUBLIC KEY BLOCK|PRIVATE KEY BLOCK|SIGNATURE)-----$/m);if(!t)throw Error("Unknown ASCII armor type");return/MESSAGE, PART \d+\/\d+/.test(t[1])?r_.armor.multipartSection:/MESSAGE, PART \d+/.test(t[1])?r_.armor.multipartLast:/SIGNED MESSAGE/.test(t[1])?r_.armor.signed:/MESSAGE/.test(t[1])?r_.armor.message:/PUBLIC KEY BLOCK/.test(t[1])?r_.armor.publicKey:/PRIVATE KEY BLOCK/.test(t[1])?r_.armor.privateKey:/SIGNATURE/.test(t[1])?r_.armor.signature:void 0}function p_(e,t){let r="";return t.showVersion&&(r+="Version: "+t.versionString+"\n"),t.showComment&&(r+="Comment: "+t.commentString+"\n"),e&&(r+="Comment: "+e+"\n"),r+="\n",r}function m_(e){return u_(function(e){let t=13501623;return Yw(e,(e=>{const r=y_?Math.floor(e.length/4):0,n=new Uint32Array(e.buffer,e.byteOffset,r);for(let i=0;i>24&255]^g_[1][t>>16&255]^g_[2][t>>8&255]^g_[3][t>>0&255];for(let i=4*r;i>8^g_[0][255&t^e[i]]}),(()=>new Uint8Array([t,t>>8,t>>16])))}(e))}const g_=[Array(255),Array(255),Array(255),Array(255)];for(let pVe=0;pVe<=255;pVe++){let e=pVe<<16;for(let t=0;t<8;t++)e=e<<1^(0!=(8388608&e)?8801531:0);g_[0][pVe]=(16711680&e)>>16|65280&e|(255&e)<<16}for(let pVe=0;pVe<=255;pVe++)g_[1][pVe]=g_[0][pVe]>>8^g_[0][255&g_[0][pVe]];for(let pVe=0;pVe<=255;pVe++)g_[2][pVe]=g_[1][pVe]>>8^g_[0][255&g_[1][pVe]];for(let pVe=0;pVe<=255;pVe++)g_[3][pVe]=g_[2][pVe]>>8^g_[0][255&g_[2][pVe]];const y_=function(){const e=new ArrayBuffer(2);return new DataView(e).setInt16(0,255,!0),255===new Int16Array(e)[0]}();function v_(e){for(let t=0;t=0&&n!==e.length-1&&(t=e.slice(0,n),r=e.slice(n+1).substr(0,4)),{body:t,checksum:r}}function w_(e,t=d_){return new Promise((async(r,n)=>{try{const i=/^-----[^-]+-----$/m,o=/^[ \f\r\t\u00a0\u2000-\u200a\u202f\u205f\u3000]*$/;let s;const a=[];let u,l,c,h=a,d=[],f=l_(Kw(e,(async(e,t)=>{const p=Uw(e);try{for(;;){let e=await p.readLine();if(void 0===e)throw Error("Misformed armored text");if(e=i_.removeTrailingSpaces(e.replace(/[\r\n]/g,"")),s)if(u)l||2!==s||(i.test(e)?(d=d.join("\r\n"),l=!0,v_(h),h=[],u=!1):d.push(e.replace(/^- /,"")));else if(i.test(e)&&n(Error("Mandatory blank line missing between armor headers and armor data")),o.test(e)){if(v_(h),u=!0,l||2!==s){r({text:d,data:f,headers:a,type:s});break}}else h.push(e);else i.test(e)&&(s=f_(e))}}catch(e){return void n(e)}const m=Fw(t);try{for(;;){await m.ready;const{done:e,value:t}=await p.read();if(e)throw Error("Misformed armored text");const r=t+"";if(-1!==r.indexOf("=")||-1!==r.indexOf("-")){let e=await p.readToEnd();e.length||(e=""),e=r+e,e=i_.removeTrailingSpaces(e.replace(/\r/g,""));const t=e.split(i);if(1===t.length)throw Error("Misformed armored text");const n=b_(t[0].slice(0,-1));c=n.checksum,await m.write(n.body);break}await m.write(r)}await m.ready,await m.close()}catch(e){await m.abort(e)}})));f=Kw(f,(async(e,r)=>{const n=Jw(m_(Vw(e)));n.catch((()=>{})),await zw(e,r,{preventClose:!0});const i=Fw(r);try{const e=(await n).replace("\n","");if(c!==e&&(c||t.checksumRequired))throw Error("Ascii armor integrity check failed");await i.ready,await i.close()}catch(e){await i.abort(e)}}))}catch(e){n(e)}})).then((async e=>(mw(e.data)&&(e.data=await Jw(e.data)),e)))}function __(e,t,r,n,i,o=d_){let s,a;e===r_.armor.signed&&(s=t.text,a=t.hash,t=t.data);const u=Vw(t),l=[];switch(e){case r_.armor.multipartSection:l.push("-----BEGIN PGP MESSAGE, PART "+r+"/"+n+"-----\n"),l.push(p_(i,o)),l.push(u_(t)),l.push("=",m_(u)),l.push("-----END PGP MESSAGE, PART "+r+"/"+n+"-----\n");break;case r_.armor.multipartLast:l.push("-----BEGIN PGP MESSAGE, PART "+r+"-----\n"),l.push(p_(i,o)),l.push(u_(t)),l.push("=",m_(u)),l.push("-----END PGP MESSAGE, PART "+r+"-----\n");break;case r_.armor.signed:l.push("-----BEGIN PGP SIGNED MESSAGE-----\n"),l.push("Hash: "+a+"\n\n"),l.push(s.replace(/^-/gm,"- -")),l.push("\n-----BEGIN PGP SIGNATURE-----\n"),l.push(p_(i,o)),l.push(u_(t)),l.push("=",m_(u)),l.push("-----END PGP SIGNATURE-----\n");break;case r_.armor.message:l.push("-----BEGIN PGP MESSAGE-----\n"),l.push(p_(i,o)),l.push(u_(t)),l.push("=",m_(u)),l.push("-----END PGP MESSAGE-----\n");break;case r_.armor.publicKey:l.push("-----BEGIN PGP PUBLIC KEY BLOCK-----\n"),l.push(p_(i,o)),l.push(u_(t)),l.push("=",m_(u)),l.push("-----END PGP PUBLIC KEY BLOCK-----\n");break;case r_.armor.privateKey:l.push("-----BEGIN PGP PRIVATE KEY BLOCK-----\n"),l.push(p_(i,o)),l.push(u_(t)),l.push("=",m_(u)),l.push("-----END PGP PRIVATE KEY BLOCK-----\n");break;case r_.armor.signature:l.push("-----BEGIN PGP SIGNATURE-----\n"),l.push(p_(i,o)),l.push(u_(t)),l.push("=",m_(u)),l.push("-----END PGP SIGNATURE-----\n")}return i_.concat(l)}class E_{constructor(){this.bytes=""}read(e){return this.bytes=i_.uint8ArrayToString(e.subarray(0,8)),this.bytes.length}write(){return i_.stringToUint8Array(this.bytes)}toHex(){return i_.uint8ArrayToHex(i_.stringToUint8Array(this.bytes))}equals(e,t=!1){return t&&(e.isWildcard()||this.isWildcard())||this.bytes===e.bytes}isNull(){return""===this.bytes}isWildcard(){return/^0+$/.test(this.toHex())}static mapToHex(e){return e.toHex()}static fromID(e){const t=new E_;return t.read(i_.hexToUint8Array(e)),t}static wildcard(){const e=new E_;return e.read(new Uint8Array(8)),e}}var A_=function(){var e,t,r=!1;function n(r,n){var i=e[(t[r]+t[n])%255];return 0!==r&&0!==n||(i=0),i}var i,o,s,a,u=!1;function l(){function l(r){var n,i,o;for(i=o=function(r){var n=e[255-t[r]];return 0===r&&(n=0),n}(r),n=0;n<4;n++)o^=i=255&(i<<1|i>>>7);return 99^o}r||function(){e=[],t=[];var n,i,o=1;for(n=0;n<255;n++)e[n]=o,i=128&o,o<<=1,o&=255,128===i&&(o^=27),o^=e[n],t[e[n]]=n;e[255]=e[0],t[0]=0,r=!0}(),i=[],o=[],s=[[],[],[],[]],a=[[],[],[],[]];for(var c=0;c<256;c++){var h=l(c);i[c]=h,o[h]=c,s[0][c]=n(2,h)<<24|h<<16|h<<8|n(3,h),a[0][h]=n(14,c)<<24|n(9,c)<<16|n(13,c)<<8|n(11,c);for(var d=1;d<4;d++)s[d][c]=s[d-1][c]>>>8|s[d-1][c]<<24,a[d][h]=a[d-1][h]>>>8|a[d-1][h]<<24}u=!0}var c=function(e,t){u||l();var r=new Uint32Array(t);r.set(i,512),r.set(o,768);for(var n=0;n<4;n++)r.set(s[n],4096+1024*n>>2),r.set(a[n],8192+1024*n>>2);var c=function(e,t,r){"use asm";var n=0,i=0,o=0,s=0,a=0,u=0,l=0,c=0,h=0,d=0,f=0,p=0,m=0,g=0,y=0,v=0,b=0,w=0,_=0,E=0,A=0;var M=new e.Uint32Array(r),S=new e.Uint8Array(r);function x(e,t,r,a,u,l,c,h){e=e|0;t=t|0;r=r|0;a=a|0;u=u|0;l=l|0;c=c|0;h=h|0;var d=0,f=0,p=0,m=0,g=0,y=0,v=0,b=0;d=r|0x400,f=r|0x800,p=r|0xc00;u=u^M[(e|0)>>2],l=l^M[(e|4)>>2],c=c^M[(e|8)>>2],h=h^M[(e|12)>>2];for(b=16;(b|0)<=a<<4;b=b+16|0){m=M[(r|u>>22&1020)>>2]^M[(d|l>>14&1020)>>2]^M[(f|c>>6&1020)>>2]^M[(p|h<<2&1020)>>2]^M[(e|b|0)>>2],g=M[(r|l>>22&1020)>>2]^M[(d|c>>14&1020)>>2]^M[(f|h>>6&1020)>>2]^M[(p|u<<2&1020)>>2]^M[(e|b|4)>>2],y=M[(r|c>>22&1020)>>2]^M[(d|h>>14&1020)>>2]^M[(f|u>>6&1020)>>2]^M[(p|l<<2&1020)>>2]^M[(e|b|8)>>2],v=M[(r|h>>22&1020)>>2]^M[(d|u>>14&1020)>>2]^M[(f|l>>6&1020)>>2]^M[(p|c<<2&1020)>>2]^M[(e|b|12)>>2];u=m,l=g,c=y,h=v}n=M[(t|u>>22&1020)>>2]<<24^M[(t|l>>14&1020)>>2]<<16^M[(t|c>>6&1020)>>2]<<8^M[(t|h<<2&1020)>>2]^M[(e|b|0)>>2],i=M[(t|l>>22&1020)>>2]<<24^M[(t|c>>14&1020)>>2]<<16^M[(t|h>>6&1020)>>2]<<8^M[(t|u<<2&1020)>>2]^M[(e|b|4)>>2],o=M[(t|c>>22&1020)>>2]<<24^M[(t|h>>14&1020)>>2]<<16^M[(t|u>>6&1020)>>2]<<8^M[(t|l<<2&1020)>>2]^M[(e|b|8)>>2],s=M[(t|h>>22&1020)>>2]<<24^M[(t|u>>14&1020)>>2]<<16^M[(t|l>>6&1020)>>2]<<8^M[(t|c<<2&1020)>>2]^M[(e|b|12)>>2]}function k(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;x(0x0000,0x0800,0x1000,A,e,t,r,n)}function T(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var o=0;x(0x0400,0x0c00,0x2000,A,e,n,r,t);o=i,i=s,s=o}function C(e,t,r,h){e=e|0;t=t|0;r=r|0;h=h|0;x(0x0000,0x0800,0x1000,A,a^e,u^t,l^r,c^h);a=n,u=i,l=o,c=s}function I(e,t,r,h){e=e|0;t=t|0;r=r|0;h=h|0;var d=0;x(0x0400,0x0c00,0x2000,A,e,h,r,t);d=i,i=s,s=d;n=n^a,i=i^u,o=o^l,s=s^c;a=e,u=t,l=r,c=h}function N(e,t,r,h){e=e|0;t=t|0;r=r|0;h=h|0;x(0x0000,0x0800,0x1000,A,a,u,l,c);a=n=n^e,u=i=i^t,l=o=o^r,c=s=s^h}function R(e,t,r,h){e=e|0;t=t|0;r=r|0;h=h|0;x(0x0000,0x0800,0x1000,A,a,u,l,c);n=n^e,i=i^t,o=o^r,s=s^h;a=e,u=t,l=r,c=h}function P(e,t,r,h){e=e|0;t=t|0;r=r|0;h=h|0;x(0x0000,0x0800,0x1000,A,a,u,l,c);a=n,u=i,l=o,c=s;n=n^e,i=i^t,o=o^r,s=s^h}function D(e,t,r,a){e=e|0;t=t|0;r=r|0;a=a|0;x(0x0000,0x0800,0x1000,A,h,d,f,p);p=~v&p|v&p+1;f=~y&f|y&f+((p|0)==0);d=~g&d|g&d+((f|0)==0);h=~m&h|m&h+((d|0)==0);n=n^e;i=i^t;o=o^r;s=s^a}function L(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0,s=0,h=0,d=0,f=0,p=0,m=0,g=0,y=0;e=e^a,t=t^u,r=r^l,n=n^c;i=b|0,o=w|0,s=_|0,h=E|0;for(;(g|0)<128;g=g+1|0){if(i>>>31){d=d^e,f=f^t,p=p^r,m=m^n}i=i<<1|o>>>31,o=o<<1|s>>>31,s=s<<1|h>>>31,h=h<<1;y=n&1;n=n>>>1|r<<31,r=r>>>1|t<<31,t=t>>>1|e<<31,e=e>>>1;if(y)e=e^0xe1000000}a=d,u=f,l=p,c=m}function O(e){e=e|0;A=e}function j(e,t,r,a){e=e|0;t=t|0;r=r|0;a=a|0;n=e,i=t,o=r,s=a}function B(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;a=e,u=t,l=r,c=n}function U(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;h=e,d=t,f=r,p=n}function F(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;m=e,g=t,y=r,v=n}function z(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;p=~v&p|v&n,f=~y&f|y&r,d=~g&d|g&t,h=~m&h|m&e}function H(e){e=e|0;if(e&15)return-1;S[e|0]=n>>>24,S[e|1]=n>>>16&255,S[e|2]=n>>>8&255,S[e|3]=n&255,S[e|4]=i>>>24,S[e|5]=i>>>16&255,S[e|6]=i>>>8&255,S[e|7]=i&255,S[e|8]=o>>>24,S[e|9]=o>>>16&255,S[e|10]=o>>>8&255,S[e|11]=o&255,S[e|12]=s>>>24,S[e|13]=s>>>16&255,S[e|14]=s>>>8&255,S[e|15]=s&255;return 16}function G(e){e=e|0;if(e&15)return-1;S[e|0]=a>>>24,S[e|1]=a>>>16&255,S[e|2]=a>>>8&255,S[e|3]=a&255,S[e|4]=u>>>24,S[e|5]=u>>>16&255,S[e|6]=u>>>8&255,S[e|7]=u&255,S[e|8]=l>>>24,S[e|9]=l>>>16&255,S[e|10]=l>>>8&255,S[e|11]=l&255,S[e|12]=c>>>24,S[e|13]=c>>>16&255,S[e|14]=c>>>8&255,S[e|15]=c&255;return 16}function Y(){k(0,0,0,0);b=n,w=i,_=o,E=s}function K(e,t,r){e=e|0;t=t|0;r=r|0;var a=0;if(t&15)return-1;while((r|0)>=16){W[e&7](S[t|0]<<24|S[t|1]<<16|S[t|2]<<8|S[t|3],S[t|4]<<24|S[t|5]<<16|S[t|6]<<8|S[t|7],S[t|8]<<24|S[t|9]<<16|S[t|10]<<8|S[t|11],S[t|12]<<24|S[t|13]<<16|S[t|14]<<8|S[t|15]);S[t|0]=n>>>24,S[t|1]=n>>>16&255,S[t|2]=n>>>8&255,S[t|3]=n&255,S[t|4]=i>>>24,S[t|5]=i>>>16&255,S[t|6]=i>>>8&255,S[t|7]=i&255,S[t|8]=o>>>24,S[t|9]=o>>>16&255,S[t|10]=o>>>8&255,S[t|11]=o&255,S[t|12]=s>>>24,S[t|13]=s>>>16&255,S[t|14]=s>>>8&255,S[t|15]=s&255;a=a+16|0,t=t+16|0,r=r-16|0}return a|0}function q(e,t,r){e=e|0;t=t|0;r=r|0;var n=0;if(t&15)return-1;while((r|0)>=16){V[e&1](S[t|0]<<24|S[t|1]<<16|S[t|2]<<8|S[t|3],S[t|4]<<24|S[t|5]<<16|S[t|6]<<8|S[t|7],S[t|8]<<24|S[t|9]<<16|S[t|10]<<8|S[t|11],S[t|12]<<24|S[t|13]<<16|S[t|14]<<8|S[t|15]);n=n+16|0,t=t+16|0,r=r-16|0}return n|0}var W=[k,T,C,I,N,R,P,D];var V=[C,L];return{set_rounds:O,set_state:j,set_iv:B,set_nonce:U,set_mask:F,set_counter:z,get_state:H,get_iv:G,gcm_init:Y,cipher:K,mac:q}}({Uint8Array,Uint32Array},e,t);return c.set_key=function(e,t,n,o,s,u,l,h,d){var f=r.subarray(0,60),p=r.subarray(256,316);f.set([t,n,o,s,u,l,h,d]);for(var m=e,g=1;m<4*e+28;m++){var y=f[m-1];(m%e==0||8===e&&m%e==4)&&(y=i[y>>>24]<<24^i[y>>>16&255]<<16^i[y>>>8&255]<<8^i[255&y]),m%e==0&&(y=y<<8^y>>>24^g<<24,g=g<<1^(128&g?27:0)),f[m]=f[m-e]^y}for(var v=0;v=m-4?y:a[0][i[y>>>24]]^a[1][i[y>>>16&255]]^a[2][i[y>>>8&255]]^a[3][i[255&y]];c.set_rounds(e+5)},c};return c.ENC={ECB:0,CBC:2,CFB:4,OFB:6,CTR:7},c.DEC={ECB:1,CBC:3,CFB:5,OFB:6,CTR:7},c.MAC={CBC:0,GCM:1},c.HEAP_DATA=16384,c}();function M_(e){return e instanceof Uint8Array}function S_(e,t){const r=e?e.byteLength:t||65536;if(4095&r||r<=0)throw Error("heap size must be a positive integer and a multiple of 4096");return e||new Uint8Array(new ArrayBuffer(r))}function x_(e,t,r,n,i){const o=e.length-t,s=oe+t.length),0),r=new Uint8Array(t);let n=0;for(let i=0;i>2,i.getUint32(0),i.getUint32(4),i.getUint32(8),i.getUint32(12),n>16?i.getUint32(16):0,n>16?i.getUint32(20):0,n>24?i.getUint32(24):0,n>24?i.getUint32(28):0),void 0!==t){if(16!==t.length)throw new C_("illegal iv size");let e=new DataView(t.buffer,t.byteOffset,t.byteLength);r.set_iv(e.getUint32(0),e.getUint32(4),e.getUint32(8),e.getUint32(12))}else r.set_iv(0,0,0,0)}AES_Encrypt_process(e){if(!M_(e))throw new TypeError("data isn't of expected type");let{heap:t,asm:r}=this.acquire_asm(),n=A_.ENC[this.mode],i=A_.HEAP_DATA,o=this.pos,s=this.len,a=0,u=e.length||0,l=0,c=0,h=new Uint8Array(s+u&-16);for(;u>0;)c=x_(t,o+s,e,a,u),s+=c,a+=c,u-=c,c=r.cipher(n,i+o,s),c&&h.set(t.subarray(o,o+c),l),l+=c,c0;)d=x_(t,o+s,e,a,u),s+=d,a+=d,u-=d,d=r.cipher(n,i+o,s-(u?0:h)),d&&f.set(t.subarray(o,o+d),l),l+=d,d0){if(o%16){if(this.hasOwnProperty("padding"))throw new C_("data length must be a multiple of the block size");o+=16-o%16}if(t.cipher(r,n+i,o),this.hasOwnProperty("padding")&&this.padding){let t=e[i+s-1];if(t<1||t>16||t>s)throw new I_("bad padding");let r=0;for(let n=t;n>1;n--)r|=t^e[i+s-n];if(r)throw new I_("bad padding");s-=t}}const a=new Uint8Array(s);return s>0&&a.set(e.subarray(i,i+s)),this.pos=0,this.len=0,this.release_asm(),a}}class D_{static encrypt(e,t,r=!1){return new D_(t,r).encrypt(e)}static decrypt(e,t,r=!1){return new D_(t,r).decrypt(e)}constructor(e,t=!1,r){this.aes=r||new P_(e,void 0,t,"ECB")}encrypt(e){return k_(this.aes.AES_Encrypt_process(e),this.aes.AES_Encrypt_finish())}decrypt(e){return k_(this.aes.AES_Decrypt_process(e),this.aes.AES_Decrypt_finish())}}function L_(e){const t=function(e){const t=new D_(e);this.encrypt=function(e){return t.encrypt(e)},this.decrypt=function(e){return t.decrypt(e)}};return t.blockSize=t.prototype.blockSize=16,t.keySize=t.prototype.keySize=e/8,t}function O_(e,t,r,n,i,o){const s=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],a=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],u=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],l=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],c=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],h=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],d=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],f=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];let p,m,g,y,v,b,w,_,E,A,M,S,x,k,T=0,C=t.length;const I=32===e.length?3:9;_=3===I?r?[0,32,2]:[30,-2,-2]:r?[0,32,2,62,30,-2,64,96,2]:[94,62,-2,32,64,2,30,-2,-2],r&&(t=function(e,t){const r=8-e.length%8;let n;if(2===t&&r<8)n=32;else if(1===t)n=r;else{if(t||!(r<8)){if(8===r)return e;throw Error("des: invalid padding")}n=0}const i=new Uint8Array(e.length+r);for(let o=0;o>>4^w),w^=g,b^=g<<4,g=65535&(b>>>16^w),w^=g,b^=g<<16,g=858993459&(w>>>2^b),b^=g,w^=g<<2,g=16711935&(w>>>8^b),b^=g,w^=g<<8,g=1431655765&(b>>>1^w),w^=g,b^=g<<1,b=b<<1|b>>>31,w=w<<1|w>>>31,m=0;m>>4|w<<28)^e[p+1],g=b,b=w,w=g^(a[y>>>24&63]|l[y>>>16&63]|h[y>>>8&63]|f[63&y]|s[v>>>24&63]|u[v>>>16&63]|c[v>>>8&63]|d[63&v]);g=b,b=w,w=g}b=b>>>1|b<<31,w=w>>>1|w<<31,g=1431655765&(b>>>1^w),w^=g,b^=g<<1,g=16711935&(w>>>8^b),b^=g,w^=g<<8,g=858993459&(w>>>2^b),b^=g,w^=g<<2,g=65535&(b>>>16^w),w^=g,b^=g<<16,g=252645135&(b>>>4^w),w^=g,b^=g<<4,1===n&&(r?(E=b,M=w):(b^=A,w^=S)),N[R++]=b>>>24,N[R++]=b>>>16&255,N[R++]=b>>>8&255,N[R++]=255&b,N[R++]=w>>>24,N[R++]=w>>>16&255,N[R++]=w>>>8&255,N[R++]=255&w}return r||(N=function(e,t){let r,n=null;if(2===t)r=32;else if(1===t)n=e[e.length-1];else{if(t)throw Error("des: invalid padding");r=0}if(!n){for(n=1;e[e.length-n]===r;)n++;n--}return e.subarray(0,e.length-n)}(N,o)),N}function j_(e){const t=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],r=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],n=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],i=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],o=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],s=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],a=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],u=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],l=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],c=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],h=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],d=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],f=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],p=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],m=e.length>8?3:1,g=Array(32*m),y=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0];let v,b,w,_=0,E=0;for(let A=0;A>>4^A),A^=w,m^=w<<4,w=65535&(A>>>-16^m),m^=w,A^=w<<-16,w=858993459&(m>>>2^A),A^=w,m^=w<<2,w=65535&(A>>>-16^m),m^=w,A^=w<<-16,w=1431655765&(m>>>1^A),A^=w,m^=w<<1,w=16711935&(A>>>8^m),m^=w,A^=w<<8,w=1431655765&(m>>>1^A),A^=w,m^=w<<1,w=m<<8|A>>>20&240,m=A<<24|A<<8&16711680|A>>>8&65280|A>>>24&240,A=w;for(let e=0;e<16;e++)y[e]?(m=m<<2|m>>>26,A=A<<2|A>>>26):(m=m<<1|m>>>27,A=A<<1|A>>>27),m&=-15,A&=-15,v=t[m>>>28]|r[m>>>24&15]|n[m>>>20&15]|i[m>>>16&15]|o[m>>>12&15]|s[m>>>8&15]|a[m>>>4&15],b=u[A>>>28]|l[A>>>24&15]|c[A>>>20&15]|h[A>>>16&15]|d[A>>>12&15]|f[A>>>8&15]|p[A>>>4&15],w=65535&(b>>>16^v),g[E++]=v^w,g[E++]=b^w<<16}return g}function B_(e){this.key=[];for(let t=0;t<3;t++)this.key.push(new Uint8Array(e.subarray(8*t,8*t+8)));this.encrypt=function(e){return O_(j_(this.key[2]),O_(j_(this.key[1]),O_(j_(this.key[0]),e,!0,0,null,null),!1,0,null,null),!0,0,null,null)}}function U_(){this.BlockSize=8,this.KeySize=16,this.setKey=function(e){if(this.masking=Array(16),this.rotate=Array(16),this.reset(),e.length!==this.KeySize)throw Error("CAST-128: keys must be 16 bytes");return this.keySchedule(e),!0},this.reset=function(){for(let e=0;e<16;e++)this.masking[e]=0,this.rotate[e]=0},this.getBlockSize=function(){return this.BlockSize},this.encrypt=function(e){const t=Array(e.length);for(let o=0;o>>24&255,t[o+1]=u>>>16&255,t[o+2]=u>>>8&255,t[o+3]=255&u,t[o+4]=a>>>24&255,t[o+5]=a>>>16&255,t[o+6]=a>>>8&255,t[o+7]=255&a}return t},this.decrypt=function(e){const t=Array(e.length);for(let o=0;o>>24&255,t[o+1]=u>>>16&255,t[o+2]=u>>>8&255,t[o+3]=255&u,t[o+4]=a>>>24&255,t[o+5]=a>>16&255,t[o+6]=a>>8&255,t[o+7]=255&a}return t};const e=[,,,,];e[0]=[,,,,],e[0][0]=[4,0,13,15,12,14,8],e[0][1]=[5,2,16,18,17,19,10],e[0][2]=[6,3,23,22,21,20,9],e[0][3]=[7,1,26,25,27,24,11],e[1]=[,,,,],e[1][0]=[0,6,21,23,20,22,16],e[1][1]=[1,4,0,2,1,3,18],e[1][2]=[2,5,7,6,5,4,17],e[1][3]=[3,7,10,9,11,8,19],e[2]=[,,,,],e[2][0]=[4,0,13,15,12,14,8],e[2][1]=[5,2,16,18,17,19,10],e[2][2]=[6,3,23,22,21,20,9],e[2][3]=[7,1,26,25,27,24,11],e[3]=[,,,,],e[3][0]=[0,6,21,23,20,22,16],e[3][1]=[1,4,0,2,1,3,18],e[3][2]=[2,5,7,6,5,4,17],e[3][3]=[3,7,10,9,11,8,19];const t=[,,,,];function r(e,t,r){const n=t+e,i=n<>>32-r;return(o[0][i>>>24]^o[1][i>>>16&255])-o[2][i>>>8&255]+o[3][255&i]}function n(e,t,r){const n=t^e,i=n<>>32-r;return o[0][i>>>24]-o[1][i>>>16&255]+o[2][i>>>8&255]^o[3][255&i]}function i(e,t,r){const n=t-e,i=n<>>32-r;return(o[0][i>>>24]+o[1][i>>>16&255]^o[2][i>>>8&255])-o[3][255&i]}t[0]=[,,,,],t[0][0]=[24,25,23,22,18],t[0][1]=[26,27,21,20,22],t[0][2]=[28,29,19,18,25],t[0][3]=[30,31,17,16,28],t[1]=[,,,,],t[1][0]=[3,2,12,13,8],t[1][1]=[1,0,14,15,13],t[1][2]=[7,6,8,9,3],t[1][3]=[5,4,10,11,7],t[2]=[,,,,],t[2][0]=[19,18,28,29,25],t[2][1]=[17,16,30,31,28],t[2][2]=[23,22,24,25,18],t[2][3]=[21,20,26,27,22],t[3]=[,,,,],t[3][0]=[8,9,7,6,3],t[3][1]=[10,11,5,4,7],t[3][2]=[12,13,3,2,8],t[3][3]=[14,15,1,0,13],this.keySchedule=function(r){const n=[,,,,,,,,],i=Array(32);let s;for(let e=0;e<4;e++)s=4*e,n[e]=r[s]<<24|r[s+1]<<16|r[s+2]<<8|r[s+3];const a=[6,7,4,5];let u,l=0;for(let c=0;c<2;c++)for(let r=0;r<4;r++){for(s=0;s<4;s++){const t=e[r][s];u=n[t[1]],u^=o[4][n[t[2]>>>2]>>>24-8*(3&t[2])&255],u^=o[5][n[t[3]>>>2]>>>24-8*(3&t[3])&255],u^=o[6][n[t[4]>>>2]>>>24-8*(3&t[4])&255],u^=o[7][n[t[5]>>>2]>>>24-8*(3&t[5])&255],u^=o[a[s]][n[t[6]>>>2]>>>24-8*(3&t[6])&255],n[t[0]]=u}for(s=0;s<4;s++){const e=t[r][s];u=o[4][n[e[0]>>>2]>>>24-8*(3&e[0])&255],u^=o[5][n[e[1]>>>2]>>>24-8*(3&e[1])&255],u^=o[6][n[e[2]>>>2]>>>24-8*(3&e[2])&255],u^=o[7][n[e[3]>>>2]>>>24-8*(3&e[3])&255],u^=o[4+s][n[e[4]>>>2]>>>24-8*(3&e[4])&255],i[l]=u,l++}}for(let e=0;e<16;e++)this.masking[e]=i[e],this.rotate[e]=31&i[16+e]};const o=[,,,,,,,,];o[0]=[821772500,2678128395,1810681135,1059425402,505495343,2617265619,1610868032,3483355465,3218386727,2294005173,3791863952,2563806837,1852023008,365126098,3269944861,584384398,677919599,3229601881,4280515016,2002735330,1136869587,3744433750,2289869850,2731719981,2714362070,879511577,1639411079,575934255,717107937,2857637483,576097850,2731753936,1725645e3,2810460463,5111599,767152862,2543075244,1251459544,1383482551,3052681127,3089939183,3612463449,1878520045,1510570527,2189125840,2431448366,582008916,3163445557,1265446783,1354458274,3529918736,3202711853,3073581712,3912963487,3029263377,1275016285,4249207360,2905708351,3304509486,1442611557,3585198765,2712415662,2731849581,3248163920,2283946226,208555832,2766454743,1331405426,1447828783,3315356441,3108627284,2957404670,2981538698,3339933917,1669711173,286233437,1465092821,1782121619,3862771680,710211251,980974943,1651941557,430374111,2051154026,704238805,4128970897,3144820574,2857402727,948965521,3333752299,2227686284,718756367,2269778983,2731643755,718440111,2857816721,3616097120,1113355533,2478022182,410092745,1811985197,1944238868,2696854588,1415722873,1682284203,1060277122,1998114690,1503841958,82706478,2315155686,1068173648,845149890,2167947013,1768146376,1993038550,3566826697,3390574031,940016341,3355073782,2328040721,904371731,1205506512,4094660742,2816623006,825647681,85914773,2857843460,1249926541,1417871568,3287612,3211054559,3126306446,1975924523,1353700161,2814456437,2438597621,1800716203,722146342,2873936343,1151126914,4160483941,2877670899,458611604,2866078500,3483680063,770352098,2652916994,3367839148,3940505011,3585973912,3809620402,718646636,2504206814,2914927912,3631288169,2857486607,2860018678,575749918,2857478043,718488780,2069512688,3548183469,453416197,1106044049,3032691430,52586708,3378514636,3459808877,3211506028,1785789304,218356169,3571399134,3759170522,1194783844,1523787992,3007827094,1975193539,2555452411,1341901877,3045838698,3776907964,3217423946,2802510864,2889438986,1057244207,1636348243,3761863214,1462225785,2632663439,481089165,718503062,24497053,3332243209,3344655856,3655024856,3960371065,1195698900,2971415156,3710176158,2115785917,4027663609,3525578417,2524296189,2745972565,3564906415,1372086093,1452307862,2780501478,1476592880,3389271281,18495466,2378148571,901398090,891748256,3279637769,3157290713,2560960102,1447622437,4284372637,216884176,2086908623,1879786977,3588903153,2242455666,2938092967,3559082096,2810645491,758861177,1121993112,215018983,642190776,4169236812,1196255959,2081185372,3508738393,941322904,4124243163,2877523539,1848581667,2205260958,3180453958,2589345134,3694731276,550028657,2519456284,3789985535,2973870856,2093648313,443148163,46942275,2734146937,1117713533,1115362972,1523183689,3717140224,1551984063],o[1]=[522195092,4010518363,1776537470,960447360,4267822970,4005896314,1435016340,1929119313,2913464185,1310552629,3579470798,3724818106,2579771631,1594623892,417127293,2715217907,2696228731,1508390405,3994398868,3925858569,3695444102,4019471449,3129199795,3770928635,3520741761,990456497,4187484609,2783367035,21106139,3840405339,631373633,3783325702,532942976,396095098,3548038825,4267192484,2564721535,2011709262,2039648873,620404603,3776170075,2898526339,3612357925,4159332703,1645490516,223693667,1567101217,3362177881,1029951347,3470931136,3570957959,1550265121,119497089,972513919,907948164,3840628539,1613718692,3594177948,465323573,2659255085,654439692,2575596212,2699288441,3127702412,277098644,624404830,4100943870,2717858591,546110314,2403699828,3655377447,1321679412,4236791657,1045293279,4010672264,895050893,2319792268,494945126,1914543101,2777056443,3894764339,2219737618,311263384,4275257268,3458730721,669096869,3584475730,3835122877,3319158237,3949359204,2005142349,2713102337,2228954793,3769984788,569394103,3855636576,1425027204,108000370,2736431443,3671869269,3043122623,1750473702,2211081108,762237499,3972989403,2798899386,3061857628,2943854345,867476300,964413654,1591880597,1594774276,2179821409,552026980,3026064248,3726140315,2283577634,3110545105,2152310760,582474363,1582640421,1383256631,2043843868,3322775884,1217180674,463797851,2763038571,480777679,2718707717,2289164131,3118346187,214354409,200212307,3810608407,3025414197,2674075964,3997296425,1847405948,1342460550,510035443,4080271814,815934613,833030224,1620250387,1945732119,2703661145,3966000196,1388869545,3456054182,2687178561,2092620194,562037615,1356438536,3409922145,3261847397,1688467115,2150901366,631725691,3840332284,549916902,3455104640,394546491,837744717,2114462948,751520235,2221554606,2415360136,3999097078,2063029875,803036379,2702586305,821456707,3019566164,360699898,4018502092,3511869016,3677355358,2402471449,812317050,49299192,2570164949,3259169295,2816732080,3331213574,3101303564,2156015656,3705598920,3546263921,143268808,3200304480,1638124008,3165189453,3341807610,578956953,2193977524,3638120073,2333881532,807278310,658237817,2969561766,1641658566,11683945,3086995007,148645947,1138423386,4158756760,1981396783,2401016740,3699783584,380097457,2680394679,2803068651,3334260286,441530178,4016580796,1375954390,761952171,891809099,2183123478,157052462,3683840763,1592404427,341349109,2438483839,1417898363,644327628,2233032776,2353769706,2201510100,220455161,1815641738,182899273,2995019788,3627381533,3702638151,2890684138,1052606899,588164016,1681439879,4038439418,2405343923,4229449282,167996282,1336969661,1688053129,2739224926,1543734051,1046297529,1138201970,2121126012,115334942,1819067631,1902159161,1941945968,2206692869,1159982321],o[2]=[2381300288,637164959,3952098751,3893414151,1197506559,916448331,2350892612,2932787856,3199334847,4009478890,3905886544,1373570990,2450425862,4037870920,3778841987,2456817877,286293407,124026297,3001279700,1028597854,3115296800,4208886496,2691114635,2188540206,1430237888,1218109995,3572471700,308166588,570424558,2187009021,2455094765,307733056,1310360322,3135275007,1384269543,2388071438,863238079,2359263624,2801553128,3380786597,2831162807,1470087780,1728663345,4072488799,1090516929,532123132,2389430977,1132193179,2578464191,3051079243,1670234342,1434557849,2711078940,1241591150,3314043432,3435360113,3091448339,1812415473,2198440252,267246943,796911696,3619716990,38830015,1526438404,2806502096,374413614,2943401790,1489179520,1603809326,1920779204,168801282,260042626,2358705581,1563175598,2397674057,1356499128,2217211040,514611088,2037363785,2186468373,4022173083,2792511869,2913485016,1173701892,4200428547,3896427269,1334932762,2455136706,602925377,2835607854,1613172210,41346230,2499634548,2457437618,2188827595,41386358,4172255629,1313404830,2405527007,3801973774,2217704835,873260488,2528884354,2478092616,4012915883,2555359016,2006953883,2463913485,575479328,2218240648,2099895446,660001756,2341502190,3038761536,3888151779,3848713377,3286851934,1022894237,1620365795,3449594689,1551255054,15374395,3570825345,4249311020,4151111129,3181912732,310226346,1133119310,530038928,136043402,2476768958,3107506709,2544909567,1036173560,2367337196,1681395281,1758231547,3641649032,306774401,1575354324,3716085866,1990386196,3114533736,2455606671,1262092282,3124342505,2768229131,4210529083,1833535011,423410938,660763973,2187129978,1639812e3,3508421329,3467445492,310289298,272797111,2188552562,2456863912,310240523,677093832,1013118031,901835429,3892695601,1116285435,3036471170,1337354835,243122523,520626091,277223598,4244441197,4194248841,1766575121,594173102,316590669,742362309,3536858622,4176435350,3838792410,2501204839,1229605004,3115755532,1552908988,2312334149,979407927,3959474601,1148277331,176638793,3614686272,2083809052,40992502,1340822838,2731552767,3535757508,3560899520,1354035053,122129617,7215240,2732932949,3118912700,2718203926,2539075635,3609230695,3725561661,1928887091,2882293555,1988674909,2063640240,2491088897,1459647954,4189817080,2302804382,1113892351,2237858528,1927010603,4002880361,1856122846,1594404395,2944033133,3855189863,3474975698,1643104450,4054590833,3431086530,1730235576,2984608721,3084664418,2131803598,4178205752,267404349,1617849798,1616132681,1462223176,736725533,2327058232,551665188,2945899023,1749386277,2575514597,1611482493,674206544,2201269090,3642560800,728599968,1680547377,2620414464,1388111496,453204106,4156223445,1094905244,2754698257,2201108165,3757000246,2704524545,3922940700,3996465027],o[3]=[2645754912,532081118,2814278639,3530793624,1246723035,1689095255,2236679235,4194438865,2116582143,3859789411,157234593,2045505824,4245003587,1687664561,4083425123,605965023,672431967,1336064205,3376611392,214114848,4258466608,3232053071,489488601,605322005,3998028058,264917351,1912574028,756637694,436560991,202637054,135989450,85393697,2152923392,3896401662,2895836408,2145855233,3535335007,115294817,3147733898,1922296357,3464822751,4117858305,1037454084,2725193275,2127856640,1417604070,1148013728,1827919605,642362335,2929772533,909348033,1346338451,3547799649,297154785,1917849091,4161712827,2883604526,3968694238,1469521537,3780077382,3375584256,1763717519,136166297,4290970789,1295325189,2134727907,2798151366,1566297257,3672928234,2677174161,2672173615,965822077,2780786062,289653839,1133871874,3491843819,35685304,1068898316,418943774,672553190,642281022,2346158704,1954014401,3037126780,4079815205,2030668546,3840588673,672283427,1776201016,359975446,3750173538,555499703,2769985273,1324923,69110472,152125443,3176785106,3822147285,1340634837,798073664,1434183902,15393959,216384236,1303690150,3881221631,3711134124,3960975413,106373927,2578434224,1455997841,1801814300,1578393881,1854262133,3188178946,3258078583,2302670060,1539295533,3505142565,3078625975,2372746020,549938159,3278284284,2620926080,181285381,2865321098,3970029511,68876850,488006234,1728155692,2608167508,836007927,2435231793,919367643,3339422534,3655756360,1457871481,40520939,1380155135,797931188,234455205,2255801827,3990488299,397000196,739833055,3077865373,2871719860,4022553888,772369276,390177364,3853951029,557662966,740064294,1640166671,1699928825,3535942136,622006121,3625353122,68743880,1742502,219489963,1664179233,1577743084,1236991741,410585305,2366487942,823226535,1050371084,3426619607,3586839478,212779912,4147118561,1819446015,1911218849,530248558,3486241071,3252585495,2886188651,3410272728,2342195030,20547779,2982490058,3032363469,3631753222,312714466,1870521650,1493008054,3491686656,615382978,4103671749,2534517445,1932181,2196105170,278426614,6369430,3274544417,2913018367,697336853,2143000447,2946413531,701099306,1558357093,2805003052,3500818408,2321334417,3567135975,216290473,3591032198,23009561,1996984579,3735042806,2024298078,3739440863,569400510,2339758983,3016033873,3097871343,3639523026,3844324983,3256173865,795471839,2951117563,4101031090,4091603803,3603732598,971261452,534414648,428311343,3389027175,2844869880,694888862,1227866773,2456207019,3043454569,2614353370,3749578031,3676663836,459166190,4132644070,1794958188,51825668,2252611902,3084671440,2036672799,3436641603,1099053433,2469121526,3059204941,1323291266,2061838604,1018778475,2233344254,2553501054,334295216,3556750194,1065731521,183467730],o[4]=[2127105028,745436345,2601412319,2788391185,3093987327,500390133,1155374404,389092991,150729210,3891597772,3523549952,1935325696,716645080,946045387,2901812282,1774124410,3869435775,4039581901,3293136918,3438657920,948246080,363898952,3867875531,1286266623,1598556673,68334250,630723836,1104211938,1312863373,613332731,2377784574,1101634306,441780740,3129959883,1917973735,2510624549,3238456535,2544211978,3308894634,1299840618,4076074851,1756332096,3977027158,297047435,3790297736,2265573040,3621810518,1311375015,1667687725,47300608,3299642885,2474112369,201668394,1468347890,576830978,3594690761,3742605952,1958042578,1747032512,3558991340,1408974056,3366841779,682131401,1033214337,1545599232,4265137049,206503691,103024618,2855227313,1337551222,2428998917,2963842932,4015366655,3852247746,2796956967,3865723491,3747938335,247794022,3755824572,702416469,2434691994,397379957,851939612,2314769512,218229120,1380406772,62274761,214451378,3170103466,2276210409,3845813286,28563499,446592073,1693330814,3453727194,29968656,3093872512,220656637,2470637031,77972100,1667708854,1358280214,4064765667,2395616961,325977563,4277240721,4220025399,3605526484,3355147721,811859167,3069544926,3962126810,652502677,3075892249,4132761541,3498924215,1217549313,3250244479,3858715919,3053989961,1538642152,2279026266,2875879137,574252750,3324769229,2651358713,1758150215,141295887,2719868960,3515574750,4093007735,4194485238,1082055363,3417560400,395511885,2966884026,179534037,3646028556,3738688086,1092926436,2496269142,257381841,3772900718,1636087230,1477059743,2499234752,3811018894,2675660129,3285975680,90732309,1684827095,1150307763,1723134115,3237045386,1769919919,1240018934,815675215,750138730,2239792499,1234303040,1995484674,138143821,675421338,1145607174,1936608440,3238603024,2345230278,2105974004,323969391,779555213,3004902369,2861610098,1017501463,2098600890,2628620304,2940611490,2682542546,1171473753,3656571411,3687208071,4091869518,393037935,159126506,1662887367,1147106178,391545844,3452332695,1891500680,3016609650,1851642611,546529401,1167818917,3194020571,2848076033,3953471836,575554290,475796850,4134673196,450035699,2351251534,844027695,1080539133,86184846,1554234488,3692025454,1972511363,2018339607,1491841390,1141460869,1061690759,4244549243,2008416118,2351104703,2868147542,1598468138,722020353,1027143159,212344630,1387219594,1725294528,3745187956,2500153616,458938280,4129215917,1828119673,544571780,3503225445,2297937496,1241802790,267843827,2694610800,1397140384,1558801448,3782667683,1806446719,929573330,2234912681,400817706,616011623,4121520928,3603768725,1761550015,1968522284,4053731006,4192232858,4005120285,872482584,3140537016,3894607381,2287405443,1963876937,3663887957,1584857e3,2975024454,1833426440,4025083860],o[5]=[4143615901,749497569,1285769319,3795025788,2514159847,23610292,3974978748,844452780,3214870880,3751928557,2213566365,1676510905,448177848,3730751033,4086298418,2307502392,871450977,3222878141,4110862042,3831651966,2735270553,1310974780,2043402188,1218528103,2736035353,4274605013,2702448458,3936360550,2693061421,162023535,2827510090,687910808,23484817,3784910947,3371371616,779677500,3503626546,3473927188,4157212626,3500679282,4248902014,2466621104,3899384794,1958663117,925738300,1283408968,3669349440,1840910019,137959847,2679828185,1239142320,1315376211,1547541505,1690155329,739140458,3128809933,3933172616,3876308834,905091803,1548541325,4040461708,3095483362,144808038,451078856,676114313,2861728291,2469707347,993665471,373509091,2599041286,4025009006,4170239449,2149739950,3275793571,3749616649,2794760199,1534877388,572371878,2590613551,1753320020,3467782511,1405125690,4270405205,633333386,3026356924,3475123903,632057672,2846462855,1404951397,3882875879,3915906424,195638627,2385783745,3902872553,1233155085,3355999740,2380578713,2702246304,2144565621,3663341248,3894384975,2502479241,4248018925,3094885567,1594115437,572884632,3385116731,767645374,1331858858,1475698373,3793881790,3532746431,1321687957,619889600,1121017241,3440213920,2070816767,2833025776,1933951238,4095615791,890643334,3874130214,859025556,360630002,925594799,1764062180,3920222280,4078305929,979562269,2810700344,4087740022,1949714515,546639971,1165388173,3069891591,1495988560,922170659,1291546247,2107952832,1813327274,3406010024,3306028637,4241950635,153207855,2313154747,1608695416,1150242611,1967526857,721801357,1220138373,3691287617,3356069787,2112743302,3281662835,1111556101,1778980689,250857638,2298507990,673216130,2846488510,3207751581,3562756981,3008625920,3417367384,2198807050,529510932,3547516680,3426503187,2364944742,102533054,2294910856,1617093527,1204784762,3066581635,1019391227,1069574518,1317995090,1691889997,3661132003,510022745,3238594800,1362108837,1817929911,2184153760,805817662,1953603311,3699844737,120799444,2118332377,207536705,2282301548,4120041617,145305846,2508124933,3086745533,3261524335,1877257368,2977164480,3160454186,2503252186,4221677074,759945014,254147243,2767453419,3801518371,629083197,2471014217,907280572,3900796746,940896768,2751021123,2625262786,3161476951,3661752313,3260732218,1425318020,2977912069,1496677566,3988592072,2140652971,3126511541,3069632175,977771578,1392695845,1698528874,1411812681,1369733098,1343739227,3620887944,1142123638,67414216,3102056737,3088749194,1626167401,2546293654,3941374235,697522451,33404913,143560186,2595682037,994885535,1247667115,3859094837,2699155541,3547024625,4114935275,2968073508,3199963069,2732024527,1237921620,951448369,1898488916,1211705605,2790989240,2233243581,3598044975],o[6]=[2246066201,858518887,1714274303,3485882003,713916271,2879113490,3730835617,539548191,36158695,1298409750,419087104,1358007170,749914897,2989680476,1261868530,2995193822,2690628854,3443622377,3780124940,3796824509,2976433025,4259637129,1551479e3,512490819,1296650241,951993153,2436689437,2460458047,144139966,3136204276,310820559,3068840729,643875328,1969602020,1680088954,2185813161,3283332454,672358534,198762408,896343282,276269502,3014846926,84060815,197145886,376173866,3943890818,3813173521,3545068822,1316698879,1598252827,2633424951,1233235075,859989710,2358460855,3503838400,3409603720,1203513385,1193654839,2792018475,2060853022,207403770,1144516871,3068631394,1121114134,177607304,3785736302,326409831,1929119770,2983279095,4183308101,3474579288,3200513878,3228482096,119610148,1170376745,3378393471,3163473169,951863017,3337026068,3135789130,2907618374,1183797387,2015970143,4045674555,2182986399,2952138740,3928772205,384012900,2454997643,10178499,2879818989,2596892536,111523738,2995089006,451689641,3196290696,235406569,1441906262,3890558523,3013735005,4158569349,1644036924,376726067,1006849064,3664579700,2041234796,1021632941,1374734338,2566452058,371631263,4007144233,490221539,206551450,3140638584,1053219195,1853335209,3412429660,3562156231,735133835,1623211703,3104214392,2738312436,4096837757,3366392578,3110964274,3956598718,3196820781,2038037254,3877786376,2339753847,300912036,3766732888,2372630639,1516443558,4200396704,1574567987,4069441456,4122592016,2699739776,146372218,2748961456,2043888151,35287437,2596680554,655490400,1132482787,110692520,1031794116,2188192751,1324057718,1217253157,919197030,686247489,3261139658,1028237775,3135486431,3059715558,2460921700,986174950,2661811465,4062904701,2752986992,3709736643,367056889,1353824391,731860949,1650113154,1778481506,784341916,357075625,3608602432,1074092588,2480052770,3811426202,92751289,877911070,3600361838,1231880047,480201094,3756190983,3094495953,434011822,87971354,363687820,1717726236,1901380172,3926403882,2481662265,400339184,1490350766,2661455099,1389319756,2558787174,784598401,1983468483,30828846,3550527752,2716276238,3841122214,1765724805,1955612312,1277890269,1333098070,1564029816,2704417615,1026694237,3287671188,1260819201,3349086767,1016692350,1582273796,1073413053,1995943182,694588404,1025494639,3323872702,3551898420,4146854327,453260480,1316140391,1435673405,3038941953,3486689407,1622062951,403978347,817677117,950059133,4246079218,3278066075,1486738320,1417279718,481875527,2549965225,3933690356,760697757,1452955855,3897451437,1177426808,1702951038,4085348628,2447005172,1084371187,3516436277,3068336338,1073369276,1027665953,3284188590,1230553676,1368340146,2226246512,267243139,2274220762,4070734279,2497715176,2423353163,2504755875],o[7]=[3793104909,3151888380,2817252029,895778965,2005530807,3871412763,237245952,86829237,296341424,3851759377,3974600970,2475086196,709006108,1994621201,2972577594,937287164,3734691505,168608556,3189338153,2225080640,3139713551,3033610191,3025041904,77524477,185966941,1208824168,2344345178,1721625922,3354191921,1066374631,1927223579,1971335949,2483503697,1551748602,2881383779,2856329572,3003241482,48746954,1398218158,2050065058,313056748,4255789917,393167848,1912293076,940740642,3465845460,3091687853,2522601570,2197016661,1727764327,364383054,492521376,1291706479,3264136376,1474851438,1685747964,2575719748,1619776915,1814040067,970743798,1561002147,2925768690,2123093554,1880132620,3151188041,697884420,2550985770,2607674513,2659114323,110200136,1489731079,997519150,1378877361,3527870668,478029773,2766872923,1022481122,431258168,1112503832,897933369,2635587303,669726182,3383752315,918222264,163866573,3246985393,3776823163,114105080,1903216136,761148244,3571337562,1690750982,3166750252,1037045171,1888456500,2010454850,642736655,616092351,365016990,1185228132,4174898510,1043824992,2023083429,2241598885,3863320456,3279669087,3674716684,108438443,2132974366,830746235,606445527,4173263986,2204105912,1844756978,2532684181,4245352700,2969441100,3796921661,1335562986,4061524517,2720232303,2679424040,634407289,885462008,3294724487,3933892248,2094100220,339117932,4048830727,3202280980,1458155303,2689246273,1022871705,2464987878,3714515309,353796843,2822958815,4256850100,4052777845,551748367,618185374,3778635579,4020649912,1904685140,3069366075,2670879810,3407193292,2954511620,4058283405,2219449317,3135758300,1120655984,3447565834,1474845562,3577699062,550456716,3466908712,2043752612,881257467,869518812,2005220179,938474677,3305539448,3850417126,1315485940,3318264702,226533026,965733244,321539988,1136104718,804158748,573969341,3708209826,937399083,3290727049,2901666755,1461057207,4013193437,4066861423,3242773476,2421326174,1581322155,3028952165,786071460,3900391652,3918438532,1485433313,4023619836,3708277595,3678951060,953673138,1467089153,1930354364,1533292819,2492563023,1346121658,1685000834,1965281866,3765933717,4190206607,2052792609,3515332758,690371149,3125873887,2180283551,2903598061,3933952357,436236910,289419410,14314871,1242357089,2904507907,1616633776,2666382180,585885352,3471299210,2699507360,1432659641,277164553,3354103607,770115018,2303809295,3741942315,3177781868,2853364978,2269453327,3774259834,987383833,1290892879,225909803,1741533526,890078084,1496906255,1111072499,916028167,243534141,1252605537,2204162171,531204876,290011180,3916834213,102027703,237315147,209093447,1486785922,220223953,2758195998,4175039106,82940208,3127791296,2569425252,518464269,1353887104,3941492737,2377294467,3935040926]}function F_(e){this.cast5=new U_,this.cast5.setKey(e),this.encrypt=function(e){return this.cast5.encrypt(e)}}B_.keySize=B_.prototype.keySize=24,B_.blockSize=B_.prototype.blockSize=8,F_.blockSize=F_.prototype.blockSize=8,F_.keySize=F_.prototype.keySize=16;const z_=4294967295;function H_(e,t){return(e<>>32-t)&z_}function G_(e,t){return e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24}function Y_(e,t,r){e.splice(t,4,255&r,r>>>8&255,r>>>16&255,r>>>24&255)}function K_(e,t){return e>>>8*t&255}function q_(e){this.tf=function(){let e=null,t=null,r=-1,n=[],i=[[],[],[],[]];function o(e){return i[0][K_(e,0)]^i[1][K_(e,1)]^i[2][K_(e,2)]^i[3][K_(e,3)]}function s(e){return i[0][K_(e,3)]^i[1][K_(e,0)]^i[2][K_(e,1)]^i[3][K_(e,2)]}function a(e,t){let r=o(t[0]),i=s(t[1]);t[2]=H_(t[2]^r+i+n[4*e+8]&z_,31),t[3]=H_(t[3],1)^r+2*i+n[4*e+9]&z_,r=o(t[2]),i=s(t[3]),t[0]=H_(t[0]^r+i+n[4*e+10]&z_,31),t[1]=H_(t[1],1)^r+2*i+n[4*e+11]&z_}function u(e,t){let r=o(t[0]),i=s(t[1]);t[2]=H_(t[2],1)^r+i+n[4*e+10]&z_,t[3]=H_(t[3]^r+2*i+n[4*e+11]&z_,31),r=o(t[2]),i=s(t[3]),t[0]=H_(t[0],1)^r+i+n[4*e+8]&z_,t[1]=H_(t[1]^r+2*i+n[4*e+9]&z_,31)}return{name:"twofish",blocksize:16,open:function(t){let r,o,s,a,u;e=t;const l=[],c=[],h=[];let d;const f=[];let p,m,g;const y=[[8,1,7,13,6,15,3,2,0,11,5,9,14,12,10,4],[2,8,11,13,15,7,6,14,3,1,9,4,0,10,12,5]],v=[[14,12,11,8,1,2,3,5,15,4,10,6,7,0,9,13],[1,14,2,11,4,12,3,7,6,13,10,5,15,9,0,8]],b=[[11,10,5,14,6,13,9,0,12,8,15,3,2,4,7,1],[4,12,7,5,1,6,9,10,0,14,13,8,2,11,3,15]],w=[[13,7,15,4,1,2,6,14,9,11,3,0,8,5,12,10],[11,9,5,1,12,3,13,14,6,4,7,15,2,0,8,10]],_=[0,8,1,9,2,10,3,11,4,12,5,13,6,14,7,15],E=[0,9,2,11,4,13,6,15,8,1,10,3,12,5,14,7],A=[[],[]],M=[[],[],[],[]];function S(e){return e^e>>2^[0,90,180,238][3&e]}function x(e){return e^e>>1^e>>2^[0,238,180,90][3&e]}function k(e,t){let r,n,i;for(r=0;r<8;r++)n=t>>>24,t=t<<8&z_|e>>>24,e=e<<8&z_,i=n<<1,128&n&&(i^=333),t^=n^i<<16,i^=n>>>1,1&n&&(i^=166),t^=i<<24|i<<8;return t}function T(e,t){const r=t>>4,n=15&t,i=y[e][r^n],o=v[e][_[n]^E[r]];return w[e][_[o]^E[i]]<<4|b[e][i^o]}function C(e,t){let r=K_(e,0),n=K_(e,1),i=K_(e,2),o=K_(e,3);switch(d){case 4:r=A[1][r]^K_(t[3],0),n=A[0][n]^K_(t[3],1),i=A[0][i]^K_(t[3],2),o=A[1][o]^K_(t[3],3);case 3:r=A[1][r]^K_(t[2],0),n=A[1][n]^K_(t[2],1),i=A[0][i]^K_(t[2],2),o=A[0][o]^K_(t[2],3);case 2:r=A[0][A[0][r]^K_(t[1],0)]^K_(t[0],0),n=A[0][A[1][n]^K_(t[1],1)]^K_(t[0],1),i=A[1][A[0][i]^K_(t[1],2)]^K_(t[0],2),o=A[1][A[1][o]^K_(t[1],3)]^K_(t[0],3)}return M[0][r]^M[1][n]^M[2][i]^M[3][o]}for(e=e.slice(0,32),r=e.length;16!==r&&24!==r&&32!==r;)e[r++]=0;for(r=0;r>2]=G_(e,r);for(r=0;r<256;r++)A[0][r]=T(0,r),A[1][r]=T(1,r);for(r=0;r<256;r++)p=A[1][r],m=S(p),g=x(p),M[0][r]=p+(m<<8)+(g<<16)+(g<<24),M[2][r]=m+(g<<8)+(p<<16)+(g<<24),p=A[0][r],m=S(p),g=x(p),M[1][r]=g+(g<<8)+(m<<16)+(p<<24),M[3][r]=m+(p<<8)+(g<<16)+(m<<24);for(d=h.length/2,r=0;r=0;t--)u(t,o);Y_(t,r,o[2]^n[0]),Y_(t,r+4,o[3]^n[1]),Y_(t,r+8,o[0]^n[2]),Y_(t,r+12,o[1]^n[3]),r+=16},finalize:function(){return t}}}(),this.tf.open(Array.from(e),0),this.encrypt=function(e){return this.tf.encrypt(Array.from(e),0)}}function W_(){}function V_(e){this.bf=new W_,this.bf.init(e),this.encrypt=function(e){return this.bf.encryptBlock(e)}}q_.keySize=q_.prototype.keySize=32,q_.blockSize=q_.prototype.blockSize=16,W_.prototype.BLOCKSIZE=8,W_.prototype.SBOXES=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]],W_.prototype.PARRAY=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],W_.prototype.NN=16,W_.prototype._clean=function(e){return e<0&&(e=2147483648+(2147483647&e)),e},W_.prototype._F=function(e){let t;const r=255&e,n=255&(e>>>=8),i=255&(e>>>=8),o=255&(e>>>=8);return t=this.sboxes[0][o]+this.sboxes[1][i],t^=this.sboxes[2][n],t+=this.sboxes[3][r],t},W_.prototype._encryptBlock=function(e){let t,r=e[0],n=e[1];for(t=0;t>>24-8*t&255,i[t+n]=r[1]>>>24-8*t&255;return i},W_.prototype._decryptBlock=function(e){let t,r=e[0],n=e[1];for(t=this.NN+1;t>1;--t){r^=this.parray[t],n=this._F(r)^n;const e=r;r=n,n=e}r^=this.parray[1],n^=this.parray[0],e[0]=this._clean(n),e[1]=this._clean(r)},W_.prototype.init=function(e){let t,r=0;for(this.parray=[],t=0;t=e.length&&(r=0);this.parray[t]=this.PARRAY[t]^n}for(this.sboxes=[],t=0;t<4;++t)for(this.sboxes[t]=[],r=0;r<256;++r)this.sboxes[t][r]=this.SBOXES[t][r];const n=[0,0];for(t=0;t>>27)+S+(E&A|~E&M)+0x5a827999|0;S=M;M=A;A=E<<30|E>>>2;E=_;_=k;k=t+(_<<5|_>>>27)+S+(E&A|~E&M)+0x5a827999|0;S=M;M=A;A=E<<30|E>>>2;E=_;_=k;k=r+(_<<5|_>>>27)+S+(E&A|~E&M)+0x5a827999|0;S=M;M=A;A=E<<30|E>>>2;E=_;_=k;k=u+(_<<5|_>>>27)+S+(E&A|~E&M)+0x5a827999|0;S=M;M=A;A=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|w[e|27],w[e|28]<<24|w[e|29]<<16|w[e|30]<<8|w[e|31],w[e|32]<<24|w[e|33]<<16|w[e|34]<<8|w[e|35],w[e|36]<<24|w[e|37]<<16|w[e|38]<<8|w[e|39],w[e|40]<<24|w[e|41]<<16|w[e|42]<<8|w[e|43],w[e|44]<<24|w[e|45]<<16|w[e|46]<<8|w[e|47],w[e|48]<<24|w[e|49]<<16|w[e|50]<<8|w[e|51],w[e|52]<<24|w[e|53]<<16|w[e|54]<<8|w[e|55],w[e|56]<<24|w[e|57]<<16|w[e|58]<<8|w[e|59],w[e|60]<<24|w[e|61]<<16|w[e|62]<<8|w[e|63])}function A(e){e=e|0;w[e|0]=n>>>24;w[e|1]=n>>>16&255;w[e|2]=n>>>8&255;w[e|3]=n&255;w[e|4]=i>>>24;w[e|5]=i>>>16&255;w[e|6]=i>>>8&255;w[e|7]=i&255;w[e|8]=o>>>24;w[e|9]=o>>>16&255;w[e|10]=o>>>8&255;w[e|11]=o&255;w[e|12]=s>>>24;w[e|13]=s>>>16&255;w[e|14]=s>>>8&255;w[e|15]=s&255;w[e|16]=a>>>24;w[e|17]=a>>>16&255;w[e|18]=a>>>8&255;w[e|19]=a&255}function M(){n=0x67452301;i=0xefcdab89;o=0x98badcfe;s=0x10325476;a=0xc3d2e1f0;u=l=0}function S(e,t,r,c,h,d,f){e=e|0;t=t|0;r=r|0;c=c|0;h=h|0;d=d|0;f=f|0;n=e;i=t;o=r;s=c;a=h;u=d;l=f}function x(e,t){e=e|0;t=t|0;var r=0;if(e&63)return-1;while((t|0)>=64){E(e);e=e+64|0;t=t-64|0;r=r+64|0}u=u+r|0;if(u>>>0>>0)l=l+1|0;return r|0}function k(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;if(e&63)return-1;if(~r)if(r&31)return-1;if((t|0)>=64){n=x(e,t)|0;if((n|0)==-1)return-1;e=e+n|0;t=t-n|0}n=n+t|0;u=u+t|0;if(u>>>0>>0)l=l+1|0;w[e|t]=0x80;if((t|0)>=56){for(i=t+1|0;(i|0)<64;i=i+1|0)w[e|i]=0x00;E(e);t=0;w[e|0]=0}for(i=t+1|0;(i|0)<59;i=i+1|0)w[e|i]=0;w[e|56]=l>>>21&255;w[e|57]=l>>>13&255;w[e|58]=l>>>5&255;w[e|59]=l<<3&255|u>>>29;w[e|60]=u>>>21&255;w[e|61]=u>>>13&255;w[e|62]=u>>>5&255;w[e|63]=u<<3&255;E(e);if(~r)A(r);return n|0}function T(){n=c;i=h;o=d;s=f;a=p;u=64;l=0}function C(){n=m;i=g;o=y;s=v;a=b;u=64;l=0}function I(e,t,r,w,E,A,S,x,k,T,C,I,N,R,P,D){e=e|0;t=t|0;r=r|0;w=w|0;E=E|0;A=A|0;S=S|0;x=x|0;k=k|0;T=T|0;C=C|0;I=I|0;N=N|0;R=R|0;P=P|0;D=D|0;M();_(e^0x5c5c5c5c,t^0x5c5c5c5c,r^0x5c5c5c5c,w^0x5c5c5c5c,E^0x5c5c5c5c,A^0x5c5c5c5c,S^0x5c5c5c5c,x^0x5c5c5c5c,k^0x5c5c5c5c,T^0x5c5c5c5c,C^0x5c5c5c5c,I^0x5c5c5c5c,N^0x5c5c5c5c,R^0x5c5c5c5c,P^0x5c5c5c5c,D^0x5c5c5c5c);m=n;g=i;y=o;v=s;b=a;M();_(e^0x36363636,t^0x36363636,r^0x36363636,w^0x36363636,E^0x36363636,A^0x36363636,S^0x36363636,x^0x36363636,k^0x36363636,T^0x36363636,C^0x36363636,I^0x36363636,N^0x36363636,R^0x36363636,P^0x36363636,D^0x36363636);c=n;h=i;d=o;f=s;p=a;u=64;l=0}function N(e,t,r){e=e|0;t=t|0;r=r|0;var u=0,l=0,c=0,h=0,d=0,f=0;if(e&63)return-1;if(~r)if(r&31)return-1;f=k(e,t,-1)|0;u=n,l=i,c=o,h=s,d=a;C();_(u,l,c,h,d,0x80000000,0,0,0,0,0,0,0,0,0,672);if(~r)A(r);return f|0}function R(e,t,r,u,l){e=e|0;t=t|0;r=r|0;u=u|0;l=l|0;var c=0,h=0,d=0,f=0,p=0,m=0,g=0,y=0,v=0,b=0;if(e&63)return-1;if(~l)if(l&31)return-1;w[e+t|0]=r>>>24;w[e+t+1|0]=r>>>16&255;w[e+t+2|0]=r>>>8&255;w[e+t+3|0]=r&255;N(e,t+4|0,-1)|0;c=m=n,h=g=i,d=y=o,f=v=s,p=b=a;u=u-1|0;while((u|0)>0){T();_(m,g,y,v,b,0x80000000,0,0,0,0,0,0,0,0,0,672);m=n,g=i,y=o,v=s,b=a;C();_(m,g,y,v,b,0x80000000,0,0,0,0,0,0,0,0,0,672);m=n,g=i,y=o,v=s,b=a;c=c^n;h=h^i;d=d^o;f=f^s;p=p^a;u=u-1|0}n=c;i=h;o=d;s=f;a=p;if(~l)A(l);return 0}return{reset:M,init:S,process:x,finish:k,hmac_reset:T,hmac_init:I,hmac_finish:N,pbkdf2_generate_block:R}};class eE{constructor(){this.pos=0,this.len=0}reset(){const{asm:e}=this.acquire_asm();return this.result=null,this.pos=0,this.len=0,e.reset(),this}process(e){if(null!==this.result)throw new T_("state must be reset before processing new data");const{asm:t,heap:r}=this.acquire_asm();let n=this.pos,i=this.len,o=0,s=e.length,a=0;for(;s>0;)a=x_(r,n+i,e,o,s),i+=a,o+=a,s-=a,a=t.process(n,i),n+=a,i-=a,i||(n=0);return this.pos=n,this.len=i,this}finish(){if(null!==this.result)throw new T_("state must be reset before processing new data");const{asm:e,heap:t}=this.acquire_asm();return e.finish(this.pos,this.len,0),this.result=new Uint8Array(this.HASH_SIZE),this.result.set(t.subarray(0,this.HASH_SIZE)),this.pos=0,this.len=0,this.release_asm(),this}}const tE=[],rE=[];class nE extends eE{constructor(){super(),this.NAME="sha1",this.BLOCK_SIZE=64,this.HASH_SIZE=20,this.acquire_asm()}acquire_asm(){return void 0!==this.heap&&void 0!==this.asm||(this.heap=tE.pop()||S_(),this.asm=rE.pop()||X_({Uint8Array},null,this.heap.buffer),this.reset()),{heap:this.heap,asm:this.asm}}release_asm(){void 0!==this.heap&&void 0!==this.asm&&(tE.push(this.heap),rE.push(this.asm)),this.heap=void 0,this.asm=void 0}static bytes(e){return(new nE).process(e).finish().result}}nE.NAME="sha1",nE.heap_pool=[],nE.asm_pool=[],nE.asm_function=X_;const iE=[],oE=[];class sE extends eE{constructor(){super(),this.NAME="sha256",this.BLOCK_SIZE=64,this.HASH_SIZE=32,this.acquire_asm()}acquire_asm(){return void 0!==this.heap&&void 0!==this.asm||(this.heap=iE.pop()||S_(),this.asm=oE.pop()||function(e,t,r){"use asm";var n=0,i=0,o=0,s=0,a=0,u=0,l=0,c=0,h=0,d=0,f=0,p=0,m=0,g=0,y=0,v=0,b=0,w=0,_=0,E=0,A=0,M=0,S=0,x=0,k=0,T=0,C=new e.Uint8Array(r);function I(e,t,r,h,d,f,p,m,g,y,v,b,w,_,E,A){e=e|0;t=t|0;r=r|0;h=h|0;d=d|0;f=f|0;p=p|0;m=m|0;g=g|0;y=y|0;v=v|0;b=b|0;w=w|0;_=_|0;E=E|0;A=A|0;var M=0,S=0,x=0,k=0,T=0,C=0,I=0,N=0;M=n;S=i;x=o;k=s;T=a;C=u;I=l;N=c;N=e+N+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(I^T&(C^I))+0x428a2f98|0;k=k+N|0;N=N+(M&S^x&(M^S))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;I=t+I+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(C^k&(T^C))+0x71374491|0;x=x+I|0;I=I+(N&M^S&(N^M))+(N>>>2^N>>>13^N>>>22^N<<30^N<<19^N<<10)|0;C=r+C+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(T^x&(k^T))+0xb5c0fbcf|0;S=S+C|0;C=C+(I&N^M&(I^N))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;T=h+T+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(x^k))+0xe9b5dba5|0;M=M+T|0;T=T+(C&I^N&(C^I))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;k=d+k+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(S^x))+0x3956c25b|0;N=N+k|0;k=k+(T&C^I&(T^C))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;x=f+x+(N>>>6^N>>>11^N>>>25^N<<26^N<<21^N<<7)+(S^N&(M^S))+0x59f111f1|0;I=I+x|0;x=x+(k&T^C&(k^T))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;S=p+S+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(M^I&(N^M))+0x923f82a4|0;C=C+S|0;S=S+(x&k^T&(x^k))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;M=m+M+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(N^C&(I^N))+0xab1c5ed5|0;T=T+M|0;M=M+(S&x^k&(S^x))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;N=g+N+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(I^T&(C^I))+0xd807aa98|0;k=k+N|0;N=N+(M&S^x&(M^S))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;I=y+I+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(C^k&(T^C))+0x12835b01|0;x=x+I|0;I=I+(N&M^S&(N^M))+(N>>>2^N>>>13^N>>>22^N<<30^N<<19^N<<10)|0;C=v+C+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(T^x&(k^T))+0x243185be|0;S=S+C|0;C=C+(I&N^M&(I^N))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;T=b+T+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(x^k))+0x550c7dc3|0;M=M+T|0;T=T+(C&I^N&(C^I))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;k=w+k+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(S^x))+0x72be5d74|0;N=N+k|0;k=k+(T&C^I&(T^C))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;x=_+x+(N>>>6^N>>>11^N>>>25^N<<26^N<<21^N<<7)+(S^N&(M^S))+0x80deb1fe|0;I=I+x|0;x=x+(k&T^C&(k^T))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;S=E+S+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(M^I&(N^M))+0x9bdc06a7|0;C=C+S|0;S=S+(x&k^T&(x^k))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;M=A+M+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(N^C&(I^N))+0xc19bf174|0;T=T+M|0;M=M+(S&x^k&(S^x))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;e=(t>>>7^t>>>18^t>>>3^t<<25^t<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+e+y|0;N=e+N+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(I^T&(C^I))+0xe49b69c1|0;k=k+N|0;N=N+(M&S^x&(M^S))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;t=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+t+v|0;I=t+I+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(C^k&(T^C))+0xefbe4786|0;x=x+I|0;I=I+(N&M^S&(N^M))+(N>>>2^N>>>13^N>>>22^N<<30^N<<19^N<<10)|0;r=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+r+b|0;C=r+C+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(T^x&(k^T))+0x0fc19dc6|0;S=S+C|0;C=C+(I&N^M&(I^N))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;h=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(t>>>17^t>>>19^t>>>10^t<<15^t<<13)+h+w|0;T=h+T+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(x^k))+0x240ca1cc|0;M=M+T|0;T=T+(C&I^N&(C^I))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;d=(f>>>7^f>>>18^f>>>3^f<<25^f<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+d+_|0;k=d+k+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(S^x))+0x2de92c6f|0;N=N+k|0;k=k+(T&C^I&(T^C))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;f=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+f+E|0;x=f+x+(N>>>6^N>>>11^N>>>25^N<<26^N<<21^N<<7)+(S^N&(M^S))+0x4a7484aa|0;I=I+x|0;x=x+(k&T^C&(k^T))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;p=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+p+A|0;S=p+S+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(M^I&(N^M))+0x5cb0a9dc|0;C=C+S|0;S=S+(x&k^T&(x^k))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;m=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(f>>>17^f>>>19^f>>>10^f<<15^f<<13)+m+e|0;M=m+M+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(N^C&(I^N))+0x76f988da|0;T=T+M|0;M=M+(S&x^k&(S^x))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;g=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+g+t|0;N=g+N+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(I^T&(C^I))+0x983e5152|0;k=k+N|0;N=N+(M&S^x&(M^S))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;y=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+y+r|0;I=y+I+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(C^k&(T^C))+0xa831c66d|0;x=x+I|0;I=I+(N&M^S&(N^M))+(N>>>2^N>>>13^N>>>22^N<<30^N<<19^N<<10)|0;v=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+v+h|0;C=v+C+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(T^x&(k^T))+0xb00327c8|0;S=S+C|0;C=C+(I&N^M&(I^N))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;b=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+b+d|0;T=b+T+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(x^k))+0xbf597fc7|0;M=M+T|0;T=T+(C&I^N&(C^I))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;w=(_>>>7^_>>>18^_>>>3^_<<25^_<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+w+f|0;k=w+k+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(S^x))+0xc6e00bf3|0;N=N+k|0;k=k+(T&C^I&(T^C))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;_=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+_+p|0;x=_+x+(N>>>6^N>>>11^N>>>25^N<<26^N<<21^N<<7)+(S^N&(M^S))+0xd5a79147|0;I=I+x|0;x=x+(k&T^C&(k^T))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;E=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+E+m|0;S=E+S+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(M^I&(N^M))+0x06ca6351|0;C=C+S|0;S=S+(x&k^T&(x^k))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;A=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(_>>>17^_>>>19^_>>>10^_<<15^_<<13)+A+g|0;M=A+M+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(N^C&(I^N))+0x14292967|0;T=T+M|0;M=M+(S&x^k&(S^x))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;e=(t>>>7^t>>>18^t>>>3^t<<25^t<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+e+y|0;N=e+N+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(I^T&(C^I))+0x27b70a85|0;k=k+N|0;N=N+(M&S^x&(M^S))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;t=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+t+v|0;I=t+I+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(C^k&(T^C))+0x2e1b2138|0;x=x+I|0;I=I+(N&M^S&(N^M))+(N>>>2^N>>>13^N>>>22^N<<30^N<<19^N<<10)|0;r=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+r+b|0;C=r+C+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(T^x&(k^T))+0x4d2c6dfc|0;S=S+C|0;C=C+(I&N^M&(I^N))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;h=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(t>>>17^t>>>19^t>>>10^t<<15^t<<13)+h+w|0;T=h+T+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(x^k))+0x53380d13|0;M=M+T|0;T=T+(C&I^N&(C^I))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;d=(f>>>7^f>>>18^f>>>3^f<<25^f<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+d+_|0;k=d+k+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(S^x))+0x650a7354|0;N=N+k|0;k=k+(T&C^I&(T^C))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;f=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+f+E|0;x=f+x+(N>>>6^N>>>11^N>>>25^N<<26^N<<21^N<<7)+(S^N&(M^S))+0x766a0abb|0;I=I+x|0;x=x+(k&T^C&(k^T))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;p=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+p+A|0;S=p+S+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(M^I&(N^M))+0x81c2c92e|0;C=C+S|0;S=S+(x&k^T&(x^k))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;m=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(f>>>17^f>>>19^f>>>10^f<<15^f<<13)+m+e|0;M=m+M+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(N^C&(I^N))+0x92722c85|0;T=T+M|0;M=M+(S&x^k&(S^x))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;g=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+g+t|0;N=g+N+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(I^T&(C^I))+0xa2bfe8a1|0;k=k+N|0;N=N+(M&S^x&(M^S))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;y=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+y+r|0;I=y+I+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(C^k&(T^C))+0xa81a664b|0;x=x+I|0;I=I+(N&M^S&(N^M))+(N>>>2^N>>>13^N>>>22^N<<30^N<<19^N<<10)|0;v=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+v+h|0;C=v+C+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(T^x&(k^T))+0xc24b8b70|0;S=S+C|0;C=C+(I&N^M&(I^N))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;b=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+b+d|0;T=b+T+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(x^k))+0xc76c51a3|0;M=M+T|0;T=T+(C&I^N&(C^I))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;w=(_>>>7^_>>>18^_>>>3^_<<25^_<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+w+f|0;k=w+k+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(S^x))+0xd192e819|0;N=N+k|0;k=k+(T&C^I&(T^C))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;_=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+_+p|0;x=_+x+(N>>>6^N>>>11^N>>>25^N<<26^N<<21^N<<7)+(S^N&(M^S))+0xd6990624|0;I=I+x|0;x=x+(k&T^C&(k^T))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;E=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+E+m|0;S=E+S+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(M^I&(N^M))+0xf40e3585|0;C=C+S|0;S=S+(x&k^T&(x^k))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;A=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(_>>>17^_>>>19^_>>>10^_<<15^_<<13)+A+g|0;M=A+M+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(N^C&(I^N))+0x106aa070|0;T=T+M|0;M=M+(S&x^k&(S^x))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;e=(t>>>7^t>>>18^t>>>3^t<<25^t<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+e+y|0;N=e+N+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(I^T&(C^I))+0x19a4c116|0;k=k+N|0;N=N+(M&S^x&(M^S))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;t=(r>>>7^r>>>18^r>>>3^r<<25^r<<14)+(A>>>17^A>>>19^A>>>10^A<<15^A<<13)+t+v|0;I=t+I+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(C^k&(T^C))+0x1e376c08|0;x=x+I|0;I=I+(N&M^S&(N^M))+(N>>>2^N>>>13^N>>>22^N<<30^N<<19^N<<10)|0;r=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+r+b|0;C=r+C+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(T^x&(k^T))+0x2748774c|0;S=S+C|0;C=C+(I&N^M&(I^N))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;h=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(t>>>17^t>>>19^t>>>10^t<<15^t<<13)+h+w|0;T=h+T+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(x^k))+0x34b0bcb5|0;M=M+T|0;T=T+(C&I^N&(C^I))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;d=(f>>>7^f>>>18^f>>>3^f<<25^f<<14)+(r>>>17^r>>>19^r>>>10^r<<15^r<<13)+d+_|0;k=d+k+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(S^x))+0x391c0cb3|0;N=N+k|0;k=k+(T&C^I&(T^C))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;f=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+f+E|0;x=f+x+(N>>>6^N>>>11^N>>>25^N<<26^N<<21^N<<7)+(S^N&(M^S))+0x4ed8aa4a|0;I=I+x|0;x=x+(k&T^C&(k^T))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;p=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+p+A|0;S=p+S+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(M^I&(N^M))+0x5b9cca4f|0;C=C+S|0;S=S+(x&k^T&(x^k))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;m=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(f>>>17^f>>>19^f>>>10^f<<15^f<<13)+m+e|0;M=m+M+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(N^C&(I^N))+0x682e6ff3|0;T=T+M|0;M=M+(S&x^k&(S^x))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;g=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+g+t|0;N=g+N+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(I^T&(C^I))+0x748f82ee|0;k=k+N|0;N=N+(M&S^x&(M^S))+(M>>>2^M>>>13^M>>>22^M<<30^M<<19^M<<10)|0;y=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+y+r|0;I=y+I+(k>>>6^k>>>11^k>>>25^k<<26^k<<21^k<<7)+(C^k&(T^C))+0x78a5636f|0;x=x+I|0;I=I+(N&M^S&(N^M))+(N>>>2^N>>>13^N>>>22^N<<30^N<<19^N<<10)|0;v=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+v+h|0;C=v+C+(x>>>6^x>>>11^x>>>25^x<<26^x<<21^x<<7)+(T^x&(k^T))+0x84c87814|0;S=S+C|0;C=C+(I&N^M&(I^N))+(I>>>2^I>>>13^I>>>22^I<<30^I<<19^I<<10)|0;b=(w>>>7^w>>>18^w>>>3^w<<25^w<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+b+d|0;T=b+T+(S>>>6^S>>>11^S>>>25^S<<26^S<<21^S<<7)+(k^S&(x^k))+0x8cc70208|0;M=M+T|0;T=T+(C&I^N&(C^I))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;w=(_>>>7^_>>>18^_>>>3^_<<25^_<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+w+f|0;k=w+k+(M>>>6^M>>>11^M>>>25^M<<26^M<<21^M<<7)+(x^M&(S^x))+0x90befffa|0;N=N+k|0;k=k+(T&C^I&(T^C))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;_=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+_+p|0;x=_+x+(N>>>6^N>>>11^N>>>25^N<<26^N<<21^N<<7)+(S^N&(M^S))+0xa4506ceb|0;I=I+x|0;x=x+(k&T^C&(k^T))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;E=(A>>>7^A>>>18^A>>>3^A<<25^A<<14)+(w>>>17^w>>>19^w>>>10^w<<15^w<<13)+E+m|0;S=E+S+(I>>>6^I>>>11^I>>>25^I<<26^I<<21^I<<7)+(M^I&(N^M))+0xbef9a3f7|0;C=C+S|0;S=S+(x&k^T&(x^k))+(x>>>2^x>>>13^x>>>22^x<<30^x<<19^x<<10)|0;A=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(_>>>17^_>>>19^_>>>10^_<<15^_<<13)+A+g|0;M=A+M+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(N^C&(I^N))+0xc67178f2|0;T=T+M|0;M=M+(S&x^k&(S^x))+(S>>>2^S>>>13^S>>>22^S<<30^S<<19^S<<10)|0;n=n+M|0;i=i+S|0;o=o+x|0;s=s+k|0;a=a+T|0;u=u+C|0;l=l+I|0;c=c+N|0}function N(e){e=e|0;I(C[e|0]<<24|C[e|1]<<16|C[e|2]<<8|C[e|3],C[e|4]<<24|C[e|5]<<16|C[e|6]<<8|C[e|7],C[e|8]<<24|C[e|9]<<16|C[e|10]<<8|C[e|11],C[e|12]<<24|C[e|13]<<16|C[e|14]<<8|C[e|15],C[e|16]<<24|C[e|17]<<16|C[e|18]<<8|C[e|19],C[e|20]<<24|C[e|21]<<16|C[e|22]<<8|C[e|23],C[e|24]<<24|C[e|25]<<16|C[e|26]<<8|C[e|27],C[e|28]<<24|C[e|29]<<16|C[e|30]<<8|C[e|31],C[e|32]<<24|C[e|33]<<16|C[e|34]<<8|C[e|35],C[e|36]<<24|C[e|37]<<16|C[e|38]<<8|C[e|39],C[e|40]<<24|C[e|41]<<16|C[e|42]<<8|C[e|43],C[e|44]<<24|C[e|45]<<16|C[e|46]<<8|C[e|47],C[e|48]<<24|C[e|49]<<16|C[e|50]<<8|C[e|51],C[e|52]<<24|C[e|53]<<16|C[e|54]<<8|C[e|55],C[e|56]<<24|C[e|57]<<16|C[e|58]<<8|C[e|59],C[e|60]<<24|C[e|61]<<16|C[e|62]<<8|C[e|63])}function R(e){e=e|0;C[e|0]=n>>>24;C[e|1]=n>>>16&255;C[e|2]=n>>>8&255;C[e|3]=n&255;C[e|4]=i>>>24;C[e|5]=i>>>16&255;C[e|6]=i>>>8&255;C[e|7]=i&255;C[e|8]=o>>>24;C[e|9]=o>>>16&255;C[e|10]=o>>>8&255;C[e|11]=o&255;C[e|12]=s>>>24;C[e|13]=s>>>16&255;C[e|14]=s>>>8&255;C[e|15]=s&255;C[e|16]=a>>>24;C[e|17]=a>>>16&255;C[e|18]=a>>>8&255;C[e|19]=a&255;C[e|20]=u>>>24;C[e|21]=u>>>16&255;C[e|22]=u>>>8&255;C[e|23]=u&255;C[e|24]=l>>>24;C[e|25]=l>>>16&255;C[e|26]=l>>>8&255;C[e|27]=l&255;C[e|28]=c>>>24;C[e|29]=c>>>16&255;C[e|30]=c>>>8&255;C[e|31]=c&255}function P(){n=0x6a09e667;i=0xbb67ae85;o=0x3c6ef372;s=0xa54ff53a;a=0x510e527f;u=0x9b05688c;l=0x1f83d9ab;c=0x5be0cd19;h=d=0}function D(e,t,r,f,p,m,g,y,v,b){e=e|0;t=t|0;r=r|0;f=f|0;p=p|0;m=m|0;g=g|0;y=y|0;v=v|0;b=b|0;n=e;i=t;o=r;s=f;a=p;u=m;l=g;c=y;h=v;d=b}function L(e,t){e=e|0;t=t|0;var r=0;if(e&63)return-1;while((t|0)>=64){N(e);e=e+64|0;t=t-64|0;r=r+64|0}h=h+r|0;if(h>>>0>>0)d=d+1|0;return r|0}function O(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;if(e&63)return-1;if(~r)if(r&31)return-1;if((t|0)>=64){n=L(e,t)|0;if((n|0)==-1)return-1;e=e+n|0;t=t-n|0}n=n+t|0;h=h+t|0;if(h>>>0>>0)d=d+1|0;C[e|t]=0x80;if((t|0)>=56){for(i=t+1|0;(i|0)<64;i=i+1|0)C[e|i]=0x00;N(e);t=0;C[e|0]=0}for(i=t+1|0;(i|0)<59;i=i+1|0)C[e|i]=0;C[e|56]=d>>>21&255;C[e|57]=d>>>13&255;C[e|58]=d>>>5&255;C[e|59]=d<<3&255|h>>>29;C[e|60]=h>>>21&255;C[e|61]=h>>>13&255;C[e|62]=h>>>5&255;C[e|63]=h<<3&255;N(e);if(~r)R(r);return n|0}function j(){n=f;i=p;o=m;s=g;a=y;u=v;l=b;c=w;h=64;d=0}function B(){n=_;i=E;o=A;s=M;a=S;u=x;l=k;c=T;h=64;d=0}function U(e,t,r,C,N,R,D,L,O,j,B,U,F,z,H,G){e=e|0;t=t|0;r=r|0;C=C|0;N=N|0;R=R|0;D=D|0;L=L|0;O=O|0;j=j|0;B=B|0;U=U|0;F=F|0;z=z|0;H=H|0;G=G|0;P();I(e^0x5c5c5c5c,t^0x5c5c5c5c,r^0x5c5c5c5c,C^0x5c5c5c5c,N^0x5c5c5c5c,R^0x5c5c5c5c,D^0x5c5c5c5c,L^0x5c5c5c5c,O^0x5c5c5c5c,j^0x5c5c5c5c,B^0x5c5c5c5c,U^0x5c5c5c5c,F^0x5c5c5c5c,z^0x5c5c5c5c,H^0x5c5c5c5c,G^0x5c5c5c5c);_=n;E=i;A=o;M=s;S=a;x=u;k=l;T=c;P();I(e^0x36363636,t^0x36363636,r^0x36363636,C^0x36363636,N^0x36363636,R^0x36363636,D^0x36363636,L^0x36363636,O^0x36363636,j^0x36363636,B^0x36363636,U^0x36363636,F^0x36363636,z^0x36363636,H^0x36363636,G^0x36363636);f=n;p=i;m=o;g=s;y=a;v=u;b=l;w=c;h=64;d=0}function F(e,t,r){e=e|0;t=t|0;r=r|0;var h=0,d=0,f=0,p=0,m=0,g=0,y=0,v=0,b=0;if(e&63)return-1;if(~r)if(r&31)return-1;b=O(e,t,-1)|0;h=n,d=i,f=o,p=s,m=a,g=u,y=l,v=c;B();I(h,d,f,p,m,g,y,v,0x80000000,0,0,0,0,0,0,768);if(~r)R(r);return b|0}function z(e,t,r,h,d){e=e|0;t=t|0;r=r|0;h=h|0;d=d|0;var f=0,p=0,m=0,g=0,y=0,v=0,b=0,w=0,_=0,E=0,A=0,M=0,S=0,x=0,k=0,T=0;if(e&63)return-1;if(~d)if(d&31)return-1;C[e+t|0]=r>>>24;C[e+t+1|0]=r>>>16&255;C[e+t+2|0]=r>>>8&255;C[e+t+3|0]=r&255;F(e,t+4|0,-1)|0;f=_=n,p=E=i,m=A=o,g=M=s,y=S=a,v=x=u,b=k=l,w=T=c;h=h-1|0;while((h|0)>0){j();I(_,E,A,M,S,x,k,T,0x80000000,0,0,0,0,0,0,768);_=n,E=i,A=o,M=s,S=a,x=u,k=l,T=c;B();I(_,E,A,M,S,x,k,T,0x80000000,0,0,0,0,0,0,768);_=n,E=i,A=o,M=s,S=a,x=u,k=l,T=c;f=f^n;p=p^i;m=m^o;g=g^s;y=y^a;v=v^u;b=b^l;w=w^c;h=h-1|0}n=f;i=p;o=m;s=g;a=y;u=v;l=b;c=w;if(~d)R(d);return 0}return{reset:P,init:D,process:L,finish:O,hmac_reset:j,hmac_init:U,hmac_finish:F,pbkdf2_generate_block:z}}({Uint8Array},null,this.heap.buffer),this.reset()),{heap:this.heap,asm:this.asm}}release_asm(){void 0!==this.heap&&void 0!==this.asm&&(iE.push(this.heap),oE.push(this.asm)),this.heap=void 0,this.asm=void 0}static bytes(e){return(new sE).process(e).finish().result}}sE.NAME="sha256";var aE=uE;function uE(e,t){if(!e)throw Error(t||"Assertion failed")}uE.equal=function(e,t,r){if(e!=t)throw Error(r||"Assertion failed: "+e+" != "+t)};var lE=void 0!==lw?lw:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function cE(e,t){return e(t={exports:{}},t.exports),t.exports}function hE(){throw Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var dE=cE((function(e){e.exports="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}));function fE(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function pE(e){return 1===e.length?"0"+e:e}function mE(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}var gE={inherits:dE,toArray:function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n>8,s=255&i;o?r.push(o,s):r.push(s)}else for(n=0;n>>0}return o},split32:function(e,t){for(var r=Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},rotr32:function(e,t){return e>>>t|e<<32-t},rotl32:function(e,t){return e<>>32-t},sum32:function(e,t){return e+t>>>0},sum32_3:function(e,t,r){return e+t+r>>>0},sum32_4:function(e,t,r,n){return e+t+r+n>>>0},sum32_5:function(e,t,r,n,i){return e+t+r+n+i>>>0},sum64:function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,s=(o>>0,e[t+1]=o},sum64_hi:function(e,t,r,n){return(t+n>>>0>>0},sum64_lo:function(e,t,r,n){return t+n>>>0},sum64_4_hi:function(e,t,r,n,i,o,s,a){var u=0,l=t;return u+=(l=l+n>>>0)>>0)>>0)>>0},sum64_4_lo:function(e,t,r,n,i,o,s,a){return t+n+o+a>>>0},sum64_5_hi:function(e,t,r,n,i,o,s,a,u,l){var c=0,h=t;return c+=(h=h+n>>>0)>>0)>>0)>>0)>>0},sum64_5_lo:function(e,t,r,n,i,o,s,a,u,l){return t+n+o+a+l>>>0},rotr64_hi:function(e,t,r){return(t<<32-r|e>>>r)>>>0},rotr64_lo:function(e,t,r){return(e<<32-r|t>>>r)>>>0},shr64_hi:function(e,t,r){return e>>>r},shr64_lo:function(e,t,r){return(e<<32-r|t>>>r)>>>0}};function yE(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var vE=yE;yE.prototype.update=function(e,t){if(e=gE.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=gE.join32(e,0,e.length-r,this.endian);for(var n=0;n>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o>>3},IE=function(e){return wE(e,17)^wE(e,19)^e>>>10},NE=gE.sum32,RE=gE.sum32_4,PE=gE.sum32_5,DE=SE,LE=xE,OE=kE,jE=TE,BE=CE,UE=IE,FE=bE.BlockHash,zE=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function HE(){if(!(this instanceof HE))return new HE;FE.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=zE,this.W=Array(64)}gE.inherits(HE,FE);var GE=HE;function YE(){if(!(this instanceof YE))return new YE;GE.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}HE.blockSize=512,HE.outSize=256,HE.hmacStrength=192,HE.padLength=64,HE.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n>>32-i,r)}function BA(e,t,r,n,i,o,s){return jA(t&r|~t&n,e,t,i,o,s)}function UA(e,t,r,n,i,o,s){return jA(t&n|r&~n,e,t,i,o,s)}function FA(e,t,r,n,i,o,s){return jA(t^r^n,e,t,i,o,s)}function zA(e,t,r,n,i,o,s){return jA(r^(t|~n),e,t,i,o,s)}function HA(e){const t=[];let r;for(r=0;r<64;r+=4)t[r>>2]=e.charCodeAt(r)+(e.charCodeAt(r+1)<<8)+(e.charCodeAt(r+2)<<16)+(e.charCodeAt(r+3)<<24);return t}const GA="0123456789abcdef".split("");function YA(e){let t="",r=0;for(;r<4;r++)t+=GA[e>>8*r+4&15]+GA[e>>8*r&15];return t}function KA(e,t){return e+t&4294967295}const qA=i_.getWebCrypto(),WA=i_.getNodeCrypto(),VA=WA&&WA.getHashes();function $A(e){if(WA&&VA.includes(e))return async function(t){const r=WA.createHash(e);return Yw(t,(e=>{r.update(e)}),(()=>new Uint8Array(r.digest())))}}function QA(e,t){return async function(r,n=d_){if(mw(r)&&(r=await Jw(r)),!i_.isStream(r)&&qA&&t&&r.length>=n.minBytesForWebCrypto)return new Uint8Array(await qA.digest(t,r));const i=e();return Yw(r,(e=>{i.update(e)}),(()=>new Uint8Array(i.digest())))}}function JA(e,t){return async function(r,n=d_){if(mw(r)&&(r=await Jw(r)),i_.isStream(r)){const t=new e;return Yw(r,(e=>{t.process(e)}),(()=>t.finish().result))}return qA&&t&&r.length>=n.minBytesForWebCrypto?new Uint8Array(await qA.digest(t,r)):e.bytes(r)}}const ZA={md5:$A("md5")||async function(e){const t=function(e){const t=e.length,r=[1732584193,-271733879,-1732584194,271733878];let n;for(n=64;n<=e.length;n+=64)OA(r,HA(e.substring(n-64,n)));e=e.substring(n-64);const i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n>2]|=e.charCodeAt(n)<<(n%4<<3);if(i[n>>2]|=128<<(n%4<<3),n>55)for(OA(r,i),n=0;n<16;n++)i[n]=0;return i[14]=8*t,OA(r,i),r}(i_.uint8ArrayToString(e));return i_.hexToUint8Array(function(e){for(let t=0;tnew Uint8Array(o.update(e))))}(e,t,r,n);if(i_.isAES(e))return function(e,t,r,n,i){if(i_.getWebCrypto()&&24!==t.length&&!i_.isStream(r)&&r.length>=3e3*i.minBytesForWebCrypto)return async function(e,t,r,n){const i="AES-CBC",o=await rM.importKey("raw",t,{name:i},!1,["encrypt"]),{blockSize:s}=tM(e),a=i_.concatUint8Array([new Uint8Array(s),r]),u=new Uint8Array(await rM.encrypt({name:i,iv:n},o,a)).subarray(0,r.length);return function(e,t){for(let r=0;ro.aes.AES_Encrypt_process(e)),(()=>o.aes.AES_Encrypt_finish()))}(e,t,r,n,i);const s=new(tM(e))(t),a=s.blockSize,u=n.slice();let l=new Uint8Array;const c=e=>{e&&(l=i_.concatUint8Array([l,e]));const t=new Uint8Array(l.length);let r,n=0;for(;e?l.length>=a:l.length;){const e=s.encrypt(u);for(r=0;rnew Uint8Array(o.update(e))))}(e,t,r,n);if(i_.isAES(e))return function(e,t,r,n){if(i_.isStream(r)){const e=new eM(t,n);return Yw(r,(t=>e.aes.AES_Decrypt_process(t)),(()=>e.aes.AES_Decrypt_finish()))}return eM.decrypt(r,t,n)}(0,t,r,n);const o=new(tM(e))(t),s=o.blockSize;let a=n,u=new Uint8Array;const l=e=>{e&&(u=i_.concatUint8Array([u,e]));const t=new Uint8Array(u.length);let r,n=0;for(;e?u.length>=s:u.length;){const e=o.encrypt(a);for(a=u.subarray(0,s),r=0;r48)throw new C_("illegal counter size");let e=Math.pow(2,r)-1;n.set_mask(0,0,e/4294967296|0,0|e)}else r=48,n.set_mask(0,0,65535,4294967295);if(void 0===e)throw Error("nonce is required");{let t=e.length;if(!t||t>16)throw new C_("illegal nonce size");let r=new DataView(new ArrayBuffer(16));new Uint8Array(r.buffer).set(e),n.set_nonce(r.getUint32(0),r.getUint32(4),r.getUint32(8),r.getUint32(12))}if(void 0!==t){if(t<0||t>=Math.pow(2,r))throw new C_("illegal counter value");n.set_counter(0,0,t/4294967296|0,0|t)}}}class uM{static encrypt(e,t,r=!0,n){return new uM(t,n,r).encrypt(e)}static decrypt(e,t,r=!0,n){return new uM(t,n,r).decrypt(e)}constructor(e,t,r=!0,n){this.aes=n||new P_(e,t,r,"CBC")}encrypt(e){return k_(this.aes.AES_Encrypt_process(e),this.aes.AES_Encrypt_finish())}decrypt(e){return k_(this.aes.AES_Decrypt_process(e),this.aes.AES_Decrypt_finish())}}const lM=i_.getWebCrypto(),cM=i_.getNodeCrypto(),hM=16;function dM(e,t){const r=e.length-hM;for(let n=0;n>3),17+(l>>3)),8-(7&l)).subarray(1),f=new Uint8Array(SM),p=new Uint8Array(t.length+xM);let m,g=0;for(m=0;m16)throw new C_("illegal tagSize value");const a=t.length||0,u=new Uint8Array(16);12!==a?(this._gcm_mac_process(t),s[0]=0,s[1]=0,s[2]=0,s[3]=0,s[4]=0,s[5]=0,s[6]=0,s[7]=0,s[8]=0,s[9]=0,s[10]=0,s[11]=a>>>29,s[12]=a>>>21&255,s[13]=a>>>13&255,s[14]=a>>>5&255,s[15]=a<<3&255,o.mac(A_.MAC.GCM,A_.HEAP_DATA,16),o.get_iv(A_.HEAP_DATA),o.set_iv(0,0,0,0),u.set(s.subarray(0,16))):(u.set(t),u[15]=1);const l=new DataView(u.buffer);if(this.gamma0=l.getUint32(12),o.set_nonce(l.getUint32(0),l.getUint32(4),l.getUint32(8),0),o.set_mask(0,0,0,4294967295),void 0!==r){if(r.length>PM)throw new C_("illegal adata length");r.length?(this.adata=r,this._gcm_mac_process(r)):this.adata=void 0}else this.adata=void 0;if(this.counter<1||this.counter>4294967295)throw new RangeError("counter must be a positive 32-bit integer");o.set_counter(0,0,0,this.gamma0+this.counter|0)}static encrypt(e,t,r,n,i){return new DM(t,r,n,i).encrypt(e)}static decrypt(e,t,r,n,i){return new DM(t,r,n,i).decrypt(e)}encrypt(e){return this.AES_GCM_encrypt(e)}decrypt(e){return this.AES_GCM_decrypt(e)}AES_GCM_Encrypt_process(e){let t=0,r=e.length||0,{asm:n,heap:i}=this.aes.acquire_asm(),o=this.counter,s=this.aes.pos,a=this.aes.len,u=0,l=a+r&-16,c=0;if((o-1<<4)+a+r>PM)throw new RangeError("counter overflow");const h=new Uint8Array(l);for(;r>0;)c=x_(i,s+a,e,t,r),a+=c,t+=c,r-=c,c=n.cipher(A_.ENC.CTR,A_.HEAP_DATA+s,a),c=n.mac(A_.MAC.GCM,A_.HEAP_DATA+s,c),c&&h.set(i.subarray(s,s+c),u),o+=c>>>4,u+=c,c>>29,t[4]=l>>>21,t[5]=l>>>13&255,t[6]=l>>>5&255,t[7]=l<<3&255,t[8]=t[9]=t[10]=0,t[11]=c>>>29,t[12]=c>>>21&255,t[13]=c>>>13&255,t[14]=c>>>5&255,t[15]=c<<3&255,e.mac(A_.MAC.GCM,A_.HEAP_DATA,16),e.get_iv(A_.HEAP_DATA),e.set_counter(0,0,0,this.gamma0),e.cipher(A_.ENC.CTR,A_.HEAP_DATA,16),a.set(t.subarray(0,n),s),this.counter=1,this.aes.pos=0,this.aes.len=0,a}AES_GCM_Decrypt_process(e){let t=0,r=e.length||0,{asm:n,heap:i}=this.aes.acquire_asm(),o=this.counter,s=this.tagSize,a=this.aes.pos,u=this.aes.len,l=0,c=u+r>s?u+r-s&-16:0,h=u+r-c,d=0;if((o-1<<4)+u+r>PM)throw new RangeError("counter overflow");const f=new Uint8Array(c);for(;r>h;)d=x_(i,a+u,e,t,r-h),u+=d,t+=d,r-=d,d=n.mac(A_.MAC.GCM,A_.HEAP_DATA+a,d),d=n.cipher(A_.DEC.CTR,A_.HEAP_DATA+a,d),d&&f.set(i.subarray(a,a+d),l),o+=d>>>4,l+=d,a=0,u=0;return r>0&&(u+=x_(i,0,e,t,r)),this.counter=o,this.aes.pos=a,this.aes.len=u,f}AES_GCM_Decrypt_finish(){let{asm:e,heap:t}=this.aes.acquire_asm(),r=this.tagSize,n=this.adata,i=this.counter,o=this.aes.pos,s=this.aes.len,a=s-r;if(s>>29,t[4]=h>>>21,t[5]=h>>>13&255,t[6]=h>>>5&255,t[7]=h<<3&255,t[8]=t[9]=t[10]=0,t[11]=d>>>29,t[12]=d>>>21&255,t[13]=d>>>13&255,t[14]=d>>>5&255,t[15]=d<<3&255,e.mac(A_.MAC.GCM,A_.HEAP_DATA,16),e.get_iv(A_.HEAP_DATA),e.set_counter(0,0,0,this.gamma0),e.cipher(A_.ENC.CTR,A_.HEAP_DATA,16);let f=0;for(let p=0;p0;){for(o=x_(r,0,e,n,i),n+=o,i-=o;15&o;)r[o++]=0;t.mac(A_.MAC.GCM,A_.HEAP_DATA,o)}}}const LM=i_.getWebCrypto(),OM=i_.getNodeCrypto(),jM=i_.getNodeBuffer(),BM=16,UM="AES-GCM";async function FM(e,t){if(e!==r_.symmetric.aes128&&e!==r_.symmetric.aes192&&e!==r_.symmetric.aes256)throw Error("GCM mode supports only AES cipher");if(i_.getNodeCrypto())return{encrypt:async function(e,r,n=new Uint8Array){const i=new OM.createCipheriv("aes-"+8*t.length+"-gcm",t,r);i.setAAD(n);const o=jM.concat([i.update(e),i.final(),i.getAuthTag()]);return new Uint8Array(o)},decrypt:async function(e,r,n=new Uint8Array){const i=new OM.createDecipheriv("aes-"+8*t.length+"-gcm",t,r);i.setAAD(n),i.setAuthTag(e.slice(e.length-BM,e.length));const o=jM.concat([i.update(e.slice(0,e.length-BM)),i.final()]);return new Uint8Array(o)}};if(i_.getWebCrypto()&&24!==t.length){const e=await LM.importKey("raw",t,{name:UM},!1,["encrypt","decrypt"]);return{encrypt:async function(r,n,i=new Uint8Array){if(!r.length)return DM.encrypt(r,t,n,i);const o=await LM.encrypt({name:UM,iv:n,additionalData:i,tagLength:128},e,r);return new Uint8Array(o)},decrypt:async function(r,n,i=new Uint8Array){if(r.length===BM)return DM.decrypt(r,t,n,i);const o=await LM.decrypt({name:UM,iv:n,additionalData:i,tagLength:128},e,r);return new Uint8Array(o)}}}return{encrypt:async function(e,r,n){return DM.encrypt(e,t,r,n)},decrypt:async function(e,r,n){return DM.decrypt(e,t,r,n)}}}FM.getNonce=function(e,t){const r=e.slice();for(let n=0;n>>8)-1}(e,t,r,n)}function f(e,t){var r;for(r=0;r<16;r++)e[r]=0|t[r]}function p(e){var t,r,n=1;for(t=0;t<16;t++)r=e[t]+n+65535,n=Math.floor(r/65536),e[t]=r-65536*n;e[0]+=n-1+37*(n-1)}function m(e,t,r){for(var n,i=~(r-1),o=0;o<16;o++)n=i&(e[o]^t[o]),e[o]^=n,t[o]^=n}function g(e,r){var n,i,o,s=t(),a=t();for(n=0;n<16;n++)a[n]=r[n];for(p(a),p(a),p(a),i=0;i<2;i++){for(s[0]=a[0]-65517,n=1;n<15;n++)s[n]=a[n]-65535-(s[n-1]>>16&1),s[n-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),o=s[15]>>16&1,s[14]&=65535,m(a,s,1-o)}for(n=0;n<16;n++)e[2*n]=255&a[n],e[2*n+1]=a[n]>>8}function y(e,t){var r=new Uint8Array(32),n=new Uint8Array(32);return g(r,e),g(n,t),d(r,0,n,0)}function v(e){var t=new Uint8Array(32);return g(t,e),1&t[0]}function b(e,t){var r;for(r=0;r<16;r++)e[r]=t[2*r]+(t[2*r+1]<<8);e[15]&=32767}function w(e,t,r){for(var n=0;n<16;n++)e[n]=t[n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n*W,N+=n*V,R+=n*$,P+=n*Q,D+=n*J,w+=(n=t[15])*O,s+=38*(E+=n*B),a+=38*(A+=n*U),u+=38*(M+=n*F),l+=38*(S+=n*z),c+=38*(x+=n*H),h+=38*(k+=n*G),d+=38*(T+=n*Y),f+=38*(C+=n*K),p+=38*(I+=n*q),m+=38*(N+=n*W),g+=38*(R+=n*V),y+=38*(P+=n*$),v+=38*(D+=n*Q),b+=38*(L+=n*J),o=(n=(o+=38*(_+=n*j))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o=(n=(o+=i-1+37*(i-1))+(i=1)+65535)-65536*(i=Math.floor(n/65536)),s=(n=s+i+65535)-65536*(i=Math.floor(n/65536)),a=(n=a+i+65535)-65536*(i=Math.floor(n/65536)),u=(n=u+i+65535)-65536*(i=Math.floor(n/65536)),l=(n=l+i+65535)-65536*(i=Math.floor(n/65536)),c=(n=c+i+65535)-65536*(i=Math.floor(n/65536)),h=(n=h+i+65535)-65536*(i=Math.floor(n/65536)),d=(n=d+i+65535)-65536*(i=Math.floor(n/65536)),f=(n=f+i+65535)-65536*(i=Math.floor(n/65536)),p=(n=p+i+65535)-65536*(i=Math.floor(n/65536)),m=(n=m+i+65535)-65536*(i=Math.floor(n/65536)),g=(n=g+i+65535)-65536*(i=Math.floor(n/65536)),y=(n=y+i+65535)-65536*(i=Math.floor(n/65536)),v=(n=v+i+65535)-65536*(i=Math.floor(n/65536)),b=(n=b+i+65535)-65536*(i=Math.floor(n/65536)),w=(n=w+i+65535)-65536*(i=Math.floor(n/65536)),o+=i-1+37*(i-1),e[0]=o,e[1]=s,e[2]=a,e[3]=u,e[4]=l,e[5]=c,e[6]=h,e[7]=d,e[8]=f,e[9]=p,e[10]=m,e[11]=g,e[12]=y,e[13]=v,e[14]=b,e[15]=w}function A(e,t){E(e,t,t)}function M(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=253;n>=0;n--)A(i,i),2!==n&&4!==n&&E(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}function S(e,r,n){var i,o,a=new Uint8Array(32),u=new Float64Array(80),l=t(),c=t(),h=t(),d=t(),f=t(),p=t();for(o=0;o<31;o++)a[o]=r[o];for(a[31]=127&r[31]|64,a[0]&=248,b(u,n),o=0;o<16;o++)c[o]=u[o],d[o]=l[o]=h[o]=0;for(l[0]=d[0]=1,o=254;o>=0;--o)m(l,c,i=a[o>>>3]>>>(7&o)&1),m(h,d,i),w(f,l,h),_(l,l,h),w(h,c,d),_(c,c,d),A(d,f),A(p,l),E(l,h,l),E(h,c,f),w(f,l,h),_(l,l,h),A(c,l),_(h,d,p),E(l,h,s),w(l,l,d),E(h,h,l),E(l,d,p),E(d,c,u),A(c,f),m(l,c,i),m(h,d,i);for(o=0;o<16;o++)u[o+16]=l[o],u[o+32]=h[o],u[o+48]=c[o],u[o+64]=d[o];var y=u.subarray(32),v=u.subarray(16);return M(y,y),E(v,v,y),g(e,v),0}function x(e,t){return S(e,t,n)}function k(e,r){var n=t(),i=t(),o=t(),s=t(),a=t(),l=t(),c=t(),h=t(),d=t();_(n,e[1],e[0]),_(d,r[1],r[0]),E(n,n,d),w(i,e[0],e[1]),w(d,r[0],r[1]),E(i,i,d),E(o,e[3],r[3]),E(o,o,u),E(s,e[2],r[2]),w(s,s,s),_(a,i,n),_(l,s,o),w(c,s,o),w(h,i,n),E(e[0],a,l),E(e[1],h,c),E(e[2],c,l),E(e[3],a,h)}function T(e,t,r){var n;for(n=0;n<4;n++)m(e[n],t[n],r)}function C(e,r){var n=t(),i=t(),o=t();M(o,r[2]),E(n,r[0],o),E(i,r[1],o),g(e,i),e[31]^=v(n)<<7}function I(e,t,r){var n,s;for(f(e[0],i),f(e[1],o),f(e[2],o),f(e[3],i),s=255;s>=0;--s)T(e,t,n=r[s/8|0]>>(7&s)&1),k(t,e),k(e,e),T(e,t,n)}function N(e,r){var n=[t(),t(),t(),t()];f(n[0],l),f(n[1],c),f(n[2],o),E(n[3],l,c),I(e,n,r)}function R(n,i,o){var s,a,u=[t(),t(),t(),t()];for(o||r(i,32),(s=e.hash(i.subarray(0,32)))[0]&=248,s[31]&=127,s[31]|=64,N(u,s),C(n,u),a=0;a<32;a++)i[a+32]=n[a];return 0}var P=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 D(e,t){var r,n,i,o;for(n=63;n>=32;--n){for(r=0,i=n-32,o=n-12;i>4)*P[i],r=t[i]>>8,t[i]&=255;for(i=0;i<32;i++)t[i]-=r*P[i];for(n=0;n<32;n++)t[n+1]+=t[n]>>8,e[n]=255&t[n]}function L(e){var t,r=new Float64Array(64);for(t=0;t<64;t++)r[t]=e[t];for(t=0;t<64;t++)e[t]=0;D(e,r)}function O(e,r){var n=t(),s=t(),u=t(),l=t(),c=t(),d=t(),p=t();return f(e[2],o),b(e[1],r),A(u,e[1]),E(l,u,a),_(u,u,e[2]),w(l,e[2],l),A(c,l),A(d,c),E(p,d,c),E(n,p,u),E(n,n,l),function(e,r){var n,i=t();for(n=0;n<16;n++)i[n]=r[n];for(n=250;n>=0;n--)A(i,i),1!==n&&E(i,i,r);for(n=0;n<16;n++)e[n]=i[n]}(n,n),E(n,n,u),E(n,n,l),E(n,n,l),E(e[0],n,l),A(s,e[0]),E(s,s,l),y(s,u)&&E(e[0],e[0],h),A(s,e[0]),E(s,s,l),y(s,u)?-1:(v(e[0])===r[31]>>7&&_(e[0],i,e[0]),E(e[3],e[0],e[1]),0)}var j=64;function B(){for(var e=0;e=0},e.sign.keyPair=function(){var e=new Uint8Array(32),t=new Uint8Array(64);return R(e,t),{publicKey:e,secretKey:t}},e.sign.keyPair.fromSecretKey=function(e){if(B(e),64!==e.length)throw Error("bad secret key size");for(var t=new Uint8Array(32),r=0;re&&(u.imod(o.leftShift(i)).iadd(o),l=u.mod(s).toNumber())}while(!(await VM(u,t,r)));return u}async function VM(e,t,r){return!(t&&!e.dec().gcd(t).isOne()||!(await async function(e){const t=await i_.getBigInteger();return $M.every((r=>0!==e.mod(new t(r))))}(e))||!(await async function(e,t){const r=await i_.getBigInteger();return(t=t||new r(2)).modExp(e.dec(),e).isOne()}(e))||!(await async function(e,t,r){const n=await i_.getBigInteger(),i=e.bitLength();t||(t=Math.max(1,i/48|0));const o=e.dec();let s=0;for(;!o.getBit(s);)s++;const a=e.rightShift(new n(s));for(;t>0;t--){let t,r=(await KM(new n(2),o)).modExp(a,e);if(!r.isOne()&&!r.equal(o)){for(t=1;tt-11)throw Error("Message too long");const n=function(e){const t=new Uint8Array(e);let r=0;for(;r=8&!n;if(t)return i_.selectUint8Array(s,o,t);if(s)return o;throw Error("Decryption error")}async function XM(e,t,r){let n;if(t.length!==XA.getHashByteLength(e))throw Error("Invalid hash length");const i=new Uint8Array(QM[e].length);for(n=0;n{rS.generateKeyPair("rsa",r,((r,n,i)=>{r?t(r):e(iS.decode(i,"der"))}))}));return{n:n.modulus.toArrayLike(Uint8Array),e:n.publicExponent.toArrayLike(Uint8Array),d:n.privateExponent.toArrayLike(Uint8Array),p:n.prime2.toArrayLike(Uint8Array),q:n.prime1.toArrayLike(Uint8Array),u:n.coefficient.toArrayLike(Uint8Array)}}let r,n,i;do{n=await WM(e-(e>>1),t,40),r=await WM(e>>1,t,40),i=r.mul(n)}while(i.bitLength()!==e);const o=r.dec().imul(n.dec());return n.lt(r)&&([r,n]=[n,r]),{n:i.toUint8Array(),e:t.toUint8Array(),d:t.modInv(o).toUint8Array(),p:r.toUint8Array(),q:n.toUint8Array(),u:r.modInv(n).toUint8Array()}},validateParams:async function(e,t,r,n,i,o){const s=await i_.getBigInteger();if(e=new s(e),n=new s(n),i=new s(i),!n.mul(i).equal(e))return!1;const a=new s(2);if(o=new s(o),!n.mul(o).mod(i).isOne())return!1;t=new s(t),r=new s(r);const u=new s(Math.floor(e.bitLength()/3)),l=await KM(a,a.leftShift(u)),c=l.mul(r).mul(t);return!(!c.mod(n.dec()).equal(l)||!c.mod(i.dec()).equal(l))}}),aS=Object.freeze({__proto__:null,encrypt:async function(e,t,r,n){const i=await i_.getBigInteger();t=new i(t),r=new i(r),n=new i(n);const o=new i(JM(e,t.byteLength())),s=await KM(new i(1),t.dec());return{c1:r.modExp(s,t).toUint8Array(),c2:n.modExp(s,t).imul(o).imod(t).toUint8Array()}},decrypt:async function(e,t,r,n,i){const o=await i_.getBigInteger();return e=new o(e),t=new o(t),r=new o(r),n=new o(n),ZM(e.modExp(n,r).modInv(r).imul(t).imod(r).toUint8Array("be",r.byteLength()),i)},validateParams:async function(e,t,r,n){const i=await i_.getBigInteger();e=new i(e),t=new i(t),r=new i(r);const o=new i(1);if(t.lte(o)||t.gte(e))return!1;const s=new i(e.bitLength()),a=new i(1023);if(s.lt(a))return!1;if(!t.modExp(e.dec(),e).isOne())return!1;let u=t;const l=new i(1),c=new i(2).leftShift(new i(17));for(;l.lt(c);){if(u=u.mul(t).imod(e),u.isOne())return!1;l.iinc()}n=new i(n);const h=new i(2),d=await KM(h.leftShift(s.dec()),h.leftShift(s)),f=e.dec().imul(d).iadd(n);return!!r.equal(t.modExp(f,e))}});class uS{constructor(e){if(e instanceof uS)this.oid=e.oid;else if(i_.isArray(e)||i_.isUint8Array(e)){if(6===(e=new Uint8Array(e))[0]){if(e[1]!==e.length-2)throw Error("Length mismatch in DER encoded oid");e=e.subarray(2)}this.oid=e}else this.oid=""}read(e){if(e.length>=1){const t=e[0];if(e.length>=1+t)return this.oid=e.subarray(1,1+t),1+this.oid.length}throw Error("Invalid oid")}write(){return i_.concatUint8Array([new Uint8Array([this.oid.length]),this.oid])}toHex(){return i_.uint8ArrayToHex(this.oid)}getName(){const e=this.toHex();if(r_.curve[e])return r_.write(r_.curve,e);throw Error("Unknown curve object identifier.")}}function lS(e,t){return e.keyPair({priv:t})}function cS(e,t){const r=e.keyPair({pub:t});if(!0!==r.validate().result)throw Error("Invalid elliptic public key");return r}async function hS(e){if(!d_.useIndutnyElliptic)throw Error("This curve is only supported in the full build of OpenPGP.js");const{default:t}=await Promise.resolve().then((function(){return kL}));return new t.ec(e)}function dS(e){let t,r=0;const n=e[0];return n<192?([r]=e,t=1):n<255?(r=(e[0]-192<<8)+e[1]+192,t=2):255===n&&(r=i_.readNumber(e.subarray(1,5)),t=5),{len:r,offset:t}}function fS(e){return e<192?new Uint8Array([e]):e>191&&e<8384?new Uint8Array([192+(e-192>>8),e-192&255]):i_.concatUint8Array([new Uint8Array([255]),i_.writeNumber(e,4)])}function pS(e){if(e<0||e>30)throw Error("Partial Length power must be between 1 and 30");return new Uint8Array([224+e])}function mS(e){return new Uint8Array([192|e])}function gS(e,t){return i_.concatUint8Array([mS(e),fS(t)])}function yS(e){return[r_.packet.literalData,r_.packet.compressedData,r_.packet.symmetricallyEncryptedData,r_.packet.symEncryptedIntegrityProtectedData,r_.packet.aeadEncryptedData].includes(e)}async function vS(e,t){const r=Uw(e);let n,i;try{const o=await r.peekBytes(2);if(!o||o.length<2||0==(128&o[0]))throw Error("Error during parsing. This message / key probably does not conform to a valid OpenPGP format.");const s=await r.readByte();let a,u,l=-1,c=-1;c=0,0!=(64&s)&&(c=1),c?l=63&s:(l=(63&s)>>2,u=3&s);const h=yS(l);let d,f=null;if(h){if("array"===i_.isStream(e)){const e=new pw;n=Fw(e),f=e}else{const e=new Pw;n=Fw(e.writable),f=e.readable}i=t({tag:l,packet:f})}else f=[];do{if(c){const e=await r.readByte();if(d=!1,e<192)a=e;else if(e>=192&&e<224)a=(e-192<<8)+await r.readByte()+192;else if(e>223&&e<255){if(a=1<<(31&e),d=!0,!h)throw new TypeError("This packet type does not support partial lengths.")}else a=await r.readByte()<<24|await r.readByte()<<16|await r.readByte()<<8|await r.readByte()}else switch(u){case 0:a=await r.readByte();break;case 1:a=await r.readByte()<<8|await r.readByte();break;case 2:a=await r.readByte()<<24|await r.readByte()<<16|await r.readByte()<<8|await r.readByte();break;default:a=1/0}if(a>0){let e=0;for(;;){n&&await n.ready;const{done:t,value:i}=await r.read();if(t){if(a===1/0)break;throw Error("Unexpected end of packet")}const o=a===1/0?i:i.subarray(0,a-e);if(n?await n.write(o):f.push(o),e+=i.length,e>=a){r.unshift(i.subarray(a-e+i.length));break}}}}while(d);const p=await r.peekBytes(h?1/0:2);return n?(await n.ready,await n.close()):(f=i_.concatUint8Array(f),await t({tag:l,packet:f})),!p||!p.length}catch(e){if(n)return await n.abort(e),!0;throw e}finally{n&&await i,r.releaseLock()}}class bS extends Error{constructor(...e){super(...e),Error.captureStackTrace&&Error.captureStackTrace(this,bS),this.name="UnsupportedError"}}class wS{constructor(e,t){this.tag=e,this.rawContent=t}write(){return this.rawContent}}const _S=i_.getWebCrypto(),ES=i_.getNodeCrypto(),AS={p256:"P-256",p384:"P-384",p521:"P-521"},MS=ES?ES.getCurves():[],SS=ES?{secp256k1:MS.includes("secp256k1")?"secp256k1":void 0,p256:MS.includes("prime256v1")?"prime256v1":void 0,p384:MS.includes("secp384r1")?"secp384r1":void 0,p521:MS.includes("secp521r1")?"secp521r1":void 0,ed25519:MS.includes("ED25519")?"ED25519":void 0,curve25519:MS.includes("X25519")?"X25519":void 0,brainpoolP256r1:MS.includes("brainpoolP256r1")?"brainpoolP256r1":void 0,brainpoolP384r1:MS.includes("brainpoolP384r1")?"brainpoolP384r1":void 0,brainpoolP512r1:MS.includes("brainpoolP512r1")?"brainpoolP512r1":void 0}:{},xS={p256:{oid:[6,8,42,134,72,206,61,3,1,7],keyType:r_.publicKey.ecdsa,hash:r_.hash.sha256,cipher:r_.symmetric.aes128,node:SS.p256,web:AS.p256,payloadSize:32,sharedSize:256},p384:{oid:[6,5,43,129,4,0,34],keyType:r_.publicKey.ecdsa,hash:r_.hash.sha384,cipher:r_.symmetric.aes192,node:SS.p384,web:AS.p384,payloadSize:48,sharedSize:384},p521:{oid:[6,5,43,129,4,0,35],keyType:r_.publicKey.ecdsa,hash:r_.hash.sha512,cipher:r_.symmetric.aes256,node:SS.p521,web:AS.p521,payloadSize:66,sharedSize:528},secp256k1:{oid:[6,5,43,129,4,0,10],keyType:r_.publicKey.ecdsa,hash:r_.hash.sha256,cipher:r_.symmetric.aes128,node:SS.secp256k1,payloadSize:32},ed25519:{oid:[6,9,43,6,1,4,1,218,71,15,1],keyType:r_.publicKey.eddsaLegacy,hash:r_.hash.sha512,node:!1,payloadSize:32},curve25519:{oid:[6,10,43,6,1,4,1,151,85,1,5,1],keyType:r_.publicKey.ecdh,hash:r_.hash.sha256,cipher:r_.symmetric.aes128,node:!1,payloadSize:32},brainpoolP256r1:{oid:[6,9,43,36,3,3,2,8,1,1,7],keyType:r_.publicKey.ecdsa,hash:r_.hash.sha256,cipher:r_.symmetric.aes128,node:SS.brainpoolP256r1,payloadSize:32},brainpoolP384r1:{oid:[6,9,43,36,3,3,2,8,1,1,11],keyType:r_.publicKey.ecdsa,hash:r_.hash.sha384,cipher:r_.symmetric.aes192,node:SS.brainpoolP384r1,payloadSize:48},brainpoolP512r1:{oid:[6,9,43,36,3,3,2,8,1,1,13],keyType:r_.publicKey.ecdsa,hash:r_.hash.sha512,cipher:r_.symmetric.aes256,node:SS.brainpoolP512r1,payloadSize:64}};class kS{constructor(e,t){try{(i_.isArray(e)||i_.isUint8Array(e))&&(e=new uS(e)),e instanceof uS&&(e=e.getName()),this.name=r_.write(r_.curve,e)}catch(e){throw new bS("Unknown curve")}t=t||xS[this.name],this.keyType=t.keyType,this.oid=t.oid,this.hash=t.hash,this.cipher=t.cipher,this.node=t.node&&xS[this.name],this.web=t.web&&xS[this.name],this.payloadSize=t.payloadSize,this.web&&i_.getWebCrypto()?this.type="web":this.node&&i_.getNodeCrypto()?this.type="node":"curve25519"===this.name?this.type="curve25519":"ed25519"===this.name&&(this.type="ed25519")}async genKeyPair(){let e;switch(this.type){case"web":try{return await async function(e){const t=await _S.generateKey({name:"ECDSA",namedCurve:AS[e]},!0,["sign","verify"]),r=await _S.exportKey("jwk",t.privateKey);return{publicKey:CS(await _S.exportKey("jwk",t.publicKey)),privateKey:c_(r.d)}}(this.name)}catch(e){i_.printDebugError("Browser did not support generating ec key "+e.message);break}case"node":return async function(e){const t=ES.createECDH(SS[e]);return await t.generateKeys(),{publicKey:new Uint8Array(t.getPublicKey()),privateKey:new Uint8Array(t.getPrivateKey())}}(this.name);case"curve25519":{const t=YM(32);t[0]=127&t[0]|64,t[31]&=248;const r=t.slice().reverse();return e=HM.box.keyPair.fromSecretKey(r),{publicKey:i_.concatUint8Array([new Uint8Array([64]),e.publicKey]),privateKey:t}}case"ed25519":{const e=YM(32),t=HM.sign.keyPair.fromSeed(e);return{publicKey:i_.concatUint8Array([new Uint8Array([64]),t.publicKey]),privateKey:e}}}const t=await hS(this.name);return e=await t.genKeyPair({entropy:i_.uint8ArrayToString(YM(32))}),{publicKey:new Uint8Array(e.getPublic("array",!1)),privateKey:e.getPrivate().toArrayLike(Uint8Array)}}}async function TS(e,t,r,n){const i={p256:!0,p384:!0,p521:!0,secp256k1:!0,curve25519:e===r_.publicKey.ecdh,brainpoolP256r1:!0,brainpoolP384r1:!0,brainpoolP512r1:!0},o=t.getName();if(!i[o])return!1;if("curve25519"===o){n=n.slice().reverse();const{publicKey:e}=HM.box.keyPair.fromSecretKey(n);r=new Uint8Array(r);const t=new Uint8Array([64,...e]);return!!i_.equalsUint8Array(t,r)}const s=await hS(o);try{r=cS(s,r).getPublic()}catch(e){return!1}return!!lS(s,n).getPublic().eq(r)}function CS(e){const t=c_(e.x),r=c_(e.y),n=new Uint8Array(t.length+r.length+1);return n[0]=4,n.set(t,1),n.set(r,t.length+1),n}function IS(e,t,r){const n=e,i=r.slice(1,n+1),o=r.slice(n+1,2*n+1);return{kty:"EC",crv:t,x:h_(i,!0),y:h_(o,!0),ext:!0}}function NS(e,t,r,n){const i=IS(e,t,r);return i.d=h_(n,!0),i}const RS=i_.getWebCrypto(),PS=i_.getNodeCrypto();async function DS(e,t,r,n,i,o){const s=new kS(e);if(r&&!i_.isStream(r)){const o={publicKey:n,privateKey:i};switch(s.type){case"web":try{return await async function(e,t,r,n){const i=e.payloadSize,o=NS(e.payloadSize,AS[e.name],n.publicKey,n.privateKey),s=await RS.importKey("jwk",o,{name:"ECDSA",namedCurve:AS[e.name],hash:{name:r_.read(r_.webHash,e.hash)}},!1,["sign"]),a=new Uint8Array(await RS.sign({name:"ECDSA",namedCurve:AS[e.name],hash:{name:r_.read(r_.webHash,t)}},s,r));return{r:a.slice(0,i),s:a.slice(i,i<<1)}}(s,t,r,o)}catch(e){if("p521"!==s.name&&("DataError"===e.name||"OperationError"===e.name))throw e;i_.printDebugError("Browser did not support signing: "+e.message)}break;case"node":{const e=await async function(e,t,r,n){const i=PS.createSign(r_.read(r_.hash,t));i.write(r),i.end();const o=BS.encode({version:1,parameters:e.oid,privateKey:Array.from(n.privateKey),publicKey:{unused:0,data:Array.from(n.publicKey)}},"pem",{label:"EC PRIVATE KEY"});return jS.decode(i.sign(o),"der")}(s,t,r,o);return{r:e.r.toArrayLike(Uint8Array),s:e.s.toArrayLike(Uint8Array)}}}}return async function(e,t,r){const n=lS(await hS(e.name),r).sign(t);return{r:n.r.toArrayLike(Uint8Array),s:n.s.toArrayLike(Uint8Array)}}(s,o,i)}async function LS(e,t,r,n,i,o){const s=new kS(e);if(n&&!i_.isStream(n))switch(s.type){case"web":try{return await async function(e,t,{r,s:n},i,o){const s=IS(e.payloadSize,AS[e.name],o),a=await RS.importKey("jwk",s,{name:"ECDSA",namedCurve:AS[e.name],hash:{name:r_.read(r_.webHash,e.hash)}},!1,["verify"]),u=i_.concatUint8Array([r,n]).buffer;return RS.verify({name:"ECDSA",namedCurve:AS[e.name],hash:{name:r_.read(r_.webHash,t)}},a,u,i)}(s,t,r,n,i)}catch(e){if("p521"!==s.name&&("DataError"===e.name||"OperationError"===e.name))throw e;i_.printDebugError("Browser did not support verifying: "+e.message)}break;case"node":return async function(e,t,{r,s:n},i,o){const{default:s}=await Promise.resolve().then((function(){return uD})),a=PS.createVerify(r_.read(r_.hash,t));a.write(i),a.end();const u=FS.encode({algorithm:{algorithm:[1,2,840,10045,2,1],parameters:e.oid},subjectPublicKey:{unused:0,data:Array.from(o)}},"pem",{label:"PUBLIC KEY"}),l=jS.encode({r:new s(r),s:new s(n)},"der");try{return a.verify(u,l)}catch(e){return!1}}(s,t,r,n,i)}return async function(e,t,r,n){return cS(await hS(e.name),n).verify(r,t)}(s,r,void 0===t?n:o,i)}const OS=void 0,jS=PS?OS.define("ECDSASignature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())})):void 0,BS=PS?OS.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").explicit(0).optional().any(),this.key("publicKey").explicit(1).optional().bitstr())})):void 0,US=PS?OS.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional().any())})):void 0,FS=PS?OS.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(US),this.key("subjectPublicKey").bitstr())})):void 0;var zS=Object.freeze({__proto__:null,sign:DS,verify:LS,validateParams:async function(e,t,r){const n=new kS(e);if(n.keyType!==r_.publicKey.ecdsa)return!1;switch(n.type){case"web":case"node":{const n=YM(8),i=r_.hash.sha256,o=await XA.digest(i,n);try{const s=await DS(e,i,n,t,r,o);return await LS(e,i,s,n,t,o)}catch(e){return!1}}default:return TS(r_.publicKey.ecdsa,e,t,r)}}});HM.hash=e=>new Uint8Array(sA().update(e).digest());var HS=Object.freeze({__proto__:null,sign:async function(e,t,r,n,i,o){if(XA.getHashByteLength(t)new Uint8Array(sA().update(e).digest());var YS=Object.freeze({__proto__:null,generate:async function(e){if(e===r_.publicKey.ed25519){const e=YM(32),{publicKey:t}=HM.sign.keyPair.fromSeed(e);return{A:t,seed:e}}throw Error("Unsupported EdDSA algorithm")},sign:async function(e,t,r,n,i,o){if(XA.getHashByteLength(t)=0;--c)for(let e=a-1;e>=0;--e)u[1]=a*c+(e+1),l[0]=o[0]^u[0],l[1]=o[1]^u[1],l[2]=s[2*e],l[3]=s[2*e+1],l=WS(r.decrypt(VS(l))),o=l.subarray(0,2),s[2*e]=l[2],s[2*e+1]=l[3];if(o[0]===n[0]&&o[1]===n[1])return VS(s);throw Error("Key Data Integrity failed")}function WS(e){const{length:t}=e,r=function(e){if(i_.isString(e)){const{length:t}=e,r=new ArrayBuffer(t),n=new Uint8Array(r);for(let i=0;i0){const r=e[t-1];if(r>=1){const n=e.subarray(t-r),i=new Uint8Array(r).fill(r);if(i_.equalsUint8Array(n,i))return e.subarray(0,t-r)}}throw Error("Invalid padding")}var ZS=Object.freeze({__proto__:null,encode:QS,decode:JS});const XS=i_.getWebCrypto(),ex=i_.getNodeCrypto();function tx(e,t,r,n){return i_.concatUint8Array([t.write(),new Uint8Array([e]),r.write(),i_.stringToUint8Array("Anonymous Sender "),n.subarray(0,20)])}async function rx(e,t,r,n,i=!1,o=!1){let s;if(i){for(s=0;s=0&&0===t[s];s--);t=t.subarray(0,s+1)}return(await XA.digest(e,i_.concatUint8Array([new Uint8Array([0,0,0,1]),t,n]))).subarray(0,r)}async function nx(e,t,r,n){if(n.length!==e.payloadSize){const t=new Uint8Array(e.payloadSize);t.set(n,e.payloadSize-n.length),n=t}switch(e.type){case"curve25519":{const e=n.slice().reverse();return{secretKey:e,sharedKey:HM.scalarMult(e,t.subarray(1))}}case"web":if(e.web&&i_.getWebCrypto())try{return await async function(e,t,r,n){const i=NS(e.payloadSize,e.web.web,r,n);let o=XS.importKey("jwk",i,{name:"ECDH",namedCurve:e.web.web},!0,["deriveKey","deriveBits"]);const s=IS(e.payloadSize,e.web.web,t);let a=XS.importKey("jwk",s,{name:"ECDH",namedCurve:e.web.web},!0,[]);[o,a]=await Promise.all([o,a]);let u=XS.deriveBits({name:"ECDH",namedCurve:e.web.web,public:a},o,e.web.sharedSize),l=XS.exportKey("jwk",o);[u,l]=await Promise.all([u,l]);const c=new Uint8Array(u);return{secretKey:c_(l.d),sharedKey:c}}(e,t,r,n)}catch(e){i_.printDebugError(e)}break;case"node":return async function(e,t,r){const n=ex.createECDH(e.node.node);n.setPrivateKey(r);const i=new Uint8Array(n.computeSecret(t));return{secretKey:new Uint8Array(n.getPrivateKey()),sharedKey:i}}(e,t,n)}return async function(e,t,r){const n=await hS(e.name);t=cS(n,t),r=lS(n,r);const i=new Uint8Array(r.getPrivate()),o=r.derive(t.getPublic()),s=n.curve.p.byteLength();return{secretKey:i,sharedKey:o.toArrayLike(Uint8Array,"be",s)}}(e,t,n)}var ix=Object.freeze({__proto__:null,validateParams:async function(e,t,r){return TS(r_.publicKey.ecdh,e,t,r)},encrypt:async function(e,t,r,n,i){const o=QS(r),s=new kS(e),{publicKey:a,sharedKey:u}=await async function(e,t){switch(e.type){case"curve25519":{const r=YM(32),{secretKey:n,sharedKey:i}=await nx(e,t,null,r);let{publicKey:o}=HM.box.keyPair.fromSecretKey(n);return o=i_.concatUint8Array([new Uint8Array([64]),o]),{publicKey:o,sharedKey:i}}case"web":if(e.web&&i_.getWebCrypto())try{return await async function(e,t){const r=IS(e.payloadSize,e.web.web,t);let n=XS.generateKey({name:"ECDH",namedCurve:e.web.web},!0,["deriveKey","deriveBits"]),i=XS.importKey("jwk",r,{name:"ECDH",namedCurve:e.web.web},!1,[]);[n,i]=await Promise.all([n,i]);let o=XS.deriveBits({name:"ECDH",namedCurve:e.web.web,public:i},n.privateKey,e.web.sharedSize),s=XS.exportKey("jwk",n.publicKey);[o,s]=await Promise.all([o,s]);const a=new Uint8Array(o);return{publicKey:new Uint8Array(CS(s)),sharedKey:a}}(e,t)}catch(e){i_.printDebugError(e)}break;case"node":return async function(e,t){const r=ex.createECDH(e.node.node);r.generateKeys();const n=new Uint8Array(r.computeSecret(t));return{publicKey:new Uint8Array(r.getPublicKey()),sharedKey:n}}(e,t)}return async function(e,t){const r=await hS(e.name),n=await e.genKeyPair();t=cS(r,t);const i=lS(r,n.privateKey),o=n.publicKey,s=i.derive(t.getPublic()),a=r.curve.p.byteLength();return{publicKey:o,sharedKey:s.toArrayLike(Uint8Array,"be",a)}}(e,t)}(s,n),l=tx(r_.publicKey.ecdh,e,t,i),{keySize:c}=tM(t.cipher);return{publicKey:a,wrappedKey:KS(await rx(t.hash,u,c,l),o)}},decrypt:async function(e,t,r,n,i,o,s){const a=new kS(e),{sharedKey:u}=await nx(a,r,i,o),l=tx(r_.publicKey.ecdh,e,t,s),{keySize:c}=tM(t.cipher);let h;for(let d=0;d<3;d++)try{return JS(qS(await rx(t.hash,u,c,l,1===d,2===d),n))}catch(e){h=e}throw h}});const ox=i_.getWebCrypto(),sx=i_.getNodeCrypto(),ax=sx&&sx.webcrypto&&sx.webcrypto.subtle;async function ux(e,t,r,n,i){const o=r_.read(r_.webHash,e);if(!o)throw Error("Hash algo not supported with HKDF");if(ox||ax){const e=ox||ax,s=await e.importKey("raw",t,"HKDF",!1,["deriveBits"]),a=await e.deriveBits({name:"HKDF",hash:o,salt:r,info:n},s,8*i);return new Uint8Array(a)}if(sx){const o=r_.read(r_.hash,e),s=(e,t)=>sx.createHmac(o,e).update(t).digest(),a=s(r,t),u=a.length,l=Math.ceil(i/u),c=new Uint8Array(l*u),h=new Uint8Array(u+n.length+1);h.set(n,u);for(let e=0;e0?h:h.subarray(u));h.set(t,0),c.set(t,e*u)}return c.subarray(0,i)}throw Error("No HKDF implementation available")}const lx={x25519:i_.encodeUTF8("OpenPGP X25519")};var cx=Object.freeze({__proto__:null,generate:async function(e){if(e===r_.publicKey.x25519){const e=YM(32),{publicKey:t}=HM.box.keyPair.fromSecretKey(e);return{A:t,k:e}}throw Error("Unsupported ECDH algorithm")},validateParams:async function(e,t,r){if(e===r_.publicKey.x25519){const{publicKey:e}=HM.box.keyPair.fromSecretKey(r);return i_.equalsUint8Array(t,e)}return!1},encrypt:async function(e,t,r){if(e===r_.publicKey.x25519){const e=YM(32),n=HM.scalarMult(e,r),{publicKey:i}=HM.box.keyPair.fromSecretKey(e),o=i_.concatUint8Array([i,r,n]),{keySize:s}=tM(r_.symmetric.aes128);return{ephemeralPublicKey:i,wrappedKey:KS(await ux(r_.hash.sha256,o,new Uint8Array,lx.x25519,s),t)}}throw Error("Unsupported ECDH algorithm")},decrypt:async function(e,t,r,n,i){if(e===r_.publicKey.x25519){const e=HM.scalarMult(i,t),o=i_.concatUint8Array([t,n,e]),{keySize:s}=tM(r_.symmetric.aes128);return qS(await ux(r_.hash.sha256,o,new Uint8Array,lx.x25519,s),r)}throw Error("Unsupported ECDH algorithm")}}),hx=Object.freeze({__proto__:null,CurveWithOID:kS,ecdh:ix,ecdhX:cx,ecdsa:zS,eddsaLegacy:HS,eddsa:YS,generate:async function(e){const t=await i_.getBigInteger();e=new kS(e);const r=await e.genKeyPair(),n=new t(r.publicKey).toUint8Array(),i=new t(r.privateKey).toUint8Array("be",e.payloadSize);return{oid:e.oid,Q:n,secret:i,hash:e.hash,cipher:e.cipher}},getPreferredHashAlgo:function(e){return xS[r_.write(r_.curve,e.toHex())].hash}}),dx=Object.freeze({__proto__:null,sign:async function(e,t,r,n,i,o){const s=await i_.getBigInteger(),a=new s(1);let u,l,c,h;n=new s(n),i=new s(i),r=new s(r),o=new s(o),r=r.mod(n),o=o.mod(i);const d=new s(t.subarray(0,i.byteLength())).mod(i);for(;;){if(u=await KM(a,i),l=r.modExp(u,n).imod(i),l.isZero())continue;const e=o.mul(l).imod(i);if(h=d.add(e).imod(i),c=u.modInv(i).imul(h).imod(i),!c.isZero())break}return{r:l.toUint8Array("be",i.byteLength()),s:c.toUint8Array("be",i.byteLength())}},verify:async function(e,t,r,n,i,o,s,a){const u=await i_.getBigInteger(),l=new u(0);if(t=new u(t),r=new u(r),o=new u(o),s=new u(s),i=new u(i),a=new u(a),t.lte(l)||t.gte(s)||r.lte(l)||r.gte(s))return i_.printDebug("invalid DSA Signature"),!1;const c=new u(n.subarray(0,s.byteLength())).imod(s),h=r.modInv(s);if(h.isZero())return i_.printDebug("invalid DSA Signature"),!1;i=i.mod(o),a=a.mod(o);const d=c.mul(h).imod(s),f=t.mul(h).imod(s),p=i.modExp(d,o),m=a.modExp(f,o);return p.mul(m).imod(o).imod(s).equal(t)},validateParams:async function(e,t,r,n,i){const o=await i_.getBigInteger();e=new o(e),t=new o(t),r=new o(r),n=new o(n);const s=new o(1);if(r.lte(s)||r.gte(e))return!1;if(!e.dec().mod(t).isZero())return!1;if(!r.modExp(t,e).isOne())return!1;const a=new o(t.bitLength()),u=new o(150);if(a.lt(u)||!(await VM(t,null,32)))return!1;i=new o(i);const l=new o(2),c=await KM(l.leftShift(a.dec()),l.leftShift(a)),h=t.mul(c).add(i);return!!n.equal(r.modExp(h,e))}}),fx={rsa:sS,elgamal:aS,elliptic:hx,dsa:dx,nacl:HM},px=Object.freeze({__proto__:null,parseSignatureParams:function(e,t){let r=0;switch(e){case r_.publicKey.rsaEncryptSign:case r_.publicKey.rsaEncrypt:case r_.publicKey.rsaSign:return{s:i_.readMPI(t.subarray(r))};case r_.publicKey.dsa:case r_.publicKey.ecdsa:{const e=i_.readMPI(t.subarray(r));return r+=e.length+2,{r:e,s:i_.readMPI(t.subarray(r))}}case r_.publicKey.eddsaLegacy:{let e=i_.readMPI(t.subarray(r));r+=e.length+2,e=i_.leftPad(e,32);let n=i_.readMPI(t.subarray(r));return n=i_.leftPad(n,32),{r:e,s:n}}case r_.publicKey.ed25519:{const e=t.subarray(r,r+64);return r+=e.length,{RS:e}}default:throw new bS("Unknown signature algorithm.")}},verify:async function(e,t,r,n,i,o){switch(e){case r_.publicKey.rsaEncryptSign:case r_.publicKey.rsaEncrypt:case r_.publicKey.rsaSign:{const{n:e,e:s}=n,a=i_.leftPad(r.s,e.length);return fx.rsa.verify(t,i,a,e,s,o)}case r_.publicKey.dsa:{const{g:e,p:i,q:s,y:a}=n,{r:u,s:l}=r;return fx.dsa.verify(t,u,l,o,e,i,s,a)}case r_.publicKey.ecdsa:{const{oid:e,Q:s}=n,a=new fx.elliptic.CurveWithOID(e).payloadSize,u=i_.leftPad(r.r,a),l=i_.leftPad(r.s,a);return fx.elliptic.ecdsa.verify(e,t,{r:u,s:l},i,s,o)}case r_.publicKey.eddsaLegacy:{const{oid:e,Q:s}=n;return fx.elliptic.eddsaLegacy.verify(e,t,r,i,s,o)}case r_.publicKey.ed25519:{const{A:s}=n;return fx.elliptic.eddsa.verify(e,t,r,i,s,o)}default:throw Error("Unknown signature algorithm.")}},sign:async function(e,t,r,n,i,o){if(!r||!n)throw Error("Missing key parameters");switch(e){case r_.publicKey.rsaEncryptSign:case r_.publicKey.rsaEncrypt:case r_.publicKey.rsaSign:{const{n:e,e:s}=r,{d:a,p:u,q:l,u:c}=n;return{s:await fx.rsa.sign(t,i,e,s,a,u,l,c,o)}}case r_.publicKey.dsa:{const{g:e,p:i,q:s}=r,{x:a}=n;return fx.dsa.sign(t,o,e,i,s,a)}case r_.publicKey.elgamal:throw Error("Signing with Elgamal is not defined in the OpenPGP standard.");case r_.publicKey.ecdsa:{const{oid:e,Q:s}=r,{d:a}=n;return fx.elliptic.ecdsa.sign(e,t,i,s,a,o)}case r_.publicKey.eddsaLegacy:{const{oid:e,Q:s}=r,{seed:a}=n;return fx.elliptic.eddsaLegacy.sign(e,t,i,s,a,o)}case r_.publicKey.ed25519:{const{A:s}=r,{seed:a}=n;return fx.elliptic.eddsa.sign(e,t,i,s,a,o)}default:throw Error("Unknown signature algorithm.")}}});class mx{constructor(e){e&&(this.data=e)}read(e){if(e.length>=1){const t=e[0];if(e.length>=1+t)return this.data=e.subarray(1,1+t),1+this.data.length}throw Error("Invalid symmetric key")}write(){return i_.concatUint8Array([new Uint8Array([this.data.length]),this.data])}}class gx{constructor(e){if(e){const{hash:t,cipher:r}=e;this.hash=t,this.cipher=r}else this.hash=null,this.cipher=null}read(e){if(e.length<4||3!==e[0]||1!==e[1])throw new bS("Cannot read KDFParams");return this.hash=e[2],this.cipher=e[3],4}write(){return new Uint8Array([3,1,this.hash,this.cipher])}}class yx{static fromObject({wrappedKey:e,algorithm:t}){const r=new yx;return r.wrappedKey=e,r.algorithm=t,r}read(e){let t=0,r=e[t++];this.algorithm=r%2?e[t++]:null,r-=r%2,this.wrappedKey=e.subarray(t,t+r),t+=r}write(){return i_.concatUint8Array([this.algorithm?new Uint8Array([this.wrappedKey.length+1,this.algorithm]):new Uint8Array([this.wrappedKey.length]),this.wrappedKey])}}function vx(e){try{e.getName()}catch(e){throw new bS("Unknown curve OID")}}var bx=Object.freeze({__proto__:null,publicKeyEncrypt:async function(e,t,r,n,i){switch(e){case r_.publicKey.rsaEncrypt:case r_.publicKey.rsaEncryptSign:{const{n:e,e:t}=r;return{c:await fx.rsa.encrypt(n,e,t)}}case r_.publicKey.elgamal:{const{p:e,g:t,y:i}=r;return fx.elgamal.encrypt(n,e,t,i)}case r_.publicKey.ecdh:{const{oid:e,Q:t,kdfParams:o}=r,{publicKey:s,wrappedKey:a}=await fx.elliptic.ecdh.encrypt(e,o,n,t,i);return{V:s,C:new mx(a)}}case r_.publicKey.x25519:{if(!i_.isAES(t))throw Error("X25519 keys can only encrypt AES session keys");const{A:i}=r,{ephemeralPublicKey:o,wrappedKey:s}=await fx.elliptic.ecdhX.encrypt(e,n,i);return{ephemeralPublicKey:o,C:yx.fromObject({algorithm:t,wrappedKey:s})}}default:return[]}},publicKeyDecrypt:async function(e,t,r,n,i,o){switch(e){case r_.publicKey.rsaEncryptSign:case r_.publicKey.rsaEncrypt:{const{c:e}=n,{n:i,e:s}=t,{d:a,p:u,q:l,u:c}=r;return fx.rsa.decrypt(e,i,s,a,u,l,c,o)}case r_.publicKey.elgamal:{const{c1:e,c2:i}=n,s=t.p,a=r.x;return fx.elgamal.decrypt(e,i,s,a,o)}case r_.publicKey.ecdh:{const{oid:e,Q:o,kdfParams:s}=t,{d:a}=r,{V:u,C:l}=n;return fx.elliptic.ecdh.decrypt(e,s,u,l.data,o,a,i)}case r_.publicKey.x25519:{const{A:i}=t,{k:o}=r,{ephemeralPublicKey:s,C:a}=n;if(!i_.isAES(a.algorithm))throw Error("AES session key expected");return fx.elliptic.ecdhX.decrypt(e,s,a.wrappedKey,i,o)}default:throw Error("Unknown public key encryption algorithm.")}},parsePublicKeyParams:function(e,t){let r=0;switch(e){case r_.publicKey.rsaEncrypt:case r_.publicKey.rsaEncryptSign:case r_.publicKey.rsaSign:{const e=i_.readMPI(t.subarray(r));r+=e.length+2;const n=i_.readMPI(t.subarray(r));return r+=n.length+2,{read:r,publicParams:{n:e,e:n}}}case r_.publicKey.dsa:{const e=i_.readMPI(t.subarray(r));r+=e.length+2;const n=i_.readMPI(t.subarray(r));r+=n.length+2;const i=i_.readMPI(t.subarray(r));r+=i.length+2;const o=i_.readMPI(t.subarray(r));return r+=o.length+2,{read:r,publicParams:{p:e,q:n,g:i,y:o}}}case r_.publicKey.elgamal:{const e=i_.readMPI(t.subarray(r));r+=e.length+2;const n=i_.readMPI(t.subarray(r));r+=n.length+2;const i=i_.readMPI(t.subarray(r));return r+=i.length+2,{read:r,publicParams:{p:e,g:n,y:i}}}case r_.publicKey.ecdsa:{const e=new uS;r+=e.read(t),vx(e);const n=i_.readMPI(t.subarray(r));return r+=n.length+2,{read:r,publicParams:{oid:e,Q:n}}}case r_.publicKey.eddsaLegacy:{const e=new uS;r+=e.read(t),vx(e);let n=i_.readMPI(t.subarray(r));return r+=n.length+2,n=i_.leftPad(n,33),{read:r,publicParams:{oid:e,Q:n}}}case r_.publicKey.ecdh:{const e=new uS;r+=e.read(t),vx(e);const n=i_.readMPI(t.subarray(r));r+=n.length+2;const i=new gx;return r+=i.read(t.subarray(r)),{read:r,publicParams:{oid:e,Q:n,kdfParams:i}}}case r_.publicKey.ed25519:case r_.publicKey.x25519:{const e=t.subarray(r,r+32);return r+=e.length,{read:r,publicParams:{A:e}}}default:throw new bS("Unknown public key encryption algorithm.")}},parsePrivateKeyParams:function(e,t,r){let n=0;switch(e){case r_.publicKey.rsaEncrypt:case r_.publicKey.rsaEncryptSign:case r_.publicKey.rsaSign:{const e=i_.readMPI(t.subarray(n));n+=e.length+2;const r=i_.readMPI(t.subarray(n));n+=r.length+2;const i=i_.readMPI(t.subarray(n));n+=i.length+2;const o=i_.readMPI(t.subarray(n));return n+=o.length+2,{read:n,privateParams:{d:e,p:r,q:i,u:o}}}case r_.publicKey.dsa:case r_.publicKey.elgamal:{const e=i_.readMPI(t.subarray(n));return n+=e.length+2,{read:n,privateParams:{x:e}}}case r_.publicKey.ecdsa:case r_.publicKey.ecdh:{const e=new kS(r.oid);let i=i_.readMPI(t.subarray(n));return n+=i.length+2,i=i_.leftPad(i,e.payloadSize),{read:n,privateParams:{d:i}}}case r_.publicKey.eddsaLegacy:{const e=new kS(r.oid);let i=i_.readMPI(t.subarray(n));return n+=i.length+2,i=i_.leftPad(i,e.payloadSize),{read:n,privateParams:{seed:i}}}case r_.publicKey.ed25519:{const e=t.subarray(n,n+32);return n+=e.length,{read:n,privateParams:{seed:e}}}case r_.publicKey.x25519:{const e=t.subarray(n,n+32);return n+=e.length,{read:n,privateParams:{k:e}}}default:throw new bS("Unknown public key encryption algorithm.")}},parseEncSessionKeyParams:function(e,t){let r=0;switch(e){case r_.publicKey.rsaEncrypt:case r_.publicKey.rsaEncryptSign:return{c:i_.readMPI(t.subarray(r))};case r_.publicKey.elgamal:{const e=i_.readMPI(t.subarray(r));return r+=e.length+2,{c1:e,c2:i_.readMPI(t.subarray(r))}}case r_.publicKey.ecdh:{const e=i_.readMPI(t.subarray(r));r+=e.length+2;const n=new mx;return n.read(t.subarray(r)),{V:e,C:n}}case r_.publicKey.x25519:{const e=t.subarray(r,r+32);r+=e.length;const n=new yx;return n.read(t.subarray(r)),{ephemeralPublicKey:e,C:n}}default:throw new bS("Unknown public key encryption algorithm.")}},serializeParams:function(e,t){const r=new Set([r_.publicKey.ed25519,r_.publicKey.x25519]),n=Object.keys(t).map((n=>{const i=t[n];return i_.isUint8Array(i)?r.has(e)?i:i_.uint8ArrayToMPI(i):i.write()}));return i_.concatUint8Array(n)},generateParams:function(e,t,r){switch(e){case r_.publicKey.rsaEncrypt:case r_.publicKey.rsaEncryptSign:case r_.publicKey.rsaSign:return fx.rsa.generate(t,65537).then((({n:e,e:t,d:r,p:n,q:i,u:o})=>({privateParams:{d:r,p:n,q:i,u:o},publicParams:{n:e,e:t}})));case r_.publicKey.ecdsa:return fx.elliptic.generate(r).then((({oid:e,Q:t,secret:r})=>({privateParams:{d:r},publicParams:{oid:new uS(e),Q:t}})));case r_.publicKey.eddsaLegacy:return fx.elliptic.generate(r).then((({oid:e,Q:t,secret:r})=>({privateParams:{seed:r},publicParams:{oid:new uS(e),Q:t}})));case r_.publicKey.ecdh:return fx.elliptic.generate(r).then((({oid:e,Q:t,secret:r,hash:n,cipher:i})=>({privateParams:{d:r},publicParams:{oid:new uS(e),Q:t,kdfParams:new gx({hash:n,cipher:i})}})));case r_.publicKey.ed25519:return fx.elliptic.eddsa.generate(e).then((({A:e,seed:t})=>({privateParams:{seed:t},publicParams:{A:e}})));case r_.publicKey.x25519:return fx.elliptic.ecdhX.generate(e).then((({A:e,k:t})=>({privateParams:{k:t},publicParams:{A:e}})));case r_.publicKey.dsa:case r_.publicKey.elgamal:throw Error("Unsupported algorithm for key generation.");default:throw Error("Unknown public key algorithm.")}},validateParams:async function(e,t,r){if(!t||!r)throw Error("Missing key parameters");switch(e){case r_.publicKey.rsaEncrypt:case r_.publicKey.rsaEncryptSign:case r_.publicKey.rsaSign:{const{n:e,e:n}=t,{d:i,p:o,q:s,u:a}=r;return fx.rsa.validateParams(e,n,i,o,s,a)}case r_.publicKey.dsa:{const{p:e,q:n,g:i,y:o}=t,{x:s}=r;return fx.dsa.validateParams(e,n,i,o,s)}case r_.publicKey.elgamal:{const{p:e,g:n,y:i}=t,{x:o}=r;return fx.elgamal.validateParams(e,n,i,o)}case r_.publicKey.ecdsa:case r_.publicKey.ecdh:{const n=fx.elliptic[r_.read(r_.publicKey,e)],{oid:i,Q:o}=t,{d:s}=r;return n.validateParams(i,o,s)}case r_.publicKey.eddsaLegacy:{const{Q:e,oid:n}=t,{seed:i}=r;return fx.elliptic.eddsaLegacy.validateParams(n,e,i)}case r_.publicKey.ed25519:{const{A:n}=t,{seed:i}=r;return fx.elliptic.eddsa.validateParams(e,n,i)}case r_.publicKey.x25519:{const{A:n}=t,{k:i}=r;return fx.elliptic.ecdhX.validateParams(e,n,i)}default:throw Error("Unknown public key algorithm.")}},getPrefixRandom:async function(e){const{blockSize:t}=tM(e),r=await YM(t),n=new Uint8Array([r[r.length-2],r[r.length-1]]);return i_.concat([r,n])},generateSessionKey:function(e){const{keySize:t}=tM(e);return YM(t)},getAEADMode:function(e){const t=r_.read(r_.aead,e);return zM[t]},getCipher:tM,getPreferredCurveHashAlgo:function(e,t){switch(e){case r_.publicKey.ecdsa:case r_.publicKey.eddsaLegacy:return fx.elliptic.getPreferredHashAlgo(t);case r_.publicKey.ed25519:return fx.elliptic.eddsa.getPreferredHashAlgo(e);default:throw Error("Unknown elliptic signing algo")}}});const wx={cipher:Z_,hash:XA,mode:zM,publicKey:fx,signature:px,random:qM,pkcs1:eS,pkcs5:ZS,aesKW:$S};Object.assign(wx,bx);var _x="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function Ex(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)}const Ax={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(let o=0;o=0;)e[t]=0}const Rx=256,Px=286,Dx=30,Lx=15,Ox=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],jx=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Bx=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Ux=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Fx=Array(576);Nx(Fx);const zx=Array(60);Nx(zx);const Hx=Array(512);Nx(Hx);const Gx=Array(256);Nx(Gx);const Yx=Array(29);Nx(Yx);const Kx=Array(Dx);function qx(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}let Wx,Vx,$x;function Qx(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function Jx(e){return e<256?Hx[e]:Hx[256+(e>>>7)]}function Zx(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function Xx(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<>>=1,r<<=1}while(--t>0);return r>>>1}function rk(e,t,r){const n=Array(16);let i,o,s=0;for(i=1;i<=Lx;i++)n[i]=s=s+r[i-1]<<1;for(o=0;o<=t;o++){const t=e[2*o+1];0!==t&&(e[2*o]=tk(n[t]++,t))}}function nk(e){let t;for(t=0;t8?Zx(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function ok(e,t,r,n){const i=2*t,o=2*r;return e[i]>1;s>=1;s--)sk(e,r,s);u=o;do{s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],sk(e,r,1),a=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=a,r[2*u]=r[2*s]+r[2*a],e.depth[u]=(e.depth[s]>=e.depth[a]?e.depth[s]:e.depth[a])+1,r[2*s+1]=r[2*a+1]=u,e.heap[1]=u++,sk(e,r,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){const r=t.dyn_tree,n=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,u=t.stat_desc.max_length;let l,c,h,d,f,p,m=0;for(d=0;d<=Lx;d++)e.bl_count[d]=0;for(r[2*e.heap[e.heap_max]+1]=0,l=e.heap_max+1;l<573;l++)c=e.heap[l],d=r[2*r[2*c+1]+1]+1,d>u&&(d=u,m++),r[2*c+1]=d,c>n||(e.bl_count[d]++,f=0,c>=a&&(f=s[c-a]),p=r[2*c],e.opt_len+=p*(d+f),o&&(e.static_len+=p*(i[2*c+1]+f)));if(0!==m){do{for(d=u-1;0===e.bl_count[d];)d--;e.bl_count[d]--,e.bl_count[d+1]+=2,e.bl_count[u]--,m-=2}while(m>0);for(d=u;0!==d;d--)for(c=e.bl_count[d];0!==c;)h=e.heap[--l],h>n||(r[2*h+1]!==d&&(e.opt_len+=(d-r[2*h+1])*r[2*h],r[2*h+1]=d),c--)}}(e,t),rk(r,l,e.bl_count)}function lk(e,t,r){let n,i,o=-1,s=t[1],a=0,u=7,l=4;for(0===s&&(u=138,l=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=s,s=t[2*(n+1)+1],++a>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(Gx[r]+Rx+1)]++,e.dyn_dtree[2*Jx(t)]++),e.last_lit===e.lit_bufsize-1}function pk(e,t,r,n){let i=65535&e|0,o=e>>>16&65535|0,s=0;for(;0!==r;){s=r>2e3?2e3:r,r-=s;do{i=i+t[n++]|0,o=o+i|0}while(--s);i%=65521,o%=65521}return i|o<<16|0}const mk=function(){let e;const t=[];for(let r=0;r<256;r++){e=r;for(let t=0;t<8;t++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();function gk(e,t,r,n){const i=mk,o=n+r;e^=-1;for(let s=n;s>>8^i[255&(e^t[s])];return-1^e}var yk={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};const vk=258,bk=262,wk=103,_k=113,Ek=666;function Ak(e,t){return e.msg=yk[t],t}function Mk(e){return(e<<1)-(e>4?9:0)}function Sk(e){let t=e.length;for(;--t>=0;)e[t]=0}function xk(e){const t=e.state;let r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(Cx(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function kk(e,t){(function(e,t,r,n){let i,o,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){let t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t=3&&0===e.bl_tree[2*Ux[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?dk(e,t,r,n):4===e.strategy||o===i?(Xx(e,2+(n?1:0),3),ak(e,Fx,zx)):(Xx(e,4+(n?1:0),3),function(e,t,r,n){let i;for(Xx(e,t-257,5),Xx(e,r-1,5),Xx(e,n-4,4),i=0;i=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,xk(e.strm)}function Tk(e,t){e.pending_buf[e.pending++]=t}function Ck(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function Ik(e,t,r,n){let i=e.avail_in;return i>n&&(i=n),0===i?0:(e.avail_in-=i,Cx(t,e.input,e.next_in,i,r),1===e.state.wrap?e.adler=pk(e.adler,t,i,r):2===e.state.wrap&&(e.adler=gk(e.adler,t,i,r)),e.next_in+=i,e.total_in+=i,i)}function Nk(e,t){let r,n,i=e.max_chain_length,o=e.strstart,s=e.prev_length,a=e.nice_match;const u=e.strstart>e.w_size-bk?e.strstart-(e.w_size-bk):0,l=e.window,c=e.w_mask,h=e.prev,d=e.strstart+vk;let f=l[o+s-1],p=l[o+s];e.prev_length>=e.good_match&&(i>>=2),a>e.lookahead&&(a=e.lookahead);do{if(r=t,l[r+s]===p&&l[r+s-1]===f&&l[r]===l[o]&&l[++r]===l[o+1]){o+=2,r++;do{}while(l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&l[++o]===l[++r]&&os){if(e.match_start=t,s=n,n>=a)break;f=l[o+s-1],p=l[o+s]}}}while((t=h[t&c])>u&&0!=--i);return s<=e.lookahead?s:e.lookahead}function Rk(e){const t=e.w_size;let r,n,i,o,s;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-bk)){Cx(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,n=e.hash_size,r=n;do{i=e.head[--r],e.head[r]=i>=t?i-t:0}while(--n);n=t,r=n;do{i=e.prev[--r],e.prev[r]=i>=t?i-t:0}while(--n);o+=t}if(0===e.strm.avail_in)break;if(n=Ik(e.strm,e.window,e.strstart+e.lookahead,o),e.lookahead+=n,e.lookahead+e.insert>=3)for(s=e.strstart-e.insert,e.ins_h=e.window[s],e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<=3)if(n=fk(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<=3&&(e.ins_h=(e.ins_h<4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-3,n=fk(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Rk(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;const n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,kk(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-bk&&(kk(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(kk(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(kk(e,!1),e.strm.avail_out),1)})),new Lk(4,4,8,4,Pk),new Lk(4,5,16,8,Pk),new Lk(4,6,32,32,Pk),new Lk(4,4,16,16,Dk),new Lk(8,16,32,32,Dk),new Lk(8,16,128,128,Dk),new Lk(8,32,128,256,Dk),new Lk(32,128,258,1024,Dk),new Lk(32,258,258,4096,Dk)];class jk{constructor(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new xx(1146),this.dyn_dtree=new xx(122),this.bl_tree=new xx(78),Sk(this.dyn_ltree),Sk(this.dyn_dtree),Sk(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new xx(16),this.heap=new xx(573),Sk(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new xx(573),Sk(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}}function Bk(e){const t=function(e){let t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:_k,e.adler=2===t.wrap?0:1,t.last_flush=0,function(e){hk||(function(){let e,t,r,n,i;const o=Array(16);for(r=0,n=0;n<28;n++)for(Yx[n]=r,e=0;e<1<>=7;n5||t<0)return e?Ak(e,Ix):Ix;if(n=e.state,!e.output||!e.input&&0!==e.avail_in||n.status===Ek&&4!==t)return Ak(e,0===e.avail_out?-5:Ix);if(n.strm=e,r=n.last_flush,n.last_flush=t,42===n.status)if(2===n.wrap)e.adler=0,Tk(n,31),Tk(n,139),Tk(n,8),n.gzhead?(Tk(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Tk(n,255&n.gzhead.time),Tk(n,n.gzhead.time>>8&255),Tk(n,n.gzhead.time>>16&255),Tk(n,n.gzhead.time>>24&255),Tk(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Tk(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Tk(n,255&n.gzhead.extra.length),Tk(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=gk(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(Tk(n,0),Tk(n,0),Tk(n,0),Tk(n,0),Tk(n,0),Tk(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Tk(n,3),n.status=_k);else{let t=8+(n.w_bits-8<<4)<<8,r=-1;r=n.strategy>=2||n.level<2?0:n.level<6?1:6===n.level?2:3,t|=r<<6,0!==n.strstart&&(t|=32),t+=31-t%31,n.status=_k,Ck(n,t),0!==n.strstart&&(Ck(n,e.adler>>>16),Ck(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=gk(e.adler,n.pending_buf,n.pending-i,i)),xk(e),i=n.pending,n.pending!==n.pending_buf_size));)Tk(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=gk(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=gk(e.adler,n.pending_buf,n.pending-i,i)),xk(e),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexi&&(e.adler=gk(e.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=gk(e.adler,n.pending_buf,n.pending-i,i)),xk(e),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindexi&&(e.adler=gk(e.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.status=wk)}else n.status=wk;if(n.status===wk&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&xk(e),n.pending+2<=n.pending_buf_size&&(Tk(n,255&e.adler),Tk(n,e.adler>>8&255),e.adler=0,n.status=_k)):n.status=_k),0!==n.pending){if(xk(e),0===e.avail_out)return n.last_flush=-1,0}else if(0===e.avail_in&&Mk(t)<=Mk(r)&&4!==t)return Ak(e,-5);if(n.status===Ek&&0!==e.avail_in)return Ak(e,-5);if(0!==e.avail_in||0!==n.lookahead||0!==t&&n.status!==Ek){var s=2===n.strategy?function(e,t){let r;for(;;){if(0===e.lookahead&&(Rk(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=fk(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(kk(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(kk(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(kk(e,!1),0===e.strm.avail_out)?1:2}(n,t):3===n.strategy?function(e,t){let r,n,i,o;const s=e.window;for(;;){if(e.lookahead<=vk){if(Rk(e),e.lookahead<=vk&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(i=e.strstart-1,n=s[i],n===s[++i]&&n===s[++i]&&n===s[++i])){o=e.strstart+vk;do{}while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=fk(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=fk(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(kk(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(kk(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(kk(e,!1),0===e.strm.avail_out)?1:2}(n,t):Ok[n.level].func(n,t);if(3!==s&&4!==s||(n.status=Ek),1===s||3===s)return 0===e.avail_out&&(n.last_flush=-1),0;if(2===s&&(1===t?function(e){Xx(e,2,3),ek(e,256,Fx),function(e){16===e.bi_valid?(Zx(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}(n):5!==t&&(dk(n,0,0,!1),3===t&&(Sk(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),xk(e),0===e.avail_out))return n.last_flush=-1,0}return 4!==t?0:n.wrap<=0?1:(2===n.wrap?(Tk(n,255&e.adler),Tk(n,e.adler>>8&255),Tk(n,e.adler>>16&255),Tk(n,e.adler>>24&255),Tk(n,255&e.total_in),Tk(n,e.total_in>>8&255),Tk(n,e.total_in>>16&255),Tk(n,e.total_in>>24&255)):(Ck(n,e.adler>>>16),Ck(n,65535&e.adler)),xk(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)}try{String.fromCharCode.call(null,0)}catch(fVe){}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(fVe){}const Fk=new Sx(256);for(let pVe=0;pVe<256;pVe++)Fk[pVe]=pVe>=252?6:pVe>=248?5:pVe>=240?4:pVe>=224?3:pVe>=192?2:1;function zk(e){let t,r,n,i,o=0;const s=e.length;for(n=0;n>>6,a[i++]=128|63&t):t<65536?(a[i++]=224|t>>>12,a[i++]=128|t>>>6&63,a[i++]=128|63&t):(a[i++]=240|t>>>18,a[i++]=128|t>>>12&63,a[i++]=128|t>>>6&63,a[i++]=128|63&t);return a}Fk[254]=Fk[254]=1;class Hk{constructor(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}}class Gk{constructor(e){this.options={level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,...e||{}};const t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Hk,this.strm.avail_out=0;var r,n,i=function(e,t,r,n,i,o){if(!e)return Ix;let s=1;if(-1===t&&(t=6),n<0?(s=0,n=-n):n>15&&(s=2,n-=16),i<1||i>9||8!==r||n<8||n>15||t<0||t>9||o<0||o>4)return Ak(e,Ix);8===n&&(n=9);const a=new jk;return e.state=a,a.strm=e,a.wrap=s,a.gzhead=null,a.w_bits=n,a.w_size=1<=r.w_size&&(0===o&&(Sk(r.head),r.strstart=0,r.block_start=0,r.insert=0),l=new Sx(r.w_size),Cx(l,t,c-r.w_size,r.w_size,0),t=l,c=r.w_size),s=e.avail_in,a=e.next_in,u=e.input,e.avail_in=c,e.next_in=0,e.input=t,Rk(r);r.lookahead>=3;){n=r.strstart,i=r.lookahead-2;do{r.ins_h=(r.ins_h<0||0===r.avail_out)&&1!==i);return 4===o?(i=function(e){let t;return e&&e.state?(t=e.state.status,42!==t&&69!==t&&73!==t&&91!==t&&t!==wk&&t!==_k&&t!==Ek?Ak(e,Ix):(e.state=null,t===_k?Ak(e,-3):0)):Ix}(this.strm),this.onEnd(i),this.ended=!0,0===i):2!==o||(this.onEnd(0),r.avail_out=0,!0)}onData(e){this.chunks.push(e)}onEnd(e){0===e&&(this.result=Tx(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg}}function Yk(e,t){let r,n,i,o,s,a,u,l,c,h;const d=e.state;r=e.next_in;const f=e.input,p=r+(e.avail_in-5);n=e.next_out;const m=e.output,g=n-(t-e.avail_out),y=n+(e.avail_out-257),v=d.dmax,b=d.wsize,w=d.whave,_=d.wnext,E=d.window;i=d.hold,o=d.bits;const A=d.lencode,M=d.distcode,S=(1<>>24,i>>>=a,o-=a,a=s>>>16&255,0===a)m[n++]=65535&s;else{if(!(16&a)){if(0==(64&a)){s=A[(65535&s)+(i&(1<>>=a,o-=a),o<15&&(i+=f[r++]<>>24,i>>>=a,o-=a,a=s>>>16&255,!(16&a)){if(0==(64&a)){s=M[(65535&s)+(i&(1<v){e.msg="invalid distance too far back",d.mode=30;break e}if(i>>>=a,o-=a,a=n-g,l>a){if(a=l-a,a>w&&d.sane){e.msg="invalid distance too far back",d.mode=30;break e}if(c=0,h=E,0===_){if(c+=b-a,a2;)m[n++]=h[c++],m[n++]=h[c++],m[n++]=h[c++],u-=3;u&&(m[n++]=h[c++],u>1&&(m[n++]=h[c++]))}else{c=n-l;do{m[n++]=m[c++],m[n++]=m[c++],m[n++]=m[c++],u-=3}while(u>2);u&&(m[n++]=m[c++],u>1&&(m[n++]=m[c++]))}break}}break}}while(r>3,r-=u,o-=u<<3,i&=(1<=1&&0===x[y];y--);if(v>y&&(v=y),0===y)return i[o++]=20971520,i[o++]=20971520,a.bits=1,0;for(g=1;g0&&(0===e||1!==y))return-1;for(k[1]=0,p=1;p852||2===e&&E>592)return 1;for(;;){T=p-w,s[m]f?(C=N[R+s[m]],I=M[S+s[m]]):(C=96,I=0),l=1<>w)+c]=T<<24|C<<16|I|0}while(0!==c);for(l=1<>=1;if(0!==l?(A&=l-1,A+=l):A=0,m++,0==--x[p]){if(p===y)break;p=t[r+s[m]]}if(p>v&&(A&P)!==h){for(0===w&&(w=v),d+=g,b=p-w,_=1<852||2===e&&E>592)return 1;h=A&P,i[h]=v<<24|b<<16|d-o|0}}return 0!==A&&(i[d+A]=p-w<<24|64<<16|0),a.bits=v,0}const Jk=12,Zk=30;function Xk(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}class eT{constructor(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new xx(320),this.work=new xx(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}}function tT(e,t){let r,n;return e?(n=new eT,e.state=n,n.window=null,r=function(e,t){let r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?Ix:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,function(e){let t;return e&&e.state?(t=e.state,t.wsize=0,t.whave=0,t.wnext=0,function(e){let t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new kx(852),t.distcode=t.distdyn=new kx(592),t.sane=1,t.back=-1,0):Ix}(e)):Ix}(e))):Ix}(e,t),0!==r&&(e.state=null),r):Ix}let rT,nT,iT=!0;function oT(e){if(iT){let t;for(rT=new kx(512),nT=new kx(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Qk(1,e.lens,0,288,rT,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Qk(2,e.lens,0,32,nT,0,e.work,{bits:5}),iT=!1}e.lencode=rT,e.lenbits=9,e.distcode=nT,e.distbits=5}function sT(e,t,r,n){let i;const o=e.state;return null===o.window&&(o.wsize=1<=o.wsize?(Cx(o.window,t,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>n&&(i=n),Cx(o.window,t,r-n,i,o.wnext),(n-=i)?(Cx(o.window,t,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave>>8&255,r.check=gk(r.check,k,2,0),l=0,c=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&l)<<8)+(l>>8))%31){e.msg="incorrect header check",r.mode=Zk;break}if(8!=(15&l)){e.msg="unknown compression method",r.mode=Zk;break}if(l>>>=4,c-=4,E=8+(15&l),0===r.wbits)r.wbits=E;else if(E>r.wbits){e.msg="invalid window size",r.mode=Zk;break}r.dmax=1<>8&1),512&r.flags&&(k[0]=255&l,k[1]=l>>>8&255,r.check=gk(r.check,k,2,0)),l=0,c=0,r.mode=3;case 3:for(;c<32;){if(0===a)break e;a--,l+=n[o++]<>>8&255,k[2]=l>>>16&255,k[3]=l>>>24&255,r.check=gk(r.check,k,4,0)),l=0,c=0,r.mode=4;case 4:for(;c<16;){if(0===a)break e;a--,l+=n[o++]<>8),512&r.flags&&(k[0]=255&l,k[1]=l>>>8&255,r.check=gk(r.check,k,2,0)),l=0,c=0,r.mode=5;case 5:if(1024&r.flags){for(;c<16;){if(0===a)break e;a--,l+=n[o++]<>>8&255,r.check=gk(r.check,k,2,0)),l=0,c=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(f=r.length,f>a&&(f=a),f&&(r.head&&(E=r.head.extra_len-r.length,r.head.extra||(r.head.extra=Array(r.head.extra_len)),Cx(r.head.extra,n,o,f,E)),512&r.flags&&(r.check=gk(r.check,n,f,o)),a-=f,o+=f,r.length-=f),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===a)break e;f=0;do{E=n[o+f++],r.head&&E&&r.length<65536&&(r.head.name+=String.fromCharCode(E))}while(E&&f>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=Jk;break;case 10:for(;c<32;){if(0===a)break e;a--,l+=n[o++]<>>=7&c,c-=7&c,r.mode=27;break}for(;c<3;){if(0===a)break e;a--,l+=n[o++]<>>=1,c-=1,3&l){case 0:r.mode=14;break;case 1:if(oT(r),r.mode=20,6===t){l>>>=2,c-=2;break e}break;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=Zk}l>>>=2,c-=2;break;case 14:for(l>>>=7&c,c-=7&c;c<32;){if(0===a)break e;a--,l+=n[o++]<>>16^65535)){e.msg="invalid stored block lengths",r.mode=Zk;break}if(r.length=65535&l,l=0,c=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(f=r.length,f){if(f>a&&(f=a),f>u&&(f=u),0===f)break e;Cx(i,n,o,f,s),a-=f,o+=f,u-=f,s+=f,r.length-=f;break}r.mode=Jk;break;case 17:for(;c<14;){if(0===a)break e;a--,l+=n[o++]<>>=5,c-=5,r.ndist=1+(31&l),l>>>=5,c-=5,r.ncode=4+(15&l),l>>>=4,c-=4,r.nlen>286||r.ndist>30){e.msg="too many length or distance symbols",r.mode=Zk;break}r.have=0,r.mode=18;case 18:for(;r.have>>=3,c-=3}for(;r.have<19;)r.lens[T[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,M={bits:r.lenbits},A=Qk(0,r.lens,0,19,r.lencode,0,r.work,M),r.lenbits=M.bits,A){e.msg="invalid code lengths set",r.mode=Zk;break}r.have=0,r.mode=19;case 19:for(;r.have>>24,y=x>>>16&255,v=65535&x,!(g<=c);){if(0===a)break e;a--,l+=n[o++]<>>=g,c-=g,r.lens[r.have++]=v;else{if(16===v){for(S=g+2;c>>=g,c-=g,0===r.have){e.msg="invalid bit length repeat",r.mode=Zk;break}E=r.lens[r.have-1],f=3+(3&l),l>>>=2,c-=2}else if(17===v){for(S=g+3;c>>=g,c-=g,E=0,f=3+(7&l),l>>>=3,c-=3}else{for(S=g+7;c>>=g,c-=g,E=0,f=11+(127&l),l>>>=7,c-=7}if(r.have+f>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=Zk;break}for(;f--;)r.lens[r.have++]=E}}if(r.mode===Zk)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=Zk;break}if(r.lenbits=9,M={bits:r.lenbits},A=Qk(1,r.lens,0,r.nlen,r.lencode,0,r.work,M),r.lenbits=M.bits,A){e.msg="invalid literal/lengths set",r.mode=Zk;break}if(r.distbits=6,r.distcode=r.distdyn,M={bits:r.distbits},A=Qk(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,M),r.distbits=M.bits,A){e.msg="invalid distances set",r.mode=Zk;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(a>=6&&u>=258){e.next_out=s,e.avail_out=u,e.next_in=o,e.avail_in=a,r.hold=l,r.bits=c,Yk(e,d),s=e.next_out,i=e.output,u=e.avail_out,o=e.next_in,n=e.input,a=e.avail_in,l=r.hold,c=r.bits,r.mode===Jk&&(r.back=-1);break}for(r.back=0;x=r.lencode[l&(1<>>24,y=x>>>16&255,v=65535&x,!(g<=c);){if(0===a)break e;a--,l+=n[o++]<>b)],g=x>>>24,y=x>>>16&255,v=65535&x,!(b+g<=c);){if(0===a)break e;a--,l+=n[o++]<>>=b,c-=b,r.back+=b}if(l>>>=g,c-=g,r.back+=g,r.length=v,0===y){r.mode=26;break}if(32&y){r.back=-1,r.mode=Jk;break}if(64&y){e.msg="invalid literal/length code",r.mode=Zk;break}r.extra=15&y,r.mode=22;case 22:if(r.extra){for(S=r.extra;c>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;x=r.distcode[l&(1<>>24,y=x>>>16&255,v=65535&x,!(g<=c);){if(0===a)break e;a--,l+=n[o++]<>b)],g=x>>>24,y=x>>>16&255,v=65535&x,!(b+g<=c);){if(0===a)break e;a--,l+=n[o++]<>>=b,c-=b,r.back+=b}if(l>>>=g,c-=g,r.back+=g,64&y){e.msg="invalid distance code",r.mode=Zk;break}r.offset=v,r.extra=15&y,r.mode=24;case 24:if(r.extra){for(S=r.extra;c>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=Zk;break}r.mode=25;case 25:if(0===u)break e;if(f=d-u,r.offset>f){if(f=r.offset-f,f>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=Zk;break}f>r.wnext?(f-=r.wnext,p=r.wsize-f):p=r.wnext-f,f>r.length&&(f=r.length),m=r.window}else m=i,p=s-r.offset,f=r.length;f>u&&(f=u),u-=f,r.length-=f;do{i[s++]=m[p++]}while(--f);0===r.length&&(r.mode=21);break;case 26:if(0===u)break e;i[s++]=r.length,u--,r.mode=21;break;case 27:if(r.wrap){for(;c<32;){if(0===a)break e;a--,l|=n[o++]<=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Hk,this.strm.avail_out=0;let r=tT(this.strm,t.windowBits);if(0!==r)throw Error(yk[r]);if(this.header=new lT,function(e,t){let r;e&&e.state&&(r=e.state,0==(2&r.wrap)||(r.head=t,t.done=!1))}(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=zk(t.dictionary):t.dictionary instanceof ArrayBuffer&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(r=uT(this.strm,t.dictionary),0!==r)))throw Error(yk[r])}push(e,t){const{strm:r,options:{chunkSize:n,dictionary:i}}=this;let o,s,a=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?4:0,"string"==typeof e?r.input=function(e){const t=new Sx(e.length);for(let r=0,n=t.length;r0||0===r.avail_out)&&1!==o);return 1===o&&(s=4),4===s?(o=function(e){if(!e||!e.state)return Ix;const t=e.state;return t.window&&(t.window=null),e.state=null,0}(this.strm),this.onEnd(o),this.ended=!0,0===o):2!==s||(this.onEnd(0),r.avail_out=0,!0)}onData(e){this.chunks.push(e)}onEnd(e){0===e&&(this.result=Tx(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg}}var hT=[0,1,3,7,15,31,63,127,255],dT=function(e){this.stream=e,this.bitOffset=0,this.curByte=0,this.hasByte=!1};dT.prototype._ensureByte=function(){this.hasByte||(this.curByte=this.stream.readByte(),this.hasByte=!0)},dT.prototype.read=function(e){for(var t=0;e>0;){this._ensureByte();var r=8-this.bitOffset;if(e>=r)t<<=r,t|=hT[r]&this.curByte,this.hasByte=!1,this.bitOffset=0,e-=r;else{t<<=e;var n=r-e;t|=(this.curByte&hT[e]<>n,this.bitOffset+=e,e=0}}return t},dT.prototype.seek=function(e){var t=e%8,r=(e-t)/8;this.bitOffset=t,this.stream.seek(r),this.hasByte=!1},dT.prototype.pi=function(){var e,t=new Uint8Array(6);for(e=0;e("00"+e.toString(16)).slice(-2))).join("")}(t)};var fT=dT,pT=function(){};pT.prototype.readByte=function(){throw Error("abstract method readByte() not implemented")},pT.prototype.read=function(e,t,r){for(var n=0;n>>0},this.updateCRC=function(t){e=e<<8^mT[255&(e>>>24^t)]},this.updateCRCRun=function(t,r){for(;r-- >0;)e=e<<8^mT[255&(e>>>24^t)]}}),vT=function(e,t){var r,n=e[t];for(r=t;r>0;r--)e[r]=e[r-1];return e[0]=n,n},bT=-2,wT=-3,_T=-4,ET=-5,AT=-6,MT=-7,ST={"-1":"Bad file checksum"};ST[bT]="Not bzip data",ST[wT]="Unexpected input EOF",ST[_T]="Unexpected output EOF",ST[ET]="Data error",ST[AT]="Out of memory",ST[MT]="Obsolete (pre 0.9.5) bzip format not supported.";var xT=function(e,t){var r=ST[e]||"unknown error";t&&(r+=": "+t);var n=new TypeError(r);throw n.errorCode=e,n},kT=function(e,t){this.writePos=this.writeCurrent=this.writeCount=0,this._start_bunzip(e,t)};kT.prototype._init_block=function(){return this._get_next_block()?(this.blockCRC=new yT,!0):(this.writeCount=-1,!1)},kT.prototype._start_bunzip=function(e,t){var r=new Uint8Array(4);4===e.read(r,0,4)&&"BZh"===String.fromCharCode(r[0],r[1],r[2])||xT(bT,"bad magic");var n=r[3]-48;(n<1||n>9)&&xT(bT,"level out of range"),this.reader=new fT(e),this.dbufSize=1e5*n,this.nextoutput=0,this.outputStream=t,this.streamCRC=0},kT.prototype._get_next_block=function(){var e,t,r,n=this.reader,i=n.pi();if("177245385090"===i)return!1;"314159265359"!==i&&xT(bT),this.targetBlockCRC=n.read(32)>>>0,this.streamCRC=(this.targetBlockCRC^(this.streamCRC<<1|this.streamCRC>>>31))>>>0,n.read(1)&&xT(MT);var o=n.read(24);o>this.dbufSize&&xT(ET,"initial position out of bounds");var s=n.read(16),a=new Uint8Array(256),u=0;for(e=0;e<16;e++)if(s&1<<15-e){var l=16*e;for(r=n.read(16),t=0;t<16;t++)r&1<<15-t&&(a[u++]=l+t)}var c=n.read(3);(c<2||c>6)&&xT(ET);var h=n.read(15);0===h&&xT(ET);var d=new Uint8Array(256);for(e=0;e=c&&xT(ET);f[e]=vT(d,t)}var p,m=u+2,g=[];for(t=0;t20)&&xT(ET),n.read(1);)n.read(1)?s--:s++;b[e]=s}for(y=v=b[0],e=1;ev?v=b[e]:b[e]=h&&xT(ET),p=g[f[x++]]),e=p.minLen,t=n.read(e);e>p.maxLen&&xT(ET),!(t<=p.limit[e]);e++)t=t<<1|n.read(1);((t-=p.base[e])<0||t>=258)&&xT(ET);var T=p.permute[t];if(0!==T&&1!==T){if(M)for(M=0,S+s>this.dbufSize&&xT(ET),E[A=a[d[0]]]+=s;s--;)k[S++]=A;if(T>u)break;S>=this.dbufSize&&xT(ET),E[A=a[A=vT(d,e=T-1)]]++,k[S++]=A}else M||(M=1,s=0),s+=0===T?M:2*M,M<<=1}for((o<0||o>=S)&&xT(ET),t=0,e=0;e<256;e++)r=t+E[e],E[e]=t,t=r;for(e=0;e>=8,N=-1),this.writePos=C,this.writeCurrent=I,this.writeCount=S,this.writeRun=N,!0},kT.prototype._read_bunzip=function(e,t){var r,n,i;if(this.writeCount<0)return 0;var o=this.dbuf,s=this.writePos,a=this.writeCurrent,u=this.writeCount;this.outputsize;for(var l=this.writeRun;u;){for(u--,n=a,a=255&(s=o[s]),s>>=8,3==l++?(r=a,i=n,a=-1):(r=1,i=a),this.blockCRC.updateCRCRun(i,r);r--;)this.outputStream.writeByte(i),this.nextoutput++;a!=n&&(l=0)}return this.writeCount=u,this.blockCRC.getCRC()!==this.targetBlockCRC&&xT(ET,"Bad block CRC (got "+this.blockCRC.getCRC().toString(16)+" expected "+this.targetBlockCRC.toString(16)+")"),this.nextoutput};var TT=function(e,t,r){for(var n=function(e){if("readByte"in e)return e;var t=new gT;return t.pos=0,t.readByte=function(){return e[this.pos++]},t.seek=function(e){this.pos=e},t.eof=function(){return this.pos>=e.length},t}(e),i=function(e){var t=new gT,r=!0;if(e)if("number"==typeof e)t.buffer=new Uint8Array(e),r=!1;else{if("writeByte"in e)return e;t.buffer=e,r=!1}else t.buffer=new Uint8Array(16384);return t.pos=0,t.writeByte=function(e){if(r&&this.pos>=this.buffer.length){var t=new Uint8Array(2*this.buffer.length);t.set(this.buffer),this.buffer=t}this.buffer[this.pos++]=e},t.getBuffer=function(){if(this.pos!==this.buffer.length){if(!r)throw new TypeError("outputsize does not match decoded input");var e=new Uint8Array(this.pos);e.set(this.buffer.subarray(0,this.pos)),this.buffer=e}return this.buffer},t._coerced=!0,t}(t),o=new kT(n,i);!("eof"in n)||!n.eof();)if(o._init_block())o._read_bunzip();else{var s=o.reader.read(32)>>>0;if(s!==o.streamCRC&&xT(ET,"Bad stream CRC (got "+o.streamCRC.toString(16)+" expected "+s.toString(16)+")"),!r||!("eof"in n)||n.eof())break;o._start_bunzip(n,i)}if("getBuffer"in i)return i.getBuffer()};class CT{static get tag(){return r_.packet.literalData}constructor(e=new Date){this.format=r_.literal.utf8,this.date=i_.normalizeDate(e),this.text=null,this.data=null,this.filename=""}setText(e,t=r_.literal.utf8){this.format=t,this.text=e,this.data=null}getText(e=!1){return(null===this.text||i_.isStream(this.text))&&(this.text=i_.decodeUTF8(i_.nativeEOL(this.getBytes(e)))),this.text}setBytes(e,t){this.format=t,this.data=e,this.text=null}getBytes(e=!1){return null===this.data&&(this.data=i_.canonicalizeEOL(i_.encodeUTF8(this.text))),e?Vw(this.data):this.data}setFilename(e){this.filename=e}getFilename(){return this.filename}async read(e){await qw(e,(async e=>{const t=await e.readByte(),r=await e.readByte();this.filename=i_.decodeUTF8(await e.readBytes(r)),this.date=i_.readDate(await e.readBytes(4));let n=e.remainder();mw(n)&&(n=await Jw(n)),this.setBytes(n,t)}))}writeHeader(){const e=i_.encodeUTF8(this.filename),t=new Uint8Array([e.length]),r=new Uint8Array([this.format]),n=i_.writeDate(this.date);return i_.concatUint8Array([r,t,e,n])}write(){const e=this.writeHeader(),t=this.getBytes();return i_.concat([e,t])}}const IT=Symbol("verified"),NT=new Set([r_.signatureSubpacket.issuer,r_.signatureSubpacket.issuerFingerprint,r_.signatureSubpacket.embeddedSignature]);class RT{static get tag(){return r_.packet.signature}constructor(){this.version=null,this.signatureType=null,this.hashAlgorithm=null,this.publicKeyAlgorithm=null,this.signatureData=null,this.unhashedSubpackets=[],this.signedHashValue=null,this.created=null,this.signatureExpirationTime=null,this.signatureNeverExpires=!0,this.exportable=null,this.trustLevel=null,this.trustAmount=null,this.regularExpression=null,this.revocable=null,this.keyExpirationTime=null,this.keyNeverExpires=null,this.preferredSymmetricAlgorithms=null,this.revocationKeyClass=null,this.revocationKeyAlgorithm=null,this.revocationKeyFingerprint=null,this.issuerKeyID=new E_,this.rawNotations=[],this.notations={},this.preferredHashAlgorithms=null,this.preferredCompressionAlgorithms=null,this.keyServerPreferences=null,this.preferredKeyServer=null,this.isPrimaryUserID=null,this.policyURI=null,this.keyFlags=null,this.signersUserID=null,this.reasonForRevocationFlag=null,this.reasonForRevocationString=null,this.features=null,this.signatureTargetPublicKeyAlgorithm=null,this.signatureTargetHashAlgorithm=null,this.signatureTargetHash=null,this.embeddedSignature=null,this.issuerKeyVersion=null,this.issuerFingerprint=null,this.preferredAEADAlgorithms=null,this.revoked=null,this[IT]=null}read(e){let t=0;if(this.version=e[t++],4!==this.version&&5!==this.version)throw new bS(`Version ${this.version} of the signature packet is unsupported.`);if(this.signatureType=e[t++],this.publicKeyAlgorithm=e[t++],this.hashAlgorithm=e[t++],t+=this.readSubPackets(e.subarray(t,e.length),!0),!this.created)throw Error("Missing signature creation time subpacket.");this.signatureData=e.subarray(0,t),t+=this.readSubPackets(e.subarray(t,e.length),!1),this.signedHashValue=e.subarray(t,t+2),t+=2,this.params=wx.signature.parseSignatureParams(this.publicKeyAlgorithm,e.subarray(t,e.length))}writeParams(){return this.params instanceof Promise?Xw((async()=>wx.serializeParams(this.publicKeyAlgorithm,await this.params))):wx.serializeParams(this.publicKeyAlgorithm,this.params)}write(){const e=[];return e.push(this.signatureData),e.push(this.writeUnhashedSubPackets()),e.push(this.signedHashValue),e.push(this.writeParams()),i_.concat(e)}async sign(e,t,r=new Date,n=!1){5===e.version?this.version=5:this.version=4;const i=[new Uint8Array([this.version,this.signatureType,this.publicKeyAlgorithm,this.hashAlgorithm])];this.created=i_.normalizeDate(r),this.issuerKeyVersion=e.version,this.issuerFingerprint=e.getFingerprintBytes(),this.issuerKeyID=e.getKeyID(),i.push(this.writeHashedSubPackets()),this.unhashedSubpackets=[],this.signatureData=i_.concat(i);const o=this.toHash(this.signatureType,t,n),s=await this.hash(this.signatureType,t,o,n);this.signedHashValue=Qw(Ww(s),0,2);const a=async()=>wx.signature.sign(this.publicKeyAlgorithm,this.hashAlgorithm,e.publicParams,e.privateParams,o,await Jw(s));i_.isStream(s)?this.params=a():(this.params=await a(),this[IT]=!0)}writeHashedSubPackets(){const e=r_.signatureSubpacket,t=[];let r;if(null===this.created)throw Error("Missing signature creation time");t.push(PT(e.signatureCreationTime,!0,i_.writeDate(this.created))),null!==this.signatureExpirationTime&&t.push(PT(e.signatureExpirationTime,!0,i_.writeNumber(this.signatureExpirationTime,4))),null!==this.exportable&&t.push(PT(e.exportableCertification,!0,new Uint8Array([this.exportable?1:0]))),null!==this.trustLevel&&(r=new Uint8Array([this.trustLevel,this.trustAmount]),t.push(PT(e.trustSignature,!0,r))),null!==this.regularExpression&&t.push(PT(e.regularExpression,!0,this.regularExpression)),null!==this.revocable&&t.push(PT(e.revocable,!0,new Uint8Array([this.revocable?1:0]))),null!==this.keyExpirationTime&&t.push(PT(e.keyExpirationTime,!0,i_.writeNumber(this.keyExpirationTime,4))),null!==this.preferredSymmetricAlgorithms&&(r=i_.stringToUint8Array(i_.uint8ArrayToString(this.preferredSymmetricAlgorithms)),t.push(PT(e.preferredSymmetricAlgorithms,!1,r))),null!==this.revocationKeyClass&&(r=new Uint8Array([this.revocationKeyClass,this.revocationKeyAlgorithm]),r=i_.concat([r,this.revocationKeyFingerprint]),t.push(PT(e.revocationKey,!1,r))),this.issuerKeyID.isNull()||5===this.issuerKeyVersion||t.push(PT(e.issuer,!0,this.issuerKeyID.write())),this.rawNotations.forEach((({name:n,value:i,humanReadable:o,critical:s})=>{r=[new Uint8Array([o?128:0,0,0,0])];const a=i_.encodeUTF8(n);r.push(i_.writeNumber(a.length,2)),r.push(i_.writeNumber(i.length,2)),r.push(a),r.push(i),r=i_.concat(r),t.push(PT(e.notationData,s,r))})),null!==this.preferredHashAlgorithms&&(r=i_.stringToUint8Array(i_.uint8ArrayToString(this.preferredHashAlgorithms)),t.push(PT(e.preferredHashAlgorithms,!1,r))),null!==this.preferredCompressionAlgorithms&&(r=i_.stringToUint8Array(i_.uint8ArrayToString(this.preferredCompressionAlgorithms)),t.push(PT(e.preferredCompressionAlgorithms,!1,r))),null!==this.keyServerPreferences&&(r=i_.stringToUint8Array(i_.uint8ArrayToString(this.keyServerPreferences)),t.push(PT(e.keyServerPreferences,!1,r))),null!==this.preferredKeyServer&&t.push(PT(e.preferredKeyServer,!1,i_.encodeUTF8(this.preferredKeyServer))),null!==this.isPrimaryUserID&&t.push(PT(e.primaryUserID,!1,new Uint8Array([this.isPrimaryUserID?1:0]))),null!==this.policyURI&&t.push(PT(e.policyURI,!1,i_.encodeUTF8(this.policyURI))),null!==this.keyFlags&&(r=i_.stringToUint8Array(i_.uint8ArrayToString(this.keyFlags)),t.push(PT(e.keyFlags,!0,r))),null!==this.signersUserID&&t.push(PT(e.signersUserID,!1,i_.encodeUTF8(this.signersUserID))),null!==this.reasonForRevocationFlag&&(r=i_.stringToUint8Array(String.fromCharCode(this.reasonForRevocationFlag)+this.reasonForRevocationString),t.push(PT(e.reasonForRevocation,!0,r))),null!==this.features&&(r=i_.stringToUint8Array(i_.uint8ArrayToString(this.features)),t.push(PT(e.features,!1,r))),null!==this.signatureTargetPublicKeyAlgorithm&&(r=[new Uint8Array([this.signatureTargetPublicKeyAlgorithm,this.signatureTargetHashAlgorithm])],r.push(i_.stringToUint8Array(this.signatureTargetHash)),r=i_.concat(r),t.push(PT(e.signatureTarget,!0,r))),null!==this.embeddedSignature&&t.push(PT(e.embeddedSignature,!0,this.embeddedSignature.write())),null!==this.issuerFingerprint&&(r=[new Uint8Array([this.issuerKeyVersion]),this.issuerFingerprint],r=i_.concat(r),t.push(PT(e.issuerFingerprint,5===this.version,r))),null!==this.preferredAEADAlgorithms&&(r=i_.stringToUint8Array(i_.uint8ArrayToString(this.preferredAEADAlgorithms)),t.push(PT(e.preferredAEADAlgorithms,!1,r)));const n=i_.concat(t),i=i_.writeNumber(n.length,2);return i_.concat([i,n])}writeUnhashedSubPackets(){const e=[];this.unhashedSubpackets.forEach((t=>{e.push(fS(t.length)),e.push(t)}));const t=i_.concat(e),r=i_.writeNumber(t.length,2);return i_.concat([r,t])}readSubPacket(e,t=!0){let r=0;const n=!!(128&e[r]),i=127&e[r];if(t||(this.unhashedSubpackets.push(e.subarray(r,e.length)),NT.has(i)))switch(r++,i){case r_.signatureSubpacket.signatureCreationTime:this.created=i_.readDate(e.subarray(r,e.length));break;case r_.signatureSubpacket.signatureExpirationTime:{const t=i_.readNumber(e.subarray(r,e.length));this.signatureNeverExpires=0===t,this.signatureExpirationTime=t;break}case r_.signatureSubpacket.exportableCertification:this.exportable=1===e[r++];break;case r_.signatureSubpacket.trustSignature:this.trustLevel=e[r++],this.trustAmount=e[r++];break;case r_.signatureSubpacket.regularExpression:this.regularExpression=e[r];break;case r_.signatureSubpacket.revocable:this.revocable=1===e[r++];break;case r_.signatureSubpacket.keyExpirationTime:{const t=i_.readNumber(e.subarray(r,e.length));this.keyExpirationTime=t,this.keyNeverExpires=0===t;break}case r_.signatureSubpacket.preferredSymmetricAlgorithms:this.preferredSymmetricAlgorithms=[...e.subarray(r,e.length)];break;case r_.signatureSubpacket.revocationKey:this.revocationKeyClass=e[r++],this.revocationKeyAlgorithm=e[r++],this.revocationKeyFingerprint=e.subarray(r,r+20);break;case r_.signatureSubpacket.issuer:this.issuerKeyID.read(e.subarray(r,e.length));break;case r_.signatureSubpacket.notationData:{const t=!!(128&e[r]);r+=4;const i=i_.readNumber(e.subarray(r,r+2));r+=2;const o=i_.readNumber(e.subarray(r,r+2));r+=2;const s=i_.decodeUTF8(e.subarray(r,r+i)),a=e.subarray(r+i,r+i+o);this.rawNotations.push({name:s,humanReadable:t,value:a,critical:n}),t&&(this.notations[s]=i_.decodeUTF8(a));break}case r_.signatureSubpacket.preferredHashAlgorithms:this.preferredHashAlgorithms=[...e.subarray(r,e.length)];break;case r_.signatureSubpacket.preferredCompressionAlgorithms:this.preferredCompressionAlgorithms=[...e.subarray(r,e.length)];break;case r_.signatureSubpacket.keyServerPreferences:this.keyServerPreferences=[...e.subarray(r,e.length)];break;case r_.signatureSubpacket.preferredKeyServer:this.preferredKeyServer=i_.decodeUTF8(e.subarray(r,e.length));break;case r_.signatureSubpacket.primaryUserID:this.isPrimaryUserID=0!==e[r++];break;case r_.signatureSubpacket.policyURI:this.policyURI=i_.decodeUTF8(e.subarray(r,e.length));break;case r_.signatureSubpacket.keyFlags:this.keyFlags=[...e.subarray(r,e.length)];break;case r_.signatureSubpacket.signersUserID:this.signersUserID=i_.decodeUTF8(e.subarray(r,e.length));break;case r_.signatureSubpacket.reasonForRevocation:this.reasonForRevocationFlag=e[r++],this.reasonForRevocationString=i_.decodeUTF8(e.subarray(r,e.length));break;case r_.signatureSubpacket.features:this.features=[...e.subarray(r,e.length)];break;case r_.signatureSubpacket.signatureTarget:{this.signatureTargetPublicKeyAlgorithm=e[r++],this.signatureTargetHashAlgorithm=e[r++];const t=wx.getHashByteLength(this.signatureTargetHashAlgorithm);this.signatureTargetHash=i_.uint8ArrayToString(e.subarray(r,r+t));break}case r_.signatureSubpacket.embeddedSignature:this.embeddedSignature=new RT,this.embeddedSignature.read(e.subarray(r,e.length));break;case r_.signatureSubpacket.issuerFingerprint:this.issuerKeyVersion=e[r++],this.issuerFingerprint=e.subarray(r,e.length),5===this.issuerKeyVersion?this.issuerKeyID.read(this.issuerFingerprint):this.issuerKeyID.read(this.issuerFingerprint.subarray(-8));break;case r_.signatureSubpacket.preferredAEADAlgorithms:this.preferredAEADAlgorithms=[...e.subarray(r,e.length)];break;default:{const e=Error("Unknown signature subpacket type "+i);if(n)throw e;i_.printDebug(e)}}}readSubPackets(e,t=!0,r){const n=i_.readNumber(e.subarray(0,2));let i=2;for(;i<2+n;){const n=dS(e.subarray(i,e.length));i+=n.offset,this.readSubPacket(e.subarray(i,i+n.len),t,r),i+=n.len}return i}toSign(e,t){const r=r_.signature;switch(e){case r.binary:return null!==t.text?i_.encodeUTF8(t.getText(!0)):t.getBytes(!0);case r.text:{const e=t.getBytes(!0);return i_.canonicalizeEOL(e)}case r.standalone:return new Uint8Array(0);case r.certGeneric:case r.certPersona:case r.certCasual:case r.certPositive:case r.certRevocation:{let e,n;if(t.userID)n=180,e=t.userID;else{if(!t.userAttribute)throw Error("Either a userID or userAttribute packet needs to be supplied for certification.");n=209,e=t.userAttribute}const i=e.write();return i_.concat([this.toSign(r.key,t),new Uint8Array([n]),i_.writeNumber(i.length,4),i])}case r.subkeyBinding:case r.subkeyRevocation:case r.keyBinding:return i_.concat([this.toSign(r.key,t),this.toSign(r.key,{key:t.bind})]);case r.key:if(void 0===t.key)throw Error("Key packet is required for this signature.");return t.key.writeForHash(this.version);case r.keyRevocation:return this.toSign(r.key,t);case r.timestamp:return new Uint8Array(0);case r.thirdParty:throw Error("Not implemented");default:throw Error("Unknown signature type.")}}calculateTrailer(e,t){let r=0;return Yw(Ww(this.signatureData),(e=>{r+=e.length}),(()=>{const n=[];return 5!==this.version||this.signatureType!==r_.signature.binary&&this.signatureType!==r_.signature.text||(t?n.push(new Uint8Array(6)):n.push(e.writeHeader())),n.push(new Uint8Array([this.version,255])),5===this.version&&n.push(new Uint8Array(4)),n.push(i_.writeNumber(r,4)),i_.concat(n)}))}toHash(e,t,r=!1){const n=this.toSign(e,t);return i_.concat([n,this.signatureData,this.calculateTrailer(t,r)])}async hash(e,t,r,n=!1){return r||(r=this.toHash(e,t,n)),wx.hash.digest(this.hashAlgorithm,r)}async verify(e,t,r,n=new Date,i=!1,o=d_){if(!this.issuerKeyID.equals(e.getKeyID()))throw Error("Signature was not issued by the given public key");if(this.publicKeyAlgorithm!==e.algorithm)throw Error("Public key algorithm used to sign signature does not match issuer key algorithm.");const s=t===r_.signature.binary||t===r_.signature.text;if(!this[IT]||s){let n,o;if(this.hashed?o=await this.hashed:(n=this.toHash(t,r,i),o=await this.hash(t,r,n)),o=await Jw(o),this.signedHashValue[0]!==o[0]||this.signedHashValue[1]!==o[1])throw Error("Signed digest did not match");if(this.params=await this.params,this[IT]=await wx.signature.verify(this.publicKeyAlgorithm,this.hashAlgorithm,this.params,e.publicParams,n,o),!this[IT])throw Error("Signature verification failed")}const a=i_.normalizeDate(n);if(a&&this.created>a)throw Error("Signature creation time is in the future");if(a&&a>=this.getExpirationTime())throw Error("Signature is expired");if(o.rejectHashAlgorithms.has(this.hashAlgorithm))throw Error("Insecure hash algorithm: "+r_.read(r_.hash,this.hashAlgorithm).toUpperCase());if(o.rejectMessageHashAlgorithms.has(this.hashAlgorithm)&&[r_.signature.binary,r_.signature.text].includes(this.signatureType))throw Error("Insecure message hash algorithm: "+r_.read(r_.hash,this.hashAlgorithm).toUpperCase());if(this.rawNotations.forEach((({name:e,critical:t})=>{if(t&&o.knownNotations.indexOf(e)<0)throw Error("Unknown critical notation: "+e)})),null!==this.revocationKeyClass)throw Error("This key is intended to be revoked with an authorized key, which OpenPGP.js does not support.")}isExpired(e=new Date){const t=i_.normalizeDate(e);return null!==t&&!(this.created<=t&&tRT.prototype.calculateTrailer.apply(await this.correspondingSig,e)))}async verify(){const e=await this.correspondingSig;if(!e||e.constructor.tag!==r_.packet.signature)throw Error("Corresponding signature packet missing");if(e.signatureType!==this.signatureType||e.hashAlgorithm!==this.hashAlgorithm||e.publicKeyAlgorithm!==this.publicKeyAlgorithm||!e.issuerKeyID.equals(this.issuerKeyID))throw Error("Corresponding signature packet does not match one-pass signature packet");return e.hashed=this.hashed,e.verify.apply(e,arguments)}}function LT(e,t){if(!t[e]){let r;try{r=r_.read(r_.packet,e)}catch(t){throw new bS("Unknown packet type with tag: "+e)}throw Error("Packet not allowed in this context: "+r)}return new t[e]}DT.prototype.hash=RT.prototype.hash,DT.prototype.toHash=RT.prototype.toHash,DT.prototype.toSign=RT.prototype.toSign;class OT extends Array{static async fromBinary(e,t,r=d_){const n=new OT;return await n.read(e,t,r),n}async read(e,t,r=d_){r.additionalAllowedPackets.length&&(t={...t,...i_.constructAllowedPackets(r.additionalAllowedPackets)}),this.stream=Kw(e,(async(e,n)=>{const i=Fw(n);try{for(;;)if(await i.ready,await vS(e,(async e=>{try{if(e.tag===r_.packet.marker||e.tag===r_.packet.trust)return;const n=LT(e.tag,t);n.packets=new OT,n.fromStream=i_.isStream(e.packet),await n.read(e.packet,r),await i.write(n)}catch(t){const o=!r.ignoreUnsupportedPackets&&t instanceof bS,s=!(r.ignoreMalformedPackets||t instanceof bS);if(o||s||yS(e.tag))await i.abort(t);else{const t=new wS(e.tag,e.packet);await i.write(t)}i_.printDebugError(t)}})))return await i.ready,void(await i.close())}catch(e){await i.abort(e)}}));const n=Uw(this.stream);for(;;){const{done:e,value:t}=await n.read();if(e?this.stream=null:this.push(t),e||yS(t.constructor.tag))break}n.releaseLock()}write(){const e=[];for(let t=0;t{if(t.push(e),i+=e.length,i>=o){const e=Math.min(Math.log(i)/Math.LN2|0,30),r=2**e,n=i_.concat([pS(e)].concat(t));return t=[n.subarray(1+r)],i=t[0].length,n.subarray(0,1+r)}}),(()=>i_.concat([fS(i)].concat(t)))))}else{if(i_.isStream(n)){let t=0;e.push(Yw(Ww(n),(e=>{t+=e.length}),(()=>gS(r,t))))}else e.push(gS(r,n.length));e.push(n)}}return i_.concat(e)}filterByTag(...e){const t=new OT,r=e=>t=>e===t;for(let n=0;nt.constructor.tag===e))}indexOfTag(...e){const t=[],r=this,n=e=>t=>e===t;for(let i=0;i{this.algorithm=await e.readByte(),this.compressed=e.remainder(),await this.decompress(t)}))}write(){return null===this.compressed&&this.compress(),i_.concat([new Uint8Array([this.algorithm]),this.compressed])}async decompress(e=d_){const t=r_.read(r_.compression,this.algorithm),r=KT[t];if(!r)throw Error(t+" decompression not supported");this.packets=await OT.fromBinary(r(this.compressed),jT,e)}compress(){const e=r_.read(r_.compression,this.algorithm),t=YT[e];if(!t)throw Error(e+" compression not supported");this.compressed=t(this.packets.write(),this.deflateLevel)}}const UT=i_.getNodeZlib();function FT(e){return e}function zT(e,t,r={}){return function(n){return!i_.isStream(n)||mw(n)?Xw((()=>Jw(n).then((t=>new Promise(((n,i)=>{e(t,r,((e,t)=>{if(e)return i(e);n(t)}))})))))):Mw(Sw(n).pipe(t(r)))}}function HT(e,t={}){return function(r){const n=new e(t);return Yw(r,(e=>{if(e.length)return n.push(e,2),n.result}),(()=>{if(e===Gk)return n.push([],4),n.result}))}}function GT(e){return function(t){return Xw((async()=>e(await Jw(t))))}}const YT=UT?{zip:(e,t)=>zT(UT.deflateRaw,UT.createDeflateRaw,{level:t})(e),zlib:(e,t)=>zT(UT.deflate,UT.createDeflate,{level:t})(e)}:{zip:(e,t)=>HT(Gk,{raw:!0,level:t})(e),zlib:(e,t)=>HT(Gk,{level:t})(e)},KT=UT?{uncompressed:FT,zip:zT(UT.inflateRaw,UT.createInflateRaw),zlib:zT(UT.inflate,UT.createInflate),bzip2:GT(TT)}:{uncompressed:FT,zip:HT(cT,{raw:!0}),zlib:HT(cT),bzip2:GT(TT)},qT=i_.constructAllowedPackets([CT,BT,DT,RT]);class WT{static get tag(){return r_.packet.symEncryptedIntegrityProtectedData}constructor(){this.version=1,this.encrypted=null,this.packets=null}async read(e){await qw(e,(async e=>{const t=await e.readByte();if(1!==t)throw new bS(`Version ${t} of the SEIP packet is unsupported.`);this.encrypted=e.remainder()}))}write(){return i_.concat([new Uint8Array([1]),this.encrypted])}async encrypt(e,t,r=d_){const{blockSize:n}=wx.getCipher(e);let i=this.packets.write();mw(i)&&(i=await Jw(i));const o=await wx.getPrefixRandom(e),s=new Uint8Array([211,20]),a=i_.concat([o,i,s]),u=await wx.hash.sha1(Vw(a)),l=i_.concat([a,u]);return this.encrypted=await wx.mode.cfb.encrypt(e,t,l,new Uint8Array(n),r),!0}async decrypt(e,t,r=d_){const{blockSize:n}=wx.getCipher(e);let i=Ww(this.encrypted);mw(i)&&(i=await Jw(i));const o=await wx.mode.cfb.decrypt(e,t,i,new Uint8Array(n)),s=Qw(Vw(o),-20),a=Qw(o,0,-20),u=Promise.all([Jw(await wx.hash.sha1(Vw(a))),Jw(s)]).then((([e,t])=>{if(!i_.equalsUint8Array(e,t))throw Error("Modification detected.");return new Uint8Array})),l=Qw(a,n+2);let c=Qw(l,0,-2);return c=Bw([c,Xw((()=>u))]),i_.isStream(i)&&r.allowUnauthenticatedStream||(c=await Jw(c)),this.packets=await OT.fromBinary(c,qT,r),!0}}const VT=i_.constructAllowedPackets([CT,BT,DT,RT]);class $T{static get tag(){return r_.packet.aeadEncryptedData}constructor(){this.version=1,this.cipherAlgorithm=null,this.aeadAlgorithm=r_.aead.eax,this.chunkSizeByte=null,this.iv=null,this.encrypted=null,this.packets=null}async read(e){await qw(e,(async e=>{const t=await e.readByte();if(1!==t)throw new bS(`Version ${t} of the AEAD-encrypted data packet is not supported.`);this.cipherAlgorithm=await e.readByte(),this.aeadAlgorithm=await e.readByte(),this.chunkSizeByte=await e.readByte();const r=wx.getAEADMode(this.aeadAlgorithm);this.iv=await e.readBytes(r.ivLength),this.encrypted=e.remainder()}))}write(){return i_.concat([new Uint8Array([this.version,this.cipherAlgorithm,this.aeadAlgorithm,this.chunkSizeByte]),this.iv,this.encrypted])}async decrypt(e,t,r=d_){this.packets=await OT.fromBinary(await this.crypt("decrypt",t,Ww(this.encrypted)),VT,r)}async encrypt(e,t,r=d_){this.cipherAlgorithm=e;const{ivLength:n}=wx.getAEADMode(this.aeadAlgorithm);this.iv=wx.random.getRandomBytes(n),this.chunkSizeByte=r.aeadChunkSizeByte;const i=this.packets.write();this.encrypted=await this.crypt("encrypt",t,i)}async crypt(e,t,r){const n=wx.getAEADMode(this.aeadAlgorithm),i=await n(this.cipherAlgorithm,t),o="decrypt"===e?n.tagLength:0,s="encrypt"===e?n.tagLength:0,a=2**(this.chunkSizeByte+6)+o,u=new ArrayBuffer(21),l=new Uint8Array(u,0,13),c=new Uint8Array(u),h=new DataView(u),d=new Uint8Array(u,5,8);l.set([192|$T.tag,this.version,this.cipherAlgorithm,this.aeadAlgorithm,this.chunkSizeByte],0);let f=0,p=Promise.resolve(),m=0,g=0;const y=this.iv;return Kw(r,(async(t,r)=>{if("array"!==i_.isStream(t)){const e=new Pw({},{highWaterMark:i_.getHardwareConcurrency()*2**(this.chunkSizeByte+6),size:e=>e.length});zw(e.readable,r),r=e.writable}const u=Uw(t),v=Fw(r);try{for(;;){let t=await u.readBytes(a+o)||new Uint8Array;const r=t.subarray(t.length-o);let b,w;if(t=t.subarray(0,t.length-o),!f||t.length?(u.unshift(r),b=i[e](t,n.getNonce(y,d),l),g+=t.length-o+s):(h.setInt32(17,m),b=i[e](r,n.getNonce(y,d),c),g+=s,w=!0),m+=t.length-o,p=p.then((()=>b)).then((async e=>{await v.ready,await v.write(e),g-=e.length})).catch((e=>v.abort(e))),(w||g>v.desiredSize)&&await p,w){await v.close();break}h.setInt32(9,++f)}}catch(e){await v.abort(e)}}))}}class QT{static get tag(){return r_.packet.publicKeyEncryptedSessionKey}constructor(){this.version=3,this.publicKeyID=new E_,this.publicKeyAlgorithm=null,this.sessionKey=null,this.sessionKeyAlgorithm=null,this.encrypted={}}read(e){let t=0;if(this.version=e[t++],3!==this.version)throw new bS(`Version ${this.version} of the PKESK packet is unsupported.`);t+=this.publicKeyID.read(e.subarray(t)),this.publicKeyAlgorithm=e[t++],this.encrypted=wx.parseEncSessionKeyParams(this.publicKeyAlgorithm,e.subarray(t),this.version),this.publicKeyAlgorithm===r_.publicKey.x25519&&(this.sessionKeyAlgorithm=r_.write(r_.symmetric,this.encrypted.C.algorithm))}write(){const e=[new Uint8Array([this.version]),this.publicKeyID.write(),new Uint8Array([this.publicKeyAlgorithm]),wx.serializeParams(this.publicKeyAlgorithm,this.encrypted)];return i_.concatUint8Array(e)}async encrypt(e){const t=r_.write(r_.publicKey,this.publicKeyAlgorithm),r=JT(this.version,t,this.sessionKeyAlgorithm,this.sessionKey);this.encrypted=await wx.publicKeyEncrypt(t,this.sessionKeyAlgorithm,e.publicParams,r,e.getFingerprintBytes())}async decrypt(e,t){if(this.publicKeyAlgorithm!==e.algorithm)throw Error("Decryption error");const r=t?JT(this.version,this.publicKeyAlgorithm,t.sessionKeyAlgorithm,t.sessionKey):null,n=await wx.publicKeyDecrypt(this.publicKeyAlgorithm,e.publicParams,e.privateParams,this.encrypted,e.getFingerprintBytes(),r),{sessionKey:i,sessionKeyAlgorithm:o}=function(e,t,r,n){switch(t){case r_.publicKey.rsaEncrypt:case r_.publicKey.rsaEncryptSign:case r_.publicKey.elgamal:case r_.publicKey.ecdh:{const e=r.subarray(0,r.length-2),t=r.subarray(r.length-2),i=i_.writeChecksum(e.subarray(e.length%8)),o=i[0]===t[0]&i[1]===t[1],s={sessionKeyAlgorithm:e[0],sessionKey:e.subarray(1)};if(n){const e=o&s.sessionKeyAlgorithm===n.sessionKeyAlgorithm&s.sessionKey.length===n.sessionKey.length;return{sessionKey:i_.selectUint8Array(e,s.sessionKey,n.sessionKey),sessionKeyAlgorithm:i_.selectUint8(e,s.sessionKeyAlgorithm,n.sessionKeyAlgorithm)}}if(o&&r_.read(r_.symmetric,s.sessionKeyAlgorithm))return s;throw Error("Decryption error")}case r_.publicKey.x25519:return{sessionKey:r};default:throw Error("Unsupported public key algorithm")}}(this.version,this.publicKeyAlgorithm,n,t);this.publicKeyAlgorithm!==r_.publicKey.x25519&&(this.sessionKeyAlgorithm=o),this.sessionKey=i}}function JT(e,t,r,n){switch(t){case r_.publicKey.rsaEncrypt:case r_.publicKey.rsaEncryptSign:case r_.publicKey.elgamal:case r_.publicKey.ecdh:return i_.concatUint8Array([new Uint8Array([r]),n,i_.writeChecksum(n.subarray(n.length%8))]);case r_.publicKey.x25519:return n;default:throw Error("Unsupported public key algorithm")}}class ZT{constructor(e=d_){this.algorithm=r_.hash.sha256,this.type="iterated",this.c=e.s2kIterationCountByte,this.salt=null}getCount(){return 16+(15&this.c)<<6+(this.c>>4)}read(e){let t=0;try{this.type=r_.read(r_.s2k,e[t++])}catch(e){throw new bS("Unknown S2K type.")}switch(this.algorithm=e[t++],this.type){case"simple":break;case"salted":this.salt=e.subarray(t,t+8),t+=8;break;case"iterated":this.salt=e.subarray(t,t+8),t+=8,this.c=e[t++];break;case"gnu":if("GNU"!==i_.uint8ArrayToString(e.subarray(t,t+3)))throw new bS("Unknown s2k type.");if(t+=3,1001!==1e3+e[t++])throw new bS("Unknown s2k gnu protection mode.");this.type="gnu-dummy";break;default:throw new bS("Unknown s2k type.")}return t}write(){if("gnu-dummy"===this.type)return new Uint8Array([101,0,...i_.stringToUint8Array("GNU"),1]);const e=[new Uint8Array([r_.write(r_.s2k,this.type),this.algorithm])];switch(this.type){case"simple":break;case"salted":e.push(this.salt);break;case"iterated":e.push(this.salt),e.push(new Uint8Array([this.c]));break;case"gnu":throw Error("GNU s2k type not supported.");default:throw Error("Unknown s2k type.")}return i_.concatUint8Array(e)}async produceKey(e,t){e=i_.encodeUTF8(e);const r=[];let n=0,i=0;for(;n{this.privateParams[e].fill(0),delete this.privateParams[e]})),this.privateParams=null,this.isEncrypted=!0)}}async function oC(e,t,r){const{keySize:n}=wx.getCipher(r);return e.produceKey(t,n)}var sC=cE((function(e){!function(t){function r(e){function t(){return Ae0&&(t.semantic=" "),t}}function g(e,t){return function(){var n,o,a,l,c;for(l=r(),n=s("star"),a=0,c=void 0===t?0:t;null!==(o=e());)a+=1,u(n,o);return a>=c?n:(i(l),null)}}function y(e){return e.charCodeAt(0)>=128}function v(){return a("cr",c("\r")())}function b(){return a("crlf",h(v,E)())}function w(){return a("dquote",c('"')())}function _(){return a("htab",c("\t")())}function E(){return a("lf",c("\n")())}function A(){return a("sp",c(" ")())}function M(){return a("vchar",l((function(t){var r=t.charCodeAt(0),n=33<=r&&r<=126;return e.rfc6532&&(n=n||y(t)),n})))}function S(){return a("wsp",d(A,_)())}function x(){var e=a("quoted-pair",d(h(c("\\"),d(M,S)),ne)());return null===e?null:(e.semantic=e.semantic[1],e)}function k(){return a("fws",d(oe,h(f(h(g(S),p(b))),g(S,1)))())}function T(){return a("ctext",d((function(){return l((function(t){var r=t.charCodeAt(0),n=33<=r&&r<=39||42<=r&&r<=91||93<=r&&r<=126;return e.rfc6532&&(n=n||y(t)),n}))}),te)())}function C(){return a("ccontent",d(T,x,I)())}function I(){return a("comment",h(c("("),g(h(f(k),C)),f(k),c(")"))())}function N(){return a("cfws",d(h(g(h(f(k),I),1),f(k)),k)())}function R(){return a("atext",l((function(t){var r="a"<=t&&t<="z"||"A"<=t&&t<="Z"||"0"<=t&&t<="9"||["!","#","$","%","&","'","*","+","-","/","=","?","^","_","`","{","|","}","~"].indexOf(t)>=0;return e.rfc6532&&(r=r||y(t)),r})))}function P(){return a("atom",h(m(f(N)),g(R,1),m(f(N)))())}function D(){var e,t;return null===(e=a("dot-atom-text",g(R,1)()))||null!==(t=g(h(c("."),g(R,1)))())&&u(e,t),e}function L(){return a("dot-atom",h(p(f(N)),D,p(f(N)))())}function O(){return a("qtext",d((function(){return l((function(t){var r=t.charCodeAt(0),n=33===r||35<=r&&r<=91||93<=r&&r<=126;return e.rfc6532&&(n=n||y(t)),n}))}),re)())}function j(){return a("qcontent",d(O,x)())}function B(){return a("quoted-string",h(p(f(N)),p(w),g(h(f(m(k)),j)),f(p(k)),p(w),p(f(N)))())}function U(){return a("word",d(P,B)())}function F(){return a("address",d(z,Y)())}function z(){return a("mailbox",d(H,X)())}function H(){return a("name-addr",h(f(K),G)())}function G(){return a("angle-addr",d(h(p(f(N)),c("<"),X,c(">"),p(f(N))),se)())}function Y(){return a("group",h(K,c(":"),f(V),c(";"),p(f(N)))())}function K(){return a("display-name",(null!==(e=a("phrase",d(ie,g(U,1))()))&&(e.semantic=function(e){return e.replace(/([ \t]|\r\n)+/g," ").replace(/^\s*/,"").replace(/\s*$/,"")}(e.semantic)),e));var e}function q(){return a("mailbox-list",d(h(z,g(h(c(","),z))),le)())}function W(){return a("address-list",d(h(F,g(h(c(","),F))),ce)())}function V(){return a("group-list",d(q,p(N),he)())}function $(){return a("local-part",d(de,L,B)())}function Q(){return a("dtext",d((function(){return l((function(t){var r=t.charCodeAt(0),n=33<=r&&r<=90||94<=r&&r<=126;return e.rfc6532&&(n=n||y(t)),n}))}),pe)())}function J(){return a("domain-literal",h(p(f(N)),c("["),g(h(f(k),Q)),f(k),c("]"),p(f(N)))())}function Z(){return a("domain",(t=d(fe,L,J)(),e.rejectTLD&&t&&t.semantic&&t.semantic.indexOf(".")<0?null:(t&&(t.semantic=t.semantic.replace(/\s+/g,"")),t)));var t}function X(){return a("addr-spec",h($,c("@"),Z)())}function ee(){return e.strict?null:a("obs-NO-WS-CTL",l((function(e){var t=e.charCodeAt(0);return 1<=t&&t<=8||11===t||12===t||14<=t&&t<=31||127===t})))}function te(){return e.strict?null:a("obs-ctext",ee())}function re(){return e.strict?null:a("obs-qtext",ee())}function ne(){return e.strict?null:a("obs-qp",h(c("\\"),d(c("\0"),ee,E,v))())}function ie(){return e.strict?null:e.atInDisplayName?a("obs-phrase",h(U,g(d(U,c("."),c("@"),m(N))))()):a("obs-phrase",h(U,g(d(U,c("."),m(N))))())}function oe(){return e.strict?null:a("obs-FWS",g(h(p(f(b)),S),1)())}function se(){return e.strict?null:a("obs-angle-addr",h(p(f(N)),c("<"),ae,X,c(">"),p(f(N)))())}function ae(){return e.strict?null:a("obs-route",h(ue,c(":"))())}function ue(){return e.strict?null:a("obs-domain-list",h(g(d(p(N),c(","))),c("@"),Z,g(h(c(","),p(f(N)),f(h(c("@"),Z)))))())}function le(){return e.strict?null:a("obs-mbox-list",h(g(h(p(f(N)),c(","))),z,g(h(c(","),f(h(z,p(N))))))())}function ce(){return e.strict?null:a("obs-addr-list",h(g(h(p(f(N)),c(","))),F,g(h(c(","),f(h(F,p(N))))))())}function he(){return e.strict?null:a("obs-group-list",h(g(h(p(f(N)),c(",")),1),p(f(N)))())}function de(){return e.strict?null:a("obs-local-part",h(U,g(h(c("."),U)))())}function fe(){return e.strict?null:a("obs-domain",h(P,g(h(c("."),P)))())}function pe(){return e.strict?null:a("obs-dtext",d(ee,x)())}function me(e,t){var r,n,i;if(null==t)return null;for(n=[t];n.length>0;){if((i=n.pop()).name===e)return i;for(r=i.children.length-1;r>=0;r-=1)n.push(i.children[r])}return null}function ge(e,t){var r,n,i,o,s;if(null==t)return null;for(n=[t],o=[],s={},r=0;r0;)if((i=n.pop()).name in s)o.push(i);else for(r=i.children.length-1;r>=0;r-=1)n.push(i.children[r]);return o}function ye(t){var r,n,i,o,s;if(null===t)return null;for(r=[],n=ge(["group","mailbox"],t),i=0;i1?null:t.addresses&&t.addresses[0]:null}(s):e.simple?s&&s.addresses:s}function ve(e){var t,r=me("display-name",e),n=[],i=ge(["mailbox"],e);for(t=0;t0;)for("cfws"===(i=n.pop()).name&&o.push(i),r=i.children.length-1;r>=0;r-=1)n.push(i.children[r]);return o}(0,e),i=ge(["comment"],e),o=me("local-part",r),s=me("domain",r);return{node:e,parts:{name:t,address:r,local:o,domain:s,comments:n},type:e.name,name:we(t),address:we(r),local:we(o),domain:we(s),comments:_e(i),groupName:we(e.groupName)}}function we(e){return null!=e?e.semantic:null}function _e(e){var t="";if(e)for(var r=0;r`),t.userID=r.join(" "),t}read(e,t=d_){const r=i_.decodeUTF8(e);if(r.length>t.maxUserIDLength)throw Error("User ID string is too long");try{const{name:e,address:t,comments:n}=sC.parseOneAddress({input:r,atInDisplayName:!0});this.comment=n.replace(/^\(|\)$/g,""),this.name=e,this.email=t}catch(e){}this.userID=r}write(){return i_.encodeUTF8(this.userID)}equals(e){return e&&e.userID===this.userID}}class uC extends iC{static get tag(){return r_.packet.secretSubkey}constructor(e=new Date,t=d_){super(e,t)}}const lC=i_.constructAllowedPackets([RT]);class cC{constructor(e){this.packets=e||new OT}write(){return this.packets.write()}armor(e=d_){return __(r_.armor.signature,this.write(),void 0,void 0,void 0,e)}getSigningKeyIDs(){return this.packets.map((e=>e.issuerKeyID))}}async function hC(e,t){const r=new uC(e.date,t);return r.packets=null,r.algorithm=r_.write(r_.publicKey,e.algorithm),await r.generate(e.rsaBits,e.curve),await r.computeFingerprintAndKeyID(),r}async function dC(e,t){const r=new iC(e.date,t);return r.packets=null,r.algorithm=r_.write(r_.publicKey,e.algorithm),await r.generate(e.rsaBits,e.curve,e.config),await r.computeFingerprintAndKeyID(),r}async function fC(e,t,r,n,i=new Date,o){let s,a;for(let u=e.length-1;u>=0;u--)try{(!s||e[u].created>=s.created)&&(await e[u].verify(t,r,n,i,void 0,o),s=e[u])}catch(e){a=e}if(!s)throw i_.wrapError(`Could not find valid ${r_.read(r_.signature,r)} signature in key ${t.getKeyID().toHex()}`.replace("certGeneric ","self-").replace(/([a-z])([A-Z])/g,((e,t,r)=>t+" "+r.toLowerCase())),a);return s}function pC(e,t,r=new Date){const n=i_.normalizeDate(r);if(null!==n){const r=_C(e,t);return!(e.created<=n&&n0&&(o.keyExpirationTime=r.keyExpirationTime,o.keyNeverExpires=!1),await vC(i,null,t,o,r.date,void 0,void 0,void 0,n)}async function gC(e,t,r=new Date,n={},i){let o=i.preferredHashAlgorithm,s=o;if(e){const t=await e.getPrimaryUser(r,n,i);t.selfCertification.preferredHashAlgorithms&&([s]=t.selfCertification.preferredHashAlgorithms,o=wx.hash.getHashByteLength(o)<=wx.hash.getHashByteLength(s)?s:o)}switch(t.algorithm){case r_.publicKey.ecdsa:case r_.publicKey.eddsaLegacy:case r_.publicKey.ed25519:s=wx.getPreferredCurveHashAlgo(t.algorithm,t.publicParams.oid)}return wx.hash.getHashByteLength(o)<=wx.hash.getHashByteLength(s)?s:o}async function yC(e,t=[],r=new Date,n=[],i=d_){const o={symmetric:r_.symmetric.aes128,aead:r_.aead.eax,compression:r_.compression.uncompressed}[e],s={symmetric:i.preferredSymmetricAlgorithm,aead:i.preferredAEADAlgorithm,compression:i.preferredCompressionAlgorithm}[e],a={symmetric:"preferredSymmetricAlgorithms",aead:"preferredAEADAlgorithms",compression:"preferredCompressionAlgorithms"}[e],u=await Promise.all(t.map((async function(e,t){const o=(await e.getPrimaryUser(r,n[t],i)).selfCertification[a];return!!o&&o.indexOf(s)>=0})));return u.every(Boolean)?s:o}async function vC(e,t,r,n,i,o,s=[],a=!1,u){if(r.isDummy())throw Error("Cannot sign with a gnu-dummy key.");if(!r.isDecrypted())throw Error("Signing key is not decrypted.");const l=new RT;return Object.assign(l,n),l.publicKeyAlgorithm=r.algorithm,l.hashAlgorithm=await gC(t,r,i,o,u),l.rawNotations=s,await l.sign(r,e,i,a),l}async function bC(e,t,r,n=new Date,i){(e=e[r])&&(t[r].length?await Promise.all(e.map((async function(e){e.isExpired(n)||i&&!(await i(e))||t[r].some((function(t){return i_.equalsUint8Array(t.writeParams(),e.writeParams())}))||t[r].push(e)}))):t[r]=e)}async function wC(e,t,r,n,i,o,s=new Date,a){o=o||e;const u=[];return await Promise.all(n.map((async function(e){try{i&&!e.issuerKeyID.equals(i.issuerKeyID)||(await e.verify(o,t,r,a.revocationsExpire?s:null,!1,a),u.push(e.issuerKeyID))}catch(e){}}))),i?(i.revoked=!!u.some((e=>e.equals(i.issuerKeyID)))||i.revoked||!1,i.revoked):u.length>0}function _C(e,t){let r;return!1===t.keyNeverExpires&&(r=e.created.getTime()+1e3*t.keyExpirationTime),r?new Date(r):1/0}function EC(e,t={}){switch(e.type=e.type||t.type,e.curve=e.curve||t.curve,e.rsaBits=e.rsaBits||t.rsaBits,e.keyExpirationTime=void 0!==e.keyExpirationTime?e.keyExpirationTime:t.keyExpirationTime,e.passphrase=i_.isString(e.passphrase)?e.passphrase:t.passphrase,e.date=e.date||t.date,e.sign=e.sign||!1,e.type){case"ecc":try{e.curve=r_.write(r_.curve,e.curve)}catch(e){throw Error("Unknown curve")}e.curve!==r_.curve.ed25519Legacy&&e.curve!==r_.curve.curve25519Legacy||(e.curve=e.sign?r_.curve.ed25519Legacy:r_.curve.curve25519Legacy),e.sign?e.algorithm=e.curve===r_.curve.ed25519Legacy?r_.publicKey.eddsaLegacy:r_.publicKey.ecdsa:e.algorithm=r_.publicKey.ecdh;break;case"rsa":e.algorithm=r_.publicKey.rsaEncryptSign;break;default:throw Error("Unsupported key type "+e.type)}return e}function AC(e,t){const r=e.algorithm;return r!==r_.publicKey.rsaEncrypt&&r!==r_.publicKey.elgamal&&r!==r_.publicKey.ecdh&&r!==r_.publicKey.x25519&&(!t.keyFlags||0!=(t.keyFlags[0]&r_.keyFlags.signData))}function MC(e,t){const r=e.algorithm;return r!==r_.publicKey.dsa&&r!==r_.publicKey.rsaSign&&r!==r_.publicKey.ecdsa&&r!==r_.publicKey.eddsaLegacy&&r!==r_.publicKey.ed25519&&(!t.keyFlags||0!=(t.keyFlags[0]&r_.keyFlags.encryptCommunication)||0!=(t.keyFlags[0]&r_.keyFlags.encryptStorage))}function SC(e,t){return!!t.allowInsecureDecryptionWithSigningKeys||!e.keyFlags||0!=(e.keyFlags[0]&r_.keyFlags.encryptCommunication)||0!=(e.keyFlags[0]&r_.keyFlags.encryptStorage)}function xC(e,t){const r=r_.write(r_.publicKey,e.algorithm),n=e.getAlgorithmInfo();if(t.rejectPublicKeyAlgorithms.has(r))throw Error(n.algorithm+" keys are considered too weak.");switch(r){case r_.publicKey.rsaEncryptSign:case r_.publicKey.rsaSign:case r_.publicKey.rsaEncrypt:if(n.bitse.getKeys(a).length>0));return 0===u.length?null:(await Promise.all(u.map((async t=>{const o=await t.getSigningKey(a,e.created,void 0,n);if(e.revoked||await i.isRevoked(e,o.keyPacket,r,n))throw Error("User certificate is revoked");try{await e.verify(o.keyPacket,r_.signature.certGeneric,s,r,void 0,n)}catch(e){throw i_.wrapError("User certificate is invalid",e)}}))),!0)}async verifyAllCertifications(e,t=new Date,r){const n=this,i=this.selfCertifications.concat(this.otherCertifications);return Promise.all(i.map((async i=>({keyID:i.issuerKeyID,valid:await n.verifyCertificate(i,e,t,r).catch((()=>!1))}))))}async verify(e=new Date,t){if(!this.selfCertifications.length)throw Error("No self-certifications found");const r=this,n=this.mainKey.keyPacket,i={userID:this.userID,userAttribute:this.userAttribute,key:n};let o;for(let s=this.selfCertifications.length-1;s>=0;s--)try{const o=this.selfCertifications[s];if(o.revoked||await r.isRevoked(o,void 0,e,t))throw Error("Self-certification is revoked");try{await o.verify(n,r_.signature.certGeneric,i,e,void 0,t)}catch(e){throw i_.wrapError("Self-certification is invalid",e)}return!0}catch(e){o=e}throw o}async update(e,t,r){const n=this.mainKey.keyPacket,i={userID:this.userID,userAttribute:this.userAttribute,key:n};await bC(e,this,"selfCertifications",t,(async function(e){try{return await e.verify(n,r_.signature.certGeneric,i,t,!1,r),!0}catch(e){return!1}})),await bC(e,this,"otherCertifications",t),await bC(e,this,"revocationSignatures",t,(function(e){return wC(n,r_.signature.certRevocation,i,[e],void 0,void 0,t,r)}))}async revoke(e,{flag:t=r_.reasonForRevocation.noReason,string:r=""}={},n=new Date,i=d_){const o={userID:this.userID,userAttribute:this.userAttribute,key:e},s=new kC(o.userID||o.userAttribute,this.mainKey);return s.revocationSignatures.push(await vC(o,null,e,{signatureType:r_.signature.certRevocation,reasonForRevocationFlag:r_.write(r_.reasonForRevocation,t),reasonForRevocationString:r},n,void 0,void 0,!1,i)),await s.update(this),s}}class TC{constructor(e,t){this.keyPacket=e,this.bindingSignatures=[],this.revocationSignatures=[],this.mainKey=t}toPacketList(){const e=new OT;return e.push(this.keyPacket),e.push(...this.revocationSignatures),e.push(...this.bindingSignatures),e}clone(){const e=new TC(this.keyPacket,this.mainKey);return e.bindingSignatures=[...this.bindingSignatures],e.revocationSignatures=[...this.revocationSignatures],e}async isRevoked(e,t,r=new Date,n=d_){const i=this.mainKey.keyPacket;return wC(i,r_.signature.subkeyRevocation,{key:i,bind:this.keyPacket},this.revocationSignatures,e,t,r,n)}async verify(e=new Date,t=d_){const r=this.mainKey.keyPacket,n={key:r,bind:this.keyPacket},i=await fC(this.bindingSignatures,r,r_.signature.subkeyBinding,n,e,t);if(i.revoked||await this.isRevoked(i,null,e,t))throw Error("Subkey is revoked");if(pC(this.keyPacket,i,e))throw Error("Subkey is expired");return i}async getExpirationTime(e=new Date,t=d_){const r=this.mainKey.keyPacket,n={key:r,bind:this.keyPacket};let i;try{i=await fC(this.bindingSignatures,r,r_.signature.subkeyBinding,n,e,t)}catch(e){return null}const o=_C(this.keyPacket,i),s=i.getExpirationTime();return oi.bindingSignatures[t].created&&(i.bindingSignatures[t]=e),!1;try{return await e.verify(n,r_.signature.subkeyBinding,o,t,void 0,r),!0}catch(e){return!1}})),await bC(e,this,"revocationSignatures",t,(function(e){return wC(n,r_.signature.subkeyRevocation,o,[e],void 0,void 0,t,r)}))}async revoke(e,{flag:t=r_.reasonForRevocation.noReason,string:r=""}={},n=new Date,i=d_){const o={key:e,bind:this.keyPacket},s=new TC(this.keyPacket,this.mainKey);return s.revocationSignatures.push(await vC(o,null,e,{signatureType:r_.signature.subkeyRevocation,reasonForRevocationFlag:r_.write(r_.reasonForRevocation,t),reasonForRevocationString:r},n,void 0,void 0,!1,i)),await s.update(this),s}hasSameFingerprintAs(e){return this.keyPacket.hasSameFingerprintAs(e.keyPacket||e)}}["getKeyID","getFingerprint","getAlgorithmInfo","getCreationTime","isDecrypted"].forEach((e=>{TC.prototype[e]=function(){return this.keyPacket[e]()}}));const CC=i_.constructAllowedPackets([RT]),IC=new Set([r_.packet.publicKey,r_.packet.privateKey]),NC=new Set([r_.packet.publicKey,r_.packet.privateKey,r_.packet.publicSubkey,r_.packet.privateSubkey]);class RC{packetListToStructure(e,t=new Set){let r,n,i,o;for(const s of e){if(s instanceof wS){NC.has(s.tag)&&!o&&(o=IC.has(s.tag)?IC:NC);continue}const e=s.constructor.tag;if(o){if(!o.has(e))continue;o=null}if(t.has(e))throw Error("Unexpected packet type: "+e);switch(e){case r_.packet.publicKey:case r_.packet.secretKey:if(this.keyPacket)throw Error("Key block contains multiple keys");if(this.keyPacket=s,n=this.getKeyID(),!n)throw Error("Missing Key ID");break;case r_.packet.userID:case r_.packet.userAttribute:r=new kC(s,this),this.users.push(r);break;case r_.packet.publicSubkey:case r_.packet.secretSubkey:r=null,i=new TC(s,this),this.subkeys.push(i);break;case r_.packet.signature:switch(s.signatureType){case r_.signature.certGeneric:case r_.signature.certPersona:case r_.signature.certCasual:case r_.signature.certPositive:if(!r){i_.printDebug("Dropping certification signatures without preceding user packet");continue}s.issuerKeyID.equals(n)?r.selfCertifications.push(s):r.otherCertifications.push(s);break;case r_.signature.certRevocation:r?r.revocationSignatures.push(s):this.directSignatures.push(s);break;case r_.signature.key:this.directSignatures.push(s);break;case r_.signature.subkeyBinding:if(!i){i_.printDebug("Dropping subkey binding signature without preceding subkey packet");continue}i.bindingSignatures.push(s);break;case r_.signature.keyRevocation:this.revocationSignatures.push(s);break;case r_.signature.subkeyRevocation:if(!i){i_.printDebug("Dropping subkey revocation signature without preceding subkey packet");continue}i.revocationSignatures.push(s)}}}}toPacketList(){const e=new OT;return e.push(this.keyPacket),e.push(...this.revocationSignatures),e.push(...this.directSignatures),this.users.map((t=>e.push(...t.toPacketList()))),this.subkeys.map((t=>e.push(...t.toPacketList()))),e}clone(e=!1){const t=new this.constructor(this.toPacketList());return e&&t.getKeys().forEach((e=>{if(e.keyPacket=Object.create(Object.getPrototypeOf(e.keyPacket),Object.getOwnPropertyDescriptors(e.keyPacket)),!e.keyPacket.isDecrypted())return;const t={};Object.keys(e.keyPacket.privateParams).forEach((r=>{t[r]=new Uint8Array(e.keyPacket.privateParams[r])})),e.keyPacket.privateParams=t})),t}getSubkeys(e=null){return this.subkeys.filter((t=>!e||t.getKeyID().equals(e,!0)))}getKeys(e=null){const t=[];return e&&!this.getKeyID().equals(e,!0)||t.push(this),t.concat(this.getSubkeys(e))}getKeyIDs(){return this.getKeys().map((e=>e.getKeyID()))}getUserIDs(){return this.users.map((e=>e.userID?e.userID.userID:null)).filter((e=>null!==e))}write(){return this.toPacketList().write()}async getSigningKey(e=null,t=new Date,r={},n=d_){await this.verifyPrimaryKey(t,r,n);const i=this.keyPacket,o=this.subkeys.slice().sort(((e,t)=>t.keyPacket.created-e.keyPacket.created));let s;for(const a of o)if(!e||a.getKeyID().equals(e))try{await a.verify(t,n);const e={key:i,bind:a.keyPacket},r=await fC(a.bindingSignatures,i,r_.signature.subkeyBinding,e,t,n);if(!AC(a.keyPacket,r))continue;if(!r.embeddedSignature)throw Error("Missing embedded signature");return await fC([r.embeddedSignature],a.keyPacket,r_.signature.keyBinding,e,t,n),xC(a.keyPacket,n),a}catch(e){s=e}try{const o=await this.getPrimaryUser(t,r,n);if((!e||i.getKeyID().equals(e))&&AC(i,o.selfCertification))return xC(i,n),this}catch(e){s=e}throw i_.wrapError("Could not find valid signing key packet in key "+this.getKeyID().toHex(),s)}async getEncryptionKey(e,t=new Date,r={},n=d_){await this.verifyPrimaryKey(t,r,n);const i=this.keyPacket,o=this.subkeys.slice().sort(((e,t)=>t.keyPacket.created-e.keyPacket.created));let s;for(const a of o)if(!e||a.getKeyID().equals(e))try{await a.verify(t,n);const e={key:i,bind:a.keyPacket},r=await fC(a.bindingSignatures,i,r_.signature.subkeyBinding,e,t,n);if(MC(a.keyPacket,r))return xC(a.keyPacket,n),a}catch(e){s=e}try{const o=await this.getPrimaryUser(t,r,n);if((!e||i.getKeyID().equals(e))&&MC(i,o.selfCertification))return xC(i,n),this}catch(e){s=e}throw i_.wrapError("Could not find valid encryption key packet in key "+this.getKeyID().toHex(),s)}async isRevoked(e,t,r=new Date,n=d_){return wC(this.keyPacket,r_.signature.keyRevocation,{key:this.keyPacket},this.revocationSignatures,e,t,r,n)}async verifyPrimaryKey(e=new Date,t={},r=d_){const n=this.keyPacket;if(await this.isRevoked(null,null,e,r))throw Error("Primary key is revoked");const{selfCertification:i}=await this.getPrimaryUser(e,t,r);if(pC(n,i,e))throw Error("Primary key is expired");const o=await fC(this.directSignatures,n,r_.signature.key,{key:n},e,r).catch((()=>{}));if(o&&pC(n,o,e))throw Error("Primary key is expired")}async getExpirationTime(e,t=d_){let r;try{const{selfCertification:n}=await this.getPrimaryUser(null,e,t),i=_C(this.keyPacket,n),o=n.getExpirationTime(),s=await fC(this.directSignatures,this.keyPacket,r_.signature.key,{key:this.keyPacket},null,t).catch((()=>{}));if(s){const e=_C(this.keyPacket,s);r=Math.min(i,o,e)}else r=ie.subkeys.some((e=>t.hasSameFingerprintAs(e))))))throw Error("Cannot update public key with private key if subkeys mismatch");return e.update(this,r)}const n=this.clone();return await bC(e,n,"revocationSignatures",t,(i=>wC(n.keyPacket,r_.signature.keyRevocation,n,[i],null,e.keyPacket,t,r))),await bC(e,n,"directSignatures",t),await Promise.all(e.users.map((async e=>{const i=n.users.filter((t=>e.userID&&e.userID.equals(t.userID)||e.userAttribute&&e.userAttribute.equals(t.userAttribute)));if(i.length>0)await Promise.all(i.map((n=>n.update(e,t,r))));else{const t=e.clone();t.mainKey=n,n.users.push(t)}}))),await Promise.all(e.subkeys.map((async e=>{const i=n.subkeys.filter((t=>t.hasSameFingerprintAs(e)));if(i.length>0)await Promise.all(i.map((n=>n.update(e,t,r))));else{const t=e.clone();t.mainKey=n,n.subkeys.push(t)}}))),n}async getRevocationCertificate(e=new Date,t=d_){const r={key:this.keyPacket},n=await fC(this.revocationSignatures,this.keyPacket,r_.signature.keyRevocation,r,e,t),i=new OT;return i.push(n),__(r_.armor.publicKey,i.write(),null,null,"This is a revocation certificate")}async applyRevocationCertificate(e,t=new Date,r=d_){const n=await w_(e,r),i=(await OT.fromBinary(n.data,CC,r)).findPacket(r_.packet.signature);if(!i||i.signatureType!==r_.signature.keyRevocation)throw Error("Could not find revocation signature packet");if(!i.issuerKeyID.equals(this.getKeyID()))throw Error("Revocation signature does not match key");try{await i.verify(this.keyPacket,r_.signature.keyRevocation,{key:this.keyPacket},t,void 0,r)}catch(e){throw i_.wrapError("Could not verify revocation signature",e)}const o=this.clone();return o.revocationSignatures.push(i),o}async signPrimaryUser(e,t,r,n=d_){const{index:i,user:o}=await this.getPrimaryUser(t,r,n),s=await o.certify(e,t,n),a=this.clone();return a.users[i]=s,a}async signAllUsers(e,t=new Date,r=d_){const n=this.clone();return n.users=await Promise.all(this.users.map((function(n){return n.certify(e,t,r)}))),n}async verifyPrimaryUser(e,t=new Date,r,n=d_){const i=this.keyPacket,{user:o}=await this.getPrimaryUser(t,r,n);return e?await o.verifyAllCertifications(e,t,n):[{keyID:i.getKeyID(),valid:await o.verify(t,n).catch((()=>!1))}]}async verifyAllUsers(e,t=new Date,r=d_){const n=this.keyPacket,i=[];return await Promise.all(this.users.map((async o=>{const s=e?await o.verifyAllCertifications(e,t,r):[{keyID:n.getKeyID(),valid:await o.verify(t,r).catch((()=>!1))}];i.push(...s.map((e=>({userID:o.userID?o.userID.userID:null,userAttribute:o.userAttribute,keyID:e.keyID,valid:e.valid}))))}))),i}}["getKeyID","getFingerprint","getAlgorithmInfo","getCreationTime","hasSameFingerprintAs"].forEach((e=>{RC.prototype[e]=TC.prototype[e]}));class PC extends RC{constructor(e){if(super(),this.keyPacket=null,this.revocationSignatures=[],this.directSignatures=[],this.users=[],this.subkeys=[],e&&(this.packetListToStructure(e,new Set([r_.packet.secretKey,r_.packet.secretSubkey])),!this.keyPacket))throw Error("Invalid key: missing public-key packet")}isPrivate(){return!1}toPublic(){return this}armor(e=d_){return __(r_.armor.publicKey,this.toPacketList().write(),void 0,void 0,void 0,e)}}class DC extends PC{constructor(e){if(super(),this.packetListToStructure(e,new Set([r_.packet.publicKey,r_.packet.publicSubkey])),!this.keyPacket)throw Error("Invalid key: missing private-key packet")}isPrivate(){return!0}toPublic(){const e=new OT,t=this.toPacketList();for(const r of t)switch(r.constructor.tag){case r_.packet.secretKey:{const t=eC.fromSecretKeyPacket(r);e.push(t);break}case r_.packet.secretSubkey:{const t=rC.fromSecretSubkeyPacket(r);e.push(t);break}default:e.push(r)}return new PC(e)}armor(e=d_){return __(r_.armor.privateKey,this.toPacketList().write(),void 0,void 0,void 0,e)}async getDecryptionKeys(e,t=new Date,r={},n=d_){const i=this.keyPacket,o=[];for(let a=0;ae.isDecrypted()))}async validate(e=d_){if(!this.isPrivate())throw Error("Cannot validate a public key");let t;if(this.keyPacket.isDummy()){const r=await this.getSigningKey(null,null,void 0,{...e,rejectPublicKeyAlgorithms:new Set,minRSABits:0});r&&!r.keyPacket.isDummy()&&(t=r.keyPacket)}else t=this.keyPacket;if(t)return t.validate();{const e=this.getKeys(),t=e.map((e=>e.keyPacket.isDummy())).every(Boolean);if(t)throw Error("Cannot validate an all-gnu-dummy key");return Promise.all(e.map((async e=>e.keyPacket.validate())))}}clearPrivateParams(){this.getKeys().forEach((({keyPacket:e})=>{e.isDecrypted()&&e.clearPrivateParams()}))}async revoke({flag:e=r_.reasonForRevocation.noReason,string:t=""}={},r=new Date,n=d_){if(!this.isPrivate())throw Error("Need private key for revoking");const i={key:this.keyPacket},o=this.clone();return o.revocationSignatures.push(await vC(i,null,this.keyPacket,{signatureType:r_.signature.keyRevocation,reasonForRevocationFlag:r_.write(r_.reasonForRevocation,e),reasonForRevocationString:t},r,void 0,void 0,void 0,n)),o}async addSubkey(e={}){const t={...d_,...e.config};if(e.passphrase)throw Error("Subkey could not be encrypted here, please encrypt whole key");if(e.rsaBitse!==t))]}const s=aC.fromObject(t),a={};a.userID=s,a.key=e;const u={};return u.signatureType=r_.signature.certGeneric,u.keyFlags=[r_.keyFlags.certifyKeys|r_.keyFlags.signData],u.preferredSymmetricAlgorithms=o([r_.symmetric.aes256,r_.symmetric.aes128,r_.symmetric.aes192],n.preferredSymmetricAlgorithm),n.aeadProtect&&(u.preferredAEADAlgorithms=o([r_.aead.eax,r_.aead.ocb],n.preferredAEADAlgorithm)),u.preferredHashAlgorithms=o([r_.hash.sha256,r_.hash.sha512],n.preferredHashAlgorithm),u.preferredCompressionAlgorithms=o([r_.compression.zlib,r_.compression.zip,r_.compression.uncompressed],n.preferredCompressionAlgorithm),0===i&&(u.isPrimaryUserID=!0),u.features=[0],u.features[0]|=r_.features.modificationDetection,n.aeadProtect&&(u.features[0]|=r_.features.aead),n.v5Keys&&(u.features[0]|=r_.features.v5Keys),r.keyExpirationTime>0&&(u.keyExpirationTime=r.keyExpirationTime,u.keyNeverExpires=!1),{userIDPacket:s,signaturePacket:await vC(a,null,e,u,r.date,void 0,void 0,void 0,n)}}))).then((e=>{e.forEach((({userIDPacket:e,signaturePacket:t})=>{i.push(e),i.push(t)}))})),await Promise.all(t.map((async function(t,i){const o=r.subkeys[i];return{secretSubkeyPacket:t,subkeySignaturePacket:await mC(t,e,o,n)}}))).then((e=>{e.forEach((({secretSubkeyPacket:e,subkeySignaturePacket:t})=>{i.push(e),i.push(t)}))}));const o={key:e};return i.push(await vC(o,null,e,{signatureType:r_.signature.keyRevocation,reasonForRevocationFlag:r_.reasonForRevocation.noReason,reasonForRevocationString:""},r.date,void 0,void 0,void 0,n)),r.passphrase&&e.clearPrivateParams(),await Promise.all(t.map((async function(e,t){r.subkeys[t].passphrase&&e.clearPrivateParams()}))),new DC(i)}async function BC({armoredKey:e,binaryKey:t,config:r,...n}){if(r={...d_,...r},!e&&!t)throw Error("readKey: must pass options object containing `armoredKey` or `binaryKey`");if(e&&!i_.isString(e))throw Error("readKey: options.armoredKey must be a string");if(t&&!i_.isUint8Array(t))throw Error("readKey: options.binaryKey must be a Uint8Array");const i=Object.keys(n);if(i.length>0)throw Error("Unknown option: "+i.join(", "));let o;if(e){const{type:t,data:n}=await w_(e,r);if(t!==r_.armor.publicKey&&t!==r_.armor.privateKey)throw Error("Armored text not of type key");o=n}else o=t;return OC(await OT.fromBinary(o,LC,r))}async function UC({armoredKey:e,binaryKey:t,config:r,...n}){if(r={...d_,...r},!e&&!t)throw Error("readPrivateKey: must pass options object containing `armoredKey` or `binaryKey`");if(e&&!i_.isString(e))throw Error("readPrivateKey: options.armoredKey must be a string");if(t&&!i_.isUint8Array(t))throw Error("readPrivateKey: options.binaryKey must be a Uint8Array");const i=Object.keys(n);if(i.length>0)throw Error("Unknown option: "+i.join(", "));let o;if(e){const{type:t,data:n}=await w_(e,r);if(t!==r_.armor.privateKey)throw Error("Armored text not of type private key");o=n}else o=t;const s=await OT.fromBinary(o,LC,r);return new DC(s)}const FC=i_.constructAllowedPackets([CT,BT,$T,WT,class{static get tag(){return r_.packet.symmetricallyEncryptedData}constructor(){this.encrypted=null,this.packets=null}read(e){this.encrypted=e}write(){return this.encrypted}async decrypt(e,t,r=d_){if(!r.allowUnauthenticatedMessages)throw Error("Message is not authenticated.");const{blockSize:n}=wx.getCipher(e),i=await Jw(Ww(this.encrypted)),o=await wx.mode.cfb.decrypt(e,t,i.subarray(n+2),i.subarray(2,n+2));this.packets=await OT.fromBinary(o,tC,r)}async encrypt(e,t,r=d_){const n=this.packets.write(),{blockSize:i}=wx.getCipher(e),o=await wx.getPrefixRandom(e),s=await wx.mode.cfb.encrypt(e,t,o,new Uint8Array(i),r),a=await wx.mode.cfb.encrypt(e,t,n,s.subarray(2),r);this.encrypted=i_.concat([s,a])}},QT,XT,DT,RT]),zC=i_.constructAllowedPackets([XT]),HC=i_.constructAllowedPackets([RT]);class GC{constructor(e){this.packets=e||new OT}getEncryptionKeyIDs(){const e=[];return this.packets.filterByTag(r_.packet.publicKeyEncryptedSessionKey).forEach((function(t){e.push(t.publicKeyID)})),e}getSigningKeyIDs(){const e=this.unwrapCompressed(),t=e.packets.filterByTag(r_.packet.onePassSignature);return t.length>0?t.map((e=>e.issuerKeyID)):e.packets.filterByTag(r_.packet.signature).map((e=>e.issuerKeyID))}async decrypt(e,t,r,n=new Date,i=d_){const o=r||await this.decryptSessionKeys(e,t,n,i),s=this.packets.filterByTag(r_.packet.symmetricallyEncryptedData,r_.packet.symEncryptedIntegrityProtectedData,r_.packet.aeadEncryptedData);if(0===s.length)throw Error("No encrypted data found");const a=s[0];let u=null;const l=Promise.all(o.map((async({algorithm:e,data:t})=>{if(!i_.isUint8Array(t)||!i_.isString(e))throw Error("Invalid session key for decryption.");try{const r=r_.write(r_.symmetric,e);await a.decrypt(r,t,i)}catch(e){i_.printDebugError(e),u=e}})));if(Zw(a.encrypted),a.encrypted=null,await l,!a.packets||!a.packets.length)throw u||Error("Decryption failed.");const c=new GC(a.packets);return a.packets=new OT,c}async decryptSessionKeys(e,t,r=new Date,n=d_){let i,o=[];if(t){const e=this.packets.filterByTag(r_.packet.symEncryptedSessionKey);if(0===e.length)throw Error("No symmetrically encrypted session key packet found.");await Promise.all(t.map((async function(t,r){let i;i=r?await OT.fromBinary(e.write(),zC,n):e,await Promise.all(i.map((async function(e){try{await e.decrypt(t),o.push(e)}catch(e){i_.printDebugError(e)}})))})))}else{if(!e)throw Error("No key or password specified.");{const t=this.packets.filterByTag(r_.packet.publicKeyEncryptedSessionKey);if(0===t.length)throw Error("No public key encrypted session key packet found.");await Promise.all(t.map((async function(t){await Promise.all(e.map((async function(e){let s=[r_.symmetric.aes256,r_.symmetric.aes128,r_.symmetric.tripledes,r_.symmetric.cast5];try{const t=await e.getPrimaryUser(r,void 0,n);t.selfCertification.preferredSymmetricAlgorithms&&(s=s.concat(t.selfCertification.preferredSymmetricAlgorithms))}catch(e){}const a=(await e.getDecryptionKeys(t.publicKeyID,null,void 0,n)).map((e=>e.keyPacket));await Promise.all(a.map((async function(e){if(e&&!e.isDummy()){if(!e.isDecrypted())throw Error("Decryption key is not decrypted.");if(!n.constantTimePKCS1Decryption||t.publicKeyAlgorithm!==r_.publicKey.rsaEncrypt&&t.publicKeyAlgorithm!==r_.publicKey.rsaEncryptSign&&t.publicKeyAlgorithm!==r_.publicKey.rsaSign&&t.publicKeyAlgorithm!==r_.publicKey.elgamal)try{if(await t.decrypt(e),!s.includes(r_.write(r_.symmetric,t.sessionKeyAlgorithm)))throw Error("A non-preferred symmetric algorithm was used.");o.push(t)}catch(e){i_.printDebugError(e),i=e}else{const r=t.write();await Promise.all(Array.from(n.constantTimePKCS1DecryptionSupportedSymmetricAlgorithms).map((async t=>{const n=new QT;n.read(r);const s={sessionKeyAlgorithm:t,sessionKey:wx.generateSessionKey(t)};try{await n.decrypt(e,s),o.push(n)}catch(e){i_.printDebugError(e),i=e}})))}}})))}))),Zw(t.encrypted),t.encrypted=null})))}}if(o.length>0){if(o.length>1){const e=new Set;o=o.filter((t=>{const r=t.sessionKeyAlgorithm+i_.uint8ArrayToString(t.sessionKey);return!e.has(r)&&(e.add(r),!0)}))}return o.map((e=>({data:e.sessionKey,algorithm:r_.read(r_.symmetric,e.sessionKeyAlgorithm)})))}throw i||Error("Session key decryption failed.")}getLiteralData(){const e=this.unwrapCompressed().packets.findPacket(r_.packet.literalData);return e&&e.getBytes()||null}getFilename(){const e=this.unwrapCompressed().packets.findPacket(r_.packet.literalData);return e&&e.getFilename()||null}getText(){const e=this.unwrapCompressed().packets.findPacket(r_.packet.literalData);return e?e.getText():null}static async generateSessionKey(e=[],t=new Date,r=[],n=d_){const i=await yC("symmetric",e,t,r,n),o=r_.read(r_.symmetric,i),s=n.aeadProtect&&await async function(e,t=new Date,r=[],n=d_){let i=!0;return await Promise.all(e.map((async function(e,o){const s=await e.getPrimaryUser(t,r[o],n);s.selfCertification.features&&s.selfCertification.features[0]&r_.features.aead||(i=!1)}))),i}(e,t,r,n)?r_.read(r_.aead,await yC("aead",e,t,r,n)):void 0;return await Promise.all(e.map((e=>e.getEncryptionKey().catch((()=>null)).then((e=>{if(e&&e.keyPacket.algorithm===r_.publicKey.x25519&&!i_.isAES(i))throw Error("Could not generate a session key compatible with the given `encryptionKeys`: X22519 keys can only be used to encrypt AES session keys; change `config.preferredSymmetricAlgorithm` accordingly.")}))))),{data:wx.generateSessionKey(i),algorithm:o,aeadAlgorithm:s}}async encrypt(e,t,r,n=!1,i=[],o=new Date,s=[],a=d_){if(r){if(!i_.isUint8Array(r.data)||!i_.isString(r.algorithm))throw Error("Invalid session key for encryption.")}else if(e&&e.length)r=await GC.generateSessionKey(e,o,s,a);else{if(!t||!t.length)throw Error("No keys, passwords, or session key provided.");r=await GC.generateSessionKey(void 0,void 0,void 0,a)}const{data:u,algorithm:l,aeadAlgorithm:c}=r,h=await GC.encryptSessionKey(u,l,c,e,t,n,i,o,s,a);let d;c?(d=new $T,d.aeadAlgorithm=r_.write(r_.aead,c)):d=new WT,d.packets=this.packets;const f=r_.write(r_.symmetric,l);return await d.encrypt(f,u,a),h.packets.push(d),d.packets=new OT,h}static async encryptSessionKey(e,t,r,n,i,o=!1,s=[],a=new Date,u=[],l=d_){const c=new OT,h=r_.write(r_.symmetric,t),d=r&&r_.write(r_.aead,r);if(n){const t=await Promise.all(n.map((async function(t,r){const n=await t.getEncryptionKey(s[r],a,u,l),i=new QT;return i.publicKeyID=o?E_.wildcard():n.getKeyID(),i.publicKeyAlgorithm=n.keyPacket.algorithm,i.sessionKey=e,i.sessionKeyAlgorithm=h,await i.encrypt(n.keyPacket),delete i.sessionKey,i})));c.push(...t)}if(i){const t=async function(e,t){try{return await e.decrypt(t),1}catch(e){return 0}},r=(e,t)=>e+t,n=async function(e,o,s,a){const u=new XT(l);return u.sessionKey=e,u.sessionKeyAlgorithm=o,s&&(u.aeadAlgorithm=s),await u.encrypt(a,l),l.passwordCollisionCheck&&1!==(await Promise.all(i.map((e=>t(u,e))))).reduce(r)?n(e,o,a):(delete u.sessionKey,u)},o=await Promise.all(i.map((t=>n(e,h,d,t))));c.push(...o)}return new GC(c)}async sign(e=[],t=null,r=[],n=new Date,i=[],o=[],s=d_){const a=new OT,u=this.packets.findPacket(r_.packet.literalData);if(!u)throw Error("No literal data packet to sign.");let l,c;const h=null===u.text?r_.signature.binary:r_.signature.text;if(t)for(c=t.packets.filterByTag(r_.packet.signature),l=c.length-1;l>=0;l--){const t=c[l],r=new DT;r.signatureType=t.signatureType,r.hashAlgorithm=t.hashAlgorithm,r.publicKeyAlgorithm=t.publicKeyAlgorithm,r.issuerKeyID=t.issuerKeyID,e.length||0!==l||(r.flags=1),a.push(r)}return await Promise.all(Array.from(e).reverse().map((async function(t,o){if(!t.isPrivate())throw Error("Need private key for signing");const a=r[e.length-1-o],u=await t.getSigningKey(a,n,i,s),l=new DT;return l.signatureType=h,l.hashAlgorithm=await gC(t,u.keyPacket,n,i,s),l.publicKeyAlgorithm=u.keyPacket.algorithm,l.issuerKeyID=u.getKeyID(),o===e.length-1&&(l.flags=1),l}))).then((e=>{e.forEach((e=>a.push(e)))})),a.push(u),a.push(...await YC(u,e,t,r,n,i,o,!1,s)),new GC(a)}compress(e,t=d_){if(e===r_.compression.uncompressed)return this;const r=new BT(t);r.algorithm=e,r.packets=this.packets;const n=new OT;return n.push(r),new GC(n)}async signDetached(e=[],t=null,r=[],n=new Date,i=[],o=[],s=d_){const a=this.packets.findPacket(r_.packet.literalData);if(!a)throw Error("No literal data packet to sign.");return new cC(await YC(a,e,t,r,n,i,o,!0,s))}async verify(e,t=new Date,r=d_){const n=this.unwrapCompressed(),i=n.packets.filterByTag(r_.packet.literalData);if(1!==i.length)throw Error("Can only verify message with one literal data packet.");mw(n.packets.stream)&&n.packets.push(...await Jw(n.packets.stream,(e=>e||[])));const o=n.packets.filterByTag(r_.packet.onePassSignature).reverse(),s=n.packets.filterByTag(r_.packet.signature);return o.length&&!s.length&&i_.isStream(n.packets.stream)&&!mw(n.packets.stream)?(await Promise.all(o.map((async e=>{e.correspondingSig=new Promise(((t,r)=>{e.correspondingSigResolve=t,e.correspondingSigReject=r})),e.signatureData=Xw((async()=>(await e.correspondingSig).signatureData)),e.hashed=Jw(await e.hash(e.signatureType,i[0],void 0,!1)),e.hashed.catch((()=>{}))}))),n.packets.stream=Kw(n.packets.stream,(async(e,t)=>{const r=Uw(e),n=Fw(t);try{for(let e=0;e{t.correspondingSigReject(e)})),await n.abort(e)}})),KC(o,i,e,t,!1,r)):KC(s,i,e,t,!1,r)}verifyDetached(e,t,r=new Date,n=d_){const i=this.unwrapCompressed().packets.filterByTag(r_.packet.literalData);if(1!==i.length)throw Error("Can only verify message with one literal data packet.");return KC(e.packets.filterByTag(r_.packet.signature),i,t,r,!0,n)}unwrapCompressed(){const e=this.packets.filterByTag(r_.packet.compressedData);return e.length?new GC(e[0].packets):this}async appendSignature(e,t=d_){await this.packets.read(i_.isUint8Array(e)?e:(await w_(e)).data,HC,t)}write(){return this.packets.write()}armor(e=d_){return __(r_.armor.message,this.write(),null,null,null,e)}}async function YC(e,t,r=null,n=[],i=new Date,o=[],s=[],a=!1,u=d_){const l=new OT,c=null===e.text?r_.signature.binary:r_.signature.text;if(await Promise.all(t.map((async(t,r)=>{const l=o[r];if(!t.isPrivate())throw Error("Need private key for signing");const h=await t.getSigningKey(n[r],i,l,u);return vC(e,t,h.keyPacket,{signatureType:c},i,l,s,a,u)}))).then((e=>{l.push(...e)})),r){const e=r.packets.filterByTag(r_.packet.signature);l.push(...e)}return l}async function KC(e,t,r,n=new Date,i=!1,o=d_){return Promise.all(e.filter((function(e){return["text","binary"].includes(r_.read(r_.signature,e.signatureType))})).map((async function(e){return async function(e,t,r,n=new Date,i=!1,o=d_){let s,a;for(const c of r){const t=c.getKeys(e.issuerKeyID);if(t.length>0){s=c,a=t[0];break}}const u=e instanceof DT?e.correspondingSig:e,l={keyID:e.issuerKeyID,verified:(async()=>{if(!a)throw Error("Could not find signing key with key ID "+e.issuerKeyID.toHex());await e.verify(a.keyPacket,e.signatureType,t[0],n,i,o);const r=await u;if(a.getCreationTime()>r.created)throw Error("Key is newer than the signature");try{await s.getSigningKey(a.getKeyID(),r.created,void 0,o)}catch(e){if(!o.allowInsecureVerificationWithReformattedKeys||!e.message.match(/Signature creation time is in the future/))throw e;await s.getSigningKey(a.getKeyID(),n,void 0,o)}return!0})(),signature:(async()=>{const e=await u,t=new OT;return e&&t.push(e),new cC(t)})()};return l.signature.catch((()=>{})),l.verified.catch((()=>{})),l}(e,t,r,n,i,o)})))}async function qC({armoredMessage:e,binaryMessage:t,config:r,...n}){r={...d_,...r};let i=e||t;if(!i)throw Error("readMessage: must pass options object containing `armoredMessage` or `binaryMessage`");if(e&&!i_.isString(e)&&!i_.isStream(e))throw Error("readMessage: options.armoredMessage must be a string or stream");if(t&&!i_.isUint8Array(t)&&!i_.isStream(t))throw Error("readMessage: options.binaryMessage must be a Uint8Array or stream");const o=Object.keys(n);if(o.length>0)throw Error("Unknown option: "+o.join(", "));const s=i_.isStream(i);if(s&&(await Dw(),i=Ow(i)),e){const{type:e,data:t}=await w_(i,r);if(e!==r_.armor.message)throw Error("Armored text not of type message");i=t}const a=await OT.fromBinary(i,FC,r),u=new GC(a);return u.fromStream=s,u}async function WC({text:e,binary:t,filename:r,date:n=new Date,format:i=(void 0!==e?"utf8":"binary"),...o}){let s=void 0!==e?e:t;if(void 0===s)throw Error("createMessage: must pass options object containing `text` or `binary`");if(e&&!i_.isString(e)&&!i_.isStream(e))throw Error("createMessage: options.text must be a string or stream");if(t&&!i_.isUint8Array(t)&&!i_.isStream(t))throw Error("createMessage: options.binary must be a Uint8Array or stream");const a=Object.keys(o);if(a.length>0)throw Error("Unknown option: "+a.join(", "));const u=i_.isStream(s);u&&(await Dw(),s=Ow(s));const l=new CT(n);void 0!==e?l.setText(s,r_.write(r_.literal,i)):l.setBytes(s,r_.write(r_.literal,i)),void 0!==r&&l.setFilename(r);const c=new OT;c.push(l);const h=new GC(c);return h.fromStream=u,h}class VC{constructor(e,t){if(this.text=i_.removeTrailingSpaces(e).replace(/\r?\n/g,"\r\n"),t&&!(t instanceof cC))throw Error("Invalid signature input");this.signature=t||new cC(new OT)}getSigningKeyIDs(){const e=[];return this.signature.packets.forEach((function(t){e.push(t.issuerKeyID)})),e}async sign(e,t=null,r=[],n=new Date,i=[],o=[],s=d_){const a=new CT;a.setText(this.text);const u=new cC(await YC(a,e,t,r,n,i,o,!0,s));return new VC(this.text,u)}verify(e,t=new Date,r=d_){const n=this.signature.packets.filterByTag(r_.packet.signature),i=new CT;return i.setText(this.text),KC(n,[i],e,t,!0,r)}getText(){return this.text.replace(/\r\n/g,"\n")}armor(e=d_){let t=this.signature.packets.map((function(e){return r_.read(r_.hash,e.hashAlgorithm).toUpperCase()}));t=t.filter((function(e,t,r){return r.indexOf(e)===t}));const r={hash:t.join(),text:this.text,data:this.signature.packets.write()};return __(r_.armor.signed,r,void 0,void 0,void 0,e)}}async function $C({message:e,encryptionKeys:t,signingKeys:r,passwords:n,sessionKey:i,format:o="armored",signature:s=null,wildcard:a=!1,signingKeyIDs:u=[],encryptionKeyIDs:l=[],date:c=new Date,signingUserIDs:h=[],encryptionUserIDs:d=[],signatureNotations:f=[],config:p,...m}){if(rI(p={...d_,...p}),ZC(e),eI(o),t=nI(t),r=nI(r),n=nI(n),u=nI(u),l=nI(l),h=nI(h),d=nI(d),f=nI(f),m.detached)throw Error("The `detached` option has been removed from openpgp.encrypt, separately call openpgp.sign instead. Don't forget to remove the `privateKeys` option as well.");if(m.publicKeys)throw Error("The `publicKeys` option has been removed from openpgp.encrypt, pass `encryptionKeys` instead");if(m.privateKeys)throw Error("The `privateKeys` option has been removed from openpgp.encrypt, pass `signingKeys` instead");if(void 0!==m.armor)throw Error("The `armor` option has been removed from openpgp.encrypt, pass `format` instead.");const g=Object.keys(m);if(g.length>0)throw Error("Unknown option: "+g.join(", "));r||(r=[]);const y=e.fromStream;try{if((r.length||s)&&(e=await e.sign(r,s,u,c,h,f,p)),e=e.compress(await yC("compression",t,c,d,p),p),e=await e.encrypt(t,n,i,a,l,c,d,p),"object"===o)return e;const m="armored"===o;return iI(m?e.armor(p):e.write(),y,m?"utf8":"binary")}catch(e){throw i_.wrapError("Error encrypting message",e)}}async function QC({message:e,decryptionKeys:t,passwords:r,sessionKeys:n,verificationKeys:i,expectSigned:o=!1,format:s="utf8",signature:a=null,date:u=new Date,config:l,...c}){if(rI(l={...d_,...l}),ZC(e),i=nI(i),t=nI(t),r=nI(r),n=nI(n),c.privateKeys)throw Error("The `privateKeys` option has been removed from openpgp.decrypt, pass `decryptionKeys` instead");if(c.publicKeys)throw Error("The `publicKeys` option has been removed from openpgp.decrypt, pass `verificationKeys` instead");const h=Object.keys(c);if(h.length>0)throw Error("Unknown option: "+h.join(", "));try{const c=await e.decrypt(t,r,n,u,l);i||(i=[]);const h={};if(h.signatures=a?await c.verifyDetached(a,i,u,l):await c.verify(i,u,l),h.data="binary"===s?c.getLiteralData():c.getText(),h.filename=c.getFilename(),oI(h,e),o){if(0===i.length)throw Error("Verification keys are required to verify message signatures");if(0===h.signatures.length)throw Error("Message is not signed");h.data=Bw([h.data,Xw((async()=>{await i_.anyPromise(h.signatures.map((e=>e.verified)))}))])}return h.data=await iI(h.data,e.fromStream,s),h}catch(e){throw i_.wrapError("Error decrypting message",e)}}async function JC({message:e,signingKeys:t,format:r="armored",detached:n=!1,signingKeyIDs:i=[],date:o=new Date,signingUserIDs:s=[],signatureNotations:a=[],config:u,...l}){if(rI(u={...d_,...u}),XC(e),eI(r),t=nI(t),i=nI(i),s=nI(s),a=nI(a),l.privateKeys)throw Error("The `privateKeys` option has been removed from openpgp.sign, pass `signingKeys` instead");if(void 0!==l.armor)throw Error("The `armor` option has been removed from openpgp.sign, pass `format` instead.");const c=Object.keys(l);if(c.length>0)throw Error("Unknown option: "+c.join(", "));if(e instanceof VC&&"binary"===r)throw Error("Cannot return signed cleartext message in binary format");if(e instanceof VC&&n)throw Error("Cannot detach-sign a cleartext message");if(!t||0===t.length)throw Error("No signing keys provided");try{let l;if(l=n?await e.signDetached(t,void 0,i,o,s,a,u):await e.sign(t,void 0,i,o,s,a,u),"object"===r)return l;const c="armored"===r;return l=c?l.armor(u):l.write(),n&&(l=Kw(e.packets.write(),(async(e,t)=>{await Promise.all([zw(l,t),Jw(e).catch((()=>{}))])}))),iI(l,e.fromStream,c?"utf8":"binary")}catch(e){throw i_.wrapError("Error signing message",e)}}function ZC(e){if(!(e instanceof GC))throw Error("Parameter [message] needs to be of type Message")}function XC(e){if(!(e instanceof VC||e instanceof GC))throw Error("Parameter [message] needs to be of type Message or CleartextMessage")}function eI(e){if("armored"!==e&&"binary"!==e&&"object"!==e)throw Error("Unsupported format "+e)}const tI=Object.keys(d_).length;function rI(e){const t=Object.keys(e);if(t.length!==tI)for(const r of t)if(void 0===d_[r])throw Error("Unknown config property: "+r)}function nI(e){return e&&!i_.isArray(e)&&(e=[e]),e}async function iI(e,t,r="utf8"){const n=i_.isStream(e);return"array"===n?Jw(e):"node"===t?(e=Sw(e),"binary"!==r&&e.setEncoding(r),e):"web"===t&&"ponyfill"===n?Iw(e):e}function oI(e,t){e.data=Kw(t.packets.stream,(async(t,r)=>{await zw(e.data,r,{preventClose:!0});const n=Fw(r);try{await Jw(t,(e=>e)),await n.close()}catch(e){await n.abort(e)}}))}function sI(e,t,r){switch(t){case"object":return e;case"armored":return e.armor(r);case"binary":return e.write();default:throw Error("Unsupported format "+t)}}const aI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol:e=>`Symbol(${e})`;function uI(){}const lI="undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:void 0;function cI(e){return"object"==typeof e&&null!==e||"function"==typeof e}const hI=uI,dI=Promise,fI=Promise.prototype.then,pI=Promise.resolve.bind(dI),mI=Promise.reject.bind(dI);function gI(e){return new dI(e)}function yI(e){return pI(e)}function vI(e){return mI(e)}function bI(e,t,r){return fI.call(e,t,r)}function wI(e,t,r){bI(bI(e,t,r),void 0,hI)}function _I(e,t){wI(e,t)}function EI(e,t){wI(e,void 0,t)}function AI(e,t,r){return bI(e,t,r)}function MI(e){bI(e,void 0,hI)}const SI=(()=>{const e=lI&&lI.queueMicrotask;if("function"==typeof e)return e;const t=yI(void 0);return e=>bI(t,e)})();function xI(e,t,r){if("function"!=typeof e)throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function kI(e,t,r){try{return yI(xI(e,t,r))}catch(e){return vI(e)}}class TI{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(e){const t=this._back;let r=t;16383===t._elements.length&&(r={_elements:[],_next:void 0}),t._elements.push(e),r!==t&&(this._back=r,t._next=r),++this._size}shift(){const e=this._front;let t=e;const r=this._cursor;let n=r+1;const i=e._elements,o=i[r];return 16384===n&&(t=e._next,n=0),--this._size,this._cursor=n,e!==t&&(this._front=t),i[r]=void 0,o}forEach(e){let t=this._cursor,r=this._front,n=r._elements;for(;!(t===n.length&&void 0===r._next||t===n.length&&(r=r._next,n=r._elements,t=0,0===n.length));)e(n[t]),++t}peek(){const e=this._front,t=this._cursor;return e._elements[t]}}function CI(e,t){e._ownerReadableStream=t,t._reader=e,"readable"===t._state?PI(e):"closed"===t._state?function(e){PI(e),OI(e)}(e):DI(e,t._storedError)}function II(e,t){return hP(e._ownerReadableStream,t)}function NI(e){"readable"===e._ownerReadableStream._state?LI(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):function(e,t){DI(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness"))}(e),e._ownerReadableStream._reader=void 0,e._ownerReadableStream=void 0}function RI(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function PI(e){e._closedPromise=gI(((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r}))}function DI(e,t){PI(e),LI(e,t)}function LI(e,t){void 0!==e._closedPromise_reject&&(MI(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function OI(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}const jI=aI("[[AbortSteps]]"),BI=aI("[[ErrorSteps]]"),UI=aI("[[CancelSteps]]"),FI=aI("[[PullSteps]]"),zI=Number.isFinite||function(e){return"number"==typeof e&&isFinite(e)},HI=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function GI(e,t){if(void 0!==e&&"object"!=typeof(r=e)&&"function"!=typeof r)throw new TypeError(t+" is not an object.");var r}function YI(e,t){if("function"!=typeof e)throw new TypeError(t+" is not a function.")}function KI(e,t){if(!function(e){return"object"==typeof e&&null!==e||"function"==typeof e}(e))throw new TypeError(t+" is not an object.")}function qI(e,t,r){if(void 0===e)throw new TypeError(`Parameter ${t} is required in '${r}'.`)}function WI(e,t,r){if(void 0===e)throw new TypeError(`${t} is required in '${r}'.`)}function VI(e){return Number(e)}function $I(e){return 0===e?0:e}function QI(e,t){const r=Number.MAX_SAFE_INTEGER;let n=Number(e);if(n=$I(n),!zI(n))throw new TypeError(t+" is not a finite number");if(n=function(e){return $I(HI(e))}(n),n<0||n>r)throw new TypeError(`${t} is outside the accepted range of 0 to ${r}, inclusive`);return zI(n)&&0!==n?n:0}function JI(e,t){if(!lP(e))throw new TypeError(t+" is not a ReadableStream.")}function ZI(e){return new nN(e)}function XI(e,t){e._reader._readRequests.push(t)}function eN(e,t,r){const n=e._reader._readRequests.shift();r?n._closeSteps():n._chunkSteps(t)}function tN(e){return e._reader._readRequests.length}function rN(e){const t=e._reader;return void 0!==t&&!!iN(t)}class nN{constructor(e){if(qI(e,1,"ReadableStreamDefaultReader"),JI(e,"First parameter"),cP(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");CI(this,e),this._readRequests=new TI}get closed(){return iN(this)?this._closedPromise:vI(sN("closed"))}cancel(e){return iN(this)?void 0===this._ownerReadableStream?vI(RI("cancel")):II(this,e):vI(sN("cancel"))}read(){if(!iN(this))return vI(sN("read"));if(void 0===this._ownerReadableStream)return vI(RI("read from"));let e,t;const r=gI(((r,n)=>{e=r,t=n}));return oN(this,{_chunkSteps:t=>e({value:t,done:!1}),_closeSteps:()=>e({value:void 0,done:!0}),_errorSteps:e=>t(e)}),r}releaseLock(){if(!iN(this))throw sN("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");NI(this)}}}function iN(e){return!!cI(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")}function oN(e,t){const r=e._ownerReadableStream;r._disturbed=!0,"closed"===r._state?t._closeSteps():"errored"===r._state?t._errorSteps(r._storedError):r._readableStreamController[FI](t)}function sN(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}let aN;Object.defineProperties(nN.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof aI.toStringTag&&Object.defineProperty(nN.prototype,aI.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0}),"symbol"==typeof aI.asyncIterator&&(aN={[aI.asyncIterator](){return this}},Object.defineProperty(aN,aI.asyncIterator,{enumerable:!1}));class uN{constructor(e,t){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=e,this._preventCancel=t}next(){const e=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?AI(this._ongoingPromise,e,e):e(),this._ongoingPromise}return(e){const t=()=>this._returnSteps(e);return this._ongoingPromise?AI(this._ongoingPromise,t,t):t()}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});const e=this._reader;if(void 0===e._ownerReadableStream)return vI(RI("iterate"));let t,r;const n=gI(((e,n)=>{t=e,r=n}));return oN(e,{_chunkSteps:e=>{this._ongoingPromise=void 0,SI((()=>t({value:e,done:!1})))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,NI(e),t({value:void 0,done:!0})},_errorSteps:t=>{this._ongoingPromise=void 0,this._isFinished=!0,NI(e),r(t)}}),n}_returnSteps(e){if(this._isFinished)return Promise.resolve({value:e,done:!0});this._isFinished=!0;const t=this._reader;if(void 0===t._ownerReadableStream)return vI(RI("finish iterating"));if(!this._preventCancel){const r=II(t,e);return NI(t),AI(r,(()=>({value:e,done:!0})))}return NI(t),yI({value:e,done:!0})}}const lN={next(){return cN(this)?this._asyncIteratorImpl.next():vI(hN("next"))},return(e){return cN(this)?this._asyncIteratorImpl.return(e):vI(hN("return"))}};function cN(e){return!!cI(e)&&!!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl")}function hN(e){return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}void 0!==aN&&Object.setPrototypeOf(lN,aN);const dN=Number.isNaN||function(e){return e!=e};function fN(e){return!!function(e){return"number"==typeof e&&(!dN(e)&&!(e<0))}(e)&&e!==1/0}function pN(e){const t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function mN(e,t,r){if(!fN(r=Number(r)))throw new RangeError("Size must be a finite, non-NaN, non-negative number.");e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function gN(e){e._queue=new TI,e._queueTotalSize=0}function yN(e){return e.slice()}class vN{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!_N(this))throw ON("view");return this._view}respond(e){if(!_N(this))throw ON("respond");if(qI(e,1,"respond"),e=QI(e,"First parameter"),void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");this._view.buffer,function(e,t){if(!fN(t=Number(t)))throw new RangeError("bytesWritten must be a finite");NN(e,t)}(this._associatedReadableByteStreamController,e)}respondWithNewView(e){if(!_N(this))throw ON("respondWithNewView");if(qI(e,1,"respondWithNewView"),!ArrayBuffer.isView(e))throw new TypeError("You can only respond with array buffer views");if(0===e.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(void 0===this._associatedReadableByteStreamController)throw new TypeError("This BYOB request has been invalidated");!function(e,t){const r=e._pendingPullIntos.peek();if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.byteLength!==t.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");r.buffer=t.buffer,NN(e,t.byteLength)}(this._associatedReadableByteStreamController,e)}}Object.defineProperties(vN.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),"symbol"==typeof aI.toStringTag&&Object.defineProperty(vN.prototype,aI.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class bN{constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!wN(this))throw jN("byobRequest");if(null===this._byobRequest&&this._pendingPullIntos.length>0){const e=this._pendingPullIntos.peek(),t=new Uint8Array(e.buffer,e.byteOffset+e.bytesFilled,e.byteLength-e.bytesFilled),r=Object.create(vN.prototype);!function(e,t,r){e._associatedReadableByteStreamController=t,e._view=r}(r,this,t),this._byobRequest=r}return this._byobRequest}get desiredSize(){if(!wN(this))throw jN("desiredSize");return LN(this)}close(){if(!wN(this))throw jN("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");const e=this._controlledReadableByteStream._state;if("readable"!==e)throw new TypeError(`The stream (in ${e} state) is not in the readable state and cannot be closed`);!function(e){const t=e._controlledReadableByteStream;if(!e._closeRequested&&"readable"===t._state)if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0&&e._pendingPullIntos.peek().bytesFilled>0){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");throw DN(e,t),t}PN(e),dP(t)}}(this)}enqueue(e){if(!wN(this))throw jN("enqueue");if(qI(e,1,"enqueue"),!ArrayBuffer.isView(e))throw new TypeError("chunk must be an array buffer view");if(0===e.byteLength)throw new TypeError("chunk must have non-zero byteLength");if(0===e.buffer.byteLength)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");const t=this._controlledReadableByteStream._state;if("readable"!==t)throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be enqueued to`);!function(e,t){const r=e._controlledReadableByteStream;if(e._closeRequested||"readable"!==r._state)return;const n=t.buffer,i=t.byteOffset,o=t.byteLength,s=n;rN(r)?0===tN(r)?SN(e,s,i,o):eN(r,new Uint8Array(s,i,o),!1):FN(r)?(SN(e,s,i,o),IN(e)):SN(e,s,i,o),EN(e)}(this,e)}error(e){if(!wN(this))throw jN("error");DN(this,e)}[UI](e){this._pendingPullIntos.length>0&&(this._pendingPullIntos.peek().bytesFilled=0),gN(this);const t=this._cancelAlgorithm(e);return PN(this),t}[FI](e){const t=this._controlledReadableByteStream;if(this._queueTotalSize>0){const t=this._queue.shift();this._queueTotalSize-=t.byteLength,TN(this);const r=new Uint8Array(t.buffer,t.byteOffset,t.byteLength);return void e._chunkSteps(r)}const r=this._autoAllocateChunkSize;if(void 0!==r){let n;try{n=new ArrayBuffer(r)}catch(t){return void e._errorSteps(t)}const i={buffer:n,byteOffset:0,byteLength:r,bytesFilled:0,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(i)}XI(t,e),EN(this)}}function wN(e){return!!cI(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")}function _N(e){return!!cI(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")}function EN(e){const t=function(e){const t=e._controlledReadableByteStream;if("readable"!==t._state)return!1;if(e._closeRequested)return!1;if(!e._started)return!1;if(rN(t)&&tN(t)>0)return!0;if(FN(t)&&UN(t)>0)return!0;return LN(e)>0}(e);t&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,wI(e._pullAlgorithm(),(()=>{e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,EN(e))}),(t=>{DN(e,t)}))))}function AN(e,t){let r=!1;"closed"===e._state&&(r=!0);const n=MN(t);"default"===t.readerType?eN(e,n,r):function(e,t,r){const n=e._reader._readIntoRequests.shift();r?n._closeSteps(t):n._chunkSteps(t)}(e,n,r)}function MN(e){const t=e.bytesFilled,r=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/r)}function SN(e,t,r,n){e._queue.push({buffer:t,byteOffset:r,byteLength:n}),e._queueTotalSize+=n}function xN(e,t){const r=t.elementSize,n=t.bytesFilled-t.bytesFilled%r,i=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),o=t.bytesFilled+i,s=o-o%r;let a=i,u=!1;s>n&&(a=s-t.bytesFilled,u=!0);const l=e._queue;for(;a>0;){const r=l.peek(),n=Math.min(a,r.byteLength),i=t.byteOffset+t.bytesFilled;c=t.buffer,h=i,d=r.buffer,f=r.byteOffset,p=n,new Uint8Array(c).set(new Uint8Array(d,f,p),h),r.byteLength===n?l.shift():(r.byteOffset+=n,r.byteLength-=n),e._queueTotalSize-=n,kN(e,n,t),a-=n}var c,h,d,f,p;return u}function kN(e,t,r){CN(e),r.bytesFilled+=t}function TN(e){0===e._queueTotalSize&&e._closeRequested?(PN(e),dP(e._controlledReadableByteStream)):EN(e)}function CN(e){null!==e._byobRequest&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function IN(e){for(;e._pendingPullIntos.length>0;){if(0===e._queueTotalSize)return;const t=e._pendingPullIntos.peek();xN(e,t)&&(RN(e),AN(e._controlledReadableByteStream,t))}}function NN(e,t){const r=e._pendingPullIntos.peek();if("closed"===e._controlledReadableByteStream._state){if(0!==t)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream");!function(e,t){t.buffer=t.buffer;const r=e._controlledReadableByteStream;if(FN(r))for(;UN(r)>0;)AN(r,RN(e))}(e,r)}else!function(e,t,r){if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range");if(kN(e,t,r),r.bytesFilled0){const t=r.byteOffset+r.bytesFilled,i=r.buffer.slice(t-n,t);SN(e,i,0,i.byteLength)}r.buffer=r.buffer,r.bytesFilled-=n,AN(e._controlledReadableByteStream,r),IN(e)}(e,t,r);EN(e)}function RN(e){const t=e._pendingPullIntos.shift();return CN(e),t}function PN(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function DN(e,t){const r=e._controlledReadableByteStream;"readable"===r._state&&(function(e){CN(e),e._pendingPullIntos=new TI}(e),gN(e),PN(e),fP(r,t))}function LN(e){const t=e._controlledReadableByteStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function ON(e){return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function jN(e){return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function BN(e,t){e._reader._readIntoRequests.push(t)}function UN(e){return e._reader._readIntoRequests.length}function FN(e){const t=e._reader;return void 0!==t&&!!HN(t)}Object.defineProperties(bN.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof aI.toStringTag&&Object.defineProperty(bN.prototype,aI.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class zN{constructor(e){if(qI(e,1,"ReadableStreamBYOBReader"),JI(e,"First parameter"),cP(e))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!wN(e._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");CI(this,e),this._readIntoRequests=new TI}get closed(){return HN(this)?this._closedPromise:vI(GN("closed"))}cancel(e){return HN(this)?void 0===this._ownerReadableStream?vI(RI("cancel")):II(this,e):vI(GN("cancel"))}read(e){if(!HN(this))return vI(GN("read"));if(!ArrayBuffer.isView(e))return vI(new TypeError("view must be an array buffer view"));if(0===e.byteLength)return vI(new TypeError("view must have non-zero byteLength"));if(0===e.buffer.byteLength)return vI(new TypeError("view's buffer must have non-zero byteLength"));if(void 0===this._ownerReadableStream)return vI(RI("read from"));let t,r;const n=gI(((e,n)=>{t=e,r=n}));return function(e,t,r){const n=e._ownerReadableStream;n._disturbed=!0,"errored"===n._state?r._errorSteps(n._storedError):function(e,t,r){const n=e._controlledReadableByteStream;let i=1;t.constructor!==DataView&&(i=t.constructor.BYTES_PER_ELEMENT);const o=t.constructor,s={buffer:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength,bytesFilled:0,elementSize:i,viewConstructor:o,readerType:"byob"};if(e._pendingPullIntos.length>0)return e._pendingPullIntos.push(s),void BN(n,r);if("closed"!==n._state){if(e._queueTotalSize>0){if(xN(e,s)){const t=MN(s);return TN(e),void r._chunkSteps(t)}if(e._closeRequested){const t=new TypeError("Insufficient bytes to fill elements in the given buffer");return DN(e,t),void r._errorSteps(t)}}e._pendingPullIntos.push(s),BN(n,r),EN(e)}else{const e=new o(s.buffer,s.byteOffset,0);r._closeSteps(e)}}(n._readableStreamController,t,r)}(this,e,{_chunkSteps:e=>t({value:e,done:!1}),_closeSteps:e=>t({value:e,done:!0}),_errorSteps:e=>r(e)}),n}releaseLock(){if(!HN(this))throw GN("releaseLock");if(void 0!==this._ownerReadableStream){if(this._readIntoRequests.length>0)throw new TypeError("Tried to release a reader lock when that reader has pending read() calls un-settled");NI(this)}}}function HN(e){return!!cI(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")}function GN(e){return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function YN(e,t){const{highWaterMark:r}=e;if(void 0===r)return t;if(dN(r)||r<0)throw new RangeError("Invalid highWaterMark");return r}function KN(e){const{size:t}=e;return t||(()=>1)}function qN(e,t){GI(e,t);const r=null==e?void 0:e.highWaterMark,n=null==e?void 0:e.size;return{highWaterMark:void 0===r?void 0:VI(r),size:void 0===n?void 0:WN(n,t+" has member 'size' that")}}function WN(e,t){return YI(e,t),t=>VI(e(t))}function VN(e,t,r){return YI(e,r),r=>kI(e,t,[r])}function $N(e,t,r){return YI(e,r),()=>kI(e,t,[])}function QN(e,t,r){return YI(e,r),r=>xI(e,t,[r])}function JN(e,t,r){return YI(e,r),(r,n)=>kI(e,t,[r,n])}function ZN(e,t){if(!rR(e))throw new TypeError(t+" is not a WritableStream.")}Object.defineProperties(zN.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),"symbol"==typeof aI.toStringTag&&Object.defineProperty(zN.prototype,aI.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});class XN{constructor(e={},t={}){void 0===e?e=null:KI(e,"First parameter");const r=qN(t,"Second parameter"),n=function(e,t){GI(e,t);const r=null==e?void 0:e.abort,n=null==e?void 0:e.close,i=null==e?void 0:e.start,o=null==e?void 0:e.type,s=null==e?void 0:e.write;return{abort:void 0===r?void 0:VN(r,e,t+" has member 'abort' that"),close:void 0===n?void 0:$N(n,e,t+" has member 'close' that"),start:void 0===i?void 0:QN(i,e,t+" has member 'start' that"),write:void 0===s?void 0:JN(s,e,t+" has member 'write' that"),type:o}}(e,"First parameter");if(tR(this),void 0!==n.type)throw new RangeError("Invalid type is specified");const i=KN(r);!function(e,t,r,n){const i=Object.create(bR.prototype);let o=()=>{},s=()=>yI(void 0),a=()=>yI(void 0),u=()=>yI(void 0);void 0!==t.start&&(o=()=>t.start(i)),void 0!==t.write&&(s=e=>t.write(e,i)),void 0!==t.close&&(a=()=>t.close()),void 0!==t.abort&&(u=e=>t.abort(e)),wR(e,i,o,s,a,u,r,n)}(this,n,YN(r,1),i)}get locked(){if(!rR(this))throw kR("locked");return nR(this)}abort(e){return rR(this)?nR(this)?vI(new TypeError("Cannot abort a stream that already has a writer")):iR(this,e):vI(kR("abort"))}close(){return rR(this)?nR(this)?vI(new TypeError("Cannot close a stream that already has a writer")):lR(this)?vI(new TypeError("Cannot close an already-closing stream")):oR(this):vI(kR("close"))}getWriter(){if(!rR(this))throw kR("getWriter");return eR(this)}}function eR(e){return new dR(e)}function tR(e){e._state="writable",e._storedError=void 0,e._writer=void 0,e._writableStreamController=void 0,e._writeRequests=new TI,e._inFlightWriteRequest=void 0,e._closeRequest=void 0,e._inFlightCloseRequest=void 0,e._pendingAbortRequest=void 0,e._backpressure=!1}function rR(e){return!!cI(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")}function nR(e){return void 0!==e._writer}function iR(e,t){const r=e._state;if("closed"===r||"errored"===r)return yI(void 0);if(void 0!==e._pendingAbortRequest)return e._pendingAbortRequest._promise;let n=!1;"erroring"===r&&(n=!0,t=void 0);const i=gI(((r,i)=>{e._pendingAbortRequest={_promise:void 0,_resolve:r,_reject:i,_reason:t,_wasAlreadyErroring:n}}));return e._pendingAbortRequest._promise=i,n||aR(e,t),i}function oR(e){const t=e._state;if("closed"===t||"errored"===t)return vI(new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));const r=gI(((t,r)=>{const n={_resolve:t,_reject:r};e._closeRequest=n})),n=e._writer;var i;return void 0!==n&&e._backpressure&&"writable"===t&&BR(n),mN(i=e._writableStreamController,vR,0),AR(i),r}function sR(e,t){"writable"!==e._state?uR(e):aR(e,t)}function aR(e,t){const r=e._writableStreamController;e._state="erroring",e._storedError=t;const n=e._writer;void 0!==n&&mR(n,t),!function(e){return void 0!==e._inFlightWriteRequest||void 0!==e._inFlightCloseRequest}(e)&&r._started&&uR(e)}function uR(e){e._state="errored",e._writableStreamController[BI]();const t=e._storedError;if(e._writeRequests.forEach((e=>{e._reject(t)})),e._writeRequests=new TI,void 0===e._pendingAbortRequest)return void cR(e);const r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring)return r._reject(t),void cR(e);wI(e._writableStreamController[jI](r._reason),(()=>{r._resolve(),cR(e)}),(t=>{r._reject(t),cR(e)}))}function lR(e){return void 0!==e._closeRequest||void 0!==e._inFlightCloseRequest}function cR(e){void 0!==e._closeRequest&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);const t=e._writer;void 0!==t&&RR(t,e._storedError)}function hR(e,t){const r=e._writer;void 0!==r&&t!==e._backpressure&&(t?function(e){DR(e)}(r):BR(r)),e._backpressure=t}Object.defineProperties(XN.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof aI.toStringTag&&Object.defineProperty(XN.prototype,aI.toStringTag,{value:"WritableStream",configurable:!0});class dR{constructor(e){if(qI(e,1,"WritableStreamDefaultWriter"),ZN(e,"First parameter"),nR(e))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=e,e._writer=this;const t=e._state;if("writable"===t)!lR(e)&&e._backpressure?DR(this):OR(this),IR(this);else if("erroring"===t)LR(this,e._storedError),IR(this);else if("closed"===t)OR(this),IR(this),PR(this);else{const t=e._storedError;LR(this,t),NR(this,t)}}get closed(){return fR(this)?this._closedPromise:vI(TR("closed"))}get desiredSize(){if(!fR(this))throw TR("desiredSize");if(void 0===this._ownerWritableStream)throw CR("desiredSize");return function(e){const t=e._ownerWritableStream,r=t._state;return"errored"===r||"erroring"===r?null:"closed"===r?0:ER(t._writableStreamController)}(this)}get ready(){return fR(this)?this._readyPromise:vI(TR("ready"))}abort(e){return fR(this)?void 0===this._ownerWritableStream?vI(CR("abort")):function(e,t){return iR(e._ownerWritableStream,t)}(this,e):vI(TR("abort"))}close(){if(!fR(this))return vI(TR("close"));const e=this._ownerWritableStream;return void 0===e?vI(CR("close")):lR(e)?vI(new TypeError("Cannot close an already-closing stream")):pR(this)}releaseLock(){if(!fR(this))throw TR("releaseLock");void 0!==this._ownerWritableStream&&gR(this)}write(e){return fR(this)?void 0===this._ownerWritableStream?vI(CR("write to")):yR(this,e):vI(TR("write"))}}function fR(e){return!!cI(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")}function pR(e){return oR(e._ownerWritableStream)}function mR(e,t){"pending"===e._readyPromiseState?jR(e,t):function(e,t){LR(e,t)}(e,t)}function gR(e){const t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");mR(e,r),function(e,t){"pending"===e._closedPromiseState?RR(e,t):function(e,t){NR(e,t)}(e,t)}(e,r),t._writer=void 0,e._ownerWritableStream=void 0}function yR(e,t){const r=e._ownerWritableStream,n=r._writableStreamController,i=function(e,t){try{return e._strategySizeAlgorithm(t)}catch(t){return MR(e,t),1}}(n,t);if(r!==e._ownerWritableStream)return vI(CR("write to"));const o=r._state;if("errored"===o)return vI(r._storedError);if(lR(r)||"closed"===o)return vI(new TypeError("The stream is closing or closed and cannot be written to"));if("erroring"===o)return vI(r._storedError);const s=function(e){return gI(((t,r)=>{const n={_resolve:t,_reject:r};e._writeRequests.push(n)}))}(r);return function(e,t,r){try{mN(e,t,r)}catch(t){return void MR(e,t)}const n=e._controlledWritableStream;lR(n)||"writable"!==n._state||hR(n,SR(e)),AR(e)}(n,t,i),s}Object.defineProperties(dR.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),"symbol"==typeof aI.toStringTag&&Object.defineProperty(dR.prototype,aI.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});const vR={};class bR{constructor(){throw new TypeError("Illegal constructor")}error(e){if(!function(e){return!!cI(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")}(this))throw new TypeError("WritableStreamDefaultController.prototype.error can only be used on a WritableStreamDefaultController");"writable"===this._controlledWritableStream._state&&xR(this,e)}[jI](e){const t=this._abortAlgorithm(e);return _R(this),t}[BI](){gN(this)}}function wR(e,t,r,n,i,o,s,a){t._controlledWritableStream=e,e._writableStreamController=t,t._queue=void 0,t._queueTotalSize=void 0,gN(t),t._started=!1,t._strategySizeAlgorithm=a,t._strategyHWM=s,t._writeAlgorithm=n,t._closeAlgorithm=i,t._abortAlgorithm=o;const u=SR(t);hR(e,u),wI(yI(r()),(()=>{t._started=!0,AR(t)}),(r=>{t._started=!0,sR(e,r)}))}function _R(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function ER(e){return e._strategyHWM-e._queueTotalSize}function AR(e){const t=e._controlledWritableStream;if(!e._started)return;if(void 0!==t._inFlightWriteRequest)return;if("erroring"===t._state)return void uR(t);if(0===e._queue.length)return;const r=e._queue.peek().value;r===vR?function(e){const t=e._controlledWritableStream;(function(e){e._inFlightCloseRequest=e._closeRequest,e._closeRequest=void 0})(t),pN(e);const r=e._closeAlgorithm();_R(e),wI(r,(()=>{!function(e){e._inFlightCloseRequest._resolve(void 0),e._inFlightCloseRequest=void 0,"erroring"===e._state&&(e._storedError=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._resolve(),e._pendingAbortRequest=void 0)),e._state="closed";const t=e._writer;void 0!==t&&PR(t)}(t)}),(e=>{!function(e,t){e._inFlightCloseRequest._reject(t),e._inFlightCloseRequest=void 0,void 0!==e._pendingAbortRequest&&(e._pendingAbortRequest._reject(t),e._pendingAbortRequest=void 0),sR(e,t)}(t,e)}))}(e):function(e,t){const r=e._controlledWritableStream;!function(e){e._inFlightWriteRequest=e._writeRequests.shift()}(r);wI(e._writeAlgorithm(t),(()=>{!function(e){e._inFlightWriteRequest._resolve(void 0),e._inFlightWriteRequest=void 0}(r);const t=r._state;if(pN(e),!lR(r)&&"writable"===t){const t=SR(e);hR(r,t)}AR(e)}),(t=>{"writable"===r._state&&_R(e),function(e,t){e._inFlightWriteRequest._reject(t),e._inFlightWriteRequest=void 0,sR(e,t)}(r,t)}))}(e,r)}function MR(e,t){"writable"===e._controlledWritableStream._state&&xR(e,t)}function SR(e){return ER(e)<=0}function xR(e,t){const r=e._controlledWritableStream;_R(e),aR(r,t)}function kR(e){return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function TR(e){return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function CR(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function IR(e){e._closedPromise=gI(((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"}))}function NR(e,t){IR(e),RR(e,t)}function RR(e,t){void 0!==e._closedPromise_reject&&(MI(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function PR(e){void 0!==e._closedPromise_resolve&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function DR(e){e._readyPromise=gI(((t,r)=>{e._readyPromise_resolve=t,e._readyPromise_reject=r})),e._readyPromiseState="pending"}function LR(e,t){DR(e),jR(e,t)}function OR(e){DR(e),BR(e)}function jR(e,t){void 0!==e._readyPromise_reject&&(MI(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function BR(e){void 0!==e._readyPromise_resolve&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(bR.prototype,{error:{enumerable:!0}}),"symbol"==typeof aI.toStringTag&&Object.defineProperty(bR.prototype,aI.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});const UR="undefined"!=typeof DOMException?DOMException:void 0,FR=function(e){if("function"!=typeof e&&"object"!=typeof e)return!1;try{return new e,!0}catch(e){return!1}}(UR)?UR:function(){const e=function(e,t){this.message=e||"",this.name=t||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return Object.defineProperty(e.prototype=Object.create(Error.prototype),"constructor",{value:e,writable:!0,configurable:!0}),e}();function zR(e,t,r,n,i,o){const s=ZI(e),a=eR(t);e._disturbed=!0;let u=!1,l=yI(void 0);return gI(((c,h)=>{let d;if(void 0!==o){if(d=()=>{const r=new FR("Aborted","AbortError"),o=[];n||o.push((()=>"writable"===t._state?iR(t,r):yI(void 0))),i||o.push((()=>"readable"===e._state?hP(e,r):yI(void 0))),m((()=>Promise.all(o.map((e=>e())))),!0,r)},o.aborted)return void d();o.addEventListener("abort",d)}if(p(e,s._closedPromise,(e=>{n?g(!0,e):m((()=>iR(t,e)),!0,e)})),p(t,a._closedPromise,(t=>{i?g(!0,t):m((()=>hP(e,t)),!0,t)})),function(e,t,r){"closed"===e._state?r():_I(t,r)}(e,s._closedPromise,(()=>{r?g():m((()=>function(e){const t=e._ownerWritableStream,r=t._state;return lR(t)||"closed"===r?yI(void 0):"errored"===r?vI(t._storedError):pR(e)}(a)))})),lR(t)||"closed"===t._state){const t=new TypeError("the destination writable stream closed before all data could be piped to it");i?g(!0,t):m((()=>hP(e,t)),!0,t)}function f(){const e=l;return bI(l,(()=>e!==l?f():void 0))}function p(e,t,r){"errored"===e._state?r(e._storedError):EI(t,r)}function m(e,r,n){function i(){wI(e(),(()=>y(r,n)),(e=>y(!0,e)))}u||(u=!0,"writable"!==t._state||lR(t)?i():_I(f(),i))}function g(e,r){u||(u=!0,"writable"!==t._state||lR(t)?y(e,r):_I(f(),(()=>y(e,r))))}function y(e,t){gR(a),NI(s),void 0!==o&&o.removeEventListener("abort",d),e?h(t):c(void 0)}MI(gI(((e,t)=>{!function r(n){n?e():bI(u?yI(!0):bI(a._readyPromise,(()=>gI(((e,t)=>{oN(s,{_chunkSteps:t=>{l=bI(yR(a,t),void 0,uI),e(!1)},_closeSteps:()=>e(!0),_errorSteps:t})})))),r,t)}(!1)})))}))}class HR{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!GR(this))throw XR("desiredSize");return QR(this)}close(){if(!GR(this))throw XR("close");if(!JR(this))throw new TypeError("The stream is not in a state that permits close");WR(this)}enqueue(e){if(!GR(this))throw XR("enqueue");if(!JR(this))throw new TypeError("The stream is not in a state that permits enqueue");return VR(this,e)}error(e){if(!GR(this))throw XR("error");$R(this,e)}[UI](e){gN(this);const t=this._cancelAlgorithm(e);return qR(this),t}[FI](e){const t=this._controlledReadableStream;if(this._queue.length>0){const r=pN(this);this._closeRequested&&0===this._queue.length?(qR(this),dP(t)):YR(this),e._chunkSteps(r)}else XI(t,e),YR(this)}}function GR(e){return!!cI(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")}function YR(e){KR(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,wI(e._pullAlgorithm(),(()=>{e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,YR(e))}),(t=>{$R(e,t)}))))}function KR(e){const t=e._controlledReadableStream;return!!JR(e)&&(!!e._started&&(!!(cP(t)&&tN(t)>0)||QR(e)>0))}function qR(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function WR(e){if(!JR(e))return;const t=e._controlledReadableStream;e._closeRequested=!0,0===e._queue.length&&(qR(e),dP(t))}function VR(e,t){if(!JR(e))return;const r=e._controlledReadableStream;if(cP(r)&&tN(r)>0)eN(r,t,!1);else{let r;try{r=e._strategySizeAlgorithm(t)}catch(t){throw $R(e,t),t}try{mN(e,t,r)}catch(t){throw $R(e,t),t}}YR(e)}function $R(e,t){const r=e._controlledReadableStream;"readable"===r._state&&(gN(e),qR(e),fP(r,t))}function QR(e){const t=e._controlledReadableStream._state;return"errored"===t?null:"closed"===t?0:e._strategyHWM-e._queueTotalSize}function JR(e){const t=e._controlledReadableStream._state;return!e._closeRequested&&"readable"===t}function ZR(e,t,r,n,i,o,s){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,gN(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=s,t._strategyHWM=o,t._pullAlgorithm=n,t._cancelAlgorithm=i,e._readableStreamController=t,wI(yI(r()),(()=>{t._started=!0,YR(t)}),(e=>{$R(t,e)}))}function XR(e){return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function eP(e,t,r){return YI(e,r),r=>kI(e,t,[r])}function tP(e,t,r){return YI(e,r),r=>kI(e,t,[r])}function rP(e,t,r){return YI(e,r),r=>xI(e,t,[r])}function nP(e,t){if("bytes"!=(e=""+e))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}function iP(e,t){if("byob"!=(e=""+e))throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}function oP(e,t){GI(e,t);const r=null==e?void 0:e.preventAbort,n=null==e?void 0:e.preventCancel,i=null==e?void 0:e.preventClose,o=null==e?void 0:e.signal;return void 0!==o&&function(e,t){if(!function(e){if("object"!=typeof e||null===e)return!1;try{return"boolean"==typeof e.aborted}catch(e){return!1}}(e))throw new TypeError(t+" is not an AbortSignal.")}(o,t+" has member 'signal' that"),{preventAbort:!!r,preventCancel:!!n,preventClose:!!i,signal:o}}Object.defineProperties(HR.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof aI.toStringTag&&Object.defineProperty(HR.prototype,aI.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class sP{constructor(e={},t={}){void 0===e?e=null:KI(e,"First parameter");const r=qN(t,"Second parameter"),n=function(e,t){GI(e,t);const r=e,n=null==r?void 0:r.autoAllocateChunkSize,i=null==r?void 0:r.cancel,o=null==r?void 0:r.pull,s=null==r?void 0:r.start,a=null==r?void 0:r.type;return{autoAllocateChunkSize:void 0===n?void 0:QI(n,t+" has member 'autoAllocateChunkSize' that"),cancel:void 0===i?void 0:eP(i,r,t+" has member 'cancel' that"),pull:void 0===o?void 0:tP(o,r,t+" has member 'pull' that"),start:void 0===s?void 0:rP(s,r,t+" has member 'start' that"),type:void 0===a?void 0:nP(a,t+" has member 'type' that")}}(e,"First parameter");if(uP(this),"bytes"===n.type){if(void 0!==r.size)throw new RangeError("The strategy for a byte stream cannot have a size function");!function(e,t,r){const n=Object.create(bN.prototype);let i=()=>{},o=()=>yI(void 0),s=()=>yI(void 0);void 0!==t.start&&(i=()=>t.start(n)),void 0!==t.pull&&(o=()=>t.pull(n)),void 0!==t.cancel&&(s=e=>t.cancel(e));const a=t.autoAllocateChunkSize;if(0===a)throw new TypeError("autoAllocateChunkSize must be greater than 0");!function(e,t,r,n,i,o,s){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,gN(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=o,t._pullAlgorithm=n,t._cancelAlgorithm=i,t._autoAllocateChunkSize=s,t._pendingPullIntos=new TI,e._readableStreamController=t,wI(yI(r()),(()=>{t._started=!0,EN(t)}),(e=>{DN(t,e)}))}(e,n,i,o,s,r,a)}(this,n,YN(r,0))}else{const e=KN(r);!function(e,t,r,n){const i=Object.create(HR.prototype);let o=()=>{},s=()=>yI(void 0),a=()=>yI(void 0);void 0!==t.start&&(o=()=>t.start(i)),void 0!==t.pull&&(s=()=>t.pull(i)),void 0!==t.cancel&&(a=e=>t.cancel(e)),ZR(e,i,o,s,a,r,n)}(this,n,YN(r,1),e)}}get locked(){if(!lP(this))throw pP("locked");return cP(this)}cancel(e){return lP(this)?cP(this)?vI(new TypeError("Cannot cancel a stream that already has a reader")):hP(this,e):vI(pP("cancel"))}getReader(e){if(!lP(this))throw pP("getReader");const t=function(e,t){GI(e,t);const r=null==e?void 0:e.mode;return{mode:void 0===r?void 0:iP(r,t+" has member 'mode' that")}}(e,"First parameter");return void 0===t.mode?ZI(this):function(e){return new zN(e)}(this)}pipeThrough(e,t={}){if(!lP(this))throw pP("pipeThrough");qI(e,1,"pipeThrough");const r=function(e,t){GI(e,t);const r=null==e?void 0:e.readable;WI(r,"readable","ReadableWritablePair"),JI(r,t+" has member 'readable' that");const n=null==e?void 0:e.writable;return WI(n,"writable","ReadableWritablePair"),ZN(n,t+" has member 'writable' that"),{readable:r,writable:n}}(e,"First parameter"),n=oP(t,"Second parameter");if(cP(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(nR(r.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return MI(zR(this,r.writable,n.preventClose,n.preventAbort,n.preventCancel,n.signal)),r.readable}pipeTo(e,t={}){if(!lP(this))return vI(pP("pipeTo"));if(void 0===e)return vI("Parameter 1 is required in 'pipeTo'.");if(!rR(e))return vI(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let r;try{r=oP(t,"Second parameter")}catch(e){return vI(e)}return cP(this)?vI(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):nR(e)?vI(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):zR(this,e,r.preventClose,r.preventAbort,r.preventCancel,r.signal)}tee(){if(!lP(this))throw pP("tee");const e=function(e,t){const r=ZI(e);let n,i,o,s,a,u=!1,l=!1,c=!1;const h=gI((e=>{a=e}));function d(){return u||(u=!0,oN(r,{_chunkSteps:e=>{SI((()=>{u=!1;const t=e,r=e;l||VR(o._readableStreamController,t),c||VR(s._readableStreamController,r)}))},_closeSteps:()=>{u=!1,l||WR(o._readableStreamController),c||WR(s._readableStreamController),l&&c||a(void 0)},_errorSteps:()=>{u=!1}})),yI(void 0)}function f(){}return o=aP(f,d,(function(t){if(l=!0,n=t,c){const t=yN([n,i]),r=hP(e,t);a(r)}return h})),s=aP(f,d,(function(t){if(c=!0,i=t,l){const t=yN([n,i]),r=hP(e,t);a(r)}return h})),EI(r._closedPromise,(e=>{$R(o._readableStreamController,e),$R(s._readableStreamController,e),l&&c||a(void 0)})),[o,s]}(this);return yN(e)}values(e){if(!lP(this))throw pP("values");return function(e,t){const r=ZI(e),n=new uN(r,t),i=Object.create(lN);return i._asyncIteratorImpl=n,i}(this,function(e,t){return GI(e,"First parameter"),{preventCancel:!!(null==e?void 0:e.preventCancel)}}(e).preventCancel)}}function aP(e,t,r,n=1,i=(()=>1)){const o=Object.create(sP.prototype);return uP(o),ZR(o,Object.create(HR.prototype),e,t,r,n,i),o}function uP(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function lP(e){return!!cI(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")}function cP(e){return void 0!==e._reader}function hP(e,t){return e._disturbed=!0,"closed"===e._state?yI(void 0):"errored"===e._state?vI(e._storedError):(dP(e),AI(e._readableStreamController[UI](t),uI))}function dP(e){e._state="closed";const t=e._reader;void 0!==t&&(OI(t),iN(t)&&(t._readRequests.forEach((e=>{e._closeSteps()})),t._readRequests=new TI))}function fP(e,t){e._state="errored",e._storedError=t;const r=e._reader;void 0!==r&&(LI(r,t),iN(r)?(r._readRequests.forEach((e=>{e._errorSteps(t)})),r._readRequests=new TI):(r._readIntoRequests.forEach((e=>{e._errorSteps(t)})),r._readIntoRequests=new TI))}function pP(e){return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function mP(e,t){GI(e,t);const r=null==e?void 0:e.highWaterMark;return WI(r,"highWaterMark","QueuingStrategyInit"),{highWaterMark:VI(r)}}Object.defineProperties(sP.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),"symbol"==typeof aI.toStringTag&&Object.defineProperty(sP.prototype,aI.toStringTag,{value:"ReadableStream",configurable:!0}),"symbol"==typeof aI.asyncIterator&&Object.defineProperty(sP.prototype,aI.asyncIterator,{value:sP.prototype.values,writable:!0,configurable:!0});const gP=function(e){return e.byteLength};class yP{constructor(e){qI(e,1,"ByteLengthQueuingStrategy"),e=mP(e,"First parameter"),this._byteLengthQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!bP(this))throw vP("highWaterMark");return this._byteLengthQueuingStrategyHighWaterMark}get size(){if(!bP(this))throw vP("size");return gP}}function vP(e){return new TypeError(`ByteLengthQueuingStrategy.prototype.${e} can only be used on a ByteLengthQueuingStrategy`)}function bP(e){return!!cI(e)&&!!Object.prototype.hasOwnProperty.call(e,"_byteLengthQueuingStrategyHighWaterMark")}Object.defineProperties(yP.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof aI.toStringTag&&Object.defineProperty(yP.prototype,aI.toStringTag,{value:"ByteLengthQueuingStrategy",configurable:!0});const wP=function(){return 1};class _P{constructor(e){qI(e,1,"CountQueuingStrategy"),e=mP(e,"First parameter"),this._countQueuingStrategyHighWaterMark=e.highWaterMark}get highWaterMark(){if(!AP(this))throw EP("highWaterMark");return this._countQueuingStrategyHighWaterMark}get size(){if(!AP(this))throw EP("size");return wP}}function EP(e){return new TypeError(`CountQueuingStrategy.prototype.${e} can only be used on a CountQueuingStrategy`)}function AP(e){return!!cI(e)&&!!Object.prototype.hasOwnProperty.call(e,"_countQueuingStrategyHighWaterMark")}function MP(e,t,r){return YI(e,r),r=>kI(e,t,[r])}function SP(e,t,r){return YI(e,r),r=>xI(e,t,[r])}function xP(e,t,r){return YI(e,r),(r,n)=>kI(e,t,[r,n])}Object.defineProperties(_P.prototype,{highWaterMark:{enumerable:!0},size:{enumerable:!0}}),"symbol"==typeof aI.toStringTag&&Object.defineProperty(_P.prototype,aI.toStringTag,{value:"CountQueuingStrategy",configurable:!0});class kP{constructor(e={},t={},r={}){void 0===e&&(e=null);const n=qN(t,"Second parameter"),i=qN(r,"Third parameter"),o=function(e,t){GI(e,t);const r=null==e?void 0:e.flush,n=null==e?void 0:e.readableType,i=null==e?void 0:e.start,o=null==e?void 0:e.transform,s=null==e?void 0:e.writableType;return{flush:void 0===r?void 0:MP(r,e,t+" has member 'flush' that"),readableType:n,start:void 0===i?void 0:SP(i,e,t+" has member 'start' that"),transform:void 0===o?void 0:xP(o,e,t+" has member 'transform' that"),writableType:s}}(e,"First parameter");if(void 0!==o.readableType)throw new RangeError("Invalid readableType specified");if(void 0!==o.writableType)throw new RangeError("Invalid writableType specified");const s=YN(i,0),a=KN(i),u=YN(n,1),l=KN(n);let c;!function(e,t,r,n,i,o){function s(){return t}e._writable=function(e,t,r,n,i=1,o=(()=>1)){const s=Object.create(XN.prototype);return tR(s),wR(s,Object.create(bR.prototype),e,t,r,n,i,o),s}(s,(function(t){return function(e,t){const r=e._transformStreamController;return e._backpressure?AI(e._backpressureChangePromise,(()=>{const n=e._writable;if("erroring"===n._state)throw n._storedError;return OP(r,t)})):OP(r,t)}(e,t)}),(function(){return function(e){const t=e._readable,r=e._transformStreamController,n=r._flushAlgorithm();return DP(r),AI(n,(()=>{if("errored"===t._state)throw t._storedError;WR(t._readableStreamController)}),(r=>{throw CP(e,r),t._storedError}))}(e)}),(function(t){return function(e,t){return CP(e,t),yI(void 0)}(e,t)}),r,n),e._readable=aP(s,(function(){return function(e){return NP(e,!1),e._backpressureChangePromise}(e)}),(function(t){return IP(e,t),yI(void 0)}),i,o),e._backpressure=void 0,e._backpressureChangePromise=void 0,e._backpressureChangePromise_resolve=void 0,NP(e,!0),e._transformStreamController=void 0}(this,gI((e=>{c=e})),u,l,s,a),function(e,t){const r=Object.create(RP.prototype);let n=e=>{try{return LP(r,e),yI(void 0)}catch(e){return vI(e)}},i=()=>yI(void 0);void 0!==t.transform&&(n=e=>t.transform(e,r)),void 0!==t.flush&&(i=()=>t.flush(r)),function(e,t,r,n){t._controlledTransformStream=e,e._transformStreamController=t,t._transformAlgorithm=r,t._flushAlgorithm=n}(e,r,n,i)}(this,o),void 0!==o.start?c(o.start(this._transformStreamController)):c(void 0)}get readable(){if(!TP(this))throw BP("readable");return this._readable}get writable(){if(!TP(this))throw BP("writable");return this._writable}}function TP(e){return!!cI(e)&&!!Object.prototype.hasOwnProperty.call(e,"_transformStreamController")}function CP(e,t){$R(e._readable._readableStreamController,t),IP(e,t)}function IP(e,t){DP(e._transformStreamController),MR(e._writable._writableStreamController,t),e._backpressure&&NP(e,!1)}function NP(e,t){void 0!==e._backpressureChangePromise&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=gI((t=>{e._backpressureChangePromise_resolve=t})),e._backpressure=t}Object.defineProperties(kP.prototype,{readable:{enumerable:!0},writable:{enumerable:!0}}),"symbol"==typeof aI.toStringTag&&Object.defineProperty(kP.prototype,aI.toStringTag,{value:"TransformStream",configurable:!0});class RP{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!PP(this))throw jP("desiredSize");return QR(this._controlledTransformStream._readable._readableStreamController)}enqueue(e){if(!PP(this))throw jP("enqueue");LP(this,e)}error(e){if(!PP(this))throw jP("error");var t;t=e,CP(this._controlledTransformStream,t)}terminate(){if(!PP(this))throw jP("terminate");!function(e){const t=e._controlledTransformStream;WR(t._readable._readableStreamController),IP(t,new TypeError("TransformStream terminated"))}(this)}}function PP(e){return!!cI(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")}function DP(e){e._transformAlgorithm=void 0,e._flushAlgorithm=void 0}function LP(e,t){const r=e._controlledTransformStream,n=r._readable._readableStreamController;if(!JR(n))throw new TypeError("Readable side is not in a state that permits enqueue");try{VR(n,t)}catch(e){throw IP(r,e),r._readable._storedError}const i=function(e){return!KR(e)}(n);i!==r._backpressure&&NP(r,!0)}function OP(e,t){return AI(e._transformAlgorithm(t),void 0,(t=>{throw CP(e._controlledTransformStream,t),t}))}function jP(e){return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}function BP(e){return new TypeError(`TransformStream.prototype.${e} can only be used on a TransformStream`)}Object.defineProperties(RP.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),"symbol"==typeof aI.toStringTag&&Object.defineProperty(RP.prototype,aI.toStringTag,{value:"TransformStreamDefaultController",configurable:!0});var UP=Object.freeze({__proto__:null,ByteLengthQueuingStrategy:yP,CountQueuingStrategy:_P,ReadableByteStreamController:bN,ReadableStream:sP,ReadableStreamBYOBReader:zN,ReadableStreamBYOBRequest:vN,ReadableStreamDefaultController:HR,ReadableStreamDefaultReader:nN,TransformStream:kP,TransformStreamDefaultController:RP,WritableStream:XN,WritableStreamDefaultController:bR,WritableStreamDefaultWriter:dR}),FP=function(e,t){return FP=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},FP(e,t)};function zP(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");function r(){this.constructor=e}FP(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function HP(e){if(!e)throw new TypeError("Assertion failed")}function GP(){}function YP(e){return"object"==typeof e&&null!==e||"function"==typeof e}function KP(e){if("function"!=typeof e)return!1;var t=!1;try{new e({start:function(){t=!0}})}catch(e){}return t}function qP(e){return!!YP(e)&&"function"==typeof e.getReader}function WP(e){return!!YP(e)&&"function"==typeof e.getWriter}function VP(e){return!!YP(e)&&!!qP(e.readable)&&!!WP(e.writable)}function $P(e){try{return e.getReader({mode:"byob"}).releaseLock(),!0}catch(e){return!1}}function QP(e,t){var r=(void 0===t?{}:t).type;return HP(qP(e)),HP(!1===e.locked),"bytes"===(r=JP(r))?new tD(e):new XP(e)}function JP(e){var t=e+"";if("bytes"===t)return t;if(void 0===e)return e;throw new RangeError("Invalid type is specified")}var ZP=function(){function e(e){this._underlyingReader=void 0,this._readerMode=void 0,this._readableStreamController=void 0,this._pendingRead=void 0,this._underlyingStream=e,this._attachDefaultReader()}return e.prototype.start=function(e){this._readableStreamController=e},e.prototype.cancel=function(e){return HP(void 0!==this._underlyingReader),this._underlyingReader.cancel(e)},e.prototype._attachDefaultReader=function(){if("default"!==this._readerMode){this._detachReader();var e=this._underlyingStream.getReader();this._readerMode="default",this._attachReader(e)}},e.prototype._attachReader=function(e){var t=this;HP(void 0===this._underlyingReader),this._underlyingReader=e;var r=this._underlyingReader.closed;r&&r.then((function(){return t._finishPendingRead()})).then((function(){e===t._underlyingReader&&t._readableStreamController.close()}),(function(r){e===t._underlyingReader&&t._readableStreamController.error(r)})).catch(GP)},e.prototype._detachReader=function(){void 0!==this._underlyingReader&&(this._underlyingReader.releaseLock(),this._underlyingReader=void 0,this._readerMode=void 0)},e.prototype._pullWithDefaultReader=function(){var e=this;this._attachDefaultReader();var t=this._underlyingReader.read().then((function(t){var r=e._readableStreamController;t.done?e._tryClose():r.enqueue(t.value)}));return this._setPendingRead(t),t},e.prototype._tryClose=function(){try{this._readableStreamController.close()}catch(e){}},e.prototype._setPendingRead=function(e){var t,r=this,n=function(){r._pendingRead===t&&(r._pendingRead=void 0)};this._pendingRead=t=e.then(n,n)},e.prototype._finishPendingRead=function(){var e=this;if(this._pendingRead){var t=function(){return e._finishPendingRead()};return this._pendingRead.then(t,t)}},e}(),XP=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zP(t,e),t.prototype.pull=function(){return this._pullWithDefaultReader()},t}(ZP);function eD(e){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var tD=function(e){function t(t){var r=this,n=$P(t);return(r=e.call(this,t)||this)._supportsByob=n,r}return zP(t,e),Object.defineProperty(t.prototype,"type",{get:function(){return"bytes"},enumerable:!1,configurable:!0}),t.prototype._attachByobReader=function(){if("byob"!==this._readerMode){HP(this._supportsByob),this._detachReader();var e=this._underlyingStream.getReader({mode:"byob"});this._readerMode="byob",this._attachReader(e)}},t.prototype.pull=function(){if(this._supportsByob){var e=this._readableStreamController.byobRequest;if(e)return this._pullWithByobRequest(e)}return this._pullWithDefaultReader()},t.prototype._pullWithByobRequest=function(e){var t=this;this._attachByobReader();var r=new Uint8Array(e.view.byteLength),n=this._underlyingReader.read(r).then((function(r){var n,i,o;t._readableStreamController,r.done?(t._tryClose(),e.respond(0)):(n=r.value,i=e.view,o=eD(n),eD(i).set(o,0),e.respond(r.value.byteLength))}));return this._setPendingRead(n),n},t}(ZP);function rD(e){HP(WP(e)),HP(!1===e.locked);var t=e.getWriter();return new nD(t)}var nD=function(){function e(e){var t=this;this._writableStreamController=void 0,this._pendingWrite=void 0,this._state="writable",this._storedError=void 0,this._underlyingWriter=e,this._errorPromise=new Promise((function(e,r){t._errorPromiseReject=r})),this._errorPromise.catch(GP)}return e.prototype.start=function(e){var t=this;this._writableStreamController=e,this._underlyingWriter.closed.then((function(){t._state="closed"})).catch((function(e){return t._finishErroring(e)}))},e.prototype.write=function(e){var t=this,r=this._underlyingWriter;if(null===r.desiredSize)return r.ready;var n=r.write(e);n.catch((function(e){return t._finishErroring(e)})),r.ready.catch((function(e){return t._startErroring(e)}));var i=Promise.race([n,this._errorPromise]);return this._setPendingWrite(i),i},e.prototype.close=function(){var e=this;return void 0===this._pendingWrite?this._underlyingWriter.close():this._finishPendingWrite().then((function(){return e.close()}))},e.prototype.abort=function(e){if("errored"!==this._state)return this._underlyingWriter.abort(e)},e.prototype._setPendingWrite=function(e){var t,r=this,n=function(){r._pendingWrite===t&&(r._pendingWrite=void 0)};this._pendingWrite=t=e.then(n,n)},e.prototype._finishPendingWrite=function(){var e=this;if(void 0===this._pendingWrite)return Promise.resolve();var t=function(){return e._finishPendingWrite()};return this._pendingWrite.then(t,t)},e.prototype._startErroring=function(e){var t=this;if("writable"===this._state){this._state="erroring",this._storedError=e;var r=function(){return t._finishErroring(e)};void 0===this._pendingWrite?r():this._finishPendingWrite().then(r,r),this._writableStreamController.error(e)}},e.prototype._finishErroring=function(e){"writable"===this._state&&this._startErroring(e),"erroring"===this._state&&(this._state="errored",this._errorPromiseReject(this._storedError))},e}();function iD(e){HP(VP(e));var t=e.readable,r=e.writable;HP(!1===t.locked),HP(!1===r.locked);var n,i=t.getReader();try{n=r.getWriter()}catch(e){throw i.releaseLock(),e}return new oD(i,n)}var oD=function(){function e(e,t){var r=this;this._transformStreamController=void 0,this._onRead=function(e){if(!e.done)return r._transformStreamController.enqueue(e.value),r._reader.read().then(r._onRead)},this._onError=function(e){r._flushReject(e),r._transformStreamController.error(e),r._reader.cancel(e).catch(GP),r._writer.abort(e).catch(GP)},this._onTerminate=function(){r._flushResolve(),r._transformStreamController.terminate();var e=new TypeError("TransformStream terminated");r._writer.abort(e).catch(GP)},this._reader=e,this._writer=t,this._flushPromise=new Promise((function(e,t){r._flushResolve=e,r._flushReject=t}))}return e.prototype.start=function(e){this._transformStreamController=e,this._reader.read().then(this._onRead).then(this._onTerminate,this._onError);var t=this._reader.closed;t&&t.then(this._onTerminate,this._onError)},e.prototype.transform=function(e){return this._writer.write(e)},e.prototype.flush=function(){var e=this;return this._writer.close().then((function(){return e._flushPromise}))},e}(),sD=Object.freeze({__proto__:null,createReadableStreamWrapper:function(e){HP(function(e){return!!KP(e)&&!!qP(new e)}(e));var t=function(e){try{return new e({type:"bytes"}),!0}catch(e){return!1}}(e);return function(r,n){var i=(void 0===n?{}:n).type;if("bytes"!==(i=JP(i))||t||(i=void 0),r.constructor===e&&("bytes"!==i||$P(r)))return r;if("bytes"===i){var o=QP(r,{type:i});return new e(o)}return o=QP(r),new e(o)}},createTransformStreamWrapper:function(e){return HP(function(e){return!!KP(e)&&!!VP(new e)}(e)),function(t){if(t.constructor===e)return t;var r=iD(t);return new e(r)}},createWrappingReadableSource:QP,createWrappingTransformer:iD,createWrappingWritableSink:rD,createWritableStreamWrapper:function(e){return HP(function(e){return!!KP(e)&&!!WP(new e)}(e)),function(t){if(t.constructor===e)return t;var r=rD(t);return new e(r)}}}),aD=cE((function(e){!function(e,t){function r(e,t){if(!e)throw Error(t||"Assertion failed")}function n(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var o;"object"==typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{o=void 0}catch(e){}function s(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o=49&&s<=54?s-49+10:s>=17&&s<=22?s-17+10:15&s}return n}function a(e,t,r,n){for(var i=0,o=Math.min(e.length,r),s=t;s=49?a-49+10:a>=17?a-17+10:a}return i}i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,n){if("number"==typeof e)return this._initNumber(e,t,n);if("object"==typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},i.prototype._initArray=function(e,t,n){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i=0;i=0;i-=3)s=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=s<>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-a&67108863,(a+=24)>=26&&(a-=26,o++);return this.strip()},i.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var r=0;r=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this.strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,s=o%n,u=Math.min(o,o-s)+r,l=0,c=r;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},i.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],c=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],s=i*o,a=67108863&s,u=s/67108864|0;r.words[0]=a;for(var l=1;l>>26,h=67108863&u,d=Math.min(l,t.length-1),f=Math.max(0,l-e.length+1);f<=d;f++){var p=l-f|0;c+=(s=(i=0|e.words[p])*(o=0|t.words[f])+h)/67108864|0,h=67108863&s}r.words[l]=0|h,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r.strip()}i.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,s=0;s>>24-i&16777215)||s!==this.length-1?u[6-h.length]+h+n:h+n,(i+=2)>=26&&(i-=26,s--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],f=c[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(e);n=(p=p.idivn(f)).isZero()?m+n:u[d-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return r(void 0!==o),this.toArrayLike(o,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var s,a,u="le"===t,l=new e(o),c=this.clone();if(u){for(a=0;!c.isZero();a++)s=c.andln(255),c.iushrn(8),l[a]=s;for(;a=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,s=0;s>26,this.words[s]=67108863&t;for(;0!==o&&s>26,this.words[s]=67108863&t;if(0===o&&s>>13,f=0|s[1],p=8191&f,m=f>>>13,g=0|s[2],y=8191&g,v=g>>>13,b=0|s[3],w=8191&b,_=b>>>13,E=0|s[4],A=8191&E,M=E>>>13,S=0|s[5],x=8191&S,k=S>>>13,T=0|s[6],C=8191&T,I=T>>>13,N=0|s[7],R=8191&N,P=N>>>13,D=0|s[8],L=8191&D,O=D>>>13,j=0|s[9],B=8191&j,U=j>>>13,F=0|a[0],z=8191&F,H=F>>>13,G=0|a[1],Y=8191&G,K=G>>>13,q=0|a[2],W=8191&q,V=q>>>13,$=0|a[3],Q=8191&$,J=$>>>13,Z=0|a[4],X=8191&Z,ee=Z>>>13,te=0|a[5],re=8191&te,ne=te>>>13,ie=0|a[6],oe=8191&ie,se=ie>>>13,ae=0|a[7],ue=8191&ae,le=ae>>>13,ce=0|a[8],he=8191&ce,de=ce>>>13,fe=0|a[9],pe=8191&fe,me=fe>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(l+(n=Math.imul(h,z))|0)+((8191&(i=(i=Math.imul(h,H))+Math.imul(d,z)|0))<<13)|0;l=((o=Math.imul(d,H))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,z),i=(i=Math.imul(p,H))+Math.imul(m,z)|0,o=Math.imul(m,H);var ye=(l+(n=n+Math.imul(h,Y)|0)|0)+((8191&(i=(i=i+Math.imul(h,K)|0)+Math.imul(d,Y)|0))<<13)|0;l=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,z),i=(i=Math.imul(y,H))+Math.imul(v,z)|0,o=Math.imul(v,H),n=n+Math.imul(p,Y)|0,i=(i=i+Math.imul(p,K)|0)+Math.imul(m,Y)|0,o=o+Math.imul(m,K)|0;var ve=(l+(n=n+Math.imul(h,W)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,W)|0))<<13)|0;l=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(w,z),i=(i=Math.imul(w,H))+Math.imul(_,z)|0,o=Math.imul(_,H),n=n+Math.imul(y,Y)|0,i=(i=i+Math.imul(y,K)|0)+Math.imul(v,Y)|0,o=o+Math.imul(v,K)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,V)|0;var be=(l+(n=n+Math.imul(h,Q)|0)|0)+((8191&(i=(i=i+Math.imul(h,J)|0)+Math.imul(d,Q)|0))<<13)|0;l=((o=o+Math.imul(d,J)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(A,z),i=(i=Math.imul(A,H))+Math.imul(M,z)|0,o=Math.imul(M,H),n=n+Math.imul(w,Y)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(_,Y)|0,o=o+Math.imul(_,K)|0,n=n+Math.imul(y,W)|0,i=(i=i+Math.imul(y,V)|0)+Math.imul(v,W)|0,o=o+Math.imul(v,V)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,J)|0;var we=(l+(n=n+Math.imul(h,X)|0)|0)+((8191&(i=(i=i+Math.imul(h,ee)|0)+Math.imul(d,X)|0))<<13)|0;l=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(x,z),i=(i=Math.imul(x,H))+Math.imul(k,z)|0,o=Math.imul(k,H),n=n+Math.imul(A,Y)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(M,Y)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(w,W)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(_,W)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(y,Q)|0,i=(i=i+Math.imul(y,J)|0)+Math.imul(v,Q)|0,o=o+Math.imul(v,J)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,ee)|0;var _e=(l+(n=n+Math.imul(h,re)|0)|0)+((8191&(i=(i=i+Math.imul(h,ne)|0)+Math.imul(d,re)|0))<<13)|0;l=((o=o+Math.imul(d,ne)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(C,z),i=(i=Math.imul(C,H))+Math.imul(I,z)|0,o=Math.imul(I,H),n=n+Math.imul(x,Y)|0,i=(i=i+Math.imul(x,K)|0)+Math.imul(k,Y)|0,o=o+Math.imul(k,K)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,V)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,V)|0,n=n+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,J)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(y,X)|0,i=(i=i+Math.imul(y,ee)|0)+Math.imul(v,X)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var Ee=(l+(n=n+Math.imul(h,oe)|0)|0)+((8191&(i=(i=i+Math.imul(h,se)|0)+Math.imul(d,oe)|0))<<13)|0;l=((o=o+Math.imul(d,se)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(R,z),i=(i=Math.imul(R,H))+Math.imul(P,z)|0,o=Math.imul(P,H),n=n+Math.imul(C,Y)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(I,Y)|0,o=o+Math.imul(I,K)|0,n=n+Math.imul(x,W)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(k,W)|0,o=o+Math.imul(k,V)|0,n=n+Math.imul(A,Q)|0,i=(i=i+Math.imul(A,J)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,J)|0,n=n+Math.imul(w,X)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(y,re)|0,i=(i=i+Math.imul(y,ne)|0)+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,se)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,se)|0;var Ae=(l+(n=n+Math.imul(h,ue)|0)|0)+((8191&(i=(i=i+Math.imul(h,le)|0)+Math.imul(d,ue)|0))<<13)|0;l=((o=o+Math.imul(d,le)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(L,z),i=(i=Math.imul(L,H))+Math.imul(O,z)|0,o=Math.imul(O,H),n=n+Math.imul(R,Y)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(P,Y)|0,o=o+Math.imul(P,K)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(x,Q)|0,i=(i=i+Math.imul(x,J)|0)+Math.imul(k,Q)|0,o=o+Math.imul(k,J)|0,n=n+Math.imul(A,X)|0,i=(i=i+Math.imul(A,ee)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(w,re)|0,i=(i=i+Math.imul(w,ne)|0)+Math.imul(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(y,oe)|0,i=(i=i+Math.imul(y,se)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,se)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,le)|0;var Me=(l+(n=n+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,de)|0)+Math.imul(d,he)|0))<<13)|0;l=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(B,z),i=(i=Math.imul(B,H))+Math.imul(U,z)|0,o=Math.imul(U,H),n=n+Math.imul(L,Y)|0,i=(i=i+Math.imul(L,K)|0)+Math.imul(O,Y)|0,o=o+Math.imul(O,K)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(P,W)|0,o=o+Math.imul(P,V)|0,n=n+Math.imul(C,Q)|0,i=(i=i+Math.imul(C,J)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(k,X)|0,o=o+Math.imul(k,ee)|0,n=n+Math.imul(A,re)|0,i=(i=i+Math.imul(A,ne)|0)+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,se)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,se)|0,n=n+Math.imul(y,ue)|0,i=(i=i+Math.imul(y,le)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,le)|0,n=n+Math.imul(p,he)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(m,he)|0,o=o+Math.imul(m,de)|0;var Se=(l+(n=n+Math.imul(h,pe)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(d,pe)|0))<<13)|0;l=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(B,Y),i=(i=Math.imul(B,K))+Math.imul(U,Y)|0,o=Math.imul(U,K),n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,V)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(P,Q)|0,o=o+Math.imul(P,J)|0,n=n+Math.imul(C,X)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(I,X)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(x,re)|0,i=(i=i+Math.imul(x,ne)|0)+Math.imul(k,re)|0,o=o+Math.imul(k,ne)|0,n=n+Math.imul(A,oe)|0,i=(i=i+Math.imul(A,se)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,se)|0,n=n+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(y,he)|0,i=(i=i+Math.imul(y,de)|0)+Math.imul(v,he)|0,o=o+Math.imul(v,de)|0;var xe=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;l=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,V))+Math.imul(U,W)|0,o=Math.imul(U,V),n=n+Math.imul(L,Q)|0,i=(i=i+Math.imul(L,J)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,J)|0,n=n+Math.imul(R,X)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(P,X)|0,o=o+Math.imul(P,ee)|0,n=n+Math.imul(C,re)|0,i=(i=i+Math.imul(C,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(x,oe)|0,i=(i=i+Math.imul(x,se)|0)+Math.imul(k,oe)|0,o=o+Math.imul(k,se)|0,n=n+Math.imul(A,ue)|0,i=(i=i+Math.imul(A,le)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,le)|0,n=n+Math.imul(w,he)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,he)|0,o=o+Math.imul(_,de)|0;var ke=(l+(n=n+Math.imul(y,pe)|0)|0)+((8191&(i=(i=i+Math.imul(y,me)|0)+Math.imul(v,pe)|0))<<13)|0;l=((o=o+Math.imul(v,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(B,Q),i=(i=Math.imul(B,J))+Math.imul(U,Q)|0,o=Math.imul(U,J),n=n+Math.imul(L,X)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(P,re)|0,o=o+Math.imul(P,ne)|0,n=n+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,se)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,se)|0,n=n+Math.imul(x,ue)|0,i=(i=i+Math.imul(x,le)|0)+Math.imul(k,ue)|0,o=o+Math.imul(k,le)|0,n=n+Math.imul(A,he)|0,i=(i=i+Math.imul(A,de)|0)+Math.imul(M,he)|0,o=o+Math.imul(M,de)|0;var Te=(l+(n=n+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(_,pe)|0))<<13)|0;l=((o=o+Math.imul(_,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(B,X),i=(i=Math.imul(B,ee))+Math.imul(U,X)|0,o=Math.imul(U,ee),n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(O,re)|0,o=o+Math.imul(O,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,se)|0)+Math.imul(P,oe)|0,o=o+Math.imul(P,se)|0,n=n+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(x,he)|0,i=(i=i+Math.imul(x,de)|0)+Math.imul(k,he)|0,o=o+Math.imul(k,de)|0;var Ce=(l+(n=n+Math.imul(A,pe)|0)|0)+((8191&(i=(i=i+Math.imul(A,me)|0)+Math.imul(M,pe)|0))<<13)|0;l=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(B,re),i=(i=Math.imul(B,ne))+Math.imul(U,re)|0,o=Math.imul(U,ne),n=n+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,se)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,se)|0,n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,le)|0)+Math.imul(P,ue)|0,o=o+Math.imul(P,le)|0,n=n+Math.imul(C,he)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(I,he)|0,o=o+Math.imul(I,de)|0;var Ie=(l+(n=n+Math.imul(x,pe)|0)|0)+((8191&(i=(i=i+Math.imul(x,me)|0)+Math.imul(k,pe)|0))<<13)|0;l=((o=o+Math.imul(k,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(B,oe),i=(i=Math.imul(B,se))+Math.imul(U,oe)|0,o=Math.imul(U,se),n=n+Math.imul(L,ue)|0,i=(i=i+Math.imul(L,le)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,le)|0,n=n+Math.imul(R,he)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(P,he)|0,o=o+Math.imul(P,de)|0;var Ne=(l+(n=n+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,me)|0)+Math.imul(I,pe)|0))<<13)|0;l=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(B,ue),i=(i=Math.imul(B,le))+Math.imul(U,ue)|0,o=Math.imul(U,le),n=n+Math.imul(L,he)|0,i=(i=i+Math.imul(L,de)|0)+Math.imul(O,he)|0,o=o+Math.imul(O,de)|0;var Re=(l+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(P,pe)|0))<<13)|0;l=((o=o+Math.imul(P,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(B,he),i=(i=Math.imul(B,de))+Math.imul(U,he)|0,o=Math.imul(U,de);var Pe=(l+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(O,pe)|0))<<13)|0;l=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863;var De=(l+(n=Math.imul(B,pe))|0)+((8191&(i=(i=Math.imul(B,me))+Math.imul(U,pe)|0))<<13)|0;return l=((o=Math.imul(U,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,u[0]=ge,u[1]=ye,u[2]=ve,u[3]=be,u[4]=we,u[5]=_e,u[6]=Ee,u[7]=Ae,u[8]=Me,u[9]=Se,u[10]=xe,u[11]=ke,u[12]=Te,u[13]=Ce,u[14]=Ie,u[15]=Ne,u[16]=Re,u[17]=Pe,u[18]=De,0!==l&&(u[19]=l,r.length++),r};function f(e,t,r){return(new p).mulp(e,t,r)}function p(e,t){this.x=e,this.y=t}Math.imul||(d=h),i.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?d(this,e,t):n<63?h(this,e,t):n<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0)>>>26,s&=67108863}r.words[o]=a,n=s,s=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):f(this,e,t),r},p.prototype.makeRBT=function(e){for(var t=Array(e),r=i.prototype._countBits(e)-1,n=0;n>=1;return n},p.prototype.permute=function(e,t,r,n,i,o){for(var s=0;s>>=1)i++;return 1<>>=13,n[2*s+1]=8191&o,o>>>=13;for(s=2*t;s>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r>>i}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(t=0;t>>26-n}s&&(this.words[t]=s,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,s=Math.min((e-o)/26,this.length),a=67108863^67108863>>>o<s)for(this.length-=s,l=0;l=0&&(0!==c||l>=i);l--){var h=0|this.words[l];this.words[l]=c<<26-o|h>>>o,c=h&a}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===a)return this.strip();for(r(-1===a),a=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),o=e,s=0|o.words[o.length-1];0!=(r=26-this._countBits(s))&&(o=o.ushln(r),n.iushln(r),s=0|o.words[o.length-1]);var a,u=n.length-o.length;if("mod"!==t){(a=new i(null)).length=u+1,a.words=Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|n.words[o.length+h])+(0|n.words[o.length+h-1]);for(d=Math.min(d/s|0,67108863),n._ishlnsubmul(o,d,h);0!==n.negative;)d--,n.negative=0,n._ishlnsubmul(o,1,h),n.isZero()||(n.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:a||null,mod:n}},i.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(a=this.neg().divmod(e,t),"mod"!==t&&(o=a.div.neg()),"div"!==t&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(e)),{div:o,mod:s}):0===this.negative&&0!==e.negative?(a=this.divmod(e.neg(),t),"mod"!==t&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&e.negative)?(a=this.neg().divmod(e.neg(),t),"div"!==t&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(e)),{div:a.div,mod:s}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var o,s,a},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},i.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),s=new i(0),a=new i(0),u=new i(1),l=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),h=t.clone();!t.isZero();){for(var d=0,f=1;0==(t.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(c),s.isub(h)),o.iushrn(1),s.iushrn(1);for(var p=0,m=1;0==(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(a.isOdd()||u.isOdd())&&(a.iadd(c),u.isub(h)),a.iushrn(1),u.iushrn(1);t.cmp(n)>=0?(t.isub(n),o.isub(a),s.isub(u)):(n.isub(t),a.isub(o),u.isub(s))}return{a,b:u,gcd:n.iushln(l)}},i.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,s=new i(1),a=new i(0),u=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0==(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);for(var h=0,d=1;0==(n.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(n.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);t.cmp(n)>=0?(t.isub(n),s.isub(a)):(n.isub(t),a.isub(s))}return(o=0===t.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,a&=67108863,this.words[s]=a}return 0!==o&&(this.words[s]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new _(e)},i.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var m={k256:null,p224:null,p192:null,p25519:null};function g(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){g.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){g.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){g.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){g.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}g.prototype._tmp=function(){var e=new i(null);return e.words=Array(Math.ceil(this.n/13)),e},g.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t0?r.isub(this.p):r.strip(),r},g.prototype.split=function(e,t){e.iushrn(this.n,0,t)},g.prototype.imulK=function(e){return e.imul(this.k)},n(y,g),y.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=s}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(m[e])return m[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new v;else if("p192"===e)t=new b;else{if("p25519"!==e)throw Error("Unknown prime "+e);t=new w}return m[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0==(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},_.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var n=this.m.add(new i(1)).iushrn(2);return this.pow(e,n)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);r(!o.isZero());var a=new i(1).toRed(this),u=a.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var h=this.pow(c,o),d=this.pow(e,o.addn(1).iushrn(1)),f=this.pow(e,o),p=s;0!==f.cmp(a);){for(var m=f,g=0;0!==m.cmp(a);g++)m=m.redSqr();r(g=0;n--){for(var l=t.words[n],c=u-1;c>=0;c--){var h=l>>c&1;o!==r[0]&&(o=this.sqr(o)),0!==h||0!==s?(s<<=1,s|=h,(4==++a||0===n&&0===c)&&(o=this.mul(o,r[s]),a=0,s=0)):a=0}u=26}return o},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new E(e)},n(E,_),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,lE)})),uD=Object.freeze({__proto__:null,default:aD,__moduleExports:aD});class lD{constructor(e){if(void 0===e)throw Error("Invalid BigInteger input");this.value=new aD(e)}clone(){const e=new lD(null);return this.value.copy(e.value),e}iinc(){return this.value.iadd(new aD(1)),this}inc(){return this.clone().iinc()}idec(){return this.value.isub(new aD(1)),this}dec(){return this.clone().idec()}iadd(e){return this.value.iadd(e.value),this}add(e){return this.clone().iadd(e)}isub(e){return this.value.isub(e.value),this}sub(e){return this.clone().isub(e)}imul(e){return this.value.imul(e.value),this}mul(e){return this.clone().imul(e)}imod(e){return this.value=this.value.umod(e.value),this}mod(e){return this.clone().imod(e)}modExp(e,t){const r=t.isEven()?aD.red(t.value):aD.mont(t.value),n=this.clone();return n.value=n.value.toRed(r).redPow(e.value).fromRed(),n}modInv(e){if(!this.gcd(e).isOne())throw Error("Inverse does not exist");return new lD(this.value.invm(e.value))}gcd(e){return new lD(this.value.gcd(e.value))}ileftShift(e){return this.value.ishln(e.value.toNumber()),this}leftShift(e){return this.clone().ileftShift(e)}irightShift(e){return this.value.ishrn(e.value.toNumber()),this}rightShift(e){return this.clone().irightShift(e)}equal(e){return this.value.eq(e.value)}lt(e){return this.value.lt(e.value)}lte(e){return this.value.lte(e.value)}gt(e){return this.value.gt(e.value)}gte(e){return this.value.gte(e.value)}isZero(){return this.value.isZero()}isOne(){return this.value.eq(new aD(1))}isNegative(){return this.value.isNeg()}isEven(){return this.value.isEven()}abs(){const e=this.clone();return e.value=e.value.abs(),e}toString(){return this.value.toString()}toNumber(){return this.value.toNumber()}getBit(e){return this.value.testn(e)?1:0}bitLength(){return this.value.bitLength()}byteLength(){return this.value.byteLength()}toUint8Array(e="be",t){return this.value.toArrayLike(Uint8Array,e,t)}}var cD,hD=Object.freeze({__proto__:null,default:lD}),dD=cE((function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r>8,s=255&i;o?r.push(o,s):r.push(s)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}})),fD=cE((function(e,t){var r=t;r.assert=aE,r.toArray=dD.toArray,r.zero2=dD.zero2,r.toHex=dD.toHex,r.encode=dD.encode,r.getNAF=function(e,t){for(var r=[],n=1<=0;){var o;if(i.isOdd()){var s=i.andln(n-1);o=s>(n>>1)-1?(n>>1)-s:s,i.isubn(o)}else o=0;r.push(o);for(var a=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u0||t.cmpn(-i)>0;){var o,s,a,u=e.andln(3)+n&3,l=t.andln(3)+i&3;3===u&&(u=-1),3===l&&(l=-1),o=0==(1&u)?0:3!=(a=e.andln(7)+n&7)&&5!==a||2!==l?u:-u,r[0].push(o),s=0==(1&l)?0:3!=(a=t.andln(7)+i&7)&&5!==a||2!==u?l:-l,r[1].push(s),2*n===o+1&&(n=1-n),2*i===s+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new aD(e,"hex","le")}})),pD=function(e){return cD||(cD=new mD(null)),cD.generate(e)};function mD(e){this.rand=e}var gD=mD;if(mD.prototype.generate=function(e){return this._rand(e)},mD.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var ED=_D;function AD(e,t){this.curve=e,this.type=t,this.precomputed=null}_D.prototype.point=function(){throw Error("Not implemented")},_D.prototype.validate=function(){throw Error("Not implemented")},_D.prototype._fixedNafMul=function(e,t){wD(e.precomputed);var r=e._getDoubles(),n=vD(t,1),i=(1<=s;t--)a=(a<<1)+n[t];o.push(a)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),c=i;c>0;c--){for(s=0;s=0;a--){for(t=0;a>=0&&0===o[a];a--)t++;if(a>=0&&t++,s=s.dblp(t),a<0)break;var u=o[a];wD(0!==u),s="affine"===e.type?u>0?s.mixedAdd(i[u-1>>1]):s.mixedAdd(i[-u-1>>1].neg()):u>0?s.add(i[u-1>>1]):s.add(i[-u-1>>1].neg())}return"affine"===e.type?s.toP():s},_D.prototype._wnafMulAdd=function(e,t,r,n,i){for(var o=this._wnafT1,s=this._wnafT2,a=this._wnafT3,u=0,l=0;l=1;l-=2){var h=l-1,d=l;if(1===o[h]&&1===o[d]){var f=[t[h],null,null,t[d]];0===t[h].y.cmp(t[d].y)?(f[1]=t[h].add(t[d]),f[2]=t[h].toJ().mixedAdd(t[d].neg())):0===t[h].y.cmp(t[d].y.redNeg())?(f[1]=t[h].toJ().mixedAdd(t[d]),f[2]=t[h].add(t[d].neg())):(f[1]=t[h].toJ().mixedAdd(t[d]),f[2]=t[h].toJ().mixedAdd(t[d].neg()));var p=[-3,-1,-5,-7,0,7,5,1,3],m=bD(r[h],r[d]);u=Math.max(m[0].length,u),a[h]=Array(u),a[d]=Array(u);for(var g=0;g=0;l--){for(var _=0;l>=0;){var E=!0;for(g=0;g=0&&_++,b=b.dblp(_),l<0)break;for(g=0;g0?A=s[g][M-1>>1]:M<0&&(A=s[g][-M-1>>1].neg()),b="affine"===A.type?b.mixedAdd(A):b.add(A))}}for(l=0;l=Math.ceil((e.bitLength()+1)/t.step)},AD.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(o=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:n,b:i},{a:o,b:s}]},SD.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),u=i.mul(r.b),l=o.mul(n.b);return{k1:e.sub(s).sub(a),k2:u.add(l).neg()}},SD.prototype.pointFromX=function(e,t){(e=new aD(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},SD.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},SD.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},kD.prototype.isInfinity=function(){return this.inf},kD.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},kD.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},kD.prototype.getX=function(){return this.x.fromRed()},kD.prototype.getY=function(){return this.y.fromRed()},kD.prototype.mul=function(e){return e=new aD(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},kD.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},kD.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},kD.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},kD.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},kD.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},dE(TD,ED.BasePoint),SD.prototype.jpoint=function(e,t,r){return new TD(this,e,t,r)},TD.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},TD.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},TD.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),a=n.redSub(i),u=o.redSub(s);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),c=l.redMul(a),h=n.redMul(l),d=u.redSqr().redIAdd(c).redISub(h).redISub(h),f=u.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(d,f,p)},TD.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),c=r.redMul(u),h=a.redSqr().redIAdd(l).redISub(c).redISub(c),d=a.redMul(c.redISub(h)).redISub(i.redMul(l)),f=this.z.redMul(s);return this.curve.jpoint(h,d,f)},TD.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},TD.prototype.inspect=function(){return this.isInfinity()?"":""},TD.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},dE(CD,ED);var ID=CD;function ND(e,t,r){ED.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new aD(t,16),this.z=new aD(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}CD.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},dE(ND,ED.BasePoint),CD.prototype.decodePoint=function(e,t){if(33===(e=fD.toArray(e,t)).length&&64===e[0]&&(e=e.slice(1,33).reverse()),32!==e.length)throw Error("Unknown point compression format");return this.point(e,1)},CD.prototype.point=function(e,t){return new ND(this,e,t)},CD.prototype.pointFromJSON=function(e){return ND.fromJSON(this,e)},ND.prototype.precompute=function(){},ND.prototype._encode=function(e){var t=this.curve.p.byteLength();return e?[64].concat(this.getX().toArray("le",t)):this.getX().toArray("be",t)},ND.fromJSON=function(e,t){return new ND(e,t[0],t[1]||e.one)},ND.prototype.inspect=function(){return this.isInfinity()?"":""},ND.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},ND.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},ND.prototype.add=function(){throw Error("Not supported on Montgomery curve")},ND.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),s=i.redMul(n),a=t.z.redMul(o.redAdd(s).redSqr()),u=t.x.redMul(o.redISub(s).redSqr());return this.curve.point(a,u)},ND.prototype.mul=function(e){for(var t=(e=new aD(e,16)).clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;o>=0;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},ND.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},ND.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},ND.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},ND.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},ND.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var RD=fD.assert;function PD(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,ED.call(this,"edwards",e),this.a=new aD(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new aD(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new aD(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),RD(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}dE(PD,ED);var DD=PD;function LD(e,t,r,n,i){ED.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new aD(t,16),this.y=new aD(r,16),this.z=n?new aD(n,16):this.curve.one,this.t=i&&new aD(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}PD.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},PD.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},PD.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},PD.prototype.pointFromX=function(e,t){(e=new aD(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=n.redMul(i.redInvm()),s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");var a=s.fromRed().isOdd();return(t&&!a||!t&&a)&&(s=s.redNeg()),this.point(e,s)},PD.prototype.pointFromY=function(e,t){(e=new aD(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),i=r.redMul(this.d).redMul(this.c2).redSub(this.a),o=n.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(t)throw Error("invalid point");return this.point(this.zero,e)}var s=o.redSqrt();if(0!==s.redSqr().redSub(o).cmp(this.zero))throw Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},PD.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},dE(LD,ED.BasePoint),PD.prototype.pointFromJSON=function(e){return LD.fromJSON(this,e)},PD.prototype.point=function(e,t,r,n){return new LD(this,e,t,r,n)},LD.fromJSON=function(e,t){return new LD(e,t[0],t[1],t[2])},LD.prototype.inspect=function(){return this.isInfinity()?"":""},LD.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},LD.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),s=o.redSub(r),a=n.redSub(t),u=i.redMul(s),l=o.redMul(a),c=i.redMul(a),h=s.redMul(o);return this.curve.point(u,l,h,c)},LD.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var s=(l=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),t=s.redMul(l.redSub(o)),r=s.redSqr().redSub(s).redSub(s);else{var a=this.z.redSqr(),u=s.redSub(a).redISub(a);e=n.redSub(i).redISub(o).redMul(u),t=s.redMul(l.redSub(o)),r=s.redMul(u)}}else{var l=i.redAdd(o);a=this.curve._mulC(this.z).redSqr(),u=l.redSub(a).redSub(a),e=this.curve._mulC(n.redISub(l)).redMul(u),t=this.curve._mulC(l).redMul(i.redISub(o)),r=l.redMul(u)}return this.curve.point(e,t,r)},LD.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},LD.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),s=i.redSub(n),a=i.redAdd(n),u=r.redAdd(t),l=o.redMul(s),c=a.redMul(u),h=o.redMul(u),d=s.redMul(a);return this.curve.point(l,c,d,h)},LD.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),s=this.y.redMul(e.y),a=this.curve.d.redMul(o).redMul(s),u=i.redSub(a),l=i.redAdd(a),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(s),h=n.redMul(u).redMul(c);return this.curve.twisted?(t=n.redMul(l).redMul(s.redSub(this.curve._mulA(o))),r=u.redMul(l)):(t=n.redMul(l).redMul(s.redSub(o)),r=this.curve._mulC(u).redMul(l)),this.curve.point(h,t,r)},LD.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},LD.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},LD.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},LD.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},LD.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},LD.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},LD.prototype.getX=function(){return this.normalize(),this.x.fromRed()},LD.prototype.getY=function(){return this.normalize(),this.y.fromRed()},LD.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},LD.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},LD.prototype.toP=LD.prototype.normalize,LD.prototype.mixedAdd=LD.prototype.add;var OD=cE((function(e,t){var r=t;r.base=ED,r.short=xD,r.mont=ID,r.edwards=DD})),jD=gE.rotl32,BD=gE.sum32,UD=gE.sum32_5,FD=ME,zD=bE.BlockHash,HD=[1518500249,1859775393,2400959708,3395469782];function GD(){if(!(this instanceof GD))return new GD;zD.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=Array(80)}gE.inherits(GD,zD);var YD=GD;GD.blockSize=512,GD.outSize=160,GD.hmacStrength=80,GD.padLength=64,GD.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),aE(e.length<=this.blockSize);for(var t=e.length;t=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var ZD=JD;JD.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=Array(this.outLen/8),this.V=Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},JD.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=dD.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"};var rL=fD.assert;function nL(e,t){if(e instanceof nL)return e;this._importDER(e,t)||(rL(e.r&&e.s,"Signature without r or s"),this.r=new aD(e.r,16),this.s=new aD(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var iL=nL;function oL(){this.place=0}function sL(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,s=t.place;o>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}nL.prototype._importDER=function(e,t){e=fD.toArray(e,t);var r=new oL;if(48!==e[r.place++])return!1;if(sL(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var n=sL(e,r),i=e.slice(r.place,n+r.place);if(r.place+=n,2!==e[r.place++])return!1;var o=sL(e,r);if(e.length!==o+r.place)return!1;var s=e.slice(r.place,o+r.place);return 0===i[0]&&128&i[1]&&(i=i.slice(1)),0===s[0]&&128&s[1]&&(s=s.slice(1)),this.r=new aD(i),this.s=new aD(s),this.recoveryParam=null,!0},nL.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=aL(t),r=aL(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];uL(n,t.length),(n=n.concat(t)).push(2),uL(n,r.length);var i=n.concat(r),o=[48];return uL(o,i.length),o=o.concat(i),fD.encode(o,e)};var lL=fD.assert;function cL(e){if(!(this instanceof cL))return new cL(e);"string"==typeof e&&(lL(QD.hasOwnProperty(e),"Unknown curve "+e),e=QD[e]),e instanceof QD.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var hL=cL;cL.prototype.keyPair=function(e){return new tL(this,e)},cL.prototype.keyFromPrivate=function(e,t){return tL.fromPrivate(this,e,t)},cL.prototype.keyFromPublic=function(e,t){return tL.fromPublic(this,e,t)},cL.prototype.genKeyPair=function(e){e||(e={});var t=new ZD({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||pD(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()});if("mont"===this.curve.type){var r=new aD(t.generate(32));return this.keyFromPrivate(r)}for(var n=this.n.byteLength(),i=this.n.sub(new aD(2));;)if(!((r=new aD(t.generate(n))).cmp(i)>0))return r.iaddn(1),this.keyFromPrivate(r)},cL.prototype._truncateToN=function(e,t,r){var n=(r=r||8*e.byteLength())-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},cL.prototype.truncateMsg=function(e){var t;return e instanceof Uint8Array?(t=8*e.byteLength,e=this._truncateToN(new aD(e,16),!1,t)):"string"==typeof e?(t=4*e.length,e=this._truncateToN(new aD(e,16),!1,t)):e=this._truncateToN(new aD(e,16)),e},cL.prototype.sign=function(e,t,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this.truncateMsg(e);for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),s=e.toArray("be",i),a=new ZD({hash:this.hash,entropy:o,nonce:s,pers:n.pers,persEnc:n.persEnc||"utf8"}),u=this.n.sub(new aD(1)),l=0;;l++){var c=n.k?n.k(l):new aD(a.generate(this.n.byteLength()));if(!((c=this._truncateToN(c,!0)).cmpn(1)<=0||c.cmp(u)>=0)){var h=this.g.mul(c);if(!h.isInfinity()){var d=h.getX(),f=d.umod(this.n);if(0!==f.cmpn(0)){var p=c.invm(this.n).mul(f.mul(t.getPrivate()).iadd(e));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==d.cmp(f)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new iL({r:f,s:p,recoveryParam:m})}}}}}},cL.prototype.verify=function(e,t,r,n){return r=this.keyFromPublic(r,n),t=new iL(t,"hex"),this._verify(this.truncateMsg(e),t,r)||this._verify(this._truncateToN(new aD(e,16)),t,r)},cL.prototype._verify=function(e,t,r){var n=t.r,i=t.s;if(n.cmpn(1)<0||n.cmp(this.n)>=0)return!1;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;var o,s=i.invm(this.n),a=s.mul(e).umod(this.n),u=s.mul(n).umod(this.n);return this.curve._maxwellTrick?!(o=this.g.jmulAdd(a,r.getPublic(),u)).isInfinity()&&o.eqXToP(n):!(o=this.g.mulAdd(a,r.getPublic(),u)).isInfinity()&&0===o.getX().umod(this.n).cmp(n)},cL.prototype.recoverPubKey=function(e,t,r,n){lL((3&r)===r,"The recovery param is more than two bits"),t=new iL(t,n);var i=this.n,o=new aD(e),s=t.r,a=t.s,u=1&r,l=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var c=t.r.invm(i),h=i.sub(o).mul(c).umod(i),d=a.mul(c).umod(i);return this.g.mulAdd(h,s,d)},cL.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new iL(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw Error("Unable to find valid recovery factor")};var dL=fD.assert,fL=fD.parseBytes,pL=fD.cachedProperty;function mL(e,t){if(this.eddsa=e,t.hasOwnProperty("secret")&&(this._secret=fL(t.secret)),e.isPoint(t.pub))this._pub=t.pub;else if(this._pubBytes=fL(t.pub),this._pubBytes&&33===this._pubBytes.length&&64===this._pubBytes[0]&&(this._pubBytes=this._pubBytes.slice(1,33)),this._pubBytes&&32!==this._pubBytes.length)throw Error("Unknown point compression format")}mL.fromPublic=function(e,t){return t instanceof mL?t:new mL(e,{pub:t})},mL.fromSecret=function(e,t){return t instanceof mL?t:new mL(e,{secret:t})},mL.prototype.secret=function(){return this._secret},pL(mL,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),pL(mL,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),pL(mL,"privBytes",(function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n})),pL(mL,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),pL(mL,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),pL(mL,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),mL.prototype.sign=function(e){return dL(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},mL.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},mL.prototype.getSecret=function(e){return dL(this._secret,"KeyPair is public only"),fD.encode(this.secret(),e)},mL.prototype.getPublic=function(e,t){return fD.encode((t?[64]:[]).concat(this.pubBytes()),e)};var gL=mL,yL=fD.assert,vL=fD.cachedProperty,bL=fD.parseBytes;function wL(e,t){this.eddsa=e,"object"!=typeof t&&(t=bL(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),yL(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof aD&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}vL(wL,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),vL(wL,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),vL(wL,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),vL(wL,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),wL.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},wL.prototype.toHex=function(){return fD.encode(this.toBytes(),"hex").toUpperCase()};var _L=wL,EL=fD.assert,AL=fD.parseBytes;function ML(e){if(EL("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof ML))return new ML(e);e=QD[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=VD.sha512}var SL=ML;ML.prototype.sign=function(e,t){e=AL(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),s=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),a=n.add(s).umod(this.curve.n);return this.makeSignature({R:i,S:a,Rencoded:o})},ML.prototype.verify=function(e,t,r){e=AL(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},ML.prototype.hashInt=function(){for(var e=this.hash(),t=0;t0)throw Error("Unknown option: "+h.join(", "));if(0===e.length)throw Error("UserIDs are required for key generation");if("rsa"===r&&nEC(e.subkeys[r],e)));let r=[dC(e,t)];r=r.concat(e.subkeys.map((e=>hC(e,t))));const n=await Promise.all(r),i=await jC(n[0],n.slice(1),e,t),o=await i.getRevocationCertificate(e.date,t);return i.revocationSignatures=[],{key:i,revocationCertificate:o}}(d,l);return e.getKeys().forEach((({keyPacket:e})=>xC(e,l))),{privateKey:sI(e,u,l),publicKey:sI(e.toPublic(),u,l),revocationCertificate:t}}catch(e){throw i_.wrapError("Error generating keypair",e)}}({type:"rsa",rsaBits:2048,userIDs:[{name:"",email:""}]});return{privateKeyArmored:e.privateKey,publicKeyArmored:e.publicKey}},async sign({message:e,signingKey:t}){const r=await WC({text:e}),n=await UC({armoredKey:t});return await JC({message:r,signingKeys:n,detached:!0})},async pgpEncrypt({plainText:e,keys:t}){const r=[];for(let i=0;i0)throw Error("Unknown option: "+o.join(", "));if(e){const{type:e,data:t}=await w_(i,r);if(e!==r_.armor.signature)throw Error("Armored text not of type signature");i=t}const s=await OT.fromBinary(i,lC,r);return new cC(s)}({armoredSignature:t}),o=await BC({armoredKey:r}),s=await async function({message:e,verificationKeys:t,expectSigned:r=!1,format:n="utf8",signature:i=null,date:o=new Date,config:s,...a}){if(rI(s={...d_,...s}),XC(e),t=nI(t),a.publicKeys)throw Error("The `publicKeys` option has been removed from openpgp.verify, pass `verificationKeys` instead");const u=Object.keys(a);if(u.length>0)throw Error("Unknown option: "+u.join(", "));if(e instanceof VC&&"binary"===n)throw Error("Can't return cleartext message data as binary");if(e instanceof VC&&i)throw Error("Can't verify detached cleartext signature");try{const a={};if(a.signatures=i?await e.verifyDetached(i,t,o,s):await e.verify(t,o,s),a.data="binary"===n?e.getLiteralData():e.getText(),e.fromStream&&oI(a,e),r){if(0===a.signatures.length)throw Error("Message is not signed");a.data=Bw([a.data,Xw((async()=>{await i_.anyPromise(a.signatures.map((e=>e.verified)))}))])}return a.data=await iI(a.data,e.fromStream,n),a}catch(e){throw i_.wrapError("Error verifying signed message",e)}}({message:n,signature:i,verificationKeys:o}),{verified:a}=s.signatures[0];try{await a}catch(fVe){throw new Error("Signature could not be verified: "+fVe)}}},CL=async({message:e,signingKey:t})=>{const r=await WC({text:e}),n=await UC({armoredKey:t});return await JC({message:r,signingKeys:n,detached:!0})},IL={"PUSH-CREATE-01":{progressId:"PUSH-CREATE-01",progressTitle:"Generating Secure Profile Signature",progressInfo:"This step is only done for first time users and might take a few seconds. PGP keys are getting generated to provide you with secure yet seamless chat",level:"INFO"},"PUSH-CREATE-02":{progressId:"PUSH-CREATE-02",progressTitle:"Signing Generated Profile",progressInfo:"This step is only done for first time users. Please sign the message to continue.",level:"INFO"},"PUSH-CREATE-03":{progressId:"PUSH-CREATE-03",progressTitle:"Encrypting Generated Profile",progressInfo:"Encrypting your keys. Please sign the message to continue.",level:"INFO"},"PUSH-CREATE-04":{progressId:"PUSH-CREATE-04",progressTitle:"Syncing Generated Profile",progressInfo:"Please sign the message to continue. Steady lads, chat is almost ready!",level:"INFO"},"PUSH-CREATE-05":{progressId:"PUSH-CREATE-05",progressTitle:"Setup Complete",progressInfo:"",level:"SUCCESS"},"PUSH-UPGRADE-01":{progressId:"PUSH-UPGRADE-01",progressTitle:"Generating New Profile Signature",progressInfo:"Trying to Upgrade Push Chat Keys to latest version. Please sign the message to continue.",level:"INFO"},"PUSH-UPGRADE-02":{progressId:"PUSH-UPGRADE-02",progressTitle:"Decrypting Old Profile",progressInfo:"Trying to Upgrade Push Chat Keys to latest version. Please sign the message to continue.",level:"INFO"},"PUSH-UPGRADE-03":{progressId:"PUSH-UPGRADE-03",progressTitle:"Generating Encrypted New Profile",progressInfo:"Trying to Upgrade Push Chat Keys to latest version. Encrypting Push Chat Keys with latest version. Please sign the message to continue.",level:"INFO"},"PUSH-UPGRADE-04":{progressId:"PUSH-UPGRADE-04",progressTitle:"Syncing New Profile",progressInfo:"Please sign the message to continue. Steady lads, chat is almost ready!",level:"INFO"},"PUSH-UPGRADE-05":{progressId:"PUSH-UPGRADE-05",progressTitle:"Upgrade Completed, Welcome to Push Chat",progressInfo:"",level:"SUCCESS"},"PUSH-DECRYPT-01":{progressId:"PUSH-DECRYPT-01",progressTitle:"Decrypting Profile",progressInfo:"Please sign the transaction to decrypt profile",level:"INFO"},"PUSH-DECRYPT-02":{progressId:"PUSH-DECRYPT-02",progressTitle:"Push Profile Unlocked",progressInfo:"Unlocking push profile",level:"SUCCESS"},"PUSH-AUTH-UPDATE-01":e=>({progressId:"PUSH-AUTH-UPDATE-01",progressTitle:"Generating New Profile Signature",progressInfo:`Trying to Update Push Chat Keys to ${e} version. Please sign the message to continue.`,level:"INFO"}),"PUSH-AUTH-UPDATE-02":e=>({progressId:"PUSH-AUTH-UPDATE-02",progressTitle:"Generating New Encrypted Profile",progressInfo:`Encrypting Push Chat Keys with ${e} version. Please sign the message to continue.`,level:"INFO"}),"PUSH-AUTH-UPDATE-03":{progressId:"PUSH-AUTH-UPDATE-03",progressTitle:"Syncing Updated Profile",progressInfo:"Please sign the message to continue. Steady lads, chat is almost ready!",level:"INFO"},"PUSH-AUTH-UPDATE-04":{progressId:"PUSH-AUTH-UPDATE-04",progressTitle:"Update Completed, Welcome to Push Chat",progressInfo:"",level:"SUCCESS"},"PUSH-AUTH-UPDATE-05":{progressId:"PUSH-AUTH-UPDATE-05",progressTitle:"Generating New Profile Signature",progressInfo:"Trying to Update Push Profile creds. Please sign the message to continue.",level:"INFO"},"PUSH-AUTH-UPDATE-06":{progressId:"PUSH-AUTH-UPDATE-06",progressTitle:"Generating New Profile Signature",progressInfo:"Encrypting Push Chat Keys with new creds. Please sign the message to continue.",level:"INFO"},"PUSH-DECRYPT-AUTH-01":{progressId:"PUSH-DECRYPT-AUTH-01",progressTitle:"Decrypting Profile Creds",progressInfo:"Please sign the transaction to decrypt profile creds",level:"INFO"},"PUSH-DECRYPT-AUTH-02":{progressId:"PUSH-DECRYPT-AUTH-02",progressTitle:"Push Profile Creds Unlocked",progressInfo:"Unlocking push profile creds",level:"SUCCESS"},"PUSH-PROFILE-UPDATE-01":{progressId:"PUSH-PROFILE-UPDATE-01",progressTitle:"Syncing Updated Profile",progressInfo:"Steady lads, your profile is getting a new look!",level:"INFO"},"PUSH-PROFILE-UPDATE-02":{progressId:"PUSH-PROFILE-UPDATE-02",progressTitle:"Profile Update Completed, Welcome to Push Chat",progressInfo:"",level:"SUCCESS"},"PUSH-CHANNEL-CREATE-01":{progressId:"PUSH-CHANNEL-CREATE-01",progressTitle:"Uploading data to IPFS",progressInfo:"The channel\u2019s data is getting uploaded to IPFS",level:"INFO"},"PUSH-CHANNEL-CREATE-02":{progressId:"PUSH-CHANNEL-CREATE-02",progressTitle:"Approving PUSH tokens",progressInfo:"Gives approval to Push Core contract to spend 50 DAI",level:"INFO"},"PUSH-CHANNEL-CREATE-03":{progressId:"PUSH-CHANNEL-CREATE-03",progressTitle:"Channel is getting created",progressInfo:"Calls Push Core contract to create your channel",level:"INFO"},"PUSH-CHANNEL-CREATE-04":{progressId:"PUSH-CHANNEL-CREATE-04",progressTitle:"Channel creation is done, Welcome to Push Ecosystem",progressInfo:"Channel creation is completed",level:"SUCCESS"},"PUSH-CHANNEL-UPDATE-01":{progressId:"PUSH-CHANNEL-UPDATE-01",progressTitle:"Uploading new data to IPFS",progressInfo:"The channel\u2019s new data is getting uploaded to IPFS",level:"INFO"},"PUSH-CHANNEL-UPDATE-02":{progressId:"PUSH-CHANNEL-UPDATE-02",progressTitle:"Approving PUSH tokens",progressInfo:"Gives approval to Push Core contract to spend 50 DAI",level:"INFO"},"PUSH-CHANNEL-UPDATE-03":{progressId:"PUSH-CHANNEL-UPDATE-03",progressTitle:"Channel is getting updated",progressInfo:"Calls Push Core contract to update your channel details",level:"INFO"},"PUSH-CHANNEL-UPDATE-04":{progressId:"PUSH-CHANNEL-UPDATE-04",progressTitle:"Channel is updated with new data",progressInfo:"Channel is successfully updated",level:"SUCCESS"},"PUSH-ERROR-00":(e,t)=>({progressId:"PUSH-ERROR-00",progressTitle:"Non Specific Error",progressInfo:`[Push SDK] - API - Error - API ${e}() -: ${t}`,level:"ERROR"}),"PUSH-ERROR-01":e=>({progressId:"PUSH-ERROR-01",progressTitle:"Upgrade Profile Failed",progressInfo:`[Push SDK] - API - Error - API decryptPgpKey() -: ${e}`,level:"WARN"}),"PUSH-ERROR-02":(e,t)=>({progressId:"PUSH-ERROR-02",progressTitle:"Transaction failed",progressInfo:`[Push SDK] - Contract - Error - ${e} -: ${t}`,level:"ERROR"})},NL=e=>{if(!e)return e;e.name=e.profile.name,e.about=e.profile.desc,e.profilePicture=e.profile.picture,e.numMsg=e.msgSent,e.allowedNumMsg=e.maxMsgPersisted;let t="",r="",n="";try{const{version:r}=JSON.parse(e.encryptedPrivateKey);t=r}catch(dVe){}e.encryptionType=t;try{r=e.verificationProof.split(":")[0],n=e.verificationProof.split(":")[1]}catch(dVe){}return e.signature=n,e.sigType=r,e.encryptedPassword=null,e.nftOwner=null,e.linkedListHash=null,e.nfts=null,e};var RL=r(43653),PL=r.n(RL),DL=r(98399);const LL=r(74648).version,OL=e=>{const t=Object.assign({},null==e?void 0:e.headers,{"X-JS-SDK-VERSION":LL});return Object.assign({},e,{headers:t})},jL=e=>{const t=e.headers["x-deprecation-notice"];if(t){var r;const n=null==(r=e.config.method)?void 0:r.toUpperCase(),i=e.config.url;DL.warn(`%cDeprecation Notice%c Method: ${n}, Path: ${i}, Notice: ${t}`,"color: white; background-color: red; font-weight: bold; padding: 2px 4px;","color: red; font-weight: bold;")}return e},BL=async(e,t)=>PL().get(e,OL(t)).then((e=>jL(e))),UL=async(e,t,r)=>PL().post(e,t,OL(r)).then((e=>jL(e))),FL=async(e,t,r)=>PL().put(e,t,OL(r)).then((e=>jL(e)));var zL=r(98399);const HL=async e=>{const{account:t,env:r=og.ENV.PROD}=e||{};if(!ZO(t))throw new Error("Invalid address!");const n=aj(t),i=`${nw(r)}/v2/users/?caip10=${n}`;return BL(i).then((async e=>(e.data&&(e.data.publicKey=await Sj(e.data.encryptedPrivateKey,e.data.publicKey,e.data.did,e.data.wallets,e.data.verificationProof)),NL(e.data)))).catch((e=>{throw zL.error(`[Push SDK] - API ${i}: `,e),Error(`[Push SDK] - API ${i}: ${e}`)}))};var GL;!function(e){e["x25519-xsalsa20-poly1305"]="PGP_V1",e.aes256GcmHkdfSha256="PGP_V2",e["eip191-aes256-gcm-hkdf-sha256"]="PGP_V3",e["pgpv1:nft"]="NFTPGP_V1"}(GL||(GL={}));const YL=async e=>{const{pgpPrivateKey:t,pgpEncryptionVersion:r,signer:n,pgpPublicKey:i,account:o=null,env:s=og.ENV.PROD,additionalMeta:a,progressHook:u}=e||{};try{const e=aO({account:o,signer:n}),c=await uO(e),h=r===og.ENCRYPTION_TYPE.NFTPGP_V1;if(!ZO(c))throw new Error("Invalid address!");const d=aj(c),f=await HL({account:d,env:s});if(!f||!f.encryptedPrivateKey)throw new Error("User not Found!");h?null==u||u(IL["PUSH-AUTH-UPDATE-05"]):null==u||u(IL["PUSH-AUTH-UPDATE-01"](GL[r]));const p=await Mj(r,i,e);h?null==u||u(IL["PUSH-AUTH-UPDATE-06"]):null==u||u(IL["PUSH-AUTH-UPDATE-02"](GL[r]));const m=await Aj(r,t,e,a);if(r===tg.NFTPGP_V1){var l;const t=await Aj(tg.PGP_V3,null==a||null==(l=a.NFTPGP_V1)?void 0:l.password,e,a);m.encryptedPassword=t}null==u||u(IL["PUSH-AUTH-UPDATE-03"]);const g={user:f.did,wallet:e,publicKey:p,encryptedPrivateKey:JSON.stringify(m),env:s},y=await gO(g);return null==u||u(IL["PUSH-AUTH-UPDATE-04"]),y}catch(dVe){const t=IL["PUSH-ERROR-00"];throw null==u||u(t(YL.name,dVe)),Error(`[Push SDK] - API - Error - API ${YL.name} -: ${dVe}`)}},KL=async e=>qL(e,TL),qL=async(e,t)=>{const{pgpPrivateKey:r,account:n,profile:i,env:o=og.ENV.PROD,progressHook:s}=e||{};try{if(!ZO(n))throw new Error("Invalid account!");const e=await HL({account:n,env:o});if(!e||!e.did)throw new Error("User not Found!");let a=null;if(i.blockedUsersList){for(const t of i.blockedUsersList)if(!ZO(t))throw new Error("Invalid address in the blockedUsersList: "+t);const e=i.blockedUsersList.map((async e=>dO(e,o)));a=await Promise.all(e),a=Array.from(new Set(a))}const u={name:i.name?i.name:e.profile.name,desc:i.desc?i.desc:e.profile.desc,picture:i.picture?i.picture:e.profile.picture,blockedUsersList:i.blockedUsersList?a:[]},l=iw.SHA256(JSON.stringify(u)).toString(),c=await t.sign({message:l,signingKey:r}),h=`${"pgpv2"}:${c}`,d=Object.assign({},u,{verificationProof:h}),f=`${nw(o)}/v2/users/${e.did}/profile`;null==s||s(IL["PUSH-PROFILE-UPDATE-01"]);const p=await FL(f,d);return p.data&&(p.data.publicKey=await Sj(p.data.encryptedPrivateKey,p.data.publicKey,p.data.did,p.data.wallets,p.data.verificationProof)),null==s||s(IL["PUSH-PROFILE-UPDATE-02"]),NL(p.data)}catch(dVe){const t=IL["PUSH-ERROR-00"];throw null==s||s(t(KL.name,dVe)),Error(`[Push SDK] - API - Error - API ${KL.name} -: ${dVe}`)}},WL=async e=>await VL(e,TL),VL=async(e,t)=>{const r="$0Pc",{env:n=og.ENV.PROD,account:i=null,signer:o=null,version:s=og.ENC_TYPE_V3,additionalMeta:a={NFTPGP_V1:{password:r+aw(10)}},progressHook:u,origin:l}=e||{};try{var c;if(null==i&&null==o)throw new Error("At least one from account or signer is necessary!");const e=aO({account:i,signer:o}),r=await uO(e);if(!ZO(r))throw new Error("Invalid address!");null!=a&&null!=(c=a.NFTPGP_V1)&&c.password&&xj(a.NFTPGP_V1.password);const d=aj(r);let f=s;ej(d)?f=og.ENC_TYPE_V4:o||(f=og.ENC_TYPE_V1),null==u||u(IL["PUSH-CREATE-01"]);const p=await t.generateKeyPair();null==u||u(IL["PUSH-CREATE-02"]);const m=await Mj(f,p.publicKeyArmored,e);null==u||u(IL["PUSH-CREATE-03"]);const g=await Aj(f,p.privateKeyArmored,e,a);if(f===og.ENC_TYPE_V4){var h;const t=await Aj(og.ENC_TYPE_V3,null==(h=a.NFTPGP_V1)?void 0:h.password,e,a);g.encryptedPassword=t}null==u||u(IL["PUSH-CREATE-04"]);const y={user:d,wallet:e,publicKey:m,encryptedPrivateKey:JSON.stringify(g),env:n,origin:l},v=await mO(y);return null==u||u(IL["PUSH-CREATE-05"]),v.decryptedPrivateKey=p.privateKeyArmored,v}catch(dVe){const t=IL["PUSH-ERROR-00"];throw null==u||u(t(WL.name,dVe)),Error(`[Push SDK] - API - Error - API ${WL.name} -: ${dVe}`)}};function $L(e){return e.map((e=>{const{payload:{data:{acta:t="",amsg:r="",asub:n="",icon:i="",url:o="",sid:s="",app:a="",aimg:u="",secret:l=""},notification:c},source:h}=e;return{cta:t,title:n||"",message:r||c.body||"",icon:i,url:o,sid:s,app:a,image:u,blockchain:h,notification:c,secret:l}}))}var QL=r(98399);const JL=async e=>{const{user:t,env:r=og.ENV.PROD,page:n=og.PAGINATION.INITIAL_PAGE,limit:i=og.PAGINATION.LIMIT,spam:o=!1,raw:s=!1}=e||{},a=await oj(r,t,"User"),u=`${`${nw(r)}/v1/users/${a}/feeds`}?${lj({page:n,limit:cj(i),spam:o})}`;return BL(u).then((e=>{var t,r;return s?(null==e||null==(r=e.data)?void 0:r.feeds)||[]:$L(null==e||null==(t=e.data)?void 0:t.feeds)||[]})).catch((e=>{QL.error(`[Push SDK] - API ${u}: `,e)}))};var ZL=r(98399);const XL=async e=>{const{user:t,env:r=og.ENV.PROD}=e||{},n=await oj(r,t,"User"),i=`${`${nw(r)}/v1/users/${n}/subscriptions`}`;return BL(i).then((e=>{var t;return(null==(t=e.data)?void 0:t.subscriptions)||[]})).catch((e=>{ZL.error(`[Push SDK] - API ${i}: `,e)}))};var eO=r(98399);var tO=r(98399);const rO=async e=>{const{env:t=og.ENV.PROD,account:r=null,signer:n,additionalMeta:i,progressHook:o}=e||{};try{const e=aO({account:r,signer:n}),s=await uO(e);if(!ZO(s))throw new Error("Invalid address!");const a=await HL({account:s,env:t});if(!a||!a.encryptedPrivateKey)throw new Error("User Not Found!");const u=og.ENCRYPTION_TYPE.PGP_V3,{version:l}=JSON.parse(a.encryptedPrivateKey);if(l===u||l===og.ENCRYPTION_TYPE.NFTPGP_V1)return a;null==o||o(IL["PUSH-UPGRADE-02"]);const c=await mj({encryptedPGPPrivateKey:a.encryptedPrivateKey,signer:n,env:t,toUpgrade:!1,additionalMeta:i}),h=await YL({pgpPrivateKey:c,pgpEncryptionVersion:u,signer:n,pgpPublicKey:a.publicKey,account:a.did,env:t,additionalMeta:i,progressHook:o});return null==o||o(IL["PUSH-UPGRADE-05"]),h}catch(dVe){const t=IL["PUSH-ERROR-00"];throw null==o||o(t(rO.name,dVe)),Error(`[Push SDK] - API - Error - API ${rO.name} -: ${dVe}`)}},nO=async e=>{const{account:t,signer:r,env:n=og.ENV.PROD,additionalMeta:i,progressHook:o}=e||{};try{var s;if(!ej(t))return null;null==o||o(IL["PUSH-DECRYPT-AUTH-01"]);const e=await mj({encryptedPGPPrivateKey:null==i||null==(s=i.NFTPGP_V1)?void 0:s.encryptedPassword,signer:r,account:t,env:n});return null==o||o(IL["PUSH-DECRYPT-AUTH-02"]),e}catch(dVe){throw null==o||o(IL["PUSH-ERROR-00"](nO.name,dVe)),Error(`[Push SDK] - API - Error - API ${nO.name} -: ${dVe}`)}};var iO=r(98399);const oO={update:YL},sO=KL,aO=e=>{const{account:t,signer:r}=e||{};return{account:t?uj(t):t,signer:r}},uO=async e=>{const{account:t,signer:r}=e||{},n=new hj(r);return t||await n.getAddress()||""};var lO=r(98399);const cO=async(e,t,r)=>await hO(e,t,r,TL),hO=async(e,t,r,n)=>{const i=await uO(e),o=await HL({account:i,env:r||og.ENV.PROD});if(null!=o&&o.encryptedPrivateKey){if(t)return Object.assign({},o,{privateKey:t});{lO.warn("Please note that if you don't pass the pgpPrivateKey parameter, a wallet popup will appear every time the approveRequest endpoint is called. We strongly recommend passing this parameter, and it will become mandatory in future versions of the API.");const t=await NO(e,o,i);return Object.assign({},o,{privateKey:t})}}{const t={};e.account&&(t.account=e.account),o&&o.did&&(t.account=o.did),e.signer&&(t.signer=e.signer),t.env=r;const s=await VL(t,n),a=await NO(e,s,i);return Object.assign({},s,{privateKey:a})}},dO=async(e,t)=>{if(ej(e)){if(6===e.split(":").length)return e;const r=await HL({account:e,env:t});if(r&&r.did)return r.did;e=`${e}:${Math.floor(Date.now()/1e3)}`}return ZO(e)?aj(e):e};function fO(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}const pO=["did"],mO=async e=>{const{wallet:t,publicKey:r="",encryptedPrivateKey:n="",env:i=og.ENV.PROD,origin:o}=e||{};let{user:s}=e||{};const a=`${nw(i)}/v2/users/`;if(ej(s)){const e=Math.floor(Date.now()/1e3);6!==s.split(":").length&&(s=`${s}:${e}`)}const u={caip10:aj(s),did:aj(s),publicKey:r,encryptedPrivateKey:n},l=gj(u),c=await CO(t,l,"v2"),h=Object.assign({},u,{origin:o},c);return UL(a,h).then((async e=>(e.data&&(e.data.publicKey=await Sj(e.data.encryptedPrivateKey,e.data.publicKey,e.data.did,e.data.wallets,e.data.verificationProof)),NL(e.data)))).catch((e=>{throw Error(`[Push SDK] - API ${a}: ${e}`)}))},gO=async e=>{const{user:t,wallet:r,publicKey:n="",encryptedPrivateKey:i="",env:o=og.ENV.PROD}=e||{},s=`${nw(o)}/v2/users/${aj(t)}/auth`,a={caip10:aj(t),did:aj(t),publicKey:n,encryptedPrivateKey:i},u=gj(a),l=await CO(r,u,"v2"),c=fO(Object.assign({},a,l),pO);return FL(s,c).then((async e=>(e.data&&(e.data.publicKey=await Sj(e.data.encryptedPrivateKey,e.data.publicKey,e.data.did,e.data.wallets,e.data.verificationProof)),NL(e.data)))).catch((e=>{throw Error(`[Push SDK] - API ${s}: ${e}`)}))};r(4107);var yO=r(79238);const vO=e=>({name:"PUSH CHAT ID",chainId:e,verifyingContract:"0x0000000000000000000000000000000000000000"}),bO=(e,t,r)=>{const n={data:e},i={Data:[{name:"data",type:"string"}]},o=vO(t);let s,a={};return"V1"===r?s={EIP712Domain:[],Data:i.Data}:(s={EIP712Domain:[{name:"name",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"}],Data:i.Data},a=o),{types:s,primaryType:"Data",domain:a,message:n}};var wO=r(98399);const _O=async e=>{const{sessionKey:t,env:r=og.ENV.PROD}=e||{};try{if(null==t)throw new Error("sessionKey is required");const e=`${nw(r)}/v1/chat/encryptedsecret/sessionKey/${t}`;return PL().get(e).then((e=>e.data.encryptedSecret)).catch((e=>{var t,r;if(null!=e&&null!=(t=e.response)&&t.data)throw new Error(null==e||null==(r=e.response)?void 0:r.data);throw new Error(e)}))}catch(dVe){throw wO.error(`[Push SDK] - API - Error - API ${_O.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${_O.name} -: ${dVe}`)}};var EO=r(98399);const AO=async e=>{const{chatId:t,env:r=og.ENV.PROD}=e||{};try{if(null==t||0==t.length)throw new Error("chatId cannot be null or empty");const e=`${nw(r)}/v1/chat/groups/${t}`;return(await BL(e)).data}catch(dVe){throw EO.error(`[Push SDK] - API - Error - API ${AO.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${AO.name} -: ${dVe}`)}};var MO=r(98399);const SO=async({plainText:e,keys:t,privateKeyArmored:r,secretKey:n,pgpHelper:i})=>{const o=ow({plainText:e,secretKey:n});return{cipherText:o,encryptedSecret:await i.pgpEncrypt({plainText:n,keys:t}),signature:await i.sign({message:o,signingKey:r}),sigType:"pgp",encType:"pgp"}},xO=async({message:e,privateKeyArmored:t,pgpHelper:r})=>({signature:await r.sign({message:e,signingKey:t}),sigType:"pgp"}),kO=async({feeds:e,connectedUser:t,pgpPrivateKey:r,env:n=og.ENV.PROD,pgpHelper:i})=>{let o,s;for(const a of e){let e=!1;if("PlainText"!==a.msg.encType){if(!r)throw Error("Decrypted private key is necessary");a.msg.fromCAIP10!==t.wallets.split(",")[0]?(e||(o=await HL({account:a.msg.fromCAIP10,env:n}),e=!0),s=o.publicKey):s=t.publicKey,a.msg=await RO(a.msg,s,r,n,i)}}return e},TO=async(e,t,r,n,i,o,s,a)=>{if(n){if(o){if(o.isPublic){const{signature:e}=await xO({message:r,privateKeyArmored:t.privateKey,pgpHelper:a});return{message:r,encryptionType:"PlainText",aesEncryptedSecret:"",signature:e}}if(o.sessionKey&&o.encryptedSecret){const e=ow({plainText:r,secretKey:s});return{message:e,encryptionType:"pgpv1:group",aesEncryptedSecret:null,signature:await a.sign({message:e,signingKey:t.privateKey})}}{const e=(await AO({chatId:o.chatId,env:i})).members.map((e=>e.publicKey)),{cipherText:n,encryptedSecret:u,signature:l}=await SO({plainText:r,keys:e,privateKeyArmored:t.privateKey,secretKey:s,pgpHelper:a});return{message:n,encryptionType:"pgp",aesEncryptedSecret:u,signature:l}}}throw new Error("Unable to find Group Data")}{const n=await HL({account:e,env:i});if(null!=n&&n.publicKey){if(n.publicKey.includes("-----BEGIN PGP PUBLIC KEY BLOCK-----")){const{cipherText:e,encryptedSecret:i,signature:o}=await SO({plainText:r,keys:[n.publicKey,t.publicKey],privateKeyArmored:t.privateKey,secretKey:s,pgpHelper:a});return{message:e,encryptionType:"pgp",aesEncryptedSecret:i,signature:o}}{const{signature:e}=await xO({message:r,privateKeyArmored:t.privateKey,pgpHelper:a});return{message:r,encryptionType:"PlainText",aesEncryptedSecret:"",signature:e}}}{if(!ZO(e))throw new Error("Invalid receiver address!");await mO({user:e,publicKey:"",encryptedPrivateKey:"",env:i});const{signature:n}=await xO({message:r,privateKeyArmored:t.privateKey,pgpHelper:a});return{message:r,encryptionType:"PlainText",aesEncryptedSecret:"",signature:n}}}},CO=async(e,t,r="v1")=>{if(null==e||!e.signer)return MO.warn("This method is deprecated. Provide signer in the function"),{signature:"xyz",sigType:"a"};const n=null==e?void 0:e.signer,i=new hj(n);return{verificationProof:`${"v1"===r?"eip191":"eip191v2"}:${await i.signMessage(t)}`}},IO=async(e,t,r)=>{if(null==e||!e.signer)return MO.warn("This method is deprecated. Provide signer in the function"),{signature:"xyz",sigType:"a"};const n={Data:[{name:"data",type:"string"}]},i=null==e?void 0:e.signer,o=new hj(i);let s;try{s=await o.getChainId()}catch(dVe){s=1}const a=vO(s),u=await o.signTypedData(r?{}:a,n,{data:t},"Data");return{verificationProof:r?`eip712v2:${u}`:`eip712v2:${s}:${u}`}};async function NO(e,t,r){let n;return n=e.signer?await mj({signer:e.signer,encryptedPGPPrivateKey:t.encryptedPrivateKey}):await pj(t.encryptedPrivateKey,r),n}const RO=async(e,t,r,n,i=TL)=>{if(e.verificationProof&&"pgpv2"===e.verificationProof.split(":")[0]){const r={fromDID:e.fromDID,toDID:e.fromDID,fromCAIP10:e.fromCAIP10,toCAIP10:e.toCAIP10,messageObj:e.messageObj,messageType:e.messageType,encType:e.encType,encryptedSecret:e.encryptedSecret},n=iw.SHA256(JSON.stringify(r)).toString(),o=e.verificationProof.split(":")[1];await i.verifySignature({messageContent:n,signatureArmored:o,publicKeyArmored:t})}else if(e.verificationProof&&"pgpv3"===e.verificationProof.split(":")[0]){const r={fromDID:e.fromDID,toDID:e.fromDID,fromCAIP10:e.fromCAIP10,toCAIP10:e.toCAIP10,messageObj:e.messageObj,messageType:e.messageType,encType:e.encType,sessionKey:e.sessionKey,encryptedSecret:e.encryptedSecret},n=iw.SHA256(JSON.stringify(r)).toString(),o=e.verificationProof.split(":")[1];await i.verifySignature({messageContent:n,signatureArmored:o,publicKeyArmored:t})}else if(null==e.link){const r={fromDID:e.fromDID,toDID:e.toDID,messageContent:e.messageContent,messageType:e.messageType},n=iw.SHA256(JSON.stringify(r)).toString();try{await i.verifySignature({messageContent:n,signatureArmored:e.signature,publicKeyArmored:t})}catch(dVe){await i.verifySignature({messageContent:e.messageContent,signatureArmored:e.signature,publicKeyArmored:t})}}else await i.verifySignature({messageContent:e.messageContent,signatureArmored:e.signature,publicKeyArmored:t});const o=Object.assign({},e);try{"pgpv1:group"===e.encType&&(e.encryptedSecret=await _O({sessionKey:e.sessionKey,env:n}));const t=await i.pgpDecrypt({cipherText:e.encryptedSecret,toPrivateKeyArmored:r});o.messageContent=sw({cipherText:e.messageContent,secretKey:t}),e.messageObj&&(o.messageObj=JSON.parse(sw({cipherText:e.messageObj,secretKey:t})))}catch(dVe){o.messageContent=o.messageObj="Unable to Decrypt Message"}return o};var PO=r(98399);async function DO(e,t){const{env:r=og.ENV.PROD}=t||{},n=`${nw(r)}/v1/ipfs/${e}`;try{const e=await BL(n);return e.data}catch(dVe){throw PO.error(`[Push SDK] - API ${DO.name}: `,dVe),Error(`[Push SDK] - API ${DO.name}: ${dVe}`)}}const LO=async(e,t=TL)=>{const{lists:r,user:n,toDecrypt:i,pgpPrivateKey:o,env:s=og.ENV.PROD}=e||{},a=await HL({account:uj(n),env:s}),u=[];for(const l of r){let e;e=null!==l.threadhash?await DO(l.threadhash,{env:s}):{encType:"PlainText",encryptedSecret:"",fromCAIP10:"",fromDID:"",link:"",messageContent:"",messageType:"",sigType:"",signature:"",toCAIP10:"",toDID:""},u.push(Object.assign({},l,{msg:e,groupInformation:l.groupInformation}))}return i?kO({feeds:u,connectedUser:a,pgpPrivateKey:o,pgpHelper:t,env:s}):u},OO=async e=>{const{lists:t,user:r,toDecrypt:n,pgpPrivateKey:i,env:o=og.ENV.PROD}=e||{},s=await HL({account:uj(r),env:o}),a=[];for(const u of t){let e;e=null!==u.threadhash?await DO(u.threadhash,{env:o}):{encType:"PlainText",encryptedSecret:"",fromCAIP10:"",fromDID:"",link:"",messageContent:"",messageType:"",sigType:"",signature:"",toCAIP10:"",toDID:""},a.push(Object.assign({},u,{msg:e,spaceInformation:u.spaceInformation}))}return n?kO({feeds:a,connectedUser:s,pgpPrivateKey:i,pgpHelper:TL,env:o}):a},jO=async e=>{const{messages:t,connectedUser:r,pgpPrivateKey:n,pgpHelper:i=TL,env:o=og.ENV.PROD}=e||{};let s,a;for(let u=0;u{const e={};return t=>(t.forEach((t=>{if(ej(t.did)){const r=t.did.split(":").slice(0,5).join(":"),n=t.did.split(":")[5];(!e[r]||n>e[r].split(":")[5])&&(e[r]=t.did)}})),t.forEach((t=>{if(ej(t.did)){const r=t.did.split(":").slice(0,5).join(":");e[r]!==t.did&&(t.deprecated=!0,t.deprecatedCode="NFT Owner Changed")}})),t)})(),UO=(()=>{const e={};return t=>(t.forEach((t=>{if(ej(t.fromDID)){const r=t.fromDID.split(":").slice(0,5).join(":"),n=t.fromDID.split(":")[5];(!e[r]||n>e[r].split(":")[5])&&(e[r]=t.fromDID)}})),t.forEach((t=>{if(ej(t.fromDID)){const r=t.fromDID.split(":").slice(0,5).join(":");e[r]!==t.fromDID&&(t.deprecated=!0,t.deprecatedCode="NFT Owner Changed")}})),t)})();var FO=r(98399);const zO=async e=>{const{chatId:t,page:r=1,limit:n=20,env:i=og.ENV.PROD,pending:o,role:s}=e;try{if(!t)throw new Error("Chat ID is required.");let e=`${nw(i)}/v1/chat/groups/${t}/members?pageNumber=${r}&pageSize=${n}`;void 0!==o&&(e+=`&pending=${o}`),s&&(e+=`&role=${encodeURIComponent(s)}`);return(await PL().get(e)).data.members}catch(XMe){throw FO.error(`[Push SDK] - API - Error - API ${zO.name} -: `,XMe),new Error(`[Push SDK] - API - Error - API ${zO.name} -: ${XMe}`)}};var HO=r(98399);const GO=async e=>{const{chatId:t,env:r=og.ENV.PROD}=e;try{if(!t)throw new Error("Chat ID is required.");const e=`${nw(r)}/v1/chat/groups/${t}/members/count`,n=await PL().get(e),{totalMembersCount:i}=n.data;return i}catch(XMe){throw HO.error(`[Push SDK] - API - Error - API ${GO.name} -: `,XMe),new Error(`[Push SDK] - API - Error - API ${GO.name} -: ${XMe}`)}},YO=async(e,t,r,n,i,o,s,a)=>{const u=!ZO(e);let l;l=u&&null!=o&&o.encryptedSecret&&o.sessionKey?await(async({cipherText:e,toPrivateKeyArmored:t})=>{const r=await qC({armoredMessage:e}),n=await UC({armoredKey:t}),{data:i}=await QC({message:r,decryptionKeys:n});return i})({cipherText:o.encryptedSecret,toPrivateKeyArmored:t.privateKey}):aw(15);const{message:c,signature:h}=await TO(e,t,n,u,s,o,l,a),{message:d,encryptionType:f,aesEncryptedSecret:p}=await TO(e,t,JSON.stringify(r),u,s,o,l,a),m={fromDID:aj(t.wallets.split(",")[0]),toDID:u?e:aj(e),fromCAIP10:aj(t.wallets.split(",")[0]),toCAIP10:u?e:aj(e),messageType:i,messageObj:"PlainText"===f?r:d,encType:f,sessionKey:o&&!o.isPublic&&"pgpv1:group"===f?o.sessionKey:null,encryptedSecret:p,messageContent:c,signature:h,sigType:"pgpv3"},g={fromDID:m.fromDID,toDID:m.fromDID,fromCAIP10:m.fromCAIP10,toCAIP10:m.toCAIP10,messageObj:m.messageObj,messageType:m.messageType,encType:m.encType,sessionKey:m.sessionKey,encryptedSecret:m.encryptedSecret},y=iw.SHA256(JSON.stringify(g)).toString(),v=await a.sign({message:y,signingKey:t.privateKey});return m.verificationProof=`pgpv3:${v}`,m},KO=e=>{var t;const r={members:e.members.map((e=>({wallet:e.wallet,publicKey:e.publicKey,isSpeaker:e.isAdmin,image:e.image}))),pendingMembers:e.pendingMembers.map((e=>({wallet:e.wallet,publicKey:e.publicKey,isSpeaker:e.isAdmin,image:e.image}))),contractAddressERC20:e.contractAddressERC20,numberOfERC20:e.numberOfERC20,contractAddressNFT:e.contractAddressNFT,numberOfNFTTokens:e.numberOfNFTTokens,verificationProof:e.verificationProof,spaceImage:e.groupImage,spaceName:e.groupName,isPublic:e.isPublic,spaceDescription:e.groupDescription,spaceCreator:e.groupCreator,spaceId:e.chatId,scheduleAt:e.scheduleAt,scheduleEnd:e.scheduleEnd,status:null!=(t=e.status)?t:null,meta:e.meta};return e.rules&&(r.rules={entry:e.rules.entry}),r},qO=async(e,t=eg.PROD)=>{var r;const n=await(async e=>{const{chatId:t,env:r}=e,n=(await GO({chatId:t,env:r})).overallCount,i=Math.ceil(n/5e3),o=Array.from({length:i},((e,t)=>t+1)),s=[],a=o.map((e=>zO({chatId:t,env:r,page:e,limit:5e3})));return(await Promise.all(a)).forEach((e=>{e.length>0&&s.push(...e)})),s})({chatId:e.chatId,env:t}),i={members:n.filter((e=>e.intent)).map((e=>{var t,r;return{wallet:e.address,publicKey:null!=(t=e.userInfo.publicKey)?t:"",isSpeaker:"admin"===e.role,image:null!=(r=e.userInfo.profile.picture)?r:""}})),pendingMembers:n.filter((e=>!e.intent)).map((e=>{var t,r;return{wallet:e.address,publicKey:null!=(t=e.userInfo.publicKey)?t:"",isSpeaker:"admin"===e.role,image:null!=(r=e.userInfo.profile.picture)?r:""}})),contractAddressERC20:null,numberOfERC20:0,contractAddressNFT:null,numberOfNFTTokens:0,verificationProof:"a",spaceImage:e.groupImage,spaceName:e.groupName,isPublic:e.isPublic,spaceDescription:e.groupDescription,spaceCreator:e.groupCreator,spaceId:e.chatId,scheduleAt:e.scheduleAt,scheduleEnd:e.scheduleEnd,status:null!=(r=e.status)?r:null,meta:e.meta};return e.rules&&(i.rules={entry:e.rules.entry}),i},WO=(e,t)=>[...e?VO(e.filter((e=>e.isSpeaker))):[],...t?VO(t.filter((e=>e.isSpeaker))):[]],VO=e=>e?e.map((e=>e.wallet)):[],$O=(e,t)=>{const r=[...e||[],...t||[]];return VO(r)};r(86626);const QO=(e,t)=>{if(e){const r=new Date(e),n=new Date;if(r=e)throw new Error("Schedule start time must be earlier than end time.")}}},JO=(e,t,r,n,i,o)=>{if(null==e||0==e.length)throw new Error("chatId cannot be null or empty");if(null==t||0==t.length)throw new Error("groupName cannot be null or empty");if(null!=t&&t.length>50)throw new Error("groupName cannot be more than 50 characters");if(o&&null!=o&&o.length>150)throw new Error("groupDescription cannot be more than 150 characters");if(null!=r&&r.length>0)for(let s=0;s0)for(let s=0;s{try{const t=e.split(":");return(5===t.length||6===t.length)&&"nft"===t[0].toLowerCase()&&!isNaN(Number(t[4]))&&Number(t[4])>0&&!isNaN(Number(t[2]))&&Number(t[2])>0&&Ig.U(t[3])&&"eip155"===t[1]}catch(dVe){return!1}},tj={eip155:({address:e})=>ZO(e)};function rj(e){const[t,r,n]=e.split(":");if(!t)return!1;if(!r)return!1;if(!n)return!1;if(ej(e))return!0;return(0,tj[t])({address:n})}function nj(e){if(rj(e)){const[t,r,n]=e.split(":");return{blockchain:t,networkId:r,address:n}}return null}function ij(e,t){let r=1;return e!==og.ENV.DEV&&e!==og.ENV.STAGING&&e!==og.ENV.LOCAL||(r=11155111),`eip155:${r}:${t}`}async function oj(e,t,r){if(ej(t))return await dO(t,e);if(rj(t))return t;if(ZO(t))return ij(e,t);throw Error(`Invalid Address! ${r} \n Address: ${t}`)}const sj=(e,t,r)=>{if(ZO(e))return e.includes("eip155:")?e:`eip155:${t}:${e}`;throw Error(`Invalid Address! ${r} \n Address: ${e}`)},aj=e=>ej(e)||e.includes("eip155:")?e:"eip155:"+e,uj=e=>ej(e)?e:e=e.replace("eip155:","");function lj(e){return Object.keys(e).map((t=>`${t}=${encodeURIComponent(e[t])}`)).join("&")}function cj(e){return e||og.PAGINATION.LIMIT}r(81357),r(16159),r(29894),r(60793),r(47417),r(34932),r(64323),r(38192),r(11246);class hj{constructor(e){this.signer=void 0,this.signer=e}isViemSigner(e){return"function"==typeof e.signTypedData&&"function"==typeof e.getChainId&&1===e.signMessage.length&&1===e.signTypedData.length}async signMessage(e){if("signMessage"in this.signer&&"function"==typeof this.signer.signMessage)return this.isViemSigner(this.signer)?this.signer.signMessage({message:e,account:this.signer.account}):this.signer.signMessage(e);throw new Error("Signer does not support signMessage")}async signTypedData(e,t,r,n){if(this.isViemSigner(this.signer))return this.signer.signTypedData({domain:e,types:t,primaryType:n,message:r,account:this.signer.account});if("_signTypedData"in this.signer)return this.signer._signTypedData(e,t,r);if("signTypedData"in this.signer)return this.signer.signTypedData(e,t,r);throw new Error("Signer does not support signTypedData")}async getAddress(){var e;return this.isViemSigner(this.signer)?null!=(e=this.signer.account.address)?e:"":await this.signer.getAddress()}async getChainId(){if(this.isViemSigner(this.signer))return this.signer.getChainId();if("provider"in this.signer&&this.signer.provider){const e=await this.signer.provider.getNetwork();return Number(e.chainId)}return 1}}var dj=r(98399);let fj;if("undefined"!=typeof window&&window.crypto)fj=window.crypto;else{try{fj=r(73926).webcrypto}catch(fVe){throw new Error("Unable To load crypto")}}const pj=async(e,t)=>(dj.warn("decryptWithWalletRPCMethod method is DEPRECATED. Use decryptPGPKey method with signer!"),await mj({encryptedPGPPrivateKey:e,account:t})),mj=async e=>{const{encryptedPGPPrivateKey:t,account:r=null,signer:n=null,env:i=og.ENV.PROD,toUpgrade:o=!1,additionalMeta:s=null,progressHook:a}=e||{};try{if(null==r&&null==n)throw new Error("At least one from account or signer is necessary!");const e=aO({account:r,signer:n}),h=await uO(e);if(!ZO(h))throw new Error("Invalid address!");const{version:d}=JSON.parse(t);let f;switch(null==a||a(IL["PUSH-DECRYPT-01"]),d){case og.ENC_TYPE_V1:var u;if(null!=e&&null!=(u=e.signer)&&u.privateKey){var l;f=(0,yO.decrypt)({encryptedData:JSON.parse(t),privateKey:null==e||null==(l=e.signer)?void 0:l.privateKey.substring(2)})}else{var c;const e=vb({chain:_b,transport:sv(window.ethereum)}),r=(null==n||null==(c=n.provider)?void 0:c.provider)||e;f=await r.provider.request({method:"eth_decrypt",params:[t,h]})}break;case og.ENC_TYPE_V2:{if(null==e||!e.signer)throw new Error("Cannot Decrypt this encryption version without signer!");const{preKey:r}=JSON.parse(t),n="Enable Push Chat Profile \n"+r;let i;try{const{verificationProof:r}=await IO(e,n,!0);i=await Ej(JSON.parse(t),vj(r||""))}catch(dVe){const{verificationProof:o}=await IO(e,n,!1);i=await Ej(JSON.parse(t),vj(o||""))}f=(new TextDecoder).decode(i);break}case og.ENC_TYPE_V3:{if(null==e||!e.signer)throw new Error("Cannot Decrypt this encryption version without signer!");const{preKey:r}=JSON.parse(t),n="Enable Push Profile \n"+r,{verificationProof:i}=await CO(e,n),o=await Ej(JSON.parse(t),vj(i||""));f=(new TextDecoder).decode(o);break}case og.ENC_TYPE_V4:{let r=null;if(null!=s&&s.NFTPGP_V1)r=s.NFTPGP_V1.password;else{if(null==e||!e.signer)throw new Error("Cannot Decrypt this encryption version without signer!");const{encryptedPassword:o}=JSON.parse(t);r=await mj({encryptedPGPPrivateKey:JSON.stringify(o),signer:n,env:i})}const o=await Ej(JSON.parse(t),vj(bj(r)));f=(new TextDecoder).decode(o);break}default:throw new Error("Invalid Encryption Type")}if(n&&o&&d!==og.ENC_TYPE_V4)try{await rO({env:i,account:h,signer:n,progressHook:a})}catch(dVe){const t=IL["PUSH-ERROR-01"];null==a||a(t(dVe))}return null==a||a(IL["PUSH-DECRYPT-02"]),f}catch(dVe){const t=IL["PUSH-ERROR-00"];throw null==a||a(t(mj.name,dVe)),Error(`[Push SDK] - API - Error - API ${mj.name} -: ${dVe}`)}},gj=e=>iw.SHA256(JSON.stringify(e)).toString(iw.enc.Hex),yj=e=>e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),""),vj=e=>{const t=new Uint8Array(e.length/2);for(let r=0;r{let t="";for(let r=0;r{const r=await fj.subtle.importKey("raw",e,"HKDF",!1,["deriveKey"]);return fj.subtle.deriveKey({name:"HKDF",hash:"SHA-256",salt:t,info:new ArrayBuffer(0)},r,{name:"AES-GCM",length:256},!0,["encrypt","decrypt"])},_j=async(e,t,r)=>{const n=fj.getRandomValues(new Uint8Array(32)),i=fj.getRandomValues(new Uint8Array(12)),o=await wj(t,n),s={name:"AES-GCM",iv:i};r&&(s.additionalData=r);const a=await fj.subtle.encrypt(s,o,e);return{ciphertext:yj(new Uint8Array(a)),salt:yj(n),nonce:yj(i)}},Ej=async(e,t,r)=>{const n=await wj(t,vj(e.salt)),i={name:"AES-GCM",iv:vj(e.nonce)};r&&(i.additionalData=r);const o=await fj.subtle.decrypt(i,n,vj(e.ciphertext));return new Uint8Array(o)},Aj=async(e,t,r,n)=>{let i;switch(e){case og.ENC_TYPE_V1:{var o;let n;var s;if(null!=r&&null!=(o=r.signer)&&o.privateKey)n=(0,yO.getEncryptionPublicKey)(null==r||null==(s=r.signer)?void 0:s.privateKey.substring(2));else n=await(async e=>{var t;const{account:r,signer:n}=e||{},i=n?new hj(n):void 0,o=r||await(null==i?void 0:i.getAddress())||"",s=vb({chain:_b,transport:sv(window.ethereum)}),a=(null==n||null==(t=n.provider)?void 0:t.provider)||s;return await a.request({method:"eth_getEncryptionPublicKey",params:[o]})})(r);i=((e,t,r)=>yO.encrypt({publicKey:t,data:e,version:r}))(t,n,e);break}case og.ENC_TYPE_V3:{const e=yj(await(async e=>fj.getRandomValues(e))(new Uint8Array(32))),n="Enable Push Profile \n"+e,{verificationProof:o}=await CO(r,n),s=(new TextEncoder).encode(t);i=await _j(s,vj(o||"")),i.version=og.ENC_TYPE_V3,i.preKey=e;break}case og.ENC_TYPE_V4:{var a;if(null==n||null==(a=n.NFTPGP_V1)||!a.password)throw new Error("Password is required!");const e=(new TextEncoder).encode(t);i=await _j(e,vj(bj(n.NFTPGP_V1.password))),i.version=og.ENC_TYPE_V4,i.preKey="";break}default:throw new Error("Invalid Encryption Type")}return i},Mj=async(e,t,r)=>{let n;switch(e){case og.ENC_TYPE_V1:n=t;break;case og.ENC_TYPE_V3:case og.ENC_TYPE_V4:{const e="DEPRECATED";n=JSON.stringify({key:t,signature:e});break}default:throw new Error("Invalid Encryption Type")}return n},Sj=async(e,t,r,n,i)=>{let o;try{if(o=JSON.parse(t).key,void 0===o)throw new Error("Invalid Public Key")}catch(dVe){o=t}try{if(t&&t.length>0&&i&&"eip191v2"===i.split(":")[0]){const s={caip10:n,did:r,publicKey:t,encryptedPrivateKey:e};if(ej(r)){const t="owner",r=JSON.parse(e);t in r&&delete r[t],s.encryptedPrivateKey=JSON.stringify(r)}const a=gj(s),u=await(async(e,t,r)=>{const n="eip712v2";let i,o=null;const s=e.split(":")[0];if(s!==n&&"eip191"!==s&&"eip191v2"!==s||e.split(":").length>3)return!1;if(2===e.split(":").length?i=e.split(":")[1]:(o=parseInt(e.split(":")[1]),i=e.split(":")[2]),s===n)try{const e=bO(t,o,"V2");return(0,yO.recoverTypedSignature)({data:e,signature:i,version:yO.SignTypedDataVersion.V4}).toLowerCase()===r.toLowerCase()}catch(dVe){const n=bO(t,o,"V1");return(0,yO.recoverTypedSignature)({data:n,signature:i,version:yO.SignTypedDataVersion.V4}).toLowerCase()===r.toLowerCase()}else try{return(await sb({hash:ab(t),signature:i})).toLowerCase()===r.toLowerCase()}catch(dVe){return!1}})(i,a,ej(r)?uj(JSON.parse(e).owner):uj(r));if(u)return o;throw new Error("Invalid Signature")}return o}catch(dVe){return dj.warn(`Cannot Verify keys for DID : ${r} !!!`),o}},xj=e=>{if(e.length<8)throw new Error("Password must be at least 8 characters long!");if(!/[A-Z]/.test(e))throw new Error("Password must contain at least one uppercase letter!");if(!/[a-z]/.test(e))throw new Error("Password must contain at least one lowercase letter!");if(!/\d/.test(e))throw new Error("Password must contain at least one digit!");if(!/[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(e))throw new Error("Password must contain at least one special character!")};var kj=r(98399);const Tj=async e=>{const{alias:t,aliasChain:r,env:n=og.ENV.PROD}=e||{},i=qb[r][n],o=sj(t,i,"Alias"),s=`${`${nw(n)}/v1/alias`}/${o}/channel`;return await BL(s).then((e=>e.data)).catch((e=>{kj.error(`[EPNS-SDK] - API ${s}: `,e)}))};var Cj=r(98399);const Ij=async e=>{const{channel:t,env:r=og.ENV.PROD}=e||{},n=await oj(r,t,"Channel"),i=`${`${nw(r)}/v1/channels`}/${n}`;return await BL(i).then((e=>e.data)).catch((e=>{Cj.error(`[Push SDK] - API ${i}: `,e)}))};var Nj=r(98399);const Rj=async e=>{const{channel:t,env:r=og.ENV.PROD}=e||{},n=await oj(r,t,"Channel"),i=`${`${nw(r)}/v1/channels`}/${n}/delegates`;return await BL(i).then((e=>{var t;return null==(t=e.data)?void 0:t.delegates})).catch((e=>{Nj.error(`[EPNS-SDK] - API ${i}: `,e)}))};var Pj=r(98399);const Dj=async e=>{const{query:t,env:r=og.ENV.PROD,page:n=og.PAGINATION.INITIAL_PAGE,limit:i=og.PAGINATION.LIMIT}=e||{};if(!t)throw Error('"query" not provided!');const o=`${`${nw(r)}/v1/channels/search/`}?${lj({page:n,limit:cj(i),query:t})}`;return BL(o).then((e=>e.data.channels)).catch((e=>{Pj.error(`[Push SDK] - API ${o}: `,e)}))},Lj=(e,t)=>({name:"EPNS COMM V1",chainId:e,verifyingContract:t}),Oj=(e,t,r)=>({channel:e,["Unsubscribe"===r?"unsubscriber":"subscriber"]:t,action:r}),jj=(e,t,r,n)=>{const i="Unsubscribe"===r?"unsubscriber":"subscriber";return"Subscribe"==r?JSON.stringify({channel:e,[i]:t,action:r,userSetting:null!=n?n:""},null,4):JSON.stringify({channel:e,[i]:t,action:r},null,4)},Bj=e=>"Subscribe"===e?{Subscribe:[{name:"channel",type:"address"},{name:"subscriber",type:"address"},{name:"action",type:"string"}]}:{Unsubscribe:[{name:"channel",type:"address"},{name:"unsubscriber",type:"address"},{name:"action",type:"string"}]};var Uj=r(98399);var Fj=r(98399);const zj=async e=>{try{const{channel:t,page:r=1,limit:n=10,category:i=null,setting:o=!1,env:s=og.ENV.PROD}=e||{};try{if(null==t||0==t.length)throw new Error("channel cannot be null or empty");if(r<=0)throw new Error("page must be greater than 0");if(n<=0)throw new Error("limit must be greater than 0");if(n>30)throw new Error("limit must be lesser than or equal to 30");const e=await oj(s,t,"Channel");let a=`${nw(s)}/v1/channels/${e}/subscribers?page=${r}&limit=${n}&setting=${o}`;return i&&(a+=`&category=${i}`),await BL(a).then((e=>e.data)).catch((e=>{Fj.error(`[Push SDK] - API ${a}: `,e)}))}catch(dVe){throw Fj.error("[Push SDK] - API - Error - API send() -: ",dVe),Error(`[Push SDK] - API - Error - API send() -: ${dVe}`)}}catch(dVe){throw Fj.error("[Push SDK] - API - Error - API send() -: ",dVe),Error(`[Push SDK] - API - Error - API send() -: ${dVe}`)}};let Hj;const Gj=new Uint8Array(16);function Yj(){if(!Hj&&(Hj="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Hj))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Hj(Gj)}const Kj=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const qj=function(e){return"string"==typeof e&&Kj.test(e)},Wj=[];for(let pVe=0;pVe<256;++pVe)Wj.push((pVe+256).toString(16).slice(1));function Vj(e,t=0){return(Wj[e[t+0]]+Wj[e[t+1]]+Wj[e[t+2]]+Wj[e[t+3]]+"-"+Wj[e[t+4]]+Wj[e[t+5]]+"-"+Wj[e[t+6]]+Wj[e[t+7]]+"-"+Wj[e[t+8]]+Wj[e[t+9]]+"-"+Wj[e[t+10]]+Wj[e[t+11]]+Wj[e[t+12]]+Wj[e[t+13]]+Wj[e[t+14]]+Wj[e[t+15]]).toLowerCase()}const $j=function(e){if(!qj(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function Qj(e,t,r){function n(e,n,i,o){var s;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r>>9<<4)+1}function Zj(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function Xj(e,t,r,n,i,o){return Zj((s=Zj(Zj(t,e),Zj(n,o)))<<(a=i)|s>>>32-a,r);var s,a}function eB(e,t,r,n,i,o,s){return Xj(t&r|~t&n,e,t,i,o,s)}function tB(e,t,r,n,i,o,s){return Xj(t&n|r&~n,e,t,i,o,s)}function rB(e,t,r,n,i,o,s){return Xj(t^r^n,e,t,i,o,s)}function nB(e,t,r,n,i,o,s){return Xj(r^(t|~n),e,t,i,o,s)}const iB=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r>5]>>>i%32&255,o=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[n/8])<>>32-t}const lB=function(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r>>0;l=u,u=a,a=uB(i,30)>>>0,i=n,n=s}r[0]=r[0]+n>>>0,r[1]=r[1]+i>>>0,r[2]=r[2]+a>>>0,r[3]=r[3]+u>>>0,r[4]=r[4]+l>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]};Qj("v5",80,lB);const cB={1:"ETH_MAINNET",11155111:"ETH_TEST_SEPOLIA",137:"POLYGON_MAINNET",80001:"POLYGON_TEST_MUMBAI",56:"BSC_MAINNET",97:"BSC_TESTNET",10:"OPTIMISM_MAINNET",420:"OPTIMISM_TESTNET",1442:"POLYGON_ZK_EVM_TESTNET",1101:"POLYGON_ZK_EVM_MAINNET",421613:"ARBITRUM_TESTNET",42161:"ARBITRUMONE_MAINNET",122:"FUSE_MAINNET",123:"FUSE_TESTNET"},hB="THE_GRAPH",dB="PUSH_VIDEO",fB="SIMULATE";let pB,mB,gB,yB,vB,bB,wB,_B,EB;!function(e){e[e.MINIMAL=0]="MINIMAL",e[e.IPFS=1]="IPFS",e[e.DIRECT_PAYLOAD=2]="DIRECT_PAYLOAD",e[e.SUBGRAPH=3]="SUBGRAPH"}(pB||(pB={})),function(e){e[e.BROADCAST=1]="BROADCAST",e[e.TARGETTED=3]="TARGETTED",e[e.SUBSET=4]="SUBSET"}(mB||(mB={})),function(e){e[e.CUSTOM=0]="CUSTOM",e[e.PUSH_VIDEO=1]="PUSH_VIDEO",e[e.PUSH_SPACE=2]="PUSH_SPACE"}(gB||(gB={})),function(e){e[e.PUSH_VIDEO=1]="PUSH_VIDEO",e[e.PUSH_SPACE=2]="PUSH_SPACE"}(yB||(yB={})),function(e){e[e.JOIN_SPEAKER=0]="JOIN_SPEAKER",e[e.ESTABLISH_MESH=1]="ESTABLISH_MESH",e[e.INVITE_TO_PROMOTE=2]="INVITE_TO_PROMOTE",e[e.REQUEST_TO_PROMOTE=3]="REQUEST_TO_PROMOTE"}(vB||(vB={})),function(e){e[e.ACCEPT_JOIN_SPEAKER=0]="ACCEPT_JOIN_SPEAKER",e[e.ACCEPT_INVITE=1]="ACCEPT_INVITE",e[e.ACCEPT_PROMOTION=2]="ACCEPT_PROMOTION"}(bB||(bB={})),function(e){e[e.STOP=0]="STOP",e[e.LEAVE=1]="LEAVE"}(wB||(wB={})),function(e){e[e.CO_HOST=0]="CO_HOST",e[e.SPEAKER=1]="SPEAKER"}(_B||(_B={})),function(e){e[e.HOST=0]="HOST",e[e.CO_HOST=1]="CO_HOST",e[e.SPEAKER=2]="SPEAKER",e[e.LISTENER=3]="LISTENER"}(EB||(EB={}));let AB;async function MB({env:e,notificationType:t,recipients:r,channel:n}){return t===mB.TARGETTED&&"string"==typeof r?await oj(e,r,"Recipient"):await oj(e,n,"Recipient")}!function(e){e.PUSH_CHAT="PUSH_CHAT"}(AB||(AB={}));var SB=r(98399);async function xB(e){try{var t;const{senderType:r=0,signer:n,type:i,identityType:o,payload:s,recipients:a,channel:u,graph:l,ipfsHash:c,env:h=eg.PROD,chatId:d,rules:f,pgpPrivateKey:p}=e||{};!function(e){var t,r;if(null==e||!e.channel)throw'[Push SDK] - Error - sendNotification() - "channel" is mandatory!';if(!ZO(e.channel))throw'[Push SDK] - Error - sendNotification() - "channel" is invalid!';if(0===e.senderType&&void 0===e.signer)throw'[Push SDK] - Error - sendNotification() - "signer" is mandatory!';if(1===e.senderType&&void 0===e.pgpPrivateKey)throw'[Push SDK] - Error - sendNotification() - "pgpPrivateKey" is mandatory!';if((null==e?void 0:e.identityType)===pB.DIRECT_PAYLOAD||(null==e?void 0:e.identityType)===pB.MINIMAL){if(!e.notification)throw'[Push SDK] - Error - sendNotification() - "notification" mandatory for Identity Type: Direct Payload, Minimal!';if(!e.payload)throw'[Push SDK] - Error - sendNotification() - "payload" mandatory for Identity Type: Direct Payload, Minimal!'}const n=null==(t=e.payload)?void 0:t.additionalMeta,i="object"==typeof(null==(r=e.payload)?void 0:r.additionalMeta)&&(e.payload.additionalMeta.type===`${yB.PUSH_VIDEO}+1`||e.payload.additionalMeta.type===`${yB.PUSH_SPACE}+1`);if(n&&i&&!e.chatId&&!e.rules)throw new Error("[Push SDK] - Error - sendNotification() - Either chatId or rules object is required to send a additional meta notification for video or spaces")}(e),s&&s.additionalMeta&&"object"==typeof s.additionalMeta&&!s.additionalMeta.domain&&(s.additionalMeta.domain="push.org");const m=await oj(h,u,"Channel"),g=nj(m);if(!g)throw Error("Invalid Channel CAIP!");const y=sB(),v=parseInt(g.networkId,10),b=nw(h);let w="";if(0===r){const{EPNS_COMMUNICATOR_CONTRACT:e}=rw(h,g);w=e}const _=await async function({env:e,notificationType:t,channel:r,recipients:n,secretType:i}){let o="";if(i){let r="";if(t===mB.TARGETTED){if("string"==typeof n)return o=await oj(e,n,"Recipient"),r="",{[o]:r}}else if(t===mB.SUBSET&&Array.isArray(n))return n.reduce((async(t,n)=>(o=await oj(e,n,"Recipient"),r="",Object.assign({},t,{[o]:r}))),{})}else{if(t===mB.BROADCAST)return await oj(e,r,"Recipient");if(t===mB.TARGETTED){if("string"==typeof n)return await oj(e,n,"Recipient")}else if(t===mB.SUBSET&&Array.isArray(n)&&Array.isArray(n)){const t={};return n.map((async r=>{o=await oj(e,r,"Recipient"),t[o]=null})),t}}return n}({env:h,notificationType:i,channel:m,recipients:a,secretType:null==s?void 0:s.sectype}),E=function(e,t){var r,n,i,o,s,a,u,l,c,h,d,f,p,m,g,y,v,b,w,_,E;return null!=e&&e.notification&&null!=e&&e.payload?{notification:{title:null==e||null==(r=e.notification)?void 0:r.title,body:null==e||null==(n=e.notification)?void 0:n.body},data:Object.assign({acta:(null==e||null==(i=e.payload)?void 0:i.cta)||"",aimg:(null==e||null==(o=e.payload)?void 0:o.img)||"",amsg:(null==e||null==(s=e.payload)?void 0:s.body)||"",asub:(null==e||null==(a=e.payload)?void 0:a.title)||"",type:(null==e||null==(u=e.type)?void 0:u.toString())||""},(null==e?void 0:e.expiry)&&{etime:null==e?void 0:e.expiry},(null==e||null==(l=e.payload)?void 0:l.etime)&&{etime:null==e||null==(c=e.payload)?void 0:c.etime},(null==e?void 0:e.hidden)&&{hidden:null==e?void 0:e.hidden},(null==e||null==(h=e.payload)?void 0:h.hidden)&&{hidden:null==e||null==(d=e.payload)?void 0:d.hidden},(null==e||null==(f=e.payload)?void 0:f.silent)&&{silent:null==e||null==(p=e.payload)?void 0:p.silent},(null==e||null==(m=e.payload)?void 0:m.sectype)&&{sectype:null==e||null==(g=e.payload)?void 0:g.sectype},(null==e||null==(y=e.payload)?void 0:y.metadata)&&{metadata:null==e||null==(v=e.payload)?void 0:v.metadata},(null==e||null==(b=e.payload)?void 0:b.additionalMeta)&&{additionalMeta:null==e||null==(w=e.payload)?void 0:w.additionalMeta},(null==e||null==(_=e.payload)?void 0:_.index)&&{index:null==e||null==(E=e.payload)?void 0:E.index}),recipients:t}:null}(e,_),A=await async function({senderType:e,signer:t,chainId:r,notificationType:n,identityType:i,verifyingContract:o,payload:s,ipfsHash:a,graph:u={},uuid:l,chatId:c,wallet:h,pgpPrivateKey:d,env:f,rules:p}){let m=null,g=null;switch(i){case pB.MINIMAL:m={data:`${i}+${n}+${s.notification.title}+${s.notification.body}`};break;case pB.IPFS:m={data:`1+${a}`};break;case pB.DIRECT_PAYLOAD:m={data:`2+${JSON.stringify(s)}`};break;case pB.SUBGRAPH:m={data:`3+graph:${null==u?void 0:u.id}+${null==u?void 0:u.counter}`};break;default:throw new Error("Invalid IdentityType")}switch(e){case 0:{const e={Data:[{name:"data",type:"string"}]},n={name:"EPNS COMM V1",chainId:r,verifyingContract:o},i=new hj(t);g=`eip712v2:${await i.signTypedData(n,e,m,"Data")}::uid::${l}`;break}case 1:{const e=iw.SHA256(JSON.stringify(m)).toString();g=`pgpv2:${await CL({message:e,signingKey:d})}:meta:${c}::uid::${l}`;break}default:throw new Error("Invalid SenderType")}return g}({senderType:r,signer:n,chainId:v,identityType:o,notificationType:i,verifyingContract:w,payload:E,graph:l,ipfsHash:c,uuid:y,chatId:null!=(t=null==f?void 0:f.access.data.chatId)?t:d,pgpPrivateKey:p}),M=function({identityType:e,payload:t,notificationType:r,ipfsHash:n,graph:i={}}){if(e===pB.MINIMAL)return`0+${r}+${t.notification.title}+${t.notification.body}`;if(e===pB.IPFS)return`1+${n}`;if(e===pB.DIRECT_PAYLOAD)return`2+${JSON.stringify(t)}`;return e===pB.SUBGRAPH?`3+graph:${null==i?void 0:i.id}+${null==i?void 0:i.counter}`:null}({identityType:o,payload:E,notificationType:i,graph:l,ipfsHash:c}),S=await async function(e){try{const{channel:t,recipient:r,type:n,env:i}=e||{};return!(await Ij({channel:t,env:i}))&&(t==("string"==typeof r&&3==(null==r?void 0:r.split(":").length)?r.split(":")[2]:r)&&n==mB.TARGETTED)}catch(fVe){return!0}}({channel:e.channel,recipient:e.recipients,type:e.type,env:e.env})?fB:function(e,t,r){return 1===r?dB:t===pB.SUBGRAPH?hB:cB[e]}(v,o,r),x=Object.assign({verificationProof:A,identity:M,sender:1!==r||ej(m)?m:`${null==g?void 0:g.blockchain}:${null==g?void 0:g.address}`,source:S,recipient:await MB({env:h,notificationType:i,recipients:a||"",channel:m})},f||d?{rules:null!=f?f:{access:{data:{chatId:d},type:AB.PUSH_CHAT}}}:{}),k=`${b}/v1/payloads/`;return await UL(k,x,{headers:{"Content-Type":"application/json"}})}catch(dVe){throw SB.error("[Push SDK] - Error - sendNotification() - ",JSON.stringify(dVe)),dVe}}var kB=r(98399);const TB=async e=>await CB(e,TL),CB=async(e,t)=>{const{account:r,pgpPrivateKey:n,env:i=og.ENV.PROD,toDecrypt:o=!1,page:s=1,limit:a=10}=e||{};if(!ZO(r))throw new Error("Invalid address!");const u=await dO(r,i),l=`${`${nw(i)}/v1/chat/users/${u}/chats?page=${s}&limit=${a}`}`;try{const e=(await BL(l)).data.chats,r=BO(e);return await LO({lists:r,user:u,toDecrypt:o,pgpPrivateKey:n,env:i},t)}catch(dVe){throw kB.error(`[Push SDK] - API ${TB.name}: `,dVe),Error(`[Push SDK] - API ${TB.name}: ${dVe}`)}};var IB=r(98399);const NB=async e=>{const{account:t,pgpPrivateKey:r,env:n=og.ENV.PROD,toDecrypt:i=!1,recipient:o}=e||{},s=await dO(t,n),a=await dO(o,n);if(!ZO(s))throw new Error(`Invalid address ${s}`);const u=`${nw(n)}/v1/chat/users/${s}/chat/${a}`;try{const e=(await BL(u)).data;if(0!==Object.keys(e).length){const t=BO([e]),[o]=await LO({lists:t,user:s,toDecrypt:i,pgpPrivateKey:r,env:n},TL);return o}return e}catch(dVe){throw IB.error(`[Push SDK] - API ${NB.name}: `,dVe),Error(`[Push SDK] - API ${NB.name}: ${dVe}`)}};var RB=r(98399);const PB=async e=>await DB(e,TL),DB=async(e,t)=>{const{account:r,pgpPrivateKey:n,env:i=og.ENV.PROD,toDecrypt:o=!1,page:s=1,limit:a=10}=e||{},u=await dO(r,i),l=`${nw(i)}/v1/chat/users/${u}/requests?page=${s}&limit=${a}`;try{if(!ZO(u))throw new Error("Invalid address!");const e=(await BL(l)).data.requests,r=BO(e);return await LO({lists:r,user:u,toDecrypt:o,pgpPrivateKey:n,env:i},t)}catch(dVe){throw RB.error(`[Push SDK] - API ${PB.name}: `,dVe),Error(`[Push SDK] - API ${PB.name}: ${dVe}`)}};var LB=r(98399);const OB=async e=>{const{conversationId:t,account:r,env:n=og.ENV.PROD}=e||{};try{if(!ZO(r))throw new Error("Invalid address!");const e=await dO(t,n),i=await dO(r,n),o=await(async e=>{const{conversationId:t,account:r,env:n=og.ENV.PROD}=e||{},i=`${nw(n)}/v1/chat/users/${aj(r)}/conversations/${t}/hash`;return BL(i).then((e=>e.data)).catch((e=>{throw new Error(e)}))})({conversationId:e,account:i,env:n});return o}catch(dVe){throw LB.error(`[Push SDK] - Error - API ${OB.name} - `,dVe),Error(`[Push SDK] - Error - API ${OB.name} - `)}};var jB=r(30650);const BB={GROUP:{CREATE:"CREATE_GROUP",MEMBER:{ADD:"ADD_MEMBER",REMOVE:"REMOVE_MEMBER",PRIVILEGE:"ASSIGN_MEMBER_PRIVILEGE"},ADMIN:{PRVILEGE:"ASSIGN_ADMIN_PRIVILEGE"},UPDATE:"UPDATE_GROUP",PROFILE:{UPDATE:"UPDATE_GROUP_PROFILE"},META:{UPDATE:"UPDATE_GROUP_META"},USER:{INTERACTION:"USER_INTERACTION"}},SPACE:{CREATE:"CREATE_SPACE",LISTENER:{ADD:"ADD_LISTENER",REMOVE:"REMOVE_LISTENER",PRVILEGE:"ASSIGN_LISTENER_PRIVILEGE"},SPEAKER:{PRVILEGE:"ASSIGN_SPEAKER_PRIVILEGE"},COHOST:{PRVILEGE:"ASSIGN_COHOST_PRIVILEGE"}}},UB={THUMBSUP:"\ud83d\udc4d",THUMBSDOWN:"\ud83d\udc4e",HEART:"\u2764\ufe0f",CLAP:"\ud83d\udc4f",LAUGH:"\ud83d\ude02",SAD:"\ud83d\ude22",ANGRY:"\ud83d\ude21",SUPRISE:"\ud83d\ude32",FIRE:"\ud83d\udd25"},FB={READ:"READ_RECEIPT"},zB={LISTENER:{JOIN:"LISTENER_JOIN",LEAVE:"LISTENER_LEAVE",MICREQUEST:"LISTENER_REQUEST_MIC"},SPEAKER:{MIC_ON:"SPEAKER_MIC_ON",MIC_OFF:"SPEAKER_MIC_OFF"}},HB={ACCEPT:"ACCEPT_INTENT",REJECT:"REJECT_INTENT",JOIN:"JOIN_GROUP",LEAVE:"LEAVE_GROUP"},GB=e=>{const t=[];for(const r in e)"string"==typeof e[r]?t.push(e[r]):"object"==typeof e[r]&&t.push(...GB(e[r]));return t},YB=jB.object({content:jB.string().required().allow("")}),KB=jB.object({content:jB.string().valid(...Object.values(GB(BB))).required(),info:jB.object({affected:jB.array().items(jB.string()).required(),arbitrary:jB.object().pattern(jB.string(),jB.any())}).required()}),qB=jB.object({content:jB.string().valid(...Object.values(GB(UB))).required(),reference:jB.string().required()}),WB=jB.object({content:jB.string().valid(...Object.values(GB(FB))).required(),reference:jB.string().required()}),VB=jB.object({content:jB.string().valid(...Object.values(GB(zB))).required(),info:jB.object({affected:jB.array().items(jB.string()).required(),arbitrary:jB.object().pattern(jB.string(),jB.any())}).required()}),$B=jB.object({content:jB.string().valid(...Object.values(GB(HB)))}),QB=jB.object({content:jB.object({messageType:jB.string().valid(...Object.values([rg.TEXT,rg.IMAGE,rg.AUDIO,rg.VIDEO,rg.FILE,rg.MEDIA_EMBED])).required(),messageObj:jB.object({content:jB.string().required()}).required()}).required(),reference:jB.string().required()}),JB=jB.object({content:jB.array().items(jB.object({messageType:jB.string().valid(...Object.values([rg.TEXT,rg.IMAGE,rg.AUDIO,rg.VIDEO,rg.FILE,rg.MEDIA_EMBED])).required(),messageObj:jB.object({content:jB.string().required()}).required()})).required()});var ZB=r(98399);const XB=async e=>{const{chatId:t,env:r=og.ENV.PROD}=e||{};try{if(null==t||0==t.length)throw new Error("chatId cannot be null or empty");const e=`${nw(r)}/v2/chat/groups/${t}`;return PL().get(e).then((e=>e.data)).catch((e=>{var t,r;if(null!=e&&null!=(t=e.response)&&t.data)throw new Error(null==e||null==(r=e.response)?void 0:r.data);throw new Error(e)}))}catch(dVe){throw ZB.error(`[Push SDK] - API - Error - API ${XB.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${XB.name} -: ${dVe}`)}};var eU=r(98399);const tU=["type"],rU=["type"],nU=["type"],iU=async e=>await oU(e,TL),oU=async(e,t)=>{try{const r=aU(e),{messageType:n,messageObj:i,account:o,to:s,signer:a,pgpPrivateKey:u,env:l}=r;await sU(r);const c=aO({account:o,signer:a}),h=await hO(c,u,l,t),d=await dO(s,l),f=nw(l),p=!ZO(s),m=p?await XB({chatId:s,env:l}):null;let g;g=n===rg.REPLY||n===rg.COMPOSITE?"MessageType Not Supported by this sdk version. Plz upgrade !!!":i.content;const y=await OB({conversationId:d,account:h.did,env:l});let v;v=p||!y||null!=y&&y.threadHash?`${f}/v1/chat/message`:`${f}/v1/chat/request`;const b=await YO(d,h,i,g,n,m,l,t);return(await UL(v,b)).data}catch(dVe){throw eU.error(`[Push SDK] - API - Error - API ${iU.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${iU.name} -: ${dVe}`)}},sU=async e=>{const{messageType:t,messageObj:r,account:n,to:i,signer:o,pgpPrivateKey:s,env:a}=e;if(!n&&!o)throw new Error("Unable to detect sender. Please ensure that either 'account' or 'signer' is properly defined.");if(!o&&!s)throw new Error("Unable to decrypt keys. Please ensure that either 'signer' or 'pgpPrivateKey' is properly defined.");const u=aO({account:n,signer:o});if(!ZO(await uO(u)))throw new Error("Invalid sender. Please ensure that either 'account' or 'signer' is properly defined.");((e,t)=>{let r;switch(t){case rg.TEXT:case rg.IMAGE:case rg.VIDEO:case rg.AUDIO:case rg.FILE:case rg.MEDIA_EMBED:case rg.GIF:r=YB.validate(e).error;break;case rg.META:r=KB.validate(e).error;break;case rg.REACTION:r=qB.validate(e).error;break;case rg.RECEIPT:r=WB.validate(e).error;break;case rg.USER_ACTIVITY:r=VB.validate(e).error;break;case rg.INTENT:r=$B.validate(e).error;break;case rg.REPLY:r=QB.validate(e).error;break;case rg.COMPOSITE:r=JB.validate(e).error;break;default:throw new Error("Invalid MessageType")}if(r)throw new Error("Unable to parse this messageType. Please ensure 'messageObj' is properly defined.")})(r,t)},aU=e=>{var t,r;const n=void 0!==(null==(t=e.message)?void 0:t.type)?e.message.type:null!=(r=e.messageType)?r:"Text";let i=e.message;if(void 0===i){if(void 0===e.messageObj&&![rg.TEXT,rg.IMAGE,rg.FILE,rg.MEDIA_EMBED,rg.GIF].includes(n))throw new Error("Options.message is required");var o;i=void 0!==e.messageObj?e.messageObj:{content:null!=(o=e.messageContent)?o:""}}else{i=fO(i,tU)}if(n===rg.REPLY){if("object"!=typeof i.content)throw new Error("Options.message is not properly defined for Reply");{const e=i.content,{type:t}=e,r=fO(e,rU);i.content={messageType:t,messageObj:r}}}if(n===rg.COMPOSITE){if(!(i.content instanceof Array))throw new Error("Options.message is not properly defined for Composite");i.content=i.content.map((e=>{const{type:t}=e;return{messageType:t,messageObj:fO(e,nU)}}))}const s=void 0!==e.account?e.account:null,a=void 0!==e.to?e.to:e.receiverAddress;if(void 0===a)throw new Error("Options.to is required");return{messageType:n,messageObj:i,account:s,to:a,signer:void 0!==e.signer?e.signer:null,pgpPrivateKey:void 0!==e.pgpPrivateKey?e.pgpPrivateKey:null,env:void 0!==e.env?e.env:og.ENV.PROD}};var uU=r(98399);const lU=async e=>{const{chatId:t,page:r=1,limit:n=20,env:i=og.ENV.PROD}=e;try{if(!t)throw new Error("Chat ID is required.");const e=`${nw(i)}/v1/chat/groups/${t}/members/publicKeys?pageNumber=${r}&pageSize=${n}`;return(await PL().get(e)).data}catch(XMe){throw uU.error(`[Push SDK] - API - Error - API ${lU.name} -: `,XMe),new Error(`[Push SDK] - API - Error - API ${lU.name} -: ${XMe}`)}},cU=async e=>{const{chatId:t,env:r}=e,n=(await GO({chatId:t,env:r})).approvedCount,i=Math.ceil(n/5e3),o=Array.from({length:i},((e,t)=>t+1)),s=[],a=o.map((e=>lU({chatId:t,env:r,page:e,limit:5e3})));return(await Promise.all(a)).forEach((e=>{e.members.length>0&&s.push(...e.members)})),s};var hU=r(98399);const dU=async e=>await fU(e,TL),fU=async(e,t)=>{const{status:r="Approved",account:n=null,signer:i=null,senderAddress:o,env:s=og.ENV.PROD,pgpPrivateKey:a=null,overrideSecretKeyGeneration:u=!tw[ig].feature.includes(og.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};if(null==n&&null==i)throw new Error("At least one from account or signer is necessary!");const l=aO({account:n,signer:i}),c=await uO(l),h=!ZO(o),d=await hO(l,a,s,t),f=h?await dO(c,s):await dO(o,s),p=h?await dO(o,s):await dO(c,s);let m,g=null,y="pgp";if(h){const e=await XB({chatId:o,env:s});if(e&&!e.isPublic&&(e.encryptedSecret||!u)){y="pgpv2";const r=aw(15),n=(await cU({chatId:e.chatId,env:s})).map((e=>e.publicKey));n.push(d.publicKey),g=await t.pgpEncrypt({plainText:r,keys:n})}}switch(y){case"pgp":m={fromDID:f,toDID:p,status:r};break;case"pgpv2":m={fromDID:f,toDID:p,status:r,encryptedSecret:g}}const v=iw.SHA256(JSON.stringify(m)).toString(),b=await t.sign({message:v,signingKey:d.privateKey}),w={fromDID:f,toDID:p,signature:b,status:r,sigType:y,verificationProof:`${y}:${b}`,encryptedSecret:g},_=nw(s);return FL(`${_}/v1/chat/request/accept`,w).then((e=>e.data)).catch((e=>{throw hU.error(`[Push SDK] - API ${dU.name}: `,e),Error(`[Push SDK] - API ${dU.name}: ${e}`)}))};var pU,mU=r(98399);!function(e){e[e.MIN=1]="MIN",e[e.DEFAULT=10]="DEFAULT",e[e.MAX=30]="MAX"}(pU||(pU={}));const gU=async e=>await yU(e,TL),yU=async(e,t)=>{const{threadhash:r,limit:n=pU.DEFAULT,pgpPrivateKey:i="",account:o,toDecrypt:s=!1,env:a=og.ENV.PROD}=e||{};try{if(npU.MAX)throw n{const{threadhash:t,limit:r,env:n=og.ENV.PROD}=e||{},i=`${nw(n)}/v1/chat/conversationhash/${t}?${lj({fetchLimit:r})}`;return BL(i).then((e=>e.data)).catch((e=>{throw new Error(e)}))})({threadhash:r,limit:n,env:a}),u=UO(e),l=await HL({account:uj(o),env:a});return s?await jO({messages:u,connectedUser:l,pgpPrivateKey:i,pgpHelper:t,env:a}):e}catch(dVe){throw mU.error(`[Push SDK] - API ${gU.name} -: `,dVe),Error(`[Push SDK] - API ${gU.name} -: ${dVe}`)}},vU=async(e,t)=>{const{threadhash:r,pgpPrivateKey:n="",account:i,toDecrypt:o=!1,env:s=og.ENV.PROD}=e||{};return gU({threadhash:r,toDecrypt:o,limit:1,pgpPrivateKey:n,account:i,env:s})};var bU=r(98399);const wU=async e=>await _U(e,TL),_U=async(e,t)=>{const{account:r=null,signer:n=null,groupName:i,groupDescription:o,members:s,groupImage:a,admins:u,isPublic:l,contractAddressNFT:c,numberOfNFTs:h,contractAddressERC20:d,numberOfERC20:f,env:p=og.ENV.PROD,pgpPrivateKey:m=null,meta:g,groupType:y,scheduleAt:v,scheduleEnd:b,rules:w}=e||{};try{if(null==r&&null==n)throw new Error("At least one from account or signer is necessary!");QO(v,b);const e=aO({account:r,signer:n});((e,t,r,n,i,o,s,a)=>{if(null==e||0==e.length)throw new Error("groupName cannot be null or empty");if(e.length>50)throw new Error("groupName cannot be more than 50 characters");if(n&&n.length>150)throw new Error("groupDescription cannot be more than 150 characters");if(null==t)throw new Error("members cannot be null");for(let u=0;u0&&!XO(i))throw new Error("Invalid contractAddressNFT address!");if(null!=o&&o<0)throw new Error("numberOfNFTs cannot be negative number");if(null!=s&&(null==s?void 0:s.length)>0&&!XO(s))throw new Error("Invalid contractAddressERC20 address!");if(null!=a&&a<0)throw new Error("numberOfERC20 cannot be negative number")})(i,s,u,o,c,h,d,f);const _=s.map((async e=>dO(e,p))),E=u.map((async e=>dO(e,p))),A=await Promise.all(_),M=await Promise.all(E),S=await hO(e,m,p,t),x={groupName:i,groupDescription:null==o?null:o,members:A,groupImage:null==a?null:a,admins:M,isPublic:l,contractAddressNFT:null==c?null:c,numberOfNFTs:null==h?0:h,contractAddressERC20:null==d?null:d,numberOfERC20:null==f?0:f,groupCreator:S.did},k=iw.SHA256(JSON.stringify(x)).toString(),T=await t.sign({message:k,signingKey:S.privateKey}),C="pgp"+":"+T,I=`${nw(p)}/v1/chat/groups`,N=((e,t,r,n,i,o,s,a,u,l,c,h,d,f,p,m,g)=>({groupName:e,groupDescription:s,members:t,groupImage:a,admins:r,isPublic:n,contractAddressNFT:u,numberOfNFTs:l,contractAddressERC20:c,numberOfERC20:h,groupCreator:i,verificationProof:o,meta:d,groupType:f,scheduleAt:p,scheduleEnd:m,rules:g}))(i,A,M,l,S.did,C,o,a,c,h,d,f,g,y,v,b,w);return UL(I,N).then((e=>e.data)).catch((e=>{var t,r;if(null!=e&&null!=(t=e.response)&&t.data)throw new Error(null==e||null==(r=e.response)?void 0:r.data);throw new Error(e)}))}catch(dVe){throw bU.error(`[Push SDK] - API - Error - API ${wU.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${wU.name} -: ${dVe}`)}};var EU=r(98399);const AU=async e=>await MU(e,TL),MU=async(e,t)=>{const{account:r=null,signer:n=null,pgpPrivateKey:i=null,env:o=og.ENV.PROD,groupName:s,groupDescription:a,groupImage:u,rules:l,isPublic:c,groupType:h,config:{meta:d,scheduleAt:f,scheduleEnd:p,status:m},members:g,admins:y}=e;try{const v=aO({account:r,signer:n}),b=await hO(v,i,o,t),w=g.map((async e=>dO(e,o))),_=y.map((async e=>dO(e,o))),E=await Promise.all(w),A=await Promise.all(_);SU(e);const M={groupName:s,groupDescription:a,groupImage:u,rules:l,isPublic:c,groupType:h},S=iw.SHA256(JSON.stringify(M)).toString(),x=`pgpv2:${await t.sign({message:S,signingKey:b.privateKey})}:${b.did}`,k={meta:d,scheduleAt:f,scheduleEnd:p,status:m},T=iw.SHA256(JSON.stringify(k)).toString(),C=`pgpv2:${await t.sign({message:T,signingKey:b.privateKey})}:${b.did}`,I={members:E,admins:A},N=iw.SHA256(JSON.stringify(I)).toString(),R=`pgpv2:${await t.sign({message:N,signingKey:b.privateKey})}:${b.did}`,P=`${nw(o)}/v2/chat/groups`,D={groupName:s,groupDescription:a,groupImage:u,rules:l,isPublic:c,groupType:h,profileVerificationProof:x,config:{meta:d,scheduleAt:f,scheduleEnd:p,status:m,configVerificationProof:C},members:E,admins:A,idempotentVerificationProof:R};return PL().post(P,D).then((e=>e.data)).catch((e=>{var t,r;if(null!=e&&null!=(t=e.response)&&t.data)throw new Error(JSON.stringify(null==e||null==(r=e.response)?void 0:r.data));throw new Error(e)}))}catch(dVe){throw EU.error(`[Push SDK] - API - Error - API ${AU.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${AU.name} -: ${dVe}`)}},SU=e=>{const{account:t=null,signer:r=null,pgpPrivateKey:n=null,groupName:i,groupDescription:o,groupImage:s,rules:a,isPublic:u,groupType:l,config:{meta:c,scheduleAt:h,scheduleEnd:d,status:f},members:p,admins:m}=e;if(!n&&!r)throw new Error("At least one from pgpPrivateKey or signer is necessary!");if(null==i||0==i.length)throw new Error("groupName cannot be null or empty");if(i.length>50)throw new Error("groupName cannot be more than 50 characters");if(o&&o.length>150)throw new Error("groupDescription cannot be more than 150 characters");for(let g=0;g{const{chatId:t,did:r,env:n=og.ENV.PROD}=e||{};try{if(null==t||0===t.length)throw new Error("chatId cannot be null or empty");if(null==r||0===r.length)throw new Error("did cannot be null or empty");const e=await dO(r,n),i=`${nw(n)}/v1/chat/groups/${t}/members/${e}/status`;return(await BL(i)).data}catch(dVe){throw xU.error(`[Push SDK] - API - Error - API ${kU.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${kU.name} -: ${dVe}`)}};var TU=r(98399);const CU=async e=>await IU(e,TL),IU=async(e,t)=>{const{chatId:r,groupName:n,groupImage:i,groupDescription:o,members:s,admins:a,account:u=null,signer:l=null,env:c=og.ENV.PROD,pgpPrivateKey:h=null,scheduleAt:d,scheduleEnd:f,status:p,meta:m,rules:g}=e||{};try{if(null==u&&null==l)throw new Error("At least one from account or signer is necessary!");const e=aO({account:u,signer:l}),y=await uO(e);JO(r,n,s,a,y,o);const v=await hO(e,h,c,t),b=s.map((async e=>dO(e,c))),w=a.map((async e=>dO(e,c))),_=await Promise.all(b),E=await Promise.all(w),A=await AO({chatId:r,env:c}),M=new Set(_.map((e=>e.toLowerCase()))),S=await kU({chatId:r,did:v.did,env:c});let x=!0;A.members.map((e=>{M.has(e.wallet.toLowerCase())||(x=!1)}));let k=null;if(!(x&&S.isMember||A.isPublic)){const e=aw(15),r=[];A.members.map((e=>{M.has(e.wallet.toLowerCase())&&r.push(e.publicKey)})),S.isMember||r.push(v.publicKey),k=await t.pgpEncrypt({plainText:e,keys:r})}const T={groupName:n,groupDescription:null==o?null:o,groupImage:null==i?null:i,members:_,admins:E,chatId:r},C=iw.SHA256(JSON.stringify(T)).toString(),I=await t.sign({message:C,signingKey:v.privateKey}),N="pgp"+":"+I+":"+u,R=`${nw(c)}/v1/chat/groups/${r}`,P=((e,t,r,n,i,o,s,a,u,l,c,h,d)=>Object.assign({groupName:e,groupImage:a,groupDescription:s,members:t,admins:r,address:n,verificationProof:i,encryptedSecret:o,scheduleAt:u,scheduleEnd:l,status:c},void 0!==h&&{meta:h},void 0!==d&&{rules:d}))(n,_,E,v.did,N,k,o,i,d,f,p,m,g);return(await FL(R,P)).data}catch(dVe){throw TU.error(`[Push SDK] - API - Error - API ${CU.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${CU.name} -: ${dVe}`)}};var NU=r(98399);const RU=async e=>{const{groupName:t,env:r=og.ENV.PROD}=e||{};try{if(NU.log("============================================="),NU.log("NOTICE: The method 'getGroupByName' will be deprecated on January 1st, 2024. Please update your code to remove this."),NU.log("============================================="),null==t||0==t.length)throw new Error("Group Name cannot be null or empty");const e=`${nw(r)}/v1/chat/groups?groupName=${t}`;return(await BL(e)).data}catch(dVe){throw NU.error(`[Push SDK] - API - Error - API ${RU.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${RU.name} -: ${dVe}`)}};r(15447);var PU=r(98399);const DU=async e=>{const{chatId:t,upsert:r,remove:n,account:i=null,signer:o=null,env:s=og.ENV.PROD,pgpPrivateKey:a=null,overrideSecretKeyGeneration:u=!tw[ig].feature.includes(og.ALPHA_FEATURES.SCALABILITY_V2)}=e;try{(e=>{const{chatId:t,upsert:r,remove:n}=e;if(!t||0===t.trim().length)throw new Error("Chat ID cannot be null or empty.");const i=["members","admins"];if(Object.keys(r).forEach((e=>{if(!i.includes(e))throw new Error(`Invalid role: ${e}. Allowed roles are ${i.join(", ")}.`);if(r[e]&&r[e].length>1e3)throw new Error(`${e} array cannot have more than 1000 addresses.`);r[e].forEach((t=>{if(!ZO(t))throw new Error(`Invalid address found in ${e} list.`)}))})),n&&n.length>1e3)throw new Error("Remove array cannot have more than 1000 addresses.");n.forEach((e=>{if(!ZO(e))throw new Error("Invalid address found in remove list.")}))})(e);const l=aO({account:i,signer:o}),c=await hO(l,a,s,TL),h=Object.entries(r).map((async([e,t])=>[e,await Promise.all(t.map((e=>dO(e,s))))])),d=Object.fromEntries(await Promise.all(h)),f=await Promise.all(n.map((e=>dO(e,s))));let p=null;const m=await XB({chatId:t,env:s});if(!m)throw new Error("Group not found");if(!m.isPublic&&(m.encryptedSecret||!u)){const{isMember:e}=await kU({chatId:t,did:c.did,env:s}),r=await cU({chatId:t,env:s}),n=new Set(f.map((e=>e.toLowerCase())));let i=!0;if(r.map((e=>{n.has(e.did.toLowerCase())&&(i=!1)})),!i||!e){const t=aw(15),i=[];r.map((e=>{n.has(e.did.toLowerCase())||i.push(e.publicKey)})),e||i.push(c.publicKey),p=await(async({plainText:e,keys:t})=>{const r=[];for(let i=0;ie.data)).catch((e=>{var t;if(null!=e&&null!=(t=e.response)&&t.data)throw new Error(JSON.stringify(e.response.data));throw new Error(e)}))}catch(dVe){throw PU.error(`[Push SDK] - API - Error - API ${DU.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${DU.name} -: ${dVe}`)}};var LU=r(98399);const OU=async e=>{const{chatId:t,members:r,account:n=null,signer:i=null,env:o=og.ENV.PROD,pgpPrivateKey:s=null,overrideSecretKeyGeneration:a=!tw[ig].feature.includes(og.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};try{if(null==n&&null==i)throw new Error("At least one from account or signer is necessary!");if(!r||0===r.length)throw new Error("Member address array cannot be empty!");const e={chatId:t,upsert:{members:r,admins:[]},remove:[],account:n,signer:i,pgpPrivateKey:s,env:o,overrideSecretKeyGeneration:a};return await DU(e)}catch(dVe){throw LU.error(`[Push SDK] - API - Error - API ${OU.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${OU.name} -: ${dVe}`)}};var jU=r(98399);const BU=async e=>{const{chatId:t,admins:r,account:n=null,signer:i=null,env:o=og.ENV.PROD,pgpPrivateKey:s=null,overrideSecretKeyGeneration:a=!tw[ig].feature.includes(og.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};try{if(null==n&&null==i)throw new Error("At least one from account or signer is necessary!");if(!r||0===r.length)throw new Error("Admin address array cannot be empty!");const e={chatId:t,upsert:{members:[],admins:r},remove:[],account:n,signer:i,pgpPrivateKey:s,env:o,overrideSecretKeyGeneration:a};return await DU(e)}catch(dVe){throw jU.error(`[Push SDK] - API - Error - API ${BU.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${BU.name} -: ${dVe}`)}};var UU=r(98399);const FU=async e=>{const{chatId:t,members:r,account:n=null,signer:i=null,env:o=og.ENV.PROD,pgpPrivateKey:s=null,overrideSecretKeyGeneration:a=!tw[ig].feature.includes(og.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};try{if(null==n&&null==i)throw new Error("At least one from account or signer is necessary!");if(!r||0===r.length)throw new Error("Member address array cannot be empty!");const e={chatId:t,upsert:{members:[],admins:[]},remove:r,account:n,signer:i,pgpPrivateKey:s,env:o,overrideSecretKeyGeneration:a};return await DU(e)}catch(dVe){throw UU.error(`[Push SDK] - API - Error - API ${FU.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${FU.name} -: ${dVe}`)}};var zU=r(98399);const HU=async e=>{const{chatId:t,admins:r,account:n=null,signer:i=null,env:o=og.ENV.PROD,pgpPrivateKey:s=null,overrideSecretKeyGeneration:a=!tw[ig].feature.includes(og.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};try{if(null==n&&null==i)throw new Error("At least one from account or signer is necessary!");if(!r||0===r.length)throw new Error("Admin address array cannot be empty!");const e={chatId:t,upsert:{members:[],admins:[]},remove:r,account:n,signer:i,pgpPrivateKey:s,env:o,overrideSecretKeyGeneration:a};return await DU(e)}catch(dVe){throw zU.error(`[Push SDK] - API - Error - API ${HU.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${HU.name} -: ${dVe}`)}};var GU=r(98399);const YU=async e=>{const{chatId:t,did:r,env:n=og.ENV.PROD}=e||{};try{if(null==t||0===t.length)throw new Error("chatId cannot be null or empty");if(null==r||0===r.length)throw new Error("did cannot be null or empty");const e=await dO(r,n),i=`${nw(n)}/v1/chat/groups/${t}/access/${e}`;return(await BL(i)).data}catch(dVe){throw GU.error(`[Push SDK] - API - Error - API ${YU.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${YU.name} -: ${dVe}`)}};var KU=r(98399);const qU=async e=>{const{searchTerm:t,pageNumber:r,pageSize:n,env:i=og.ENV.PROD}=e||{};try{const e=`${nw(i)}/v1/chat/groups/search`;return(await UL(e,{searchTerm:t,pageNumber:r,pageSize:n})).data}catch(dVe){throw KU.error(`[Push SDK] - API - Error - API ${qU.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${qU.name} -: ${dVe}`)}};var WU=r(98399);const VU=async e=>{const{account:t=null,signer:r=null,senderAddress:n,env:i=og.ENV.PROD,pgpPrivateKey:o=null}=e||{};if(null==t&&null==r)throw new Error("At least one from account or signer is necessary!");const s=aO({account:t,signer:r}),a=await uO(s),u=`${nw(i)}/v1/chat/request/reject`;let l=!0;ZO(n)&&(l=!1);const c=await cO(s,o,i);let h=await dO(n,i),d=await dO(a,i);l&&(h=await dO(a,i),d=await dO(n,i));const f={fromDID:h,toDID:d},p=iw.SHA256(JSON.stringify(f)).toString(),m=((e,t,r,n)=>({fromDID:e,toDID:t,verificationProof:r+":"+n}))(h,d,"pgp",await CL({message:p,signingKey:c.privateKey}));return FL(u,m).then((e=>e.data)).catch((e=>{throw WU.error(`[Push SDK] - API ${VU.name}: `,e),Error(`[Push SDK] - API ${VU.name}: ${e}`)}))};var $U=r(98399);const QU=async e=>{const{chatId:t,newRole:r,members:n,account:i=null,signer:o=null,env:s=og.ENV.PROD,pgpPrivateKey:a=null,overrideSecretKeyGeneration:u=!tw[ig].feature.includes(og.ALPHA_FEATURES.SCALABILITY_V2)}=e||{};try{if(null==i&&null==o)throw new Error("At least one from account or signer is necessary!");if(!n||0===n.length)throw new Error("Members array cannot be empty!");const e={chatId:t,upsert:{admins:"ADMIN"===r?n:[],members:"MEMBER"===r?n:[]},remove:[],account:i,signer:o,pgpPrivateKey:a,env:s,overrideSecretKeyGeneration:u};return await DU(e)}catch(dVe){throw $U.error(`[Push SDK] - API - Error - API ${QU.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${QU.name} -: ${dVe}`)}},JU=e=>e.replace("eip155:","");var ZU=r(98399);const XU=async e=>{const{account:t,pgpPrivateKey:r,env:n=og.ENV.PROD,page:i=1,limit:o=10}=e||{};if(!ZO(t))throw new Error("Invalid address!");const s=await dO(t,n),a=`${`${nw(n)}/v1/spaces/users/${s}/spaces?page=${i}&limit=${o}`}`;try{const e=!1,t=(await BL(a)).data.spaces;return await OO({lists:t,user:s,toDecrypt:e,pgpPrivateKey:r,env:n})}catch(dVe){throw ZU.error(`[Push SDK] - API ${XU.name}: `,dVe),Error(`[Push SDK] - API ${XU.name}: ${dVe}`)}};var eF=r(98399);const tF=async e=>{const{env:t=og.ENV.PROD,page:r=1,limit:n=10}=e||{},i=`${nw(t)}/v1/spaces/trending?page=${r}&limit=${n}`;try{const e=(await BL(i)).data.spaces,r=await(async e=>{const{lists:t,env:r=og.ENV.PROD}=e||{},n=[];for(const i of t){let e;e=null!==i.threadhash?await DO(i.threadhash,{env:r}):{encType:"PlainText",encryptedSecret:"",fromCAIP10:"",fromDID:"",link:"",messageContent:"",messageType:"",sigType:"",signature:"",toCAIP10:"",toDID:""},n.push(Object.assign({},i,{msg:e,spaceInformation:i.spaceInformation}))}return n})({lists:e,env:t});return r}catch(dVe){throw eF.error(`[Push SDK] - API ${tF.name}: `,dVe),Error(`[Push SDK] - API ${tF.name}: ${dVe}`)}};var rF=r(98399);const nF=async e=>{const{spaceId:t,env:r=og.ENV.PROD}=e||{};try{if(null==t||0==t.length)throw new Error("spaceId cannot be null or empty");const e=await AO({chatId:t,env:r});return KO(e)}catch(dVe){throw rF.error(`[Push SDK] - API - Error - API ${nF.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${nF.name} -: ${dVe}`)}};var iF=r(98399);const oF=async e=>{const{spaceId:t,env:r=og.ENV.PROD}=e||{};try{if(null==t||0==t.length)throw new Error("spaceId cannot be null or empty");const e=await AO({chatId:t,env:r});return KO(e)}catch(dVe){throw iF.error(`[Push SDK] - API - Error - API ${oF.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${oF.name} -: ${dVe}`)}};var sF=r(98399);async function aF(e){const{signer:t,spaceName:r,spaceDescription:n,listeners:i,spaceImage:o,speakers:s,isPublic:a,contractAddressNFT:u,numberOfNFTs:l,contractAddressERC20:c,numberOfERC20:h,env:d=og.ENV.PROD,pgpPrivateKey:f=null,scheduleAt:p,scheduleEnd:m,rules:g}=e||{},y=g?{entry:g.entry,chat:void 0}:null;try{const e=await wU({signer:t,groupName:r,groupDescription:n,members:i,groupImage:o,admins:s,isPublic:a,contractAddressNFT:u,numberOfNFTs:l,contractAddressERC20:c,numberOfERC20:h,env:d,pgpPrivateKey:f,groupType:"spaces",scheduleAt:p,scheduleEnd:m,rules:y});return KO(e)}catch(dVe){throw sF.error(`[Push SDK] - API - Error - API ${aF.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${aF.name} -: ${dVe}`)}}let uF,lF,cF,hF,dF,fF,pF;!function(e){e.ACTIVE="ACTIVE",e.PENDING="PENDING",e.ENDED="ENDED"}(uF||(uF={})),function(e){e.PUSH="PUSH",e.GUILD="GUILD"}(lF||(lF={})),function(e){e.PUSH="PUSH",e.GUILD="GUILD",e.ERC721="ERC721",e.ERC20="ERC20",e.CUSTOM_ENDPOINT="CustomEndpoint",e.INVITE="INVITE"}(cF||(cF={})),function(e){e.DEFAULT="DEFAULT",e.HOLDER="holder",e.GET="GET"}(hF||(hF={})),function(e){e.ENTRY="Entry",e.CHAT="Chat"}(dF||(dF={})),function(e){e.ADMIN="ADMIN",e.OWNER="OWNER"}(fF||(fF={})),function(e){e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.INITIALIZED=1]="INITIALIZED",e[e.RECEIVED=2]="RECEIVED",e[e.CONNECTED=3]="CONNECTED",e[e.DISCONNECTED=4]="DISCONNECTED",e[e.ENDED=5]="ENDED",e[e.RETRY_INITIALIZED=6]="RETRY_INITIALIZED",e[e.RETRY_RECEIVED=7]="RETRY_RECEIVED"}(pF||(pF={}));var mF=r(98399);const gF=async e=>{const{spaceId:t,spaceName:r,spaceImage:n,spaceDescription:i,listeners:o,speakers:s,signer:a,env:u=og.ENV.PROD,pgpPrivateKey:l=null,scheduleAt:c,scheduleEnd:h,status:d}=e||{};try{const e=await nF({spaceId:t,env:u});if(e.status===uF.ACTIVE&&c)throw new Error("Unable change the start date/time of an active space");if(e.status===uF.ENDED&&h)throw new Error("Unable change the end date/time of an ended space");const f=await CU({chatId:t,groupName:r,groupImage:n,groupDescription:i,members:o,admins:s,signer:a,env:u,pgpPrivateKey:l,scheduleAt:c,scheduleEnd:h,status:d});return KO(f)}catch(dVe){throw mF.error(`[Push SDK] - API - Error - API ${gF.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${gF.name} -: ${dVe}`)}},yF=async e=>{var t,r;const{spaceId:n,speakers:i,signer:o=null,env:s=(null!=(t=null==e?void 0:e.env)?t:og.ENV.PROD),pgpPrivateKey:a=(null!=(r=null==e?void 0:e.pgpPrivateKey)?r:null)}=e,u=await BU({chatId:n,admins:i,signer:o,env:s,pgpPrivateKey:a});return qO(u,s)};var vF=r(98399);const bF=async e=>{const{spaceId:t,speakers:r,signer:n=null,env:i=og.ENV.PROD,pgpPrivateKey:o=null}=e||{};try{const e=await HU({chatId:t,admins:r,signer:n,env:i,pgpPrivateKey:o});return qO(e,i)}catch(dVe){throw vF.error(`[Push SDK] - API - Error - API ${bF.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${bF.name} -: ${dVe}`)}};var wF=r(98399);const _F=async e=>{const{spaceId:t,listeners:r,account:n=null,signer:i=null,env:o=og.ENV.PROD,pgpPrivateKey:s=null}=e||{};try{const e=await OU({chatId:t,members:r,account:n,signer:i,env:o,pgpPrivateKey:s});return qO(e,o)}catch(dVe){throw wF.error(`[Push SDK] - API - Error - API ${_F.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${_F.name} -: ${dVe}`)}};var EF=r(98399);const AF=async e=>{const{spaceId:t,listeners:r,account:n=null,signer:i=null,env:o=og.ENV.PROD,pgpPrivateKey:s=null}=e||{};try{const e=await FU({chatId:t,members:r,account:n,signer:i,env:o,pgpPrivateKey:s});return qO(e,o)}catch(dVe){throw EF.error(`[Push SDK] - API - Error - API ${AF.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${AF.name} -: ${dVe}`)}};r(59372);var MF=r(98399);const SF=async e=>{const{status:t="Approved",account:r=null,signer:n=null,senderAddress:i,env:o=og.ENV.PROD,pgpPrivateKey:s=null}=e||{};try{if(null==r&&null==n)throw new Error("At least one from account or signer is necessary!");if(!ZO(i)&&!i.startsWith("spaces:"))throw new Error("Not a valid spaceId or ETH address");return await dU({status:t,account:r,signer:n,senderAddress:i,env:o,pgpPrivateKey:s})}catch(dVe){throw MF.error(`[Push SDK] - API - Error - API ${SF.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${SF.name} -: ${dVe}`)}};var xF=r(98399);const kF=async e=>{const{account:t,pgpPrivateKey:r,env:n=og.ENV.PROD,toDecrypt:i=!1,page:o=1,limit:s=10}=e||{},a=await dO(t,n),u=`${nw(n)}/v1/spaces/users/${a}/requests?page=${o}&limit=${s}`;try{if(!ZO(a))throw new Error("Invalid address!");const e=(await BL(u)).data.requests;return await OO({lists:e,user:a,toDecrypt:i,pgpPrivateKey:r,env:n})}catch(dVe){throw xF.error(`[Push SDK] - API ${kF.name}: `,dVe),Error(`[Push SDK] - API ${kF.name}: ${dVe}`)}};var TF=r(98399);const CF=async e=>{const{spaceId:t,did:r,env:n=og.ENV.PROD}=e||{};try{if(null==t||0===t.length)throw new Error("spaceId cannot be null or empty");if(null==r||0===r.length)throw new Error("did cannot be null or empty");return(e=>{const t={entry:e.entry};return e.rules&&(t.rules={entry:e.rules.entry}),t})(await YU({chatId:t,did:r,env:n}))}catch(dVe){throw TF.error(`[Push SDK] - API - Error - API ${CF.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${CF.name} -: ${dVe}`)}};var IF=r(98399);const NF=async e=>{const{searchTerm:t,pageNumber:r,pageSize:n,env:i=og.ENV.PROD}=e||{};try{const e=nw(i);return UL(`${e}/v1/spaces/search`,{searchTerm:t,pageNumber:r,pageSize:n}).then((e=>e.data)).catch((e=>{var t,r;if(null!=e&&null!=(t=e.response)&&t.data)throw new Error(null==e||null==(r=e.response)?void 0:r.data);throw new Error(e)}))}catch(dVe){throw IF.error(`[Push SDK] - API - Error - API ${NF.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${NF.name} -: ${dVe}`)}};var RF=r(98399);const PF=async e=>{const{account:t,pgpPrivateKey:r,env:n=og.ENV.PROD,toDecrypt:i=!1,recipient:o}=e||{},s=await dO(t,n),a=await dO(o,n);if(!ZO(s))throw new Error(`Invalid address ${s}`);const u=`${nw(n)}/v1/spaces/users/${s}/space/${a}`;try{const e=(await BL(u)).data;if(0!==Object.keys(e).length){const[t]=await OO({lists:[e],user:s,toDecrypt:i,pgpPrivateKey:r,env:n});return t}return e}catch(dVe){throw RF.error(`[Push SDK] - API ${PF.name}: `,dVe),Error(`[Push SDK] - API ${PF.name}: ${dVe}`)}};var DF=Symbol.for("immer-nothing"),LF=Symbol.for("immer-draftable"),OF=Symbol.for("immer-state");function jF(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var BF=Object.getPrototypeOf;function UF(e){return!!e&&!!e[OF]}function FF(e){return!!e&&(HF(e)||Array.isArray(e)||!!e[LF]||!!e.constructor?.[LF]||WF(e)||VF(e))}var zF=Object.prototype.constructor.toString();function HF(e){if(!e||"object"!=typeof e)return!1;const t=BF(e);if(null===t)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===zF}function GF(e,t){0===YF(e)?Object.entries(e).forEach((([r,n])=>{t(r,n,e)})):e.forEach(((r,n)=>t(n,r,e)))}function YF(e){const t=e[OF];return t?t.type_:Array.isArray(e)?1:WF(e)?2:VF(e)?3:0}function KF(e,t){return 2===YF(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function qF(e,t,r){const n=YF(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function WF(e){return e instanceof Map}function VF(e){return e instanceof Set}function $F(e){return e.copy_||e.base_}function QF(e,t){if(WF(e))return new Map(e);if(VF(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&HF(e)){if(!BF(e)){const t=Object.create(null);return Object.assign(t,e)}return{...e}}const r=Object.getOwnPropertyDescriptors(e);delete r[OF];let n=Reflect.ownKeys(r);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=ZF),Object.freeze(e),t&&GF(e,((e,t)=>JF(t,!0)))),e}function ZF(){jF(2)}function XF(e){return Object.isFrozen(e)}var ez,tz={};function rz(e){const t=tz[e];return t||jF(0),t}function nz(){return ez}function iz(e,t){t&&(rz("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function oz(e){sz(e),e.drafts_.forEach(uz),e.drafts_=null}function sz(e){e===ez&&(ez=e.parent_)}function az(e){return ez={drafts_:[],parent_:ez,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function uz(e){const t=e[OF];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function lz(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return void 0!==e&&e!==r?(r[OF].modified_&&(oz(t),jF(4)),FF(e)&&(e=cz(t,e),t.parent_||dz(t,e)),t.patches_&&rz("Patches").generateReplacementPatches_(r[OF].base_,e,t.patches_,t.inversePatches_)):e=cz(t,r,[]),oz(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==DF?e:void 0}function cz(e,t,r){if(XF(t))return t;const n=t[OF];if(!n)return GF(t,((i,o)=>hz(e,n,t,i,o,r))),t;if(n.scope_!==e)return t;if(!n.modified_)return dz(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const t=n.copy_;let i=t,o=!1;3===n.type_&&(i=new Set(t),t.clear(),o=!0),GF(i,((i,s)=>hz(e,n,t,i,s,r,o))),dz(e,t,!1),r&&e.patches_&&rz("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function hz(e,t,r,n,i,o,s){if(UF(i)){const s=cz(e,i,o&&t&&3!==t.type_&&!KF(t.assigned_,n)?o.concat(n):void 0);if(qF(r,n,s),!UF(s))return;e.canAutoFreeze_=!1}else s&&r.add(i);if(FF(i)&&!XF(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;cz(e,i),t&&t.scope_.parent_||dz(e,i)}}function dz(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&JF(t,r)}var fz={get(e,t){if(t===OF)return e;const r=$F(e);if(!KF(r,t))return function(e,t,r){const n=gz(t,r);return n?"value"in n?n.value:n.get?.call(e.draft_):void 0}(e,r,t);const n=r[t];return e.finalized_||!FF(n)?n:n===mz(e.base_,t)?(vz(e),e.copy_[t]=bz(n,e)):n},has:(e,t)=>t in $F(e),ownKeys:e=>Reflect.ownKeys($F(e)),set(e,t,r){const n=gz($F(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const n=mz($F(e),t),i=n?.[OF];if(i&&i.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}(r,n)&&(void 0!==r||KF(e.base_,t)))return!0;vz(e),yz(e)}return e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty:(e,t)=>(void 0!==mz(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,vz(e),yz(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){const r=$F(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){jF(11)},getPrototypeOf:e=>BF(e.base_),setPrototypeOf(){jF(12)}},pz={};function mz(e,t){const r=e[OF];return(r?$F(r):e)[t]}function gz(e,t){if(!(t in e))return;let r=BF(e);for(;r;){const e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=BF(r)}}function yz(e){e.modified_||(e.modified_=!0,e.parent_&&yz(e.parent_))}function vz(e){e.copy_||(e.copy_=QF(e.base_,e.scope_.immer_.useStrictShallowCopy_))}GF(fz,((e,t)=>{pz[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),pz.deleteProperty=function(e,t){return pz.set.call(this,e,t,void 0)},pz.set=function(e,t,r){return fz.set.call(this,e[0],t,r,e[0])};function bz(e,t){const r=WF(e)?rz("MapSet").proxyMap_(e,t):VF(e)?rz("MapSet").proxySet_(e,t):function(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:nz(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=fz;r&&(i=[n],o=pz);const{revoke:s,proxy:a}=Proxy.revocable(i,o);return n.draft_=a,n.revoke_=s,a}(e,t);return(t?t.scope_:nz()).drafts_.push(r),r}function wz(e){if(!FF(e)||XF(e))return e;const t=e[OF];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=QF(e,t.scope_.immer_.useStrictShallowCopy_)}else r=QF(e,!0);return GF(r,((e,t)=>{qF(r,e,wz(t))})),t&&(t.finalized_=!1),r}var _z=new class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(e,t,r)=>{if("function"==typeof e&&"function"!=typeof t){const r=t;t=e;const n=this;return function(e=r,...i){return n.produce(e,(e=>t.call(this,e,...i)))}}let n;if("function"!=typeof t&&jF(6),void 0!==r&&"function"!=typeof r&&jF(7),FF(e)){const i=az(this),o=bz(e,void 0);let s=!0;try{n=t(o),s=!1}finally{s?oz(i):sz(i)}return iz(i,r),lz(n,i)}if(!e||"object"!=typeof e){if(n=t(e),void 0===n&&(n=e),n===DF&&(n=void 0),this.autoFreeze_&&JF(n,!0),r){const t=[],i=[];rz("Patches").generateReplacementPatches_(e,n,t,i),r(t,i)}return n}jF(1)},this.produceWithPatches=(e,t)=>{if("function"==typeof e)return(t,...r)=>this.produceWithPatches(t,(t=>e(t,...r)));let r,n;const i=this.produce(e,t,((e,t)=>{r=e,n=t}));return[i,r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){FF(e)||jF(8),UF(e)&&(e=function(e){UF(e)||jF(10);return wz(e)}(e));const t=az(this),r=bz(e,void 0);return r[OF].isManual_=!0,sz(t),r}finishDraft(e,t){const r=e&&e[OF];r&&r.isManual_||jF(9);const{scope_:n}=r;return iz(n,t),lz(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));const n=rz("Patches").applyPatches_;return UF(e)?n(e,t):this.produce(e,(e=>n(e,t)))}},Ez=_z.produce;_z.produceWithPatches.bind(_z),_z.setAutoFreeze.bind(_z),_z.setUseStrictShallowCopy.bind(_z),_z.applyPatches.bind(_z),_z.createDraft.bind(_z),_z.finishDraft.bind(_z);var Az=r(71884),Mz=r(98399);const Sz=async({signer:e,chainId:t,pgpPrivateKey:r},{recipientAddress:n,senderAddress:i,chatId:o,rules:s,status:a,signalData:u=null,env:l=og.ENV.PROD,callType:c=yB.PUSH_VIDEO,callDetails:h})=>{try{var d;const f={recipientAddress:n,senderAddress:i,chatId:null!=(d=null==s?void 0:s.access.data.chatId)?d:o,signalData:u,status:a,callDetails:h},p=sj(i,t),m=sj(n,t),g=`Video Call from ${i}`,y=mB.TARGETTED;await xB({senderType:1,signer:e,pgpPrivateKey:r,chatId:o,rules:s,type:y,identityType:2,notification:{title:g,body:g},payload:{title:"VideoCall",body:"VideoCall",cta:"",img:"",additionalMeta:{type:`${c}+1`,data:JSON.stringify(f)}},recipients:m,channel:p,env:l})}catch(dVe){Mz.error("Error occured while sending notification for video call",dVe)}},xz=e=>{e.getTracks().forEach((e=>e.stop()))},kz=e=>{try{return JSON.parse(e)&&!!e}catch(fVe){return!1}},Tz=async(e=og.ENV.PROD)=>{const t=`${nw(e)}/v1/turnserver/iceconfig`,{data:r}=await BL(t),{config:n}=JSON.parse(iw.AES.decrypt(r,"turnserversecret").toString(iw.enc.Utf8));return n},Cz=(e,t)=>e.findIndex((e=>e.address===t)),Iz=({incomingPeers:e})=>{const t=[];return e.forEach((e=>{e.status===pF.CONNECTED&&t.push(JU(e.address))})),t},Nz=({localAddress:e,localConnectedAddresses:t,receivedConnectedAddresses:r})=>r.filter((r=>!t.includes(r)&&r!==e)),Rz=e=>{if(e.access.type===AB.PUSH_CHAT&&(!e.access.data.chatId||""===e.access.data.chatId))throw new Error("Invalid rules object recieved. For access as Push Chat, chatId is required!")};var Pz=r(98399);const Dz={meta:{chatId:"",initiator:{address:"",signal:null},broadcast:{livepeerInfo:null,hostAddress:"",coHostAddress:""}},local:{stream:null,audio:null,video:null,address:""},incoming:[{stream:null,audio:null,video:null,address:"",status:pF.UNINITIALIZED,retryCount:0}]};class Lz{constructor({signer:e,chainId:t,pgpPrivateKey:r,env:n=og.ENV.PROD,setData:i,callType:o=yB.PUSH_VIDEO,onReceiveStream:s=async function(){return Promise.resolve()}}){this.signer=void 0,this.chainId=void 0,this.pgpPrivateKey=void 0,this.env=void 0,this.callType=void 0,this.onReceiveStream=void 0,this.peerInstances={},this.data=void 0,this.setData=void 0,this.signer=e,this.chainId=t,this.pgpPrivateKey=r,this.env=n,this.callType=o,this.onReceiveStream=s,i((()=>Dz)),this.data=Dz,this.setData=function(e){i(e),this.data=e(this.data)}}async create(e){const{audio:t=!0,video:r=!0,stream:n=null}=e||{};try{const e=null!==n?n:await navigator.mediaDevices.getUserMedia({video:r,audio:t});this.setData((n=>Ez(n,(n=>{n.local.stream=e,n.local.video=r,n.local.audio=t}))))}catch(dVe){Pz.error("error in create",dVe)}}async request(e){const{senderAddress:t,recipientAddress:r,chatId:n,rules:i,onReceiveMessage:o,retry:s=!1,details:a}=e||{};i&&Rz(i);const u=Array.isArray(r)?r:[r];for(const l of u)try{this.setData((e=>Ez(e,(r=>{r.local.address=t,r.meta.chatId=null!=n?n:i.access.data.chatId,r.meta.initiator.address=t;const o=Cz(e.incoming,l);-1===o?r.incoming.push({stream:null,audio:null,video:null,address:l,status:s?pF.RETRY_INITIALIZED:pF.INITIALIZED,retryCount:s?1:0}):(r.incoming[o].address=l,r.incoming[o].status=s?pF.RETRY_INITIALIZED:pF.INITIALIZED,r.incoming[o].retryCount+=s?1:0)}))));const e=await Tz(this.env);this.peerInstances[l]=new Az({initiator:!0,trickle:!1,stream:this.data.local.stream,config:{iceServers:e}}),this.peerInstances[l].on("signal",(e=>{this.setData((t=>Ez(t,(t=>{t.meta.initiator.signal=e})))),Sz({signer:this.signer,chainId:this.chainId,pgpPrivateKey:this.pgpPrivateKey},{senderAddress:t,recipientAddress:l,status:s?pF.RETRY_INITIALIZED:pF.INITIALIZED,chatId:n,rules:i,signalData:e,env:this.env,callType:this.callType,callDetails:a})})),this.peerInstances[l].on("connect",(()=>{this.peerInstances[l].send(`initial message from ${t}`),this.peerInstances[l].send(JSON.stringify({type:"isVideoOn",value:this.data.local.video})),this.peerInstances[l].send(JSON.stringify({type:"isAudioOn",value:this.data.local.audio}));const e=Iz({incomingPeers:this.data.incoming});this.peerInstances[l].send(JSON.stringify({type:"connectedAddresses",value:e}))})),this.peerInstances[l].on("data",(e=>{if(kz(e)){const o=JSON.parse(e);if("connectedAddresses"===o.type){const e=o.value,r=Iz({incomingPeers:this.data.incoming}),s=Nz({localAddress:t,localConnectedAddresses:r,receivedConnectedAddresses:e});this.request({senderAddress:t,recipientAddress:s,chatId:n,rules:i,details:{type:vB.ESTABLISH_MESH,data:{}}})}if("isVideoOn"===o.type&&this.setData((e=>Ez(e,(t=>{const r=Cz(e.incoming,l);t.incoming[r].video=o.value})))),"isAudioOn"===o.type&&this.setData((e=>Ez(e,(t=>{const r=Cz(e.incoming,l);t.incoming[r].audio=o.value})))),"endCall"===o.type){var r,s,a,u;if(this.callType===yB.PUSH_SPACE&&(null==o||null==(r=o.details)?void 0:r.type)===wB.LEAVE)null==(a=this.peerInstances[l])||a.destroy(),this.peerInstances[l]=null,this.setData((e=>Ez(e,(t=>{const r=Cz(e.incoming,l);t.incoming.splice(r,1)}))));if(this.callType===yB.PUSH_SPACE&&(null==o||null==(s=o.details)?void 0:s.type)===wB.STOP){for(const e in this.peerInstances){var c;null==(c=this.peerInstances[e])||c.destroy(),this.peerInstances[e]=null}this.data.local.stream&&xz(this.data.local.stream),this.setData((()=>Dz))}if(this.callType===yB.PUSH_VIDEO)null==(u=this.peerInstances[l])||u.destroy(),this.peerInstances[l]=null,this.data.local.stream&&xz(this.data.local.stream),this.setData((()=>Dz))}}else o&&o(e)})),this.peerInstances[l].on("stream",(e=>{const t=Cz(this.data.incoming,l);this.onReceiveStream(e,l,this.data.incoming[t].audio),this.setData((r=>Ez(r,(r=>{r.incoming[t].stream=e}))))}))}catch(dVe){Pz.error("error in request",dVe)}}async acceptRequest(e){const{signalData:t,senderAddress:r,recipientAddress:n,chatId:i,rules:o,onReceiveMessage:s,retry:a=!1,details:u}=e||{};o&&Rz(o);try{if(this.peerInstances[n])return Promise.resolve();const e=await Tz(this.env);this.peerInstances[n]=new Az({initiator:!1,trickle:!1,stream:this.data.local.stream,config:{iceServers:e}}),this.setData((e=>Ez(e,(t=>{t.local.address=r,t.meta.chatId=null!=i?i:o.access.data.chatId,t.meta.initiator.address=r;const s=Cz(e.incoming,n);-1===s?t.incoming.push({stream:null,audio:null,video:null,address:n,status:a?pF.RETRY_INITIALIZED:pF.INITIALIZED,retryCount:a?1:0}):(t.incoming[s].address=n,t.incoming[s].status=a?pF.RETRY_RECEIVED:pF.RECEIVED,t.incoming[s].retryCount+=a?1:0)})))),this.peerInstances[n].on("error",(e=>{this.data.incoming[0].retryCount>=5&&this.disconnect({peerAddress:n}),Sz({signer:this.signer,chainId:this.chainId,pgpPrivateKey:this.pgpPrivateKey},{senderAddress:r,recipientAddress:n,status:pF.RETRY_INITIALIZED,chatId:i,rules:o,signalData:null,callType:this.callType,env:this.env})})),this.peerInstances[n].signal(t),this.peerInstances[n].on("signal",(e=>{this.setData((t=>Ez(t,(t=>{t.meta.initiator.signal=e})))),Sz({signer:this.signer,chainId:this.chainId,pgpPrivateKey:this.pgpPrivateKey},{senderAddress:r,recipientAddress:n,status:a?pF.RETRY_RECEIVED:pF.RECEIVED,chatId:i,rules:o,signalData:e,env:this.env,callType:this.callType,callDetails:u})})),this.peerInstances[n].on("connect",(()=>{this.peerInstances[n].send(JSON.stringify({type:"isVideoOn",value:this.data.local.video})),this.peerInstances[n].send(JSON.stringify({type:"isAudioOn",value:this.data.local.audio}));const e=Iz({incomingPeers:this.data.incoming});this.peerInstances[n].send(JSON.stringify({type:"connectedAddresses",value:e})),this.setData((e=>Ez(e,(t=>{const r=Cz(e.incoming,n);t.incoming[r].status=pF.CONNECTED}))))})),this.peerInstances[n].on("data",(e=>{if(kz(e)){const s=JSON.parse(e);if("connectedAddresses"===s.type){const e=s.value,t=Iz({incomingPeers:this.data.incoming}),n=Nz({localAddress:r,localConnectedAddresses:t,receivedConnectedAddresses:e});this.request({senderAddress:r,recipientAddress:n,chatId:i,rules:o,details:{type:vB.ESTABLISH_MESH,data:{}}})}if("isVideoOn"===s.type&&this.setData((e=>Ez(e,(t=>{const r=Cz(e.incoming,n);t.incoming[r].video=s.value})))),"isAudioOn"===s.type&&this.setData((e=>Ez(e,(t=>{const r=Cz(e.incoming,n);t.incoming[r].audio=s.value})))),"endCall"===s.type){var t,a,u,l;if(this.callType===yB.PUSH_SPACE&&(null==s||null==(t=s.details)?void 0:t.type)===wB.LEAVE)null==(u=this.peerInstances[n])||u.destroy(),this.peerInstances[n]=null,this.setData((e=>Ez(e,(t=>{const r=Cz(e.incoming,n);t.incoming.splice(r,1)}))));if(this.callType===yB.PUSH_SPACE&&(null==s||null==(a=s.details)?void 0:a.type)===wB.STOP){for(const e in this.peerInstances){var c;null==(c=this.peerInstances[e])||c.destroy(),this.peerInstances[e]=null}this.data.local.stream&&xz(this.data.local.stream),this.setData((()=>Dz))}if(this.callType===yB.PUSH_VIDEO)null==(l=this.peerInstances[n])||l.destroy(),this.peerInstances[n]=null,this.data.local.stream&&xz(this.data.local.stream),this.setData((()=>Dz))}}else s&&s(e)})),this.peerInstances[n].on("stream",(e=>{const t=Cz(this.data.incoming,n);this.onReceiveStream(e,n,this.data.incoming[t].audio),this.setData((r=>Ez(r,(r=>{r.incoming[t].stream=e}))))}))}catch(dVe){Pz.error("error in accept request",dVe)}}connect(e){const{peerAddress:t,signalData:r}=e||{};try{var n;t||Pz.warn("disconnect requires a peer address"),this.peerInstances[t||this.data.incoming[0].address].on("error",(e=>{const r=t?Cz(this.data.incoming,t):0;this.data.incoming[r].retryCount>=5&&this.disconnect({peerAddress:t||this.data.incoming[0].address}),this.request({senderAddress:this.data.local.address,recipientAddress:this.data.incoming[r].address,chatId:this.data.meta.chatId,retry:!0})})),null==(n=this.peerInstances[t||this.data.incoming[0].address])||n.signal(r),this.setData((e=>Ez(e,(r=>{const n=t?Cz(e.incoming,t):0;r.incoming[n].status=pF.CONNECTED})))),Sz({signer:this.signer,chainId:this.chainId,pgpPrivateKey:this.pgpPrivateKey},{senderAddress:this.data.local.address,recipientAddress:t||this.data.incoming[0].address,status:pF.CONNECTED,rules:{access:{type:AB.PUSH_CHAT,data:{chatId:this.data.meta.chatId}}},signalData:r,env:this.env})}catch(dVe){Pz.error("error in connect",dVe)}}disconnect(e){const{peerAddress:t,details:r}=e||{};try{var n;null!=e&&e.peerAddress||Pz.warn("disconnect requires a peer address");const s=t?Cz(this.data.incoming,t):0,a=this.data.incoming[s].status===pF.CONNECTED;var i,o;if(a)null==(i=this.peerInstances[t||this.data.incoming[0].address])||i.send(JSON.stringify({type:"endCall",value:!0,details:r})),null==(o=this.peerInstances[t||this.data.incoming[0].address])||o.destroy();Sz({signer:this.signer,chainId:this.chainId,pgpPrivateKey:this.pgpPrivateKey},{senderAddress:this.data.local.address,recipientAddress:this.data.incoming[s].address,status:a?pF.ENDED:pF.DISCONNECTED,chatId:this.data.meta.chatId,signalData:null,env:this.env,callType:this.callType,callDetails:r}),null==(n=this.peerInstances[t||this.data.incoming[0].address])||n.destroy(),this.peerInstances[t||this.data.incoming[0].address]=null,this.data.local.stream&&xz(this.data.local.stream),this.setData((()=>Dz))}catch(dVe){Pz.error("error in disconnect",dVe)}}enableVideo(e){const{state:t}=e||{};if(this.data.local.video!==t){for(const e of this.data.incoming){var r;if(e.status===pF.CONNECTED)null==(r=this.peerInstances[e.address])||r.send(JSON.stringify({type:"isVideoOn",value:t}))}this.data.local.stream&&(t?this.data.local.stream.getVideoTracks().forEach((e=>e.enabled=!0)):(e=>{e.getVideoTracks().forEach((e=>e.enabled=!1))})(this.data.local.stream),this.setData((e=>Ez(e,(e=>{e.local.video=t})))))}}enableAudio(e){const{state:t}=e||{};if(this.data.local.audio!==t){for(const e of this.data.incoming)if(e.status===pF.CONNECTED&&this.peerInstances[e.address])try{this.peerInstances[e.address].send(JSON.stringify({type:"isAudioOn",value:t}))}catch(XMe){Pz.error("Error sending data:",XMe)}this.data.local.stream&&(t?this.data.local.stream.getAudioTracks().forEach((e=>e.enabled=!0)):(e=>{e.getAudioTracks().forEach((e=>e.enabled=!1))})(this.data.local.stream),this.setData((e=>Ez(e,(e=>{e.local.audio=t})))))}}isInitiator(){return""!==this.data.meta.initiator.address&&""!==this.data.local.address&&this.data.meta.initiator.address===this.data.local.address}}var Oz=r(98399);async function jz(e){const{spaceName:t,spaceImage:r,spaceDescription:n,scheduleAt:i,scheduleEnd:o,meta:s}=e||{};try{const e=await nF({spaceId:this.spaceSpecificData.spaceId,env:this.env}),a=$O(e.members,e.pendingMembers),u=WO(e.members,e.pendingMembers);if(e.status===uF.ACTIVE&&i)throw new Error("Unable change the start date/time of an active space");if(e.status===uF.ENDED&&o)throw new Error("Unable change the end date/time of an ended space");const l=await CU({chatId:this.spaceSpecificData.spaceId,groupName:t||e.spaceName,groupImage:r||e.spaceImage,groupDescription:n||e.spaceDescription,members:a,admins:u,signer:this.signer,env:this.env,pgpPrivateKey:this.pgpPrivateKey,scheduleAt:i||e.scheduleAt,scheduleEnd:o||e.scheduleEnd,meta:s||e.meta});this.setSpaceSpecificData((()=>Object.assign({},KO(l),{liveSpaceData:this.spaceSpecificData.liveSpaceData})))}catch(dVe){throw Oz.error(`[Push SDK] - API - Error - API ${jz.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${jz.name} -: ${dVe}`)}}const Bz=async({liveSpaceData:e,action:t,spaceId:r,pgpPrivateKey:n,signer:i,env:o})=>{await iU({receiverAddress:r,pgpPrivateKey:n,env:o,signer:i,messageType:rg.META,messageObj:{content:t,info:{affected:[],arbitrary:e}}})};var Uz=r(98399);async function Fz(){try{const e=await nF({spaceId:this.spaceSpecificData.spaceId,env:this.env});if(e.status!==uF.PENDING)throw new Error("Unable to start the space as it is not in the pending state");if(this.data.local.address!==uj(e.spaceCreator))throw new Error("Only host is allowed to start a space");const t=$O(e.members,e.pendingMembers),r=WO(e.members,e.pendingMembers),n=await CU({chatId:this.spaceSpecificData.spaceId,groupName:e.spaceName,groupImage:e.spaceImage,groupDescription:e.spaceDescription,members:t,admins:r,signer:this.signer,env:this.env,pgpPrivateKey:this.pgpPrivateKey,scheduleAt:e.scheduleAt,scheduleEnd:e.scheduleEnd,status:uF.ACTIVE}),i={host:{address:this.data.local.address,audio:this.data.local.audio,emojiReactions:null},coHosts:[],speakers:[],listeners:[]};await Bz({liveSpaceData:i,action:BB.SPACE.CREATE,spaceId:this.spaceSpecificData.spaceId,signer:this.signer,pgpPrivateKey:this.pgpPrivateKey,env:this.env}),this.setSpaceData((e=>Ez(e,(e=>{(e=Object.assign({},KO(n),{liveSpaceData:i,connectionData:e.connectionData})).connectionData.meta.broadcast={livepeerInfo:null,hostAddress:this.data.local.address}}))))}catch(dVe){throw Uz.error(`[Push SDK] - API - Error - API ${Fz.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${Fz.name} -: ${dVe}`)}}async function zz(e){const{inviteeAddress:t,role:r}=e||{};this.setSpaceSpecificData((e=>Ez(e,(e=>{e.inviteeDetails&&(e.inviteeDetails[t]=r)})))),this.request({senderAddress:this.data.local.address,recipientAddress:t,chatId:this.spaceSpecificData.spaceId,details:{type:vB.INVITE_TO_PROMOTE,data:{role:r}}})}async function Hz(e){const{signalData:t,invitorAddress:r,spaceId:n}=e||{};this.acceptRequest({signalData:t,senderAddress:this.data.local.address,recipientAddress:r,chatId:n,details:{type:bB.ACCEPT_INVITE,data:{}}})}async function Gz(e){var t;const{signalData:r,inviteeAddress:n}=e||{};if(null==(t=this.spaceSpecificData)||!t.inviteeDetails||!Object.keys(this.spaceSpecificData.inviteeDetails).includes(n))return Promise.resolve();this.spaceSpecificData.inviteeDetails[n];this.setSpaceSpecificData((e=>Ez(e,(e=>{e.inviteeDetails&&delete e.inviteeDetails[n]})))),await yF({spaceId:this.spaceSpecificData.spaceId,signer:this.signer,pgpPrivateKey:this.pgpPrivateKey,speakers:[n]}),this.connect({signalData:r,peerAddress:n})}async function Yz(e){const{invitorAddress:t}=e||{};this.disconnect({peerAddress:t})}async function Kz(e){const{role:t,promotorAddress:r}=e||{};this.request({senderAddress:this.data.local.address,recipientAddress:uj(r),chatId:this.spaceSpecificData.spaceId,details:{type:vB.REQUEST_TO_PROMOTE,data:{role:t}}})}async function qz(e){const{signalData:t,promoteeAddress:r,spaceId:n,role:i}=e||{};await yF({spaceId:this.spaceSpecificData.spaceId,signer:this.signer,pgpPrivateKey:this.pgpPrivateKey,speakers:[uj(r)],env:this.env});const o=Ez(this.spaceSpecificData.liveSpaceData,(e=>{const t=this.spaceSpecificData.liveSpaceData.listeners.findIndex((e=>uj(e.address)===uj(r)));e.listeners.splice(t,1),e.speakers.push({address:uj(r),emojiReactions:null,audio:null})}));await Bz({spaceId:this.spaceSpecificData.spaceId,pgpPrivateKey:this.pgpPrivateKey,env:this.env,signer:this.signer,liveSpaceData:o,action:BB.SPACE.SPEAKER.PRVILEGE})}async function Wz(e){const{promoteeAddress:t}=e||{};this.disconnect({peerAddress:uj(t)});const r=Ez(this.spaceSpecificData.liveSpaceData,(e=>{const r=this.spaceSpecificData.liveSpaceData.listeners.findIndex((e=>e.address===uj(t)));r>-1&&(e.listeners[r].handRaised=!1)}));this.setSpaceSpecificData((()=>Object.assign({},this.spaceSpecificData,{liveSpaceData:r}))),await Bz({liveSpaceData:r,pgpPrivateKey:this.pgpPrivateKey,env:this.env,spaceId:this.spaceSpecificData.spaceId,signer:this.signer,action:BB.GROUP.USER.INTERACTION})}async function Vz(e){const{signalData:t,promotorAddress:r}=e||{};this.connect({signalData:t,peerAddress:r})}var $z=r(98399);async function Qz(){try{const e=await nF({spaceId:this.spaceSpecificData.spaceId,env:this.env});if(e.status!==uF.ACTIVE)throw new Error("Space not active yet");let t=!1,r=!1;const n=JU(this.data.local.address);e.members.forEach((e=>{JU(e.wallet)===n&&(e.isSpeaker?t=!0:r=!0)}));let i=!1;e.pendingMembers.forEach((e=>{JU(e.wallet)===n&&e.isSpeaker&&(i=!0)}));const o=JU(e.spaceCreator),s=Cz(this.data.incoming,o);if((t||i)&&s>-1)return Promise.resolve();t||r||await SF({signer:this.signer,pgpPrivateKey:this.pgpPrivateKey,senderAddress:this.spaceSpecificData.spaceId,env:this.env}),(t||i)&&await this.request({senderAddress:this.data.local.address,recipientAddress:o,chatId:this.spaceSpecificData.spaceId,details:{type:vB.JOIN_SPEAKER,data:{}}});const a=await nF({spaceId:this.spaceSpecificData.spaceId,env:this.env});this.setSpaceSpecificData((()=>Object.assign({},a,{liveSpaceData:this.spaceSpecificData.liveSpaceData})))}catch(dVe){throw $z.error(`[Push SDK] - API - Error - API ${Qz.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${Qz.name} -: ${dVe}`)}}var Jz=r(98399);async function Zz(){try{this.data.incoming.slice(1).forEach((({address:e})=>{this.disconnect({peerAddress:e,details:{type:wB.LEAVE,data:{}}})}))}catch(dVe){throw Jz.error(`[Push SDK] - API - Error - API ${stop.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${stop.name} -: ${dVe}`)}}var Xz=r(98399);async function eH(){try{const e=await nF({spaceId:this.spaceSpecificData.spaceId,env:this.env});if(e.status===uF.ENDED)throw new Error("Space already ended");const t=$O(e.members,e.pendingMembers),r=WO(e.members,e.pendingMembers),n=await CU({chatId:this.spaceSpecificData.spaceId,groupName:e.spaceName,groupImage:e.spaceImage,groupDescription:e.spaceDescription,members:t,admins:r,signer:this.signer,env:this.env,pgpPrivateKey:this.pgpPrivateKey,scheduleAt:e.scheduleAt,scheduleEnd:e.scheduleEnd,status:uF.ENDED});this.setSpaceSpecificData((()=>Object.assign({},KO(n),{liveSpaceData:this.spaceSpecificData.liveSpaceData}))),this.data.incoming.slice(1).forEach((({address:e})=>{this.disconnect({peerAddress:e,details:{type:wB.STOP,data:{}}})}))}catch(dVe){throw Xz.error(`[Push SDK] - API - Error - API ${eH.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${eH.name} -: ${dVe}`)}}const tH=async({localAddress:e,spaceId:t,pgpPrivateKey:r,env:n})=>{const i=(await OB({account:e,conversationId:t,env:n})).threadHash;let o=uH;const s=await gU({threadhash:i,account:e,pgpPrivateKey:r,toDecrypt:!0,env:n});let a=null;for(const c of s)if(c.messageType===rg.META&&"object"==typeof c.messageObj&&null!==c.messageObj){a=c;break}var u,l;null!==a&&"object"==typeof a.messageObj&&null!==a.messageObj&&(o=null==(u=a.messageObj)||null==(l=u.info)?void 0:l.arbitrary);return o};async function rH(e){const{spaceId:t}=e||{},r=await nF({spaceId:t,env:this.env});let n=this.spaceSpecificData.liveSpaceData;r.status===uF.ACTIVE&&(n=await tH({localAddress:this.data.local.address,spaceId:t,pgpPrivateKey:this.pgpPrivateKey,env:this.env})),this.setSpaceSpecificData((()=>Object.assign({},r,{liveSpaceData:n})))}const nH=(e,t)=>{e.addStream(t,void 0)};async function iH(e){const{promoteeAddress:t}=e||{},r=Ez(this.spaceSpecificData.liveSpaceData,(e=>{const r=this.spaceSpecificData.liveSpaceData.listeners.findIndex((e=>uj(e.address)===uj(t)));-1!==r&&(e.listeners[r].handRaised=!0)}));this.setSpaceSpecificData((()=>Object.assign({},this.spaceSpecificData,{liveSpaceData:r}))),await Bz({liveSpaceData:r,pgpPrivateKey:this.pgpPrivateKey,env:this.env,spaceId:this.spaceSpecificData.spaceId,signer:this.signer,action:BB.GROUP.USER.INTERACTION})}function oH(e){var t,r;const{receivedMetaMessage:n}=e||{};if(n.messageType!==rg.META||"object"!=typeof n.messageObj||null==n||null==(t=n.messageObj)||null==(r=t.info)||!r.arbitrary)return;const i=n.messageObj.info.arbitrary;this.setSpaceSpecificData((()=>Object.assign({},this.spaceSpecificData,{liveSpaceData:i})))}async function sH(e){const{receivedAddress:t}=e||{};if(uj(this.spaceSpecificData.spaceCreator)!==this.data.local.address)return;if(!(await nF({spaceId:this.spaceSpecificData.spaceId,env:this.env})).members.find((e=>uj(e.wallet)===uj(t)&&!e.isSpeaker)))return;const r=Ez(this.spaceSpecificData.liveSpaceData,(e=>{this.spaceSpecificData.liveSpaceData.listeners.find((e=>uj(e.address)===uj(t)))||e.listeners.push({address:uj(t),handRaised:!1,emojiReactions:null})}));this.setSpaceSpecificData((()=>Object.assign({},this.spaceSpecificData,{liveSpaceData:r}))),await Bz({spaceId:this.spaceSpecificData.spaceId,pgpPrivateKey:this.pgpPrivateKey,env:this.env,signer:this.signer,liveSpaceData:r,action:BB.SPACE.LISTENER.ADD})}const aH=["connectionData"],uH={host:{address:"",audio:null,emojiReactions:null},coHosts:[],speakers:[],listeners:[]},lH={members:[],pendingMembers:[],contractAddressERC20:null,numberOfERC20:-1,contractAddressNFT:null,numberOfNFTTokens:-1,verificationProof:"",spaceImage:null,spaceName:"",isPublic:!1,spaceDescription:"",spaceCreator:"",spaceId:"",scheduleAt:null,scheduleEnd:null,status:null,inviteeDetails:{},liveSpaceData:uH},cH=Object.assign({},lH,{connectionData:Dz});class hH extends Lz{constructor(e){var t;const{signer:r,pgpPrivateKey:n,address:i,chainId:o,env:s=og.ENV.PROD,setSpaceData:a}=e||{};super({signer:r,chainId:o,pgpPrivateKey:n,env:s,callType:yB.PUSH_SPACE,onReceiveStream:async function(e,r,n){var i;if(t.spaceSpecificData.status===uF.ACTIVE&&null!=(i=t.data.meta.broadcast)&&i.hostAddress&&t.data.meta.broadcast.hostAddress===t.data.local.address){nH(t.mergedStream,e);const i=Ez(t.spaceSpecificData.liveSpaceData,(e=>{const i=t.spaceSpecificData.liveSpaceData.listeners.findIndex((e=>e.address===r));e.speakers.push({address:r,audio:n,emojiReactions:i>-1?t.spaceSpecificData.liveSpaceData.listeners[i].emojiReactions:null}),i>-1&&e.listeners.splice(i,1)}));t.setSpaceSpecificData((()=>Object.assign({},t.spaceSpecificData,{liveSpaceData:i}))),await Bz({liveSpaceData:i,pgpPrivateKey:t.pgpPrivateKey,env:t.env,spaceId:t.spaceSpecificData.spaceId,signer:t.signer,action:BB.GROUP.ADMIN.PRVILEGE})}},setData:function(){}}),t=this,this.mergedStream=null,this.spaceSpecificData=void 0,this.setSpaceSpecificData=void 0,this.setSpaceData=void 0,this.initialize=rH,this.update=jz,this.createAudioStream=async function(){await t.create({audio:!0,video:!1})},this.start=Fz,this.onReceiveMetaMessage=oH,this.onJoinListener=sH,this.inviteToPromote=zz,this.acceptPromotionInvite=Hz,this.connectInvitee=Gz,this.rejectPromotionInvite=Yz,this.requestToBePromoted=Kz,this.broadcastRaisedHand=iH,this.acceptPromotionRequest=qz,this.connectPromotor=Vz,this.rejectPromotionRequest=Wz,this.join=Qz,this.leave=Zz,this.stop=eH,this.setData=function(e){const t=e(this.data);a((()=>Object.assign({},this.spaceSpecificData,{connectionData:t}))),this.data=t},this.setSpaceSpecificData=function(e){const t=e(this.spaceSpecificData);a((()=>Object.assign({},t,{connectionData:this.data}))),this.spaceSpecificData=t},this.setSpaceData=function(e){const t=e(Object.assign({},this.spaceSpecificData,{connectionData:this.data})),{connectionData:r}=t,n=fO(t,aH);this.spaceSpecificData=n,this.setData((()=>r))},this.setData((e=>Ez(e,(e=>{e.local.address=uj(i)})))),a((()=>cH)),this.spaceSpecificData=lH}}let dH,fH,pH,mH,gH,yH,vH,bH;!function(e){e.CHATS="CHATS",e.REQUESTS="REQUESTS"}(dH||(dH={})),function(e){e.PROFILE="STREAM.PROFILE",e.ENCRYPTION="STREAM.ENCRYPTION",e.NOTIF="STREAM.NOTIF",e.NOTIF_OPS="STREAM.NOTIF_OPS",e.CHAT="STREAM.CHAT",e.CHAT_OPS="STREAM.CHAT_OPS",e.VIDEO="STREAM.VIDEO",e.CONNECT="STREAM.CONNECT",e.DISCONNECT="STREAM.DISCONNECT"}(fH||(fH={})),function(e){e.INBOX="notification.inbox",e.SPAM="notification.spam"}(pH||(pH={})),function(e){e.Other="other",e.Self="self"}(mH||(mH={})),function(e){e.Message="message",e.Request="request",e.Accept="accept",e.Reject="reject"}(gH||(gH={})),function(e){e.CreateGroup="createGroup",e.UpdateGroup="updateGroup",e.JoinGroup="joinGroup",e.LeaveGroup="leaveGroup",e.Remove="remove"}(yH||(yH={})),function(e){e.REQUEST="video.request",e.APPROVE="video.approve",e.DENY="video.deny",e.CONNECT="video.connect",e.DISCONNECT="video.disconnect",e.RETRY_REQUEST="video.retry.request",e.RETRY_APPROVE="video.retry.approve"}(vH||(vH={})),function(e){e.Message="chat.message",e.Request="chat.request",e.Accept="chat.accept",e.Reject="chat.reject",e.LeaveGroup="chat.group.participant.leave",e.JoinGroup="chat.group.participant.join",e.CreateGroup="chat.group.create",e.UpdateGroup="chat.group.update",e.Remove="chat.group.participant.remove"}(bH||(bH={}));const wH={BROADCAST:1,TARGETTED:3,SUBSET:4};let _H;!function(e){e.CONNECT="connect",e.DISCONNECT="disconnect",e.USER_FEEDS="userFeeds",e.USER_SPAM_FEEDS="userSpamFeeds",e.CHAT_RECEIVED_MESSAGE="CHATS",e.CHAT_GROUPS="CHAT_GROUPS"}(_H||(_H={}));const EH={ENV:eg,STREAM:fH,CHAT:{LIST_TYPE:dH,MESSAGE_TYPE:rg,GROUP:{RULES:{CONDITION_TYPE:lF,CATEGORY:cF,SUBCATEGORY:hF,PERMISSION:dF,INVITER_ROLE:fF}}},VIDEO:{EVENT:vH},ALPHA_FEATURES:ng,USER:{ENCRYPTION_TYPE:tg}};let AH;!function(e){e.INBOX="INBOX",e.SPAM="SPAM"}(AH||(AH={}));r(54405);var MH=r(98399);const SH=["isPublic","groupType"],xH=async e=>{const{chatId:t,groupName:r,groupImage:n,groupDescription:i,rules:o,account:s=null,signer:a=null,env:u=og.ENV.PROD,pgpPrivateKey:l=null}=e||{};try{if(null==s&&null==a)throw new Error("At least one from account or signer is necessary!");const e=aO({account:s,signer:a}),c=await uO(e);JO(t,r,[],[],c,i);const h=await XB({chatId:t,env:u}),d={groupName:r,groupDescription:i,groupImage:n,rules:null!=o?o:{},isPublic:h.isPublic,groupType:h.groupType},f=iw.SHA256(JSON.stringify(d)).toString(),p=await cO(e,l,u),m=await CL({message:f,signingKey:p.privateKey}),g="pgpv2"+":"+m+":"+p.did,y=`${nw(u)}/v1/chat/groups/${t}/profile`,v=fO(d,SH);v.profileVerificationProof=g;return(await FL(y,v)).data}catch(dVe){throw MH.error(`[Push SDK] - API - Error - API ${xH.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${xH.name} -: ${dVe}`)}};class kH{constructor(e,t){this.account=e,this.env=t}async info(e){const t=(null==e?void 0:e.overrideAccount)||this.account;return await HL({account:t,env:this.env})}}var TH=r(98399);const CH=async e=>{const{chatId:t,meta:r,scheduleAt:n,scheduleEnd:i,status:o,account:s=null,signer:a=null,env:u=og.ENV.PROD,pgpPrivateKey:l=null}=e||{};try{if(null==s&&null==a)throw new Error("At least one from account or signer is necessary!");const e=aO({account:s,signer:a}),c={meta:r,scheduleAt:n,scheduleEnd:i,status:o},h=iw.SHA256(JSON.stringify(c)).toString(),d=await cO(e,l,u),f=await CL({message:h,signingKey:d.privateKey}),p="pgpv2"+":"+f+":"+d.did,m=`${nw(u)}/v1/chat/groups/${t}/config`,g=c;return g.configVerificationProof=p,PL().put(m,g).then((e=>e.data)).catch((e=>{var t,r;if(null!=e&&null!=(t=e.response)&&t.data)throw new Error(JSON.stringify(null==e||null==(r=e.response)?void 0:r.data));throw new Error(e)}))}catch(dVe){throw TH.error(`[Push SDK] - API - Error - API ${CH.name} -: `,dVe),Error(`[Push SDK] - API - Error - API ${CH.name} -: ${dVe}`)}};class IH{constructor(e,t,r,n,i,o){var s=this;this.account=e,this.env=t,this.alpha=r,this.decryptedPgpPvtKey=n,this.signer=i,this.progressHook=o,this.userInstance=void 0,this.scalabilityV2Feature=void 0,this.group={create:async function(e,t){var r,n,i;if(!s.signer)throw new Error(d0.ensureSignerMessage());const o={account:s.account,signer:s.signer,pgpPrivateKey:s.decryptedPgpPvtKey,env:s.env,groupName:e,groupDescription:null!=(r=null==t?void 0:t.description)?r:null,groupImage:null!=(n=null==t?void 0:t.image)?n:null,rules:null!=(i=null==t?void 0:t.rules)?i:{},isPublic:!(null!=t&&t.private),groupType:"default",config:{meta:null,scheduleAt:null,scheduleEnd:null,status:null},members:null!=t&&t.members?t.members:[],admins:null!=t&&t.admins?t.admins:[]},a=await AU(o);return s.scalabilityV2Feature?a:await AO({chatId:a.chatId,env:s.env})},participants:{list:async function(e,t){const{page:r=1,limit:n=20,filter:i={pending:void 0,role:void 0}}=null!=t?t:{},o={chatId:e,page:r,limit:n,pending:i.pending,role:i.role,env:s.env};return{members:await zO(o)}},count:async function(e){const t=await GO({chatId:e,env:s.env});return{participants:t.overallCount-t.pendingCount,pending:t.pendingCount}},status:async function(e,t){const r=await kU({chatId:e,did:t,env:s.env});return{pending:r.isPending,role:r.isAdmin?"admin":"member",participant:r.isMember}}},permissions:async function(e){const t={chatId:e,did:s.account,env:s.env};return await YU(t)},info:async function(e){return s.scalabilityV2Feature?await XB({chatId:e,env:s.env}):await AO({chatId:e,env:s.env})},update:async function(e,t){if(!s.signer)throw new Error(d0.ensureSignerMessage());const r=await XB({chatId:e,env:s.env});if(!r)throw new Error("Group not found");const n={chatId:e,groupName:t.name?t.name:r.groupName,groupDescription:t.description?t.description:r.groupDescription,groupImage:t.image?t.image:r.groupImage,rules:t.rules?t.rules:r.rules,account:s.account,pgpPrivateKey:s.decryptedPgpPvtKey,env:s.env},i={chatId:e,meta:t.meta?t.meta:r.meta,scheduleAt:t.scheduleAt?t.scheduleAt:r.scheduleAt,scheduleEnd:t.scheduleEnd?t.scheduleEnd:r.scheduleEnd,status:t.status?t.status:r.status,account:s.account,pgpPrivateKey:s.decryptedPgpPvtKey,env:s.env};await xH(n);const o=await CH(i);return s.scalabilityV2Feature?o:await AO({chatId:o.chatId,env:s.env})},add:async function(e,t){if(!s.signer)throw new Error(d0.ensureSignerMessage());const{role:r,accounts:n}=t;if(!["ADMIN","MEMBER"].includes(r))throw new Error("Invalid role provided.");if(!n||0===n.length)throw new Error("accounts array cannot be empty!");let i;return n.forEach((e=>{if(!ZO(e))throw new Error(`Invalid account address: ${e}`)})),i="ADMIN"===r?await BU({chatId:e,admins:n,env:s.env,account:s.account,signer:s.signer,pgpPrivateKey:s.decryptedPgpPvtKey,overrideSecretKeyGeneration:!s.scalabilityV2Feature}):await OU({chatId:e,members:n,env:s.env,account:s.account,signer:s.signer,pgpPrivateKey:s.decryptedPgpPvtKey,overrideSecretKeyGeneration:!s.scalabilityV2Feature}),s.scalabilityV2Feature?i:await AO({chatId:i.chatId,env:s.env})},remove:async function(e,t){const{accounts:r}=t;if(!s.signer)throw new Error(d0.ensureSignerMessage());if(!r||0===r.length)throw new Error("Accounts array cannot be empty!");r.forEach((e=>{if(!ZO(e))throw new Error(`Invalid account address: ${e}`)}));const n=[],i=[];for(const o of r){const t=await kU({chatId:e,did:o,env:s.env});t.isAdmin?n.push(o):t.isMember&&i.push(o)}return n.length>0&&await HU({chatId:e,admins:n,env:s.env,account:s.account,signer:s.signer,pgpPrivateKey:s.decryptedPgpPvtKey,overrideSecretKeyGeneration:!s.scalabilityV2Feature}),i.length>0&&await FU({chatId:e,members:i,env:s.env,account:s.account,signer:s.signer,pgpPrivateKey:s.decryptedPgpPvtKey,overrideSecretKeyGeneration:!s.scalabilityV2Feature}),await s.group.info(e)},modify:async function(e,t){const{role:r,accounts:n}=t;if(!s.signer)throw new Error(d0.ensureSignerMessage());if(!["ADMIN","MEMBER"].includes(r))throw new Error("Invalid role provided.");if(!n||0===n.length)throw new Error("accounts array cannot be empty!");return n.forEach((e=>{if(!ZO(e))throw new Error(`Invalid account address: ${e}`)})),await QU({chatId:e,newRole:r,members:n,env:s.env,account:s.account,signer:s.signer,pgpPrivateKey:s.decryptedPgpPvtKey,overrideSecretKeyGeneration:!s.scalabilityV2Feature})},join:async function(e){if(!s.signer)throw new Error(d0.ensureSignerMessage());const t=await kU({chatId:e,did:s.account,env:s.env});return t.isPending?await dU({senderAddress:e,env:s.env,account:s.account,signer:s.signer,pgpPrivateKey:s.decryptedPgpPvtKey,overrideSecretKeyGeneration:!s.scalabilityV2Feature}):t.isMember||await OU({chatId:e,members:[s.account],env:s.env,account:s.account,signer:s.signer,pgpPrivateKey:s.decryptedPgpPvtKey,overrideSecretKeyGeneration:!s.scalabilityV2Feature}),await s.group.info(e)},leave:async function(e){if(!s.signer)throw new Error(d0.ensureSignerMessage());let t;return t=(await kU({chatId:e,did:s.account,env:s.env})).isAdmin?await HU({chatId:e,admins:[s.account],env:s.env,account:s.account,signer:s.signer,pgpPrivateKey:s.decryptedPgpPvtKey,overrideSecretKeyGeneration:!s.scalabilityV2Feature}):await FU({chatId:e,members:[s.account],env:s.env,account:s.account,signer:s.signer,pgpPrivateKey:s.decryptedPgpPvtKey,overrideSecretKeyGeneration:!s.scalabilityV2Feature}),s.scalabilityV2Feature?t:await AO({chatId:t.chatId,env:s.env})},reject:async function(e){if(!s.signer)throw new Error(d0.ensureSignerMessage());await VU({senderAddress:e,env:s.env,account:s.account,signer:s.signer,pgpPrivateKey:s.decryptedPgpPvtKey})}},this.userInstance=new kH(this.account,this.env),this.scalabilityV2Feature=this.alpha.feature.includes(ng.SCALABILITY_V2)}async list(e,t){const r={account:(null==t?void 0:t.overrideAccount)||this.account,pgpPrivateKey:this.decryptedPgpPvtKey,page:null==t?void 0:t.page,limit:null==t?void 0:t.limit,env:this.env,toDecrypt:!!this.signer};switch(e){case dH.CHATS:return await TB(r);case dH.REQUESTS:return await PB(r);default:throw new Error("Invalid Chat List Type")}}async latest(e){const{threadHash:t}=await OB({conversationId:e,account:this.account,env:this.env});return t?await(async e=>await vU(e,TL))({threadhash:t,toDecrypt:!!this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,account:this.account,env:this.env}):{}}async history(e,t){let r;if(null!=t&&t.reference)r=t.reference;else{const{threadHash:t}=await OB({conversationId:e,account:this.account,env:this.env});r=t}return r?await gU({account:this.account,env:this.env,threadhash:r,pgpPrivateKey:this.decryptedPgpPvtKey,toDecrypt:!!this.signer,limit:null==t?void 0:t.limit}):[]}async send(e,t){if(!this.signer)throw new Error(d0.ensureSignerMessage());t.type||(t.type=rg.TEXT);const r={message:t,to:e,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env};return await iU(r)}async decrypt(e){if(!this.signer)throw new Error(d0.ensureSignerMessage());return await jO({pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env,messages:e,pgpHelper:TL,connectedUser:await this.userInstance.info()})}async accept(e){if(!this.signer)throw new Error(d0.ensureSignerMessage());return await dU({senderAddress:e,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey,overrideSecretKeyGeneration:!this.scalabilityV2Feature})}async reject(e){if(!this.signer)throw new Error(d0.ensureSignerMessage());await VU({senderAddress:e,env:this.env,account:this.account,signer:this.signer,pgpPrivateKey:this.decryptedPgpPvtKey})}async block(e){if(!this.signer||!this.decryptedPgpPvtKey)throw new Error(d0.ensureSignerMessage());const t=await HL({account:this.account,env:this.env});for(const r of e)if(!ZO(r))throw new Error("Invalid address in the users: "+r);if(t.profile.blockedUsersList||(t.profile.blockedUsersList=[]),t.profile.blockedUsersList=[...new Set([...t.profile.blockedUsersList,...e])],!this.decryptedPgpPvtKey)throw new Error(d0.ensureSignerMessage());return await sO({pgpPrivateKey:this.decryptedPgpPvtKey,account:this.account,profile:{name:t.profile.name,desc:t.profile.desc,picture:t.profile.picture,blockedUsersList:t.profile.blockedUsersList},env:this.env,progressHook:this.progressHook})}async unblock(e){var t=this;if(!this.signer||!this.decryptedPgpPvtKey)throw new Error(d0.ensureSignerMessage());const r=await HL({account:this.account,env:this.env});for(const o of e)if(!ZO(o))throw new Error("Invalid address in the users: "+o);if(!r.profile.blockedUsersList)return r;const n=e.map((async function(e){return(await dO(e,t.env)).toLowerCase()})),i=await Promise.all(n);return r.profile.blockedUsersList=r.profile.blockedUsersList.filter((e=>{i.includes(e.toLowerCase())})),await sO({pgpPrivateKey:this.decryptedPgpPvtKey,account:this.account,profile:{name:r.profile.name,desc:r.profile.desc,picture:r.profile.picture,blockedUsersList:r.profile.blockedUsersList},env:this.env,progressHook:this.progressHook})}}class NH{constructor(e,t,r,n){this.account=e,this.env=t,this.decryptedPgpPvtKey=r,this.progressHook=n}async info(e){const t=(null==e?void 0:e.overrideAccount)||this.account;return(await HL({account:t,env:this.env})).profile}async update(e){if(!this.decryptedPgpPvtKey)throw new Error(d0.ensureSignerMessage());const{name:t,desc:r,picture:n}=e;return(await sO({pgpPrivateKey:this.decryptedPgpPvtKey,account:this.account,profile:{name:t,desc:r,picture:n},env:this.env,progressHook:this.progressHook})).profile}}class RH{constructor(e,t,r,n,i,o){this.account=e,this.env=t,this.decryptedPgpPvtKey=r,this.pgpPublicKey=n,this.signer=i,this.progressHook=o,this.userInstance=void 0,this.userInstance=new kH(this.account,this.env)}async info(){const e=await this.userInstance.info();let t;return this.signer&&(t=await nO({account:this.account,env:this.env,signer:this.signer,progressHook:this.progressHook,additionalMeta:{NFTPGP_V1:{encryptedPassword:JSON.stringify(JSON.parse(e.encryptedPrivateKey).encryptedPassword)}}})),Object.assign({decryptedPgpPrivateKey:this.decryptedPgpPvtKey,pgpPublicKey:this.pgpPublicKey},null!=t?{decryptedPassword:t}:{})}async update(e,t){if(!this.signer)throw new Error(d0.ensureSignerMessage());if(!this.decryptedPgpPvtKey||!this.pgpPublicKey)throw new Error(d0.ensureSignerMessage());return await oO.update({account:this.account,pgpEncryptionVersion:e,additionalMeta:null==t?void 0:t.versionMeta,progressHook:this.progressHook,signer:this.signer,env:this.env,pgpPrivateKey:this.decryptedPgpPvtKey,pgpPublicKey:this.pgpPublicKey})}}r(52744);const PH=Object.create(null);PH.open="0",PH.close="1",PH.ping="2",PH.pong="3",PH.message="4",PH.upgrade="5",PH.noop="6";const DH=Object.create(null);Object.keys(PH).forEach((e=>{DH[PH[e]]=e}));const LH={type:"error",data:"parser error"},OH="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),jH="function"==typeof ArrayBuffer,BH=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,UH=({type:e,data:t},r,n)=>OH&&t instanceof Blob?r?n(t):FH(t,n):jH&&(t instanceof ArrayBuffer||BH(t))?r?n(t):FH(new Blob([t]),n):n(PH[e]+(t||"")),FH=(e,t)=>{const r=new FileReader;return r.onload=function(){const e=r.result.split(",")[1];t("b"+(e||""))},r.readAsDataURL(e)};function zH(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let HH;const GH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",YH="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let pVe=0;pVe{if("string"!=typeof e)return{type:"message",data:VH(e,t)};const r=e.charAt(0);if("b"===r)return{type:"message",data:WH(e.substring(1),t)};return DH[r]?e.length>1?{type:DH[r],data:e.substring(1)}:{type:DH[r]}:LH},WH=(e,t)=>{if(KH){const r=(e=>{let t,r,n,i,o,s=.75*e.length,a=e.length,u=0;"="===e[e.length-1]&&(s--,"="===e[e.length-2]&&s--);const l=new ArrayBuffer(s),c=new Uint8Array(l);for(t=0;t>4,c[u++]=(15&n)<<4|i>>2,c[u++]=(3&i)<<6|63&o;return l})(e);return VH(r,t)}return{base64:!0,data:e}},VH=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,$H=String.fromCharCode(30);function QH(){return new TransformStream({transform(e,t){!function(e,t){OH&&e.data instanceof Blob?e.data.arrayBuffer().then(zH).then(t):jH&&(e.data instanceof ArrayBuffer||BH(e.data))?t(zH(e.data)):UH(e,!1,(e=>{HH||(HH=new TextEncoder),t(HH.encode(e))}))}(e,(r=>{const n=r.length;let i;if(n<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,n);else if(n<65536){i=new Uint8Array(3);const e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,n)}else{i=new Uint8Array(9);const e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(n))}e.data&&"string"!=typeof e.data&&(i[0]|=128),t.enqueue(i),t.enqueue(r)}))}})}let JH;function ZH(e){return e.reduce(((e,t)=>e+t.length),0)}function XH(e,t){if(e[0].length===t)return e.shift();const r=new Uint8Array(t);let n=0;for(let i=0;i(e.hasOwnProperty(r)&&(t[r]=e[r]),t)),{})}const nG=tG.setTimeout,iG=tG.clearTimeout;function oG(e,t){t.useNativeTimers?(e.setTimeoutFn=nG.bind(tG),e.clearTimeoutFn=iG.bind(tG)):(e.setTimeoutFn=tG.setTimeout.bind(tG),e.clearTimeoutFn=tG.clearTimeout.bind(tG))}class sG extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class aG extends eG{constructor(e){super(),this.writable=!1,oG(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,r){return super.emitReserved("error",new sG(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=qH(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return-1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){const t=function(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}(e);return t.length?"?"+t:""}}const uG="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),lG={};let cG,hG=0,dG=0;function fG(e){let t="";do{t=uG[e%64]+t,e=Math.floor(e/64)}while(e>0);return t}function pG(){const e=fG(+new Date);return e!==cG?(hG=0,cG=e):e+"."+fG(hG++)}for(;dG<64;dG++)lG[uG[dG]]=dG;let mG=!1;try{mG="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(dVe){}const gG=mG;function yG(e){const t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||gG))return new XMLHttpRequest}catch(fVe){}if(!t)try{return new(tG[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(fVe){}}function vG(){}const bG=null!=new yG({xdomain:!1}).responseType;class wG extends eG{constructor(e,t){super(),oG(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=void 0!==t.data?t.data:null,this.create()}create(){var e;const t=rG(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const r=this.xhr=new yG(t);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this.opts.extraHeaders[e])}}catch(fVe){}if("POST"===this.method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(fVe){}try{r.setRequestHeader("Accept","*/*")}catch(fVe){}null===(e=this.opts.cookieJar)||void 0===e||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null===(e=this.opts.cookieJar)||void 0===e||e.parseCookies(r)),4===r.readyState&&(200===r.status||1223===r.status?this.onLoad():this.setTimeoutFn((()=>{this.onError("number"==typeof r.status?r.status:0)}),0))},r.send(this.data)}catch(fVe){return void this.setTimeoutFn((()=>{this.onError(fVe)}),0)}"undefined"!=typeof document&&(this.index=wG.requestsCount++,wG.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(void 0!==this.xhr&&null!==this.xhr){if(this.xhr.onreadystatechange=vG,e)try{this.xhr.abort()}catch(fVe){}"undefined"!=typeof document&&delete wG.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(wG.requestsCount=0,wG.requests={},"undefined"!=typeof document)if("function"==typeof attachEvent)attachEvent("onunload",_G);else if("function"==typeof addEventListener){addEventListener("onpagehide"in tG?"pagehide":"unload",_G,!1)}function _G(){for(let e in wG.requests)wG.requests.hasOwnProperty(e)&&wG.requests[e].abort()}const EG="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),AG=tG.WebSocket||tG.MozWebSocket;r(75291).Buffer;const MG="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();const SG={websocket:class extends aG{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,r=MG?{}:rG(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=MG?new AG(e,t,r):t?new AG(e,t):new AG(e)}catch(dVe){return this.emitReserved("error",dVe)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t{try{this.ws.send(e)}catch(fVe){}n&&EG((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=pG()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!AG}},webtransport:class extends aG{get name(){return"webtransport"}doOpen(){"function"==typeof WebTransport&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then((()=>{this.onClose()})).catch((e=>{this.onError("webtransport error",e)})),this.transport.ready.then((()=>{this.transport.createBidirectionalStream().then((e=>{const t=function(e,t){JH||(JH=new TextDecoder);const r=[];let n=0,i=-1,o=!1;return new TransformStream({transform(s,a){for(r.push(s);;){if(0===n){if(ZH(r)<1)break;const e=XH(r,1);o=128==(128&e[0]),i=127&e[0],n=i<126?3:126===i?1:2}else if(1===n){if(ZH(r)<2)break;const e=XH(r,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),n=3}else if(2===n){if(ZH(r)<8)break;const e=XH(r,8),t=new DataView(e.buffer,e.byteOffset,e.length),o=t.getUint32(0);if(o>Math.pow(2,21)-1){a.enqueue(LH);break}i=o*Math.pow(2,32)+t.getUint32(4),n=3}else{if(ZH(r)e){a.enqueue(LH);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=QH();n.readable.pipeTo(e.writable),this.writer=n.writable.getWriter();const i=()=>{r.read().then((({done:e,value:t})=>{e||(this.onPacket(t),i())})).catch((e=>{}))};i();const o={type:"open"};this.query.sid&&(o.data=`{"sid":"${this.query.sid}"}`),this.writer.write(o).then((()=>this.onOpen()))}))})))}write(e){this.writable=!1;for(let t=0;t{n&&EG((()=>{this.writable=!0,this.emitReserved("drain")}),this.setTimeoutFn)}))}}doClose(){var e;null===(e=this.transport)||void 0===e||e.close()}},polling:class extends aG{constructor(e){if(super(e),this.polling=!1,"undefined"!=typeof location){const t="https:"===location.protocol;let r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}const t=e&&e.forceBase64;this.supportsBinary=bG&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let e=0;this.polling&&(e++,this.once("pollComplete",(function(){--e||t()}))),this.writable||(e++,this.once("drain",(function(){--e||t()})))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){((e,t)=>{const r=e.split($H),n=[];for(let i=0;i{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)})),"closed"!==this.readyState&&(this.polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,((e,t)=>{const r=e.length,n=new Array(r);let i=0;e.forEach(((e,o)=>{UH(e,!1,(e=>{n[o]=e,++i===r&&t(n.join($H))}))}))})(e,(e=>{this.doWrite(e,(()=>{this.writable=!0,this.emitReserved("drain")}))}))}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=pG()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new wG(this.uri(),e)}doWrite(e,t){const r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",((e,t)=>{this.onError("xhr post error",e,t)}))}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",((e,t)=>{this.onError("xhr poll error",e,t)})),this.pollXhr=e}}},xG=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,kG=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function TG(e){if(e.length>2e3)throw"URI too long";const t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=xG.exec(e||""),o={},s=14;for(;s--;)o[kG[s]]=i[s]||"";return-1!=r&&-1!=n&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=function(e,t){const r=/\/{2,9}/g,n=t.replace(r,"/").split("/");"/"!=t.slice(0,1)&&0!==t.length||n.splice(0,1);"/"==t.slice(-1)&&n.splice(n.length-1,1);return n}(0,o.path),o.queryKey=function(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,(function(e,t,n){t&&(r[t]=n)})),r}(0,o.query),o}class CG extends eG{constructor(e,t={}){super(),this.binaryType="arraybuffer",this.writeBuffer=[],e&&"object"==typeof e&&(t=e,e=null),e?(e=TG(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=TG(t.host).host),oG(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},r=e.split("&");for(let n=0,i=r.length;n{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);const r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new SG[e](r)}open(){let e;if(this.opts.rememberUpgrade&&CG.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))e="websocket";else{if(0===this.transports.length)return void this.setTimeoutFn((()=>{this.emitReserved("error","No transports available")}),0);e=this.transports[0]}this.readyState="opening";try{e=this.createTransport(e)}catch(fVe){return this.transports.shift(),void this.open()}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",(e=>this.onClose("transport close",e)))}probe(e){let t=this.createTransport(e),r=!1;CG.priorWebsocketSuccess=!1;const n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",(e=>{if(!r)if("pong"===e.type&&"probe"===e.data){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;CG.priorWebsocketSuccess="websocket"===t.name,this.transport.pause((()=>{r||"closed"!==this.readyState&&(l(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}))}else{const e=new Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}})))};function i(){r||(r=!0,l(),t.close(),t=null)}const o=e=>{const r=new Error("probe error: "+e);r.transport=t.name,i(),this.emitReserved("upgradeError",r)};function s(){o("transport closed")}function a(){o("socket closed")}function u(e){t&&e.name!==t.name&&i()}const l=()=>{t.removeListener("open",n),t.removeListener("error",o),t.removeListener("close",s),this.off("close",a),this.off("upgrading",u)};t.once("open",n),t.once("error",o),t.once("close",s),this.once("close",a),this.once("upgrading",u),-1!==this.upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn((()=>{r||t.open()}),200):t.open()}onOpen(){if(this.readyState="open",CG.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush(),"open"===this.readyState&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e{this.onClose("ping timeout")}),this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let r=0;r=57344?r+=3:(n++,r+=4);return r}(t):Math.ceil(1.33*(t.byteLength||t.size))),r>0&&e>this.maxPayload)return this.writeBuffer.slice(0,r);e+=2}var t;return this.writeBuffer}write(e,t,r){return this.sendPacket("message",e,t,r),this}send(e,t,r){return this.sendPacket("message",e,t,r),this}sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;const i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",this.writeBuffer.length?this.once("drain",(()=>{this.upgrading?r():e()})):this.upgrading?r():e()),this}onError(e){CG.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),"function"==typeof removeEventListener&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let r=0;const n=e.length;for(;r"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer)(e))||RG&&e instanceof Blob||PG&&e instanceof File}function LG(e,t){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let t=0,r=e.length;t=0&&e.num{delete this.acks[e];for(let t=0;t{this.io.clearTimeoutFn(i),t.apply(this,[null,...e])}}emitWithAck(e,...t){const r=void 0!==this.flags.timeout||void 0!==this._opts.ackTimeout;return new Promise(((n,i)=>{t.push(((e,t)=>r?e?i(e):n(t):n(e))),this.emit(e,...t)}))}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push(((e,...n)=>{if(r!==this._queue[0])return;return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()})),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth((e=>{this._sendConnectPacket(e)})):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:HG.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case HG.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case HG.EVENT:case HG.BINARY_EVENT:this.onevent(e);break;case HG.ACK:case HG.BINARY_ACK:this.onack(e);break;case HG.DISCONNECT:this.ondisconnect();break;case HG.CONNECT_ERROR:this.destroy();const t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){const t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let r=!1;return function(...n){r||(r=!0,t.packet({type:HG.ACK,id:e,data:n}))}}onack(e){const t=this.acks[e.id];"function"==typeof t&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach((e=>this.emitEvent(e))),this.receiveBuffer=[],this.sendBuffer.forEach((e=>{this.notifyOutgoingListeners(e),this.packet(e)})),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach((e=>e())),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:HG.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}QG.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-r:e+r}return 0|Math.min(e,this.max)},QG.prototype.reset=function(){this.attempts=0},QG.prototype.setMin=function(e){this.ms=e},QG.prototype.setMax=function(e){this.max=e},QG.prototype.setJitter=function(e){this.jitter=e};class JG extends eG{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,oG(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new QG({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;const n=t.parser||c;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new CG(this.uri,this.opts);const t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const n=WG(t,"open",(function(){r.onopen(),e&&e()})),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},o=WG(t,"error",i);if(!1!==this._timeout){const e=this._timeout,r=this.setTimeoutFn((()=>{n(),i(new Error("timeout")),t.close()}),e);this.opts.autoUnref&&r.unref(),this.subs.push((()=>{this.clearTimeoutFn(r)}))}return this.subs.push(n),this.subs.push(o),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(WG(e,"ping",this.onping.bind(this)),WG(e,"data",this.ondata.bind(this)),WG(e,"error",this.onerror.bind(this)),WG(e,"close",this.onclose.bind(this)),WG(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(fVe){this.onclose("parse error",fVe)}}ondecoded(e){EG((()=>{this.emitReserved("packet",e)}),this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new $G(this,e,t),this.nsps[e]=r),r}_destroy(e){const t=Object.keys(this.nsps);for(const r of t){if(this.nsps[r].active)return}this._close()}_packet(e){const t=this.encoder.encode(e);for(let r=0;re())),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn((()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open((t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()})))}),t);this.opts.autoUnref&&r.unref(),this.subs.push((()=>{this.clearTimeoutFn(r)}))}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const ZG={};function XG(e,t){"object"==typeof e&&(t=e,e=void 0);const r=function(e,t="",r){let n=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),n=TG(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}(e,(t=t||{}).path||"/socket.io"),n=r.source,i=r.id,o=r.path,s=ZG[i]&&o in ZG[i].nsps;let a;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?a=new JG(n,t):(ZG[i]||(ZG[i]=new JG(n,t)),a=ZG[i]),r.query&&!t.query&&(t.query=r.queryKey),a.socket(r.path,t)}Object.assign(XG,{Manager:JG,Socket:$G,io:XG,connect:XG});var eY=r(98399);async function tY({user:e,env:t,socketType:r="notification",socketOptions:n}){const{autoConnect:i=!0,reconnectionAttempts:o=5,reconnectionDelay:s,reconnectionDelayMax:a}=n||{};let u=Ib[t];u.endsWith("/apis")&&(u=u.substring(0,u.length-5));const l=["websocket"];let c=null;try{const n="chat"===r?aj(e):await oj(t,e,"User"),h="notification"===r?{address:n}:{mode:"chat",did:n};c=XG(u,Object.assign({transports:l,query:h,autoConnect:i,reconnectionAttempts:o},void 0!==s&&{reconnectionDelay:s},void 0!==a&&{reconnectionDelayMax:a}))}catch(fVe){eY.error("[PUSH-SDK] - Socket connection error: ",fVe)}return c}var rY=r(98399);class nY{static handleChatGroupEvent(e,t=!1){switch(e.eventType){case"create":return this.mapToCreateGroupEvent(e,t);case"update":return this.mapToUpdateGroupEvent(e,t);case yH.JoinGroup:return this.mapToJoinGroupEvent(e,t);case yH.LeaveGroup:return this.mapToLeaveGroupEvent(e,t);case gH.Request:return this.mapToRequestEvent(e,t);case yH.Remove:return this.mapToRemoveEvent(e,t);default:return rY.warn("Unknown eventType:",e.eventType),e}}static mapToJoinGroupEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,chatId:e.chatId,from:e.from,to:e.to,event:yH.JoinGroup};return t?Object.assign({},r,{raw:{verificationProof:e.verificationProof}}):r}static mapToLeaveGroupEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,chatId:e.chatId,from:e.from,to:e.to,event:yH.LeaveGroup};return t?Object.assign({},r,{raw:{verificationProof:e.verificationProof}}):r}static mapToRequestEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,chatId:e.chatId,from:e.from,to:e.to,event:gH.Request,meta:{group:e.isGroup||!1}};return t&&(r.raw={verificationProof:e.verificationProof}),r}static mapToRemoveEvent(e,t){const r={origin:e.messageOrigin,timestamp:e.timestamp,chatId:e.chatId,from:e.from,to:e.to,event:yH.Remove};return t&&(r.raw={verificationProof:e.verificationProof}),r}static buildChatGroupEventMetaAndRaw(e,t){const r={name:e.groupName,description:e.groupDescription,image:e.groupImage,owner:e.groupCreator,private:!e.isPublic,rules:e.rules||{}};if(t){return{meta:r,raw:{verificationProof:e.verificationProof}}}return{meta:r}}static mapToGroupEvent(e,t,r){const{meta:n,raw:i}=this.buildChatGroupEventMetaAndRaw(t,r),o={event:e,origin:t.messageOrigin,timestamp:t.timestamp,chatId:t.chatId,from:t.from,meta:n};return r&&(o.raw=i),o}static mapToCreateGroupEvent(e,t){return this.mapToGroupEvent(yH.CreateGroup,e,t)}static mapToUpdateGroupEvent(e,t){return this.mapToGroupEvent(yH.UpdateGroup,e,t)}static mapToMessageEvent(e,t=!1,r){const n={event:r,origin:e.messageOrigin,timestamp:e.timestamp.toString(),chatId:e.chatId,from:e.fromCAIP10,to:[e.toCAIP10],message:{type:e.messageType,content:e.messageContent},meta:{group:e.isGroup||!1},reference:e.cid};if(t){const t={fromCAIP10:e.fromCAIP10,toCAIP10:e.toCAIP10,fromDID:e.fromDID,toDID:e.toDID,encType:e.encType,encryptedSecret:e.encryptedSecret,signature:e.signature,sigType:e.sigType,verificationProof:e.verificationProof,previousReference:e.link};n.raw=t}return n}static handleChatEvent(e,t=!1){if(!e)throw rY.error("Error in handleChatEvent: data is undefined or null"),new Error("data is undefined or null");const r={Chat:gH.Message,Request:gH.Request,Approve:gH.Accept,Reject:gH.Reject},n=e.eventType||e.messageCategory;if(!r[n])throw rY.error("Error in handleChatEvent: Invalid eventType or messageCategory",JSON.stringify(e)),new Error("Invalid eventType or messageCategory in data");const i=r[n];return i?this.mapToMessageEvent(e,t,i):(rY.warn("Unknown eventType:",e.eventType||e.messageCategory),e)}static mapToNotificationEvent(e,t,r,n=!1){var i,o,s;const a=Object.keys(wH).find((t=>wH[t]===e.payload.data.type))||"BROADCAST";let u;u=Array.isArray(e.payload.recipients)?e.payload.recipients:"string"==typeof e.payload.recipients?[e.payload.recipients]:Object.keys(e.payload.recipients);const l={event:t,origin:r,timestamp:e.epoch,from:e.sender,to:u,notifID:e.payload_id.toString(),channel:{name:e.payload.data.app,icon:e.payload.data.icon,url:e.payload.data.url},meta:{type:"NOTIFICATION."+a},message:{notification:{title:e.payload.notification.title,body:e.payload.notification.body},payload:{title:e.payload.data.asub,body:e.payload.data.amsg,cta:e.payload.data.acta,embed:e.payload.data.aimg,meta:{domain:(null==(i=e.payload.data.additionalMeta)?void 0:i.domain)||"push.org",type:null==(o=e.payload.data.additionalMeta)?void 0:o.type,data:null==(s=e.payload.data.additionalMeta)?void 0:s.data}}},config:{expiry:e.payload.data.etime,silent:"1"===e.payload.data.silent,hidden:"1"===e.payload.data.hidden},source:e.source};return n&&(l.raw={verificationProof:e.payload.verificationProof}),l}static convertToProposedName(e){switch(e){case"message":return bH.Message;case"request":return bH.Request;case"accept":return bH.Accept;case"reject":return bH.Reject;case"leaveGroup":return bH.LeaveGroup;case"joinGroup":return bH.JoinGroup;case"createGroup":return bH.CreateGroup;case"updateGroup":return bH.UpdateGroup;case"remove":return bH.Remove;default:throw new Error(`Unknown current event name: ${e}`)}}static handleToField(e){var t;switch(e.event){case bH.LeaveGroup:case bH.JoinGroup:e.to=null;break;case bH.Accept:case bH.Reject:null!=(t=e.meta)&&t.group&&(e.to=null)}}static convertToProposedNameForVideo(e){switch(e){case pF.INITIALIZED:return vH.REQUEST;case pF.RECEIVED:return vH.APPROVE;case pF.CONNECTED:return vH.CONNECT;case pF.ENDED:return vH.DISCONNECT;case pF.DISCONNECTED:return vH.DENY;case pF.RETRY_INITIALIZED:return vH.RETRY_REQUEST;case pF.RETRY_RECEIVED:return vH.RETRY_APPROVE;default:throw new Error(`Unknown video call status: ${e}`)}}static mapToVideoEvent(e,t,r=!1){var n,i;const{senderAddress:o,signalData:s,status:a,chatId:u}=JSON.parse(null==(n=e.payload.data.additionalMeta)?void 0:n.data),l={address:o,signal:s,meta:{rules:null!=(i=e.payload.rules)?i:{access:{type:AB.PUSH_CHAT,data:{chatId:u}}}}},c={event:nY.convertToProposedNameForVideo(a),origin:t,timestamp:e.epoch,peerInfo:l};return r&&(c.raw={verificationProof:e.payload.verificationProof}),c}}var iY=r(98399);class oY extends ff.EventEmitter{constructor(e,t,r,n,i,o){var s;super(),this._listen=t,this.decryptedPgpPvtKey=n,this.progressHook=i,this.signer=o,this.pushChatSocket=void 0,this.pushNotificationSocket=void 0,this.account=void 0,this.raw=void 0,this.options=void 0,this.chatInstance=void 0,this.listen=void 0,this.account=e,this.raw=null!=(s=r.raw)&&s,this.options=r,this.listen=t,this.chatInstance=new IH(this.account,this.options.env,tw[ig],this.decryptedPgpPvtKey,this.signer,this.progressHook)}static async initialize(e,t,r,n,i,o,s){const a={raw:!1,connection:{auto:!0,retries:3},env:r};if(!t||0===t.length)throw new Error("The listen property must have at least one STREAM type.");const u=Object.assign({},a,s),l=u.overrideAccount||e;return new oY(l,t,u,n,i,o)}async connect(){var e=this;const t=!this.listen||0===this.listen.length||this.listen.includes(fH.CHAT)||this.listen.includes(fH.CHAT_OPS),r=!this.listen||0===this.listen.length||this.listen.includes(fH.NOTIF)||this.listen.includes(fH.NOTIF_OPS)||this.listen.includes(fH.VIDEO);let n=!1,i=!1;const o=()=>{(t&&n||!t)&&(r&&i||!r)&&(this.emit(fH.CONNECT),iY.log("Emitted STREAM.CONNECT"))},s=async function(t){"chat"===t?(n=!1,i?e.pushNotificationSocket&&e.pushNotificationSocket.connected&&e.pushNotificationSocket.disconnect():(e.emit(fH.DISCONNECT),iY.log("Emitted STREAM.DISCONNECT "))):"notif"===t&&(i=!1,n?e.pushChatSocket&&e.pushChatSocket.connected&&e.pushChatSocket.disconnect():(e.emit(fH.DISCONNECT),iY.log("Emitted STREAM.DISCONNECT")))};var a,u,l,c,h,d,f,p,m,g,y,v,b,w;if(t)if(this.pushChatSocket)this.pushChatSocket.connected?iY.log("Push chat socket already connected"):(iY.log("Attempting to reconnect push chat socket..."),this.pushChatSocket.connect());else if(this.pushChatSocket=await tY({user:aj(this.account),socketType:"chat",socketOptions:{autoConnect:null==(a=null==(u=this.options)||null==(l=u.connection)?void 0:l.auto)||a,reconnectionAttempts:null!=(c=null==(h=this.options)||null==(d=h.connection)?void 0:d.retries)?c:3},env:null==(f=this.options)?void 0:f.env}),!this.pushChatSocket)throw new Error("Push chat socket not connected");if(r)if(this.pushNotificationSocket)this.pushNotificationSocket.connected?iY.log("Push notification socket already connected"):(iY.log("Attempting to reconnect push notification socket..."),this.pushNotificationSocket.connect());else if(this.pushNotificationSocket=await tY({user:uj(this.account),env:null==(p=this.options)?void 0:p.env,socketOptions:{autoConnect:null==(m=null==(g=this.options)||null==(y=g.connection)?void 0:y.auto)||m,reconnectionAttempts:null!=(v=null==(b=this.options)||null==(w=b.connection)?void 0:w.retries)?v:3}}),!this.pushNotificationSocket)throw new Error("Push notification socket not connected");const _=e=>!this.listen||0===this.listen.length||this.listen.includes(e);this.pushChatSocket&&(this.pushChatSocket.on(_H.CONNECT,(async function(){n=!0,o(),iY.log(`Chat Socket Connected (ID: ${e.pushChatSocket.id})`)})),this.pushChatSocket.on(_H.DISCONNECT,(async function(){await s("chat")})),this.pushChatSocket.on(_H.CHAT_GROUPS,(e=>{try{const t=nY.handleChatGroupEvent(e,this.raw);t.event=nY.convertToProposedName(t.event),nY.handleToField(t),this.shouldEmitChat(e.chatId)&&(e.eventType===yH.JoinGroup||e.eventType===yH.LeaveGroup||e.eventType===gH.Request||e.eventType===yH.Remove?_(fH.CHAT)&&this.emit(fH.CHAT,t):_(fH.CHAT_OPS)&&this.emit(fH.CHAT_OPS,t))}catch(XMe){iY.error("Error handling CHAT_GROUPS event:",XMe,"Data:",e)}})),this.pushChatSocket.on(_H.CHAT_RECEIVED_MESSAGE,(async function(t){try{"Chat"!=t.messageCategory&&"Request"!=t.messageCategory||e.signer&&(t=(t=await e.chatInstance.decrypt([t]))[0]);const r=nY.handleChatEvent(t,e.raw);r.event=nY.convertToProposedName(r.event),nY.handleToField(r),e.shouldEmitChat(t.chatId)&&_(fH.CHAT)&&e.emit(fH.CHAT,r)}catch(XMe){iY.error("Error handling CHAT_RECEIVED_MESSAGE event:",XMe,"Data:",t)}}))),this.pushNotificationSocket&&(this.pushNotificationSocket.on(_H.CONNECT,(async function(){iY.log(`Notification Socket Connected (ID: ${e.pushNotificationSocket.id})`),i=!0,o()})),this.pushNotificationSocket.on(_H.DISCONNECT,(async function(){await s("notif")})),this.pushNotificationSocket.on(_H.USER_FEEDS,(e=>{try{var t;if((null==(t=e.payload.data.additionalMeta)?void 0:t.type)===`${gB.PUSH_VIDEO}+1`&&_(fH.VIDEO)&&this.shouldEmitVideo(e.sender)){const t=nY.mapToVideoEvent(e,this.account===e.sender?mH.Self:mH.Other,this.raw);this.emit(fH.VIDEO,t)}else{const t=nY.mapToNotificationEvent(e,pH.INBOX,this.account===e.sender?"self":"other",this.raw);this.shouldEmitChannel(t.from)&&_(fH.NOTIF)&&this.emit(fH.NOTIF,t)}}catch(XMe){iY.error("Error handling USER_FEEDS event:",XMe,"Data:",e)}})),this.pushNotificationSocket.on(_H.USER_SPAM_FEEDS,(e=>{try{const t=nY.mapToNotificationEvent(e,pH.SPAM,this.account===e.sender?"self":"other",this.raw);t.origin=this.account===t.from?"self":"other",this.shouldEmitChannel(t.from)&&_(fH.NOTIF)&&this.emit(fH.NOTIF,t)}catch(XMe){iY.error("Error handling USER_SPAM_FEEDS event:",XMe,"Data:",e)}})))}async disconnect(){this.pushChatSocket&&this.pushChatSocket.disconnect(),this.pushNotificationSocket&&this.pushNotificationSocket.disconnect()}shouldEmitChat(e){var t;return!(null!=(t=this.options.filter)&&t.chats&&0!==this.options.filter.chats.length&&!this.options.filter.chats.includes("*"))||this.options.filter.chats.includes(e)}shouldEmitChannel(e){var t;return!(null!=(t=this.options.filter)&&t.channels&&0!==this.options.filter.channels.length&&!this.options.filter.channels.includes("*"))||this.options.filter.channels.includes(e)}shouldEmitVideo(e){var t;return!(null!=(t=this.options.filter)&&t.video&&0!==this.options.filter.video.length&&!this.options.filter.video.includes("*"))||this.options.filter.video.includes(e)}}r(85851),r(62948);var sY=r(98555),aY=r.n(sY);var uY=r(98399);let lY=!1,cY=!1;const hY={debug:1,default:2,info:2,warning:3,error:4,off:5};let dY=hY.default,fY=null;const pY=function(){try{const e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((t=>{try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(XMe){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(XMe){return XMe.message}return null}();var mY,gY;!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(mY||(mY={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(gY||(gY={}));const yY="0123456789abcdef";class vY{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){const r=e.toLowerCase();null==hY[r]&&this.throwArgumentError("invalid log level name","logLevel",e),dY>hY[r]||uY.log.apply(uY,t)}debug(...e){this._log(vY.levels.DEBUG,e)}info(...e){this._log(vY.levels.INFO,e)}warn(...e){this._log(vY.levels.WARNING,e)}makeError(e,t,r){if(cY)return this.makeError("censored error",t,{});t||(t=vY.errors.UNKNOWN_ERROR),r||(r={});const n=[];Object.keys(r).forEach((e=>{const t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e>4],r+=yY[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch(s){n.push(e+"="+JSON.stringify(r[e].toString()))}})),n.push(`code=${t}`),n.push(`version=${this.version}`);const i=e;let o="";switch(t){case gY.NUMERIC_FAULT:{o="NUMERIC_FAULT";const t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":o+="-"+t;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case gY.CALL_EXCEPTION:case gY.INSUFFICIENT_FUNDS:case gY.MISSING_NEW:case gY.NONCE_EXPIRED:case gY.REPLACEMENT_UNDERPRICED:case gY.TRANSACTION_REPLACED:case gY.UNPREDICTABLE_GAS_LIMIT:o=t}o&&(e+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),n.length&&(e+=" ("+n.join(", ")+")");const s=new Error(e);return s.reason=i,s.code=t,Object.keys(r).forEach((function(e){s[e]=r[e]})),s}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,vY.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),pY&&this.throwError("platform missing String.prototype.normalize",vY.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:pY})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(t,vY.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,vY.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",et&&this.throwError("too many arguments"+r,vY.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){e!==Object&&null!=e||this.throwError("missing new",vY.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",vY.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):e!==Object&&null!=e||this.throwError("missing new",vY.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return fY||(fY=new vY("logger/5.7.0")),fY}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",vY.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),lY){if(!e)return;this.globalLogger().throwError("error censorship permanent",vY.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}cY=!!e,lY=!!t}static setLogLevel(e){const t=hY[e.toLowerCase()];null!=t?dY=t:vY.globalLogger().warn("invalid log level - "+e)}static from(e){return new vY(e)}}vY.errors=gY,vY.levels=mY;const bY=new vY("bytes/5.7.0");function wY(e){return!!e.toHexString}function _Y(e){return e.slice||(e.slice=function(){const t=Array.prototype.slice.call(arguments);return _Y(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function EY(e){return CY(e)&&!(e.length%2)||MY(e)}function AY(e){return"number"==typeof e&&e==e&&e%1==0}function MY(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!AY(e.length)||e.length<0)return!1;for(let t=0;t=256)return!1}return!0}function SY(e,t){if(t||(t={}),"number"==typeof e){bY.checkSafeUint53(e,"invalid arrayify value");const t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),_Y(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),wY(e)&&(e=e.toHexString()),CY(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":bY.throwArgumentError("hex data is odd-length","value",e));const n=[];for(let e=0;eSY(e))),r=t.reduce(((e,t)=>e+t.length),0),n=new Uint8Array(r);return t.reduce(((e,t)=>(n.set(t,e),e+t.length)),0),_Y(n)}function kY(e){let t=SY(e);if(0===t.length)return t;let r=0;for(;rt&&bY.throwArgumentError("value out of range","value",arguments[0]);const r=new Uint8Array(t);return r.set(e,t-e.length),_Y(r)}function CY(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}const IY="0123456789abcdef";function NY(e,t){if(t||(t={}),"number"==typeof e){bY.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=IY[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),wY(e))return e.toHexString();if(CY(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":bY.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(MY(e)){let t="0x";for(let r=0;r>4]+IY[15&n]}return t}return bY.throwArgumentError("invalid hexlify value","value",e)}function RY(e){if("string"!=typeof e)e=NY(e);else if(!CY(e)||e.length%2)return null;return(e.length-2)/2}function PY(e,t,r){return"string"!=typeof e?e=NY(e):(!CY(e)||e.length%2)&&bY.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function DY(e){let t="0x";return e.forEach((e=>{t+=NY(e).substring(2)})),t}function LY(e){const t=OY(NY(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function OY(e){"string"!=typeof e&&(e=NY(e)),CY(e)||bY.throwArgumentError("invalid hex string","value",e),e=e.substring(2);let t=0;for(;t2*t+2&&bY.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function BY(e){const t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(EY(e)){let r=SY(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=NY(r.slice(0,32)),t.s=NY(r.slice(32,64))):65===r.length?(t.r=NY(r.slice(0,32)),t.s=NY(r.slice(32,64)),t.v=r[64]):bY.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:bY.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=NY(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){const r=TY(SY(t._vs),32);t._vs=NY(r);const n=r[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=n:t.recoveryParam!==n&&bY.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),r[0]&=127;const i=NY(r);null==t.s?t.s=i:t.s!==i&&bY.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?bY.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{const r=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==r&&bY.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&CY(t.r)?t.r=jY(t.r,32):bY.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&CY(t.s)?t.s=jY(t.s,32):bY.throwArgumentError("signature missing or invalid s","signature",e);const r=SY(t.s);r[0]>=128&&bY.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(r[0]|=128);const n=NY(r);t._vs&&(CY(t._vs)||bY.throwArgumentError("signature invalid _vs","signature",e),t._vs=jY(t._vs,32)),null==t._vs?t._vs=n:t._vs!==n&&bY.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function UY(e){return NY(xY([(e=BY(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}const FY="bignumber/5.7.0";var zY=aY().BN;const HY=new vY(FY),GY={},YY=9007199254740991;let KY=!1;class qY{constructor(e,t){e!==GY&&HY.throwError("cannot call constructor directly; use BigNumber.from",vY.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return VY($Y(this).fromTwos(e))}toTwos(e){return VY($Y(this).toTwos(e))}abs(){return"-"===this._hex[0]?qY.from(this._hex.substring(1)):this}add(e){return VY($Y(this).add($Y(e)))}sub(e){return VY($Y(this).sub($Y(e)))}div(e){return qY.from(e).isZero()&&QY("division-by-zero","div"),VY($Y(this).div($Y(e)))}mul(e){return VY($Y(this).mul($Y(e)))}mod(e){const t=$Y(e);return t.isNeg()&&QY("division-by-zero","mod"),VY($Y(this).umod(t))}pow(e){const t=$Y(e);return t.isNeg()&&QY("negative-power","pow"),VY($Y(this).pow(t))}and(e){const t=$Y(e);return(this.isNegative()||t.isNeg())&&QY("unbound-bitwise-result","and"),VY($Y(this).and(t))}or(e){const t=$Y(e);return(this.isNegative()||t.isNeg())&&QY("unbound-bitwise-result","or"),VY($Y(this).or(t))}xor(e){const t=$Y(e);return(this.isNegative()||t.isNeg())&&QY("unbound-bitwise-result","xor"),VY($Y(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&QY("negative-width","mask"),VY($Y(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&QY("negative-width","shl"),VY($Y(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&QY("negative-width","shr"),VY($Y(this).shrn(e))}eq(e){return $Y(this).eq($Y(e))}lt(e){return $Y(this).lt($Y(e))}lte(e){return $Y(this).lte($Y(e))}gt(e){return $Y(this).gt($Y(e))}gte(e){return $Y(this).gte($Y(e))}isNegative(){return"-"===this._hex[0]}isZero(){return $Y(this).isZero()}toNumber(){try{return $Y(this).toNumber()}catch(XMe){QY("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(fVe){}return HY.throwError("this platform does not support BigInt",vY.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?KY||(KY=!0,HY.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?HY.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",vY.errors.UNEXPECTED_ARGUMENT,{}):HY.throwError("BigNumber.toString does not accept parameters",vY.errors.UNEXPECTED_ARGUMENT,{})),$Y(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof qY)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new qY(GY,WY(e)):e.match(/^-?[0-9]+$/)?new qY(GY,WY(new zY(e))):HY.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&QY("underflow","BigNumber.from",e),(e>=YY||e<=-9007199254740991)&&QY("overflow","BigNumber.from",e),qY.from(String(e));const t=e;if("bigint"==typeof t)return qY.from(t.toString());if(MY(t))return qY.from(NY(t));if(t)if(t.toHexString){const e=t.toHexString();if("string"==typeof e)return qY.from(e)}else{let e=t._hex;if(null==e&&"BigNumber"===t.type&&(e=t.hex),"string"==typeof e&&(CY(e)||"-"===e[0]&&CY(e.substring(1))))return qY.from(e)}return HY.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!(!e||!e._isBigNumber)}}function WY(e){if("string"!=typeof e)return WY(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&HY.throwArgumentError("invalid hex","value",e),"0x00"===(e=WY(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function VY(e){return qY.from(WY(e))}function $Y(e){const t=qY.from(e).toHexString();return"-"===t[0]?new zY("-"+t.substring(3),16):new zY(t.substring(2),16)}function QY(e,t,r){const n={fault:e,operation:t};return null!=r&&(n.value=r),HY.throwError(e,vY.errors.NUMERIC_FAULT,n)}const JY=new vY(FY),ZY={},XY=qY.from(0),eK=qY.from(-1);function tK(e,t,r,n){const i={fault:t,operation:r};return void 0!==n&&(i.value=n),JY.throwError(e,vY.errors.NUMERIC_FAULT,i)}let rK="0";for(;rK.length<256;)rK+=rK;function nK(e){if("number"!=typeof e)try{e=qY.from(e).toNumber()}catch(fVe){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+rK.substring(0,e):JY.throwArgumentError("invalid decimal size","decimals",e)}function iK(e,t){null==t&&(t=0);const r=nK(t),n=(e=qY.from(e)).lt(XY);n&&(e=e.mul(eK));let i=e.mod(r).toString();for(;i.length2&&JY.throwArgumentError("too many decimal points","value",e);let o=i[0],s=i[1];for(o||(o="0"),s||(s="0");"0"===s[s.length-1];)s=s.substring(0,s.length-1);for(s.length>r.length-1&&tK("fractional component exceeds decimals","underflow","parseFixed"),""===s&&(s="0");s.lengthnull==e[t]?n:(typeof e[t]!==r&&JY.throwArgumentError("invalid fixed format ("+t+" not "+r+")","format."+t,e[t]),e[t]);t=i("signed","boolean",t),r=i("width","number",r),n=i("decimals","number",n)}return r%8&&JY.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),n>80&&JY.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",n),new sK(ZY,t,r,n)}}class aK{constructor(e,t,r,n){e!==ZY&&JY.throwError("cannot use FixedNumber constructor; use FixedNumber.from",vY.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(e){this.format.name!==e.format.name&&JY.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}addUnsafe(e){this._checkFormat(e);const t=oK(this._value,this.format.decimals),r=oK(e._value,e.format.decimals);return aK.fromValue(t.add(r),this.format.decimals,this.format)}subUnsafe(e){this._checkFormat(e);const t=oK(this._value,this.format.decimals),r=oK(e._value,e.format.decimals);return aK.fromValue(t.sub(r),this.format.decimals,this.format)}mulUnsafe(e){this._checkFormat(e);const t=oK(this._value,this.format.decimals),r=oK(e._value,e.format.decimals);return aK.fromValue(t.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(e){this._checkFormat(e);const t=oK(this._value,this.format.decimals),r=oK(e._value,e.format.decimals);return aK.fromValue(t.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}floor(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=aK.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(t=t.subUnsafe(uK.toFormat(t.format))),t}ceiling(){const e=this.toString().split(".");1===e.length&&e.push("0");let t=aK.from(e[0],this.format);const r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(t=t.addUnsafe(uK.toFormat(t.format))),t}round(e){null==e&&(e=0);const t=this.toString().split(".");if(1===t.length&&t.push("0"),(e<0||e>80||e%1)&&JY.throwArgumentError("invalid decimal count","decimals",e),t[1].length<=e)return this;const r=aK.from("1"+rK.substring(0,e),this.format),n=lK.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(n).floor().divUnsafe(r)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(e){if(null==e)return this._hex;e%8&&JY.throwArgumentError("invalid byte width","width",e);return jY(qY.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString(),e/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return aK.fromString(this._value,e)}static fromValue(e,t,r){return null!=r||null==t||function(e){return null!=e&&(qY.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||CY(e)||"bigint"==typeof e||MY(e))}(t)||(r=t,t=null),null==t&&(t=0),null==r&&(r="fixed"),aK.fromString(iK(e,t),sK.from(r))}static fromString(e,t){null==t&&(t="fixed");const r=sK.from(t),n=oK(e,r.decimals);!r.signed&&n.lt(XY)&&tK("unsigned value cannot be negative","overflow","value",e);let i=null;r.signed?i=n.toTwos(r.width).toHexString():(i=n.toHexString(),i=jY(i,r.width/8));const o=iK(n,r.decimals);return new aK(ZY,i,o,r)}static fromBytes(e,t){null==t&&(t="fixed");const r=sK.from(t);if(SY(e).length>r.width/8)throw new Error("overflow");let n=qY.from(e);r.signed&&(n=n.fromTwos(r.width));const i=n.toTwos((r.signed?0:1)+r.width).toHexString(),o=iK(n,r.decimals);return new aK(ZY,i,o,r)}static from(e,t){if("string"==typeof e)return aK.fromString(e,t);if(MY(e))return aK.fromBytes(e,t);try{return aK.fromValue(e,0,t)}catch(XMe){if(XMe.code!==vY.errors.INVALID_ARGUMENT)throw XMe}return JY.throwArgumentError("invalid FixedNumber value","value",e)}static isFixedNumber(e){return!(!e||!e._isFixedNumber)}}const uK=aK.from(1),lK=aK.from("0.5");var cK=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const hK=new vY("properties/5.7.0");function dK(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function fK(e,t){for(let r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function pK(e){return cK(this,void 0,void 0,(function*(){const t=Object.keys(e).map((t=>{const r=e[t];return Promise.resolve(r).then((e=>({key:t,value:e})))}));return(yield Promise.all(t)).reduce(((e,t)=>(e[t.key]=t.value,e)),{})}))}function mK(e,t){e&&"object"==typeof e||hK.throwArgumentError("invalid object","object",e),Object.keys(e).forEach((r=>{t[r]||hK.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)}))}function gK(e){const t={};for(const r in e)t[r]=e[r];return t}const yK={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function vK(e){if(null==e||yK[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;const t=Object.keys(e);for(let r=0;rwK(e))));if("object"==typeof e){const t={};for(const r in e){const n=e[r];void 0!==n&&dK(t,r,wK(n))}return t}return hK.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function wK(e){return bK(e)}class _K{constructor(e){for(const t in e)this[t]=wK(e[t])}}const EK="abi/5.7.0";var AK=r(98399);const MK=new vY(EK),SK={};let xK={calldata:!0,memory:!0,storage:!0},kK={calldata:!0,memory:!0};function TK(e,t){if("bytes"===e||"string"===e){if(xK[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&kK[t])return!0;return(xK[t]||"payable"===t)&&MK.throwArgumentError("invalid modifier","name",t),!1}function CK(e,t){for(let r in t)dK(e,r,t[r])}const IK=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),NK=new RegExp(/^(.*)\[([0-9]*)\]$/);class RK{constructor(e,t){e!==SK&&MK.throwError("use fromString",vY.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),CK(this,t);let r=this.type.match(NK);CK(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:RK.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(e){if(e||(e=IK.sighash),IK[e]||MK.throwArgumentError("invalid format type","format",e),e===IK.json){let t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((t=>JSON.parse(t.format(e))))),JSON.stringify(t)}let t="";return"array"===this.baseType?(t+=this.arrayChildren.format(e),t+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==IK.sighash&&(t+=this.type),t+="("+this.components.map((t=>t.format(e))).join(e===IK.full?", ":",")+")"):t+=this.type,e!==IK.sighash&&(!0===this.indexed&&(t+=" indexed"),e===IK.full&&this.name&&(t+=" "+this.name)),t}static from(e,t){return"string"==typeof e?RK.fromString(e,t):RK.fromObject(e)}static fromObject(e){return RK.isParamType(e)?e:new RK(SK,{name:e.name||null,type:GK(e.type),indexed:null==e.indexed?null:!!e.indexed,components:e.components?e.components.map(RK.fromObject):null})}static fromString(e,t){return function(e){return RK.fromObject({name:e.name,type:e.type,indexed:e.indexed,components:e.components})}(function(e,t){let r=e;function n(t){MK.throwArgumentError(`unexpected character at position ${t}`,"param",e)}function i(e){let r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},s=o;for(let a=0;aRK.fromString(e,t)))}class DK{constructor(e,t){e!==SK&&MK.throwError("use a static from method",vY.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),CK(this,t),this._isFragment=!0,Object.freeze(this)}static from(e){return DK.isFragment(e)?e:"string"==typeof e?DK.fromString(e):DK.fromObject(e)}static fromObject(e){if(DK.isFragment(e))return e;switch(e.type){case"function":return FK.fromObject(e);case"event":return LK.fromObject(e);case"constructor":return UK.fromObject(e);case"error":return HK.fromObject(e);case"fallback":case"receive":return null}return MK.throwArgumentError("invalid fragment object","value",e)}static fromString(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?LK.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?FK.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?UK.fromString(e.trim()):"error"===e.split(" ")[0]?HK.fromString(e.substring(5).trim()):MK.throwArgumentError("unsupported fragment","value",e)}static isFragment(e){return!(!e||!e._isFragment)}}class LK extends DK{format(e){if(e||(e=IK.sighash),IK[e]||MK.throwArgumentError("invalid format type","format",e),e===IK.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==IK.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===IK.full?", ":",")+") ",e!==IK.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}static from(e){return"string"==typeof e?LK.fromString(e):LK.fromObject(e)}static fromObject(e){if(LK.isEventFragment(e))return e;"event"!==e.type&&MK.throwArgumentError("invalid event object","value",e);const t={name:KK(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(RK.fromObject):[],type:"event"};return new LK(SK,t)}static fromString(e){let t=e.match(qK);t||MK.throwArgumentError("invalid event string","value",e);let r=!1;return t[3].split(" ").forEach((e=>{switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:MK.warn("unknown modifier: "+e)}})),LK.fromObject({name:t[1].trim(),anonymous:r,inputs:PK(t[2],!0),type:"event"})}static isEventFragment(e){return e&&e._isFragment&&"event"===e.type}}function OK(e,t){t.gas=null;let r=e.split("@");return 1!==r.length?(r.length>2&&MK.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||MK.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=qY.from(r[1]),r[0]):e}function jK(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((e=>{switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:AK.log("unknown modifier: "+e)}}))}function BK(e){let t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&MK.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&MK.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||MK.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&MK.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&MK.throwArgumentError("unable to determine stateMutability","value",e),t}class UK extends DK{format(e){if(e||(e=IK.sighash),IK[e]||MK.throwArgumentError("invalid format type","format",e),e===IK.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});e===IK.sighash&&MK.throwError("cannot format a constructor for sighash",vY.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let t="constructor("+this.inputs.map((t=>t.format(e))).join(e===IK.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}static from(e){return"string"==typeof e?UK.fromString(e):UK.fromObject(e)}static fromObject(e){if(UK.isConstructorFragment(e))return e;"constructor"!==e.type&&MK.throwArgumentError("invalid constructor object","value",e);let t=BK(e);t.constant&&MK.throwArgumentError("constructor cannot be constant","value",e);const r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(RK.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?qY.from(e.gas):null};return new UK(SK,r)}static fromString(e){let t={type:"constructor"},r=(e=OK(e,t)).match(qK);return r&&"constructor"===r[1].trim()||MK.throwArgumentError("invalid constructor string","value",e),t.inputs=PK(r[2].trim(),!1),jK(r[3].trim(),t),UK.fromObject(t)}static isConstructorFragment(e){return e&&e._isFragment&&"constructor"===e.type}}class FK extends UK{format(e){if(e||(e=IK.sighash),IK[e]||MK.throwArgumentError("invalid format type","format",e),e===IK.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e)))),outputs:this.outputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==IK.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===IK.full?", ":",")+") ",e!==IK.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((t=>t.format(e))).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}static from(e){return"string"==typeof e?FK.fromString(e):FK.fromObject(e)}static fromObject(e){if(FK.isFunctionFragment(e))return e;"function"!==e.type&&MK.throwArgumentError("invalid function object","value",e);let t=BK(e);const r={type:e.type,name:KK(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(RK.fromObject):[],outputs:e.outputs?e.outputs.map(RK.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?qY.from(e.gas):null};return new FK(SK,r)}static fromString(e){let t={type:"function"},r=(e=OK(e,t)).split(" returns ");r.length>2&&MK.throwArgumentError("invalid function string","value",e);let n=r[0].match(qK);if(n||MK.throwArgumentError("invalid function signature","value",e),t.name=n[1].trim(),t.name&&KK(t.name),t.inputs=PK(n[2],!1),jK(n[3].trim(),t),r.length>1){let n=r[1].match(qK);""==n[1].trim()&&""==n[3].trim()||MK.throwArgumentError("unexpected tokens","value",e),t.outputs=PK(n[2],!1)}else t.outputs=[];return FK.fromObject(t)}static isFunctionFragment(e){return e&&e._isFragment&&"function"===e.type}}function zK(e){const t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||MK.throwArgumentError(`cannot specify user defined ${t} error`,"fragment",e),e}class HK extends DK{format(e){if(e||(e=IK.sighash),IK[e]||MK.throwArgumentError("invalid format type","format",e),e===IK.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});let t="";return e!==IK.sighash&&(t+="error "),t+=this.name+"("+this.inputs.map((t=>t.format(e))).join(e===IK.full?", ":",")+") ",t.trim()}static from(e){return"string"==typeof e?HK.fromString(e):HK.fromObject(e)}static fromObject(e){if(HK.isErrorFragment(e))return e;"error"!==e.type&&MK.throwArgumentError("invalid error object","value",e);const t={type:e.type,name:KK(e.name),inputs:e.inputs?e.inputs.map(RK.fromObject):[]};return zK(new HK(SK,t))}static fromString(e){let t={type:"error"},r=e.match(qK);return r||MK.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&KK(t.name),t.inputs=PK(r[2],!1),zK(HK.fromObject(t))}static isErrorFragment(e){return e&&e._isFragment&&"error"===e.type}}function GK(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}const YK=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function KK(e){return e&&e.match(YK)||MK.throwArgumentError(`invalid identifier "${e}"`,"value",e),e}const qK=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");const WK=new vY(EK);function VK(e){const t=[],r=function(e,n){if(Array.isArray(n))for(let i in n){const o=e.slice();o.push(i);try{r(o,n[i])}catch(XMe){t.push({path:o,error:XMe})}}};return r([],e),t}class $K{constructor(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}_throwError(e,t){WK.throwArgumentError(e,this.localName,t)}}class QK{constructor(e){dK(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}get data(){return DY(this._data)}get length(){return this._dataLength}_writeData(e){return this._data.push(e),this._dataLength+=e.length,e.length}appendWriter(e){return this._writeData(xY(e._data))}writeBytes(e){let t=SY(e);const r=t.length%this.wordSize;return r&&(t=xY([t,this._padding.slice(r)])),this._writeData(t)}_getValue(e){let t=SY(qY.from(e));return t.length>this.wordSize&&WK.throwError("value out-of-bounds",vY.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=xY([this._padding.slice(t.length%this.wordSize),t])),t}writeValue(e){return this._writeData(this._getValue(e))}writeUpdatableValue(){const e=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,t=>{this._data[e]=this._getValue(t)}}}class JK{constructor(e,t,r,n){dK(this,"_data",SY(e)),dK(this,"wordSize",t||32),dK(this,"_coerceFunc",r),dK(this,"allowLoose",n),this._offset=0}get data(){return NY(this._data)}get consumed(){return this._offset}static coerce(e,t){let r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}coerce(e,t){return this._coerceFunc?this._coerceFunc(e,t):JK.coerce(e,t)}_peekBytes(e,t,r){let n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:WK.throwError("data out-of-bounds",vY.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}subReader(e){return new JK(this._data.slice(this._offset+e),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(e,t){let r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}readValue(){return qY.from(this.readBytes(this.wordSize))}}var ZK=r(49629),XK=r.n(ZK);function eq(e){return"0x"+XK().keccak_256(SY(e))}const tq=new vY("rlp/5.7.0");function rq(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function nq(e,t,r){let n=0;for(let i=0;it+1+n&&tq.throwError("child data too short",vY.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function aq(e,t){if(0===e.length&&tq.throwError("data too short",vY.errors.BUFFER_OVERRUN,{}),e[t]>=248){const r=e[t]-247;t+1+r>e.length&&tq.throwError("data short segment too short",vY.errors.BUFFER_OVERRUN,{});const n=nq(e,t+1,r);return t+1+r+n>e.length&&tq.throwError("data long segment too short",vY.errors.BUFFER_OVERRUN,{}),sq(e,t,t+1+r,r+n)}if(e[t]>=192){const r=e[t]-192;return t+1+r>e.length&&tq.throwError("data array too short",vY.errors.BUFFER_OVERRUN,{}),sq(e,t,t+1,r)}if(e[t]>=184){const r=e[t]-183;t+1+r>e.length&&tq.throwError("data array too short",vY.errors.BUFFER_OVERRUN,{});const n=nq(e,t+1,r);t+1+r+n>e.length&&tq.throwError("data array too short",vY.errors.BUFFER_OVERRUN,{});return{consumed:1+r+n,result:NY(e.slice(t+1+r,t+1+r+n))}}if(e[t]>=128){const r=e[t]-128;t+1+r>e.length&&tq.throwError("data too short",vY.errors.BUFFER_OVERRUN,{});return{consumed:1+r,result:NY(e.slice(t+1,t+1+r))}}return{consumed:1,result:NY(e[t])}}function uq(e){const t=SY(e),r=aq(t,0);return r.consumed!==t.length&&tq.throwArgumentError("invalid rlp data","data",e),r.result}const lq=new vY("address/5.7.0");function cq(e){CY(e,20)||lq.throwArgumentError("invalid address","address",e);const t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let i=0;i<40;i++)r[i]=t[i].charCodeAt(0);const n=SY(eq(r));for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&(t[i]=t[i].toUpperCase()),(15&n[i>>1])>=8&&(t[i+1]=t[i+1].toUpperCase());return"0x"+t.join("")}const hq={};for(let pVe=0;pVe<10;pVe++)hq[String(pVe)]=String(pVe);for(let pVe=0;pVe<26;pVe++)hq[String.fromCharCode(65+pVe)]=String(10+pVe);const dq=Math.floor(function(e){return Math.log10?Math.log10(e):Math.log(e)/Math.LN10}(9007199254740991));function fq(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>hq[e])).join("");for(;t.length>=dq;){let e=t.substring(0,dq);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}function pq(e){let t=null;if("string"!=typeof e&&lq.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=cq(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&lq.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==fq(e)&&lq.throwArgumentError("bad icap checksum","address",e),t=function(e){return new zY(e,36).toString(16)}(e.substring(4));t.length<40;)t="0"+t;t=cq("0x"+t)}else lq.throwArgumentError("invalid address","address",e);return t}function mq(e){try{return pq(e),!0}catch(XMe){}return!1}function gq(e){let t=function(e){return new zY(e,16).toString(36)}(pq(e).substring(2)).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+fq("XE00"+t)+t}function yq(e){let t=null;try{t=pq(e.from)}catch(XMe){lq.throwArgumentError("missing from address","transaction",e)}return pq(PY(eq(oq([t,kY(SY(qY.from(e.nonce).toHexString()))])),12))}function vq(e,t,r){return 32!==RY(t)&&lq.throwArgumentError("salt must be 32 bytes","salt",t),32!==RY(r)&&lq.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),pq(PY(eq(xY(["0xff",pq(e),t,r])),12))}class bq extends $K{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){try{t=pq(t)}catch(XMe){this._throwError(XMe.message,t)}return e.writeValue(t)}decode(e){return pq(jY(e.readValue().toHexString(),20))}}class wq extends $K{constructor(e){super(e.name,e.type,void 0,e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}const _q=new vY(EK);function Eq(e,t,r){let n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){let e={};n=t.map((t=>{const n=t.localName;return n||_q.throwError("cannot encode object for signature with missing names",vY.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]&&_q.throwError("cannot encode object for signature with duplicate names",vY.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:r}),e[n]=!0,r[n]}))}else _q.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&_q.throwArgumentError("types/value length mismatch","tuple",r);let i=new QK(e.wordSize),o=new QK(e.wordSize),s=[];t.forEach(((e,t)=>{let r=n[t];if(e.dynamic){let t=o.length;e.encode(o,r);let n=i.writeUpdatableValue();s.push((e=>{n(e+t)}))}else e.encode(i,r)})),s.forEach((e=>{e(i.length)}));let a=e.appendWriter(i);return a+=e.appendWriter(o),a}function Aq(e,t){let r=[],n=e.subReader(0);t.forEach((t=>{let i=null;if(t.dynamic){let r=e.readValue(),o=n.subReader(r.toNumber());try{i=t.decode(o)}catch(XMe){if(XMe.code===vY.errors.BUFFER_OVERRUN)throw XMe;i=XMe,i.baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(XMe){if(XMe.code===vY.errors.BUFFER_OVERRUN)throw XMe;i=XMe,i.baseType=t.name,i.name=t.localName,i.type=t.type}null!=i&&r.push(i)}));const i=t.reduce(((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});t.forEach(((e,t)=>{let n=e.localName;if(!n||1!==i[n])return;if("length"===n&&(n="_length"),null!=r[n])return;const o=r[t];o instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:()=>{throw o}}):r[n]=o}));for(let o=0;o{throw e}})}return Object.freeze(r)}class Mq extends $K{constructor(e,t,r){super("array",e.type+"["+(t>=0?t:"")+"]",r,-1===t||e.dynamic),this.coder=e,this.length=t}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let r=0;re._data.length&&_q.throwError("insufficient data length",vY.errors.BUFFER_OVERRUN,{length:e._data.length,count:t}));let r=[];for(let n=0;n>6==2;n++)e++;return e}return e===Yq.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(Gq||(Gq={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(Yq||(Yq={}));const qq=Object.freeze({error:function(e,t,r,n,i){return Hq.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:Kq,replace:function(e,t,r,n,i){return e===Yq.OVERLONG?(n.push(i),0):(n.push(65533),Kq(e,t,r))}});function Wq(e,t){null==t&&(t=qq.error),e=SY(e);const r=[];let n=0;for(;n>7==0){r.push(i);continue}let o=null,s=null;if(192==(224&i))o=1,s=127;else if(224==(240&i))o=2,s=2047;else{if(240!=(248&i)){n+=t(128==(192&i)?Yq.UNEXPECTED_CONTINUE:Yq.BAD_PREFIX,n-1,e,r);continue}o=3,s=65535}if(n-1+o>=e.length){n+=t(Yq.OVERRUN,n-1,e,r);continue}let a=i&(1<<8-o-1)-1;for(let u=0;u1114111?n+=t(Yq.OUT_OF_RANGE,n-1-o,e,r,a):a>=55296&&a<=57343?n+=t(Yq.UTF16_SURROGATE,n-1-o,e,r,a):a<=s?n+=t(Yq.OVERLONG,n-1-o,e,r,a):r.push(a))}return r}function Vq(e,t=Gq.current){t!=Gq.current&&(Hq.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n>6|192),r.push(63&t|128);else if(55296==(64512&t)){n++;const i=e.charCodeAt(n);if(n>=e.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&t)<<10)+(1023&i);r.push(o>>18|240),r.push(o>>12&63|128),r.push(o>>6&63|128),r.push(63&o|128)}else r.push(t>>12|224),r.push(t>>6&63|128),r.push(63&t|128)}return SY(r)}function $q(e){const t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function Qq(e,t){return'"'+Wq(e,t).map((e=>{if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?$q(e):$q(55296+((e-=65536)>>10&1023))+$q(56320+(1023&e))})).join("")+'"'}function Jq(e){return e.map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")}function Zq(e,t){return Jq(Wq(e,t))}function Xq(e,t=Gq.current){return Wq(Vq(e,t))}function eW(e){const t=Vq(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return NY(xY([t,Uq]).slice(0,32))}function tW(e){const t=SY(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");let r=31;for(;0===t[r-1];)r--;return Zq(t.slice(0,r))}function rW(e,t){t||(t=function(e){return[parseInt(e,16)]});let r=0,n={};return e.split(",").forEach((e=>{let i=e.split(":");r+=parseInt(i[0],16),n[r]=t(i[1])})),n}function nW(e){let t=0;return e.split(",").map((e=>{let r=e.split("-");1===r.length?r[1]="0":""===r[1]&&(r[1]="1");let n=t+parseInt(r[0],16);return t=parseInt(r[1],16),{l:n,h:t}}))}function iW(e,t){let r=0;for(let n=0;n=r&&e<=r+i.h&&(e-r)%(i.d||1)==0){if(i.e&&-1!==i.e.indexOf(e-r))continue;return i}}return null}const oW=nW("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),sW="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((e=>parseInt(e,16))),aW=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],uW=rW("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),lW=rW("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),cW=rW("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!=0)throw new Error("bad data");let t=[];for(let r=0;r{if(sW.indexOf(e)>=0)return[];if(e>=65024&&e<=65039)return[];let t=function(e){let t=iW(e,aW);if(t)return[e+t.s];let r=uW[e];if(r)return r;let n=lW[e];return n?[e+n[0]]:cW[e]||null}(e);return t||[e]})),t=r.reduce(((e,t)=>(t.forEach((t=>{e.push(t)})),e)),[]),t=Xq(Jq(t),Gq.NFKC),t.forEach((e=>{if(iW(e,hW))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),t.forEach((e=>{if(iW(e,oW))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));let n=Jq(t);if("-"===n.substring(0,1)||"--"===n.substring(2,4)||"-"===n.substring(n.length-1))throw new Error("invalid hyphen");return n}class fW extends xq{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,Vq(t))}decode(e){return Zq(super.decode(e))}}class pW extends $K{constructor(e,t){let r=!1;const n=[];e.forEach((e=>{e.dynamic&&(r=!0),n.push(e.type)}));super("tuple","tuple("+n.join(",")+")",t,r),this.coders=e}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});return this.coders.forEach(((r,n)=>{let i=r.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[n]))})),Object.freeze(e)}encode(e,t){return Eq(e,this.coders,t)}decode(e){return e.coerce(this.name,Aq(e,this.coders))}}const mW=new vY(EK),gW=new RegExp(/^bytes([0-9]*)$/),yW=new RegExp(/^(u?int)([0-9]*)$/);class vW{constructor(e){dK(this,"coerceFunc",e||null)}_getCoder(e){switch(e.baseType){case"address":return new bq(e.name);case"bool":return new Sq(e.name);case"string":return new fW(e.name);case"bytes":return new kq(e.name);case"array":return new Mq(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new pW((e.components||[]).map((e=>this._getCoder(e))),e.name);case"":return new Cq(e.name)}let t=e.type.match(yW);if(t){let r=parseInt(t[2]||"256");return(0===r||r>256||r%8!=0)&&mW.throwArgumentError("invalid "+t[1]+" bit length","param",e),new zq(r/8,"int"===t[1],e.name)}if(t=e.type.match(gW),t){let r=parseInt(t[1]);return(0===r||r>32)&&mW.throwArgumentError("invalid bytes length","param",e),new Tq(r,e.name)}return mW.throwArgumentError("invalid type","type",e.type)}_getWordSize(){return 32}_getReader(e,t){return new JK(e,this._getWordSize(),this.coerceFunc,t)}_getWriter(){return new QK(this._getWordSize())}getDefaultValue(e){const t=e.map((e=>this._getCoder(RK.from(e))));return new pW(t,"_").defaultValue()}encode(e,t){e.length!==t.length&&mW.throwError("types/values length mismatch",vY.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});const r=e.map((e=>this._getCoder(RK.from(e)))),n=new pW(r,"_"),i=this._getWriter();return n.encode(i,t),i.data}decode(e,t,r){const n=e.map((e=>this._getCoder(RK.from(e))));return new pW(n,"_").decode(this._getReader(SY(t),r))}}const bW=new vW;function wW(e){return eq(Vq(e))}const _W="hash/5.7.0";function EW(e){e=atob(e);const t=[];for(let r=0;r0&&Array.isArray(e)?i(e,t-1):r.push(e)}))};return i(e,t),r}function SW(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,o=[0,1];for(let w=1;w>--u&1}const h=Math.pow(2,31),d=h>>>1,f=d>>1,p=h-1;let m=0;for(let w=0;w<31;w++)m=m<<1|c();let g=[],y=0,v=h;for(;;){let e=Math.floor(((m-y+1)*i-1)/v),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e>>1|c(),s=s<<1^d,a=(a^d)<<1|d|1;y=s,v=1+a-s}let b=n-4;return g.map((t=>{switch(t-b){case 3:return b+65792+(e[a++]<<16|e[a++]<<8|e[a++]);case 2:return b+256+(e[a++]<<8|e[a++]);case 1:return b+e[a++];default:return t-1}}))}(e))}function xW(e){return 1&e?~e>>1:e>>1}function kW(e,t){let r=Array(e);for(let n=0,i=-1;nt[e])):r}function IW(e,t,r){let n=Array(e).fill(void 0).map((()=>[]));for(let i=0;in[t].push(e)));return n}function NW(e,t){let r=1+t(),n=t(),i=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(r)}return t}(t);return MW(IW(i.length,1+e,t).map(((e,t)=>{const o=e[0],s=e.slice(1);return Array(i[t]).fill(void 0).map(((e,t)=>{let i=t*n;return[o+t*r,s.map((e=>e+i))]}))})))}function RW(e,t){return IW(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}const PW=SW(EW("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIP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l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),DW=new Set(CW(PW)),LW=new Set(CW(PW)),OW=function(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(NW(r,e))}for(;;){let r=e()-1;if(r<0)break;t.push(RW(r,e))}return function(e){const t={};for(let r=0;re-t));return function r(){let n=[];for(;;){let i=CW(e,t);if(0==i.length)break;n.push({set:new Set(i),node:r()})}n.sort(((e,t)=>t.set.size-e.set.size));let i=e(),o=i%3;i=i/3|0;let s=!!(1&i);return i>>=1,{branches:n,valid:o,fe0f:s,save:1==i,check:2==i}}()}(PW);function BW(e){return Xq(e)}function UW(e){return e.filter((e=>65039!=e))}function FW(e){for(let t of e.split(".")){let e=BW(t);try{for(let t=e.lastIndexOf(95)-1;t>=0;t--)if(95!==e[t])throw new Error("underscore only allowed at start");if(e.length>=4&&e.every((e=>e<128))&&45===e[2]&&45===e[3])throw new Error("invalid label extension")}catch(dVe){throw new Error(`Invalid label "${t}": ${dVe.message}`)}}return e}function zW(e){return FW(function(e,t){let r=BW(e).reverse(),n=[];for(;r.length;){let e=HW(r);if(e){n.push(...t(e));continue}let i=r.pop();if(DW.has(i)){n.push(i);continue}if(LW.has(i))continue;let o=OW[i];if(!o)throw new Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`);n.push(...o)}return FW(function(e){return e.normalize("NFC")}(String.fromCodePoint(...n)))}(e,UW))}function HW(e,t){var r;let n,i,o=jW,s=[],a=e.length;for(t&&(t.length=0);a;){let u=e[--a];if(o=null===(r=o.branches.find((e=>e.set.has(u))))||void 0===r?void 0:r.node,!o)break;if(o.save)i=u;else if(o.check&&u===i)break;s.push(u),o.fe0f&&(s.push(65039),a>0&&65039==e[a-1]&&a--),o.valid&&(n=s.slice(),2==o.valid&&n.splice(1,1),t&&t.push(...e.slice(a).reverse()),e.length=a)}return n}const GW=new vY(_W),YW=new Uint8Array(32);function KW(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function qW(e){const t=Vq(zW(e)),r=[];if(0===e.length)return r;let n=0;for(let i=0;i=t.length)throw new Error("invalid ENS name; empty component");return r.push(KW(t.slice(n))),r}function WW(e){try{return 0!==qW(e).length}catch(XMe){}return!1}function VW(e){"string"!=typeof e&&GW.throwArgumentError("invalid ENS name; not a string","name",e);let t=YW;const r=qW(e);for(;r.length;)t=eq(xY([t,eq(r.pop())]));return NY(t)}function $W(e){return NY(xY(qW(e).map((e=>{if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"}YW.fill(0);function QW(e){return"string"==typeof e&&(e=Vq(e)),eq(xY([Vq("\x19Ethereum Signed Message:\n"),Vq(String(e.length)),e]))}var JW=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const ZW=new vY(_W),XW=new Uint8Array(32);XW.fill(0);const eV=qY.from(-1),tV=qY.from(0),rV=qY.from(1),nV=qY.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const iV=jY(rV.toHexString(),32),oV=jY(tV.toHexString(),32),sV={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},aV=["name","version","chainId","verifyingContract","salt"];function uV(e){return function(t){return"string"!=typeof t&&ZW.throwArgumentError(`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const lV={name:uV("name"),version:uV("version"),chainId:function(e){try{return qY.from(e).toString()}catch(XMe){}return ZW.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return pq(e).toLowerCase()}catch(XMe){}return ZW.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{const t=SY(e);if(32!==t.length)throw new Error("bad length");return NY(t)}catch(XMe){}return ZW.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function cV(e){{const t=e.match(/^(u?)int(\d*)$/);if(t){const r=""===t[1],n=parseInt(t[2]||"256");(n%8!=0||n>256||t[2]&&t[2]!==String(n))&&ZW.throwArgumentError("invalid numeric width","type",e);const i=nV.mask(r?n-1:n),o=r?i.add(rV).mul(eV):tV;return function(t){const r=qY.from(t);return(r.lt(o)||r.gt(i))&&ZW.throwArgumentError(`value out-of-bounds for ${e}`,"value",t),jY(r.toTwos(256).toHexString(),32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const r=parseInt(t[1]);return(0===r||r>32||t[1]!==String(r))&&ZW.throwArgumentError("invalid bytes width","type",e),function(t){return SY(t).length!==r&&ZW.throwArgumentError(`invalid length for ${e}`,"value",t),function(e){const t=SY(e),r=t.length%32;return r?DY([t,XW.slice(r)]):NY(t)}(t)}}}switch(e){case"address":return function(e){return jY(pq(e),32)};case"bool":return function(e){return e?iV:oV};case"bytes":return function(e){return eq(e)};case"string":return function(e){return wW(e)}}return null}function hV(e,t){return`${e}(${t.map((({name:e,type:t})=>t+" "+e)).join(",")})`}class dV{constructor(e){dK(this,"types",Object.freeze(wK(e))),dK(this,"_encoderCache",{}),dK(this,"_types",{});const t={},r={},n={};Object.keys(e).forEach((e=>{t[e]={},r[e]=[],n[e]={}}));for(const o in e){const n={};e[o].forEach((i=>{n[i.name]&&ZW.throwArgumentError(`duplicate variable name ${JSON.stringify(i.name)} in ${JSON.stringify(o)}`,"types",e),n[i.name]=!0;const s=i.type.match(/^([^\x5b]*)(\x5b|$)/)[1];s===o&&ZW.throwArgumentError(`circular type reference to ${JSON.stringify(s)}`,"types",e);cV(s)||(r[s]||ZW.throwArgumentError(`unknown type ${JSON.stringify(s)}`,"types",e),r[s].push(o),t[o][s]=!0)}))}const i=Object.keys(r).filter((e=>0===r[e].length));0===i.length?ZW.throwArgumentError("missing primary type","types",e):i.length>1&&ZW.throwArgumentError(`ambiguous primary types or unused types: ${i.map((e=>JSON.stringify(e))).join(", ")}`,"types",e),dK(this,"primaryType",i[0]),function i(o,s){s[o]&&ZW.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",e),s[o]=!0,Object.keys(t[o]).forEach((e=>{r[e]&&(i(e,s),Object.keys(s).forEach((t=>{n[t][e]=!0})))})),delete s[o]}(this.primaryType,{});for(const o in n){const t=Object.keys(n[o]);t.sort(),this._types[o]=hV(o,e[o])+t.map((t=>hV(t,e[t]))).join("")}}getEncoder(e){let t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}_getEncoder(e){{const t=cV(e);if(t)return t}const t=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(t){const e=t[1],r=this.getEncoder(e),n=parseInt(t[3]);return t=>{n>=0&&t.length!==n&&ZW.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);let i=t.map(r);return this._types[e]&&(i=i.map(eq)),eq(DY(i))}}const r=this.types[e];if(r){const t=wW(this._types[e]);return e=>{const n=r.map((({name:t,type:r})=>{const n=this.getEncoder(r)(e[t]);return this._types[r]?eq(n):n}));return n.unshift(t),DY(n)}}return ZW.throwArgumentError(`unknown type: ${e}`,"type",e)}encodeType(e){const t=this._types[e];return t||ZW.throwArgumentError(`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return eq(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,r){if(cV(e))return r(e,t);const n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){const e=n[1],i=parseInt(n[3]);return i>=0&&t.length!==i&&ZW.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((t=>this._visit(e,t,r)))}const i=this.types[e];return i?i.reduce(((e,{name:n,type:i})=>(e[n]=this._visit(i,t[n],r),e)),{}):ZW.throwArgumentError(`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new dV(e)}static getPrimaryType(e){return dV.from(e).primaryType}static hashStruct(e,t,r){return dV.from(t).hashStruct(e,r)}static hashDomain(e){const t=[];for(const r in e){const n=sV[r];n||ZW.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(r)}`,"domain",e),t.push({name:r,type:n})}return t.sort(((e,t)=>aV.indexOf(e.name)-aV.indexOf(t.name))),dV.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,r){return DY(["0x1901",dV.hashDomain(e),dV.from(t).hash(r)])}static hash(e,t,r){return eq(dV.encode(e,t,r))}static resolveNames(e,t,r,n){return JW(this,void 0,void 0,(function*(){e=gK(e);const i={};e.verifyingContract&&!CY(e.verifyingContract,20)&&(i[e.verifyingContract]="0x");const o=dV.from(t);o.visit(r,((e,t)=>("address"!==e||CY(t,20)||(i[t]="0x"),t)));for(const e in i)i[e]=yield n(e);return e.verifyingContract&&i[e.verifyingContract]&&(e.verifyingContract=i[e.verifyingContract]),r=o.visit(r,((e,t)=>"address"===e&&i[t]?i[t]:t)),{domain:e,value:r}}))}static getPayload(e,t,r){dV.hashDomain(e);const n={},i=[];aV.forEach((t=>{const r=e[t];null!=r&&(n[t]=lV[t](r),i.push({name:t,type:sV[t]}))}));const o=dV.from(t),s=gK(t);return s.EIP712Domain?ZW.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",t):s.EIP712Domain=i,o.encode(r),{types:s,domain:n,primaryType:o.primaryType,message:o.visit(r,((e,t)=>{if(e.match(/^bytes(\d*)/))return NY(SY(t));if(e.match(/^u?int/))return qY.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&ZW.throwArgumentError("invalid string","value",t),t}return ZW.throwArgumentError("unsupported type","type",e)}))}}}const fV=new vY(EK);class pV extends _K{}class mV extends _K{}class gV extends _K{}class yV extends _K{static isIndexed(e){return!(!e||!e._isIndexed)}}const vV={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function bV(e,t){const r=new Error(`deferred error during ABI decoding triggered accessing ${e}`);return r.error=t,r}class wV{constructor(e){let t=[];t="string"==typeof e?JSON.parse(e):e,dK(this,"fragments",t.map((e=>DK.from(e))).filter((e=>null!=e))),dK(this,"_abiCoder",fK(new.target,"getAbiCoder")()),dK(this,"functions",{}),dK(this,"errors",{}),dK(this,"events",{}),dK(this,"structs",{}),this.fragments.forEach((e=>{let t=null;switch(e.type){case"constructor":return this.deploy?void fV.warn("duplicate definition - constructor"):void dK(this,"deploy",e);case"function":t=this.functions;break;case"event":t=this.events;break;case"error":t=this.errors;break;default:return}let r=e.format();t[r]?fV.warn("duplicate definition - "+r):t[r]=e})),this.deploy||dK(this,"deploy",UK.from({payable:!1,type:"constructor"})),dK(this,"_isInterface",!0)}format(e){e||(e=IK.full),e===IK.sighash&&fV.throwArgumentError("interface does not support formatting sighash","format",e);const t=this.fragments.map((t=>t.format(e)));return e===IK.json?JSON.stringify(t.map((e=>JSON.parse(e)))):t}static getAbiCoder(){return bW}static getAddress(e){return pq(e)}static getSighash(e){return PY(wW(e.format()),0,4)}static getEventTopic(e){return wW(e.format())}getFunction(e){if(CY(e)){for(const t in this.functions)if(e===this.getSighash(t))return this.functions[t];fV.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.functions).filter((e=>e.split("(")[0]===t));return 0===r.length?fV.throwArgumentError("no matching function","name",t):r.length>1&&fV.throwArgumentError("multiple matching functions","name",t),this.functions[r[0]]}const t=this.functions[FK.fromString(e).format()];return t||fV.throwArgumentError("no matching function","signature",e),t}getEvent(e){if(CY(e)){const t=e.toLowerCase();for(const e in this.events)if(t===this.getEventTopic(e))return this.events[e];fV.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.events).filter((e=>e.split("(")[0]===t));return 0===r.length?fV.throwArgumentError("no matching event","name",t):r.length>1&&fV.throwArgumentError("multiple matching events","name",t),this.events[r[0]]}const t=this.events[LK.fromString(e).format()];return t||fV.throwArgumentError("no matching event","signature",e),t}getError(e){if(CY(e)){const t=fK(this.constructor,"getSighash");for(const r in this.errors){if(e===t(this.errors[r]))return this.errors[r]}fV.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){const t=e.trim(),r=Object.keys(this.errors).filter((e=>e.split("(")[0]===t));return 0===r.length?fV.throwArgumentError("no matching error","name",t):r.length>1&&fV.throwArgumentError("multiple matching errors","name",t),this.errors[r[0]]}const t=this.errors[FK.fromString(e).format()];return t||fV.throwArgumentError("no matching error","signature",e),t}getSighash(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(XMe){try{e=this.getError(e)}catch(jh){throw XMe}}return fK(this.constructor,"getSighash")(e)}getEventTopic(e){return"string"==typeof e&&(e=this.getEvent(e)),fK(this.constructor,"getEventTopic")(e)}_decodeParams(e,t){return this._abiCoder.decode(e,t)}_encodeParams(e,t){return this._abiCoder.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){"string"==typeof e&&(e=this.getError(e));const r=SY(t);return NY(r.slice(0,4))!==this.getSighash(e)&&fV.throwArgumentError(`data signature does not match error ${e.name}.`,"data",NY(r)),this._decodeParams(e.inputs,r.slice(4))}encodeErrorResult(e,t){return"string"==typeof e&&(e=this.getError(e)),NY(xY([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionData(e,t){"string"==typeof e&&(e=this.getFunction(e));const r=SY(t);return NY(r.slice(0,4))!==this.getSighash(e)&&fV.throwArgumentError(`data signature does not match function ${e.name}.`,"data",NY(r)),this._decodeParams(e.inputs,r.slice(4))}encodeFunctionData(e,t){return"string"==typeof e&&(e=this.getFunction(e)),NY(xY([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}decodeFunctionResult(e,t){"string"==typeof e&&(e=this.getFunction(e));let r=SY(t),n=null,i="",o=null,s=null,a=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(XMe){}break;case 4:{const e=NY(r.slice(0,4)),t=vV[e];if(t)o=this._abiCoder.decode(t.inputs,r.slice(4)),s=t.name,a=t.signature,t.reason&&(n=o[0]),"Error"===s?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}`:"Panic"===s&&(i=`; VM Exception while processing transaction: reverted with panic code ${o[0]}`);else try{const t=this.getError(e);o=this._abiCoder.decode(t.inputs,r.slice(4)),s=t.name,a=t.format()}catch(XMe){}break}}return fV.throwError("call revert exception"+i,vY.errors.CALL_EXCEPTION,{method:e.format(),data:NY(t),errorArgs:o,errorName:s,errorSignature:a,reason:n})}encodeFunctionResult(e,t){return"string"==typeof e&&(e=this.getFunction(e)),NY(this._abiCoder.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&fV.throwError("too many arguments for "+e.format(),vY.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});let r=[];e.anonymous||r.push(this.getEventTopic(e));const n=(e,t)=>"string"===e.type?wW(t):"bytes"===e.type?eq(NY(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=qY.from(t).toHexString()),"address"===e.type&&this._abiCoder.encode(["address"],[t]),jY(NY(t),32));for(t.forEach(((t,i)=>{let o=e.inputs[i];o.indexed?null==t?r.push(null):"array"===o.baseType||"tuple"===o.baseType?fV.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?r.push(t.map((e=>n(o,e)))):r.push(n(o,t)):null!=t&&fV.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)}));r.length&&null===r[r.length-1];)r.pop();return r}encodeEventLog(e,t){"string"==typeof e&&(e=this.getEvent(e));const r=[],n=[],i=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&fV.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach(((e,o)=>{const s=t[o];if(e.indexed)if("string"===e.type)r.push(wW(s));else if("bytes"===e.type)r.push(eq(s));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");r.push(this._abiCoder.encode([e.type],[s]))}else n.push(e),i.push(s)})),{data:this._abiCoder.encode(n,i),topics:r}}decodeEventLog(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){let t=this.getEventTopic(e);CY(r[0],32)&&r[0].toLowerCase()===t||fV.throwError("fragment/topic mismatch",vY.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:t,value:r[0]}),r=r.slice(1)}let n=[],i=[],o=[];e.inputs.forEach(((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(n.push(RK.fromObject({type:"bytes32",name:e.name})),o.push(!0)):(n.push(e),o.push(!1)):(i.push(e),o.push(!1))}));let s=null!=r?this._abiCoder.decode(n,xY(r)):null,a=this._abiCoder.decode(i,t,!0),u=[],l=0,c=0;e.inputs.forEach(((e,t)=>{if(e.indexed)if(null==s)u[t]=new yV({_isIndexed:!0,hash:null});else if(o[t])u[t]=new yV({_isIndexed:!0,hash:s[c++]});else try{u[t]=s[c++]}catch(XMe){u[t]=XMe}else try{u[t]=a[l++]}catch(XMe){u[t]=XMe}if(e.name&&null==u[e.name]){const r=u[t];r instanceof Error?Object.defineProperty(u,e.name,{enumerable:!0,get:()=>{throw bV(`property ${JSON.stringify(e.name)}`,r)}}):u[e.name]=r}}));for(let h=0;h{throw bV(`index ${h}`,e)}})}return Object.freeze(u)}parseTransaction(e){let t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new mV({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:qY.from(e.value||"0")}):null}parseLog(e){let t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new pV({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}parseError(e){const t=NY(e);let r=this.getError(t.substring(0,10).toLowerCase());return r?new gV({args:this._abiCoder.decode(r.inputs,"0x"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}static isInterface(e){return!(!e||!e._isInterface)}}var _V=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const EV=new vY("abstract-provider/5.7.0");class AV extends _K{static isForkEvent(e){return!(!e||!e._isForkEvent)}}class MV{constructor(){EV.checkAbstract(new.target,MV),dK(this,"_isProvider",!0)}getFeeData(){return _V(this,void 0,void 0,(function*(){const{block:e,gasPrice:t}=yield pK({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((e=>null))});let r=null,n=null,i=null;return e&&e.baseFeePerGas&&(r=e.baseFeePerGas,i=qY.from("1500000000"),n=e.baseFeePerGas.mul(2).add(i)),{lastBaseFeePerGas:r,maxFeePerGas:n,maxPriorityFeePerGas:i,gasPrice:t}}))}addListener(e,t){return this.on(e,t)}removeListener(e,t){return this.off(e,t)}static isProvider(e){return!(!e||!e._isProvider)}}var SV=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const xV=new vY("abstract-signer/5.7.0"),kV=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],TV=[vY.errors.INSUFFICIENT_FUNDS,vY.errors.NONCE_EXPIRED,vY.errors.REPLACEMENT_UNDERPRICED];class CV{constructor(){xV.checkAbstract(new.target,CV),dK(this,"_isSigner",!0)}getBalance(e){return SV(this,void 0,void 0,(function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),e)}))}getTransactionCount(e){return SV(this,void 0,void 0,(function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),e)}))}estimateGas(e){return SV(this,void 0,void 0,(function*(){this._checkProvider("estimateGas");const t=yield pK(this.checkTransaction(e));return yield this.provider.estimateGas(t)}))}call(e,t){return SV(this,void 0,void 0,(function*(){this._checkProvider("call");const r=yield pK(this.checkTransaction(e));return yield this.provider.call(r,t)}))}sendTransaction(e){return SV(this,void 0,void 0,(function*(){this._checkProvider("sendTransaction");const t=yield this.populateTransaction(e),r=yield this.signTransaction(t);return yield this.provider.sendTransaction(r)}))}getChainId(){return SV(this,void 0,void 0,(function*(){this._checkProvider("getChainId");return(yield this.provider.getNetwork()).chainId}))}getGasPrice(){return SV(this,void 0,void 0,(function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()}))}getFeeData(){return SV(this,void 0,void 0,(function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()}))}resolveName(e){return SV(this,void 0,void 0,(function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(e)}))}checkTransaction(e){for(const r in e)-1===kV.indexOf(r)&&xV.throwArgumentError("invalid transaction key: "+r,"transaction",e);const t=gK(e);return null==t.from?t.from=this.getAddress():t.from=Promise.all([Promise.resolve(t.from),this.getAddress()]).then((t=>(t[0].toLowerCase()!==t[1].toLowerCase()&&xV.throwArgumentError("from address mismatch","transaction",e),t[0]))),t}populateTransaction(e){return SV(this,void 0,void 0,(function*(){const t=yield pK(this.checkTransaction(e));null!=t.to&&(t.to=Promise.resolve(t.to).then((e=>SV(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.resolveName(e);return null==t&&xV.throwArgumentError("provided ENS name resolves to null","tx.to",e),t})))),t.to.catch((e=>{})));const r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas;if(null==t.gasPrice||2!==t.type&&!r?0!==t.type&&1!==t.type||!r||xV.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):xV.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==t.type&&null!=t.type||null==t.maxFeePerGas||null==t.maxPriorityFeePerGas)if(0===t.type||1===t.type)null==t.gasPrice&&(t.gasPrice=this.getGasPrice());else{const e=yield this.getFeeData();if(null==t.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(t.type=2,null!=t.gasPrice){const e=t.gasPrice;delete t.gasPrice,t.maxFeePerGas=e,t.maxPriorityFeePerGas=e}else null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?(r&&xV.throwError("network does not support EIP-1559",vY.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=e.gasPrice),t.type=0):xV.throwError("failed to get consistent fee data",vY.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else t.type=2;return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch((e=>{if(TV.indexOf(e.code)>=0)throw e;return xV.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",vY.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})}))),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then((t=>(0!==t[1]&&t[0]!==t[1]&&xV.throwArgumentError("chainId address mismatch","transaction",e),t[0]))),yield pK(t)}))}_checkProvider(e){this.provider||xV.throwError("missing provider",vY.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}static isSigner(e){return!(!e||!e._isSigner)}}class IV extends CV{constructor(e,t){super(),dK(this,"address",e),dK(this,"provider",t||null)}getAddress(){return Promise.resolve(this.address)}_fail(e,t){return Promise.resolve().then((()=>{xV.throwError(e,vY.errors.UNSUPPORTED_OPERATION,{operation:t})}))}signMessage(e){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(e){return new IV(this.address,e)}}var NV=r(21896),RV=r.n(NV),PV=r(30584),DV=r.n(PV);"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;function LV(e,t,r){return r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},e(r,r.exports),r.exports}var OV=jV;function jV(e,t){if(!e)throw new Error(t||"Assertion failed")}jV.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var BV=LV((function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",r=0;r>8,s=255&i;o?r.push(o,s):r.push(s)}return r},r.zero2=n,r.toHex=i,r.encode=function(e,t){return"hex"===t?i(e):e}})),UV=LV((function(e,t){var r=t;r.assert=OV,r.toArray=BV.toArray,r.zero2=BV.zero2,r.toHex=BV.toHex,r.encode=BV.encode,r.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-u:u,o.isubn(a)):a=0,n[s]=a,o.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var s,a,u=e.andln(3)+i&3,l=t.andln(3)+o&3;3===u&&(u=-1),3===l&&(l=-1),s=0==(1&u)?0:3!==(n=e.andln(7)+i&7)&&5!==n||2!==l?u:-u,r[0].push(s),a=0==(1&l)?0:3!==(n=t.andln(7)+o&7)&&5!==n||2!==u?l:-l,r[1].push(a),2*i===s+1&&(i=1-i),2*o===a+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"==typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new(RV())(e,"hex","le")}})),FV=UV.getNAF,zV=UV.getJSF,HV=UV.assert;function GV(e,t){this.type=e,this.p=new(RV())(t.p,16),this.red=t.prime?RV().red(t.prime):RV().mont(this.p),this.zero=new(RV())(0).toRed(this.red),this.one=new(RV())(1).toRed(this.red),this.two=new(RV())(2).toRed(this.red),this.n=t.n&&new(RV())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var YV=GV;function KV(e,t){this.curve=e,this.type=t,this.precomputed=null}GV.prototype.point=function(){throw new Error("Not implemented")},GV.prototype.validate=function(){throw new Error("Not implemented")},GV.prototype._fixedNafMul=function(e,t){HV(e.precomputed);var r=e._getDoubles(),n=FV(t,1,this._bitLength),i=(1<=o;u--)s=(s<<1)+n[u];a.push(s)}for(var l=this.jpoint(null,null,null),c=this.jpoint(null,null,null),h=i;h>0;h--){for(o=0;o=0;a--){for(var u=0;a>=0&&0===o[a];a--)u++;if(a>=0&&u++,s=s.dblp(u),a<0)break;var l=o[a];HV(0!==l),s="affine"===e.type?l>0?s.mixedAdd(i[l-1>>1]):s.mixedAdd(i[-l-1>>1].neg()):l>0?s.add(i[l-1>>1]):s.add(i[-l-1>>1].neg())}return"affine"===e.type?s.toP():s},GV.prototype._wnafMulAdd=function(e,t,r,n,i){var o,s,a,u=this._wnafT1,l=this._wnafT2,c=this._wnafT3,h=0;for(o=0;o=1;o-=2){var f=o-1,p=o;if(1===u[f]&&1===u[p]){var m=[t[f],null,null,t[p]];0===t[f].y.cmp(t[p].y)?(m[1]=t[f].add(t[p]),m[2]=t[f].toJ().mixedAdd(t[p].neg())):0===t[f].y.cmp(t[p].y.redNeg())?(m[1]=t[f].toJ().mixedAdd(t[p]),m[2]=t[f].add(t[p].neg())):(m[1]=t[f].toJ().mixedAdd(t[p]),m[2]=t[f].toJ().mixedAdd(t[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],y=zV(r[f],r[p]);for(h=Math.max(y[0].length,h),c[f]=new Array(h),c[p]=new Array(h),s=0;s=0;o--){for(var E=0;o>=0;){var A=!0;for(s=0;s=0&&E++,w=w.dblp(E),o<0)break;for(s=0;s0?a=l[s][M-1>>1]:M<0&&(a=l[s][-M-1>>1].neg()),w="affine"===a.type?w.mixedAdd(a):w.add(a))}}for(o=0;o=Math.ceil((e.bitLength()+1)/t.step)},KV.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(o=t,s=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:n,b:i},{a:o,b:s}]},VV.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),s=i.mul(r.a),a=o.mul(n.a),u=i.mul(r.b),l=o.mul(n.b);return{k1:e.sub(s).sub(a),k2:u.add(l).neg()}},VV.prototype.pointFromX=function(e,t){(e=new(RV())(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},VV.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},VV.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},QV.prototype.isInfinity=function(){return this.inf},QV.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},QV.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),s=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,s)},QV.prototype.getX=function(){return this.x.fromRed()},QV.prototype.getY=function(){return this.y.fromRed()},QV.prototype.mul=function(e){return e=new(RV())(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},QV.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},QV.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},QV.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},QV.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},QV.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},qV(JV,YV.BasePoint),VV.prototype.jpoint=function(e,t,r){return new JV(this,e,t,r)},JV.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},JV.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},JV.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),s=e.y.redMul(r.redMul(this.z)),a=n.redSub(i),u=o.redSub(s);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),c=l.redMul(a),h=n.redMul(l),d=u.redSqr().redIAdd(c).redISub(h).redISub(h),f=u.redMul(h.redISub(d)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(d,f,p)},JV.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),s=r.redSub(n),a=i.redSub(o);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),l=u.redMul(s),c=r.redMul(u),h=a.redSqr().redIAdd(l).redISub(c).redISub(c),d=a.redMul(c.redISub(h)).redISub(i.redMul(l)),f=this.z.redMul(s);return this.curve.jpoint(h,d,f)},JV.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},JV.prototype.inspect=function(){return this.isInfinity()?"":""},JV.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var ZV=LV((function(e,t){var r=t;r.base=YV,r.short=$V,r.mont=null,r.edwards=null})),XV=LV((function(e,t){var r,n=t,i=UV.assert;function o(e){"short"===e.type?this.curve=new ZV.short(e):"edwards"===e.type?this.curve=new ZV.edwards(e):this.curve=new ZV.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function s(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new o(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=o,s("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:DV().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),s("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:DV().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),s("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:DV().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),s("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:DV().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),s("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:DV().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),s("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:DV().sha256,gRed:!1,g:["9"]}),s("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:DV().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(fVe){r=void 0}s("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:DV().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function e$(e){if(!(this instanceof e$))return new e$(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=BV.toArray(e.entropy,e.entropyEnc||"hex"),r=BV.toArray(e.nonce,e.nonceEnc||"hex"),n=BV.toArray(e.pers,e.persEnc||"hex");OV(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var t$=e$;e$.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},e$.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=BV.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length"};var o$=UV.assert;function s$(e,t){if(e instanceof s$)return e;this._importDER(e,t)||(o$(e.r&&e.s,"Signature without r or s"),this.r=new(RV())(e.r,16),this.s=new(RV())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var a$=s$;function u$(){this.place=0}function l$(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var i=0,o=0,s=t.place;o>>=0;return!(i<=127)&&(t.place=s,i)}function c$(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}s$.prototype._importDER=function(e,t){e=UV.toArray(e,t);var r=new u$;if(48!==e[r.place++])return!1;var n=l$(e,r);if(!1===n)return!1;if(n+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var i=l$(e,r);if(!1===i)return!1;var o=e.slice(r.place,i+r.place);if(r.place+=i,2!==e[r.place++])return!1;var s=l$(e,r);if(!1===s)return!1;if(e.length!==s+r.place)return!1;var a=e.slice(r.place,s+r.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}return this.r=new(RV())(o),this.s=new(RV())(a),this.recoveryParam=null,!0},s$.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=c$(t),r=c$(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];h$(n,t.length),(n=n.concat(t)).push(2),h$(n,r.length);var i=n.concat(r),o=[48];return h$(o,i.length),o=o.concat(i),UV.encode(o,e)};var d$=function(){throw new Error("unsupported")},f$=UV.assert;function p$(e){if(!(this instanceof p$))return new p$(e);"string"==typeof e&&(f$(Object.prototype.hasOwnProperty.call(XV,e),"Unknown curve "+e),e=XV[e]),e instanceof XV.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var m$=p$;p$.prototype.keyPair=function(e){return new i$(this,e)},p$.prototype.keyFromPrivate=function(e,t){return i$.fromPrivate(this,e,t)},p$.prototype.keyFromPublic=function(e,t){return i$.fromPublic(this,e,t)},p$.prototype.genKeyPair=function(e){e||(e={});for(var t=new t$({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||d$(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(RV())(2));;){var i=new(RV())(t.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},p$.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},p$.prototype.sign=function(e,t,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new(RV())(e,16));for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),s=e.toArray("be",i),a=new t$({hash:this.hash,entropy:o,nonce:s,pers:n.pers,persEnc:n.persEnc||"utf8"}),u=this.n.sub(new(RV())(1)),l=0;;l++){var c=n.k?n.k(l):new(RV())(a.generate(this.n.byteLength()));if(!((c=this._truncateToN(c,!0)).cmpn(1)<=0||c.cmp(u)>=0)){var h=this.g.mul(c);if(!h.isInfinity()){var d=h.getX(),f=d.umod(this.n);if(0!==f.cmpn(0)){var p=c.invm(this.n).mul(f.mul(t.getPrivate()).iadd(e));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==d.cmp(f)?2:0);return n.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),m^=1),new a$({r:f,s:p,recoveryParam:m})}}}}}},p$.prototype.verify=function(e,t,r,n){e=this._truncateToN(new(RV())(e,16)),r=this.keyFromPublic(r,n);var i=(t=new a$(t,"hex")).r,o=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,a=o.invm(this.n),u=a.mul(e).umod(this.n),l=a.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,r.getPublic(),l)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(u,r.getPublic(),l)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},p$.prototype.recoverPubKey=function(e,t,r,n){f$((3&r)===r,"The recovery param is more than two bits"),t=new a$(t,n);var i=this.n,o=new(RV())(e),s=t.r,a=t.s,u=1&r,l=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),u):this.curve.pointFromX(s,u);var c=t.r.invm(i),h=i.sub(o).mul(c).umod(i),d=a.mul(c).umod(i);return this.g.mulAdd(h,s,d)},p$.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new a$(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")};var g$=LV((function(e,t){var r=t;r.version="6.5.4",r.utils=UV,r.rand=function(){throw new Error("unsupported")},r.curve=ZV,r.curves=XV,r.ec=m$,r.eddsa=null})).ec;const y$=new vY("signing-key/5.7.0");let v$=null;function b$(){return v$||(v$=new g$("secp256k1")),v$}class w${constructor(e){dK(this,"curve","secp256k1"),dK(this,"privateKey",NY(e)),32!==RY(this.privateKey)&&y$.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const t=b$().keyFromPrivate(SY(this.privateKey));dK(this,"publicKey","0x"+t.getPublic(!1,"hex")),dK(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),dK(this,"_isSigningKey",!0)}_addPoint(e){const t=b$().keyFromPublic(SY(this.publicKey)),r=b$().keyFromPublic(SY(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}signDigest(e){const t=b$().keyFromPrivate(SY(this.privateKey)),r=SY(e);32!==r.length&&y$.throwArgumentError("bad digest length","digest",e);const n=t.sign(r,{canonical:!0});return BY({recoveryParam:n.recoveryParam,r:jY("0x"+n.r.toString(16),32),s:jY("0x"+n.s.toString(16),32)})}computeSharedSecret(e){const t=b$().keyFromPrivate(SY(this.privateKey)),r=b$().keyFromPublic(SY(E$(e)));return jY("0x"+t.derive(r.getPublic()).toString(16),32)}static isSigningKey(e){return!(!e||!e._isSigningKey)}}function _$(e,t){const r=BY(t),n={r:SY(r.r),s:SY(r.s)};return"0x"+b$().recoverPubKey(SY(e),n,r.recoveryParam).encode("hex",!1)}function E$(e,t){const r=SY(e);if(32===r.length){const e=new w$(r);return t?"0x"+b$().keyFromPrivate(r).getPublic(!0,"hex"):e.publicKey}return 33===r.length?t?NY(r):"0x"+b$().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+b$().keyFromPublic(r).getPublic(!0,"hex"):NY(r):y$.throwArgumentError("invalid public or private key","key","[REDACTED]")}const A$=new vY("transactions/5.7.0");var M$;function S$(e){return"0x"===e?null:pq(e)}function x$(e){return"0x"===e?Rq:qY.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(M$||(M$={}));const k$=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],T$={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function C$(e){return pq(PY(eq(PY(E$(e),1)),12))}function I$(e,t){return C$(_$(SY(e),t))}function N$(e,t){const r=kY(qY.from(e).toHexString());return r.length>32&&A$.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function R$(e,t){return{address:pq(e),storageKeys:(t||[]).map(((t,r)=>(32!==RY(t)&&A$.throwArgumentError("invalid access list storageKey",`accessList[${e}:${r}]`,t),t.toLowerCase())))}}function P$(e){if(Array.isArray(e))return e.map(((e,t)=>Array.isArray(e)?(e.length>2&&A$.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${t}]`,e),R$(e[0],e[1])):R$(e.address,e.storageKeys)));const t=Object.keys(e).map((t=>{const r=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return R$(t,Object.keys(r).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}function D$(e){return P$(e).map((e=>[e.address,e.storageKeys]))}function L$(e,t){if(null!=e.gasPrice){const t=qY.from(e.gasPrice),r=qY.from(e.maxFeePerGas||0);t.eq(r)||A$.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:t,maxFeePerGas:r})}const r=[N$(e.chainId||0,"chainId"),N$(e.nonce||0,"nonce"),N$(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),N$(e.maxFeePerGas||0,"maxFeePerGas"),N$(e.gasLimit||0,"gasLimit"),null!=e.to?pq(e.to):"0x",N$(e.value||0,"value"),e.data||"0x",D$(e.accessList||[])];if(t){const e=BY(t);r.push(N$(e.recoveryParam,"recoveryParam")),r.push(kY(e.r)),r.push(kY(e.s))}return DY(["0x02",oq(r)])}function O$(e,t){const r=[N$(e.chainId||0,"chainId"),N$(e.nonce||0,"nonce"),N$(e.gasPrice||0,"gasPrice"),N$(e.gasLimit||0,"gasLimit"),null!=e.to?pq(e.to):"0x",N$(e.value||0,"value"),e.data||"0x",D$(e.accessList||[])];if(t){const e=BY(t);r.push(N$(e.recoveryParam,"recoveryParam")),r.push(kY(e.r)),r.push(kY(e.s))}return DY(["0x01",oq(r)])}function j$(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&A$.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){mK(e,T$);const r=[];k$.forEach((function(t){let n=e[t.name]||[];const i={};t.numeric&&(i.hexPad="left"),n=SY(NY(n,i)),t.length&&n.length!==t.length&&n.length>0&&A$.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=kY(n),n.length>t.maxLength&&A$.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n)),r.push(NY(n))}));let n=0;if(null!=e.chainId?(n=e.chainId,"number"!=typeof n&&A$.throwArgumentError("invalid transaction.chainId","transaction",e)):t&&!EY(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push(NY(n)),r.push("0x"),r.push("0x")),!t)return oq(r);const i=BY(t);let o=27+i.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),o+=2*n+8,i.v>28&&i.v!==o&&A$.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==o&&A$.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push(NY(o)),r.push(kY(SY(i.r))),r.push(kY(SY(i.s))),oq(r)}(e,t);switch(e.type){case 1:return O$(e,t);case 2:return L$(e,t)}return A$.throwError(`unsupported transaction type: ${e.type}`,vY.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function B$(e,t,r){try{const r=x$(t[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");e.v=r}catch(XMe){A$.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=jY(t[1],32),e.s=jY(t[2],32);try{const t=eq(r(e));e.from=I$(t,{r:e.r,s:e.s,recoveryParam:e.v})}catch(XMe){}}function U$(e){const t=SY(e);if(t[0]>127)return function(e){const t=uq(e);9!==t.length&&6!==t.length&&A$.throwArgumentError("invalid raw transaction","rawTransaction",e);const r={nonce:x$(t[0]).toNumber(),gasPrice:x$(t[1]),gasLimit:x$(t[2]),to:S$(t[3]),value:x$(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=qY.from(t[6]).toNumber()}catch(XMe){return r}if(r.r=jY(t[7],32),r.s=jY(t[8],32),qY.from(r.r).isZero()&&qY.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);let n=r.v-27;const i=t.slice(0,6);0!==r.chainId&&(i.push(NY(r.chainId)),i.push("0x"),i.push("0x"),n-=2*r.chainId+8);const o=eq(oq(i));try{r.from=I$(o,{r:NY(r.r),s:NY(r.s),recoveryParam:n})}catch(XMe){}r.hash=eq(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){const t=uq(e.slice(1));8!==t.length&&11!==t.length&&A$.throwArgumentError("invalid component count for transaction type: 1","payload",NY(e));const r={type:1,chainId:x$(t[0]).toNumber(),nonce:x$(t[1]).toNumber(),gasPrice:x$(t[2]),gasLimit:x$(t[3]),to:S$(t[4]),value:x$(t[5]),data:t[6],accessList:P$(t[7])};return 8===t.length||(r.hash=eq(e),B$(r,t.slice(8),O$)),r}(t);case 2:return function(e){const t=uq(e.slice(1));9!==t.length&&12!==t.length&&A$.throwArgumentError("invalid component count for transaction type: 2","payload",NY(e));const r=x$(t[2]),n=x$(t[3]),i={type:2,chainId:x$(t[0]).toNumber(),nonce:x$(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:x$(t[4]),to:S$(t[5]),value:x$(t[6]),data:t[7],accessList:P$(t[8])};return 9===t.length||(i.hash=eq(e),B$(i,t.slice(9),L$)),i}(t)}return A$.throwError(`unsupported transaction type: ${t[0]}`,vY.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}var F$=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const z$=new vY("contracts/5.7.0"),H$={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function G$(e,t){return F$(this,void 0,void 0,(function*(){const r=yield t;"string"!=typeof r&&z$.throwArgumentError("invalid address or ENS name","name",r);try{return pq(r)}catch(XMe){}e||z$.throwError("a provider or signer is needed to resolve ENS names",vY.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield e.resolveName(r);return null==n&&z$.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n}))}function Y$(e,t,r){return F$(this,void 0,void 0,(function*(){return Array.isArray(r)?yield Promise.all(r.map(((r,n)=>Y$(e,Array.isArray(t)?t[n]:t[r.name],r)))):"address"===r.type?yield G$(e,t):"tuple"===r.type?yield Y$(e,t,r.components):"array"===r.baseType?Array.isArray(t)?yield Promise.all(t.map((t=>Y$(e,t,r.arrayChildren)))):Promise.reject(z$.makeError("invalid value for array",vY.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t}))}function K$(e,t,r){return F$(this,void 0,void 0,(function*(){let n={};r.length===t.inputs.length+1&&"object"==typeof r[r.length-1]&&(n=gK(r.pop())),z$.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?n.from?n.from=pK({override:G$(e.signer,n.from),signer:e.signer.getAddress()}).then((e=>F$(this,void 0,void 0,(function*(){return pq(e.signer)!==e.override&&z$.throwError("Contract with a Signer cannot override from",vY.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})))):n.from=e.signer.getAddress():n.from&&(n.from=G$(e.provider,n.from));const i=yield pK({args:Y$(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:pK(n)||{}}),o=e.interface.encodeFunctionData(t,i.args),s={data:o,to:i.address},a=i.overrides;if(null!=a.nonce&&(s.nonce=qY.from(a.nonce).toNumber()),null!=a.gasLimit&&(s.gasLimit=qY.from(a.gasLimit)),null!=a.gasPrice&&(s.gasPrice=qY.from(a.gasPrice)),null!=a.maxFeePerGas&&(s.maxFeePerGas=qY.from(a.maxFeePerGas)),null!=a.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=qY.from(a.maxPriorityFeePerGas)),null!=a.from&&(s.from=a.from),null!=a.type&&(s.type=a.type),null!=a.accessList&&(s.accessList=P$(a.accessList)),null==s.gasLimit&&null!=t.gas){let e=21e3;const r=SY(o);for(let t=0;tnull!=n[e]));return u.length&&z$.throwError(`cannot override ${u.map((e=>JSON.stringify(e))).join(",")}`,vY.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:u}),s}))}function q$(e,t){const r=t.wait.bind(t);t.wait=t=>r(t).then((t=>(t.events=t.logs.map((r=>{let n=wK(r),i=null;try{i=e.interface.parseLog(r)}catch(fVe){}return i&&(n.args=i.args,n.decode=(t,r)=>e.interface.decodeEventLog(i.eventFragment,t,r),n.event=i.name,n.eventSignature=i.signature),n.removeListener=()=>e.provider,n.getBlock=()=>e.provider.getBlock(t.blockHash),n.getTransaction=()=>e.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(t),n})),t)))}function W$(e,t,r){const n=e.signer||e.provider;return function(...i){return F$(this,void 0,void 0,(function*(){let o;if(i.length===t.inputs.length+1&&"object"==typeof i[i.length-1]){const e=gK(i.pop());null!=e.blockTag&&(o=yield e.blockTag),delete e.blockTag,i.push(e)}null!=e.deployTransaction&&(yield e._deployed(o));const s=yield K$(e,t,i),a=yield n.call(s,o);try{let n=e.interface.decodeFunctionResult(t,a);return r&&1===t.outputs.length&&(n=n[0]),n}catch(XMe){throw XMe.code===vY.errors.CALL_EXCEPTION&&(XMe.address=e.address,XMe.args=i,XMe.transaction=s),XMe}}))}}function V$(e,t,r){return t.constant?W$(e,t,r):function(e,t){return function(...r){return F$(this,void 0,void 0,(function*(){e.signer||z$.throwError("sending a transaction requires a signer",vY.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());const n=yield K$(e,t,r),i=yield e.signer.sendTransaction(n);return q$(e,i),i}))}}(e,t)}function $$(e){return!e.address||null!=e.topics&&0!==e.topics.length?(e.address||"*")+"@"+(e.topics?e.topics.map((e=>Array.isArray(e)?e.join("|"):e)).join(":"):""):"*"}class Q${constructor(e,t){dK(this,"tag",e),dK(this,"filter",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter((r=>!(!t&&r.listener===e)||(t=!0,!1)))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map((e=>e.listener))}listenerCount(){return this._listeners.length}run(e){const t=this.listenerCount();return this._listeners=this._listeners.filter((t=>{const r=e.slice();return setTimeout((()=>{t.listener.apply(this,r)}),0),!t.once})),t}prepareEvent(e){}getEmit(e){return[e]}}class J$ extends Q${constructor(){super("error",null)}}class Z$ extends Q${constructor(e,t,r,n){const i={address:e};let o=t.getEventTopic(r);n?(o!==n[0]&&z$.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[o],super($$(i),i),dK(this,"address",e),dK(this,"interface",t),dK(this,"fragment",r)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(XMe){e.args=null,e.decodeError=XMe}}getEmit(e){const t=VK(e.args);if(t.length)throw t[0].error;const r=(e.args||[]).slice();return r.push(e),r}}class X$ extends Q${constructor(e,t){super("*",{address:e}),dK(this,"address",e),dK(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{const t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,r)=>this.interface.decodeEventLog(t.eventFragment,e,r),e.args=t.args}catch(XMe){}}}class eQ{constructor(e,t,r){dK(this,"interface",fK(new.target,"getInterface")(t)),null==r?(dK(this,"provider",null),dK(this,"signer",null)):CV.isSigner(r)?(dK(this,"provider",r.provider||null),dK(this,"signer",r)):MV.isProvider(r)?(dK(this,"provider",r),dK(this,"signer",null)):z$.throwArgumentError("invalid signer or provider","signerOrProvider",r),dK(this,"callStatic",{}),dK(this,"estimateGas",{}),dK(this,"functions",{}),dK(this,"populateTransaction",{}),dK(this,"filters",{});{const e={};Object.keys(this.interface.events).forEach((t=>{const r=this.interface.events[t];dK(this.filters,t,((...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,e)}))),e[r.name]||(e[r.name]=[]),e[r.name].push(t)})),Object.keys(e).forEach((t=>{const r=e[t];1===r.length?dK(this.filters,t,this.filters[r[0]]):z$.warn(`Duplicate definition of ${t} (${r.join(", ")})`)}))}if(dK(this,"_runningEvents",{}),dK(this,"_wrappedEmits",{}),null==e&&z$.throwArgumentError("invalid contract address or ENS name","addressOrName",e),dK(this,"address",e),this.provider)dK(this,"resolvedAddress",G$(this.provider,e));else try{dK(this,"resolvedAddress",Promise.resolve(pq(e)))}catch(XMe){z$.throwError("provider is required to use ENS name as contract address",vY.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((e=>{}));const n={},i={};Object.keys(this.interface.functions).forEach((e=>{const t=this.interface.functions[e];if(i[e])z$.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);else{i[e]=!0;{const r=t.name;n[`%${r}`]||(n[`%${r}`]=[]),n[`%${r}`].push(e)}null==this[e]&&dK(this,e,V$(this,t,!0)),null==this.functions[e]&&dK(this.functions,e,V$(this,t,!1)),null==this.callStatic[e]&&dK(this.callStatic,e,W$(this,t,!0)),null==this.populateTransaction[e]&&dK(this.populateTransaction,e,function(e,t){return function(...r){return K$(e,t,r)}}(this,t)),null==this.estimateGas[e]&&dK(this.estimateGas,e,function(e,t){const r=e.signer||e.provider;return function(...n){return F$(this,void 0,void 0,(function*(){r||z$.throwError("estimate require a provider or signer",vY.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield K$(e,t,n);return yield r.estimateGas(i)}))}}(this,t))}})),Object.keys(n).forEach((e=>{const t=n[e];if(t.length>1)return;e=e.substring(1);const r=t[0];try{null==this[e]&&dK(this,e,this[r])}catch(fVe){}null==this.functions[e]&&dK(this.functions,e,this.functions[r]),null==this.callStatic[e]&&dK(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&dK(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&dK(this.estimateGas,e,this.estimateGas[r])}))}static getContractAddress(e){return yq(e)}static getInterface(e){return wV.isInterface(e)?e:new wV(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((()=>this)):this._deployedPromise=this.provider.getCode(this.address,e).then((e=>("0x"===e&&z$.throwError("contract not deployed",vY.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this)))),this._deployedPromise}fallback(e){this.signer||z$.throwError("sending a transactions require a signer",vY.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const t=gK(e||{});return["from","to"].forEach((function(e){null!=t[e]&&z$.throwError("cannot override "+e,vY.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.to=this.resolvedAddress,this.deployed().then((()=>this.signer.sendTransaction(t)))}connect(e){"string"==typeof e&&(e=new IV(e,this.provider));const t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&dK(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return yV.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new J$);if("event"===e)return this._normalizeRunningEvent(new Q$("event",null));if("*"===e)return this._normalizeRunningEvent(new X$(this.address,this.interface));const t=this.interface.getEvent(e);return this._normalizeRunningEvent(new Z$(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{const t=e.topics[0];if("string"!=typeof t)throw new Error("invalid topic");const r=this.interface.getEvent(t);return this._normalizeRunningEvent(new Z$(this.address,this.interface,r,e.topics))}catch(XMe){}const t={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new Q$($$(t),t))}return this._normalizeRunningEvent(new X$(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];const t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,r){const n=wK(t);return n.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},n.getBlock=()=>this.provider.getBlock(t.blockHash),n.getTransaction=()=>this.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(n),n}_addEventListener(e,t,r){if(this.provider||z$.throwError("events require a provider or a signer with a provider",vY.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const r=r=>{let n=this._wrapEvent(e,r,t);if(null==n.decodeError)try{const t=e.getEmit(n);this.emit(e.filter,...t)}catch(XMe){n.decodeError=XMe.error}null!=e.filter&&this.emit("event",n),null!=n.decodeError&&this.emit("error",n.decodeError,n)};this._wrappedEmits[e.tag]=r,null!=e.filter&&this.provider.on(e.filter,r)}}queryFilter(e,t,r){const n=this._getRunningEvent(e),i=gK(n.filter);return"string"==typeof t&&CY(t,32)?(null!=r&&z$.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).then((e=>e.map((e=>this._wrapEvent(n,e,null)))))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e,...t){if(!this.provider)return!1;const r=this._getRunningEvent(e),n=r.run(t)>0;return this._checkRunningEvents(r),n}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce(((e,t)=>e+this._runningEvents[t].listenerCount()),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){const e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach((t=>{e.push(t)}));return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(const e in this._runningEvents){const t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}const t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;const r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class tQ extends eQ{}class rQ{constructor(e,t,r){let n=null;n="string"==typeof t?t:MY(t)?NY(t):t&&"string"==typeof t.object?t.object:"!","0x"!==n.substring(0,2)&&(n="0x"+n),(!CY(n)||n.length%2)&&z$.throwArgumentError("invalid bytecode","bytecode",t),r&&!CV.isSigner(r)&&z$.throwArgumentError("invalid signer","signer",r),dK(this,"bytecode",n),dK(this,"interface",fK(new.target,"getInterface")(e)),dK(this,"signer",r||null)}getDeployTransaction(...e){let t={};if(e.length===this.interface.deploy.inputs.length+1&&"object"==typeof e[e.length-1]){t=gK(e.pop());for(const e in t)if(!H$[e])throw new Error("unknown transaction override "+e)}if(["data","from","to"].forEach((e=>{null!=t[e]&&z$.throwError("cannot override "+e,vY.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.value){qY.from(t.value).isZero()||this.interface.deploy.payable||z$.throwError("non-payable constructor cannot override value",vY.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:t.value})}return z$.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),t.data=NY(xY([this.bytecode,this.interface.encodeDeploy(e)])),t}deploy(...e){return F$(this,void 0,void 0,(function*(){let t={};e.length===this.interface.deploy.inputs.length+1&&(t=e.pop()),z$.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");const r=yield Y$(this.signer,e,this.interface.deploy.inputs);r.push(t);const n=this.getDeployTransaction(...r),i=yield this.signer.sendTransaction(n),o=fK(this.constructor,"getContractAddress")(i),s=fK(this.constructor,"getContract")(o,this.interface,this.signer);return q$(s,i),dK(s,"deployTransaction",i),s}))}attach(e){return this.constructor.getContract(e,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,t){null==e&&z$.throwError("missing compiler output",vY.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof e&&(e=JSON.parse(e));const r=e.abi;let n=null;return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)}static getInterface(e){return tQ.getInterface(e)}static getContractAddress(e){return yq(e)}static getContract(e,t,r){return new tQ(e,t,r)}}class nQ{constructor(e){dK(this,"alphabet",e),dK(this,"base",e.length),dK(this,"_alphabetMap",{}),dK(this,"_leader",e.charAt(0));for(let t=0;t0;)r.push(e%this.base),e=e/this.base|0}let n="";for(let i=0;0===t[i]&&i=0;--i)n+=this.alphabet[r[i]];return n}decode(e){if("string"!=typeof e)throw new TypeError("Expected String");let t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(let r=0;r>=8;for(;i>0;)t.push(255&i),i>>=8}for(let r=0;e[r]===this._leader&&r>24&255,u[t.length+1]=h>>16&255,u[t.length+2]=h>>8&255,u[t.length+3]=255&h;let d=SY(cQ(i,e,u));o||(o=d.length,c=new Uint8Array(o),s=Math.ceil(n/o),l=n-(s-1)*o),c.set(d);for(let t=1;t=256)throw new Error("Depth too large!");return MQ(xY([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",NY(this.depth),this.parentFingerprint,jY(NY(this.index),4),this.chainCode,null!=this.privateKey?xY(["0x00",this.privateKey]):this.publicKey]))}neuter(){return new TQ(xQ,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}_derive(e){if(e>4294967295)throw new Error("invalid index - "+String(e));let t=this.path;t&&(t+="/"+(2147483647&e));const r=new Uint8Array(37);if(e&_Q){if(!this.privateKey)throw new Error("cannot derive child of neutered node");r.set(SY(this.privateKey),1),t&&(t+="'")}else r.set(SY(this.publicKey));for(let c=24;c>=0;c-=8)r[33+(c>>3)]=e>>24-c&255;const n=SY(cQ(oQ.sha512,this.chainCode,r)),i=n.slice(0,32),o=n.slice(32);let s=null,a=null;if(this.privateKey)s=AQ(qY.from(i).add(this.privateKey).mod(bQ));else{a=new w$(NY(i))._addPoint(this.publicKey)}let u=t;const l=this.mnemonic;return l&&(u=Object.freeze({phrase:l.phrase,path:t,locale:l.locale||"en"})),new TQ(xQ,s,a,this.fingerprint,AQ(o),e,this.depth+1,u)}derivePath(e){const t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();let r=this;for(let n=0;n=_Q)throw new Error("invalid path index - "+e);r=r._derive(_Q+t)}else{if(!e.match(/^[0-9]+$/))throw new Error("invalid path component - "+e);{const t=parseInt(e);if(t>=_Q)throw new Error("invalid path index - "+e);r=r._derive(t)}}}return r}static _fromSeed(e,t){const r=SY(e);if(r.length<16||r.length>64)throw new Error("invalid seed");const n=SY(cQ(oQ.sha512,wQ,r));return new TQ(xQ,AQ(n.slice(0,32)),null,"0x00000000",AQ(n.slice(32)),0,0,t)}static fromMnemonic(e,t,r){return e=NQ(IQ(e,r=SQ(r)),r),TQ._fromSeed(CQ(e,t),{phrase:e,path:"m",locale:r.locale})}static fromSeed(e){return TQ._fromSeed(e,null)}static fromExtendedKey(e){const t=iQ.decode(e);82===t.length&&MQ(t.slice(0,78))===e||vQ.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");const r=t[4],n=NY(t.slice(5,9)),i=parseInt(NY(t.slice(9,13)).substring(2),16),o=NY(t.slice(13,45)),s=t.slice(45,78);switch(NY(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new TQ(xQ,null,NY(s),n,o,i,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==s[0])break;return new TQ(xQ,NY(s.slice(1)),null,n,o,i,r,null)}return vQ.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}function CQ(e,t){t||(t="");const r=Vq("mnemonic"+t,Gq.NFKD);return hQ(Vq(e,Gq.NFKD),r,2048,64,"sha512")}function IQ(e,t){t=SQ(t),vQ.checkNormalize();const r=t.split(e);if(r.length%3!=0)throw new Error("invalid mnemonic");const n=SY(new Uint8Array(Math.ceil(11*r.length/8)));let i=0;for(let a=0;a>3]|=1<<7-i%8),i++}const o=32*r.length/3,s=EQ(r.length/3);if((SY(uQ(n.slice(0,o/8)))[0]&s)!==(n[n.length-1]&s))throw new Error("invalid checksum");return NY(n.slice(0,o/8))}function NQ(e,t){if(t=SQ(t),(e=SY(e)).length%4!=0||e.length<16||e.length>32)throw new Error("invalid entropy");const r=[0];let n=11;for(let s=0;s8?(r[r.length-1]<<=8,r[r.length-1]|=e[s],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[s]>>8-n,r.push(e[s]&(1<<8-n)-1),n+=3);const i=e.length/4,o=SY(uQ(e))[0]&EQ(i);return r[r.length-1]<<=i,r[r.length-1]|=o>>8-i,t.join(r.map((e=>t.getWord(e))))}function RQ(e,t){try{return IQ(e,t),!0}catch(XMe){}return!1}function PQ(e){return("number"!=typeof e||e<0||e>=_Q||e%1)&&vQ.throwArgumentError("invalid account index","index",e),`m/44'/60'/${e}'/0/0`}const DQ=new vY("random/5.7.0");const LQ=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();let OQ=LQ.crypto||LQ.msCrypto;function jQ(e){(e<=0||e>1024||e%1||e!=e)&&DQ.throwArgumentError("invalid length","length",e);const t=new Uint8Array(e);return OQ.getRandomValues(t),SY(t)}function BQ(e){for(let t=(e=e.slice()).length-1;t>0;t--){const r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}OQ&&OQ.getRandomValues||(DQ.warn("WARNING: Missing strong random number source"),OQ={getRandomValues:function(e){return DQ.throwError("no secure random source avaialble",vY.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}});var UQ=r(29557),FQ=r.n(UQ);const zQ="json-wallets/5.7.0";function HQ(e){return"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),SY(e)}function GQ(e,t){for(e=String(e);e.lengtht)),dK(this,"address",C$(this.publicKey)),this.address!==pq(e.address)&&dJ.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){const t=e.mnemonic;return t&&t.phrase}(e)){const t=e.mnemonic;dK(this,"_mnemonic",(()=>({phrase:t.phrase,path:t.path||kQ,locale:t.locale||"en"})));const r=this.mnemonic;C$(TQ.fromMnemonic(r.phrase,null,r.locale).derivePath(r.path).privateKey)!==this.address&&dJ.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else dK(this,"_mnemonic",(()=>null))}else{if(w$.isSigningKey(e))"secp256k1"!==e.curve&&dJ.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),dK(this,"_signingKey",(()=>e));else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);const t=new w$(e);dK(this,"_signingKey",(()=>t))}dK(this,"_mnemonic",(()=>null)),dK(this,"address",C$(this.publicKey))}t&&!MV.isProvider(t)&&dJ.throwArgumentError("invalid provider","provider",t),dK(this,"provider",t||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new fJ(this,e)}signTransaction(e){return pK(e).then((t=>{null!=t.from&&(pq(t.from)!==this.address&&dJ.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete t.from);const r=this._signingKey().signDigest(eq(j$(t)));return j$(t,r)}))}signMessage(e){return hJ(this,void 0,void 0,(function*(){return UY(this._signingKey().signDigest(QW(e)))}))}_signTypedData(e,t,r){return hJ(this,void 0,void 0,(function*(){const n=yield dV.resolveNames(e,t,r,(e=>(null==this.provider&&dJ.throwError("cannot resolve ENS names without a provider",vY.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),this.provider.resolveName(e))));return UY(this._signingKey().signDigest(dV.hash(n.domain,t,n.value)))}))}encrypt(e,t,r){if("function"!=typeof t||r||(r=t,t={}),r&&"function"!=typeof r)throw new Error("invalid callback");return t||(t={}),function(e,t,r,n){try{if(pq(e.address)!==C$(e.privateKey))throw new Error("address/privateKey mismatch");if(nJ(e)){const t=e.mnemonic;if(TQ.fromMnemonic(t.phrase,null,t.locale).derivePath(t.path||kQ).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(fVe){return Promise.reject(fVe)}"function"!=typeof r||n||(n=r,r={}),r||(r={});const i=SY(e.privateKey),o=YQ(t);let s=null,a=null,u=null;if(nJ(e)){const t=e.mnemonic;s=SY(IQ(t.phrase,t.locale||"en")),a=t.path||kQ,u=t.locale||"en"}let l=r.client;l||(l="ethers.js");let c=null;c=r.salt?SY(r.salt):jQ(32);let h=null;if(r.iv){if(h=SY(r.iv),16!==h.length)throw new Error("invalid iv")}else h=jQ(16);let d=null;if(r.uuid){if(d=SY(r.uuid),16!==d.length)throw new Error("invalid uuid")}else d=jQ(16);let f=1<<17,p=8,m=1;return r.scrypt&&(r.scrypt.N&&(f=r.scrypt.N),r.scrypt.r&&(p=r.scrypt.r),r.scrypt.p&&(m=r.scrypt.p)),eJ().scrypt(o,c,f,p,m,64,n).then((t=>{const r=(t=SY(t)).slice(0,16),n=t.slice(16,32),o=t.slice(32,64),g=new(FQ().Counter)(h),y=SY(new(FQ().ModeOfOperation.ctr)(r,g).encrypt(i)),v=eq(xY([n,y])),b={address:e.address.substring(2).toLowerCase(),id:qQ(d),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:NY(h).substring(2)},ciphertext:NY(y).substring(2),kdf:"scrypt",kdfparams:{salt:NY(c).substring(2),n:f,dklen:32,p:m,r:p},mac:v.substring(2)}};if(s){const e=jQ(16),t=new(FQ().Counter)(e),r=SY(new(FQ().ModeOfOperation.ctr)(o,t).encrypt(s)),n=new Date,i=n.getUTCFullYear()+"-"+GQ(n.getUTCMonth()+1,2)+"-"+GQ(n.getUTCDate(),2)+"T"+GQ(n.getUTCHours(),2)+"-"+GQ(n.getUTCMinutes(),2)+"-"+GQ(n.getUTCSeconds(),2)+".0Z";b["x-ethers"]={client:l,gethFilename:"UTC--"+i+"--"+b.address,mnemonicCounter:NY(e).substring(2),mnemonicCiphertext:NY(r).substring(2),path:a,locale:u,version:"0.1"}}return JSON.stringify(b)}))}(this,e,t,r)}static createRandom(e){let t=jQ(16);e||(e={}),e.extraEntropy&&(t=SY(PY(eq(xY([t,e.extraEntropy])),0,16)));const r=NQ(t,e.locale);return fJ.fromMnemonic(r,e.path,e.locale)}static fromEncryptedJson(e,t,r){return lJ(e,t,r).then((e=>new fJ(e)))}static fromEncryptedJsonSync(e,t){return new fJ(cJ(e,t))}static fromMnemonic(e,t,r){return t||(t=kQ),new fJ(TQ.fromMnemonic(e,null,r).derivePath(t))}}function pJ(e,t){return I$(QW(e),t)}function mJ(e,t,r,n){return I$(dV.hash(e,t,r),n)}const gJ=new vY("networks/5.7.1");function yJ(e){const t=function(t,r){null==r&&(r={});const n=[];if(t.InfuraProvider&&"-"!==r.infura)try{n.push(new t.InfuraProvider(e,r.infura))}catch(XMe){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(XMe){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(XMe){}if(t.PocketProvider&&"-"!==r.pocket){const i=["goerli","ropsten","rinkeby","sepolia"];try{const o=new t.PocketProvider(e,r.pocket);o.network&&-1===i.indexOf(o.network.name)&&n.push(o)}catch(XMe){}}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new t.CloudflareProvider(e))}catch(XMe){}if(t.AnkrProvider&&"-"!==r.ankr)try{const i=["ropsten"],o=new t.AnkrProvider(e,r.ankr);o.network&&-1===i.indexOf(o.network.name)&&n.push(o)}catch(XMe){}if(0===n.length)return null;if(t.FallbackProvider){let i=1;return null!=r.quorum?i=r.quorum:"homestead"===e&&(i=2),new t.FallbackProvider(n,i)}return n[0]};return t.renetwork=function(e){return yJ(e)},t}function vJ(e,t){const r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return vJ(e,t)},r}const bJ={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:yJ("homestead")},wJ={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:yJ("ropsten")},_J={chainId:63,name:"classicMordor",_defaultProvider:vJ("https://www.ethercluster.com/mordor","classicMordor")},EJ={unspecified:{chainId:0,name:"unspecified"},homestead:bJ,mainnet:bJ,morden:{chainId:2,name:"morden"},ropsten:wJ,testnet:wJ,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:yJ("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:yJ("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:yJ("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:yJ("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:vJ("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:_J,classicTestnet:_J,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:vJ("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:yJ("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:yJ("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function AJ(e){if(null==e)return null;if("number"==typeof e){for(const t in EJ){const r=EJ[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){const t=EJ[e];return null==t?null:{name:t.name,chainId:t.chainId,ensAddress:t.ensAddress,_defaultProvider:t._defaultProvider||null}}const t=EJ[e.name];if(!t)return"number"!=typeof e.chainId&&gJ.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==t.chainId&&gJ.throwArgumentError("network chainId mismatch","network",e);let r=e._defaultProvider||null;return null==r&&t._defaultProvider&&(r=function(e){return e&&"function"==typeof e.renetwork}(t._defaultProvider)?t._defaultProvider.renetwork(e):t._defaultProvider),{name:e.name,chainId:t.chainId,ensAddress:e.ensAddress||t.ensAddress||null,_defaultProvider:r}}var MJ=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};function SJ(e,t){return MJ(this,void 0,void 0,(function*(){null==t&&(t={});const r={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0};if(!0!==t.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),null!=t.fetchOptions){const e=t.fetchOptions;e.mode&&(r.mode=e.mode),e.cache&&(r.cache=e.cache),e.credentials&&(r.credentials=e.credentials),e.redirect&&(r.redirect=e.redirect),e.referrer&&(r.referrer=e.referrer)}const n=yield fetch(e,r),i=yield n.arrayBuffer(),o={};return n.headers.forEach?n.headers.forEach(((e,t)=>{o[t.toLowerCase()]=e})):n.headers.keys().forEach((e=>{o[e.toLowerCase()]=n.headers.get(e)})),{headers:o,statusCode:n.status,statusMessage:n.statusText,body:SY(new Uint8Array(i))}}))}var xJ=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const kJ=new vY("web/5.7.1");function TJ(e){return new Promise((t=>{setTimeout(t,e)}))}function CJ(e,t){if(null==e)return null;if("string"==typeof e)return e;if(EY(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return Zq(e)}catch(XMe){}return NY(e)}return e}function IJ(e){return Vq(e.replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16)))))}function NJ(e,t,r){const n="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;kJ.assertArgument(n>0&&n%1==0,"invalid connection throttle limit","connection.throttleLimit",n);const i="object"==typeof e?e.throttleCallback:null,o="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;kJ.assertArgument(o>0&&o%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);const s="object"==typeof e&&!!e.errorPassThrough,a={};let u=null;const l={method:"GET"};let c=!1,h=12e4;if("string"==typeof e)u=e;else if("object"==typeof e){if(null!=e&&null!=e.url||kJ.throwArgumentError("missing URL","connection.url",e),u=e.url,"number"==typeof e.timeout&&e.timeout>0&&(h=e.timeout),e.headers)for(const t in e.headers)a[t.toLowerCase()]={key:t,value:String(e.headers[t])},["if-none-match","if-modified-since"].indexOf(t.toLowerCase())>=0&&(c=!0);if(l.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==u.substring(0,6)&&!0!==e.allowInsecureAuthentication&&kJ.throwError("basic authentication requires a secure https url",vY.errors.INVALID_ARGUMENT,{argument:"url",url:u,user:e.user,password:"[REDACTED]"});const t=e.user+":"+e.password;a.authorization={key:"Authorization",value:"Basic "+AW(Vq(t))}}null!=e.skipFetchSetup&&(l.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(l.fetchOptions=gK(e.fetchOptions))}const d=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),f=u?u.match(d):null;if(f)try{const e={statusCode:200,statusMessage:"OK",headers:{"content-type":f[1]||"text/plain"},body:f[2]?EW(f[3]):IJ(f[3])};let t=e.body;return r&&(t=r(e.body,e)),Promise.resolve(t)}catch(XMe){kJ.throwError("processing response error",vY.errors.SERVER_ERROR,{body:CJ(f[1],f[2]),error:XMe,requestBody:null,requestMethod:"GET",url:u})}t&&(l.method="POST",l.body=t,null==a["content-type"]&&(a["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==a["content-length"]&&(a["content-length"]={key:"Content-Length",value:String(t.length)}));const p={};Object.keys(a).forEach((e=>{const t=a[e];p[t.key]=t.value})),l.headers=p;const m=function(){let e=null;const t=new Promise((function(t,r){h&&(e=setTimeout((()=>{null!=e&&(e=null,r(kJ.makeError("timeout",vY.errors.TIMEOUT,{requestBody:CJ(l.body,p["content-type"]),requestMethod:l.method,timeout:h,url:u})))}),h))}));return{promise:t,cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),g=function(){return xJ(this,void 0,void 0,(function*(){for(let e=0;e=300)&&(m.cancel(),kJ.throwError("bad response",vY.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:CJ(a,t.headers?t.headers["content-type"]:null),requestBody:CJ(l.body,p["content-type"]),requestMethod:l.method,url:u})),r)try{const e=yield r(a,t);return m.cancel(),e}catch(XMe){if(XMe.throttleRetry&&e"content-type"===e.toLowerCase())).length;e||(r.headers=gK(r.headers),r.headers["content-type"]="application/json")}else r.headers={"content-type":"application/json"};e=r}return NJ(e,n,((e,t)=>{let n=null;if(null!=e)try{n=JSON.parse(Zq(e))}catch(XMe){kJ.throwError("invalid JSON",vY.errors.SERVER_ERROR,{body:e,error:XMe})}return r&&(n=r(n,t)),n}))}function PJ(e,t){return t||(t={}),null==(t=gK(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(r,n){let i=null,o=!1;const s=()=>!o&&(o=!0,i&&clearTimeout(i),!0);t.timeout&&(i=setTimeout((()=>{s()&&n(new Error("timeout"))}),t.timeout));const a=t.retryLimit;let u=0;!function i(){return e().then((function(e){if(void 0!==e)s()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!o){if(u++,u>a)return void(s()&&n(new Error("retry limit reached")));let e=t.interval*parseInt(String(Math.random()*Math.pow(2,u)));et.ceiling&&(e=t.ceiling),setTimeout(i,e)}return null}),(function(e){s()&&n(e)}))}()}))}var DJ=r(27997),LJ=r.n(DJ);const OJ="providers/5.7.2";var jJ=r(98399);const BJ=new vY(OJ);class UJ{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},t=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),i=this.data.bind(this),o=this.hash.bind(this),s=this.hex.bind(this),a=this.number.bind(this),u=this.type.bind(this);return e.transaction={hash:o,type:u,accessList:UJ.allowNull(this.accessList.bind(this),null),blockHash:UJ.allowNull(o,null),blockNumber:UJ.allowNull(a,null),transactionIndex:UJ.allowNull(a,null),confirmations:UJ.allowNull(a,null),from:t,gasPrice:UJ.allowNull(r),maxPriorityFeePerGas:UJ.allowNull(r),maxFeePerGas:UJ.allowNull(r),gasLimit:r,to:UJ.allowNull(t,null),value:r,nonce:a,data:i,r:UJ.allowNull(this.uint256),s:UJ.allowNull(this.uint256),v:UJ.allowNull(a),creates:UJ.allowNull(t,null),raw:UJ.allowNull(i)},e.transactionRequest={from:UJ.allowNull(t),nonce:UJ.allowNull(a),gasLimit:UJ.allowNull(r),gasPrice:UJ.allowNull(r),maxPriorityFeePerGas:UJ.allowNull(r),maxFeePerGas:UJ.allowNull(r),to:UJ.allowNull(t),value:UJ.allowNull(r),data:UJ.allowNull((e=>this.data(e,!0))),type:UJ.allowNull(a),accessList:UJ.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:a,blockNumber:a,transactionHash:o,address:t,topics:UJ.arrayOf(o),data:i,logIndex:a,blockHash:o},e.receipt={to:UJ.allowNull(this.address,null),from:UJ.allowNull(this.address,null),contractAddress:UJ.allowNull(t,null),transactionIndex:a,root:UJ.allowNull(s),gasUsed:r,logsBloom:UJ.allowNull(i),blockHash:o,transactionHash:o,logs:UJ.arrayOf(this.receiptLog.bind(this)),blockNumber:a,confirmations:UJ.allowNull(a,null),cumulativeGasUsed:r,effectiveGasPrice:UJ.allowNull(r),status:UJ.allowNull(a),type:u},e.block={hash:UJ.allowNull(o),parentHash:o,number:a,timestamp:a,nonce:UJ.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:UJ.allowNull(t),extraData:i,transactions:UJ.allowNull(UJ.arrayOf(o)),baseFeePerGas:UJ.allowNull(r)},e.blockWithTransactions=gK(e.block),e.blockWithTransactions.transactions=UJ.allowNull(UJ.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:UJ.allowNull(n,void 0),toBlock:UJ.allowNull(n,void 0),blockHash:UJ.allowNull(o,void 0),address:UJ.allowNull(t,void 0),topics:UJ.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:UJ.allowNull(a),blockHash:UJ.allowNull(o),transactionIndex:a,removed:UJ.allowNull(this.boolean.bind(this)),address:t,data:UJ.allowFalsish(i,"0x"),topics:UJ.arrayOf(o),transactionHash:o,logIndex:a},e}accessList(e){return P$(e||[])}number(e){return"0x"===e?0:qY.from(e).toNumber()}type(e){return"0x"===e||null==e?0:qY.from(e).toNumber()}bigNumber(e){return qY.from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),CY(e))?e.toLowerCase():BJ.throwArgumentError("invalid hash","value",e)}data(e,t){const r=this.hex(e,t);if(r.length%2!=0)throw new Error("invalid data; odd-length - "+e);return r}address(e){return pq(e)}callAddress(e){if(!CY(e,32))return null;const t=pq(PY(e,12));return t===Iq?null:t}contractAddress(e){return yq(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||CY(e))return LY(e);throw new Error("invalid blockTag")}hash(e,t){const r=this.hex(e,t);return 32!==RY(r)?BJ.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;const t=qY.from(e);try{return t.toNumber()}catch(XMe){}return null}uint256(e){if(!CY(e))throw new Error("invalid uint256");return jY(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);const r=null!=e._difficulty?e._difficulty:e.difficulty,n=UJ.check(t,e);return n._difficulty=null==r?null:qY.from(r),n}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return UJ.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&qY.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),1!==e.type&&2!==e.type||null!=e.accessList||(e.accessList=[]);const t=UJ.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;CY(r)&&(r=qY.from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),CY(r)&&(r=qY.from(r).toNumber()),"number"!=typeof r&&null!=t.v&&(r=(t.v-35)/2,r<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),t.chainId=r}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return U$(e)}receiptLog(e){return UJ.check(this.formats.receiptLog,e)}receipt(e){const t=UJ.check(this.formats.receipt,e);if(null!=t.root)if(t.root.length<=4){const e=qY.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&BJ.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):BJ.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&BJ.throwArgumentError("invalid root hash","value.root",t.root);return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map((e=>this.topics(e))):null!=e?this.hash(e,!0):null}filter(e){return UJ.check(this.formats.filter,e)}filterLog(e){return UJ.check(this.formats.filterLog,e)}static check(e,t){const r={};for(const n in e)try{const i=e[n](t[n]);void 0!==i&&(r[n]=i)}catch(XMe){throw XMe.checkKey=n,XMe.checkValue=t[n],XMe}return r}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");const r=[];return t.forEach((function(t){r.push(e(t))})),r}}}function FJ(e){return e&&"function"==typeof e.isCommunityResource}function zJ(e){return FJ(e)&&e.isCommunityResource()}let HJ=!1;function GJ(){HJ||(HJ=!0,jJ.log("========= NOTICE ========="),jJ.log("Request-Rate Exceeded (this message will not be repeated)"),jJ.log(""),jJ.log("The default API keys for each service are provided as a highly-throttled,"),jJ.log("community resource for low-traffic projects and early prototyping."),jJ.log(""),jJ.log("While your application will continue to function, we highly recommended"),jJ.log("signing up for your own API keys to improve performance, increase your"),jJ.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),jJ.log(""),jJ.log("For more details: https://docs.ethers.io/api-keys/"),jJ.log("=========================="))}var YJ=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const KJ=new vY(OJ);function qJ(e){return null==e?"null":(32!==RY(e)&&KJ.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function WJ(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((e=>{if(Array.isArray(e)){const t={};e.forEach((e=>{t[qJ(e)]=!0}));const r=Object.keys(t);return r.sort(),r.join("|")}return qJ(e)})).join("&")}function VJ(e){if("string"==typeof e){if(32===RY(e=e.toLowerCase()))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+WJ(e);if(AV.isForkEvent(e))throw KJ.warn("not implemented"),new Error("not implemented");if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+WJ(e.topics||[])}throw new Error("invalid event - "+e)}function $J(){return(new Date).getTime()}function QJ(e){return new Promise((t=>{setTimeout(t,e)}))}const JJ=["block","network","pending","poll"];class ZJ{constructor(e,t,r){dK(this,"tag",e),dK(this,"listener",t),dK(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){const e=this.tag.split(":");if("filter"!==e[0])return null;const t=e[1],r=function(e){return""===e?[]:e.split(/&/g).map((e=>{if(""===e)return[];const t=e.split("|").map((e=>"null"===e?null:e));return 1===t.length?t[0]:t}))}(e[2]),n={};return r.length>0&&(n.topics=r),t&&"*"!==t&&(n.address=t),n}pollable(){return this.tag.indexOf(":")>=0||JJ.indexOf(this.tag)>=0}}const XJ={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function eZ(e){return jY(qY.from(e).toHexString(),32)}function tZ(e){return iQ.encode(xY([e,PY(uQ(uQ(e)),0,4)]))}const rZ=new RegExp("^(ipfs)://(.*)$","i"),nZ=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),rZ,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function iZ(e,t){try{return Zq(oZ(e,t))}catch(XMe){}return null}function oZ(e,t){if("0x"===e)return null;const r=qY.from(PY(e,t,t+32)).toNumber(),n=qY.from(PY(e,r,r+32)).toNumber();return PY(e,r+32,r+32+n)}function sZ(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):KJ.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function aZ(e){const t=SY(e);if(t.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(t,32-t.length),r}function uZ(e){if(e.length%32==0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function lZ(e){const t=[];let r=0;for(let n=0;nqY.from(e).eq(1))).catch((e=>{if(e.code===vY.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e}))),this._supportsEip2544}_fetch(e,t){return YJ(this,void 0,void 0,(function*(){const r={to:this.address,ccipReadEnabled:!0,data:DY([e,VW(this.name),t||"0x"])};let n=!1;(yield this.supportsWildcard())&&(n=!0,r.data=DY(["0x9061b923",lZ([$W(this.name),r.data])]));try{let e=yield this.provider.call(r);return SY(e).length%32==4&&KJ.throwError("resolver threw error",vY.errors.CALL_EXCEPTION,{transaction:r,data:e}),n&&(e=oZ(e,0)),e}catch(XMe){if(XMe.code===vY.errors.CALL_EXCEPTION)return null;throw XMe}}))}_fetchBytes(e,t){return YJ(this,void 0,void 0,(function*(){const r=yield this._fetch(e,t);return null!=r?oZ(r,0):null}))}_getAddress(e,t){const r=XJ[String(e)];if(null==r&&KJ.throwError(`unsupported coin type: ${e}`,vY.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(t);const n=SY(t);if(null!=r.p2pkh){const e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return tZ(xY([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.p2sh){const e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return tZ(xY([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){const e=n[1];let t=n[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&n.length===2+e&&e>=1&&e<=75){const e=LJ().toWords(n.slice(2));return e.unshift(t),LJ().encode(r.prefix,e)}}return null}getAddress(e){return YJ(this,void 0,void 0,(function*(){if(null==e&&(e=60),60===e)try{const e=yield this._fetch("0x3b3b57de");return"0x"===e||e===Uq?null:this.provider.formatter.callAddress(e)}catch(XMe){if(XMe.code===vY.errors.CALL_EXCEPTION)return null;throw XMe}const t=yield this._fetchBytes("0xf1cb7e06",eZ(e));if(null==t||"0x"===t)return null;const r=this._getAddress(e,t);return null==r&&KJ.throwError("invalid or unsupported coin data",vY.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r}))}getAvatar(){return YJ(this,void 0,void 0,(function*(){const e=[{type:"name",content:this.name}];try{const t=yield this.getText("avatar");if(null==t)return null;for(let r=0;re[t]));return"sia://"+t}return KJ.throwError("invalid or unsupported content hash data",vY.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})}))}getText(e){return YJ(this,void 0,void 0,(function*(){let t=Vq(e);t=xY([eZ(64),eZ(t.length),t]),t.length%32!=0&&(t=xY([t,jY("0x",32-e.length%32)]));const r=yield this._fetchBytes("0x59d1d43c",NY(t));return null==r||"0x"===r?null:Zq(r)}))}}let hZ=null,dZ=1;class fZ extends MV{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),dK(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch((e=>{})),this._ready().catch((e=>{}));else{const t=fK(new.target,"getNetwork")(e);t?(dK(this,"_network",t),this.emit("network",t,null)):KJ.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return YJ(this,void 0,void 0,(function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(XMe){}null==e&&(e=yield this.detectNetwork()),e||KJ.throwError("no network detected",vY.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:dK(this,"_network",e),this.emit("network",e,null))}return this._network}))}get ready(){return PJ((()=>this._ready().then((e=>e),(e=>{if(e.code!==vY.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))))}static getFormatter(){return null==hZ&&(hZ=new UJ),hZ}static getNetwork(e){return AJ(null==e?"homestead":e)}ccipReadFetch(e,t,r){return YJ(this,void 0,void 0,(function*(){if(this.disableCcipRead||0===r.length)return null;const n=e.to.toLowerCase(),i=t.toLowerCase(),o=[];for(let e=0;e=0?null:JSON.stringify({data:i,sender:n}),u=yield RJ({url:s,errorPassThrough:!0},a,((e,t)=>(e.status=t.statusCode,e)));if(u.data)return u.data;const l=u.message||"unknown error";if(u.status>=400&&u.status<500)return KJ.throwError(`response not found during CCIP fetch: ${l}`,vY.errors.SERVER_ERROR,{url:t,errorMessage:l});o.push(l)}return KJ.throwError(`error encountered during CCIP fetch: ${o.map((e=>JSON.stringify(e))).join(", ")}`,vY.errors.SERVER_ERROR,{urls:r,errorMessages:o})}))}_getInternalBlockNumber(e){return YJ(this,void 0,void 0,(function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const t=this._internalBlockNumber;try{const r=yield t;if($J()-r.respTime<=e)return r.blockNumber;break}catch(XMe){if(this._internalBlockNumber===t)break}}const t=$J(),r=pK({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((e=>null),(e=>e))}).then((({blockNumber:e,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;const i=$J();return(e=qY.from(e).toNumber()){this._internalBlockNumber===r&&(this._internalBlockNumber=null)})),(yield r).blockNumber}))}poll(){return YJ(this,void 0,void 0,(function*(){const e=dZ++,t=[];let r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(XMe){return void this.emit("error",XMe)}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)KJ.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",KJ.makeError("network block skew detected",vY.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let e=this._emitted.block+1;e<=r;e++)this.emit("block",e);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((e=>{if("block"===e)return;const t=this._emitted[e];"pending"!==t&&r-t>12&&delete this._emitted[e]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((e=>{switch(e.type){case"tx":{const r=e.hash;let n=this.getTransactionReceipt(r).then((e=>e&&null!=e.blockNumber?(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e),null):null)).catch((e=>{this.emit("error",e)}));t.push(n);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);const n=e.filter;n.fromBlock=e._lastBlockNumber+1,n.toBlock=r;const i=n.toBlock-this._maxFilterBlockRange;i>n.fromBlock&&(n.fromBlock=i),n.fromBlock<0&&(n.fromBlock=0);const o=this.getLogs(n).then((t=>{e._inflight=!1,0!==t.length&&t.forEach((t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit(n,t)}))})).catch((t=>{this.emit("error",t),e._inflight=!1}));t.push(o)}}})),this._lastBlockNumber=r,Promise.all(t).then((()=>{this.emit("didPoll",e)})).catch((e=>{this.emit("error",e)}))}else this.emit("didPoll",e)}))}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return YJ(this,void 0,void 0,(function*(){return KJ.throwError("provider does not support network detection",vY.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return YJ(this,void 0,void 0,(function*(){const e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),yield QJ(0),this._network;const r=KJ.makeError("underlying network changed",vY.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",r),r}return e}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then((e=>{this._setFastBlockNumber(e)}),(e=>{})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval((()=>{this.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((()=>{this.poll(),this._bootstrapPoll=setTimeout((()=>{this._poller||this.poll(),this._bootstrapPoll=null}),this.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((()=>{this.poll()}),this._pollingInterval))}_getFastBlockNumber(){const e=$J();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then((e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber)))),this._fastBlockNumberPromise}_setFastBlockNumber(e){null!=this._fastBlockNumber&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,r){return YJ(this,void 0,void 0,(function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)}))}_waitForTransaction(e,t,r,n){return YJ(this,void 0,void 0,(function*(){const i=yield this.getTransactionReceipt(e);return(i?i.confirmations:0)>=t?i:new Promise(((i,o)=>{const s=[];let a=!1;const u=function(){return!!a||(a=!0,s.forEach((e=>{e()})),!1)},l=e=>{e.confirmations{this.removeListener(e,l)})),n){let r=n.startBlock,i=null;const l=s=>YJ(this,void 0,void 0,(function*(){a||(yield QJ(1e3),this.getTransactionCount(n.from).then((c=>YJ(this,void 0,void 0,(function*(){if(!a){if(c<=n.nonce)r=s;else{{const t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==i&&(i=r-3,i{a||this.once("block",l)})))}));if(a)return;this.once("block",l),s.push((()=>{this.removeListener("block",l)}))}if("number"==typeof r&&r>0){const e=setTimeout((()=>{u()||o(KJ.makeError("timeout exceeded",vY.errors.TIMEOUT,{timeout:r}))}),r);e.unref&&e.unref(),s.push((()=>{clearTimeout(e)}))}}))}))}getBlockNumber(){return YJ(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return YJ(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return qY.from(e)}catch(XMe){return KJ.throwError("bad result from backend",vY.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:XMe})}}))}getBalance(e,t){return YJ(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield pK({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getBalance",r);try{return qY.from(n)}catch(XMe){return KJ.throwError("bad result from backend",vY.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:XMe})}}))}getTransactionCount(e,t){return YJ(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield pK({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getTransactionCount",r);try{return qY.from(n).toNumber()}catch(XMe){return KJ.throwError("bad result from backend",vY.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:XMe})}}))}getCode(e,t){return YJ(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield pK({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getCode",r);try{return NY(n)}catch(XMe){return KJ.throwError("bad result from backend",vY.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:XMe})}}))}getStorageAt(e,t,r){return YJ(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield pK({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then((e=>LY(e)))}),i=yield this.perform("getStorageAt",n);try{return NY(i)}catch(XMe){return KJ.throwError("bad result from backend",vY.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:i,error:XMe})}}))}_wrapTransaction(e,t,r){if(null!=t&&32!==RY(t))throw new Error("invalid response - sendTransaction");const n=e;return null!=t&&e.hash!==t&&KJ.throwError("Transaction hash mismatch from Provider.sendTransaction.",vY.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),n.wait=(t,n)=>YJ(this,void 0,void 0,(function*(){let i;null==t&&(t=1),null==n&&(n=0),0!==t&&null!=r&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});const o=yield this._waitForTransaction(e.hash,t,n,i);return null==o&&0===t?null:(this._emitted["t:"+e.hash]=o.blockNumber,0===o.status&&KJ.throwError("transaction failed",vY.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:o}),o)})),n}sendTransaction(e){return YJ(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield Promise.resolve(e).then((e=>NY(e))),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);const n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,e,n)}catch(XMe){throw XMe.transaction=r,XMe.transactionHash=r.hash,XMe}}))}_getTransactionRequest(e){return YJ(this,void 0,void 0,(function*(){const t=yield e,r={};return["from","to"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?this._getAddress(e):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?qY.from(e):null)))})),["type"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>null!=e?e:null)))})),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?NY(e):null)))})),this.formatter.transactionRequest(yield pK(r))}))}_getFilter(e){return YJ(this,void 0,void 0,(function*(){e=yield e;const t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach((r=>{null!=e[r]&&(t[r]=e[r])})),["fromBlock","toBlock"].forEach((r=>{null!=e[r]&&(t[r]=this._getBlockTag(e[r]))})),this.formatter.filter(yield pK(t))}))}_call(e,t,r){return YJ(this,void 0,void 0,(function*(){r>=10&&KJ.throwError("CCIP read exceeded maximum redirections",vY.errors.SERVER_ERROR,{redirects:r,transaction:e});const n=e.to,i=yield this.perform("call",{transaction:e,blockTag:t});if(r>=0&&"latest"===t&&null!=n&&"0x556f1830"===i.substring(0,10)&&RY(i)%32==4)try{const o=PY(i,4),s=PY(o,0,32);qY.from(s).eq(n)||KJ.throwError("CCIP Read sender did not match",vY.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});const a=[],u=qY.from(PY(o,32,64)).toNumber(),l=qY.from(PY(o,u,u+32)).toNumber(),c=PY(o,u+32);for(let t=0;tYJ(this,void 0,void 0,(function*(){const e=yield this.perform("getBlock",n);if(null==e)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(t){let t=null;for(let n=0;nthis._wrapTransaction(e))),r}return this.formatter.block(e)}))),{oncePoll:this})}))}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return YJ(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return PJ((()=>YJ(this,void 0,void 0,(function*(){const r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;const n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return this._wrapTransaction(n)}))),{oncePoll:this})}))}getTransactionReceipt(e){return YJ(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return PJ((()=>YJ(this,void 0,void 0,(function*(){const r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;const n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return n}))),{oncePoll:this})}))}getLogs(e){return YJ(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield pK({filter:this._getFilter(e)}),r=yield this.perform("getLogs",t);return r.forEach((e=>{null==e.removed&&(e.removed=!1)})),UJ.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)}))}getEtherPrice(){return YJ(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(e){return YJ(this,void 0,void 0,(function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&KJ.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return t+=e,t<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)}))}getResolver(e){return YJ(this,void 0,void 0,(function*(){let t=e;for(;;){if(""===t||"."===t)return null;if("eth"!==e&&"eth"===t)return null;const r=yield this._getResolver(t,"getResolver");if(null!=r){const n=new cZ(this,r,e);return t===e||(yield n.supportsWildcard())?n:null}t=t.split(".").slice(1).join(".")}}))}_getResolver(e,t){return YJ(this,void 0,void 0,(function*(){null==t&&(t="ENS");const r=yield this.getNetwork();r.ensAddress||KJ.throwError("network does not support ENS",vY.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{const t=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+VW(e).substring(2)});return this.formatter.callAddress(t)}catch(XMe){}return null}))}resolveName(e){return YJ(this,void 0,void 0,(function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(XMe){if(CY(e))throw XMe}"string"!=typeof e&&KJ.throwArgumentError("invalid ENS name","name",e);const t=yield this.getResolver(e);return t?yield t.getAddress():null}))}lookupAddress(e){return YJ(this,void 0,void 0,(function*(){e=yield e;const t=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(t,"lookupAddress");if(null==r)return null;const n=iZ(yield this.call({to:r,data:"0x691f3431"+VW(t).substring(2)}),0);return(yield this.resolveName(n))!=e?null:n}))}getAvatar(e){return YJ(this,void 0,void 0,(function*(){let t=null;if(CY(e)){const r=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r,"getAvatar");if(!n)return null;t=new cZ(this,n,r);try{const e=yield t.getAvatar();if(e)return e.url}catch(XMe){if(XMe.code!==vY.errors.CALL_EXCEPTION)throw XMe}try{const e=iZ(yield this.call({to:n,data:"0x691f3431"+VW(r).substring(2)}),0);t=yield this.getResolver(e)}catch(XMe){if(XMe.code!==vY.errors.CALL_EXCEPTION)throw XMe;return null}}else if(t=yield this.getResolver(e),!t)return null;const r=yield t.getAvatar();return null==r?null:r.url}))}perform(e,t){return KJ.throwError(e+" not implemented",vY.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_stopEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_addEventListener(e,t,r){const n=new ZJ(VJ(e),t,r);return this._events.push(n),this._startEvent(n),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let r=!1,n=[],i=VJ(e);return this._events=this._events.filter((e=>e.tag!==i||(setTimeout((()=>{e.listener.apply(this,t)}),0),r=!0,!e.once||(n.push(e),!1)))),n.forEach((e=>{this._stopEvent(e)})),r}listenerCount(e){if(!e)return this._events.length;let t=VJ(e);return this._events.filter((e=>e.tag===t)).length}listeners(e){if(null==e)return this._events.map((e=>e.listener));let t=VJ(e);return this._events.filter((e=>e.tag===t)).map((e=>e.listener))}off(e,t){if(null==t)return this.removeAllListeners(e);const r=[];let n=!1,i=VJ(e);return this._events=this._events.filter((e=>e.tag!==i||e.listener!=t||(!!n||(n=!0,r.push(e),!1)))),r.forEach((e=>{this._stopEvent(e)})),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{const r=VJ(e);this._events=this._events.filter((e=>e.tag!==r||(t.push(e),!1)))}return t.forEach((e=>{this._stopEvent(e)})),this}}var pZ=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const mZ=new vY(OJ),gZ=["call","estimateGas"];function yZ(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){const r=CY(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"==typeof e){for(const r in e){const n=yZ(e[r],t);if(n)return n}return null}if("string"==typeof e)try{return yZ(JSON.parse(e),t)}catch(XMe){}return null}function vZ(e,t,r){const n=r.transaction||r.signedTransaction;if("call"===e){const e=yZ(t,!0);if(e)return e.data;mZ.throwError("missing revert data in call exception; Transaction reverted without a reason string",vY.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}if("estimateGas"===e){let r=yZ(t.body,!1);null==r&&(r=yZ(t,!1)),r&&mZ.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",vY.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:n,error:t})}let i=t.message;throw t.code===vY.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&mZ.throwError("insufficient funds for intrinsic transaction cost",vY.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/nonce (is )?too low/i)&&mZ.throwError("nonce has already been used",vY.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&mZ.throwError("replacement fee too low",vY.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/only replay-protected/i)&&mZ.throwError("legacy pre-eip-155 transactions not supported",vY.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),gZ.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&mZ.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",vY.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function bZ(e){return new Promise((function(t){setTimeout(t,e)}))}function wZ(e){if(e.error){const t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function _Z(e){return e?e.toLowerCase():e}const EZ={};class AZ extends CV{constructor(e,t,r){if(super(),e!==EZ)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");dK(this,"provider",t),null==r&&(r=0),"string"==typeof r?(dK(this,"_address",this.provider.formatter.address(r)),dK(this,"_index",null)):"number"==typeof r?(dK(this,"_index",r),dK(this,"_address",null)):mZ.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return mZ.throwError("cannot alter JSON-RPC Signer connection",vY.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new MZ(EZ,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((e=>(e.length<=this._index&&mZ.throwError("unknown account #"+this._index,vY.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index]))))}sendUncheckedTransaction(e){e=gK(e);const t=this.getAddress().then((e=>(e&&(e=e.toLowerCase()),e)));if(null==e.gasLimit){const r=gK(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((e=>pZ(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.provider.resolveName(e);return null==t&&mZ.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))))),pK({tx:pK(e),sender:t}).then((({tx:t,sender:r})=>{null!=t.from?t.from.toLowerCase()!==r&&mZ.throwArgumentError("from address mismatch","transaction",e):t.from=r;const n=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[n]).then((e=>e),(e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&mZ.throwError("user rejected transaction",vY.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:t}),vZ("sendTransaction",e,n))))}))}signTransaction(e){return mZ.throwError("signing transactions is unsupported",vY.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return pZ(this,void 0,void 0,(function*(){const t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield PJ((()=>pZ(this,void 0,void 0,(function*(){const e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}))),{oncePoll:this.provider})}catch(XMe){throw XMe.transactionHash=r,XMe}}))}signMessage(e){return pZ(this,void 0,void 0,(function*(){const t="string"==typeof e?Vq(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[NY(t),r.toLowerCase()])}catch(XMe){throw"string"==typeof XMe.message&&XMe.message.match(/user denied/i)&&mZ.throwError("user rejected signing",vY.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),XMe}}))}_legacySignMessage(e){return pZ(this,void 0,void 0,(function*(){const t="string"==typeof e?Vq(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),NY(t)])}catch(XMe){throw"string"==typeof XMe.message&&XMe.message.match(/user denied/i)&&mZ.throwError("user rejected signing",vY.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),XMe}}))}_signTypedData(e,t,r){return pZ(this,void 0,void 0,(function*(){const n=yield dV.resolveNames(e,t,r,(e=>this.provider.resolveName(e))),i=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(dV.getPayload(n.domain,t,n.value))])}catch(XMe){throw"string"==typeof XMe.message&&XMe.message.match(/user denied/i)&&mZ.throwError("user rejected signing",vY.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:n.domain,types:t,value:n.value}}),XMe}}))}unlock(e){return pZ(this,void 0,void 0,(function*(){const t=this.provider,r=yield this.getAddress();return t.send("personal_unlockAccount",[r.toLowerCase(),e,null])}))}}class MZ extends AZ{sendTransaction(e){return this.sendUncheckedTransaction(e).then((e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)})))}}const SZ={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class xZ extends fZ{constructor(e,t){let r=t;null==r&&(r=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then((t=>{e(t)}),(e=>{t(e)}))}),0)}))),super(r),e||(e=fK(this.constructor,"defaultUrl")()),dK(this,"connection","string"==typeof e?Object.freeze({url:e}):Object.freeze(gK(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((()=>{this._cache.detectNetwork=null}),0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return pZ(this,void 0,void 0,(function*(){yield bZ(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(XMe){try{e=yield this.send("net_version",[])}catch(XMe){}}if(null!=e){const t=fK(this.constructor,"getNetwork");try{return t(qY.from(e).toNumber())}catch(XMe){return mZ.throwError("could not detect network",vY.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:XMe})}}return mZ.throwError("could not detect network",vY.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(e){return new AZ(EZ,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then((e=>e.map((e=>this.formatter.address(e)))))}send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:wK(r),provider:this});const n=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(n&&this._cache[e])return this._cache[e];const i=RJ(this.connection,JSON.stringify(r),wZ).then((e=>(this.emit("debug",{action:"response",request:r,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",error:e,request:r,provider:this}),e}));return n&&(this._cache[e]=i,setTimeout((()=>{this._cache[e]=null}),0)),i}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[_Z(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[_Z(t.address),t.blockTag]];case"getCode":return["eth_getCode",[_Z(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[_Z(t.address),jY(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[fK(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[fK(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=_Z(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return pZ(this,void 0,void 0,(function*(){if("call"===e||"estimateGas"===e){const e=t.transaction;if(e&&null!=e.type&&qY.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){const r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=gK(t)).transaction=gK(e),delete t.transaction.type)}}const r=this.prepareRequest(e,t);null==r&&mZ.throwError(e+" not implemented",vY.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(XMe){return vZ(e,XMe,t)}}))}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;const e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(r){return function n(){e.send("eth_getFilterChanges",[r]).then((function(r){if(e._pendingFilter!=t)return null;let n=Promise.resolve();return r.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),n.then((function(){return bZ(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){n()}),0),null;e.send("eth_uninstallFilter",[r])})).catch((e=>{}))}(),r})).catch((e=>{}))}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){const r=gK(SZ);if(t)for(const i in t)t[i]&&(r[i]=!0);mK(e,r);const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null==e[t])return;const r=LY(qY.from(e[t]));"gasLimit"===t&&(t="gas"),n[t]=r})),["from","to","data"].forEach((function(t){null!=e[t]&&(n[t]=NY(e[t]))})),e.accessList&&(n.accessList=P$(e.accessList)),n}}let kZ=null;try{if(kZ=WebSocket,null==kZ)throw new Error("inject please")}catch(XMe){const e=new vY(OJ);kZ=function(){e.throwError("WebSockets not supported in this environment",vY.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var TZ=r(98399),CZ=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const IZ=new vY(OJ);let NZ=1;class RZ extends xZ{constructor(e,t){"any"===t&&IZ.throwError("WebSocketProvider does not support 'any' network yet",vY.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),super("string"==typeof e?e:"_websocket",t),this._pollingInterval=-1,this._wsReady=!1,dK(this,"_websocket","string"==typeof e?new kZ(this.connection.url):e),dK(this,"_requests",{}),dK(this,"_subs",{}),dK(this,"_subIds",{}),dK(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach((e=>{this.websocket.send(this._requests[e].payload)}))},this.websocket.onmessage=e=>{const t=e.data,r=JSON.parse(t);if(null!=r.id){const e=String(r.id),n=this._requests[e];if(delete this._requests[e],void 0!==r.result)n.callback(null,r.result),this.emit("debug",{action:"response",request:JSON.parse(n.payload),response:r.result,provider:this});else{let e=null;r.error?(e=new Error(r.error.message||"unknown error"),dK(e,"code",r.error.code||null),dK(e,"response",t)):e=new Error("unknown error"),n.callback(e,void 0),this.emit("debug",{action:"response",error:e,request:JSON.parse(n.payload),provider:this})}}else if("eth_subscription"===r.method){const e=this._subs[r.params.subscription];e&&e.processFunc(r.params.result)}else TZ.warn("this should not happen")};const r=setInterval((()=>{this.emit("poll")}),1e3);r.unref&&r.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){IZ.throwError("cannot reset events block on WebSocketProvider",vY.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){IZ.throwError("cannot set polling interval on WebSocketProvider",vY.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return CZ(this,void 0,void 0,(function*(){return null}))}set polling(e){e&&IZ.throwError("cannot set polling on WebSocketProvider",vY.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,t){const r=NZ++;return new Promise(((n,i)=>{const o=JSON.stringify({method:e,params:t,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(o),provider:this}),this._requests[String(r)]={callback:function(e,t){return e?i(e):n(t)},payload:o},this._wsReady&&this.websocket.send(o)}))}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,t,r){return CZ(this,void 0,void 0,(function*(){let n=this._subIds[e];null==n&&(n=Promise.all(t).then((e=>this.send("eth_subscribe",e))),this._subIds[e]=n);const i=yield n;this._subs[i]={tag:e,processFunc:r}}))}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],(e=>{const t=qY.from(e.number).toNumber();this._emitted.block=t,this.emit("block",t)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(e=>{this.emit("pending",e)}));break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],(t=>{null==t.removed&&(t.removed=!1),this.emit(e.filter,this.formatter.filterLog(t))}));break;case"tx":{const t=e=>{const t=e.hash;this.getTransactionReceipt(t).then((e=>{e&&this.emit(t,e)}))};t(e),this._subscribe("tx",["newHeads"],(e=>{this._events.filter((e=>"tx"===e.type)).forEach(t)}));break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:TZ.log("unhandled:",e)}}_stopEvent(e){let t=e.tag;if("tx"===e.type){if(this._events.filter((e=>"tx"===e.type)).length)return;t="tx"}else if(this.listenerCount(e.event))return;const r=this._subIds[t];r&&(delete this._subIds[t],r.then((e=>{this._subs[e]&&(delete this._subs[e],this.send("eth_unsubscribe",[e]))})))}destroy(){return CZ(this,void 0,void 0,(function*(){this.websocket.readyState===kZ.CONNECTING&&(yield new Promise((e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}}))),this.websocket.close(1e3)}))}}var PZ=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const DZ=new vY(OJ);class LZ extends xZ{detectNetwork(){const e=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return PZ(this,void 0,void 0,(function*(){let t=this.network;return null==t&&(t=yield e.detectNetwork.call(this),t||DZ.throwError("no network detected",vY.errors.UNKNOWN_ERROR,{}),null==this._network&&(dK(this,"_network",t),this.emit("network",t,null))),t}))}}class OZ extends LZ{constructor(e,t){DZ.checkAbstract(new.target,OZ),e=fK(new.target,"getNetwork")(e),t=fK(new.target,"getApiKey")(t);super(fK(new.target,"getUrl")(e,t),e),"string"==typeof t?dK(this,"apiKey",t):null!=t&&Object.keys(t).forEach((e=>{dK(this,e,t[e])}))}_startPending(){DZ.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return DZ.throwError("API provider does not support signing",vY.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,t){return DZ.throwError("not implemented; sub-classes must override getUrl",vY.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}const jZ=new vY(OJ),BZ="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class UZ extends RZ{constructor(e,t){const r=new FZ(e,t);super(r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi."),r.network),dK(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===BZ}}class FZ extends OZ{static getWebSocketProvider(e,t){return new UZ(e,t)}static getApiKey(e){return null==e?BZ:(e&&"string"!=typeof e&&jZ.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,t){let r=null;switch(e.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.g.alchemy.com/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":r="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":r="arb-goerli.g.alchemy.com/v2/";break;case"optimism":r="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":r="opt-goerli.g.alchemy.com/v2/";break;default:jZ.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+t,throttleCallback:(e,r)=>(t===BZ&&GJ(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===BZ}}const zZ=new vY(OJ),HZ="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function GZ(e){switch(e){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return zZ.throwArgumentError("unsupported network","name",e)}class YZ extends OZ{isCommunityResource(){return this.apiKey===HZ}static getApiKey(e){return null==e?HZ:e}static getUrl(e,t){null==t&&(t=HZ);const r={allowGzip:!0,url:"https://"+GZ(e.name)+t,throttleCallback:(e,r)=>(t.apiKey===HZ&&GJ(),Promise.resolve(!0))};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}}var KZ=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const qZ=new vY(OJ);class WZ extends OZ{static getApiKey(e){return null!=e&&qZ.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,t){let r=null;if("homestead"===e.name)r="https://cloudflare-eth.com/";else qZ.throwArgumentError("unsupported network","network",arguments[0]);return r}perform(e,t){const r=Object.create(null,{perform:{get:()=>super.perform}});return KZ(this,void 0,void 0,(function*(){if("getBlockNumber"===e){return(yield r.perform.call(this,"getBlock",{blockTag:"latest"})).number}return r.perform.call(this,e,t)}))}}var VZ=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const $Z=new vY(OJ);function QZ(e){const t={};for(let r in e){if(null==e[r])continue;let n=e[r];"type"===r&&0===n||(n={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r]?LY(NY(n)):"accessList"===r?"["+P$(n).map((e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`)).join(",")+"]":NY(n),t[r]=n)}return t}function JZ(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"string"!=typeof e.message||!e.message.match(/^OK/)){const t=new Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function ZZ(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){const t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){const t=new Error("invalid response");throw t.result=JSON.stringify(e),t}if(e.error){const t=new Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function XZ(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function eX(e,t,r){if("call"===e&&t.code===vY.errors.SERVER_ERROR){const e=t.error;if(e&&(e.message.match(/reverted/i)||e.message.match(/VM execution error/i))){let r=e.data;if(r&&(r="0x"+r.replace(/^.*0x/i,"")),CY(r))return r;$Z.throwError("missing revert data in call exception",vY.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let n=t.message;throw t.code===vY.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?n=t.error.message:"string"==typeof t.body?n=t.body:"string"==typeof t.responseText&&(n=t.responseText)),n=(n||"").toLowerCase(),n.match(/insufficient funds/)&&$Z.throwError("insufficient funds for intrinsic transaction cost",vY.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),n.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&$Z.throwError("nonce has already been used",vY.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),n.match(/another transaction with same nonce/)&&$Z.throwError("replacement fee too low",vY.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),n.match(/execution failed due to an exception|execution reverted/)&&$Z.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",vY.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}class tX extends fZ{constructor(e,t){super(e),dK(this,"baseUrl",this.getBaseUrl()),dK(this,"apiKey",t||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return $Z.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,t){const r=Object.keys(t).reduce(((e,r)=>{const n=t[r];return null!=n&&(e+=`&${r}=${n}`),e}),""),n=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${e}${r}${n}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}fetch(e,t,r){return VZ(this,void 0,void 0,(function*(){const n=r?this.getPostUrl():this.getUrl(e,t),i=r?this.getPostData(e,t):null,o="proxy"===e?ZZ:JZ;this.emit("debug",{action:"request",request:n,provider:this});const s={url:n,throttleSlotInterval:1e3,throttleCallback:(e,t)=>(this.isCommunityResource()&&GJ(),Promise.resolve(!0))};let a=null;i&&(s.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},a=Object.keys(i).map((e=>`${e}=${i[e]}`)).join("&"));const u=yield RJ(s,a,o||ZZ);return this.emit("debug",{action:"response",request:n,response:wK(u),provider:this}),u}))}detectNetwork(){return VZ(this,void 0,void 0,(function*(){return this.network}))}perform(e,t){const r=Object.create(null,{perform:{get:()=>super.perform}});return VZ(this,void 0,void 0,(function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((e=>eX("sendTransaction",e,t.signedTransaction)));case"getBlock":if(t.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash});case"call":{if("latest"!==t.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const e=QZ(t.transaction);e.module="proxy",e.action="eth_call";try{return yield this.fetch("proxy",e,!0)}catch(XMe){return eX("call",XMe,t.transaction)}}case"estimateGas":{const e=QZ(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return yield this.fetch("proxy",e,!0)}catch(XMe){return eX("estimateGas",XMe,t.transaction)}}case"getLogs":{const e={action:"getLogs"};if(t.filter.fromBlock&&(e.fromBlock=XZ(t.filter.fromBlock)),t.filter.toBlock&&(e.toBlock=XZ(t.filter.toBlock)),t.filter.address&&(e.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&$Z.throwError("unsupported topic count",vY.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length)){const r=t.filter.topics[0];"string"==typeof r&&66===r.length||$Z.throwError("unsupported topic format",vY.errors.UNSUPPORTED_OPERATION,{topic0:r}),e.topic0=r}const r=yield this.fetch("logs",e);let n={};for(let t=0;t{["contractAddress","to"].forEach((function(t){""==e[t]&&delete e[t]})),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);const t=this.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t}))}))}isCommunityResource(){return null==this.apiKey}}var rX=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const nX=new vY(OJ);function iX(){return(new Date).getTime()}function oX(e){let t=null;for(let r=0;rt?null:(n+i)/2}function aX(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if(qY.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((e=>aX(e))));if("object"==typeof e){const t=Object.keys(e);return t.sort(),"{"+t.map((t=>{let r=e[t];return r="function"==typeof r?"[function]":aX(r),JSON.stringify(t)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}let uX=1;function lX(e){let t=null,r=null,n=new Promise((n=>{t=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return n},wait:e=>(n=n.then(e),n)}}const cX=[vY.errors.CALL_EXCEPTION,vY.errors.INSUFFICIENT_FUNDS,vY.errors.NONCE_EXPIRED,vY.errors.REPLACEMENT_UNDERPRICED,vY.errors.UNPREDICTABLE_GAS_LIMIT],hX=["address","args","errorArgs","errorSignature","method","transaction"];function dX(e,t){const r={weight:e.weight};return Object.defineProperty(r,"provider",{get:()=>e.provider}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function fX(e,t,r){let n=aX;switch(t){case"getBlockNumber":return function(t){const r=t.map((e=>e.result));let n=sX(t.map((e=>e.result)),2);if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=e._highestBlockNumber&&(e._highestBlockNumber=n),e._highestBlockNumber};case"getGasPrice":return function(e){const t=e.map((e=>e.result));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return sX(e.map((e=>e.result)))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(e){return null==e?null:((e=gK(e)).confirmations=-1,aX(e))};break;case"getBlock":n=r.includeTransactions?function(e){return null==e?null:((e=gK(e)).transactions=e.transactions.map((e=>((e=gK(e)).confirmations=-1,e))),aX(e))}:function(e){return null==e?null:aX(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(r){const n={};r.forEach((t=>{const r=e(t.result);n[r]||(n[r]={count:0,result:t.result}),n[r].count++}));const i=Object.keys(n);for(let e=0;e=t)return r.result}}}(n,e.quorum)}function pX(e,t){return rX(this,void 0,void 0,(function*(){const r=e.provider;return null!=r.blockNumber&&r.blockNumber>=t||-1===t?r:PJ((()=>new Promise(((n,i)=>{setTimeout((function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(void 0)}),0)}))),{oncePoll:r})}))}function mX(e,t,r,n){return rX(this,void 0,void 0,(function*(){let i=e.provider;switch(r){case"getBlockNumber":case"getGasPrice":return i[r]();case"getEtherPrice":if(i.getEtherPrice)return i.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return n.blockTag&&CY(n.blockTag)&&(i=yield pX(e,t)),i[r](n.address,n.blockTag||"latest");case"getStorageAt":return n.blockTag&&CY(n.blockTag)&&(i=yield pX(e,t)),i.getStorageAt(n.address,n.position,n.blockTag||"latest");case"getBlock":return n.blockTag&&CY(n.blockTag)&&(i=yield pX(e,t)),i[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash);case"call":case"estimateGas":return n.blockTag&&CY(n.blockTag)&&(i=yield pX(e,t)),"call"===r&&n.blockTag?i[r](n.transaction,n.blockTag):i[r](n.transaction);case"getTransaction":case"getTransactionReceipt":return i[r](n.transactionHash);case"getLogs":{let r=n.filter;return(r.fromBlock&&CY(r.fromBlock)||r.toBlock&&CY(r.toBlock))&&(i=yield pX(e,t)),i.getLogs(r)}}return nX.throwError("unknown method error",vY.errors.UNKNOWN_ERROR,{method:r,params:n})}))}class gX extends fZ{constructor(e,t){0===e.length&&nX.throwArgumentError("missing providers","providers",e);const r=e.map(((e,t)=>{if(MV.isProvider(e)){const t=zJ(e)?2e3:750,r=1;return Object.freeze({provider:e,weight:1,stallTimeout:t,priority:r})}const r=gK(e);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=zJ(e)?2e3:750),null==r.weight&&(r.weight=1);const n=r.weight;return(n%1||n>512||n<1)&&nX.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${t}].weight`,n),Object.freeze(r)})),n=r.reduce(((e,t)=>e+t.weight),0);null==t?t=n/2:t>n&&nX.throwArgumentError("quorum will always fail; larger than total weight","quorum",t);let i=oX(r.map((e=>e.provider.network)));null==i&&(i=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then(e,t)}),0)}))),super(i),dK(this,"providerConfigs",Object.freeze(r)),dK(this,"quorum",t),this._highestBlockNumber=-1}detectNetwork(){return rX(this,void 0,void 0,(function*(){return oX(yield Promise.all(this.providerConfigs.map((e=>e.provider.getNetwork()))))}))}perform(e,t){return rX(this,void 0,void 0,(function*(){if("sendTransaction"===e){const e=yield Promise.all(this.providerConfigs.map((e=>e.provider.sendTransaction(t.signedTransaction).then((e=>e.hash),(e=>e)))));for(let t=0;te.priority-t.priority));const i=this._highestBlockNumber;let o=0,s=!0;for(;;){const a=iX();let u=n.filter((e=>e.runner&&a-e.starte+t.weight),0);for(;u{r.staller=null})),r.runner=mX(r,i,e,t).then((n=>{r.done=!0,r.result=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:s,backend:dX(r,iX()),request:{method:e,params:wK(t)},provider:this})}),(n=>{r.done=!0,r.error=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:s,backend:dX(r,iX()),request:{method:e,params:wK(t)},provider:this})})),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:s,backend:dX(r,null),request:{method:e,params:wK(t)},provider:this}),u+=r.weight}const l=[];n.forEach((e=>{!e.done&&e.runner&&(l.push(e.runner),e.staller&&l.push(e.staller.getPromise()))})),l.length&&(yield Promise.race(l));const c=n.filter((e=>e.done&&null==e.error));if(c.length>=this.quorum){const e=r(c);if(void 0!==e)return n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),e;s||(yield lX(100).getPromise()),s=!1}const h=n.reduce(((e,t)=>{if(!t.done||null==t.error)return e;const r=t.error.code;return cX.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e}),{});if(Object.keys(h).forEach((e=>{const t=h[e];if(t.weight{e.staller&&e.staller.cancel(),e.cancelled=!0}));const r=t.error,i={};hX.forEach((e=>{null!=r[e]&&(i[e]=r[e])})),nX.throwError(r.reason||r.message,e,i)})),0===n.filter((e=>!e.done)).length)break}return n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),nX.throwError("failed to meet quorum",vY.errors.SERVER_ERROR,{method:e,params:t,results:n.map((e=>dX(e))),provider:this})}))}}const yX=null,vX=new vY(OJ),bX="84842078b09946638c03157f83405213";class wX extends RZ{constructor(e,t){const r=new _X(e,t),n=r.connection;n.password&&vX.throwError("INFURA WebSocket project secrets unsupported",vY.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});super(n.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),e),dK(this,"apiKey",r.projectId),dK(this,"projectId",r.projectId),dK(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===bX}}class _X extends OZ{static getWebSocketProvider(e,t){return new wX(e,t)}static getApiKey(e){const t={apiKey:bX,projectId:bX,projectSecret:null};return null==e||("string"==typeof e?t.projectId=e:null!=e.projectSecret?(vX.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),vX.assertArgument("string"==typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"goerli":r="goerli.infura.io";break;case"sepolia":r="sepolia.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;case"optimism":r="optimism-mainnet.infura.io";break;case"optimism-goerli":r="optimism-goerli.infura.io";break;case"arbitrum":r="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":r="arbitrum-goerli.infura.io";break;default:vX.throwError("unsupported network",vY.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const n={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:(e,r)=>(t.projectId===bX&&GJ(),Promise.resolve(!0))};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}isCommunityResource(){return this.projectId===bX}}class EX extends xZ{send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const n={request:r,resolve:null,reject:null},i=new Promise(((e,t)=>{n.resolve=e,n.reject=t}));return this._pendingBatch.push(n),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const e=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const t=e.map((e=>e.request));return this.emit("debug",{action:"requestBatch",request:wK(t),provider:this}),RJ(this.connection,JSON.stringify(t)).then((r=>{this.emit("debug",{action:"response",request:t,response:r,provider:this}),e.forEach(((e,t)=>{const n=r[t];if(n.error){const t=new Error(n.error.message);t.code=n.error.code,t.data=n.error.data,e.reject(t)}else e.resolve(n.result)}))}),(r=>{this.emit("debug",{action:"response",error:r,request:t,provider:this}),e.forEach((e=>{e.reject(r)}))}))}),10)),i}}const AX=new vY(OJ);class MX extends OZ{static getApiKey(e){return e&&"string"!=typeof e&&AX.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}static getUrl(e,t){AX.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let r=null;switch(e.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:AX.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t}}const SX=new vY(OJ),xX="62e1ad51b37b8e00394bda3b";class kX extends OZ{static getApiKey(e){const t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId=xX:"string"==typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:SX.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"goerli":r="eth-goerli.gateway.pokt.network";break;case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"kovan":r="poa-kovan.gateway.pokt.network";break;case"matic":r="poly-mainnet.gateway.pokt.network";break;case"maticmum":r="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;default:SX.throwError("unsupported network",vY.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const n={headers:{},url:`https://${r}/v1/lb/${t.applicationId}`};return null!=t.applicationSecretKey&&(n.user="",n.password=t.applicationSecretKey),n}isCommunityResource(){return this.applicationId===xX}}const TX=new vY(OJ);let CX=1;function IX(e,t){const r="Web3LegacyFetcher";return function(e,n){const i={method:e,params:n,id:CX++,jsonrpc:"2.0"};return new Promise(((e,n)=>{this.emit("debug",{action:"request",fetcher:r,request:wK(i),provider:this}),t(i,((t,o)=>{if(t)return this.emit("debug",{action:"response",fetcher:r,error:t,request:i,provider:this}),n(t);if(this.emit("debug",{action:"response",fetcher:r,request:i,response:o,provider:this}),o.error){const e=new Error(o.error.message);return e.code=o.error.code,e.data=o.error.data,n(e)}e(o.result)}))}))}}class NX extends xZ{constructor(e,t){null==e&&TX.throwArgumentError("missing provider","provider",e);let r=null,n=null,i=null;"function"==typeof e?(r="unknown:",n=e):(r=e.host||e.path||"",!r&&e.isMetaMask&&(r="metamask"),i=e,e.request?(""===r&&(r="eip-1193:"),n=function(e){return function(t,r){null==r&&(r=[]);const n={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:wK(n),provider:this}),e.request(n).then((e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,error:e,provider:this}),e}))}}(e)):e.sendAsync?n=IX(0,e.sendAsync.bind(e)):e.send?n=IX(0,e.send.bind(e)):TX.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,t),dK(this,"jsonRpcFetchFunc",n),dK(this,"provider",i)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}const RX=new vY(OJ);function PX(e,t){if(null==e&&(e="homestead"),"string"==typeof e){const t=e.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new xZ(e);case"ws":case"wss":return new RZ(e);default:RX.throwArgumentError("unsupported URL scheme","network",e)}}const r=AJ(e);return r&&r._defaultProvider||RX.throwError("unsupported getDefaultProvider network",vY.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),r._defaultProvider({FallbackProvider:gX,AlchemyProvider:FZ,AnkrProvider:YZ,CloudflareProvider:WZ,EtherscanProvider:tX,InfuraProvider:_X,JsonRpcProvider:xZ,NodesmithProvider:MX,PocketProvider:kX,Web3Provider:NX,IpcProvider:yX},t)}const DX=new RegExp("^bytes([0-9]+)$"),LX=new RegExp("^(u?int)([0-9]*)$"),OX=new RegExp("^(.*)\\[([0-9]*)\\]$"),jX=new vY("solidity/5.7.0");function BX(e,t,r){switch(e){case"address":return r?TY(t,32):SY(t);case"string":return Vq(t);case"bytes":return SY(t);case"bool":return t=t?"0x01":"0x00",r?TY(t,32):SY(t)}let n=e.match(LX);if(n){let i=parseInt(n[2]||"256");return(n[2]&&String(i)!==n[2]||i%8!=0||0===i||i>256)&&jX.throwArgumentError("invalid number type","type",e),r&&(i=256),TY(t=qY.from(t).toTwos(i),i/8)}if(n=e.match(DX),n){const i=parseInt(n[1]);return(String(i)!==n[1]||0===i||i>32)&&jX.throwArgumentError("invalid bytes type","type",e),SY(t).byteLength!==i&&jX.throwArgumentError(`invalid value for ${e}`,"value",t),r?SY((t+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):t}if(n=e.match(OX),n&&Array.isArray(t)){const r=n[1];parseInt(n[2]||String(t.length))!=t.length&&jX.throwArgumentError(`invalid array length for ${e}`,"value",t);const i=[];return t.forEach((function(e){i.push(BX(r,e,!0))})),xY(i)}return jX.throwArgumentError("invalid type","type",e)}function UX(e,t){e.length!=t.length&&jX.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);const r=[];return e.forEach((function(e,n){r.push(BX(e,t[n]))})),NY(xY(r))}function FX(e,t){return eq(UX(e,t))}function zX(e,t){return uQ(UX(e,t))}const HX=new vY("units/5.7.0"),GX=["wei","kwei","mwei","gwei","szabo","finney","ether"];function YX(e){const t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&HX.throwArgumentError("invalid value","value",e);let r=t[0],n="";for("-"===r.substring(0,1)&&(n="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");let i="";for(2===t.length&&(i="."+(t[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1);const o=[];for(;r.length;){if(r.length<=3){o.unshift(r);break}{const e=r.length-3;o.unshift(r.substring(e)),r=r.substring(0,e)}}return n+o.join(",")+i}function KX(e,t){if("string"==typeof t){const e=GX.indexOf(t);-1!==e&&(t=3*e)}return iK(e,null!=t?t:18)}function qX(e,t){if("string"!=typeof e&&HX.throwArgumentError("value must be a string","value",e),"string"==typeof t){const e=GX.indexOf(t);-1!==e&&(t=3*e)}return oK(e,null!=t?t:18)}function WX(e){return KX(e,18)}function VX(e){return qX(e,18)}const $X="ethers/5.7.2",QX=new vY($X);try{const e=window;null==e._ethers&&(e._ethers=g)}catch(XMe){}var JX=r(98399);const ZX="-",XX="+";class e0{constructor(e,t,r){this.signer=void 0,this.account=void 0,this.env=void 0,this.guestMode=void 0,this.coreContract=void 0,this.signer=e,this.env=t,this.guestMode=!(!r||!e),this.account=r,this.initializeCoreContract({signer:this.signer,env:this.env})}async initializeCoreContract(e){const{env:t=eg.STAGING,signer:r=null}=e||{};let n,i;if(r){n=await uO({account:null,signer:r});if(new hj(r).isViemSigner(r)){const e=gb({chain:Qb[t],transport:dv()});i=Vy({abi:Zb.CORE,address:Wb[t].EPNS_CORE_CONTRACT,publicClient:e,walletClient:r})}else i=new tQ(Wb[t].EPNS_CORE_CONTRACT,Zb.CORE,r)}this.coreContract=i}checkUserAddressExists(e){if(!e&&!this.account&&!this.guestMode)throw new Error("Account is required");return!0}checkSignerObjectExists(){if(!this.signer)throw new Error(d0.ensureSignerMessage());return!0}getNotificationType(e,t){return 1==e.length?"*"==e[0]?{recipient:t,type:mB.BROADCAST}:{recipient:e[0],type:mB.TARGETTED}:{recipient:e,type:mB.SUBSET}}generateNotificationLowLevelPayload({signer:e,env:t,recipients:r,options:n,channel:i,settings:o}){var s,a,u,l,c,h,d,f,p,m,g,y,v,b,w,_,E,A;i||(i=`${this.account}`);const M=this.getNotificationType(r,i),S=pB.DIRECT_PAYLOAD;let x="";null!=(s=n.payload)&&s.category&&o&&(2==o[n.payload.category-1].type&&(x=n.payload.category+ZX+2+ZX+o[n.payload.category-1].default),1==o[n.payload.category-1].type&&(x=n.payload.category+ZX+1),3==o[n.payload.category-1].type&&(x=n.payload.category+ZX+3+ZX+o[n.payload.category-1].default.lower));return{signer:e,channel:i,type:M.type,identityType:S,notification:n.notification,payload:{title:null!=(a=null==(u=n.payload)?void 0:u.title)?a:n.notification.title,body:null!=(l=null==(c=n.payload)?void 0:c.body)?l:n.notification.body,cta:null!=(h=null==(d=n.payload)?void 0:d.cta)?h:"",img:null!=(f=null==(p=n.payload)?void 0:p.embed)?f:"",hidden:null==(m=n.config)?void 0:m.hidden,etime:null==(g=n.config)?void 0:g.expiry,silent:null==(y=n.config)?void 0:y.silent,additionalMeta:null==(v=n.payload)?void 0:v.meta,index:null!=(b=n.payload)&&b.category?x:""},recipients:M.recipient,graph:null==(w=n.advanced)?void 0:w.graph,ipfsHash:null==(_=n.advanced)?void 0:_.ipfs,env:t,chatId:null==(E=n.advanced)?void 0:E.chatid,pgpPrivateKey:null==(A=n.advanced)?void 0:A.pgpPrivateKey}}isEmpty(e){return 0==e.trim().length}isValidLength(e,t=125,r=1){return e.length>=r&&e.length<=t}isValidUrl(e){return!!new RegExp("^((?:https|http):\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)}verifyEmptyChannelParameters(e){if(this.isEmpty(e.name))throw new Error("Channel name cannot be empty");if(this.isEmpty(e.description))throw new Error("Channel description cannot be empty");if(this.isEmpty(e.icon))throw new Error("Channel icon cannot be empty");if(this.isEmpty(e.url))throw new Error("Channel url cannot ne empty");return!0}validateParameterLength(e){if(this.isValidLength(e.name)){if(this.isValidLength(e.description)){if(this.isValidLength(e.url)&&this.isValidUrl(e.url))return!0;throw new Error("Channel url either excees 125 characters or is not a valid url")}throw new Error("Channel description should not exceed 125 characters")}throw new Error("Channel name should not exceed 125 characters")}validateChannelParameters(e){return this.verifyEmptyChannelParameters(e)&&this.validateParameterLength(e)}createContractInstance(e,t,r){if(!this.signer)throw new Error("Signer is not provided");let n;const i=this.signer?new hj(this.signer):null;if(null!=i&&i.isViemSigner(this.signer)){n=Vy({abi:t,address:e,publicClient:gb({chain:r,transport:dv()}),walletClient:this.signer})}else n=new tQ(e,t,this.signer);return n}async fetchBalance(e,t){if(!this.signer)throw new Error("Signer is not provided");let r;const n=new hj(this.signer);try{return r=n.isViemSigner(this.signer)?BigInt(await e.read.balanceOf({args:[t]})):BigInt(await e.balanceOf(t)),r}catch(dVe){throw new Error(JSON.stringify(dVe))}}async fetchAllownace(e,t,r){if(!this.signer)throw new Error("Signer is not provided");const n=new hj(this.signer);let i;try{return i=n.isViemSigner(this.signer)?BigInt(await e.read.allowance({args:[t,r]})):BigInt(await e.allowance(t,r)),i}catch(XMe){throw new Error(JSON.stringify(XMe))}}async fetchUpdateCounter(e,t){if(!this.signer)throw new Error("Signer is not provided");let r;const n=new hj(this.signer);try{return r=n.isViemSigner(this.signer)?BigInt(await e.read.channelUpdateCounter({args:[t]})):BigInt(await e.channelUpdateCounter(t)),r+BigInt(1)}catch(XMe){throw new Error(JSON.stringify(XMe))}}async approveToken(e,t,r){try{if(!this.signer)throw new Error("Signer is not provided");if(new hj(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const n=e.write.approve({args:[t,r]});await n}else{var n,i;if(!this.signer||!this.signer.provider)throw new Error("ethers provider/signer is not provided");const o=e.approve(t,r),s=await o;await(null==(n=this.signer)||null==(i=n.provider)?void 0:i.waitForTransaction(s.hash))}return!0}catch(XMe){return JX.error(XMe),!1}}async createChannel(e,t,r,n){let i;try{if(!this.signer)throw new Error("Signer is not provided");if(new hj(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const o=e.write.createChannelWithPUSH({args:[t,(0,Ag.NC)(new Uint8Array(r)),n,this.getTimeBound()]});i=await o}else{var o,s;const a=e.createChannelWithPUSH(t,r,n,this.getTimeBound(),{gasLimit:1e6}),u=await a,l=await(null==(o=this.signer)||null==(s=o.provider)?void 0:s.waitForTransaction(u.hash));if(0==(null==l?void 0:l.status))throw new Error("Something Went wrong while creating your channel");i=u.hash}return i}catch(XMe){throw new Error(null==XMe?void 0:XMe.message)}}async updateChannel(e,t,r,n){let i;try{if(!this.signer)throw new Error("Signer is not provided");if(new hj(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const o=e.write.updateChannelMeta({args:[t,(0,Ag.NC)(new Uint8Array(r)),n]});i=await o}else{var o,s;const a=e.updateChannelMeta(t,r,n,{gasLimit:1e6}),u=await a,l=await(null==(o=this.signer)||null==(s=o.provider)?void 0:s.waitForTransaction(u.hash));if(0==(null==l?void 0:l.status))throw new Error("Something Went wrong while updating your channel");i=u.hash}return i}catch(XMe){throw new Error(null==XMe?void 0:XMe.message)}}async verifyChannel(e,t){try{if(!this.signer)throw new Error("Signer is not provided");let i;if(new hj(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const r=e.write.verify({args:[t]});i=await r}else{var r,n;if(!this.signer.provider)throw new Error("ethers provider is not provided");const o=e.verify(t),s=await o;await(null==(r=this.signer)||null==(n=r.provider)?void 0:n.waitForTransaction(s.hash)),i=s.hash}return i}catch(XMe){throw new Error(XMe.message)}}async createChanelSettings(e,t,r,n,i){try{if(!this.signer)throw new Error("Signer is not provided");let a;if(new hj(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const o=e.write.createChannelSettings({args:[t,r,n,i]});a=await o}else{var o,s;if(!this.signer.provider)throw new Error("ethers provider is not provided");const u=e.createChannelSettings(t,r,n,i),l=await u;await(null==(o=this.signer)||null==(s=o.provider)?void 0:s.waitForTransaction(l.hash)),a=l.hash}return a}catch(XMe){throw new Error(XMe.message)}}async addDelegator(e,t){try{if(!this.signer)throw new Error("Signer is not provided");let i;if(new hj(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const r=e.write.addDelegate({args:[t]});i=await r}else{var r,n;if(!this.signer.provider)throw new Error("ethers provider is not provided");const o=e.addDelegate(t),s=await o;await(null==(r=this.signer)||null==(n=r.provider)?void 0:n.waitForTransaction(s.hash)),i=s.hash}return i}catch(XMe){throw new Error(XMe.message)}}async removeDelegator(e,t){try{if(!this.signer)throw new Error("Signer is not provided");let i;if(new hj(this.signer).isViemSigner(this.signer)){if(!e.write)throw new Error("viem signer is not provided");const r=e.write.removeDelegate({args:[t]});i=await r}else{var r,n;if(!this.signer.provider)throw new Error("ethers provider is not provided");const o=e.removeDelegate(t),s=await o;await(null==(r=this.signer)||null==(n=r.provider)?void 0:n.waitForTransaction(s.hash)),i=s.hash}return i}catch(XMe){throw new Error(XMe.message)}}async getChainId(e){if(!this.signer)throw new Error("Signer is not provided");return new hj(this.signer).getChainId()}async uploadToIPFSViaPushNode(e){try{return(await UL(`${Wb[this.env].API_BASE_URL}/v1/ipfs/upload`,{data:e})).data.cid}catch(XMe){throw new Error("Something went wrong while uploading data to IPFS")}}getTimeBound(e){return 0}getMinimalSetting(e){let t="",r="";for(let o=0;oe.data)).catch((e=>{JX.error(`[EPNS-SDK] - API ${n}: `,e)})),o=await Ij({channel:i.channel,env:this.env});return o||null}catch(XMe){return null}}getAddressFromCaip(e){return null==e?void 0:e.split(":")[(null==e?void 0:e.split(":").length)-1]}}class t0 extends e0{constructor(e,t,r){var n;super(e,t,r),n=this,this.get=async function(e){try{let t=null!=e&&e.channel?e.channel:n.account?ij(n.env,n.account):null;return n.checkUserAddressExists(t),t=rj(t)?t:ij(n.env,t),n.checkUserAddressExists(t),await Rj({channel:t,env:n.env})}catch(XMe){throw new Error(`Push SDK Error: API : delegate::get : ${XMe}`)}},this.add=async function(e){try{n.checkSignerObjectExists(),rj(e)&&(e=n.getAddressFromCaip(e));const t=`eip155:${await n.getChainId(n.signer)}`;if(!Vb[n.env][t]||!ew[n.env][t])throw new Error("Unsupported Chainid");const r=Vb[n.env][t].EPNS_COMMUNICATOR_CONTRACT,i=n.createContractInstance(r,Zb.COMM,ew[n.env][t].NETWORK);return{transactionHash:await n.addDelegator(i,e)}}catch(XMe){throw new Error(`Push SDK Error: Contract : delegate::add : ${XMe}`)}},this.remove=async function(e){try{n.checkSignerObjectExists(),rj(e)&&(e=n.getAddressFromCaip(e));const t=`eip155:${await n.getChainId(n.signer)}`;if(!Vb[n.env][t]||!ew[n.env][t])throw new Error("Unsupported Chainid");const r=Vb[n.env][t].EPNS_COMMUNICATOR_CONTRACT,i=n.createContractInstance(r,Zb.COMM,ew[n.env][t].NETWORK);return{transactionHash:await n.removeDelegator(i,e)}}catch(XMe){throw new Error(`Push SDK Error: Contract : delegate::remove : ${XMe}`)}}}}class r0{constructor(e){var t=this;this.env=void 0,this.info=async function(e){try{return await Tj(Object.assign({},e,{env:t.env}))}catch(XMe){throw new Error(`Push SDK Error: API : alias::info : ${XMe}`)}},this.env=e}}class n0 extends e0{constructor(e,t,r){var n;super(e,t,r),n=this,this.delegate=void 0,this.alias=void 0,this.info=async function(e){try{var t;return n.checkUserAddressExists(e),e=null!=(t=e)?t:ij(n.env,n.account),await Ij({channel:e,env:n.env})}catch(XMe){throw new Error(`Push SDK Error: API : channel::info : ${XMe}`)}},this.search=async function(e,t){try{const{page:r=og.PAGINATION.INITIAL_PAGE,limit:i=og.PAGINATION.LIMIT}=t||{};return await Dj({query:e,page:r,limit:i,env:n.env})}catch(XMe){throw new Error(`Push SDK Error: API : channel::search : ${XMe}`)}},this.subscribers=async function(e){try{let i=null!=e&&e.channel?e.channel:n.account?ij(n.env,n.account):null;var t,r;return n.checkUserAddressExists(i),i=rj(i)?i:ij(n.env,i),e&&e.page?await zj({channel:i,env:n.env,page:e.page,limit:null!=(t=e.limit)?t:10,setting:null!=(r=e.setting)&&r,category:e.category}):await(async e=>{Uj.warn("\n [Push SDK]: _getSubscribers() Deprecation Warning!\n This method has been deprecated, please use the below alternatives\n if you need to,\n * to check if user is subscribed or not: user.getSubscriptions()\n * get channels count: channels.getChannels()\n");const{channel:t,env:r=og.ENV.PROD}=e||{},n=nj(await oj(r,t,"Channel"));if(!n)throw Error("Invalid Channel CAIP!");const i=n.networkId,o=`${nw(r)}/channels/_get_subscribers`,s={channel:n.address,blockchain:i,op:"read"};return(await UL(o,s)).data.subscribers})({channel:i,env:n.env})}catch(XMe){throw new Error(`Push SDK Error: API : channel::subscribers : ${XMe}`)}},this.send=async function(e,t){try{var r,i;n.checkSignerObjectExists();const o=await n.getChannelOrAliasInfo(null!=(r=t.channel)?r:n.account);let s=null;o&&o.channel_settings&&(s=JSON.parse(o.channel_settings));const a=n.generateNotificationLowLevelPayload({signer:n.signer,env:n.env,recipients:e,options:t,channel:null!=(i=t.channel)?i:n.account,settings:s});return await xB(a)}catch(XMe){throw new Error(`Push SDK Error: API : channel::send : ${XMe}`)}},this.create=async function(e){const{name:t,description:r,url:i,icon:o,alias:s=null,progressHook:a}=e||{};try{var u;let l;n.validateChannelParameters(e);const c=await n.createContractInstance($b[n.env],Zb.TOKEN,Qb[n.env]),h=await n.fetchBalance(c,n.account),d=ub(Jb[n.env].toString(),18);if(d>h)throw new Error("Insufficient PUSH balance");if(s){if(!rj(s))throw new Error("Invalid alias CAIP");const e=nj(s);l={[`${null==e?void 0:e.blockchain}:${null==e?void 0:e.networkId}`]:null==e?void 0:e.address}}null==a||a(IL["PUSH-CREATE-01"]);const f={name:t,info:r,url:i,icon:o,aliasDetails:null!=(u=l)?u:{}},p=await n.uploadToIPFSViaPushNode(JSON.stringify(f));if(!(await n.fetchAllownace(c,n.account,Wb[n.env].EPNS_CORE_CONTRACT)>=d)){null==a||a(IL["PUSH-CREATE-02"]);if(!(await n.approveToken(c,Wb[n.env].EPNS_CORE_CONTRACT,d)))throw new Error("Something went wrong while approving the token")}const m=Xb,g="1+"+p,y=Lg.qX(g);null==a||a(IL["PUSH-CREATE-03"]);const v=await n.createChannel(n.coreContract,m,y,d);return null==a||a(IL["PUSH-CREATE-04"]),{transactionHash:v}}catch(XMe){const t=IL["PUSH-ERROR-02"];throw null==a||a(t("Create Channel",XMe)),new Error(`Push SDK Error: Contract : createChannelWithPUSH : ${XMe}`)}},this.update=async function(e){const{name:t,description:r,url:i,icon:o,alias:s=null,progressHook:a}=e||{};try{var u;let l;n.validateChannelParameters(e);const c=await n.createContractInstance($b[n.env],Zb.TOKEN,Qb[n.env]),h=await n.fetchBalance(c,n.account),d=await n.fetchUpdateCounter(n.coreContract,n.account),f=ub(Jb[n.env].toString(),18)*d;if(f>h)throw new Error("Insufficient PUSH balance");if(s){if(!rj(s))throw new Error("Invalid alias CAIP");const e=nj(s);l={[`${null==e?void 0:e.blockchain}:${null==e?void 0:e.networkId}`]:null==e?void 0:e.address}}null==a||a(IL["PUSH-UPDATE-01"]);const p={name:t,info:r,url:i,icon:o,aliasDetails:null!=(u=l)?u:{}},m=await n.uploadToIPFSViaPushNode(JSON.stringify(p));if(!(await n.fetchAllownace(c,n.account,Wb[n.env].EPNS_CORE_CONTRACT)>=f)){null==a||a(IL["PUSH-UPDATE-02"]);if(!(await n.approveToken(c,Wb[n.env].EPNS_CORE_CONTRACT,f)))throw new Error("Something went wrong while approving the token")}const g="1+"+m,y=Lg.qX(g);null==a||a(IL["PUSH-UPDATE-03"]);const v=await n.updateChannel(n.coreContract,n.account,y,f);return null==a||a(IL["PUSH-UPDATE-04"]),{transactionHash:v}}catch(XMe){const t=IL["PUSH-ERROR-02"];throw null==a||a(t("Update Channel",XMe)),new Error(`Push SDK Error: Contract channel::update : ${XMe}`)}},this.verify=async function(e){try{if(n.checkSignerObjectExists(),rj(e)&&(e=e.split(":")[2]),!Ig.U(e))throw new Error("Invalid channel address");const t=await n.info(n.account);if(0==(null==t?void 0:t.verified_status))throw new Error("Only verified channel can verify other channel");const r=await n.verifyChannel(n.coreContract,e);if(!r)throw new Error("Something went wrong while verifying the channel");return{transactionHash:r}}catch(XMe){throw new Error(`Push SDK Error: Contract channel::verify : ${XMe}`)}},this.setting=async function(e){try{n.checkSignerObjectExists();const t=await n.createContractInstance($b[n.env],Zb.TOKEN,Qb[n.env]),r=await n.fetchBalance(t,n.account),i=ub(Jb[n.env].toString(),18);if(i>r)throw new Error("Insufficient PUSH balance");if(!(await n.fetchAllownace(t,n.account,Wb[n.env].EPNS_CORE_CONTRACT)>=i)){if(!(await n.approveToken(t,Wb[n.env].EPNS_CORE_CONTRACT,i)))throw new Error("Something went wrong while approving your token")}const{setting:o,description:s}=n.getMinimalSetting(e);return{transactionHash:await n.createChanelSettings(n.coreContract,e.length,o,s,i)}}catch(XMe){throw new Error(`Push SDK Error: Contract : channel::setting : ${XMe}`)}},this.delegate=new t0(e,t,r),this.alias=new r0(t)}}r(11069),r(79173);const i0="Channel is needed",o0="Invalid CAIP format",s0={INBOX:!1,SPAM:!0};class a0 extends e0{constructor(e,t,r){var n;super(e,t,r),n=this,this.list=async function(e=AH.INBOX,t){const{page:r=og.PAGINATION.INITIAL_PAGE,limit:i=og.PAGINATION.LIMIT,channels:o=[],raw:s=!1}=t||{};try{const a=null!=t&&t.account?t.account:n.account?ij(n.env,n.account):null;n.checkUserAddressExists(a);const u=n.getAddressFromCaip(a);if(0==o.length)return await JL({user:u,page:r,limit:i,spam:s0[e],raw:s,env:n.env});{const t=o.map((async function(t){return await(async e=>{const{user:t,env:r=og.ENV.PROD,page:n=og.PAGINATION.INITIAL_PAGE,limit:i=og.PAGINATION.LIMIT,spam:o=!1,raw:s=!1,channels:a=[]}=e||{},u=await oj(r,t,"User"),l=nw(r);if(0==a.length)throw new Error("channels cannot be empty");const c=`${l}/v1/users/${u}/channels/${await oj(r,a[0],"Channel")}/feeds?${lj({page:n,limit:cj(i),spam:o})}`;return BL(c).then((e=>{var t,r;return s?(null==e||null==(r=e.data)?void 0:r.feeds)||[]:$L(null==e||null==(t=e.data)?void 0:t.feeds)||[]})).catch((e=>{iO.error(`[Push SDK] - API ${c}: `,e)}))})({user:u,page:r,limit:i,spam:s0[e],raw:s,env:n.env,channels:[t]})})),a=await Promise.all(t);return a.flat()}}catch(XMe){throw new Error(`Push SDK Error: API : notifcaiton::list : ${XMe}`)}},this.subscriptions=async function(e){try{const{page:t=og.PAGINATION.INITIAL_PAGE,limit:r=og.PAGINATION.LIMIT}=e||{},i=null!=e&&e.account?e.account:n.account?ij(n.env,n.account):null;return n.checkUserAddressExists(i),await XL({user:i,env:n.env})}catch(XMe){throw new Error(`Push SDK Error: API : notifcaiton::subscriptions : ${XMe}`)}},this.subscribe=async function(e,t){try{const{onSuccess:r,onError:i,settings:o}=t||{};if(n.checkSignerObjectExists(),n.checkUserAddressExists(),!e&&""!=e)throw new Error(i0);if(!rj(e))throw new Error(o0);const s=nj(e),a=sj(n.account,parseInt(null==s?void 0:s.networkId)),u=n.getMinimalUserSetting(o);return await(async e=>{const{signer:t,channelAddress:r,userAddress:n,settings:i,verifyingContractAddress:o,env:s=og.ENV.PROD,onSuccess:a,onError:u}=e||{};try{const e=await oj(s,r,"Channel"),u=nj(e);if(!u)throw Error("Invalid Channel CAIP!");const l=parseInt(u.networkId,10),c=nj(await oj(s,n,"User"));if(!c)throw Error("Invalid User CAIP!");const{API_BASE_URL:h,EPNS_COMMUNICATOR_CONTRACT:d}=rw(s,u),f=`${h}/v1/channels/${e}/subscribe`,p=Lj(l,o||d),m={Data:[{name:"data",type:"string"}]},g={data:jj(u.address,c.address,"Subscribe",i)},y=new hj(t),v={verificationProof:`eip712v2:${await y.signTypedData(p,m,g,"Data")}`,message:g.data},b=await UL(f,v);return"function"==typeof a&&a(),{status:b.status,message:"successfully opted into channel"}}catch(dVe){var l,c;return"function"==typeof u&&u(dVe),{status:null!=(l=null==dVe||null==(c=dVe.response)?void 0:c.status)?l:"",message:dVe instanceof Error?dVe.message:JSON.stringify(dVe)}}})({signer:n.signer,channelAddress:e,userAddress:a,env:n.env,settings:null!=u?u:"",onSuccess:r,onError:i})}catch(XMe){throw new Error(`Push SDK Error: API : notifcaiton::subscribe : ${XMe}`)}},this.unsubscribe=async function(e,t){try{const{onSuccess:r,onError:i}=t||{};if(n.checkUserAddressExists(),n.checkSignerObjectExists(),!e&&""!=e)return new Error(i0);if(!rj(e))return new Error(o0);const o=nj(e),s=sj(n.account,parseInt(null==o?void 0:o.networkId));return await(async e=>{const{signer:t,channelAddress:r,userAddress:n,verifyingContractAddress:i,env:o=og.ENV.PROD,onSuccess:s,onError:a}=e||{};try{const e=await oj(o,r,"Channel"),a=nj(e);if(!a)throw Error("Invalid Channel CAIP!");const u=parseInt(a.networkId,10),l=nj(await oj(o,n,"User"));if(!l)throw Error("Invalid User CAIP!");const{API_BASE_URL:c,EPNS_COMMUNICATOR_CONTRACT:h}=rw(o,a),d=`${c}/v1/channels/${e}/unsubscribe`,f=Lj(u,i||h),p={Data:[{name:"data",type:"string"}]},m={data:jj(a.address,l.address,"Unsubscribe")},g=new hj(t),y={verificationProof:`eip712v2:${await g.signTypedData(f,p,m,"Data")}`,message:m.data},v=await UL(d,y);return"function"==typeof s&&s(),{status:v.status,message:"successfully opted out channel"}}catch(dVe){var u,l;return"function"==typeof a&&a(dVe),{status:null!=(u=null==dVe||null==(l=dVe.response)?void 0:l.status)?u:"",message:dVe instanceof Error?dVe.message:JSON.stringify(dVe)}}})({signer:n.signer,channelAddress:e,userAddress:s,env:n.env,onSuccess:r,onError:i})}catch(XMe){throw new Error(`Push SDK Error: API : notifcaiton::unsubscribe : ${XMe}`)}}}}const u0=e=>{const{signal:t,address:r,meta:n}=e;if(!t)throw new Error("Invalid signal data received");if(!ZO(r))throw new Error("Invalid address received");if(n.rules.access.type===AB.PUSH_CHAT&&!n.rules.access.data.chatId)throw new Error("ChatId not found in meta.rules")};class l0{constructor({videoV1Instance:e,account:t,decryptedPgpPvtKey:r,env:n}){this.account=void 0,this.decryptedPgpPvtKey=void 0,this.env=void 0,this.videoInstance=void 0,this.videoInstance=e,this.account=t,this.decryptedPgpPvtKey=r,this.env=n}async request(e,t){const{rules:r}=t||{};for(const i of e)if(!ZO(i))throw new Error("Invalid recipient address found");if(0===e.length)throw new Error("Alteast one recipient address is required for a video call");if(e.length>1&&(null==r?void 0:r.access.type)===AB.PUSH_CHAT&&!r.access.data.chatId)throw new Error("For multiple recipient addresses, chatId is required for a video call");let n="";if(null==r||!r.access.data.chatId){let t=1;const r=30;for(;!n;){const i=await TB({account:this.account,toDecrypt:!0,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env,page:t,limit:r});if(0===i.length)break;i.forEach((t=>{t.did===aj(e[0])&&t.chatId&&(n=t.chatId)})),t++}if(!n)throw new Error(`ChatId not found between local user (${this.account}) and recipient (${e[0]}).`)}this.videoInstance.setData((t=>Ez(t,(t=>{var i;t.local.address=this.account,t.incoming=e.map((e=>({address:uj(e),status:pF.INITIALIZED}))),t.meta.chatId=null!=(i=null==r?void 0:r.access.data.chatId)?i:n})))),await this.videoInstance.request({senderAddress:uj(this.account),recipientAddress:e.map((e=>uj(e))),rules:null!=r?r:{access:{type:AB.PUSH_CHAT,data:{chatId:n}}}})}async approve(e){u0(e);const{signal:t,address:r,meta:n}=e;await this.videoInstance.acceptRequest({senderAddress:uj(this.account),recipientAddress:uj(r),signalData:t,rules:n.rules})}async deny(e){u0(e);const{address:t}=e;await this.videoInstance.disconnect({peerAddress:uj(t)})}async disconnect(e){await this.videoInstance.disconnect({peerAddress:uj(e)})}media({video:e,audio:t}){"boolean"==typeof e&&this.videoInstance.enableVideo({state:e}),"boolean"==typeof t&&this.videoInstance.enableAudio({state:t})}}class c0{constructor(e,t,r,n){this.account=e,this.env=t,this.decryptedPgpPvtKey=r,this.signer=n}async initialize(e,t){const{stream:r,config:n,media:i}=t;if(!this.signer)throw new Error("Signer is required for push video");if(!this.decryptedPgpPvtKey)throw new Error("PushSDK was initialized in readonly mode. Video functionality is not available.");const o=await new hj(this.signer).getChainId();if(!o)throw new Error("Chain Id not retrievable from signer");const s=new Lz({signer:this.signer,chainId:o,pgpPrivateKey:this.decryptedPgpPvtKey,env:this.env,setData:e});return await s.create(Object.assign({},i&&{stream:i},(null==n?void 0:n.audio)&&{audio:n.audio},(null==n?void 0:n.video)&&{video:n.video})),r.on(EH.STREAM.VIDEO,(e=>{const{address:t,signal:r,meta:{rules:n}}=e.peerInfo,i=n.access.data.chatId;e.event===EH.VIDEO.EVENT.REQUEST&&s.setData((e=>Ez(e,(e=>{e.local.address=this.account,e.incoming[0].address=t,e.incoming[0].status=pF.RECEIVED,e.meta.chatId=i,e.meta.initiator.address=t,e.meta.initiator.signal=r})))),i&&i===s.data.meta.chatId&&(e.event===EH.VIDEO.EVENT.DENY&&(s.data.local.stream&&xz(s.data.local.stream),s.setData((()=>Dz))),e.event!==EH.VIDEO.EVENT.APPROVE&&e.event!==EH.VIDEO.EVENT.RETRY_APPROVE||s.connect({peerAddress:t,signalData:r}),e.event===EH.VIDEO.EVENT.RETRY_REQUEST&&s.isInitiator()&&s.request({senderAddress:this.account,recipientAddress:t,rules:n,retry:!0}),e.event!==EH.VIDEO.EVENT.RETRY_REQUEST||s.isInitiator()||s.acceptRequest({signalData:r,senderAddress:this.account,recipientAddress:t,rules:n,retry:!0}))})),new l0({videoV1Instance:s,account:this.account,decryptedPgpPvtKey:this.decryptedPgpPvtKey,env:this.env})}}var h0=r(98399);class d0{constructor(e,t,r,n,i,o,s,a,u){this.signer=void 0,this.readMode=void 0,this.alpha=void 0,this.account=void 0,this.decryptedPgpPvtKey=void 0,this.pgpPublicKey=void 0,this.env=void 0,this.progressHook=void 0,this.chat=void 0,this.video=void 0,this.profile=void 0,this.encryption=void 0,this.user=void 0,this.stream=void 0,this.channel=void 0,this.notification=void 0,this.errors=void 0,this.signer=s,this.readMode=r,this.alpha=n,this.env=e,this.account=t,this.decryptedPgpPvtKey=i,this.pgpPublicKey=o,this.progressHook=a,this.channel=new n0(this.signer,this.env,this.account),this.notification=new a0(this.signer,this.env,this.account),this.chat=new IH(this.account,this.env,this.alpha,this.decryptedPgpPvtKey,this.signer,this.progressHook),this.profile=new NH(this.account,this.env,this.decryptedPgpPvtKey,this.progressHook),this.encryption=new RH(this.account,this.env,this.decryptedPgpPvtKey,this.pgpPublicKey,this.signer,this.progressHook),this.user=new kH(this.account,this.env),this.video=new c0(this.account,this.env,this.decryptedPgpPvtKey,this.signer),this.errors=u||[]}static async initialize(...e){try{var t,r,n,i,o,s;let u,l;if(1===e.length&&"object"==typeof e[0]&&"account"in e[0]&&"string"==typeof e[0].account)l=e[0];else if(1===e.length)[u]=e;else{if(2!==e.length)throw new Error("Invalid arguments provided to initialize method.");[u,l]=e}if(!(u||null!=(t=l)&&t.account))throw new Error("Either 'signer' or 'account' must be provided.");const c={env:eg.STAGING,version:og.ENC_TYPE_V3,autoUpgrade:!0,account:null},h=Object.assign({},c,l,{version:(null==(r=l)?void 0:r.version)||c.version,versionMeta:(null==(n=l)?void 0:n.versionMeta)||c.versionMeta,autoUpgrade:void 0!==(null==(i=l)?void 0:i.autoUpgrade)?null==(o=l)?void 0:o.autoUpgrade:c.autoUpgrade,alpha:null!=(s=l)&&s.alpha&&l.alpha.feature?l.alpha:tw[ig]});let d=!u;const f=[];let p;var a;if(u)p=await uO(aO({account:h.account,signer:u}));else p=null==(a=l)?void 0:a.account;if(!p)throw new Error("Account could not be derived.");let m,g;const y=await HL({account:p,env:h.env});if(!d)if(y&&y.encryptedPrivateKey){try{m=await mj({encryptedPGPPrivateKey:y.encryptedPrivateKey,signer:u,toUpgrade:h.autoUpgrade,additionalMeta:h.versionMeta,progressHook:h.progressHook,env:h.env})}catch(XMe){const t="Error decrypting PGP private key ...swiching to Guest mode";if(f.push({type:"ERROR",message:t}),h0.error(t),ej(p)){const e="NFT Account Detected. If this NFT was recently transferred to you, please ensure you have received the correct password from the previous owner. Alternatively, you can reinitialize for a fresh start. Please be aware that reinitialization will result in the loss of all previous account data.";f.push({type:"WARN",message:e}),h0.warn(e)}d=!0}g=y.publicKey}else{const e=await WL({env:h.env,account:p,signer:u,version:h.version,additionalMeta:h.versionMeta,origin:h.origin,progressHook:h.progressHook});m=e.decryptedPrivateKey,g=e.publicKey}return new d0(h.env,p,d,h.alpha,m,g,u,h.progressHook,f)}catch(XMe){throw h0.error("Error initializing PushAPI:",XMe),XMe}}async reinitialize(e){const t=await WL({env:this.env,account:this.account,signer:this.signer,additionalMeta:e.versionMeta,progressHook:this.progressHook});this.decryptedPgpPvtKey=t.decryptedPrivateKey,this.pgpPublicKey=t.publicKey,this.readMode=!1,this.errors=[],this.chat=new IH(this.account,this.env,this.alpha,this.decryptedPgpPvtKey,this.signer,this.progressHook),this.profile=new NH(this.account,this.env,this.decryptedPgpPvtKey,this.progressHook),this.encryption=new RH(this.account,this.env,this.decryptedPgpPvtKey,this.pgpPublicKey,this.signer,this.progressHook)}async initStream(e,t){if(this.stream)throw new Error("Stream is already initialized.");return this.stream=await oY.initialize(this.account,e,this.env,this.decryptedPgpPvtKey,this.progressHook,this.signer,t),this.stream}async info(e){const t=(null==e?void 0:e.overrideAccount)||this.account;return await HL({account:t,env:this.env})}static ensureSignerMessage(){return"Operation not allowed in read-only mode. Signer is required."}}r(25906),r(33037),r(27662);var f0=r(60216);r(33631);const p0=["body"];r(48192),r(19190),r(7874),r(90789),r(58024);const m0={validURL:function(e){if(!e)return!1;return!!new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\S*)?$","i").test(e)},getSaveFileName:function(e,t){return(e=(e=e.replace(/(^\w+:|^)\/\//,"")).replace(/[`~!@#$%^&*()_|+\-=?;:'",<>\{\}\[\]\\\/]/gi,"")).length>250&&(e=e.substr(-250)),t?e+".temp":e},isMediaSupportedVideo:function(e){if(!e)return;const t=m0.isMediaExternalEmbed(e);return t||"mp4"===e.split(".").pop()},isMediaExternalEmbed:function(e){return m0.isMediaYoutube(e)},isMediaYoutube:function(e){if(void 0!==e||""!==e){const t=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=|\?v=)([^#\&\?]*).*/,r=e.match(t);if(r&&11===r[2].length){return"https://www.youtube.com/embed/"+r[2]+"?autoplay=0&enablejsapi=1"}}return""},getYoutubeID:function(e){if(void 0!==e||""!==e){const t=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=|\?v=)([^#\&\?]*).*/,r=e.match(t);if(r&&11===r[2].length)return r[2]}return""}},g0=e=>e.replace(/\n/g,"
").replace(/^\\/g,"");function y0(e){return y0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y0(e)}function v0(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function b0(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}var w0=r(98399);function _0(e){b0(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===y0(e)&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||void 0===w0||(w0.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),w0.warn((new Error).stack)),new Date(NaN))}function E0(e,t){b0(2,arguments);var r=_0(e).getTime(),n=v0(t);return new Date(r+n)}var A0={};function M0(){return A0}function S0(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}Math.pow(10,8);function x0(e){return b0(1,arguments),e instanceof Date||"object"===y0(e)&&"[object Date]"===Object.prototype.toString.call(e)}function k0(e){if(b0(1,arguments),!x0(e)&&"number"!=typeof e)return!1;var t=_0(e);return!isNaN(Number(t))}Math.ceil,Math.round,Math.floor;function T0(e,t){b0(2,arguments);var r=v0(t);return E0(e,-r)}var C0=864e5;function I0(e){b0(1,arguments);var t=1,r=_0(e),n=r.getUTCDay(),i=(n=i.getTime()?r+1:t.getTime()>=s.getTime()?r:r-1}function R0(e){b0(1,arguments);var t=N0(e),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var n=I0(r);return n}var P0=6048e5;function D0(e){b0(1,arguments);var t=_0(e),r=I0(t).getTime()-R0(t).getTime();return Math.round(r/P0)+1}function L0(e,t){var r,n,i,o,s,a,u,l;b0(1,arguments);var c=M0(),h=v0(null!==(r=null!==(n=null!==(i=null!==(o=null==t?void 0:t.weekStartsOn)&&void 0!==o?o:null==t||null===(s=t.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==i?i:c.weekStartsOn)&&void 0!==n?n:null===(u=c.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=_0(e),f=d.getUTCDay(),p=(f=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(h+1,0,f),p.setUTCHours(0,0,0,0);var m=L0(p,t),g=new Date(0);g.setUTCFullYear(h,0,f),g.setUTCHours(0,0,0,0);var y=L0(g,t);return c.getTime()>=m.getTime()?h+1:c.getTime()>=y.getTime()?h:h-1}function j0(e,t){var r,n,i,o,s,a,u,l;b0(1,arguments);var c=M0(),h=v0(null!==(r=null!==(n=null!==(i=null!==(o=null==t?void 0:t.firstWeekContainsDate)&&void 0!==o?o:null==t||null===(s=t.locale)||void 0===s||null===(a=s.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==i?i:c.firstWeekContainsDate)&&void 0!==n?n:null===(u=c.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==r?r:1),d=O0(e,t),f=new Date(0);f.setUTCFullYear(d,0,h),f.setUTCHours(0,0,0,0);var p=L0(f,t);return p}var B0=6048e5;function U0(e,t){b0(1,arguments);var r=_0(e),n=L0(r,t).getTime()-j0(r,t).getTime();return Math.round(n/B0)+1}function F0(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length0?r:1-r;return F0("yy"===t?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return"M"===t?String(r+1):F0(r+1,2)},d:function(e,t){return F0(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:function(e,t){return F0(e.getUTCHours()%12||12,t.length)},H:function(e,t){return F0(e.getUTCHours(),t.length)},m:function(e,t){return F0(e.getUTCMinutes(),t.length)},s:function(e,t){return F0(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=e.getUTCMilliseconds();return F0(Math.floor(n*Math.pow(10,r-3)),t.length)}};const H0=z0;var G0="midnight",Y0="noon",K0="morning",q0="afternoon",W0="evening",V0="night",$0={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){var n=e.getUTCFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return H0.y(e,t)},Y:function(e,t,r,n){var i=O0(e,n),o=i>0?i:1-i;return"YY"===t?F0(o%100,2):"Yo"===t?r.ordinalNumber(o,{unit:"year"}):F0(o,t.length)},R:function(e,t){return F0(N0(e),t.length)},u:function(e,t){return F0(e.getUTCFullYear(),t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return F0(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return F0(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return H0.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return F0(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var i=U0(e,n);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):F0(i,t.length)},I:function(e,t,r){var n=D0(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):F0(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):H0.d(e,t)},D:function(e,t,r){var n=function(e){b0(1,arguments);var t=_0(e),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var n=t.getTime(),i=r-n;return Math.floor(i/C0)+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):F0(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return F0(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var i=e.getUTCDay(),o=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return F0(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return F0(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n,i=e.getUTCHours();switch(n=12===i?Y0:0===i?G0:i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n,i=e.getUTCHours();switch(n=i>=17?W0:i>=12?q0:i>=4?K0:V0,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){var n=e.getUTCHours()%12;return 0===n&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return H0.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):H0.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):F0(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):F0(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):H0.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):H0.s(e,t)},S:function(e,t){return H0.S(e,t)},X:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();if(0===i)return"Z";switch(t){case"X":return J0(i);case"XXXX":case"XX":return Z0(i);default:return Z0(i,":")}},x:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"x":return J0(i);case"xxxx":case"xx":return Z0(i);default:return Z0(i,":")}},O:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Q0(i,":");default:return"GMT"+Z0(i,":")}},z:function(e,t,r,n){var i=(n._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Q0(i,":");default:return"GMT"+Z0(i,":")}},t:function(e,t,r,n){var i=n._originalDate||e;return F0(Math.floor(i.getTime()/1e3),t.length)},T:function(e,t,r,n){return F0((n._originalDate||e).getTime(),t.length)}};function Q0(e,t){var r=e>0?"-":"+",n=Math.abs(e),i=Math.floor(n/60),o=n%60;if(0===o)return r+String(i);var s=t||"";return r+String(i)+s+F0(o,2)}function J0(e,t){return e%60==0?(e>0?"-":"+")+F0(Math.abs(e)/60,2):Z0(e,t)}function Z0(e,t){var r=t||"",n=e>0?"-":"+",i=Math.abs(e);return n+F0(Math.floor(i/60),2)+r+F0(i%60,2)}const X0=$0;var e1=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},t1=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},r1={p:t1,P:function(e,t){var r,n=e.match(/(P+)(p+)?/)||[],i=n[1],o=n[2];if(!o)return e1(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",e1(i,t)).replace("{{time}}",t1(o,t))}};const n1=r1;var i1=["D","DD"],o1=["YY","YYYY"];function s1(e){return-1!==i1.indexOf(e)}function a1(e){return-1!==o1.indexOf(e)}function u1(e,t,r){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var l1={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};const c1=function(e,t,r){var n,i=l1[e];return n="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),null!=r&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function h1(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}const d1={date:h1({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:h1({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:h1({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})};var f1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};const p1=function(e,t,r,n){return f1[e]};function m1(e){return function(t,r){var n;if("formatting"===(null!=r&&r.context?String(r.context):"standalone")&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,o=null!=r&&r.width?String(r.width):i;n=e.formattingValues[o]||e.formattingValues[i]}else{var s=e.defaultWidth,a=null!=r&&r.width?String(r.width):e.defaultWidth;n=e.values[a]||e.values[s]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const g1={ordinalNumber:function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:m1({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:m1({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:m1({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:m1({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:m1({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function y1(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s,a=o[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(u)?b1(u,(function(e){return e.test(a)})):v1(u,(function(e){return e.test(a)}));s=e.valueCallback?e.valueCallback(l):l,s=r.valueCallback?r.valueCallback(s):s;var c=t.slice(a.length);return{value:s,rest:c}}}function v1(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function b1(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{},r=e.match(w1.matchPattern);if(!r)return null;var n=r[0],i=e.match(w1.parsePattern);if(!i)return null;var o=w1.valueCallback?w1.valueCallback(i[0]):i[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(n.length);return{value:o,rest:s}}),era:y1({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:y1({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:y1({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:y1({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:y1({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};const E1={code:"en-US",formatDistance:c1,formatLong:d1,formatRelative:p1,localize:g1,match:_1,options:{weekStartsOn:0,firstWeekContainsDate:1}};var A1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,M1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,S1=/^'([^]*?)'?$/,x1=/''/g,k1=/[a-zA-Z]/;function T1(e){var t=e.match(S1);return t?t[1].replace(x1,"'"):e}function C1(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I1(e,t){return I1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},I1(e,t)}function N1(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&I1(e,t)}function R1(e){return R1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R1(e)}function P1(e,t){if(t&&("object"===y0(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return C1(e)}function D1(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(fVe){return!1}}();return function(){var r,n=R1(e);if(t){var i=R1(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return P1(this,r)}}function L1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O1(e){var t=function(e,t){if("object"!==y0(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==y0(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===y0(t)?t:String(t)}function j1(e,t){for(var r=0;r0,i=n?t:1-t;if(i<=50)r=e||100;else{var o=i+50;r=e+100*Math.floor(o/100)-(e>=o%100?100:0)}return n?r:1-r}function E2(e){return e%400==0||e%4==0&&e%100!=0}var A2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o0}},{key:"set",value:function(e,t,r){var n=e.getUTCFullYear();if(r.isTwoDigitYear){var i=_2(r.year,n);return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}var o="era"in t&&1!==t.era?1-r.year:r.year;return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}}]),r}(H1),M2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o0}},{key:"set",value:function(e,t,r,n){var i=O0(e,n);if(r.isTwoDigitYear){var o=_2(r.year,i);return e.setUTCFullYear(o,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),L0(e,n)}var s="era"in t&&1!==t.era?1-r.year:r.year;return e.setUTCFullYear(s,0,n.firstWeekContainsDate),e.setUTCHours(0,0,0,0),L0(e,n)}}]),r}(H1),S2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o=1&&t<=4}},{key:"set",value:function(e,t,r){return e.setUTCMonth(3*(r-1),1),e.setUTCHours(0,0,0,0),e}}]),r}(H1),T2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o=1&&t<=4}},{key:"set",value:function(e,t,r){return e.setUTCMonth(3*(r-1),1),e.setUTCHours(0,0,0,0),e}}]),r}(H1),C2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,r){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e}}]),r}(H1),I2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,r){return e.setUTCMonth(r,1),e.setUTCHours(0,0,0,0),e}}]),r}(H1);var N2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o=1&&t<=53}},{key:"set",value:function(e,t,r,n){return L0(function(e,t,r){b0(2,arguments);var n=_0(e),i=v0(t),o=U0(n,r)-i;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,r,n),n)}}]),r}(H1);var R2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o=1&&t<=53}},{key:"set",value:function(e,t,r){return I0(function(e,t){b0(2,arguments);var r=_0(e),n=v0(t),i=D0(r)-n;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,r))}}]),r}(H1),P2=[31,28,31,30,31,30,31,31,30,31,30,31],D2=[31,29,31,30,31,30,31,31,30,31,30,31],L2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o=1&&t<=D2[n]:t>=1&&t<=P2[n]}},{key:"set",value:function(e,t,r){return e.setUTCDate(r),e.setUTCHours(0,0,0,0),e}}]),r}(H1),O2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o=1&&t<=366:t>=1&&t<=365}},{key:"set",value:function(e,t,r){return e.setUTCMonth(0,r),e.setUTCHours(0,0,0,0),e}}]),r}(H1);function j2(e,t,r){var n,i,o,s,a,u,l,c;b0(2,arguments);var h=M0(),d=v0(null!==(n=null!==(i=null!==(o=null!==(s=null==r?void 0:r.weekStartsOn)&&void 0!==s?s:null==r||null===(a=r.locale)||void 0===a||null===(u=a.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==o?o:h.weekStartsOn)&&void 0!==i?i:null===(l=h.locale)||void 0===l||null===(c=l.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=_0(e),p=v0(t),m=f.getUTCDay(),g=p%7,y=(g+7)%7,v=(y=0&&t<=6}},{key:"set",value:function(e,t,r,n){return(e=j2(e,r,n)).setUTCHours(0,0,0,0),e}}]),r}(H1),U2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o=0&&t<=6}},{key:"set",value:function(e,t,r,n){return(e=j2(e,r,n)).setUTCHours(0,0,0,0),e}}]),r}(H1),F2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o=0&&t<=6}},{key:"set",value:function(e,t,r,n){return(e=j2(e,r,n)).setUTCHours(0,0,0,0),e}}]),r}(H1);var z2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o=1&&t<=7}},{key:"set",value:function(e,t,r){return e=function(e,t){b0(2,arguments);var r=v0(t);r%7==0&&(r-=7);var n=1,i=_0(e),o=i.getUTCDay(),s=((r%7+7)%7=1&&t<=12}},{key:"set",value:function(e,t,r){var n=e.getUTCHours()>=12;return n&&r<12?e.setUTCHours(r+12,0,0,0):n||12!==r?e.setUTCHours(r,0,0,0):e.setUTCHours(0,0,0,0),e}}]),r}(H1),q2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o=0&&t<=23}},{key:"set",value:function(e,t,r){return e.setUTCHours(r,0,0,0),e}}]),r}(H1),W2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o=0&&t<=11}},{key:"set",value:function(e,t,r){return e.getUTCHours()>=12&&r<12?e.setUTCHours(r+12,0,0,0):e.setUTCHours(r,0,0,0),e}}]),r}(H1),V2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o=1&&t<=24}},{key:"set",value:function(e,t,r){var n=r<=24?r%24:r;return e.setUTCHours(n,0,0,0),e}}]),r}(H1),$2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o=0&&t<=59}},{key:"set",value:function(e,t,r){return e.setUTCMinutes(r,0,0),e}}]),r}(H1),Q2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o=0&&t<=59}},{key:"set",value:function(e,t,r){return e.setUTCSeconds(r,0),e}}]),r}(H1),J2=function(e){N1(r,e);var t=D1(r);function r(){var e;L1(this,r);for(var n=arguments.length,i=new Array(n),o=0;o=1&&M<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=v0(null!==(f=null!==(p=null!==(m=null!==(g=null==r?void 0:r.weekStartsOn)&&void 0!==g?g:null==r||null===(y=r.locale)||void 0===y||null===(v=y.options)||void 0===v?void 0:v.weekStartsOn)&&void 0!==m?m:E.weekStartsOn)&&void 0!==p?p:null===(b=E.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==f?f:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!A.localize)throw new RangeError("locale must contain localize property");if(!A.formatLong)throw new RangeError("locale must contain formatLong property");var x=_0(e);if(!k0(x))throw new RangeError("Invalid time value");var k=S0(x),T=T0(x,k),C={firstWeekContainsDate:M,weekStartsOn:S,locale:A,_originalDate:x},I=_.match(M1).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,n1[t])(e,A.formatLong):e})).join("").match(A1).map((function(n){if("''"===n)return"'";var i=n[0];if("'"===i)return T1(n);var o=X0[i];if(o)return null!=r&&r.useAdditionalWeekYearTokens||!a1(n)||u1(n,t,String(e)),null!=r&&r.useAdditionalDayOfYearTokens||!s1(n)||u1(n,t,String(e)),o(T,n,A.localize,C);if(i.match(k1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");return n})).join("");return I}(new Date(1e3*Number(e)),"dd MMM yyyy | hh:mm a")}r(77688),r(96787);var n3=r(98399);const i3=({icon:e})=>{const[t,r]=w.useState("");return w.useEffect((()=>{const{type:t,url:n}=function(e){if(!e)return{type:"http",url:""};if(e.includes("ipfs"))return{type:"ipfs",url:e};if(e.includes("base64"))return{type:"base64",url:e};const t=e.match(/(\w+).jpg/);return{type:"http",url:t?`https://ipfs.io/ipfs/${t[1]}`:""}}(e);n&&("http"===t?async function(e,t){const r=null!=t?t:{},{body:n}=r,i=fO(r,p0),o=Object.assign({method:null==t?void 0:t.method},i,{headers:Object.assign({},n?{"Content-Type":"application/json"}:{},i.headers)});let s;n&&(o.body=JSON.stringify(n));try{const t=await window.fetch(e,o);if(s=await t.json(),t.ok)return s;throw new Error(t.statusText)}catch(dVe){return Promise.reject(dVe.message?dVe.message:s)}}(n).then((e=>{r(e.icon)})).catch((e=>{n3.log(e)})):r(n))}),[e]),(0,Tf.jsx)("img",{style:{width:"100%",borderRadius:"8px"},src:t,alt:""})},o3=hf.div.withConfig({displayName:"overlay__ImageWrapper",componentId:"sc-1e2lr8x-0"})(["height:100vh;width:100vw;background:rgba(0,0,0,0.75);position:fixed;top:0;left:0;justify-content:center;align-items:center;display:",";z-index:2;img{max-width:80vw;height:auto;border-radius:10px;}"],(e=>e.visible?"flex":"none")),s3=({imageOverlay:e,setImageOverlay:t})=>(0,Tf.jsx)(o3,{onClick:()=>{t("")},visible:Boolean(e),children:(0,Tf.jsx)("img",{src:e,alt:"overlay full-screen"})});var a3=r(8785);a3.domToReact,a3.htmlToDOM,a3.attributesToProps,a3.Element;const u3=a3;const l3=class{constructor(e,t){this.text=void 0,this.patterns=void 0,this.text=e,this.patterns=t||[]}parse(){let e=[{children:this.text}];return this.patterns.forEach((t=>{let r=[];const n=t.nonExhaustiveModeMaxMatchCount||0,i=Math.min(Math.max(Number.isInteger(n)?n:0,0)||Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY);let o=0;e.forEach((e=>{if(e._matched)return void r.push(e);const n=[];let s,a=e.children,u=0;for(t.pattern.lastIndex=0;a&&(s=t.pattern.exec(a));){const e=a.substr(0,s.index);if(u=s.index,++o>i)break;n.push({children:e}),n.push(this.getMatchedPart(t,s[0],s,u)),a=a.substr(s.index+s[0].length),u+=s[0].length-1,t.pattern.lastIndex=0}n.push({children:a}),r=r.concat(n)})),e=r})),e.forEach((e=>delete e._matched)),e.filter((e=>!!e.children))}getMatchedPart(e,t,r,n){const i={};Object.keys(e).forEach((r=>{"pattern"!==r&&"renderText"!==r&&"nonExhaustiveModeMaxMatchCount"!==r&&("function"==typeof e[r]?i[r]=()=>e[r](t,n):i[r]=e[r])}));let o=t;return e.renderText&&"function"==typeof e.renderText&&(o=e.renderText(t,r)),Object.assign({},i,{children:o,_matched:!0})}};r(7419);function c3(e){const t=e.match(/\[([^:]+):([^\]]+)\]/i);return`${t?t[2]:""}`}function h3(e){const t=e.match(/(.*?)<\/PUSHText>/i),r=e.match(/\[([^\]]+)]\((https?:\/\/[^)]+)/);if(t){const e=t[1].toLowerCase();let r;switch(e){case"primary":r=d3.PRIMARY;break;case"secondary":r=d3.GRADIENT_SECONDARY;break;case"tertiary":r=d3.GRADIENT_THIRD;break;case"white":r=d3.WHITE;break;default:r=e}const n=t[2];let i;return i=t[3].includes("\\n")?t[3].replace("\\n","
"):t[3],`
${i}`}if(r){const e=r[1];return`${e}`}return e}const d3={PRIMARY:"rgba(27.0, 150.0, 227.0, 1.0)",LINKS:"rgba(20.0, 126.0, 251.0, 1.0)",GRADIENT_PRIMARY:"rgba(226.0, 8.0, 128.0, 1.0)",GRADIENT_SECONDARY:"rgba(53.0, 197.0, 243.0, 1.0)",GRADIENT_THIRD:"rgba(103.0, 76.0, 159.0, 1.0)",TRANSPARENT:"transparent",WHITE:"rgba(255.0, 255.0, 255.0, 1.0)",DARK_WHITE:"rgba(255.0, 255.0, 255.0, 0.75)",MID_WHITE:"rgba(255.0, 255.0, 255.0, 0.5)",LIGHT_WHITE:"rgba(255.0, 255.0, 255.0, 0.25)",SLIGHTER_GRAY:"rgba(250.0, 250.0, 250.0, 1)",SLIGHT_GRAY:"rgba(231.0, 231.0, 231.0, 1)",LIGHT_GRAY:"rgba(225.0, 225.0, 225.0, 1)",MID_GRAY:"rgba(200.0, 200.0, 200.0, 1)",DARK_GRAY:"rgba(160.0, 160.0, 160.0, 1)",DARKER_GRAY:"rgba(100.0, 100.0, 100.0, 1)",LIGHT_BLACK_TRANS:"rgba(0.0, 0.0, 0.0, 0.1)",SEMI_MID_BLACK_TRANS:"rgba(0.0, 0.0, 0.0, 0.25)",MID_BLACK_TRANS:"rgba(0.0, 0.0, 0.0, 0.5)",DARK_BLACK_TRANS:"rgba(0.0, 0.0, 0.0, 0.75)",BLACK:"rgba(0.0, 0.0, 0.0, 1.0)",CONFIRM:"rgba(34.0, 139.0, 34.0, 1.0)",WARNING:"rgba(255.0, 153.0, 0.0, 1.0)",SUBLIME_RED:"rgba(237.0, 59.0, 72.0, 1.0)",BADGE_RED:"rgba(208.0, 44.0, 30.0, 1.0)",LIGHT_MAROON:"rgba(159.0, 0.0, 0.0, 1.0)",LIGHTER_MAROON:"rgba(129.0, 0.0, 0.0, 1.0)"},f3={container:{},name:{color:d3.SUBLIME_RED},username:{color:d3.GRADIENT_SECONDARY},text:{color:d3.BLACK},primary:{color:d3.GRADIENT_PRIMARY},secondary:{color:d3.GRADIENT_SECONDARY},third:{color:d3.GRADIENT_THIRD},error:{color:d3.SUBLIME_RED},white:{color:d3.WHITE},midgray:{color:d3.MID_GRAY},darkgray:{color:d3.DARK_GRAY},darkergray:{color:d3.DARKER_GRAY},link:{color:d3.GRADIENT_PRIMARY},underline:{textDecorationLine:"underline"},bold:{fontWeight:"bold"},italics:{fontStyle:"italic"},pointer:{cursor:"pointer"}},p3=[{pattern:/\[([^\]]+)]\((https?:\/\/[^)]+)\)/g,style:{},renderText:h3},{pattern:/\[(u):([^\]]+)\]/i,style:Object.assign({},f3.primary,f3.bold,f3.italics,f3.underline,f3.pointer),renderText:c3},{pattern:/\[(ub):([^\]]+)\]/i,style:Object.assign({},f3.secondary,f3.bold,f3.italics,f3.underline,f3.pointer),renderText:c3},{pattern:/\[(ut):([^\]]+)\]/i,style:Object.assign({},f3.third,f3.bold,f3.italics,f3.underline,f3.pointer),renderText:c3},{pattern:/(.*?)<\/span>/gi,style:{},renderText:function(e){const t=e.match(/(.*?)<\/span>/i);if(t){const e=t[1].toLowerCase();let r;switch(e){case"primary":r=d3.PRIMARY;break;case"secondary":r=d3.GRADIENT_SECONDARY;break;case"white":r=d3.WHITE;break;default:r=e}let n=t[2];return n.includes("\\n")&&(n=t[2].replace("\\n","
")),`${n}`}return e}},{pattern:/(.*?)<\/PUSHText>/gi,style:{},renderText:h3},{pattern:/\[(up):([^\]]+)\]/i,style:Object.assign({},f3.primary,f3.italics,f3.underline,f3.pointer),renderText:c3},{pattern:/\[(d):([^\]]+)\]/i,style:Object.assign({},f3.primary,f3.bold),renderText:c3},{pattern:/\[(s):([^\]]+)\]/i,style:Object.assign({},f3.secondary,f3.bold),renderText:c3},{pattern:/\[(t):([^\]]+)\]/i,style:Object.assign({},f3.third,f3.bold),renderText:c3},{pattern:/\[(e):([^\]]+)\]/i,style:Object.assign({},f3.error,f3.bold),renderText:c3},{pattern:/\[(b):([^\]]+)\]/i,style:f3.bold,renderText:c3},{pattern:/\*\*\*(.*?)\*\*\*/g,style:Object.assign({},f3.bold,f3.italics),renderText:e=>e.replace(/\*\*\*(.*?)\*\*\*/g,"$1")},{pattern:/\*\*(.*?)\*\*/g,style:f3.bold,renderText:e=>e.replace(/\*\*(.*?)\*\*/g,"$1")},{pattern:/\\n/g,style:{},renderText:function(e){const t=e.match(/\\n/g);if(null!=t&&t.includes("\\n")){return`
${e.replace("\\n","
")}
`}return`
${e}
`}},{pattern:/\*(.*?)\*/g,style:Object.assign({},f3.italics),renderText:e=>e.replace(/\*(.*?)\*/g,"$1")},{pattern:/\[(bi):([^\]]+)\]/i,style:Object.assign({},f3.bold,f3.italics),renderText:c3},{pattern:/\[ts: (\d+)\]/g,style:{},renderText:function(e){const t=e.match(/\[ts: (\d+)\]/);if(t){const e=parseInt(t[1],10);return new Date(1e3*e).toLocaleString()}return e}},{pattern:/\[(w):([^\]]+)\]/i,style:f3.white,renderText:c3},{pattern:/\[(wb):([^\]]+)\]/i,style:Object.assign({},f3.white,f3.bold),renderText:c3},{pattern:/\[(mg):([^\]]+)\]/i,style:f3.midgray,renderText:c3},{pattern:/\[(dg):([^\]]+)\]/i,style:f3.darkgray,renderText:c3},{pattern:/\[(ddg):([^\]]+)\]/i,style:f3.darkergray,renderText:c3}],m3=p3,g3=["patterns"],y3=e=>{const t=Object.assign({},e),{patterns:r}=t,n=fO(t,g3);return(0,Tf.jsx)("div",Object.assign({},n,{children:e.patterns?"string"!=typeof e.children?e.children:new l3(e.children,m3.concat(r)).parse().map(((e,t)=>{const{style:r,children:n}=e;return(0,Tf.jsx)("span",Object.assign({style:Object.assign({},r)},e.childrenProps,{children:u3(g0(n))}),`parsedText-${t}`)})):e.children}))};y3.propTypes={patterns:f0.array.isRequired};const v3=y3,b3=e=>{const{text:t,patterns:r}=e,n=r||[];return(0,Tf.jsx)("div",{style:{wordBreak:"break-all"},children:(0,Tf.jsx)(v3,{patterns:n,children:t})})},w3=hf.div.withConfig({displayName:"loader__StyledCircularLoader2",componentId:"sc-1p4z6sw-0"})(["width:20px;height:20px;.lds-ring{display:inline-block;position:relative;width:20px;height:20px;}.lds-ring div{box-sizing:border-box;display:block;position:absolute;width:20px;height:20px;margin:0px;border:2px solid ",";border-radius:50%;animation:lds-ring 1.2s cubic-bezier(0.5,0,0.5,1) infinite;border-color:"," transparent transparent transparent;}.lds-ring div:nth-child(1){animation-delay:-0.45s;}.lds-ring div:nth-child(2){animation-delay:-0.3s;}.lds-ring div:nth-child(3){animation-delay:-0.15s;}@keyframes lds-ring{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}"],(({color:e})=>e),(({color:e})=>e)),_3=({color:e="#fff"})=>(0,Tf.jsx)(w3,{color:e,children:(0,Tf.jsxs)("div",{className:"lds-ring",children:[(0,Tf.jsx)("div",{}),(0,Tf.jsx)("div",{}),(0,Tf.jsx)("div",{}),(0,Tf.jsx)("div",{})]})}),E3=w.memo(_3),A3=hf.button.withConfig({displayName:"ActionButton",componentId:"sc-18nzz3z-0"})(["all:unset;background:",";color:",";padding:10px 20px;font-weight:500;border-radius:3px;cursor:",";opacity:",";transition:300ms;margin-left:auto;&:hover{opacity:",";}@media (max-width:600px){padding:8px 20px;}"],(e=>e.bgColor||"rgb(226, 8, 128)"),(e=>e.color||"#fff"),(e=>e.disabled?"default":"pointer"),(e=>e.disabled?"0.5":"1"),(e=>e.disabled?"0.5":"0.9")),M3="decrypted",S3="decrypt",x3=({decryptFn:e,isSecretRevealed:t})=>{const[r,n]=w.useState(!1),i=t?M3:S3;return(0,Tf.jsx)(A3,{disabled:t,onClick:async r=>{if(r.preventDefault(),r.stopPropagation(),e&&!t)try{n(!0),await e()}finally{n(!1)}},bgColor:"#674C9F",children:r?(0,Tf.jsx)(E3,{}):i})};const k3=function(e,t){const[r,n]=w.useState({notifTitle:e.notificationTitle||"",notifBody:e.parsedBody||"",notifCta:e.cta||"",notifImage:e.image||"",isSecretRevealed:!1}),i=!!t&&(null==r||!r.isSecretRevealed);return{notifTitle:r.notifTitle,notifBody:r.notifBody,notifCta:i?"":r.notifCta,notifImage:i?"":r.notifImage,isSecretRevealed:r.isSecretRevealed,setDecryptedValues:({title:e,body:t,cta:r,image:i})=>{n({notifTitle:e||"",notifBody:t||"",notifCta:r||"",notifImage:i||"",isSecretRevealed:!0})}}},T3=hf.div.withConfig({displayName:"tooltip__Wrapper",componentId:"sc-6msbcv-0"})(["display:inline-block;position:relative;"]),C3=hf.div.withConfig({displayName:"tooltip__Content",componentId:"sc-6msbcv-1"})(["position:absolute;border-radius:12px 2px 12px 12px;bottom:-28px;transform:translateX(-95%);padding:0.5rem 1rem;color:#fff;background:#131313;font-family:'Strawford';font-style:normal;font-weight:400;font-size:0.9rem;line-height:1;z-index:2;white-space:nowrap;&::before{bottom:100%;border-bottom-color:#131313;}"]),I3=({children:e,tooltipContent:t})=>{let r;const[n,i]=w.useState(!1);return(0,Tf.jsxs)(T3,{onMouseEnter:()=>{r=setTimeout((()=>{i(!0)}),400)},onMouseLeave:()=>{clearInterval(r),i(!1)},children:[e,n&&(0,Tf.jsx)(C3,{children:t})]})},N3=()=>(0,Tf.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#627EEA"}),(0,Tf.jsx)("path",{d:"M12.3735 3V9.6525L17.9963 12.165L12.3735 3Z",fill:"white","fill-opacity":"0.602"}),(0,Tf.jsx)("path",{d:"M12.3735 3L6.75 12.165L12.3735 9.6525V3Z",fill:"white"}),(0,Tf.jsx)("path",{d:"M12.3735 16.476V20.9963L18 13.212L12.3735 16.476Z",fill:"white","fill-opacity":"0.602"}),(0,Tf.jsx)("path",{d:"M12.3735 20.9963V16.4753L6.75 13.212L12.3735 20.9963Z",fill:"white"}),(0,Tf.jsx)("path",{d:"M12.3735 15.4298L17.9963 12.1651L12.3735 9.65405V15.4298Z",fill:"white","fill-opacity":"0.2"}),(0,Tf.jsx)("path",{d:"M6.75 12.1651L12.3735 15.4298V9.65405L6.75 12.1651Z",fill:"white","fill-opacity":"0.602"})]}),R3=()=>(0,Tf.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsxs)("g",{"clip-path":"url(#clip0_5284_6348)",children:[(0,Tf.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#7B3FE4"}),(0,Tf.jsx)("path",{d:"M20 12.2801V15.9003C19.9987 16.1261 19.9391 16.3476 19.8269 16.5433C19.7147 16.739 19.5538 16.9021 19.36 17.0168L16.235 18.8231C16.0415 18.9389 15.8203 19 15.595 19C15.3697 19 15.1485 18.9389 14.955 18.8231L11.83 17.0168C11.6362 16.9021 11.4753 16.739 11.3631 16.5433C11.251 16.3476 11.1913 16.1261 11.19 15.9003V14.8842L12.79 13.9522V15.7184L15.59 17.3492L18.39 15.7184V12.4645L15.59 10.8337L9.03001 14.6472C8.83465 14.7576 8.61421 14.8157 8.38999 14.8157C8.16577 14.8157 7.94536 14.7576 7.75 14.6472L4.62499 12.8333C4.43416 12.7169 4.27639 12.5532 4.16692 12.3579C4.05745 12.1625 3.99997 11.9422 4 11.7181V8.09786C4.00129 7.87211 4.06096 7.65056 4.17313 7.45487C4.28533 7.25918 4.44619 7.09604 4.63999 6.98144L7.765 5.17508C7.95895 5.06045 8.17993 5 8.40499 5C8.63008 5 8.85106 5.06045 9.04501 5.17508L12.17 6.98144C12.3638 7.09604 12.5247 7.25918 12.6369 7.45487C12.7491 7.65056 12.8087 7.87211 12.81 8.09786V9.11393L11.2 10.0397V8.28353L8.40001 6.65279L5.59999 8.28353V11.5337L8.40001 13.1644L14.96 9.35102C15.1553 9.24056 15.3758 9.18254 15.6 9.18254C15.8242 9.18254 16.0446 9.24056 16.24 9.35102L19.365 11.1649C19.5577 11.28 19.7175 11.4433 19.8287 11.6386C19.94 11.8341 19.999 12.055 20 12.2801Z",fill:"white"})]}),(0,Tf.jsx)("defs",{children:(0,Tf.jsx)("clipPath",{id:"clip0_5284_6348",children:(0,Tf.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}),P3=()=>(0,Tf.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsx)("circle",{cx:"12",cy:"12",r:"12",fill:"#1D1D1D"}),(0,Tf.jsx)("path",{d:"M8.16193 12L6.58295 13.579L5 12L6.57898 10.421L8.16193 12ZM12 8.16193L14.7085 10.8705L16.2875 9.29148L12 5L7.70852 9.29148L9.2875 10.8705L12 8.16193ZM17.417 10.421L15.8381 12L17.417 13.579L18.996 12L17.417 10.421ZM12 15.8381L9.29148 13.1295L7.7125 14.7085L12 19L16.2875 14.7085L14.7085 13.1295L12 15.8381ZM12 13.579L13.579 12L12 10.421L10.417 12L12 13.579Z",fill:"#F0B90B"})]}),D3=()=>(0,Tf.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsxs)("g",{"clip-path":"url(#clip0_9390_20606)",children:[(0,Tf.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#FF0420"}),(0,Tf.jsx)("path",{d:"M8.50098 15.1872C7.78578 15.1872 7.20018 15.0192 6.74418 14.6832C6.29298 14.3424 6.06738 13.8528 6.06738 13.224C6.06738 13.0896 6.08178 12.9312 6.11058 12.7392C6.18738 12.3072 6.29778 11.7888 6.44178 11.1792C6.84978 9.52799 7.90578 8.70239 9.60498 8.70239C10.0658 8.70239 10.4834 8.77919 10.8482 8.93759C11.213 9.08639 11.501 9.31679 11.7122 9.62399C11.9234 9.92639 12.029 10.2864 12.029 10.704C12.029 10.8288 12.0146 10.9872 11.9858 11.1792C11.8946 11.712 11.789 12.2352 11.6594 12.7392C11.4482 13.56 11.0882 14.1792 10.5698 14.5872C10.0562 14.9904 9.36498 15.1872 8.50098 15.1872ZM8.63058 13.8912C8.96658 13.8912 9.24978 13.7904 9.48498 13.5936C9.72498 13.3968 9.89778 13.0944 9.99858 12.6816C10.1378 12.1152 10.2434 11.6256 10.3154 11.2032C10.3394 11.0784 10.3538 10.9488 10.3538 10.8144C10.3538 10.2672 10.0706 9.99359 9.49938 9.99359C9.16338 9.99359 8.87538 10.0944 8.63538 10.2912C8.40018 10.488 8.23218 10.7904 8.13138 11.2032C8.02098 11.6064 7.91538 12.096 7.80498 12.6816C7.78098 12.8016 7.76658 12.9264 7.76658 13.0608C7.76178 13.6176 8.05458 13.8912 8.63058 13.8912Z",fill:"white"}),(0,Tf.jsx)("path",{d:"M12.4463 15.1009C12.3791 15.1009 12.3311 15.0817 12.2927 15.0385C12.2639 14.9905 12.2543 14.9377 12.2639 14.8753L13.5071 9.0193C13.5167 8.9521 13.5503 8.8993 13.6079 8.8561C13.6607 8.8129 13.7183 8.7937 13.7807 8.7937H16.1759C16.8431 8.7937 17.3759 8.9329 17.7791 9.2065C18.1871 9.4849 18.3935 9.8833 18.3935 10.4065C18.3935 10.5553 18.3743 10.7137 18.3407 10.8769C18.1919 11.5681 17.8895 12.0769 17.4287 12.4081C16.9775 12.7393 16.3583 12.9025 15.5711 12.9025H14.3567L13.9439 14.8753C13.9295 14.9425 13.9007 14.9953 13.8431 15.0385C13.7903 15.0817 13.7327 15.1009 13.6703 15.1009H12.4463ZM15.6335 11.6593C15.8879 11.6593 16.1039 11.5921 16.2911 11.4529C16.4831 11.3137 16.6079 11.1169 16.6703 10.8577C16.6895 10.7569 16.6991 10.6657 16.6991 10.5889C16.6991 10.4161 16.6463 10.2817 16.5455 10.1905C16.4447 10.0945 16.2671 10.0465 16.0223 10.0465H14.9423L14.6015 11.6593H15.6335Z",fill:"white"})]}),(0,Tf.jsx)("defs",{children:(0,Tf.jsx)("clipPath",{id:"clip0_9390_20606",children:(0,Tf.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}),L3=()=>(0,Tf.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsxs)("g",{"clip-path":"url(#clip0_10279_32011)",children:[(0,Tf.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#7B3FE4"}),(0,Tf.jsx)("path",{d:"M18.4908 6.848L13.2428 3.81333C12.8641 3.6 12.4428 3.48267 12.0054 3.48267C11.5681 3.48267 11.1468 3.6 10.7734 3.81333L5.52542 6.848C5.15209 7.06667 4.83742 7.376 4.61875 7.75467C4.40009 8.128 4.28809 8.55467 4.28809 8.992V15.072C4.29342 15.504 4.40542 15.9253 4.62409 16.2987C4.84275 16.672 5.15209 16.9813 5.52542 17.1947L10.7734 20.2293C11.1468 20.448 11.5734 20.56 12.0108 20.56C12.4481 20.56 12.8694 20.448 13.2481 20.2293L18.4961 17.1947C18.8694 16.976 19.1841 16.6667 19.4028 16.288C19.6214 15.9147 19.7334 15.488 19.7334 15.0507V8.97067C19.7281 8.53867 19.6161 8.11733 19.3974 7.744C19.1734 7.37067 18.8641 7.06133 18.4908 6.848ZM5.52009 8.98667C5.52009 8.768 5.57875 8.55467 5.68542 8.368C5.79209 8.18133 5.95209 8.02133 6.13875 7.91467L11.3868 4.88533C11.5734 4.77867 11.7868 4.72 12.0054 4.72C12.2241 4.72 12.4374 4.77867 12.6241 4.88533L17.8774 7.91467C18.0641 8.02133 18.2188 8.176 18.3254 8.35733C18.4321 8.544 18.4908 8.752 18.4961 8.96533V9.584C18.4961 10.064 18.3041 10.528 17.9628 10.864C17.6214 11.2053 17.1628 11.3973 16.6828 11.3973H7.33875C6.68275 11.3973 6.04809 11.6053 5.52009 12V8.98667ZM18.4908 15.0507C18.4908 15.2693 18.4321 15.4827 18.3254 15.6693C18.2188 15.856 18.0588 16.016 17.8721 16.1227L12.6188 19.152C12.4321 19.2587 12.2188 19.3173 12.0001 19.3173C11.7814 19.3173 11.5681 19.2587 11.3814 19.152L6.13342 16.1227C5.94675 16.016 5.79209 15.8613 5.68542 15.68C5.57875 15.4933 5.52009 15.2853 5.51475 15.072V14.4533C5.51475 13.9733 5.70675 13.5093 6.04809 13.1733C6.38942 12.832 6.84809 12.64 7.32809 12.64H16.6668C17.3228 12.64 17.9574 12.432 18.4854 12.0373V15.0507H18.4908Z",fill:"white"}),(0,Tf.jsx)("path",{d:"M9.13577 8.67727H10.3358V10.4693H11.5731V8.67727C11.5731 8.35194 11.4451 8.03727 11.2104 7.80261C10.9811 7.57327 10.6664 7.43994 10.3358 7.43994H9.13577C8.81044 7.43994 8.49577 7.56794 8.2611 7.80261C8.03177 8.03194 7.89844 8.34661 7.89844 8.67727V10.4693H9.13577V8.67727Z",fill:"white"}),(0,Tf.jsx)("path",{d:"M10.3309 15.3601H9.13089V13.5681H7.89355V15.3601C7.89355 15.6854 8.02155 16.0001 8.25622 16.2348C8.48555 16.4641 8.80022 16.5974 9.13089 16.5974H10.3309C10.6562 16.5974 10.9709 16.4694 11.2056 16.2348C11.4349 16.0054 11.5682 15.6908 11.5682 15.3601V13.5681H10.3309V15.3601Z",fill:"white"}),(0,Tf.jsx)("path",{d:"M14 8.67727H15.2V10.4693H16.4374V8.67727C16.4374 8.35194 16.3094 8.03727 16.0747 7.80261C15.8454 7.57327 15.5307 7.43994 15.2 7.43994H14C13.6747 7.43994 13.36 7.56794 13.1254 7.80261C12.896 8.03194 12.7627 8.34661 12.7627 8.67727V10.4693H14V8.67727Z",fill:"white"}),(0,Tf.jsx)("path",{d:"M15.2054 15.3601H14.0054V13.5681H12.7681V15.3601C12.7681 15.6854 12.8961 16.0001 13.1307 16.2348C13.3601 16.4641 13.6747 16.5974 14.0054 16.5974H15.2054C15.5307 16.5974 15.8454 16.4694 16.0801 16.2348C16.3094 16.0054 16.4427 15.6908 16.4427 15.3601V13.5681H15.2054V15.3601Z",fill:"white"})]}),(0,Tf.jsx)("defs",{children:(0,Tf.jsx)("clipPath",{id:"clip0_10279_32011",children:(0,Tf.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}),O3=()=>(0,Tf.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsxs)("g",{"clip-path":"url(#clip0_6814_10094)",children:[(0,Tf.jsx)("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#6747ED"}),(0,Tf.jsx)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.6606 12.7677C9.93715 12.7677 8.55353 11.3841 8.55353 9.6606C8.55353 7.93715 9.93715 6.55353 11.6606 6.55353C13.3841 6.55353 14.7677 7.93715 14.7677 9.6606C14.7677 11.3841 13.3841 12.7677 11.6606 12.7677ZM11.6606 5C14.2336 5 16.3212 7.08756 16.3212 9.6606C16.3212 12.2336 14.2336 14.3212 11.6606 14.3212C9.08756 14.3212 7 12.2336 7 9.6606C7 7.08756 9.08756 5 11.6606 5ZM16.1027 14.5639C16.4183 14.8795 16.4183 15.365 16.1027 15.6563L12.9957 18.7633C12.6801 19.0789 12.1946 19.0789 11.9033 18.7633C11.5878 18.4478 11.5878 17.9623 11.9033 17.671L15.0104 14.5639C15.3017 14.2484 15.8114 14.2484 16.1027 14.5639ZM17.899 5.77677C17.899 6.2137 17.5592 6.55353 17.1222 6.55353C16.6853 6.55353 16.3455 6.2137 16.3455 5.77677C16.3455 5.33984 16.6853 5 17.1222 5C17.5349 5 17.899 5.33984 17.899 5.77677Z",fill:"white"})]}),(0,Tf.jsx)("defs",{children:(0,Tf.jsx)("clipPath",{id:"clip0_6814_10094",children:(0,Tf.jsx)("rect",{width:"24",height:"24",fill:"white"})})})]}),j3=()=>(0,Tf.jsxs)("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",x:0,y:0,viewBox:"0 0 1080 1218.5",xmlSpace:"preserve",children:[(0,Tf.jsx)("style",{children:".st0{fill:#1b4add}"}),(0,Tf.jsx)("path",{className:"st0",d:"M541.8 76.4c2.9 0 5.8.8 8.4 2.3l446.1 259.5c5.2 3 8.4 8.6 8.3 14.5l-1.7 516.1c0 6-3.2 11.5-8.4 14.5l-447.8 256.6c-2.5 1.5-5.5 2.2-8.4 2.2-2.9 0-5.8-.8-8.4-2.3L83.8 880.3c-5.2-3-8.4-8.6-8.3-14.5l1.7-516.1c0-6 3.2-11.5 8.4-14.5L533.4 78.6c2.5-1.5 5.4-2.2 8.4-2.2M542 1c-15.9-.1-31.8 4-46.1 12.2L48.1 269.7c-28.6 16.4-46.2 46.7-46.4 79.7L0 865.5c-.1 32.9 17.4 63.4 45.8 80L491.9 1205c14.2 8.3 30.1 12.4 46.1 12.5 15.9.1 31.8-4 46.1-12.2l447.8-256.6c28.6-16.4 46.2-46.7 46.4-79.7l1.7-516c.1-32.9-17.4-63.4-45.8-80L588.1 13.5C573.8 5.2 557.9 1 542 1z"}),(0,Tf.jsx)("path",{className:"st0",d:"M632.4 282.3H567c-4.9 0-9.3 3.1-11 7.7L345.8 866.4c-1.4 3.8 1.4 7.8 5.5 7.8h65.4c4.9 0 9.3-3.1 11-7.7L638 290c1.2-3.7-1.6-7.7-5.6-7.7zm-114.4 0h-65.4c-4.9 0-9.3 3.1-11 7.7L231.4 866.4c-1.4 3.8 1.4 7.8 5.5 7.8h65.4c4.9 0 9.3-3.1 11-7.7L523.6 290c1.3-3.7-1.5-7.7-5.6-7.7zm84.7 223.5c-1.9-5.1-9.1-5.1-11 0l-34 93.2c-.9 2.6-.9 5.4 0 8l94.7 259.6c1.7 4.6 6.1 7.7 11 7.7h65.4c4.1 0 6.9-4 5.5-7.8L602.7 505.8zm245.9 360.6L659.9 349.1c-1.9-5.1-9.1-5.1-11 0l-34 93.2c-.9 2.6-.9 5.4 0 8l151.9 416.3c1.7 4.6 6.1 7.7 11 7.7h65.4c3.9-.1 6.8-4.1 5.4-7.9z"})]}),B3=e=>(0,Tf.jsxs)("svg",Object.assign({width:363,height:149,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e,{children:[(0,Tf.jsx)("rect",{y:.576,width:363,height:148,rx:8,fill:"#F3F3F3"}),(0,Tf.jsx)("path",{d:"m170.743 48.236 10.315-5.957a.955.955 0 0 1 .952 0l27.185 15.696c.294.17.475.483.478.822l.036 10.795a.95.95 0 0 1-.477.828l-10.301 5.948a.953.953 0 0 1-1.429-.822l-.034-9.688a.953.953 0 0 0-.477-.822l-26.248-15.15a.952.952 0 0 1 0-1.65ZM164.08 97.133l-10.312-5.954a.947.947 0 0 1-.478-.824V58.963c0-.339.181-.652.475-.824l9.332-5.432a.947.947 0 0 1 .955 0l10.301 5.948a.954.954 0 0 1 .002 1.65l-8.371 4.872a.95.95 0 0 0-.475.825v30.31a.952.952 0 0 1-1.429.824v-.003ZM209.71 78.444v11.908a.947.947 0 0 1-.478.825l-27.185 15.695a.947.947 0 0 1-.949 0l-9.369-5.366a.954.954 0 0 1-.48-.828V88.784c0-.731.79-1.189 1.426-.827l8.406 4.816c.293.17.655.166.949 0l26.247-15.156a.953.953 0 0 1 1.43.824l.003.003Z",fill:"#000"})]})),U3=(e,t)=>(0,Tf.jsx)(I3,{tooltipContent:`Delivered by ${t}`,children:e}),F3={ETH_TEST_SEPOLIA:{label:"ETHEREUM SEPOLIA",icon:U3((0,Tf.jsx)(N3,{}),"Ethereum Sepolia")},ETH_MAINNET:{label:"ETHEREUM MAINNET",icon:U3((0,Tf.jsx)(N3,{}),"Ethereum Mainnet")},POLYGON_TEST_MUMBAI:{label:"POLYGON MUMBAI",icon:U3((0,Tf.jsx)(R3,{}),"Polygon Mumbai")},POLYGON_MAINNET:{label:"POLYGON MAINNET",icon:U3((0,Tf.jsx)(R3,{}),"Polygon Mainnet")},BSC_TESTNET:{label:"BSC TESTNET",icon:U3((0,Tf.jsx)(P3,{}),"Bsc Testnet")},BSC_MAINNET:{label:"BSC MAINNET",icon:U3((0,Tf.jsx)(P3,{}),"Bsc Mainnet")},OPTIMISM_TESTNET:{label:"OPTIMISM TESTNET",icon:U3((0,Tf.jsx)(D3,{}),"Optimism Testnet")},OPTIMISM_MAINNET:{label:"OPTIMISM MAINNET",icon:U3((0,Tf.jsx)(D3,{}),"Optimism Mainnet")},POLYGON_ZK_EVM_TESTNET:{label:"POLYGON ZK EVM TESTNET",icon:U3((0,Tf.jsx)(L3,{}),"Polygon ZK EVM Testnet")},POLYGON_ZK_EVM_MAINNET:{label:"POLYGON ZK EVM MAINNET",icon:U3((0,Tf.jsx)(L3,{}),"Polygon ZK EVM Mainnet")},ARBITRUMONE_MAINNET:{label:"ARBITRUMONE MAINNET",icon:U3((0,Tf.jsx)(j3,{}),"Arbitrum Mainnet")},ARBITRUM_TESTNET:{label:"ARBITRUM TESTNET",icon:U3((0,Tf.jsx)(j3,{}),"Arbitrum Testnet")},FUSE_MAINNET:{label:"FUSE MAINNNET",icon:U3((0,Tf.jsx)(B3,{}),"Fuse Mainnet")},FUSE_TESTNET:{label:"FUSE TESTNET",icon:U3((0,Tf.jsx)(B3,{}),"Fuse Testnet")},THE_GRAPH:{label:"THE GRAPH",icon:U3((0,Tf.jsx)(O3,{}),"The Graph")}},z3=()=>(0,Tf.jsxs)("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsx)("path",{d:"M9.5542 6.07818L11.1011 4.5313C11.756 3.93437 12.6158 3.61274 13.5017 3.63325C14.3876 3.65376 15.2315 4.01483 15.8581 4.64143C16.4847 5.26804 16.8458 6.11198 16.8663 6.9979C16.8868 7.88381 16.5652 8.74356 15.9683 9.39849L13.7573 11.6016C13.4387 11.9215 13.06 12.1752 12.6431 12.3484C12.2261 12.5216 11.7791 12.6107 11.3276 12.6107C10.8762 12.6107 10.4291 12.5216 10.0122 12.3484C9.59524 12.1752 9.21659 11.9215 8.89795 11.6016",stroke:"#575D73","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M10.4454 14.9222L8.89849 16.469C8.24356 17.066 7.38381 17.3876 6.4979 17.3671C5.61198 17.3466 4.76804 16.9855 4.14143 16.3589C3.51483 15.7323 3.15376 14.8884 3.13325 14.0024C3.11274 13.1165 3.43437 12.2568 4.0313 11.6018L6.24224 9.39872C6.56088 9.07889 6.93954 8.82511 7.35648 8.65195C7.77342 8.47879 8.22046 8.38965 8.67193 8.38965C9.1234 8.38965 9.57043 8.47879 9.98738 8.65195C10.4043 8.82511 10.783 9.07889 11.1016 9.39872",stroke:"#575D73","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}),H3=["mousedown","touchstart"];function G3(e,...t){e&&e.addEventListener&&e.addEventListener(...t)}function Y3(e,...t){e&&e.removeEventListener&&e.removeEventListener(...t)}const K3=(e,t,r=H3)=>{const n=(0,w.useRef)(t);(0,w.useEffect)((()=>{n.current=t}),[t]),(0,w.useEffect)((()=>{const t=t=>{const{current:r}=e;r&&!r.contains(t.target)&&n.current(t)};for(const e of r)G3(document,e,t);return()=>{for(const e of r)Y3(document,e,t)}}),[r,e])};let q3;!function(e){e.PROD="prod",e.STAGING="staging",e.DEV="dev",e.LOCAL="local"}(q3||(q3={}));const W3={ENV:q3,DEFAULT_TITLE:"Chat with us!",DEFAULT_GREETING_MSG:"Hi there!",DEFAULT_PROFILE_PICTURE:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAvklEQVR4AcXBsW2FMBiF0Y8r3GQb6jeBxRauYRpo4yGQkMd4A7kg7Z/GUfSKe8703fKDkTATZsJsrr0RlZSJ9r4RLayMvLmJjnQS1d6IhJkwE2bT13U/DBzp5BN73xgRZsJMmM1HOolqb/yWiWpvjJSUiRZWopIykTATZsJs5g+1N6KSMiO1N/5DmAkzYTa9Lh6MhJkwE2ZzSZlo7xvRwson3txERzqJhJkwE2bT6+JhoKTMJ2pvjAgzYSbMfgDlXixqjH6gRgAAAABJRU5ErkJggg=="},V3={11155111:{network:"sepolia"},80001:{network:"polygon-mumbai"},1:{network:"mainnet"},137:{network:"polygon-mainnet"},97:{},420:{}},$3={prod:1,dev:11155111,staging:11155111,local:11155111},Q3={prod:[1,137,56,10,42161,122],dev:[11155111,80001,97,420,421613,123],staging:[11155111,80001,97,420,421613,123],local:[11155111,80001,97,420,421613,123]},J3="150f25623ae64d08ab7ec7dd0c6b6ee9",Z3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAvklEQVR4AcXBsW2FMBiF0Y8r3GQb6jeBxRauYRpo4yGQkMd4A7kg7Z/GUfSKe8703fKDkTATZsJsrr0RlZSJ9r4RLayMvLmJjnQS1d6IhJkwE2bT13U/DBzp5BN73xgRZsJMmM1HOolqb/yWiWpvjJSUiRZWopIykTATZsJs5g+1N6KSMiO1N/5DmAkzYTa9Lh6MhJkwE2ZzSZlo7xvRwson3txERzqJhJkwE2bT6+JhoKTMJ2pvjAgzYSbMfgDlXixqjH6gRgAAAABJRU5ErkJggg==",X3=10,e6={bgColorPrimary:"#fff",bgColorSecondary:"#D53A94",textColorPrimary:"#1e1e1e",textColorSecondary:"#fff",btnColorPrimary:"#D53A94",btnColorSecondary:"#494D5F",border:"1px solid #E4E8EF",borderRadius:"24px",moduleColor:"#fff"},t6=uf(["display:",";position:",";background:",";color:",";cursor:",";flex:",";flex-direction:",";flex-wrap:",";gap:",";grid-template-columns:",";grid-template-rows:",";align-self:",";align-items:",";align-content:",";justify-content:",";padding:",";margin:",";margin-top:",";margin-left:",";margin-right:",";margin-bottom:",";min-width:",";max-width:",";overflow-y:",";overflow-x:",";font-size:",";font-weight:",";text-align:",";filter:",";box-shadow:",";top:",";bottom:",";left:",";right:",";width:",";height:",";border:",";border-radius:",";overflow:",";z-index:",";"],(e=>e.display),(e=>e.position),(e=>e.background),(e=>e.color),(e=>e.cursor),(e=>e.flex),(e=>e.flexDirection),(e=>e.flexWrap),(e=>e.gap),(e=>e.gridTemplateColumns),(e=>e.gridTemplateRows),(e=>e.alignSelf),(e=>e.alignItems),(e=>e.alignContent),(e=>e.justifyContent),(e=>e.padding),(e=>e.margin),(e=>e.marginTop),(e=>e.marginLeft),(e=>e.marginRight),(e=>e.marginBottom),(e=>e.minWidth),(e=>e.maxWidth),(e=>e.overflowY),(e=>e.overflowX),(e=>e.fontSize),(e=>e.fontWeight),(e=>e.textAlign),(e=>e.filter),(e=>e.boxShadow),(e=>e.top),(e=>e.bottom),(e=>e.left),(e=>e.right),(e=>e.width),(e=>e.height),(e=>e.border),(e=>e.borderRadius),(e=>e.overflow),(e=>e.zIndex)),r6=hf.div.withConfig({displayName:"styles__Item",componentId:"sc-1il8o4s-0"})(["",""],t6),n6=hf.div.withConfig({displayName:"styles__Container",componentId:"sc-1il8o4s-2"})(["",""],t6),i6=hf.img.withConfig({displayName:"styles__Image",componentId:"sc-1il8o4s-3"})(["",""],t6),o6=hf.button.withConfig({displayName:"styles__Button",componentId:"sc-1il8o4s-5"})(["",""],t6),s6=hf.span.withConfig({displayName:"styles__Text",componentId:"sc-1il8o4s-6"})(["",""],t6),a6="2560px",u6={mobileS:`(max-width: ${"320px"})`,mobileM:`(max-width: ${"375px"})`,mobileL:`(max-width: ${"425px"})`,tablet:`(max-width: ${"768px"})`,laptop:`(max-width: ${"1024px"})`,laptopL:`(max-width: ${"1440px"})`,desktop:`(max-width: ${a6})`,desktopL:`(max-width: ${a6})`},l6={account:"",setAccount:()=>{},signer:void 0,setSigner:()=>{},pgpPrivateKey:"",setPgpPrivateKey:()=>{},env:q3.DEV,setEnv:()=>{},chainId:1,setChainId:()=>{},trendingListData:null,setTrendingListData:()=>{},selectedFeedTab:"Popular",setSelectedFeedTab:()=>{},spaceInfo:{},setSpaceInfo:()=>{},getSpaceInfo:()=>{},spaceWidgetId:"",setSpaceWidgetId:()=>{},mySpaces:{apiData:[],currentPage:1,lastPage:2},setMySpaces:()=>{},popularSpaces:{apiData:[],currentPage:1,lastPage:2},setPopularSpaces:()=>{},spaceRequests:{apiData:[],currentPage:1,lastPage:2},setSpaceRequests:()=>{},pushSpaceSocket:null,setPushSpaceSocket:()=>{},isPushSDKSocketConnected:!1,setIsPushSDKSocketConnected:()=>{},spaceObjectData:{},setSpaceObjectData:()=>{},initSpaceObject:async()=>{},spacesObjectRef:{current:null},isJoined:!1,isSpeaker:!1,isListener:!1,speakerData:{},setSpeakerData:()=>{},acceptSpaceRequest:async()=>{},connectSpaceRequest:async()=>{},broadcastRaisedHand:async()=>{},customSearch:void 0,raisedHandInfo:{}},c6=(0,w.createContext)(l6),h6={account:null,setAccount:()=>{},signer:void 0,setSigner:()=>{},pgpPrivateKey:"",setPgpPrivateKey:()=>{},env:W3.ENV.PROD,setEnv:()=>{},pushChatSocket:null,setPushChatSocket:()=>{},isPushChatSocketConnected:!1,setIsPushChatSocketConnected:()=>{},connectedProfile:void 0,setConnectedProfile:()=>{},pushUser:void 0,setPushUser:()=>{},pushChatStream:null,setPushChatStream:()=>{},isPushChatStreamConnected:!1,setIsPushChatStreamConnected:()=>{}},d6=(0,w.createContext)(h6),f6=(0,w.createContext)({}),p6=(0,w.createContext)({}),m6="chat",g6=()=>{const e=(0,w.useContext)(c6);if(!e)throw new Error("useSpaceData must be used within a SpaceDataProvider");return e};var y6=r(98399);var v6=r(98399);const b6=()=>{const{popularSpaces:e,setPopularSpaces:t,env:r}=g6(),[n,i]=(0,w.useState)(!1);return(0,w.useEffect)((()=>{(async()=>{i(!0);try{const n=await tF({page:e.currentPage,limit:10,env:r});if(0===n.length)return t({lastPage:-1}),void i(!1);n.length>0&&t({apiData:n})}catch(XMe){v6.error("Error while fetching popular spaces:",XMe)}i(!1)})()}),[e.currentPage]),{loading:n}};var w6=r(98399);const _6=e=>{const{mySpaces:t,setMySpaces:r,env:n}=g6(),[i,o]=(0,w.useState)(!1);return(0,w.useEffect)((()=>{(async()=>{if(e){o(!0);try{const i=await XU({account:e,page:t.currentPage,limit:10,toDecrypt:!1,env:n});if(0===i.length)return r({lastPage:-1}),void o(!1);i.length>0&&r({apiData:i})}catch(XMe){w6.error("Error while fetching Spaces For You:",XMe)}o(!1)}})()}),[t.currentPage]),{loading:i}};var E6=r(98399);const A6=e=>{const{spaceRequests:t,setSpaceRequests:r,env:n}=g6(),[i,o]=(0,w.useState)(!1);return(0,w.useEffect)((()=>{(async()=>{if(e){o(!0);try{const i=await kF({account:e,page:t.currentPage,limit:10,toDecrypt:!1,env:n});if(0===i.length)return r({lastPage:-1}),void o(!1);i.length>0&&r({apiData:i})}catch(XMe){E6.error("Error while fetching spaces requests:",XMe)}o(!1)}})()}),[t.currentPage]),{loading:i}},M6=e=>{const t=w.useRef(null);return w.useEffect((()=>{t.current&&(t.current.scrollTop=0)}),[]),t};r(55082),r(17837);var S6=r(68539),x6=r(44609),k6=r(61024),T6=r(76384),C6=r(12943),I6=r(18334),N6=r(94073),R6=r(29897),P6=r(3114);var D6=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const L6=new P6.Yd("contracts/5.7.0"),O6={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function j6(e,t){return D6(this,void 0,void 0,(function*(){const r=yield t;"string"!=typeof r&&L6.throwArgumentError("invalid address or ENS name","name",r);try{return(0,T6.Kn)(r)}catch(XMe){}e||L6.throwError("a provider or signer is needed to resolve ENS names",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const n=yield e.resolveName(r);return null==n&&L6.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n}))}function B6(e,t,r){return D6(this,void 0,void 0,(function*(){return Array.isArray(r)?yield Promise.all(r.map(((r,n)=>B6(e,Array.isArray(t)?t[n]:t[r.name],r)))):"address"===r.type?yield j6(e,t):"tuple"===r.type?yield B6(e,t,r.components):"array"===r.baseType?Array.isArray(t)?yield Promise.all(t.map((t=>B6(e,t,r.arrayChildren)))):Promise.reject(L6.makeError("invalid value for array",P6.Yd.errors.INVALID_ARGUMENT,{argument:"value",value:t})):t}))}function U6(e,t,r){return D6(this,void 0,void 0,(function*(){let n={};r.length===t.inputs.length+1&&"object"==typeof r[r.length-1]&&(n=(0,N6.DC)(r.pop())),L6.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?n.from?n.from=(0,N6.mE)({override:j6(e.signer,n.from),signer:e.signer.getAddress()}).then((e=>D6(this,void 0,void 0,(function*(){return(0,T6.Kn)(e.signer)!==e.override&&L6.throwError("Contract with a Signer cannot override from",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),e.override})))):n.from=e.signer.getAddress():n.from&&(n.from=j6(e.provider,n.from));const i=yield(0,N6.mE)({args:B6(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:(0,N6.mE)(n)||{}}),o=e.interface.encodeFunctionData(t,i.args),s={data:o,to:i.address},a=i.overrides;if(null!=a.nonce&&(s.nonce=C6.O$.from(a.nonce).toNumber()),null!=a.gasLimit&&(s.gasLimit=C6.O$.from(a.gasLimit)),null!=a.gasPrice&&(s.gasPrice=C6.O$.from(a.gasPrice)),null!=a.maxFeePerGas&&(s.maxFeePerGas=C6.O$.from(a.maxFeePerGas)),null!=a.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=C6.O$.from(a.maxPriorityFeePerGas)),null!=a.from&&(s.from=a.from),null!=a.type&&(s.type=a.type),null!=a.accessList&&(s.accessList=(0,R6.z7)(a.accessList)),null==s.gasLimit&&null!=t.gas){let e=21e3;const r=(0,I6.lE)(o);for(let t=0;tnull!=n[e]));return u.length&&L6.throwError(`cannot override ${u.map((e=>JSON.stringify(e))).join(",")}`,P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:u}),s}))}function F6(e,t){const r=t.wait.bind(t);t.wait=t=>r(t).then((t=>(t.events=t.logs.map((r=>{let n=(0,N6.p$)(r),i=null;try{i=e.interface.parseLog(r)}catch(fVe){}return i&&(n.args=i.args,n.decode=(t,r)=>e.interface.decodeEventLog(i.eventFragment,t,r),n.event=i.name,n.eventSignature=i.signature),n.removeListener=()=>e.provider,n.getBlock=()=>e.provider.getBlock(t.blockHash),n.getTransaction=()=>e.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>Promise.resolve(t),n})),t)))}function z6(e,t,r){const n=e.signer||e.provider;return function(...i){return D6(this,void 0,void 0,(function*(){let o;if(i.length===t.inputs.length+1&&"object"==typeof i[i.length-1]){const e=(0,N6.DC)(i.pop());null!=e.blockTag&&(o=yield e.blockTag),delete e.blockTag,i.push(e)}null!=e.deployTransaction&&(yield e._deployed(o));const s=yield U6(e,t,i),a=yield n.call(s,o);try{let n=e.interface.decodeFunctionResult(t,a);return r&&1===t.outputs.length&&(n=n[0]),n}catch(XMe){throw XMe.code===P6.Yd.errors.CALL_EXCEPTION&&(XMe.address=e.address,XMe.args=i,XMe.transaction=s),XMe}}))}}function H6(e,t,r){return t.constant?z6(e,t,r):function(e,t){return function(...r){return D6(this,void 0,void 0,(function*(){e.signer||L6.throwError("sending a transaction requires a signer",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=e.deployTransaction&&(yield e._deployed());const n=yield U6(e,t,r),i=yield e.signer.sendTransaction(n);return F6(e,i),i}))}}(e,t)}function G6(e){return!e.address||null!=e.topics&&0!==e.topics.length?(e.address||"*")+"@"+(e.topics?e.topics.map((e=>Array.isArray(e)?e.join("|"):e)).join(":"):""):"*"}class Y6{constructor(e,t){(0,N6.zG)(this,"tag",e),(0,N6.zG)(this,"filter",t),this._listeners=[]}addListener(e,t){this._listeners.push({listener:e,once:t})}removeListener(e){let t=!1;this._listeners=this._listeners.filter((r=>!(!t&&r.listener===e)||(t=!0,!1)))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map((e=>e.listener))}listenerCount(){return this._listeners.length}run(e){const t=this.listenerCount();return this._listeners=this._listeners.filter((t=>{const r=e.slice();return setTimeout((()=>{t.listener.apply(this,r)}),0),!t.once})),t}prepareEvent(e){}getEmit(e){return[e]}}class K6 extends Y6{constructor(){super("error",null)}}class q6 extends Y6{constructor(e,t,r,n){const i={address:e};let o=t.getEventTopic(r);n?(o!==n[0]&&L6.throwArgumentError("topic mismatch","topics",n),i.topics=n.slice()):i.topics=[o],super(G6(i),i),(0,N6.zG)(this,"address",e),(0,N6.zG)(this,"interface",t),(0,N6.zG)(this,"fragment",r)}prepareEvent(e){super.prepareEvent(e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=(e,t)=>this.interface.decodeEventLog(this.fragment,e,t);try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(XMe){e.args=null,e.decodeError=XMe}}getEmit(e){const t=(0,S6.checkResultErrors)(e.args);if(t.length)throw t[0].error;const r=(e.args||[]).slice();return r.push(e),r}}class W6 extends Y6{constructor(e,t){super("*",{address:e}),(0,N6.zG)(this,"address",e),(0,N6.zG)(this,"interface",t)}prepareEvent(e){super.prepareEvent(e);try{const t=this.interface.parseLog(e);e.event=t.name,e.eventSignature=t.signature,e.decode=(e,r)=>this.interface.decodeEventLog(t.eventFragment,e,r),e.args=t.args}catch(XMe){}}}class V6{constructor(e,t,r){(0,N6.zG)(this,"interface",(0,N6.tu)(new.target,"getInterface")(t)),null==r?((0,N6.zG)(this,"provider",null),(0,N6.zG)(this,"signer",null)):k6.E.isSigner(r)?((0,N6.zG)(this,"provider",r.provider||null),(0,N6.zG)(this,"signer",r)):x6.zt.isProvider(r)?((0,N6.zG)(this,"provider",r),(0,N6.zG)(this,"signer",null)):L6.throwArgumentError("invalid signer or provider","signerOrProvider",r),(0,N6.zG)(this,"callStatic",{}),(0,N6.zG)(this,"estimateGas",{}),(0,N6.zG)(this,"functions",{}),(0,N6.zG)(this,"populateTransaction",{}),(0,N6.zG)(this,"filters",{});{const e={};Object.keys(this.interface.events).forEach((t=>{const r=this.interface.events[t];(0,N6.zG)(this.filters,t,((...e)=>({address:this.address,topics:this.interface.encodeFilterTopics(r,e)}))),e[r.name]||(e[r.name]=[]),e[r.name].push(t)})),Object.keys(e).forEach((t=>{const r=e[t];1===r.length?(0,N6.zG)(this.filters,t,this.filters[r[0]]):L6.warn(`Duplicate definition of ${t} (${r.join(", ")})`)}))}if((0,N6.zG)(this,"_runningEvents",{}),(0,N6.zG)(this,"_wrappedEmits",{}),null==e&&L6.throwArgumentError("invalid contract address or ENS name","addressOrName",e),(0,N6.zG)(this,"address",e),this.provider)(0,N6.zG)(this,"resolvedAddress",j6(this.provider,e));else try{(0,N6.zG)(this,"resolvedAddress",Promise.resolve((0,T6.Kn)(e)))}catch(XMe){L6.throwError("provider is required to use ENS name as contract address",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((e=>{}));const n={},i={};Object.keys(this.interface.functions).forEach((e=>{const t=this.interface.functions[e];if(i[e])L6.warn(`Duplicate ABI entry for ${JSON.stringify(e)}`);else{i[e]=!0;{const r=t.name;n[`%${r}`]||(n[`%${r}`]=[]),n[`%${r}`].push(e)}null==this[e]&&(0,N6.zG)(this,e,H6(this,t,!0)),null==this.functions[e]&&(0,N6.zG)(this.functions,e,H6(this,t,!1)),null==this.callStatic[e]&&(0,N6.zG)(this.callStatic,e,z6(this,t,!0)),null==this.populateTransaction[e]&&(0,N6.zG)(this.populateTransaction,e,function(e,t){return function(...r){return U6(e,t,r)}}(this,t)),null==this.estimateGas[e]&&(0,N6.zG)(this.estimateGas,e,function(e,t){const r=e.signer||e.provider;return function(...n){return D6(this,void 0,void 0,(function*(){r||L6.throwError("estimate require a provider or signer",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield U6(e,t,n);return yield r.estimateGas(i)}))}}(this,t))}})),Object.keys(n).forEach((e=>{const t=n[e];if(t.length>1)return;e=e.substring(1);const r=t[0];try{null==this[e]&&(0,N6.zG)(this,e,this[r])}catch(fVe){}null==this.functions[e]&&(0,N6.zG)(this.functions,e,this.functions[r]),null==this.callStatic[e]&&(0,N6.zG)(this.callStatic,e,this.callStatic[r]),null==this.populateTransaction[e]&&(0,N6.zG)(this.populateTransaction,e,this.populateTransaction[r]),null==this.estimateGas[e]&&(0,N6.zG)(this.estimateGas,e,this.estimateGas[r])}))}static getContractAddress(e){return(0,T6.CR)(e)}static getInterface(e){return S6.Interface.isInterface(e)?e:new S6.Interface(e)}deployed(){return this._deployed()}_deployed(e){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((()=>this)):this._deployedPromise=this.provider.getCode(this.address,e).then((e=>("0x"===e&&L6.throwError("contract not deployed",P6.Yd.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this)))),this._deployedPromise}fallback(e){this.signer||L6.throwError("sending a transactions require a signer",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const t=(0,N6.DC)(e||{});return["from","to"].forEach((function(e){null!=t[e]&&L6.throwError("cannot override "+e,P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.to=this.resolvedAddress,this.deployed().then((()=>this.signer.sendTransaction(t)))}connect(e){"string"==typeof e&&(e=new k6.b(e,this.provider));const t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,N6.zG)(t,"deployTransaction",this.deployTransaction),t}attach(e){return new this.constructor(e,this.interface,this.signer||this.provider)}static isIndexed(e){return S6.Indexed.isIndexed(e)}_normalizeRunningEvent(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}_getRunningEvent(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new K6);if("event"===e)return this._normalizeRunningEvent(new Y6("event",null));if("*"===e)return this._normalizeRunningEvent(new W6(this.address,this.interface));const t=this.interface.getEvent(e);return this._normalizeRunningEvent(new q6(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{const t=e.topics[0];if("string"!=typeof t)throw new Error("invalid topic");const r=this.interface.getEvent(t);return this._normalizeRunningEvent(new q6(this.address,this.interface,r,e.topics))}catch(XMe){}const t={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new Y6(G6(t),t))}return this._normalizeRunningEvent(new W6(this.address,this.interface))}_checkRunningEvents(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];const t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}_wrapEvent(e,t,r){const n=(0,N6.p$)(t);return n.removeListener=()=>{r&&(e.removeListener(r),this._checkRunningEvents(e))},n.getBlock=()=>this.provider.getBlock(t.blockHash),n.getTransaction=()=>this.provider.getTransaction(t.transactionHash),n.getTransactionReceipt=()=>this.provider.getTransactionReceipt(t.transactionHash),e.prepareEvent(n),n}_addEventListener(e,t,r){if(this.provider||L6.throwError("events require a provider or a signer with a provider",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){const r=r=>{let n=this._wrapEvent(e,r,t);if(null==n.decodeError)try{const t=e.getEmit(n);this.emit(e.filter,...t)}catch(XMe){n.decodeError=XMe.error}null!=e.filter&&this.emit("event",n),null!=n.decodeError&&this.emit("error",n.decodeError,n)};this._wrappedEmits[e.tag]=r,null!=e.filter&&this.provider.on(e.filter,r)}}queryFilter(e,t,r){const n=this._getRunningEvent(e),i=(0,N6.DC)(n.filter);return"string"==typeof t&&(0,I6.A7)(t,32)?(null!=r&&L6.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).then((e=>e.map((e=>this._wrapEvent(n,e,null)))))}on(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}once(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}emit(e,...t){if(!this.provider)return!1;const r=this._getRunningEvent(e),n=r.run(t)>0;return this._checkRunningEvents(r),n}listenerCount(e){return this.provider?null==e?Object.keys(this._runningEvents).reduce(((e,t)=>e+this._runningEvents[t].listenerCount()),0):this._getRunningEvent(e).listenerCount():0}listeners(e){if(!this.provider)return[];if(null==e){const e=[];for(let t in this._runningEvents)this._runningEvents[t].listeners().forEach((t=>{e.push(t)}));return e}return this._getRunningEvent(e).listeners()}removeAllListeners(e){if(!this.provider)return this;if(null==e){for(const e in this._runningEvents){const t=this._runningEvents[e];t.removeAllListeners(),this._checkRunningEvents(t)}return this}const t=this._getRunningEvent(e);return t.removeAllListeners(),this._checkRunningEvents(t),this}off(e,t){if(!this.provider)return this;const r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}removeListener(e,t){return this.off(e,t)}}class $6 extends V6{}class Q6{constructor(e,t,r){let n=null;n="string"==typeof t?t:(0,I6._t)(t)?(0,I6.Dv)(t):t&&"string"==typeof t.object?t.object:"!","0x"!==n.substring(0,2)&&(n="0x"+n),(!(0,I6.A7)(n)||n.length%2)&&L6.throwArgumentError("invalid bytecode","bytecode",t),r&&!k6.E.isSigner(r)&&L6.throwArgumentError("invalid signer","signer",r),(0,N6.zG)(this,"bytecode",n),(0,N6.zG)(this,"interface",(0,N6.tu)(new.target,"getInterface")(e)),(0,N6.zG)(this,"signer",r||null)}getDeployTransaction(...e){let t={};if(e.length===this.interface.deploy.inputs.length+1&&"object"==typeof e[e.length-1]){t=(0,N6.DC)(e.pop());for(const e in t)if(!O6[e])throw new Error("unknown transaction override "+e)}if(["data","from","to"].forEach((e=>{null!=t[e]&&L6.throwError("cannot override "+e,P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:e})})),t.value){C6.O$.from(t.value).isZero()||this.interface.deploy.payable||L6.throwError("non-payable constructor cannot override value",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:t.value})}return L6.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),t.data=(0,I6.Dv)((0,I6.zo)([this.bytecode,this.interface.encodeDeploy(e)])),t}deploy(...e){return D6(this,void 0,void 0,(function*(){let t={};e.length===this.interface.deploy.inputs.length+1&&(t=e.pop()),L6.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor");const r=yield B6(this.signer,e,this.interface.deploy.inputs);r.push(t);const n=this.getDeployTransaction(...r),i=yield this.signer.sendTransaction(n),o=(0,N6.tu)(this.constructor,"getContractAddress")(i),s=(0,N6.tu)(this.constructor,"getContract")(o,this.interface,this.signer);return F6(s,i),(0,N6.zG)(s,"deployTransaction",i),s}))}attach(e){return this.constructor.getContract(e,this.interface,this.signer)}connect(e){return new this.constructor(this.interface,this.bytecode,e)}static fromSolidity(e,t){null==e&&L6.throwError("missing compiler output",P6.Yd.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof e&&(e=JSON.parse(e));const r=e.abi;let n=null;return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)}static getInterface(e){return $6.getInterface(e)}static getContractAddress(e){return(0,T6.CR)(e)}static getContract(e,t,r){return new $6(e,t,r)}}var J6=r(61790),Z6=r(99733),X6=r(64813),e4=r(31203),t4=r(33809),r4=r(9034);var n4=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const i4=new P6.Yd("wallet/5.7.0");class o4 extends k6.E{constructor(e,t){if(super(),function(e){return null!=e&&(0,I6.A7)(e.privateKey,32)&&null!=e.address}(e)){const t=new t4.Et(e.privateKey);if((0,N6.zG)(this,"_signingKey",(()=>t)),(0,N6.zG)(this,"address",(0,R6.db)(this.publicKey)),this.address!==(0,T6.Kn)(e.address)&&i4.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){const t=e.mnemonic;return t&&t.phrase}(e)){const t=e.mnemonic;(0,N6.zG)(this,"_mnemonic",(()=>({phrase:t.phrase,path:t.path||Z6.cD,locale:t.locale||"en"})));const r=this.mnemonic,n=Z6.m$.fromMnemonic(r.phrase,null,r.locale).derivePath(r.path);(0,R6.db)(n.privateKey)!==this.address&&i4.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,N6.zG)(this,"_mnemonic",(()=>null))}else{if(t4.Et.isSigningKey(e))"secp256k1"!==e.curve&&i4.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,N6.zG)(this,"_signingKey",(()=>e));else{"string"==typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);const t=new t4.Et(e);(0,N6.zG)(this,"_signingKey",(()=>t))}(0,N6.zG)(this,"_mnemonic",(()=>null)),(0,N6.zG)(this,"address",(0,R6.db)(this.publicKey))}t&&!x6.zt.isProvider(t)&&i4.throwArgumentError("invalid provider","provider",t),(0,N6.zG)(this,"provider",t||null)}get mnemonic(){return this._mnemonic()}get privateKey(){return this._signingKey().privateKey}get publicKey(){return this._signingKey().publicKey}getAddress(){return Promise.resolve(this.address)}connect(e){return new o4(this,e)}signTransaction(e){return(0,N6.mE)(e).then((t=>{null!=t.from&&((0,T6.Kn)(t.from)!==this.address&&i4.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete t.from);const r=this._signingKey().signDigest((0,X6.w)((0,R6.qC)(t)));return(0,R6.qC)(t,r)}))}signMessage(e){return n4(this,void 0,void 0,(function*(){return(0,I6.gV)(this._signingKey().signDigest((0,J6.rj)(e)))}))}_signTypedData(e,t,r){return n4(this,void 0,void 0,(function*(){const n=yield J6.H1.resolveNames(e,t,r,(e=>(null==this.provider&&i4.throwError("cannot resolve ENS names without a provider",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),this.provider.resolveName(e))));return(0,I6.gV)(this._signingKey().signDigest(J6.H1.hash(n.domain,t,n.value)))}))}encrypt(e,t,r){if("function"!=typeof t||r||(r=t,t={}),r&&"function"!=typeof r)throw new Error("invalid callback");return t||(t={}),(0,r4.n2)(this,e,t,r)}static createRandom(e){let t=(0,e4.O)(16);e||(e={}),e.extraEntropy&&(t=(0,I6.lE)((0,I6.p3)((0,X6.w)((0,I6.zo)([t,e.extraEntropy])),0,16)));const r=(0,Z6.JJ)(t,e.locale);return o4.fromMnemonic(r,e.path,e.locale)}static fromEncryptedJson(e,t,r){return(0,r4.w)(e,t,r).then((e=>new o4(e)))}static fromEncryptedJsonSync(e,t){return new o4((0,r4.qz)(e,t))}static fromMnemonic(e,t,r){return t||(t=Z6.cD),new o4(Z6.m$.fromMnemonic(e,null,r).derivePath(t))}}function s4(e,t){return(0,R6.RJ)((0,J6.rj)(e),t)}function a4(e,t,r,n){return(0,R6.RJ)(J6.H1.hash(e,t,r),n)}var u4=r(36620),l4=r(23660),c4=r(88288),h4=r(64455),d4=r(15477),f4=r(35124),p4=r(51125),m4=r(89887),g4=r.n(m4);const y4="providers/5.7.2";var v4=r(98399);const b4=new P6.Yd(y4);class w4{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const e={},t=this.address.bind(this),r=this.bigNumber.bind(this),n=this.blockTag.bind(this),i=this.data.bind(this),o=this.hash.bind(this),s=this.hex.bind(this),a=this.number.bind(this),u=this.type.bind(this);return e.transaction={hash:o,type:u,accessList:w4.allowNull(this.accessList.bind(this),null),blockHash:w4.allowNull(o,null),blockNumber:w4.allowNull(a,null),transactionIndex:w4.allowNull(a,null),confirmations:w4.allowNull(a,null),from:t,gasPrice:w4.allowNull(r),maxPriorityFeePerGas:w4.allowNull(r),maxFeePerGas:w4.allowNull(r),gasLimit:r,to:w4.allowNull(t,null),value:r,nonce:a,data:i,r:w4.allowNull(this.uint256),s:w4.allowNull(this.uint256),v:w4.allowNull(a),creates:w4.allowNull(t,null),raw:w4.allowNull(i)},e.transactionRequest={from:w4.allowNull(t),nonce:w4.allowNull(a),gasLimit:w4.allowNull(r),gasPrice:w4.allowNull(r),maxPriorityFeePerGas:w4.allowNull(r),maxFeePerGas:w4.allowNull(r),to:w4.allowNull(t),value:w4.allowNull(r),data:w4.allowNull((e=>this.data(e,!0))),type:w4.allowNull(a),accessList:w4.allowNull(this.accessList.bind(this),null)},e.receiptLog={transactionIndex:a,blockNumber:a,transactionHash:o,address:t,topics:w4.arrayOf(o),data:i,logIndex:a,blockHash:o},e.receipt={to:w4.allowNull(this.address,null),from:w4.allowNull(this.address,null),contractAddress:w4.allowNull(t,null),transactionIndex:a,root:w4.allowNull(s),gasUsed:r,logsBloom:w4.allowNull(i),blockHash:o,transactionHash:o,logs:w4.arrayOf(this.receiptLog.bind(this)),blockNumber:a,confirmations:w4.allowNull(a,null),cumulativeGasUsed:r,effectiveGasPrice:w4.allowNull(r),status:w4.allowNull(a),type:u},e.block={hash:w4.allowNull(o),parentHash:o,number:a,timestamp:a,nonce:w4.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:r,gasUsed:r,miner:w4.allowNull(t),extraData:i,transactions:w4.allowNull(w4.arrayOf(o)),baseFeePerGas:w4.allowNull(r)},e.blockWithTransactions=(0,N6.DC)(e.block),e.blockWithTransactions.transactions=w4.allowNull(w4.arrayOf(this.transactionResponse.bind(this))),e.filter={fromBlock:w4.allowNull(n,void 0),toBlock:w4.allowNull(n,void 0),blockHash:w4.allowNull(o,void 0),address:w4.allowNull(t,void 0),topics:w4.allowNull(this.topics.bind(this),void 0)},e.filterLog={blockNumber:w4.allowNull(a),blockHash:w4.allowNull(o),transactionIndex:a,removed:w4.allowNull(this.boolean.bind(this)),address:t,data:w4.allowFalsish(i,"0x"),topics:w4.arrayOf(o),transactionHash:o,logIndex:a},e}accessList(e){return(0,R6.z7)(e||[])}number(e){return"0x"===e?0:C6.O$.from(e).toNumber()}type(e){return"0x"===e||null==e?0:C6.O$.from(e).toNumber()}bigNumber(e){return C6.O$.from(e)}boolean(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}hex(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),(0,I6.A7)(e))?e.toLowerCase():b4.throwArgumentError("invalid hash","value",e)}data(e,t){const r=this.hex(e,t);if(r.length%2!=0)throw new Error("invalid data; odd-length - "+e);return r}address(e){return(0,T6.Kn)(e)}callAddress(e){if(!(0,I6.A7)(e,32))return null;const t=(0,T6.Kn)((0,I6.p3)(e,12));return t===u4.AddressZero?null:t}contractAddress(e){return(0,T6.CR)(e)}blockTag(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||(0,I6.A7)(e))return(0,I6.$P)(e);throw new Error("invalid blockTag")}hash(e,t){const r=this.hex(e,t);return 32!==(0,I6.E1)(r)?b4.throwArgumentError("invalid hash","value",e):r}difficulty(e){if(null==e)return null;const t=C6.O$.from(e);try{return t.toNumber()}catch(XMe){}return null}uint256(e){if(!(0,I6.A7)(e))throw new Error("invalid uint256");return(0,I6.$m)(e,32)}_block(e,t){null!=e.author&&null==e.miner&&(e.miner=e.author);const r=null!=e._difficulty?e._difficulty:e.difficulty,n=w4.check(t,e);return n._difficulty=null==r?null:C6.O$.from(r),n}block(e){return this._block(e,this.formats.block)}blockWithTransactions(e){return this._block(e,this.formats.blockWithTransactions)}transactionRequest(e){return w4.check(this.formats.transactionRequest,e)}transactionResponse(e){null!=e.gas&&null==e.gasLimit&&(e.gasLimit=e.gas),e.to&&C6.O$.from(e.to).isZero()&&(e.to="0x0000000000000000000000000000000000000000"),null!=e.input&&null==e.data&&(e.data=e.input),null==e.to&&null==e.creates&&(e.creates=this.contractAddress(e)),1!==e.type&&2!==e.type||null!=e.accessList||(e.accessList=[]);const t=w4.check(this.formats.transaction,e);if(null!=e.chainId){let r=e.chainId;(0,I6.A7)(r)&&(r=C6.O$.from(r).toNumber()),t.chainId=r}else{let r=e.networkId;null==r&&null==t.v&&(r=e.chainId),(0,I6.A7)(r)&&(r=C6.O$.from(r).toNumber()),"number"!=typeof r&&null!=t.v&&(r=(t.v-35)/2,r<0&&(r=0),r=parseInt(r)),"number"!=typeof r&&(r=0),t.chainId=r}return t.blockHash&&"x"===t.blockHash.replace(/0/g,"")&&(t.blockHash=null),t}transaction(e){return(0,R6.Qc)(e)}receiptLog(e){return w4.check(this.formats.receiptLog,e)}receipt(e){const t=w4.check(this.formats.receipt,e);if(null!=t.root)if(t.root.length<=4){const e=C6.O$.from(t.root).toNumber();0===e||1===e?(null!=t.status&&t.status!==e&&b4.throwArgumentError("alt-root-status/status mismatch","value",{root:t.root,status:t.status}),t.status=e,delete t.root):b4.throwArgumentError("invalid alt-root-status","value.root",t.root)}else 66!==t.root.length&&b4.throwArgumentError("invalid root hash","value.root",t.root);return null!=t.status&&(t.byzantium=!0),t}topics(e){return Array.isArray(e)?e.map((e=>this.topics(e))):null!=e?this.hash(e,!0):null}filter(e){return w4.check(this.formats.filter,e)}filterLog(e){return w4.check(this.formats.filterLog,e)}static check(e,t){const r={};for(const n in e)try{const i=e[n](t[n]);void 0!==i&&(r[n]=i)}catch(XMe){throw XMe.checkKey=n,XMe.checkValue=t[n],XMe}return r}static allowNull(e,t){return function(r){return null==r?t:e(r)}}static allowFalsish(e,t){return function(r){return r?e(r):t}}static arrayOf(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");const r=[];return t.forEach((function(t){r.push(e(t))})),r}}}function _4(e){return e&&"function"==typeof e.isCommunityResource}function E4(e){return _4(e)&&e.isCommunityResource()}let A4=!1;function M4(){A4||(A4=!0,v4.log("========= NOTICE ========="),v4.log("Request-Rate Exceeded (this message will not be repeated)"),v4.log(""),v4.log("The default API keys for each service are provided as a highly-throttled,"),v4.log("community resource for low-traffic projects and early prototyping."),v4.log(""),v4.log("While your application will continue to function, we highly recommended"),v4.log("signing up for your own API keys to improve performance, increase your"),v4.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),v4.log(""),v4.log("For more details: https://docs.ethers.io/api-keys/"),v4.log("=========================="))}var S4=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const x4=new P6.Yd(y4);function k4(e){return null==e?"null":(32!==(0,I6.E1)(e)&&x4.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function T4(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((e=>{if(Array.isArray(e)){const t={};e.forEach((e=>{t[k4(e)]=!0}));const r=Object.keys(t);return r.sort(),r.join("|")}return k4(e)})).join("&")}function C4(e){if("string"==typeof e){if(e=e.toLowerCase(),32===(0,I6.E1)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+T4(e);if(x6.Sg.isForkEvent(e))throw x4.warn("not implemented"),new Error("not implemented");if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+T4(e.topics||[])}throw new Error("invalid event - "+e)}function I4(){return(new Date).getTime()}function N4(e){return new Promise((t=>{setTimeout(t,e)}))}const R4=["block","network","pending","poll"];class P4{constructor(e,t,r){(0,N6.zG)(this,"tag",e),(0,N6.zG)(this,"listener",t),(0,N6.zG)(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}get filter(){const e=this.tag.split(":");if("filter"!==e[0])return null;const t=e[1],r=function(e){return""===e?[]:e.split(/&/g).map((e=>{if(""===e)return[];const t=e.split("|").map((e=>"null"===e?null:e));return 1===t.length?t[0]:t}))}(e[2]),n={};return r.length>0&&(n.topics=r),t&&"*"!==t&&(n.address=t),n}pollable(){return this.tag.indexOf(":")>=0||R4.indexOf(this.tag)>=0}}const D4={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function L4(e){return(0,I6.$m)(C6.O$.from(e).toHexString(),32)}function O4(e){return h4.eU.encode((0,I6.zo)([e,(0,I6.p3)((0,d4.JQ)((0,d4.JQ)(e)),0,4)]))}const j4=new RegExp("^(ipfs)://(.*)$","i"),B4=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),j4,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function U4(e,t){try{return(0,f4.ZN)(F4(e,t))}catch(XMe){}return null}function F4(e,t){if("0x"===e)return null;const r=C6.O$.from((0,I6.p3)(e,t,t+32)).toNumber(),n=C6.O$.from((0,I6.p3)(e,r,r+32)).toNumber();return(0,I6.p3)(e,r+32,r+32+n)}function z4(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):x4.throwArgumentError("unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}function H4(e){const t=(0,I6.lE)(e);if(t.length>32)throw new Error("internal; should not happen");const r=new Uint8Array(32);return r.set(t,32-t.length),r}function G4(e){if(e.length%32==0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function Y4(e){const t=[];let r=0;for(let n=0;nC6.O$.from(e).eq(1))).catch((e=>{if(e.code===P6.Yd.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,e}))),this._supportsEip2544}_fetch(e,t){return S4(this,void 0,void 0,(function*(){const r={to:this.address,ccipReadEnabled:!0,data:(0,I6.xs)([e,(0,J6.VM)(this.name),t||"0x"])};let n=!1;(yield this.supportsWildcard())&&(n=!0,r.data=(0,I6.xs)(["0x9061b923",Y4([(0,J6.Kn)(this.name),r.data])]));try{let e=yield this.provider.call(r);return(0,I6.lE)(e).length%32==4&&x4.throwError("resolver threw error",P6.Yd.errors.CALL_EXCEPTION,{transaction:r,data:e}),n&&(e=F4(e,0)),e}catch(XMe){if(XMe.code===P6.Yd.errors.CALL_EXCEPTION)return null;throw XMe}}))}_fetchBytes(e,t){return S4(this,void 0,void 0,(function*(){const r=yield this._fetch(e,t);return null!=r?F4(r,0):null}))}_getAddress(e,t){const r=D4[String(e)];if(null==r&&x4.throwError(`unsupported coin type: ${e}`,P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`}),"eth"===r.ilk)return this.provider.formatter.address(t);const n=(0,I6.lE)(t);if(null!=r.p2pkh){const e=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return O4((0,I6.zo)([[r.p2pkh],"0x"+e[2]]))}}if(null!=r.p2sh){const e=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(e){const t=parseInt(e[1],16);if(e[2].length===2*t&&t>=1&&t<=75)return O4((0,I6.zo)([[r.p2sh],"0x"+e[2]]))}}if(null!=r.prefix){const e=n[1];let t=n[0];if(0===t?20!==e&&32!==e&&(t=-1):t=-1,t>=0&&n.length===2+e&&e>=1&&e<=75){const e=g4().toWords(n.slice(2));return e.unshift(t),g4().encode(r.prefix,e)}}return null}getAddress(e){return S4(this,void 0,void 0,(function*(){if(null==e&&(e=60),60===e)try{const e=yield this._fetch("0x3b3b57de");return"0x"===e||e===u4.HashZero?null:this.provider.formatter.callAddress(e)}catch(XMe){if(XMe.code===P6.Yd.errors.CALL_EXCEPTION)return null;throw XMe}const t=yield this._fetchBytes("0xf1cb7e06",L4(e));if(null==t||"0x"===t)return null;const r=this._getAddress(e,t);return null==r&&x4.throwError("invalid or unsupported coin data",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${e})`,coinType:e,data:t}),r}))}getAvatar(){return S4(this,void 0,void 0,(function*(){const e=[{type:"name",content:this.name}];try{const t=yield this.getText("avatar");if(null==t)return null;for(let r=0;re[t]));return"sia://"+t}return x4.throwError("invalid or unsupported content hash data",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})}))}getText(e){return S4(this,void 0,void 0,(function*(){let t=(0,f4.Y0)(e);t=(0,I6.zo)([L4(64),L4(t.length),t]),t.length%32!=0&&(t=(0,I6.zo)([t,(0,I6.$m)("0x",32-e.length%32)]));const r=yield this._fetchBytes("0x59d1d43c",(0,I6.Dv)(t));return null==r||"0x"===r?null:(0,f4.ZN)(r)}))}}let q4=null,W4=1;class V4 extends x6.zt{constructor(e){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),(0,N6.zG)(this,"anyNetwork","any"===e),this.anyNetwork&&(e=this.detectNetwork()),e instanceof Promise)this._networkPromise=e,e.catch((e=>{})),this._ready().catch((e=>{}));else{const t=(0,N6.tu)(new.target,"getNetwork")(e);t?((0,N6.zG)(this,"_network",t),this.emit("network",t,null)):x4.throwArgumentError("invalid network","network",e)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return S4(this,void 0,void 0,(function*(){if(null==this._network){let e=null;if(this._networkPromise)try{e=yield this._networkPromise}catch(XMe){}null==e&&(e=yield this.detectNetwork()),e||x4.throwError("no network detected",P6.Yd.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:(0,N6.zG)(this,"_network",e),this.emit("network",e,null))}return this._network}))}get ready(){return(0,p4.$l)((()=>this._ready().then((e=>e),(e=>{if(e.code!==P6.Yd.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))))}static getFormatter(){return null==q4&&(q4=new w4),q4}static getNetwork(e){return(0,l4.H)(null==e?"homestead":e)}ccipReadFetch(e,t,r){return S4(this,void 0,void 0,(function*(){if(this.disableCcipRead||0===r.length)return null;const n=e.to.toLowerCase(),i=t.toLowerCase(),o=[];for(let e=0;e=0?null:JSON.stringify({data:i,sender:n}),u=yield(0,p4.rd)({url:s,errorPassThrough:!0},a,((e,t)=>(e.status=t.statusCode,e)));if(u.data)return u.data;const l=u.message||"unknown error";if(u.status>=400&&u.status<500)return x4.throwError(`response not found during CCIP fetch: ${l}`,P6.Yd.errors.SERVER_ERROR,{url:t,errorMessage:l});o.push(l)}return x4.throwError(`error encountered during CCIP fetch: ${o.map((e=>JSON.stringify(e))).join(", ")}`,P6.Yd.errors.SERVER_ERROR,{urls:r,errorMessages:o})}))}_getInternalBlockNumber(e){return S4(this,void 0,void 0,(function*(){if(yield this._ready(),e>0)for(;this._internalBlockNumber;){const t=this._internalBlockNumber;try{const r=yield t;if(I4()-r.respTime<=e)return r.blockNumber;break}catch(XMe){if(this._internalBlockNumber===t)break}}const t=I4(),r=(0,N6.mE)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((e=>null),(e=>e))}).then((({blockNumber:e,networkError:n})=>{if(n)throw this._internalBlockNumber===r&&(this._internalBlockNumber=null),n;const i=I4();return(e=C6.O$.from(e).toNumber()){this._internalBlockNumber===r&&(this._internalBlockNumber=null)})),(yield r).blockNumber}))}poll(){return S4(this,void 0,void 0,(function*(){const e=W4++,t=[];let r=null;try{r=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(XMe){return void this.emit("error",XMe)}if(this._setFastBlockNumber(r),this.emit("poll",e,r),r!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)x4.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${r})`),this.emit("error",x4.makeError("network block skew detected",P6.Yd.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(let e=this._emitted.block+1;e<=r;e++)this.emit("block",e);this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((e=>{if("block"===e)return;const t=this._emitted[e];"pending"!==t&&r-t>12&&delete this._emitted[e]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((e=>{switch(e.type){case"tx":{const r=e.hash;let n=this.getTransactionReceipt(r).then((e=>e&&null!=e.blockNumber?(this._emitted["t:"+r]=e.blockNumber,this.emit(r,e),null):null)).catch((e=>{this.emit("error",e)}));t.push(n);break}case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);const n=e.filter;n.fromBlock=e._lastBlockNumber+1,n.toBlock=r;const i=n.toBlock-this._maxFilterBlockRange;i>n.fromBlock&&(n.fromBlock=i),n.fromBlock<0&&(n.fromBlock=0);const o=this.getLogs(n).then((t=>{e._inflight=!1,0!==t.length&&t.forEach((t=>{t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),this._emitted["b:"+t.blockHash]=t.blockNumber,this._emitted["t:"+t.transactionHash]=t.blockNumber,this.emit(n,t)}))})).catch((t=>{this.emit("error",t),e._inflight=!1}));t.push(o)}}})),this._lastBlockNumber=r,Promise.all(t).then((()=>{this.emit("didPoll",e)})).catch((e=>{this.emit("error",e)}))}else this.emit("didPoll",e)}))}resetEventsBlock(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return S4(this,void 0,void 0,(function*(){return x4.throwError("provider does not support network detection",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return S4(this,void 0,void 0,(function*(){const e=yield this._ready(),t=yield this.detectNetwork();if(e.chainId!==t.chainId){if(this.anyNetwork)return this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),yield N4(0),this._network;const r=x4.makeError("underlying network changed",P6.Yd.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t});throw this.emit("error",r),r}return e}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then((e=>{this._setFastBlockNumber(e)}),(e=>{})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(e){e&&!this._poller?(this._poller=setInterval((()=>{this.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((()=>{this.poll(),this._bootstrapPoll=setTimeout((()=>{this._poller||this.poll(),this._bootstrapPoll=null}),this.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(e){if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((()=>{this.poll()}),this._pollingInterval))}_getFastBlockNumber(){const e=I4();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then((e=>((null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e),this._fastBlockNumber)))),this._fastBlockNumberPromise}_setFastBlockNumber(e){null!=this._fastBlockNumber&&ethis._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}waitForTransaction(e,t,r){return S4(this,void 0,void 0,(function*(){return this._waitForTransaction(e,null==t?1:t,r||0,null)}))}_waitForTransaction(e,t,r,n){return S4(this,void 0,void 0,(function*(){const i=yield this.getTransactionReceipt(e);return(i?i.confirmations:0)>=t?i:new Promise(((i,o)=>{const s=[];let a=!1;const u=function(){return!!a||(a=!0,s.forEach((e=>{e()})),!1)},l=e=>{e.confirmations{this.removeListener(e,l)})),n){let r=n.startBlock,i=null;const l=s=>S4(this,void 0,void 0,(function*(){a||(yield N4(1e3),this.getTransactionCount(n.from).then((c=>S4(this,void 0,void 0,(function*(){if(!a){if(c<=n.nonce)r=s;else{{const t=yield this.getTransaction(e);if(t&&null!=t.blockNumber)return}for(null==i&&(i=r-3,i{a||this.once("block",l)})))}));if(a)return;this.once("block",l),s.push((()=>{this.removeListener("block",l)}))}if("number"==typeof r&&r>0){const e=setTimeout((()=>{u()||o(x4.makeError("timeout exceeded",P6.Yd.errors.TIMEOUT,{timeout:r}))}),r);e.unref&&e.unref(),s.push((()=>{clearTimeout(e)}))}}))}))}getBlockNumber(){return S4(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return S4(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield this.perform("getGasPrice",{});try{return C6.O$.from(e)}catch(XMe){return x4.throwError("bad result from backend",P6.Yd.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:XMe})}}))}getBalance(e,t){return S4(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,N6.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getBalance",r);try{return C6.O$.from(n)}catch(XMe){return x4.throwError("bad result from backend",P6.Yd.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:XMe})}}))}getTransactionCount(e,t){return S4(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,N6.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getTransactionCount",r);try{return C6.O$.from(n).toNumber()}catch(XMe){return x4.throwError("bad result from backend",P6.Yd.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:XMe})}}))}getCode(e,t){return S4(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield(0,N6.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(t)}),n=yield this.perform("getCode",r);try{return(0,I6.Dv)(n)}catch(XMe){return x4.throwError("bad result from backend",P6.Yd.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:XMe})}}))}getStorageAt(e,t,r){return S4(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield(0,N6.mE)({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then((e=>(0,I6.$P)(e)))}),i=yield this.perform("getStorageAt",n);try{return(0,I6.Dv)(i)}catch(XMe){return x4.throwError("bad result from backend",P6.Yd.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:i,error:XMe})}}))}_wrapTransaction(e,t,r){if(null!=t&&32!==(0,I6.E1)(t))throw new Error("invalid response - sendTransaction");const n=e;return null!=t&&e.hash!==t&&x4.throwError("Transaction hash mismatch from Provider.sendTransaction.",P6.Yd.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),n.wait=(t,n)=>S4(this,void 0,void 0,(function*(){let i;null==t&&(t=1),null==n&&(n=0),0!==t&&null!=r&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r});const o=yield this._waitForTransaction(e.hash,t,n,i);return null==o&&0===t?null:(this._emitted["t:"+e.hash]=o.blockNumber,0===o.status&&x4.throwError("transaction failed",P6.Yd.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:o}),o)})),n}sendTransaction(e){return S4(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield Promise.resolve(e).then((e=>(0,I6.Dv)(e))),r=this.formatter.transaction(e);null==r.confirmations&&(r.confirmations=0);const n=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const e=yield this.perform("sendTransaction",{signedTransaction:t});return this._wrapTransaction(r,e,n)}catch(XMe){throw XMe.transaction=r,XMe.transactionHash=r.hash,XMe}}))}_getTransactionRequest(e){return S4(this,void 0,void 0,(function*(){const t=yield e,r={};return["from","to"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?this._getAddress(e):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?C6.O$.from(e):null)))})),["type"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>null!=e?e:null)))})),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach((e=>{null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((e=>e?(0,I6.Dv)(e):null)))})),this.formatter.transactionRequest(yield(0,N6.mE)(r))}))}_getFilter(e){return S4(this,void 0,void 0,(function*(){e=yield e;const t={};return null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach((r=>{null!=e[r]&&(t[r]=e[r])})),["fromBlock","toBlock"].forEach((r=>{null!=e[r]&&(t[r]=this._getBlockTag(e[r]))})),this.formatter.filter(yield(0,N6.mE)(t))}))}_call(e,t,r){return S4(this,void 0,void 0,(function*(){r>=10&&x4.throwError("CCIP read exceeded maximum redirections",P6.Yd.errors.SERVER_ERROR,{redirects:r,transaction:e});const n=e.to,i=yield this.perform("call",{transaction:e,blockTag:t});if(r>=0&&"latest"===t&&null!=n&&"0x556f1830"===i.substring(0,10)&&(0,I6.E1)(i)%32==4)try{const o=(0,I6.p3)(i,4),s=(0,I6.p3)(o,0,32);C6.O$.from(s).eq(n)||x4.throwError("CCIP Read sender did not match",P6.Yd.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:i});const a=[],u=C6.O$.from((0,I6.p3)(o,32,64)).toNumber(),l=C6.O$.from((0,I6.p3)(o,u,u+32)).toNumber(),c=(0,I6.p3)(o,u+32);for(let t=0;tS4(this,void 0,void 0,(function*(){const e=yield this.perform("getBlock",n);if(null==e)return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?null:void 0;if(t){let t=null;for(let n=0;nthis._wrapTransaction(e))),r}return this.formatter.block(e)}))),{oncePoll:this})}))}getBlock(e){return this._getBlock(e,!1)}getBlockWithTransactions(e){return this._getBlock(e,!0)}getTransaction(e){return S4(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return(0,p4.$l)((()=>S4(this,void 0,void 0,(function*(){const r=yield this.perform("getTransaction",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;const n=this.formatter.transactionResponse(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return this._wrapTransaction(n)}))),{oncePoll:this})}))}getTransactionReceipt(e){return S4(this,void 0,void 0,(function*(){yield this.getNetwork(),e=yield e;const t={transactionHash:this.formatter.hash(e,!0)};return(0,p4.$l)((()=>S4(this,void 0,void 0,(function*(){const r=yield this.perform("getTransactionReceipt",t);if(null==r)return null==this._emitted["t:"+e]?null:void 0;if(null==r.blockHash)return;const n=this.formatter.receipt(r);if(null==n.blockNumber)n.confirmations=0;else if(null==n.confirmations){let e=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-n.blockNumber+1;e<=0&&(e=1),n.confirmations=e}return n}))),{oncePoll:this})}))}getLogs(e){return S4(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield(0,N6.mE)({filter:this._getFilter(e)}),r=yield this.perform("getLogs",t);return r.forEach((e=>{null==e.removed&&(e.removed=!1)})),w4.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)}))}getEtherPrice(){return S4(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(e){return S4(this,void 0,void 0,(function*(){if("number"==typeof(e=yield e)&&e<0){e%1&&x4.throwArgumentError("invalid BlockTag","blockTag",e);let t=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return t+=e,t<0&&(t=0),this.formatter.blockTag(t)}return this.formatter.blockTag(e)}))}getResolver(e){return S4(this,void 0,void 0,(function*(){let t=e;for(;;){if(""===t||"."===t)return null;if("eth"!==e&&"eth"===t)return null;const r=yield this._getResolver(t,"getResolver");if(null!=r){const n=new K4(this,r,e);return t===e||(yield n.supportsWildcard())?n:null}t=t.split(".").slice(1).join(".")}}))}_getResolver(e,t){return S4(this,void 0,void 0,(function*(){null==t&&(t="ENS");const r=yield this.getNetwork();r.ensAddress||x4.throwError("network does not support ENS",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name});try{const t=yield this.call({to:r.ensAddress,data:"0x0178b8bf"+(0,J6.VM)(e).substring(2)});return this.formatter.callAddress(t)}catch(XMe){}return null}))}resolveName(e){return S4(this,void 0,void 0,(function*(){e=yield e;try{return Promise.resolve(this.formatter.address(e))}catch(XMe){if((0,I6.A7)(e))throw XMe}"string"!=typeof e&&x4.throwArgumentError("invalid ENS name","name",e);const t=yield this.getResolver(e);return t?yield t.getAddress():null}))}lookupAddress(e){return S4(this,void 0,void 0,(function*(){e=yield e;const t=(e=this.formatter.address(e)).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(t,"lookupAddress");if(null==r)return null;const n=U4(yield this.call({to:r,data:"0x691f3431"+(0,J6.VM)(t).substring(2)}),0);return(yield this.resolveName(n))!=e?null:n}))}getAvatar(e){return S4(this,void 0,void 0,(function*(){let t=null;if((0,I6.A7)(e)){const r=this.formatter.address(e).substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(r,"getAvatar");if(!n)return null;t=new K4(this,n,r);try{const e=yield t.getAvatar();if(e)return e.url}catch(XMe){if(XMe.code!==P6.Yd.errors.CALL_EXCEPTION)throw XMe}try{const e=U4(yield this.call({to:n,data:"0x691f3431"+(0,J6.VM)(r).substring(2)}),0);t=yield this.getResolver(e)}catch(XMe){if(XMe.code!==P6.Yd.errors.CALL_EXCEPTION)throw XMe;return null}}else if(t=yield this.getResolver(e),!t)return null;const r=yield t.getAvatar();return null==r?null:r.url}))}perform(e,t){return x4.throwError(e+" not implemented",P6.Yd.errors.NOT_IMPLEMENTED,{operation:e})}_startEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_stopEvent(e){this.polling=this._events.filter((e=>e.pollable())).length>0}_addEventListener(e,t,r){const n=new P4(C4(e),t,r);return this._events.push(n),this._startEvent(n),this}on(e,t){return this._addEventListener(e,t,!1)}once(e,t){return this._addEventListener(e,t,!0)}emit(e,...t){let r=!1,n=[],i=C4(e);return this._events=this._events.filter((e=>e.tag!==i||(setTimeout((()=>{e.listener.apply(this,t)}),0),r=!0,!e.once||(n.push(e),!1)))),n.forEach((e=>{this._stopEvent(e)})),r}listenerCount(e){if(!e)return this._events.length;let t=C4(e);return this._events.filter((e=>e.tag===t)).length}listeners(e){if(null==e)return this._events.map((e=>e.listener));let t=C4(e);return this._events.filter((e=>e.tag===t)).map((e=>e.listener))}off(e,t){if(null==t)return this.removeAllListeners(e);const r=[];let n=!1,i=C4(e);return this._events=this._events.filter((e=>e.tag!==i||e.listener!=t||(!!n||(n=!0,r.push(e),!1)))),r.forEach((e=>{this._stopEvent(e)})),this}removeAllListeners(e){let t=[];if(null==e)t=this._events,this._events=[];else{const r=C4(e);this._events=this._events.filter((e=>e.tag!==r||(t.push(e),!1)))}return t.forEach((e=>{this._stopEvent(e)})),this}}var $4=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const Q4=new P6.Yd(y4),J4=["call","estimateGas"];function Z4(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){const r=(0,I6.A7)(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"==typeof e){for(const r in e){const n=Z4(e[r],t);if(n)return n}return null}if("string"==typeof e)try{return Z4(JSON.parse(e),t)}catch(XMe){}return null}function X4(e,t,r){const n=r.transaction||r.signedTransaction;if("call"===e){const e=Z4(t,!0);if(e)return e.data;Q4.throwError("missing revert data in call exception; Transaction reverted without a reason string",P6.Yd.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}if("estimateGas"===e){let r=Z4(t.body,!1);null==r&&(r=Z4(t,!1)),r&&Q4.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",P6.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{reason:r.message,method:e,transaction:n,error:t})}let i=t.message;throw t.code===P6.Yd.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&Q4.throwError("insufficient funds for intrinsic transaction cost",P6.Yd.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/nonce (is )?too low/i)&&Q4.throwError("nonce has already been used",P6.Yd.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&Q4.throwError("replacement fee too low",P6.Yd.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/only replay-protected/i)&&Q4.throwError("legacy pre-eip-155 transactions not supported",P6.Yd.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),J4.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&Q4.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",P6.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function e5(e){return new Promise((function(t){setTimeout(t,e)}))}function t5(e){if(e.error){const t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function r5(e){return e?e.toLowerCase():e}const n5={};class i5 extends k6.E{constructor(e,t,r){if(super(),e!==n5)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");(0,N6.zG)(this,"provider",t),null==r&&(r=0),"string"==typeof r?((0,N6.zG)(this,"_address",this.provider.formatter.address(r)),(0,N6.zG)(this,"_index",null)):"number"==typeof r?((0,N6.zG)(this,"_index",r),(0,N6.zG)(this,"_address",null)):Q4.throwArgumentError("invalid address or index","addressOrIndex",r)}connect(e){return Q4.throwError("cannot alter JSON-RPC Signer connection",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new o5(n5,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((e=>(e.length<=this._index&&Q4.throwError("unknown account #"+this._index,P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(e[this._index]))))}sendUncheckedTransaction(e){e=(0,N6.DC)(e);const t=this.getAddress().then((e=>(e&&(e=e.toLowerCase()),e)));if(null==e.gasLimit){const r=(0,N6.DC)(e);r.from=t,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((e=>$4(this,void 0,void 0,(function*(){if(null==e)return null;const t=yield this.provider.resolveName(e);return null==t&&Q4.throwArgumentError("provided ENS name resolves to null","tx.to",e),t}))))),(0,N6.mE)({tx:(0,N6.mE)(e),sender:t}).then((({tx:t,sender:r})=>{null!=t.from?t.from.toLowerCase()!==r&&Q4.throwArgumentError("from address mismatch","transaction",e):t.from=r;const n=this.provider.constructor.hexlifyTransaction(t,{from:!0});return this.provider.send("eth_sendTransaction",[n]).then((e=>e),(e=>("string"==typeof e.message&&e.message.match(/user denied/i)&&Q4.throwError("user rejected transaction",P6.Yd.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:t}),X4("sendTransaction",e,n))))}))}signTransaction(e){return Q4.throwError("signing transactions is unsupported",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(e){return $4(this,void 0,void 0,(function*(){const t=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),r=yield this.sendUncheckedTransaction(e);try{return yield(0,p4.$l)((()=>$4(this,void 0,void 0,(function*(){const e=yield this.provider.getTransaction(r);if(null!==e)return this.provider._wrapTransaction(e,r,t)}))),{oncePoll:this.provider})}catch(XMe){throw XMe.transactionHash=r,XMe}}))}signMessage(e){return $4(this,void 0,void 0,(function*(){const t="string"==typeof e?(0,f4.Y0)(e):e,r=yield this.getAddress();try{return yield this.provider.send("personal_sign",[(0,I6.Dv)(t),r.toLowerCase()])}catch(XMe){throw"string"==typeof XMe.message&&XMe.message.match(/user denied/i)&&Q4.throwError("user rejected signing",P6.Yd.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),XMe}}))}_legacySignMessage(e){return $4(this,void 0,void 0,(function*(){const t="string"==typeof e?(0,f4.Y0)(e):e,r=yield this.getAddress();try{return yield this.provider.send("eth_sign",[r.toLowerCase(),(0,I6.Dv)(t)])}catch(XMe){throw"string"==typeof XMe.message&&XMe.message.match(/user denied/i)&&Q4.throwError("user rejected signing",P6.Yd.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),XMe}}))}_signTypedData(e,t,r){return $4(this,void 0,void 0,(function*(){const n=yield J6.H1.resolveNames(e,t,r,(e=>this.provider.resolveName(e))),i=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(J6.H1.getPayload(n.domain,t,n.value))])}catch(XMe){throw"string"==typeof XMe.message&&XMe.message.match(/user denied/i)&&Q4.throwError("user rejected signing",P6.Yd.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:n.domain,types:t,value:n.value}}),XMe}}))}unlock(e){return $4(this,void 0,void 0,(function*(){const t=this.provider,r=yield this.getAddress();return t.send("personal_unlockAccount",[r.toLowerCase(),e,null])}))}}class o5 extends i5{sendTransaction(e){return this.sendUncheckedTransaction(e).then((e=>({hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:t=>this.provider.waitForTransaction(e,t)})))}}const s5={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class a5 extends V4{constructor(e,t){let r=t;null==r&&(r=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then((t=>{e(t)}),(e=>{t(e)}))}),0)}))),super(r),e||(e=(0,N6.tu)(this.constructor,"defaultUrl")()),"string"==typeof e?(0,N6.zG)(this,"connection",Object.freeze({url:e})):(0,N6.zG)(this,"connection",Object.freeze((0,N6.DC)(e))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((()=>{this._cache.detectNetwork=null}),0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return $4(this,void 0,void 0,(function*(){yield e5(0);let e=null;try{e=yield this.send("eth_chainId",[])}catch(XMe){try{e=yield this.send("net_version",[])}catch(XMe){}}if(null!=e){const t=(0,N6.tu)(this.constructor,"getNetwork");try{return t(C6.O$.from(e).toNumber())}catch(XMe){return Q4.throwError("could not detect network",P6.Yd.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:XMe})}}return Q4.throwError("could not detect network",P6.Yd.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(e){return new i5(n5,this,e)}getUncheckedSigner(e){return this.getSigner(e).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then((e=>e.map((e=>this.formatter.address(e)))))}send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,N6.p$)(r),provider:this});const n=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(n&&this._cache[e])return this._cache[e];const i=(0,p4.rd)(this.connection,JSON.stringify(r),t5).then((e=>(this.emit("debug",{action:"response",request:r,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",error:e,request:r,provider:this}),e}));return n&&(this._cache[e]=i,setTimeout((()=>{this._cache[e]=null}),0)),i}prepareRequest(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[r5(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[r5(t.address),t.blockTag]];case"getCode":return["eth_getCode",[r5(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[r5(t.address),(0,I6.$m)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[(0,N6.tu)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,N6.tu)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=r5(t.filter.address)),["eth_getLogs",[t.filter]]}return null}perform(e,t){return $4(this,void 0,void 0,(function*(){if("call"===e||"estimateGas"===e){const e=t.transaction;if(e&&null!=e.type&&C6.O$.from(e.type).isZero()&&null==e.maxFeePerGas&&null==e.maxPriorityFeePerGas){const r=yield this.getFeeData();null==r.maxFeePerGas&&null==r.maxPriorityFeePerGas&&((t=(0,N6.DC)(t)).transaction=(0,N6.DC)(e),delete t.transaction.type)}}const r=this.prepareRequest(e,t);null==r&&Q4.throwError(e+" not implemented",P6.Yd.errors.NOT_IMPLEMENTED,{operation:e});try{return yield this.send(r[0],r[1])}catch(XMe){return X4(e,XMe,t)}}))}_startEvent(e){"pending"===e.tag&&this._startPending(),super._startEvent(e)}_startPending(){if(null!=this._pendingFilter)return;const e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(r){return function n(){e.send("eth_getFilterChanges",[r]).then((function(r){if(e._pendingFilter!=t)return null;let n=Promise.resolve();return r.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),n.then((function(){return e5(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){n()}),0),null;e.send("eth_uninstallFilter",[r])})).catch((e=>{}))}(),r})).catch((e=>{}))}_stopEvent(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(e)}static hexlifyTransaction(e,t){const r=(0,N6.DC)(s5);if(t)for(const i in t)t[i]&&(r[i]=!0);(0,N6.uj)(e,r);const n={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null==e[t])return;const r=(0,I6.$P)(C6.O$.from(e[t]));"gasLimit"===t&&(t="gas"),n[t]=r})),["from","to","data"].forEach((function(t){null!=e[t]&&(n[t]=(0,I6.Dv)(e[t]))})),e.accessList&&(n.accessList=(0,R6.z7)(e.accessList)),n}}let u5=null;try{if(u5=WebSocket,null==u5)throw new Error("inject please")}catch(XMe){const e=new P6.Yd(y4);u5=function(){e.throwError("WebSockets not supported in this environment",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var l5=r(98399),c5=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const h5=new P6.Yd(y4);let d5=1;class f5 extends a5{constructor(e,t){"any"===t&&h5.throwError("WebSocketProvider does not support 'any' network yet",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),super("string"==typeof e?e:"_websocket",t),this._pollingInterval=-1,this._wsReady=!1,"string"==typeof e?(0,N6.zG)(this,"_websocket",new u5(this.connection.url)):(0,N6.zG)(this,"_websocket",e),(0,N6.zG)(this,"_requests",{}),(0,N6.zG)(this,"_subs",{}),(0,N6.zG)(this,"_subIds",{}),(0,N6.zG)(this,"_detectNetwork",super.detectNetwork()),this.websocket.onopen=()=>{this._wsReady=!0,Object.keys(this._requests).forEach((e=>{this.websocket.send(this._requests[e].payload)}))},this.websocket.onmessage=e=>{const t=e.data,r=JSON.parse(t);if(null!=r.id){const e=String(r.id),n=this._requests[e];if(delete this._requests[e],void 0!==r.result)n.callback(null,r.result),this.emit("debug",{action:"response",request:JSON.parse(n.payload),response:r.result,provider:this});else{let e=null;r.error?(e=new Error(r.error.message||"unknown error"),(0,N6.zG)(e,"code",r.error.code||null),(0,N6.zG)(e,"response",t)):e=new Error("unknown error"),n.callback(e,void 0),this.emit("debug",{action:"response",error:e,request:JSON.parse(n.payload),provider:this})}}else if("eth_subscription"===r.method){const e=this._subs[r.params.subscription];e&&e.processFunc(r.params.result)}else l5.warn("this should not happen")};const r=setInterval((()=>{this.emit("poll")}),1e3);r.unref&&r.unref()}get websocket(){return this._websocket}detectNetwork(){return this._detectNetwork}get pollingInterval(){return 0}resetEventsBlock(e){h5.throwError("cannot reset events block on WebSocketProvider",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}set pollingInterval(e){h5.throwError("cannot set polling interval on WebSocketProvider",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}poll(){return c5(this,void 0,void 0,(function*(){return null}))}set polling(e){e&&h5.throwError("cannot set polling on WebSocketProvider",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}send(e,t){const r=d5++;return new Promise(((n,i)=>{const o=JSON.stringify({method:e,params:t,id:r,jsonrpc:"2.0"});this.emit("debug",{action:"request",request:JSON.parse(o),provider:this}),this._requests[String(r)]={callback:function(e,t){return e?i(e):n(t)},payload:o},this._wsReady&&this.websocket.send(o)}))}static defaultUrl(){return"ws://localhost:8546"}_subscribe(e,t,r){return c5(this,void 0,void 0,(function*(){let n=this._subIds[e];null==n&&(n=Promise.all(t).then((e=>this.send("eth_subscribe",e))),this._subIds[e]=n);const i=yield n;this._subs[i]={tag:e,processFunc:r}}))}_startEvent(e){switch(e.type){case"block":this._subscribe("block",["newHeads"],(e=>{const t=C6.O$.from(e.number).toNumber();this._emitted.block=t,this.emit("block",t)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(e=>{this.emit("pending",e)}));break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],(t=>{null==t.removed&&(t.removed=!1),this.emit(e.filter,this.formatter.filterLog(t))}));break;case"tx":{const t=e=>{const t=e.hash;this.getTransactionReceipt(t).then((e=>{e&&this.emit(t,e)}))};t(e),this._subscribe("tx",["newHeads"],(e=>{this._events.filter((e=>"tx"===e.type)).forEach(t)}));break}case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:l5.log("unhandled:",e)}}_stopEvent(e){let t=e.tag;if("tx"===e.type){if(this._events.filter((e=>"tx"===e.type)).length)return;t="tx"}else if(this.listenerCount(e.event))return;const r=this._subIds[t];r&&(delete this._subIds[t],r.then((e=>{this._subs[e]&&(delete this._subs[e],this.send("eth_unsubscribe",[e]))})))}destroy(){return c5(this,void 0,void 0,(function*(){this.websocket.readyState===u5.CONNECTING&&(yield new Promise((e=>{this.websocket.onopen=function(){e(!0)},this.websocket.onerror=function(){e(!1)}}))),this.websocket.close(1e3)}))}}var p5=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const m5=new P6.Yd(y4);class g5 extends a5{detectNetwork(){const e=Object.create(null,{detectNetwork:{get:()=>super.detectNetwork}});return p5(this,void 0,void 0,(function*(){let t=this.network;return null==t&&(t=yield e.detectNetwork.call(this),t||m5.throwError("no network detected",P6.Yd.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,N6.zG)(this,"_network",t),this.emit("network",t,null))),t}))}}class y5 extends g5{constructor(e,t){m5.checkAbstract(new.target,y5),e=(0,N6.tu)(new.target,"getNetwork")(e),t=(0,N6.tu)(new.target,"getApiKey")(t);super((0,N6.tu)(new.target,"getUrl")(e,t),e),"string"==typeof t?(0,N6.zG)(this,"apiKey",t):null!=t&&Object.keys(t).forEach((e=>{(0,N6.zG)(this,e,t[e])}))}_startPending(){m5.warn("WARNING: API provider does not support pending filters")}isCommunityResource(){return!1}getSigner(e){return m5.throwError("API provider does not support signing",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}listAccounts(){return Promise.resolve([])}static getApiKey(e){return e}static getUrl(e,t){return m5.throwError("not implemented; sub-classes must override getUrl",P6.Yd.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}const v5=new P6.Yd(y4),b5="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class w5 extends f5{constructor(e,t){const r=new _5(e,t);super(r.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi."),r.network),(0,N6.zG)(this,"apiKey",r.apiKey)}isCommunityResource(){return this.apiKey===b5}}class _5 extends y5{static getWebSocketProvider(e,t){return new w5(e,t)}static getApiKey(e){return null==e?b5:(e&&"string"!=typeof e&&v5.throwArgumentError("invalid apiKey","apiKey",e),e)}static getUrl(e,t){let r=null;switch(e.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.g.alchemy.com/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":r="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":r="arb-goerli.g.alchemy.com/v2/";break;case"optimism":r="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":r="opt-goerli.g.alchemy.com/v2/";break;default:v5.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+t,throttleCallback:(e,r)=>(t===b5&&M4(),Promise.resolve(!0))}}isCommunityResource(){return this.apiKey===b5}}const E5=new P6.Yd(y4),A5="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function M5(e){switch(e){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return E5.throwArgumentError("unsupported network","name",e)}class S5 extends y5{isCommunityResource(){return this.apiKey===A5}static getApiKey(e){return null==e?A5:e}static getUrl(e,t){null==t&&(t=A5);const r={allowGzip:!0,url:"https://"+M5(e.name)+t,throttleCallback:(e,r)=>(t.apiKey===A5&&M4(),Promise.resolve(!0))};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}}var x5=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const k5=new P6.Yd(y4);class T5 extends y5{static getApiKey(e){return null!=e&&k5.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}static getUrl(e,t){let r=null;if("homestead"===e.name)r="https://cloudflare-eth.com/";else k5.throwArgumentError("unsupported network","network",arguments[0]);return r}perform(e,t){const r=Object.create(null,{perform:{get:()=>super.perform}});return x5(this,void 0,void 0,(function*(){if("getBlockNumber"===e){return(yield r.perform.call(this,"getBlock",{blockTag:"latest"})).number}return r.perform.call(this,e,t)}))}}var C5=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const I5=new P6.Yd(y4);function N5(e){const t={};for(let r in e){if(null==e[r])continue;let n=e[r];"type"===r&&0===n||(n={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r]?(0,I6.$P)((0,I6.Dv)(n)):"accessList"===r?"["+(0,R6.z7)(n).map((e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`)).join(",")+"]":(0,I6.Dv)(n),t[r]=n)}return t}function R5(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"string"!=typeof e.message||!e.message.match(/^OK/)){const t=new Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function P5(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){const t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){const t=new Error("invalid response");throw t.result=JSON.stringify(e),t}if(e.error){const t=new Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function D5(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function L5(e,t,r){if("call"===e&&t.code===P6.Yd.errors.SERVER_ERROR){const e=t.error;if(e&&(e.message.match(/reverted/i)||e.message.match(/VM execution error/i))){let r=e.data;if(r&&(r="0x"+r.replace(/^.*0x/i,"")),(0,I6.A7)(r))return r;I5.throwError("missing revert data in call exception",P6.Yd.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}let n=t.message;throw t.code===P6.Yd.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?n=t.error.message:"string"==typeof t.body?n=t.body:"string"==typeof t.responseText&&(n=t.responseText)),n=(n||"").toLowerCase(),n.match(/insufficient funds/)&&I5.throwError("insufficient funds for intrinsic transaction cost",P6.Yd.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),n.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&I5.throwError("nonce has already been used",P6.Yd.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),n.match(/another transaction with same nonce/)&&I5.throwError("replacement fee too low",P6.Yd.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),n.match(/execution failed due to an exception|execution reverted/)&&I5.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",P6.Yd.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}class O5 extends V4{constructor(e,t){super(e),(0,N6.zG)(this,"baseUrl",this.getBaseUrl()),(0,N6.zG)(this,"apiKey",t||null)}getBaseUrl(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return I5.throwArgumentError("unsupported network","network",this.network.name)}getUrl(e,t){const r=Object.keys(t).reduce(((e,r)=>{const n=t[r];return null!=n&&(e+=`&${r}=${n}`),e}),""),n=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.baseUrl}/api?module=${e}${r}${n}`}getPostUrl(){return`${this.baseUrl}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}fetch(e,t,r){return C5(this,void 0,void 0,(function*(){const n=r?this.getPostUrl():this.getUrl(e,t),i=r?this.getPostData(e,t):null,o="proxy"===e?P5:R5;this.emit("debug",{action:"request",request:n,provider:this});const s={url:n,throttleSlotInterval:1e3,throttleCallback:(e,t)=>(this.isCommunityResource()&&M4(),Promise.resolve(!0))};let a=null;i&&(s.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},a=Object.keys(i).map((e=>`${e}=${i[e]}`)).join("&"));const u=yield(0,p4.rd)(s,a,o||P5);return this.emit("debug",{action:"response",request:n,response:(0,N6.p$)(u),provider:this}),u}))}detectNetwork(){return C5(this,void 0,void 0,(function*(){return this.network}))}perform(e,t){const r=Object.create(null,{perform:{get:()=>super.perform}});return C5(this,void 0,void 0,(function*(){switch(e){case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getBalance":return this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag});case"getStorageAt":return this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag});case"sendTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((e=>L5("sendTransaction",e,t.signedTransaction)));case"getBlock":if(t.blockTag)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"});throw new Error("getBlock by blockHash not implemented");case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash});case"call":{if("latest"!==t.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const e=N5(t.transaction);e.module="proxy",e.action="eth_call";try{return yield this.fetch("proxy",e,!0)}catch(XMe){return L5("call",XMe,t.transaction)}}case"estimateGas":{const e=N5(t.transaction);e.module="proxy",e.action="eth_estimateGas";try{return yield this.fetch("proxy",e,!0)}catch(XMe){return L5("estimateGas",XMe,t.transaction)}}case"getLogs":{const e={action:"getLogs"};if(t.filter.fromBlock&&(e.fromBlock=D5(t.filter.fromBlock)),t.filter.toBlock&&(e.toBlock=D5(t.filter.toBlock)),t.filter.address&&(e.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&I5.throwError("unsupported topic count",P6.Yd.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length)){const r=t.filter.topics[0];"string"==typeof r&&66===r.length||I5.throwError("unsupported topic format",P6.Yd.errors.UNSUPPORTED_OPERATION,{topic0:r}),e.topic0=r}const r=yield this.fetch("logs",e);let n={};for(let t=0;t{["contractAddress","to"].forEach((function(t){""==e[t]&&delete e[t]})),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);const t=this.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t}))}))}isCommunityResource(){return null==this.apiKey}}var j5=function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))};const B5=new P6.Yd(y4);function U5(){return(new Date).getTime()}function F5(e){let t=null;for(let r=0;rt?null:(n+i)/2}function H5(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if(C6.O$.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((e=>H5(e))));if("object"==typeof e){const t=Object.keys(e);return t.sort(),"{"+t.map((t=>{let r=e[t];return r="function"==typeof r?"[function]":H5(r),JSON.stringify(t)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}let G5=1;function Y5(e){let t=null,r=null,n=new Promise((n=>{t=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return n},wait:e=>(n=n.then(e),n)}}const K5=[P6.Yd.errors.CALL_EXCEPTION,P6.Yd.errors.INSUFFICIENT_FUNDS,P6.Yd.errors.NONCE_EXPIRED,P6.Yd.errors.REPLACEMENT_UNDERPRICED,P6.Yd.errors.UNPREDICTABLE_GAS_LIMIT],q5=["address","args","errorArgs","errorSignature","method","transaction"];function W5(e,t){const r={weight:e.weight};return Object.defineProperty(r,"provider",{get:()=>e.provider}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function V5(e,t,r){let n=H5;switch(t){case"getBlockNumber":return function(t){const r=t.map((e=>e.result));let n=z5(t.map((e=>e.result)),2);if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=e._highestBlockNumber&&(e._highestBlockNumber=n),e._highestBlockNumber};case"getGasPrice":return function(e){const t=e.map((e=>e.result));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return z5(e.map((e=>e.result)))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(e){return null==e?null:((e=(0,N6.DC)(e)).confirmations=-1,H5(e))};break;case"getBlock":n=r.includeTransactions?function(e){return null==e?null:((e=(0,N6.DC)(e)).transactions=e.transactions.map((e=>((e=(0,N6.DC)(e)).confirmations=-1,e))),H5(e))}:function(e){return null==e?null:H5(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(r){const n={};r.forEach((t=>{const r=e(t.result);n[r]||(n[r]={count:0,result:t.result}),n[r].count++}));const i=Object.keys(n);for(let e=0;e=t)return r.result}}}(n,e.quorum)}function $5(e,t){return j5(this,void 0,void 0,(function*(){const r=e.provider;return null!=r.blockNumber&&r.blockNumber>=t||-1===t?r:(0,p4.$l)((()=>new Promise(((n,i)=>{setTimeout((function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(void 0)}),0)}))),{oncePoll:r})}))}function Q5(e,t,r,n){return j5(this,void 0,void 0,(function*(){let i=e.provider;switch(r){case"getBlockNumber":case"getGasPrice":return i[r]();case"getEtherPrice":if(i.getEtherPrice)return i.getEtherPrice();break;case"getBalance":case"getTransactionCount":case"getCode":return n.blockTag&&(0,I6.A7)(n.blockTag)&&(i=yield $5(e,t)),i[r](n.address,n.blockTag||"latest");case"getStorageAt":return n.blockTag&&(0,I6.A7)(n.blockTag)&&(i=yield $5(e,t)),i.getStorageAt(n.address,n.position,n.blockTag||"latest");case"getBlock":return n.blockTag&&(0,I6.A7)(n.blockTag)&&(i=yield $5(e,t)),i[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash);case"call":case"estimateGas":return n.blockTag&&(0,I6.A7)(n.blockTag)&&(i=yield $5(e,t)),"call"===r&&n.blockTag?i[r](n.transaction,n.blockTag):i[r](n.transaction);case"getTransaction":case"getTransactionReceipt":return i[r](n.transactionHash);case"getLogs":{let r=n.filter;return(r.fromBlock&&(0,I6.A7)(r.fromBlock)||r.toBlock&&(0,I6.A7)(r.toBlock))&&(i=yield $5(e,t)),i.getLogs(r)}}return B5.throwError("unknown method error",P6.Yd.errors.UNKNOWN_ERROR,{method:r,params:n})}))}class J5 extends V4{constructor(e,t){0===e.length&&B5.throwArgumentError("missing providers","providers",e);const r=e.map(((e,t)=>{if(x6.zt.isProvider(e)){const t=E4(e)?2e3:750,r=1;return Object.freeze({provider:e,weight:1,stallTimeout:t,priority:r})}const r=(0,N6.DC)(e);null==r.priority&&(r.priority=1),null==r.stallTimeout&&(r.stallTimeout=E4(e)?2e3:750),null==r.weight&&(r.weight=1);const n=r.weight;return(n%1||n>512||n<1)&&B5.throwArgumentError("invalid weight; must be integer in [1, 512]",`providers[${t}].weight`,n),Object.freeze(r)})),n=r.reduce(((e,t)=>e+t.weight),0);null==t?t=n/2:t>n&&B5.throwArgumentError("quorum will always fail; larger than total weight","quorum",t);let i=F5(r.map((e=>e.provider.network)));null==i&&(i=new Promise(((e,t)=>{setTimeout((()=>{this.detectNetwork().then(e,t)}),0)}))),super(i),(0,N6.zG)(this,"providerConfigs",Object.freeze(r)),(0,N6.zG)(this,"quorum",t),this._highestBlockNumber=-1}detectNetwork(){return j5(this,void 0,void 0,(function*(){return F5(yield Promise.all(this.providerConfigs.map((e=>e.provider.getNetwork()))))}))}perform(e,t){return j5(this,void 0,void 0,(function*(){if("sendTransaction"===e){const e=yield Promise.all(this.providerConfigs.map((e=>e.provider.sendTransaction(t.signedTransaction).then((e=>e.hash),(e=>e)))));for(let t=0;te.priority-t.priority));const i=this._highestBlockNumber;let o=0,s=!0;for(;;){const a=U5();let u=n.filter((e=>e.runner&&a-e.starte+t.weight),0);for(;u{r.staller=null})),r.runner=Q5(r,i,e,t).then((n=>{r.done=!0,r.result=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:s,backend:W5(r,U5()),request:{method:e,params:(0,N6.p$)(t)},provider:this})}),(n=>{r.done=!0,r.error=n,this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:s,backend:W5(r,U5()),request:{method:e,params:(0,N6.p$)(t)},provider:this})})),this.listenerCount("debug")&&this.emit("debug",{action:"request",rid:s,backend:W5(r,null),request:{method:e,params:(0,N6.p$)(t)},provider:this}),u+=r.weight}const l=[];n.forEach((e=>{!e.done&&e.runner&&(l.push(e.runner),e.staller&&l.push(e.staller.getPromise()))})),l.length&&(yield Promise.race(l));const c=n.filter((e=>e.done&&null==e.error));if(c.length>=this.quorum){const e=r(c);if(void 0!==e)return n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),e;s||(yield Y5(100).getPromise()),s=!1}const h=n.reduce(((e,t)=>{if(!t.done||null==t.error)return e;const r=t.error.code;return K5.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e}),{});if(Object.keys(h).forEach((e=>{const t=h[e];if(t.weight{e.staller&&e.staller.cancel(),e.cancelled=!0}));const r=t.error,i={};q5.forEach((e=>{null!=r[e]&&(i[e]=r[e])})),B5.throwError(r.reason||r.message,e,i)})),0===n.filter((e=>!e.done)).length)break}return n.forEach((e=>{e.staller&&e.staller.cancel(),e.cancelled=!0})),B5.throwError("failed to meet quorum",P6.Yd.errors.SERVER_ERROR,{method:e,params:t,results:n.map((e=>W5(e))),provider:this})}))}}const Z5=null,X5=new P6.Yd(y4),e8="84842078b09946638c03157f83405213";class t8 extends f5{constructor(e,t){const r=new r8(e,t),n=r.connection;n.password&&X5.throwError("INFURA WebSocket project secrets unsupported",P6.Yd.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});super(n.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),e),(0,N6.zG)(this,"apiKey",r.projectId),(0,N6.zG)(this,"projectId",r.projectId),(0,N6.zG)(this,"projectSecret",r.projectSecret)}isCommunityResource(){return this.projectId===e8}}class r8 extends y5{static getWebSocketProvider(e,t){return new t8(e,t)}static getApiKey(e){const t={apiKey:e8,projectId:e8,projectSecret:null};return null==e||("string"==typeof e?t.projectId=e:null!=e.projectSecret?(X5.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),X5.assertArgument("string"==typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"goerli":r="goerli.infura.io";break;case"sepolia":r="sepolia.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;case"optimism":r="optimism-mainnet.infura.io";break;case"optimism-goerli":r="optimism-goerli.infura.io";break;case"arbitrum":r="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":r="arbitrum-goerli.infura.io";break;default:X5.throwError("unsupported network",P6.Yd.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const n={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:(e,r)=>(t.projectId===e8&&M4(),Promise.resolve(!0))};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}isCommunityResource(){return this.projectId===e8}}class n8 extends a5{send(e,t){const r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const n={request:r,resolve:null,reject:null},i=new Promise(((e,t)=>{n.resolve=e,n.reject=t}));return this._pendingBatch.push(n),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const e=this._pendingBatch;this._pendingBatch=null,this._pendingBatchAggregator=null;const t=e.map((e=>e.request));return this.emit("debug",{action:"requestBatch",request:(0,N6.p$)(t),provider:this}),(0,p4.rd)(this.connection,JSON.stringify(t)).then((r=>{this.emit("debug",{action:"response",request:t,response:r,provider:this}),e.forEach(((e,t)=>{const n=r[t];if(n.error){const t=new Error(n.error.message);t.code=n.error.code,t.data=n.error.data,e.reject(t)}else e.resolve(n.result)}))}),(r=>{this.emit("debug",{action:"response",error:r,request:t,provider:this}),e.forEach((e=>{e.reject(r)}))}))}),10)),i}}const i8=new P6.Yd(y4);class o8 extends y5{static getApiKey(e){return e&&"string"!=typeof e&&i8.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}static getUrl(e,t){i8.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");let r=null;switch(e.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:i8.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t}}const s8=new P6.Yd(y4),a8="62e1ad51b37b8e00394bda3b";class u8 extends y5{static getApiKey(e){const t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId=a8:"string"==typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:s8.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}static getUrl(e,t){let r=null;switch(e?e.name:"unknown"){case"goerli":r="eth-goerli.gateway.pokt.network";break;case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"kovan":r="poa-kovan.gateway.pokt.network";break;case"matic":r="poly-mainnet.gateway.pokt.network";break;case"maticmum":r="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;default:s8.throwError("unsupported network",P6.Yd.errors.INVALID_ARGUMENT,{argument:"network",value:e})}const n={headers:{},url:`https://${r}/v1/lb/${t.applicationId}`};return null!=t.applicationSecretKey&&(n.user="",n.password=t.applicationSecretKey),n}isCommunityResource(){return this.applicationId===a8}}const l8=new P6.Yd(y4);let c8=1;function h8(e,t){const r="Web3LegacyFetcher";return function(e,n){const i={method:e,params:n,id:c8++,jsonrpc:"2.0"};return new Promise(((e,n)=>{this.emit("debug",{action:"request",fetcher:r,request:(0,N6.p$)(i),provider:this}),t(i,((t,o)=>{if(t)return this.emit("debug",{action:"response",fetcher:r,error:t,request:i,provider:this}),n(t);if(this.emit("debug",{action:"response",fetcher:r,request:i,response:o,provider:this}),o.error){const e=new Error(o.error.message);return e.code=o.error.code,e.data=o.error.data,n(e)}e(o.result)}))}))}}class d8 extends a5{constructor(e,t){null==e&&l8.throwArgumentError("missing provider","provider",e);let r=null,n=null,i=null;"function"==typeof e?(r="unknown:",n=e):(r=e.host||e.path||"",!r&&e.isMetaMask&&(r="metamask"),i=e,e.request?(""===r&&(r="eip-1193:"),n=function(e){return function(t,r){null==r&&(r=[]);const n={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,N6.p$)(n),provider:this}),e.request(n).then((e=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,response:e,provider:this}),e)),(e=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:n,error:e,provider:this}),e}))}}(e)):e.sendAsync?n=h8(0,e.sendAsync.bind(e)):e.send?n=h8(0,e.send.bind(e)):l8.throwArgumentError("unsupported provider","provider",e),r||(r="unknown:")),super(r,t),(0,N6.zG)(this,"jsonRpcFetchFunc",n),(0,N6.zG)(this,"provider",i)}send(e,t){return this.jsonRpcFetchFunc(e,t)}}const f8=new P6.Yd(y4);function p8(e,t){if(null==e&&(e="homestead"),"string"==typeof e){const t=e.match(/^(ws|http)s?:/i);if(t)switch(t[1].toLowerCase()){case"http":case"https":return new a5(e);case"ws":case"wss":return new f5(e);default:f8.throwArgumentError("unsupported URL scheme","network",e)}}const r=(0,l4.H)(e);return r&&r._defaultProvider||f8.throwError("unsupported getDefaultProvider network",P6.Yd.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),r._defaultProvider({FallbackProvider:J5,AlchemyProvider:_5,AnkrProvider:S5,CloudflareProvider:T5,EtherscanProvider:O5,InfuraProvider:r8,JsonRpcProvider:a5,NodesmithProvider:o8,PocketProvider:u8,Web3Provider:d8,IpcProvider:Z5},t)}var m8=r(55077);const g8=new RegExp("^bytes([0-9]+)$"),y8=new RegExp("^(u?int)([0-9]*)$"),v8=new RegExp("^(.*)\\[([0-9]*)\\]$"),b8=new P6.Yd("solidity/5.7.0");function w8(e,t,r){switch(e){case"address":return r?(0,I6.Bu)(t,32):(0,I6.lE)(t);case"string":return(0,f4.Y0)(t);case"bytes":return(0,I6.lE)(t);case"bool":return t=t?"0x01":"0x00",r?(0,I6.Bu)(t,32):(0,I6.lE)(t)}let n=e.match(y8);if(n){let i=parseInt(n[2]||"256");return(n[2]&&String(i)!==n[2]||i%8!=0||0===i||i>256)&&b8.throwArgumentError("invalid number type","type",e),r&&(i=256),t=C6.O$.from(t).toTwos(i),(0,I6.Bu)(t,i/8)}if(n=e.match(g8),n){const i=parseInt(n[1]);return(String(i)!==n[1]||0===i||i>32)&&b8.throwArgumentError("invalid bytes type","type",e),(0,I6.lE)(t).byteLength!==i&&b8.throwArgumentError(`invalid value for ${e}`,"value",t),r?(0,I6.lE)((t+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):t}if(n=e.match(v8),n&&Array.isArray(t)){const r=n[1];parseInt(n[2]||String(t.length))!=t.length&&b8.throwArgumentError(`invalid array length for ${e}`,"value",t);const i=[];return t.forEach((function(e){i.push(w8(r,e,!0))})),(0,I6.zo)(i)}return b8.throwArgumentError("invalid type","type",e)}function _8(e,t){e.length!=t.length&&b8.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);const r=[];return e.forEach((function(e,n){r.push(w8(e,t[n]))})),(0,I6.Dv)((0,I6.zo)(r))}function E8(e,t){return(0,X6.w)(_8(e,t))}function A8(e,t){return(0,d4.JQ)(_8(e,t))}var M8=r(68128);const S8=new P6.Yd("units/5.7.0"),x8=["wei","kwei","mwei","gwei","szabo","finney","ether"];function k8(e){const t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&S8.throwArgumentError("invalid value","value",e);let r=t[0],n="";for("-"===r.substring(0,1)&&(n="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");let i="";for(2===t.length&&(i="."+(t[1]||"0"));i.length>2&&"0"===i[i.length-1];)i=i.substring(0,i.length-1);const o=[];for(;r.length;){if(r.length<=3){o.unshift(r);break}{const e=r.length-3;o.unshift(r.substring(e)),r=r.substring(0,e)}}return n+o.join(",")+i}function T8(e,t){if("string"==typeof t){const e=x8.indexOf(t);-1!==e&&(t=3*e)}return(0,C6.S5)(e,null!=t?t:18)}function C8(e,t){if("string"!=typeof e&&S8.throwArgumentError("value must be a string","value",e),"string"==typeof t){const e=x8.indexOf(t);-1!==e&&(t=3*e)}return(0,C6.Ox)(e,null!=t?t:18)}function I8(e){return T8(e,18)}function N8(e){return C8(e,18)}const R8="ethers/5.7.2",P8=new P6.Yd(R8);try{const e=window;null==e._ethers&&(e._ethers=b)}catch(XMe){}const D8=e=>e?(e=>{try{const t=e.split(":");return(5===t.length||6===t.length)&&"nft"===t[0].toLowerCase()&&!isNaN(Number(t[4]))&&Number(t[4])>0&&!isNaN(Number(t[2]))&&Number(t[2])>0&&T6.UJ(t[3])&&"eip155"===t[1]}catch(dVe){return!1}})(e)||e.includes("eip155:")?e:"eip155:"+e:e,L8=e=>(e&&(e=e.replace("eip155:","")),e),O8=async e=>{return"getAddress"in e?await e.getAddress():null!=(t=e.account.address)?t:"";var t};var j8=r(98399);const B8=async({account:e,env:t})=>{const r=localStorage.getItem(e);return null===r?(async()=>{try{const r=await HL({account:e,env:t}),n=r.profile.picture?r.profile.picture:"";return U8({account:e,value:n}),n}catch(dVe){return j8.log(dVe.message),""}})():r},U8=({account:e,value:t})=>{localStorage.setItem(e,t)},F8=(e,t)=>{if(t)localStorage.removeItem(e);else{const t=(new Date).getTime();localStorage.setItem(e,JSON.stringify(t))}},z8=({isModalOpen:e,setIsModalOpen:t})=>{t(!e)},H8=e=>{if(navigator&&navigator.clipboard)navigator.clipboard.writeText(e);else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}},G8=({user:e,groupInformation:t})=>({msg:{messageContent:"",timestamp:0,messageType:"",signature:"",sigType:"",link:null,encType:"",encryptedSecret:"",fromDID:"",fromCAIP10:"",toDID:"",toCAIP10:""},wallets:t?null:e.wallets,did:t?null:e.did,threadhash:null,profilePicture:t?t.groupImage:null==e?void 0:e.profile.picture,name:null,about:t?null:e.about,intent:null,intentSentBy:null,intentTimestamp:new Date,publicKey:t?null:e.publicKey,combinedDID:"",cid:"",groupInformation:null!=t?t:void 0}),Y8=({chat:e,account:t})=>!!(t&&Object.keys(e||{}).length&&e.combinedDID.toLowerCase().includes(D8(t).toLowerCase()))&&(!e.intent||!e.intent.toLowerCase().includes(D8(t).toLowerCase())),K8=(e,t,r)=>{const n=r?[...t,...e.messages]:[...e.messages,...t],i=Object.values(n.reduce(((e,t)=>(t.timestamp&&!e[t.timestamp]&&(e[t.timestamp]=t),e)),{}));return i};var q8=r(88389),W8=r.n(q8);var V8=r(98399);const $8=async({searchText:e,fetchChatProfile:t,env:r})=>{let n,i=null;if(i=await Q8(e,r),i)return n=await t({profileId:i,env:r}),n||(n=(({caip10:e})=>({did:e,wallets:e,publicKey:"",profilePicture:Z3,encryptedPrivateKey:"",encryptionType:"",signature:"",sigType:"",encryptedPassword:null,about:null,name:null,numMsg:1,allowedNumMsg:100,nftOwner:null,linkedListHash:null,msgSent:0,maxMsgPersisted:0,profile:{name:null,desc:null,picture:Z3,profileVerificationProof:null,blockedUsersList:null},verificationProof:""}))({caip10:D8(i)})),n},Q8=async(e,t)=>{const r=(e=>{const t=Q3[e].includes(1)?1:5,r=Q3[e].includes(137)?137:80001;return W8().fromEthersProvider({uns:{locations:{Layer1:{network:"mainnet",provider:new r8(t,J3)},Layer2:{network:V3[r].network,provider:new r8(r,J3)}}}})})(t),n=new r8($3[t],J3);let i=null;if(e.includes(".")){try{i=await r.owner(e)}catch(dVe){V8.log(dVe)}if(!i)try{i=await n.resolveName(e)}catch(dVe){V8.log(dVe)}return i||null}return await T6.UJ(L8(e))?e:null};var J8=r(21468),Z8=r.n(J8);r(38981);const X8=(e,t,r=!1)=>(null==e?void 0:e.length)>t?`${e.substring(0,t)}...${r?e.substring(e.length-t):""}`:e,e9=e=>{const t=Math.floor(Math.log(e)/Math.log(1024));return`${(e/Math.pow(1024,t)).toFixed(1)} ${["B","KB","MB","GB","TB"][t]}`};r(98399);const t9=e=>Z8()(e).format("Do MMM [at] h:mm A");var r9=r(98399);const n9="nft",i9=e=>e&&e.split(":")[0]===n9,o9=(e,t)=>e&&i9(e)?Number(e.split(":")[2]):t===q3.PROD?1:5,s9=(e,t)=>!(!e||!t)&&(i9(t)?t.toUpperCase().includes(e.toUpperCase()):e.toUpperCase()===t.toUpperCase());var a9=r(98399);var u9=r(98399);const l9=({account:e,env:t=q3.PROD,socketType:r="chat",apiKey:n,pushUser:i,supportAddress:o,signer:s})=>{const[a,u]=(0,w.useState)(""),[l,c]=(0,w.useState)(!1),[h,d]=(0,w.useState)(null);return(0,w.useEffect)((()=>(h&&(async()=>{u9.warn("\n--\x3e addChatSocketEvents"),h.on(EH.STREAM.CONNECT,(e=>{u9.log("CONNECTED: ",e),c(!0)})),await h.connect(),h.on(EH.STREAM.DISCONNECT,(e=>{u9.log("DIS-CONNECTED: ",e),c(!1)})),u9.log("\t--\x3ewill attach eachMessage event now"),h.on(EH.STREAM.CHAT,(e=>{u((t=>Object.assign({},e)))}))})(),()=>{h&&(null==h||h.disconnect())})),[h]),(0,w.useEffect)((()=>{if(e){h||null==h||h.disconnect();(async()=>{const e=await i.initStream([EH.STREAM.CHAT],{});u9.warn("new connection object: ",e),d(e)})().catch((e=>u9.log("")))}}),[e,t,i,o,s,l]),{stream:h,isSDKSocketConnected:l,messagesSinceLastConnection:a}};r(87919),r(98399);const c9=()=>{const e=(0,w.useContext)(d6);if(!e)throw new Error("useSpaceData must be used within a ChatDataProvider");return e};var h9=r(98399);const d9=()=>{const[e,t]=(0,w.useState)(),[r,n]=(0,w.useState)(!1),{account:i,env:o,pgpPrivateKey:s}=c9(),a=(0,w.useCallback)((async({threadHash:r,limit:a=10})=>{n(!0);try{const e=await gU({threadhash:r,account:i||"0xeeE5A266D7cD954bE3Eb99062172E7071E664023",toDecrypt:!!s,pgpPrivateKey:String(s),limit:a,env:o});return e.reverse(),e}catch(e){return n(!1),t(e.message),void h9.log(e)}finally{n(!1)}}),[s,i,o]);return{historyMessages:a,error:e,loading:r}};var f9=r(98399);const p9=()=>{const{pushUser:e}=c9(),t=(0,w.useCallback)((async({profileId:t,env:r})=>{try{let r;return r=t?await e.info({overrideAccount:t}):await e.info(),r}catch(XMe){return void f9.log(XMe)}}),[]);return{fetchChatProfile:t}};var m9=r(98399);const g9=()=>{const e=(0,w.useCallback)((async({profileId:e,env:t})=>{try{return await HL({env:t,account:e})}catch(XMe){return void m9.log(XMe)}}),[]);return{fetchChatProfile:e}};var y9=r(98399);const v9=()=>{const{account:e,pgpPrivateKey:t,pushChatSocket:r,setPushChatSocket:n,setIsPushChatSocketConnected:i,isPushChatSocketConnected:o,connectedProfile:s,setConnectedProfile:a,env:u}=c9(),{fetchChatProfile:l}=g9(),[c,h]=(0,w.useState)({}),[d,f]=(0,w.useState)({}),[p,m]=(0,w.useState)({}),g=(0,w.useCallback)((()=>{y9.log("addSocketEvents"),null==r||r.on(Kf,(()=>{i(!0)})),null==r||r.on(qf,(e=>{i(!1)})),null==r||r.on(Vf,(async e=>{if(s&&t)if("Request"===e.messageCategory&&null===e.messageContent&&null===e.messageType)f(e);else{const r=await jO({messages:[e],connectedUser:s,pgpPrivateKey:t,env:u});r&&r.length&&h(r[0])}})),null==r||r.on($f,(e=>{m(e)}))}),[r,e,t,c,u,s]),y=(0,w.useCallback)((()=>{null==r||r.off(Kf),null==r||r.off(qf),null==r||r.off($f),null==r||r.off(Vf)}),[r]);return(0,w.useEffect)((()=>(r&&g(),()=>{r&&y()})),[r,t,s]),(0,w.useEffect)((()=>{if(e)if(r&&r.connected);else{(async()=>{const t=mm({user:e,env:u,socketType:m6,socketOptions:{autoConnect:!0,reconnectionAttempts:3}});y9.warn("new connection object: ",t),n(t)})().catch((e=>y9.error(e)))}}),[e,u,t]),{pushChatSocket:r,isPushChatSocketConnected:o,messagesSinceLastConnection:c,acceptedRequestMessage:d,groupInformationSinceLastConnection:p}};var b9=r(98399);const w9=()=>{const[e,t]=(0,w.useState)(),[r,n]=(0,w.useState)(!1),{account:i,env:o,pgpPrivateKey:s}=c9(),a=(0,w.useCallback)((async({chatId:r})=>{n(!0);try{return await NB({account:i||"0xeeE5A266D7cD954bE3Eb99062172E7071E664023",toDecrypt:!!s,pgpPrivateKey:String(s),recipient:r,env:o})}catch(e){return n(!1),t(e.message),void b9.log(e)}finally{n(!1)}}),[s,o,i]);return{fetchChat:a,error:e,loading:r}};var _9=r(98399);const E9=()=>{const[e,t]=(0,w.useState)(),[r,n]=(0,w.useState)(!1),{pgpPrivateKey:i,env:o,account:s}=c9(),a=(0,w.useCallback)((async r=>{const{chatId:a,message:u,messageType:l}=r||{};n(!0);try{const e=await iU({messageContent:u,messageType:l,receiverAddress:a,account:s||void 0,pgpPrivateKey:i||void 0,env:o});return n(!1),e||!1}catch(e){return n(!1),t(e.message),_9.log(e),e.message}}),[i,s,o]);return{sendMessage:a,error:e,loading:r}};var A9=r(98399);const M9=()=>{const[e,t]=(0,w.useState)(),[r,n]=(0,w.useState)(!1),{env:i}=c9(),o=(0,w.useCallback)((async({groupId:t})=>{let r;n(!0);try{r=await AO({chatId:t,env:i})}catch(e){return void A9.log(e)}return r}),[i]);return{getGroupByID:o,error:e,loading:r}};var S9=r(32332),x9=r(49531),k9=(r(2131),r(94202),r(99359),r(90059),r(75442)),T9=r(37020);r(89728),r(45905),r(74092),r(84416),r(35630),r(56560);let C9,I9=!1;const N9=w.createContext(void 0);function R9({children:e,web3Onboard:t}){return I9=!0,C9=void 0,w.createElement(N9.Provider,{value:t},e)}function P9(){const e=I9?w.useContext(N9):C9;if(!e)throw new Error("Must call the provided initialization method`init` method before using hooks.");return e}var D9=r(43468);const L9=e=>{const t=P9(),{select:r,get:n}=t.state,i=(0,w.useCallback)((t=>{const{unsubscribe:n}=e?r(e).subscribe(t):r().subscribe(t);return()=>n}),[e]),o=(0,w.useCallback)((()=>{const t=n();return e?t[e]:t}),[e]);return(0,D9.useSyncExternalStore)(i,o,(()=>o()))},O9=()=>{const[{wallet:e,connecting:t},r,n,i,o,s]=(()=>{const e=P9(),{connectWallet:t,disconnectWallet:r}=e,n=L9("wallets")[0]||null,[i,o]=(0,w.useState)(!1),s=(0,w.useCallback)((async e=>{o(!0);const r=await t(e);return o(!1),r}),[]);return[{wallet:n,connecting:i},s,(0,w.useCallback)((async({label:e})=>{o(!0);const t=await r({label:e});return o(!1),t}),[]),e.state.actions.updateBalances,e.state.actions.setWalletModules,e.state.actions.setPrimaryWallet]})(),[{chains:a,connectedChain:u,settingChain:l},c]=(e=>{const t=P9(),{setChain:r}=t,{wallets:n,chains:i}=L9(),o=(()=>{const t=e?n.find((({label:t})=>t===e)):n[0];return t&&t.chains?t.chains[0]:null})(),[s,a]=(0,w.useState)(!1),u=(0,w.useCallback)((async t=>{a(!0);const n=await r({...t,wallet:e});return a(!1),n}),[]);return[{chains:i,connectedChain:o,settingChain:s},u]})();return{wallet:e,connecting:t,connect:r,disconnect:n,updateBalances:i,setWalletModules:o,setPrimaryWallet:s,provider:e?new d8(e.provider,"any"):void 0,account:e&&e.accounts.length>0?T6.Kn(e.accounts[0].address):void 0,chainId:u?Number(u.id):void 0,isActive:()=>!!(e&&e.accounts.length>0),setChain:c,switchChain:async e=>{c({chainId:I6.$P(e)})},settingChain:l,chains:a}};var j9=r(98399);const B9=()=>{const[e,t]=(0,w.useState)(),[r,n]=(0,w.useState)(!1),{account:i,env:o,pgpPrivateKey:s}=c9(),a=(0,w.useCallback)((async({groupInfo:r,memberList:a,adminList:u})=>{n(!0);try{var l;return await CU({chatId:null==r?void 0:r.chatId,groupName:null==r?void 0:r.groupName,groupDescription:null!=(l=null==r?void 0:r.groupDescription)?l:"",groupImage:null==r?void 0:r.groupImage,members:a,admins:u,account:i,pgpPrivateKey:s,env:o})}catch(e){return n(!1),t(e.message),void j9.log(e)}finally{n(!1)}}),[s,o,i]);return{updateGroup:a,error:e,loading:r}};var U9=r(98399);const F9=()=>{const e=(0,w.useCallback)((async({signer:e,account:t,env:r})=>{try{return await d0.initialize(null!=e?e:void 0,{env:r,account:t,alpha:{feature:["SCALABILITY_V2"]}})}catch(XMe){return void U9.log(XMe)}}),[]);return{initializePushUser:e}};r(98399);var z9=r(98399);const H9=()=>{const e=(0,w.useCallback)((async({pushUser:e})=>{try{return await(null==e?void 0:e.encryption.info())}catch(XMe){return void z9.log(XMe)}}),[]);return{fetchEncryptionInfo:e}};r(98399);r(98399);r(98399);r(98399);r(98399);r(98399);r(98399);r(67632),r(98399);r(98399);r(98399);function G9(e){const[t,r]=(0,w.useState)(window.outerWidth);function n(){r(window.outerWidth)}return(0,w.useEffect)((()=>{function e(){r(window.outerWidth)}return window.addEventListener("resize",n),window.addEventListener("load",e),()=>{window.removeEventListener("resize",n),window.removeEventListener("load",e)}}),[e]),t<=e}const Y9=function(e){const t=e=>"undefined"!=typeof window&&window.matchMedia(e).matches,[r,n]=(0,w.useState)(t(e));function i(){n(t(e))}return(0,w.useEffect)((()=>{const t=window.matchMedia(e);return i(),t.addListener?t.addListener(i):t.addEventListener("change",i),()=>{t.removeListener?t.removeListener(i):t.removeEventListener("change",i)}}),[e]),r};r(98399);r(98399);const K9="ERC20",q9="ERC721",W9="INVITE",V9="CustomEndpoint",$9="ROLES",Q9={">":"more than",">=":"equal or more than","<":"less than","<=":"equal or less than","==":"equal to","!=":"not equal to"},J9={ERC20:"Token",ERC721:"NFT",INVITE:"Invite",CustomEndpoint:"URL",ROLES:"Guild ID"},Z9=[{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],X9=[{constant:!0,inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"}],e7=(e,t)=>((e,t)=>`https://${e}.infura.io/v3/${t}`)(e,t),t7=e=>{const t=J3;switch(e){case 1:default:return e7("mainnet",t);case 137:return e7("polygon-mainnet",t);case 10:return e7("optimism-mainnet",t);case 56:return"https://bsc-dataseed.binance.org/";case 11155111:return e7("sepolia",t);case 420:return e7("optimism-goerli",t);case 80001:return e7("polygon-mumbai",t);case 97:return"https://data-seed-prebsc-1-s1.binance.org:8545"}},r7=async(e,t)=>{try{const r=t7(t),n=new a5(r),i=new $6(e,X9,n),[o,s]=await Promise.all([i.symbol(),i.decimals()]);return[!1,{symbol:o,decimals:s}]}catch(r){return[!0,{symbol:"",decimals:0}]}},n7=async(e,t)=>{try{const r=t7(t),n=new a5(r),i=new $6(e,Z9,n);return[!1,await i.name()]}catch(r){return[!0,""]}},i7=e=>!("PUSH"!==e.type||e.category!==K9&&e.category!==q9||!e.data),o7={borderRadius:{modal:"10px",optInButton:"3px"},fontWeight:{channelNameText:400,notificationTitleText:400,notificationContentText:400,timestamp:600,optInButtonText:500},fontSize:{channelNameText:"15px",notificationTitleText:"22px",notificationContentText:"16px",timestamp:"10px",optInButtonText:"unset"},fontFamily:"Strawford, sans-serif"},s7=Object.assign({},o7,{color:{accentBackground:"#fff",contentHoverBackground:"#e8eaf680",channelNameText:"#333333",notificationTitleText:"#333333",notificationContentText:"#333333",timestamp:"#808080",optInButtonText:"#fff",optInButtonBackground:"rgb(226, 8, 128)",modalBorder:"#D9D9D9"},modalDivider:"1px solid #D9D9D9"}),a7=Object.assign({},o7,{color:{accentBackground:"#2F3137",channelNameText:"#C5CAE9",contentHoverBackground:"#404650",notificationTitleText:"#C5CAE9",notificationContentText:"#C5CAE9",timestamp:"#808080",optInButtonText:"#fff",optInButtonBackground:"rgb(226, 8, 128)",modalBorder:"#4A4F67"},modalDivider:"1px solid #4A4F67"});var u7=r(98399);const l7=({notificationTitle:e,notificationBody:t,cta:r,app:n,icon:i,image:o,url:s,isSpam:a,isSubscribedFn:u,subscribeFn:l,theme:c,chainName:h,customTheme:d,isSecret:f,decryptFn:p})=>{const{notificationBody:m,timeStamp:g}=function(e){const t={notificationBody:g0(e),timeStamp:"",originalBody:e},r=e.match(/\[timestamp:(.*?)\]/);if(r){t.timeStamp=r[1];const n=e.replace(/ *\[timestamp:[^)]*\] */g,"");t.notificationBody=g0(n),t.originalBody=n}return t}(t||""),y=((e,t)=>Object.assign({},"dark"===e?a7:s7,t))(c,d),{notifTitle:v,notifBody:b,notifCta:_,notifImage:E,setDecryptedValues:A,isSecretRevealed:M}=k3({notificationTitle:e,parsedBody:m,cta:r,image:o},f),S=m0.validURL(_),x=m0.validURL(s),[k,T]=w.useState(""),[C,I]=w.useState(!1),[N,R]=w.useState(!0),[P,D]=(()=>{const e=(0,w.useRef)(null),[t,r]=(0,w.useState)(0);return(0,w.useEffect)((()=>{const t=()=>{e.current&&r(e.current.offsetWidth)},n=setTimeout((()=>{t()}),0);return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t),clearTimeout(n)}}),[]),[e,t]})(),L=f||g;return w.useEffect((()=>{a&&u&&u().then((e=>{R(Boolean(e))}))}),[u,a]),N&&a?null:(0,Tf.jsxs)(v7,{timestamp:g,offsetWidth:D,ref:P,themeObject:y,children:[(0,Tf.jsxs)(b7,{themeObject:y,children:[(0,Tf.jsxs)(_7,{themeObject:y,children:[(0,Tf.jsx)(g7,{offsetWidth:D,theme:c,children:(0,Tf.jsx)(i3,{icon:i})}),(0,Tf.jsx)(w7,{onClick:e=>{e.stopPropagation(),x&&window.open(s,"_blank")},children:n})]}),h&&F3[h]?(0,Tf.jsx)(f7,{children:(0,Tf.jsx)(p7,{offsetWidth:D,children:F3[h].icon})}):null]}),(0,Tf.jsxs)(d7,{themeObject:y,offsetWidth:D,onClick:S?e=>{e.stopPropagation(),S&&window.open(_,"_blank")}:void 0,cta:S,children:[E&&(m0.isMediaSupportedVideo(E)?m0.isMediaYoutube(E)?(0,Tf.jsx)(m7,{offsetWidth:D,children:(0,Tf.jsx)("iframe",{id:"ytplayer",width:"640",allow:"fullscreen;",height:"360",src:m0.isMediaExternalEmbed(E),title:"Youtube"})}):(0,Tf.jsx)(m7,{offsetWidth:D,children:(0,Tf.jsxs)("video",{width:"360",height:"100%",controls:!0,children:[(0,Tf.jsx)("source",{src:E,type:"video/mp4"}),"Your browser does not support the video tag."]})}):(0,Tf.jsx)(m7,{theme:c,offsetWidth:D,style:{cursor:"pointer"},onClick:()=>T(E||""),children:(0,Tf.jsx)("img",{src:E,alt:""})})),(0,Tf.jsxs)(y7,{children:[(0,Tf.jsxs)(E7,{themeObject:y,cta:S,offsetWidth:D,children:[(0,Tf.jsx)(A7,{themeObject:y,children:v}),S?(0,Tf.jsx)("span",{style:{height:"20px",marginLeft:"7px"},children:(0,Tf.jsx)(z3,{})}):""]}),(0,Tf.jsx)(M7,{themeObject:y,children:(0,Tf.jsx)(S7,{themeObject:y,cta:S,children:(0,Tf.jsx)(b3,{text:b})})})]}),(0,Tf.jsx)(P7,{children:(0,Tf.jsxs)(D7,{children:[a&&(0,Tf.jsx)(A3,{onClick:async e=>{if(e.preventDefault(),e.stopPropagation(),l)try{I(!0),await l(),R(!0)}finally{I(!1)}},children:C?(0,Tf.jsx)(E3,{}):"opt-in"}),f?(0,Tf.jsx)(x3,{decryptFn:async()=>{if(p)try{const e=await p();e&&A(e)}catch(fVe){u7.error(fVe)}},isSecretRevealed:M}):null]})})]}),(0,Tf.jsxs)(x7,{hidden:!L,hasLeft:!1,children:[(0,Tf.jsx)(T7,{hidden:!0}),(0,Tf.jsxs)(C7,{hidden:!L,children:[f?(0,Tf.jsx)(N7,{children:(0,Tf.jsx)(R7,{})}):null,g?(0,Tf.jsx)(I7,{themeObject:y,children:r3(g)}):null]})]}),(0,Tf.jsx)(s3,{imageOverlay:k,setImageOverlay:T})]})};l7.propTypes={notificationBody:f0.string,notificationTitle:f0.string,cta:f0.string,image:f0.string,app:f0.string,url:f0.string,isSpam:f0.bool,subscribeFn:f0.func,isSubscribedFn:f0.func,theme:f0.string,customTheme:f0.object},l7.defaultProps={notificationTitle:"",notificationBody:"",cta:"",app:"",image:"",url:"",isSpam:!1,theme:"light"};const c7="50050px",h7="900px",d7=hf.div.withConfig({displayName:"notification__ContentSection",componentId:"sc-v9nuxx-0"})(["display:flex;padding:15px 16px;cursor:",";&:hover{background:",";}",";",";"],(e=>e.cta?"pointer":"default"),(e=>{var t,r;return e.cta?null==e||null==(t=e.themeObject)||null==(r=t.color)?void 0:r.contentHoverBackground:"none"}),(e=>e.offsetWidth>461&&uf(["@media (min-width:","){align-items:flex-start;flex-direction:row;gap:20px;justify-content:space-between;}@media (max-width:","){flex-direction:column;}"],h7,h7)),(e=>e.offsetWidth<=461&&uf(["flex-direction:column;"]))),f7=hf.div.withConfig({displayName:"notification__BlockchainContainer",componentId:"sc-v9nuxx-1"})(["display:flex;align-items:center;justify-content:center;font-weight:700;"]),p7=hf.div.withConfig({displayName:"notification__ChainIconSVG",componentId:"sc-v9nuxx-2"})(["width:28px;height:28px;svg,svg image,img{width:100%;height:100%;}@media (max-width:","){width:18px;height:18px;}"],h7),m7=hf.div.withConfig({displayName:"notification__MobileImage",componentId:"sc-v9nuxx-3"})(["overflow:hidden;img,iframe,video{max-width:100% !important;width:100%;height:100% !important;object-fit:fill;border-radius:10px;border:0;}",";",";"],(e=>e.offsetWidth>461&&uf(["@media (min-width:","){border:1px solid ",";border-radius:10px;min-width:220px;width:220px;height:200px;}@media (max-width:","){display:block;width:100%;max-height:200px;margin-bottom:12px;border:0;img,iframe,video{border:0;border-radius:0;}}"],h7,(e=>"light"===e.theme?"#ededed":"#444"),h7)),(e=>e.offsetWidth<=461&&uf(["display:block;width:100%;max-height:200px;margin-bottom:12px;border:0;img,iframe,video{border:0;border-radius:0;}"]))),g7=hf.span.withConfig({displayName:"notification__ImageContainer",componentId:"sc-v9nuxx-4"})(["background:",";display:inline-block;margin-right:10px;border-radius:5px;width:24px;height:24px;@media (max-width:","){width:24px;height:24px;}"],(e=>"light"===e.theme?"#ededed":"#444"),h7),y7=hf.div.withConfig({displayName:"notification__ChannelDetailsWrapper",componentId:"sc-v9nuxx-5"})(["display:flex;flex-direction:column;flex-grow:4;"]),v7=hf.div.withConfig({displayName:"notification__Container",componentId:"sc-v9nuxx-6"})(["position:relative;overflow:hidden;font-family:",";flex:1;display:flex;flex-wrap:wrap;border:",";background:",";border-radius:",";margin:1.8rem 0px;justify-content:center;justify-content:space-between;@media (max-width:","){flex-direction:column;}"],(e=>{var t;return null==e||null==(t=e.themeObject)?void 0:t.fontFamily}),(e=>{var t,r;return`1px solid ${null==e||null==(t=e.themeObject)||null==(r=t.color)?void 0:r.modalBorder}`}),(e=>{var t,r;return null==e||null==(t=e.themeObject)||null==(r=t.color)?void 0:r.accentBackground}),(e=>{var t,r;return null==e||null==(t=e.themeObject)||null==(r=t.borderRadius)?void 0:r.modal}),c7),b7=hf.div.withConfig({displayName:"notification__MobileHeader",componentId:"sc-v9nuxx-7"})(["display:none;@media (max-width:","){display:flex;align-items:center;justify-content:space-between;padding:12px 10px;border-bottom:",";border-top-left-radius:10px;border-top-right-radius:10px;text-align:left;}"],c7,(e=>{var t;return null==e||null==(t=e.themeObject)?void 0:t.modalDivider})),w7=hf.div.withConfig({displayName:"notification__ChannelName",componentId:"sc-v9nuxx-8"})(["cursor:pointer;&:hover{text-decoration:underline;}"]),_7=hf.div.withConfig({displayName:"notification__HeaderButton",componentId:"sc-v9nuxx-9"})(["display:flex;justify-content:space-between;align-items:center;font-size:",";font-weight:",";color:",";"],(e=>{var t,r;return null==e||null==(t=e.themeObject)||null==(r=t.fontSize)?void 0:r.channelNameText}),(e=>{var t,r;return null==e||null==(t=e.themeObject)||null==(r=t.fontWeight)?void 0:r.channelNameText}),(e=>{var t,r;return null==e||null==(t=e.themeObject)||null==(r=t.color)?void 0:r.channelNameText})),E7=hf.div.withConfig({displayName:"notification__ChannelTitle",componentId:"sc-v9nuxx-10"})(["width:fit-content;display:flex;align-items:center;text-align:left;margin-bottom:8px;&:hover{text-decoration:",";}@media (max-width:","){color:",";}",";",";"],(e=>e.cta?"underline":"none"),c7,(e=>{var t,r;return null==e||null==(t=e.themeObject)||null==(r=t.color)?void 0:r.notificationTitleText}),(e=>e.offsetWidth>461&&uf(["@media (max-width:","){margin-bottom:6px;}"],h7)),(e=>e.offsetWidth<=461&&uf(["margin-bottom:6px;"]))),A7=hf.div.withConfig({displayName:"notification__ChannelTitleText",componentId:"sc-v9nuxx-11"})(["font-size:",";font-weight:",";"],(e=>{var t,r;return null==e||null==(t=e.themeObject)||null==(r=t.fontSize)?void 0:r.notificationTitleText}),(e=>{var t,r;return null==e||null==(t=e.themeObject)||null==(r=t.fontWeight)?void 0:r.notificationTitleText})),M7=hf.div.withConfig({displayName:"notification__ChannelDesc",componentId:"sc-v9nuxx-12"})(["line-height:20px;flex:1;display:flex;font-size:",";color:",";font-weight:",";flex-direction:column;"],(e=>{var t,r;return null==e||null==(t=e.themeObject)||null==(r=t.fontSize)?void 0:r.notificationContentText}),(e=>{var t,r;return null==e||null==(t=e.themeObject)||null==(r=t.color)?void 0:r.notificationContentText}),(e=>{var t,r;return null==e||null==(t=e.themeObject)||null==(r=t.fontWeight)?void 0:r.notificationContentText})),S7=hf.label.withConfig({displayName:"notification__ChannelDescLabel",componentId:"sc-v9nuxx-13"})(["cursor:",";color:",";flex:1;margin:0px;text-align:left;"],(e=>e.cta?"pointer":"default"),(e=>{var t,r;return null==e||null==(t=e.themeObject)||null==(r=t.color)?void 0:r.notificationContentText})),x7=hf.div.withConfig({displayName:"notification__ChannelMetaInfo",componentId:"sc-v9nuxx-14"})(["display:",";flex-direction:row;justify-content:",";"],(e=>e.hidden?"none":"flex"),(e=>e.hasLeft?"space-between":"end")),k7=hf.div.withConfig({displayName:"notification__ChannelMetaSection",componentId:"sc-v9nuxx-15"})(["display:",";align-items:center;"],(e=>e.hidden?"none":"flex")),T7=hf(k7).withConfig({displayName:"notification__ChannelMetaInfoLeft",componentId:"sc-v9nuxx-16"})(["justify-content:start;"]),C7=hf(k7).withConfig({displayName:"notification__ChannelMetaInfoRight",componentId:"sc-v9nuxx-17"})(["justify-content:end;"]),I7=hf.label.withConfig({displayName:"notification__TimestampLabel",componentId:"sc-v9nuxx-18"})(["color:",";border-radius:0;border-top-left-radius:6px;border-bottom-right-radius:10px;border-right:0;border-bottom:0;margin-bottom:-1px;margin-right:-1px;font-weight:",";font-size:",";padding:6px 10px 6px 0px;"],(e=>{var t,r;return null==e||null==(t=e.themeObject)||null==(r=t.color)?void 0:r.timestamp}),(e=>{var t,r;return null==e||null==(t=e.themeObject)||null==(r=t.fontWeight)?void 0:r.timestamp}),(e=>{var t,r;return null==e||null==(t=e.themeObject)||null==(r=t.fontSize)?void 0:r.timestamp})),N7=hf.div.withConfig({displayName:"notification__SecretIconContainer",componentId:"sc-v9nuxx-19"})(["margin:6px;"]),R7=hf.div.withConfig({displayName:"notification__SecretIcon",componentId:"sc-v9nuxx-20"})(["width:12px;height:12px;border-radius:50%;background:linear-gradient( 135deg,#e20880 12.5%,#674c9f 49.89%,#35c5f3 87.5% );"]),P7=hf.div.withConfig({displayName:"notification__ButtonGroupContainer",componentId:"sc-v9nuxx-21"})(["display:flex;align-items:center;justify-content:flex-end;"]),D7=hf.div.withConfig({displayName:"notification__ButtonGroup",componentId:"sc-v9nuxx-22"})(["display:flex;gap:20px;"]),L7=[{text:"Push Browser Extension",link:"https://chrome.google.com/webstore/detail/epns-protocol-alpha/lbdcbpaldalgiieffakjhiccoeebchmg",img:"https://backend-kovan.epns.io/assets/googlechromeicon.png"},{text:"Push App (iOS)",link:"https://apps.apple.com/app/ethereum-push-service-epns/id1528614910",img:"https://backend-kovan.epns.io/assets/apple.png"},{text:"Push App (Android)",link:"https://play.google.com/store/apps/details?id=io.epns.epns",img:"https://backend-kovan.epns.io/assets/playstorecolor@3x.png"},{text:"Visit our dApp",link:"https://app.push.org/",img:"https://backend-kovan.epns.io/assets/dappcolor@3x.png"}],O7=({onClose:e})=>{const t=w.useRef(null);return K3(t,e),(0,Tf.jsx)(Y7,{className:"overlay",children:(0,Tf.jsxs)(K7,{className:"modal",ref:t,children:[(0,Tf.jsx)(j7,{onClick:e}),(0,Tf.jsxs)(F7,{className:"modal__heading",children:[(0,Tf.jsxs)(U7,{children:[(0,Tf.jsx)(z7,{children:"Receive"}),(0,Tf.jsx)(H7,{children:"Notifications"})]}),(0,Tf.jsxs)(G7,{children:["Receive notifications from ",(0,Tf.jsx)("b",{children:"Push"})," via the following platforms."]})]}),(0,Tf.jsx)(F7,{className:"modal__content",children:L7.map((e=>(0,Tf.jsxs)(B7,{onClick:()=>(e=>{e&&window.open(e,"_blank")})(e.link),children:[(0,Tf.jsx)("img",{src:e.img,alt:""}),e.text]},e.link)))})]})})},j7=hf.a.withConfig({displayName:"subscribemodal__CloseButton",componentId:"sc-1gg76ik-0"})(['position:absolute;right:10px;top:37px;width:40px;height:40px;opacity:0.3;cursor:pointer;&:hover{opacity:1;}&:before,&:after{position:absolute;content:" ";height:33px;width:2px;background-color:#333;}&:before{transform:rotate(45deg);}&:after{transform:rotate(-45deg);}']),B7=hf.div.withConfig({displayName:"subscribemodal__ItemLink",componentId:"sc-1gg76ik-1"})(["width:260px;height:62px;padding-left:22px;background:#fafafa;border:0.2px solid rgba(0,0,0,0.16);box-sizing:border-box;border-radius:5px;font-size:0.75em;text-transform:uppercase;display:flex;align-items:center;gap:1.3125em;cursor:pointer;transition:300ms;&:hover{box-shadow:0px 4px 4px rgba(0,0,0,0.25);}"]),U7=hf.h2.withConfig({displayName:"subscribemodal__CustomHeaderTwo",componentId:"sc-1gg76ik-2"})(["margin-top:0;margin-bottom:1em;color:rgb(0,0,0);font-weight:600;font-size:1.5625em;letter-spacing:0.1em;text-transform:uppercase;padding:0px;font-family:inherit;text-align:inherit;@media (max-width:1000px){font-size:1.2625em;}"]),F7=hf.div.withConfig({displayName:"subscribemodal__Item",componentId:"sc-1gg76ik-3"})(["display:flex;flex-direction:column;text-transform:capitalise;&.modal__heading{margin-bottom:3.3125rem;}&.modal__content{display:grid;grid-template-columns:50% 50%;grid-row-gap:3.3125em;}"]),z7=hf.span.withConfig({displayName:"subscribemodal__CustomSpan",componentId:"sc-1gg76ik-4"})(["flex:initial;align-self:auto;color:rgb(0,0,0);background:transparent;font-weight:400;font-size:inherit;text-transform:inherit;margin:0px;padding:0px;letter-spacing:inherit;text-align:initial;position:initial;inset:auto;z-index:auto;margin-right:10px;@media (max-width:600px){display:block;margin-bottom:7px;}"]),H7=hf(z7).withConfig({displayName:"subscribemodal__StyledSpan",componentId:"sc-1gg76ik-5"})(["background:rgb(226,8,128);color:#fff;font-weight:600;padding:3px 8px;@media (max-width:600px){display:inline;}"]),G7=hf.h3.withConfig({displayName:"subscribemodal__H3",componentId:"sc-1gg76ik-6"})(['color:rgb(0 0 0 / 0.5);font-weight:300;font-size:1em;text-transform:uppercase;margin:-15px 0px 20px 0px;padding:0px;letter-spacing:0.1em;font-family:"Source Sans Pro",Helvetica,sans-serif;text-align:inherit;max-width:initial;@media (max-width:600px){margin-top:0;margin-bottom:-7px;}@media (max-width:1000px){width:90%;}']),Y7=hf.div.withConfig({displayName:"subscribemodal__Overlay",componentId:"sc-1gg76ik-7"})(["top:0;left:0;right:0;background:rgba(0,0,0,0.85);height:100%;width:100%;z-index:1000;position:fixed;display:flex;justify-content:center;align-items:center;overflow-y:scroll;"]),K7=hf.div.withConfig({displayName:"subscribemodal__Modal",componentId:"sc-1gg76ik-8"})(["padding:3.875em;background:white;text-align:left;border:1px solid rgba(0,0,0,0.16);box-sizing:border-box;box-shadow:0px 4px 4px rgba(0,0,0,0.25);border-radius:15px;position:relative;& > img{position:absolute;right:40px;top:40px;cursor:pointer;}@media (max-width:1000px){width:max(70vw,350px);padding:2em;.modal__content{display:flex !important;flex-direction:column !important;align-items:center !important;gap:10px !important;}}"]),q7={titleBg:"linear-gradient(87.17deg, #EA4EE4 0%, #D23CDF 0.01%, #8B5CF6 100%)",titleTextColor:"#fff",bgColorPrimary:"#fff",bgColorSecondary:"#EDE9FE",textColorPrimary:"#000",textColorSecondary:"#71717A",textGradient:"linear-gradient(45deg, #B6A0F5, #F46EF6, #FFDED3, #FFCFC5)",btnColorPrimary:"#8B5CF6",btnOutline:"#8B5CF6",borderColor:"#DCDCDF",borderRadius:"17px",containerBorderRadius:"12px",statusColorError:"#E93636",statusColorSuccess:"#30CC8B",iconColorPrimary:"#82828A"},W7=(0,w.createContext)(q7),V7=()=>{const e=w.useContext(W7);return(0,Tf.jsx)(rf,{theme:e,children:(0,Tf.jsxs)($7,{children:[(0,Tf.jsxs)(Q7,{children:[(0,Tf.jsx)(J7,{}),(0,Tf.jsxs)(Z7,{children:[(0,Tf.jsx)(eee,{}),(0,Tf.jsx)(tee,{})]})]}),(0,Tf.jsx)(ree,{}),(0,Tf.jsxs)(nee,{children:[(0,Tf.jsx)(iee,{}),(0,Tf.jsxs)(oee,{children:[(0,Tf.jsx)(see,{}),(0,Tf.jsx)(see,{}),(0,Tf.jsx)(see,{})]})]})]})})},$7=hf.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonContainer",componentId:"sc-qo65s5-0"})(["display:flex;flex-direction:column;gap:24px;padding:16px;background-color:",";border-radius:17px;border:1px solid ",";;position:relative;width:inherit;&:after{content:'';position:absolute;top:0;left:0;right:0;bottom:0;border-radius:17px;background-color:",";opacity:0.5;transition:opacity 0.8s ease-in-out infinite alternate;}&:hover:after{opacity:0.3;}"],(e=>e.theme.bgColorPrimary),(e=>e.theme.borderColor),(e=>e.theme.bgColorPrimary)),Q7=hf.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonContent",componentId:"sc-qo65s5-1"})(["display:flex;align-items:center;gap:10px;"]),J7=hf.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonProfilePic",componentId:"sc-qo65s5-2"})(["width:48px;height:48px;border-radius:50%;border:1px solid ",";background-color:",";transition:opacity 0.8s ease-in-out infinite alternate;&:hover{opacity:0.5;}"],(e=>e.theme.borderColor),(e=>e.theme.iconColorPrimary)),Z7=hf.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonProfileInfo",componentId:"sc-qo65s5-3"})(["display:flex;flex-direction:column;gap:5px;width:100%;"]),X7=hf.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonText",componentId:"sc-qo65s5-4"})(["width:100%;height:18px;background-color:",";border-radius:8px;border:1px solid ",";transition:opacity 0.8s ease-in-out infinite alternate;&:hover{opacity:0.5;}"],(e=>e.theme.iconColorPrimary),(e=>e.theme.borderColor)),eee=hf(X7).withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonName",componentId:"sc-qo65s5-5"})(["width:30%;"]),tee=hf(X7).withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonHandle",componentId:"sc-qo65s5-6"})(["width:40%;"]),ree=hf(X7).withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonSpaceInfo",componentId:"sc-qo65s5-7"})(["width:100%;height:30px;"]),nee=hf.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonLine",componentId:"sc-qo65s5-8"})(["display:flex;align-items:center;width:100%;"]),iee=hf(X7).withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonLeftSquare",componentId:"sc-qo65s5-9"})(["width:10%;height:32px;"]),oee=hf.div.withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonOverlap",componentId:"sc-qo65s5-10"})(["display:flex;align-items:flex-start;justify-content:right;width:100%;margin-top:8px;"]),see=hf(J7).withConfig({displayName:"SpaceBannerLoadingSkeleton__SkeletonOverlapProfilePic",componentId:"sc-qo65s5-11"})(["height:48px;border:1px solid ",";margin-left:-24px;transition:opacity 0.8s ease-in-out infinite alternate;&:nth-child(2){margin-left:-24px;}&:nth-child(3){margin-left:-24px;}"],(e=>e.theme.borderColor));function aee(e){const t=new Date(e),r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][t.getDay()],n=t.getDate(),i=["January","February","March","April","May","June","July","August","September","October","November","December"][t.getMonth()],o=t.getHours()>=12?"PM":"AM";return`${r}, ${n} ${i} at ${"PM"===o?t.getHours()%12:t.getHours()}:${t.getMinutes()} ${o}`}const uee=({participants:e,orientation:t,imageHeight:r})=>(0,Tf.jsxs)(lee,{children:[(0,Tf.jsx)(cee,{orientation:t,children:"pill"===t?e&&e.map(((e,t)=>t<2&&(0,Tf.jsx)(hee,{src:null==e?void 0:e.image,alt:"avatar",className:`index${t}`}))):e&&e.map(((e,t)=>t<3&&(0,Tf.jsx)(hee,{src:null==e?void 0:e.image,alt:"avatar",className:`index${t}`})))}),(0,Tf.jsx)(dee,{children:e&&e.length-3>0?"+"+(e.length-3):null})]}),lee=hf.div.withConfig({displayName:"ParticipantContainer__Participants",componentId:"sc-1fgkl2u-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:space-between;}"]),cee=hf.div.withConfig({displayName:"ParticipantContainer__ParticipantsIconContainer",componentId:"sc-1fgkl2u-1"})(["display:grid;grid-template-columns:repeat(5,1fr);width:",";padding:0 4px;}"],(e=>"pill"===e.orientation?"46.5px":"62px")),hee=hf.img.withConfig({displayName:"ParticipantContainer__ParticipantsIcon",componentId:"sc-1fgkl2u-2"})(["height:",";border-radius:50%;&.index0{position:relative;top:0;left:0;}&.index1{position:relative;top:0;left:-50%;}&.index2{position:relative;top:0;left:-100%;}}"],(e=>e.imageHeight?e.imageHeight:"31px")),dee=hf.div.withConfig({displayName:"ParticipantContainer__ParticipantsText",componentId:"sc-1fgkl2u-3"})(["display:flex;justify-content:center;align-items:center;width:auto;}"]),fee=({name:e="Host Name",handle:t="Host Handle",imageUrl:r="",statusTheme:n,imageHeight:i})=>{const o=w.useContext(W7);return(0,Tf.jsx)(rf,{theme:o,children:(0,Tf.jsxs)(pee,{theme:o,children:[(0,Tf.jsx)(mee,{theme:o,children:(0,Tf.jsx)(gee,{src:r,alt:"host pfp",imageHeight:i,theme:o})}),(0,Tf.jsxs)(yee,{theme:o,children:[(0,Tf.jsxs)(vee,{theme:o,children:[(0,Tf.jsx)(bee,{theme:o,children:e}),(0,Tf.jsx)(wee,{statusTheme:n,theme:o,children:"Host"})]}),t&&(0,Tf.jsxs)(_ee,{statusTheme:n,theme:o,children:["@",t]})]})]})})},pee=hf.div.withConfig({displayName:"HostPfpContainer__ProfileContainer",componentId:"sc-vviclm-0"})(["display:flex;flex-direction:row;justify-content:space-between;width:100%;align-items:center;"]),mee=hf.div.withConfig({displayName:"HostPfpContainer__PfpContainer",componentId:"sc-vviclm-1"})(["display:flex;"]),gee=hf.img.withConfig({displayName:"HostPfpContainer__Pfp",componentId:"sc-vviclm-2"})(["height:",";width:",";border-radius:50%;"],(e=>{var t;return null!=(t=e.imageHeight)?t:"32px"}),(e=>{var t;return null!=(t=e.imageHeight)?t:"32px"})),yee=hf.div.withConfig({displayName:"HostPfpContainer__HostContainer",componentId:"sc-vviclm-3"})(["display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding-left:8px;width:100%;overflow:hidden;text-overflow:ellipsis;"]),vee=hf.div.withConfig({displayName:"HostPfpContainer__HostName",componentId:"sc-vviclm-4"})(["display:flex;flex-direction:row;font-weight:600;font-size:15px;width:100%;"]),bee=hf.span.withConfig({displayName:"HostPfpContainer__Name",componentId:"sc-vviclm-5"})(["text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:color:",";"],(e=>"Live"===e.statusTheme?`${e.theme.titleTextColor}`:`${e.theme.textColorPrimary}`)),wee=hf.div.withConfig({displayName:"HostPfpContainer__Host",componentId:"sc-vviclm-6"})(["display:flex;flex-direction:row;align-items:center;padding:2px 8px;margin-left:8px;line-height:18px;width:max-content;height:19px;background:",";color:",";border-radius:6px;font-weight:500;font-size:10px;"],(e=>(e.statusTheme,`${e.theme.btnOutline}`)),(e=>"Live"===e.statusTheme?"inherit":`${e.theme.bgColorSecondary}`)),_ee=hf.div.withConfig({displayName:"HostPfpContainer__HostHandle",componentId:"sc-vviclm-7"})(["color:",";padding:0;font-weight:450;font-size:14px;line-height:130%;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;"],(e=>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N2Zz4K",Aee=({color:e})=>(0,Tf.jsxs)("svg",{width:"20",height:"21",viewBox:"0 0 20 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsx)("path",{d:"M16.25 3.625H3.75C3.40482 3.625 3.125 3.90482 3.125 4.25V16.75C3.125 17.0952 3.40482 17.375 3.75 17.375H16.25C16.5952 17.375 16.875 17.0952 16.875 16.75V4.25C16.875 3.90482 16.5952 3.625 16.25 3.625Z",stroke:null!=e?e:"#8B5CF6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M13.75 2.375V4.875",stroke:null!=e?e:"#8B5CF6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M6.25 2.375V4.875",stroke:null!=e?e:"#8B5CF6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M3.125 7.375H16.875",stroke:null!=e?e:"#8B5CF6","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),Mee=({spaceId:e,orientation:t,isInvite:r,onBannerClick:n,actionCallback:i})=>{const o=w.useContext(W7),s=(e=>{const{getSpaceInfo:t,setSpaceInfo:r,env:n}=(0,w.useContext)(c6),[i,o]=(0,w.useState)(t(e));return(0,w.useEffect)((()=>{e&&(t(e)?o(t(e)):(async()=>{try{const t=await nF({spaceId:e,env:n});r(e,t),o(t)}catch(XMe){y6.error(XMe)}})())}),[e]),i})(e),{spacesObjectRef:a,spaceObjectData:u,initSpaceObject:l,setSpaceWidgetId:c,isSpeaker:h,isListener:d,account:f,env:p}=g6(),m=function(e){return"ACTIVE"===e?"Live":"PENDING"===e?"Scheduled":"Ended"}(null==s?void 0:s.status);return s?(0,Tf.jsx)(rf,{theme:o,children:(0,Tf.jsxs)(See,{orientation:t,status:m,theme:o,onClick:()=>{n&&n((null==s?void 0:s.spaceId)||"")},clickable:Boolean(n),children:["maximized"===t&&(0,Tf.jsx)(fee,{name:null==s?void 0:s.members[0].wallet.slice(7),statusTheme:m,imageHeight:"48px",imageUrl:null==s?void 0:s.members[0].image,handle:null==s?void 0:s.members[0].wallet.slice(7)}),"maximized"===t?null:"Live"===m?(0,Tf.jsx)(Cee,{src:Eee,alt:"status"}):(0,Tf.jsx)(Aee,{color:o.btnOutline}),(0,Tf.jsx)(xee,{orientation:t,theme:o,status:m,children:"pill"===t?`${null==s?void 0:s.spaceName.slice(0,20)}...`:null==s?void 0:s.spaceName}),(0,Tf.jsxs)(kee,{orientation:t,theme:o,children:[(0,Tf.jsxs)(Tee,{orientation:t,children:["Live"===m?(0,Tf.jsx)(Cee,{src:Eee,alt:"status"}):(0,Tf.jsx)(Aee,{color:o.btnOutline}),(0,Tf.jsx)(Iee,{status:m,children:"Live"===m?"Live":"Scheduled"===m?`${aee(null==s?void 0:s.scheduleAt)}`:"Ended"})]}),(0,Tf.jsx)(uee,{participants:null==s?void 0:s.pendingMembers,orientation:t})]}),!0===r&&"Live"===m?(0,Tf.jsx)(Nee,{status:"Live",onClick:async()=>{await l(null==s?void 0:s.spaceId),i(),c(null==s?void 0:s.spaceId)},children:"Join this space"}):!0===r&&"Scheduled"===m?(0,Tf.jsx)(Tf.Fragment,{}):null]})}):(0,Tf.jsx)(V7,{})},See=hf.div.withConfig({displayName:"SpaceBanner__Container",componentId:"sc-qqsw1n-0"})(["display:flex;flex-direction:",";justify-content:",";align-items:",";padding:",";gap:",";width:",";height:",";background:",";border-radius:",";color:",";min-width:0;text-overflow:ellipsis;overflow:hidden;cursor:",";"],(e=>"maximized"===e.orientation?"column":"row"),(e=>(e.orientation,"space-between")),(e=>"maximized"===e.orientation?"flex-start":"center"),(e=>"maximized"===e.orientation?"16px":"minimized"===e.orientation?"0 20px":"0 11px"),(e=>"maximized"===e.orientation?"16px":"8px"),(e=>"maximized"===e.orientation||"minimized"===e.orientation?"inherit":"fit-content"),(e=>"maximized"===e.orientation?"auto":"minimized"===e.orientation?"40px":"63px"),(e=>"Live"===e.status?e.theme.titleBg:e.theme.bgColorSecondary),(e=>"maximized"===e.orientation?"17px":"minimized"===e.orientation?"12px":"24px"),(e=>"Live"===e.status?`${e.theme.titleTextColor}`:`${e.theme.textColorPrimary}`),(e=>e.clickable&&"pointer")),xee=hf.div.withConfig({displayName:"SpaceBanner__Title",componentId:"sc-qqsw1n-1"})(["display:flex;flex-direction:row;justify-content:flex-start;align-items:center;font-family:Strawford;font-weight:",";font-size:",";line-height:130%;color:",";width:90%;line-clamp:",";@media (max-width:425px){width:95%;}"],(e=>"maximized"===e.orientation?"700":"500"),(e=>"maximized"===e.orientation?"20px":"minimized"===e.orientation?"16px":"12px"),(e=>"Live"===e.status?e.theme.titleTextColor:e.theme.textColorPrimary),(e=>"maximized"===e.orientation?"3":"2")),kee=hf.div.withConfig({displayName:"SpaceBanner__Status",componentId:"sc-qqsw1n-2"})(["display:flex;flex-direction:row;width:",";justify-content:space-between;align-items:center;"],(e=>"maximized"===e.orientation?"100%":"fit-content")),Tee=hf.div.withConfig({displayName:"SpaceBanner__Time",componentId:"sc-qqsw1n-3"})(["display:",";flex-direction:row;justify-content:center;align-items:center;"],(e=>"maximized"===e.orientation?"flex":"none")),Cee=hf.img.withConfig({displayName:"SpaceBanner__Icon",componentId:"sc-qqsw1n-4"})(["height:24px;width:24px;padding:0 11px 0 0;align-self:center;"]),Iee=hf.div.withConfig({displayName:"SpaceBanner__TimeText",componentId:"sc-qqsw1n-5"})(["font-weight:500;font-size:14px;line-height:150%;color:",";"],(e=>"Live"===e.status?`${e.theme.titleTextColor}`:`${e.theme.textColorSecondary}`)),Nee=hf.button.withConfig({displayName:"SpaceBanner__InviteButton",componentId:"sc-qqsw1n-6"})(["display:flex;justify-content:center;align-items:center;height:36px;width:100%;color:",";border-radius:8px;border:",";background:transparent;cursor:pointer;"],(e=>"Live"===e.status?`${e.theme.titleTextColor}`:`${e.theme.btnColorPrimary}`),(e=>"Live"===e.status?`1px solid ${e.theme.titleTextColor}`:`1px solid ${e.theme.btnColorPrimary}`)),Ree=({color:e})=>(0,Tf.jsxs)("svg",{viewBox:"0 0 42 42",color:null!=e?e:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsx)("path",{d:"M20.7588 5.1897V10.3793",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M31.7706 9.74683L28.1055 13.412",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M36.3273 20.7585H31.1377",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M31.7706 31.7704L28.1055 28.1052",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M20.7588 36.3273V31.1377",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M9.74707 31.7704L13.4123 28.1052",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M5.18945 20.7585H10.3791",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M9.74707 9.74683L13.4123 13.412",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}),Pee=({size:e=42})=>{const t=(0,w.useContext)(W7);return(0,Tf.jsx)(rf,{theme:t,children:(0,Tf.jsx)(Lee,{width:`${e}px`,children:(0,Tf.jsx)(Ree,{color:`${t.btnOutline}`})})})},Dee=df(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),Lee=hf.div.withConfig({displayName:"Spinner__SpinLoader",componentId:"sc-104wwvk-0"})(["display:flex;flex:initial;align-self:center;width:",";animation-name:",";animation-duration:2500ms;animation-iteration-count:infinite;animation-timing-function:linear;"],(e=>e.width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wvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==";var jee,Bee=r(98399);let Uee;var Fee;!function(e){e.Horizontal="horizontal",e.Vertical="vertical"}(jee||(jee={})),function(e){e.ForYou="For You",e.Popular="Popular",e.HostedByYou="Hosted by you"}(Uee||(Uee={})),function(e){e.All="All",e.Live="Live",e.Scheduled="Scheduled"}(Fee||(Fee={}));const zee=({orientation:e=jee.Vertical,height:t,width:r,sortingOrder:n=["Popular","ForYou","HostedByYou"],showTabs:i=!0,filter:o=Fee.All,showFilter:s=!0,onBannerClickHandler:a})=>{var u,l,c;const h=(0,w.useContext)(W7),[d,f]=(0,w.useState)(o),{selectedFeedTab:p,setSelectedFeedTab:m}=g6(),{account:g,mySpaces:y,setMySpaces:v,popularSpaces:b,setPopularSpaces:_,spaceRequests:E,setSpaceRequests:A}=g6(),M=M6(null==(u=y.apiData)||u.length),S=e=>d===Fee.All?e:d===Fee.Live?e.filter((e=>{var t;return"ACTIVE"===(null==(t=e.spaceInformation)?void 0:t.status)})):d===Fee.Scheduled?e.filter((e=>{var t;return"PENDING"===(null==(t=e.spaceInformation)?void 0:t.status)})):e,x=e=>p===Uee.HostedByYou?e.filter((e=>{var t;return s9(g,null==(t=e.spaceInformation)?void 0:t.spaceCreator)})):p===Uee.ForYou?e.filter((e=>{var t;return!s9(g,null==(t=e.spaceInformation)?void 0:t.spaceCreator)})):S(e),k=e=>{if(a)return a(e||"")},T=async e=>{!1===R&&e.currentPage&&e.lastPage&&e.currentPage(0,Tf.jsx)(Mee,{spaceId:e.spaceId,orientation:"pill",onBannerClick:a?k:void 0})))):y&&(null==(c=y.apiData)?void 0:c.map((e=>(0,Tf.jsx)(Mee,{spaceId:e.spaceId,orientation:"maximized",onBannerClick:a?k:void 0}))))}):(0,Tf.jsxs)(Tf.Fragment,{children:[(0,Tf.jsx)(Yee,{showTabs:i,width:r,showFilter:s,children:(0,Tf.jsx)(Kee,{children:n.map((e=>(0,Tf.jsx)(qee,{active:p===Uee[e],onClick:()=>m(Uee[e]),children:Uee[e]})))})}),(0,Tf.jsxs)($ee,{showFilter:s,children:[(0,Tf.jsx)(Qee,{active:d===Fee.All,onClick:()=>f(Fee.All),children:"All"}),(0,Tf.jsx)(Qee,{active:d===Fee.Live,onClick:()=>f(Fee.Live),children:"Live"}),(0,Tf.jsx)(Qee,{active:d===Fee.Scheduled,onClick:()=>f(Fee.Scheduled),children:"Scheduled"})]}),(0,Tf.jsx)(Hee,{width:r,height:t,ref:M,onScroll:()=>{if(M.current){const{scrollTop:e}=M.current,{offsetHeight:t}=M.current,{scrollHeight:r}=M.current;e+t+1>=r&&(async()=>{p===Uee.ForYou&&T(y),p===Uee.Popular&&T(b),p===Uee.HostedByYou&&T(E)})()}},children:(0,Tf.jsxs)(Gee,{children:[p===Uee.ForYou?(0,Tf.jsx)(Wee,{orientation:e,children:y.apiData&&(0===S(x(y.apiData)).length?(0,Tf.jsxs)(Jee,{children:[(0,Tf.jsx)(Zee,{src:Oee}),(0,Tf.jsx)(Xee,{children:"Join a space"}),(0,Tf.jsx)(ete,{children:"Get started by joining a space"})]}):S(x(y.apiData)).map((e=>(0,Tf.jsx)(Mee,{spaceId:e.spaceId,orientation:"maximized",onBannerClick:a?k:void 0}))))}):p===Uee.Popular?(0,Tf.jsx)(Vee,{children:b.apiData&&S(b.apiData).map((e=>(0,Tf.jsx)(Mee,{spaceId:e.spaceId,orientation:"maximized",onBannerClick:a?k:void 0})))}):(0,Tf.jsx)(Wee,{orientation:e,children:y.apiData&&(0===S(x(y.apiData)).length?(0,Tf.jsxs)(Jee,{children:[(0,Tf.jsx)(Zee,{src:Oee}),(0,Tf.jsx)(Xee,{children:"Create a space"}),(0,Tf.jsx)(ete,{children:"Get started by creating a space"})]}):S(x(y.apiData)).map((e=>(0,Tf.jsx)(Mee,{spaceId:e.spaceId,orientation:"maximized",onBannerClick:a?k:void 0}))))}),R&&(0,Tf.jsx)(Pee,{size:"40"})]})})]})})})},Hee=hf.div.withConfig({displayName:"SpaceFeed__ScrollContainer",componentId:"sc-tm8f47-0"})(["width:",";height:",";overflow-y:auto;"],(e=>e.width?`${e.width}px`:"inherit"),(e=>e.height?`${e.height}px`:"auto")),Gee=hf.div.withConfig({displayName:"SpaceFeed__Container",componentId:"sc-tm8f47-1"})(["display:flex;flex-direction:column;align-items:center;background:",";border:1px solid ",";border-radius:12px;padding:24px 32px;"],(e=>e.theme.bgColorPrimary),(e=>e.theme.borderColor)),Yee=hf.div.withConfig({displayName:"SpaceFeed__Navigation",componentId:"sc-tm8f47-2"})(["display:",";flex-direction:row;justify-content:space-between;align-items:center;width:",";border-bottom:1px solid ",";margin-bottom:",";background:",";}"],(e=>e.showTabs?"flex":"none"),(e=>e.width?`${e.width}px`:"inherit"),(e=>e.theme.borderColor),(e=>e.showFilter?"0":"27px"),(e=>e.theme.bgColorPrimary)),Kee=hf.div.withConfig({displayName:"SpaceFeed__NavButtonWrapper",componentId:"sc-tm8f47-3"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;"]),qee=hf.button.withConfig({displayName:"SpaceFeed__NavButton",componentId:"sc-tm8f47-4"})(["padding:10px 30px;font-weight:450;font-size:14px;border:none;border-bottom:",";background:none;color:",";&:hover{cursor:pointer;}"],(e=>e.active?`2px solid ${e.theme.btnColorPrimary}`:"none"),(e=>e.active?`${e.theme.textColorPrimary}`:`${e.theme.textColorSecondary}`)),Wee=hf.div.withConfig({displayName:"SpaceFeed__Spaces",componentId:"sc-tm8f47-5"})(["display:flex;flex-direction:",";justify-content:flex-start;align-items:center;background:",";width:",";height:auto;gap:16px;"],(e=>"horizontal"===e.orientation?"row":"column"),(e=>e.theme.bgColorPrimary),(e=>"horizontal"===e.orientation?"inherit":"100%")),Vee=hf.div.withConfig({displayName:"SpaceFeed__PopularSpaces",componentId:"sc-tm8f47-6"})(["display:flex;flex-direction:column;justify-content:space-between;align-items:center;background:",";width:100%;height:auto;gap:16px;"],(e=>e.theme.bgColorPrimary)),$ee=hf.div.withConfig({displayName:"SpaceFeed__Filter",componentId:"sc-tm8f47-8"})(["display:",";flex-direction:row;justify-content:flex-start;align-items:center;background:",";width:100%;margin:22px 0;"],(e=>e.showFilter?"flex":"none"),(e=>e.theme.bgColorPrimary)),Qee=hf.button.withConfig({displayName:"SpaceFeed__FilterButton",componentId:"sc-tm8f47-9"})(["display:inline-flex;height:30px;padding:0px 16px;justify-content:center;align-items:center;border-radius:99px;border:1px solid ",";background:",";color:",";margin-right:8px;font-size:14px;&:hover{cursor:pointer;}"],(e=>e.theme.borderColor),(e=>e.active?`${e.theme.btnColorPrimary}`:`${e.theme.bgColorSecondary}`),(e=>e.active?`${e.theme.titleTextColor}`:`${e.theme.textColorPrimary}`)),Jee=hf.div.withConfig({displayName:"SpaceFeed__NoSpaces",componentId:"sc-tm8f47-10"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;margin:130px 0;"]),Zee=hf.img.withConfig({displayName:"SpaceFeed__SpacesIcon",componentId:"sc-tm8f47-11"})(["width:36px;height:36px;"]),Xee=hf.div.withConfig({displayName:"SpaceFeed__NoSpacesTextV1",componentId:"sc-tm8f47-12"})(["font-family:'Strawford';font-weight:450;font-size:16px;color:","};}"],(e=>e.theme.textColorPrimary)),ete=hf.div.withConfig({displayName:"SpaceFeed__NoSpacesTextV2",componentId:"sc-tm8f47-13"})(["font-family:'Strawford';font-weight:450;color:","};font-size:14px;"],(e=>e.theme.textColorSecondary));var tte=r(98399),rte=r(13158);function nte(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(e)}var ite="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function ote(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ste,ate,ute,lte={exports:{}};ate=ite,ute=function(){var e=function(){},t="undefined",r=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"];function i(e,t){var r=e[t];if("function"==typeof r.bind)return r.bind(e);try{return Function.prototype.bind.call(r,e)}catch(fVe){return function(){return Function.prototype.apply.apply(r,[e,arguments])}}}function o(){tte.log&&(tte.log.apply?tte.log.apply(tte,arguments):Function.prototype.apply.apply(tte.log,[tte,arguments])),tte.trace&&tte.trace()}function s(n){return"debug"===n&&(n="log"),typeof tte!==t&&("trace"===n&&r?o:void 0!==tte[n]?i(tte,n):void 0!==tte.log?i(tte,"log"):e)}function a(t,r){for(var i=0;i=0&&r<=s.levels.SILENT))throw"log.setLevel() called with invalid level: "+r;if(o=r,!1!==i&&function(e){var r=(n[e]||"silent").toUpperCase();if(typeof window!==t&&u){try{return void(window.localStorage[u]=r)}catch(i){}try{window.document.cookie=encodeURIComponent(u)+"="+r+";"}catch(i){}}}(r),a.call(s,r,e),typeof tte===t&&r2147483647||e<-2147483648)throw new Error("invalid int 32: "+e)}function mte(e){if("number"!=typeof e)throw new Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw new Error("invalid uint 32: "+e)}function gte(e){if("number"!=typeof e)throw new Error("invalid float 32: "+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw new Error("invalid float 32: "+e)}const yte=Symbol("@bufbuild/protobuf/enum-type");function vte(e){const t=e[yte];return fte(t,"missing enum type on enum object"),t}function bte(e,t,r,n){e[yte]=wte(t,r.map((t=>({no:t.no,name:t.name,localName:e[t.no]}))))}function wte(e,t,r){const n=Object.create(null),i=Object.create(null),o=[];for(const s of t){const e=Ete(s);o.push(e),n[s.name]=e,i[s.no]=e}return{typeName:e,values:o,findName:e=>n[e],findNumber:e=>i[e]}}function _te(e,t,r){const n={};for(const i of t){const e=Ete(i);n[e.localName]=e.no,n[e.no]=e.localName}return bte(n,e,t),n}function Ete(e){return"localName"in e?e:Object.assign(Object.assign({},e),{localName:e.name})}class Ate{equals(e){return this.getType().runtime.util.equals(this.getType(),this,e)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(e,t){const r=this.getType().runtime.bin,n=r.makeReadOptions(t);return r.readMessage(this,n.readerFactory(e),e.byteLength,n),this}fromJson(e,t){const r=this.getType(),n=r.runtime.json,i=n.makeReadOptions(t);return n.readMessage(r,e,i,this),this}fromJsonString(e,t){let r;try{r=JSON.parse(e)}catch(fVe){throw new Error("cannot decode ".concat(this.getType().typeName," from JSON: ").concat(fVe instanceof Error?fVe.message:String(fVe)))}return this.fromJson(r,t)}toBinary(e){const t=this.getType().runtime.bin,r=t.makeWriteOptions(e),n=r.writerFactory();return t.writeMessage(this,n,r),n.finish()}toJson(e){const t=this.getType().runtime.json,r=t.makeWriteOptions(e);return t.writeMessage(this,r)}toJsonString(e){var t;const r=this.toJson(e);return JSON.stringify(r,null,null!==(t=null==e?void 0:e.prettySpaces)&&void 0!==t?t:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}var Mte;function Ste(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(127&r)<>4,0==(128&r))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(127&r)<>>o,i=!(n>>>7==0&&0==t),s=255&(i?128|n:n);if(r.push(s),!i)return}const n=e>>>28&15|(7&t)<<4,i=!(t>>3==0);if(r.push(255&(i?128|n:n)),i){for(let e=3;e<31;e+=7){const n=t>>>e,i=!(n>>>7==0),o=255&(i?128|n:n);if(r.push(o),!i)return}r.push(t>>>31&1)}}!function(e){e[e.DOUBLE=1]="DOUBLE",e[e.FLOAT=2]="FLOAT",e[e.INT64=3]="INT64",e[e.UINT64=4]="UINT64",e[e.INT32=5]="INT32",e[e.FIXED64=6]="FIXED64",e[e.FIXED32=7]="FIXED32",e[e.BOOL=8]="BOOL",e[e.STRING=9]="STRING",e[e.BYTES=12]="BYTES",e[e.UINT32=13]="UINT32",e[e.SFIXED32=15]="SFIXED32",e[e.SFIXED64=16]="SFIXED64",e[e.SINT32=17]="SINT32",e[e.SINT64=18]="SINT64"}(Mte||(Mte={}));const kte=4294967296;function Tte(e){const t="-"===e[0];t&&(e=e.slice(1));const r=1e6;let n=0,i=0;function o(t,o){const s=Number(e.slice(t,o));i*=r,n=n*r+s,n>=kte&&(i+=n/kte|0,n%=kte)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),t?Nte(n,i):Ite(n,i)}function Cte(e,t){if(({lo:e,hi:t}=function(e,t){return{lo:e>>>0,hi:t>>>0}}(e,t)),t<=2097151)return String(kte*t+e);const r=16777215&(e>>>24|t<<8),n=t>>16&65535;let i=(16777215&e)+6777216*r+6710656*n,o=r+8147497*n,s=2*n;const a=1e7;return i>=a&&(o+=Math.floor(i/a),i%=a),o>=a&&(s+=Math.floor(o/a),o%=a),s.toString()+Rte(o)+Rte(i)}function Ite(e,t){return{lo:0|e,hi:0|t}}function Nte(e,t){return t=~t,e?e=1+~e:t+=1,Ite(e,t)}const Rte=e=>{const t=String(e);return"0000000".slice(t.length)+t};function Pte(e,t){if(e>=0){for(;e>127;)t.push(127&e|128),e>>>=7;t.push(e)}else{for(let r=0;r<9;r++)t.push(127&e|128),e>>=7;t.push(1)}}function Dte(){let e=this.buf[this.pos++],t=127&e;if(0==(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<7,0==(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<14,0==(128&e))return this.assertBounds(),t;if(e=this.buf[this.pos++],t|=(127&e)<<21,0==(128&e))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(15&e)<<28;for(let r=5;0!=(128&e)&&r<10;r++)e=this.buf[this.pos++];if(0!=(128&e))throw new Error("invalid varint");return this.assertBounds(),t>>>0}const Lte=function(){const e=new DataView(new ArrayBuffer(8));if("function"==typeof BigInt&&"function"==typeof e.getBigInt64&&"function"==typeof e.getBigUint64&&"function"==typeof e.setBigInt64&&"function"==typeof e.setBigUint64&&("object"!=typeof rte||"1"!=={NODE_ENV:"production",NX_CLI_SET:"true",NX_WORKSPACE_ROOT:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk",NX_TERMINAL_OUTPUT_PATH:"/Users/Prodigy/Desktop/Inhouse/PUSH/push-sdk/node_modules/.cache/nx/terminalOutputs/0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13",NX_STREAM_OUTPUT:"true",NX_TASK_TARGET_PROJECT:"examples-sdk-frontend-react",NX_TASK_HASH:"0d55efcbd047f4de8413ba96e6efe27e1e7de749bb7093879177714881dbdd13"}.BUF_BIGINT_DISABLE)){const t=BigInt("-9223372036854775808"),r=BigInt("9223372036854775807"),n=BigInt("0"),i=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(e){const n="bigint"==typeof e?e:BigInt(e);if(n>r||ni||t(e.setInt32(0,t,!0),e.setInt32(4,r,!0),e.getBigInt64(0,!0)),uDec:(t,r)=>(e.setInt32(0,t,!0),e.setInt32(4,r,!0),e.getBigUint64(0,!0))}}const t=e=>fte(/^-?[0-9]+$/.test(e),"int64 invalid: ".concat(e)),r=e=>fte(/^[0-9]+$/.test(e),"uint64 invalid: ".concat(e));return{zero:"0",supported:!1,parse:e=>("string"!=typeof e&&(e=e.toString()),t(e),e),uParse:e=>("string"!=typeof e&&(e=e.toString()),r(e),e),enc:e=>("string"!=typeof e&&(e=e.toString()),t(e),Tte(e)),uEnc:e=>("string"!=typeof e&&(e=e.toString()),r(e),Tte(e)),dec:(e,t)=>function(e,t){let r=Ite(e,t);const n=2147483648&r.hi;n&&(r=Nte(r.lo,r.hi));const i=Cte(r.lo,r.hi);return n?"-"+i:i}(e,t),uDec:(e,t)=>Cte(e,t)}}();var Ote;!function(e){e[e.Varint=0]="Varint",e[e.Bit64=1]="Bit64",e[e.LengthDelimited=2]="LengthDelimited",e[e.StartGroup=3]="StartGroup",e[e.EndGroup=4]="EndGroup",e[e.Bit32=5]="Bit32"}(Ote||(Ote={}));class jte{constructor(e){this.stack=[],this.textEncoder=null!=e?e:new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let n=0;n>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(mte(e);e>127;)this.buf.push(127&e|128),e>>>=7;return this.buf.push(e),this}int32(e){return pte(e),Pte(e,this.buf),this}bool(e){return this.buf.push(e?1:0),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}float(e){gte(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){mte(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){pte(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return pte(e),Pte(e=(e<<1^e>>31)>>>0,this.buf),this}sfixed64(e){let t=new Uint8Array(8),r=new DataView(t.buffer),n=Lte.enc(e);return r.setInt32(0,n.lo,!0),r.setInt32(4,n.hi,!0),this.raw(t)}fixed64(e){let t=new Uint8Array(8),r=new DataView(t.buffer),n=Lte.uEnc(e);return r.setInt32(0,n.lo,!0),r.setInt32(4,n.hi,!0),this.raw(t)}int64(e){let t=Lte.enc(e);return xte(t.lo,t.hi,this.buf),this}sint64(e){let t=Lte.enc(e),r=t.hi>>31;return xte(t.lo<<1^r,(t.hi<<1|t.lo>>>31)^r,this.buf),this}uint64(e){let t=Lte.uEnc(e);return xte(t.lo,t.hi,this.buf),this}}class Bte{constructor(e,t){this.varint64=Ste,this.uint32=Dte,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=null!=t?t:new TextDecoder}tag(){let e=this.uint32(),t=e>>>3,r=7&e;if(t<=0||r<0||r>5)throw new Error("illegal tag: field no "+t+" wire type "+r);return[t,r]}skip(e){let t=this.pos;switch(e){case Ote.Varint:for(;128&this.buf[this.pos++];);break;case Ote.Bit64:this.pos+=4;case Ote.Bit32:this.pos+=4;break;case Ote.LengthDelimited:let t=this.uint32();this.pos+=t;break;case Ote.StartGroup:let r;for(;(r=this.tag()[1])!==Ote.EndGroup;)this.skip(r);break;default:throw new Error("cant skip wire type "+e)}return this.assertBounds(),this.buf.subarray(t,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return 0|this.uint32()}sint32(){let e=this.uint32();return e>>>1^-(1&e)}int64(){return Lte.dec(...this.varint64())}uint64(){return Lte.uDec(...this.varint64())}sint64(){let[e,t]=this.varint64(),r=-(1&e);return e=(e>>>1|(1&t)<<31)^r,t=t>>>1^r,Lte.dec(e,t)}bool(){let[e,t]=this.varint64();return 0!==e||0!==t}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Lte.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Lte.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}}function Ute(e,t){return t instanceof Ate||!e.fieldWrapper?t:e.fieldWrapper.wrapField(t)}function Fte(e,t,r){if(t===r)return!0;if(e==Mte.BYTES){if(!(t instanceof Uint8Array&&r instanceof Uint8Array))return!1;if(t.length!==r.length)return!1;for(let e=0;enew Bte(e)},Kte={writeUnknownFields:!0,writerFactory:()=>new jte};function qte(e){return e?Object.assign(Object.assign({},Yte),e):Yte}function Wte(e){return e?Object.assign(Object.assign({},Kte),e):Kte}function Vte(e,t,r){return t.getType().runtime.bin.readMessage(t,e,e.uint32(),r),t}function $te(e,t,r){const n=t.uint32(),i=t.pos+n;let o,s;for(;t.pos>4,s=r,o=2;break;case 2:n[i++]=(15&s)<<4|(60&r)>>2,s=r,o=3;break;case 3:n[i++]=(3&s)<<6|r,o=0}}if(1==o)throw Error("invalid base64 string.");return n.subarray(0,i)},enc(e){let t,r="",n=0,i=0;for(let o=0;o>2],i=(3&t)<<4,n=1;break;case 1:r+=tre[i|t>>4],i=(15&t)<<2,n=2;break;case 2:r+=tre[i|t>>6],r+=tre[63&t],n=0}return n&&(r+=tre[i],r+="=",1==n&&(r+="=")),r}},ire={ignoreUnknownFields:!1},ore={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function sre(e){return e?Object.assign(Object.assign({},ire),e):ire}function are(e){return e?Object.assign(Object.assign({},ore),e):ore}function ure(e){if(null===e)return"null";switch(typeof e){case"object":return Array.isArray(e)?"array":"object";case"string":return e.length>100?"string":'"'.concat(e.split('"').join('\\"'),'"');default:return String(e)}}function lre(e,t){switch(e){case Mte.DOUBLE:case Mte.FLOAT:if(null===t)return 0;if("NaN"===t)return Number.NaN;if("Infinity"===t)return Number.POSITIVE_INFINITY;if("-Infinity"===t)return Number.NEGATIVE_INFINITY;if(""===t)break;if("string"==typeof t&&t.trim().length!==t.length)break;if("string"!=typeof t&&"number"!=typeof t)break;const r=Number(t);if(Number.isNaN(r))break;if(!Number.isFinite(r))break;return e==Mte.FLOAT&>e(r),r;case Mte.INT32:case Mte.FIXED32:case Mte.SFIXED32:case Mte.SINT32:case Mte.UINT32:if(null===t)return 0;let n;if("number"==typeof t?n=t:"string"==typeof t&&t.length>0&&t.trim().length===t.length&&(n=Number(t)),void 0===n)break;return e==Mte.UINT32?mte(n):pte(n),n;case Mte.INT64:case Mte.SFIXED64:case Mte.SINT64:if(null===t)return Lte.zero;if("number"!=typeof t&&"string"!=typeof t)break;return Lte.parse(t);case Mte.FIXED64:case Mte.UINT64:if(null===t)return Lte.zero;if("number"!=typeof t&&"string"!=typeof t)break;return Lte.uParse(t);case Mte.BOOL:if(null===t)return!1;if("boolean"!=typeof t)break;return t;case Mte.STRING:if(null===t)return"";if("string"!=typeof t)break;try{encodeURIComponent(t)}catch(fVe){throw new Error("invalid UTF8")}return t;case Mte.BYTES:if(null===t||""===t)return new Uint8Array(0);if("string"!=typeof t)break;return nre.dec(t)}throw new Error}function cre(e,t,r){if(null===t)return 0;switch(typeof t){case"number":if(Number.isInteger(t))return t;break;case"string":const n=e.findName(t);if(n||r)return null==n?void 0:n.no}throw new Error("cannot decode enum ".concat(e.typeName," from JSON: ").concat(ure(t)))}function hre(e,t,r,n){var i;if(void 0===t)return t;if(0===t&&!r)return;if(n)return t;if("google.protobuf.NullValue"==e.typeName)return null;const o=e.findNumber(t);return null!==(i=null==o?void 0:o.name)&&void 0!==i?i:t}function dre(e,t,r){if(void 0!==t)switch(e){case Mte.INT32:case Mte.SFIXED32:case Mte.SINT32:case Mte.FIXED32:case Mte.UINT32:return fte("number"==typeof t),0!=t||r?t:void 0;case Mte.FLOAT:case Mte.DOUBLE:return fte("number"==typeof t),Number.isNaN(t)?"NaN":t===Number.POSITIVE_INFINITY?"Infinity":t===Number.NEGATIVE_INFINITY?"-Infinity":0!==t||r?t:void 0;case Mte.STRING:return fte("string"==typeof t),t.length>0||r?t:void 0;case Mte.BOOL:return fte("boolean"==typeof t),t||r?t:void 0;case Mte.UINT64:case Mte.FIXED64:case Mte.INT64:case Mte.SFIXED64:case Mte.SINT64:return fte("bigint"==typeof t||"string"==typeof t||"number"==typeof t),r||0!=t?t.toString(10):void 0;case Mte.BYTES:return fte(t instanceof Uint8Array),r||t.byteLength>0?nre.enc(t):void 0}}function fre(e){if(void 0===e)return e;if(e instanceof Ate)return e.clone();if(e instanceof Uint8Array){const t=new Uint8Array(e.byteLength);return t.set(e),t}return e}function pre(e){return e instanceof Uint8Array?e:new Uint8Array(e)}class mre{constructor(e,t){this._fields=e,this._normalizer=t}findJsonName(e){if(!this.jsonNames){const e={};for(const t of this.list())e[t.jsonName]=e[t.name]=t;this.jsonNames=e}return this.jsonNames[e]}find(e){if(!this.numbers){const e={};for(const t of this.list())e[t.no]=t;this.numbers=e}return this.numbers[e]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort(((e,t)=>e.no-t.no))),this.numbersAsc}byMember(){if(!this.members){this.members=[];const e=this.members;let t;for(const r of this.list())r.oneof?r.oneof!==t&&(t=r.oneof,e.push(t)):e.push(r)}return this.members}}function gre(e,t){const r=vre(e);return t?r:Are(Ere(r))}const yre=vre;function vre(e){let t=!1;const r=[];for(let n=0;n"".concat(e,"$"),Ere=e=>wre.has(e)?_re(e):e,Are=e=>bre.has(e)?_re(e):e;class Mre{constructor(e){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.default=void 0,this.fields=[],this.name=e,this.localName=gre(e,!1)}addField(e){fte(e.oneof===this,"field ".concat(e.name," not one of ").concat(this.name)),this.fields.push(e)}findField(e){if(!this._lookup){this._lookup=Object.create(null);for(let e=0;e0&&(n+=": ".concat(fVe.message)),new Error(n)}}n.push(o)}}else if("map"==t.kind){if(null===s)continue;if(Array.isArray(s)||"object"!=typeof s)throw new Error("cannot decode field ".concat(e.typeName,".").concat(t.name," from JSON: ").concat(this.debug(s)));const n=u[a];for(const[i,o]of Object.entries(s)){if(null===o)throw new Error("cannot decode field ".concat(e.typeName,".").concat(t.name," from JSON: map value null"));let a;switch(t.V.kind){case"message":a=t.V.T.fromJson(o,r);break;case"enum":if(a=cre(t.V.T,o,r.ignoreUnknownFields),void 0===a)continue;break;case"scalar":try{a=lre(t.V.T,o)}catch(fVe){let n="cannot decode map value for field ".concat(e.typeName,".").concat(t.name," from JSON: ").concat(this.debug(s));throw fVe instanceof Error&&fVe.message.length>0&&(n+=": ".concat(fVe.message)),new Error(n)}}try{n[lre(t.K,t.K==Mte.BOOL?"true"==i||"false"!=i&&i:i).toString()]=a}catch(fVe){let n="cannot decode map key for field ".concat(e.typeName,".").concat(t.name," from JSON: ").concat(this.debug(s));throw fVe instanceof Error&&fVe.message.length>0&&(n+=": ".concat(fVe.message)),new Error(n)}}}else switch(t.kind){case"message":const n=t.T;if(null===s&&"google.protobuf.Value"!=n.typeName){if(t.oneof)throw new Error("cannot decode field ".concat(e.typeName,".").concat(t.name,' from JSON: null is invalid for oneof field "').concat(o,'"'));continue}u[a]instanceof Ate?u[a].fromJson(s,r):(u[a]=n.fromJson(s,r),n.fieldWrapper&&!t.oneof&&(u[a]=n.fieldWrapper.unwrapField(u[a])));break;case"enum":const i=cre(t.T,s,r.ignoreUnknownFields);void 0!==i&&(u[a]=i);break;case"scalar":try{u[a]=lre(t.T,s)}catch(fVe){let n="cannot decode field ".concat(e.typeName,".").concat(t.name," from JSON: ").concat(this.debug(s));throw fVe instanceof Error&&fVe.message.length>0&&(n+=": ".concat(fVe.message)),new Error(n)}}}return n},writeMessage(e,r){const n=e.getType(),i={};let o;try{for(const s of n.fields.byMember()){let n;if("oneof"==s.kind){const i=e[s.localName];if(void 0===i.value)continue;if(o=s.findField(i.case),!o)throw"oneof case not found: "+i.case;n=t(o,i.value,r)}else o=s,n=t(o,e[o.localName],r);void 0!==n&&(i[r.useProtoFieldName?o.name:o.jsonName]=n)}}catch(fVe){const t=o?"cannot encode field ".concat(n.typeName,".").concat(o.name," to JSON"):"cannot encode message ".concat(n.typeName," to JSON"),r=fVe instanceof Error?fVe.message:String(fVe);throw new Error(t+(r.length>0?": ".concat(r):""))}return i},readScalar:lre,writeScalar:dre,debug:ure}}(((e,t)=>function(r,n,i){if("map"==r.kind){const o={};switch(r.V.kind){case"scalar":for(const[e,i]of Object.entries(n)){const n=t(r.V.T,i,!0);fte(void 0!==n),o[e.toString()]=n}break;case"message":for(const[e,t]of Object.entries(n))o[e.toString()]=t.toJson(i);break;case"enum":const s=r.V.T;for(const[t,r]of Object.entries(n)){fte(void 0===r||"number"==typeof r);const n=e(s,r,!0,i.enumAsInteger);fte(void 0!==n),o[t.toString()]=n}}return i.emitDefaultValues||Object.keys(o).length>0?o:void 0}if(r.repeated){const o=[];switch(r.kind){case"scalar":for(let e=0;e0?o:void 0}switch(r.kind){case"scalar":return t(r.T,n,!!r.oneof||r.opt||i.emitDefaultValues);case"enum":return e(r.T,n,!!r.oneof||r.opt||i.emitDefaultValues,i.enumAsInteger);case"message":return void 0!==n?Ute(r.T,n).toJson(i):void 0}})),Tre=Object.assign(Object.assign({},{makeReadOptions:qte,makeWriteOptions:Wte,listUnknownFields(e){var t;return null!==(t=e[Gte])&&void 0!==t?t:[]},discardUnknownFields(e){delete e[Gte]},writeUnknownFields(e,t){const r=e[Gte];if(r)for(const n of r)t.tag(n.no,n.wireType).raw(n.data)},onUnknownField(e,t,r,n){const i=e;Array.isArray(i[Gte])||(i[Gte]=[]),i[Gte].push({no:t,wireType:r,data:n})},readMessage(e,t,r,n){const i=e.getType(),o=void 0===r?t.len:t.pos+r;for(;t.pose instanceof u?e:new u(e)));else if(void 0!==o[r]){const e=o[r];u.fieldWrapper?"google.protobuf.BytesValue"===u.typeName?i[r]=pre(e):i[r]=e:i[r]=e instanceof u?e:new u(e)}}}},equals:(e,t,r)=>t===r||!(!t||!r)&&e.fields.byMember().every((e=>{const n=t[e.localName],i=r[e.localName];if(e.repeated){if(n.length!==i.length)return!1;switch(e.kind){case"message":return n.every(((t,r)=>e.T.equals(t,i[r])));case"scalar":return n.every(((t,r)=>Fte(e.T,t,i[r])));case"enum":return n.every(((e,t)=>Fte(Mte.INT32,e,i[t])))}throw new Error("repeated cannot contain ".concat(e.kind))}switch(e.kind){case"message":return e.T.equals(n,i);case"enum":return Fte(Mte.INT32,n,i);case"scalar":return Fte(e.T,n,i);case"oneof":if(n.case!==i.case)return!1;const t=e.findField(n.case);if(void 0===t)return!0;switch(t.kind){case"message":return t.T.equals(n.value,i.value);case"enum":return Fte(Mte.INT32,n.value,i.value);case"scalar":return Fte(t.T,n.value,i.value)}throw new Error("oneof cannot contain ".concat(t.kind));case"map":const r=Object.keys(n).concat(Object.keys(i));switch(e.V.kind){case"message":const t=e.V.T;return r.every((e=>t.equals(n[e],i[e])));case"enum":return r.every((e=>Fte(Mte.INT32,n[e],i[e])));case"scalar":const o=e.V.T;return r.every((e=>Fte(o,n[e],i[e])))}}})),clone(e){const t=e.getType(),r=new t,n=r;for(const i of t.fields.byMember()){const t=e[i.localName];let r;if(i.repeated)r=t.map(fre);else if("map"==i.kind){r=n[i.localName];for(const[e,n]of Object.entries(t))r[e]=fre(n)}else r="oneof"==i.kind?i.findField(t.case)?{case:t.case,value:fre(t.value)}:{case:void 0}:fre(t);n[i.localName]=r}return r}}),{newFieldList:e=>new mre(e,Fre),initFields(e){for(const t of e.getType().fields.byMember()){if(t.opt)continue;const r=t.localName,n=e;if(t.repeated)n[r]=[];else switch(t.kind){case"oneof":n[r]={case:void 0};break;case"enum":n[r]=0;break;case"map":n[r]={};break;case"scalar":n[r]=zte(t.T)}}}}),{syntax:xre,json:kre,bin:Tre,util:Cre,makeMessageType(e,t,r){return function(e,t,r,n){var i;const o=null!==(i=null==n?void 0:n.localName)&&void 0!==i?i:t.substring(t.lastIndexOf(".")+1),s={[o]:function(t){e.util.initFields(this),e.util.initPartial(t,this)}}[o];return Object.setPrototypeOf(s.prototype,new Ate),Object.assign(s,{runtime:e,typeName:t,fields:e.util.newFieldList(r),fromBinary:(e,t)=>(new s).fromBinary(e,t),fromJson:(e,t)=>(new s).fromJson(e,t),fromJsonString:(e,t)=>(new s).fromJsonString(e,t),equals:(t,r)=>e.util.equals(s,t,r)}),s}(this,e,t,r)},makeEnum:_te,makeEnumType:wte,getEnumType:vte});var xre,kre,Tre,Cre,Ire,Nre,Rre,Pre,Dre,Lre,Ore,jre,Bre,Ure;function Fre(e){var t,r,n;const i=[];let o;for(const s of"function"==typeof e?e():e){const e=s;if(e.localName=gre(s.name,void 0!==s.oneof),e.jsonName=null!==(t=s.jsonName)&&void 0!==t?t:yre(s.name),e.repeated=null!==(r=s.repeated)&&void 0!==r&&r,e.packed=null!==(n=s.packed)&&void 0!==n?n:"enum"==s.kind||"scalar"==s.kind&&s.T!=Mte.BYTES&&s.T!=Mte.STRING,void 0!==s.oneof){const t="string"==typeof s.oneof?s.oneof:s.oneof.name;o&&o.name==t||(o=new Mre(t)),e.oneof=o,o.addField(e)}i.push(e)}return i}class zre extends Ate{constructor(e){super(),this.seconds=Lte.zero,this.nanos=0,Sre.util.initPartial(e,this)}fromJson(e,t){if("string"!=typeof e)throw new Error("cannot decode google.protobuf.Timestamp from JSON: ".concat(Sre.json.debug(e)));const r=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!r)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const n=Date.parse(r[1]+"-"+r[2]+"-"+r[3]+"T"+r[4]+":"+r[5]+":"+r[6]+(r[8]?r[8]:"Z"));if(Number.isNaN(n))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(nDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=Lte.parse(n/1e3),this.nanos=0,r[7]&&(this.nanos=parseInt("1"+r[7]+"0".repeat(9-r[7].length))-1e9),this}toJson(e){const t=1e3*Number(this.seconds);if(tDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let r="Z";if(this.nanos>0){const e=(this.nanos+1e9).toString().substring(1);r="000000"===e.substring(3)?"."+e.substring(0,3)+"Z":"000"===e.substring(6)?"."+e.substring(0,6)+"Z":"."+e+"Z"}return new Date(t).toISOString().replace(".000Z",r)}toDate(){return new Date(1e3*Number(this.seconds)+Math.ceil(this.nanos/1e6))}static now(){return zre.fromDate(new Date)}static fromDate(e){const t=e.getTime();return new zre({seconds:Lte.parse(Math.floor(t/1e3)),nanos:t%1e3*1e6})}static fromBinary(e,t){return(new zre).fromBinary(e,t)}static fromJson(e,t){return(new zre).fromJson(e,t)}static fromJsonString(e,t){return(new zre).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(zre,e,t)}}zre.runtime=Sre,zre.typeName="google.protobuf.Timestamp",zre.fields=Sre.util.newFieldList((()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])),function(e){e[e.DEFAULT_AC=0]="DEFAULT_AC",e[e.OPUS=1]="OPUS",e[e.AAC=2]="AAC"}(Ire||(Ire={})),Sre.util.setEnumType(Ire,"livekit.AudioCodec",[{no:0,name:"DEFAULT_AC"},{no:1,name:"OPUS"},{no:2,name:"AAC"}]),function(e){e[e.DEFAULT_VC=0]="DEFAULT_VC",e[e.H264_BASELINE=1]="H264_BASELINE",e[e.H264_MAIN=2]="H264_MAIN",e[e.H264_HIGH=3]="H264_HIGH",e[e.VP8=4]="VP8"}(Nre||(Nre={})),Sre.util.setEnumType(Nre,"livekit.VideoCodec",[{no:0,name:"DEFAULT_VC"},{no:1,name:"H264_BASELINE"},{no:2,name:"H264_MAIN"},{no:3,name:"H264_HIGH"},{no:4,name:"VP8"}]),function(e){e[e.AUDIO=0]="AUDIO",e[e.VIDEO=1]="VIDEO",e[e.DATA=2]="DATA"}(Rre||(Rre={})),Sre.util.setEnumType(Rre,"livekit.TrackType",[{no:0,name:"AUDIO"},{no:1,name:"VIDEO"},{no:2,name:"DATA"}]),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.CAMERA=1]="CAMERA",e[e.MICROPHONE=2]="MICROPHONE",e[e.SCREEN_SHARE=3]="SCREEN_SHARE",e[e.SCREEN_SHARE_AUDIO=4]="SCREEN_SHARE_AUDIO"}(Pre||(Pre={})),Sre.util.setEnumType(Pre,"livekit.TrackSource",[{no:0,name:"UNKNOWN"},{no:1,name:"CAMERA"},{no:2,name:"MICROPHONE"},{no:3,name:"SCREEN_SHARE"},{no:4,name:"SCREEN_SHARE_AUDIO"}]),function(e){e[e.LOW=0]="LOW",e[e.MEDIUM=1]="MEDIUM",e[e.HIGH=2]="HIGH",e[e.OFF=3]="OFF"}(Dre||(Dre={})),Sre.util.setEnumType(Dre,"livekit.VideoQuality",[{no:0,name:"LOW"},{no:1,name:"MEDIUM"},{no:2,name:"HIGH"},{no:3,name:"OFF"}]),function(e){e[e.POOR=0]="POOR",e[e.GOOD=1]="GOOD",e[e.EXCELLENT=2]="EXCELLENT"}(Lre||(Lre={})),Sre.util.setEnumType(Lre,"livekit.ConnectionQuality",[{no:0,name:"POOR"},{no:1,name:"GOOD"},{no:2,name:"EXCELLENT"}]),function(e){e[e.UNSET=0]="UNSET",e[e.DISABLED=1]="DISABLED",e[e.ENABLED=2]="ENABLED"}(Ore||(Ore={})),Sre.util.setEnumType(Ore,"livekit.ClientConfigSetting",[{no:0,name:"UNSET"},{no:1,name:"DISABLED"},{no:2,name:"ENABLED"}]),function(e){e[e.UNKNOWN_REASON=0]="UNKNOWN_REASON",e[e.CLIENT_INITIATED=1]="CLIENT_INITIATED",e[e.DUPLICATE_IDENTITY=2]="DUPLICATE_IDENTITY",e[e.SERVER_SHUTDOWN=3]="SERVER_SHUTDOWN",e[e.PARTICIPANT_REMOVED=4]="PARTICIPANT_REMOVED",e[e.ROOM_DELETED=5]="ROOM_DELETED",e[e.STATE_MISMATCH=6]="STATE_MISMATCH",e[e.JOIN_FAILURE=7]="JOIN_FAILURE"}(jre||(jre={})),Sre.util.setEnumType(jre,"livekit.DisconnectReason",[{no:0,name:"UNKNOWN_REASON"},{no:1,name:"CLIENT_INITIATED"},{no:2,name:"DUPLICATE_IDENTITY"},{no:3,name:"SERVER_SHUTDOWN"},{no:4,name:"PARTICIPANT_REMOVED"},{no:5,name:"ROOM_DELETED"},{no:6,name:"STATE_MISMATCH"},{no:7,name:"JOIN_FAILURE"}]),function(e){e[e.RR_UNKNOWN=0]="RR_UNKNOWN",e[e.RR_SIGNAL_DISCONNECTED=1]="RR_SIGNAL_DISCONNECTED",e[e.RR_PUBLISHER_FAILED=2]="RR_PUBLISHER_FAILED",e[e.RR_SUBSCRIBER_FAILED=3]="RR_SUBSCRIBER_FAILED",e[e.RR_SWITCH_CANDIDATE=4]="RR_SWITCH_CANDIDATE"}(Bre||(Bre={})),Sre.util.setEnumType(Bre,"livekit.ReconnectReason",[{no:0,name:"RR_UNKNOWN"},{no:1,name:"RR_SIGNAL_DISCONNECTED"},{no:2,name:"RR_PUBLISHER_FAILED"},{no:3,name:"RR_SUBSCRIBER_FAILED"},{no:4,name:"RR_SWITCH_CANDIDATE"}]),function(e){e[e.SE_UNKNOWN=0]="SE_UNKNOWN",e[e.SE_CODEC_UNSUPPORTED=1]="SE_CODEC_UNSUPPORTED",e[e.SE_TRACK_NOTFOUND=2]="SE_TRACK_NOTFOUND"}(Ure||(Ure={})),Sre.util.setEnumType(Ure,"livekit.SubscriptionError",[{no:0,name:"SE_UNKNOWN"},{no:1,name:"SE_CODEC_UNSUPPORTED"},{no:2,name:"SE_TRACK_NOTFOUND"}]);let Hre=class e extends Ate{constructor(e){super(),this.sid="",this.name="",this.emptyTimeout=0,this.maxParticipants=0,this.creationTime=Lte.zero,this.turnPassword="",this.enabledCodecs=[],this.metadata="",this.numParticipants=0,this.numPublishers=0,this.activeRecording=!1,Sre.util.initPartial(e,this)}static fromBinary(t,r){return(new e).fromBinary(t,r)}static fromJson(t,r){return(new e).fromJson(t,r)}static fromJsonString(t,r){return(new e).fromJsonString(t,r)}static equals(t,r){return Sre.util.equals(e,t,r)}};Hre.runtime=Sre,Hre.typeName="livekit.Room",Hre.fields=Sre.util.newFieldList((()=>[{no:1,name:"sid",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"empty_timeout",kind:"scalar",T:13},{no:4,name:"max_participants",kind:"scalar",T:13},{no:5,name:"creation_time",kind:"scalar",T:3},{no:6,name:"turn_password",kind:"scalar",T:9},{no:7,name:"enabled_codecs",kind:"message",T:Gre,repeated:!0},{no:8,name:"metadata",kind:"scalar",T:9},{no:9,name:"num_participants",kind:"scalar",T:13},{no:11,name:"num_publishers",kind:"scalar",T:13},{no:10,name:"active_recording",kind:"scalar",T:8},{no:12,name:"playout_delay",kind:"message",T:Yre}]));class Gre extends Ate{constructor(e){super(),this.mime="",this.fmtpLine="",Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new Gre).fromBinary(e,t)}static fromJson(e,t){return(new Gre).fromJson(e,t)}static fromJsonString(e,t){return(new Gre).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(Gre,e,t)}}Gre.runtime=Sre,Gre.typeName="livekit.Codec",Gre.fields=Sre.util.newFieldList((()=>[{no:1,name:"mime",kind:"scalar",T:9},{no:2,name:"fmtp_line",kind:"scalar",T:9}]));class Yre extends Ate{constructor(e){super(),this.enabled=!1,this.min=0,this.max=0,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new Yre).fromBinary(e,t)}static fromJson(e,t){return(new Yre).fromJson(e,t)}static fromJsonString(e,t){return(new Yre).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(Yre,e,t)}}Yre.runtime=Sre,Yre.typeName="livekit.PlayoutDelay",Yre.fields=Sre.util.newFieldList((()=>[{no:1,name:"enabled",kind:"scalar",T:8},{no:2,name:"min",kind:"scalar",T:13},{no:3,name:"max",kind:"scalar",T:13}]));class Kre extends Ate{constructor(e){super(),this.canSubscribe=!1,this.canPublish=!1,this.canPublishData=!1,this.canPublishSources=[],this.hidden=!1,this.recorder=!1,this.canUpdateMetadata=!1,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new Kre).fromBinary(e,t)}static fromJson(e,t){return(new Kre).fromJson(e,t)}static fromJsonString(e,t){return(new Kre).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(Kre,e,t)}}Kre.runtime=Sre,Kre.typeName="livekit.ParticipantPermission",Kre.fields=Sre.util.newFieldList((()=>[{no:1,name:"can_subscribe",kind:"scalar",T:8},{no:2,name:"can_publish",kind:"scalar",T:8},{no:3,name:"can_publish_data",kind:"scalar",T:8},{no:9,name:"can_publish_sources",kind:"enum",T:Sre.getEnumType(Pre),repeated:!0},{no:7,name:"hidden",kind:"scalar",T:8},{no:8,name:"recorder",kind:"scalar",T:8},{no:10,name:"can_update_metadata",kind:"scalar",T:8}]));class qre extends Ate{constructor(e){super(),this.sid="",this.identity="",this.state=Wre.JOINING,this.tracks=[],this.metadata="",this.joinedAt=Lte.zero,this.name="",this.version=0,this.region="",this.isPublisher=!1,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new qre).fromBinary(e,t)}static fromJson(e,t){return(new qre).fromJson(e,t)}static fromJsonString(e,t){return(new qre).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(qre,e,t)}}var Wre,Vre,$re,Qre,Jre;qre.runtime=Sre,qre.typeName="livekit.ParticipantInfo",qre.fields=Sre.util.newFieldList((()=>[{no:1,name:"sid",kind:"scalar",T:9},{no:2,name:"identity",kind:"scalar",T:9},{no:3,name:"state",kind:"enum",T:Sre.getEnumType(Wre)},{no:4,name:"tracks",kind:"message",T:ene,repeated:!0},{no:5,name:"metadata",kind:"scalar",T:9},{no:6,name:"joined_at",kind:"scalar",T:3},{no:9,name:"name",kind:"scalar",T:9},{no:10,name:"version",kind:"scalar",T:13},{no:11,name:"permission",kind:"message",T:Kre},{no:12,name:"region",kind:"scalar",T:9},{no:13,name:"is_publisher",kind:"scalar",T:8}])),function(e){e[e.JOINING=0]="JOINING",e[e.JOINED=1]="JOINED",e[e.ACTIVE=2]="ACTIVE",e[e.DISCONNECTED=3]="DISCONNECTED"}(Wre||(Wre={})),Sre.util.setEnumType(Wre,"livekit.ParticipantInfo.State",[{no:0,name:"JOINING"},{no:1,name:"JOINED"},{no:2,name:"ACTIVE"},{no:3,name:"DISCONNECTED"}]);class Zre extends Ate{constructor(e){super(),Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new Zre).fromBinary(e,t)}static fromJson(e,t){return(new Zre).fromJson(e,t)}static fromJsonString(e,t){return(new Zre).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(Zre,e,t)}}Zre.runtime=Sre,Zre.typeName="livekit.Encryption",Zre.fields=Sre.util.newFieldList((()=>[])),function(e){e[e.NONE=0]="NONE",e[e.GCM=1]="GCM",e[e.CUSTOM=2]="CUSTOM"}(Vre||(Vre={})),Sre.util.setEnumType(Vre,"livekit.Encryption.Type",[{no:0,name:"NONE"},{no:1,name:"GCM"},{no:2,name:"CUSTOM"}]);class Xre extends Ate{constructor(e){super(),this.mimeType="",this.mid="",this.cid="",this.layers=[],Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new Xre).fromBinary(e,t)}static fromJson(e,t){return(new Xre).fromJson(e,t)}static fromJsonString(e,t){return(new Xre).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(Xre,e,t)}}Xre.runtime=Sre,Xre.typeName="livekit.SimulcastCodecInfo",Xre.fields=Sre.util.newFieldList((()=>[{no:1,name:"mime_type",kind:"scalar",T:9},{no:2,name:"mid",kind:"scalar",T:9},{no:3,name:"cid",kind:"scalar",T:9},{no:4,name:"layers",kind:"message",T:tne,repeated:!0}]));class ene extends Ate{constructor(e){super(),this.sid="",this.type=Rre.AUDIO,this.name="",this.muted=!1,this.width=0,this.height=0,this.simulcast=!1,this.disableDtx=!1,this.source=Pre.UNKNOWN,this.layers=[],this.mimeType="",this.mid="",this.codecs=[],this.stereo=!1,this.disableRed=!1,this.encryption=Vre.NONE,this.stream="",Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new ene).fromBinary(e,t)}static fromJson(e,t){return(new ene).fromJson(e,t)}static fromJsonString(e,t){return(new ene).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(ene,e,t)}}ene.runtime=Sre,ene.typeName="livekit.TrackInfo",ene.fields=Sre.util.newFieldList((()=>[{no:1,name:"sid",kind:"scalar",T:9},{no:2,name:"type",kind:"enum",T:Sre.getEnumType(Rre)},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"muted",kind:"scalar",T:8},{no:5,name:"width",kind:"scalar",T:13},{no:6,name:"height",kind:"scalar",T:13},{no:7,name:"simulcast",kind:"scalar",T:8},{no:8,name:"disable_dtx",kind:"scalar",T:8},{no:9,name:"source",kind:"enum",T:Sre.getEnumType(Pre)},{no:10,name:"layers",kind:"message",T:tne,repeated:!0},{no:11,name:"mime_type",kind:"scalar",T:9},{no:12,name:"mid",kind:"scalar",T:9},{no:13,name:"codecs",kind:"message",T:Xre,repeated:!0},{no:14,name:"stereo",kind:"scalar",T:8},{no:15,name:"disable_red",kind:"scalar",T:8},{no:16,name:"encryption",kind:"enum",T:Sre.getEnumType(Vre)},{no:17,name:"stream",kind:"scalar",T:9}]));class tne extends Ate{constructor(e){super(),this.quality=Dre.LOW,this.width=0,this.height=0,this.bitrate=0,this.ssrc=0,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new tne).fromBinary(e,t)}static fromJson(e,t){return(new tne).fromJson(e,t)}static fromJsonString(e,t){return(new tne).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(tne,e,t)}}tne.runtime=Sre,tne.typeName="livekit.VideoLayer",tne.fields=Sre.util.newFieldList((()=>[{no:1,name:"quality",kind:"enum",T:Sre.getEnumType(Dre)},{no:2,name:"width",kind:"scalar",T:13},{no:3,name:"height",kind:"scalar",T:13},{no:4,name:"bitrate",kind:"scalar",T:13},{no:5,name:"ssrc",kind:"scalar",T:13}]));class rne extends Ate{constructor(e){super(),this.kind=$re.RELIABLE,this.value={case:void 0},Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new rne).fromBinary(e,t)}static fromJson(e,t){return(new rne).fromJson(e,t)}static fromJsonString(e,t){return(new rne).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(rne,e,t)}}rne.runtime=Sre,rne.typeName="livekit.DataPacket",rne.fields=Sre.util.newFieldList((()=>[{no:1,name:"kind",kind:"enum",T:Sre.getEnumType($re)},{no:2,name:"user",kind:"message",T:one,oneof:"value"},{no:3,name:"speaker",kind:"message",T:nne,oneof:"value"}])),function(e){e[e.RELIABLE=0]="RELIABLE",e[e.LOSSY=1]="LOSSY"}($re||($re={})),Sre.util.setEnumType($re,"livekit.DataPacket.Kind",[{no:0,name:"RELIABLE"},{no:1,name:"LOSSY"}]);class nne extends Ate{constructor(e){super(),this.speakers=[],Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new nne).fromBinary(e,t)}static fromJson(e,t){return(new nne).fromJson(e,t)}static fromJsonString(e,t){return(new nne).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(nne,e,t)}}nne.runtime=Sre,nne.typeName="livekit.ActiveSpeakerUpdate",nne.fields=Sre.util.newFieldList((()=>[{no:1,name:"speakers",kind:"message",T:ine,repeated:!0}]));class ine extends Ate{constructor(e){super(),this.sid="",this.level=0,this.active=!1,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new ine).fromBinary(e,t)}static fromJson(e,t){return(new ine).fromJson(e,t)}static fromJsonString(e,t){return(new ine).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(ine,e,t)}}ine.runtime=Sre,ine.typeName="livekit.SpeakerInfo",ine.fields=Sre.util.newFieldList((()=>[{no:1,name:"sid",kind:"scalar",T:9},{no:2,name:"level",kind:"scalar",T:2},{no:3,name:"active",kind:"scalar",T:8}]));class one extends Ate{constructor(e){super(),this.participantSid="",this.payload=new Uint8Array(0),this.destinationSids=[],Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new one).fromBinary(e,t)}static fromJson(e,t){return(new one).fromJson(e,t)}static fromJsonString(e,t){return(new one).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(one,e,t)}}one.runtime=Sre,one.typeName="livekit.UserPacket",one.fields=Sre.util.newFieldList((()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12},{no:3,name:"destination_sids",kind:"scalar",T:9,repeated:!0},{no:4,name:"topic",kind:"scalar",T:9,opt:!0}]));class sne extends Ate{constructor(e){super(),this.participantSid="",this.trackSids=[],Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new sne).fromBinary(e,t)}static fromJson(e,t){return(new sne).fromJson(e,t)}static fromJsonString(e,t){return(new sne).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(sne,e,t)}}sne.runtime=Sre,sne.typeName="livekit.ParticipantTracks",sne.fields=Sre.util.newFieldList((()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:2,name:"track_sids",kind:"scalar",T:9,repeated:!0}]));class ane extends Ate{constructor(e){super(),this.edition=Qre.Standard,this.version="",this.protocol=0,this.region="",this.nodeId="",this.debugInfo="",Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new ane).fromBinary(e,t)}static fromJson(e,t){return(new ane).fromJson(e,t)}static fromJsonString(e,t){return(new ane).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(ane,e,t)}}ane.runtime=Sre,ane.typeName="livekit.ServerInfo",ane.fields=Sre.util.newFieldList((()=>[{no:1,name:"edition",kind:"enum",T:Sre.getEnumType(Qre)},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"protocol",kind:"scalar",T:5},{no:4,name:"region",kind:"scalar",T:9},{no:5,name:"node_id",kind:"scalar",T:9},{no:6,name:"debug_info",kind:"scalar",T:9}])),function(e){e[e.Standard=0]="Standard",e[e.Cloud=1]="Cloud"}(Qre||(Qre={})),Sre.util.setEnumType(Qre,"livekit.ServerInfo.Edition",[{no:0,name:"Standard"},{no:1,name:"Cloud"}]);class une extends Ate{constructor(e){super(),this.sdk=Jre.UNKNOWN,this.version="",this.protocol=0,this.os="",this.osVersion="",this.deviceModel="",this.browser="",this.browserVersion="",this.address="",this.network="",Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new une).fromBinary(e,t)}static fromJson(e,t){return(new une).fromJson(e,t)}static fromJsonString(e,t){return(new une).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(une,e,t)}}une.runtime=Sre,une.typeName="livekit.ClientInfo",une.fields=Sre.util.newFieldList((()=>[{no:1,name:"sdk",kind:"enum",T:Sre.getEnumType(Jre)},{no:2,name:"version",kind:"scalar",T:9},{no:3,name:"protocol",kind:"scalar",T:5},{no:4,name:"os",kind:"scalar",T:9},{no:5,name:"os_version",kind:"scalar",T:9},{no:6,name:"device_model",kind:"scalar",T:9},{no:7,name:"browser",kind:"scalar",T:9},{no:8,name:"browser_version",kind:"scalar",T:9},{no:9,name:"address",kind:"scalar",T:9},{no:10,name:"network",kind:"scalar",T:9}])),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.JS=1]="JS",e[e.SWIFT=2]="SWIFT",e[e.ANDROID=3]="ANDROID",e[e.FLUTTER=4]="FLUTTER",e[e.GO=5]="GO",e[e.UNITY=6]="UNITY",e[e.REACT_NATIVE=7]="REACT_NATIVE",e[e.RUST=8]="RUST"}(Jre||(Jre={})),Sre.util.setEnumType(Jre,"livekit.ClientInfo.SDK",[{no:0,name:"UNKNOWN"},{no:1,name:"JS"},{no:2,name:"SWIFT"},{no:3,name:"ANDROID"},{no:4,name:"FLUTTER"},{no:5,name:"GO"},{no:6,name:"UNITY"},{no:7,name:"REACT_NATIVE"},{no:8,name:"RUST"}]);class lne extends Ate{constructor(e){super(),this.resumeConnection=Ore.UNSET,this.forceRelay=Ore.UNSET,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new lne).fromBinary(e,t)}static fromJson(e,t){return(new lne).fromJson(e,t)}static fromJsonString(e,t){return(new lne).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(lne,e,t)}}lne.runtime=Sre,lne.typeName="livekit.ClientConfiguration",lne.fields=Sre.util.newFieldList((()=>[{no:1,name:"video",kind:"message",T:cne},{no:2,name:"screen",kind:"message",T:cne},{no:3,name:"resume_connection",kind:"enum",T:Sre.getEnumType(Ore)},{no:4,name:"disabled_codecs",kind:"message",T:hne},{no:5,name:"force_relay",kind:"enum",T:Sre.getEnumType(Ore)}]));class cne extends Ate{constructor(e){super(),this.hardwareEncoder=Ore.UNSET,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new cne).fromBinary(e,t)}static fromJson(e,t){return(new cne).fromJson(e,t)}static fromJsonString(e,t){return(new cne).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(cne,e,t)}}cne.runtime=Sre,cne.typeName="livekit.VideoConfiguration",cne.fields=Sre.util.newFieldList((()=>[{no:1,name:"hardware_encoder",kind:"enum",T:Sre.getEnumType(Ore)}]));class hne extends Ate{constructor(e){super(),this.codecs=[],this.publish=[],Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new hne).fromBinary(e,t)}static fromJson(e,t){return(new hne).fromJson(e,t)}static fromJsonString(e,t){return(new hne).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(hne,e,t)}}hne.runtime=Sre,hne.typeName="livekit.DisabledCodecs",hne.fields=Sre.util.newFieldList((()=>[{no:1,name:"codecs",kind:"message",T:Gre,repeated:!0},{no:2,name:"publish",kind:"message",T:Gre,repeated:!0}]));class dne extends Ate{constructor(e){super(),this.duration=0,this.packets=0,this.packetRate=0,this.bytes=Lte.zero,this.headerBytes=Lte.zero,this.bitrate=0,this.packetsLost=0,this.packetLossRate=0,this.packetLossPercentage=0,this.packetsDuplicate=0,this.packetDuplicateRate=0,this.bytesDuplicate=Lte.zero,this.headerBytesDuplicate=Lte.zero,this.bitrateDuplicate=0,this.packetsPadding=0,this.packetPaddingRate=0,this.bytesPadding=Lte.zero,this.headerBytesPadding=Lte.zero,this.bitratePadding=0,this.packetsOutOfOrder=0,this.frames=0,this.frameRate=0,this.jitterCurrent=0,this.jitterMax=0,this.gapHistogram={},this.nacks=0,this.nackAcks=0,this.nackMisses=0,this.nackRepeated=0,this.plis=0,this.firs=0,this.rttCurrent=0,this.rttMax=0,this.keyFrames=0,this.layerLockPlis=0,this.sampleRate=0,this.driftMs=0,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new dne).fromBinary(e,t)}static fromJson(e,t){return(new dne).fromJson(e,t)}static fromJsonString(e,t){return(new dne).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(dne,e,t)}}dne.runtime=Sre,dne.typeName="livekit.RTPStats",dne.fields=Sre.util.newFieldList((()=>[{no:1,name:"start_time",kind:"message",T:zre},{no:2,name:"end_time",kind:"message",T:zre},{no:3,name:"duration",kind:"scalar",T:1},{no:4,name:"packets",kind:"scalar",T:13},{no:5,name:"packet_rate",kind:"scalar",T:1},{no:6,name:"bytes",kind:"scalar",T:4},{no:39,name:"header_bytes",kind:"scalar",T:4},{no:7,name:"bitrate",kind:"scalar",T:1},{no:8,name:"packets_lost",kind:"scalar",T:13},{no:9,name:"packet_loss_rate",kind:"scalar",T:1},{no:10,name:"packet_loss_percentage",kind:"scalar",T:2},{no:11,name:"packets_duplicate",kind:"scalar",T:13},{no:12,name:"packet_duplicate_rate",kind:"scalar",T:1},{no:13,name:"bytes_duplicate",kind:"scalar",T:4},{no:40,name:"header_bytes_duplicate",kind:"scalar",T:4},{no:14,name:"bitrate_duplicate",kind:"scalar",T:1},{no:15,name:"packets_padding",kind:"scalar",T:13},{no:16,name:"packet_padding_rate",kind:"scalar",T:1},{no:17,name:"bytes_padding",kind:"scalar",T:4},{no:41,name:"header_bytes_padding",kind:"scalar",T:4},{no:18,name:"bitrate_padding",kind:"scalar",T:1},{no:19,name:"packets_out_of_order",kind:"scalar",T:13},{no:20,name:"frames",kind:"scalar",T:13},{no:21,name:"frame_rate",kind:"scalar",T:1},{no:22,name:"jitter_current",kind:"scalar",T:1},{no:23,name:"jitter_max",kind:"scalar",T:1},{no:24,name:"gap_histogram",kind:"map",K:5,V:{kind:"scalar",T:13}},{no:25,name:"nacks",kind:"scalar",T:13},{no:37,name:"nack_acks",kind:"scalar",T:13},{no:26,name:"nack_misses",kind:"scalar",T:13},{no:38,name:"nack_repeated",kind:"scalar",T:13},{no:27,name:"plis",kind:"scalar",T:13},{no:28,name:"last_pli",kind:"message",T:zre},{no:29,name:"firs",kind:"scalar",T:13},{no:30,name:"last_fir",kind:"message",T:zre},{no:31,name:"rtt_current",kind:"scalar",T:13},{no:32,name:"rtt_max",kind:"scalar",T:13},{no:33,name:"key_frames",kind:"scalar",T:13},{no:34,name:"last_key_frame",kind:"message",T:zre},{no:35,name:"layer_lock_plis",kind:"scalar",T:13},{no:36,name:"last_layer_lock_pli",kind:"message",T:zre},{no:42,name:"sample_rate",kind:"scalar",T:1},{no:43,name:"drift_ms",kind:"scalar",T:1}]));class fne extends Ate{constructor(e){super(),this.unixMicro=Lte.zero,this.ticks=0,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new fne).fromBinary(e,t)}static fromJson(e,t){return(new fne).fromJson(e,t)}static fromJsonString(e,t){return(new fne).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(fne,e,t)}}fne.runtime=Sre,fne.typeName="livekit.TimedVersion",fne.fields=Sre.util.newFieldList((()=>[{no:1,name:"unix_micro",kind:"scalar",T:3},{no:2,name:"ticks",kind:"scalar",T:5}]));const pne=7e3,mne=[0,300,1200,2700,4800,pne,pne,pne,pne,pne];function gne(e,t,r,n){return new(r||(r=Promise))((function(i,o){function s(e){try{u(n.next(e))}catch(fVe){o(fVe)}}function a(e){try{u(n.throw(e))}catch(fVe){o(fVe)}}function u(e){e.done?i(e.value):function(e){return e instanceof r?e:new r((function(t){t(e)}))}(e.value).then(s,a)}u((n=n.apply(e,t||[])).next())}))}function yne(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function vne(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=yne(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,i){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,i,(t=e[r](t)).done,t.value)}))}}}var bne,wne={exports:{}},_ne="object"==typeof Reflect?Reflect:null,Ene=_ne&&"function"==typeof _ne.apply?_ne.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};bne=_ne&&"function"==typeof _ne.ownKeys?_ne.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var Ane=Number.isNaN||function(e){return e!=e};function Mne(){Mne.init.call(this)}wne.exports=Mne,wne.exports.once=function(e,t){return new Promise((function(r,n){function i(r){e.removeListener(t,o),n(r)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),r([].slice.call(arguments))}Dne(e,t,o,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&Dne(e,"error",t,r)}(e,i,{once:!0})}))},Mne.EventEmitter=Mne,Mne.prototype._events=void 0,Mne.prototype._eventsCount=0,Mne.prototype._maxListeners=void 0;var Sne=10;function xne(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function kne(e){return void 0===e._maxListeners?Mne.defaultMaxListeners:e._maxListeners}function Tne(e,t,r,n){var i,o,s;if(xne(r),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),o=e._events),s=o[t]),void 0===s)s=o[t]=r,++e._eventsCount;else if("function"==typeof s?s=o[t]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=kne(e))>0&&s.length>i&&!s.warned){s.warned=!0;var a=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");a.name="MaxListenersExceededWarning",a.emitter=e,a.type=t,a.count=s.length,function(e){tte&&tte.warn&&tte.warn(e)}(a)}return e}function Cne(){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 Ine(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=Cne.bind(n);return i.listener=r,n.wrapFn=i,i}function Nne(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(e){for(var t=new Array(e.length),r=0;r0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var a=i[e];if(void 0===a)return!1;if("function"==typeof a)Ene(a,this,t);else{var u=a.length,l=Pne(a,u);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(e,t){for(;t+1=0;n--)this.removeListener(e,t[n]);return this},Mne.prototype.listeners=function(e){return Nne(this,e,!0)},Mne.prototype.rawListeners=function(e){return Nne(this,e,!1)},Mne.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):Rne.call(e,t)},Mne.prototype.listenerCount=Rne,Mne.prototype.eventNames=function(){return this._eventsCount>0?bne(this._events):[]};var Lne=wne.exports;let One=!0,jne=!0;function Bne(e,t,r){const n=e.match(t);return n&&n.length>=r&&parseInt(n[r],10)}function Une(e,t,r){if(!e.RTCPeerConnection)return;const n=e.RTCPeerConnection.prototype,i=n.addEventListener;n.addEventListener=function(e,n){if(e!==t)return i.apply(this,arguments);const o=e=>{const t=r(e);t&&(n.handleEvent?n.handleEvent(t):n(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(n,o),i.apply(this,[e,o])};const o=n.removeEventListener;n.removeEventListener=function(e,r){if(e!==t||!this._eventMap||!this._eventMap[t])return o.apply(this,arguments);if(!this._eventMap[t].has(r))return o.apply(this,arguments);const n=this._eventMap[t].get(r);return this._eventMap[t].delete(r),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,o.apply(this,[e,n])},Object.defineProperty(n,"on"+t,{get(){return this["_on"+t]},set(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}function Fne(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(One=e,e?"adapter.js logging disabled":"adapter.js logging enabled")}function zne(e){return"boolean"!=typeof e?new Error("Argument type: "+typeof e+". Please use a boolean."):(jne=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))}function Hne(){if("object"==typeof window){if(One)return;void 0!==tte&&"function"==typeof tte.log&&tte.log.apply(tte,arguments)}}function Gne(e,t){jne&&tte.warn(e+" is deprecated, please use "+t+" instead.")}function Yne(e){const t={browser:null,version:null};if(void 0===e||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;const{navigator:r}=e;if(r.mozGetUserMedia)t.browser="firefox",t.version=Bne(r.userAgent,/Firefox\/(\d+)\./,1);else if(r.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=Bne(r.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else{if(!e.RTCPeerConnection||!r.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=Bne(r.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t}function Kne(e){return"[object Object]"===Object.prototype.toString.call(e)}function qne(e){return Kne(e)?Object.keys(e).reduce((function(t,r){const n=Kne(e[r]),i=n?qne(e[r]):e[r],o=n&&!Object.keys(i).length;return void 0===i||o?t:Object.assign(t,{[r]:i})}),{}):e}function Wne(e,t,r){t&&!r.has(t.id)&&(r.set(t.id,t),Object.keys(t).forEach((n=>{n.endsWith("Id")?Wne(e,e.get(t[n]),r):n.endsWith("Ids")&&t[n].forEach((t=>{Wne(e,e.get(t),r)}))})))}function Vne(e,t,r){const n=r?"outbound-rtp":"inbound-rtp",i=new Map;if(null===t)return i;const o=[];return e.forEach((e=>{"track"===e.type&&e.trackIdentifier===t.id&&o.push(e)})),o.forEach((t=>{e.forEach((r=>{r.type===n&&r.trackId===t.id&&Wne(e,r,i)}))})),i}const $ne=Hne;function Qne(e,t){const r=e&&e.navigator;if(!r.mediaDevices)return;const n=function(e){if("object"!=typeof e||e.mandatory||e.optional)return e;const t={};return Object.keys(e).forEach((r=>{if("require"===r||"advanced"===r||"mediaSource"===r)return;const n="object"==typeof e[r]?e[r]:{ideal:e[r]};void 0!==n.exact&&"number"==typeof n.exact&&(n.min=n.max=n.exact);const i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==n.ideal){t.optional=t.optional||[];let e={};"number"==typeof n.ideal?(e[i("min",r)]=n.ideal,t.optional.push(e),e={},e[i("max",r)]=n.ideal,t.optional.push(e)):(e[i("",r)]=n.ideal,t.optional.push(e))}void 0!==n.exact&&"number"!=typeof n.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",r)]=n.exact):["min","max"].forEach((e=>{void 0!==n[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,r)]=n[e])}))})),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},i=function(e,i){if(t.version>=61)return i(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"==typeof e.audio){const t=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])};t((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),t(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=n(e.audio)}if(e&&"object"==typeof e.video){let o=e.video.facingMode;o=o&&("object"==typeof o?o:{ideal:o});const s=t.version<66;if(o&&("user"===o.exact||"environment"===o.exact||"user"===o.ideal||"environment"===o.ideal)&&(!r.mediaDevices.getSupportedConstraints||!r.mediaDevices.getSupportedConstraints().facingMode||s)){let t;if(delete e.video.facingMode,"environment"===o.exact||"environment"===o.ideal?t=["back","rear"]:"user"!==o.exact&&"user"!==o.ideal||(t=["front"]),t)return r.mediaDevices.enumerateDevices().then((r=>{r=r.filter((e=>"videoinput"===e.kind));let s=r.find((e=>t.some((t=>e.label.toLowerCase().includes(t)))));return!s&&r.length&&t.includes("back")&&(s=r[r.length-1]),s&&(e.video.deviceId=o.exact?{exact:s.deviceId}:{ideal:s.deviceId}),e.video=n(e.video),$ne("chrome: "+JSON.stringify(e)),i(e)}))}e.video=n(e.video)}return $ne("chrome: "+JSON.stringify(e)),i(e)},o=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&": ")+this.message}}};if(r.getUserMedia=(function(e,t,n){i(e,(e=>{r.webkitGetUserMedia(e,t,(e=>{n&&n(o(e))}))}))}).bind(r),r.mediaDevices.getUserMedia){const e=r.mediaDevices.getUserMedia.bind(r.mediaDevices);r.mediaDevices.getUserMedia=function(t){return i(t,(t=>e(t).then((e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach((e=>{e.stop()})),new DOMException("","NotFoundError");return e}),(e=>Promise.reject(o(e))))))}}}function Jne(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function Zne(e){if("object"==typeof e&&e.RTCPeerConnection&&!("ontrack"in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener("track",this._ontrack),this.addEventListener("track",this._ontrack=e)},enumerable:!0,configurable:!0});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener("addtrack",(r=>{let n;n=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===r.track.id)):{track:r.track};const i=new Event("track");i.track=r.track,i.receiver=n,i.transceiver={receiver:n},i.streams=[t.stream],this.dispatchEvent(i)})),t.stream.getTracks().forEach((r=>{let n;n=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find((e=>e.track&&e.track.id===r.id)):{track:r};const i=new Event("track");i.track=r,i.receiver=n,i.transceiver={receiver:n},i.streams=[t.stream],this.dispatchEvent(i)}))},this.addEventListener("addstream",this._ontrackpoly)),t.apply(this,arguments)}}else Une(e,"track",(e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e)))}function Xne(e){if("object"==typeof e&&e.RTCPeerConnection&&!("getSenders"in e.RTCPeerConnection.prototype)&&"createDTMFSender"in e.RTCPeerConnection.prototype){const t=function(e,t){return{track:t,get dtmf(){return void 0===this._dtmf&&("audio"===t.kind?this._dtmf=e.createDTMFSender(t):this._dtmf=null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};const r=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){let i=r.apply(this,arguments);return i||(i=t(this,e),this._senders.push(i)),i};const n=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){n.apply(this,arguments);const t=this._senders.indexOf(e);-1!==t&&this._senders.splice(t,1)}}const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach((e=>{this._senders.push(t(this,e))}))};const n=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach((e=>{const t=this._senders.find((t=>t.track===e));t&&this._senders.splice(this._senders.indexOf(t),1)}))}}else if("object"==typeof e&&e.RTCPeerConnection&&"getSenders"in e.RTCPeerConnection.prototype&&"createDTMFSender"in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!("dtmf"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=this._pc.createDTMFSender(this.track):this._dtmf=null),this._dtmf}})}}function eie(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,r,n]=arguments;if(arguments.length>0&&"function"==typeof e)return t.apply(this,arguments);if(0===t.length&&(0===arguments.length||"function"!=typeof e))return t.apply(this,[]);const i=function(e){const t={};return e.result().forEach((e=>{const r={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach((t=>{r[t]=e.stat(t)})),t[r.id]=r})),t},o=function(e){return new Map(Object.keys(e).map((t=>[t,e[t]])))};if(arguments.length>=2){const n=function(e){r(o(i(e)))};return t.apply(this,[n,e])}return new Promise(((e,r)=>{t.apply(this,[function(t){e(o(i(t)))},r])})).then(r,n)}}function tie(e){if(!("object"==typeof e&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!("getStats"in e.RTCRtpSender.prototype)){const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=r.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>Vne(t,e.track,!0)))}}if(!("getStats"in e.RTCRtpReceiver.prototype)){const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),Une(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){const e=this;return this._pc.getStats().then((t=>Vne(t,e.track,!1)))}}if(!("getStats"in e.RTCRtpSender.prototype)||!("getStats"in e.RTCRtpReceiver.prototype))return;const t=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){const e=arguments[0];let t,r,n;return this.getSenders().forEach((r=>{r.track===e&&(t?n=!0:t=r)})),this.getReceivers().forEach((t=>(t.track===e&&(r?n=!0:r=t),t.track===e))),n||t&&r?Promise.reject(new DOMException("There are more than one sender or receiver for the track.","InvalidAccessError")):t?t.getStats():r?r.getStats():Promise.reject(new DOMException("There is no sender or receiver for the track.","InvalidAccessError"))}return t.apply(this,arguments)}}function rie(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map((e=>this._shimmedLocalStreams[e][0]))};const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){if(!r)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};const n=t.apply(this,arguments);return this._shimmedLocalStreams[r.id]?-1===this._shimmedLocalStreams[r.id].indexOf(n)&&this._shimmedLocalStreams[r.id].push(n):this._shimmedLocalStreams[r.id]=[r,n],n};const r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach((e=>{const t=this.getSenders().find((t=>t.track===e));if(t)throw new DOMException("Track already exists.","InvalidAccessError")}));const t=this.getSenders();r.apply(this,arguments);const n=this.getSenders().filter((e=>-1===t.indexOf(e)));this._shimmedLocalStreams[e.id]=[e].concat(n)};const n=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],n.apply(this,arguments)};const i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach((t=>{const r=this._shimmedLocalStreams[t].indexOf(e);-1!==r&&this._shimmedLocalStreams[t].splice(r,1),1===this._shimmedLocalStreams[t].length&&delete this._shimmedLocalStreams[t]})),i.apply(this,arguments)}}function nie(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return rie(e);const r=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){const e=r.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map((e=>this._reverseStreams[e.id]))};const n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach((e=>{const t=this.getSenders().find((t=>t.track===e));if(t)throw new DOMException("Track already exists.","InvalidAccessError")})),!this._reverseStreams[t.id]){const r=new e.MediaStream(t.getTracks());this._streams[t.id]=r,this._reverseStreams[r.id]=t,t=r}n.apply(this,[t])};const i=e.RTCPeerConnection.prototype.removeStream;function o(e,t){let r=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const n=e._reverseStreams[t],i=e._streams[n.id];r=r.replace(new RegExp(i.id,"g"),n.id)})),new RTCSessionDescription({type:t.type,sdp:r})}function s(e,t){let r=t.sdp;return Object.keys(e._reverseStreams||[]).forEach((t=>{const n=e._reverseStreams[t],i=e._streams[n.id];r=r.replace(new RegExp(n.id,"g"),i.id)})),new RTCSessionDescription({type:t.type,sdp:r})}e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,r){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");const n=[].slice.call(arguments,1);if(1!==n.length||!n[0].getTracks().find((e=>e===t)))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");const i=this.getSenders().find((e=>e.track===t));if(i)throw new DOMException("Track already exists.","InvalidAccessError");this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};const o=this._streams[r.id];if(o)o.addTrack(t),Promise.resolve().then((()=>{this.dispatchEvent(new Event("negotiationneeded"))}));else{const n=new e.MediaStream([t]);this._streams[r.id]=n,this._reverseStreams[n.id]=r,this.addStream(n)}return this.getSenders().find((e=>e.track===t))},["createOffer","createAnswer"].forEach((function(t){const r=e.RTCPeerConnection.prototype[t],n={[t](){const e=arguments;return arguments.length&&"function"==typeof arguments[0]?r.apply(this,[t=>{const r=o(this,t);e[0].apply(null,[r])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):r.apply(this,arguments).then((e=>o(this,e)))}};e.RTCPeerConnection.prototype[t]=n[t]}));const a=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=s(this,arguments[0]),a.apply(this,arguments)):a.apply(this,arguments)};const u=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){const e=u.get.apply(this);return""===e.type?e:o(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){if("closed"===this.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(e._pc===this))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");let t;this._streams=this._streams||{},Object.keys(this._streams).forEach((r=>{this._streams[r].getTracks().find((t=>e.track===t))&&(t=this._streams[r])})),t&&(1===t.getTracks().length?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event("negotiationneeded")))}}function iie(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const r=e.RTCPeerConnection.prototype[t],n={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=n[t]}))}function oie(e,t){Une(e,"negotiationneeded",(e=>{const r=e.target;if(!(t.version<72||r.getConfiguration&&"plan-b"===r.getConfiguration().sdpSemantics)||"stable"===r.signalingState)return e}))}var sie=Object.freeze({__proto__:null,fixNegotiationNeeded:oie,shimAddTrackRemoveTrack:nie,shimAddTrackRemoveTrackWithNative:rie,shimGetDisplayMedia:function(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&("function"==typeof t?e.navigator.mediaDevices.getDisplayMedia=function(r){return t(r).then((t=>{const n=r.video&&r.video.width,i=r.video&&r.video.height,o=r.video&&r.video.frameRate;return r.video={mandatory:{chromeMediaSource:"desktop",chromeMediaSourceId:t,maxFrameRate:o||3}},n&&(r.video.mandatory.maxWidth=n),i&&(r.video.mandatory.maxHeight=i),e.navigator.mediaDevices.getUserMedia(r)}))}:tte.error("shimGetDisplayMedia: getSourceId argument is not a function"))},shimGetSendersWithDtmf:Xne,shimGetStats:eie,shimGetUserMedia:Qne,shimMediaStream:Jne,shimOnTrack:Zne,shimPeerConnection:iie,shimSenderReceiverGetStats:tie});function aie(e,t){const r=e&&e.navigator,n=e&&e.MediaStreamTrack;if(r.getUserMedia=function(e,t,n){Gne("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),r.mediaDevices.getUserMedia(e).then(t,n)},!(t.version>55&&"autoGainControl"in r.mediaDevices.getSupportedConstraints())){const e=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])},t=r.mediaDevices.getUserMedia.bind(r.mediaDevices);if(r.mediaDevices.getUserMedia=function(r){return"object"==typeof r&&"object"==typeof r.audio&&(r=JSON.parse(JSON.stringify(r)),e(r.audio,"autoGainControl","mozAutoGainControl"),e(r.audio,"noiseSuppression","mozNoiseSuppression")),t(r)},n&&n.prototype.getSettings){const t=n.prototype.getSettings;n.prototype.getSettings=function(){const r=t.apply(this,arguments);return e(r,"mozAutoGainControl","autoGainControl"),e(r,"mozNoiseSuppression","noiseSuppression"),r}}if(n&&n.prototype.applyConstraints){const t=n.prototype.applyConstraints;n.prototype.applyConstraints=function(r){return"audio"===this.kind&&"object"==typeof r&&(r=JSON.parse(JSON.stringify(r)),e(r,"autoGainControl","mozAutoGainControl"),e(r,"noiseSuppression","mozNoiseSuppression")),t.apply(this,[r])}}}}function uie(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function lie(e,t){if("object"!=typeof e||!e.RTCPeerConnection&&!e.mozRTCPeerConnection)return;!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach((function(t){const r=e.RTCPeerConnection.prototype[t],n={[t](){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=n[t]}));const r={inboundrtp:"inbound-rtp",outboundrtp:"outbound-rtp",candidatepair:"candidate-pair",localcandidate:"local-candidate",remotecandidate:"remote-candidate"},n=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){const[e,i,o]=arguments;return n.apply(this,[e||null]).then((e=>{if(t.version<53&&!i)try{e.forEach((e=>{e.type=r[e.type]||e.type}))}catch(fVe){if("TypeError"!==fVe.name)throw fVe;e.forEach(((t,n)=>{e.set(n,Object.assign({},t,{type:r[t.type]||t.type}))}))}return e})).then(i,o)}}function cie(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpSender.prototype)return;const t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e});const r=e.RTCPeerConnection.prototype.addTrack;r&&(e.RTCPeerConnection.prototype.addTrack=function(){const e=r.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function hie(e){if("object"!=typeof e||!e.RTCPeerConnection||!e.RTCRtpSender)return;if(e.RTCRtpSender&&"getStats"in e.RTCRtpReceiver.prototype)return;const t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){const e=t.apply(this,[]);return e.forEach((e=>e._pc=this)),e}),Une(e,"track",(e=>(e.receiver._pc=e.srcElement,e))),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function die(e){e.RTCPeerConnection&&!("removeStream"in e.RTCPeerConnection.prototype)&&(e.RTCPeerConnection.prototype.removeStream=function(e){Gne("removeStream","removeTrack"),this.getSenders().forEach((t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)}))})}function fie(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function pie(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.addTransceiver;t&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let e=arguments[1]&&arguments[1].sendEncodings;void 0===e&&(e=[]),e=[...e];const r=e.length>0;r&&e.forEach((e=>{if("rid"in e){if(!/^[a-z0-9]{0,16}$/i.test(e.rid))throw new TypeError("Invalid RID value provided.")}if("scaleResolutionDownBy"in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw new RangeError("scale_resolution_down_by must be >= 1.0");if("maxFramerate"in e&&!(parseFloat(e.maxFramerate)>=0))throw new RangeError("max_framerate must be >= 0.0")}));const n=t.apply(this,arguments);if(r){const{sender:t}=n,r=t.getParameters();(!("encodings"in r)||1===r.encodings.length&&0===Object.keys(r.encodings[0]).length)&&(r.encodings=e,t.sendEncodings=e,this.setParametersPromises.push(t.setParameters(r).then((()=>{delete t.sendEncodings})).catch((()=>{delete t.sendEncodings}))))}return n})}function mie(e){if("object"!=typeof e||!e.RTCRtpSender)return;const t=e.RTCRtpSender.prototype.getParameters;t&&(e.RTCRtpSender.prototype.getParameters=function(){const e=t.apply(this,arguments);return"encodings"in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function gie(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}function yie(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then((()=>t.apply(this,arguments))).finally((()=>{this.setParametersPromises=[]})):t.apply(this,arguments)}}var vie=Object.freeze({__proto__:null,shimAddTransceiver:pie,shimCreateAnswer:yie,shimCreateOffer:gie,shimGetDisplayMedia:function(e,t){e.navigator.mediaDevices&&"getDisplayMedia"in e.navigator.mediaDevices||e.navigator.mediaDevices&&(e.navigator.mediaDevices.getDisplayMedia=function(r){if(!r||!r.video){const e=new DOMException("getDisplayMedia without video constraints is undefined");return e.name="NotFoundError",e.code=8,Promise.reject(e)}return!0===r.video?r.video={mediaSource:t}:r.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(r)})},shimGetParameters:mie,shimGetUserMedia:aie,shimOnTrack:uie,shimPeerConnection:lie,shimRTCDataChannel:fie,shimReceiverGetStats:hie,shimRemoveStream:die,shimSenderGetStats:cie});function bie(e){if("object"==typeof e&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){const t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach((r=>t.call(this,r,e))),e.getVideoTracks().forEach((r=>t.call(this,r,e)))},e.RTCPeerConnection.prototype.addTrack=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]})),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);const t=this._localStreams.indexOf(e);if(-1===t)return;this._localStreams.splice(t,1);const r=e.getTracks();this.getSenders().forEach((e=>{r.includes(e.track)&&this.removeTrack(e)}))})}}function wie(e){if("object"==typeof e&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=e=>{e.streams.forEach((e=>{if(this._remoteStreams||(this._remoteStreams=[]),this._remoteStreams.includes(e))return;this._remoteStreams.push(e);const t=new Event("addstream");t.stream=e,this.dispatchEvent(t)}))})}});const t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){const e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach((t=>{if(e._remoteStreams||(e._remoteStreams=[]),e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);const r=new Event("addstream");r.stream=t,e.dispatchEvent(r)}))}),t.apply(e,arguments)}}}function _ie(e){if("object"!=typeof e||!e.RTCPeerConnection)return;const t=e.RTCPeerConnection.prototype,r=t.createOffer,n=t.createAnswer,i=t.setLocalDescription,o=t.setRemoteDescription,s=t.addIceCandidate;t.createOffer=function(e,t){const n=arguments.length>=2?arguments[2]:arguments[0],i=r.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){const r=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[r]);return t?(i.then(e,t),Promise.resolve()):i};let a=function(e,t,r){const n=i.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n};t.setLocalDescription=a,a=function(e,t,r){const n=o.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n},t.setRemoteDescription=a,a=function(e,t,r){const n=s.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n},t.addIceCandidate=a}function Eie(e){const t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){const e=t.mediaDevices,r=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>r(Aie(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=(function(e,r,n){t.mediaDevices.getUserMedia(e).then(r,n)}).bind(t))}function Aie(e){return e&&void 0!==e.video?Object.assign({},e,{video:qne(e.video)}):e}function Mie(e){if(!e.RTCPeerConnection)return;const t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,r){if(e&&e.iceServers){const t=[];for(let r=0;rt.generateCertificate})}function Sie(e){"object"==typeof e&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function xie(e){const t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){void 0!==e.offerToReceiveAudio&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);const t=this.getTransceivers().find((e=>"audio"===e.receiver.track.kind));!1===e.offerToReceiveAudio&&t?"sendrecv"===t.direction?t.setDirection?t.setDirection("sendonly"):t.direction="sendonly":"recvonly"===t.direction&&(t.setDirection?t.setDirection("inactive"):t.direction="inactive"):!0!==e.offerToReceiveAudio||t||this.addTransceiver("audio",{direction:"recvonly"}),void 0!==e.offerToReceiveVideo&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);const r=this.getTransceivers().find((e=>"video"===e.receiver.track.kind));!1===e.offerToReceiveVideo&&r?"sendrecv"===r.direction?r.setDirection?r.setDirection("sendonly"):r.direction="sendonly":"recvonly"===r.direction&&(r.setDirection?r.setDirection("inactive"):r.direction="inactive"):!0!==e.offerToReceiveVideo||r||this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}}function kie(e){"object"!=typeof e||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var Tie=Object.freeze({__proto__:null,shimAudioContext:kie,shimCallbacksAPI:_ie,shimConstraints:Aie,shimCreateOfferLegacy:xie,shimGetUserMedia:Eie,shimLocalStreamsAPI:bie,shimRTCIceServerUrls:Mie,shimRemoteStreamsAPI:wie,shimTrackEventTransceiver:Sie}),Cie={exports:{}};!function(e){const t={generateIdentifier:function(){return Math.random().toString(36).substring(2,12)}};t.localCName=t.generateIdentifier(),t.splitLines=function(e){return e.trim().split("\n").map((e=>e.trim()))},t.splitSections=function(e){return e.split("\nm=").map(((e,t)=>(t>0?"m="+e:e).trim()+"\r\n"))},t.getDescription=function(e){const r=t.splitSections(e);return r&&r[0]},t.getMediaSections=function(e){const r=t.splitSections(e);return r.shift(),r},t.matchPrefix=function(e,r){return t.splitLines(e).filter((e=>0===e.indexOf(r)))},t.parseCandidate=function(e){let t;t=0===e.indexOf("a=candidate:")?e.substring(12).split(" "):e.substring(10).split(" ");const r={foundation:t[0],component:{1:"rtp",2:"rtcp"}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let n=8;n0?t[0].split("/")[1]:"sendrecv",uri:t[1],attributes:t.slice(2).join(" ")}},t.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+(e.attributes?" "+e.attributes:"")+"\r\n"},t.parseFmtp=function(e){const t={};let r;const n=e.substring(e.indexOf(" ")+1).split(";");for(let i=0;i{void 0!==e.parameters[t]?n.push(t+"="+e.parameters[t]):n.push(t)})),t+="a=fmtp:"+r+" "+n.join(";")+"\r\n"}return t},t.parseRtcpFb=function(e){const t=e.substring(e.indexOf(" ")+1).split(" ");return{type:t.shift(),parameter:t.join(" ")}},t.writeRtcpFb=function(e){let t="",r=e.payloadType;return void 0!==e.preferredPayloadType&&(r=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach((e=>{t+="a=rtcp-fb:"+r+" "+e.type+(e.parameter&&e.parameter.length?" "+e.parameter:"")+"\r\n"})),t},t.parseSsrcMedia=function(e){const t=e.indexOf(" "),r={ssrc:parseInt(e.substring(7,t),10)},n=e.indexOf(":",t);return n>-1?(r.attribute=e.substring(t+1,n),r.value=e.substring(n+1)):r.attribute=e.substring(t+1),r},t.parseSsrcGroup=function(e){const t=e.substring(13).split(" ");return{semantics:t.shift(),ssrcs:t.map((e=>parseInt(e,10)))}},t.getMid=function(e){const r=t.matchPrefix(e,"a=mid:")[0];if(r)return r.substring(6)},t.parseFingerprint=function(e){const t=e.substring(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},t.getDtlsParameters=function(e,r){return{role:"auto",fingerprints:t.matchPrefix(e+r,"a=fingerprint:").map(t.parseFingerprint)}},t.writeDtlsParameters=function(e,t){let r="a=setup:"+t+"\r\n";return e.fingerprints.forEach((e=>{r+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"})),r},t.parseCryptoLine=function(e){const t=e.substring(9).split(" ");return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},t.writeCryptoLine=function(e){return"a=crypto:"+e.tag+" "+e.cryptoSuite+" "+("object"==typeof e.keyParams?t.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?" "+e.sessionParams.join(" "):"")+"\r\n"},t.parseCryptoKeyParams=function(e){if(0!==e.indexOf("inline:"))return null;const t=e.substring(7).split("|");return{keyMethod:"inline",keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(":")[0]:void 0,mkiLength:t[2]?t[2].split(":")[1]:void 0}},t.writeCryptoKeyParams=function(e){return e.keyMethod+":"+e.keySalt+(e.lifeTime?"|"+e.lifeTime:"")+(e.mkiValue&&e.mkiLength?"|"+e.mkiValue+":"+e.mkiLength:"")},t.getCryptoParameters=function(e,r){return t.matchPrefix(e+r,"a=crypto:").map(t.parseCryptoLine)},t.getIceParameters=function(e,r){const n=t.matchPrefix(e+r,"a=ice-ufrag:")[0],i=t.matchPrefix(e+r,"a=ice-pwd:")[0];return n&&i?{usernameFragment:n.substring(12),password:i.substring(10)}:null},t.writeIceParameters=function(e){let t="a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n";return e.iceLite&&(t+="a=ice-lite\r\n"),t},t.parseRtpParameters=function(e){const r={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},n=t.splitLines(e)[0].split(" ");r.profile=n[2];for(let o=3;o{r.headerExtensions.push(t.parseExtmap(e))}));const i=t.matchPrefix(e,"a=rtcp-fb:* ").map(t.parseRtcpFb);return r.codecs.forEach((e=>{i.forEach((t=>{e.rtcpFeedback.find((e=>e.type===t.type&&e.parameter===t.parameter))||e.rtcpFeedback.push(t)}))})),r},t.writeRtpDescription=function(e,r){let n="";n+="m="+e+" ",n+=r.codecs.length>0?"9":"0",n+=" "+(r.profile||"UDP/TLS/RTP/SAVPF")+" ",n+=r.codecs.map((e=>void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType)).join(" ")+"\r\n",n+="c=IN IP4 0.0.0.0\r\n",n+="a=rtcp:9 IN IP4 0.0.0.0\r\n",r.codecs.forEach((e=>{n+=t.writeRtpMap(e),n+=t.writeFmtp(e),n+=t.writeRtcpFb(e)}));let i=0;return r.codecs.forEach((e=>{e.maxptime>i&&(i=e.maxptime)})),i>0&&(n+="a=maxptime:"+i+"\r\n"),r.headerExtensions&&r.headerExtensions.forEach((e=>{n+=t.writeExtmap(e)})),n},t.parseRtpEncodingParameters=function(e){const r=[],n=t.parseRtpParameters(e),i=-1!==n.fecMechanisms.indexOf("RED"),o=-1!==n.fecMechanisms.indexOf("ULPFEC"),s=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"cname"===e.attribute)),a=s.length>0&&s[0].ssrc;let u;const l=t.matchPrefix(e,"a=ssrc-group:FID").map((e=>e.substring(17).split(" ").map((e=>parseInt(e,10)))));l.length>0&&l[0].length>1&&l[0][0]===a&&(u=l[0][1]),n.codecs.forEach((e=>{if("RTX"===e.name.toUpperCase()&&e.parameters.apt){let t={ssrc:a,codecPayloadType:parseInt(e.parameters.apt,10)};a&&u&&(t.rtx={ssrc:u}),r.push(t),i&&(t=JSON.parse(JSON.stringify(t)),t.fec={ssrc:a,mechanism:o?"red+ulpfec":"red"},r.push(t))}})),0===r.length&&a&&r.push({ssrc:a});let c=t.matchPrefix(e,"b=");return c.length&&(c=0===c[0].indexOf("b=TIAS:")?parseInt(c[0].substring(7),10):0===c[0].indexOf("b=AS:")?1e3*parseInt(c[0].substring(5),10)*.95-16e3:void 0,r.forEach((e=>{e.maxBitrate=c}))),r},t.parseRtcpParameters=function(e){const r={},n=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"cname"===e.attribute))[0];n&&(r.cname=n.value,r.ssrc=n.ssrc);const i=t.matchPrefix(e,"a=rtcp-rsize");r.reducedSize=i.length>0,r.compound=0===i.length;const o=t.matchPrefix(e,"a=rtcp-mux");return r.mux=o.length>0,r},t.writeRtcpParameters=function(e){let t="";return e.reducedSize&&(t+="a=rtcp-rsize\r\n"),e.mux&&(t+="a=rtcp-mux\r\n"),void 0!==e.ssrc&&e.cname&&(t+="a=ssrc:"+e.ssrc+" cname:"+e.cname+"\r\n"),t},t.parseMsid=function(e){let r;const n=t.matchPrefix(e,"a=msid:");if(1===n.length)return r=n[0].substring(7).split(" "),{stream:r[0],track:r[1]};const i=t.matchPrefix(e,"a=ssrc:").map((e=>t.parseSsrcMedia(e))).filter((e=>"msid"===e.attribute));return i.length>0?(r=i[0].value.split(" "),{stream:r[0],track:r[1]}):void 0},t.parseSctpDescription=function(e){const r=t.parseMLine(e),n=t.matchPrefix(e,"a=max-message-size:");let i;n.length>0&&(i=parseInt(n[0].substring(19),10)),isNaN(i)&&(i=65536);const o=t.matchPrefix(e,"a=sctp-port:");if(o.length>0)return{port:parseInt(o[0].substring(12),10),protocol:r.fmt,maxMessageSize:i};const s=t.matchPrefix(e,"a=sctpmap:");if(s.length>0){const e=s[0].substring(10).split(" ");return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:i}}},t.writeSctpDescription=function(e,t){let r=[];return r="DTLS/SCTP"!==e.protocol?["m="+e.kind+" 9 "+e.protocol+" "+t.protocol+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctp-port:"+t.port+"\r\n"]:["m="+e.kind+" 9 "+e.protocol+" "+t.port+"\r\n","c=IN IP4 0.0.0.0\r\n","a=sctpmap:"+t.port+" "+t.protocol+" 65535\r\n"],void 0!==t.maxMessageSize&&r.push("a=max-message-size:"+t.maxMessageSize+"\r\n"),r.join("")},t.generateSessionId=function(){return Math.random().toString().substr(2,22)},t.writeSessionBoilerplate=function(e,r,n){let i;const o=void 0!==r?r:2;i=e||t.generateSessionId();return"v=0\r\no="+(n||"thisisadapterortc")+" "+i+" "+o+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},t.getDirection=function(e,r){const n=t.splitLines(e);for(let t=0;t(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t)))}function Die(e){!e.RTCIceCandidate||e.RTCIceCandidate&&"relayProtocol"in e.RTCIceCandidate.prototype||Une(e,"icecandidate",(e=>{if(e.candidate){const t=Nie.parseCandidate(e.candidate.candidate);"relay"===t.type&&(e.candidate.relayProtocol={0:"tls",1:"tcp",2:"udp"}[t.priority>>24])}return e}))}function Lie(e,t){if(!e.RTCPeerConnection)return;"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return void 0===this._sctp?null:this._sctp}});const r=function(e){if(!e||!e.sdp)return!1;const t=Nie.splitSections(e.sdp);return t.shift(),t.some((e=>{const t=Nie.parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")}))},n=function(e){const t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;const r=parseInt(t[1],10);return r!=r?-1:r},i=function(e){let r=65536;return"firefox"===t.browser&&(r=t.version<57?-1===e?16384:2147483637:t.version<60?57===t.version?65535:65536:2147483637),r},o=function(e,r){let n=65536;"firefox"===t.browser&&57===t.version&&(n=65535);const i=Nie.matchPrefix(e.sdp,"a=max-message-size:");return i.length>0?n=parseInt(i[0].substring(19),10):"firefox"===t.browser&&-1!==r&&(n=2147483637),n},s=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,"chrome"===t.browser&&t.version>=76){const{sdpSemantics:e}=this.getConfiguration();"plan-b"===e&&Object.defineProperty(this,"sctp",{get(){return void 0===this._sctp?null:this._sctp},enumerable:!0,configurable:!0})}if(r(arguments[0])){const e=n(arguments[0]),t=i(e),r=o(arguments[0],e);let s;s=0===t&&0===r?Number.POSITIVE_INFINITY:0===t||0===r?Math.max(t,r):Math.min(t,r);const a={};Object.defineProperty(a,"maxMessageSize",{get:()=>s}),this._sctp=a}return s.apply(this,arguments)}}function Oie(e){if(!e.RTCPeerConnection||!("createDataChannel"in e.RTCPeerConnection.prototype))return;function t(e,t){const r=e.send;e.send=function(){const n=arguments[0],i=n.length||n.size||n.byteLength;if("open"===e.readyState&&t.sctp&&i>t.sctp.maxMessageSize)throw new TypeError("Message too large (can send a maximum of "+t.sctp.maxMessageSize+" bytes)");return r.apply(e,arguments)}}const r=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){const e=r.apply(this,arguments);return t(e,this),e},Une(e,"datachannel",(e=>(t(e.channel,e.target),e)))}function jie(e){if(!e.RTCPeerConnection||"connectionState"in e.RTCPeerConnection.prototype)return;const t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:"connected",checking:"connecting"}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(e){this._onconnectionstatechange&&(this.removeEventListener("connectionstatechange",this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener("connectionstatechange",this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),["setLocalDescription","setRemoteDescription"].forEach((e=>{const r=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{const t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;const r=new Event("connectionstatechange",e);t.dispatchEvent(r)}return e},this.addEventListener("iceconnectionstatechange",this._connectionstatechangepoly)),r.apply(this,arguments)}}))}function Bie(e,t){if(!e.RTCPeerConnection)return;if("chrome"===t.browser&&t.version>=71)return;if("safari"===t.browser&&t.version>=605)return;const r=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&-1!==t.sdp.indexOf("\na=extmap-allow-mixed")){const r=t.sdp.split("\n").filter((e=>"a=extmap-allow-mixed"!==e.trim())).join("\n");e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:r}):t.sdp=r}return r.apply(this,arguments)}}function Uie(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const r=e.RTCPeerConnection.prototype.addIceCandidate;r&&0!==r.length&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?("chrome"===t.browser&&t.version<78||"firefox"===t.browser&&t.version<68||"safari"===t.browser)&&arguments[0]&&""===arguments[0].candidate?Promise.resolve():r.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function Fie(e,t){if(!e.RTCPeerConnection||!e.RTCPeerConnection.prototype)return;const r=e.RTCPeerConnection.prototype.setLocalDescription;r&&0!==r.length&&(e.RTCPeerConnection.prototype.setLocalDescription=function(){let e=arguments[0]||{};if("object"!=typeof e||e.type&&e.sdp)return r.apply(this,arguments);if(e={type:e.type,sdp:e.sdp},!e.type)switch(this.signalingState){case"stable":case"have-local-offer":case"have-remote-pranswer":e.type="offer";break;default:e.type="answer"}if(e.sdp||"offer"!==e.type&&"answer"!==e.type)return r.apply(this,[e]);const t="offer"===e.type?this.createOffer:this.createAnswer;return t.apply(this).then((e=>r.apply(this,[e])))})}var zie,Hie,Gie,Yie,Kie=Object.freeze({__proto__:null,removeExtmapAllowMixed:Bie,shimAddIceCandidateNullOrEmpty:Uie,shimConnectionState:jie,shimMaxMessageSize:Lie,shimParameterlessSetLocalDescription:Fie,shimRTCIceCandidate:Pie,shimRTCIceCandidateRelayProtocol:Die,shimSendThrowTypeError:Oie});!function(){let{window:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{shimChrome:!0,shimFirefox:!0,shimSafari:!0};const r=Hne,n=Yne(e),i={browserDetails:n,commonShim:Kie,extractVersion:Bne,disableLog:Fne,disableWarnings:zne,sdp:Rie};switch(n.browser){case"chrome":if(!sie||!iie||!t.shimChrome)return r("Chrome shim is not included in this adapter release."),i;if(null===n.version)return r("Chrome shim can not determine version, not shimming."),i;r("adapter.js shimming chrome."),i.browserShim=sie,Uie(e,n),Fie(e),Qne(e,n),Jne(e),iie(e,n),Zne(e),nie(e,n),Xne(e),eie(e),tie(e),oie(e,n),Pie(e),Die(e),jie(e),Lie(e,n),Oie(e),Bie(e,n);break;case"firefox":if(!vie||!lie||!t.shimFirefox)return r("Firefox shim is not included in this adapter release."),i;r("adapter.js shimming firefox."),i.browserShim=vie,Uie(e,n),Fie(e),aie(e,n),lie(e,n),uie(e),die(e),cie(e),hie(e),fie(e),pie(e),mie(e),gie(e),yie(e),Pie(e),jie(e),Lie(e,n),Oie(e);break;case"safari":if(!Tie||!t.shimSafari)return r("Safari shim is not included in this adapter release."),i;r("adapter.js shimming safari."),i.browserShim=Tie,Uie(e,n),Fie(e),Mie(e),xie(e),_ie(e),bie(e),wie(e),Sie(e),Eie(e),kie(e),Pie(e),Die(e),Lie(e,n),Oie(e),Bie(e,n);break;default:r("Unsupported browser!")}}({window:"undefined"==typeof window?void 0:window}),function(e){e[e.PUBLISHER=0]="PUBLISHER",e[e.SUBSCRIBER=1]="SUBSCRIBER"}(zie||(zie={})),Sre.util.setEnumType(zie,"livekit.SignalTarget",[{no:0,name:"PUBLISHER"},{no:1,name:"SUBSCRIBER"}]),function(e){e[e.ACTIVE=0]="ACTIVE",e[e.PAUSED=1]="PAUSED"}(Hie||(Hie={})),Sre.util.setEnumType(Hie,"livekit.StreamState",[{no:0,name:"ACTIVE"},{no:1,name:"PAUSED"}]),function(e){e[e.UDP=0]="UDP",e[e.TCP=1]="TCP",e[e.TLS=2]="TLS"}(Gie||(Gie={})),Sre.util.setEnumType(Gie,"livekit.CandidateProtocol",[{no:0,name:"UDP"},{no:1,name:"TCP"},{no:2,name:"TLS"}]);class qie extends Ate{constructor(e){super(),this.message={case:void 0},Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new qie).fromBinary(e,t)}static fromJson(e,t){return(new qie).fromJson(e,t)}static fromJsonString(e,t){return(new qie).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(qie,e,t)}}qie.runtime=Sre,qie.typeName="livekit.SignalRequest",qie.fields=Sre.util.newFieldList((()=>[{no:1,name:"offer",kind:"message",T:roe,oneof:"message"},{no:2,name:"answer",kind:"message",T:roe,oneof:"message"},{no:3,name:"trickle",kind:"message",T:Qie,oneof:"message"},{no:4,name:"add_track",kind:"message",T:$ie,oneof:"message"},{no:5,name:"mute",kind:"message",T:Jie,oneof:"message"},{no:6,name:"subscription",kind:"message",T:ioe,oneof:"message"},{no:7,name:"track_setting",kind:"message",T:ooe,oneof:"message"},{no:8,name:"leave",kind:"message",T:soe,oneof:"message"},{no:10,name:"update_layers",kind:"message",T:aoe,oneof:"message"},{no:11,name:"subscription_permission",kind:"message",T:woe,oneof:"message"},{no:12,name:"sync_state",kind:"message",T:Eoe,oneof:"message"},{no:13,name:"simulate",kind:"message",T:Moe,oneof:"message"},{no:14,name:"ping",kind:"scalar",T:3,oneof:"message"},{no:15,name:"update_metadata",kind:"message",T:uoe,oneof:"message"},{no:16,name:"ping_req",kind:"message",T:Soe,oneof:"message"}]));class Wie extends Ate{constructor(e){super(),this.message={case:void 0},Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new Wie).fromBinary(e,t)}static fromJson(e,t){return(new Wie).fromJson(e,t)}static fromJsonString(e,t){return(new Wie).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(Wie,e,t)}}Wie.runtime=Sre,Wie.typeName="livekit.SignalResponse",Wie.fields=Sre.util.newFieldList((()=>[{no:1,name:"join",kind:"message",T:Zie,oneof:"message"},{no:2,name:"answer",kind:"message",T:roe,oneof:"message"},{no:3,name:"offer",kind:"message",T:roe,oneof:"message"},{no:4,name:"trickle",kind:"message",T:Qie,oneof:"message"},{no:5,name:"update",kind:"message",T:noe,oneof:"message"},{no:6,name:"track_published",kind:"message",T:eoe,oneof:"message"},{no:8,name:"leave",kind:"message",T:soe,oneof:"message"},{no:9,name:"mute",kind:"message",T:Jie,oneof:"message"},{no:10,name:"speakers_changed",kind:"message",T:coe,oneof:"message"},{no:11,name:"room_update",kind:"message",T:hoe,oneof:"message"},{no:12,name:"connection_quality",kind:"message",T:foe,oneof:"message"},{no:13,name:"stream_state_update",kind:"message",T:moe,oneof:"message"},{no:14,name:"subscribed_quality_update",kind:"message",T:voe,oneof:"message"},{no:15,name:"subscription_permission_update",kind:"message",T:_oe,oneof:"message"},{no:16,name:"refresh_token",kind:"scalar",T:9,oneof:"message"},{no:17,name:"track_unpublished",kind:"message",T:toe,oneof:"message"},{no:18,name:"pong",kind:"scalar",T:3,oneof:"message"},{no:19,name:"reconnect",kind:"message",T:Xie,oneof:"message"},{no:20,name:"pong_resp",kind:"message",T:xoe,oneof:"message"},{no:21,name:"subscription_response",kind:"message",T:Coe,oneof:"message"}]));class Vie extends Ate{constructor(e){super(),this.codec="",this.cid="",this.enableSimulcastLayers=!1,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new Vie).fromBinary(e,t)}static fromJson(e,t){return(new Vie).fromJson(e,t)}static fromJsonString(e,t){return(new Vie).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(Vie,e,t)}}Vie.runtime=Sre,Vie.typeName="livekit.SimulcastCodec",Vie.fields=Sre.util.newFieldList((()=>[{no:1,name:"codec",kind:"scalar",T:9},{no:2,name:"cid",kind:"scalar",T:9},{no:3,name:"enable_simulcast_layers",kind:"scalar",T:8}]));class $ie extends Ate{constructor(e){super(),this.cid="",this.name="",this.type=Rre.AUDIO,this.width=0,this.height=0,this.muted=!1,this.disableDtx=!1,this.source=Pre.UNKNOWN,this.layers=[],this.simulcastCodecs=[],this.sid="",this.stereo=!1,this.disableRed=!1,this.encryption=Vre.NONE,this.stream="",Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new $ie).fromBinary(e,t)}static fromJson(e,t){return(new $ie).fromJson(e,t)}static fromJsonString(e,t){return(new $ie).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals($ie,e,t)}}$ie.runtime=Sre,$ie.typeName="livekit.AddTrackRequest",$ie.fields=Sre.util.newFieldList((()=>[{no:1,name:"cid",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"type",kind:"enum",T:Sre.getEnumType(Rre)},{no:4,name:"width",kind:"scalar",T:13},{no:5,name:"height",kind:"scalar",T:13},{no:6,name:"muted",kind:"scalar",T:8},{no:7,name:"disable_dtx",kind:"scalar",T:8},{no:8,name:"source",kind:"enum",T:Sre.getEnumType(Pre)},{no:9,name:"layers",kind:"message",T:tne,repeated:!0},{no:10,name:"simulcast_codecs",kind:"message",T:Vie,repeated:!0},{no:11,name:"sid",kind:"scalar",T:9},{no:12,name:"stereo",kind:"scalar",T:8},{no:13,name:"disable_red",kind:"scalar",T:8},{no:14,name:"encryption",kind:"enum",T:Sre.getEnumType(Vre)},{no:15,name:"stream",kind:"scalar",T:9}]));class Qie extends Ate{constructor(e){super(),this.candidateInit="",this.target=zie.PUBLISHER,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new Qie).fromBinary(e,t)}static fromJson(e,t){return(new Qie).fromJson(e,t)}static fromJsonString(e,t){return(new Qie).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(Qie,e,t)}}Qie.runtime=Sre,Qie.typeName="livekit.TrickleRequest",Qie.fields=Sre.util.newFieldList((()=>[{no:1,name:"candidateInit",kind:"scalar",T:9},{no:2,name:"target",kind:"enum",T:Sre.getEnumType(zie)}]));class Jie extends Ate{constructor(e){super(),this.sid="",this.muted=!1,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new Jie).fromBinary(e,t)}static fromJson(e,t){return(new Jie).fromJson(e,t)}static fromJsonString(e,t){return(new Jie).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(Jie,e,t)}}Jie.runtime=Sre,Jie.typeName="livekit.MuteTrackRequest",Jie.fields=Sre.util.newFieldList((()=>[{no:1,name:"sid",kind:"scalar",T:9},{no:2,name:"muted",kind:"scalar",T:8}]));class Zie extends Ate{constructor(e){super(),this.otherParticipants=[],this.serverVersion="",this.iceServers=[],this.subscriberPrimary=!1,this.alternativeUrl="",this.serverRegion="",this.pingTimeout=0,this.pingInterval=0,this.sifTrailer=new Uint8Array(0),Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new Zie).fromBinary(e,t)}static fromJson(e,t){return(new Zie).fromJson(e,t)}static fromJsonString(e,t){return(new Zie).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(Zie,e,t)}}Zie.runtime=Sre,Zie.typeName="livekit.JoinResponse",Zie.fields=Sre.util.newFieldList((()=>[{no:1,name:"room",kind:"message",T:Hre},{no:2,name:"participant",kind:"message",T:qre},{no:3,name:"other_participants",kind:"message",T:qre,repeated:!0},{no:4,name:"server_version",kind:"scalar",T:9},{no:5,name:"ice_servers",kind:"message",T:loe,repeated:!0},{no:6,name:"subscriber_primary",kind:"scalar",T:8},{no:7,name:"alternative_url",kind:"scalar",T:9},{no:8,name:"client_configuration",kind:"message",T:lne},{no:9,name:"server_region",kind:"scalar",T:9},{no:10,name:"ping_timeout",kind:"scalar",T:5},{no:11,name:"ping_interval",kind:"scalar",T:5},{no:12,name:"server_info",kind:"message",T:ane},{no:13,name:"sif_trailer",kind:"scalar",T:12}]));class Xie extends Ate{constructor(e){super(),this.iceServers=[],Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new Xie).fromBinary(e,t)}static fromJson(e,t){return(new Xie).fromJson(e,t)}static fromJsonString(e,t){return(new Xie).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(Xie,e,t)}}Xie.runtime=Sre,Xie.typeName="livekit.ReconnectResponse",Xie.fields=Sre.util.newFieldList((()=>[{no:1,name:"ice_servers",kind:"message",T:loe,repeated:!0},{no:2,name:"client_configuration",kind:"message",T:lne}]));class eoe extends Ate{constructor(e){super(),this.cid="",Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new eoe).fromBinary(e,t)}static fromJson(e,t){return(new eoe).fromJson(e,t)}static fromJsonString(e,t){return(new eoe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(eoe,e,t)}}eoe.runtime=Sre,eoe.typeName="livekit.TrackPublishedResponse",eoe.fields=Sre.util.newFieldList((()=>[{no:1,name:"cid",kind:"scalar",T:9},{no:2,name:"track",kind:"message",T:ene}]));class toe extends Ate{constructor(e){super(),this.trackSid="",Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new toe).fromBinary(e,t)}static fromJson(e,t){return(new toe).fromJson(e,t)}static fromJsonString(e,t){return(new toe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(toe,e,t)}}toe.runtime=Sre,toe.typeName="livekit.TrackUnpublishedResponse",toe.fields=Sre.util.newFieldList((()=>[{no:1,name:"track_sid",kind:"scalar",T:9}]));class roe extends Ate{constructor(e){super(),this.type="",this.sdp="",Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new roe).fromBinary(e,t)}static fromJson(e,t){return(new roe).fromJson(e,t)}static fromJsonString(e,t){return(new roe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(roe,e,t)}}roe.runtime=Sre,roe.typeName="livekit.SessionDescription",roe.fields=Sre.util.newFieldList((()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"sdp",kind:"scalar",T:9}]));class noe extends Ate{constructor(e){super(),this.participants=[],Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new noe).fromBinary(e,t)}static fromJson(e,t){return(new noe).fromJson(e,t)}static fromJsonString(e,t){return(new noe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(noe,e,t)}}noe.runtime=Sre,noe.typeName="livekit.ParticipantUpdate",noe.fields=Sre.util.newFieldList((()=>[{no:1,name:"participants",kind:"message",T:qre,repeated:!0}]));class ioe extends Ate{constructor(e){super(),this.trackSids=[],this.subscribe=!1,this.participantTracks=[],Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new ioe).fromBinary(e,t)}static fromJson(e,t){return(new ioe).fromJson(e,t)}static fromJsonString(e,t){return(new ioe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(ioe,e,t)}}ioe.runtime=Sre,ioe.typeName="livekit.UpdateSubscription",ioe.fields=Sre.util.newFieldList((()=>[{no:1,name:"track_sids",kind:"scalar",T:9,repeated:!0},{no:2,name:"subscribe",kind:"scalar",T:8},{no:3,name:"participant_tracks",kind:"message",T:sne,repeated:!0}]));class ooe extends Ate{constructor(e){super(),this.trackSids=[],this.disabled=!1,this.quality=Dre.LOW,this.width=0,this.height=0,this.fps=0,this.priority=0,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new ooe).fromBinary(e,t)}static fromJson(e,t){return(new ooe).fromJson(e,t)}static fromJsonString(e,t){return(new ooe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(ooe,e,t)}}ooe.runtime=Sre,ooe.typeName="livekit.UpdateTrackSettings",ooe.fields=Sre.util.newFieldList((()=>[{no:1,name:"track_sids",kind:"scalar",T:9,repeated:!0},{no:3,name:"disabled",kind:"scalar",T:8},{no:4,name:"quality",kind:"enum",T:Sre.getEnumType(Dre)},{no:5,name:"width",kind:"scalar",T:13},{no:6,name:"height",kind:"scalar",T:13},{no:7,name:"fps",kind:"scalar",T:13},{no:8,name:"priority",kind:"scalar",T:13}]));class soe extends Ate{constructor(e){super(),this.canReconnect=!1,this.reason=jre.UNKNOWN_REASON,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new soe).fromBinary(e,t)}static fromJson(e,t){return(new soe).fromJson(e,t)}static fromJsonString(e,t){return(new soe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(soe,e,t)}}soe.runtime=Sre,soe.typeName="livekit.LeaveRequest",soe.fields=Sre.util.newFieldList((()=>[{no:1,name:"can_reconnect",kind:"scalar",T:8},{no:2,name:"reason",kind:"enum",T:Sre.getEnumType(jre)}]));class aoe extends Ate{constructor(e){super(),this.trackSid="",this.layers=[],Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new aoe).fromBinary(e,t)}static fromJson(e,t){return(new aoe).fromJson(e,t)}static fromJsonString(e,t){return(new aoe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(aoe,e,t)}}aoe.runtime=Sre,aoe.typeName="livekit.UpdateVideoLayers",aoe.fields=Sre.util.newFieldList((()=>[{no:1,name:"track_sid",kind:"scalar",T:9},{no:2,name:"layers",kind:"message",T:tne,repeated:!0}]));class uoe extends Ate{constructor(e){super(),this.metadata="",this.name="",Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new uoe).fromBinary(e,t)}static fromJson(e,t){return(new uoe).fromJson(e,t)}static fromJsonString(e,t){return(new uoe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(uoe,e,t)}}uoe.runtime=Sre,uoe.typeName="livekit.UpdateParticipantMetadata",uoe.fields=Sre.util.newFieldList((()=>[{no:1,name:"metadata",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9}]));class loe extends Ate{constructor(e){super(),this.urls=[],this.username="",this.credential="",Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new loe).fromBinary(e,t)}static fromJson(e,t){return(new loe).fromJson(e,t)}static fromJsonString(e,t){return(new loe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(loe,e,t)}}loe.runtime=Sre,loe.typeName="livekit.ICEServer",loe.fields=Sre.util.newFieldList((()=>[{no:1,name:"urls",kind:"scalar",T:9,repeated:!0},{no:2,name:"username",kind:"scalar",T:9},{no:3,name:"credential",kind:"scalar",T:9}]));class coe extends Ate{constructor(e){super(),this.speakers=[],Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new coe).fromBinary(e,t)}static fromJson(e,t){return(new coe).fromJson(e,t)}static fromJsonString(e,t){return(new coe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(coe,e,t)}}coe.runtime=Sre,coe.typeName="livekit.SpeakersChanged",coe.fields=Sre.util.newFieldList((()=>[{no:1,name:"speakers",kind:"message",T:ine,repeated:!0}]));class hoe extends Ate{constructor(e){super(),Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new hoe).fromBinary(e,t)}static fromJson(e,t){return(new hoe).fromJson(e,t)}static fromJsonString(e,t){return(new hoe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(hoe,e,t)}}hoe.runtime=Sre,hoe.typeName="livekit.RoomUpdate",hoe.fields=Sre.util.newFieldList((()=>[{no:1,name:"room",kind:"message",T:Hre}]));class doe extends Ate{constructor(e){super(),this.participantSid="",this.quality=Lre.POOR,this.score=0,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new doe).fromBinary(e,t)}static fromJson(e,t){return(new doe).fromJson(e,t)}static fromJsonString(e,t){return(new doe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(doe,e,t)}}doe.runtime=Sre,doe.typeName="livekit.ConnectionQualityInfo",doe.fields=Sre.util.newFieldList((()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:2,name:"quality",kind:"enum",T:Sre.getEnumType(Lre)},{no:3,name:"score",kind:"scalar",T:2}]));class foe extends Ate{constructor(e){super(),this.updates=[],Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new foe).fromBinary(e,t)}static fromJson(e,t){return(new foe).fromJson(e,t)}static fromJsonString(e,t){return(new foe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(foe,e,t)}}foe.runtime=Sre,foe.typeName="livekit.ConnectionQualityUpdate",foe.fields=Sre.util.newFieldList((()=>[{no:1,name:"updates",kind:"message",T:doe,repeated:!0}]));class poe extends Ate{constructor(e){super(),this.participantSid="",this.trackSid="",this.state=Hie.ACTIVE,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new poe).fromBinary(e,t)}static fromJson(e,t){return(new poe).fromJson(e,t)}static fromJsonString(e,t){return(new poe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(poe,e,t)}}poe.runtime=Sre,poe.typeName="livekit.StreamStateInfo",poe.fields=Sre.util.newFieldList((()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:2,name:"track_sid",kind:"scalar",T:9},{no:3,name:"state",kind:"enum",T:Sre.getEnumType(Hie)}]));class moe extends Ate{constructor(e){super(),this.streamStates=[],Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new moe).fromBinary(e,t)}static fromJson(e,t){return(new moe).fromJson(e,t)}static fromJsonString(e,t){return(new moe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(moe,e,t)}}moe.runtime=Sre,moe.typeName="livekit.StreamStateUpdate",moe.fields=Sre.util.newFieldList((()=>[{no:1,name:"stream_states",kind:"message",T:poe,repeated:!0}]));class goe extends Ate{constructor(e){super(),this.quality=Dre.LOW,this.enabled=!1,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new goe).fromBinary(e,t)}static fromJson(e,t){return(new goe).fromJson(e,t)}static fromJsonString(e,t){return(new goe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(goe,e,t)}}goe.runtime=Sre,goe.typeName="livekit.SubscribedQuality",goe.fields=Sre.util.newFieldList((()=>[{no:1,name:"quality",kind:"enum",T:Sre.getEnumType(Dre)},{no:2,name:"enabled",kind:"scalar",T:8}]));class yoe extends Ate{constructor(e){super(),this.codec="",this.qualities=[],Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new yoe).fromBinary(e,t)}static fromJson(e,t){return(new yoe).fromJson(e,t)}static fromJsonString(e,t){return(new yoe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(yoe,e,t)}}yoe.runtime=Sre,yoe.typeName="livekit.SubscribedCodec",yoe.fields=Sre.util.newFieldList((()=>[{no:1,name:"codec",kind:"scalar",T:9},{no:2,name:"qualities",kind:"message",T:goe,repeated:!0}]));class voe extends Ate{constructor(e){super(),this.trackSid="",this.subscribedQualities=[],this.subscribedCodecs=[],Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new voe).fromBinary(e,t)}static fromJson(e,t){return(new voe).fromJson(e,t)}static fromJsonString(e,t){return(new voe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(voe,e,t)}}voe.runtime=Sre,voe.typeName="livekit.SubscribedQualityUpdate",voe.fields=Sre.util.newFieldList((()=>[{no:1,name:"track_sid",kind:"scalar",T:9},{no:2,name:"subscribed_qualities",kind:"message",T:goe,repeated:!0},{no:3,name:"subscribed_codecs",kind:"message",T:yoe,repeated:!0}]));class boe extends Ate{constructor(e){super(),this.participantSid="",this.allTracks=!1,this.trackSids=[],this.participantIdentity="",Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new boe).fromBinary(e,t)}static fromJson(e,t){return(new boe).fromJson(e,t)}static fromJsonString(e,t){return(new boe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(boe,e,t)}}boe.runtime=Sre,boe.typeName="livekit.TrackPermission",boe.fields=Sre.util.newFieldList((()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:2,name:"all_tracks",kind:"scalar",T:8},{no:3,name:"track_sids",kind:"scalar",T:9,repeated:!0},{no:4,name:"participant_identity",kind:"scalar",T:9}]));class woe extends Ate{constructor(e){super(),this.allParticipants=!1,this.trackPermissions=[],Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new woe).fromBinary(e,t)}static fromJson(e,t){return(new woe).fromJson(e,t)}static fromJsonString(e,t){return(new woe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(woe,e,t)}}woe.runtime=Sre,woe.typeName="livekit.SubscriptionPermission",woe.fields=Sre.util.newFieldList((()=>[{no:1,name:"all_participants",kind:"scalar",T:8},{no:2,name:"track_permissions",kind:"message",T:boe,repeated:!0}]));class _oe extends Ate{constructor(e){super(),this.participantSid="",this.trackSid="",this.allowed=!1,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new _oe).fromBinary(e,t)}static fromJson(e,t){return(new _oe).fromJson(e,t)}static fromJsonString(e,t){return(new _oe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(_oe,e,t)}}_oe.runtime=Sre,_oe.typeName="livekit.SubscriptionPermissionUpdate",_oe.fields=Sre.util.newFieldList((()=>[{no:1,name:"participant_sid",kind:"scalar",T:9},{no:2,name:"track_sid",kind:"scalar",T:9},{no:3,name:"allowed",kind:"scalar",T:8}]));class Eoe extends Ate{constructor(e){super(),this.publishTracks=[],this.dataChannels=[],Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new Eoe).fromBinary(e,t)}static fromJson(e,t){return(new Eoe).fromJson(e,t)}static fromJsonString(e,t){return(new Eoe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(Eoe,e,t)}}Eoe.runtime=Sre,Eoe.typeName="livekit.SyncState",Eoe.fields=Sre.util.newFieldList((()=>[{no:1,name:"answer",kind:"message",T:roe},{no:2,name:"subscription",kind:"message",T:ioe},{no:3,name:"publish_tracks",kind:"message",T:eoe,repeated:!0},{no:4,name:"data_channels",kind:"message",T:Aoe,repeated:!0},{no:5,name:"offer",kind:"message",T:roe}]));class Aoe extends Ate{constructor(e){super(),this.label="",this.id=0,this.target=zie.PUBLISHER,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new Aoe).fromBinary(e,t)}static fromJson(e,t){return(new Aoe).fromJson(e,t)}static fromJsonString(e,t){return(new Aoe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(Aoe,e,t)}}Aoe.runtime=Sre,Aoe.typeName="livekit.DataChannelInfo",Aoe.fields=Sre.util.newFieldList((()=>[{no:1,name:"label",kind:"scalar",T:9},{no:2,name:"id",kind:"scalar",T:13},{no:3,name:"target",kind:"enum",T:Sre.getEnumType(zie)}]));class Moe extends Ate{constructor(e){super(),this.scenario={case:void 0},Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new Moe).fromBinary(e,t)}static fromJson(e,t){return(new Moe).fromJson(e,t)}static fromJsonString(e,t){return(new Moe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(Moe,e,t)}}Moe.runtime=Sre,Moe.typeName="livekit.SimulateScenario",Moe.fields=Sre.util.newFieldList((()=>[{no:1,name:"speaker_update",kind:"scalar",T:5,oneof:"scenario"},{no:2,name:"node_failure",kind:"scalar",T:8,oneof:"scenario"},{no:3,name:"migration",kind:"scalar",T:8,oneof:"scenario"},{no:4,name:"server_leave",kind:"scalar",T:8,oneof:"scenario"},{no:5,name:"switch_candidate_protocol",kind:"enum",T:Sre.getEnumType(Gie),oneof:"scenario"},{no:6,name:"subscriber_bandwidth",kind:"scalar",T:3,oneof:"scenario"}]));class Soe extends Ate{constructor(e){super(),this.timestamp=Lte.zero,this.rtt=Lte.zero,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new Soe).fromBinary(e,t)}static fromJson(e,t){return(new Soe).fromJson(e,t)}static fromJsonString(e,t){return(new Soe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(Soe,e,t)}}Soe.runtime=Sre,Soe.typeName="livekit.Ping",Soe.fields=Sre.util.newFieldList((()=>[{no:1,name:"timestamp",kind:"scalar",T:3},{no:2,name:"rtt",kind:"scalar",T:3}]));class xoe extends Ate{constructor(e){super(),this.lastPingTimestamp=Lte.zero,this.timestamp=Lte.zero,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new xoe).fromBinary(e,t)}static fromJson(e,t){return(new xoe).fromJson(e,t)}static fromJsonString(e,t){return(new xoe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(xoe,e,t)}}xoe.runtime=Sre,xoe.typeName="livekit.Pong",xoe.fields=Sre.util.newFieldList((()=>[{no:1,name:"last_ping_timestamp",kind:"scalar",T:3},{no:2,name:"timestamp",kind:"scalar",T:3}]));class koe extends Ate{constructor(e){super(),this.regions=[],Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new koe).fromBinary(e,t)}static fromJson(e,t){return(new koe).fromJson(e,t)}static fromJsonString(e,t){return(new koe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(koe,e,t)}}koe.runtime=Sre,koe.typeName="livekit.RegionSettings",koe.fields=Sre.util.newFieldList((()=>[{no:1,name:"regions",kind:"message",T:Toe,repeated:!0}]));class Toe extends Ate{constructor(e){super(),this.region="",this.url="",this.distance=Lte.zero,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new Toe).fromBinary(e,t)}static fromJson(e,t){return(new Toe).fromJson(e,t)}static fromJsonString(e,t){return(new Toe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(Toe,e,t)}}Toe.runtime=Sre,Toe.typeName="livekit.RegionInfo",Toe.fields=Sre.util.newFieldList((()=>[{no:1,name:"region",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9},{no:3,name:"distance",kind:"scalar",T:3}]));class Coe extends Ate{constructor(e){super(),this.trackSid="",this.err=Ure.SE_UNKNOWN,Sre.util.initPartial(e,this)}static fromBinary(e,t){return(new Coe).fromBinary(e,t)}static fromJson(e,t){return(new Coe).fromJson(e,t)}static fromJsonString(e,t){return(new Coe).fromJsonString(e,t)}static equals(e,t){return Sre.util.equals(Coe,e,t)}}Coe.runtime=Sre,Coe.typeName="livekit.SubscriptionResponse",Coe.fields=Sre.util.newFieldList((()=>[{no:1,name:"track_sid",kind:"scalar",T:9},{no:2,name:"err",kind:"enum",T:Sre.getEnumType(Ure)}]));class Ioe extends Error{constructor(e,t){super(t||"an error has occured"),this.code=e}}class Noe extends Ioe{constructor(e,t,r){super(1,e),this.status=r,this.reason=t}}class Roe extends Ioe{constructor(e){super(21,null!=e?e:"device is unsupported")}}class Poe extends Ioe{constructor(e){super(20,null!=e?e:"track is invalid")}}class Doe extends Ioe{constructor(e){super(10,null!=e?e:"unsupported server")}}class Loe extends Ioe{constructor(e){super(12,null!=e?e:"unexpected connection state")}}class Ooe extends Ioe{constructor(e){super(13,null!=e?e:"unable to negotiate")}}!function(e){e.PermissionDenied="PermissionDenied",e.NotFound="NotFound",e.DeviceInUse="DeviceInUse",e.Other="Other"}(Yie||(Yie={})),function(e){e.getFailure=function(t){if(t&&"name"in t)return"NotFoundError"===t.name||"DevicesNotFoundError"===t.name?e.NotFound:"NotAllowedError"===t.name||"PermissionDeniedError"===t.name?e.PermissionDenied:"NotReadableError"===t.name||"TrackStartError"===t.name?e.DeviceInUse:e.Other}}(Yie||(Yie={}));class joe{}joe.setTimeout=function(){return setTimeout(...arguments)},joe.setInterval=function(){return setInterval(...arguments)},joe.clearTimeout=function(){return clearTimeout(...arguments)},joe.clearInterval=function(){return clearInterval(...arguments)};const Boe=/version\/(\d+(\.?_?\d+)+)/i;let Uoe;function Foe(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(void 0===e&&"undefined"==typeof navigator)return;const r=(null!=e?e:navigator.userAgent).toLowerCase();if(void 0===Uoe||t){const e=zoe.find((e=>{let{test:t}=e;return t.test(r)}));Uoe=null==e?void 0:e.describe(r)}return Uoe}const zoe=[{test:/firefox|iceweasel|fxios/i,describe:e=>({name:"Firefox",version:Hoe(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e),os:e.toLowerCase().includes("fxios")?"iOS":void 0})},{test:/chrom|crios|crmo/i,describe:e=>({name:"Chrome",version:Hoe(/(?:chrome|chromium|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e),os:e.toLowerCase().includes("crios")?"iOS":void 0})},{test:/safari|applewebkit/i,describe:e=>({name:"Safari",version:Hoe(Boe,e),os:e.includes("mobile/")?"iOS":"macOS"})}];function Hoe(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const n=t.match(e);return n&&n.length>=r&&n[r]||""}class Goe{constructor(e,t,r,n,i){this.width=e,this.height=t,this.encoding={maxBitrate:r,maxFramerate:n,priority:i}}get resolution(){return{width:this.width,height:this.height,frameRate:this.encoding.maxFramerate,aspectRatio:this.width/this.height}}}const Yoe=["vp8","h264"],Koe=["vp8","h264","vp9","av1"];function qoe(e){return!!Yoe.find((t=>t===e))}function Woe(e,t){return(null==e?void 0:e.toLowerCase().replace(/audio\/|video\//y,""))===(null==t?void 0:t.toLowerCase().replace(/audio\/|video\//y,""))}var Voe;!function(e){e.telephone={maxBitrate:12e3},e.speech={maxBitrate:2e4},e.music={maxBitrate:32e3},e.musicStereo={maxBitrate:48e3},e.musicHighQuality={maxBitrate:64e3},e.musicHighQualityStereo={maxBitrate:96e3}}(Voe||(Voe={}));const $oe={h90:new Goe(160,90,9e4,20),h180:new Goe(320,180,16e4,20),h216:new Goe(384,216,18e4,20),h360:new Goe(640,360,45e4,20),h540:new Goe(960,540,8e5,25),h720:new Goe(1280,720,17e5,30),h1080:new Goe(1920,1080,3e6,30),h1440:new Goe(2560,1440,5e6,30),h2160:new Goe(3840,2160,8e6,30)},Qoe={h120:new Goe(160,120,7e4,20),h180:new Goe(240,180,125e3,20),h240:new Goe(320,240,14e4,20),h360:new Goe(480,360,33e4,20),h480:new Goe(640,480,5e5,20),h540:new Goe(720,540,6e5,25),h720:new Goe(960,720,13e5,30),h1080:new Goe(1440,1080,23e5,30),h1440:new Goe(1920,1440,38e5,30)},Joe={h360fps3:new Goe(640,360,2e5,3,"medium"),h720fps5:new Goe(1280,720,4e5,5,"medium"),h720fps15:new Goe(1280,720,15e5,15,"medium"),h720fps30:new Goe(1280,720,2e6,30,"medium"),h1080fps15:new Goe(1920,1080,25e5,15,"medium"),h1080fps30:new Goe(1920,1080,4e6,30,"medium")};var Zoe,Xoe,ese,tse;!function(e){e.Connected="connected",e.Reconnecting="reconnecting",e.Reconnected="reconnected",e.Disconnected="disconnected",e.ConnectionStateChanged="connectionStateChanged",e.StateChanged="connectionStateChanged",e.MediaDevicesChanged="mediaDevicesChanged",e.ParticipantConnected="participantConnected",e.ParticipantDisconnected="participantDisconnected",e.TrackPublished="trackPublished",e.TrackSubscribed="trackSubscribed",e.TrackSubscriptionFailed="trackSubscriptionFailed",e.TrackUnpublished="trackUnpublished",e.TrackUnsubscribed="trackUnsubscribed",e.TrackMuted="trackMuted",e.TrackUnmuted="trackUnmuted",e.LocalTrackPublished="localTrackPublished",e.LocalTrackUnpublished="localTrackUnpublished",e.LocalAudioSilenceDetected="localAudioSilenceDetected",e.ActiveSpeakersChanged="activeSpeakersChanged",e.ParticipantMetadataChanged="participantMetadataChanged",e.ParticipantNameChanged="participantNameChanged",e.RoomMetadataChanged="roomMetadataChanged",e.DataReceived="dataReceived",e.ConnectionQualityChanged="connectionQualityChanged",e.TrackStreamStateChanged="trackStreamStateChanged",e.TrackSubscriptionPermissionChanged="trackSubscriptionPermissionChanged",e.TrackSubscriptionStatusChanged="trackSubscriptionStatusChanged",e.AudioPlaybackStatusChanged="audioPlaybackChanged",e.MediaDevicesError="mediaDevicesError",e.ParticipantPermissionsChanged="participantPermissionsChanged",e.SignalConnected="signalConnected",e.RecordingStatusChanged="recordingStatusChanged",e.ParticipantEncryptionStatusChanged="participantEncryptionStatusChanged",e.EncryptionError="encryptionError",e.DCBufferStatusChanged="dcBufferStatusChanged",e.ActiveDeviceChanged="activeDeviceChanged"}(Zoe||(Zoe={})),function(e){e.TrackPublished="trackPublished",e.TrackSubscribed="trackSubscribed",e.TrackSubscriptionFailed="trackSubscriptionFailed",e.TrackUnpublished="trackUnpublished",e.TrackUnsubscribed="trackUnsubscribed",e.TrackMuted="trackMuted",e.TrackUnmuted="trackUnmuted",e.LocalTrackPublished="localTrackPublished",e.LocalTrackUnpublished="localTrackUnpublished",e.ParticipantMetadataChanged="participantMetadataChanged",e.ParticipantNameChanged="participantNameChanged",e.DataReceived="dataReceived",e.IsSpeakingChanged="isSpeakingChanged",e.ConnectionQualityChanged="connectionQualityChanged",e.TrackStreamStateChanged="trackStreamStateChanged",e.TrackSubscriptionPermissionChanged="trackSubscriptionPermissionChanged",e.TrackSubscriptionStatusChanged="trackSubscriptionStatusChanged",e.MediaDevicesError="mediaDevicesError",e.ParticipantPermissionsChanged="participantPermissionsChanged",e.PCTrackAdded="pcTrackAdded"}(Xoe||(Xoe={})),function(e){e.TransportsCreated="transportsCreated",e.Connected="connected",e.Disconnected="disconnected",e.Resuming="resuming",e.Resumed="resumed",e.Restarting="restarting",e.Restarted="restarted",e.SignalResumed="signalResumed",e.SignalRestarted="signalRestarted",e.Closing="closing",e.MediaTrackAdded="mediaTrackAdded",e.ActiveSpeakersUpdate="activeSpeakersUpdate",e.DataPacketReceived="dataPacketReceived",e.RTPVideoMapUpdate="rtpVideoMapUpdate",e.DCBufferStatusChanged="dcBufferStatusChanged",e.ParticipantUpdate="participantUpdate",e.RoomUpdate="roomUpdate",e.SpeakersChanged="speakersChanged",e.StreamStateChanged="streamStateChanged",e.ConnectionQualityUpdate="connectionQualityUpdate",e.SubscriptionError="subscriptionError",e.SubscriptionPermissionUpdate="subscriptionPermissionUpdate"}(ese||(ese={})),function(e){e.Message="message",e.Muted="muted",e.Unmuted="unmuted",e.Restarted="restarted",e.Ended="ended",e.Subscribed="subscribed",e.Unsubscribed="unsubscribed",e.UpdateSettings="updateSettings",e.UpdateSubscription="updateSubscription",e.AudioPlaybackStarted="audioPlaybackStarted",e.AudioPlaybackFailed="audioPlaybackFailed",e.AudioSilenceDetected="audioSilenceDetected",e.VisibilityChanged="visibilityChanged",e.VideoDimensionsChanged="videoDimensionsChanged",e.ElementAttached="elementAttached",e.ElementDetached="elementDetached",e.UpstreamPaused="upstreamPaused",e.UpstreamResumed="upstreamResumed",e.SubscriptionPermissionChanged="subscriptionPermissionChanged",e.SubscriptionStatusChanged="subscriptionStatusChanged",e.SubscriptionFailed="subscriptionFailed"}(tse||(tse={}));const rse=[];class nse extends Lne.EventEmitter{constructor(e,t){super(),this.attachedElements=[],this.isMuted=!1,this.streamState=nse.StreamState.Active,this.isInBackground=!1,this._currentBitrate=0,this.appVisibilityChangedListener=()=>{this.backgroundTimeout&&clearTimeout(this.backgroundTimeout),"hidden"===document.visibilityState?this.backgroundTimeout=setTimeout((()=>this.handleAppVisibilityChanged()),5e3):this.handleAppVisibilityChanged()},this.setMaxListeners(100),this.kind=t,this._mediaStreamTrack=e,this._mediaStreamID=e.id,this.source=nse.Source.Unknown}get currentBitrate(){return this._currentBitrate}get mediaStreamTrack(){return this._mediaStreamTrack}get mediaStreamID(){return this._mediaStreamID}attach(e){let t="audio";this.kind===nse.Kind.Video&&(t="video"),0===this.attachedElements.length&&nse.Kind.Video&&this.addAppVisibilityListener(),e||("audio"===t&&(rse.forEach((t=>{null!==t.parentElement||e||(e=t)})),e&&rse.splice(rse.indexOf(e),1)),e||(e=document.createElement(t))),this.attachedElements.includes(e)||this.attachedElements.push(e),ise(this.mediaStreamTrack,e);const r=e.srcObject.getTracks();return r.some((e=>"audio"===e.kind))&&e.play().then((()=>{this.emit(tse.AudioPlaybackStarted)})).catch((t=>{"NotAllowedError"===t.name?this.emit(tse.AudioPlaybackFailed,t):dte.warn("could not playback audio",t),e&&r.some((e=>"video"===e.kind))&&"NotAllowedError"===t.name&&(e.muted=!0,e.play().catch((()=>{})))})),this.emit(tse.ElementAttached,e),e}detach(e){try{if(e){ose(this.mediaStreamTrack,e);const t=this.attachedElements.indexOf(e);return t>=0&&(this.attachedElements.splice(t,1),this.recycleElement(e),this.emit(tse.ElementDetached,e)),e}const t=[];return this.attachedElements.forEach((e=>{ose(this.mediaStreamTrack,e),t.push(e),this.recycleElement(e),this.emit(tse.ElementDetached,e)})),this.attachedElements=[],t}finally{0===this.attachedElements.length&&this.removeAppVisibilityListener()}}stop(){this.stopMonitor(),this._mediaStreamTrack.stop()}enable(){this._mediaStreamTrack.enabled=!0}disable(){this._mediaStreamTrack.enabled=!1}stopMonitor(){this.monitorInterval&&clearInterval(this.monitorInterval)}recycleElement(e){if(e instanceof HTMLAudioElement){let t=!0;e.pause(),rse.forEach((e=>{e.parentElement||(t=!1)})),t&&rse.push(e)}}handleAppVisibilityChanged(){return gne(this,void 0,void 0,(function*(){this.isInBackground="hidden"===document.visibilityState}))}addAppVisibilityListener(){_se()?(this.isInBackground="hidden"===document.visibilityState,document.addEventListener("visibilitychange",this.appVisibilityChangedListener)):this.isInBackground=!1}removeAppVisibilityListener(){_se()&&document.removeEventListener("visibilitychange",this.appVisibilityChangedListener)}}function ise(e,t){let r,n;r=t.srcObject instanceof MediaStream?t.srcObject:new MediaStream,n="audio"===e.kind?r.getAudioTracks():r.getVideoTracks(),n.includes(e)||(n.forEach((e=>{r.removeTrack(e)})),r.addTrack(e)),t.autoplay=!0,t.muted=0===r.getAudioTracks().length,t instanceof HTMLVideoElement&&(t.playsInline=!0),t.srcObject!==r&&(t.srcObject=r,(bse()||vse())&&t instanceof HTMLVideoElement&&setTimeout((()=>{t.srcObject=r,t.play().catch((()=>{}))}),0))}function ose(e,t){if(t.srcObject instanceof MediaStream){const r=t.srcObject;r.removeTrack(e),r.getTracks().length>0?t.srcObject=r:t.srcObject=null}}function sse(e,t,r){const n=Object.assign({},e);return!0===n.audio&&(n.audio={}),!0===n.video&&(n.video={}),n.audio&&ase(n.audio,t),n.video&&ase(n.video,r),n}function ase(e,t){return Object.keys(t).forEach((r=>{void 0===e[r]&&(e[r]=t[r])})),e}function use(e){const t={};if(e.video)if("object"==typeof e.video){const r={},n=r,i=e.video;Object.keys(i).forEach((e=>{if("resolution"===e)ase(n,i.resolution);else n[e]=i[e]})),t.video=r}else t.video=e.video;else t.video=!1;return e.audio?"object"==typeof e.audio?t.audio=e.audio:t.audio=!0:t.audio=!1,t}function lse(){const e="undefined"!=typeof window&&(window.AudioContext||window.webkitAudioContext);if(e)return new e({latencyHint:"interactive"})}function cse(e){var t,r;let n=null===(t=e.video)||void 0===t||t;return e.resolution&&(n="boolean"==typeof n?{}:n,n=bse()?Object.assign(Object.assign({},n),{width:{max:e.resolution.width},height:{max:e.resolution.height},frameRate:e.resolution.frameRate}):Object.assign(Object.assign({},n),{width:{ideal:e.resolution.width},height:{ideal:e.resolution.height},frameRate:e.resolution.frameRate})),{audio:null!==(r=e.audio)&&void 0!==r&&r,video:n,controller:e.controller,selfBrowserSurface:e.selfBrowserSurface,surfaceSwitching:e.surfaceSwitching,systemAudio:e.systemAudio}}!function(e){let t,r,n;!function(e){e.Audio="audio",e.Video="video",e.Unknown="unknown"}(t=e.Kind||(e.Kind={})),function(e){e.Camera="camera",e.Microphone="microphone",e.ScreenShare="screen_share",e.ScreenShareAudio="screen_share_audio",e.Unknown="unknown"}(r=e.Source||(e.Source={})),function(e){e.Active="active",e.Paused="paused",e.Unknown="unknown"}(n=e.StreamState||(e.StreamState={})),e.kindToProto=function(e){switch(e){case t.Audio:return Rre.AUDIO;case t.Video:return Rre.VIDEO;default:return Rre.DATA}},e.kindFromProto=function(e){switch(e){case Rre.AUDIO:return t.Audio;case Rre.VIDEO:return t.Video;default:return t.Unknown}},e.sourceToProto=function(e){switch(e){case r.Camera:return Pre.CAMERA;case r.Microphone:return Pre.MICROPHONE;case r.ScreenShare:return Pre.SCREEN_SHARE;case r.ScreenShareAudio:return Pre.SCREEN_SHARE_AUDIO;default:return Pre.UNKNOWN}},e.sourceFromProto=function(e){switch(e){case Pre.CAMERA:return r.Camera;case Pre.MICROPHONE:return r.Microphone;case Pre.SCREEN_SHARE:return r.ScreenShare;case Pre.SCREEN_SHARE_AUDIO:return r.ScreenShareAudio;default:return r.Unknown}},e.streamStateFromProto=function(e){switch(e){case Hie.ACTIVE:return n.Active;case Hie.PAUSED:return n.Paused;default:return n.Unknown}}}(nse||(nse={}));const hse="https://aomediacodec.github.io/av1-rtp-spec/#dependency-descriptor-rtp-header-extension";function dse(e){return gne(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function fse(){return"addTransceiver"in RTCPeerConnection.prototype}function pse(){return"addTrack"in RTCPeerConnection.prototype}function mse(e){return"av1"===e||"vp9"===e}function gse(e){return!!document&&(e||(e=document.createElement("audio")),"setSinkId"in e)}const yse={Chrome:"100",Safari:"15",Firefox:"100"};function vse(){var e;return"Firefox"===(null===(e=Foe())||void 0===e?void 0:e.name)}function bse(){var e;return"Safari"===(null===(e=Foe())||void 0===e?void 0:e.name)}function wse(){return!!_se()&&/Tablet|iPad|Mobile|Android|BlackBerry/.test(navigator.userAgent)}function _se(){return"undefined"!=typeof document}function Ese(){return"ReactNative"==navigator.product}function Ase(e){return e.hostname.endsWith(".livekit.cloud")||e.hostname.endsWith(".livekit.run")}function Mse(){if(global&&global.LiveKitReactNativeGlobal)return global.LiveKitReactNativeGlobal}function Sse(){if(!Ese())return;let e=Mse();return e?e.platform:void 0}function xse(){if(_se())return window.devicePixelRatio;if(Ese()){let e=Mse();if(e)return e.devicePixelRatio}return 1}function kse(e,t){const r=e.split("."),n=t.split("."),i=Math.min(r.length,n.length);for(let o=0;ot)return 1;if(e(Ise||(Ise=new ResizeObserver(Tse)),Ise);let Rse=null;const Pse=()=>(Rse||(Rse=new IntersectionObserver(Cse,{root:null,rootMargin:"0px"})),Rse);let Dse;function Lse(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const i=document.createElement("canvas");i.width=e,i.height=t;const o=i.getContext("2d");null==o||o.fillRect(0,0,i.width,i.height),n&&o&&(o.beginPath(),o.arc(e/2,t/2,50,0,2*Math.PI,!0),o.closePath(),o.fillStyle="grey",o.fill());const s=i.captureStream(),[a]=s.getTracks();if(!a)throw Error("Could not get empty media stream video track");return a.enabled=r,a}function Ose(){if(!Dse){const e=new AudioContext,t=e.createOscillator(),r=e.createGain();r.gain.setValueAtTime(0,0);const n=e.createMediaStreamDestination();if(t.connect(r),r.connect(n),t.start(),[Dse]=n.stream.getAudioTracks(),!Dse)throw Error("Could not get empty media stream audio track");Dse.enabled=!1}return Dse.clone()}class jse{constructor(e,t){this.onFinally=t,this.promise=new Promise(((t,r)=>gne(this,void 0,void 0,(function*(){this.resolve=t,this.reject=r,e&&(yield e(t,r))})))).finally((()=>{var e;return null===(e=this.onFinally)||void 0===e?void 0:e.call(this)}))}}class Bse{constructor(){this._locking=Promise.resolve(),this._locks=0}isLocked(){return this._locks>0}lock(){let e;this._locks+=1;const t=new Promise((t=>e=()=>{this._locks-=1,t()})),r=this._locking.then((()=>e));return this._locking=this._locking.then((()=>t)),r}}function Use(e){if("string"==typeof e)return e;if(Array.isArray(e))return e[0];if(e.exact)return Array.isArray(e.exact)?e.exact[0]:e.exact;if(e.ideal)return Array.isArray(e.ideal)?e.ideal[0]:e.ideal;throw Error("could not unwrap constraint")}function Fse(e){return e.startsWith("ws")?e.replace(/^(ws)/,"http"):e}var zse;!function(e){e[e.WAITING=0]="WAITING",e[e.RUNNING=1]="RUNNING",e[e.COMPLETED=2]="COMPLETED"}(zse||(zse={}));class Hse{constructor(){this.pendingTasks=new Map,this.taskMutex=new Bse,this.nextTaskIndex=0}run(e){return gne(this,void 0,void 0,(function*(){const t={id:this.nextTaskIndex++,enqueuedAt:Date.now(),status:zse.WAITING};this.pendingTasks.set(t.id,t);const r=yield this.taskMutex.lock();try{return t.executedAt=Date.now(),t.status=zse.RUNNING,yield e()}finally{t.status=zse.COMPLETED,this.pendingTasks.delete(t.id),r()}}))}flush(){return gne(this,void 0,void 0,(function*(){return this.run((()=>gne(this,void 0,void 0,(function*(){}))))}))}snapshot(){return Array.from(this.pendingTasks.values())}}const Gse=["syncState","trickle","offer","answer","simulate","leave"];class Yse{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.rtt=0,this.resetCallbacks=()=>{this.onAnswer=void 0,this.onLeave=void 0,this.onLocalTrackPublished=void 0,this.onLocalTrackUnpublished=void 0,this.onNegotiateRequested=void 0,this.onOffer=void 0,this.onRemoteMuteChanged=void 0,this.onSubscribedQualityUpdate=void 0,this.onTokenRefresh=void 0,this.onTrickle=void 0,this.onClose=void 0},this.isConnected=!1,this.isReconnecting=!1,this.useJSON=e,this.requestQueue=new Hse,this.queuedRequests=[],this.closingLock=new Bse}join(e,t,r,n){return gne(this,void 0,void 0,(function*(){this.isConnected=!1,this.options=r;return yield this.connect(e,t,r,n)}))}reconnect(e,t,r,n){return gne(this,void 0,void 0,(function*(){if(!this.options)return void dte.warn("attempted to reconnect without signal options being set, ignoring");this.isReconnecting=!0,this.clearPingInterval();return yield this.connect(e,t,Object.assign(Object.assign({},this.options),{reconnect:!0,sid:r,reconnectReason:n}))}))}connect(e,t,r,n){this.connectOptions=r,e=(e=function(e){return e.startsWith("http")?e.replace(/^(http)/,"ws"):e}(e)).replace(/\/$/,""),e+="/rtc";const i=function(){var e;const t=new une({sdk:Jre.JS,protocol:9,version:"1.13.4"});return Ese()&&(t.os=null!==(e=Sse())&&void 0!==e?e:""),t}(),o=function(e,t,r){var n;const i=new URLSearchParams;i.set("access_token",e),r.reconnect&&(i.set("reconnect","1"),r.sid&&i.set("sid",r.sid));i.set("auto_subscribe",r.autoSubscribe?"1":"0"),i.set("sdk",Ese()?"reactnative":"js"),i.set("version",t.version),i.set("protocol",t.protocol.toString()),t.deviceModel&&i.set("device_model",t.deviceModel);t.os&&i.set("os",t.os);t.osVersion&&i.set("os_version",t.osVersion);t.browser&&i.set("browser",t.browser);t.browserVersion&&i.set("browser_version",t.browserVersion);void 0!==r.publishOnly&&i.set("publish",r.publishOnly);r.adaptiveStream&&i.set("adaptive_stream","1");r.reconnectReason&&i.set("reconnect_reason",r.reconnectReason.toString());(null===(n=navigator.connection)||void 0===n?void 0:n.type)&&i.set("network",navigator.connection.type);return"?".concat(i.toString())}(t,i,r);return new Promise(((t,i)=>gne(this,void 0,void 0,(function*(){const s=()=>gne(this,void 0,void 0,(function*(){this.close(),clearTimeout(a),i(new Noe("room connection has been cancelled (signal)"))})),a=setTimeout((()=>{this.close(),i(new Noe("room connection has timed out (signal)"))}),r.websocketTimeout);(null==n?void 0:n.aborted)&&s(),null==n||n.addEventListener("abort",s),dte.debug("connecting to ".concat(e+o)),this.ws&&(yield this.close()),this.ws=new WebSocket(e+o),this.ws.binaryType="arraybuffer",this.ws.onopen=()=>{clearTimeout(a)},this.ws.onerror=t=>gne(this,void 0,void 0,(function*(){if(this.isConnected)this.handleWSError(t);else{clearTimeout(a);try{const t=yield fetch("http".concat(e.substring(2),"/validate").concat(o));if(t.status.toFixed(0).startsWith("4")){const e=yield t.text();i(new Noe(e,0,t.status))}else i(new Noe("Internal error",2,t.status))}catch(fVe){i(new Noe("server was not reachable",1))}}})),this.ws.onmessage=e=>gne(this,void 0,void 0,(function*(){var o,a,u,l;let c;if("string"==typeof e.data){const t=JSON.parse(e.data);c=Wie.fromJson(t)}else{if(!(e.data instanceof ArrayBuffer))return void dte.error("could not decode websocket message: ".concat(typeof e.data));c=Wie.fromBinary(new Uint8Array(e.data))}if(!this.isConnected){let e=!1;if("join"===(null===(o=c.message)||void 0===o?void 0:o.case)?(this.isConnected=!0,null==n||n.removeEventListener("abort",s),this.pingTimeoutDuration=c.message.value.pingTimeout,this.pingIntervalDuration=c.message.value.pingInterval,this.pingTimeoutDuration&&this.pingTimeoutDuration>0&&(dte.debug("ping config",{timeout:this.pingTimeoutDuration,interval:this.pingIntervalDuration}),this.startPingInterval()),t(c.message.value)):r.reconnect?(this.isConnected=!0,null==n||n.removeEventListener("abort",s),this.startPingInterval(),"reconnect"===(null===(a=c.message)||void 0===a?void 0:a.case)?t(null===(u=c.message)||void 0===u?void 0:u.value):(t(),e=!0)):r.reconnect||i(new Noe("did not receive join response, got ".concat(null===(l=c.message)||void 0===l?void 0:l.case," instead"))),!e)return}this.signalLatency&&(yield dse(this.signalLatency)),this.handleSignalResponse(c)})),this.ws.onclose=e=>{dte.warn("websocket closed",{ev:e}),this.handleOnClose(e.reason)}}))))}close(){return gne(this,void 0,void 0,(function*(){const e=yield this.closingLock.lock();try{if(this.isConnected=!1,this.ws){this.ws.onmessage=null,this.ws.onopen=null,this.ws.onclose=null;const e=new Promise((e=>{this.ws?this.ws.onclose=()=>{e()}:e()}));this.ws.readyState1&&void 0!==arguments[1]&&arguments[1];return gne(this,void 0,void 0,(function*(){const r=!t&&!function(e){const t=Gse.indexOf(e.case)>=0;return dte.trace("request allowed to bypass queue:",{canPass:t,req:e}),t}(e);if(r&&this.isReconnecting)return void this.queuedRequests.push((()=>gne(this,void 0,void 0,(function*(){yield this.sendRequest(e,!0)}))));if(t||(yield this.requestQueue.flush()),this.signalLatency&&(yield dse(this.signalLatency)),!this.ws||this.ws.readyState!==this.ws.OPEN)return void dte.error("cannot send signal request before connected, type: ".concat(null==e?void 0:e.case));const n=new qie({message:e});try{this.useJSON?this.ws.send(n.toJsonString()):this.ws.send(n.toBinary())}catch(fVe){dte.error("error sending signal message",{error:fVe})}}))}handleSignalResponse(e){var t,r;const n=e.message;if(null!=n)if("answer"===n.case){const e=Kse(n.value);this.onAnswer&&this.onAnswer(e)}else if("offer"===n.case){const e=Kse(n.value);this.onOffer&&this.onOffer(e)}else if("trickle"===n.case){const e=JSON.parse(n.value.candidateInit);this.onTrickle&&this.onTrickle(e,n.value.target)}else"update"===n.case?this.onParticipantUpdate&&this.onParticipantUpdate(null!==(t=n.value.participants)&&void 0!==t?t:[]):"trackPublished"===n.case?this.onLocalTrackPublished&&this.onLocalTrackPublished(n.value):"speakersChanged"===n.case?this.onSpeakersChanged&&this.onSpeakersChanged(null!==(r=n.value.speakers)&&void 0!==r?r:[]):"leave"===n.case?this.onLeave&&this.onLeave(n.value):"mute"===n.case?this.onRemoteMuteChanged&&this.onRemoteMuteChanged(n.value.sid,n.value.muted):"roomUpdate"===n.case?this.onRoomUpdate&&n.value.room&&this.onRoomUpdate(n.value.room):"connectionQuality"===n.case?this.onConnectionQuality&&this.onConnectionQuality(n.value):"streamStateUpdate"===n.case?this.onStreamStateUpdate&&this.onStreamStateUpdate(n.value):"subscribedQualityUpdate"===n.case?this.onSubscribedQualityUpdate&&this.onSubscribedQualityUpdate(n.value):"subscriptionPermissionUpdate"===n.case?this.onSubscriptionPermissionUpdate&&this.onSubscriptionPermissionUpdate(n.value):"refreshToken"===n.case?this.onTokenRefresh&&this.onTokenRefresh(n.value):"trackUnpublished"===n.case?this.onLocalTrackUnpublished&&this.onLocalTrackUnpublished(n.value):"subscriptionResponse"===n.case?this.onSubscriptionError&&this.onSubscriptionError(n.value):"pong"===n.case?this.resetPingTimeout():"pongResp"===n.case?(this.rtt=Date.now()-Number.parseInt(n.value.lastPingTimestamp.toString()),this.resetPingTimeout()):dte.debug("unsupported message",n);else dte.debug("received unsupported message")}setReconnected(){for(;this.queuedRequests.length>0;){const e=this.queuedRequests.shift();e&&this.requestQueue.run(e)}this.isReconnecting=!1}handleOnClose(e){return gne(this,void 0,void 0,(function*(){if(!this.isConnected)return;const t=this.onClose;yield this.close(),dte.debug("websocket connection closed: ".concat(e)),t&&t(e)}))}handleWSError(e){dte.error("websocket error",e)}resetPingTimeout(){this.clearPingTimeout(),this.pingTimeoutDuration?this.pingTimeout=joe.setTimeout((()=>{dte.warn("ping timeout triggered. last pong received at: ".concat(new Date(Date.now()-1e3*this.pingTimeoutDuration).toUTCString())),this.handleOnClose("ping timeout")}),1e3*this.pingTimeoutDuration):dte.warn("ping timeout duration not set")}clearPingTimeout(){this.pingTimeout&&joe.clearTimeout(this.pingTimeout)}startPingInterval(){this.clearPingInterval(),this.resetPingTimeout(),this.pingIntervalDuration?(dte.debug("start ping interval"),this.pingInterval=joe.setInterval((()=>{this.sendPing()}),1e3*this.pingIntervalDuration)):dte.warn("ping interval duration not set")}clearPingInterval(){dte.debug("clearing ping interval"),this.clearPingTimeout(),this.pingInterval&&joe.clearInterval(this.pingInterval)}}function Kse(e){const t={type:"offer",sdp:e.sdp};switch(e.type){case"answer":case"offer":case"pranswer":case"rollback":t.type=e.type}return t}function qse(e){return new roe({sdp:e.sdp,type:e.type})}const Wse="lk_e2ee";var Vse,$se,Qse,Jse;function Zse(){return void 0!==window.RTCRtpSender&&void 0!==window.RTCRtpSender.prototype.createEncodedStreams||Xse()}function Xse(){return void 0!==window.RTCRtpScriptTransform}!function(e){e.SetKey="setKey",e.RatchetRequest="ratchetRequest",e.KeyRatcheted="keyRatcheted"}(Vse||(Vse={})),function(e){e.KeyRatcheted="keyRatcheted"}($se||($se={})),function(e){e.ParticipantEncryptionStatusChanged="participantEncryptionStatusChanged",e.EncryptionError="encryptionError"}(Qse||(Qse={})),function(e){e.Error="cryptorError"}(Jse||(Jse={}));class eae extends Lne.EventEmitter{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(),this.onKeyRatcheted=(e,t)=>{dte.debug("key ratcheted event received",{material:e,keyIndex:t})},this.keyInfoMap=new Map,this.options=Object.assign(Object.assign({},KEY_PROVIDER_DEFAULTS),e),this.on(Vse.KeyRatcheted,this.onKeyRatcheted)}onSetEncryptionKey(e,t,r){const n={key:e,participantIdentity:t,keyIndex:r};this.keyInfoMap.set("".concat(null!=t?t:"shared","-").concat(null!=r?r:0),n),this.emit(Vse.SetKey,n)}getKeys(){return Array.from(this.keyInfoMap.values())}getOptions(){return this.options}ratchetKey(e,t){this.emit(Vse.RatchetRequest,e,t)}}function tae(e,t,r){var n,i,o;void 0===t&&(t=50),void 0===r&&(r={});var s=null!=(n=r.isImmediate)&&n,a=null!=(i=r.callback)&&i,u=r.maxWait,l=Date.now(),c=[];function h(){if(void 0!==u){var e=Date.now()-l;if(e+t>=u)return u-e}return t}var d=function(){var t=[].slice.call(arguments),r=this;return new Promise((function(n,i){var u=s&&void 0===o;if(void 0!==o&&clearTimeout(o),o=setTimeout((function(){if(o=void 0,l=Date.now(),!s){var n=e.apply(r,t);a&&a(n),c.forEach((function(e){return(0,e.resolve)(n)})),c=[]}}),h()),u){var d=e.apply(r,t);return a&&a(d),n(d)}c.push({resolve:n,reject:i})}))};return d.cancel=function(e){void 0!==o&&clearTimeout(o),c.forEach((function(t){return(0,t.reject)(e)})),c=[]},d}const rae="default";class nae{static getInstance(){return void 0===this.instance&&(this.instance=new nae),this.instance}getDevices(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];var r;return gne(this,void 0,void 0,(function*(){if((null===(r=nae.userMediaPromiseMap)||void 0===r?void 0:r.size)>0){dte.debug("awaiting getUserMedia promise");try{e?yield nae.userMediaPromiseMap.get(e):yield Promise.all(nae.userMediaPromiseMap.values())}catch(fVe){dte.warn("error waiting for media permissons")}}let n=yield navigator.mediaDevices.enumerateDevices();if(t&&(!bse()||!this.hasDeviceInUse(e))){if(0===n.length||n.some((t=>{const r=""===t.label,n=!e||t.kind===e;return r&&n}))){const t={video:"audioinput"!==e&&"audiooutput"!==e,audio:"videoinput"!==e},r=yield navigator.mediaDevices.getUserMedia(t);n=yield navigator.mediaDevices.enumerateDevices(),r.getTracks().forEach((e=>{e.stop()}))}}return e&&(n=n.filter((t=>t.kind===e))),n}))}normalizeDeviceId(e,t,r){return gne(this,void 0,void 0,(function*(){if(t!==rae)return t;const n=(yield this.getDevices(e)).find((e=>e.groupId===r&&e.deviceId!==rae));return null==n?void 0:n.deviceId}))}hasDeviceInUse(e){return e?nae.userMediaPromiseMap.has(e):nae.userMediaPromiseMap.size>0}}nae.mediaDeviceKinds=["audioinput","audiooutput","videoinput"],nae.userMediaPromiseMap=new Map;class iae extends nse{get constraints(){return this._constraints}constructor(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];super(e,t),this._isUpstreamPaused=!1,this.handleTrackMuteEvent=()=>this.debouncedTrackMuteHandler().catch((()=>dte.debug("track mute bounce got cancelled by an unmute event"))),this.debouncedTrackMuteHandler=tae((()=>gne(this,void 0,void 0,(function*(){yield this.pauseUpstream()}))),5e3),this.handleTrackUnmuteEvent=()=>gne(this,void 0,void 0,(function*(){this.debouncedTrackMuteHandler.cancel("unmute"),yield this.resumeUpstream()})),this.handleEnded=()=>{this.isInBackground&&(this.reacquireTrack=!0),this._mediaStreamTrack.removeEventListener("mute",this.handleTrackMuteEvent),this._mediaStreamTrack.removeEventListener("unmute",this.handleTrackUnmuteEvent),this.emit(tse.Ended,this)},this.reacquireTrack=!1,this.providedByUser=n,this.muteLock=new Bse,this.pauseUpstreamLock=new Bse,this.processorLock=new Bse,this.setMediaStreamTrack(e,!0),this._constraints=e.getConstraints(),r&&(this._constraints=r)}get id(){return this._mediaStreamTrack.id}get dimensions(){if(this.kind!==nse.Kind.Video)return;const{width:e,height:t}=this._mediaStreamTrack.getSettings();return e&&t?{width:e,height:t}:void 0}get isUpstreamPaused(){return this._isUpstreamPaused}get isUserProvided(){return this.providedByUser}get mediaStreamTrack(){var e,t;return null!==(t=null===(e=this.processor)||void 0===e?void 0:e.processedTrack)&&void 0!==t?t:this._mediaStreamTrack}setMediaStreamTrack(e,t){return gne(this,void 0,void 0,(function*(){if(e===this._mediaStreamTrack&&!t)return;let r;if(this._mediaStreamTrack&&(this.attachedElements.forEach((e=>{ose(this._mediaStreamTrack,e)})),this._mediaStreamTrack.removeEventListener("ended",this.handleEnded),this._mediaStreamTrack.removeEventListener("mute",this.handleTrackMuteEvent),this._mediaStreamTrack.removeEventListener("unmute",this.handleTrackUnmuteEvent),this.providedByUser||this._mediaStreamTrack===e||this._mediaStreamTrack.stop()),this.mediaStream=new MediaStream([e]),e&&(e.addEventListener("ended",this.handleEnded),e.addEventListener("mute",this.handleTrackMuteEvent),e.addEventListener("unmute",this.handleTrackUnmuteEvent),this._constraints=e.getConstraints()),this.processor&&e&&this.processorElement){if(dte.debug("restarting processor"),"unknown"===this.kind)throw TypeError("cannot set processor on track of unknown kind");ise(e,this.processorElement),yield this.processor.restart({track:e,kind:this.kind,element:this.processorElement}),r=this.processor.processedTrack}this.sender&&(yield this.sender.replaceTrack(null!=r?r:e)),this._mediaStreamTrack=e,e&&(this._mediaStreamTrack.enabled=!this.isMuted,yield this.resumeUpstream(),this.attachedElements.forEach((t=>{ise(null!=r?r:e,t)})))}))}waitForDimensions(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;return gne(this,void 0,void 0,(function*(){if(this.kind===nse.Kind.Audio)throw new Error("cannot get dimensions for audio tracks");const t=Date.now();for(;Date.now()-t1&&void 0!==arguments[1])||arguments[1];return gne(this,void 0,void 0,(function*(){if(!this.sender)throw new Poe("unable to replace an unpublished track");return dte.debug("replace MediaStreamTrack"),yield this.setMediaStreamTrack(e),this.providedByUser=t,this.processor&&(yield this.stopProcessor()),this}))}restart(e){return gne(this,void 0,void 0,(function*(){e||(e=this._constraints),dte.debug("restarting track with constraints",e);const t={audio:!1,video:!1};this.kind===nse.Kind.Video?t.video=e:t.audio=e,this.attachedElements.forEach((e=>{ose(this.mediaStreamTrack,e)})),this._mediaStreamTrack.removeEventListener("ended",this.handleEnded),this._mediaStreamTrack.stop();const r=(yield navigator.mediaDevices.getUserMedia(t)).getTracks()[0];return r.addEventListener("ended",this.handleEnded),dte.debug("re-acquired MediaStreamTrack"),yield this.setMediaStreamTrack(r),this._constraints=e,this.emit(tse.Restarted,this),this}))}setTrackMuted(e){dte.debug("setting ".concat(this.kind," track ").concat(e?"muted":"unmuted")),this.isMuted===e&&this._mediaStreamTrack.enabled!==e||(this.isMuted=e,this._mediaStreamTrack.enabled=!e,this.emit(e?tse.Muted:tse.Unmuted,this))}get needsReAcquisition(){return"live"!==this._mediaStreamTrack.readyState||this._mediaStreamTrack.muted||!this._mediaStreamTrack.enabled||this.reacquireTrack}handleAppVisibilityChanged(){const e=Object.create(null,{handleAppVisibilityChanged:{get:()=>super.handleAppVisibilityChanged}});return gne(this,void 0,void 0,(function*(){yield e.handleAppVisibilityChanged.call(this),wse()&&(dte.debug("visibility changed, is in Background: ".concat(this.isInBackground)),this.isInBackground||!this.needsReAcquisition||this.isUserProvided||this.isMuted||(dte.debug("track needs to be reacquired, restarting ".concat(this.source)),yield this.restart(),this.reacquireTrack=!1))}))}stop(){var e;super.stop(),this._mediaStreamTrack.removeEventListener("ended",this.handleEnded),this._mediaStreamTrack.removeEventListener("mute",this.handleTrackMuteEvent),this._mediaStreamTrack.removeEventListener("unmute",this.handleTrackUnmuteEvent),null===(e=this.processor)||void 0===e||e.destroy(),this.processor=void 0}pauseUpstream(){return gne(this,void 0,void 0,(function*(){const e=yield this.pauseUpstreamLock.lock();try{if(!0===this._isUpstreamPaused)return;if(!this.sender)return void dte.warn("unable to pause upstream for an unpublished track");this._isUpstreamPaused=!0,this.emit(tse.UpstreamPaused,this);const t=Foe();if("Safari"===(null==t?void 0:t.name)&&kse(t.version,"12.0")<0)throw new Roe("pauseUpstream is not supported on Safari < 12.");yield this.sender.replaceTrack(null)}finally{e()}}))}resumeUpstream(){return gne(this,void 0,void 0,(function*(){const e=yield this.pauseUpstreamLock.lock();try{if(!1===this._isUpstreamPaused)return;if(!this.sender)return void dte.warn("unable to resume upstream for an unpublished track");this._isUpstreamPaused=!1,this.emit(tse.UpstreamResumed,this),yield this.sender.replaceTrack(this._mediaStreamTrack)}finally{e()}}))}getRTCStatsReport(){var e;return gne(this,void 0,void 0,(function*(){if(!(null===(e=this.sender)||void 0===e?void 0:e.getStats))return;return yield this.sender.getStats()}))}setProcessor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];var r,n;return gne(this,void 0,void 0,(function*(){const i=yield this.processorLock.lock();try{if(dte.debug("setting up processor"),this.processor&&(yield this.stopProcessor()),"unknown"===this.kind)throw TypeError("cannot set processor on track of unknown kind");this.processorElement=null!==(r=this.processorElement)&&void 0!==r?r:document.createElement(this.kind),this.processorElement.muted=!0,ise(this._mediaStreamTrack,this.processorElement),this.processorElement.play().catch((e=>dte.error("failed to play processor element",{error:e})));const o={kind:this.kind,track:this._mediaStreamTrack,element:this.processorElement};if(yield e.init(o),this.processor=e,this.processor.processedTrack){for(const e of this.attachedElements)e!==this.processorElement&&t&&(ose(this._mediaStreamTrack,e),ise(this.processor.processedTrack,e));yield null===(n=this.sender)||void 0===n?void 0:n.replaceTrack(this.processor.processedTrack)}}finally{i()}}))}getProcessor(){return this.processor}stopProcessor(){var e,t;return gne(this,void 0,void 0,(function*(){this.processor&&(dte.debug("stopping processor"),null===(e=this.processor.processedTrack)||void 0===e||e.stop(),yield this.processor.destroy(),this.processor=void 0,null===(t=this.processorElement)||void 0===t||t.remove(),this.processorElement=void 0,yield this.restart())}))}}class oae extends Lne.EventEmitter{constructor(e){super(),this.onWorkerMessage=e=>{var t,r;const{kind:n,data:i}=e.data;switch(n){case"error":dte.error(i.error.message),this.emit(Qse.EncryptionError,i.error);break;case"initAck":i.enabled&&this.keyProvider.getKeys().forEach((e=>{this.postKey(e)}));break;case"enable":if(this.encryptionEnabled!==i.enabled&&i.participantIdentity===(null===(t=this.room)||void 0===t?void 0:t.localParticipant.identity))this.emit(Qse.ParticipantEncryptionStatusChanged,i.enabled,this.room.localParticipant),this.encryptionEnabled=i.enabled;else if(i.participantIdentity){const e=null===(r=this.room)||void 0===r?void 0:r.getParticipantByIdentity(i.participantIdentity);if(!e)throw TypeError("couldn't set encryption status, participant not found".concat(i.participantIdentity));this.emit(Qse.ParticipantEncryptionStatusChanged,i.enabled,e)}this.encryptionEnabled&&this.keyProvider.getKeys().forEach((e=>{this.postKey(e)}));break;case"ratchetKey":this.keyProvider.emit(Vse.KeyRatcheted,i.material,i.keyIndex)}},this.onWorkerError=e=>{dte.error("e2ee worker encountered an error:",{error:e.error}),this.emit(Qse.EncryptionError,e.error)},this.keyProvider=e.keyProvider,this.worker=e.worker,this.encryptionEnabled=!1}setup(e){if(!Zse())throw new Roe("tried to setup end-to-end encryption on an unsupported browser");if(dte.info("setting up e2ee"),e!==this.room){this.room=e,this.setupEventListeners(e,this.keyProvider);const t={kind:"init",data:{keyProviderOptions:this.keyProvider.getOptions()}};this.worker&&(dte.info("initializing worker",{worker:this.worker}),this.worker.onmessage=this.onWorkerMessage,this.worker.onerror=this.onWorkerError,this.worker.postMessage(t))}}setParticipantCryptorEnabled(e,t){dte.debug("set e2ee to ".concat(e," for participant ").concat(t)),this.postEnable(e,t)}setSifTrailer(e){e&&0!==e.length?this.postSifTrailer(e):dte.warn("ignoring server sent trailer as it's empty")}setupEngine(e){e.on(ese.RTPVideoMapUpdate,(e=>{this.postRTPMap(e)}))}setupEventListeners(e,t){e.on(Zoe.TrackPublished,((e,t)=>this.setParticipantCryptorEnabled(e.trackInfo.encryption!==Vre.NONE,t.identity))),e.on(Zoe.ConnectionStateChanged,(t=>{t===hue.Connected&&e.participants.forEach((e=>{e.tracks.forEach((t=>{this.setParticipantCryptorEnabled(t.trackInfo.encryption!==Vre.NONE,e.identity)}))}))})).on(Zoe.TrackUnsubscribed,((e,t,r)=>{var n;const i={kind:"removeTransform",data:{participantIdentity:r.identity,trackId:e.mediaStreamID}};null===(n=this.worker)||void 0===n||n.postMessage(i)})).on(Zoe.TrackSubscribed,((e,t,r)=>{this.setupE2EEReceiver(e,r.identity,t.trackInfo)})).on(Zoe.SignalConnected,(()=>{if(!this.room)throw new TypeError("expected room to be present on signal connect");this.setParticipantCryptorEnabled(this.room.localParticipant.isE2EEEnabled,this.room.localParticipant.identity),t.getKeys().forEach((e=>{this.postKey(e)}))})),e.localParticipant.on(Xoe.LocalTrackPublished,(e=>gne(this,void 0,void 0,(function*(){this.setupE2EESender(e.track,e.track.sender)})))),t.on(Vse.SetKey,(e=>this.postKey(e))).on(Vse.RatchetRequest,((e,t)=>this.postRatchetRequest(e,t)))}postRatchetRequest(e,t){if(!this.worker)throw Error("could not ratchet key, worker is missing");const r={kind:"ratchetRequest",data:{participantIdentity:e,keyIndex:t}};this.worker.postMessage(r)}postKey(e){let{key:t,participantIdentity:r,keyIndex:n}=e;var i;if(!this.worker)throw Error("could not set key, worker is missing");const o={kind:"setKey",data:{participantIdentity:r,isPublisher:r===(null===(i=this.room)||void 0===i?void 0:i.localParticipant.identity),key:t,keyIndex:n}};this.worker.postMessage(o)}postEnable(e,t){if(!this.worker)throw new ReferenceError("failed to enable e2ee, worker is not ready");{const r={kind:"enable",data:{enabled:e,participantIdentity:t}};this.worker.postMessage(r)}}postRTPMap(e){var t;if(!this.worker)throw TypeError("could not post rtp map, worker is missing");if(!(null===(t=this.room)||void 0===t?void 0:t.localParticipant.identity))throw TypeError("could not post rtp map, local participant identity is missing");const r={kind:"setRTPMap",data:{map:e,participantIdentity:this.room.localParticipant.identity}};this.worker.postMessage(r)}postSifTrailer(e){if(!this.worker)throw Error("could not post SIF trailer, worker is missing");const t={kind:"setSifTrailer",data:{trailer:e}};this.worker.postMessage(t)}setupE2EEReceiver(e,t,r){if(e.receiver){if(!(null==r?void 0:r.mimeType)||""===r.mimeType)throw new TypeError("MimeType missing from trackInfo, cannot set up E2EE cryptor");this.handleReceiver(e.receiver,e.mediaStreamID,t,"video"===e.kind?function(e){const t=e.split("/")[1].toLowerCase();if(!Koe.includes(t))throw Error("Video codec not supported: ".concat(t));return t}(r.mimeType):void 0)}}setupE2EESender(e,t){e instanceof iae&&t?this.handleSender(t,e.mediaStreamID,void 0):t||dte.warn("early return because sender is not ready")}handleReceiver(e,t,r,n){return gne(this,void 0,void 0,(function*(){if(this.worker){if(Xse()){const i={kind:"decode",participantIdentity:r,trackId:t,codec:n};e.transform=new RTCRtpScriptTransform(this.worker,i)}else{if(Wse in e&&n){const e={kind:"updateCodec",data:{trackId:t,codec:n,participantIdentity:r}};return void this.worker.postMessage(e)}let i=e.writableStream,o=e.readableStream;if(!i||!o){const t=e.createEncodedStreams();e.writableStream=t.writable,i=t.writable,e.readableStream=t.readable,o=t.readable}const s={kind:"decode",data:{readableStream:o,writableStream:i,trackId:t,codec:n,participantIdentity:r}};this.worker.postMessage(s,[o,i])}e.lk_e2ee=!0}}))}handleSender(e,t,r){var n;if(!(Wse in e)&&this.worker){if(!(null===(n=this.room)||void 0===n?void 0:n.localParticipant.identity)||""===this.room.localParticipant.identity)throw TypeError("local identity needs to be known in order to set up encrypted sender");if(Xse()){dte.info("initialize script transform");const n={kind:"encode",participantIdentity:this.room.localParticipant.identity,trackId:t,codec:r};e.transform=new RTCRtpScriptTransform(this.worker,n)}else{dte.info("initialize encoded streams");const n=e.createEncodedStreams(),i={kind:"encode",data:{readableStream:n.readable,writableStream:n.writable,codec:r,trackId:t,participantIdentity:this.room.localParticipant.identity}};this.worker.postMessage(i,[n.readable,n.writable])}e.lk_e2ee=!0}}}var sae={},aae={exports:{}},uae=aae.exports={v:[{name:"version",reg:/^(\d*)$/}],o:[{name:"origin",reg:/^(\S*) (\d*) (\d*) (\S*) IP(\d) (\S*)/,names:["username","sessionId","sessionVersion","netType","ipVer","address"],format:"%s %s %d %s IP%d %s"}],s:[{name:"name"}],i:[{name:"description"}],u:[{name:"uri"}],e:[{name:"email"}],p:[{name:"phone"}],z:[{name:"timezones"}],r:[{name:"repeats"}],t:[{name:"timing",reg:/^(\d*) (\d*)/,names:["start","stop"],format:"%d %d"}],c:[{name:"connection",reg:/^IN IP(\d) (\S*)/,names:["version","ip"],format:"IN IP%d %s"}],b:[{push:"bandwidth",reg:/^(TIAS|AS|CT|RR|RS):(\d*)/,names:["type","limit"],format:"%s:%s"}],m:[{reg:/^(\w*) (\d*) ([\w/]*)(?: (.*))?/,names:["type","port","protocol","payloads"],format:"%s %d %s %s"}],a:[{push:"rtp",reg:/^rtpmap:(\d*) ([\w\-.]*)(?:\s*\/(\d*)(?:\s*\/(\S*))?)?/,names:["payload","codec","rate","encoding"],format:function(e){return e.encoding?"rtpmap:%d %s/%s/%s":e.rate?"rtpmap:%d %s/%s":"rtpmap:%d %s"}},{push:"fmtp",reg:/^fmtp:(\d*) ([\S| ]*)/,names:["payload","config"],format:"fmtp:%d %s"},{name:"control",reg:/^control:(.*)/,format:"control:%s"},{name:"rtcp",reg:/^rtcp:(\d*)(?: (\S*) IP(\d) (\S*))?/,names:["port","netType","ipVer","address"],format:function(e){return null!=e.address?"rtcp:%d %s IP%d %s":"rtcp:%d"}},{push:"rtcpFbTrrInt",reg:/^rtcp-fb:(\*|\d*) trr-int (\d*)/,names:["payload","value"],format:"rtcp-fb:%s trr-int %d"},{push:"rtcpFb",reg:/^rtcp-fb:(\*|\d*) ([\w-_]*)(?: ([\w-_]*))?/,names:["payload","type","subtype"],format:function(e){return null!=e.subtype?"rtcp-fb:%s %s %s":"rtcp-fb:%s %s"}},{push:"ext",reg:/^extmap:(\d+)(?:\/(\w+))?(?: (urn:ietf:params:rtp-hdrext:encrypt))? (\S*)(?: (\S*))?/,names:["value","direction","encrypt-uri","uri","config"],format:function(e){return"extmap:%d"+(e.direction?"/%s":"%v")+(e["encrypt-uri"]?" %s":"%v")+" %s"+(e.config?" %s":"")}},{name:"extmapAllowMixed",reg:/^(extmap-allow-mixed)/},{push:"crypto",reg:/^crypto:(\d*) ([\w_]*) (\S*)(?: (\S*))?/,names:["id","suite","config","sessionConfig"],format:function(e){return null!=e.sessionConfig?"crypto:%d %s %s %s":"crypto:%d %s %s"}},{name:"setup",reg:/^setup:(\w*)/,format:"setup:%s"},{name:"connectionType",reg:/^connection:(new|existing)/,format:"connection:%s"},{name:"mid",reg:/^mid:([^\s]*)/,format:"mid:%s"},{name:"msid",reg:/^msid:(.*)/,format:"msid:%s"},{name:"ptime",reg:/^ptime:(\d*(?:\.\d*)*)/,format:"ptime:%d"},{name:"maxptime",reg:/^maxptime:(\d*(?:\.\d*)*)/,format:"maxptime:%d"},{name:"direction",reg:/^(sendrecv|recvonly|sendonly|inactive)/},{name:"icelite",reg:/^(ice-lite)/},{name:"iceUfrag",reg:/^ice-ufrag:(\S*)/,format:"ice-ufrag:%s"},{name:"icePwd",reg:/^ice-pwd:(\S*)/,format:"ice-pwd:%s"},{name:"fingerprint",reg:/^fingerprint:(\S*) (\S*)/,names:["type","hash"],format:"fingerprint:%s %s"},{push:"candidates",reg:/^candidate:(\S*) (\d*) (\S*) (\d*) (\S*) (\d*) typ (\S*)(?: raddr (\S*) rport (\d*))?(?: tcptype (\S*))?(?: generation (\d*))?(?: network-id (\d*))?(?: network-cost (\d*))?/,names:["foundation","component","transport","priority","ip","port","type","raddr","rport","tcptype","generation","network-id","network-cost"],format:function(e){var t="candidate:%s %d %s %d %s %d typ %s";return t+=null!=e.raddr?" raddr %s rport %d":"%v%v",t+=null!=e.tcptype?" tcptype %s":"%v",null!=e.generation&&(t+=" generation %d"),t+=null!=e["network-id"]?" network-id %d":"%v",t+=null!=e["network-cost"]?" network-cost %d":"%v"}},{name:"endOfCandidates",reg:/^(end-of-candidates)/},{name:"remoteCandidates",reg:/^remote-candidates:(.*)/,format:"remote-candidates:%s"},{name:"iceOptions",reg:/^ice-options:(\S*)/,format:"ice-options:%s"},{push:"ssrcs",reg:/^ssrc:(\d*) ([\w_-]*)(?::(.*))?/,names:["id","attribute","value"],format:function(e){var t="ssrc:%d";return null!=e.attribute&&(t+=" %s",null!=e.value&&(t+=":%s")),t}},{push:"ssrcGroups",reg:/^ssrc-group:([\x21\x23\x24\x25\x26\x27\x2A\x2B\x2D\x2E\w]*) (.*)/,names:["semantics","ssrcs"],format:"ssrc-group:%s %s"},{name:"msidSemantic",reg:/^msid-semantic:\s?(\w*) (\S*)/,names:["semantic","token"],format:"msid-semantic: %s %s"},{push:"groups",reg:/^group:(\w*) (.*)/,names:["type","mids"],format:"group:%s %s"},{name:"rtcpMux",reg:/^(rtcp-mux)/},{name:"rtcpRsize",reg:/^(rtcp-rsize)/},{name:"sctpmap",reg:/^sctpmap:([\w_/]*) (\S*)(?: (\S*))?/,names:["sctpmapNumber","app","maxMessageSize"],format:function(e){return null!=e.maxMessageSize?"sctpmap:%s %s %s":"sctpmap:%s %s"}},{name:"xGoogleFlag",reg:/^x-google-flag:([^\s]*)/,format:"x-google-flag:%s"},{push:"rids",reg:/^rid:([\d\w]+) (\w+)(?: ([\S| ]*))?/,names:["id","direction","params"],format:function(e){return e.params?"rid:%s %s %s":"rid:%s %s"}},{push:"imageattrs",reg:new RegExp("^imageattr:(\\d+|\\*)[\\s\\t]+(send|recv)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*)(?:[\\s\\t]+(recv|send)[\\s\\t]+(\\*|\\[\\S+\\](?:[\\s\\t]+\\[\\S+\\])*))?"),names:["pt","dir1","attrs1","dir2","attrs2"],format:function(e){return"imageattr:%s %s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast",reg:new RegExp("^simulcast:(send|recv) ([a-zA-Z0-9\\-_~;,]+)(?:\\s?(send|recv) ([a-zA-Z0-9\\-_~;,]+))?$"),names:["dir1","list1","dir2","list2"],format:function(e){return"simulcast:%s %s"+(e.dir2?" %s %s":"")}},{name:"simulcast_03",reg:/^simulcast:[\s\t]+([\S+\s\t]+)$/,names:["value"],format:"simulcast: %s"},{name:"framerate",reg:/^framerate:(\d+(?:$|\.\d+))/,format:"framerate:%s"},{name:"sourceFilter",reg:/^source-filter: *(excl|incl) (\S*) (IP4|IP6|\*) (\S*) (.*)/,names:["filterMode","netType","addressTypes","destAddress","srcList"],format:"source-filter: %s %s %s %s %s"},{name:"bundleOnly",reg:/^(bundle-only)/},{name:"label",reg:/^label:(.+)/,format:"label:%s"},{name:"sctpPort",reg:/^sctp-port:(\d+)$/,format:"sctp-port:%s"},{name:"maxMessageSize",reg:/^max-message-size:(\d+)$/,format:"max-message-size:%s"},{push:"tsRefClocks",reg:/^ts-refclk:([^\s=]*)(?:=(\S*))?/,names:["clksrc","clksrcExt"],format:function(e){return"ts-refclk:%s"+(null!=e.clksrcExt?"=%s":"")}},{name:"mediaClk",reg:/^mediaclk:(?:id=(\S*))? *([^\s=]*)(?:=(\S*))?(?: *rate=(\d+)\/(\d+))?/,names:["id","mediaClockName","mediaClockValue","rateNumerator","rateDenominator"],format:function(e){var t="mediaclk:";return t+=null!=e.id?"id=%s %s":"%v%s",t+=null!=e.mediaClockValue?"=%s":"",t+=null!=e.rateNumerator?" rate=%s":"",t+=null!=e.rateDenominator?"/%s":""}},{name:"keywords",reg:/^keywds:(.+)$/,format:"keywds:%s"},{name:"content",reg:/^content:(.+)/,format:"content:%s"},{name:"bfcpFloorCtrl",reg:/^floorctrl:(c-only|s-only|c-s)/,format:"floorctrl:%s"},{name:"bfcpConfId",reg:/^confid:(\d+)/,format:"confid:%s"},{name:"bfcpUserId",reg:/^userid:(\d+)/,format:"userid:%s"},{name:"bfcpFloorId",reg:/^floorid:(.+) (?:m-stream|mstrm):(.+)/,names:["id","mStream"],format:"floorid:%s mstrm:%s"},{push:"invalid",names:["value"]}]};Object.keys(uae).forEach((function(e){uae[e].forEach((function(e){e.reg||(e.reg=/(.*)/),e.format||(e.format="%s")}))}));var lae=aae.exports;!function(e){var t=function(e){return String(Number(e))===e?Number(e):e},r=function(e,r,n){var i=e.name&&e.names;e.push&&!r[e.push]?r[e.push]=[]:i&&!r[e.name]&&(r[e.name]={});var o=e.push?{}:i?r[e.name]:r;!function(e,r,n,i){if(i&&!n)r[i]=t(e[1]);else for(var o=0;o1&&(e[n[0]]=void 0),e};e.parseParams=function(e){return e.split(/;\s?/).reduce(o,{})},e.parseFmtpConfig=e.parseParams,e.parsePayloads=function(e){return e.toString().split(" ").map(Number)},e.parseRemoteCandidates=function(e){for(var r=[],n=e.split(" ").map(t),i=0;i=n)return e;var i=r[t];switch(t+=1,e){case"%%":return"%";case"%s":return String(i);case"%d":return Number(i);case"%v":return""}}))},fae=function(e,t,r){var n=[e+"="+(t.format instanceof Function?t.format(t.push?r:r[t.name]):t.format)];if(t.names)for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:{};super(),this.pendingCandidates=[],this.restartingIce=!1,this.renegotiate=!1,this.trackBitrates=[],this.remoteStereoMids=[],this.remoteNackMids=[],this.negotiate=tae((e=>{this.emit(wae);try{this.createAndSendOffer()}catch(fVe){if(!e)throw fVe;e(fVe)}}),100),this._pc=function(){var e;return"Chrome"===(null===(e=Foe())||void 0===e?void 0:e.name)}()?new RTCPeerConnection(e,t):new RTCPeerConnection(e)}get isICEConnected(){return null!==this._pc&&("connected"===this.pc.iceConnectionState||"completed"===this.pc.iceConnectionState)}addIceCandidate(e){return gne(this,void 0,void 0,(function*(){if(this.pc.remoteDescription&&!this.restartingIce)return this.pc.addIceCandidate(e);this.pendingCandidates.push(e)}))}setRemoteDescription(e){var t;return gne(this,void 0,void 0,(function*(){let r;if("offer"===e.type){let{stereoMids:t,nackMids:r}=function(e){var t;const r=[],n=[],i=bae(null!==(t=e.sdp)&&void 0!==t?t:"");let o=0;return i.media.forEach((e=>{var t;"audio"===e.type&&(e.rtp.some((e=>"opus"===e.codec&&(o=e.payload,!0))),(null===(t=e.rtcpFb)||void 0===t?void 0:t.some((e=>e.payload===o&&"nack"===e.type)))&&n.push(e.mid),e.fmtp.some((t=>t.payload===o&&(t.config.includes("sprop-stereo=1")&&r.push(e.mid),!0))))})),{stereoMids:r,nackMids:n}}(e);this.remoteStereoMids=t,this.remoteNackMids=r}else if("answer"===e.type){const n=bae(null!==(t=e.sdp)&&void 0!==t?t:"");n.media.forEach((e=>{"audio"===e.type&&this.trackBitrates.some((t=>{if(!t.transceiver||e.mid!=t.transceiver.mid)return!1;let r=0;if(e.rtp.some((e=>e.codec.toUpperCase()===t.codec.toUpperCase()&&(r=e.payload,!0))),0===r)return!0;let n=!1;for(const i of e.fmtp)if(i.payload===r){i.config=i.config.split(";").filter((e=>!e.includes("maxaveragebitrate"))).join(";"),t.maxbr>0&&(i.config+=";maxaveragebitrate=".concat(1e3*t.maxbr)),n=!0;break}return n||t.maxbr>0&&e.fmtp.push({payload:r,config:"maxaveragebitrate=".concat(1e3*t.maxbr)}),!0}))})),r=vae(n)}if(yield this.setMungedSDP(e,r,!0),this.pendingCandidates.forEach((e=>{this.pc.addIceCandidate(e)})),this.pendingCandidates=[],this.restartingIce=!1,this.renegotiate)this.renegotiate=!1,this.createAndSendOffer();else if("answer"===e.type&&(this.emit(_ae),e.sdp)){bae(e.sdp).media.forEach((e=>{"video"===e.type&&this.emit(Eae,e.rtp)}))}}))}createAndSendOffer(e){var t;return gne(this,void 0,void 0,(function*(){if(void 0===this.onOffer)return;if((null==e?void 0:e.iceRestart)&&(dte.debug("restarting ICE"),this.restartingIce=!0),this._pc&&"have-local-offer"===this._pc.signalingState){const t=this.pc.remoteDescription;if(!(null==e?void 0:e.iceRestart)||!t)return void(this.renegotiate=!0);yield this.pc.setRemoteDescription(t)}else if(!this._pc||"closed"===this._pc.signalingState)return void dte.warn("could not createOffer with closed peer connection");dte.debug("starting to negotiate");const r=yield this.pc.createOffer(e),n=bae(null!==(t=r.sdp)&&void 0!==t?t:"");n.media.forEach((e=>{"audio"===e.type?Mae(e,[],[]):"video"===e.type&&(!function(e){var t,r,n,i;if(!mse(null===(r=null===(t=e.rtp[0])||void 0===t?void 0:t.codec)||void 0===r?void 0:r.toLowerCase()))return;let o=0;(null===(n=e.ext)||void 0===n?void 0:n.some((e=>e.uri===hse||(e.value>o&&(o=e.value),!1))))||null===(i=e.ext)||void 0===i||i.push({value:o+1,uri:hse})}(e),this.trackBitrates.some((t=>{if(!e.msid||!t.cid||!e.msid.includes(t.cid))return!1;let r=0;if(e.rtp.some((e=>e.codec.toUpperCase()===t.codec.toUpperCase()&&(r=e.payload,!0))),0===r)return!0;let n=!1;for(const i of e.fmtp)if(i.payload===r){i.config.includes("x-google-start-bitrate")||(i.config+=";x-google-start-bitrate=".concat(.7*t.maxbr)),i.config.includes("x-google-max-bitrate")||(i.config+=";x-google-max-bitrate=".concat(t.maxbr)),n=!0;break}return n||e.fmtp.push({payload:r,config:"x-google-start-bitrate=".concat(.7*t.maxbr,";x-google-max-bitrate=").concat(t.maxbr)}),!0})))})),yield this.setMungedSDP(r,vae(n)),this.onOffer(r)}))}createAndSetAnswer(){var e;return gne(this,void 0,void 0,(function*(){const t=yield this.pc.createAnswer(),r=bae(null!==(e=t.sdp)&&void 0!==e?e:"");return r.media.forEach((e=>{"audio"===e.type&&Mae(e,this.remoteStereoMids,this.remoteNackMids)})),yield this.setMungedSDP(t,vae(r)),t}))}setTrackCodecBitrate(e){this.trackBitrates.push(e)}close(){this._pc&&(this._pc.close(),this._pc.onconnectionstatechange=null,this._pc.oniceconnectionstatechange=null,this._pc.onicegatheringstatechange=null,this._pc.ondatachannel=null,this._pc.onnegotiationneeded=null,this._pc.onsignalingstatechange=null,this._pc.onicecandidate=null,this._pc.ondatachannel=null,this._pc.ontrack=null,this._pc.onconnectionstatechange=null,this._pc.oniceconnectionstatechange=null,this._pc=null)}setMungedSDP(e,t,r){return gne(this,void 0,void 0,(function*(){if(t){const n=e.sdp;e.sdp=t;try{return dte.debug("setting munged ".concat(r?"remote":"local"," description")),void(r?yield this.pc.setRemoteDescription(e):yield this.pc.setLocalDescription(e))}catch(fVe){dte.warn("not able to set ".concat(e.type,", falling back to unmodified sdp"),{error:fVe,sdp:t}),e.sdp=n}}try{r?yield this.pc.setRemoteDescription(e):yield this.pc.setLocalDescription(e)}catch(fVe){let n="unknown error";fVe instanceof Error?n=fVe.message:"string"==typeof fVe&&(n=fVe);const i={error:n,sdp:e.sdp};throw!r&&this.pc.remoteDescription&&(i.remoteSdp=this.pc.remoteDescription),dte.error("unable to set ".concat(e.type),i),new Ooe(n)}}))}}function Mae(e,t,r){let n=0;e.rtp.some((e=>"opus"===e.codec&&(n=e.payload,!0))),n>0&&(e.rtcpFb||(e.rtcpFb=[]),r.includes(e.mid)&&!e.rtcpFb.some((e=>e.payload===n&&"nack"===e.type))&&e.rtcpFb.push({payload:n,type:"nack"}),t.includes(e.mid)&&e.fmtp.some((e=>e.payload===n&&(e.config.includes("stereo=1")||(e.config+=";stereo=1"),!0))))}const Sae={audioBitrate:Voe.music.maxBitrate,audioPreset:Voe.music,dtx:!0,red:!0,forceStereo:!1,simulcast:!0,screenShareEncoding:Joe.h1080fps15.encoding,stopMicTrackOnMute:!1,videoCodec:"vp8",backupCodec:!1},xae={autoGainControl:!0,echoCancellation:!0,noiseSuppression:!0},kae={resolution:$oe.h720.resolution},Tae={adaptiveStream:!1,dynacast:!1,stopLocalTrackOnUnpublish:!0,reconnectPolicy:new class{constructor(e){this._retryDelays=void 0!==e?[...e]:mne}nextRetryDelayInMs(e){if(e.retryCount>=this._retryDelays.length)return null;const t=this._retryDelays[e.retryCount];return e.retryCount<=1?t:t+1e3*Math.random()}},disconnectOnPageLeave:!0,expWebAudioMix:!1},Cae={autoSubscribe:!0,maxRetries:1,peerConnectionTimeout:15e3,websocketTimeout:15e3},Iae="_lossy",Nae="_reliable",Rae="leave-reconnect";var Pae;!function(e){e[e.New=0]="New",e[e.Connected=1]="Connected",e[e.Disconnected=2]="Disconnected",e[e.Reconnecting=3]="Reconnecting",e[e.Closed=4]="Closed"}(Pae||(Pae={}));class Dae extends Lne.EventEmitter{get isClosed(){return this._isClosed}constructor(e){super(),this.options=e,this.rtcConfig={},this.peerConnectionTimeout=Cae.peerConnectionTimeout,this.fullReconnectOnNext=!1,this.subscriberPrimary=!1,this.pcState=Pae.New,this._isClosed=!0,this.pendingTrackResolvers={},this.hasPublished=!1,this.reconnectAttempts=0,this.reconnectStart=0,this.attemptingReconnect=!1,this.joinAttempts=0,this.maxJoinAttempts=1,this.shouldFailNext=!1,this.handleDataChannel=e=>{let{channel:t}=e;return gne(this,void 0,void 0,(function*(){if(t){if(t.label===Nae)this.reliableDCSub=t;else{if(t.label!==Iae)return;this.lossyDCSub=t}dte.debug("on data channel ".concat(t.id,", ").concat(t.label)),t.onmessage=this.handleDataMessage}}))},this.handleDataMessage=e=>gne(this,void 0,void 0,(function*(){var t,r;const n=yield this.dataProcessLock.lock();try{let i;if(e.data instanceof ArrayBuffer)i=e.data;else{if(!(e.data instanceof Blob))return void dte.error("unsupported data type",e.data);i=yield e.data.arrayBuffer()}const o=rne.fromBinary(new Uint8Array(i));"speaker"===(null===(t=o.value)||void 0===t?void 0:t.case)?this.emit(ese.ActiveSpeakersUpdate,o.value.value.speakers):"user"===(null===(r=o.value)||void 0===r?void 0:r.case)&&this.emit(ese.DataPacketReceived,o.value.value,o.kind)}finally{n()}})),this.handleDataError=e=>{const t=0===e.currentTarget.maxRetransmits?"lossy":"reliable";if(e instanceof ErrorEvent&&e.error){const{error:r}=e.error;dte.error("DataChannel error on ".concat(t,": ").concat(e.message),r)}else dte.error("Unknown DataChannel error on ".concat(t),e)},this.handleBufferedAmountLow=e=>{const t=0===e.currentTarget.maxRetransmits?$re.LOSSY:$re.RELIABLE;this.updateAndEmitDCBufferStatus(t)},this.handleDisconnect=(e,t)=>{if(this._isClosed)return;dte.warn("".concat(e," disconnected")),0===this.reconnectAttempts&&(this.reconnectStart=Date.now());const r=e=>{dte.warn("could not recover connection after ".concat(this.reconnectAttempts," attempts, ").concat(e,"ms. giving up")),this.emit(ese.Disconnected),this.close()},n=Date.now()-this.reconnectStart;let i=this.getNextRetryDelay({elapsedMs:n,retryCount:this.reconnectAttempts});null!==i?(e===Rae&&(i=0),dte.debug("reconnecting in ".concat(i,"ms")),this.clearReconnectTimeout(),this.token&&this.regionUrlProvider&&this.regionUrlProvider.updateToken(this.token),this.reconnectTimeout=joe.setTimeout((()=>this.attemptReconnect(t)),i)):r(n)},this.waitForRestarted=()=>new Promise(((e,t)=>{this.pcState===Pae.Connected&&e();const r=()=>{this.off(ese.Disconnected,n),e()},n=()=>{this.off(ese.Restarted,r),t()};this.once(ese.Restarted,r),this.once(ese.Disconnected,n)})),this.updateAndEmitDCBufferStatus=e=>{const t=this.isBufferStatusLow(e);void 0!==t&&t!==this.dcBufferStatus.get(e)&&(this.dcBufferStatus.set(e,t),this.emit(ese.DCBufferStatusChanged,t,e))},this.isBufferStatusLow=e=>{const t=this.dataChannelForKind(e);if(t)return t.bufferedAmount<=t.bufferedAmountLowThreshold},this.handleBrowserOnLine=()=>{this.client.isReconnecting&&(this.clearReconnectTimeout(),this.attemptReconnect(Bre.RR_SIGNAL_DISCONNECTED))},this.client=new Yse,this.client.signalLatency=this.options.expSignalLatency,this.reconnectPolicy=this.options.reconnectPolicy,this.registerOnLineListener(),this.closingLock=new Bse,this.dataProcessLock=new Bse,this.dcBufferStatus=new Map([[$re.LOSSY,!0],[$re.RELIABLE,!0]]),this.client.onParticipantUpdate=e=>this.emit(ese.ParticipantUpdate,e),this.client.onConnectionQuality=e=>this.emit(ese.ConnectionQualityUpdate,e),this.client.onRoomUpdate=e=>this.emit(ese.RoomUpdate,e),this.client.onSubscriptionError=e=>this.emit(ese.SubscriptionError,e),this.client.onSubscriptionPermissionUpdate=e=>this.emit(ese.SubscriptionPermissionUpdate,e),this.client.onSpeakersChanged=e=>this.emit(ese.SpeakersChanged,e),this.client.onStreamStateUpdate=e=>this.emit(ese.StreamStateChanged,e)}join(e,t,r,n){return gne(this,void 0,void 0,(function*(){this.url=e,this.token=t,this.signalOpts=r,this.maxJoinAttempts=r.maxRetries;try{this.joinAttempts+=1,this.setupSignalClientCallbacks();const i=yield this.client.join(e,t,r,n);return this._isClosed=!1,this.latestJoinResponse=i,this.subscriberPrimary=i.subscriberPrimary,this.publisher||this.configure(i),this.subscriberPrimary||this.negotiate(),this.clientConfiguration=i.clientConfiguration,i}catch(fVe){if(fVe instanceof Noe&&1===fVe.reason&&(dte.warn("Couldn't connect to server, attempt ".concat(this.joinAttempts," of ").concat(this.maxJoinAttempts)),this.joinAttempts{var t,r;try{(null===(t=this.publisher)||void 0===t?void 0:t.pc.removeTrack)&&(null===(r=this.publisher)||void 0===r||r.pc.removeTrack(e))}catch(fVe){dte.warn("could not removeTrack",{error:fVe})}})),this.publisher&&(this.publisher.close(),this.publisher=void 0),this.subscriber&&(this.subscriber.close(),this.subscriber=void 0),this.hasPublished=!1,this.primaryPC=void 0;const e=e=>{e&&(e.close(),e.onbufferedamountlow=null,e.onclose=null,e.onclosing=null,e.onerror=null,e.onmessage=null,e.onopen=null)};e(this.lossyDC),e(this.lossyDCSub),e(this.reliableDC),e(this.reliableDCSub),this.lossyDC=void 0,this.lossyDCSub=void 0,this.reliableDC=void 0,this.reliableDCSub=void 0}))}cleanupClient(){return gne(this,void 0,void 0,(function*(){yield this.client.close(),this.client.resetCallbacks()}))}addTrack(e){if(this.pendingTrackResolvers[e.cid])throw new Poe("a track with the same ID has already been published");return new Promise(((t,r)=>{const n=setTimeout((()=>{delete this.pendingTrackResolvers[e.cid],r(new Noe("publication of local track timed out, no response from server"))}),1e4);this.pendingTrackResolvers[e.cid]={resolve:e=>{clearTimeout(n),t(e)},reject:()=>{clearTimeout(n),r(new Error("Cancelled publication by calling unpublish"))}},this.client.sendAddTrack(e)}))}removeTrack(e){var t;if(e.track&&this.pendingTrackResolvers[e.track.id]){const{reject:t}=this.pendingTrackResolvers[e.track.id];t&&t(),delete this.pendingTrackResolvers[e.track.id]}try{return null===(t=this.publisher)||void 0===t||t.pc.removeTrack(e),!0}catch(fVe){dte.warn("failed to remove track",{error:fVe,method:"removeTrack"})}return!1}updateMuteStatus(e,t){this.client.sendMuteTrack(e,t)}get dataSubscriberReadyState(){var e;return null===(e=this.reliableDCSub)||void 0===e?void 0:e.readyState}getConnectedServerAddress(){return gne(this,void 0,void 0,(function*(){if(void 0!==this.primaryPC)return function(e){var t;return gne(this,void 0,void 0,(function*(){let r="";const n=new Map,i=new Map;if((yield e.getStats()).forEach((e=>{switch(e.type){case"transport":r=e.selectedCandidatePairId;break;case"candidate-pair":""===r&&e.selected&&(r=e.id),n.set(e.id,e);break;case"remote-candidate":i.set(e.id,"".concat(e.address,":").concat(e.port))}})),""===r)return;const o=null===(t=n.get(r))||void 0===t?void 0:t.remoteCandidateId;return void 0!==o?i.get(o):void 0}))}(this.primaryPC)}))}setRegionUrlProvider(e){this.regionUrlProvider=e}configure(e){var t,r;if(this.publisher||this.subscriber)return;this.participantSid=null===(t=e.participant)||void 0===t?void 0:t.sid;const n=this.makeRTCConfiguration(e);(null===(r=this.signalOpts)||void 0===r?void 0:r.e2eeEnabled)&&(dte.debug("E2EE - setting up transports with insertable streams"),n.encodedInsertableStreams=!0);this.publisher=new Aae(n,{optional:[{googDscp:!0}]}),this.subscriber=new Aae(n),this.emit(ese.TransportsCreated,this.publisher,this.subscriber),this.publisher.pc.onicecandidate=e=>{e.candidate&&(dte.trace("adding ICE candidate for peer",e.candidate),this.client.sendIceCandidate(e.candidate,zie.PUBLISHER))},this.subscriber.pc.onicecandidate=e=>{e.candidate&&this.client.sendIceCandidate(e.candidate,zie.SUBSCRIBER)},this.publisher.onOffer=e=>{this.client.sendOffer(e)};let i=this.publisher.pc,o=this.subscriber.pc,s=e.subscriberPrimary;s&&(i=this.subscriber.pc,o=this.publisher.pc,this.subscriber.pc.ondatachannel=this.handleDataChannel),this.primaryPC=i,i.onconnectionstatechange=()=>gne(this,void 0,void 0,(function*(){if(dte.debug("primary PC state changed ".concat(i.connectionState)),"connected"===i.connectionState){const t=this.pcState===Pae.New;this.pcState=Pae.Connected,t&&this.emit(ese.Connected,e)}else"failed"===i.connectionState&&this.pcState===Pae.Connected&&(this.pcState=Pae.Disconnected,this.handleDisconnect("primary peerconnection",s?Bre.RR_SUBSCRIBER_FAILED:Bre.RR_PUBLISHER_FAILED))})),o.onconnectionstatechange=()=>gne(this,void 0,void 0,(function*(){dte.debug("secondary PC state changed ".concat(o.connectionState)),"failed"===o.connectionState&&this.handleDisconnect("secondary peerconnection",s?Bre.RR_PUBLISHER_FAILED:Bre.RR_SUBSCRIBER_FAILED)})),this.subscriber.pc.ontrack=e=>{this.emit(ese.MediaTrackAdded,e.track,e.streams[0],e.receiver)},this.createDataChannels()}setupSignalClientCallbacks(){this.client.onAnswer=e=>gne(this,void 0,void 0,(function*(){this.publisher&&(dte.debug("received server answer",{RTCSdpType:e.type,signalingState:this.publisher.pc.signalingState.toString()}),yield this.publisher.setRemoteDescription(e))})),this.client.onTrickle=(e,t)=>{this.publisher&&this.subscriber&&(dte.trace("got ICE candidate from peer",{candidate:e,target:t}),t===zie.PUBLISHER?this.publisher.addIceCandidate(e):this.subscriber.addIceCandidate(e))},this.client.onOffer=e=>gne(this,void 0,void 0,(function*(){if(!this.subscriber)return;dte.debug("received server offer",{RTCSdpType:e.type,signalingState:this.subscriber.pc.signalingState.toString()}),yield this.subscriber.setRemoteDescription(e);const t=yield this.subscriber.createAndSetAnswer();this.client.sendAnswer(t)})),this.client.onLocalTrackPublished=e=>{if(dte.debug("received trackPublishedResponse",e),!this.pendingTrackResolvers[e.cid])return void dte.error("missing track resolver for ".concat(e.cid));const{resolve:t}=this.pendingTrackResolvers[e.cid];delete this.pendingTrackResolvers[e.cid],t(e.track)},this.client.onTokenRefresh=e=>{this.token=e},this.client.onClose=()=>{this.handleDisconnect("signal",Bre.RR_SIGNAL_DISCONNECTED)},this.client.onLeave=e=>{(null==e?void 0:e.canReconnect)?(this.fullReconnectOnNext=!0,this.primaryPC=void 0,this.handleDisconnect(Rae)):(this.emit(ese.Disconnected,null==e?void 0:e.reason),this.close()),dte.trace("leave request",{leave:e})}}makeRTCConfiguration(e){const t=Object.assign({},this.rtcConfig);if(e.iceServers&&!t.iceServers){const r=[];e.iceServers.forEach((e=>{const t={urls:e.urls};e.username&&(t.username=e.username),e.credential&&(t.credential=e.credential),r.push(t)})),t.iceServers=r}return e.clientConfiguration&&e.clientConfiguration.forceRelay===Ore.ENABLED&&(t.iceTransportPolicy="relay"),t.sdpSemantics="unified-plan",t.continualGatheringPolicy="gather_continually",t}createDataChannels(){this.publisher&&(this.lossyDC&&(this.lossyDC.onmessage=null,this.lossyDC.onerror=null),this.reliableDC&&(this.reliableDC.onmessage=null,this.reliableDC.onerror=null),this.lossyDC=this.publisher.pc.createDataChannel(Iae,{ordered:!0,maxRetransmits:0}),this.reliableDC=this.publisher.pc.createDataChannel(Nae,{ordered:!0}),this.lossyDC.onmessage=this.handleDataMessage,this.reliableDC.onmessage=this.handleDataMessage,this.lossyDC.onerror=this.handleDataError,this.reliableDC.onerror=this.handleDataError,this.lossyDC.bufferedAmountLowThreshold=65535,this.reliableDC.bufferedAmountLowThreshold=65535,this.lossyDC.onbufferedamountlow=this.handleBufferedAmountLow,this.reliableDC.onbufferedamountlow=this.handleBufferedAmountLow)}setPreferredCodec(e,t,r){if(!("getCapabilities"in RTCRtpSender))return;const n=RTCRtpSender.getCapabilities(t);if(!n)return;dte.debug("get capabilities",n);const i=[],o=[],s=[];n.codecs.forEach((e=>{const t=e.mimeType.toLowerCase();if("audio/opus"===t)return void i.push(e);t==="video/".concat(r)?"h264"!==r||e.sdpFmtpLine&&e.sdpFmtpLine.includes("profile-level-id=42e01f")?i.push(e):o.push(e):s.push(e)})),function(e){if(!_se())return!1;if(!("setCodecPreferences"in e))return!1;const t=Foe();if(!(null==t?void 0:t.name)||!t.version)return!1;const r=yse[t.name];return!!r&&kse(t.version,r)>=0}(e)&&e.setCodecPreferences(i.concat(o,s))}createSender(e,t,r){return gne(this,void 0,void 0,(function*(){if(fse()){return yield this.createTransceiverRTCRtpSender(e,t,r)}if(pse()){dte.warn("using add-track fallback");return yield this.createRTCRtpSender(e.mediaStreamTrack)}throw new Loe("Required webRTC APIs not supported on this device")}))}createSimulcastSender(e,t,r,n){return gne(this,void 0,void 0,(function*(){if(fse())return this.createSimulcastTransceiverSender(e,t,r,n);if(pse())return dte.debug("using add-track fallback"),this.createRTCRtpSender(e.mediaStreamTrack);throw new Loe("Cannot stream on this device")}))}createTransceiverRTCRtpSender(e,t,r){return gne(this,void 0,void 0,(function*(){if(!this.publisher)throw new Loe("publisher is closed");const n=[];e.mediaStream&&n.push(e.mediaStream);const i={direction:"sendonly",streams:n};r&&(i.sendEncodings=r);const o=yield this.publisher.pc.addTransceiver(e.mediaStreamTrack,i);return e.kind===nse.Kind.Video&&t.videoCodec&&(this.setPreferredCodec(o,e.kind,t.videoCodec),e.codec=t.videoCodec),o.sender}))}createSimulcastTransceiverSender(e,t,r,n){return gne(this,void 0,void 0,(function*(){if(!this.publisher)throw new Loe("publisher is closed");const i={direction:"sendonly"};n&&(i.sendEncodings=n);const o=yield this.publisher.pc.addTransceiver(t.mediaStreamTrack,i);if(r.videoCodec)return this.setPreferredCodec(o,e.kind,r.videoCodec),e.setSimulcastTrackSender(r.videoCodec,o.sender),o.sender}))}createRTCRtpSender(e){return gne(this,void 0,void 0,(function*(){if(!this.publisher)throw new Loe("publisher is closed");return this.publisher.pc.addTrack(e)}))}attemptReconnect(e){var t,r,n;return gne(this,void 0,void 0,(function*(){if(!this._isClosed&&!this.attemptingReconnect){(null===(t=this.clientConfiguration)||void 0===t?void 0:t.resumeConnection)!==Ore.DISABLED&&"closed"!==(null!==(n=null===(r=this.primaryPC)||void 0===r?void 0:r.signalingState)&&void 0!==n?n:"closed")||(this.fullReconnectOnNext=!0);try{this.attemptingReconnect=!0,this.fullReconnectOnNext?yield this.restartConnection():yield this.resumeConnection(e),this.clearPendingReconnect(),this.fullReconnectOnNext=!1}catch(fVe){this.reconnectAttempts+=1;let t=!0;fVe instanceof Loe?(dte.debug("received unrecoverable error",{error:fVe}),t=!1):fVe instanceof Lae||(this.fullReconnectOnNext=!0),t?this.handleDisconnect("reconnect",Bre.RR_UNKNOWN):(dte.info("could not recover connection after ".concat(this.reconnectAttempts," attempts, ").concat(Date.now()-this.reconnectStart,"ms. giving up")),this.emit(ese.Disconnected),yield this.close())}finally{this.attemptingReconnect=!1}}}))}getNextRetryDelay(e){try{return this.reconnectPolicy.nextRetryDelayInMs(e)}catch(fVe){dte.warn("encountered error in reconnect policy",{error:fVe})}return null}restartConnection(e){var t,r,n;return gne(this,void 0,void 0,(function*(){try{if(!this.url||!this.token)throw new Loe("could not reconnect, url or token not saved");let r;dte.info("reconnecting, attempt: ".concat(this.reconnectAttempts)),this.emit(ese.Restarting),this.client.isConnected&&(yield this.client.sendLeave()),yield this.cleanupPeerConnections(),yield this.cleanupClient();try{if(!this.signalOpts)throw dte.warn("attempted connection restart, without signal options present"),new Lae;r=yield this.join(null!=e?e:this.url,this.token,this.signalOpts)}catch(fVe){if(fVe instanceof Noe&&0===fVe.reason)throw new Loe("could not reconnect, token might be expired");throw new Lae}if(this.shouldFailNext)throw this.shouldFailNext=!1,new Error("simulated failure");this.client.setReconnected(),this.emit(ese.SignalRestarted,r),yield this.waitForPCReconnected(),null===(t=this.regionUrlProvider)||void 0===t||t.resetAttempts(),this.emit(ese.Restarted)}catch(XMe){const t=yield null===(r=this.regionUrlProvider)||void 0===r?void 0:r.getNextBestRegionUrl();if(t)return void(yield this.restartConnection(t));throw null===(n=this.regionUrlProvider)||void 0===n||n.resetAttempts(),XMe}}))}resumeConnection(e){var t;return gne(this,void 0,void 0,(function*(){if(!this.url||!this.token)throw new Loe("could not reconnect, url or token not saved");if(!this.publisher||!this.subscriber)throw new Loe("publisher and subscriber connections unset");dte.info("resuming signal connection, attempt ".concat(this.reconnectAttempts)),this.emit(ese.Resuming);try{this.setupSignalClientCallbacks();const t=yield this.client.reconnect(this.url,this.token,this.participantSid,e);if(t){const e=this.makeRTCConfiguration(t);this.publisher.pc.setConfiguration(e),this.subscriber.pc.setConfiguration(e)}}catch(fVe){let t="";if(fVe instanceof Error&&(t=fVe.message),fVe instanceof Noe&&0===fVe.reason)throw new Loe("could not reconnect, token might be expired");throw new Lae(t)}if(this.emit(ese.SignalResumed),this.shouldFailNext)throw this.shouldFailNext=!1,new Error("simulated failure");this.subscriber.restartingIce=!0,this.hasPublished&&(yield this.publisher.createAndSendOffer({iceRestart:!0})),yield this.waitForPCReconnected(),this.client.setReconnected(),"open"===(null===(t=this.reliableDC)||void 0===t?void 0:t.readyState)&&null===this.reliableDC.id&&this.createDataChannels(),this.emit(ese.Resumed)}))}waitForPCInitialConnection(e,t){return gne(this,void 0,void 0,(function*(){if(this.pcState!==Pae.Connected){if(this.pcState!==Pae.New)throw new Loe("Expected peer connection to be new on initial connection");return new Promise(((r,n)=>{const i=()=>{dte.warn("closing engine"),joe.clearTimeout(s),n(new Noe("room connection has been cancelled",3))};(null==t?void 0:t.signal.aborted)&&i(),null==t||t.signal.addEventListener("abort",i);const o=()=>{joe.clearTimeout(s),null==t||t.signal.removeEventListener("abort",i),r()},s=joe.setTimeout((()=>{this.off(ese.Connected,o),n(new Noe("could not establish pc connection"))}),null!=e?e:this.peerConnectionTimeout);this.once(ese.Connected,o)}))}}))}waitForPCReconnected(){var e,t;return gne(this,void 0,void 0,(function*(){const r=Date.now();let n=r;for(this.pcState=Pae.Reconnecting,dte.debug("waiting for peer connection to reconnect");n-r2e3&&"connected"===(null===(e=this.primaryPC)||void 0===e?void 0:e.connectionState)&&(!this.hasPublished||"connected"===(null===(t=this.publisher)||void 0===t?void 0:t.pc.connectionState))&&(this.pcState=Pae.Connected),this.pcState===Pae.Connected)return;yield dse(100),n=Date.now()}throw new Noe("could not establish PC connection")}))}sendDataPacket(e,t){return gne(this,void 0,void 0,(function*(){const r=e.toBinary();yield this.ensurePublisherConnected(t);const n=this.dataChannelForKind(t);n&&n.send(r),this.updateAndEmitDCBufferStatus(t)}))}ensureDataTransportConnected(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.subscriberPrimary;var r,n,i;return gne(this,void 0,void 0,(function*(){const o=t?this.subscriber:this.publisher,s=t?"Subscriber":"Publisher";if(!o)throw new Noe("".concat(s," connection not set"));t||(null===(r=this.publisher)||void 0===r?void 0:r.isICEConnected)||"checking"===(null===(n=this.publisher)||void 0===n?void 0:n.pc.iceConnectionState)||this.negotiate();const a=this.dataChannelForKind(e,t);if("open"===(null==a?void 0:a.readyState))return;const u=(new Date).getTime()+this.peerConnectionTimeout;for(;(new Date).getTime(){if(!this.publisher)return void t(new Ooe("publisher is not defined"));this.hasPublished=!0;const r=()=>{dte.debug("engine disconnected while negotiation was ongoing"),i(),e()};this.isClosed&&t("cannot negotiate on closed engine"),this.on(ese.Closing,r);const n=setTimeout((()=>{t("negotiation timed out"),this.handleDisconnect("negotiation",Bre.RR_SIGNAL_DISCONNECTED)}),this.peerConnectionTimeout),i=()=>{clearTimeout(n),this.off(ese.Closing,r)};this.publisher.once(wae,(()=>{var t;null===(t=this.publisher)||void 0===t||t.once(_ae,(()=>{i(),e()}))})),this.publisher.once(Eae,(e=>{const t=new Map;e.forEach((e=>{const r=e.codec.toLowerCase();var n;n=r,Koe.includes(n)&&t.set(e.payload,r)})),this.emit(ese.RTPVideoMapUpdate,t)})),this.publisher.negotiate((e=>{i(),t(e),e instanceof Ooe&&(this.fullReconnectOnNext=!0),this.handleDisconnect("negotiation",Bre.RR_UNKNOWN)}))}))}dataChannelForKind(e,t){if(t){if(e===$re.LOSSY)return this.lossyDCSub;if(e===$re.RELIABLE)return this.reliableDCSub}else{if(e===$re.LOSSY)return this.lossyDC;if(e===$re.RELIABLE)return this.reliableDC}}failNext(){this.shouldFailNext=!0}clearReconnectTimeout(){this.reconnectTimeout&&joe.clearTimeout(this.reconnectTimeout)}clearPendingReconnect(){this.clearReconnectTimeout(),this.reconnectAttempts=0}registerOnLineListener(){_se()&&window.addEventListener("online",this.handleBrowserOnLine)}deregisterOnLineListener(){_se()&&window.removeEventListener("online",this.handleBrowserOnLine)}}class Lae extends Error{}class Oae{constructor(e,t){this.lastUpdateAt=0,this.settingsCacheTime=3e3,this.attemptedRegions=[],this.serverUrl=new URL(e),this.token=t}updateToken(e){this.token=e}isCloud(){return Ase(this.serverUrl)}getServerUrl(){return this.serverUrl}getNextBestRegionUrl(e){return gne(this,void 0,void 0,(function*(){if(!this.isCloud())throw Error("region availability is only supported for LiveKit Cloud domains");(!this.regionSettings||Date.now()-this.lastUpdateAt>this.settingsCacheTime)&&(this.regionSettings=yield this.fetchRegionSettings(e));const t=this.regionSettings.regions.filter((e=>!this.attemptedRegions.find((t=>t.url===e.url))));if(t.length>0){const e=t[0];return this.attemptedRegions.push(e),dte.debug("next region: ".concat(e.region)),e.url}return null}))}resetAttempts(){this.attemptedRegions=[]}fetchRegionSettings(e){return gne(this,void 0,void 0,(function*(){const t=yield fetch("".concat((r=this.serverUrl,"".concat(r.protocol.replace("ws","http"),"//").concat(r.host,"/settings")),"/regions"),{headers:{authorization:"Bearer ".concat(this.token)},signal:e});var r;if(t.ok){const e=yield t.json();return this.lastUpdateAt=Date.now(),e}throw new Noe("Could not fetch region settings: ".concat(t.statusText),401===t.status?0:void 0,t.status)}))}}const jae=2e3;function Bae(e,t){if(!t)return 0;let r,n;return"bytesReceived"in e?(r=e.bytesReceived,n=t.bytesReceived):"bytesSent"in e&&(r=e.bytesSent,n=t.bytesSent),void 0===r||void 0===n||void 0===e.timestamp||void 0===t.timestamp?0:8*(r-n)*1e3/(e.timestamp-t.timestamp)}class Uae extends iae{constructor(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments.length>3?arguments[3]:void 0;super(e,nse.Kind.Audio,t,r),this.stopOnMute=!1,this.monitorSender=()=>gne(this,void 0,void 0,(function*(){if(!this.sender)return void(this._currentBitrate=0);let e;try{e=yield this.getSenderStats()}catch(fVe){return void dte.error("could not get audio sender stats",{error:fVe})}e&&this.prevStats&&(this._currentBitrate=Bae(e,this.prevStats)),this.prevStats=e})),this.audioContext=n,this.checkForSilence()}setDeviceId(e){return gne(this,void 0,void 0,(function*(){return this._constraints.deviceId===e||(this._constraints.deviceId=e,this.isMuted||(yield this.restartTrack()),this.isMuted||Use(e)===this.mediaStreamTrack.getSettings().deviceId)}))}mute(){const e=Object.create(null,{mute:{get:()=>super.mute}});return gne(this,void 0,void 0,(function*(){const t=yield this.muteLock.lock();try{return this.source===nse.Source.Microphone&&this.stopOnMute&&!this.isUserProvided&&(dte.debug("stopping mic track"),this._mediaStreamTrack.stop()),yield e.mute.call(this),this}finally{t()}}))}unmute(){const e=Object.create(null,{unmute:{get:()=>super.unmute}});return gne(this,void 0,void 0,(function*(){const t=yield this.muteLock.lock();try{const r=this._constraints.deviceId&&this._mediaStreamTrack.getSettings().deviceId!==Use(this._constraints.deviceId);return this.source!==nse.Source.Microphone||!this.stopOnMute&&"ended"!==this._mediaStreamTrack.readyState&&!r||this.isUserProvided||(dte.debug("reacquiring mic track"),yield this.restartTrack()),yield e.unmute.call(this),this}finally{t()}}))}restartTrack(e){return gne(this,void 0,void 0,(function*(){let t;if(e){const r=use({audio:e});"boolean"!=typeof r.audio&&(t=r.audio)}yield this.restart(t)}))}restart(e){const t=Object.create(null,{restart:{get:()=>super.restart}});return gne(this,void 0,void 0,(function*(){const r=yield t.restart.call(this,e);return this.checkForSilence(),r}))}startMonitor(){_se()&&(this.monitorInterval||(this.monitorInterval=setInterval((()=>{this.monitorSender()}),jae)))}setProcessor(e){var t;return gne(this,void 0,void 0,(function*(){const r=yield this.processorLock.lock();try{if(!this.audioContext)throw Error("Audio context needs to be set on LocalAudioTrack in order to enable processors");if(this.processor&&(yield this.stopProcessor()),"unknown"===this.kind)throw TypeError("cannot set processor on track of unknown kind");const n={kind:this.kind,track:this._mediaStreamTrack,audioContext:this.audioContext};dte.debug("setting up audio processor ".concat(e.name)),yield e.init(n),this.processor=e,this.processor.processedTrack&&(yield null===(t=this.sender)||void 0===t?void 0:t.replaceTrack(this.processor.processedTrack))}finally{r()}}))}setAudioContext(e){this.audioContext=e}getSenderStats(){var e;return gne(this,void 0,void 0,(function*(){if(!(null===(e=this.sender)||void 0===e?void 0:e.getStats))return;let t;return(yield this.sender.getStats()).forEach((e=>{"outbound-rtp"===e.type&&(t={type:"audio",streamId:e.id,packetsSent:e.packetsSent,packetsLost:e.packetsLost,bytesSent:e.bytesSent,timestamp:e.timestamp,roundTripTime:e.roundTripTime,jitter:e.jitter})})),t}))}checkForSilence(){return gne(this,void 0,void 0,(function*(){const e=yield function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;return gne(this,void 0,void 0,(function*(){const r=lse();if(r){const n=r.createAnalyser();n.fftSize=2048;const i=n.frequencyBinCount,o=new Uint8Array(i);r.createMediaStreamSource(new MediaStream([e.mediaStreamTrack])).connect(n),yield dse(t),n.getByteTimeDomainData(o);const s=o.some((e=>128!==e&&0!==e));return r.close(),!s}return!1}))}(this);return e&&(this.isMuted||dte.warn("silence detected on local audio track"),this.emit(tse.AudioSilenceDetected)),e}))}}function Fae(e,t){switch(e.kind){case"audio":return new Uae(e,t,!1);case"video":return new Xae(e,t,!1);default:throw new Poe("unsupported track type: ".concat(e.kind))}}const zae=Object.values($oe),Hae=Object.values(Qoe),Gae=Object.values(Joe),Yae=[$oe.h180,$oe.h360],Kae=[Qoe.h180,Qoe.h360],qae=["q","h","f"];function Wae(e,t,r,n){var i,o;let s=null==n?void 0:n.videoEncoding;e&&(s=null==n?void 0:n.screenShareEncoding);const a=null==n?void 0:n.simulcast,u=null==n?void 0:n.scalabilityMode,l=null==n?void 0:n.videoCodec;if(!s&&!a&&!u||!t||!r)return[{}];s||(s=function(e,t,r,n){const i=function(e,t,r){if(e)return Gae;const n=t>r?t/r:r/t;if(Math.abs(n-16/9)=s)break}if(n)switch(n){case"av1":o=Object.assign({},o),o.maxBitrate=.7*o.maxBitrate;break;case"vp9":o=Object.assign({},o),o.maxBitrate=.85*o.maxBitrate}return o}(e,t,r,l),dte.debug("using video encoding",s));const c=new Goe(t,r,s.maxBitrate,s.maxFramerate,s.priority);if(u&&mse(l)){dte.debug("using svc with scalabilityMode ".concat(u));const e=new Zae(u),t=[];if(e.spatial>3)throw new Error("unsupported scalabilityMode: ".concat(u));for(let r=0;r0){const e=d[0];d.length>1&&([,h]=d);const n=Math.max(t,r);if(n>=960&&h)return Qae(t,r,[e,h,c]);if(n>=480)return Qae(t,r,[e,c])}return Qae(t,r,[c])}function Vae(e,t,r){var n,i,o,s;if(!r.backupCodec||r.backupCodec.codec===r.videoCodec)return;t!==r.backupCodec.codec&&dte.warn("requested a different codec than specified as backup",{serverRequested:t,backup:r.backupCodec.codec}),r.videoCodec=t,r.videoEncoding=r.backupCodec.encoding;const a=e.mediaStreamTrack.getSettings(),u=null!==(n=a.width)&&void 0!==n?n:null===(i=e.dimensions)||void 0===i?void 0:i.width,l=null!==(o=a.height)&&void 0!==o?o:null===(s=e.dimensions)||void 0===s?void 0:s.height;return Wae(e.source===nse.Source.ScreenShare,u,l,r)}function $ae(e,t){if(e)return r=t,[{scaleResolutionDownBy:2,fps:3}].map((e=>{var t;return new Goe(Math.floor(r.width/e.scaleResolutionDownBy),Math.floor(r.height/e.scaleResolutionDownBy),Math.max(15e4,Math.floor(r.encoding.maxBitrate/(Math.pow(e.scaleResolutionDownBy,2)*((null!==(t=r.encoding.maxFramerate)&&void 0!==t?t:30)/e.fps)))),e.fps,r.encoding.priority)}));var r;const{width:n,height:i}=t,o=n>i?n/i:i/n;return Math.abs(o-16/9){if(i>=qae.length)return;const o=Math.min(e,t),s={rid:qae[i],scaleResolutionDownBy:Math.max(1,o/Math.min(r.width,r.height)),maxBitrate:r.encoding.maxBitrate};r.encoding.maxFramerate&&(s.maxFramerate=r.encoding.maxFramerate);const a=vse()||0===i;r.encoding.priority&&a&&(s.priority=r.encoding.priority,s.networkPriority=r.encoding.priority),n.push(s)})),Ese()&&"ios"===Sse()){let e;n.forEach((t=>{e?t.maxFramerate&&t.maxFramerate>e&&(e=t.maxFramerate):e=t.maxFramerate}));let t=!0;n.forEach((r=>{var n;r.maxFramerate!=e&&(t&&(t=!1,dte.info("Simulcast on iOS React-Native requires all encodings to share the same framerate.")),dte.info('Setting framerate of encoding "'.concat(null!==(n=r.rid)&&void 0!==n?n:"",'" to ').concat(e)),r.maxFramerate=e)}))}return n}function Jae(e){if(e)return e.sort(((e,t)=>{const{encoding:r}=e,{encoding:n}=t;return r.maxBitrate>n.maxBitrate?1:r.maxBitraten.maxFramerate?1:-1:0}))}class Zae{constructor(e){const t=e.match(/^L(\d)T(\d)(h|_KEY|_KEY_SHIFT){0,1}$/);if(!t)throw new Error("invalid scalability mode");if(this.spatial=parseInt(t[1]),this.temporal=parseInt(t[2]),t.length>3)switch(t[3]){case"h":case"_KEY":case"_KEY_SHIFT":this.suffix=t[3]}}toString(){var e;return"L".concat(this.spatial,"T").concat(this.temporal).concat(null!==(e=this.suffix)&&void 0!==e?e:"")}}class Xae extends iae{constructor(e,t){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];super(e,nse.Kind.Video,t,r),this.simulcastCodecs=new Map,this.monitorSender=()=>gne(this,void 0,void 0,(function*(){if(!this.sender)return void(this._currentBitrate=0);let e;try{e=yield this.getSenderStats()}catch(fVe){return void dte.error("could not get audio sender stats",{error:fVe})}const t=new Map(e.map((e=>[e.rid,e])));if(this.prevStats){let e=0;t.forEach(((t,r)=>{var n;const i=null===(n=this.prevStats)||void 0===n?void 0:n.get(r);e+=Bae(t,i)})),this._currentBitrate=e}this.prevStats=t})),this.senderLock=new Bse}get isSimulcast(){return!!(this.sender&&this.sender.getParameters().encodings.length>1)}startMonitor(e){var t;if(this.signalClient=e,!_se())return;const r=null===(t=this.sender)||void 0===t?void 0:t.getParameters();r&&(this.encodings=r.encodings),this.monitorInterval||(this.monitorInterval=setInterval((()=>{this.monitorSender()}),jae))}stop(){this._mediaStreamTrack.getConstraints(),this.simulcastCodecs.forEach((e=>{e.mediaStreamTrack.stop()})),super.stop()}pauseUpstream(){const e=Object.create(null,{pauseUpstream:{get:()=>super.pauseUpstream}});var t,r,n,i,o;return gne(this,void 0,void 0,(function*(){yield e.pauseUpstream.call(this);try{for(var s,a=!0,u=vne(this.simulcastCodecs.values());s=yield u.next(),!(t=s.done);a=!0){i=s.value,a=!1;const e=i;yield null===(o=e.sender)||void 0===o?void 0:o.replaceTrack(null)}}catch(l){r={error:l}}finally{try{a||t||!(n=u.return)||(yield n.call(u))}finally{if(r)throw r.error}}}))}resumeUpstream(){const e=Object.create(null,{resumeUpstream:{get:()=>super.resumeUpstream}});var t,r,n,i,o;return gne(this,void 0,void 0,(function*(){yield e.resumeUpstream.call(this);try{for(var s,a=!0,u=vne(this.simulcastCodecs.values());s=yield u.next(),!(t=s.done);a=!0){i=s.value,a=!1;const e=i;yield null===(o=e.sender)||void 0===o?void 0:o.replaceTrack(e.mediaStreamTrack)}}catch(l){r={error:l}}finally{try{a||t||!(n=u.return)||(yield n.call(u))}finally{if(r)throw r.error}}}))}mute(){const e=Object.create(null,{mute:{get:()=>super.mute}});return gne(this,void 0,void 0,(function*(){const t=yield this.muteLock.lock();try{return this.source!==nse.Source.Camera||this.isUserProvided||(dte.debug("stopping camera track"),this._mediaStreamTrack.stop()),yield e.mute.call(this),this}finally{t()}}))}unmute(){const e=Object.create(null,{unmute:{get:()=>super.unmute}});return gne(this,void 0,void 0,(function*(){const t=yield this.muteLock.lock();try{return this.source!==nse.Source.Camera||this.isUserProvided||(dte.debug("reacquiring camera track"),yield this.restartTrack()),yield e.unmute.call(this),this}finally{t()}}))}setTrackMuted(e){super.setTrackMuted(e);for(const t of this.simulcastCodecs.values())t.mediaStreamTrack.enabled=!e}getSenderStats(){var e;return gne(this,void 0,void 0,(function*(){if(!(null===(e=this.sender)||void 0===e?void 0:e.getStats))return[];const t=[],r=yield this.sender.getStats();return r.forEach((e=>{var n;if("outbound-rtp"===e.type){const i={type:"video",streamId:e.id,frameHeight:e.frameHeight,frameWidth:e.frameWidth,firCount:e.firCount,pliCount:e.pliCount,nackCount:e.nackCount,packetsSent:e.packetsSent,bytesSent:e.bytesSent,framesSent:e.framesSent,timestamp:e.timestamp,rid:null!==(n=e.rid)&&void 0!==n?n:e.id,retransmittedPacketsSent:e.retransmittedPacketsSent,qualityLimitationReason:e.qualityLimitationReason,qualityLimitationResolutionChanges:e.qualityLimitationResolutionChanges},o=r.get(e.remoteId);o&&(i.jitter=o.jitter,i.packetsLost=o.packetsLost,i.roundTripTime=o.roundTripTime),t.push(i)}})),t}))}setPublishingQuality(e){const t=[];for(let r=Dre.LOW;r<=Dre.HIGH;r+=1)t.push(new goe({quality:r,enabled:r<=e}));dte.debug("setting publishing quality. max quality ".concat(e)),this.setPublishingLayers(t)}setDeviceId(e){return gne(this,void 0,void 0,(function*(){return this._constraints.deviceId===e&&this._mediaStreamTrack.getSettings().deviceId===Use(e)||(this._constraints.deviceId=e,this.isMuted||(yield this.restartTrack()),this.isMuted||Use(e)===this._mediaStreamTrack.getSettings().deviceId)}))}restartTrack(e){var t,r,n,i;return gne(this,void 0,void 0,(function*(){let o;if(e){const t=use({video:e});"boolean"!=typeof t.video&&(o=t.video)}yield this.restart(o);try{for(var s,a=!0,u=vne(this.simulcastCodecs.values());s=yield u.next(),!(t=s.done);a=!0){i=s.value,a=!1;const e=i;e.sender&&(e.mediaStreamTrack=this.mediaStreamTrack.clone(),yield e.sender.replaceTrack(e.mediaStreamTrack))}}catch(l){r={error:l}}finally{try{a||t||!(n=u.return)||(yield n.call(u))}finally{if(r)throw r.error}}}))}setProcessor(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=Object.create(null,{setProcessor:{get:()=>super.setProcessor}});var n,i,o,s,a,u;return gne(this,void 0,void 0,(function*(){if(yield r.setProcessor.call(this,e,t),null===(a=this.processor)||void 0===a?void 0:a.processedTrack)try{for(var l,c=!0,h=vne(this.simulcastCodecs.values());l=yield h.next(),!(n=l.done);c=!0){s=l.value,c=!1;const e=s;yield null===(u=e.sender)||void 0===u?void 0:u.replaceTrack(this.processor.processedTrack)}}catch(d){i={error:d}}finally{try{c||n||!(o=h.return)||(yield o.call(h))}finally{if(i)throw i.error}}}))}addSimulcastTrack(e,t){if(this.simulcastCodecs.has(e))throw new Error("".concat(e," already added"));const r={codec:e,mediaStreamTrack:this.mediaStreamTrack.clone(),sender:void 0,encodings:t};return this.simulcastCodecs.set(e,r),r}setSimulcastTrackSender(e,t){const r=this.simulcastCodecs.get(e);r&&(r.sender=t,setTimeout((()=>{this.subscribedCodecs&&this.setPublishingCodecs(this.subscribedCodecs)}),5e3))}setPublishingCodecs(e){var t,r,n,i,o,s,a;return gne(this,void 0,void 0,(function*(){if(dte.debug("setting publishing codecs",{codecs:e,currentCodec:this.codec}),!this.codec&&e.length>0)return yield this.setPublishingLayers(e[0].qualities),[];this.subscribedCodecs=e;const u=[];try{for(t=!0,r=vne(e);n=yield r.next(),!(i=n.done);t=!0){a=n.value,t=!1;const e=a;if(this.codec&&this.codec!==e.codec){const t=this.simulcastCodecs.get(e.codec);if(dte.debug("try setPublishingCodec for ".concat(e.codec),t),t&&t.sender)t.encodings&&(dte.debug("try setPublishingLayersForSender ".concat(e.codec)),yield eue(t.sender,t.encodings,e.qualities,this.senderLock));else for(const r of e.qualities)if(r.enabled){u.push(e.codec);break}}else yield this.setPublishingLayers(e.qualities)}}catch(l){o={error:l}}finally{try{t||i||!(s=r.return)||(yield s.call(r))}finally{if(o)throw o.error}}return u}))}setPublishingLayers(e){return gne(this,void 0,void 0,(function*(){dte.debug("setting publishing layers",e),this.sender&&this.encodings&&(yield eue(this.sender,this.encodings,e,this.senderLock))}))}handleAppVisibilityChanged(){const e=Object.create(null,{handleAppVisibilityChanged:{get:()=>super.handleAppVisibilityChanged}});return gne(this,void 0,void 0,(function*(){yield e.handleAppVisibilityChanged.call(this),wse()&&this.isInBackground&&this.source===nse.Source.Camera&&(this._mediaStreamTrack.enabled=!1)}))}}function eue(e,t,r,n){return gne(this,void 0,void 0,(function*(){const i=yield n.lock();dte.debug("setPublishingLayersForSender",{sender:e,qualities:r,senderEncodings:t});try{const n=e.getParameters(),{encodings:o}=n;if(!o)return;if(o.length!==t.length)return void dte.warn("cannot set publishing layers, encodings mismatch");let s=!1;!1&&o[0].scalabilityMode||o.forEach(((e,n)=>{var i;let o=null!==(i=e.rid)&&void 0!==i?i:"";""===o&&(o="q");const a=tue(o),u=r.find((e=>e.quality===a));u&&e.active!==u.enabled&&(s=!0,e.active=u.enabled,dte.debug("setting layer ".concat(u.quality," to ").concat(e.active?"enabled":"disabled")),vse()&&(u.enabled?(e.scaleResolutionDownBy=t[n].scaleResolutionDownBy,e.maxBitrate=t[n].maxBitrate,e.maxFrameRate=t[n].maxFrameRate):(e.scaleResolutionDownBy=4,e.maxBitrate=10,e.maxFrameRate=2)))})),s&&(n.encodings=o,dte.debug("setting encodings",n.encodings),yield e.setParameters(n))}finally{i()}}))}function tue(e){switch(e){case"f":default:return Dre.HIGH;case"h":return Dre.MEDIUM;case"q":return Dre.LOW}}function rue(e,t,r,n){if(!r)return[new tne({quality:Dre.HIGH,width:e,height:t,bitrate:0,ssrc:0})];if(n){const n=r[0].scalabilityMode,i=new Zae(n),o=[];for(let s=0;s{var n,i,o;const s=null!==(n=r.scaleResolutionDownBy)&&void 0!==n?n:1;let a=tue(null!==(i=r.rid)&&void 0!==i?i:"");return new tne({quality:a,width:Math.ceil(e/s),height:Math.ceil(t/s),bitrate:null!==(o=r.maxBitrate)&&void 0!==o?o:0,ssrc:0})}))}class nue extends nse{constructor(e,t,r,n){super(e,r),this.sid=t,this.receiver=n}setMuted(e){this.isMuted!==e&&(this.isMuted=e,this._mediaStreamTrack.enabled=!e,this.emit(e?tse.Muted:tse.Unmuted,this))}setMediaStream(e){this.mediaStream=e,e.onremovetrack=()=>{this.receiver=void 0,this._currentBitrate=0,this.emit(tse.Ended,this)}}start(){this.startMonitor(),super.enable()}stop(){this.stopMonitor(),super.disable()}getRTCStatsReport(){var e;return gne(this,void 0,void 0,(function*(){if(!(null===(e=this.receiver)||void 0===e?void 0:e.getStats))return;return yield this.receiver.getStats()}))}startMonitor(){this.monitorInterval||(this.monitorInterval=setInterval((()=>this.monitorReceiver()),jae))}}class iue extends nue{constructor(e,t,r,n,i){super(e,t,nse.Kind.Audio,r),this.monitorReceiver=()=>gne(this,void 0,void 0,(function*(){if(!this.receiver)return void(this._currentBitrate=0);const e=yield this.getReceiverStats();e&&this.prevStats&&this.receiver&&(this._currentBitrate=Bae(e,this.prevStats)),this.prevStats=e})),this.audioContext=n,this.webAudioPluginNodes=[],i&&(this.sinkId=i.deviceId)}setVolume(e){var t;for(const r of this.attachedElements)this.audioContext?null===(t=this.gainNode)||void 0===t||t.gain.setTargetAtTime(e,0,.1):r.volume=e;Ese()&&this._mediaStreamTrack._setVolume(e),this.elementVolume=e}getVolume(){if(this.elementVolume)return this.elementVolume;if(Ese())return 1;let e=0;return this.attachedElements.forEach((t=>{t.volume>e&&(e=t.volume)})),e}setSinkId(e){return gne(this,void 0,void 0,(function*(){this.sinkId=e,yield Promise.all(this.attachedElements.map((t=>{if(gse(t))return t.setSinkId(e)})))}))}attach(e){const t=0===this.attachedElements.length;return e?super.attach(e):e=super.attach(),this.elementVolume&&(e.volume=this.elementVolume),this.sinkId&&gse(e)&&e.setSinkId(this.sinkId),this.audioContext&&t&&(dte.debug("using audio context mapping"),this.connectWebAudio(this.audioContext,e),e.volume=0,e.muted=!0),e}detach(e){let t;return e?(t=super.detach(e),this.audioContext&&(this.attachedElements.length>0?this.connectWebAudio(this.audioContext,this.attachedElements[0]):this.disconnectWebAudio())):(t=super.detach(),this.disconnectWebAudio()),t}setAudioContext(e){this.audioContext=e,e&&this.attachedElements.length>0?this.connectWebAudio(e,this.attachedElements[0]):e||this.disconnectWebAudio()}setWebAudioPlugins(e){this.webAudioPluginNodes=e,this.attachedElements.length>0&&this.audioContext&&this.connectWebAudio(this.audioContext,this.attachedElements[0])}connectWebAudio(e,t){this.disconnectWebAudio(),this.sourceNode=e.createMediaStreamSource(t.srcObject);let r=this.sourceNode;this.webAudioPluginNodes.forEach((e=>{r.connect(e),r=e})),this.gainNode=e.createGain(),r.connect(this.gainNode),this.gainNode.connect(e.destination),this.elementVolume&&this.gainNode.gain.setTargetAtTime(this.elementVolume,0,.1),"running"!==e.state&&e.resume().then((()=>{"running"!==e.state&&this.emit(tse.AudioPlaybackFailed,new Error("Audio Context couldn't be started automatically"))})).catch((e=>{this.emit(tse.AudioPlaybackFailed,e)}))}disconnectWebAudio(){var e,t;null===(e=this.gainNode)||void 0===e||e.disconnect(),null===(t=this.sourceNode)||void 0===t||t.disconnect(),this.gainNode=void 0,this.sourceNode=void 0}getReceiverStats(){return gne(this,void 0,void 0,(function*(){if(!this.receiver||!this.receiver.getStats)return;let e;return(yield this.receiver.getStats()).forEach((t=>{"inbound-rtp"===t.type&&(e={type:"audio",timestamp:t.timestamp,jitter:t.jitter,bytesReceived:t.bytesReceived,concealedSamples:t.concealedSamples,concealmentEvents:t.concealmentEvents,silentConcealedSamples:t.silentConcealedSamples,silentConcealmentEvents:t.silentConcealmentEvents,totalAudioEnergy:t.totalAudioEnergy,totalSamplesDuration:t.totalSamplesDuration})})),e}))}}class oue extends nue{constructor(e,t,r,n){super(e,t,nse.Kind.Video,r),this.elementInfos=[],this.monitorReceiver=()=>gne(this,void 0,void 0,(function*(){if(!this.receiver)return void(this._currentBitrate=0);const e=yield this.getReceiverStats();e&&this.prevStats&&this.receiver&&(this._currentBitrate=Bae(e,this.prevStats)),this.prevStats=e})),this.debouncedHandleResize=tae((()=>{this.updateDimensions()}),100),this.adaptiveStreamSettings=n}get isAdaptiveStream(){return void 0!==this.adaptiveStreamSettings}get mediaStreamTrack(){return this._mediaStreamTrack}setMuted(e){super.setMuted(e),this.attachedElements.forEach((t=>{e?ose(this._mediaStreamTrack,t):ise(this._mediaStreamTrack,t)}))}attach(e){if(e?super.attach(e):e=super.attach(),this.adaptiveStreamSettings&&void 0===this.elementInfos.find((t=>t.element===e))){const t=new sue(e);this.observeElementInfo(t)}return e}observeElementInfo(e){this.adaptiveStreamSettings&&void 0===this.elementInfos.find((t=>t===e))?(e.handleResize=()=>{this.debouncedHandleResize()},e.handleVisibilityChanged=()=>{this.updateVisibility()},this.elementInfos.push(e),e.observe(),this.debouncedHandleResize(),this.updateVisibility()):dte.warn("visibility resize observer not triggered")}stopObservingElementInfo(e){if(!this.isAdaptiveStream)return void dte.warn("stopObservingElementInfo ignored");const t=this.elementInfos.filter((t=>t===e));for(const r of t)r.stopObserving();this.elementInfos=this.elementInfos.filter((t=>t!==e)),this.updateVisibility(),this.debouncedHandleResize()}detach(e){let t=[];if(e)return this.stopObservingElement(e),super.detach(e);t=super.detach();for(const r of t)this.stopObservingElement(r);return t}getDecoderImplementation(){var e;return null===(e=this.prevStats)||void 0===e?void 0:e.decoderImplementation}getReceiverStats(){return gne(this,void 0,void 0,(function*(){if(!this.receiver||!this.receiver.getStats)return;let e;return(yield this.receiver.getStats()).forEach((t=>{"inbound-rtp"===t.type&&(e={type:"video",framesDecoded:t.framesDecoded,framesDropped:t.framesDropped,framesReceived:t.framesReceived,packetsReceived:t.packetsReceived,packetsLost:t.packetsLost,frameWidth:t.frameWidth,frameHeight:t.frameHeight,pliCount:t.pliCount,firCount:t.firCount,nackCount:t.nackCount,jitter:t.jitter,timestamp:t.timestamp,bytesReceived:t.bytesReceived,decoderImplementation:t.decoderImplementation})})),e}))}stopObservingElement(e){const t=this.elementInfos.filter((t=>t.element===e));for(const r of t)this.stopObservingElementInfo(r)}handleAppVisibilityChanged(){const e=Object.create(null,{handleAppVisibilityChanged:{get:()=>super.handleAppVisibilityChanged}});return gne(this,void 0,void 0,(function*(){yield e.handleAppVisibilityChanged.call(this),this.isAdaptiveStream&&this.updateVisibility()}))}updateVisibility(){var e,t;const r=this.elementInfos.reduce(((e,t)=>Math.max(e,t.visibilityChangedAt||0)),0),n=!(null!==(t=null===(e=this.adaptiveStreamSettings)||void 0===e?void 0:e.pauseVideoInBackground)&&void 0!==t&&!t)&&this.isInBackground,i=this.elementInfos.some((e=>e.pictureInPicture)),o=this.elementInfos.some((e=>e.visible))&&!n||i;this.lastVisible!==o&&(!o&&Date.now()-r<100?joe.setTimeout((()=>{this.updateVisibility()}),100):(this.lastVisible=o,this.emit(tse.VisibilityChanged,o,this)))}updateDimensions(){var e,t;let r=0,n=0;const i=this.getPixelDensity();for(const o of this.elementInfos){const e=o.width()*i,t=o.height()*i;e+t>r+n&&(r=e,n=t)}(null===(e=this.lastDimensions)||void 0===e?void 0:e.width)===r&&(null===(t=this.lastDimensions)||void 0===t?void 0:t.height)===n||(this.lastDimensions={width:r,height:n},this.emit(tse.VideoDimensionsChanged,this.lastDimensions,this))}getPixelDensity(){var e;const t=null===(e=this.adaptiveStreamSettings)||void 0===e?void 0:e.pixelDensity;if("screen"===t)return xse();if(!t){return xse()>2?2:1}return t}}class sue{get visible(){return this.isPiP||this.isIntersecting}get pictureInPicture(){return this.isPiP}constructor(e,t){this.onVisibilityChanged=e=>{var t;const{target:r,isIntersecting:n}=e;r===this.element&&(this.isIntersecting=n,this.visibilityChangedAt=Date.now(),null===(t=this.handleVisibilityChanged)||void 0===t||t.call(this))},this.onEnterPiP=()=>{var e;this.isPiP=!0,null===(e=this.handleVisibilityChanged)||void 0===e||e.call(this)},this.onLeavePiP=()=>{var e;this.isPiP=!1,null===(e=this.handleVisibilityChanged)||void 0===e||e.call(this)},this.element=e,this.isIntersecting=null!=t?t:aue(e),this.isPiP=_se()&&document.pictureInPictureElement===e,this.visibilityChangedAt=0}width(){return this.element.clientWidth}height(){return this.element.clientHeight}observe(){this.isIntersecting=aue(this.element),this.isPiP=document.pictureInPictureElement===this.element,this.element.handleResize=()=>{var e;null===(e=this.handleResize)||void 0===e||e.call(this)},this.element.handleVisibilityChanged=this.onVisibilityChanged,Pse().observe(this.element),Nse().observe(this.element),this.element.addEventListener("enterpictureinpicture",this.onEnterPiP),this.element.addEventListener("leavepictureinpicture",this.onLeavePiP)}stopObserving(){var e,t;null===(e=Pse())||void 0===e||e.unobserve(this.element),null===(t=Nse())||void 0===t||t.unobserve(this.element),this.element.removeEventListener("enterpictureinpicture",this.onEnterPiP),this.element.removeEventListener("leavepictureinpicture",this.onLeavePiP)}}function aue(e){let t=e.offsetTop,r=e.offsetLeft;const n=e.offsetWidth,i=e.offsetHeight,{hidden:o}=e,{opacity:s,display:a}=getComputedStyle(e);for(;e.offsetParent;)t+=(e=e.offsetParent).offsetTop,r+=e.offsetLeft;return twindow.pageYOffset&&r+n>window.pageXOffset&&!o&&(""===s||parseFloat(s)>0)&&"none"!==a}class uue extends Lne.EventEmitter{constructor(e,t,r){super(),this.metadataMuted=!1,this.encryption=Vre.NONE,this.handleMuted=()=>{this.emit(tse.Muted)},this.handleUnmuted=()=>{this.emit(tse.Unmuted)},this.setMaxListeners(100),this.kind=e,this.trackSid=t,this.trackName=r,this.source=nse.Source.Unknown}setTrack(e){this.track&&(this.track.off(tse.Muted,this.handleMuted),this.track.off(tse.Unmuted,this.handleUnmuted)),this.track=e,e&&(e.on(tse.Muted,this.handleMuted),e.on(tse.Unmuted,this.handleUnmuted))}get isMuted(){return this.metadataMuted}get isEnabled(){return!0}get isSubscribed(){return void 0!==this.track}get isEncrypted(){return this.encryption!==Vre.NONE}get audioTrack(){if(this.track instanceof Uae||this.track instanceof iue)return this.track}get videoTrack(){if(this.track instanceof Xae||this.track instanceof oue)return this.track}updateInfo(e){this.trackSid=e.sid,this.trackName=e.name,this.source=nse.sourceFromProto(e.source),this.mimeType=e.mimeType,this.kind===nse.Kind.Video&&e.width>0&&(this.dimensions={width:e.width,height:e.height},this.simulcasted=e.simulcast),this.encryption=e.encryption,this.trackInfo=e,dte.debug("update publication info",{info:e})}}!function(e){var t,r;(t=e.SubscriptionStatus||(e.SubscriptionStatus={})).Desired="desired",t.Subscribed="subscribed",t.Unsubscribed="unsubscribed",(r=e.PermissionStatus||(e.PermissionStatus={})).Allowed="allowed",r.NotAllowed="not_allowed"}(uue||(uue={}));class lue extends uue{get isUpstreamPaused(){var e;return null===(e=this.track)||void 0===e?void 0:e.isUpstreamPaused}constructor(e,t,r){super(e,t.sid,t.name),this.track=void 0,this.handleTrackEnded=()=>{this.emit(tse.Ended)},this.updateInfo(t),this.setTrack(r)}setTrack(e){this.track&&this.track.off(tse.Ended,this.handleTrackEnded),super.setTrack(e),e&&e.on(tse.Ended,this.handleTrackEnded)}get isMuted(){return this.track?this.track.isMuted:super.isMuted}get audioTrack(){return super.audioTrack}get videoTrack(){return super.videoTrack}mute(){var e;return gne(this,void 0,void 0,(function*(){return null===(e=this.track)||void 0===e?void 0:e.mute()}))}unmute(){var e;return gne(this,void 0,void 0,(function*(){return null===(e=this.track)||void 0===e?void 0:e.unmute()}))}pauseUpstream(){var e;return gne(this,void 0,void 0,(function*(){yield null===(e=this.track)||void 0===e?void 0:e.pauseUpstream()}))}resumeUpstream(){var e;return gne(this,void 0,void 0,(function*(){yield null===(e=this.track)||void 0===e?void 0:e.resumeUpstream()}))}}var cue,hue;!function(e){e.Excellent="excellent",e.Good="good",e.Poor="poor",e.Unknown="unknown"}(cue||(cue={}));class due extends Lne.EventEmitter{get isEncrypted(){return this.tracks.size>0&&Array.from(this.tracks.values()).every((e=>e.isEncrypted))}constructor(e,t,r,n){super(),this.audioLevel=0,this.isSpeaking=!1,this._connectionQuality=cue.Unknown,this.setMaxListeners(100),this.sid=e,this.identity=t,this.name=r,this.metadata=n,this.audioTracks=new Map,this.videoTracks=new Map,this.tracks=new Map}getTracks(){return Array.from(this.tracks.values())}getTrack(e){for(const[,t]of this.tracks)if(t.source===e)return t}getTrackByName(e){for(const[,t]of this.tracks)if(t.trackName===e)return t}get connectionQuality(){return this._connectionQuality}get isCameraEnabled(){var e;const t=this.getTrack(nse.Source.Camera);return!(null===(e=null==t?void 0:t.isMuted)||void 0===e||e)}get isMicrophoneEnabled(){var e;const t=this.getTrack(nse.Source.Microphone);return!(null===(e=null==t?void 0:t.isMuted)||void 0===e||e)}get isScreenShareEnabled(){return!!this.getTrack(nse.Source.ScreenShare)}get isLocal(){return!1}get joinedAt(){return this.participantInfo?new Date(1e3*Number.parseInt(this.participantInfo.joinedAt.toString())):new Date}updateInfo(e){return!(this.participantInfo&&this.participantInfo.sid===e.sid&&this.participantInfo.version>e.version)&&(this.identity=e.identity,this.sid=e.sid,this._setName(e.name),this._setMetadata(e.metadata),e.permission&&this.setPermissions(e.permission),this.participantInfo=e,dte.trace("update participant info",{info:e}),!0)}_setMetadata(e){const t=this.metadata!==e,r=this.metadata;this.metadata=e,t&&this.emit(Xoe.ParticipantMetadataChanged,r)}_setName(e){const t=this.name!==e;this.name=e,t&&this.emit(Xoe.ParticipantNameChanged,e)}setPermissions(e){var t,r,n,i,o;const s=this.permissions,a=e.canPublish!==(null===(t=this.permissions)||void 0===t?void 0:t.canPublish)||e.canSubscribe!==(null===(r=this.permissions)||void 0===r?void 0:r.canSubscribe)||e.canPublishData!==(null===(n=this.permissions)||void 0===n?void 0:n.canPublishData)||e.hidden!==(null===(i=this.permissions)||void 0===i?void 0:i.hidden)||e.recorder!==(null===(o=this.permissions)||void 0===o?void 0:o.recorder)||e.canPublishSources.length!==this.permissions.canPublishSources.length||e.canPublishSources.some(((e,t)=>{var r;return e!==(null===(r=this.permissions)||void 0===r?void 0:r.canPublishSources[t])}));return this.permissions=e,a&&this.emit(Xoe.ParticipantPermissionsChanged,s),a}setIsSpeaking(e){e!==this.isSpeaking&&(this.isSpeaking=e,e&&(this.lastSpokeAt=new Date),this.emit(Xoe.IsSpeakingChanged,e))}setConnectionQuality(e){const t=this._connectionQuality;this._connectionQuality=function(e){switch(e){case Lre.EXCELLENT:return cue.Excellent;case Lre.GOOD:return cue.Good;case Lre.POOR:return cue.Poor;default:return cue.Unknown}}(e),t!==this._connectionQuality&&this.emit(Xoe.ConnectionQualityChanged,this._connectionQuality)}setAudioContext(e){this.audioContext=e,this.audioTracks.forEach((t=>(t.track instanceof iue||t.track instanceof Uae)&&t.track.setAudioContext(e)))}addTrackPublication(e){e.on(tse.Muted,(()=>{this.emit(Xoe.TrackMuted,e)})),e.on(tse.Unmuted,(()=>{this.emit(Xoe.TrackUnmuted,e)}));const t=e;switch(t.track&&(t.track.sid=e.trackSid),this.tracks.set(e.trackSid,e),e.kind){case nse.Kind.Audio:this.audioTracks.set(e.trackSid,e);break;case nse.Kind.Video:this.videoTracks.set(e.trackSid,e)}}}class fue extends uue{constructor(e,t,r){super(e,t.sid,t.name),this.track=void 0,this.allowed=!0,this.disabled=!1,this.currentVideoQuality=Dre.HIGH,this.handleEnded=e=>{this.setTrack(void 0),this.emit(tse.Ended,e)},this.handleVisibilityChange=e=>{dte.debug("adaptivestream video visibility ".concat(this.trackSid,", visible=").concat(e),{trackSid:this.trackSid}),this.disabled=!e,this.emitTrackUpdate()},this.handleVideoDimensionsChange=e=>{dte.debug("adaptivestream video dimensions ".concat(e.width,"x").concat(e.height),{trackSid:this.trackSid}),this.videoDimensions=e,this.emitTrackUpdate()},this.subscribed=r,this.updateInfo(t)}setSubscribed(e){const t=this.subscriptionStatus,r=this.permissionStatus;this.subscribed=e,e&&(this.allowed=!0);const n=new ioe({trackSids:[this.trackSid],subscribe:this.subscribed,participantTracks:[new sne({participantSid:"",trackSids:[this.trackSid]})]});this.emit(tse.UpdateSubscription,n),this.emitSubscriptionUpdateIfChanged(t),this.emitPermissionUpdateIfChanged(r)}get subscriptionStatus(){return!1===this.subscribed?uue.SubscriptionStatus.Unsubscribed:super.isSubscribed?uue.SubscriptionStatus.Subscribed:uue.SubscriptionStatus.Desired}get permissionStatus(){return this.allowed?uue.PermissionStatus.Allowed:uue.PermissionStatus.NotAllowed}get isSubscribed(){return!1!==this.subscribed&&super.isSubscribed}get isDesired(){return!1!==this.subscribed}get isEnabled(){return!this.disabled}setEnabled(e){this.isManualOperationAllowed()&&this.disabled!==!e&&(this.disabled=!e,this.emitTrackUpdate())}setVideoQuality(e){this.isManualOperationAllowed()&&this.currentVideoQuality!==e&&(this.currentVideoQuality=e,this.videoDimensions=void 0,this.emitTrackUpdate())}setVideoDimensions(e){var t,r;this.isManualOperationAllowed()&&((null===(t=this.videoDimensions)||void 0===t?void 0:t.width)===e.width&&(null===(r=this.videoDimensions)||void 0===r?void 0:r.height)===e.height||(this.track instanceof oue&&(this.videoDimensions=e),this.currentVideoQuality=void 0,this.emitTrackUpdate()))}setVideoFPS(e){this.isManualOperationAllowed()&&this.track instanceof oue&&this.fps!==e&&(this.fps=e,this.emitTrackUpdate())}get videoQuality(){return this.currentVideoQuality}setTrack(e){const t=this.subscriptionStatus,r=this.permissionStatus,n=this.track;n!==e&&(n&&(n.off(tse.VideoDimensionsChanged,this.handleVideoDimensionsChange),n.off(tse.VisibilityChanged,this.handleVisibilityChange),n.off(tse.Ended,this.handleEnded),n.detach(),n.stopMonitor(),this.emit(tse.Unsubscribed,n)),super.setTrack(e),e&&(e.sid=this.trackSid,e.on(tse.VideoDimensionsChanged,this.handleVideoDimensionsChange),e.on(tse.VisibilityChanged,this.handleVisibilityChange),e.on(tse.Ended,this.handleEnded),this.emit(tse.Subscribed,e)),this.emitPermissionUpdateIfChanged(r),this.emitSubscriptionUpdateIfChanged(t))}setAllowed(e){const t=this.subscriptionStatus,r=this.permissionStatus;this.allowed=e,this.emitPermissionUpdateIfChanged(r),this.emitSubscriptionUpdateIfChanged(t)}setSubscriptionError(e){this.emit(tse.SubscriptionFailed,e)}updateInfo(e){super.updateInfo(e);const t=this.metadataMuted;this.metadataMuted=e.muted,this.track?this.track.setMuted(e.muted):t!==e.muted&&this.emit(e.muted?tse.Muted:tse.Unmuted)}emitSubscriptionUpdateIfChanged(e){const t=this.subscriptionStatus;e!==t&&this.emit(tse.SubscriptionStatusChanged,t,e)}emitPermissionUpdateIfChanged(e){this.permissionStatus!==e&&this.emit(tse.SubscriptionPermissionChanged,this.permissionStatus,e)}isManualOperationAllowed(){return this.kind===nse.Kind.Video&&this.isAdaptiveStream?(dte.warn("adaptive stream is enabled, cannot change video track settings",{trackSid:this.trackSid}),!1):!!this.isDesired||(dte.warn("cannot update track settings when not subscribed",{trackSid:this.trackSid}),!1)}get isAdaptiveStream(){return this.track instanceof oue&&this.track.isAdaptiveStream}emitTrackUpdate(){const e=new ooe({trackSids:[this.trackSid],disabled:this.disabled,fps:this.fps});this.videoDimensions?(e.width=Math.ceil(this.videoDimensions.width),e.height=Math.ceil(this.videoDimensions.height)):void 0!==this.currentVideoQuality?e.quality=this.currentVideoQuality:e.quality=Dre.HIGH,this.emit(tse.UpdateSettings,e)}}class pue extends due{static fromParticipantInfo(e,t){return new pue(e,t.sid,t.identity,t.name,t.metadata)}constructor(e,t,r,n,i){super(t,r||"",n,i),this.signalClient=e,this.tracks=new Map,this.audioTracks=new Map,this.videoTracks=new Map,this.volumeMap=new Map}addTrackPublication(e){super.addTrackPublication(e),e.on(tse.UpdateSettings,(e=>{dte.debug("send update settings",e),this.signalClient.sendUpdateTrackSettings(e)})),e.on(tse.UpdateSubscription,(e=>{e.participantTracks.forEach((e=>{e.participantSid=this.sid})),this.signalClient.sendUpdateSubscription(e)})),e.on(tse.SubscriptionPermissionChanged,(t=>{this.emit(Xoe.TrackSubscriptionPermissionChanged,e,t)})),e.on(tse.SubscriptionStatusChanged,(t=>{this.emit(Xoe.TrackSubscriptionStatusChanged,e,t)})),e.on(tse.Subscribed,(t=>{this.emit(Xoe.TrackSubscribed,t,e)})),e.on(tse.Unsubscribed,(t=>{this.emit(Xoe.TrackUnsubscribed,t,e)})),e.on(tse.SubscriptionFailed,(t=>{this.emit(Xoe.TrackSubscriptionFailed,e.trackSid,t)}))}getTrack(e){const t=super.getTrack(e);if(t)return t}getTrackByName(e){const t=super.getTrackByName(e);if(t)return t}setVolume(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nse.Source.Microphone;this.volumeMap.set(t,e);const r=this.getTrack(t);r&&r.track&&r.track.setVolume(e)}getVolume(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nse.Source.Microphone;const t=this.getTrack(e);return t&&t.track?t.track.getVolume():this.volumeMap.get(e)}addSubscribedMediaTrack(e,t,r,n,i,o){let s=this.getTrackPublication(t);if(s||t.startsWith("TR")||this.tracks.forEach((t=>{s||e.kind!==t.kind.toString()||(s=t)})),!s)return 0===o?(dte.error("could not find published track",{participant:this.sid,trackSid:t}),void this.emit(Xoe.TrackSubscriptionFailed,t)):(void 0===o&&(o=20),void setTimeout((()=>{this.addSubscribedMediaTrack(e,t,r,n,i,o-1)}),150));if("ended"===e.readyState)return dte.error("unable to subscribe because MediaStreamTrack is ended. Do not call MediaStreamTrack.stop()",{participant:this.sid,trackSid:t}),void this.emit(Xoe.TrackSubscriptionFailed,t);let a;return a="video"===e.kind?new oue(e,t,n,i):new iue(e,t,n,this.audioContext,this.audioOutput),a.source=s.source,a.isMuted=s.isMuted,a.setMediaStream(r),a.start(),s.setTrack(a),this.volumeMap.has(s.source)&&a instanceof iue&&a.setVolume(this.volumeMap.get(s.source)),s}get hasMetadata(){return!!this.participantInfo}getTrackPublication(e){return this.tracks.get(e)}updateInfo(e){if(!super.updateInfo(e))return!1;const t=new Map,r=new Map;return e.tracks.forEach((n=>{var i;let o=this.getTrackPublication(n.sid);if(o)o.updateInfo(n);else{const t=nse.kindFromProto(n.type);if(!t)return;o=new fue(t,n,null===(i=this.signalClient.connectOptions)||void 0===i?void 0:i.autoSubscribe),o.updateInfo(n),r.set(n.sid,o);const s=Array.from(this.tracks.values()).find((e=>e.source===(null==o?void 0:o.source)));s&&o.source!==nse.Source.Unknown&&dte.debug("received a second track publication for ".concat(this.identity," with the same source: ").concat(o.source),{oldTrack:s,newTrack:o,participant:this,participantInfo:e}),this.addTrackPublication(o)}t.set(n.sid,o)})),this.tracks.forEach((e=>{t.has(e.trackSid)||(dte.trace("detected removed track on remote participant, unpublishing",{publication:e,participantSid:this.sid}),this.unpublishTrack(e.trackSid,!0))})),r.forEach((e=>{this.emit(Xoe.TrackPublished,e)})),!0}unpublishTrack(e,t){const r=this.tracks.get(e);if(!r)return;const{track:n}=r;switch(n&&(n.stop(),r.setTrack(void 0)),this.tracks.delete(e),r.kind){case nse.Kind.Audio:this.audioTracks.delete(e);break;case nse.Kind.Video:this.videoTracks.delete(e)}t&&this.emit(Xoe.TrackUnpublished,r)}setAudioOutput(e){return gne(this,void 0,void 0,(function*(){this.audioOutput=e;const t=[];this.audioTracks.forEach((r=>{var n;r.track instanceof iue&&t.push(r.track.setSinkId(null!==(n=e.deviceId)&&void 0!==n?n:"default"))})),yield Promise.all(t)}))}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n{this.reconnectFuture||(this.reconnectFuture=new jse)},this.handleReconnected=()=>{var e,t;null===(t=null===(e=this.reconnectFuture)||void 0===e?void 0:e.resolve)||void 0===t||t.call(e),this.reconnectFuture=void 0,this.updateTrackSubscriptionPermissions()},this.handleDisconnected=()=>{var e,t;this.reconnectFuture&&(this.reconnectFuture.promise.catch((e=>dte.warn(e))),null===(t=null===(e=this.reconnectFuture)||void 0===e?void 0:e.reject)||void 0===t||t.call(e,"Got disconnected during reconnection attempt"),this.reconnectFuture=void 0)},this.updateTrackSubscriptionPermissions=()=>{dte.debug("updating track subscription permissions",{allParticipantsAllowed:this.allParticipantsAllowedToSubscribe,participantTrackPermissions:this.participantTrackPermissions}),this.engine.client.sendUpdateSubscriptionPermissions(this.allParticipantsAllowedToSubscribe,this.participantTrackPermissions.map((e=>function(e){var t,r,n;if(!e.participantSid&&!e.participantIdentity)throw new Error("Invalid track permission, must provide at least one of participantIdentity and participantSid");return new boe({participantIdentity:null!==(t=e.participantIdentity)&&void 0!==t?t:"",participantSid:null!==(r=e.participantSid)&&void 0!==r?r:"",allTracks:null!==(n=e.allowAll)&&void 0!==n&&n,trackSids:e.allowedTrackSids||[]})}(e))))},this.onTrackUnmuted=e=>{this.onTrackMuted(e,e.isUpstreamPaused)},this.onTrackMuted=(e,t)=>{void 0===t&&(t=!0),e.sid?this.engine.updateMuteStatus(e.sid,t):dte.error("could not update mute status for unpublished track",e)},this.onTrackUpstreamPaused=e=>{dte.debug("upstream paused"),this.onTrackMuted(e,!0)},this.onTrackUpstreamResumed=e=>{dte.debug("upstream resumed"),this.onTrackMuted(e,e.isMuted)},this.handleSubscribedQualityUpdate=e=>gne(this,void 0,void 0,(function*(){var t,r,n,i,o,s;if(!(null===(o=this.roomOptions)||void 0===o?void 0:o.dynacast))return;const a=this.videoTracks.get(e.trackSid);if(a)if(e.subscribedCodecs.length>0){if(!a.videoTrack)return;const o=yield a.videoTrack.setPublishingCodecs(e.subscribedCodecs);try{for(var u,l=!0,c=vne(o);!(t=(u=yield c.next()).done);l=!0){i=u.value,l=!1;const e=i;qoe(e)&&(dte.debug("publish ".concat(e," for ").concat(a.videoTrack.sid)),yield this.publishAdditionalCodecForTrack(a.videoTrack,e,a.options))}}catch(h){r={error:h}}finally{try{l||t||!(n=c.return)||(yield n.call(c))}finally{if(r)throw r.error}}}else e.subscribedQualities.length>0&&(yield null===(s=a.videoTrack)||void 0===s?void 0:s.setPublishingLayers(e.subscribedQualities));else dte.warn("received subscribed quality update for unknown track",{method:"handleSubscribedQualityUpdate",sid:e.trackSid})})),this.handleLocalTrackUnpublished=e=>{const t=this.tracks.get(e.trackSid);t?this.unpublishTrack(t.track):dte.warn("received unpublished event for unknown track",{method:"handleLocalTrackUnpublished",trackSid:e.trackSid})},this.handleTrackEnded=e=>gne(this,void 0,void 0,(function*(){if(e.source===nse.Source.ScreenShare||e.source===nse.Source.ScreenShareAudio)dte.debug("unpublishing local track due to TrackEnded",{track:e.sid}),this.unpublishTrack(e);else if(e.isUserProvided)yield e.mute();else if(e instanceof Uae||e instanceof Xae)try{if(_se())try{const t=yield null===navigator||void 0===navigator?void 0:navigator.permissions.query({name:e.source===nse.Source.Camera?"camera":"microphone"});if(t&&"denied"===t.state)throw dte.warn("user has revoked access to ".concat(e.source)),t.onchange=()=>{"denied"!==t.state&&(e.isMuted||e.restartTrack(),t.onchange=null)},new Error("GetUserMedia Permission denied")}catch(fVe){}e.isMuted||(dte.debug("track ended, attempting to use a different device"),yield e.restartTrack())}catch(fVe){dte.warn("could not restart track, muting instead"),yield e.mute()}})),this.audioTracks=new Map,this.videoTracks=new Map,this.tracks=new Map,this.engine=r,this.roomOptions=n,this.setupEngine(r),this.activeDeviceMap=new Map}get lastCameraError(){return this.cameraError}get lastMicrophoneError(){return this.microphoneError}get isE2EEEnabled(){return this.encryptionType!==Vre.NONE}getTrack(e){const t=super.getTrack(e);if(t)return t}getTrackByName(e){const t=super.getTrackByName(e);if(t)return t}setupEngine(e){this.engine=e,this.engine.client.onRemoteMuteChanged=(e,t)=>{const r=this.tracks.get(e);r&&r.track&&(t?r.mute():r.unmute())},this.engine.client.onSubscribedQualityUpdate=this.handleSubscribedQualityUpdate,this.engine.client.onLocalTrackUnpublished=this.handleLocalTrackUnpublished,this.engine.on(ese.Connected,this.handleReconnected).on(ese.SignalRestarted,this.handleReconnected).on(ese.SignalResumed,this.handleReconnected).on(ese.Restarting,this.handleReconnecting).on(ese.Resuming,this.handleReconnecting).on(ese.Disconnected,this.handleDisconnected)}setMetadata(e){var t;this.engine.client.sendUpdateLocalMetadata(e,null!==(t=this.name)&&void 0!==t?t:"")}setName(e){var t;this.engine.client.sendUpdateLocalMetadata(null!==(t=this.metadata)&&void 0!==t?t:"",e)}setCameraEnabled(e,t,r){return this.setTrackEnabled(nse.Source.Camera,e,t,r)}setMicrophoneEnabled(e,t,r){return this.setTrackEnabled(nse.Source.Microphone,e,t,r)}setScreenShareEnabled(e,t,r){return this.setTrackEnabled(nse.Source.ScreenShare,e,t,r)}setPermissions(e){const t=this.permissions,r=super.setPermissions(e);return r&&t&&this.emit(Xoe.ParticipantPermissionsChanged,t),r}setE2EEEnabled(e){return gne(this,void 0,void 0,(function*(){this.encryptionType=e?Vre.GCM:Vre.NONE,yield this.republishAllTracks(void 0,!1)}))}setTrackEnabled(e,t,r,n){var i,o;return gne(this,void 0,void 0,(function*(){dte.debug("setTrackEnabled",{source:e,enabled:t});let s=this.getTrack(e);if(t)if(s)yield s.unmute();else{let t;if(this.pendingPublishing.has(e))return void dte.info("skipping duplicate published source",{source:e});this.pendingPublishing.add(e);try{switch(e){case nse.Source.Camera:t=yield this.createTracks({video:null===(i=r)||void 0===i||i});break;case nse.Source.Microphone:t=yield this.createTracks({audio:null===(o=r)||void 0===o||o});break;case nse.Source.ScreenShare:t=yield this.createScreenTracks(Object.assign({},r));break;default:throw new Poe(e)}const a=[];for(const e of t)dte.info("publishing track",{localTrack:e}),a.push(this.publishTrack(e,n));const u=yield Promise.all(a);[s]=u}catch(fVe){throw null==t||t.forEach((e=>{e.stop()})),fVe instanceof Error&&!(fVe instanceof Poe)&&this.emit(Xoe.MediaDevicesError,fVe),fVe}finally{this.pendingPublishing.delete(e)}}else if(s&&s.track)if(e===nse.Source.ScreenShare){s=yield this.unpublishTrack(s.track);const e=this.getTrack(nse.Source.ScreenShareAudio);e&&e.track&&this.unpublishTrack(e.track)}else yield s.mute();return s}))}enableCameraAndMicrophone(){return gne(this,void 0,void 0,(function*(){if(!this.pendingPublishing.has(nse.Source.Camera)&&!this.pendingPublishing.has(nse.Source.Microphone)){this.pendingPublishing.add(nse.Source.Camera),this.pendingPublishing.add(nse.Source.Microphone);try{const e=yield this.createTracks({audio:!0,video:!0});yield Promise.all(e.map((e=>this.publishTrack(e))))}finally{this.pendingPublishing.delete(nse.Source.Camera),this.pendingPublishing.delete(nse.Source.Microphone)}}}))}createTracks(e){var t,r;return gne(this,void 0,void 0,(function*(){const n=use(sse(e,null===(t=this.roomOptions)||void 0===t?void 0:t.audioCaptureDefaults,null===(r=this.roomOptions)||void 0===r?void 0:r.videoCaptureDefaults));let i;try{i=yield navigator.mediaDevices.getUserMedia(n)}catch(dVe){throw dVe instanceof Error&&(n.audio&&(this.microphoneError=dVe),n.video&&(this.cameraError=dVe)),dVe}return n.audio&&(this.microphoneError=void 0),n.video&&(this.cameraError=void 0),i.getTracks().map((t=>{const r="audio"===t.kind;let o;r?e.audio:e.video;const s=r?n.audio:n.video;"boolean"!=typeof s&&(o=s);const a=Fae(t,o);return a.kind===nse.Kind.Video?a.source=nse.Source.Camera:a.kind===nse.Kind.Audio&&(a.source=nse.Source.Microphone),a.mediaStream=i,a}))}))}createScreenTracks(e){return gne(this,void 0,void 0,(function*(){if(void 0===e&&(e={}),void 0===e.resolution&&(e.resolution=Joe.h1080fps15.resolution),void 0===navigator.mediaDevices.getDisplayMedia)throw new Roe("getDisplayMedia not supported");const t=cse(e),r=yield navigator.mediaDevices.getDisplayMedia(t),n=r.getVideoTracks();if(0===n.length)throw new Poe("no video track found");const i=new Xae(n[0],void 0,!1);i.source=nse.Source.ScreenShare;const o=[i];if(r.getAudioTracks().length>0){const e=new Uae(r.getAudioTracks()[0],void 0,!1,this.audioContext);e.source=nse.Source.ScreenShareAudio,o.push(e)}return o}))}publishTrack(e,t){var r,n,i,o;return gne(this,void 0,void 0,(function*(){let s,a;if(yield null===(r=this.reconnectFuture)||void 0===r?void 0:r.promise,e instanceof iae&&this.pendingPublishPromises.has(e)&&(yield this.pendingPublishPromises.get(e)),e instanceof MediaStreamTrack)s=e.getConstraints();else{let t;switch(s=e.constraints,e.source){case nse.Source.Microphone:t="audioinput";break;case nse.Source.Camera:t="videoinput"}t&&this.activeDeviceMap.has(t)&&(s=Object.assign(Object.assign({},s),{deviceId:this.activeDeviceMap.get(t)}))}if(e instanceof MediaStreamTrack)switch(e.kind){case"audio":e=new Uae(e,s,!0,this.audioContext);break;case"video":e=new Xae(e,s,!0);break;default:throw new Poe("unsupported MediaStreamTrack kind ".concat(e.kind))}if(e instanceof Uae&&e.setAudioContext(this.audioContext),this.tracks.forEach((t=>{t.track&&t.track===e&&(a=t)})),a)return dte.warn("track has already been published, skipping"),a;const u="channelCount"in e.mediaStreamTrack.getSettings()&&2===e.mediaStreamTrack.getSettings().channelCount||2===e.mediaStreamTrack.getConstraints().channelCount,l=null!==(n=null==t?void 0:t.forceStereo)&&void 0!==n?n:u;l&&(t||(t={}),void 0===t.dtx&&dte.info("Opus DTX will be disabled for stereo tracks by default. Enable them explicitly to make it work."),void 0===t.red&&dte.info("Opus RED will be disabled for stereo tracks by default. Enable them explicitly to make it work."),null!==(i=t.dtx)&&void 0!==i||(t.dtx=!1),null!==(o=t.red)&&void 0!==o||(t.red=!1));const c=Object.assign(Object.assign({},this.roomOptions.publishDefaults),t);bse()&&this.roomOptions.e2ee&&(dte.info("End-to-end encryption is set up, simulcast publishing will be disabled on Safari"),c.simulcast=!1),c.source&&(e.source=c.source);const h=this.publish(e,c,l);this.pendingPublishPromises.set(e,h);try{return yield h}catch(fVe){throw fVe}finally{this.pendingPublishPromises.delete(e)}}))}publish(e,t,r){var n,i,o,s,a,u,l,c,h,d,f,p,m,g;return gne(this,void 0,void 0,(function*(){const y=Array.from(this.tracks.values()).find((t=>e instanceof iae&&t.source===e.source));if(y&&e.source!==nse.Source.Unknown)try{throw Error("publishing a second track with the same source: ".concat(e.source))}catch(fVe){fVe instanceof Error&&dte.warn(fVe.message,{oldTrack:y,newTrack:e,trace:fVe.stack})}t.stopMicTrackOnMute&&e instanceof Uae&&(e.stopOnMute=!0),e.source===nse.Source.ScreenShare&&vse()&&(t.simulcast=!1),"av1"!==t.videoCodec||function(){if(!("getCapabilities"in RTCRtpSender))return!1;const e=RTCRtpSender.getCapabilities("video");let t=!1;if(e)for(const r of e.codecs)if("video/AV1"===r.mimeType){t=!0;break}return t}()||(t.videoCodec=void 0),"vp9"!==t.videoCodec||function(){if(!("getCapabilities"in RTCRtpSender))return!1;const e=RTCRtpSender.getCapabilities("video");let t=!1;if(e)for(const r of e.codecs)if("video/VP9"===r.mimeType){t=!0;break}return t}()||(t.videoCodec=void 0),e.on(tse.Muted,this.onTrackMuted),e.on(tse.Unmuted,this.onTrackUnmuted),e.on(tse.Ended,this.handleTrackEnded),e.on(tse.UpstreamPaused,this.onTrackUpstreamPaused),e.on(tse.UpstreamResumed,this.onTrackUpstreamResumed);const v=new $ie({cid:e.mediaStreamTrack.id,name:t.name,type:nse.kindToProto(e.kind),muted:e.isMuted,source:nse.sourceToProto(e.source),disableDtx:!(null===(n=t.dtx)||void 0===n||n),encryption:this.encryptionType,stereo:r,disableRed:this.isE2EEEnabled||!(null===(i=t.red)||void 0===i||i)});let b,w;if(e.kind===nse.Kind.Video){let r={width:0,height:0};try{r=yield e.waitForDimensions()}catch(fVe){const t=null!==(s=null===(o=this.roomOptions.videoCaptureDefaults)||void 0===o?void 0:o.resolution)&&void 0!==s?s:$oe.h720.resolution;r={width:t.width,height:t.height},dte.error("could not determine track dimensions, using defaults",r)}if(v.width=r.width,v.height=r.height,e instanceof Xae)if(mse(t.videoCodec)&&(t.scalabilityMode=null!==(a=t.scalabilityMode)&&void 0!==a?a:"L3T3_KEY"),t.videoCodec&&t.backupCodec&&t.videoCodec!==t.backupCodec.codec){this.roomOptions.dynacast||(this.roomOptions.dynacast=!0);const r=Object.assign({},t);r.simulcast=!0,w=Vae(e,t.backupCodec.codec,r),v.simulcastCodecs=[new Vie({codec:t.videoCodec,cid:e.mediaStreamTrack.id,enableSimulcastLayers:!0}),new Vie({codec:t.backupCodec.codec,cid:"",enableSimulcastLayers:!0})]}else t.videoCodec&&(v.simulcastCodecs=[new Vie({codec:t.videoCodec,cid:e.mediaStreamTrack.id,enableSimulcastLayers:null!==(u=t.simulcast)&&void 0!==u&&u})]);b=Wae(e.source===nse.Source.ScreenShare,r.width,r.height,t),v.layers=rue(v.width,v.height,b,mse(t.videoCodec))}else e.kind===nse.Kind.Audio&&(b=[{maxBitrate:null!==(c=null===(l=t.audioPreset)||void 0===l?void 0:l.maxBitrate)&&void 0!==c?c:t.audioBitrate,priority:null!==(d=null===(h=t.audioPreset)||void 0===h?void 0:h.priority)&&void 0!==d?d:"high",networkPriority:null!==(p=null===(f=t.audioPreset)||void 0===f?void 0:f.priority)&&void 0!==p?p:"high"}]);if(!this.engine||this.engine.isClosed)throw new Loe("cannot publish track when not connected");const _=yield this.engine.addTrack(v);let E=!1,A=!1;if(_.codecs.forEach((e=>{Woe(e.mimeType,t.videoCodec)?E=!0:t.backupCodec&&Woe(e.mimeType,t.backupCodec.codec)&&(A=!0)})),v.simulcastCodecs.length>0){if(!E&&!A)throw Error("cannot publish track, codec not supported by server");if(!E&&t.backupCodec){const e=t.backupCodec;t=Object.assign({},t),dte.debug("primary codec ".concat(t.videoCodec," not supported, fallback to ").concat(e.codec)),t.videoCodec=e.codec,t.videoEncoding=e.encoding,b=w}}const M=new lue(e.kind,_,e);if(M.options=t,e.sid=_.sid,!this.engine.publisher)throw new Loe("publisher is closed");if(dte.debug("publishing ".concat(e.kind," with encodings"),{encodings:b,trackInfo:_}),e.sender=yield this.engine.createSender(e,t,b),b)if(vse()&&e.kind===nse.Kind.Audio){let t;for(const r of this.engine.publisher.pc.getTransceivers())if(r.sender===e.sender){t=r;break}t&&this.engine.publisher.setTrackCodecBitrate({transceiver:t,codec:"opus",maxbr:(null===(m=b[0])||void 0===m?void 0:m.maxBitrate)?b[0].maxBitrate/1e3:0})}else e.codec&&mse(e.codec)&&(null===(g=b[0])||void 0===g?void 0:g.maxBitrate)&&this.engine.publisher.setTrackCodecBitrate({cid:v.cid,codec:e.codec,maxbr:b[0].maxBitrate/1e3});return yield this.engine.negotiate(),e instanceof Xae?e.startMonitor(this.engine.client):e instanceof Uae&&e.startMonitor(),this.addTrackPublication(M),this.emit(Xoe.LocalTrackPublished,M),M}))}get isLocal(){return!0}publishAdditionalCodecForTrack(e,t,r){var n;return gne(this,void 0,void 0,(function*(){let i;if(this.tracks.forEach((t=>{t.track&&t.track===e&&(i=t)})),!i)throw new Poe("track is not published");if(!(e instanceof Xae))throw new Poe("track is not a video track");const o=Object.assign(Object.assign({},null===(n=this.roomOptions)||void 0===n?void 0:n.publishDefaults),r),s=Vae(e,t,o);if(!s)return void dte.info("backup codec has been disabled, ignoring request to add additional codec for track");const a=e.addSimulcastTrack(t,s),u=new $ie({cid:a.mediaStreamTrack.id,type:nse.kindToProto(e.kind),muted:e.isMuted,source:nse.sourceToProto(e.source),sid:e.sid,simulcastCodecs:[{codec:o.videoCodec,cid:a.mediaStreamTrack.id,enableSimulcastLayers:o.simulcast}]});if(u.layers=rue(u.width,u.height,s),!this.engine||this.engine.isClosed)throw new Loe("cannot publish track when not connected");const l=yield this.engine.addTrack(u);yield this.engine.createSimulcastSender(e,a,o,s),yield this.engine.negotiate(),dte.debug("published ".concat(t," for track ").concat(e.sid),{encodings:s,trackInfo:l})}))}unpublishTrack(e,t){var r,n;return gne(this,void 0,void 0,(function*(){const i=this.getPublicationForTrack(e);if(dte.debug("unpublishing track",{track:e,method:"unpublishTrack"}),!i||!i.track)return void dte.warn("track was not unpublished because no publication was found",{track:e,method:"unpublishTrack"});(e=i.track).off(tse.Muted,this.onTrackMuted),e.off(tse.Unmuted,this.onTrackUnmuted),e.off(tse.Ended,this.handleTrackEnded),e.off(tse.UpstreamPaused,this.onTrackUpstreamPaused),e.off(tse.UpstreamResumed,this.onTrackUpstreamResumed),void 0===t&&(t=null===(n=null===(r=this.roomOptions)||void 0===r?void 0:r.stopLocalTrackOnUnpublish)||void 0===n||n),t&&e.stop();let o=!1;const s=e.sender;if(e.sender=void 0,this.engine.publisher&&"closed"!==this.engine.publisher.pc.connectionState&&s)try{for(const e of this.engine.publisher.pc.getTransceivers())e.sender===s&&(e.direction="inactive",o=!0);if(this.engine.removeTrack(s)&&(o=!0),e instanceof Xae){for(const[,t]of e.simulcastCodecs)t.sender&&(this.engine.removeTrack(t.sender)&&(o=!0),t.sender=void 0);e.simulcastCodecs.clear()}}catch(fVe){dte.warn("failed to unpublish track",{error:fVe,method:"unpublishTrack"})}switch(this.tracks.delete(i.trackSid),i.kind){case nse.Kind.Audio:this.audioTracks.delete(i.trackSid);break;case nse.Kind.Video:this.videoTracks.delete(i.trackSid)}return this.emit(Xoe.LocalTrackUnpublished,i),i.setTrack(void 0),o&&(yield this.engine.negotiate()),i}))}unpublishTracks(e){return gne(this,void 0,void 0,(function*(){return(yield Promise.all(e.map((e=>this.unpublishTrack(e))))).filter((e=>e instanceof lue))}))}republishAllTracks(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return gne(this,void 0,void 0,(function*(){const r=[];this.tracks.forEach((t=>{t.track&&(e&&(t.options=Object.assign(Object.assign({},t.options),e)),r.push(t))})),yield Promise.all(r.map((e=>gne(this,void 0,void 0,(function*(){const r=e.track;yield this.unpublishTrack(r,!1),t&&!r.isMuted&&(r instanceof Uae||r instanceof Xae)&&!r.isUserProvided&&(dte.debug("restarting existing track",{track:e.trackSid}),yield r.restartTrack()),yield this.publishTrack(r,e.options)})))))}))}publishData(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return gne(this,void 0,void 0,(function*(){const n=Array.isArray(r)?r:null==r?void 0:r.destination,i=[],o=Array.isArray(r)?void 0:r.topic;void 0!==n&&n.forEach((e=>{e instanceof pue?i.push(e.sid):i.push(e)}));const s=new rne({kind:t,value:{case:"user",value:new one({participantSid:this.sid,payload:e,destinationSids:i,topic:o})}});yield this.engine.sendDataPacket(s,t)}))}setTrackSubscriptionPermissions(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.participantTrackPermissions=t,this.allParticipantsAllowedToSubscribe=e,this.engine.client.isConnected&&this.updateTrackSubscriptionPermissions()}updateInfo(e){return e.sid===this.sid&&(!!super.updateInfo(e)&&(e.tracks.forEach((e=>{var t,r;const n=this.tracks.get(e.sid);if(n){const i=n.isMuted||null!==(r=null===(t=n.track)||void 0===t?void 0:t.isUpstreamPaused)&&void 0!==r&&r;i!==e.muted&&(dte.debug("updating server mute state after reconcile",{sid:e.sid,muted:i}),this.engine.client.sendMuteTrack(e.sid,i))}})),!0))}getPublicationForTrack(e){let t;return this.tracks.forEach((r=>{const n=r.track;n&&(e instanceof MediaStreamTrack?(n instanceof Uae||n instanceof Xae)&&n.mediaStreamTrack===e&&(t=r):e===n&&(t=r))})),t}publishedTracksInfo(){const e=[];return this.tracks.forEach((t=>{void 0!==t.track&&e.push(new eoe({cid:t.track.mediaStreamID,track:t.trackInfo}))})),e}dataChannelsInfo(){const e=[],t=(t,r)=>{void 0!==(null==t?void 0:t.id)&&null!==t.id&&e.push(new Aoe({label:t.label,id:t.id,target:r}))};return t(this.engine.dataChannelForKind($re.LOSSY),zie.PUBLISHER),t(this.engine.dataChannelForKind($re.RELIABLE),zie.PUBLISHER),t(this.engine.dataChannelForKind($re.LOSSY,!0),zie.SUBSCRIBER),t(this.engine.dataChannelForKind($re.RELIABLE,!0),zie.SUBSCRIBER),e}}!function(e){e.Disconnected="disconnected",e.Connecting="connecting",e.Connected="connected",e.Reconnecting="reconnecting"}(hue||(hue={}));class gue extends Lne.EventEmitter{constructor(e){var t,r;super(),t=this,this.state=hue.Disconnected,this.activeSpeakers=[],this.isE2EEEnabled=!1,this.audioEnabled=!0,this.connect=(e,t,r)=>gne(this,void 0,void 0,(function*(){var n;const i=yield this.disconnectLock.lock();if(this.state===hue.Connected)return dte.info("already connected to room ".concat(this.name)),i(),Promise.resolve();if(this.connectFuture)return i(),this.connectFuture.promise;this.setAndEmitConnectionState(hue.Connecting),(null===(n=this.regionUrlProvider)||void 0===n?void 0:n.getServerUrl().toString())!==e&&(this.regionUrl=void 0,this.regionUrlProvider=void 0),Ase(new URL(e))&&(void 0===this.regionUrlProvider?this.regionUrlProvider=new Oae(e,t):this.regionUrlProvider.updateToken(t),this.regionUrlProvider.fetchRegionSettings().catch((e=>{dte.warn("could not fetch region settings",{error:e})})));const o=(n,s,a)=>gne(this,void 0,void 0,(function*(){var u;this.abortController&&this.abortController.abort();const l=new AbortController;this.abortController=l,null==i||i();try{yield this.attemptConnection(null!=a?a:e,t,r,l),this.abortController=void 0,n()}catch(fVe){if(this.regionUrlProvider&&fVe instanceof Noe&&3!==fVe.reason&&0!==fVe.reason){let t=null;try{t=yield this.regionUrlProvider.getNextBestRegionUrl(null===(u=this.abortController)||void 0===u?void 0:u.signal)}catch(XMe){if(XMe instanceof Noe&&(401===XMe.status||3===XMe.reason))return void s(XMe)}t?(dte.info("Initial connection failed with ConnectionError: ".concat(fVe.message,". Retrying with another region: ").concat(t)),yield o(n,s,t)):s(fVe)}else s(fVe)}})),s=this.regionUrl;return this.regionUrl=void 0,this.connectFuture=new jse(((e,t)=>{o(e,t,s)}),(()=>{this.clearConnectionFutures()})),this.connectFuture.promise})),this.connectSignal=(e,t,r,n,i,o)=>gne(this,void 0,void 0,(function*(){const s=yield r.join(e,t,{autoSubscribe:n.autoSubscribe,publishOnly:n.publishOnly,adaptiveStream:"object"==typeof i.adaptiveStream||i.adaptiveStream,maxRetries:n.maxRetries,e2eeEnabled:!!this.e2eeManager,websocketTimeout:n.websocketTimeout},o.signal);let a=s.serverInfo;if(a||(a={version:s.serverVersion,region:s.serverRegion}),dte.debug("connected to Livekit Server ".concat(Object.entries(a).map((e=>{let[t,r]=e;return"".concat(t,": ").concat(r)})).join(", "))),!s.serverVersion)throw new Doe("unknown server version");return"0.15.1"===s.serverVersion&&this.options.dynacast&&(dte.debug("disabling dynacast due to server version"),i.dynacast=!1),s})),this.applyJoinResponse=e=>{const t=e.participant;this.localParticipant.sid=t.sid,this.localParticipant.identity=t.identity,this.handleParticipantUpdates([t,...e.otherParticipants]),e.room&&this.handleRoomUpdate(e.room),this.options.e2ee&&this.e2eeManager&&this.e2eeManager.setSifTrailer(e.sifTrailer)},this.attemptConnection=(e,t,r,n)=>gne(this,void 0,void 0,(function*(){var i,o;this.state===hue.Reconnecting?(dte.info("Reconnection attempt replaced by new connection attempt"),this.recreateEngine()):this.maybeCreateEngine(),(null===(i=this.regionUrlProvider)||void 0===i?void 0:i.isCloud())&&this.engine.setRegionUrlProvider(this.regionUrlProvider),this.acquireAudioContext(),this.connOptions=Object.assign(Object.assign({},Cae),r),this.connOptions.rtcConfig&&(this.engine.rtcConfig=this.connOptions.rtcConfig),this.connOptions.peerConnectionTimeout&&(this.engine.peerConnectionTimeout=this.connOptions.peerConnectionTimeout);try{const r=yield this.connectSignal(e,t,this.engine,this.connOptions,this.options,n);this.applyJoinResponse(r),this.setupLocalParticipantEvents(),this.emit(Zoe.SignalConnected)}catch(dVe){this.recreateEngine(),this.handleDisconnect(this.options.stopLocalTrackOnUnpublish);const t=new Noe("could not establish signal connection");throw dVe instanceof Error&&(t.message="".concat(t.message,": ").concat(dVe.message)),dVe instanceof Noe&&(t.reason=dVe.reason,t.status=dVe.status),dte.debug("error trying to establish signal connection",{error:dVe}),t}if(n.signal.aborted)throw this.recreateEngine(),this.handleDisconnect(this.options.stopLocalTrackOnUnpublish),new Noe("Connection attempt aborted");try{yield this.engine.waitForPCInitialConnection(this.connOptions.peerConnectionTimeout,n)}catch(fVe){throw this.recreateEngine(),this.handleDisconnect(this.options.stopLocalTrackOnUnpublish),fVe}_se()&&this.options.disconnectOnPageLeave&&(window.addEventListener("pagehide",this.onPageLeave),window.addEventListener("beforeunload",this.onPageLeave)),_se()&&(document.addEventListener("freeze",this.onPageLeave),null===(o=navigator.mediaDevices)||void 0===o||o.addEventListener("devicechange",this.handleDeviceChange)),this.setAndEmitConnectionState(hue.Connected),this.emit(Zoe.Connected),this.registerConnectionReconcile()})),this.disconnect=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return gne(t,void 0,void 0,(function*(){var t,r,n,i;const o=yield this.disconnectLock.lock();try{if(this.state===hue.Disconnected)return void dte.debug("already disconnected");dte.info("disconnect from room",{identity:this.localParticipant.identity}),this.state!==hue.Connecting&&this.state!==hue.Reconnecting||(dte.warn("abort connection attempt"),null===(t=this.abortController)||void 0===t||t.abort(),null===(n=null===(r=this.connectFuture)||void 0===r?void 0:r.reject)||void 0===n||n.call(r,new Noe("Client initiated disconnect")),this.connectFuture=void 0),(null===(i=this.engine)||void 0===i?void 0:i.client.isConnected)&&(yield this.engine.client.sendLeave()),this.engine&&(yield this.engine.close()),this.handleDisconnect(e,jre.CLIENT_INITIATED),this.engine=void 0}finally{o()}}))},this.onPageLeave=()=>gne(this,void 0,void 0,(function*(){yield this.disconnect()})),this.handleRestarting=()=>{this.clearConnectionReconcile();for(const e of this.participants.values())this.handleParticipantDisconnected(e.sid,e);this.setAndEmitConnectionState(hue.Reconnecting)&&this.emit(Zoe.Reconnecting)},this.handleSignalRestarted=e=>gne(this,void 0,void 0,(function*(){dte.debug("signal reconnected to server",{region:e.serverRegion}),this.cachedParticipantSids=[],this.applyJoinResponse(e);try{const e=[];this.localParticipant.tracks.forEach((t=>{t.track&&e.push(t)})),yield Promise.all(e.map((e=>gne(this,void 0,void 0,(function*(){const t=e.track;this.localParticipant.unpublishTrack(t,!1),t.isMuted||((t instanceof Uae||t instanceof Xae)&&t.source!==nse.Source.ScreenShare&&t.source!==nse.Source.ScreenShareAudio&&!t.isUserProvided&&(dte.debug("restarting existing track",{track:e.trackSid}),yield t.restartTrack()),dte.debug("publishing new track",{track:e.trackSid}),yield this.localParticipant.publishTrack(t,e.options))})))))}catch(XMe){dte.error("error trying to re-publish tracks after reconnection",{error:XMe})}try{yield this.engine.waitForRestarted(),dte.debug("fully reconnected to server",{region:e.serverRegion})}catch(t){return}this.setAndEmitConnectionState(hue.Connected),this.emit(Zoe.Reconnected),this.registerConnectionReconcile(),this.participants.forEach((e=>{this.emit(Zoe.ParticipantConnected,e)}))})),this.handleParticipantUpdates=e=>{e.forEach((e=>{if(e.identity===this.localParticipant.identity)return void this.localParticipant.updateInfo(e);const t=this.identityToSid.get(e.identity);t&&t!==e.sid&&this.handleParticipantDisconnected(t,this.participants.get(t));let r=this.participants.get(e.sid);const n=!r;e.state===Wre.DISCONNECTED?this.handleParticipantDisconnected(e.sid,r):(r=this.getOrCreateParticipant(e.sid,e),n||r.updateInfo(e))}))},this.handleActiveSpeakersUpdate=e=>{const t=[],r={};e.forEach((e=>{if(r[e.sid]=!0,e.sid===this.localParticipant.sid)this.localParticipant.audioLevel=e.level,this.localParticipant.setIsSpeaking(!0),t.push(this.localParticipant);else{const r=this.participants.get(e.sid);r&&(r.audioLevel=e.level,r.setIsSpeaking(!0),t.push(r))}})),r[this.localParticipant.sid]||(this.localParticipant.audioLevel=0,this.localParticipant.setIsSpeaking(!1)),this.participants.forEach((e=>{r[e.sid]||(e.audioLevel=0,e.setIsSpeaking(!1))})),this.activeSpeakers=t,this.emitWhenConnected(Zoe.ActiveSpeakersChanged,t)},this.handleSpeakersChanged=e=>{const t=new Map;this.activeSpeakers.forEach((e=>{t.set(e.sid,e)})),e.forEach((e=>{let r=this.participants.get(e.sid);e.sid===this.localParticipant.sid&&(r=this.localParticipant),r&&(r.audioLevel=e.level,r.setIsSpeaking(e.active),e.active?t.set(e.sid,r):t.delete(e.sid))}));const r=Array.from(t.values());r.sort(((e,t)=>t.audioLevel-e.audioLevel)),this.activeSpeakers=r,this.emitWhenConnected(Zoe.ActiveSpeakersChanged,r)},this.handleStreamStateUpdate=e=>{e.streamStates.forEach((e=>{const t=this.participants.get(e.participantSid);if(!t)return;const r=t.getTrackPublication(e.trackSid);r&&r.track&&(r.track.streamState=nse.streamStateFromProto(e.state),t.emit(Xoe.TrackStreamStateChanged,r,r.track.streamState),this.emitWhenConnected(Zoe.TrackStreamStateChanged,r,r.track.streamState,t))}))},this.handleSubscriptionPermissionUpdate=e=>{const t=this.participants.get(e.participantSid);if(!t)return;const r=t.getTrackPublication(e.trackSid);r&&r.setAllowed(e.allowed)},this.handleSubscriptionError=e=>{const t=Array.from(this.participants.values()).find((t=>t.tracks.has(e.trackSid)));if(!t)return;const r=t.getTrackPublication(e.trackSid);r&&r.setSubscriptionError(e.err)},this.handleDataPacket=(e,t)=>{const r=this.participants.get(e.participantSid);this.emit(Zoe.DataReceived,e.payload,r,t,e.topic),null==r||r.emit(Xoe.DataReceived,e.payload,t)},this.handleAudioPlaybackStarted=()=>{this.canPlaybackAudio||(this.audioEnabled=!0,this.emit(Zoe.AudioPlaybackStatusChanged,!0))},this.handleAudioPlaybackFailed=e=>{dte.warn("could not playback audio",e),this.canPlaybackAudio&&(this.audioEnabled=!1,this.emit(Zoe.AudioPlaybackStatusChanged,!1))},this.handleDeviceChange=()=>gne(this,void 0,void 0,(function*(){this.emit(Zoe.MediaDevicesChanged)})),this.handleRoomUpdate=e=>{const t=this.roomInfo;this.roomInfo=e,t&&t.metadata!==e.metadata&&this.emitWhenConnected(Zoe.RoomMetadataChanged,e.metadata),(null==t?void 0:t.activeRecording)!==e.activeRecording&&this.emitWhenConnected(Zoe.RecordingStatusChanged,e.activeRecording)},this.handleConnectionQualityUpdate=e=>{e.updates.forEach((e=>{if(e.participantSid===this.localParticipant.sid)return void this.localParticipant.setConnectionQuality(e.quality);const t=this.participants.get(e.participantSid);t&&t.setConnectionQuality(e.quality)}))},this.onLocalParticipantMetadataChanged=e=>{this.emit(Zoe.ParticipantMetadataChanged,e,this.localParticipant)},this.onLocalParticipantNameChanged=e=>{this.emit(Zoe.ParticipantNameChanged,e,this.localParticipant)},this.onLocalTrackMuted=e=>{this.emit(Zoe.TrackMuted,e,this.localParticipant)},this.onLocalTrackUnmuted=e=>{this.emit(Zoe.TrackUnmuted,e,this.localParticipant)},this.onLocalTrackPublished=e=>gne(this,void 0,void 0,(function*(){var t;if(this.emit(Zoe.LocalTrackPublished,e,this.localParticipant),e.track instanceof Uae){(yield e.track.checkForSilence())&&this.emit(Zoe.LocalAudioSilenceDetected,e)}const r=yield null===(t=e.track)||void 0===t?void 0:t.getDeviceId(),n=(i=e.source)===nse.Source.Microphone?"audioinput":i===nse.Source.Camera?"videoinput":void 0;var i;n&&r&&r!==this.localParticipant.activeDeviceMap.get(n)&&(this.localParticipant.activeDeviceMap.set(n,r),this.emit(Zoe.ActiveDeviceChanged,n,r))})),this.onLocalTrackUnpublished=e=>{this.emit(Zoe.LocalTrackUnpublished,e,this.localParticipant)},this.onLocalConnectionQualityChanged=e=>{this.emit(Zoe.ConnectionQualityChanged,e,this.localParticipant)},this.onMediaDevicesError=e=>{this.emit(Zoe.MediaDevicesError,e)},this.onLocalParticipantPermissionsChanged=e=>{this.emit(Zoe.ParticipantPermissionsChanged,e,this.localParticipant)},this.setMaxListeners(100),this.participants=new Map,this.cachedParticipantSids=[],this.identityToSid=new Map,this.options=Object.assign(Object.assign({},Tae),e),this.options.audioCaptureDefaults=Object.assign(Object.assign({},xae),null==e?void 0:e.audioCaptureDefaults),this.options.videoCaptureDefaults=Object.assign(Object.assign({},kae),null==e?void 0:e.videoCaptureDefaults),this.options.publishDefaults=Object.assign(Object.assign({},Sae),null==e?void 0:e.publishDefaults),this.maybeCreateEngine(),this.disconnectLock=new Bse,this.localParticipant=new mue("","",this.engine,this.options),this.options.videoCaptureDefaults.deviceId&&this.localParticipant.activeDeviceMap.set("videoinput",Use(this.options.videoCaptureDefaults.deviceId)),this.options.audioCaptureDefaults.deviceId&&this.localParticipant.activeDeviceMap.set("audioinput",Use(this.options.audioCaptureDefaults.deviceId)),(null===(r=this.options.audioOutput)||void 0===r?void 0:r.deviceId)&&this.switchActiveDevice("audiooutput",Use(this.options.audioOutput.deviceId)),this.options.e2ee&&this.setupE2EE()}setE2EEEnabled(e){return gne(this,void 0,void 0,(function*(){if(!this.e2eeManager)throw Error("e2ee not configured, please set e2ee settings within the room options");yield Promise.all([this.localParticipant.setE2EEEnabled(e)]),""!==this.localParticipant.identity&&this.e2eeManager.setParticipantCryptorEnabled(e,this.localParticipant.identity)}))}setupE2EE(){var e;this.options.e2ee&&(this.e2eeManager=new oae(this.options.e2ee),this.e2eeManager.on(Qse.ParticipantEncryptionStatusChanged,((e,t)=>{t instanceof mue&&(this.isE2EEEnabled=e),this.emit(Zoe.ParticipantEncryptionStatusChanged,e,t)})),this.e2eeManager.on(Qse.EncryptionError,(e=>this.emit(Zoe.EncryptionError,e))),null===(e=this.e2eeManager)||void 0===e||e.setup(this))}get isRecording(){var e,t;return null!==(t=null===(e=this.roomInfo)||void 0===e?void 0:e.activeRecording)&&void 0!==t&&t}get sid(){var e,t;return null!==(t=null===(e=this.roomInfo)||void 0===e?void 0:e.sid)&&void 0!==t?t:""}get name(){var e,t;return null!==(t=null===(e=this.roomInfo)||void 0===e?void 0:e.name)&&void 0!==t?t:""}get metadata(){var e;return null===(e=this.roomInfo)||void 0===e?void 0:e.metadata}get numParticipants(){var e,t;return null!==(t=null===(e=this.roomInfo)||void 0===e?void 0:e.numParticipants)&&void 0!==t?t:0}get numPublishers(){var e,t;return null!==(t=null===(e=this.roomInfo)||void 0===e?void 0:e.numPublishers)&&void 0!==t?t:0}maybeCreateEngine(){this.engine&&!this.engine.isClosed||(this.engine=new Dae(this.options),this.engine.on(ese.ParticipantUpdate,this.handleParticipantUpdates).on(ese.RoomUpdate,this.handleRoomUpdate).on(ese.SpeakersChanged,this.handleSpeakersChanged).on(ese.StreamStateChanged,this.handleStreamStateUpdate).on(ese.ConnectionQualityUpdate,this.handleConnectionQualityUpdate).on(ese.SubscriptionError,this.handleSubscriptionError).on(ese.SubscriptionPermissionUpdate,this.handleSubscriptionPermissionUpdate).on(ese.MediaTrackAdded,((e,t,r)=>{this.onTrackAdded(e,t,r)})).on(ese.Disconnected,(e=>{this.handleDisconnect(this.options.stopLocalTrackOnUnpublish,e)})).on(ese.ActiveSpeakersUpdate,this.handleActiveSpeakersUpdate).on(ese.DataPacketReceived,this.handleDataPacket).on(ese.Resuming,(()=>{this.clearConnectionReconcile(),this.setAndEmitConnectionState(hue.Reconnecting)&&this.emit(Zoe.Reconnecting),this.cachedParticipantSids=Array.from(this.participants.keys())})).on(ese.Resumed,(()=>{this.setAndEmitConnectionState(hue.Connected),this.emit(Zoe.Reconnected),this.registerConnectionReconcile(),this.updateSubscriptions();const e=Array.from(this.participants.values()).filter((e=>!this.cachedParticipantSids.includes(e.sid)));e.forEach((e=>this.emit(Zoe.ParticipantConnected,e))),this.cachedParticipantSids=[]})).on(ese.SignalResumed,(()=>{this.state===hue.Reconnecting&&this.sendSyncState()})).on(ese.Restarting,this.handleRestarting).on(ese.SignalRestarted,this.handleSignalRestarted).on(ese.DCBufferStatusChanged,((e,t)=>{this.emit(Zoe.DCBufferStatusChanged,e,t)})),this.localParticipant&&this.localParticipant.setupEngine(this.engine),this.e2eeManager&&this.e2eeManager.setupEngine(this.engine))}static getLocalDevices(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return nae.getInstance().getDevices(e,t)}prepareConnection(e,t){return gne(this,void 0,void 0,(function*(){if(this.state===hue.Disconnected){dte.debug("prepareConnection to ".concat(e));try{if(Ase(new URL(e))&&t){this.regionUrlProvider=new Oae(e,t);const r=yield this.regionUrlProvider.getNextBestRegionUrl();r&&this.state===hue.Disconnected&&(this.regionUrl=r,yield fetch(Fse(r),{method:"HEAD"}),dte.debug("prepared connection to ".concat(r)))}else yield fetch(Fse(e),{method:"HEAD"})}catch(fVe){dte.warn("could not prepare connection",{error:fVe})}}}))}getParticipantByIdentity(e){if(this.localParticipant.identity===e)return this.localParticipant;const t=this.identityToSid.get(e);return t?this.participants.get(t):void 0}clearConnectionFutures(){this.connectFuture=void 0}simulateScenario(e,t){return gne(this,void 0,void 0,(function*(){let r,n=()=>{};switch(e){case"signal-reconnect":yield this.engine.client.handleOnClose("simulate disconnect");break;case"speaker":r=new Moe({scenario:{case:"speakerUpdate",value:3}});break;case"node-failure":r=new Moe({scenario:{case:"nodeFailure",value:!0}});break;case"server-leave":r=new Moe({scenario:{case:"serverLeave",value:!0}});break;case"migration":r=new Moe({scenario:{case:"migration",value:!0}});break;case"resume-reconnect":this.engine.failNext(),yield this.engine.client.handleOnClose("simulate resume-disconnect");break;case"full-reconnect":this.engine.fullReconnectOnNext=!0,yield this.engine.client.handleOnClose("simulate full-reconnect");break;case"force-tcp":case"force-tls":r=new Moe({scenario:{case:"switchCandidateProtocol",value:"force-tls"===e?2:1}}),n=()=>gne(this,void 0,void 0,(function*(){const e=this.engine.client.onLeave;e&&e(new soe({reason:jre.CLIENT_INITIATED,canReconnect:!0}))}));break;case"subscriber-bandwidth":if(void 0===t||"number"!=typeof t)throw new Error("subscriber-bandwidth requires a number as argument");r=new Moe({scenario:{case:"subscriberBandwidth",value:BigInt(t)}})}r&&(this.engine.client.sendSimulateScenario(r),n())}))}startAudio(){return gne(this,void 0,void 0,(function*(){const e=[],t=Foe();if(t&&"iOS"===t.os){const t="livekit-dummy-audio-el";let r=document.getElementById(t);if(!r){r=document.createElement("audio"),r.id=t,r.autoplay=!0,r.hidden=!0;const e=Ose();e.enabled=!0;const n=new MediaStream([e]);r.srcObject=n,document.addEventListener("visibilitychange",(()=>{r&&(r.srcObject=document.hidden?null:n)})),document.body.append(r),this.once(Zoe.Disconnected,(()=>{null==r||r.remove()}))}e.push(r)}this.participants.forEach((t=>{t.audioTracks.forEach((t=>{t.track&&t.track.attachedElements.forEach((t=>{e.push(t)}))}))}));try{yield Promise.all([this.acquireAudioContext(),...e.map((e=>(e.muted=!1,e.play())))]),this.handleAudioPlaybackStarted()}catch(dVe){throw this.handleAudioPlaybackFailed(dVe),dVe}}))}get canPlaybackAudio(){return this.audioEnabled}getActiveAudioOutputDevice(){var e,t;return null!==(t=null===(e=this.options.audioOutput)||void 0===e?void 0:e.deviceId)&&void 0!==t?t:""}getActiveDevice(e){return this.localParticipant.activeDeviceMap.get(e)}switchActiveDevice(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var n,i,o;return gne(this,void 0,void 0,(function*(){let s=!1,a=!0;const u=r?{exact:t}:t;if("audioinput"===e){const e=this.options.audioCaptureDefaults.deviceId;this.options.audioCaptureDefaults.deviceId=u,s=e!==u;const t=Array.from(this.localParticipant.audioTracks.values()).filter((e=>e.source===nse.Source.Microphone));try{a=(yield Promise.all(t.map((e=>{var t;return null===(t=e.audioTrack)||void 0===t?void 0:t.setDeviceId(u)})))).every((e=>!0===e))}catch(fVe){throw this.options.audioCaptureDefaults.deviceId=e,fVe}}else if("videoinput"===e){const e=this.options.videoCaptureDefaults.deviceId;this.options.videoCaptureDefaults.deviceId=u,s=e!==u;const t=Array.from(this.localParticipant.videoTracks.values()).filter((e=>e.source===nse.Source.Camera));try{a=(yield Promise.all(t.map((e=>{var t;return null===(t=e.videoTrack)||void 0===t?void 0:t.setDeviceId(u)})))).every((e=>!0===e))}catch(fVe){throw this.options.videoCaptureDefaults.deviceId=e,fVe}}else if("audiooutput"===e){if(!gse()&&!this.options.expWebAudioMix||this.options.expWebAudioMix&&this.audioContext&&!("setSinkId"in this.audioContext))throw new Error("cannot switch audio output, setSinkId not supported");null!==(n=(o=this.options).audioOutput)&&void 0!==n||(o.audioOutput={});const e=this.options.audioOutput.deviceId;this.options.audioOutput.deviceId=t,s=e!==u;try{this.options.expWebAudioMix?null===(i=this.audioContext)||void 0===i||i.setSinkId(t):yield Promise.all(Array.from(this.participants.values()).map((e=>e.setAudioOutput({deviceId:t}))))}catch(fVe){throw this.options.audioOutput.deviceId=e,fVe}}return s&&a&&(this.localParticipant.activeDeviceMap.set(e,t),this.emit(Zoe.ActiveDeviceChanged,e,t)),a}))}setupLocalParticipantEvents(){this.localParticipant.on(Xoe.ParticipantMetadataChanged,this.onLocalParticipantMetadataChanged).on(Xoe.ParticipantNameChanged,this.onLocalParticipantNameChanged).on(Xoe.TrackMuted,this.onLocalTrackMuted).on(Xoe.TrackUnmuted,this.onLocalTrackUnmuted).on(Xoe.LocalTrackPublished,this.onLocalTrackPublished).on(Xoe.LocalTrackUnpublished,this.onLocalTrackUnpublished).on(Xoe.ConnectionQualityChanged,this.onLocalConnectionQualityChanged).on(Xoe.MediaDevicesError,this.onMediaDevicesError).on(Xoe.ParticipantPermissionsChanged,this.onLocalParticipantPermissionsChanged)}recreateEngine(){var e;null===(e=this.engine)||void 0===e||e.close(),this.engine=void 0,this.participants.clear(),this.maybeCreateEngine()}onTrackAdded(e,t,r){if(this.state===hue.Connecting||this.state===hue.Reconnecting){const n=()=>{this.onTrackAdded(e,t,r),i()},i=()=>{this.off(Zoe.Reconnected,n),this.off(Zoe.Connected,n),this.off(Zoe.Disconnected,i)};return this.once(Zoe.Reconnected,n),this.once(Zoe.Connected,n),void this.once(Zoe.Disconnected,i)}if(this.state===hue.Disconnected)return void dte.warn("skipping incoming track after Room disconnected");const n=function(e){const t=e.split("|");return t.length>1?[t[0],e.substr(t[0].length+1)]:[e,""]}(t.id),i=n[0];let o=n[1];if(o&&""!==o||(o=e.id),i===this.localParticipant.sid)return void dte.warn("tried to create RemoteParticipant for local participant");const s=this.participants.get(i);if(!s)return void dte.error("Tried to add a track for a participant, that's not present. Sid: ".concat(i));let a;this.options.adaptiveStream&&(a="object"==typeof this.options.adaptiveStream?this.options.adaptiveStream:{}),s.addSubscribedMediaTrack(e,o,t,r,a)}handleDisconnect(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1?arguments[1]:void 0;var r;if(this.clearConnectionReconcile(),this.state!==hue.Disconnected){this.regionUrl=void 0;try{this.participants.forEach((e=>{e.tracks.forEach((t=>{e.unpublishTrack(t.trackSid)}))})),this.localParticipant.tracks.forEach((t=>{var r,n;t.track&&this.localParticipant.unpublishTrack(t.track,e),e&&(null===(r=t.track)||void 0===r||r.detach(),null===(n=t.track)||void 0===n||n.stop())})),this.localParticipant.off(Xoe.ParticipantMetadataChanged,this.onLocalParticipantMetadataChanged).off(Xoe.ParticipantNameChanged,this.onLocalParticipantNameChanged).off(Xoe.TrackMuted,this.onLocalTrackMuted).off(Xoe.TrackUnmuted,this.onLocalTrackUnmuted).off(Xoe.LocalTrackPublished,this.onLocalTrackPublished).off(Xoe.LocalTrackUnpublished,this.onLocalTrackUnpublished).off(Xoe.ConnectionQualityChanged,this.onLocalConnectionQualityChanged).off(Xoe.MediaDevicesError,this.onMediaDevicesError).off(Xoe.ParticipantPermissionsChanged,this.onLocalParticipantPermissionsChanged),this.localParticipant.tracks.clear(),this.localParticipant.videoTracks.clear(),this.localParticipant.audioTracks.clear(),this.participants.clear(),this.activeSpeakers=[],this.audioContext&&"boolean"==typeof this.options.expWebAudioMix&&(this.audioContext.close(),this.audioContext=void 0),_se()&&(window.removeEventListener("beforeunload",this.onPageLeave),window.removeEventListener("pagehide",this.onPageLeave),window.removeEventListener("freeze",this.onPageLeave),null===(r=navigator.mediaDevices)||void 0===r||r.removeEventListener("devicechange",this.handleDeviceChange))}finally{this.setAndEmitConnectionState(hue.Disconnected),this.emit(Zoe.Disconnected,t)}}}handleParticipantDisconnected(e,t){this.participants.delete(e),t&&(this.identityToSid.delete(t.identity),t.tracks.forEach((e=>{t.unpublishTrack(e.trackSid,!0)})),this.emit(Zoe.ParticipantDisconnected,t))}acquireAudioContext(){var e,t;return gne(this,void 0,void 0,(function*(){if("boolean"!=typeof this.options.expWebAudioMix&&this.options.expWebAudioMix.audioContext?this.audioContext=this.options.expWebAudioMix.audioContext:this.audioContext&&"closed"!==this.audioContext.state||(this.audioContext=null!==(e=lse())&&void 0!==e?e:void 0),this.audioContext&&"suspended"===this.audioContext.state)try{yield this.audioContext.resume()}catch(fVe){dte.warn(fVe)}this.options.expWebAudioMix&&this.participants.forEach((e=>e.setAudioContext(this.audioContext))),this.localParticipant.setAudioContext(this.audioContext);const r="running"===(null===(t=this.audioContext)||void 0===t?void 0:t.state);r!==this.canPlaybackAudio&&(this.audioEnabled=r,this.emit(Zoe.AudioPlaybackStatusChanged,r))}))}createParticipant(e,t){let r;return r=t?pue.fromParticipantInfo(this.engine.client,t):new pue(this.engine.client,e,"",void 0,void 0),this.options.expWebAudioMix&&r.setAudioContext(this.audioContext),r}getOrCreateParticipant(e,t){if(this.participants.has(e))return this.participants.get(e);const r=this.createParticipant(e,t);return this.participants.set(e,r),this.identityToSid.set(t.identity,t.sid),this.emitWhenConnected(Zoe.ParticipantConnected,r),r.on(Xoe.TrackPublished,(e=>{this.emitWhenConnected(Zoe.TrackPublished,e,r)})).on(Xoe.TrackSubscribed,((e,t)=>{e.kind===nse.Kind.Audio&&(e.on(tse.AudioPlaybackStarted,this.handleAudioPlaybackStarted),e.on(tse.AudioPlaybackFailed,this.handleAudioPlaybackFailed)),this.emit(Zoe.TrackSubscribed,e,t,r)})).on(Xoe.TrackUnpublished,(e=>{this.emit(Zoe.TrackUnpublished,e,r)})).on(Xoe.TrackUnsubscribed,((e,t)=>{this.emit(Zoe.TrackUnsubscribed,e,t,r)})).on(Xoe.TrackSubscriptionFailed,(e=>{this.emit(Zoe.TrackSubscriptionFailed,e,r)})).on(Xoe.TrackMuted,(e=>{this.emitWhenConnected(Zoe.TrackMuted,e,r)})).on(Xoe.TrackUnmuted,(e=>{this.emitWhenConnected(Zoe.TrackUnmuted,e,r)})).on(Xoe.ParticipantMetadataChanged,(e=>{this.emitWhenConnected(Zoe.ParticipantMetadataChanged,e,r)})).on(Xoe.ParticipantNameChanged,(e=>{this.emitWhenConnected(Zoe.ParticipantNameChanged,e,r)})).on(Xoe.ConnectionQualityChanged,(e=>{this.emitWhenConnected(Zoe.ConnectionQualityChanged,e,r)})).on(Xoe.ParticipantPermissionsChanged,(e=>{this.emitWhenConnected(Zoe.ParticipantPermissionsChanged,e,r)})).on(Xoe.TrackSubscriptionStatusChanged,((e,t)=>{this.emitWhenConnected(Zoe.TrackSubscriptionStatusChanged,e,t,r)})).on(Xoe.TrackSubscriptionFailed,((e,t)=>{this.emit(Zoe.TrackSubscriptionFailed,e,r,t)})).on(Xoe.TrackSubscriptionPermissionChanged,((e,t)=>{this.emitWhenConnected(Zoe.TrackSubscriptionPermissionChanged,e,t,r)})),t&&r.updateInfo(t),r}sendSyncState(){var e,t;if(void 0===this.engine.subscriber||null===this.engine.subscriber.pc.localDescription)return;const r=this.engine.subscriber.pc.localDescription,n=this.engine.subscriber.pc.remoteDescription,i=null===(t=null===(e=this.connOptions)||void 0===e?void 0:e.autoSubscribe)||void 0===t||t,o=new Array;this.participants.forEach((e=>{e.tracks.forEach((e=>{e.isDesired!==i&&o.push(e.trackSid)}))})),this.engine.client.sendSyncState(new Eoe({answer:qse({sdp:r.sdp,type:r.type}),offer:n?qse({sdp:n.sdp,type:n.type}):void 0,subscription:new ioe({trackSids:o,subscribe:!i,participantTracks:[]}),publishTracks:this.localParticipant.publishedTracksInfo(),dataChannels:this.localParticipant.dataChannelsInfo()}))}updateSubscriptions(){for(const e of this.participants.values())for(const t of e.videoTracks.values())t.isSubscribed&&t instanceof fue&&t.emitTrackUpdate()}registerConnectionReconcile(){this.clearConnectionReconcile();let e=0;this.connectionReconcileInterval=joe.setInterval((()=>{this.engine&&!this.engine.isClosed&&this.engine.verifyTransport()?e=0:(e++,dte.warn("detected connection state mismatch",{numFailures:e}),e>=3&&(this.recreateEngine(),this.handleDisconnect(this.options.stopLocalTrackOnUnpublish,jre.STATE_MISMATCH)))}),2e3)}clearConnectionReconcile(){this.connectionReconcileInterval&&joe.clearInterval(this.connectionReconcileInterval)}setAndEmitConnectionState(e){return e!==this.state&&(this.state=e,this.emit(Zoe.ConnectionStateChanged,this.state),!0)}emitWhenConnected(e){if(this.state===hue.Connected){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1?t-1:0),n=1;n2&&void 0!==arguments[2]?arguments[2]:{};super(),this.status=yue.IDLE,this.logs=[],this.errorsAsWarnings=!1,this.url=e,this.token=t,this.name=this.constructor.name,this.room=new gue(r.roomOptions),this.connectOptions=r.connectOptions,r.errorsAsWarnings&&(this.errorsAsWarnings=r.errorsAsWarnings)}run(e){return gne(this,void 0,void 0,(function*(){if(this.status!==yue.IDLE)throw Error("check is running already");this.setStatus(yue.RUNNING);try{yield this.perform()}catch(dVe){dVe instanceof Error&&(this.errorsAsWarnings?this.appendWarning(dVe.message):this.appendError(dVe.message))}return yield this.disconnect(),yield new Promise((e=>setTimeout(e,500))),this.status!==yue.SKIPPED&&this.setStatus(this.isSuccess()?yue.SUCCESS:yue.FAILED),e&&e(),this.getInfo()}))}isSuccess(){return!this.logs.some((e=>"error"===e.level))}connect(){return gne(this,void 0,void 0,(function*(){return this.room.state===hue.Connected||(yield this.room.connect(this.url,this.token)),this.room}))}disconnect(){return gne(this,void 0,void 0,(function*(){this.room&&this.room.state!==hue.Disconnected&&(yield this.room.disconnect(),yield new Promise((e=>setTimeout(e,500))))}))}skip(){this.setStatus(yue.SKIPPED)}appendMessage(e){this.logs.push({level:"info",message:e}),this.emit("update",this.getInfo())}appendWarning(e){this.logs.push({level:"warning",message:e}),this.emit("update",this.getInfo())}appendError(e){this.logs.push({level:"error",message:e}),this.emit("update",this.getInfo())}setStatus(e){this.status=e,this.emit("update",this.getInfo())}get engine(){var e;return null===this.room||void 0===e?void 0:e.engine}getInfo(){return{logs:this.logs,name:this.name,status:this.status,description:this.description}}}class bue extends Lne.EventEmitter{constructor(e,t){super(),this.checkResults=new Map,this.url=e,this.token=t}getNextCheckId(){const e=this.checkResults.size;return this.checkResults.set(e,{logs:[],status:yue.IDLE,name:"",description:""}),e}updateCheck(e,t){this.checkResults.set(e,t),this.emit("checkUpdate",e,t)}isSuccess(){return Array.from(this.checkResults.values()).every((e=>e.status!==yue.FAILED))}getResults(){return Array.from(this.checkResults.values())}createAndRunCheck(e){return gne(this,void 0,void 0,(function*(){const t=this.getNextCheckId(),r=new e(this.url,this.token),n=e=>{this.updateCheck(t,e)};r.on("update",n);const i=yield r.run();return r.off("update",n),i}))}checkWebsocket(){return gne(this,void 0,void 0,(function*(){return this.createAndRunCheck(WebSocketCheck)}))}checkWebRTC(){return gne(this,void 0,void 0,(function*(){return this.createAndRunCheck(WebRTCCheck)}))}checkTURN(){return gne(this,void 0,void 0,(function*(){return this.createAndRunCheck(TURNCheck)}))}checkReconnect(){return gne(this,void 0,void 0,(function*(){return this.createAndRunCheck(ReconnectCheck)}))}checkPublishAudio(){return gne(this,void 0,void 0,(function*(){return this.createAndRunCheck(PublishAudioCheck)}))}checkPublishVideo(){return gne(this,void 0,void 0,(function*(){return this.createAndRunCheck(PublishVideoCheck)}))}}new Map([["obs virtual camera",{facingMode:"environment",confidence:"medium"}]]),new Map([["iphone",{facingMode:"environment",confidence:"medium"}],["ipad",{facingMode:"environment",confidence:"medium"}]]);r(24257);Math.min,Math.max,Math.round,Math.floor;Math.min,Math.max,Math.round,Math.floor;var wue=r(2098),_ue=(Object.defineProperty,Object.defineProperties,Object.getOwnPropertyDescriptors,Object.getOwnPropertySymbols,Object.prototype.hasOwnProperty,Object.prototype.propertyIsEnumerable,(e,t,r)=>new Promise(((n,i)=>{var o=e=>{try{a(r.next(e))}catch(fVe){i(fVe)}},s=e=>{try{a(r.throw(e))}catch(fVe){i(fVe)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(o,s);a((r=r.apply(e,t)).next())})));function Eue(e){return void 0!==e&&(function(e){var t;if(!e)return!1;return e.hasOwnProperty("participant")&&e.hasOwnProperty("source")&&e.hasOwnProperty("track")&&void 0!==(null==(t=e.publication)?void 0:t.track)}(e)||function(e){if(!e)return!1;return e.hasOwnProperty("participant")&&e.hasOwnProperty("source")&&e.hasOwnProperty("publication")&&void 0!==e.publication}(e))}function Aue(e){return!!e&&(e.hasOwnProperty("participant")&&e.hasOwnProperty("source")&&void 0===e.publication)}function Mue(e){if("string"==typeof e||"number"==typeof e)return`${e}`;if(Aue(e))return`${e.participant.identity}_${e.source}_placeholder`;if(Eue(e))return`${e.participant.identity}_${e.publication.source}_${e.publication.trackSid}`;throw new Error(`Can't generate a id for the given track reference: ${e}`)}function Sue(e){return e instanceof mue}var xue=[...[Zoe.ConnectionStateChanged,Zoe.RoomMetadataChanged,Zoe.ActiveSpeakersChanged,Zoe.ConnectionQualityChanged,Zoe.ParticipantConnected,Zoe.ParticipantDisconnected,Zoe.ParticipantPermissionsChanged,Zoe.ParticipantMetadataChanged,Zoe.TrackMuted,Zoe.TrackUnmuted,Zoe.TrackPublished,Zoe.TrackUnpublished,Zoe.TrackStreamStateChanged,Zoe.TrackSubscriptionFailed,Zoe.TrackSubscriptionPermissionChanged,Zoe.TrackSubscriptionStatusChanged],Zoe.LocalTrackPublished,Zoe.LocalTrackUnpublished],kue=(Xoe.ConnectionQualityChanged,Xoe.IsSpeakingChanged,Xoe.ParticipantMetadataChanged,Xoe.ParticipantPermissionsChanged,Xoe.TrackMuted,Xoe.TrackUnmuted,Xoe.TrackPublished,Xoe.TrackUnpublished,Xoe.TrackStreamStateChanged,Xoe.TrackSubscriptionFailed,Xoe.TrackSubscriptionPermissionChanged,Xoe.TrackSubscriptionStatusChanged,Xoe.LocalTrackPublished,Xoe.LocalTrackUnpublished,wue.getLogger("lk-components-js"));kue.setDefaultLevel("WARN");function Tue(e){return"object"==typeof e}function Cue(e){return Array.isArray(e)&&e.filter(Tue).length>0}function Iue(e,...t){const r=new x9.Observable((r=>{const n=()=>{r.next(e)};t.forEach((t=>{e.on(t,n)}));return()=>{t.forEach((t=>{e.off(t,n)}))}})).pipe((0,x9.startWith)(e));return r}function Nue(e){return`lk-${e}`}function Rue(e){if(Eue(e))return e.publication;{const{source:t,name:r,participant:n}=e;if(t&&r)return n.getTracks().find((e=>e.source===t&&e.trackName===r));if(r)return n.getTrackByName(r);if(t)return n.getTrack(t);throw new Error("At least one of source and name needs to be defined")}}function Pue(e,...t){const r=new x9.Observable((r=>{const n=()=>{r.next(e)};t.forEach((t=>{e.on(t,n)}));return()=>{t.forEach((t=>{e.off(t,n)}))}})).pipe((0,x9.startWith)(e));return r}function Due(e){const t=Pue(e,Xoe.TrackMuted,Xoe.TrackUnmuted,Xoe.ParticipantPermissionsChanged,Xoe.TrackPublished,Xoe.TrackUnpublished,Xoe.LocalTrackPublished,Xoe.LocalTrackUnpublished,Xoe.MediaDevicesError,Xoe.TrackSubscriptionStatusChanged).pipe((0,x9.map)((e=>{const{isMicrophoneEnabled:t,isCameraEnabled:r,isScreenShareEnabled:n}=e,i=e.getTrack(nse.Source.Microphone);return{isCameraEnabled:r,isMicrophoneEnabled:t,isScreenShareEnabled:n,cameraTrack:e.getTrack(nse.Source.Camera),microphoneTrack:i,participant:e}})));return t}new TextEncoder,new TextDecoder;function Lue(e,t,r=!0){const n=[e.localParticipant,...Array.from(e.participants.values())],i=[];return n.forEach((e=>{t.forEach((t=>{const n=Array.from(e.tracks.values()).filter((e=>e.source===t&&(!r||e.track))).map((t=>({participant:e,publication:t,source:t.source})));i.push(...n)}))})),{trackReferences:i,participants:n}}function Oue(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;tt in e?Bue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Kue=(e,t)=>{for(var r in t||(t={}))Hue.call(t,r)&&Yue(e,r,t[r]);if(zue)for(var r of zue(t))Gue.call(t,r)&&Yue(e,r,t[r]);return e},que=(e,t)=>Uue(e,Fue(t)),Wue=(e,t)=>{var r={};for(var n in e)Hue.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&zue)for(var n of zue(e))t.indexOf(n)<0&&Gue.call(e,n)&&(r[n]=e[n]);return r};function Vue(e,t){const[r,n]=w.useState(t);return w.useEffect((()=>{if("undefined"==typeof window||!e)return;const t=e.subscribe(n);return()=>t.unsubscribe()}),[e]),r}w.createContext(void 0);var $ue=w.createContext(void 0);function Que(){return w.useContext($ue)}var Jue=w.createContext(void 0);function Zue(){return w.useContext(Jue)}function Xue(e){var t;const r=Zue(),n=Que(),i=null!=(t=null!=e?e:r)?t:null==n?void 0:n.participant;if(!i)throw new Error("No participant provided, make sure you are inside a participant context or pass the participant explicitly");return i}var ele=w.createContext(void 0);function tle(){return w.useContext(ele)}function rle(e){const t=tle(),r=null!=e?e:t;if(!r)throw new Error("No room provided, make sure you are inside a Room context or pass the room explicitly");return r}var nle=w.createContext(void 0);function ile(...e){return(...t)=>{for(const r of e)"function"==typeof r&&r(...t)}}function ole(...e){const t=Kue({},e[0]);for(let r=1;r=65&&e.charCodeAt(2)<=90?t[e]=ile(r,i):t[e]="className"!==e&&"UNSAFE_className"!==e||"string"!=typeof r||"string"!=typeof i?void 0!==i?i:r:jue(r,i)}}return t}var sle={connect:!0,audio:!1,video:!1};function ale(e){return void 0!==e}function ule(...e){return ole(...e.filter(ale))}function lle(e,t={}){var r;const[n,i]=w.useState(Rue(e)),[o,s]=w.useState(null==n?void 0:n.isMuted),[a,u]=w.useState(null==n?void 0:n.isSubscribed),[l,c]=w.useState(null==n?void 0:n.track),[h,d]=w.useState("landscape"),f=w.useRef(),{className:p,trackObserver:m}=w.useMemo((()=>function(e){const t=Rue(e),r=Due(e.participant).pipe((0,x9.map)((()=>Rue(e))),(0,x9.startWith)(t));return{className:Nue(e.source===nse.Source.Camera||e.source===nse.Source.ScreenShare?"participant-media-video":"participant-media-audio"),trackObserver:r}}(e)),[null!=(r=e.participant.sid)?r:e.participant.identity,e.source,Eue(e)&&e.publication.trackSid]);return w.useEffect((()=>{const e=m.subscribe((e=>{kue.debug("update track",e),i(e),s(null==e?void 0:e.isMuted),u(null==e?void 0:e.isSubscribed),c(null==e?void 0:e.track)}));return()=>null==e?void 0:e.unsubscribe()}),[m]),w.useEffect((()=>{var r,n;return l&&(f.current&&l.detach(f.current),!(null==(r=t.element)?void 0:r.current)||Sue(e.participant)&&"audio"===(null==l?void 0:l.kind)||l.attach(t.element.current)),f.current=null==(n=t.element)?void 0:n.current,()=>{f.current&&(null==l||l.detach(f.current))}}),[l,t.element]),w.useEffect((()=>{var e,t;if("number"==typeof(null==(e=null==n?void 0:n.dimensions)?void 0:e.width)&&"number"==typeof(null==(t=null==n?void 0:n.dimensions)?void 0:t.height)){const e=n.dimensions.width>n.dimensions.height?"landscape":"portrait";d(e)}}),[n]),{publication:n,isMuted:o,isSubscribed:a,track:l,elementProps:ule(t.props,Kue({className:p,"data-lk-local-participant":e.participant.isLocal,"data-lk-source":null==n?void 0:n.source},"video"===(null==n?void 0:n.kind)&&{"data-lk-orientation":h}))}}function cle(e){var t,r=e,{source:n,onChange:i,initialState:o,captureOptions:s}=r,a=Wue(r,["source","onChange","initialState","captureOptions"]);const u=tle(),l=null==(t=null==u?void 0:u.localParticipant)?void 0:t.getTrack(n),{toggle:c,className:h,pendingObserver:d,enabledObserver:f}=w.useMemo((()=>u?function(e,t,r){const{localParticipant:n}=t,i=(e,t)=>{let r=!1;switch(e){case nse.Source.Camera:r=t.isCameraEnabled;break;case nse.Source.Microphone:r=t.isMicrophoneEnabled;break;case nse.Source.ScreenShare:r=t.isScreenShareEnabled}return r},o=Due(n).pipe((0,x9.map)((t=>i(e,t.participant))),(0,x9.startWith)(i(e,n))),s=new x9.Subject;return{className:Nue("button"),toggle:(t,i)=>_ue(this,null,(function*(){try{switch(null!=i||(i=r),s.next(!0),e){case nse.Source.Camera:yield n.setCameraEnabled(null!=t?t:!n.isCameraEnabled,i);break;case nse.Source.Microphone:yield n.setMicrophoneEnabled(null!=t?t:!n.isMicrophoneEnabled,i);break;case nse.Source.ScreenShare:yield n.setScreenShareEnabled(null!=t?t:!n.isScreenShareEnabled,i)}}finally{s.next(!1)}})),enabledObserver:o,pendingObserver:s.asObservable()}}(n,u,s):function(){let e=!1;const t=new x9.Subject,r=new x9.Subject;return{className:Nue("button"),toggle:n=>{r.next(!0),e=null!=n?n:!e,t.next(e),r.next(!1)},enabledObserver:t.asObservable(),pendingObserver:r.asObservable()}}()),[u,n,JSON.stringify(s)]),p=Vue(d,!1),m=Vue(f,null!=o?o:!!(null==l?void 0:l.isEnabled));w.useEffect((()=>{null==i||i(m)}),[m,i]),w.useEffect((()=>{void 0!==o&&(kue.debug("forcing initial toggle state",n,o),c(o))}),[]);const g=w.useMemo((()=>ole(a,{className:h})),[a,h]),y=w.useCallback((e=>{var t;c(),null==(t=a.onClick)||t.call(a,e)}),[a,c]);return{toggle:c,enabled:m,pending:p,track:l,buttonProps:que(Kue({},g),{"aria-pressed":m,"data-lk-source":n,"data-lk-enabled":m,disabled:p,onClick:y})}}function hle(e=[nse.Source.Camera,nse.Source.Microphone,nse.Source.ScreenShare,nse.Source.ScreenShareAudio,nse.Source.Unknown],t={}){const r=rle(t.room),[n,i]=w.useState([]),[o,s]=w.useState([]),a=w.useMemo((()=>e.map((e=>Tue(e)?e.source:e))),[JSON.stringify(e)]);w.useEffect((()=>{const e=function(e,t,r){var n,i;const o=null!=(n=r.additionalRoomEvents)?n:xue,s=null==(i=r.onlySubscribed)||i,a=Iue(e,...Array.from(new Set([Zoe.ParticipantConnected,Zoe.ParticipantDisconnected,Zoe.ConnectionStateChanged,Zoe.LocalTrackPublished,Zoe.LocalTrackUnpublished,Zoe.TrackPublished,Zoe.TrackUnpublished,Zoe.TrackSubscriptionStatusChanged,...o]).values())).pipe((0,x9.map)((e=>{const r=Lue(e,t,s);return kue.debug(`TrackReference[] was updated. (length ${r.trackReferences.length})`,r),r})),(0,x9.startWith)(Lue(e,t,s)));return a}(r,a,{additionalRoomEvents:t.updateOnlyOn,onlySubscribed:t.onlySubscribed}).subscribe((({trackReferences:e,participants:t})=>{kue.debug("setting track bundles",e,t),i(e),s(t)}));return()=>e.unsubscribe()}),[r,JSON.stringify(t.updateOnlyOn),JSON.stringify(e)]);const u=w.useMemo((()=>{if(Cue(e)){const t=function(e,t){const r=new Map;if(Cue(e)){const n=e.filter((e=>e.withPlaceholder)).map((e=>e.source));t.forEach((e=>{const t=e.getTracks().map((e=>{var t;return null==(t=e.track)?void 0:t.source})).filter((e=>void 0!==e)),i=Array.from(function(e,t){const r=new Set(e);for(const n of t)r.delete(n);return r}(new Set(n),new Set(t)));i.length>0&&r.set(e.identity,i)}))}return r}(e,o),r=Array.from(n);return o.forEach((e=>{var i;if(t.has(e.identity)){(null!=(i=t.get(e.identity))?i:[]).forEach((t=>{if(n.find((({participant:r,publication:n})=>e.identity===r.identity&&n.source===t)))return;kue.debug(`Add ${t} placeholder for participant ${e.identity}.`);const i={participant:e,source:t};r.push(i)}))}})),r}return n}),[n,o,e]);return u}var dle=e=>w.createElement("svg",Kue({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),w.createElement("path",{d:"M1.354.646a.5.5 0 1 0-.708.708l14 14a.5.5 0 0 0 .708-.708L11 10.293V4.5A1.5 1.5 0 0 0 9.5 3H3.707zM0 4.5a1.5 1.5 0 0 1 .943-1.393l9.532 9.533c-.262.224-.603.36-.975.36h-8A1.5 1.5 0 0 1 0 11.5z"}),w.createElement("path",{d:"m15.2 3.6-2.8 2.1a1 1 0 0 0-.4.8v3a1 1 0 0 0 .4.8l2.8 2.1a.5.5 0 0 0 .8-.4V4a.5.5 0 0 0-.8-.4z"})),fle=e=>w.createElement("svg",Kue({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),w.createElement("path",{d:"M0 4.5A1.5 1.5 0 0 1 1.5 3h8A1.5 1.5 0 0 1 11 4.5v7A1.5 1.5 0 0 1 9.5 13h-8A1.5 1.5 0 0 1 0 11.5zM15.2 3.6l-2.8 2.1a1 1 0 0 0-.4.8v3a1 1 0 0 0 .4.8l2.8 2.1a.5.5 0 0 0 .8-.4V4a.5.5 0 0 0-.8-.4z"})),ple=e=>w.createElement("svg",Kue({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),w.createElement("path",{d:"M12.227 11.52a5.477 5.477 0 0 0 1.246-2.97.5.5 0 0 0-.995-.1 4.478 4.478 0 0 1-.962 2.359l-1.07-1.07C10.794 9.247 11 8.647 11 8V3a3 3 0 0 0-6 0v1.293L1.354.646a.5.5 0 1 0-.708.708l14 14a.5.5 0 0 0 .708-.708zM8 12.5c.683 0 1.33-.152 1.911-.425l.743.743c-.649.359-1.378.59-2.154.66V15h2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1h2v-1.522a5.502 5.502 0 0 1-4.973-4.929.5.5 0 0 1 .995-.098A4.5 4.5 0 0 0 8 12.5z"}),w.createElement("path",{d:"M8.743 10.907 5 7.164V8a3 3 0 0 0 3.743 2.907z"})),mle=e=>w.createElement("svg",Kue({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),w.createElement("path",{fillRule:"evenodd",d:"M2.975 8.002a.5.5 0 0 1 .547.449 4.5 4.5 0 0 0 8.956 0 .5.5 0 1 1 .995.098A5.502 5.502 0 0 1 8.5 13.478V15h2a.5.5 0 0 1 0 1h-5a.5.5 0 0 1 0-1h2v-1.522a5.502 5.502 0 0 1-4.973-4.929.5.5 0 0 1 .448-.547z",clipRule:"evenodd"}),w.createElement("path",{d:"M5 3a3 3 0 1 1 6 0v5a3 3 0 0 1-6 0z"})),gle=e=>w.createElement("svg",Kue({xmlns:"http://www.w3.org/2000/svg",width:20,height:16,fill:"none"},e),w.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M0 2.75A2.75 2.75 0 0 1 2.75 0h14.5A2.75 2.75 0 0 1 20 2.75v10.5A2.75 2.75 0 0 1 17.25 16H2.75A2.75 2.75 0 0 1 0 13.25V2.75ZM2.75 1.5c-.69 0-1.25.56-1.25 1.25v10.5c0 .69.56 1.25 1.25 1.25h14.5c.69 0 1.25-.56 1.25-1.25V2.75c0-.69-.56-1.25-1.25-1.25H2.75Z",clipRule:"evenodd"}),w.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.47 4.22a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1-1.06 1.06l-.97-.97v4.69a.75.75 0 0 1-1.5 0V6.56l-.97.97a.75.75 0 0 1-1.06-1.06l2.25-2.25Z",clipRule:"evenodd"})),yle=e=>w.createElement("svg",Kue({xmlns:"http://www.w3.org/2000/svg",width:20,height:16,fill:"none"},e),w.createElement("g",{fill:"currentColor"},w.createElement("path",{d:"M7.28 4.22a.75.75 0 0 0-1.06 1.06L8.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L10 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L11.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L10 6.94z"}),w.createElement("path",{fillRule:"evenodd",d:"M2.75 0A2.75 2.75 0 0 0 0 2.75v10.5A2.75 2.75 0 0 0 2.75 16h14.5A2.75 2.75 0 0 0 20 13.25V2.75A2.75 2.75 0 0 0 17.25 0zM1.5 2.75c0-.69.56-1.25 1.25-1.25h14.5c.69 0 1.25.56 1.25 1.25v10.5c0 .69-.56 1.25-1.25 1.25H2.75c-.69 0-1.25-.56-1.25-1.25z",clipRule:"evenodd"})));function vle(e,t){switch(e){case nse.Source.Microphone:return t?w.createElement(mle,null):w.createElement(ple,null);case nse.Source.Camera:return t?w.createElement(fle,null):w.createElement(dle,null);case nse.Source.ScreenShare:return t?w.createElement(yle,null):w.createElement(gle,null);default:return}}function ble(e){var t=e,{showIcon:r}=t,n=Wue(t,["showIcon"]);const{buttonProps:i,enabled:o}=cle(n);return w.createElement("button",Kue({},i),(null==r||r)&&vle(n.source,o),n.children)}function wle(e){var t,r,n,i,o,s,a,u,l,c,h=e,{trackRef:d,onSubscriptionStatusChanged:f,volume:p,source:m,name:g,publication:y,participant:v}=h,b=Wue(h,["trackRef","onSubscriptionStatusChanged","volume","source","name","publication","participant"]);const _=Que(),E=null!=(i=null!=(n=null==(t=null==d?void 0:d.publication)?void 0:t.trackName)?n:null==(r=null==_?void 0:_.publication)?void 0:r.trackName)?i:g,A=null!=(s=null!=(o=null==d?void 0:d.source)?o:null==_?void 0:_.source)?s:m,M=null!=(u=null!=(a=null==d?void 0:d.publication)?a:null==_?void 0:_.publication)?u:y,S=null!=(c=null!=(l=null==d?void 0:d.participant)?l:null==_?void 0:_.participant)?c:v;if(void 0===A)throw new Error("The AudioTrack component expects a trackRef or source property.");const x=w.useRef(null),k=Xue(S),{elementProps:T,isSubscribed:C,track:I}=lle({source:A,name:E,participant:k,publication:M},{element:x,props:b});return w.useEffect((()=>{null==f||f(!!C)}),[C,f]),w.useEffect((()=>{void 0!==I&&void 0!==p&&(I instanceof iue?I.setVolume(p):kue.warn("volume can only be set on remote audio tracks"))}),[p,I]),w.createElement("audio",Kue({ref:x},T))}function _le(e){const{room:t,htmlProps:r}=function(e){const t=Kue(Kue({},sle),e),{token:r,serverUrl:n,options:i,room:o,connectOptions:s,connect:a,audio:u,video:l,screen:c,onConnected:h,onDisconnected:d,onError:f,onMediaDeviceFailure:p,simulateParticipants:m}=t,g=Wue(t,["token","serverUrl","options","room","connectOptions","connect","audio","video","screen","onConnected","onDisconnected","onError","onMediaDeviceFailure","simulateParticipants"]);i&&o&&kue.warn("when using a manually created room, the options object will be ignored. set the desired options directly when creating the room instead.");const[y,v]=w.useState();w.useEffect((()=>{v(null!=o?o:new gue(i))}),[o]);const b=w.useMemo((()=>{const{className:e}={className:"lk-room-container"};return ole(g,{className:e})}),[g]);return w.useEffect((()=>{if(!y)return;const e=()=>{const e=y.localParticipant;kue.debug("trying to publish local tracks"),Promise.all([e.setMicrophoneEnabled(!!u,"boolean"!=typeof u?u:void 0),e.setCameraEnabled(!!l,"boolean"!=typeof l?l:void 0),e.setScreenShareEnabled(!!c,"boolean"!=typeof c?c:void 0)]).catch((e=>{kue.warn(e),null==f||f(e)}))},t=e=>{const t=Yie.getFailure(e);null==p||p(t)};return y.on(Zoe.SignalConnected,e),y.on(Zoe.MediaDevicesError,t),()=>{y.off(Zoe.SignalConnected,e),y.off(Zoe.MediaDevicesError,t)}}),[y,u,l,c,f]),w.useEffect((()=>{if(y)if(m)y.simulateParticipants({participants:{count:m},publish:{audio:!0,useRealTracks:!0}});else{if(r)return n?void(a?(kue.debug("connecting"),y.connect(n,r,s).catch((e=>{kue.warn(e),null==f||f(e)}))):(kue.debug("disconnecting because connect is false"),y.disconnect())):(kue.warn("no livekit url provided"),void(null==f||f(Error("no livekit url provided"))));kue.debug("no token yet")}}),[a,r,JSON.stringify(s),y,f,n,m]),w.useEffect((()=>{if(!y)return;const e=e=>{switch(e){case hue.Disconnected:d&&d();break;case hue.Connected:h&&h()}};return y.on(Zoe.ConnectionStateChanged,e),()=>{y.off(Zoe.ConnectionStateChanged,e)}}),[r,h,d,y]),w.useEffect((()=>{if(y)return()=>{kue.info("disconnecting on onmount"),y.disconnect()}}),[y]),{room:y,htmlProps:b}}(e);return w.createElement("div",Kue({},r),t&&w.createElement(ele.Provider,{value:t},w.createElement(nle.Provider,{value:e.featureFlags},e.children)))}function Ele(){const e=hle([nse.Source.Microphone,nse.Source.ScreenShareAudio],{updateOnlyOn:[],onlySubscribed:!1}).filter((e=>!Sue(e.participant)));return w.useEffect((()=>{e.forEach((e=>e.publication.setSubscribed(!0)))}),[e]),w.createElement("div",{style:{display:"none"}},e.map((e=>w.createElement(wle,{key:Mue(e),trackRef:e}))))}const Ale=({videoCallData:e})=>{const t=(0,w.useRef)(null);return(0,w.useEffect)((()=>{if(null==t||!t.current)return;const r=t.current;r.srcObject=e,r.play()}),[null==t?void 0:t.current,e]),(0,Tf.jsx)(Mle,{ref:t})},Mle=hf.video.withConfig({displayName:"VideoPlayer__Video",componentId:"sc-h46doi-0"})(["height:0;width:0;"]);const Sle="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTMiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMyAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc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E0LjUgOC4yNSAxNC41QzEwLjMyMTEgMTQuNSAxMiAxMi44MjExIDEyIDEwLjc1VjQuNzVaIiBzdHJva2U9IiM4QjVDRjYiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTguMjUgMTcuNVYyMC41IiBzdHJva2U9IiM4QjVDRjYiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTE1IDEwLjc1QzE1IDEyLjU0MDIgMTQuMjg4OCAxNC4yNTcxIDEzLjAyMyAxNS41MjNDMTEuNzU3MSAxNi43ODg4IDEwLjA0MDIgMTcuNSA4LjI1IDE3LjVDNi40NTk3OSAxNy41IDQuNzQyOSAxNi43ODg4IDMuNDc3MDMgMTUuNTIzQzIuMjExMTYgMTQuMjU3MSAxLjUgMTIuNTQwMiAxLjUgMTAuNzUiIHN0cm9rZT0iIzhCNUNGNiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K",kle=e=>{const t=w.useContext(W7),{wallet:r,isHost:n,isSpeaker:i,image:o,requested:s=!1,mic:a=null,stream:u}=e||{},[l,c]=(0,w.useState)(!1),h=(0,w.useRef)(null);return(0,w.useEffect)((()=>{const e=e=>{h.current&&!h.current.contains(e.target)&&c(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),(0,Tf.jsx)(rf,{theme:t,children:(0,Tf.jsxs)(r6,{display:"flex",flexDirection:"column",alignItems:"center",width:"118px",children:[(0,Tf.jsx)(i6,{src:o,alt:"Profile pic",height:"56px",width:"56px",borderRadius:"50%",cursor:"pointer",onClick:()=>{c(!l)}}),(0,Tf.jsxs)(s6,{fontSize:"16px",marginTop:"12px",fontWeight:600,color:`${t.textColorPrimary}`,children:[r.replace("eip155:","").slice(0,-36)+"...",u&&(0,Tf.jsx)(Ale,{videoCallData:u})]}),s?(0,Tf.jsxs)(r6,{display:"flex",marginTop:"5px",fontWeight:600,gap:"4px",alignItems:"center",children:[(0,Tf.jsx)(s6,{fontSize:"12px",color:`${t.btnColorPrimary}`,children:"Requested"}),(0,Tf.jsx)(i6,{src:Sle,alt:"Hand Icon",height:"15px",width:"15px"})]}):(0,Tf.jsxs)(r6,{display:"flex",marginTop:"5px",fontWeight:600,gap:"4px",alignItems:"center",children:[(0,Tf.jsx)(s6,{fontSize:"14px",color:`${t.textColorSecondary}`,children:n?"Host":i?"Speaker":"Listener"}),!1===a&&(0,Tf.jsx)(i6,{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxMiAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTExLjM3MDEgMTIuMTYzN0wxLjM3MDEzIDEuMTYzNjlDMS4zMjYyMiAxLjExNDIgMS4yNzI5MiAxLjA3MzkxIDEuMjEzMzMgMS4wNDUxNkMxLjE1MzczIDEuMDE2NDIgMS4wODkwMiAwLjk5OTc4MyAxLjAyMjk1IDAuOTk2MjI5QzAuOTU2ODg0IDAuOTkyNjc1IDAuODkwNzY2IDEuMDAyMjcgMC44Mjg0MzEgMS4wMjQ0NkMwLjc2NjA5NyAxLjA0NjY0IDAuNzA4Nzg2IDEuMDgwOTggMC42NTk4MiAxLjEyNTQ4QzAuNjEwODU0IDEuMTY5OTggMC41NzEyMDcgMS4yMjM3NiAwLjU0MzE3NyAxLjI4MzY5QzAuNTE1MTQ3IDEuMzQzNjMgMC40OTkyOTIgMS40MDg1MyAwLjQ5NjUzIDEuNDc0NjNDMC40OTM3NjggMS41NDA3NCAwLjUwNDE1NC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DkuMDUxMzQgOS44NDExMyA5LjAwNDk4QzkuNzkzMzYgOC45NTg2MiA5Ljc1NTMzIDguOTAzMTkgOS43MjkyNyA4Ljg0MTk0QzkuNzAzMjEgOC43ODA2OSA5LjY4OTY0IDguNzE0ODYgOS42ODkzNiA4LjY0ODNDOS42ODkwNyA4LjU4MTczIDkuNzAyMDggOC41MTU3OSA5LjcyNzYzIDguNDU0MzJaIiBmaWxsPSIjRTkzNjM2Ii8+Cjwvc3ZnPgo=",alt:"Mic Off Icon",height:"15px",width:"15px"}),a&&(0,Tf.jsx)(i6,{src:xle,alt:"Mic On Icon",height:"15px",width:"15px"})]})]})})},Tle=({children:e,clickawayClose:t,width:r})=>{const n=(0,w.useRef)(null),i=(0,w.useContext)(W7);return K3(n,(()=>{t&&t()})),(0,Tf.jsx)(Nle,{ref:n,width:r,theme:i,children:e})},Cle=({clickawayClose:e,children:t,width:r})=>{const n=(0,w.useContext)(W7);return(0,Tf.jsx)(Ile,{theme:n,children:e?(0,Tf.jsx)(Tle,{clickawayClose:e,width:r,children:t}):(0,Tf.jsx)(Nle,{width:r,theme:n,children:t})})},Ile=hf.div.withConfig({displayName:"Modal__ModalOverlay",componentId:"sc-1q8t9j6-0"})(["position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,0.4);display:flex;color:",";justify-content:center;align-items:center;z-index:10;"],(e=>{var t;return null!=(t=e.theme.textColorPrimary)?t:"#000"})),Nle=hf.div.withConfig({displayName:"Modal__ModalParent",componentId:"sc-1q8t9j6-1"})(["position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;padding:24px 20px;background:",";border-radius:12px;width:",";"],(e=>e.theme.bgColorPrimary),(e=>e.width?e.width:"auto")),Rle=({stroke:e,height:t,width:r})=>(0,Tf.jsxs)("svg",{width:r||"18.6",height:t||"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",cursor:"pointer",children:[(0,Tf.jsx)("path",{d:"M14.1906 4.15625L3.97363 14.8438",stroke:e||"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M14.1906 14.8438L3.97363 4.15625",stroke:e||"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}),Ple=()=>(0,Tf.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsx)("path",{d:"M16.875 10H3.125",stroke:"#82828A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M8.75 4.375L3.125 10L8.75 15.625",stroke:"#82828A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),Dle=e=>{const t=(0,w.useContext)(W7);return(0,Tf.jsx)(rf,{theme:t,children:(0,Tf.jsxs)(Lle,{children:[e.backCallback?(0,Tf.jsx)(Ole,{onClick:e.backCallback,children:(0,Tf.jsx)(Ple,{})}):null,(0,Tf.jsxs)(Ble,{children:[e.heading,e.headingBadgeNumber&&(0,Tf.jsx)(Ule,{theme:t,children:e.headingBadgeNumber})]}),e.closeCallback?(0,Tf.jsx)(jle,{onClick:e.closeCallback,children:(0,Tf.jsx)(Rle,{})}):null]})})},Lle=hf.div.withConfig({displayName:"ModalHeader__Header",componentId:"sc-1ibnxvs-0"})(["display:flex;align-items:center;width:100%;margin-bottom:24px;color:",";"],(e=>e.theme.textColorPrimary)),Ole=hf.button.withConfig({displayName:"ModalHeader__BackBtn",componentId:"sc-1ibnxvs-1"})(["position:absolute;top:0;left:0;margin:1.5rem;border:none;background:transparent;&:hover{cursor:pointer;}"]),jle=hf.button.withConfig({displayName:"ModalHeader__CloseBtn",componentId:"sc-1ibnxvs-2"})(["position:absolute;top:0;right:0;margin:1.5rem;border:none;background:transparent;&:hover{cursor:pointer;}"]),Ble=hf.div.withConfig({displayName:"ModalHeader__CenterText",componentId:"sc-1ibnxvs-3"})(["position:absolute;top:0;left:50%;transform:translateX(-50%);margin:1.5rem 0;display:flex;flex-direction:row;align-items:center;font-weight:500;"]),Ule=hf.div.withConfig({displayName:"ModalHeader__NumberBadge",componentId:"sc-1ibnxvs-4"})(["display:flex;justify-content:center;align-items:center;background:",";color:#fff;border-radius:8px;margin-left:8px;padding:4px 8px;font-size:13px;font-weight:500;}"],(e=>e.theme.btnColorPrimary)),Fle=({name:e="Host Name",handle:t="Host Handle",imageUrl:r="",tag:n,imageHeight:i,border:o=!1,contBtn:s,btnCallback:a,removeCallback:u,promoteCallback:l})=>{const c=(0,w.useContext)(W7),h=(0,w.useRef)(null),[d,f]=(0,w.useState)(!1);return(0,w.useEffect)((()=>{const e=e=>{h.current&&!h.current.contains(e.target)&&f(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}}),[]),(0,Tf.jsx)(rf,{theme:c,children:(0,Tf.jsxs)(zle,{border:o,children:[(0,Tf.jsx)(Hle,{children:(0,Tf.jsx)(Gle,{src:r,alt:"host pfp",imageHeight:i})}),(0,Tf.jsxs)(Yle,{children:[(0,Tf.jsxs)(Kle,{children:[(0,Tf.jsx)(qle,{children:(0,Tf.jsx)(Wle,{children:e})}),t&&(0,Tf.jsxs)($le,{theme:c,children:["@",t]})]}),n?(0,Tf.jsx)(Vle,{children:n}):null,s?(0,Tf.jsx)("div",{onClick:null!=a?a:()=>{f(!d)},children:s}):null]}),d&&(u||l)?(0,Tf.jsxs)(Qle,{theme:c,ref:h,isDDOpen:d,children:[u?(0,Tf.jsx)(Jle,{onClick:u,children:"Remove"}):null,l?(0,Tf.jsx)(Jle,{onClick:l,children:"Make Admin"}):null]}):null]})})},zle=hf.div.withConfig({displayName:"ProfileContainer__ParentContainer",componentId:"sc-ia68b0-0"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;position:relative;padding:8px 16px;border:",";color:",";border-radius:16px;"],(e=>e.border?"1px solid #E4E4E7":"none"),(e=>{var t;return null!=(t=e.theme.textColorPrimary)?t:"#000"})),Hle=hf.div.withConfig({displayName:"ProfileContainer__PfpContainer",componentId:"sc-ia68b0-1"})(["display:flex;"]),Gle=hf.img.withConfig({displayName:"ProfileContainer__Pfp",componentId:"sc-ia68b0-2"})(["height:",";width:",";;border-radius:50%;"],(e=>{var t;return null!=(t=e.imageHeight)?t:"32px"}),(e=>{var t;return null!=(t=e.imageHeight)?t:"32px"})),Yle=hf.div.withConfig({displayName:"ProfileContainer__HostContainer",componentId:"sc-ia68b0-3"})(["display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-left:8px;width:100%;overflow:hidden;text-overflow:ellipsis;"]),Kle=hf.div.withConfig({displayName:"ProfileContainer__ProfileDetails",componentId:"sc-ia68b0-4"})(["display:flex;flex-direction:column;flex-grow:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;width:200px;"]),qle=hf.div.withConfig({displayName:"ProfileContainer__HostName",componentId:"sc-ia68b0-5"})(["display:flex;flex-direction:row;font-weight:600;font-size:15px;width:100%;"]),Wle=hf.span.withConfig({displayName:"ProfileContainer__Name",componentId:"sc-ia68b0-6"})(["text-overflow:ellipsis;white-space:nowrap;overflow:hidden;"]),Vle=hf.div.withConfig({displayName:"ProfileContainer__Host",componentId:"sc-ia68b0-7"})(["display:flex;flex-direction:row;align-items:center;margin-left:8px;line-height:18px;width:max-content;background:rgba(139,92,246,0.2);color:",";border-radius:6px;font-weight:500;font-size:12px;padding:6px 10px;border-radius:8px;"],(e=>e.theme.btnColorPrimary)),$le=hf.div.withConfig({displayName:"ProfileContainer__HostHandle",componentId:"sc-ia68b0-8"})(["background:",";-webkit-background-clip:text;-webkit-text-fill-color:transparent;padding:0;font-weight:450;font-size:14px;line-height:130%;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;"],(e=>e.theme.textGradient)),Qle=hf.div.withConfig({displayName:"ProfileContainer__DropDown",componentId:"sc-ia68b0-9"})(["position:absolute;top:0px;right:0px;display:flex;flex-direction:column;gap:12px;justify-content:center;align-items:start;animation:"," 0.2s ease-in-out;padding:16px;background:",";color:",";border-radius:16px;border:1px solid ",";"],(({isDDOpen:e})=>e?Zle:Xle),(e=>e.theme.bgColorPrimary),(e=>e.theme.textColorPrimary),(e=>e.theme.borderColor)),Jle=hf.div.withConfig({displayName:"ProfileContainer__DDItem",componentId:"sc-ia68b0-10"})(["cursor:pointer;"]),Zle=df(["from{opacity:0;}to{opacity:1;}"]),Xle=df(["from{opacity:1;}to{opacity:0;visibility:hidden;}"]),ece=new Array(4);function tce(){const e=ece[0]^ece[0]<<11;return ece[0]=ece[1],ece[1]=ece[2],ece[2]=ece[3],ece[3]=ece[3]^ece[3]>>19^e^e>>8,(ece[3]>>>0)/(1<<31>>>0)}function rce(){return`hsl(${Math.floor(360*tce())},${`${Math.floor(60*tce())+40}%`},${`${Math.floor(25*(tce()+tce()+tce()+tce()))}%`})`}function nce(e){const t={};return t.seed=e.seed||Math.floor(Math.random()*Math.pow(10,16)).toString(16),function(e){ece.fill(0);for(let t=0;t(0,Tf.jsx)("svg",{width:t||"48",height:e||"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Tf.jsx)("path",{d:"M24 4.5C20.1433 4.5 16.3731 5.64366 13.1664 7.78634C9.95963 9.92903 7.46027 12.9745 5.98436 16.5377C4.50845 20.1008 4.12228 24.0216 4.8747 27.8043C5.62711 31.5869 7.4843 35.0615 10.2114 37.7886C12.9386 40.5157 16.4131 42.3729 20.1957 43.1253C23.9784 43.8777 27.8992 43.4916 31.4623 42.0156C35.0255 40.5397 38.071 38.0404 40.2137 34.8336C42.3564 31.6269 43.5 27.8567 43.5 24C43.4901 18.8313 41.4325 13.8772 37.7776 10.2224C34.1228 6.56755 29.1687 4.50991 24 4.5ZM33.2813 20.5875L22.2938 31.0875C22.0097 31.3547 21.6337 31.5024 21.2438 31.5C21.0531 31.5027 20.8639 31.4677 20.6869 31.3969C20.5099 31.3261 20.3487 31.2209 20.2125 31.0875L14.7188 25.8375C14.5664 25.7046 14.4425 25.5422 14.3544 25.3601C14.2664 25.1781 14.2161 24.9801 14.2066 24.7781C14.197 24.5761 14.2284 24.3743 14.2988 24.1847C14.3693 23.9952 14.4773 23.8218 14.6164 23.6751C14.7556 23.5283 14.923 23.4113 15.1085 23.3309C15.2941 23.2505 15.494 23.2084 15.6962 23.2072C15.8984 23.2061 16.0988 23.2458 16.2852 23.324C16.4717 23.4023 16.6404 23.5174 16.7813 23.6625L21.2438 27.9187L31.2188 18.4125C31.5104 18.158 31.8891 18.0262 32.2758 18.0445C32.6624 18.0628 33.027 18.2298 33.2933 18.5107C33.5597 18.7915 33.7071 19.1644 33.7049 19.5515C33.7026 19.9386 33.5508 20.3098 33.2813 20.5875Z",fill:"#30CC8B"})}),uce=({height:e,width:t,color:r})=>(0,Tf.jsxs)("svg",{width:t||"48",height:e||"48",viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsx)("path",{d:"M24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C14.0589 6 6 14.0589 6 24C6 33.9411 14.0589 42 24 42Z",stroke:"#E93636","stroke-width":"2","stroke-miterlimit":"10"}),(0,Tf.jsx)("path",{d:"M30 18L18 30",stroke:"#E93636","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M30 30L18 18",stroke:"#E93636","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}),lce=e=>{const{members:t,acceptCallback:r,rejectCallback:n,isHost:i}=e;return(0,Tf.jsx)(fce,{children:t.map((e=>{var t,o;return(0,Tf.jsx)(Fle,{handle:e.address,name:e.address,imageUrl:null==sce||null==(t=sce(e.address))||null==(o=t.toDataURL())?void 0:o.toString(),imageHeight:"48px",contBtn:i?(0,Tf.jsxs)(yce,{children:[(0,Tf.jsx)(yce,{onClick:()=>{n(e.address)},children:(0,Tf.jsx)(uce,{})}),(0,Tf.jsx)(yce,{onClick:()=>{r(e.address)},children:(0,Tf.jsx)(ace,{})})]}):null,border:!0})}))})},cce=e=>{const{members:t,theme:r}=e;return(0,Tf.jsx)(fce,{children:t.map((e=>{var t,r;return(0,Tf.jsx)(Fle,{handle:e.address,name:e.address,imageUrl:null==sce||null==(t=sce(e.address))||null==(r=t.toDataURL())?void 0:r.toString(),imageHeight:"48px",border:!0})}))})};var hce;!function(e){e.Speakers="Speakers",e.Requests="Requests",e.Listeners="Listeners"}(hce||(hce={}));const dce=({onClose:e,spaceData:t,acceptCallback:r,rejectCallback:n,isHost:i})=>{var o,s;const[a,u]=(0,w.useState)(hce.Speakers),l=(0,w.useContext)(W7),c=t.liveSpaceData.host,h=t.liveSpaceData.speakers,d=t.liveSpaceData.listeners,f=t.liveSpaceData.listeners.filter((e=>e.handRaised));return(0,Tf.jsxs)(Cle,{clickawayClose:e,width:"380px",children:[(0,Tf.jsx)(Dle,{heading:"Members",closeCallback:e}),(0,Tf.jsxs)(pce,{children:[(0,Tf.jsx)(Fle,{imageUrl:null==sce||null==(o=sce(c.address))||null==(s=o.toDataURL())?void 0:s.toString(),name:c.address,handle:c.address,imageHeight:"48px",tag:"Host"}),(0,Tf.jsx)(mce,{children:Object.values(hce).map((e=>(0,Tf.jsx)(gce,{active:a===e,onClick:()=>(e=>{u(e)})(e),children:e},e)))}),a===hce.Speakers&&(0,Tf.jsx)(cce,{members:h,theme:l}),a===hce.Requests&&(0,Tf.jsx)(lce,{isHost:i,members:f,theme:l,acceptCallback:r,rejectCallback:n}),a===hce.Listeners&&(0,Tf.jsx)(cce,{members:d,theme:l})]})]})},fce=hf.div.withConfig({displayName:"SpaceMembersSectionModal__MembersContainer",componentId:"sc-1qevf22-0"})(["display:flex;flex-direction:column;gap:8px;"]),pce=hf.div.withConfig({displayName:"SpaceMembersSectionModal__SpacesMembersContainer",componentId:"sc-1qevf22-1"})(["color:black;display:flex;flex-direction:column;margin-top:28px;gap:16px;width:100%;"]),mce=hf.div.withConfig({displayName:"SpaceMembersSectionModal__TabContainer",componentId:"sc-1qevf22-4"})(["display:flex;padding:0px 10px;"]),gce=hf.div.withConfig({displayName:"SpaceMembersSectionModal__Tab",componentId:"sc-1qevf22-5"})(["flex:1;padding:10px;text-align:center;border-bottom:",";cursor:pointer;color:",";"],(e=>e.active?"1px solid #8B5CF6":"1px solid #82828A26"),(e=>e.active?"#8B5CF6":"#82828A")),yce=hf.div.withConfig({displayName:"SpaceMembersSectionModal__SettingsCont",componentId:"sc-1qevf22-6"})(["display:flex;justify-content:center;align-items:center;cursor:pointer;"]);let vce;const bce=new Uint8Array(16);function wce(){if(!vce&&(vce="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!vce))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return vce(bce)}const _ce=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const Ece=function(e){return"string"==typeof e&&_ce.test(e)},Ace=[];for(let pVe=0;pVe<256;++pVe)Ace.push((pVe+256).toString(16).slice(1));function Mce(e,t=0){return Ace[e[t+0]]+Ace[e[t+1]]+Ace[e[t+2]]+Ace[e[t+3]]+"-"+Ace[e[t+4]]+Ace[e[t+5]]+"-"+Ace[e[t+6]]+Ace[e[t+7]]+"-"+Ace[e[t+8]]+Ace[e[t+9]]+"-"+Ace[e[t+10]]+Ace[e[t+11]]+Ace[e[t+12]]+Ace[e[t+13]]+Ace[e[t+14]]+Ace[e[t+15]]}const Sce=function(e){if(!Ece(e))throw TypeError("Invalid UUID");let t;const r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=255&t,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=255&t,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=255&t,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=255&t,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=255&t,r};function xce(e,t,r){function n(e,n,i,o){var s;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let r=0;r>>9<<4)+1}function Tce(e,t){const r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}function Cce(e,t,r,n,i,o){return Tce((s=Tce(Tce(t,e),Tce(n,o)))<<(a=i)|s>>>32-a,r);var s,a}function Ice(e,t,r,n,i,o,s){return Cce(t&r|~t&n,e,t,i,o,s)}function Nce(e,t,r,n,i,o,s){return Cce(t&n|r&~n,e,t,i,o,s)}function Rce(e,t,r,n,i,o,s){return Cce(t^r^n,e,t,i,o,s)}function Pce(e,t,r,n,i,o,s){return Cce(r^(t|~n),e,t,i,o,s)}const Dce=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let r=0;r>5]>>>i%32&255,o=parseInt(n.charAt(r>>>4&15)+n.charAt(15&r),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[n/8])<>>32-t}const Uce=function(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let r=0;r>>0;l=u,u=a,a=Bce(i,30)>>>0,i=n,n=s}r[0]=r[0]+n>>>0,r[1]=r[1]+i>>>0,r[2]=r[2]+a>>>0,r[3]=r[3]+u>>>0,r[4]=r[4]+l>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]};xce("v5",80,Uce);var Fce=r(98399);const zce=async({userType:e,roomId:t,userId:r})=>{if(Fce.log("\ud83d\ude80 ~ file: getToken.js:5 ~ getToken ~ roomId:",t),Fce.log("\ud83d\ude80 ~ file: getToken.js:5 ~ getToken ~ userId:",r),"sender"!==e&&"receiver"!==e)throw new Error("Invalid userType. Use 'sender' or 'receiver'.");const n=Oce(),i=`https://ms-lk-server.onrender.com/token?userType=${e}&userName=${r||n}&roomId=${t}`;return await PL().get(i)},Hce=async({roomId:e,userId:t,canPublish:r})=>{const n=`https://ms-lk-server.onrender.com/execute?roomName=${e}&identity=${t}&canPublish=${r}`;return await PL().get(n)};const Gce=["showIcon"];function Yce(e){let t=fO(e,Gce);const{enabled:r}=cle(t),n=(0,w.useContext)(W7);return(0,Tf.jsx)(rf,{theme:n,children:(0,Tf.jsxs)(r6,{cursor:"pointer",display:"flex",alignItems:"center",gap:"8px",padding:"10px",children:[(0,Tf.jsx)(i6,{width:"14px",height:"20px",src:r?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAxNSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuODU3MTQgMTBWNC4yODU3MUMyLjg1NzE0IDMuMTQ5MDcgMy4zMDg2NyAyLjA1ODk4IDQuMTEyNCAxLjI1NTI2QzQuOTE2MTMgMC40NTE1MjkgNi4wMDYyMiAwIDcuMTQyODYgMEM4LjI3OTUgMCA5LjM2OTU5IDAuNDUxNTI5IDEwLjE3MzMgMS4yNTUyNkMxMC45NzcgMi4wNTg5OCAxMS40Mjg2IDMuMTQ5MDcgMTEuNDI4NiA0LjI4NTcxVjEwQzExLjQyODYgMTEuMTM2NiAxMC45NzcgMTIuMjI2NyAxMC4xNzMzIDEzLjAzMDVDOS4zNjk1OSAxMy44MzQyIDguM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YgMTMuMjkwNiAxMi43ODgzIDEzLjM1ODMgMTIuODUzNEMxMy40MjYgMTIuOTE4NCAxMy41MDU5IDEyLjk2OTQgMTMuNTkzMyAxMy4wMDM1WiIgZmlsbD0iIzhCNUNGNiIvPgo8L3N2Zz4K",alt:"Mic Icon"}),(0,Tf.jsx)(s6,{color:`${n.btnOutline}`,fontSize:"14px",fontWeight:600,children:r?"Speaking":"Muted"})]})})}var Kce=r(98399);const qce=({spaceData:e,isHost:t,setSpaceStatusState:r,account:n})=>{var i,o,s,a,u,l,c,h,d,f,p,m,g,y,v,b,_,E,A,M;const[S,x]=(0,w.useState)(!1),[k,T]=(0,w.useState)(""),[C,I]=(0,w.useState)(!1),[N,R]=(0,w.useState)(!1),[P,D]=(0,w.useState)(""),[L,O]=(0,w.useState)(null),j=(0,w.useContext)(W7),{spacesObjectRef:B,spaceObjectData:U,setSpaceObjectData:F,isSpeaker:z,isListener:H,isJoined:G,initSpaceObject:Y,raisedHandInfo:K}=g6();Kce.log("\ud83d\ude80 ~ file: LiveWidgetContent.tsx:66 ~ spaceObjectData:",U),Kce.log("\ud83d\ude80 ~ file: LiveWidgetContent.tsx:66 ~ raisedHandInfo:",K);null==U||null==(i=U.connectionData)||null==(o=i.local)||o.audio;const q=U.liveSpaceData.listeners.filter((e=>e.handRaised)).length;(0,w.useEffect)((()=>{!async function(){const r=n.substring(7);if((t||z)&&null!=e&&e.spaceId){const t=await zce({userType:"sender",roomId:null==e?void 0:e.spaceId,userId:r});O(t.data)}else if(H&&null!=e&&e.spaceId){const t=await zce({userType:"receiver",roomId:null==e?void 0:e.spaceId,userId:r});O(t.data)}}()}),[H,t,e]),(0,w.useEffect)((()=>{if(!N)return;(async()=>{var e;await(null==B||null==(e=B.current)||null==e.requestToBePromoted?void 0:e.requestToBePromoted({role:"SPEAKER",promotorAddress:L8(null==U?void 0:U.spaceCreator)}))})()}),[N]);(0,w.useEffect)((()=>{if(0===P.length||0===Object.keys(K).length)return;const e={promoteeAddress:L8(K[P].senderAddress),spaceId:K[P].chatId,role:"SPEAKER"};(async()=>{var t;await(null==B||null==(t=B.current)||null==t.acceptPromotionRequest?void 0:t.acceptPromotionRequest(e))})()}),[P]);(0,w.useEffect)((()=>{(async()=>{var e;(Kce.log("isListner",H),H&&!t)&&(Kce.log("joining as a listener"),await(null==B||null==(e=B.current)||null==e.join?void 0:e.join()),I(!C),Kce.log("space joined"))})()}),[H]),(0,w.useEffect)((()=>{(async()=>{var e,t,r;(Kce.log("isSpeaker",z),!z||null!=U&&null!=(e=U.connectionData)&&null!=(t=e.local)&&t.stream)||(Kce.log("creating audio stream"),await(null==B||null==(r=B.current)||null==r.createAudioStream?void 0:r.createAudioStream()))})()}),[z]),(0,w.useEffect)((()=>{var e,t,r;if(!z||(null!=(e=null==U||null==(t=U.connectionData)||null==(r=t.incoming)?void 0:r.length)?e:0)>1)return;(async()=>{var e;Kce.log("joining as a speaker"),await(null==B||null==(e=B.current)||null==e.join?void 0:e.join()),I(!C),Kce.log("space joined")})()}),[null==U||null==(s=U.connectionData)||null==(a=s.local)?void 0:a.stream]),(0,w.useEffect)((()=>{null!=U&&U.meta&&T(null==U?void 0:U.meta)}),[null==U?void 0:U.meta]);const W=(0,w.useMemo)((()=>new gue),[]);return(0,Tf.jsxs)(rf,{theme:j,children:[(0,Tf.jsx)(r6,{flex:"1",display:"grid",gridTemplateColumns:"repeat(auto-fill, 120px)",padding:"16px 10px",margin:"0 auto",flexWrap:"wrap",justifyContent:"center",gap:"24px 12px",overflowY:"auto",overflowX:"hidden",alignContent:"flex-start",width:"100%",children:G?(0,Tf.jsxs)(Tf.Fragment,{children:[(z||t)&&(0,Tf.jsx)("div",{style:{position:"relative"},children:(0,Tf.jsx)(kle,{isHost:t,isSpeaker:z,wallet:null==U||null==(u=U.connectionData)||null==(l=u.local)?void 0:l.address,mic:null==U||null==(c=U.connectionData)||null==(h=c.local)?void 0:h.audio,image:null==sce||null==(d=sce(null==U||null==(p=U.connectionData)||null==(m=p.local)?void 0:m.address))||null==(f=d.toDataURL())?void 0:f.toString()})}),(z||t)&&(null==U||null==(g=U.connectionData)||null==(y=g.incoming)?void 0:y.slice(1).map((e=>{var t,r;return(0,Tf.jsx)("div",{style:{position:"relative"},children:(0,Tf.jsx)(kle,{isHost:(null==e?void 0:e.address)===L8(null==U?void 0:U.spaceCreator),isSpeaker:(null==e?void 0:e.address)!==L8(null==U?void 0:U.spaceCreator),mic:null==e?void 0:e.audio,wallet:null==e?void 0:e.address,image:null==sce||null==(t=sce(null==e?void 0:e.address))||null==(r=t.toDataURL())?void 0:r.toString(),stream:null==e?void 0:e.stream})})}))),t&&(null==U?void 0:U.liveSpaceData.speakers.map((e=>{var t,r;return(0,Tf.jsx)("div",{style:{position:"relative"},children:(0,Tf.jsx)(kle,{isHost:!1,isSpeaker:!0,wallet:null==e?void 0:e.address,mic:null==e?void 0:e.audio,image:null==sce||null==(t=sce(null==e?void 0:e.address))||null==(r=t.toDataURL())?void 0:r.toString()})})}))),H&&!t&&(0,Tf.jsx)("div",{style:{position:"relative"},children:(0,Tf.jsx)(kle,{isHost:!0,isSpeaker:!1,wallet:null==U||null==(v=U.liveSpaceData.host)?void 0:v.address,mic:null==U||null==(b=U.liveSpaceData.host)?void 0:b.audio,image:null==sce||null==(_=sce(null==U||null==(A=U.liveSpaceData)||null==(M=A.host)?void 0:M.address))||null==(E=_.toDataURL())?void 0:E.toString()})}),H&&!t&&(null==U?void 0:U.liveSpaceData.speakers.map((e=>{var t,r;return(0,Tf.jsx)("div",{style:{position:"relative"},children:(0,Tf.jsx)(kle,{isHost:!1,isSpeaker:!0,wallet:null==e?void 0:e.address,mic:null==e?void 0:e.audio,image:null==sce||null==(t=sce(null==e?void 0:e.address))||null==(r=t.toDataURL())?void 0:r.toString()})})}))),null==U?void 0:U.liveSpaceData.listeners.map((e=>{var t,r;return(0,Tf.jsx)("div",{style:{position:"relative"},children:(0,Tf.jsx)(kle,{isHost:!1,isSpeaker:!1,requested:e.handRaised,wallet:null==e?void 0:e.address,image:null==sce||null==(t=sce(null==e?void 0:e.address))||null==(r=t.toDataURL())?void 0:r.toString()})})}))]}):null==e?void 0:e.members.map((t=>{var r,n;return(0,Tf.jsx)("div",{style:{position:"relative"},children:(0,Tf.jsx)(kle,{wallet:null==t?void 0:t.wallet,isHost:(null==t?void 0:t.wallet)===e.spaceCreator,isSpeaker:null==t?void 0:t.isSpeaker,image:(null==t?void 0:t.image)||(null==sce||null==(r=sce(null==t?void 0:t.wallet))||null==(n=r.toDataURL())?void 0:n.toString())})})}))}),(0,Tf.jsxs)(r6,{padding:"28px 10px",width:"90%",children:[G?(0,Tf.jsxs)(r6,{borderRadius:"8px",background:`${j.bgColorSecondary}`,display:"flex",justifyContent:"space-between",padding:"6px 8px",children:[L?(0,Tf.jsxs)(_le,{serverUrl:"https://spacev2-demo-17wvllxz.livekit.cloud",token:L,room:W,children:[(0,Tf.jsx)(Ele,{}),t||z?(0,Tf.jsx)($ce,{showIcon:!1,source:nse.Source.Microphone,children:(0,Tf.jsx)(Yce,{source:nse.Source.Microphone})}):(0,Tf.jsxs)(r6,{cursor:"pointer",display:"flex",alignItems:"center",gap:"8px",padding:"10px",onClick:()=>(async()=>{var e;await(null==B||null==(e=B.current)||null==e.createAudioStream?void 0:e.createAudioStream()),R(!0)})(),children:[(0,Tf.jsx)(i6,{width:"14px",height:"20px",src:N?Sle:xle,alt:"Mic Icon"}),(0,Tf.jsx)(s6,{color:`${j.btnOutline}`,fontSize:"14px",fontWeight:600,children:N?"Requested":"Request"})]})]}):(0,Tf.jsxs)(r6,{cursor:"pointer",display:"flex",alignItems:"center",gap:"8px",padding:"10px",children:[(0,Tf.jsx)(Pee,{size:"20"}),(0,Tf.jsx)(s6,{color:`${j.btnOutline}`,fontSize:"14px",fontWeight:600,children:"Connecting"})]}),(0,Tf.jsxs)(r6,{display:"flex",alignItems:"center",gap:"16px",children:[(0,Tf.jsxs)(Wce,{children:[t&&q?(0,Tf.jsx)(Vce,{children:q}):null,(0,Tf.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ColorPrimary}`,fontSize:"14px",fontWeight:600,width:"100px",height:"100%",cursor:"pointer",border:`1px solid ${j.btnOutline}`,borderRadius:"12px",onClick:t?async()=>{var e;null!=B&&B.current&&(await(null==B||null==(e=B.current)||null==e.stop?void 0:e.stop()),B.current=null,null==F||F(cH),null==r||r(nhe.Ended),I(!1))}:async()=>{if(null!=B&&B.current){var e;if(t||z)await(null==B||null==(e=B.current)||null==e.leave?void 0:e.leave()),B.current=null,null==F||F(cH),Kce.log("Space left");H&&(B.current=null,null==F||F(cH)),I(!1)}},children:t?"End space":"Leave"})]})]}):(0,Tf.jsx)(o6,{height:"36px",width:"100%",border:"none",borderRadius:"8px",cursor:"pointer",background:`${j.titleBg}`,onClick:async()=>{e&&(I(!C),await Y(null==e?void 0:e.spaceId))},children:(0,Tf.jsx)(s6,{color:`${j.titleTextColor}`,fontSize:"16px",fontWeight:"600",display:"flex",justifyContent:"center",children:C?(0,Tf.jsx)(E3,{}):"Join this Space"})}),S?(0,Tf.jsx)(dce,{onClose:()=>x(!1),spaceData:U,acceptCallback:async t=>{await Hce({roomId:null==e?void 0:e.spaceId,userId:t,canPublish:!0}),D(t),await Hce({roomId:null==e?void 0:e.spaceId,userId:t,canPublish:!0})},rejectCallback:async t=>{var r;await(null==B||null==(r=B.current)||null==r.rejectPromotionRequest?void 0:r.rejectPromotionRequest({promoteeAddress:L8(t)})),await Hce({roomId:null==e?void 0:e.spaceId,userId:t,canPublish:!1})},isHost:t}):null]})]})},Wce=hf.div.withConfig({displayName:"LiveWidgetContent__MembersContainer",componentId:"sc-fmttby-1"})(["position:relative;display:flex;align-items:center;justify-content:center;"]),Vce=hf.div.withConfig({displayName:"LiveWidgetContent__RequestsCount",componentId:"sc-fmttby-2"})(["position:absolute;top:-8px;right:-6px;background-color:",";padding:2px 4px;border-radius:4px;font-size:12px;"],(e=>e.theme.btnColorPrimary)),$ce=hf(ble).withConfig({displayName:"LiveWidgetContent__TrackToggleComp",componentId:"sc-fmttby-4"})(["background-color:transparent;border:none;"]);var Qce,Jce=r(98399);!function(e){e.Twitter="Twitter",e.Lenster="Lenster",e.CopyShareUrl="Copy Link"}(Qce||(Qce={}));const Zce=({spaceData:e,share:t,isHost:r,isMember:n,spaceStatusState:i,setSpaceStatusState:o})=>{const s=w.useContext(W7),{spacesObjectRef:a,initSpaceObject:u,spaceObjectData:l}=g6(),[c,h]=(0,w.useState)(!1),[d,f]=(0,w.useState)(!1),{shareUrl:p,shareOptions:m=["Twitter","Lenster","CopyShareUrl"]}=t||{},g=()=>{if(!p)return;const e=(({text:e,url:t})=>`https://lenster.xyz/?text=${encodeURIComponent(e)}&url=${encodeURIComponent(t)}`)({text:"Join this space",url:p});window.open(e,"_blank")},y=e=>{switch(e){case Qce.Twitter:(()=>{if(!p)return;const e=p,t=`https://twitter.com/intent/tweet?text=${encodeURIComponent("Join this Space:")}&url=${encodeURIComponent(e)}`;window.open(t,"_blank")})();break;case Qce.Lenster:g();break;default:(async()=>{try{if(!p)return;const e=p;await navigator.clipboard.writeText(e),Jce.log("URL copied to clipboard:",e)}catch(XMe){Jce.error("Failed to copy URL:",XMe)}})()}};return(0,w.useEffect)((()=>{!async function(){var e;i!==nhe.Live&&c&&(await(null==a||null==(e=a.current)||null==e.start?void 0:e.start()),Jce.log("SPACE STARTED"),h(!1),o&&o(nhe.Live),Jce.log(i))}()}),[c]),(0,Tf.jsx)(rf,{theme:s,children:(0,Tf.jsxs)(n6,{display:"flex",height:"100%",alignItems:"center",flexDirection:"column",justifyContent:"center",gap:"15px",padding:"0 24px",children:[(0,Tf.jsx)(i6,{width:"41px",height:"41px",src:Oee,alt:"Spaces Icon"}),r?(0,Tf.jsx)(Xce,{children:"It\u2019s time to start your space"}):(0,Tf.jsxs)(Xce,{children:["This space will go live on"," ",t9((null==e?void 0:e.scheduleAt)||new Date)]}),r&&(0,Tf.jsx)(o6,{padding:"9px 34px",borderRadius:"8px",background:`${s.btnColorPrimary}`,border:`1px solid ${s.btnOutline}`,cursor:"pointer",onClick:async()=>{f(!d),Jce.log(i),await(null==u?void 0:u(null==e?void 0:e.spaceId)),f(!d),h(!0),Jce.log(i)},children:(0,Tf.jsx)(s6,{fontSize:"14px",fontWeight:600,color:"#fff",children:d?(0,Tf.jsx)(E3,{}):"Start this Space"})}),!r&&n&&(0,Tf.jsx)(o6,{padding:"9px 12px",borderRadius:"8px",background:`${s.bgColorPrimary}`,border:`1px solid ${s.borderColor}`,cursor:"pointer",children:(0,Tf.jsx)(s6,{fontSize:"14px",fontWeight:600,color:`${s.textColorPrimary}`,children:"Remove Reminder"})}),(!r||r&&!1)&&p&&(0,Tf.jsx)(r6,{display:"flex",gap:"13px",children:m.map((e=>{const{icon:t,alt:r}=(e=>{let t="",r="";switch(e){case Qce.Twitter:t="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyOCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTcuNSAxNy4wMDA0QzcuNSAxNy4wMDA0IDAuNjA2MjUgMTMuMDAwNCAxLjU5NzUgMi4wMDAzN0MxLjU5NzUgMi4wMDAzNyA2LjU1NSA3LjAwMDM3IDEyLjUgOC4wMDAzN1Y2LjAwMDM3QzEyLjUgMy4yNTAzNyAxNC43NSAwLjk2NjYxOSAxNy41IDEuMDAwMzdDMTguNDcwNSAxLjAxMTY0IDE5LjQxNzUgMS4zMDAwMSAyMC4yMjk2IDEuODMxNTFDMjEuMDQxNyAyLjM2MzAxIDIxLjY4NSAzLjExNTUgMjIuMDgzNyA0LjAwMDM3SDI2LjVMMjIuNSA4LjAwMDM3QzIxLjk2NzUgMTYuMzU1NCAxNC45OSAyMy4wMDA0IDYuNSAyMy4wMDA0QzIuNSAyMy4wMDA0IDEuNSAyMS41MDA0IDEuNSAyMS41MDA0QzEuNSAyMS41MDA0IDUuNSAyMC4wMDA0IDcuNSAxNy4wM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iM4MjgyOEEiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMS41MTUgNC4wMDA2MUwxMi43NTc1IDIuNzU4MTFDMTMuODg1OCAxLjY0ODAyIDE1LjQwNzEgMS4wMjg3NiAxNi45ODk5IDEuMDM1MjFDMTguNTcyNyAxLjA0MTY1IDIwLjA4ODkgMS42NzMyOCAyMS4yMDgxIDIuNzkyNTJDMjIuMzI3MyAzLjkxMTc1IDIyLjk1OSA1LjQyNzkgMjIuOTY1NCA3LjAxMDczQzIyLjk3MTggOC41OTM1NSAyMi4zNTI2IDEwLjExNDggMjEuMjQyNSAxMS4yNDMxTDE4LjIyODggMTQuMjU2OUMxNy4xNDY5IDE1LjMzOTIgMTUuNjkyNCAxNS45NjczIDE0LjE2MjggMTYuMDEyNkMxMi42MzMxIDE2LjA1NzkgMTEuMTQ0IDE1LjUxNyAxMCAxNC41MDA2IiBzdHJva2U9IiM4MjgyOEEiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=",r="Copy Icon"}return{icon:t,alt:r}})(e);return(0,Tf.jsxs)(ehe,{children:[(0,Tf.jsx)(the,{onClick:()=>y(e),children:(0,Tf.jsx)(i6,{src:t,alt:r,width:"25px",height:"22px"})}),(0,Tf.jsx)(s6,{fontSize:"12px",fontWeight:600,children:Qce[e]})]},e)}))})]})})},Xce=hf.span.withConfig({displayName:"ScheduledWidgetContent__SpaceInfoText",componentId:"sc-13slgtw-0"})(["font-size:18px;font-weight:600;text-align:center;color:",";"],(({theme:e})=>e.textColorPrimary)),ehe=hf.div.withConfig({displayName:"ScheduledWidgetContent__ShareLinkItem",componentId:"sc-13slgtw-1"})(["display:flex;flex-direction:column;gap:8px;align-items:center;"]),the=hf.button.withConfig({displayName:"ScheduledWidgetContent__ShareLinkButton",componentId:"sc-13slgtw-2"})(["background:",";border-radius:14px;padding:16px;border:none;cursor:pointer;"],(({theme:e})=>e.bgColorSecondary));const rhe=({onClose:e,toggleWidgetVisibility:t})=>{const r=w.useContext(W7);return(0,Tf.jsx)(rf,{theme:r,children:(0,Tf.jsxs)(n6,{display:"flex",height:"100%",alignItems:"center",flexDirection:"column",justifyContent:"center",gap:"15px",padding:"0 24px",children:[(0,Tf.jsx)(i6,{width:"41px",height:"41px",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDIiIGhlaWdodD0iNDEiIHZpZXdCb3g9IjAgMCA0MiA0MSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTAuNSAxNC4zNVYzNy4yMTQ1QzAuNSAzOC42NTAyIDIuMjE0MjUgMzkuMzkyOSAzLjI2MTY2IDM4LjQxMDlMMTEuMTA0NyAzMS4wNTgxQzExLjMxNTggMzAuODYwMiAxMS41OTQ0IDMwLjc1IDExLjg4MzggMzAuNzVIMjYuMTI1QzM0LjYxNjQgMzAuNzUgNDEuNSAyMy44NjY0IDQxLjUgMTUuMzc1QzQxLjUgNi44ODM2MiAzNC42MTY0IDAgMjYuMTI1IDBIMTQuODVDNi45MjQ3MSAwIDAuNSA2LjQyNDcxIDAuNSAxNC4zNVoiIGZpbGw9IiM4QjVDRjYiLz4KPHBhdGggZD0iTTAuNSAxNC4zNVYzNy4yMTQ1QzAuNSAzOC42NTAyIDIuMjE0MjUgMzkuMzkyOSAzLjI2MTY2IDM4LjQxMDlMMTEuMTA0NyAzMS4wNTgxQzExLjMxNTggMzAuODYwMiAxMS41OTQ0IDMwLjc1IDExLjg4MzggMzAuNzVIMjYuMTI1QzM0LjYxNjQgMzAuNzUgNDEuNSAyMy44NjY0IDQxLjUgMTUuMzc1QzQxLjUgNi44ODM2MiAzNC42MTY0IDAgMjYuMTI1IDBIMTQ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z4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjQTNBM0EzIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMTU2MjBfNDY0NTQiPgo8cmVjdCB3aWR0aD0iMzYuMDgiIGhlaWdodD0iMzYuMDgiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyLjk2MDk0KSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",alt:"End Icon"}),(0,Tf.jsx)(Xce,{children:"This Space has ended"}),(0,Tf.jsx)(r6,{padding:"9px 34px",borderRadius:"8px",background:`${r.btnColorPrimary}`,border:`1px solid ${r.borderColor}`,cursor:"pointer",onClick:r=>{t(),e(r)},children:(0,Tf.jsx)(s6,{fontSize:"14px",fontWeight:600,color:`${r.textColorPrimary}`,children:"Close"})})]})})};let nhe;!function(e){e.Live="ACTIVE",e.Scheduled="PENDING",e.Ended="ENDED"}(nhe||(nhe={}));const ihe=({account:e,spaceData:t,share:r,isHost:n,isTimeToStartSpace:i,isMember:o,isMinimized:s,spaceStatus:a,onClose:u,toggleWidgetVisibility:l})=>{const[c,h]=(0,w.useState)(nhe.Scheduled);return(0,w.useEffect)((()=>{a===nhe.Live&&h(nhe.Live),a===nhe.Scheduled&&h(nhe.Scheduled),a===nhe.Ended&&h(nhe.Ended)}),[a]),(0,Tf.jsx)(ohe,{isMinimized:s,height:c===nhe.Live?"485px":"350px",children:c===nhe.Live?(0,Tf.jsx)(qce,{spaceData:t,isHost:n,setSpaceStatusState:h,account:e}):c===nhe.Scheduled?(0,Tf.jsx)(Zce,{spaceData:t,share:r,isHost:n,isMember:o,isTimeToStartSpace:i,spaceStatusState:c,setSpaceStatusState:h}):(0,Tf.jsx)(rhe,{onClose:u,toggleWidgetVisibility:l})})},ohe=hf.div.withConfig({displayName:"WidgetContent__Container",componentId:"sc-13gsred-0"})(["display:flex;flex-direction:column;border-bottom:",";height:",";transition:height 300ms ease-out;overflow:hidden;align-items:center;justify-content:space-between;"],(e=>e.theme.borderColor),(e=>e.isMinimized?"0":e.height));const she="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTI2LjUgMTBDMjcuNjA0NiAxMCAyOC41IDkuMTA0NTcgMjguNSA4QzI4LjUgNi44OTU0MyAyNy42MDQ2IDYgMjYuNSA2QzI1LjM5NTQgNiAyNC41IDYuODk1NDMgMjQuNSA4QzI0LjUgOS4xMDQ1NyAyNS4zOTU0IDEwIDI2LjUgMTBaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjYuNSAxOEMyNy42MDQ2IDE4IDI4LjUgMTcuMTA0NiAyOC41IDE2QzI4LjUgMTQuODk1NCAyNy42MDQ2IDE0IDI2LjUgMTRDMjUuMzk1NCAxNCAyNC41IDE0Ljg5NTQgMjQuNSAxNkMyNC41IDE3LjEwNDYgMjUuMzk1NCAxOCAyNi41IDE4WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTI2LjUgMjZDMjcuNjA0NiAyNiAyOC41IDI1LjEwNDYgMjguNSAyNEMyOC41IDIyLjg5NTQgMjcuNjA0NiAyMiAyNi41IDIyQzI1LjM5NTQgMjIgMjQuNSAyMi44OTU0IDI0LjUgMjRDMjQuNSAyNS4xMDQ2IDI1LjM5NTQgMjYgMjYuNSAyNloiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo=";const ahe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTI1L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SIgdmlld0JveD0iMCAwIDE2IDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik02Ljk5MDYgOC42MDAyM0wwLjQxODc5MiAyLjMyNjg4Qy0wLjEzOTU5NyAxLjc5Mzg1IC0wLjEzOTU5NyAwLjkzMjgwMSAwLjQxODc5MiAwLjM5OTc3MkMwLjk3NzE4MSAtMC4xMzMyNTggMS44NzkxOSAtMC4xMzMyNTggMi40Mzc1OCAwLjM5OTc3Mkw4LjAwNzE2IDUuNzAyNzNMMTMuNTYyNCAwLjM5OTc3MkMxNC4xMjA4IC0wLjEzMzI1OCAxNS4wMjI4IC0wLjEzMzI1OCAxNS41ODEyIDAuMzk5NzcyQzE2LjEzOTYgMC45MzI4MDEgMTYuMTM5NiAxLjc5Mzg1IDE1LjU4MTIgMi4zMjY4OEw5LjAwOTQgOC42MDAyM0M4LjQ2NTMyIDkuMTMzMjYgNy41NDg5OSA5LjEzMzI2IDYuOTkwNiA4LjYwMDIzWiIgZmlsbD0iI0I0QjRCNCIvPgo8L3N2Zz4K";const lhe=e=>{const t=(0,w.useContext)(W7),{onClick:r,width:n,height:i,customStyle:o}=e;return(0,Tf.jsx)(che,{onClick:r,width:n,height:i,theme:t,customStyle:o,children:e.children})},che=hf.button.withConfig({displayName:"Button__SpacesButton",componentId:"sc-1honbhg-0"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;padding:",";margin-top:12px;background:",";border:2px solid ",";color:",";border-radius:8px;font-size:14px;font-weight:",";font-family:'Strawford';flex:none;order:0;flex-grow:0;transition:150ms ease-in-out;&:hover{cursor:pointer;}width:",";height:",";"],(e=>e.customStyle?e.customStyle.padding:"10px 16px"),(e=>e.customStyle?e.customStyle.background:e.theme.btnColorPrimary),(e=>e.customStyle?e.customStyle.borderColor:e.theme.btnOutline),(e=>e.customStyle?e.customStyle.color:e.theme.titleTextColor),(e=>e.customStyle?e.customStyle.fontWeight:"700"),(e=>e.width?e.width:"100%"),(e=>e.height?e.height:"100%"));const hhe=({title:e,items:t,children:r})=>{const n=(0,w.useContext)(W7),[i,o]=(0,w.useState)(!1);return(0,Tf.jsxs)(dhe,{children:[(0,Tf.jsxs)(phe,{onClick:()=>{o((e=>!e))},children:[(0,Tf.jsxs)(mhe,{children:[(0,Tf.jsx)("div",{children:e}),t?(0,Tf.jsx)(ghe,{theme:n,children:t}):null]}),(0,Tf.jsx)(yhe,{src:i?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzMiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMyAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB0cmFuc2Zvcm09InJvdGF0ZSgxODApIj4KPHBhdGggZD0iTTI1LjUxMTMgMTMuMjcyTDI1LjUxMTQgMTMuMjcyMUwyNS41MTczIDEzLjI2NTZDMjUuNjcxMyAxMy4wOTM5IDI1Ljc1MzggMTIuODY4NiAyNS43NDk5IDEyLjYzNzVDMjUuNzQ1OSAxMi40MDY0IDI1LjY1NTggMTIuMTg0MSAyNS40OTU5IDEyLjAxNzlDMjUuMzM1NiAxMS44NTE1IDI1LjExNzQgMTEuNzU0NCAyNC44ODY3IDExLjc1MDFDMjQuNjU1OSAxMS43NDU5IDI0LjQzNDQgMTEuODM1IDI0LjI2ODMgMTEuOTk1N0wyNC4yNjgyIDExLjk5NTZMMjQuMjYyMSAxMi4wMDE5TDE2LjUgMjAuMDYyNUw4LjczNzg5IDEyLjAwMTlMOC43MzggMTIuMDAxOEw4LjczMTY2IDExLjk5NTdDOC41NjU2MyAxMS44MzUgOC4zNDQwOCAxMS43NDU5IDguMTEzMzIgMTEuNzUwMUM3Ljg4MjU5IDExLjc1NDQgNy42NjQ0IDExLjg1MTUgNy41MDQxNCAxMi4wMTc5QzcuMzQ0MTYgMTIuMTg0MSA3LjI1NDA2IDEyLjQwNjQgNy4yNTA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zUwMUM3Ljg4MjU5IDExLjc1NDQgNy42NjQ0IDExLjg1MTUgNy41MDQxNCAxMi4wMTc5QzcuMzQ0MTYgMTIuMTg0MSA3LjI1NDA2IDEyLjQwNjQgNy4yNTAxMyAxMi42Mzc1QzcuMjQ2MjEgMTIuODY4NiA3LjMyODY5IDEzLjA5MzkgNy40ODI3MyAxMy4yNjU2TDcuNDgyNjIgMTMuMjY1N0w3LjQ4ODczIDEzLjI3MkwxNS44NzU0IDIxLjk4MjNMMTUuODc1NSAyMS45ODI1QzE2LjAzOTUgMjIuMTUyNiAxNi4yNjM5IDIyLjI1IDE2LjUgMjIuMjVDMTYuNzM2MSAyMi4yNSAxNi45NjA1IDIyLjE1MjYgMTcuMTI0NSAyMS45ODI1TDE3LjEyNDYgMjEuOTgyM0wyNS41MTEzIDEzLjI3MloiIGZpbGw9IiM4MjgyOEEiIHN0cm9rZT0iIzgyODI4QSIgc3Ryb2tlLXdpZHRoPSIwLjUiLz4KPC9zdmc+Cg==",alt:"Maximize/Minimize icon"})]}),(0,Tf.jsx)(fhe,{isOpen:i,children:r})]})},dhe=hf.div.withConfig({displayName:"Accordion__AccordionParent",componentId:"sc-13astz2-0"})(["border:1px solid #E4E4E7;border-radius:8px;padding:6.5px 0;margin:16px 0;"]),fhe=hf.div.withConfig({displayName:"Accordion__AccordionBody",componentId:"sc-13astz2-1"})(["overflow-y:scroll;max-height:",";transition:max-height 200ms ease-out;"],(({isOpen:e})=>e?"200px":"0")),phe=hf.div.withConfig({displayName:"Accordion__AccordionTitle",componentId:"sc-13astz2-2"})(["display:flex;justify-content:space-between;align-items:center;padding:8px 16px;cursor:pointer;"]),mhe=hf.div.withConfig({displayName:"Accordion__Title",componentId:"sc-13astz2-3"})(["display:flex;align-items:center;"]),ghe=hf.div.withConfig({displayName:"Accordion__PendingCount",componentId:"sc-13astz2-4"})(["background:",";border-radius:8px;padding:4px 10px;margin-left:6px;font-size:13px;color:",";"],(e=>e.theme.btnColorPrimary),(e=>e.theme.titleTextColor)),yhe=hf.img.withConfig({displayName:"Accordion__Image",componentId:"sc-13astz2-5"})(["display:flex;max-height:initial;vertical-align:middle;overflow:initial;cursor:pointer;height:",";width:",";align-self:center;"],(e=>e.height||"24px"),(e=>e.width||"20px")),vhe=e=>{const t=(0,w.useContext)(W7);return(0,Tf.jsx)(rf,{theme:t,children:(0,Tf.jsxs)(bhe,{children:[(0,Tf.jsx)(whe,{children:(0,Tf.jsx)("label",{children:e.labelName})}),(0,Tf.jsxs)(Ehe,{children:[(0,Tf.jsx)(_he,{theme:t,value:e.inputValue,onChange:t=>{e.onInputChange(t)},placeholder:"Search..."}),(0,Tf.jsx)(Ahe,{onClick:e.clearInput,children:(0,Tf.jsx)(Rle,{})})]})]})})},bhe=hf.div.withConfig({displayName:"SearchInput__InputContainer",componentId:"sc-1f35nbe-0"})(["display:flex;flex-direction:column;margin:16px 0;font-family:'Strawford';"]),whe=hf.div.withConfig({displayName:"SearchInput__LabelContainer",componentId:"sc-1f35nbe-1"})(["display:flex;justify-content:space-between;font-weight:500;color:",""],(e=>{var t;return null!=(t=e.theme.textColorPrimary)?t:"#000"})),_he=hf.input.withConfig({displayName:"SearchInput__Input",componentId:"sc-1f35nbe-2"})(["padding:16px;margin-top:12px;width:330px;background:#FFFFFF;border:2px solid ",";border-radius:12px;"],(e=>e.theme.btnOutline)),Ehe=hf.div.withConfig({displayName:"SearchInput__InputWrapper",componentId:"sc-1f35nbe-3"})(["position:relative;"]),Ahe=hf.div.withConfig({displayName:"SearchInput__CloseBtn",componentId:"sc-1f35nbe-4"})(["position:absolute;right:0;top:0;padding:1.75rem 0.75rem;"]),Mhe=({height:e,width:t,color:r})=>(0,Tf.jsxs)("svg",{width:null!=t?t:"36",height:null!=e?e:"40",viewBox:"0 0 36 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsx)("path",{d:"M16 12C16 13.1046 16.8954 14 18 14C19.1046 14 20 13.1046 20 12C20 10.8954 19.1046 10 18 10C16.8954 10 16 10.8954 16 12Z",fill:null!=r?r:"black"}),(0,Tf.jsx)("path",{d:"M16 20C16 21.1046 16.8954 22 18 22C19.1046 22 20 21.1046 20 20C20 18.8954 19.1046 18 18 18C16.8954 18 16 18.8954 16 20Z",fill:null!=r?r:"black"}),(0,Tf.jsx)("path",{d:"M16 28C16 29.1046 16.8954 30 18 30C19.1046 30 20 29.1046 20 28C20 26.8954 19.1046 26 18 26C16.8954 26 16 26.8954 16 28Z",fill:null!=r?r:"black"})]});var She=r(98399);const xhe=e=>{var t;const{closeInviteModal:r,makeScheduleVisible:n,createSpace:i,isLoading:o,invitedMembersList:s,setInvitedMembersList:a,invitedAddressList:u,setInvitedAddressList:l,adminsList:c,setAdminsList:h,adminsAddressList:d,setAdminsAddressList:f,onClose:p,btnString:m}=e,g=(0,w.useContext)(W7),{env:y,account:v,customSearch:b}=g6(),[_,E]=(0,w.useState)(""),[A,M]=(0,w.useState)(!1),[S,x]=(0,w.useState)({}),[k,T]=(0,w.useState)(""),C=()=>{E(""),x({}),T("")},I=e=>{T(e),setTimeout((()=>{T("")}),2e3)},N=e=>{0===u.length||0===d.length||!u.includes(e.did.substring(7))&&!d.includes(e.did.substring(7))?(e.did?(l([...u,e.did.substring(7)]),a([...s,e])):(l([...u,e.handle]),a([...s,e])),C()):I("Already Invited")},R=e=>{e.did?(h([...c,e]),f([...d,e.did.substring(7)])):(h([...c,e]),f([...d,e.handle]));const t=s.filter((t=>t!==e));if(a(t),e.did){const t=u.filter((t=>t!==e.did.substring(7)));l(t)}else{const t=u.filter((t=>t!==e.handle));l(t)}C()},P=e=>{const t=s.filter((t=>t!==e));if(a(t),e.did){const t=u.filter((t=>t!==e.did.substring(7)));l(t)}else{const t=u.filter((t=>t!==e.handle));l(t)}},D=e=>{const t=c.filter((t=>t!==e));if(h(t),e.did){const t=d.filter((t=>t!==e.did.substring(7)));f(t)}else{const t=d.filter((t=>t!==e.handle));f(t)}};return(0,Tf.jsx)(rf,{theme:g,children:(0,Tf.jsxs)(Cle,{clickawayClose:p,children:[(0,Tf.jsx)(Dle,{heading:"Invite members",backCallback:n,closeCallback:r}),(0,Tf.jsx)(vhe,{labelName:"Add users",inputValue:_,onInputChange:async e=>{if(E(e.target.value),e.target.value!==v)if(b){const t=b(e.target.value);if(((e,t)=>{const r=Object.keys(e);return r.length<4&&r[0]===t})(t,"account")){const e=oce({seed:t.account,size:10,scale:3}),r={handle:t.account,name:t.account,image:e.toDataURL()};x(r)}else x(t)}else try{M(!0);const t=await HL({account:e.target.value,env:y});if(null===t){const t=oce({seed:e.target.value,size:10,scale:3}),r={handle:e.target.value,name:e.target.value,image:t.toDataURL()};x(r)}else x(t);T("")}catch(fVe){She.error(fVe.message),x({}),T(fVe.message)}finally{M(!1)}else I("Cannot add Host to members")},clearInput:C}),(0,Tf.jsx)(Phe,{children:k}),(0,Tf.jsxs)(khe,{children:[A&&(0,Tf.jsx)(Pee,{}),0===Object.keys(S).length?null:S.hasOwnProperty("handle")?(0,Tf.jsx)(Fle,{imageHeight:"48px",handle:S.handle,name:S.name,imageUrl:S.image,contBtn:(0,Tf.jsx)(Rhe,{children:"Add +"}),btnCallback:()=>N(S),border:!0}):(0,Tf.jsx)(Fle,{imageHeight:"48px",handle:S.did.substring(7),name:null!=(t=S.profile.name)?t:S.did.substring(7),imageUrl:S.profile.picture,contBtn:(0,Tf.jsx)(Rhe,{children:"Add +"}),btnCallback:()=>N(S),border:!0})]}),s.length?(0,Tf.jsxs)(The,{children:[(0,Tf.jsxs)(Che,{children:["Invited Members ",(0,Tf.jsx)(Ihe,{theme:g,children:s.length})]}),s.map((e=>{return e.hasOwnProperty("handle")?(0,Tf.jsx)(Fle,{imageHeight:"48px",handle:e.handle,name:e.name,imageUrl:e.image,contBtn:(0,Tf.jsx)(Nhe,{children:(0,Tf.jsx)(Mhe,{color:g.textColorPrimary})}),removeCallback:()=>P(e),promoteCallback:()=>R(e),border:!0}):(0,Tf.jsx)(Fle,{imageHeight:"48px",handle:e.did.substring(7),name:null!=(t=e.profile.name)?t:e.did.substring(7),imageUrl:e.profile.picture,contBtn:(0,Tf.jsx)(Nhe,{children:(0,Tf.jsx)(Mhe,{color:g.textColorPrimary})}),removeCallback:()=>P(e),promoteCallback:()=>R(e),border:!0});var t}))]}):null,c.length?(0,Tf.jsxs)(The,{children:[(0,Tf.jsxs)(Che,{children:["Speakers ",(0,Tf.jsx)(Ihe,{theme:g,children:c.length})]}),c.map((e=>{return e.hasOwnProperty("handle")?(0,Tf.jsx)(Fle,{imageHeight:"48px",handle:e.handle,name:e.name,imageUrl:e.image,contBtn:(0,Tf.jsx)(Nhe,{children:(0,Tf.jsx)(Mhe,{color:g.textColorPrimary})}),removeCallback:()=>D(e),border:!0}):(0,Tf.jsx)(Fle,{imageHeight:"48px",handle:e.did.substring(7),name:null!=(t=e.profile.name)?t:e.did.substring(7),imageUrl:e.profile.picture,contBtn:(0,Tf.jsx)(Nhe,{children:(0,Tf.jsx)(Mhe,{color:g.textColorPrimary})}),removeCallback:()=>D(e),border:!0});var t}))]}):null,(0,Tf.jsx)(lhe,{onClick:i,width:"max-content",children:o?(0,Tf.jsx)(E3,{}):null!=m?m:"Create Space"})]})})},khe=hf.div.withConfig({displayName:"SCWInviteModal__MembersList",componentId:"sc-1kkr9mx-0"})(["width:100%;display:flex;flex-direction:column;gap:8px;"]),The=hf.div.withConfig({displayName:"SCWInviteModal__InvitedList",componentId:"sc-1kkr9mx-1"})(["width:100%;display:flex;flex-direction:column;gap:8px;margin-top:28px;"]),Che=hf.div.withConfig({displayName:"SCWInviteModal__Heading",componentId:"sc-1kkr9mx-2"})(["display:flex;align-items:center;"]),Ihe=hf.div.withConfig({displayName:"SCWInviteModal__PendingCount",componentId:"sc-1kkr9mx-3"})(["background:",";border-radius:8px;padding:4px 10px;margin-left:6px;font-size:13px;color:",";"],(e=>e.theme.btnColorPrimary),(e=>e.theme.titleTextColor)),Nhe=hf.div.withConfig({displayName:"SCWInviteModal__SettingsCont",componentId:"sc-1kkr9mx-4"})(["display:flex;justify-content:center;align-items:center;cursor:pointer;"]),Rhe=hf.button.withConfig({displayName:"SCWInviteModal__ContBtn",componentId:"sc-1kkr9mx-5"})(["display:flex;flex-direction:row;align-items:center;margin-left:8px;line-height:18px;width:max-content;background:transparent;color:",";border-radius:6px;font-weight:500;font-size:12px;padding:4px 8px;border-radius:8px;border:1px solid ",";cursor:pointer;"],(e=>e.theme.btnColorPrimary),(e=>e.theme.btnOutline)),Phe=hf.div.withConfig({displayName:"SCWInviteModal__ErrorMessage",componentId:"sc-1kkr9mx-6"})(["color:#E93636;font-size:14px;margin-bottom:8px;"]);var Dhe=r(98399);const Lhe=e=>{var t,r,n,i,o,s,a,u;const{spaceData:l}=e,c=(0,w.useContext)(W7),[h,d]=(0,w.useState)(!1),[f,p]=(0,w.useState)([]),[m,g]=(0,w.useState)([]),[y,v]=(0,w.useState)([]),[b,_]=(0,w.useState)([]),[E,A]=(0,w.useState)(!1),{signer:M,env:S,pgpPrivateKey:x}=g6(),k={color:null==c?void 0:c.textColorPrimary,background:null==c?void 0:c.bgColorPrimary,borderColor:null==c?void 0:c.borderColor,fontWeight:"500",padding:"14px"},T=()=>{d(!h)},C=null==l||null==(t=l.members)?void 0:t.filter((e=>e.isSpeaker));return(0,Tf.jsx)(Cle,{width:"400px",children:(0,Tf.jsxs)(Ohe,{theme:c,children:[(0,Tf.jsx)(Dle,{heading:"Spaces Info",closeCallback:e.closeSpacesInfo}),(0,Tf.jsx)(Fle,{imageUrl:null==l||null==(r=l.members[0])?void 0:r.image,name:null==l||null==(n=l.members[0])||null==(i=n.wallet)?void 0:i.substring(7),handle:null==l||null==(o=l.members[0])||null==(s=o.wallet)?void 0:s.substring(7),imageHeight:"48px",tag:"Host"}),(0,Tf.jsxs)(jhe,{children:[(0,Tf.jsx)(Bhe,{children:null==l?void 0:l.spaceName}),(0,Tf.jsx)(Uhe,{theme:c,children:null==l?void 0:l.spaceDescription})]}),(0,Tf.jsx)(lhe,{customStyle:k,onClick:T,children:"Invite Members"}),null!=l&&null!=(a=l.pendingMembers)&&a.length?(0,Tf.jsx)(hhe,{title:"Pending Invites",items:null==l||null==(u=l.pendingMembers)?void 0:u.length,children:(null==l?void 0:l.pendingMembers)&&l.pendingMembers.map((e=>{var t,r;return(0,Tf.jsx)(Fle,{tag:null!=e&&e.isSpeaker?"Co-Host":void 0,imageHeight:"48px",handle:null==e||null==(t=e.wallet)?void 0:t.substring(7),name:null==e||null==(r=e.wallet)?void 0:r.substring(7),imageUrl:null==e?void 0:e.image})}))}):null,(0,Tf.jsx)(Fhe,{children:C&&C.slice(1).map((e=>{var t,r;return(0,Tf.jsx)(Fle,{border:!0,tag:"Co-Host",imageHeight:"48px",handle:null==e||null==(t=e.wallet)?void 0:t.substring(7),name:null==e||null==(r=e.wallet)?void 0:r.substring(7),imageUrl:null==e?void 0:e.image})}))}),h?(0,Tf.jsx)(xhe,{closeInviteModal:T,makeScheduleVisible:T,createSpace:async()=>{const e=Object.assign({spaceName:null==l?void 0:l.spaceName,spaceDescription:"Push Space",listeners:m,spaceImage:"asd",speakers:b,isPublic:!0,scheduleAt:new Date(Date.now()+12e4),signer:M,env:S,spaceId:null==l?void 0:l.spaceId,status:null==l?void 0:l.status},x&&""!==x&&{pgpPrivateKey:x});try{A(!0);const t=await gF(e);Dhe.log(t)}catch(fVe){Dhe.error(fVe.message)}finally{A(!1),d(!1)}},isLoading:E,invitedMembersList:f,setInvitedMembersList:p,invitedAddressList:m,setInvitedAddressList:g,adminsList:y,setAdminsList:v,adminsAddressList:b,setAdminsAddressList:_,onClose:T,btnString:"Update Space"}):null]})})},Ohe=hf.div.withConfig({displayName:"SpacesInfo__SpacesInfoContainer",componentId:"sc-12pbtz1-0"})(["color:",";width:100%;"],(e=>{var t;return null==(t=e.theme)?void 0:t.textColorPrimary})),jhe=hf.div.withConfig({displayName:"SpacesInfo__SpacesDetailsContainer",componentId:"sc-12pbtz1-1"})(["padding:0 16px;margin:24px 0;"]),Bhe=hf.div.withConfig({displayName:"SpacesInfo__Title",componentId:"sc-12pbtz1-2"})(["font-weight:500;"]),Uhe=hf.div.withConfig({displayName:"SpacesInfo__Description",componentId:"sc-12pbtz1-3"})(["color:",";"],(e=>{var t;return null==(t=e.theme)?void 0:t.textColorSecondary})),Fhe=hf.div.withConfig({displayName:"SpacesInfo__AdminsList",componentId:"sc-12pbtz1-4"})(["display:flex;flex-direction:column;gap:8px;margin-top:8px;"]);var zhe=r(98399);const Hhe=({onClose:e,isMinimized:t,isHost:r,setIsMinimized:n,toggleWidgetVisibility:i,spaceData:o,spaceStatus:s})=>{var a,u,l,c,h;const d=(0,w.useContext)(W7),{isJoined:f}=g6(),[p,m]=(0,w.useState)(!1),[g,y]=(0,w.useState)(nhe.Scheduled),v=t=>{i(),e(t)},b=()=>{m(!p),zhe.log(p)};return(0,w.useEffect)((()=>{s===nhe.Live&&y(nhe.Live),s===nhe.Scheduled&&y(nhe.Scheduled),s===nhe.Ended&&y(nhe.Ended)}),[s]),(0,Tf.jsx)(rf,{theme:d,children:(0,Tf.jsxs)(Ghe,{theme:d,children:[(g===nhe.Scheduled||g===nhe.Ended)&&(0,Tf.jsxs)(Khe,{children:[(0,Tf.jsx)(r6,{marginBottom:"12px",children:(0,Tf.jsx)(fee,{statusTheme:"Live",imageUrl:(null==o||null==(a=o.members[0])?void 0:a.image)||"https://imgv3.fotor.com/images/blog-richtext-image/10-profile-picture-ideas-to-make-you-stand-out.jpg",name:`${null==o||null==(u=o.spaceCreator)?void 0:u.slice(7,12)}...${null==o||null==(l=o.spaceCreator)?void 0:l.slice(-6,-1)}`||"Host",handle:`${null==o||null==(c=o.spaceCreator)?void 0:c.slice(7,12)}...${null==o||null==(h=o.spaceCreator)?void 0:h.slice(-6,-1)}`||"Host"})}),(0,Tf.jsxs)(r6,{display:"flex",alignSelf:"flex-start",alignItems:"center",children:[(0,Tf.jsx)(r6,{marginLeft:"8px",display:"flex",onClick:b,children:(0,Tf.jsx)(Yhe,{alt:"Settings icon",src:she})}),(0,Tf.jsx)(r6,{marginLeft:"8px",display:"flex",children:(0,Tf.jsx)(Yhe,{onClick:()=>n(!t),src:t?uhe:ahe,alt:"Maximize/Minimize icon"})}),!f&&(0,Tf.jsx)(r6,{marginLeft:"8px",display:"flex",onClick:v,children:(0,Tf.jsx)(Rle,{stroke:"white",height:"15",width:"15"})})]})]}),(0,Tf.jsxs)(Khe,{children:[(0,Tf.jsx)(s6,{fontSize:"16px",fontWeight:700,children:(null==o?void 0:o.spaceName)||"Test Space"}),g===nhe.Live&&(0,Tf.jsxs)(r6,{display:"flex",alignSelf:"flex-start",alignItems:"center",marginLeft:"24px",children:[(0,Tf.jsx)(r6,{marginLeft:"8px",display:"flex",onClick:b,children:(0,Tf.jsx)(Yhe,{alt:"Settings icon",src:she})}),(0,Tf.jsx)(r6,{marginLeft:"8px",display:"flex",children:(0,Tf.jsx)(Yhe,{onClick:()=>n(!t),src:t?uhe:ahe,alt:"Maximize/Minimize icon"})}),!f&&(0,Tf.jsx)(r6,{marginLeft:"8px",display:"flex",onClick:v,children:(0,Tf.jsx)(Rle,{stroke:"white",height:"15",width:"15"})})]})]}),g===nhe.Scheduled&&(0,Tf.jsxs)(r6,{display:"flex",marginTop:"12px",alignItems:"center",children:[(0,Tf.jsx)(Yhe,{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2LjI1IDMuMTI1SDMuNzVDMy40MDQ4MiAzLjEyNSAzLjEyNSAzLjQwNDgyIDMuMTI1IDMuNzVWMTYuMjVDMy4xMjUgMTYuNTk1MiAzLjQwNDgyIDE2Ljg3NSAzLjc1IDE2Ljg3NUgxNi4yNUMxNi41OTUyIDE2Ljg3NSAxNi44NzUgMTYuNTk1MiAxNi44NzUgMTYuMjVWMy43NUMxNi44NzUgMy40MDQ4MiAxNi41OTUyIDMuMTI1IDE2LjI1IDMuMTI1WiIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMy43NSAxLjg3NVY0LjM3NSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik02LjI1IDEuODc1VjQuMzc1IiBzdHJva2U9IndoaXRlIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTMuMTI1IDYuODc1SDE2Ljg3NSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=",alt:"Calendar Icon"}),(0,Tf.jsx)(r6,{marginLeft:"4px",fontSize:"14px",fontWeight:600,children:t9((null==o?void 0:o.scheduleAt)||new Date)})]}),g===nhe.Live&&(0,Tf.jsxs)(Khe,{marginTop:"12px",children:[(0,Tf.jsxs)(r6,{display:"flex",alignItems:"center",children:[(0,Tf.jsx)(Yhe,{src:Eee,alt:"Calendar Icon"}),(0,Tf.jsx)(s6,{fontSize:"14px",fontWeight:600,marginLeft:"4px",children:"Live"})]}),(0,Tf.jsx)(r6,{display:"flex",alignItems:"center",children:(0,Tf.jsx)(r6,{children:(0,Tf.jsx)(uee,{participants:null==o?void 0:o.members,orientation:"maximized"})})})]}),p?(0,Tf.jsx)(Lhe,{closeSpacesInfo:()=>{m(!1)},spaceData:o}):null]})})},Ghe=hf.div.withConfig({displayName:"WidgetHeader__Container",componentId:"sc-1va1891-0"})(["display:flex;flex-direction:column;color:",";padding:16px 24px;background:",";"],(e=>e.theme.titleTextColor),(e=>e.theme.titleBg)),Yhe=hf.img.withConfig({displayName:"WidgetHeader__Image",componentId:"sc-1va1891-1"})(["display:flex;max-height:initial;vertical-align:middle;overflow:initial;cursor:pointer;height:",";width:",";align-self:center;"],(e=>e.height||"24px"),(e=>e.width||"20px")),Khe=hf.div.withConfig({displayName:"WidgetHeader__Section",componentId:"sc-1va1891-2"})(["display:flex;justify-content:space-between;margin-top:",";"],(e=>e.marginTop));var qhe=r(98399);const Whe=16,Vhe=e=>{const{bottomOffset:t=Whe,rightOffset:r=Whe,width:n,zIndex:i=1e3,spaceId:o,share:s,onClose:a=(()=>{}),isTimeToStartSpace:u}=e||{},l=(0,w.useRef)(),[c,h]=(0,w.useState)(!o),[d,f]=(0,w.useState)(!1),[p,m]=(0,w.useState)(),{getSpaceInfo:g,setSpaceInfo:y,account:v,env:b,spaceInfo:_}=g6();(0,w.useEffect)((()=>{if(!o)return;h(!o);(async()=>{try{if(g(o))return void m(g(o));const e=await nF({spaceId:o,env:b});y(o,e),m(e)}catch(XMe){qhe.error(XMe)}})()}),[b,g,y,o]),(0,w.useEffect)((()=>{o&&_[o]&&(l.current=_[o].status)}),[o,_]);const E=((e,t)=>s9(e,null==t?void 0:t.spaceCreator))(v,p),A=((e,t)=>{const r=null==t?void 0:t.members.filter((t=>s9(e,t.wallet)));return(null==r?void 0:r.length)>0})(v,p),M=()=>{h(!c)};return(0,Tf.jsx)(rf,{theme:w.useContext(W7),children:(0,Tf.jsxs)($he,{bottomOffset:t,rightOffset:r,hidden:c,width:n,zIndex:i,children:[(0,Tf.jsx)(Hhe,{onClose:a,isMinimized:d,setIsMinimized:f,toggleWidgetVisibility:M,isHost:E,spaceStatus:l.current,spaceData:p}),(0,Tf.jsx)(ihe,{onClose:a,account:v,spaceData:p,share:s,isHost:E,spaceStatus:l.current,isMember:A,isTimeToStartSpace:u,isMinimized:d,toggleWidgetVisibility:M})]})})},$he=hf.div.withConfig({displayName:"SpaceWidget__Container",componentId:"sc-1nlioj1-0"})(["font-family:'Strawford';border-radius:12px;border:1px solid ",";display:flex;flex-direction:column;width:",";max-width:",";min-width:320px;background:",";justify-content:flex-start;position:fixed;bottom:","px;right:","px;visibility:",";opacity:",";transition:opacity 0.3s ease;z-index:",";overflow:hidden;"],(e=>e.theme.borderColor),(e=>e.width?`${e.width}px`:"415px"),(e=>e.width?`${e.width}px`:"415px"),(e=>e.theme.bgColorPrimary),(e=>e.bottomOffset),(e=>e.rightOffset),(e=>e.hidden?"hidden":"visible"),(e=>e.hidden?0:1),(e=>{var t;return null!=(t=e.zIndex)?t:"1000"})),Qhe=({children:e,actionCallback:t,onBannerClickHandler:r})=>{var n,i,o;const s=(0,w.useContext)(W7),[a,u]=(0,w.useState)(!1),{spaceRequests:l,setSpaceRequests:c}=g6(),h=M6(null==(n=l.apiData)||n.length),{account:d}=g6(),f=()=>{u(!0)},p=()=>{u(!1)},m=()=>{t&&t(),u(!1)},g=e=>{if(r)return r(e||"")},{loading:y}=A6(d);return(0,Tf.jsxs)(rf,{theme:s,children:[!e&&(0,Tf.jsx)(Jhe,{onClick:f,children:"Space Invites"}),e&&(0,Tf.jsx)("div",{onClick:f,children:e}),a&&(0,Tf.jsxs)(Cle,{clickawayClose:p,width:"450px",children:[(0,Tf.jsx)(Dle,{heading:"Spaces Invites",headingBadgeNumber:(null==(i=l.apiData)?void 0:i.length)>0?null==(o=l.apiData)?void 0:o.length:void 0,closeCallback:p}),(0,Tf.jsx)(Zhe,{ref:h,onScroll:()=>{if(h.current){const{scrollTop:e,scrollHeight:t,clientHeight:r}=h.current;e+r>=t&&!1===y&&l.currentPage&&l.lastPage&&l.currentPage(0,Tf.jsx)(Mee,{spaceId:e.spaceId,orientation:"maximized",isInvite:!0,actionCallback:m,onBannerClick:r?g:void 0}))):null,y?(0,Tf.jsx)(Pee,{size:"40"}):null]})})]})]})},Jhe=hf.button.withConfig({displayName:"SpaceInvites__Button",componentId:"sc-hjjf1x-0"})(["padding:8px 16px;background-color:",";color:",";border:none;border-radius:4px;cursor:pointer;"],(e=>e.theme.btnColorPrimary),(e=>e.theme.textColorPrimary)),Zhe=hf.div.withConfig({displayName:"SpaceInvites__ScrollContainer",componentId:"sc-hjjf1x-1"})(["max-height:400px;width:inherit;margin-top:24px;overflow-y:scroll;&::-webkit-scrollbar{margin-left:10px;width:8px;height:8px;}&::-webkit-scrollbar-thumb{-webkit-appearance:none;width:4px;height:auto;background:",";border-radius:99px;}"],(e=>e.theme.btnColorPrimary)),Xhe=hf.div.withConfig({displayName:"SpaceInvites__InviteContainer",componentId:"sc-hjjf1x-2"})(["display:flex;flex-direction:column;gap:16px;margin:0 10px;"]),ede=e=>{const t=(0,w.useContext)(W7);return(0,Tf.jsx)(rf,{theme:t,children:(0,Tf.jsxs)(tde,{children:[(0,Tf.jsxs)(rde,{children:[(0,Tf.jsx)("label",{children:e.labelName}),(0,Tf.jsxs)(ide,{theme:t,children:[e.inputValue.length," / ",e.charCount]})]}),(0,Tf.jsx)(nde,{theme:t,value:e.inputValue,onChange:t=>{t.target.value.length<=e.charCount&&e.onInputChange(t)}})]})})},tde=hf.div.withConfig({displayName:"TextInput__InputContainer",componentId:"sc-qbpum2-0"})(["display:flex;flex-direction:column;margin:16px 0;font-family:'Strawford';"]),rde=hf.div.withConfig({displayName:"TextInput__LabelContainer",componentId:"sc-qbpum2-1"})(["display:flex;justify-content:space-between;font-weight:500;color:",""],(e=>{var t;return null!=(t=e.theme.textColorPrimary)?t:"#000"})),nde=hf.input.withConfig({displayName:"TextInput__Input",componentId:"sc-qbpum2-2"})(["padding:16px;margin-top:12px;width:330px;background:#FFFFFF;border:2px solid ",";border-radius:12px;font-family:'Strawford';font-size:14px;"],(e=>e.theme.btnOutline)),ide=hf.div.withConfig({displayName:"TextInput__CharCounter",componentId:"sc-qbpum2-3"})(["color:",";"],(e=>e.theme.textColorSecondary)),ode=({height:e,width:t,color:r})=>(0,Tf.jsxs)("svg",{width:t||"15",height:e||"14",viewBox:"0 0 15 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsx)("path",{d:"M5.72237 11.7409H3.94459C3.31593 11.7409 2.71301 11.4912 2.26848 11.0466C1.82395 10.6021 1.57422 9.99918 1.57422 9.37052V4.03718C1.57422 3.40852 1.82395 2.80561 2.26848 2.36108C2.71301 1.91655 3.31593 1.66681 3.94459 1.66681H10.4631C11.0918 1.66681 11.6947 1.91655 12.1392 2.36108C12.5837 2.80561 12.8335 3.40852 12.8335 4.03718V5.81496M5.12977 1.07422V2.2594M9.27792 1.07422V2.2594M1.57422 4.62977H12.8335M11.352 9.15896L10.4631 10.0478",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.18519","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M10.463 12.9259C12.0994 12.9259 13.4259 11.5994 13.4259 9.96296C13.4259 8.32656 12.0994 7 10.463 7C8.82656 7 7.5 8.32656 7.5 9.96296C7.5 11.5994 8.82656 12.9259 10.463 12.9259Z",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.18519","stroke-linecap":"round","stroke-linejoin":"round"})]}),sde=e=>{const t=(0,w.useContext)(W7),{isInviteVisible:r,closeCreateModal:n,handleNameChange:i,handleDescriptionChange:o,nameValue:s,descriptionValue:a,isDescriptionEnabled:u,isScheduleVisible:l,onClose:c}=e,h={background:"transparent",borderColor:t.btnOutline};return(0,Tf.jsx)(rf,{theme:t,children:(0,Tf.jsxs)(Cle,{clickawayClose:c,children:[(0,Tf.jsx)(Dle,{heading:"Create your space",closeCallback:n}),(0,Tf.jsx)(ede,{labelName:"Name",inputValue:s,onInputChange:i,charCount:50}),u?(0,Tf.jsx)(ede,{labelName:"Description",inputValue:a,onInputChange:o,charCount:120}):null,(0,Tf.jsxs)(ade,{children:[(0,Tf.jsx)(lhe,{onClick:r,width:"85%",children:"Create Space"}),(0,Tf.jsx)("div",{title:"Schedule your Space",children:(0,Tf.jsx)(lhe,{width:"40px",height:"41px",customStyle:h,onClick:l,children:(0,Tf.jsx)(ode,{height:"20",width:"20",color:t.btnColorPrimary})})})]})]})})},ade=hf.div.withConfig({displayName:"SCWCreateModal__ButtonContainer",componentId:"sc-gl8ef6-0"})(["display:flex;justify-content:space-between;width:100%;"]);var ude=r(98399);const lde=hf.div.withConfig({displayName:"DateTimePicker__DateTimeCont",componentId:"sc-a5tvc-0"})(["display:flex;flex-direction:column;margin-top:24px;"]),cde=hf.input.withConfig({displayName:"DateTimePicker__Input",componentId:"sc-a5tvc-1"})(["padding:16px;margin-top:12px;width:330px;background:#FFFFFF;border:2px solid ",";border-radius:12px;font-size:16px;font-family:'Strawford';"],(e=>e.theme.btnOutline)),hde=hf.div.withConfig({displayName:"DateTimePicker__TimeContainer",componentId:"sc-a5tvc-2"})(["display:flex;width:100%;gap:12px;"]),dde=hf.select.withConfig({displayName:"DateTimePicker__Select",componentId:"sc-a5tvc-3"})(["padding:16px;margin-top:12px;background:#FFFFFF;border:2px solid ",";border-radius:12px;font-size:16px;font-family:'Strawford';width:",";"],(e=>e.theme.btnOutline),(e=>e.width?e.width:"100%")),fde=e=>{const{propsDate:t,onDateChange:r,onTimeChange:n}=e,i=(0,w.useContext)(W7),[o,s]=(0,w.useState)("0"),[a,u]=(0,w.useState)("0"),[l,c]=(0,w.useState)("AM"),[h,d]=(0,w.useState)(0);ude.log("\ud83d\ude80 ~ file: DateTimePicker.tsx:24 ~ timeHumanReadable:",h);return(0,w.useEffect)((()=>{const e=((e,t,r,n)=>{let i=60*e+t;"PM"===r&&12!==e?i+=720:"AM"===r&&12===e&&(i-=720);const o=new Date(n);return o.setHours(0,0,0,0),o.setMinutes(i),o.getTime()})(parseInt(o,10),parseInt(a,10),l,t);d(e),n(e)}),[o,a,l,t]),(0,Tf.jsxs)(lde,{children:[(0,Tf.jsx)("div",{children:"Select date and time"}),(0,Tf.jsx)(cde,{theme:i,type:"date",value:t.toISOString().split("T")[0],onChange:e=>{const t=new Date(e.target.value);r(t)}}),(0,Tf.jsxs)(hde,{children:[(0,Tf.jsxs)(dde,{theme:i,value:o,onChange:e=>s(e.target.value),placeholder:"Hours",children:[(0,Tf.jsx)("option",{value:"00",children:"12"}),(0,Tf.jsx)("option",{value:"01",children:"01"}),(0,Tf.jsx)("option",{value:"02",children:"02"}),(0,Tf.jsx)("option",{value:"03",children:"03"}),(0,Tf.jsx)("option",{value:"04",children:"04"}),(0,Tf.jsx)("option",{value:"05",children:"05"}),(0,Tf.jsx)("option",{value:"06",children:"06"}),(0,Tf.jsx)("option",{value:"07",children:"07"}),(0,Tf.jsx)("option",{value:"08",children:"08"}),(0,Tf.jsx)("option",{value:"09",children:"09"}),(0,Tf.jsx)("option",{value:"10",children:"10"}),(0,Tf.jsx)("option",{value:"11",children:"11"})]}),(0,Tf.jsxs)(dde,{theme:i,value:a,onChange:e=>u(e.target.value),placeholder:"Minutes",children:[(0,Tf.jsx)("option",{value:"00",children:"00"}),(0,Tf.jsx)("option",{value:"15",children:"15"}),(0,Tf.jsx)("option",{value:"30",children:"30"}),(0,Tf.jsx)("option",{value:"45",children:"45"})]}),(0,Tf.jsxs)(dde,{theme:i,value:l,onChange:e=>c(e.target.value),placeholder:"AM/PM",children:[(0,Tf.jsx)("option",{value:"AM",children:"AM"}),(0,Tf.jsx)("option",{value:"PM",children:"PM"})]})]})]})},pde=e=>{const{closeScheduleModal:t,makeCreateVisible:r,makeInviteVisible:n,dateValue:i,timeValue:o,onDateChange:s,onTimeChange:a,onClose:u}=e;return(0,Tf.jsxs)(Cle,{clickawayClose:u,children:[(0,Tf.jsx)(Dle,{heading:"Schedule your space",backCallback:r,closeCallback:t}),(0,Tf.jsx)(fde,{onDateChange:s,onTimeChange:a,propsDate:i,propsTime:o}),(0,Tf.jsx)(mde,{children:(0,Tf.jsx)(lhe,{onClick:n,children:"Schedule Space"})})]})},mde=hf.div.withConfig({displayName:"SCWScheduleModal__ButtonContainer",componentId:"sc-1kbpgt-0"})(["display:flex;justify-content:space-between;width:100%;"]),gde=({height:e,width:t,color:r})=>(0,Tf.jsxs)("svg",{width:t||"16",height:e||"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsx)("path",{d:"M0 5.6V14.5227C0 15.083 0.668977 15.3728 1.07772 14.9896L4.13843 12.1202C4.22082 12.043 4.32952 12 4.44245 12H10C13.3137 12 16 9.31371 16 6C16 2.68629 13.3137 0 10 0H5.6C2.50721 0 0 2.50721 0 5.6Z",fill:"white"}),(0,Tf.jsxs)("g",{"clip-path":"url(#clip0_13894_56259)",children:[(0,Tf.jsx)("path",{d:"M4.48022 5.12109V7.04109",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.28","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M7.04028 2.56055V9.60055",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.28","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M9.60034 3.83984L9.60034 8.31984",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.28","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M12.1602 5.12109L12.1602 7.04109",stroke:null!=r?r:"#8B5CF6","stroke-width":"1.28","stroke-linecap":"round","stroke-linejoin":"round"})]}),(0,Tf.jsx)("defs",{children:(0,Tf.jsx)("clipPath",{id:"clip0_13894_56259",children:(0,Tf.jsx)("rect",{width:"14.08",height:"14.08",fill:"white",transform:"translate(0.960449)"})})})]}),yde=e=>{const{btnText:t,customStyle:r,onCreate:n}=e,i=(0,w.useContext)(W7);return(0,Tf.jsx)("div",{children:(0,Tf.jsxs)(vde,{customStyle:r,theme:i,onClick:n,children:[(0,Tf.jsx)(gde,{color:i.btnColorPrimary}),(0,Tf.jsx)(bde,{children:t})]})})},vde=hf.button.withConfig({displayName:"SCWButton__CreateButton",componentId:"sc-npo33l-0"})(["padding:",";border-radius:",";border:",";font-size:",";background:",";color:",";display:flex;align-items:center;font-family:'Strawford';cursor:pointer;"],(e=>e.customStyle.padding),(e=>e.customStyle.borderRadius),(e=>e.customStyle.border),(e=>e.customStyle.fontSize),(e=>e.theme.btnColorPrimary),(e=>e.theme.titleTextColor)),bde=hf.div.withConfig({displayName:"SCWButton__BtnText",componentId:"sc-npo33l-1"})(["margin-left:6px;"]);yde.defaultProps={btnText:"Create your Space",customStyle:{padding:"14px 20px",borderRadius:"12px",border:"0px solid transparent",fontSize:"1rem"}};var wde=r(98399);const _de=e=>{const{children:t}=e,[r,n]=(0,w.useState)(!1),[i,o]=(0,w.useState)(!1),[s,a]=(0,w.useState)(!1),[u,l]=(0,w.useState)([]),[c,h]=(0,w.useState)([]),[d,f]=(0,w.useState)([]),[p,m]=(0,w.useState)([]),[g,y]=(0,w.useState)(!1),[v,b]=(0,w.useState)({spaceName:"",spaceDescription:"",date:new Date,time:Date.now()}),{signer:_,env:E,account:A,pgpPrivateKey:M}=g6(),S=()=>{n(!r),o(!1),a(!1)},x=()=>{a(!s),o(!1),n(!1)},k=()=>{n(!1)},T=()=>{o(!1)},C=()=>{a(!1)};return(0,Tf.jsx)("div",{children:(0,Tf.jsxs)(Ede,{children:[!t&&(0,Tf.jsx)(yde,{onCreate:S}),t&&(0,Tf.jsx)("div",{onClick:S,children:t}),r&&(0,Tf.jsx)(sde,{isInviteVisible:x,closeCreateModal:k,nameValue:v.spaceName,descriptionValue:v.spaceDescription,handleNameChange:e=>{b((t=>Object.assign({},t,{spaceName:e.target.value})))},handleDescriptionChange:e=>{b((t=>Object.assign({},t,{spaceDescription:e.target.value})))},isDescriptionEnabled:!1,isScheduleVisible:()=>{o(!i),n(!1),a(!1)},onClose:k}),i&&(0,Tf.jsx)(pde,{closeScheduleModal:T,makeCreateVisible:S,makeInviteVisible:x,dateValue:v.date,timeValue:v.time,onDateChange:e=>{b((t=>Object.assign({},t,{date:e})))},onTimeChange:e=>{b((t=>Object.assign({},t,{time:e})))},onClose:T}),s&&(0,Tf.jsx)(xhe,{closeInviteModal:C,makeScheduleVisible:S,createSpace:async()=>{const e=Object.assign({spaceName:0===v.spaceName.length?`${A}'s Space`:v.spaceName,spaceDescription:"Push Space",listeners:c,spaceImage:"asd",speakers:p,isPublic:!0,scheduleAt:v.time>Date.now()?new Date(v.time):new Date(Date.now()+12e4),signer:_,env:E},M&&""!==M&&{pgpPrivateKey:M});try{y(!0);const t=await aF(e);wde.log(t)}catch(fVe){wde.error(fVe.message)}finally{y(!1),C(),n(!1),o(!1),a(!1),l([]),h([]),f([]),m([]),y(!1),b({spaceName:"",spaceDescription:"",date:new Date,time:Date.now()})}},isLoading:g,invitedMembersList:u,setInvitedMembersList:l,invitedAddressList:c,setInvitedAddressList:h,adminsList:d,setAdminsList:f,adminsAddressList:p,setAdminsAddressList:m,onClose:C})]})})},Ede=hf.div.withConfig({displayName:"SpaceCreationWidget__SCWContainer",componentId:"sc-rt5fqp-0"})(["font-family:'Strawford';"]);class Ade{constructor(e){this.account=void 0,this.signer=void 0,this.pgpPrivateKey=void 0,this.env=void 0,this.customSearch=void 0,this.SpaceBanner=e=>{const{spaceInfo:t,setSpaceInfo:r}=g6();return(0,Tf.jsx)(Mee,Object.assign({},e))},this.SpaceWidget=e=>{const{spaceId:t}=e,{spaceWidgetId:r}=g6(),[n,i]=(0,w.useState)(t);return(0,w.useEffect)((()=>{i(t)}),[t,i]),(0,w.useEffect)((()=>{r&&i(r)}),[r]),(0,Tf.jsx)(Vhe,Object.assign({},e,{spaceId:n}))},this.SpaceFeed=e=>(0,Tf.jsx)(zee,Object.assign({},e)),this.SpaceInvites=e=>(0,Tf.jsx)(Qhe,Object.assign({},e)),this.SpaceCreationButtonWidget=e=>(0,Tf.jsx)(_de,Object.assign({},e)),this.connectToSockets=()=>{const{setSpaceInfo:e,setTrendingListData:t}=g6()},this.init=()=>{this.connectToSockets()},this.account=e.account,this.signer=e.signer,this.pgpPrivateKey=e.pgpPrivateKey,this.env=e.env,this.customSearch=e.customSearch}}r(62827);const Mde=()=>(0,Tf.jsx)("svg",{width:"29",height:"28",viewBox:"0 0 29 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Tf.jsx)("path",{d:"M0.625 10.3438V26.3168C0.625 27.1922 1.67028 27.6451 2.30894 27.0463L7.89958 21.8051C8.0444 21.6693 8.23548 21.5938 8.434 21.5938H18.2031C24.028 21.5938 28.75 16.8718 28.75 11.0469C28.75 5.222 24.028 0.5 18.2031 0.5H10.4688C5.0322 0.5 0.625 4.9072 0.625 10.3438Z",fill:"white"})});r(20629);const Sde=({fill:e})=>(0,Tf.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:null!=e?e:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Tf.jsx)("path",{fill:"current",d:"M27.4625 3.24124L20.9125 26.4787C20.8033 26.8722 20.5755 27.2225 20.2602 27.4819C19.9448 27.7414 19.5572 27.8974 19.15 27.9287H18.975C18.5983 27.9279 18.2295 27.8207 17.9111 27.6194C17.5926 27.4182 17.3375 27.1311 17.175 26.7912L12.7125 17.3662C12.6687 17.2716 12.6548 17.1659 12.6727 17.0631C12.6906 16.9604 12.7394 16.8655 12.8125 16.7912L19.225 10.3787C19.3254 10.2878 19.4063 10.1774 19.4627 10.0542C19.5191 9.93107 19.55 9.79773 19.5533 9.6623C19.5566 9.52688 19.5324 9.39219 19.4821 9.26641C19.4318 9.14063 19.3565 9.02637 19.2607 8.93058C19.1649 8.8348 19.0507 8.75947 18.9249 8.70917C18.7991 8.65888 18.6644 8.63466 18.529 8.638C18.3936 8.64133 18.2602 8.67214 18.1371 8.72857C18.0139 8.785 17.9035 8.86585 17.8125 8.96624L11.4 15.3912C11.3258 15.4644 11.2309 15.5132 11.1282 15.5311C11.0254 15.549 10.9197 15.5351 10.825 15.4912L1.45004 11.0537C1.08311 10.8804 0.775053 10.6033 0.563988 10.2567C0.352924 9.91016 0.248118 9.50928 0.262542 9.10374C0.284668 8.68619 0.437922 8.28625 0.700498 7.96083C0.963074 7.63542 1.32159 7.40111 1.72504 7.29124L25.0125 0.728741C25.4198 0.612421 25.8536 0.628425 26.2512 0.774446C26.6488 0.920467 26.9898 1.18896 27.225 1.54124C27.3829 1.79158 27.4857 2.07261 27.5266 2.3657C27.5676 2.65879 27.5457 2.95723 27.4625 3.24124Z"})}),xde=({size:e=42,color:t})=>{const{theme:r}=(0,w.useContext)(f6);return(0,Tf.jsx)(Tde,{width:`${e}px`,children:(0,Tf.jsx)(Ree,{color:null!=t?t:r.btnColorPrimary})})},kde=df(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),Tde=hf.div.withConfig({displayName:"Spinner__SpinLoader",componentId:"sc-rmciqr-0"})(["display:flex;flex:initial;align-self:center;width:",";animation-name:",";animation-duration:2500ms;animation-iteration-count:infinite;animation-timing-function:linear;"],(e=>e.width),kde);r(98399);const Cde=()=>{const[e,t]=(0,w.useState)(!1),[r,n]=((0,w.useRef)(null),(0,w.useState)(!1)),[i,o]=(0,w.useState)(!1),{account:s,env:a,supportAddress:u,apiKey:l,theme:c,pushUser:h}=(0,w.useContext)(f6),{messageBeingSent:d,message:f,setMessage:p,setToastMessage:m,socketData:g,setToastType:y,connectedUser:v,chats:b,setChatsSorted:_}=(0,w.useContext)(p6),E=async e=>{if(e.preventDefault(),o(!0),""!==f.trim()&&v){const e=await h.chat.send(u,{type:"Text",content:f});e||(m(e),y("error"),o(!1)),"string"!=typeof e?(p(""),o(!1)):(m(e),y("error"),o(!1))}};return(0,Tf.jsx)(Ide,{theme:c,children:d?(0,Tf.jsx)(Rde,{children:"Loading..."}):(0,Tf.jsxs)(Tf.Fragment,{children:[(0,Tf.jsx)(Nde,{placeholder:"Type your message...",onKeyDown:e=>{13===e.keyCode&&E(e)},onChange:e=>{d||p(e.target.value)},value:f}),(0,Tf.jsxs)(Tf.Fragment,{children:[(0,Tf.jsx)("label",{}),r||i?(0,Tf.jsx)(xde,{size:"35"}):(0,Tf.jsx)("div",{onClick:E,children:(0,Tf.jsx)(Sde,{fill:c.btnColorPrimary})})]})]})})},Ide=hf.div.withConfig({displayName:"ChatInput__Container",componentId:"sc-1ksvjax-3"})(["padding:8px 10px 8px 8px;display:flex;align-items:center;justify-content:space-between;background:",";border:",";margin:10px 0;border-radius:16px;"],(e=>e.theme.bgColorPrimary||"#fff"),(e=>e.theme.border)),Nde=hf.textarea.withConfig({displayName:"ChatInput__TextInput",componentId:"sc-1ksvjax-5"})(["font-family:'Strawford';font-size:16px;width:100%;height:25px;outline:none;padding-top:4px;border:none;resize:none;background:transparent;color:black;&&::-webkit-scrollbar{width:0;height:0;}::placeholder{color:#494d5f;}"]),Rde=hf.div.withConfig({displayName:"ChatInput__ItemHV2",componentId:"sc-1ksvjax-8"})(["position:absolute;top:0;right:10px;bottom:0;justifycontent:flex-end;background:transparent;"]),Pde=()=>(0,Tf.jsx)("svg",{width:"12",height:"14",viewBox:"0 0 12 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Tf.jsx)("path",{d:"M6 14L0 8L1.4 6.6L6 11.175L10.6 6.6L12 8L6 14ZM6 8L0 2L1.4 0.6L6 5.175L10.6 0.6L12 2L6 8Z",fill:"#62626A"})}),Dde=()=>{const{modalTitle:e,theme:t}=(0,w.useContext)(f6),{isModalOpen:r,setIsModalOpen:n}=(0,w.useContext)(p6);return(0,Tf.jsxs)(Lde,{theme:t,children:[(0,Tf.jsx)(Bde,{theme:t,children:e}),(0,Tf.jsx)(Ode,{onClick:()=>z8({isModalOpen:r,setIsModalOpen:n}),children:(0,Tf.jsx)(jde,{children:(0,Tf.jsx)(Pde,{})})})]})},Lde=hf.div.withConfig({displayName:"ModalHeader__Container",componentId:"sc-yjqrej-0"})(["display:flex;border-bottom:",";align-items:center;justify-content:space-between;padding:17px;"],(e=>e.theme.border)),Ode=hf.div.withConfig({displayName:"ModalHeader__Section",componentId:"sc-yjqrej-1"})(["padding:10px 5px;cursor:pointer;"]),jde=hf.div.withConfig({displayName:"ModalHeader__Div",componentId:"sc-yjqrej-2"})(["display:flex;max-height:initial;vertical-align:middle;overflow:initial;cursor:pointer;justify-content:flex-end;"]),Bde=hf.span.withConfig({displayName:"ModalHeader__Span",componentId:"sc-yjqrej-3"})(["font-weight:500;font-size:20px;line-height:28px;display:flex;align-items:center;text-align:center;color:",";margin-left:27%;flex:none;order:0;flex-grow:0;"],(e=>e.theme.textColorPrimary||"#000")),Ude=({stroke:e,fill:t})=>(0,Tf.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:null!=t?t:"none",xmlns:"http://www.w3.org/2000/svg",cursor:"pointer",stroke:e,children:[(0,Tf.jsx)("path",{d:"M17.1865 13.7498V2.81226H6.24902",stroke:"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M14.0635 5.9375H3.12598V16.875H14.0635V5.9375Z",stroke:"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}),Fde=()=>{var e;const{supportAddress:t,env:r,theme:n,pushUser:i}=(0,w.useContext)(f6),[o,s]=(0,w.useState)(""),[a,u]=(0,w.useState)({}),[l,c]=(0,w.useState)(!1),h=L8(t);return(0,w.useEffect)((()=>{(async()=>{if(i){const e=await i.info();u(e)}})()}),[t,i]),(0,Tf.jsxs)(zde,{theme:n,children:[(0,Tf.jsxs)(Hde,{children:[(0,Tf.jsx)(Gde,{children:(0,Tf.jsx)(Yde,{src:null!=a&&null!=(e=a.profile)&&e.picture?null==a?void 0:a.profile.picture:W3.DEFAULT_PROFILE_PICTURE,alt:"address profile"})}),(0,Tf.jsxs)(Kde,{theme:n,children:[o&&`${o}`,!o&&`${h.substring(0,8)}...${h.substring(h.length-8)}`]})]}),!l&&(0,Tf.jsx)("div",{onClick:()=>{H8(h),c(!0)},children:(0,Tf.jsx)(Ude,{stroke:n.btnColorSecondary})}),l&&(0,Tf.jsx)("div",{onMouseLeave:()=>c(!1),children:(0,Tf.jsx)(Ude,{stroke:n.btnColorSecondary,fill:n.btnColorSecondary})})]})},zde=hf.div.withConfig({displayName:"AddressInfo__Container",componentId:"sc-f3zheg-0"})(["display:flex;align-items:center;justify-content:space-between;flex-direction:row;box-sizing:border-box;background:",";border:",";padding:5px 20px 5px 5px;margin:13px 0;border-radius:29px;"],(e=>e.theme.bgColorPrimary||"#fff"),(e=>e.theme.border)),Hde=hf.div.withConfig({displayName:"AddressInfo__Section",componentId:"sc-f3zheg-1"})(["display:flex;"]),Gde=hf.span.withConfig({displayName:"AddressInfo__ImgSpan",componentId:"sc-f3zheg-2"})(["display:flex;max-height:initial;vertical-align:middle;overflow:hidden;height:48px;width:47.5px;border-radius:99px;"]),Yde=hf.img.withConfig({displayName:"AddressInfo__Image",componentId:"sc-f3zheg-3"})(["width:100%;height:100%;"]),Kde=hf.span.withConfig({displayName:"AddressInfo__Span",componentId:"sc-f3zheg-4"})(["font-weight:500;font-size:17px;display:flex;flex-wrap:wrap;margin:0 10px;align-items:center;line-height:25px;letter-spacing:-0.019em;color:",";"],(e=>e.theme.textColorPrimary||"#000")),qde=()=>(0,Tf.jsxs)("svg",{width:"145",height:"18",viewBox:"0 0 145 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsx)("path",{d:"M1.592 12V10.056H2.728C3.808 10.056 4.616 9.216 4.616 8.2C4.616 7.2 3.768 6.4 2.728 6.4H0.752V12H1.592ZM1.592 7.16H2.592C3.248 7.16 3.728 7.608 3.728 8.2C3.728 8.816 3.248 9.28 2.592 9.28H1.592V7.16ZM9.69231 12.08C11.3243 12.08 12.6043 10.816 12.6043 9.2C12.6043 7.584 11.3243 6.32 9.69231 6.32C8.05231 6.32 6.78031 7.584 6.78031 9.2C6.78031 10.816 8.05231 12.08 9.69231 12.08ZM9.69231 11.264C8.52431 11.264 7.67631 10.352 7.67631 9.2C7.67631 8.048 8.52431 7.136 9.69231 7.136C10.8603 7.136 11.7163 8.048 11.7163 9.2C11.7163 10.352 10.8603 11.264 9.69231 11.264ZM17.1454 12.08L18.5854 7.816L20.0894 12.08H20.5614L22.3614 6.4H21.4654L20.2974 10.288L18.9614 6.4H18.2094L16.9374 10.288L15.7454 6.4H14.8494L16.6734 12.08H17.1454ZM28.2831 12V11.232H25.5871V9.488H28.0511V8.736H25.5871V7.168H28.2831V6.4H24.7551V12H28.2831ZM33.008 9.84H33.104C34.272 9.84 34.968 9.016 34.968 8.104C34.968 7.192 34.232 6.4 33.104 6.4H31.152V12H31.992V9.856L34.112 12H35.24L33.008 9.84ZM33.008 7.168C33.688 7.168 34.088 7.56 34.088 8.104C34.088 8.664 33.688 9.072 33.008 9.072H31.992V7.168H33.008ZM41.2566 12V11.232H38.5606V9.488H41.0246V8.736H38.5606V7.168H41.2566V6.4H37.7286V12H41.2566ZM46.1494 12C47.7174 12 48.9574 10.744 48.9574 9.192C48.9574 7.656 47.7174 6.4 46.1494 6.4H44.1254V12H46.1494ZM44.9654 7.176H46.0134C47.1654 7.176 48.0694 7.96 48.0694 9.192C48.0694 10.432 47.1654 11.224 46.0134 11.224H44.9654V7.176ZM57.5403 12C58.5163 12 59.2683 11.352 59.2683 10.384C59.2683 9.688 58.9003 9.248 58.5003 9.064C58.7323 8.92 59.0843 8.528 59.0843 7.944C59.0843 7.064 58.3723 6.4 57.4123 6.4H55.3723V12H57.5403ZM56.1963 7.144H57.3163C57.8363 7.144 58.2283 7.448 58.2283 7.96C58.2283 8.528 57.8363 8.8 57.3163 8.8H56.1963V7.144ZM56.1963 9.52H57.4523C58.0523 9.52 58.4123 9.896 58.4043 10.384C58.4043 10.872 58.0683 11.272 57.4523 11.272H56.1963V9.52ZM64.0884 12V9.96L66.1764 6.4H65.2004L63.6484 9.136L62.0964 6.4H61.1124L63.2324 9.976V12H64.0884Z",fill:"#494D5F"}),(0,Tf.jsx)("path",{d:"M94.388 13V10.084H96.092C97.712 10.084 98.924 8.824 98.924 7.3C98.924 5.8 97.652 4.6 96.092 4.6H93.128V13H94.388ZM94.388 5.74H95.888C96.872 5.74 97.592 6.412 97.592 7.3C97.592 8.224 96.872 8.92 95.888 8.92H94.388V5.74ZM102.098 13.132C103.718 13.132 104.51 12.004 104.51 10.636V7.552H103.37V10.66C103.37 11.5 102.878 12.04 102.098 12.04C101.306 12.04 100.826 11.5 100.826 10.66V7.552H99.6865V10.636C99.6865 12.004 100.466 13.132 102.098 13.132ZM107.386 13.132C108.766 13.132 109.474 12.328 109.474 11.416C109.474 10.6 109.006 9.94 107.602 9.688C107.038 9.592 106.678 9.412 106.678 8.992C106.678 8.668 106.954 8.404 107.446 8.404C107.842 8.404 108.226 8.632 108.346 9.04L109.294 8.608C109.042 7.912 108.394 7.42 107.434 7.42C106.246 7.42 105.538 8.164 105.538 9.004C105.538 10.144 106.45 10.552 107.374 10.72C107.962 10.84 108.322 11.032 108.322 11.44C108.322 11.836 107.986 12.076 107.398 12.076C106.942 12.076 106.534 11.812 106.354 11.392L105.358 11.848C105.658 12.544 106.294 13.132 107.386 13.132ZM111.636 13V9.928C111.636 9.064 112.2 8.488 112.956 8.488C113.724 8.488 114.204 9.028 114.204 9.808V13H115.344V9.568C115.344 8.356 114.468 7.42 113.184 7.42C112.416 7.42 111.888 7.768 111.636 8.08V4.6H110.496V13H111.636ZM123.704 13.12C125.288 13.12 126.62 12.352 127.352 11.164L126.272 10.516C125.768 11.332 124.844 11.896 123.704 11.896C122 11.896 120.692 10.54 120.692 8.8C120.692 7.06 122 5.704 123.704 5.704C124.844 5.704 125.768 6.256 126.272 7.084L127.352 6.424C126.608 5.248 125.324 4.48 123.704 4.48C121.268 4.48 119.36 6.376 119.36 8.8C119.36 11.224 121.268 13.12 123.704 13.12ZM129.666 13V9.928C129.666 9.064 130.23 8.488 130.986 8.488C131.754 8.488 132.234 9.028 132.234 9.808V13H133.374V9.568C133.374 8.356 132.498 7.42 131.214 7.42C130.446 7.42 129.918 7.768 129.666 8.08V4.6H128.526V13H129.666ZM136.625 13.132C137.477 13.132 138.053 12.712 138.257 12.4V13H139.313V9.556C139.313 8.452 138.473 7.42 136.937 7.42C135.797 7.42 135.053 8.032 134.705 8.812L135.557 9.364C135.773 8.848 136.205 8.452 136.937 8.452C137.765 8.452 138.161 8.92 138.161 9.28C138.161 9.58 137.945 9.784 137.597 9.784H136.349C135.293 9.784 134.525 10.396 134.525 11.356C134.525 12.34 135.341 13.132 136.625 13.132ZM136.721 12.148C136.073 12.148 135.713 11.8 135.713 11.368C135.713 10.972 136.025 10.672 136.481 10.672H138.185V10.744C138.185 11.56 137.633 12.148 136.721 12.148ZM143.918 13.072V12.016H143.27C142.754 12.016 142.274 11.752 142.274 11.02V8.548H143.918V7.552H142.274V6.232H141.434V6.256C141.434 7.228 140.846 7.72 140.21 7.72H140.174V8.548H141.134V11.128C141.134 12.436 141.926 13.072 143.126 13.072H143.918Z",fill:"black"}),(0,Tf.jsx)("path",{d:"M81.4773 16.2944C81.9092 16.2941 82.3317 16.1728 82.6935 15.9452C83.0553 15.7176 83.3408 15.3935 83.5151 15.0123C83.5353 14.97 83.544 14.9234 83.5404 14.877C83.5368 14.8306 83.5211 14.7858 83.4947 14.7469C83.4683 14.7079 83.432 14.6761 83.3894 14.6543C83.3467 14.6326 83.299 14.6216 83.2508 14.6225H79.7038C79.6556 14.6217 79.608 14.6328 79.5654 14.6546C79.5229 14.6764 79.4867 14.7082 79.4604 14.7472C79.4341 14.7861 79.4184 14.8308 79.4148 14.8772C79.4113 14.9236 79.42 14.97 79.4401 15.0123C79.6145 15.3934 79.8998 15.7174 80.2614 15.945C80.6231 16.1726 81.0455 16.294 81.4773 16.2944V16.2944Z",fill:"url(#paint0_linear_3808_9309)"}),(0,Tf.jsx)("path",{d:"M86.9221 12.5533C86.6451 12.5533 86.3794 12.4471 86.1835 12.2581C85.9876 12.0691 85.8775 11.8128 85.8775 11.5455V7.88416C85.8773 6.94002 85.5509 6.02288 84.95 5.27774C84.349 4.53261 83.5077 4.00199 82.5592 3.76978C82.5244 3.5131 82.3938 3.27746 82.1919 3.10698C81.99 2.9365 81.7306 2.84287 81.4623 2.84363C81.194 2.84439 80.9351 2.93948 80.7342 3.1111C80.5334 3.28272 80.4042 3.51909 80.371 3.77596C79.525 3.9893 78.7641 4.44078 78.185 5.07287C77.606 5.70497 77.2351 6.48907 77.1196 7.32526C77.1196 7.35069 77.1125 7.37544 77.1097 7.40088C77.1068 7.42631 77.1018 7.46962 77.099 7.504C77.0961 7.53837 77.0933 7.57274 77.0904 7.60643C77.0876 7.64011 77.0869 7.66348 77.0854 7.69236C77.0854 7.75079 77.0812 7.80854 77.0805 7.86766V11.5448C77.0805 11.8108 76.9715 12.066 76.7773 12.2548C76.5831 12.4436 76.3194 12.5506 76.0437 12.5526C75.9789 12.5519 75.9147 12.5635 75.8546 12.5867C75.7945 12.61 75.7397 12.6444 75.6934 12.6881C75.647 12.7317 75.6101 12.7838 75.5846 12.8412C75.5592 12.8986 75.5457 12.9604 75.5449 13.0228V13.027C75.5449 13.1528 75.5967 13.2734 75.6889 13.3624C75.7811 13.4513 75.9062 13.5013 76.0366 13.5013H86.9221C87.0492 13.4966 87.1694 13.4446 87.2576 13.3563C87.3458 13.2679 87.395 13.15 87.395 13.0273C87.395 12.9046 87.3458 12.7867 87.2576 12.6983C87.1694 12.61 87.0492 12.558 86.9221 12.5533V12.5533Z",fill:"url(#paint1_linear_3808_9309)"}),(0,Tf.jsx)("path",{d:"M84.6296 3.05068C85.2306 3.17935 85.7742 3.48793 86.1826 3.93237C86.5911 4.37681 86.8436 4.93438 86.904 5.52549C86.9069 5.55738 86.9163 5.58841 86.9316 5.61677C86.947 5.64514 86.9681 5.67028 86.9936 5.69074C87.0191 5.7112 87.0486 5.72657 87.0803 5.73597C87.112 5.74536 87.1453 5.7486 87.1784 5.74548C87.2449 5.73934 87.3063 5.70824 87.3494 5.65886C87.3706 5.63427 87.3865 5.60588 87.3963 5.57532C87.4061 5.54477 87.4095 5.51265 87.4064 5.48081C87.3405 4.78434 87.0458 4.12637 86.5653 3.60271C86.0848 3.07906 85.4436 2.71707 84.735 2.56946C84.7177 2.56597 84.7 2.56413 84.6823 2.56396C84.6201 2.56411 84.5602 2.58642 84.514 2.62661C84.4678 2.66681 84.4386 2.72205 84.4321 2.78174C84.4255 2.84142 84.4421 2.90133 84.4785 2.94995C84.515 2.99858 84.5688 3.03249 84.6296 3.04518V3.05068Z",fill:"url(#paint2_linear_3808_9309)"}),(0,Tf.jsx)("path",{d:"M84.9128 1.48117C85.8483 1.68062 86.6944 2.16038 87.3302 2.85182C87.9661 3.54327 88.3589 4.41099 88.4527 5.33088C88.4557 5.36273 88.4651 5.39371 88.4805 5.42203C88.4959 5.45035 88.517 5.47546 88.5425 5.4959C88.568 5.51635 88.5974 5.53172 88.6291 5.54116C88.6607 5.55059 88.694 5.55389 88.727 5.55086C88.7936 5.54473 88.855 5.51362 88.898 5.46424C88.9192 5.43965 88.9352 5.41126 88.945 5.38071C88.9547 5.35015 88.9582 5.31803 88.955 5.28619C88.855 4.26214 88.4196 3.29542 87.7119 2.52612C87.0042 1.75683 86.061 1.22493 85.019 1.00751C85.0016 1.00402 84.9839 1.00218 84.9662 1.00201C84.904 1.00199 84.8439 1.02418 84.7976 1.06432C84.7512 1.10446 84.7219 1.15971 84.7153 1.21945C84.7087 1.27918 84.7252 1.33916 84.7616 1.38786C84.7981 1.43656 84.8519 1.47053 84.9128 1.48323V1.48117Z",fill:"url(#paint3_linear_3808_9309)"}),(0,Tf.jsx)("path",{d:"M78.3258 3.05061C78.3866 3.03792 78.4404 3.00401 78.4768 2.95539C78.5133 2.90676 78.5298 2.84685 78.5233 2.78717C78.5167 2.72749 78.4876 2.67224 78.4414 2.63205C78.3952 2.59185 78.3352 2.56954 78.273 2.5694C78.2553 2.56957 78.2376 2.57141 78.2203 2.5749C77.5129 2.72209 76.8726 3.08297 76.3922 3.60513C75.9118 4.12729 75.6165 4.78356 75.549 5.47868C75.5458 5.51052 75.5493 5.54264 75.5591 5.57319C75.5688 5.60375 75.5848 5.63214 75.606 5.65673C75.627 5.68147 75.653 5.70188 75.6824 5.71676C75.7118 5.73164 75.7439 5.74068 75.777 5.74335C75.81 5.74647 75.8433 5.74323 75.8751 5.73384C75.9068 5.72444 75.9362 5.70907 75.9618 5.68861C75.9873 5.66815 76.0083 5.64301 76.0237 5.61464C76.0391 5.58628 76.0485 5.55525 76.0513 5.52336C76.1122 4.93262 76.3649 4.37551 76.7733 3.93148C77.1817 3.48745 77.725 3.17917 78.3258 3.05061V3.05061Z",fill:"url(#paint4_linear_3808_9309)"}),(0,Tf.jsx)("path",{d:"M78.0427 1.48121C78.1035 1.46853 78.1573 1.43461 78.1937 1.38599C78.2302 1.33736 78.2467 1.27745 78.2402 1.21777C78.2337 1.15809 78.2045 1.10284 78.1583 1.06265C78.1121 1.02245 78.0521 1.00014 77.9899 1C77.9722 1.00013 77.9546 1.00197 77.9372 1.0055C76.8952 1.22292 75.9519 1.75482 75.2443 2.52411C74.5366 3.2934 74.1011 4.26013 74.0011 5.28418C73.998 5.31601 74.0014 5.34813 74.0112 5.37869C74.021 5.40925 74.0369 5.43764 74.0581 5.46223C74.0792 5.48697 74.1052 5.50738 74.1345 5.52226C74.1639 5.53714 74.1961 5.54618 74.2291 5.54884C74.2621 5.55187 74.2954 5.54857 74.3271 5.53914C74.3588 5.52971 74.3882 5.51433 74.4137 5.49389C74.4392 5.47344 74.4603 5.44834 74.4757 5.42002C74.4911 5.3917 74.5005 5.36072 74.5035 5.32886C74.5977 4.40947 74.9907 3.54234 75.6263 2.85133C76.262 2.16031 77.1077 1.68078 78.0427 1.48121V1.48121Z",fill:"url(#paint5_linear_3808_9309)"}),(0,Tf.jsxs)("defs",{children:[(0,Tf.jsxs)("linearGradient",{id:"paint0_linear_3808_9309",x1:"83.8614",y1:"11.0044",x2:"81.1098",y2:"15.8527",gradientUnits:"userSpaceOnUse",children:[(0,Tf.jsx)("stop",{"stop-color":"#FF94A6"}),(0,Tf.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,Tf.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]}),(0,Tf.jsxs)("linearGradient",{id:"paint1_linear_3808_9309",x1:"85.2526",y1:"5.7345",x2:"79.4177",y2:"14.3293",gradientUnits:"userSpaceOnUse",children:[(0,Tf.jsx)("stop",{"stop-color":"#FF94A6"}),(0,Tf.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,Tf.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]}),(0,Tf.jsxs)("linearGradient",{id:"paint2_linear_3808_9309",x1:"90.186",y1:"1.42074",x2:"75.6444",y2:"11.4259",gradientUnits:"userSpaceOnUse",children:[(0,Tf.jsx)("stop",{"stop-color":"#FF94A6"}),(0,Tf.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,Tf.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]}),(0,Tf.jsxs)("linearGradient",{id:"paint3_linear_3808_9309",x1:"90.0467",y1:"1.21856",x2:"75.5051",y2:"11.223",gradientUnits:"userSpaceOnUse",children:[(0,Tf.jsx)("stop",{"stop-color":"#FF94A6"}),(0,Tf.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,Tf.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]}),(0,Tf.jsxs)("linearGradient",{id:"paint4_linear_3808_9309",x1:"87.4086",y1:"-2.61534",x2:"72.8677",y2:"7.38912",gradientUnits:"userSpaceOnUse",children:[(0,Tf.jsx)("stop",{"stop-color":"#FF94A6"}),(0,Tf.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,Tf.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]}),(0,Tf.jsxs)("linearGradient",{id:"paint5_linear_3808_9309",x1:"86.678",y1:"-3.67671",x2:"72.1427",y2:"6.32344",gradientUnits:"userSpaceOnUse",children:[(0,Tf.jsx)("stop",{"stop-color":"#FF94A6"}),(0,Tf.jsx)("stop",{offset:"0.32","stop-color":"#E03DC1"}),(0,Tf.jsx)("stop",{offset:"1","stop-color":"#8247E5"})]})]})]}),Wde=({fill:e})=>(0,Tf.jsx)("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:null!=e?e:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Tf.jsx)("path",{fill:"current",d:"M21.5035 10.1562L19.5504 6.76758C19.318 6.37006 18.9893 6.03742 18.5945 5.8003C18.1998 5.56318 17.7517 5.42921 17.2916 5.41073C16.8315 5.39225 16.3742 5.48985 15.9617 5.69454C15.5492 5.89923 15.1948 6.20444 14.9313 6.58203L13.2418 3.65234C12.8782 3.02407 12.2805 2.56547 11.5794 2.37695C10.8784 2.18843 10.1313 2.28535 9.50159 2.64648C9.10956 2.87792 8.77818 3.19925 8.53479 3.58398C8.21364 3.29612 7.82874 3.08861 7.41175 2.97852C7.06616 2.88129 6.7044 2.85539 6.34848 2.9024C5.99256 2.9494 5.64993 3.06833 5.34143 3.25195C5.02972 3.43014 4.75629 3.66818 4.53688 3.9524C4.31746 4.23661 4.15639 4.56139 4.06291 4.90806C3.96944 5.25473 3.94541 5.61646 3.9922 5.97246C4.03899 6.32845 4.15569 6.67168 4.33558 6.98242L4.66761 7.54883C4.26168 7.58348 3.8683 7.70682 3.51526 7.91016C2.89128 8.27535 2.43664 8.87204 2.25012 9.57056C2.0636 10.2691 2.16029 11.013 2.51917 11.6406L6.62073 18.75C7.17614 19.7442 7.92361 20.6181 8.8197 21.3209C9.71579 22.0237 10.7426 22.5413 11.8405 22.8438C12.9384 23.1463 14.0855 23.2275 15.2151 23.0828C16.3447 22.9381 17.4342 22.5704 18.4204 22.0009C19.4066 21.4314 20.2698 20.6716 20.9598 19.7657C21.6498 18.8597 22.1529 17.8256 22.4398 16.7235C22.7266 15.6214 22.7916 14.4733 22.6309 13.3459C22.4701 12.2185 22.0869 11.1343 21.5035 10.1562ZM20.8492 16.2695C20.6146 17.1624 20.2044 17.9997 19.6427 18.7324C19.0811 19.4651 18.3791 20.0786 17.5778 20.5371C15.9624 21.4687 14.0435 21.7215 12.242 21.24C10.4405 20.7585 8.90353 19.5821 7.96839 17.9688L3.86683 10.8594C3.71143 10.59 3.66939 10.27 3.74998 9.9696C3.83056 9.66925 4.02715 9.41321 4.29651 9.25781C4.56587 9.10241 4.88593 9.06038 5.18629 9.14096C5.48664 9.22154 5.74268 9.41814 5.89808 9.6875L8.04651 13.4082C8.09781 13.4973 8.16616 13.5755 8.24766 13.6382C8.32916 13.7009 8.42222 13.747 8.52152 13.7737C8.62081 13.8005 8.72441 13.8074 8.82638 13.7941C8.92836 13.7808 9.02672 13.7476 9.11585 13.6963C9.20498 13.645 9.28313 13.5766 9.34585 13.4951C9.40856 13.4136 9.45461 13.3206 9.48136 13.2213C9.50811 13.122 9.51504 13.0184 9.50176 12.9164C9.48847 12.8144 9.45523 12.7161 9.40393 12.627L7.2555 8.90625L5.693 6.20117C5.53771 5.93218 5.49556 5.61255 5.57581 5.3125C5.61458 5.16311 5.68296 5.02302 5.7769 4.90056C5.87085 4.7781 5.98843 4.67576 6.12268 4.59961C6.39167 4.44432 6.71131 4.40217 7.01136 4.48242C7.30987 4.56745 7.56479 4.763 7.72425 5.0293L8.49573 6.38672H8.5055L11.0446 10.7812C11.1105 10.9017 11.2082 11.0017 11.327 11.0706C11.4457 11.1395 11.5811 11.1745 11.7184 11.1719C11.8562 11.1746 11.9919 11.1373 12.109 11.0645C12.2872 10.9604 12.4171 10.7901 12.4701 10.5906C12.5232 10.3912 12.4952 10.1789 12.3922 10L9.85315 5.60547C9.69775 5.33611 9.65572 5.01605 9.7363 4.7157C9.81688 4.41535 10.0135 4.15931 10.2828 4.00391C10.5522 3.84851 10.8723 3.80647 11.1726 3.88706C11.473 3.96764 11.729 4.16423 11.8844 4.43359L14.8141 9.50195L15.4293 10.5762C14.5783 11.2844 14.0048 12.2705 13.81 13.3604C13.6153 14.4504 13.8118 15.5741 14.3649 16.5332C14.4765 16.6951 14.645 16.809 14.8369 16.8521C15.0288 16.8952 15.2298 16.8643 15.3999 16.7657C15.5701 16.6671 15.6967 16.5079 15.7547 16.32C15.8126 16.1321 15.7976 15.9293 15.7125 15.752C15.2984 15.0345 15.1862 14.1819 15.4004 13.3816C15.6147 12.5814 16.1379 11.899 16.8551 11.4844C16.9454 11.4329 17.0246 11.3641 17.0883 11.282C17.1519 11.1999 17.1988 11.1061 17.2262 11.0059C17.2739 10.8076 17.246 10.5987 17.1481 10.4199L16.1715 8.7207C16.0584 8.52014 16.007 8.2907 16.0235 8.06105C16.04 7.8314 16.1238 7.61171 16.2645 7.42941C16.4051 7.2471 16.5963 7.11027 16.8143 7.03598C17.0322 6.9617 17.2672 6.95326 17.4899 7.01172C17.6367 7.05051 17.7744 7.11792 17.895 7.2101C18.0157 7.30228 18.117 7.41739 18.193 7.54883L20.1461 10.9375C20.613 11.7344 20.9158 12.6167 21.0366 13.5325C21.1573 14.4482 21.0936 15.3788 20.8492 16.2695ZM8.56409 23.8867C8.49035 23.9889 8.39355 24.0722 8.28155 24.1299C8.16956 24.1875 8.04554 24.218 7.91956 24.2188C7.75987 24.2168 7.60404 24.1694 7.47034 24.082C6.04995 23.1006 4.86846 21.8123 4.01331 20.3125C3.95217 20.2238 3.91003 20.1234 3.88955 20.0176C3.86907 19.9119 3.87068 19.803 3.8943 19.6979C3.91791 19.5928 3.96301 19.4937 4.02675 19.4068C4.0905 19.32 4.17153 19.2473 4.26473 19.1932C4.35794 19.1392 4.46131 19.105 4.56836 19.0929C4.6754 19.0807 4.78381 19.0908 4.88676 19.1225C4.98971 19.1543 5.08498 19.207 5.16659 19.2773C5.2482 19.3477 5.31437 19.4341 5.36097 19.5312C6.10722 20.8296 7.13502 21.9442 8.36878 22.793C8.53855 22.913 8.65424 23.0951 8.69079 23.2998C8.72734 23.5045 8.68182 23.7153 8.56409 23.8867ZM16.4059 3.02734C16.4059 2.82014 16.4882 2.62143 16.6347 2.47492C16.7812 2.3284 16.9799 2.24609 17.1871 2.24609C18.2159 2.24741 19.2263 2.51867 20.1174 3.03277C21.0086 3.54688 21.7492 4.28582 22.2653 5.17578C22.3172 5.2646 22.3508 5.3629 22.3641 5.4649C22.3775 5.5669 22.3703 5.67053 22.343 5.76971C22.3157 5.86889 22.2688 5.96161 22.2052 6.04242C22.1415 6.12322 22.0623 6.19048 21.9723 6.24023C21.8557 6.31413 21.7197 6.35154 21.5817 6.34766C21.445 6.34717 21.3108 6.31085 21.1926 6.2423C21.0744 6.17376 20.9762 6.07539 20.9078 5.95703C20.5308 5.3039 19.9884 4.76152 19.3353 4.38439C18.6822 4.00727 17.9413 3.80868 17.1871 3.80859C16.9799 3.80859 16.7812 3.72628 16.6347 3.57977C16.4882 3.43326 16.4059 3.23454 16.4059 3.02734Z"})}),Vde=({msg:e,caip10:t,messageBeingSent:r})=>{var n,i,o;const{theme:s}=(0,w.useContext)(f6),{connectedUser:a}=(0,w.useContext)(p6),[u,l]=(0,w.useState)(!1),[c,h]=(0,w.useState)(""),d=(e=>{let t,r;r="string"==typeof e?parseInt(e):e;const n=new Date(r);if(!isNaN(n.getTime())){const e=n.toLocaleTimeString("en-US");t=e.slice(0,-6)+e.slice(-2)}return t})(e.timestamp);return(0,Tf.jsx)($de,{children:(0,Tf.jsx)(Tf.Fragment,{children:"Text"===e.messageType||null!=(n=e.message)&&n.type?(0,Tf.jsx)(Tf.Fragment,{children:e.fromCAIP10===t||e.from===t?(0,Tf.jsx)(Zde,{align:"row-reverse",children:(0,Tf.jsxs)(efe,{theme:s,children:[(0,Tf.jsx)(Qde,{children:e.messageContent||(null==(i=e.message)?void 0:i.content)}),void 0!==e.timestamp&&(0,Tf.jsx)(Jde,{children:d})]})}):(0,Tf.jsx)(Zde,{align:"row",children:(0,Tf.jsxs)(Xde,{theme:s,children:[(null==e?void 0:e.icon)&&e.icon,(0,Tf.jsx)(Qde,{children:(null==(o=e.message)?void 0:o.content)||e.messageContent}),void 0!==e.timestamp&&(0,Tf.jsx)(Jde,{children:d})]})})}):null})})},$de=hf.div.withConfig({displayName:"Chats__Container",componentId:"sc-bx8urd-0"})(["display:flex;flex-direction:column;"]),Qde=hf.p.withConfig({displayName:"Chats__TextMessage",componentId:"sc-bx8urd-3"})(["word-wrap:break-word;padding:0 45px 6px 4px;text-align:left;font-weight:400;font-size:15px;line-height:130%;margin:0px;"]),Jde=hf.span.withConfig({displayName:"Chats__TimeStamp",componentId:"sc-bx8urd-4"})(["min-width:44px;font-weight:400;font-size:13px;line-height:130%;display:flex;justify-content:flex-end;align-items:flex-end;position:absolute;right:10px;bottom:5px;"]),Zde=hf.div.withConfig({displayName:"Chats__MessageWrapper",componentId:"sc-bx8urd-5"})(["width:100%;min-height:",";padding:0;margin-bottom:10px;display:flex;flex-direction:",";"],(e=>e.height||"48px"),(e=>e.align||"row")),Xde=hf.div.withConfig({displayName:"Chats__ReceivedMessage",componentId:"sc-bx8urd-6"})(["box-sizing:border-box;position:relative;max-width:250px;padding:",";background:",";text-align:left;border:",";border-radius:2px 16px 16px 16px;display:flex;justify-content:space-between;align-items:center;color:",";"],(e=>e.padding||"12px 15px 12px 11px"),(e=>e.theme.bgColorPrimary||"#ffffff"),(e=>e.theme.border),(e=>e.theme.textColorPrimary||"#000")),efe=hf.div.withConfig({displayName:"Chats__SenderMessage",componentId:"sc-bx8urd-7"})(["box-sizing:border-box;position:relative;max-width:250px;text-align:left;padding:",";background:",";border:",";border-radius:16px 2px 16px 16px;display:flex;justify-content:flex-strt;align-items:center;color:",";"],(e=>e.padding||"12px 15px 12px 11px"),(e=>e.theme.bgColorSecondary||"#ca599b"),(e=>e.theme.border),(e=>e.theme.textColorSecondary||"#ffffff")),tfe=()=>(0,Tf.jsx)("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Tf.jsx)("path",{d:"M13 0C10.4288 0 7.91543 0.762437 5.77759 2.1909C3.63975 3.61935 1.97351 5.64968 0.989572 8.02512C0.0056327 10.4006 -0.251811 13.0144 0.249797 15.5362C0.751405 18.0579 1.98953 20.3743 3.80762 22.1924C5.6257 24.0105 7.94208 25.2486 10.4638 25.7502C12.9856 26.2518 15.5995 25.9944 17.9749 25.0104C20.3503 24.0265 22.3807 22.3603 23.8091 20.2224C25.2376 18.0846 26 15.5712 26 13C25.9934 9.55422 24.6216 6.25145 22.1851 3.81491C19.7486 1.37837 16.4458 0.00660747 13 0ZM12 7C12 6.73478 12.1054 6.48043 12.2929 6.29289C12.4804 6.10536 12.7348 6 13 6C13.2652 6 13.5196 6.10536 13.7071 6.29289C13.8946 6.48043 14 6.73478 14 7V14C14 14.2652 13.8946 14.5196 13.7071 14.7071C13.5196 14.8946 13.2652 15 13 15C12.7348 15 12.4804 14.8946 12.2929 14.7071C12.1054 14.5196 12 14.2652 12 14V7ZM13 20C12.7033 20 12.4133 19.912 12.1667 19.7472C11.92 19.5824 11.7277 19.3481 11.6142 19.074C11.5007 18.7999 11.471 18.4983 11.5288 18.2074C11.5867 17.9164 11.7296 17.6491 11.9393 17.4393C12.1491 17.2296 12.4164 17.0867 12.7074 17.0288C12.9983 16.9709 13.2999 17.0007 13.574 17.1142C13.8481 17.2277 14.0824 17.42 14.2472 17.6666C14.412 17.9133 14.5 18.2033 14.5 18.5C14.5 18.8978 14.342 19.2794 14.0607 19.5607C13.7794 19.842 13.3978 20 13 20Z",fill:"#E93636"})}),rfe=({message:e,type:t})=>{const{theme:r}=(0,w.useContext)(f6),{setToastMessage:n}=(0,w.useContext)(p6);(0,w.useEffect)((()=>{const e=setInterval((()=>{i()}),5e3);return()=>clearInterval(e)}),[]);const i=()=>{n("")};return(0,Tf.jsxs)(nfe,{theme:r,type:t,children:["error"===t&&(0,Tf.jsx)(tfe,{}),(0,Tf.jsx)(ife,{children:e}),(0,Tf.jsx)("div",{onClick:()=>i(),children:(0,Tf.jsx)(Rle,{})})]})},nfe=hf.div.withConfig({displayName:"Toaster__Container",componentId:"sc-1vzs537-0"})(["display:flex;box-sizing:border-box;justify-content:space-between;"," box-shadow:0px 0px 10px rgba(0,0,0,0.1);border-radius:16px;padding:13px;margin-bottom:6px;"],(e=>"error"===e.type&&uf(["background:linear-gradient( 90.15deg,#ff2070 -125.65%,#ff2d79 -125.63%,#fff9fb 42.81% );"]))),ife=hf.span.withConfig({displayName:"Toaster__Span",componentId:"sc-1vzs537-1"})(["font-family:'Strawford';font-style:normal;font-weight:400;font-size:15px;line-height:140%;display:flex;align-items:center;color:#657795;padding:0 20px 0 5px;"]),ofe=hf.span.withConfig({displayName:"sharedStyling__Span",componentId:"sc-lhr0ta-0"})(["align-self:",";background:",";border-radius:",";border:",";bottom:",";color:",";flex:",";font-size:",";font-weight:",";left:",";letter-spacing:",";line-height:",";cursor:",";margin:",";padding:",";position:",";right:",";text-align:",";text-transform:",";top:",";width:",";z-index:",";max-width:",";"],(e=>e.alignSelf||"auto"),(e=>e.background||"transparent"),(e=>e.borderRadius||"initial"),(e=>e.border||"initial"),(e=>e.bottom||"auto"),(e=>e.color||"inherit"),(e=>e.flex||"initial"),(e=>e.fontSize||"inherit"),(e=>e.fontWeight||"300"),(e=>e.left||"auto"),(e=>e.letterSpacing||"inherit"),(e=>e.lineHeight||"initial"),(e=>e.cursor||"default"),(e=>e.margin||"0px"),(e=>e.padding||"0px"),(e=>e.position||"relative"),(e=>e.right||"auto"),(e=>e.textAlign||"center"),(e=>e.textTransform||"inherit"),(e=>e.top||"auto"),(e=>e.width||"auto"),(e=>e.zIndex||"auto"),(e=>e.maxWidth||"initial")),sfe=hf.div.withConfig({displayName:"sharedStyling__Section",componentId:"sc-lhr0ta-1"})(["display:flex;cursor:",";flex:",";flex-direction:",";gap:",";align-items:",";justify-content:",";align-self:",";margin:",";min-height:",";max-height:",";max-width:",";min-width:",";height:",";width:",";overflow:",";padding:",";position:",";background:",";right:",";top:",";bottom:",";left:",";border-radius:",";border-width:",";border-color:",";border-style:",";z-index:",";"],(e=>e.cursor||"default"),(e=>e.flex||"default"),(e=>e.flexDirection||"row"),(e=>e.gap||"0px"),(e=>e.alignItems||"center"),(e=>e.justifyContent||"center"),(e=>e.alignSelf||"stretch"),(e=>e.margin||"0px"),(e=>e.minHeight||"auto"),(e=>e.maxHeight||"auto"),(e=>e.maxWidth||"auto"),(e=>e.minWidth||"auto"),(e=>e.height||"auto"),(e=>e.width||"auto"),(e=>e.overflow||"default"),(e=>e.padding||"0px"),(e=>e.position||"relative"),(e=>e.gradient?e.gradient:e.background?e.background:"transparent"),(e=>e.right||"auto"),(e=>e.top||"auto"),(e=>e.bottom||"auto"),(e=>e.left||"auto"),(e=>e.borderRadius||"0px"),(e=>e.borderWidth||"initial"),(e=>e.borderColor||"initial"),(e=>e.borderStyle||"initial"),(e=>e.zIndex||"0")),afe=hf.img.withConfig({displayName:"sharedStyling__Image",componentId:"sc-lhr0ta-2"})(["display:",";height:",";max-height:",";padding:",";width:",";margin:",";vertical-align:",";border-radius:",";overflow:",";cursor:",";filter:",";alt:",";object-fit:",";"],(e=>e.display||"flex"),(e=>e.height||"auto"),(e=>e.maxHeight||"initial"),(e=>e.padding||"0px"),(e=>e.width||"100%"),(e=>e.margin||"0px"),(e=>e.verticalAlign||"auto"),(e=>e.borderRadius||"initial"),(e=>e.overflow||"hidden"),(e=>e.cursor||"default"),(e=>e.filter||"none"),(e=>e.alt||"Image"),(e=>e.objectFit||"fill")),ufe=hf.div.withConfig({displayName:"sharedStyling__Div",componentId:"sc-lhr0ta-3"})(["height:",";width:",";margin:",";cursor:",";align-self:",";text-align:",";"],(e=>e.height||"auto"),(e=>e.width||"100%"),(e=>e.margin||"0px"),(e=>e.cursor||"default"),(e=>e.alignSelf||"center"),(e=>e.textAlign||"default")),lfe=()=>{const[e,t]=(0,w.useState)(!1),[r,n]=(0,w.useState)(null),[i,o]=(0,w.useState)(!1),{supportAddress:s,pushUser:a,env:u,account:l,signer:c,greetingMsg:h,theme:d}=(0,w.useContext)(f6),{chats:f,setChatsSorted:p,connectedUser:m,setConnectedUser:g,toastMessage:y,toastType:v,setToastMessage:b,setToastType:_,socketData:E}=(0,w.useContext)(p6),A=(e=>{const t=w.useRef(null);return w.useEffect((()=>{t.current&&(t.current.scrollTop=0)}),[e]),t})(0),M={fromDID:D8(s),toDID:D8(l),fromCAIP10:D8(s),toCAIP10:D8(l),messageContent:h,messageType:"Text",signature:"",encType:"",encryptedSecret:"",sigType:"",link:null,timestamp:void 0,icon:(0,Tf.jsx)(Wde,{fill:d.btnColorPrimary})},S=async()=>{if(!m)return;if(i&&!r)return;t(!0);const{chatsResponse:e,lastThreadHash:c,lastListPresent:h}=await(async e=>{var t;const{account:r,pgpPrivateKey:n,supportAddress:i,pushUser:o,threadHash:s=null,limit:a=40,env:u=W3.ENV.PROD}=e||{},l=await(null==o?void 0:o.chat.history(i));return{chatsResponse:l,lastThreadHash:null==(t=l[l.length-1])?void 0:t.link,lastListPresent:l.length>0}})({account:l,pushUser:a,supportAddress:s,threadHash:r,limit:10,env:u});p([...f,...e]),n(c),o(h),t(!1)},x=async()=>{t(!0);try{var e,r;if(null==(e=E.epnsSDKSocket)||!e.connected)null==(r=E.epnsSDKSocket)||r.connect();const n=await(async e=>{const{pushUser:t}=e||{};let r;if(t)return r=await t.info(),Object.assign({},r,{privateKey:r.encryptedPrivateKey})})({account:l,signer:c,env:u,pushUser:a});g(n),t(!1)}catch(dVe){t(!1),b(null==dVe?void 0:dVe.message),_("error")}};return(0,w.useEffect)((()=>{if(E.messagesSinceLastConnection){const e=E.messagesSinceLastConnection;e&&p([...f,e])}}),[E.messagesSinceLastConnection]),(0,w.useEffect)((()=>{S()}),[m,u,l,c,s,a]),(0,w.useEffect)((()=>{setTimeout((()=>{A.current&&(A.current.scrollTop=A.current.scrollHeight+100)}),0)}),[m,u,l,E]),(0,Tf.jsxs)(cfe,{theme:d,children:[(0,Tf.jsxs)(pfe,{children:[(0,Tf.jsx)(Dde,{}),(0,Tf.jsx)(Fde,{})]}),!m&&(0,Tf.jsx)(Vde,{msg:M,caip10:D8(l),messageBeingSent:!0}),e&&(0,Tf.jsx)(xde,{size:"40"}),(0,Tf.jsx)(hfe,{ref:A,onScroll:()=>{if(A.current){const{scrollTop:e}=A.current;if(0===e){const e=A.current,t=e.scrollTop,r=e.scrollHeight-e.clientHeight;S();const n=e.scrollHeight-e.clientHeight;e.scrollTop=t+(n-r)}}},theme:d,children:m&&f.length?f.map(((e,t)=>(0,Tf.jsx)(Vde,{msg:e,caip10:D8(l),messageBeingSent:!0},t))):(0,Tf.jsx)(Tf.Fragment,{})}),!m&&!e&&(0,Tf.jsxs)(dfe,{children:[(0,Tf.jsx)(ffe,{onClick:()=>x(),theme:d,children:"Connect"}),(0,Tf.jsx)(gfe,{children:"Connect your wallet to continue"})]}),y&&(0,Tf.jsx)(rfe,{message:y,type:v}),(0,Tf.jsxs)(mfe,{children:[m&&(0,Tf.jsx)(Cde,{}),(0,Tf.jsx)(ufe,{height:"18px",width:"145px",children:(0,Tf.jsx)(qde,{})})]})]})},cfe=hf.div.withConfig({displayName:"Modal__Container",componentId:"sc-s2d07d-0"})(["display:flex;flex-direction:column;justify-content:space-between;box-sizing:border-box;background:",";border:",";box-shadow:0px 0px 5px rgba(0,0,0,0.07);border-radius:",";height:585px;max-height:585px;width:350px;max-width:350px;padding:0 15px 9px 15px;"],(e=>e.theme.moduleColor),(e=>e.theme.border),(e=>e.theme.borderRadius)),hfe=hf.div.withConfig({displayName:"Modal__ChatSection",componentId:"sc-s2d07d-1"})(["height:350px;overflow:auto;padding:0 5px;&::-webkit-scrollbar{width:5px;}&::-webkit-scrollbar-track{border-radius:20px;margin:0 0 0 4px;}&::-webkit-scrollbar-thumb{background:",";border-radius:20px;}"],(e=>e.theme.bgColorSecondary)),dfe=hf.div.withConfig({displayName:"Modal__ConnectSection",componentId:"sc-s2d07d-2"})(["display:flex;flex-direction:column;margin-bottom:30%;"]),ffe=hf.button.withConfig({displayName:"Modal__Button",componentId:"sc-s2d07d-3"})(["background:",";border-radius:15px;align-self:center;padding:11px 36px;border:none;font-weight:500;font-size:17px;line-height:150%;display:flex;align-items:center;text-align:center;letter-spacing:-0.019em;color:",";margin-bottom:10px;cursor:pointer;"],(e=>e.theme.btnColorPrimary),(e=>e.theme.textColorSecondary)),pfe=hf.div.withConfig({displayName:"Modal__HeaderSection",componentId:"sc-s2d07d-4"})([""]),mfe=hf.div.withConfig({displayName:"Modal__InputSection",componentId:"sc-s2d07d-5"})(["display:flex;flex-direction:column;"]),gfe=hf.span.withConfig({displayName:"Modal__Span",componentId:"sc-s2d07d-7"})(["font-weight:400;font-size:15px;line-height:140%;display:flex;text-align:center;justify-content:center;margin-bottom:30%;color:#657795;"]);var yfe=r(90487),vfe=r.n(yfe),bfe=r(80631),wfe=r.n(bfe),_fe=r(52052),Efe=r.n(_fe),Afe=r(64010),Mfe=r.n(Afe),Sfe=r(11469),xfe=r.n(Sfe),kfe=r(9329),Tfe=r.n(kfe),Cfe=r(58651),Ife=r.n(Cfe),Nfe={};Nfe.styleTagTransform=Tfe(),Nfe.setAttributes=Mfe(),Nfe.insert=Efe().bind(null,"head"),Nfe.domAPI=wfe(),Nfe.insertStyleElement=xfe();vfe()(Ife(),Nfe);Ife()&&Ife().locals&&Ife().locals;const Rfe=({account:e=null,signer:t=null,supportAddress:r,greetingMsg:n=W3.DEFAULT_GREETING_MSG,modalTitle:i=W3.DEFAULT_TITLE,theme:o=Object.assign({},e6),apiKey:s="",env:a=W3.ENV.PROD})=>{const[u,l]=(0,w.useState)(!1),[c,h]=(0,w.useState)(null),[d,f]=(0,w.useState)(!1),[p,m]=(0,w.useState)(""),[g,y]=(0,w.useState)(""),[v,b]=(0,w.useState)(),[_,E]=(0,w.useState)([]),[A,M]=(0,w.useState)(e),[S,x]=(0,w.useState)(null),[k,T]=(0,w.useState)(""),C=l9({account:A,env:a,apiKey:s,pushUser:S,supportAddress:k,signer:t}),I={account:A,signer:t,pushUser:S,supportAddress:k,greetingMsg:n,modalTitle:i,theme:Object.assign({},e6,o),apiKey:s,env:a};(0,w.useEffect)((()=>{(async()=>{if(r.includes(".")){const e=await Q8(r,a);T(e)}else T(r)})()}),[r,S,a]),(0,w.useEffect)((()=>{(async()=>{if(t)if(e)M(e);else{const e=await O8(t);M(e)}})()}),[t]),(0,w.useEffect)((()=>{(async()=>{if(Object.keys(t||{}).length&&A){const e=await d0.initialize(t,{env:a,account:A});x(e)}})()}),[t,A]),(0,w.useEffect)((()=>{E([]),h(null)}),[e,r]);const N={isModalOpen:u,socketData:C,setIsModalOpen:l,connectedUser:c,setConnectedUser:h,messageBeingSent:d,setMessageBeingSent:f,setToastMessage:y,setToastType:b,message:p,setMessage:m,chats:_,setChatsSorted:e=>{const t=e.map((e=>Object.assign({},e,{timestamp:"string"==typeof e.timestamp?parseInt(e.timestamp):e.timestamp}))),r=[...new Map(t.map((e=>[e.timestamp,e]))).values()];r.sort(((e,t)=>e.timestamp>t.timestamp?1:-1)),E(r)},toastMessage:g,toastType:v};return(0,Tf.jsx)(Pfe,{children:(0,Tf.jsx)(f6.Provider,{value:I,children:(0,Tf.jsxs)(p6.Provider,{value:N,children:[!u&&(0,Tf.jsx)(Dfe,{bgColor:o.btnColorPrimary,onClick:()=>z8({isModalOpen:u,setIsModalOpen:l}),children:(0,Tf.jsx)(ufe,{cursor:"pointer",children:(0,Tf.jsx)(Mde,{})})}),u&&(0,Tf.jsx)(lfe,{})]})})})},Pfe=hf.div.withConfig({displayName:"Chat__Container",componentId:"sc-7lciwu-0"})(["font-family:'Strawford';flex:1;display:flex;position:fixed;bottom:0;right:0;width:fit-content;margin:0 3rem 2rem 0;align-items:center;justify-content:center;"]),Dfe=hf.button.withConfig({displayName:"Chat__Button",componentId:"sc-7lciwu-1"})(["background:",";border:none;cursor:pointer;border-radius:18px;padding:16.5px 16.5px 13px 18.5px;"],(e=>e.bgColor)),Lfe=()=>(0,Tf.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsx)("path",{d:"M27 16H5",stroke:"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M14 7L5 16L14 25",stroke:"#657795","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}),Ofe=({size:e=42,color:t="#000"})=>(0,Tf.jsx)(Bfe,{width:`${e}px`,children:(0,Tf.jsx)(Ree,{color:t})}),jfe=df(["from{transform:rotate(0deg);}to{transform:rotate(360deg);}"]),Bfe=hf.div.withConfig({displayName:"Spinner__SpinLoader",componentId:"sc-skkbw8-0"})(["display:flex;flex:initial;align-self:center;width:",";animation-name:",";animation-duration:2500ms;animation-iteration-count:infinite;animation-timing-function:linear;"],(e=>e.width),jfe),Ufe=({color:e="#494D5F"})=>(0,Tf.jsxs)("svg",{width:"25",height:"25",viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsx)("path",{d:"M16 28.7407C22.6274 28.7407 28 23.2686 28 16.5185C28 9.76831 22.6274 4.29623 16 4.29623C9.37258 4.29623 4 9.76831 4 16.5185C4 23.2686 9.37258 28.7407 16 28.7407Z",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M11.5 15.5C12.3284 15.5 13 14.8159 13 13.9722C13 13.1284 12.3284 12.4444 11.5 12.4444C10.6716 12.4444 10 13.1284 10 13.9722C10 14.8159 10.6716 15.5 11.5 15.5Z",fill:e}),(0,Tf.jsx)("path",{d:"M20.5 15.5C21.3284 15.5 22 14.8159 22 13.9722C22 13.1284 21.3284 12.4444 20.5 12.4444C19.6716 12.4444 19 13.1284 19 13.9722C19 14.8159 19.6716 15.5 20.5 15.5Z",fill:e}),(0,Tf.jsx)("path",{d:"M21.2 19.574C20.6714 20.5016 19.9128 21.2716 19.0003 21.8068C18.0877 22.342 17.0531 22.6237 16 22.6237C14.947 22.6237 13.9124 22.342 12.9998 21.8068C12.0873 21.2716 11.3287 20.5016 10.8 19.574",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})]}),Ffe=()=>(0,Tf.jsxs)("svg",{width:"36",height:"24",viewBox:"0 0 36 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsx)("rect",{y:"0.800049",width:"35.2",height:"22.4",rx:"8",fill:"#F5F2FF"}),(0,Tf.jsx)("path",{d:"M12.5055 15.944C12.0703 15.944 11.6559 15.8672 11.2623 15.7136C10.8687 15.5568 10.5199 15.3264 10.2159 15.0224C9.91507 14.7184 9.67667 14.3424 9.50067 13.8944C9.32787 13.4464 9.24147 12.9296 9.24147 12.344C9.24147 11.5792 9.38707 10.9296 9.67827 10.3952C9.97267 9.85765 10.3663 9.44805 10.8591 9.16645C11.3551 8.88485 11.9039 8.74405 12.5055 8.74405C13.3951 8.74405 14.0943 8.95045 14.6031 9.36325C15.1119 9.77605 15.4527 10.36 15.6255 11.1152L14.2911 11.3072C14.1663 10.904 13.9615 10.5824 13.6767 10.3424C13.3951 10.0992 13.0335 9.97605 12.5919 9.97285C12.1535 9.96645 11.7887 10.0608 11.4975 10.256C11.2063 10.4512 10.9871 10.728 10.8399 11.0864C10.6959 11.4448 10.6239 11.864 10.6239 12.344C10.6239 12.824 10.6959 13.24 10.8399 13.592C10.9871 13.944 11.2063 14.2176 11.4975 14.4128C11.7887 14.608 12.1535 14.7088 12.5919 14.7152C12.8895 14.7216 13.1583 14.6704 13.3983 14.5616C13.6415 14.4528 13.8463 14.2816 14.0127 14.048C14.1791 13.8144 14.2975 13.5152 14.3679 13.1504H13.2735V12.1424H15.7599C15.7663 12.184 15.7711 12.2576 15.7743 12.3632C15.7775 12.4688 15.7791 12.5296 15.7791 12.5456C15.7791 13.208 15.6447 13.7952 15.3759 14.3072C15.1071 14.8192 14.7279 15.2208 14.2383 15.512C13.7487 15.8 13.1711 15.944 12.5055 15.944ZM17.5091 15.8V8.88805H18.8147V15.8H17.5091ZM20.9257 15.8V8.88805H25.1497V10.1936H22.2313V11.6912H24.5737V12.9968H22.2313V15.8H20.9257Z",fill:"#494D5F"})]}),zfe=({color:e="#494D5F"})=>(0,Tf.jsx)("svg",{width:"23",height:"27",viewBox:"0 0 23 27",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Tf.jsx)("path",{d:"M15.9927 7.38877L5.58023 18.1723C5.23551 18.5598 5.0503 19.0675 5.06293 19.5902C5.07557 20.113 5.28509 20.6108 5.64811 20.9805C6.01114 21.3503 6.49986 21.5637 7.0131 21.5765C7.52634 21.5894 8.02478 21.4008 8.40523 21.0497L20.8177 8.22905C21.5072 7.45406 21.8776 6.43872 21.8523 5.39323C21.8271 4.34775 21.408 3.3522 20.682 2.6127C19.9559 1.87321 18.9785 1.44641 17.952 1.42067C16.9255 1.39493 15.9286 1.77222 15.1677 2.47442L2.75523 15.295C1.63138 16.4397 1 17.9922 1 19.611C1 21.2298 1.63138 22.7823 2.75523 23.927C3.87908 25.0716 5.40336 25.7147 6.99273 25.7147C8.5821 25.7147 10.1064 25.0716 11.2302 23.927L21.4927 13.4999",stroke:e,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})});var Hfe,Gfe=r(54325),Yfe=r(98399);function Kfe(){for(var e=arguments.length,t=new Array(e),r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}!function(e){e.RECENT="recent",e.FREQUENT="frequent"}(Jfe||(Jfe={})),function(e){e.NATIVE="native",e.APPLE="apple",e.TWITTER="twitter",e.GOOGLE="google",e.FACEBOOK="facebook"}(Zfe||(Zfe={})),function(e){e.DARK="dark",e.LIGHT="light",e.AUTO="auto"}(Xfe||(Xfe={})),function(e){e.NEUTRAL="neutral",e.LIGHT="1f3fb",e.MEDIUM_LIGHT="1f3fc",e.MEDIUM="1f3fd",e.MEDIUM_DARK="1f3fe",e.DARK="1f3ff"}(epe||(epe={})),function(e){e.SUGGESTED="suggested",e.SMILEYS_PEOPLE="smileys_people",e.ANIMALS_NATURE="animals_nature",e.FOOD_DRINK="food_drink",e.TRAVEL_PLACES="travel_places",e.ACTIVITIES="activities",e.OBJECTS="objects",e.SYMBOLS="symbols",e.FLAGS="flags"}(tpe||(tpe={})),function(e){e.SEARCH="SEARCH",e.PREVIEW="PREVIEW"}(rpe||(rpe={}));var gpe,ype={smileys_people:[{n:["grinning","grinning face"],u:"1f600",a:"1.0"},{n:["smiley","smiling face with open mouth"],u:"1f603",a:"0.6"},{n:["smile","smiling face with open mouth and smiling eyes"],u:"1f604",a:"0.6"},{n:["grin","grinning face with smiling eyes"],u:"1f601",a:"0.6"},{n:["laughing","satisfied","smiling face with open mouth and tightly-closed eyes"],u:"1f606",a:"0.6"},{n:["sweat smile","smiling face with open mouth and cold sweat"],u:"1f605",a:"0.6"},{n:["rolling on the floor laughing"],u:"1f923",a:"3.0"},{n:["joy","face with tears of joy"],u:"1f602",a:"0.6"},{n:["slightly smiling face"],u:"1f642",a:"1.0"},{n:["upside-down face","upside down face"],u:"1f643",a:"1.0"},{n:["melting face"],u:"1fae0",a:"14.0"},{n:["wink","winking face"],u:"1f609",a:"0.6"},{n:["blush","smiling face with smiling eyes"],u:"1f60a",a:"0.6"},{n:["innocent","smiling face with halo"],u:"1f607",a:"1.0"},{n:["smiling face with 3 hearts","smiling face with smiling eyes and three hearts"],u:"1f970",a:"11.0"},{n:["heart eyes","smiling face with heart-shaped eyes"],u:"1f60d",a:"0.6"},{n:["star-struck","grinning face with star eyes"],u:"1f929",a:"5.0"},{n:["kissing heart","face throwing a kiss"],u:"1f618",a:"0.6"},{n:["kissing","kissing face"],u:"1f617",a:"1.0"},{n:["relaxed","white smiling face"],u:"263a-fe0f",a:"0.6"},{n:["kissing closed eyes","kissing face with closed eyes"],u:"1f61a",a:"0.6"},{n:["kissing smiling eyes","kissing face with smiling eyes"],u:"1f619",a:"1.0"},{n:["smiling face with tear"],u:"1f972",a:"13.0"},{n:["yum","face savouring delicious food"],u:"1f60b",a:"0.6"},{n:["stuck out tongue","face with stuck-out tongue"],u:"1f61b",a:"1.0"},{n:["stuck out tongue winking eye","face with stuck-out tongue and winking eye"],u:"1f61c",a:"0.6"},{n:["zany face","grinning face with one large and one small eye"],u:"1f92a",a:"5.0"},{n:["stuck out tongue closed eyes","face with stuck-out tongue and tightly-closed eyes"],u:"1f61d",a:"0.6"},{n:["money-mouth face","money mouth face"],u:"1f911",a:"1.0"},{n:["hugging face"],u:"1f917",a:"1.0"},{n:["face with hand over mouth","smiling face with smiling eyes and hand covering mouth"],u:"1f92d",a:"5.0"},{n:["face with open eyes and hand over mouth"],u:"1fae2",a:"14.0"},{n:["face with peeking eye"],u:"1fae3",a:"14.0"},{n:["shushing face","face with finger covering closed lips"],u:"1f92b",a:"5.0"},{n:["thinking face"],u:"1f914",a:"1.0"},{n:["saluting face"],u:"1fae1",a:"14.0"},{n:["zipper-mouth face","zipper mouth face"],u:"1f910",a:"1.0"},{n:["face with raised eyebrow","face with one eyebrow raised"],u:"1f928",a:"5.0"},{n:["neutral face"],u:"1f610",a:"0.7"},{n:["expressionless","expressionless face"],u:"1f611",a:"1.0"},{n:["no mouth","face without mouth"],u:"1f636",a:"1.0"},{n:["dotted line face"],u:"1fae5",a:"14.0"},{n:["face in clouds"],u:"1f636-200d-1f32b-fe0f",a:"13.1"},{n:["smirk","smirking face"],u:"1f60f",a:"0.6"},{n:["unamused","unamused face"],u:"1f612",a:"0.6"},{n:["face with rolling eyes"],u:"1f644",a:"1.0"},{n:["grimacing","grimacing face"],u:"1f62c",a:"1.0"},{n:["face exhaling"],u:"1f62e-200d-1f4a8",a:"13.1"},{n:["lying face"],u:"1f925",a:"3.0"},{n:["relieved","relieved face"],u:"1f60c",a:"0.6"},{n:["pensive","pensive face"],u:"1f614",a:"0.6"},{n:["sleepy","sleepy face"],u:"1f62a",a:"0.6"},{n:["drooling face"],u:"1f924",a:"3.0"},{n:["sleeping","sleeping face"],u:"1f634",a:"1.0"},{n:["mask","face with medical mask"],u:"1f637",a:"0.6"},{n:["face with thermometer"],u:"1f912",a:"1.0"},{n:["face with head-bandage","face with head bandage"],u:"1f915",a:"1.0"},{n:["nauseated face"],u:"1f922",a:"3.0"},{n:["face vomiting","face with open mouth vomiting"],u:"1f92e",a:"5.0"},{n:["sneezing face"],u:"1f927",a:"3.0"},{n:["hot face","overheated face"],u:"1f975",a:"11.0"},{n:["cold face","freezing face"],u:"1f976",a:"11.0"},{n:["woozy face","face with uneven eyes and wavy mouth"],u:"1f974",a:"11.0"},{n:["dizzy face"],u:"1f635",a:"0.6"},{n:["face with spiral eyes"],u:"1f635-200d-1f4ab",a:"13.1"},{n:["exploding head","shocked face with exploding head"],u:"1f92f",a:"5.0"},{n:["face with cowboy hat"],u:"1f920",a:"3.0"},{n:["partying face","face with party horn and party hat"],u:"1f973",a:"11.0"},{n:["disguised face"],u:"1f978",a:"13.0"},{n:["sunglasses","smiling face with sunglasses"],u:"1f60e",a:"1.0"},{n:["nerd face"],u:"1f913",a:"1.0"},{n:["face with monocle"],u:"1f9d0",a:"5.0"},{n:["confused","confused face"],u:"1f615",a:"1.0"},{n:["face with diagonal mouth"],u:"1fae4",a:"14.0"},{n:["worried","worried face"],u:"1f61f",a:"1.0"},{n:["slightly frowning face"],u:"1f641",a:"1.0"},{n:["frowning face","white frowning face"],u:"2639-fe0f",a:"0.7"},{n:["open mouth","face with open mouth"],u:"1f62e",a:"1.0"},{n:["hushed","hushed face"],u:"1f62f",a:"1.0"},{n:["astonished","astonished face"],u:"1f632",a:"0.6"},{n:["flushed","flushed face"],u:"1f633",a:"0.6"},{n:["pleading face","face with pleading eyes"],u:"1f97a",a:"11.0"},{n:["face holding back tears"],u:"1f979",a:"14.0"},{n:["frowning","frowning face with open mouth"],u:"1f626",a:"1.0"},{n:["anguished","anguished face"],u:"1f627",a:"1.0"},{n:["fearful","fearful face"],u:"1f628",a:"0.6"},{n:["cold sweat","face with open mouth and cold sweat"],u:"1f630",a:"0.6"},{n:["disappointed relieved","disappointed but relieved face"],u:"1f625",a:"0.6"},{n:["cry","crying face"],u:"1f622",a:"0.6"},{n:["sob","loudly crying face"],u:"1f62d",a:"0.6"},{n:["scream","face screaming in fear"],u:"1f631",a:"0.6"},{n:["confounded","confounded face"],u:"1f616",a:"0.6"},{n:["persevere","persevering face"],u:"1f623",a:"0.6"},{n:["disappointed","disappointed face"],u:"1f61e",a:"0.6"},{n:["sweat","face with cold sweat"],u:"1f613",a:"0.6"},{n:["weary","weary face"],u:"1f629",a:"0.6"},{n:["tired face"],u:"1f62b",a:"0.6"},{n:["yawning face"],u:"1f971",a:"12.0"},{n:["triumph","face with look of triumph"],u:"1f624",a:"0.6"},{n:["rage","pouting face"],u:"1f621",a:"0.6"},{n:["angry","angry face"],u:"1f620",a:"0.6"},{n:["face with symbols on mouth","serious face with symbols covering mouth"],u:"1f92c",a:"5.0"},{n:["smiling imp","smiling face with horns"],u:"1f608",a:"1.0"},{n:["imp"],u:"1f47f",a:"0.6"},{n:["skull"],u:"1f480",a:"0.6"},{n:["skull and crossbones"],u:"2620-fe0f",a:"1.0"},{n:["poop","shit","hankey","pile of poo"],u:"1f4a9",a:"0.6"},{n:["clown face"],u:"1f921",a:"3.0"},{n:["japanese ogre"],u:"1f479",a:"0.6"},{n:["japanese goblin"],u:"1f47a",a:"0.6"},{n:["ghost"],u:"1f47b",a:"0.6"},{n:["alien","extraterrestrial alien"],u:"1f47d",a:"0.6"},{n:["alien monster","space invader"],u:"1f47e",a:"0.6"},{n:["robot face"],u:"1f916",a:"1.0"},{n:["smiley cat","smiling cat face with open mouth"],u:"1f63a",a:"0.6"},{n:["smile cat","grinning cat face with smiling eyes"],u:"1f638",a:"0.6"},{n:["joy cat","cat face with tears of joy"],u:"1f639",a:"0.6"},{n:["heart eyes cat","smiling cat face with heart-shaped eyes"],u:"1f63b",a:"0.6"},{n:["smirk cat","cat face with wry smile"],u:"1f63c",a:"0.6"},{n:["kissing cat","kissing cat face with closed eyes"],u:"1f63d",a:"0.6"},{n:["scream cat","weary cat face"],u:"1f640",a:"0.6"},{n:["crying cat face"],u:"1f63f",a:"0.6"},{n:["pouting cat","pouting cat face"],u:"1f63e",a:"0.6"},{n:["see no evil","see-no-evil monkey"],u:"1f648",a:"0.6"},{n:["hear no evil","hear-no-evil monkey"],u:"1f649",a:"0.6"},{n:["speak no evil","speak-no-evil monkey"],u:"1f64a",a:"0.6"},{n:["kiss","kiss mark"],u:"1f48b",a:"0.6"},{n:["love letter"],u:"1f48c",a:"0.6"},{n:["cupid","heart with arrow"],u:"1f498",a:"0.6"},{n:["gift heart","heart with ribbon"],u:"1f49d",a:"0.6"},{n:["sparkling heart"],u:"1f496",a:"0.6"},{n:["heartpulse","growing heart"],u:"1f497",a:"0.6"},{n:["heartbeat","beating heart"],u:"1f493",a:"0.6"},{n:["revolving hearts"],u:"1f49e",a:"0.6"},{n:["two hearts"],u:"1f495",a:"0.6"},{n:["heart decoration"],u:"1f49f",a:"0.6"},{n:["heart exclamation","heavy heart exclamation mark ornament"],u:"2763-fe0f",a:"1.0"},{n:["broken heart"],u:"1f494",a:"0.6"},{n:["heart on fire"],u:"2764-fe0f-200d-1f525",a:"13.1"},{n:["mending heart"],u:"2764-fe0f-200d-1fa79",a:"13.1"},{n:["heart","heavy black heart"],u:"2764-fe0f",a:"0.6"},{n:["orange heart"],u:"1f9e1",a:"5.0"},{n:["yellow heart"],u:"1f49b",a:"0.6"},{n:["green heart"],u:"1f49a",a:"0.6"},{n:["blue heart"],u:"1f499",a:"0.6"},{n:["purple heart"],u:"1f49c",a:"0.6"},{n:["brown heart"],u:"1f90e",a:"12.0"},{n:["black heart"],u:"1f5a4",a:"3.0"},{n:["white heart"],u:"1f90d",a:"12.0"},{n:["100","hundred points symbol"],u:"1f4af",a:"0.6"},{n:["anger","anger symbol"],u:"1f4a2",a:"0.6"},{n:["boom","collision","collision symbol"],u:"1f4a5",a:"0.6"},{n:["dizzy","dizzy symbol"],u:"1f4ab",a:"0.6"},{n:["sweat drops","splashing sweat symbol"],u:"1f4a6",a:"0.6"},{n:["dash","dash symbol"],u:"1f4a8",a:"0.6"},{n:["hole"],u:"1f573-fe0f",a:"0.7"},{n:["bomb"],u:"1f4a3",a:"0.6"},{n:["speech balloon"],u:"1f4ac",a:"0.6"},{n:["eye in speech bubble","eye-in-speech-bubble"],u:"1f441-fe0f-200d-1f5e8-fe0f",a:"2.0"},{n:["left speech bubble"],u:"1f5e8-fe0f",a:"2.0"},{n:["right anger bubble"],u:"1f5ef-fe0f",a:"0.7"},{n:["thought balloon"],u:"1f4ad",a:"1.0"},{n:["zzz","sleeping symbol"],u:"1f4a4",a:"0.6"},{n:["wave","waving hand sign"],u:"1f44b",v:["1f44b-1f3fb","1f44b-1f3fc","1f44b-1f3fd","1f44b-1f3fe","1f44b-1f3ff"],a:"0.6"},{n:["raised back of hand"],u:"1f91a",v:["1f91a-1f3fb","1f91a-1f3fc","1f91a-1f3fd","1f91a-1f3fe","1f91a-1f3ff"],a:"3.0"},{n:["hand with fingers splayed","raised hand with fingers splayed"],u:"1f590-fe0f",v:["1f590-1f3fb","1f590-1f3fc","1f590-1f3fd","1f590-1f3fe","1f590-1f3ff"],a:"0.7"},{n:["hand","raised hand"],u:"270b",v:["270b-1f3fb","270b-1f3fc","270b-1f3fd","270b-1f3fe","270b-1f3ff"],a:"0.6"},{n:["spock-hand","raised hand with part between middle and ring fingers"],u:"1f596",v:["1f596-1f3fb","1f596-1f3fc","1f596-1f3fd","1f596-1f3fe","1f596-1f3ff"],a:"1.0"},{n:["rightwards hand"],u:"1faf1",v:["1faf1-1f3fb","1faf1-1f3fc","1faf1-1f3fd","1faf1-1f3fe","1faf1-1f3ff"],a:"14.0"},{n:["leftwards hand"],u:"1faf2",v:["1faf2-1f3fb","1faf2-1f3fc","1faf2-1f3fd","1faf2-1f3fe","1faf2-1f3ff"],a:"14.0"},{n:["palm down hand"],u:"1faf3",v:["1faf3-1f3fb","1faf3-1f3fc","1faf3-1f3fd","1faf3-1f3fe","1faf3-1f3ff"],a:"14.0"},{n:["palm up hand"],u:"1faf4",v:["1faf4-1f3fb","1faf4-1f3fc","1faf4-1f3fd","1faf4-1f3fe","1faf4-1f3ff"],a:"14.0"},{n:["ok hand","ok hand sign"],u:"1f44c",v:["1f44c-1f3fb","1f44c-1f3fc","1f44c-1f3fd","1f44c-1f3fe","1f44c-1f3ff"],a:"0.6"},{n:["pinched fingers"],u:"1f90c",v:["1f90c-1f3fb","1f90c-1f3fc","1f90c-1f3fd","1f90c-1f3fe","1f90c-1f3ff"],a:"13.0"},{n:["pinching hand"],u:"1f90f",v:["1f90f-1f3fb","1f90f-1f3fc","1f90f-1f3fd","1f90f-1f3fe","1f90f-1f3ff"],a:"12.0"},{n:["v","victory hand"],u:"270c-fe0f",v:["270c-1f3fb","270c-1f3fc","270c-1f3fd","270c-1f3fe","270c-1f3ff"],a:"0.6"},{n:["crossed fingers","hand with index and middle fingers crossed"],u:"1f91e",v:["1f91e-1f3fb","1f91e-1f3fc","1f91e-1f3fd","1f91e-1f3fe","1f91e-1f3ff"],a:"3.0"},{n:["hand with index finger and thumb crossed"],u:"1faf0",v:["1faf0-1f3fb","1faf0-1f3fc","1faf0-1f3fd","1faf0-1f3fe","1faf0-1f3ff"],a:"14.0"},{n:["i love you hand sign"],u:"1f91f",v:["1f91f-1f3fb","1f91f-1f3fc","1f91f-1f3fd","1f91f-1f3fe","1f91f-1f3ff"],a:"5.0"},{n:["the horns","sign of the horns"],u:"1f918",v:["1f918-1f3fb","1f918-1f3fc","1f918-1f3fd","1f918-1f3fe","1f918-1f3ff"],a:"1.0"},{n:["call me hand"],u:"1f919",v:["1f919-1f3fb","1f919-1f3fc","1f919-1f3fd","1f919-1f3fe","1f919-1f3ff"],a:"3.0"},{n:["point left","white left pointing backhand index"],u:"1f448",v:["1f448-1f3fb","1f448-1f3fc","1f448-1f3fd","1f448-1f3fe","1f448-1f3ff"],a:"0.6"},{n:["point right","white right pointing backhand index"],u:"1f449",v:["1f449-1f3fb","1f449-1f3fc","1f449-1f3fd","1f449-1f3fe","1f449-1f3ff"],a:"0.6"},{n:["point up 2","white up pointing backhand index"],u:"1f446",v:["1f446-1f3fb","1f446-1f3fc","1f446-1f3fd","1f446-1f3fe","1f446-1f3ff"],a:"0.6"},{n:["middle finger","reversed hand with middle finger extended"],u:"1f595",v:["1f595-1f3fb","1f595-1f3fc","1f595-1f3fd","1f595-1f3fe","1f595-1f3ff"],a:"1.0"},{n:["point down","white down pointing backhand index"],u:"1f447",v:["1f447-1f3fb","1f447-1f3fc","1f447-1f3fd","1f447-1f3fe","1f447-1f3ff"],a:"0.6"},{n:["point up","white up pointing index"],u:"261d-fe0f",v:["261d-1f3fb","261d-1f3fc","261d-1f3fd","261d-1f3fe","261d-1f3ff"],a:"0.6"},{n:["index pointing at the viewer"],u:"1faf5",v:["1faf5-1f3fb","1faf5-1f3fc","1faf5-1f3fd","1faf5-1f3fe","1faf5-1f3ff"],a:"14.0"},{n:["+1","thumbsup","thumbs up sign"],u:"1f44d",v:["1f44d-1f3fb","1f44d-1f3fc","1f44d-1f3fd","1f44d-1f3fe","1f44d-1f3ff"],a:"0.6"},{n:["-1","thumbsdown","thumbs down sign"],u:"1f44e",v:["1f44e-1f3fb","1f44e-1f3fc","1f44e-1f3fd","1f44e-1f3fe","1f44e-1f3ff"],a:"0.6"},{n:["fist","raised fist"],u:"270a",v:["270a-1f3fb","270a-1f3fc","270a-1f3fd","270a-1f3fe","270a-1f3ff"],a:"0.6"},{n:["punch","facepunch","fisted hand sign"],u:"1f44a",v:["1f44a-1f3fb","1f44a-1f3fc","1f44a-1f3fd","1f44a-1f3fe","1f44a-1f3ff"],a:"0.6"},{n:["left-facing fist"],u:"1f91b",v:["1f91b-1f3fb","1f91b-1f3fc","1f91b-1f3fd","1f91b-1f3fe","1f91b-1f3ff"],a:"3.0"},{n:["right-facing fist"],u:"1f91c",v:["1f91c-1f3fb","1f91c-1f3fc","1f91c-1f3fd","1f91c-1f3fe","1f91c-1f3ff"],a:"3.0"},{n:["clap","clapping hands sign"],u:"1f44f",v:["1f44f-1f3fb","1f44f-1f3fc","1f44f-1f3fd","1f44f-1f3fe","1f44f-1f3ff"],a:"0.6"},{n:["raised hands","person raising both hands in celebration"],u:"1f64c",v:["1f64c-1f3fb","1f64c-1f3fc","1f64c-1f3fd","1f64c-1f3fe","1f64c-1f3ff"],a:"0.6"},{n:["heart hands"],u:"1faf6",v:["1faf6-1f3fb","1faf6-1f3fc","1faf6-1f3fd","1faf6-1f3fe","1faf6-1f3ff"],a:"14.0"},{n:["open hands","open hands sign"],u:"1f450",v:["1f450-1f3fb","1f450-1f3fc","1f450-1f3fd","1f450-1f3fe","1f450-1f3ff"],a:"0.6"},{n:["palms up together"],u:"1f932",v:["1f932-1f3fb","1f932-1f3fc","1f932-1f3fd","1f932-1f3fe","1f932-1f3ff"],a:"5.0"},{n:["handshake"],u:"1f91d",v:["1f91d-1f3fb","1f91d-1f3fc","1f91d-1f3fd","1f91d-1f3fe","1f91d-1f3ff","1faf1-1f3fb-200d-1faf2-1f3fc","1faf1-1f3fb-200d-1faf2-1f3fd","1faf1-1f3fb-200d-1faf2-1f3fe","1faf1-1f3fb-200d-1faf2-1f3ff","1faf1-1f3fc-200d-1faf2-1f3fb","1faf1-1f3fc-200d-1faf2-1f3fd","1faf1-1f3fc-200d-1faf2-1f3fe","1faf1-1f3fc-200d-1faf2-1f3ff","1faf1-1f3fd-200d-1faf2-1f3fb","1faf1-1f3fd-200d-1faf2-1f3fc","1faf1-1f3fd-200d-1faf2-1f3fe","1faf1-1f3fd-200d-1faf2-1f3ff","1faf1-1f3fe-200d-1faf2-1f3fb","1faf1-1f3fe-200d-1faf2-1f3fc","1faf1-1f3fe-200d-1faf2-1f3fd","1faf1-1f3fe-200d-1faf2-1f3ff","1faf1-1f3ff-200d-1faf2-1f3fb","1faf1-1f3ff-200d-1faf2-1f3fc","1faf1-1f3ff-200d-1faf2-1f3fd","1faf1-1f3ff-200d-1faf2-1f3fe"],a:"3.0"},{n:["pray","person with folded hands"],u:"1f64f",v:["1f64f-1f3fb","1f64f-1f3fc","1f64f-1f3fd","1f64f-1f3fe","1f64f-1f3ff"],a:"0.6"},{n:["writing hand"],u:"270d-fe0f",v:["270d-1f3fb","270d-1f3fc","270d-1f3fd","270d-1f3fe","270d-1f3ff"],a:"0.7"},{n:["nail care","nail polish"],u:"1f485",v:["1f485-1f3fb","1f485-1f3fc","1f485-1f3fd","1f485-1f3fe","1f485-1f3ff"],a:"0.6"},{n:["selfie"],u:"1f933",v:["1f933-1f3fb","1f933-1f3fc","1f933-1f3fd","1f933-1f3fe","1f933-1f3ff"],a:"3.0"},{n:["muscle","flexed biceps"],u:"1f4aa",v:["1f4aa-1f3fb","1f4aa-1f3fc","1f4aa-1f3fd","1f4aa-1f3fe","1f4aa-1f3ff"],a:"0.6"},{n:["mechanical arm"],u:"1f9be",a:"12.0"},{n:["mechanical leg"],u:"1f9bf",a:"12.0"},{n:["leg"],u:"1f9b5",v:["1f9b5-1f3fb","1f9b5-1f3fc","1f9b5-1f3fd","1f9b5-1f3fe","1f9b5-1f3ff"],a:"11.0"},{n:["foot"],u:"1f9b6",v:["1f9b6-1f3fb","1f9b6-1f3fc","1f9b6-1f3fd","1f9b6-1f3fe","1f9b6-1f3ff"],a:"11.0"},{n:["ear"],u:"1f442",v:["1f442-1f3fb","1f442-1f3fc","1f442-1f3fd","1f442-1f3fe","1f442-1f3ff"],a:"0.6"},{n:["ear with hearing aid"],u:"1f9bb",v:["1f9bb-1f3fb","1f9bb-1f3fc","1f9bb-1f3fd","1f9bb-1f3fe","1f9bb-1f3ff"],a:"12.0"},{n:["nose"],u:"1f443",v:["1f443-1f3fb","1f443-1f3fc","1f443-1f3fd","1f443-1f3fe","1f443-1f3ff"],a:"0.6"},{n:["brain"],u:"1f9e0",a:"5.0"},{n:["anatomical heart"],u:"1fac0",a:"13.0"},{n:["lungs"],u:"1fac1",a:"13.0"},{n:["tooth"],u:"1f9b7",a:"11.0"},{n:["bone"],u:"1f9b4",a:"11.0"},{n:["eyes"],u:"1f440",a:"0.6"},{n:["eye"],u:"1f441-fe0f",a:"0.7"},{n:["tongue"],u:"1f445",a:"0.6"},{n:["lips","mouth"],u:"1f444",a:"0.6"},{n:["biting lip"],u:"1fae6",a:"14.0"},{n:["baby"],u:"1f476",v:["1f476-1f3fb","1f476-1f3fc","1f476-1f3fd","1f476-1f3fe","1f476-1f3ff"],a:"0.6"},{n:["child"],u:"1f9d2",v:["1f9d2-1f3fb","1f9d2-1f3fc","1f9d2-1f3fd","1f9d2-1f3fe","1f9d2-1f3ff"],a:"5.0"},{n:["boy"],u:"1f466",v:["1f466-1f3fb","1f466-1f3fc","1f466-1f3fd","1f466-1f3fe","1f466-1f3ff"],a:"0.6"},{n:["girl"],u:"1f467",v:["1f467-1f3fb","1f467-1f3fc","1f467-1f3fd","1f467-1f3fe","1f467-1f3ff"],a:"0.6"},{n:["adult"],u:"1f9d1",v:["1f9d1-1f3fb","1f9d1-1f3fc","1f9d1-1f3fd","1f9d1-1f3fe","1f9d1-1f3ff"],a:"5.0"},{n:["person with blond hair"],u:"1f471",v:["1f471-1f3fb","1f471-1f3fc","1f471-1f3fd","1f471-1f3fe","1f471-1f3ff"],a:"0.6"},{n:["man"],u:"1f468",v:["1f468-1f3fb","1f468-1f3fc","1f468-1f3fd","1f468-1f3fe","1f468-1f3ff"],a:"0.6"},{n:["bearded person"],u:"1f9d4",v:["1f9d4-1f3fb","1f9d4-1f3fc","1f9d4-1f3fd","1f9d4-1f3fe","1f9d4-1f3ff"],a:"5.0"},{n:["man: beard","man with beard"],u:"1f9d4-200d-2642-fe0f",v:["1f9d4-1f3fb-200d-2642-fe0f","1f9d4-1f3fc-200d-2642-fe0f","1f9d4-1f3fd-200d-2642-fe0f","1f9d4-1f3fe-200d-2642-fe0f","1f9d4-1f3ff-200d-2642-fe0f"],a:"13.1"},{n:["woman: beard","woman with beard"],u:"1f9d4-200d-2640-fe0f",v:["1f9d4-1f3fb-200d-2640-fe0f","1f9d4-1f3fc-200d-2640-fe0f","1f9d4-1f3fd-200d-2640-fe0f","1f9d4-1f3fe-200d-2640-fe0f","1f9d4-1f3ff-200d-2640-fe0f"],a:"13.1"},{n:["man: red hair","red haired man"],u:"1f468-200d-1f9b0",v:["1f468-1f3fb-200d-1f9b0","1f468-1f3fc-200d-1f9b0","1f468-1f3fd-200d-1f9b0","1f468-1f3fe-200d-1f9b0","1f468-1f3ff-200d-1f9b0"],a:"11.0"},{n:["man: curly hair","curly haired man"],u:"1f468-200d-1f9b1",v:["1f468-1f3fb-200d-1f9b1","1f468-1f3fc-200d-1f9b1","1f468-1f3fd-200d-1f9b1","1f468-1f3fe-200d-1f9b1","1f468-1f3ff-200d-1f9b1"],a:"11.0"},{n:["man: white hair","white haired man"],u:"1f468-200d-1f9b3",v:["1f468-1f3fb-200d-1f9b3","1f468-1f3fc-200d-1f9b3","1f468-1f3fd-200d-1f9b3","1f468-1f3fe-200d-1f9b3","1f468-1f3ff-200d-1f9b3"],a:"11.0"},{n:["bald man","man: bald"],u:"1f468-200d-1f9b2",v:["1f468-1f3fb-200d-1f9b2","1f468-1f3fc-200d-1f9b2","1f468-1f3fd-200d-1f9b2","1f468-1f3fe-200d-1f9b2","1f468-1f3ff-200d-1f9b2"],a:"11.0"},{n:["woman"],u:"1f469",v:["1f469-1f3fb","1f469-1f3fc","1f469-1f3fd","1f469-1f3fe","1f469-1f3ff"],a:"0.6"},{n:["woman: red hair","red haired woman"],u:"1f469-200d-1f9b0",v:["1f469-1f3fb-200d-1f9b0","1f469-1f3fc-200d-1f9b0","1f469-1f3fd-200d-1f9b0","1f469-1f3fe-200d-1f9b0","1f469-1f3ff-200d-1f9b0"],a:"11.0"},{n:["person: red hair","red haired person"],u:"1f9d1-200d-1f9b0",v:["1f9d1-1f3fb-200d-1f9b0","1f9d1-1f3fc-200d-1f9b0","1f9d1-1f3fd-200d-1f9b0","1f9d1-1f3fe-200d-1f9b0","1f9d1-1f3ff-200d-1f9b0"],a:"12.1"},{n:["woman: curly hair","curly haired woman"],u:"1f469-200d-1f9b1",v:["1f469-1f3fb-200d-1f9b1","1f469-1f3fc-200d-1f9b1","1f469-1f3fd-200d-1f9b1","1f469-1f3fe-200d-1f9b1","1f469-1f3ff-200d-1f9b1"],a:"11.0"},{n:["person: curly hair","curly haired person"],u:"1f9d1-200d-1f9b1",v:["1f9d1-1f3fb-200d-1f9b1","1f9d1-1f3fc-200d-1f9b1","1f9d1-1f3fd-200d-1f9b1","1f9d1-1f3fe-200d-1f9b1","1f9d1-1f3ff-200d-1f9b1"],a:"12.1"},{n:["woman: white hair","white haired woman"],u:"1f469-200d-1f9b3",v:["1f469-1f3fb-200d-1f9b3","1f469-1f3fc-200d-1f9b3","1f469-1f3fd-200d-1f9b3","1f469-1f3fe-200d-1f9b3","1f469-1f3ff-200d-1f9b3"],a:"11.0"},{n:["person: white hair","white haired person"],u:"1f9d1-200d-1f9b3",v:["1f9d1-1f3fb-200d-1f9b3","1f9d1-1f3fc-200d-1f9b3","1f9d1-1f3fd-200d-1f9b3","1f9d1-1f3fe-200d-1f9b3","1f9d1-1f3ff-200d-1f9b3"],a:"12.1"},{n:["bald woman","woman: bald"],u:"1f469-200d-1f9b2",v:["1f469-1f3fb-200d-1f9b2","1f469-1f3fc-200d-1f9b2","1f469-1f3fd-200d-1f9b2","1f469-1f3fe-200d-1f9b2","1f469-1f3ff-200d-1f9b2"],a:"11.0"},{n:["bald person","person: bald"],u:"1f9d1-200d-1f9b2",v:["1f9d1-1f3fb-200d-1f9b2","1f9d1-1f3fc-200d-1f9b2","1f9d1-1f3fd-200d-1f9b2","1f9d1-1f3fe-200d-1f9b2","1f9d1-1f3ff-200d-1f9b2"],a:"12.1"},{n:["woman: blond hair","blond-haired-woman"],u:"1f471-200d-2640-fe0f",v:["1f471-1f3fb-200d-2640-fe0f","1f471-1f3fc-200d-2640-fe0f","1f471-1f3fd-200d-2640-fe0f","1f471-1f3fe-200d-2640-fe0f","1f471-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["man: blond hair","blond-haired-man"],u:"1f471-200d-2642-fe0f",v:["1f471-1f3fb-200d-2642-fe0f","1f471-1f3fc-200d-2642-fe0f","1f471-1f3fd-200d-2642-fe0f","1f471-1f3fe-200d-2642-fe0f","1f471-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["older adult"],u:"1f9d3",v:["1f9d3-1f3fb","1f9d3-1f3fc","1f9d3-1f3fd","1f9d3-1f3fe","1f9d3-1f3ff"],a:"5.0"},{n:["older man"],u:"1f474",v:["1f474-1f3fb","1f474-1f3fc","1f474-1f3fd","1f474-1f3fe","1f474-1f3ff"],a:"0.6"},{n:["older woman"],u:"1f475",v:["1f475-1f3fb","1f475-1f3fc","1f475-1f3fd","1f475-1f3fe","1f475-1f3ff"],a:"0.6"},{n:["person frowning"],u:"1f64d",v:["1f64d-1f3fb","1f64d-1f3fc","1f64d-1f3fd","1f64d-1f3fe","1f64d-1f3ff"],a:"0.6"},{n:["man frowning","man-frowning"],u:"1f64d-200d-2642-fe0f",v:["1f64d-1f3fb-200d-2642-fe0f","1f64d-1f3fc-200d-2642-fe0f","1f64d-1f3fd-200d-2642-fe0f","1f64d-1f3fe-200d-2642-fe0f","1f64d-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman frowning","woman-frowning"],u:"1f64d-200d-2640-fe0f",v:["1f64d-1f3fb-200d-2640-fe0f","1f64d-1f3fc-200d-2640-fe0f","1f64d-1f3fd-200d-2640-fe0f","1f64d-1f3fe-200d-2640-fe0f","1f64d-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person with pouting face"],u:"1f64e",v:["1f64e-1f3fb","1f64e-1f3fc","1f64e-1f3fd","1f64e-1f3fe","1f64e-1f3ff"],a:"0.6"},{n:["man pouting","man-pouting"],u:"1f64e-200d-2642-fe0f",v:["1f64e-1f3fb-200d-2642-fe0f","1f64e-1f3fc-200d-2642-fe0f","1f64e-1f3fd-200d-2642-fe0f","1f64e-1f3fe-200d-2642-fe0f","1f64e-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman pouting","woman-pouting"],u:"1f64e-200d-2640-fe0f",v:["1f64e-1f3fb-200d-2640-fe0f","1f64e-1f3fc-200d-2640-fe0f","1f64e-1f3fd-200d-2640-fe0f","1f64e-1f3fe-200d-2640-fe0f","1f64e-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["no good","face with no good gesture"],u:"1f645",v:["1f645-1f3fb","1f645-1f3fc","1f645-1f3fd","1f645-1f3fe","1f645-1f3ff"],a:"0.6"},{n:["man gesturing no","man-gesturing-no"],u:"1f645-200d-2642-fe0f",v:["1f645-1f3fb-200d-2642-fe0f","1f645-1f3fc-200d-2642-fe0f","1f645-1f3fd-200d-2642-fe0f","1f645-1f3fe-200d-2642-fe0f","1f645-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman gesturing no","woman-gesturing-no"],u:"1f645-200d-2640-fe0f",v:["1f645-1f3fb-200d-2640-fe0f","1f645-1f3fc-200d-2640-fe0f","1f645-1f3fd-200d-2640-fe0f","1f645-1f3fe-200d-2640-fe0f","1f645-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["ok woman","face with ok gesture"],u:"1f646",v:["1f646-1f3fb","1f646-1f3fc","1f646-1f3fd","1f646-1f3fe","1f646-1f3ff"],a:"0.6"},{n:["man gesturing ok","man-gesturing-ok"],u:"1f646-200d-2642-fe0f",v:["1f646-1f3fb-200d-2642-fe0f","1f646-1f3fc-200d-2642-fe0f","1f646-1f3fd-200d-2642-fe0f","1f646-1f3fe-200d-2642-fe0f","1f646-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman gesturing ok","woman-gesturing-ok"],u:"1f646-200d-2640-fe0f",v:["1f646-1f3fb-200d-2640-fe0f","1f646-1f3fc-200d-2640-fe0f","1f646-1f3fd-200d-2640-fe0f","1f646-1f3fe-200d-2640-fe0f","1f646-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["information desk person"],u:"1f481",v:["1f481-1f3fb","1f481-1f3fc","1f481-1f3fd","1f481-1f3fe","1f481-1f3ff"],a:"0.6"},{n:["man tipping hand","man-tipping-hand"],u:"1f481-200d-2642-fe0f",v:["1f481-1f3fb-200d-2642-fe0f","1f481-1f3fc-200d-2642-fe0f","1f481-1f3fd-200d-2642-fe0f","1f481-1f3fe-200d-2642-fe0f","1f481-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman tipping hand","woman-tipping-hand"],u:"1f481-200d-2640-fe0f",v:["1f481-1f3fb-200d-2640-fe0f","1f481-1f3fc-200d-2640-fe0f","1f481-1f3fd-200d-2640-fe0f","1f481-1f3fe-200d-2640-fe0f","1f481-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["raising hand","happy person raising one hand"],u:"1f64b",v:["1f64b-1f3fb","1f64b-1f3fc","1f64b-1f3fd","1f64b-1f3fe","1f64b-1f3ff"],a:"0.6"},{n:["man raising hand","man-raising-hand"],u:"1f64b-200d-2642-fe0f",v:["1f64b-1f3fb-200d-2642-fe0f","1f64b-1f3fc-200d-2642-fe0f","1f64b-1f3fd-200d-2642-fe0f","1f64b-1f3fe-200d-2642-fe0f","1f64b-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman raising hand","woman-raising-hand"],u:"1f64b-200d-2640-fe0f",v:["1f64b-1f3fb-200d-2640-fe0f","1f64b-1f3fc-200d-2640-fe0f","1f64b-1f3fd-200d-2640-fe0f","1f64b-1f3fe-200d-2640-fe0f","1f64b-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["deaf person"],u:"1f9cf",v:["1f9cf-1f3fb","1f9cf-1f3fc","1f9cf-1f3fd","1f9cf-1f3fe","1f9cf-1f3ff"],a:"12.0"},{n:["deaf man"],u:"1f9cf-200d-2642-fe0f",v:["1f9cf-1f3fb-200d-2642-fe0f","1f9cf-1f3fc-200d-2642-fe0f","1f9cf-1f3fd-200d-2642-fe0f","1f9cf-1f3fe-200d-2642-fe0f","1f9cf-1f3ff-200d-2642-fe0f"],a:"12.0"},{n:["deaf woman"],u:"1f9cf-200d-2640-fe0f",v:["1f9cf-1f3fb-200d-2640-fe0f","1f9cf-1f3fc-200d-2640-fe0f","1f9cf-1f3fd-200d-2640-fe0f","1f9cf-1f3fe-200d-2640-fe0f","1f9cf-1f3ff-200d-2640-fe0f"],a:"12.0"},{n:["bow","person bowing deeply"],u:"1f647",v:["1f647-1f3fb","1f647-1f3fc","1f647-1f3fd","1f647-1f3fe","1f647-1f3ff"],a:"0.6"},{n:["man bowing","man-bowing"],u:"1f647-200d-2642-fe0f",v:["1f647-1f3fb-200d-2642-fe0f","1f647-1f3fc-200d-2642-fe0f","1f647-1f3fd-200d-2642-fe0f","1f647-1f3fe-200d-2642-fe0f","1f647-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman bowing","woman-bowing"],u:"1f647-200d-2640-fe0f",v:["1f647-1f3fb-200d-2640-fe0f","1f647-1f3fc-200d-2640-fe0f","1f647-1f3fd-200d-2640-fe0f","1f647-1f3fe-200d-2640-fe0f","1f647-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["face palm"],u:"1f926",v:["1f926-1f3fb","1f926-1f3fc","1f926-1f3fd","1f926-1f3fe","1f926-1f3ff"],a:"3.0"},{n:["man facepalming","man-facepalming"],u:"1f926-200d-2642-fe0f",v:["1f926-1f3fb-200d-2642-fe0f","1f926-1f3fc-200d-2642-fe0f","1f926-1f3fd-200d-2642-fe0f","1f926-1f3fe-200d-2642-fe0f","1f926-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman facepalming","woman-facepalming"],u:"1f926-200d-2640-fe0f",v:["1f926-1f3fb-200d-2640-fe0f","1f926-1f3fc-200d-2640-fe0f","1f926-1f3fd-200d-2640-fe0f","1f926-1f3fe-200d-2640-fe0f","1f926-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["shrug"],u:"1f937",v:["1f937-1f3fb","1f937-1f3fc","1f937-1f3fd","1f937-1f3fe","1f937-1f3ff"],a:"3.0"},{n:["man shrugging","man-shrugging"],u:"1f937-200d-2642-fe0f",v:["1f937-1f3fb-200d-2642-fe0f","1f937-1f3fc-200d-2642-fe0f","1f937-1f3fd-200d-2642-fe0f","1f937-1f3fe-200d-2642-fe0f","1f937-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman shrugging","woman-shrugging"],u:"1f937-200d-2640-fe0f",v:["1f937-1f3fb-200d-2640-fe0f","1f937-1f3fc-200d-2640-fe0f","1f937-1f3fd-200d-2640-fe0f","1f937-1f3fe-200d-2640-fe0f","1f937-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["health worker"],u:"1f9d1-200d-2695-fe0f",v:["1f9d1-1f3fb-200d-2695-fe0f","1f9d1-1f3fc-200d-2695-fe0f","1f9d1-1f3fd-200d-2695-fe0f","1f9d1-1f3fe-200d-2695-fe0f","1f9d1-1f3ff-200d-2695-fe0f"],a:"12.1"},{n:["male-doctor","man health worker"],u:"1f468-200d-2695-fe0f",v:["1f468-1f3fb-200d-2695-fe0f","1f468-1f3fc-200d-2695-fe0f","1f468-1f3fd-200d-2695-fe0f","1f468-1f3fe-200d-2695-fe0f","1f468-1f3ff-200d-2695-fe0f"],a:"4.0"},{n:["female-doctor","woman health worker"],u:"1f469-200d-2695-fe0f",v:["1f469-1f3fb-200d-2695-fe0f","1f469-1f3fc-200d-2695-fe0f","1f469-1f3fd-200d-2695-fe0f","1f469-1f3fe-200d-2695-fe0f","1f469-1f3ff-200d-2695-fe0f"],a:"4.0"},{n:["student"],u:"1f9d1-200d-1f393",v:["1f9d1-1f3fb-200d-1f393","1f9d1-1f3fc-200d-1f393","1f9d1-1f3fd-200d-1f393","1f9d1-1f3fe-200d-1f393","1f9d1-1f3ff-200d-1f393"],a:"12.1"},{n:["man student","male-student"],u:"1f468-200d-1f393",v:["1f468-1f3fb-200d-1f393","1f468-1f3fc-200d-1f393","1f468-1f3fd-200d-1f393","1f468-1f3fe-200d-1f393","1f468-1f3ff-200d-1f393"],a:"4.0"},{n:["woman student","female-student"],u:"1f469-200d-1f393",v:["1f469-1f3fb-200d-1f393","1f469-1f3fc-200d-1f393","1f469-1f3fd-200d-1f393","1f469-1f3fe-200d-1f393","1f469-1f3ff-200d-1f393"],a:"4.0"},{n:["teacher"],u:"1f9d1-200d-1f3eb",v:["1f9d1-1f3fb-200d-1f3eb","1f9d1-1f3fc-200d-1f3eb","1f9d1-1f3fd-200d-1f3eb","1f9d1-1f3fe-200d-1f3eb","1f9d1-1f3ff-200d-1f3eb"],a:"12.1"},{n:["man teacher","male-teacher"],u:"1f468-200d-1f3eb",v:["1f468-1f3fb-200d-1f3eb","1f468-1f3fc-200d-1f3eb","1f468-1f3fd-200d-1f3eb","1f468-1f3fe-200d-1f3eb","1f468-1f3ff-200d-1f3eb"],a:"4.0"},{n:["woman teacher","female-teacher"],u:"1f469-200d-1f3eb",v:["1f469-1f3fb-200d-1f3eb","1f469-1f3fc-200d-1f3eb","1f469-1f3fd-200d-1f3eb","1f469-1f3fe-200d-1f3eb","1f469-1f3ff-200d-1f3eb"],a:"4.0"},{n:["judge"],u:"1f9d1-200d-2696-fe0f",v:["1f9d1-1f3fb-200d-2696-fe0f","1f9d1-1f3fc-200d-2696-fe0f","1f9d1-1f3fd-200d-2696-fe0f","1f9d1-1f3fe-200d-2696-fe0f","1f9d1-1f3ff-200d-2696-fe0f"],a:"12.1"},{n:["man judge","male-judge"],u:"1f468-200d-2696-fe0f",v:["1f468-1f3fb-200d-2696-fe0f","1f468-1f3fc-200d-2696-fe0f","1f468-1f3fd-200d-2696-fe0f","1f468-1f3fe-200d-2696-fe0f","1f468-1f3ff-200d-2696-fe0f"],a:"4.0"},{n:["woman judge","female-judge"],u:"1f469-200d-2696-fe0f",v:["1f469-1f3fb-200d-2696-fe0f","1f469-1f3fc-200d-2696-fe0f","1f469-1f3fd-200d-2696-fe0f","1f469-1f3fe-200d-2696-fe0f","1f469-1f3ff-200d-2696-fe0f"],a:"4.0"},{n:["farmer"],u:"1f9d1-200d-1f33e",v:["1f9d1-1f3fb-200d-1f33e","1f9d1-1f3fc-200d-1f33e","1f9d1-1f3fd-200d-1f33e","1f9d1-1f3fe-200d-1f33e","1f9d1-1f3ff-200d-1f33e"],a:"12.1"},{n:["man farmer","male-farmer"],u:"1f468-200d-1f33e",v:["1f468-1f3fb-200d-1f33e","1f468-1f3fc-200d-1f33e","1f468-1f3fd-200d-1f33e","1f468-1f3fe-200d-1f33e","1f468-1f3ff-200d-1f33e"],a:"4.0"},{n:["woman farmer","female-farmer"],u:"1f469-200d-1f33e",v:["1f469-1f3fb-200d-1f33e","1f469-1f3fc-200d-1f33e","1f469-1f3fd-200d-1f33e","1f469-1f3fe-200d-1f33e","1f469-1f3ff-200d-1f33e"],a:"4.0"},{n:["cook"],u:"1f9d1-200d-1f373",v:["1f9d1-1f3fb-200d-1f373","1f9d1-1f3fc-200d-1f373","1f9d1-1f3fd-200d-1f373","1f9d1-1f3fe-200d-1f373","1f9d1-1f3ff-200d-1f373"],a:"12.1"},{n:["man cook","male-cook"],u:"1f468-200d-1f373",v:["1f468-1f3fb-200d-1f373","1f468-1f3fc-200d-1f373","1f468-1f3fd-200d-1f373","1f468-1f3fe-200d-1f373","1f468-1f3ff-200d-1f373"],a:"4.0"},{n:["woman cook","female-cook"],u:"1f469-200d-1f373",v:["1f469-1f3fb-200d-1f373","1f469-1f3fc-200d-1f373","1f469-1f3fd-200d-1f373","1f469-1f3fe-200d-1f373","1f469-1f3ff-200d-1f373"],a:"4.0"},{n:["mechanic"],u:"1f9d1-200d-1f527",v:["1f9d1-1f3fb-200d-1f527","1f9d1-1f3fc-200d-1f527","1f9d1-1f3fd-200d-1f527","1f9d1-1f3fe-200d-1f527","1f9d1-1f3ff-200d-1f527"],a:"12.1"},{n:["man mechanic","male-mechanic"],u:"1f468-200d-1f527",v:["1f468-1f3fb-200d-1f527","1f468-1f3fc-200d-1f527","1f468-1f3fd-200d-1f527","1f468-1f3fe-200d-1f527","1f468-1f3ff-200d-1f527"],a:"4.0"},{n:["woman mechanic","female-mechanic"],u:"1f469-200d-1f527",v:["1f469-1f3fb-200d-1f527","1f469-1f3fc-200d-1f527","1f469-1f3fd-200d-1f527","1f469-1f3fe-200d-1f527","1f469-1f3ff-200d-1f527"],a:"4.0"},{n:["factory worker"],u:"1f9d1-200d-1f3ed",v:["1f9d1-1f3fb-200d-1f3ed","1f9d1-1f3fc-200d-1f3ed","1f9d1-1f3fd-200d-1f3ed","1f9d1-1f3fe-200d-1f3ed","1f9d1-1f3ff-200d-1f3ed"],a:"12.1"},{n:["man factory worker","male-factory-worker"],u:"1f468-200d-1f3ed",v:["1f468-1f3fb-200d-1f3ed","1f468-1f3fc-200d-1f3ed","1f468-1f3fd-200d-1f3ed","1f468-1f3fe-200d-1f3ed","1f468-1f3ff-200d-1f3ed"],a:"4.0"},{n:["woman factory worker","female-factory-worker"],u:"1f469-200d-1f3ed",v:["1f469-1f3fb-200d-1f3ed","1f469-1f3fc-200d-1f3ed","1f469-1f3fd-200d-1f3ed","1f469-1f3fe-200d-1f3ed","1f469-1f3ff-200d-1f3ed"],a:"4.0"},{n:["office worker"],u:"1f9d1-200d-1f4bc",v:["1f9d1-1f3fb-200d-1f4bc","1f9d1-1f3fc-200d-1f4bc","1f9d1-1f3fd-200d-1f4bc","1f9d1-1f3fe-200d-1f4bc","1f9d1-1f3ff-200d-1f4bc"],a:"12.1"},{n:["man office worker","male-office-worker"],u:"1f468-200d-1f4bc",v:["1f468-1f3fb-200d-1f4bc","1f468-1f3fc-200d-1f4bc","1f468-1f3fd-200d-1f4bc","1f468-1f3fe-200d-1f4bc","1f468-1f3ff-200d-1f4bc"],a:"4.0"},{n:["woman office worker","female-office-worker"],u:"1f469-200d-1f4bc",v:["1f469-1f3fb-200d-1f4bc","1f469-1f3fc-200d-1f4bc","1f469-1f3fd-200d-1f4bc","1f469-1f3fe-200d-1f4bc","1f469-1f3ff-200d-1f4bc"],a:"4.0"},{n:["scientist"],u:"1f9d1-200d-1f52c",v:["1f9d1-1f3fb-200d-1f52c","1f9d1-1f3fc-200d-1f52c","1f9d1-1f3fd-200d-1f52c","1f9d1-1f3fe-200d-1f52c","1f9d1-1f3ff-200d-1f52c"],a:"12.1"},{n:["man scientist","male-scientist"],u:"1f468-200d-1f52c",v:["1f468-1f3fb-200d-1f52c","1f468-1f3fc-200d-1f52c","1f468-1f3fd-200d-1f52c","1f468-1f3fe-200d-1f52c","1f468-1f3ff-200d-1f52c"],a:"4.0"},{n:["woman scientist","female-scientist"],u:"1f469-200d-1f52c",v:["1f469-1f3fb-200d-1f52c","1f469-1f3fc-200d-1f52c","1f469-1f3fd-200d-1f52c","1f469-1f3fe-200d-1f52c","1f469-1f3ff-200d-1f52c"],a:"4.0"},{n:["technologist"],u:"1f9d1-200d-1f4bb",v:["1f9d1-1f3fb-200d-1f4bb","1f9d1-1f3fc-200d-1f4bb","1f9d1-1f3fd-200d-1f4bb","1f9d1-1f3fe-200d-1f4bb","1f9d1-1f3ff-200d-1f4bb"],a:"12.1"},{n:["man technologist","male-technologist"],u:"1f468-200d-1f4bb",v:["1f468-1f3fb-200d-1f4bb","1f468-1f3fc-200d-1f4bb","1f468-1f3fd-200d-1f4bb","1f468-1f3fe-200d-1f4bb","1f468-1f3ff-200d-1f4bb"],a:"4.0"},{n:["woman technologist","female-technologist"],u:"1f469-200d-1f4bb",v:["1f469-1f3fb-200d-1f4bb","1f469-1f3fc-200d-1f4bb","1f469-1f3fd-200d-1f4bb","1f469-1f3fe-200d-1f4bb","1f469-1f3ff-200d-1f4bb"],a:"4.0"},{n:["singer"],u:"1f9d1-200d-1f3a4",v:["1f9d1-1f3fb-200d-1f3a4","1f9d1-1f3fc-200d-1f3a4","1f9d1-1f3fd-200d-1f3a4","1f9d1-1f3fe-200d-1f3a4","1f9d1-1f3ff-200d-1f3a4"],a:"12.1"},{n:["man singer","male-singer"],u:"1f468-200d-1f3a4",v:["1f468-1f3fb-200d-1f3a4","1f468-1f3fc-200d-1f3a4","1f468-1f3fd-200d-1f3a4","1f468-1f3fe-200d-1f3a4","1f468-1f3ff-200d-1f3a4"],a:"4.0"},{n:["woman singer","female-singer"],u:"1f469-200d-1f3a4",v:["1f469-1f3fb-200d-1f3a4","1f469-1f3fc-200d-1f3a4","1f469-1f3fd-200d-1f3a4","1f469-1f3fe-200d-1f3a4","1f469-1f3ff-200d-1f3a4"],a:"4.0"},{n:["artist"],u:"1f9d1-200d-1f3a8",v:["1f9d1-1f3fb-200d-1f3a8","1f9d1-1f3fc-200d-1f3a8","1f9d1-1f3fd-200d-1f3a8","1f9d1-1f3fe-200d-1f3a8","1f9d1-1f3ff-200d-1f3a8"],a:"12.1"},{n:["man artist","male-artist"],u:"1f468-200d-1f3a8",v:["1f468-1f3fb-200d-1f3a8","1f468-1f3fc-200d-1f3a8","1f468-1f3fd-200d-1f3a8","1f468-1f3fe-200d-1f3a8","1f468-1f3ff-200d-1f3a8"],a:"4.0"},{n:["woman artist","female-artist"],u:"1f469-200d-1f3a8",v:["1f469-1f3fb-200d-1f3a8","1f469-1f3fc-200d-1f3a8","1f469-1f3fd-200d-1f3a8","1f469-1f3fe-200d-1f3a8","1f469-1f3ff-200d-1f3a8"],a:"4.0"},{n:["pilot"],u:"1f9d1-200d-2708-fe0f",v:["1f9d1-1f3fb-200d-2708-fe0f","1f9d1-1f3fc-200d-2708-fe0f","1f9d1-1f3fd-200d-2708-fe0f","1f9d1-1f3fe-200d-2708-fe0f","1f9d1-1f3ff-200d-2708-fe0f"],a:"12.1"},{n:["man pilot","male-pilot"],u:"1f468-200d-2708-fe0f",v:["1f468-1f3fb-200d-2708-fe0f","1f468-1f3fc-200d-2708-fe0f","1f468-1f3fd-200d-2708-fe0f","1f468-1f3fe-200d-2708-fe0f","1f468-1f3ff-200d-2708-fe0f"],a:"4.0"},{n:["woman pilot","female-pilot"],u:"1f469-200d-2708-fe0f",v:["1f469-1f3fb-200d-2708-fe0f","1f469-1f3fc-200d-2708-fe0f","1f469-1f3fd-200d-2708-fe0f","1f469-1f3fe-200d-2708-fe0f","1f469-1f3ff-200d-2708-fe0f"],a:"4.0"},{n:["astronaut"],u:"1f9d1-200d-1f680",v:["1f9d1-1f3fb-200d-1f680","1f9d1-1f3fc-200d-1f680","1f9d1-1f3fd-200d-1f680","1f9d1-1f3fe-200d-1f680","1f9d1-1f3ff-200d-1f680"],a:"12.1"},{n:["man astronaut","male-astronaut"],u:"1f468-200d-1f680",v:["1f468-1f3fb-200d-1f680","1f468-1f3fc-200d-1f680","1f468-1f3fd-200d-1f680","1f468-1f3fe-200d-1f680","1f468-1f3ff-200d-1f680"],a:"4.0"},{n:["woman astronaut","female-astronaut"],u:"1f469-200d-1f680",v:["1f469-1f3fb-200d-1f680","1f469-1f3fc-200d-1f680","1f469-1f3fd-200d-1f680","1f469-1f3fe-200d-1f680","1f469-1f3ff-200d-1f680"],a:"4.0"},{n:["firefighter"],u:"1f9d1-200d-1f692",v:["1f9d1-1f3fb-200d-1f692","1f9d1-1f3fc-200d-1f692","1f9d1-1f3fd-200d-1f692","1f9d1-1f3fe-200d-1f692","1f9d1-1f3ff-200d-1f692"],a:"12.1"},{n:["man firefighter","male-firefighter"],u:"1f468-200d-1f692",v:["1f468-1f3fb-200d-1f692","1f468-1f3fc-200d-1f692","1f468-1f3fd-200d-1f692","1f468-1f3fe-200d-1f692","1f468-1f3ff-200d-1f692"],a:"4.0"},{n:["woman firefighter","female-firefighter"],u:"1f469-200d-1f692",v:["1f469-1f3fb-200d-1f692","1f469-1f3fc-200d-1f692","1f469-1f3fd-200d-1f692","1f469-1f3fe-200d-1f692","1f469-1f3ff-200d-1f692"],a:"4.0"},{n:["cop","police officer"],u:"1f46e",v:["1f46e-1f3fb","1f46e-1f3fc","1f46e-1f3fd","1f46e-1f3fe","1f46e-1f3ff"],a:"0.6"},{n:["man police officer","male-police-officer"],u:"1f46e-200d-2642-fe0f",v:["1f46e-1f3fb-200d-2642-fe0f","1f46e-1f3fc-200d-2642-fe0f","1f46e-1f3fd-200d-2642-fe0f","1f46e-1f3fe-200d-2642-fe0f","1f46e-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman police officer","female-police-officer"],u:"1f46e-200d-2640-fe0f",v:["1f46e-1f3fb-200d-2640-fe0f","1f46e-1f3fc-200d-2640-fe0f","1f46e-1f3fd-200d-2640-fe0f","1f46e-1f3fe-200d-2640-fe0f","1f46e-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["detective","sleuth or spy"],u:"1f575-fe0f",v:["1f575-1f3fb","1f575-1f3fc","1f575-1f3fd","1f575-1f3fe","1f575-1f3ff"],a:"0.7"},{n:["man detective","male-detective"],u:"1f575-fe0f-200d-2642-fe0f",v:["1f575-1f3fb-200d-2642-fe0f","1f575-1f3fc-200d-2642-fe0f","1f575-1f3fd-200d-2642-fe0f","1f575-1f3fe-200d-2642-fe0f","1f575-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman detective","female-detective"],u:"1f575-fe0f-200d-2640-fe0f",v:["1f575-1f3fb-200d-2640-fe0f","1f575-1f3fc-200d-2640-fe0f","1f575-1f3fd-200d-2640-fe0f","1f575-1f3fe-200d-2640-fe0f","1f575-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["guardsman"],u:"1f482",v:["1f482-1f3fb","1f482-1f3fc","1f482-1f3fd","1f482-1f3fe","1f482-1f3ff"],a:"0.6"},{n:["man guard","male-guard"],u:"1f482-200d-2642-fe0f",v:["1f482-1f3fb-200d-2642-fe0f","1f482-1f3fc-200d-2642-fe0f","1f482-1f3fd-200d-2642-fe0f","1f482-1f3fe-200d-2642-fe0f","1f482-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman guard","female-guard"],u:"1f482-200d-2640-fe0f",v:["1f482-1f3fb-200d-2640-fe0f","1f482-1f3fc-200d-2640-fe0f","1f482-1f3fd-200d-2640-fe0f","1f482-1f3fe-200d-2640-fe0f","1f482-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["ninja"],u:"1f977",v:["1f977-1f3fb","1f977-1f3fc","1f977-1f3fd","1f977-1f3fe","1f977-1f3ff"],a:"13.0"},{n:["construction worker"],u:"1f477",v:["1f477-1f3fb","1f477-1f3fc","1f477-1f3fd","1f477-1f3fe","1f477-1f3ff"],a:"0.6"},{n:["man construction worker","male-construction-worker"],u:"1f477-200d-2642-fe0f",v:["1f477-1f3fb-200d-2642-fe0f","1f477-1f3fc-200d-2642-fe0f","1f477-1f3fd-200d-2642-fe0f","1f477-1f3fe-200d-2642-fe0f","1f477-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman construction worker","female-construction-worker"],u:"1f477-200d-2640-fe0f",v:["1f477-1f3fb-200d-2640-fe0f","1f477-1f3fc-200d-2640-fe0f","1f477-1f3fd-200d-2640-fe0f","1f477-1f3fe-200d-2640-fe0f","1f477-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person with crown"],u:"1fac5",v:["1fac5-1f3fb","1fac5-1f3fc","1fac5-1f3fd","1fac5-1f3fe","1fac5-1f3ff"],a:"14.0"},{n:["prince"],u:"1f934",v:["1f934-1f3fb","1f934-1f3fc","1f934-1f3fd","1f934-1f3fe","1f934-1f3ff"],a:"3.0"},{n:["princess"],u:"1f478",v:["1f478-1f3fb","1f478-1f3fc","1f478-1f3fd","1f478-1f3fe","1f478-1f3ff"],a:"0.6"},{n:["man with turban"],u:"1f473",v:["1f473-1f3fb","1f473-1f3fc","1f473-1f3fd","1f473-1f3fe","1f473-1f3ff"],a:"0.6"},{n:["man wearing turban","man-wearing-turban"],u:"1f473-200d-2642-fe0f",v:["1f473-1f3fb-200d-2642-fe0f","1f473-1f3fc-200d-2642-fe0f","1f473-1f3fd-200d-2642-fe0f","1f473-1f3fe-200d-2642-fe0f","1f473-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman wearing turban","woman-wearing-turban"],u:"1f473-200d-2640-fe0f",v:["1f473-1f3fb-200d-2640-fe0f","1f473-1f3fc-200d-2640-fe0f","1f473-1f3fd-200d-2640-fe0f","1f473-1f3fe-200d-2640-fe0f","1f473-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["man with gua pi mao"],u:"1f472",v:["1f472-1f3fb","1f472-1f3fc","1f472-1f3fd","1f472-1f3fe","1f472-1f3ff"],a:"0.6"},{n:["person with headscarf"],u:"1f9d5",v:["1f9d5-1f3fb","1f9d5-1f3fc","1f9d5-1f3fd","1f9d5-1f3fe","1f9d5-1f3ff"],a:"5.0"},{n:["man in tuxedo","person in tuxedo"],u:"1f935",v:["1f935-1f3fb","1f935-1f3fc","1f935-1f3fd","1f935-1f3fe","1f935-1f3ff"],a:"3.0"},{n:["man in tuxedo"],u:"1f935-200d-2642-fe0f",v:["1f935-1f3fb-200d-2642-fe0f","1f935-1f3fc-200d-2642-fe0f","1f935-1f3fd-200d-2642-fe0f","1f935-1f3fe-200d-2642-fe0f","1f935-1f3ff-200d-2642-fe0f"],a:"13.0"},{n:["woman in tuxedo"],u:"1f935-200d-2640-fe0f",v:["1f935-1f3fb-200d-2640-fe0f","1f935-1f3fc-200d-2640-fe0f","1f935-1f3fd-200d-2640-fe0f","1f935-1f3fe-200d-2640-fe0f","1f935-1f3ff-200d-2640-fe0f"],a:"13.0"},{n:["bride with veil"],u:"1f470",v:["1f470-1f3fb","1f470-1f3fc","1f470-1f3fd","1f470-1f3fe","1f470-1f3ff"],a:"0.6"},{n:["man with veil"],u:"1f470-200d-2642-fe0f",v:["1f470-1f3fb-200d-2642-fe0f","1f470-1f3fc-200d-2642-fe0f","1f470-1f3fd-200d-2642-fe0f","1f470-1f3fe-200d-2642-fe0f","1f470-1f3ff-200d-2642-fe0f"],a:"13.0"},{n:["woman with veil"],u:"1f470-200d-2640-fe0f",v:["1f470-1f3fb-200d-2640-fe0f","1f470-1f3fc-200d-2640-fe0f","1f470-1f3fd-200d-2640-fe0f","1f470-1f3fe-200d-2640-fe0f","1f470-1f3ff-200d-2640-fe0f"],a:"13.0"},{n:["pregnant woman"],u:"1f930",v:["1f930-1f3fb","1f930-1f3fc","1f930-1f3fd","1f930-1f3fe","1f930-1f3ff"],a:"3.0"},{n:["pregnant man"],u:"1fac3",v:["1fac3-1f3fb","1fac3-1f3fc","1fac3-1f3fd","1fac3-1f3fe","1fac3-1f3ff"],a:"14.0"},{n:["pregnant person"],u:"1fac4",v:["1fac4-1f3fb","1fac4-1f3fc","1fac4-1f3fd","1fac4-1f3fe","1fac4-1f3ff"],a:"14.0"},{n:["breast-feeding"],u:"1f931",v:["1f931-1f3fb","1f931-1f3fc","1f931-1f3fd","1f931-1f3fe","1f931-1f3ff"],a:"5.0"},{n:["woman feeding baby"],u:"1f469-200d-1f37c",v:["1f469-1f3fb-200d-1f37c","1f469-1f3fc-200d-1f37c","1f469-1f3fd-200d-1f37c","1f469-1f3fe-200d-1f37c","1f469-1f3ff-200d-1f37c"],a:"13.0"},{n:["man feeding baby"],u:"1f468-200d-1f37c",v:["1f468-1f3fb-200d-1f37c","1f468-1f3fc-200d-1f37c","1f468-1f3fd-200d-1f37c","1f468-1f3fe-200d-1f37c","1f468-1f3ff-200d-1f37c"],a:"13.0"},{n:["person feeding baby"],u:"1f9d1-200d-1f37c",v:["1f9d1-1f3fb-200d-1f37c","1f9d1-1f3fc-200d-1f37c","1f9d1-1f3fd-200d-1f37c","1f9d1-1f3fe-200d-1f37c","1f9d1-1f3ff-200d-1f37c"],a:"13.0"},{n:["angel","baby angel"],u:"1f47c",v:["1f47c-1f3fb","1f47c-1f3fc","1f47c-1f3fd","1f47c-1f3fe","1f47c-1f3ff"],a:"0.6"},{n:["santa","father christmas"],u:"1f385",v:["1f385-1f3fb","1f385-1f3fc","1f385-1f3fd","1f385-1f3fe","1f385-1f3ff"],a:"0.6"},{n:["mrs claus","mother christmas"],u:"1f936",v:["1f936-1f3fb","1f936-1f3fc","1f936-1f3fd","1f936-1f3fe","1f936-1f3ff"],a:"3.0"},{n:["mx claus"],u:"1f9d1-200d-1f384",v:["1f9d1-1f3fb-200d-1f384","1f9d1-1f3fc-200d-1f384","1f9d1-1f3fd-200d-1f384","1f9d1-1f3fe-200d-1f384","1f9d1-1f3ff-200d-1f384"],a:"13.0"},{n:["superhero"],u:"1f9b8",v:["1f9b8-1f3fb","1f9b8-1f3fc","1f9b8-1f3fd","1f9b8-1f3fe","1f9b8-1f3ff"],a:"11.0"},{n:["man superhero","male superhero"],u:"1f9b8-200d-2642-fe0f",v:["1f9b8-1f3fb-200d-2642-fe0f","1f9b8-1f3fc-200d-2642-fe0f","1f9b8-1f3fd-200d-2642-fe0f","1f9b8-1f3fe-200d-2642-fe0f","1f9b8-1f3ff-200d-2642-fe0f"],a:"11.0"},{n:["woman superhero","female superhero"],u:"1f9b8-200d-2640-fe0f",v:["1f9b8-1f3fb-200d-2640-fe0f","1f9b8-1f3fc-200d-2640-fe0f","1f9b8-1f3fd-200d-2640-fe0f","1f9b8-1f3fe-200d-2640-fe0f","1f9b8-1f3ff-200d-2640-fe0f"],a:"11.0"},{n:["supervillain"],u:"1f9b9",v:["1f9b9-1f3fb","1f9b9-1f3fc","1f9b9-1f3fd","1f9b9-1f3fe","1f9b9-1f3ff"],a:"11.0"},{n:["man supervillain","male supervillain"],u:"1f9b9-200d-2642-fe0f",v:["1f9b9-1f3fb-200d-2642-fe0f","1f9b9-1f3fc-200d-2642-fe0f","1f9b9-1f3fd-200d-2642-fe0f","1f9b9-1f3fe-200d-2642-fe0f","1f9b9-1f3ff-200d-2642-fe0f"],a:"11.0"},{n:["woman supervillain","female supervillain"],u:"1f9b9-200d-2640-fe0f",v:["1f9b9-1f3fb-200d-2640-fe0f","1f9b9-1f3fc-200d-2640-fe0f","1f9b9-1f3fd-200d-2640-fe0f","1f9b9-1f3fe-200d-2640-fe0f","1f9b9-1f3ff-200d-2640-fe0f"],a:"11.0"},{n:["mage"],u:"1f9d9",v:["1f9d9-1f3fb","1f9d9-1f3fc","1f9d9-1f3fd","1f9d9-1f3fe","1f9d9-1f3ff"],a:"5.0"},{n:["man mage","male mage"],u:"1f9d9-200d-2642-fe0f",v:["1f9d9-1f3fb-200d-2642-fe0f","1f9d9-1f3fc-200d-2642-fe0f","1f9d9-1f3fd-200d-2642-fe0f","1f9d9-1f3fe-200d-2642-fe0f","1f9d9-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman mage","female mage"],u:"1f9d9-200d-2640-fe0f",v:["1f9d9-1f3fb-200d-2640-fe0f","1f9d9-1f3fc-200d-2640-fe0f","1f9d9-1f3fd-200d-2640-fe0f","1f9d9-1f3fe-200d-2640-fe0f","1f9d9-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["fairy"],u:"1f9da",v:["1f9da-1f3fb","1f9da-1f3fc","1f9da-1f3fd","1f9da-1f3fe","1f9da-1f3ff"],a:"5.0"},{n:["man fairy","male fairy"],u:"1f9da-200d-2642-fe0f",v:["1f9da-1f3fb-200d-2642-fe0f","1f9da-1f3fc-200d-2642-fe0f","1f9da-1f3fd-200d-2642-fe0f","1f9da-1f3fe-200d-2642-fe0f","1f9da-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman fairy","female fairy"],u:"1f9da-200d-2640-fe0f",v:["1f9da-1f3fb-200d-2640-fe0f","1f9da-1f3fc-200d-2640-fe0f","1f9da-1f3fd-200d-2640-fe0f","1f9da-1f3fe-200d-2640-fe0f","1f9da-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["vampire"],u:"1f9db",v:["1f9db-1f3fb","1f9db-1f3fc","1f9db-1f3fd","1f9db-1f3fe","1f9db-1f3ff"],a:"5.0"},{n:["man vampire","male vampire"],u:"1f9db-200d-2642-fe0f",v:["1f9db-1f3fb-200d-2642-fe0f","1f9db-1f3fc-200d-2642-fe0f","1f9db-1f3fd-200d-2642-fe0f","1f9db-1f3fe-200d-2642-fe0f","1f9db-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman vampire","female vampire"],u:"1f9db-200d-2640-fe0f",v:["1f9db-1f3fb-200d-2640-fe0f","1f9db-1f3fc-200d-2640-fe0f","1f9db-1f3fd-200d-2640-fe0f","1f9db-1f3fe-200d-2640-fe0f","1f9db-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["merperson"],u:"1f9dc",v:["1f9dc-1f3fb","1f9dc-1f3fc","1f9dc-1f3fd","1f9dc-1f3fe","1f9dc-1f3ff"],a:"5.0"},{n:["merman"],u:"1f9dc-200d-2642-fe0f",v:["1f9dc-1f3fb-200d-2642-fe0f","1f9dc-1f3fc-200d-2642-fe0f","1f9dc-1f3fd-200d-2642-fe0f","1f9dc-1f3fe-200d-2642-fe0f","1f9dc-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["mermaid"],u:"1f9dc-200d-2640-fe0f",v:["1f9dc-1f3fb-200d-2640-fe0f","1f9dc-1f3fc-200d-2640-fe0f","1f9dc-1f3fd-200d-2640-fe0f","1f9dc-1f3fe-200d-2640-fe0f","1f9dc-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["elf"],u:"1f9dd",v:["1f9dd-1f3fb","1f9dd-1f3fc","1f9dd-1f3fd","1f9dd-1f3fe","1f9dd-1f3ff"],a:"5.0"},{n:["man elf","male elf"],u:"1f9dd-200d-2642-fe0f",v:["1f9dd-1f3fb-200d-2642-fe0f","1f9dd-1f3fc-200d-2642-fe0f","1f9dd-1f3fd-200d-2642-fe0f","1f9dd-1f3fe-200d-2642-fe0f","1f9dd-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman elf","female elf"],u:"1f9dd-200d-2640-fe0f",v:["1f9dd-1f3fb-200d-2640-fe0f","1f9dd-1f3fc-200d-2640-fe0f","1f9dd-1f3fd-200d-2640-fe0f","1f9dd-1f3fe-200d-2640-fe0f","1f9dd-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["genie"],u:"1f9de",a:"5.0"},{n:["man genie","male genie"],u:"1f9de-200d-2642-fe0f",a:"5.0"},{n:["woman genie","female genie"],u:"1f9de-200d-2640-fe0f",a:"5.0"},{n:["zombie"],u:"1f9df",a:"5.0"},{n:["man zombie","male zombie"],u:"1f9df-200d-2642-fe0f",a:"5.0"},{n:["woman zombie","female zombie"],u:"1f9df-200d-2640-fe0f",a:"5.0"},{n:["troll"],u:"1f9cc",a:"14.0"},{n:["massage","face massage"],u:"1f486",v:["1f486-1f3fb","1f486-1f3fc","1f486-1f3fd","1f486-1f3fe","1f486-1f3ff"],a:"0.6"},{n:["man getting massage","man-getting-massage"],u:"1f486-200d-2642-fe0f",v:["1f486-1f3fb-200d-2642-fe0f","1f486-1f3fc-200d-2642-fe0f","1f486-1f3fd-200d-2642-fe0f","1f486-1f3fe-200d-2642-fe0f","1f486-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman getting massage","woman-getting-massage"],u:"1f486-200d-2640-fe0f",v:["1f486-1f3fb-200d-2640-fe0f","1f486-1f3fc-200d-2640-fe0f","1f486-1f3fd-200d-2640-fe0f","1f486-1f3fe-200d-2640-fe0f","1f486-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["haircut"],u:"1f487",v:["1f487-1f3fb","1f487-1f3fc","1f487-1f3fd","1f487-1f3fe","1f487-1f3ff"],a:"0.6"},{n:["man getting haircut","man-getting-haircut"],u:"1f487-200d-2642-fe0f",v:["1f487-1f3fb-200d-2642-fe0f","1f487-1f3fc-200d-2642-fe0f","1f487-1f3fd-200d-2642-fe0f","1f487-1f3fe-200d-2642-fe0f","1f487-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman getting haircut","woman-getting-haircut"],u:"1f487-200d-2640-fe0f",v:["1f487-1f3fb-200d-2640-fe0f","1f487-1f3fc-200d-2640-fe0f","1f487-1f3fd-200d-2640-fe0f","1f487-1f3fe-200d-2640-fe0f","1f487-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["walking","pedestrian"],u:"1f6b6",v:["1f6b6-1f3fb","1f6b6-1f3fc","1f6b6-1f3fd","1f6b6-1f3fe","1f6b6-1f3ff"],a:"0.6"},{n:["man walking","man-walking"],u:"1f6b6-200d-2642-fe0f",v:["1f6b6-1f3fb-200d-2642-fe0f","1f6b6-1f3fc-200d-2642-fe0f","1f6b6-1f3fd-200d-2642-fe0f","1f6b6-1f3fe-200d-2642-fe0f","1f6b6-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman walking","woman-walking"],u:"1f6b6-200d-2640-fe0f",v:["1f6b6-1f3fb-200d-2640-fe0f","1f6b6-1f3fc-200d-2640-fe0f","1f6b6-1f3fd-200d-2640-fe0f","1f6b6-1f3fe-200d-2640-fe0f","1f6b6-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["standing person"],u:"1f9cd",v:["1f9cd-1f3fb","1f9cd-1f3fc","1f9cd-1f3fd","1f9cd-1f3fe","1f9cd-1f3ff"],a:"12.0"},{n:["man standing"],u:"1f9cd-200d-2642-fe0f",v:["1f9cd-1f3fb-200d-2642-fe0f","1f9cd-1f3fc-200d-2642-fe0f","1f9cd-1f3fd-200d-2642-fe0f","1f9cd-1f3fe-200d-2642-fe0f","1f9cd-1f3ff-200d-2642-fe0f"],a:"12.0"},{n:["woman standing"],u:"1f9cd-200d-2640-fe0f",v:["1f9cd-1f3fb-200d-2640-fe0f","1f9cd-1f3fc-200d-2640-fe0f","1f9cd-1f3fd-200d-2640-fe0f","1f9cd-1f3fe-200d-2640-fe0f","1f9cd-1f3ff-200d-2640-fe0f"],a:"12.0"},{n:["kneeling person"],u:"1f9ce",v:["1f9ce-1f3fb","1f9ce-1f3fc","1f9ce-1f3fd","1f9ce-1f3fe","1f9ce-1f3ff"],a:"12.0"},{n:["man kneeling"],u:"1f9ce-200d-2642-fe0f",v:["1f9ce-1f3fb-200d-2642-fe0f","1f9ce-1f3fc-200d-2642-fe0f","1f9ce-1f3fd-200d-2642-fe0f","1f9ce-1f3fe-200d-2642-fe0f","1f9ce-1f3ff-200d-2642-fe0f"],a:"12.0"},{n:["woman kneeling"],u:"1f9ce-200d-2640-fe0f",v:["1f9ce-1f3fb-200d-2640-fe0f","1f9ce-1f3fc-200d-2640-fe0f","1f9ce-1f3fd-200d-2640-fe0f","1f9ce-1f3fe-200d-2640-fe0f","1f9ce-1f3ff-200d-2640-fe0f"],a:"12.0"},{n:["person with white cane","person with probing cane"],u:"1f9d1-200d-1f9af",v:["1f9d1-1f3fb-200d-1f9af","1f9d1-1f3fc-200d-1f9af","1f9d1-1f3fd-200d-1f9af","1f9d1-1f3fe-200d-1f9af","1f9d1-1f3ff-200d-1f9af"],a:"12.1"},{n:["man with white cane","man with probing cane"],u:"1f468-200d-1f9af",v:["1f468-1f3fb-200d-1f9af","1f468-1f3fc-200d-1f9af","1f468-1f3fd-200d-1f9af","1f468-1f3fe-200d-1f9af","1f468-1f3ff-200d-1f9af"],a:"12.0"},{n:["woman with white cane","woman with probing cane"],u:"1f469-200d-1f9af",v:["1f469-1f3fb-200d-1f9af","1f469-1f3fc-200d-1f9af","1f469-1f3fd-200d-1f9af","1f469-1f3fe-200d-1f9af","1f469-1f3ff-200d-1f9af"],a:"12.0"},{n:["person in motorized wheelchair"],u:"1f9d1-200d-1f9bc",v:["1f9d1-1f3fb-200d-1f9bc","1f9d1-1f3fc-200d-1f9bc","1f9d1-1f3fd-200d-1f9bc","1f9d1-1f3fe-200d-1f9bc","1f9d1-1f3ff-200d-1f9bc"],a:"12.1"},{n:["man in motorized wheelchair"],u:"1f468-200d-1f9bc",v:["1f468-1f3fb-200d-1f9bc","1f468-1f3fc-200d-1f9bc","1f468-1f3fd-200d-1f9bc","1f468-1f3fe-200d-1f9bc","1f468-1f3ff-200d-1f9bc"],a:"12.0"},{n:["woman in motorized wheelchair"],u:"1f469-200d-1f9bc",v:["1f469-1f3fb-200d-1f9bc","1f469-1f3fc-200d-1f9bc","1f469-1f3fd-200d-1f9bc","1f469-1f3fe-200d-1f9bc","1f469-1f3ff-200d-1f9bc"],a:"12.0"},{n:["person in manual wheelchair"],u:"1f9d1-200d-1f9bd",v:["1f9d1-1f3fb-200d-1f9bd","1f9d1-1f3fc-200d-1f9bd","1f9d1-1f3fd-200d-1f9bd","1f9d1-1f3fe-200d-1f9bd","1f9d1-1f3ff-200d-1f9bd"],a:"12.1"},{n:["man in manual wheelchair"],u:"1f468-200d-1f9bd",v:["1f468-1f3fb-200d-1f9bd","1f468-1f3fc-200d-1f9bd","1f468-1f3fd-200d-1f9bd","1f468-1f3fe-200d-1f9bd","1f468-1f3ff-200d-1f9bd"],a:"12.0"},{n:["woman in manual wheelchair"],u:"1f469-200d-1f9bd",v:["1f469-1f3fb-200d-1f9bd","1f469-1f3fc-200d-1f9bd","1f469-1f3fd-200d-1f9bd","1f469-1f3fe-200d-1f9bd","1f469-1f3ff-200d-1f9bd"],a:"12.0"},{n:["runner","running"],u:"1f3c3",v:["1f3c3-1f3fb","1f3c3-1f3fc","1f3c3-1f3fd","1f3c3-1f3fe","1f3c3-1f3ff"],a:"0.6"},{n:["man running","man-running"],u:"1f3c3-200d-2642-fe0f",v:["1f3c3-1f3fb-200d-2642-fe0f","1f3c3-1f3fc-200d-2642-fe0f","1f3c3-1f3fd-200d-2642-fe0f","1f3c3-1f3fe-200d-2642-fe0f","1f3c3-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman running","woman-running"],u:"1f3c3-200d-2640-fe0f",v:["1f3c3-1f3fb-200d-2640-fe0f","1f3c3-1f3fc-200d-2640-fe0f","1f3c3-1f3fd-200d-2640-fe0f","1f3c3-1f3fe-200d-2640-fe0f","1f3c3-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["dancer"],u:"1f483",v:["1f483-1f3fb","1f483-1f3fc","1f483-1f3fd","1f483-1f3fe","1f483-1f3ff"],a:"0.6"},{n:["man dancing"],u:"1f57a",v:["1f57a-1f3fb","1f57a-1f3fc","1f57a-1f3fd","1f57a-1f3fe","1f57a-1f3ff"],a:"3.0"},{n:["person in suit levitating","man in business suit levitating"],u:"1f574-fe0f",v:["1f574-1f3fb","1f574-1f3fc","1f574-1f3fd","1f574-1f3fe","1f574-1f3ff"],a:"0.7"},{n:["dancers","woman with bunny ears"],u:"1f46f",a:"0.6"},{n:["men with bunny ears","men-with-bunny-ears-partying","man-with-bunny-ears-partying"],u:"1f46f-200d-2642-fe0f",a:"4.0"},{n:["women with bunny ears","women-with-bunny-ears-partying","woman-with-bunny-ears-partying"],u:"1f46f-200d-2640-fe0f",a:"4.0"},{n:["person in steamy room"],u:"1f9d6",v:["1f9d6-1f3fb","1f9d6-1f3fc","1f9d6-1f3fd","1f9d6-1f3fe","1f9d6-1f3ff"],a:"5.0"},{n:["man in steamy room"],u:"1f9d6-200d-2642-fe0f",v:["1f9d6-1f3fb-200d-2642-fe0f","1f9d6-1f3fc-200d-2642-fe0f","1f9d6-1f3fd-200d-2642-fe0f","1f9d6-1f3fe-200d-2642-fe0f","1f9d6-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman in steamy room"],u:"1f9d6-200d-2640-fe0f",v:["1f9d6-1f3fb-200d-2640-fe0f","1f9d6-1f3fc-200d-2640-fe0f","1f9d6-1f3fd-200d-2640-fe0f","1f9d6-1f3fe-200d-2640-fe0f","1f9d6-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["person climbing"],u:"1f9d7",v:["1f9d7-1f3fb","1f9d7-1f3fc","1f9d7-1f3fd","1f9d7-1f3fe","1f9d7-1f3ff"],a:"5.0"},{n:["man climbing"],u:"1f9d7-200d-2642-fe0f",v:["1f9d7-1f3fb-200d-2642-fe0f","1f9d7-1f3fc-200d-2642-fe0f","1f9d7-1f3fd-200d-2642-fe0f","1f9d7-1f3fe-200d-2642-fe0f","1f9d7-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman climbing"],u:"1f9d7-200d-2640-fe0f",v:["1f9d7-1f3fb-200d-2640-fe0f","1f9d7-1f3fc-200d-2640-fe0f","1f9d7-1f3fd-200d-2640-fe0f","1f9d7-1f3fe-200d-2640-fe0f","1f9d7-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["fencer"],u:"1f93a",a:"3.0"},{n:["horse racing"],u:"1f3c7",v:["1f3c7-1f3fb","1f3c7-1f3fc","1f3c7-1f3fd","1f3c7-1f3fe","1f3c7-1f3ff"],a:"1.0"},{n:["skier"],u:"26f7-fe0f",a:"0.7"},{n:["snowboarder"],u:"1f3c2",v:["1f3c2-1f3fb","1f3c2-1f3fc","1f3c2-1f3fd","1f3c2-1f3fe","1f3c2-1f3ff"],a:"0.6"},{n:["golfer","person golfing"],u:"1f3cc-fe0f",v:["1f3cc-1f3fb","1f3cc-1f3fc","1f3cc-1f3fd","1f3cc-1f3fe","1f3cc-1f3ff"],a:"0.7"},{n:["man golfing","man-golfing"],u:"1f3cc-fe0f-200d-2642-fe0f",v:["1f3cc-1f3fb-200d-2642-fe0f","1f3cc-1f3fc-200d-2642-fe0f","1f3cc-1f3fd-200d-2642-fe0f","1f3cc-1f3fe-200d-2642-fe0f","1f3cc-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman golfing","woman-golfing"],u:"1f3cc-fe0f-200d-2640-fe0f",v:["1f3cc-1f3fb-200d-2640-fe0f","1f3cc-1f3fc-200d-2640-fe0f","1f3cc-1f3fd-200d-2640-fe0f","1f3cc-1f3fe-200d-2640-fe0f","1f3cc-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["surfer"],u:"1f3c4",v:["1f3c4-1f3fb","1f3c4-1f3fc","1f3c4-1f3fd","1f3c4-1f3fe","1f3c4-1f3ff"],a:"0.6"},{n:["man surfing","man-surfing"],u:"1f3c4-200d-2642-fe0f",v:["1f3c4-1f3fb-200d-2642-fe0f","1f3c4-1f3fc-200d-2642-fe0f","1f3c4-1f3fd-200d-2642-fe0f","1f3c4-1f3fe-200d-2642-fe0f","1f3c4-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman surfing","woman-surfing"],u:"1f3c4-200d-2640-fe0f",v:["1f3c4-1f3fb-200d-2640-fe0f","1f3c4-1f3fc-200d-2640-fe0f","1f3c4-1f3fd-200d-2640-fe0f","1f3c4-1f3fe-200d-2640-fe0f","1f3c4-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["rowboat"],u:"1f6a3",v:["1f6a3-1f3fb","1f6a3-1f3fc","1f6a3-1f3fd","1f6a3-1f3fe","1f6a3-1f3ff"],a:"1.0"},{n:["man rowing boat","man-rowing-boat"],u:"1f6a3-200d-2642-fe0f",v:["1f6a3-1f3fb-200d-2642-fe0f","1f6a3-1f3fc-200d-2642-fe0f","1f6a3-1f3fd-200d-2642-fe0f","1f6a3-1f3fe-200d-2642-fe0f","1f6a3-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman rowing boat","woman-rowing-boat"],u:"1f6a3-200d-2640-fe0f",v:["1f6a3-1f3fb-200d-2640-fe0f","1f6a3-1f3fc-200d-2640-fe0f","1f6a3-1f3fd-200d-2640-fe0f","1f6a3-1f3fe-200d-2640-fe0f","1f6a3-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["swimmer"],u:"1f3ca",v:["1f3ca-1f3fb","1f3ca-1f3fc","1f3ca-1f3fd","1f3ca-1f3fe","1f3ca-1f3ff"],a:"0.6"},{n:["man swimming","man-swimming"],u:"1f3ca-200d-2642-fe0f",v:["1f3ca-1f3fb-200d-2642-fe0f","1f3ca-1f3fc-200d-2642-fe0f","1f3ca-1f3fd-200d-2642-fe0f","1f3ca-1f3fe-200d-2642-fe0f","1f3ca-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman swimming","woman-swimming"],u:"1f3ca-200d-2640-fe0f",v:["1f3ca-1f3fb-200d-2640-fe0f","1f3ca-1f3fc-200d-2640-fe0f","1f3ca-1f3fd-200d-2640-fe0f","1f3ca-1f3fe-200d-2640-fe0f","1f3ca-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person with ball","person bouncing ball"],u:"26f9-fe0f",v:["26f9-1f3fb","26f9-1f3fc","26f9-1f3fd","26f9-1f3fe","26f9-1f3ff"],a:"0.7"},{n:["man bouncing ball","man-bouncing-ball"],u:"26f9-fe0f-200d-2642-fe0f",v:["26f9-1f3fb-200d-2642-fe0f","26f9-1f3fc-200d-2642-fe0f","26f9-1f3fd-200d-2642-fe0f","26f9-1f3fe-200d-2642-fe0f","26f9-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman bouncing ball","woman-bouncing-ball"],u:"26f9-fe0f-200d-2640-fe0f",v:["26f9-1f3fb-200d-2640-fe0f","26f9-1f3fc-200d-2640-fe0f","26f9-1f3fd-200d-2640-fe0f","26f9-1f3fe-200d-2640-fe0f","26f9-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["weight lifter","person lifting weights"],u:"1f3cb-fe0f",v:["1f3cb-1f3fb","1f3cb-1f3fc","1f3cb-1f3fd","1f3cb-1f3fe","1f3cb-1f3ff"],a:"0.7"},{n:["man lifting weights","man-lifting-weights"],u:"1f3cb-fe0f-200d-2642-fe0f",v:["1f3cb-1f3fb-200d-2642-fe0f","1f3cb-1f3fc-200d-2642-fe0f","1f3cb-1f3fd-200d-2642-fe0f","1f3cb-1f3fe-200d-2642-fe0f","1f3cb-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman lifting weights","woman-lifting-weights"],u:"1f3cb-fe0f-200d-2640-fe0f",v:["1f3cb-1f3fb-200d-2640-fe0f","1f3cb-1f3fc-200d-2640-fe0f","1f3cb-1f3fd-200d-2640-fe0f","1f3cb-1f3fe-200d-2640-fe0f","1f3cb-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["bicyclist"],u:"1f6b4",v:["1f6b4-1f3fb","1f6b4-1f3fc","1f6b4-1f3fd","1f6b4-1f3fe","1f6b4-1f3ff"],a:"1.0"},{n:["man biking","man-biking"],u:"1f6b4-200d-2642-fe0f",v:["1f6b4-1f3fb-200d-2642-fe0f","1f6b4-1f3fc-200d-2642-fe0f","1f6b4-1f3fd-200d-2642-fe0f","1f6b4-1f3fe-200d-2642-fe0f","1f6b4-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman biking","woman-biking"],u:"1f6b4-200d-2640-fe0f",v:["1f6b4-1f3fb-200d-2640-fe0f","1f6b4-1f3fc-200d-2640-fe0f","1f6b4-1f3fd-200d-2640-fe0f","1f6b4-1f3fe-200d-2640-fe0f","1f6b4-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["mountain bicyclist"],u:"1f6b5",v:["1f6b5-1f3fb","1f6b5-1f3fc","1f6b5-1f3fd","1f6b5-1f3fe","1f6b5-1f3ff"],a:"1.0"},{n:["man mountain biking","man-mountain-biking"],u:"1f6b5-200d-2642-fe0f",v:["1f6b5-1f3fb-200d-2642-fe0f","1f6b5-1f3fc-200d-2642-fe0f","1f6b5-1f3fd-200d-2642-fe0f","1f6b5-1f3fe-200d-2642-fe0f","1f6b5-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman mountain biking","woman-mountain-biking"],u:"1f6b5-200d-2640-fe0f",v:["1f6b5-1f3fb-200d-2640-fe0f","1f6b5-1f3fc-200d-2640-fe0f","1f6b5-1f3fd-200d-2640-fe0f","1f6b5-1f3fe-200d-2640-fe0f","1f6b5-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person doing cartwheel"],u:"1f938",v:["1f938-1f3fb","1f938-1f3fc","1f938-1f3fd","1f938-1f3fe","1f938-1f3ff"],a:"3.0"},{n:["man cartwheeling","man-cartwheeling"],u:"1f938-200d-2642-fe0f",v:["1f938-1f3fb-200d-2642-fe0f","1f938-1f3fc-200d-2642-fe0f","1f938-1f3fd-200d-2642-fe0f","1f938-1f3fe-200d-2642-fe0f","1f938-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman cartwheeling","woman-cartwheeling"],u:"1f938-200d-2640-fe0f",v:["1f938-1f3fb-200d-2640-fe0f","1f938-1f3fc-200d-2640-fe0f","1f938-1f3fd-200d-2640-fe0f","1f938-1f3fe-200d-2640-fe0f","1f938-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["wrestlers"],u:"1f93c",a:"3.0"},{n:["men wrestling","man-wrestling"],u:"1f93c-200d-2642-fe0f",a:"4.0"},{n:["women wrestling","woman-wrestling"],u:"1f93c-200d-2640-fe0f",a:"4.0"},{n:["water polo"],u:"1f93d",v:["1f93d-1f3fb","1f93d-1f3fc","1f93d-1f3fd","1f93d-1f3fe","1f93d-1f3ff"],a:"3.0"},{n:["man playing water polo","man-playing-water-polo"],u:"1f93d-200d-2642-fe0f",v:["1f93d-1f3fb-200d-2642-fe0f","1f93d-1f3fc-200d-2642-fe0f","1f93d-1f3fd-200d-2642-fe0f","1f93d-1f3fe-200d-2642-fe0f","1f93d-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman playing water polo","woman-playing-water-polo"],u:"1f93d-200d-2640-fe0f",v:["1f93d-1f3fb-200d-2640-fe0f","1f93d-1f3fc-200d-2640-fe0f","1f93d-1f3fd-200d-2640-fe0f","1f93d-1f3fe-200d-2640-fe0f","1f93d-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["handball"],u:"1f93e",v:["1f93e-1f3fb","1f93e-1f3fc","1f93e-1f3fd","1f93e-1f3fe","1f93e-1f3ff"],a:"3.0"},{n:["man playing handball","man-playing-handball"],u:"1f93e-200d-2642-fe0f",v:["1f93e-1f3fb-200d-2642-fe0f","1f93e-1f3fc-200d-2642-fe0f","1f93e-1f3fd-200d-2642-fe0f","1f93e-1f3fe-200d-2642-fe0f","1f93e-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman playing handball","woman-playing-handball"],u:"1f93e-200d-2640-fe0f",v:["1f93e-1f3fb-200d-2640-fe0f","1f93e-1f3fc-200d-2640-fe0f","1f93e-1f3fd-200d-2640-fe0f","1f93e-1f3fe-200d-2640-fe0f","1f93e-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["juggling"],u:"1f939",v:["1f939-1f3fb","1f939-1f3fc","1f939-1f3fd","1f939-1f3fe","1f939-1f3ff"],a:"3.0"},{n:["man juggling","man-juggling"],u:"1f939-200d-2642-fe0f",v:["1f939-1f3fb-200d-2642-fe0f","1f939-1f3fc-200d-2642-fe0f","1f939-1f3fd-200d-2642-fe0f","1f939-1f3fe-200d-2642-fe0f","1f939-1f3ff-200d-2642-fe0f"],a:"4.0"},{n:["woman juggling","woman-juggling"],u:"1f939-200d-2640-fe0f",v:["1f939-1f3fb-200d-2640-fe0f","1f939-1f3fc-200d-2640-fe0f","1f939-1f3fd-200d-2640-fe0f","1f939-1f3fe-200d-2640-fe0f","1f939-1f3ff-200d-2640-fe0f"],a:"4.0"},{n:["person in lotus position"],u:"1f9d8",v:["1f9d8-1f3fb","1f9d8-1f3fc","1f9d8-1f3fd","1f9d8-1f3fe","1f9d8-1f3ff"],a:"5.0"},{n:["man in lotus position"],u:"1f9d8-200d-2642-fe0f",v:["1f9d8-1f3fb-200d-2642-fe0f","1f9d8-1f3fc-200d-2642-fe0f","1f9d8-1f3fd-200d-2642-fe0f","1f9d8-1f3fe-200d-2642-fe0f","1f9d8-1f3ff-200d-2642-fe0f"],a:"5.0"},{n:["woman in lotus position"],u:"1f9d8-200d-2640-fe0f",v:["1f9d8-1f3fb-200d-2640-fe0f","1f9d8-1f3fc-200d-2640-fe0f","1f9d8-1f3fd-200d-2640-fe0f","1f9d8-1f3fe-200d-2640-fe0f","1f9d8-1f3ff-200d-2640-fe0f"],a:"5.0"},{n:["bath"],u:"1f6c0",v:["1f6c0-1f3fb","1f6c0-1f3fc","1f6c0-1f3fd","1f6c0-1f3fe","1f6c0-1f3ff"],a:"0.6"},{n:["sleeping accommodation"],u:"1f6cc",v:["1f6cc-1f3fb","1f6cc-1f3fc","1f6cc-1f3fd","1f6cc-1f3fe","1f6cc-1f3ff"],a:"1.0"},{n:["people holding hands"],u:"1f9d1-200d-1f91d-200d-1f9d1",v:["1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fb-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fc-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fd-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3fe-200d-1f91d-200d-1f9d1-1f3ff","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fb","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fc","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fd","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3fe","1f9d1-1f3ff-200d-1f91d-200d-1f9d1-1f3ff"],a:"12.0"},{n:["women holding hands","two women holding hands"],u:"1f46d",v:["1f46d-1f3fb","1f46d-1f3fc","1f46d-1f3fd","1f46d-1f3fe","1f46d-1f3ff","1f469-1f3fb-200d-1f91d-200d-1f469-1f3fc","1f469-1f3fb-200d-1f91d-200d-1f469-1f3fd","1f469-1f3fb-200d-1f91d-200d-1f469-1f3fe","1f469-1f3fb-200d-1f91d-200d-1f469-1f3ff","1f469-1f3fc-200d-1f91d-200d-1f469-1f3fb","1f469-1f3fc-200d-1f91d-200d-1f469-1f3fd","1f469-1f3fc-200d-1f91d-200d-1f469-1f3fe","1f469-1f3fc-200d-1f91d-200d-1f469-1f3ff","1f469-1f3fd-200d-1f91d-200d-1f469-1f3fb","1f469-1f3fd-200d-1f91d-200d-1f469-1f3fc","1f469-1f3fd-200d-1f91d-200d-1f469-1f3fe","1f469-1f3fd-200d-1f91d-200d-1f469-1f3ff","1f469-1f3fe-200d-1f91d-200d-1f469-1f3fb","1f469-1f3fe-200d-1f91d-200d-1f469-1f3fc","1f469-1f3fe-200d-1f91d-200d-1f469-1f3fd","1f469-1f3fe-200d-1f91d-200d-1f469-1f3ff","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fb","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fc","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fd","1f469-1f3ff-200d-1f91d-200d-1f469-1f3fe"],a:"1.0"},{n:["couple","man and woman holding hands","woman and man holding hands"],u:"1f46b",v:["1f46b-1f3fb","1f46b-1f3fc","1f46b-1f3fd","1f46b-1f3fe","1f46b-1f3ff","1f469-1f3fb-200d-1f91d-200d-1f468-1f3fc","1f469-1f3fb-200d-1f91d-200d-1f468-1f3fd","1f469-1f3fb-200d-1f91d-200d-1f468-1f3fe","1f469-1f3fb-200d-1f91d-200d-1f468-1f3ff","1f469-1f3fc-200d-1f91d-200d-1f468-1f3fb","1f469-1f3fc-200d-1f91d-200d-1f468-1f3fd","1f469-1f3fc-200d-1f91d-200d-1f468-1f3fe","1f469-1f3fc-200d-1f91d-200d-1f468-1f3ff","1f469-1f3fd-200d-1f91d-200d-1f468-1f3fb","1f469-1f3fd-200d-1f91d-200d-1f468-1f3fc","1f469-1f3fd-200d-1f91d-200d-1f468-1f3fe","1f469-1f3fd-200d-1f91d-200d-1f468-1f3ff","1f469-1f3fe-200d-1f91d-200d-1f468-1f3fb","1f469-1f3fe-200d-1f91d-200d-1f468-1f3fc","1f469-1f3fe-200d-1f91d-200d-1f468-1f3fd","1f469-1f3fe-200d-1f91d-200d-1f468-1f3ff","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fb","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fc","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fd","1f469-1f3ff-200d-1f91d-200d-1f468-1f3fe"],a:"0.6"},{n:["men holding hands","two men holding hands"],u:"1f46c",v:["1f46c-1f3fb","1f46c-1f3fc","1f46c-1f3fd","1f46c-1f3fe","1f46c-1f3ff","1f468-1f3fb-200d-1f91d-200d-1f468-1f3fc","1f468-1f3fb-200d-1f91d-200d-1f468-1f3fd","1f468-1f3fb-200d-1f91d-200d-1f468-1f3fe","1f468-1f3fb-200d-1f91d-200d-1f468-1f3ff","1f468-1f3fc-200d-1f91d-200d-1f468-1f3fb","1f468-1f3fc-200d-1f91d-200d-1f468-1f3fd","1f468-1f3fc-200d-1f91d-200d-1f468-1f3fe","1f468-1f3fc-200d-1f91d-200d-1f468-1f3ff","1f468-1f3fd-200d-1f91d-200d-1f468-1f3fb","1f468-1f3fd-200d-1f91d-200d-1f468-1f3fc","1f468-1f3fd-200d-1f91d-200d-1f468-1f3fe","1f468-1f3fd-200d-1f91d-200d-1f468-1f3ff","1f468-1f3fe-200d-1f91d-200d-1f468-1f3fb","1f468-1f3fe-200d-1f91d-200d-1f468-1f3fc","1f468-1f3fe-200d-1f91d-200d-1f468-1f3fd","1f468-1f3fe-200d-1f91d-200d-1f468-1f3ff","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fb","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fc","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fd","1f468-1f3ff-200d-1f91d-200d-1f468-1f3fe"],a:"1.0"},{n:["kiss","couplekiss"],u:"1f48f",v:["1f48f-1f3fb","1f48f-1f3fc","1f48f-1f3fd","1f48f-1f3fe","1f48f-1f3ff","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe","1f9d1-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe","1f9d1-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe","1f9d1-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3ff","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fb","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fc","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fd","1f9d1-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f9d1-1f3fe"],a:"0.6"},{n:["woman-kiss-man","kiss: woman, man"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f468",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff"],a:"2.0"},{n:["man-kiss-man","kiss: man, man"],u:"1f468-200d-2764-fe0f-200d-1f48b-200d-1f468",v:["1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fb","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fc","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fd","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3fe","1f468-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f468-1f3ff"],a:"2.0"},{n:["woman-kiss-woman","kiss: woman, woman"],u:"1f469-200d-2764-fe0f-200d-1f48b-200d-1f469",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f48b-200d-1f469-1f3ff"],a:"2.0"},{n:["couple with heart"],u:"1f491",v:["1f491-1f3fb","1f491-1f3fc","1f491-1f3fd","1f491-1f3fe","1f491-1f3ff","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3fe","1f9d1-1f3fb-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3fe","1f9d1-1f3fc-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3fe","1f9d1-1f3fd-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3fe-200d-2764-fe0f-200d-1f9d1-1f3ff","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fb","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fc","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fd","1f9d1-1f3ff-200d-2764-fe0f-200d-1f9d1-1f3fe"],a:"0.6"},{n:["woman-heart-man","couple with heart: woman, man"],u:"1f469-200d-2764-fe0f-200d-1f468",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f468-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff"],a:"2.0"},{n:["man-heart-man","couple with heart: man, man"],u:"1f468-200d-2764-fe0f-200d-1f468",v:["1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fb-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fc-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fd-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3fe-200d-2764-fe0f-200d-1f468-1f3ff","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fb","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fc","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fd","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3fe","1f468-1f3ff-200d-2764-fe0f-200d-1f468-1f3ff"],a:"2.0"},{n:["woman-heart-woman","couple with heart: woman, woman"],u:"1f469-200d-2764-fe0f-200d-1f469",v:["1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fb-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fc-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fd-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3fe-200d-2764-fe0f-200d-1f469-1f3ff","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fb","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fc","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fd","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3fe","1f469-1f3ff-200d-2764-fe0f-200d-1f469-1f3ff"],a:"2.0"},{n:["family"],u:"1f46a",a:"0.6"},{n:["man-woman-boy","family: man, woman, boy"],u:"1f468-200d-1f469-200d-1f466",a:"2.0"},{n:["man-woman-girl","family: man, woman, girl"],u:"1f468-200d-1f469-200d-1f467",a:"2.0"},{n:["man-woman-girl-boy","family: man, woman, girl, boy"],u:"1f468-200d-1f469-200d-1f467-200d-1f466",a:"2.0"},{n:["man-woman-boy-boy","family: man, woman, boy, boy"],u:"1f468-200d-1f469-200d-1f466-200d-1f466",a:"2.0"},{n:["man-woman-girl-girl","family: man, woman, girl, girl"],u:"1f468-200d-1f469-200d-1f467-200d-1f467",a:"2.0"},{n:["man-man-boy","family: man, man, boy"],u:"1f468-200d-1f468-200d-1f466",a:"2.0"},{n:["man-man-girl","family: man, man, girl"],u:"1f468-200d-1f468-200d-1f467",a:"2.0"},{n:["man-man-girl-boy","family: man, man, girl, boy"],u:"1f468-200d-1f468-200d-1f467-200d-1f466",a:"2.0"},{n:["man-man-boy-boy","family: man, man, boy, boy"],u:"1f468-200d-1f468-200d-1f466-200d-1f466",a:"2.0"},{n:["man-man-girl-girl","family: man, man, girl, girl"],u:"1f468-200d-1f468-200d-1f467-200d-1f467",a:"2.0"},{n:["woman-woman-boy","family: woman, woman, boy"],u:"1f469-200d-1f469-200d-1f466",a:"2.0"},{n:["woman-woman-girl","family: woman, woman, girl"],u:"1f469-200d-1f469-200d-1f467",a:"2.0"},{n:["woman-woman-girl-boy","family: woman, woman, girl, boy"],u:"1f469-200d-1f469-200d-1f467-200d-1f466",a:"2.0"},{n:["woman-woman-boy-boy","family: woman, woman, boy, boy"],u:"1f469-200d-1f469-200d-1f466-200d-1f466",a:"2.0"},{n:["woman-woman-girl-girl","family: woman, woman, girl, girl"],u:"1f469-200d-1f469-200d-1f467-200d-1f467",a:"2.0"},{n:["man-boy","family: man, boy"],u:"1f468-200d-1f466",a:"4.0"},{n:["man-boy-boy","family: man, boy, boy"],u:"1f468-200d-1f466-200d-1f466",a:"4.0"},{n:["man-girl","family: man, girl"],u:"1f468-200d-1f467",a:"4.0"},{n:["man-girl-boy","family: man, girl, boy"],u:"1f468-200d-1f467-200d-1f466",a:"4.0"},{n:["man-girl-girl","family: man, girl, girl"],u:"1f468-200d-1f467-200d-1f467",a:"4.0"},{n:["woman-boy","family: woman, boy"],u:"1f469-200d-1f466",a:"4.0"},{n:["woman-boy-boy","family: woman, boy, boy"],u:"1f469-200d-1f466-200d-1f466",a:"4.0"},{n:["woman-girl","family: woman, girl"],u:"1f469-200d-1f467",a:"4.0"},{n:["woman-girl-boy","family: woman, girl, boy"],u:"1f469-200d-1f467-200d-1f466",a:"4.0"},{n:["woman-girl-girl","family: woman, girl, girl"],u:"1f469-200d-1f467-200d-1f467",a:"4.0"},{n:["speaking head","speaking head in silhouette"],u:"1f5e3-fe0f",a:"0.7"},{n:["bust in silhouette"],u:"1f464",a:"0.6"},{n:["busts in silhouette"],u:"1f465",a:"1.0"},{n:["people hugging"],u:"1fac2",a:"13.0"},{n:["footprints"],u:"1f463",a:"0.6"}],animals_nature:[{n:["monkey face"],u:"1f435",a:"0.6"},{n:["monkey"],u:"1f412",a:"0.6"},{n:["gorilla"],u:"1f98d",a:"3.0"},{n:["orangutan"],u:"1f9a7",a:"12.0"},{n:["dog","dog face"],u:"1f436",a:"0.6"},{n:["dog","dog2"],u:"1f415",a:"0.7"},{n:["guide dog"],u:"1f9ae",a:"12.0"},{n:["service dog"],u:"1f415-200d-1f9ba",a:"12.0"},{n:["poodle"],u:"1f429",a:"0.6"},{n:["wolf","wolf face"],u:"1f43a",a:"0.6"},{n:["fox face"],u:"1f98a",a:"3.0"},{n:["raccoon"],u:"1f99d",a:"11.0"},{n:["cat","cat face"],u:"1f431",a:"0.6"},{n:["cat","cat2"],u:"1f408",a:"0.7"},{n:["black cat"],u:"1f408-200d-2b1b",a:"13.0"},{n:["lion face"],u:"1f981",a:"1.0"},{n:["tiger","tiger face"],u:"1f42f",a:"0.6"},{n:["tiger","tiger2"],u:"1f405",a:"1.0"},{n:["leopard"],u:"1f406",a:"1.0"},{n:["horse","horse face"],u:"1f434",a:"0.6"},{n:["horse","racehorse"],u:"1f40e",a:"0.6"},{n:["unicorn face"],u:"1f984",a:"1.0"},{n:["zebra face"],u:"1f993",a:"5.0"},{n:["deer"],u:"1f98c",a:"3.0"},{n:["bison"],u:"1f9ac",a:"13.0"},{n:["cow","cow face"],u:"1f42e",a:"0.6"},{n:["ox"],u:"1f402",a:"1.0"},{n:["water buffalo"],u:"1f403",a:"1.0"},{n:["cow","cow2"],u:"1f404",a:"1.0"},{n:["pig","pig face"],u:"1f437",a:"0.6"},{n:["pig","pig2"],u:"1f416",a:"1.0"},{n:["boar"],u:"1f417",a:"0.6"},{n:["pig nose"],u:"1f43d",a:"0.6"},{n:["ram"],u:"1f40f",a:"1.0"},{n:["sheep"],u:"1f411",a:"0.6"},{n:["goat"],u:"1f410",a:"1.0"},{n:["dromedary camel"],u:"1f42a",a:"1.0"},{n:["camel","bactrian camel"],u:"1f42b",a:"0.6"},{n:["llama"],u:"1f999",a:"11.0"},{n:["giraffe face"],u:"1f992",a:"5.0"},{n:["elephant"],u:"1f418",a:"0.6"},{n:["mammoth"],u:"1f9a3",a:"13.0"},{n:["rhinoceros"],u:"1f98f",a:"3.0"},{n:["hippopotamus"],u:"1f99b",a:"11.0"},{n:["mouse","mouse face"],u:"1f42d",a:"0.6"},{n:["mouse","mouse2"],u:"1f401",a:"1.0"},{n:["rat"],u:"1f400",a:"1.0"},{n:["hamster","hamster face"],u:"1f439",a:"0.6"},{n:["rabbit","rabbit face"],u:"1f430",a:"0.6"},{n:["rabbit","rabbit2"],u:"1f407",a:"1.0"},{n:["chipmunk"],u:"1f43f-fe0f",a:"0.7"},{n:["beaver"],u:"1f9ab",a:"13.0"},{n:["hedgehog"],u:"1f994",a:"5.0"},{n:["bat"],u:"1f987",a:"3.0"},{n:["bear","bear face"],u:"1f43b",a:"0.6"},{n:["polar bear"],u:"1f43b-200d-2744-fe0f",a:"13.0"},{n:["koala"],u:"1f428",a:"0.6"},{n:["panda face"],u:"1f43c",a:"0.6"},{n:["sloth"],u:"1f9a5",a:"12.0"},{n:["otter"],u:"1f9a6",a:"12.0"},{n:["skunk"],u:"1f9a8",a:"12.0"},{n:["kangaroo"],u:"1f998",a:"11.0"},{n:["badger"],u:"1f9a1",a:"11.0"},{n:["feet","paw prints"],u:"1f43e",a:"0.6"},{n:["turkey"],u:"1f983",a:"1.0"},{n:["chicken"],u:"1f414",a:"0.6"},{n:["rooster"],u:"1f413",a:"1.0"},{n:["hatching chick"],u:"1f423",a:"0.6"},{n:["baby chick"],u:"1f424",a:"0.6"},{n:["hatched chick","front-facing baby chick"],u:"1f425",a:"0.6"},{n:["bird"],u:"1f426",a:"0.6"},{n:["penguin"],u:"1f427",a:"0.6"},{n:["dove","dove of peace"],u:"1f54a-fe0f",a:"0.7"},{n:["eagle"],u:"1f985",a:"3.0"},{n:["duck"],u:"1f986",a:"3.0"},{n:["swan"],u:"1f9a2",a:"11.0"},{n:["owl"],u:"1f989",a:"3.0"},{n:["dodo"],u:"1f9a4",a:"13.0"},{n:["feather"],u:"1fab6",a:"13.0"},{n:["flamingo"],u:"1f9a9",a:"12.0"},{n:["peacock"],u:"1f99a",a:"11.0"},{n:["parrot"],u:"1f99c",a:"11.0"},{n:["frog","frog face"],u:"1f438",a:"0.6"},{n:["crocodile"],u:"1f40a",a:"1.0"},{n:["turtle"],u:"1f422",a:"0.6"},{n:["lizard"],u:"1f98e",a:"3.0"},{n:["snake"],u:"1f40d",a:"0.6"},{n:["dragon face"],u:"1f432",a:"0.6"},{n:["dragon"],u:"1f409",a:"1.0"},{n:["sauropod"],u:"1f995",a:"5.0"},{n:["t-rex"],u:"1f996",a:"5.0"},{n:["whale","spouting whale"],u:"1f433",a:"0.6"},{n:["whale","whale2"],u:"1f40b",a:"1.0"},{n:["dolphin","flipper"],u:"1f42c",a:"0.6"},{n:["seal"],u:"1f9ad",a:"13.0"},{n:["fish"],u:"1f41f",a:"0.6"},{n:["tropical fish"],u:"1f420",a:"0.6"},{n:["blowfish"],u:"1f421",a:"0.6"},{n:["shark"],u:"1f988",a:"3.0"},{n:["octopus"],u:"1f419",a:"0.6"},{n:["shell","spiral shell"],u:"1f41a",a:"0.6"},{n:["coral"],u:"1fab8",a:"14.0"},{n:["snail"],u:"1f40c",a:"0.6"},{n:["butterfly"],u:"1f98b",a:"3.0"},{n:["bug"],u:"1f41b",a:"0.6"},{n:["ant"],u:"1f41c",a:"0.6"},{n:["bee","honeybee"],u:"1f41d",a:"0.6"},{n:["beetle"],u:"1fab2",a:"13.0"},{n:["ladybug","lady beetle"],u:"1f41e",a:"0.6"},{n:["cricket"],u:"1f997",a:"5.0"},{n:["cockroach"],u:"1fab3",a:"13.0"},{n:["spider"],u:"1f577-fe0f",a:"0.7"},{n:["spider web"],u:"1f578-fe0f",a:"0.7"},{n:["scorpion"],u:"1f982",a:"1.0"},{n:["mosquito"],u:"1f99f",a:"11.0"},{n:["fly"],u:"1fab0",a:"13.0"},{n:["worm"],u:"1fab1",a:"13.0"},{n:["microbe"],u:"1f9a0",a:"11.0"},{n:["bouquet"],u:"1f490",a:"0.6"},{n:["cherry blossom"],u:"1f338",a:"0.6"},{n:["white flower"],u:"1f4ae",a:"0.6"},{n:["lotus"],u:"1fab7",a:"14.0"},{n:["rosette"],u:"1f3f5-fe0f",a:"0.7"},{n:["rose"],u:"1f339",a:"0.6"},{n:["wilted flower"],u:"1f940",a:"3.0"},{n:["hibiscus"],u:"1f33a",a:"0.6"},{n:["sunflower"],u:"1f33b",a:"0.6"},{n:["blossom"],u:"1f33c",a:"0.6"},{n:["tulip"],u:"1f337",a:"0.6"},{n:["seedling"],u:"1f331",a:"0.6"},{n:["potted plant"],u:"1fab4",a:"13.0"},{n:["evergreen tree"],u:"1f332",a:"1.0"},{n:["deciduous tree"],u:"1f333",a:"1.0"},{n:["palm tree"],u:"1f334",a:"0.6"},{n:["cactus"],u:"1f335",a:"0.6"},{n:["ear of rice"],u:"1f33e",a:"0.6"},{n:["herb"],u:"1f33f",a:"0.6"},{n:["shamrock"],u:"2618-fe0f",a:"1.0"},{n:["four leaf clover"],u:"1f340",a:"0.6"},{n:["maple leaf"],u:"1f341",a:"0.6"},{n:["fallen leaf"],u:"1f342",a:"0.6"},{n:["leaves","leaf fluttering in wind"],u:"1f343",a:"0.6"},{n:["empty nest"],u:"1fab9",a:"14.0"},{n:["nest with eggs"],u:"1faba",a:"14.0"}],food_drink:[{n:["grapes"],u:"1f347",a:"0.6"},{n:["melon"],u:"1f348",a:"0.6"},{n:["watermelon"],u:"1f349",a:"0.6"},{n:["tangerine"],u:"1f34a",a:"0.6"},{n:["lemon"],u:"1f34b",a:"1.0"},{n:["banana"],u:"1f34c",a:"0.6"},{n:["pineapple"],u:"1f34d",a:"0.6"},{n:["mango"],u:"1f96d",a:"11.0"},{n:["apple","red apple"],u:"1f34e",a:"0.6"},{n:["green apple"],u:"1f34f",a:"0.6"},{n:["pear"],u:"1f350",a:"1.0"},{n:["peach"],u:"1f351",a:"0.6"},{n:["cherries"],u:"1f352",a:"0.6"},{n:["strawberry"],u:"1f353",a:"0.6"},{n:["blueberries"],u:"1fad0",a:"13.0"},{n:["kiwifruit"],u:"1f95d",a:"3.0"},{n:["tomato"],u:"1f345",a:"0.6"},{n:["olive"],u:"1fad2",a:"13.0"},{n:["coconut"],u:"1f965",a:"5.0"},{n:["avocado"],u:"1f951",a:"3.0"},{n:["eggplant","aubergine"],u:"1f346",a:"0.6"},{n:["potato"],u:"1f954",a:"3.0"},{n:["carrot"],u:"1f955",a:"3.0"},{n:["corn","ear of maize"],u:"1f33d",a:"0.6"},{n:["hot pepper"],u:"1f336-fe0f",a:"0.7"},{n:["bell pepper"],u:"1fad1",a:"13.0"},{n:["cucumber"],u:"1f952",a:"3.0"},{n:["leafy green"],u:"1f96c",a:"11.0"},{n:["broccoli"],u:"1f966",a:"5.0"},{n:["garlic"],u:"1f9c4",a:"12.0"},{n:["onion"],u:"1f9c5",a:"12.0"},{n:["mushroom"],u:"1f344",a:"0.6"},{n:["peanuts"],u:"1f95c",a:"3.0"},{n:["beans"],u:"1fad8",a:"14.0"},{n:["chestnut"],u:"1f330",a:"0.6"},{n:["bread"],u:"1f35e",a:"0.6"},{n:["croissant"],u:"1f950",a:"3.0"},{n:["baguette bread"],u:"1f956",a:"3.0"},{n:["flatbread"],u:"1fad3",a:"13.0"},{n:["pretzel"],u:"1f968",a:"5.0"},{n:["bagel"],u:"1f96f",a:"11.0"},{n:["pancakes"],u:"1f95e",a:"3.0"},{n:["waffle"],u:"1f9c7",a:"12.0"},{n:["cheese wedge"],u:"1f9c0",a:"1.0"},{n:["meat on bone"],u:"1f356",a:"0.6"},{n:["poultry leg"],u:"1f357",a:"0.6"},{n:["cut of meat"],u:"1f969",a:"5.0"},{n:["bacon"],u:"1f953",a:"3.0"},{n:["hamburger"],u:"1f354",a:"0.6"},{n:["fries","french fries"],u:"1f35f",a:"0.6"},{n:["pizza","slice of pizza"],u:"1f355",a:"0.6"},{n:["hotdog","hot dog"],u:"1f32d",a:"1.0"},{n:["sandwich"],u:"1f96a",a:"5.0"},{n:["taco"],u:"1f32e",a:"1.0"},{n:["burrito"],u:"1f32f",a:"1.0"},{n:["tamale"],u:"1fad4",a:"13.0"},{n:["stuffed flatbread"],u:"1f959",a:"3.0"},{n:["falafel"],u:"1f9c6",a:"12.0"},{n:["egg"],u:"1f95a",a:"3.0"},{n:["cooking","fried egg"],u:"1f373",a:"0.6"},{n:["shallow pan of food"],u:"1f958",a:"3.0"},{n:["stew","pot of food"],u:"1f372",a:"0.6"},{n:["fondue"],u:"1fad5",a:"13.0"},{n:["bowl with spoon"],u:"1f963",a:"5.0"},{n:["green salad"],u:"1f957",a:"3.0"},{n:["popcorn"],u:"1f37f",a:"1.0"},{n:["butter"],u:"1f9c8",a:"12.0"},{n:["salt","salt shaker"],u:"1f9c2",a:"11.0"},{n:["canned food"],u:"1f96b",a:"5.0"},{n:["bento","bento box"],u:"1f371",a:"0.6"},{n:["rice cracker"],u:"1f358",a:"0.6"},{n:["rice ball"],u:"1f359",a:"0.6"},{n:["rice","cooked rice"],u:"1f35a",a:"0.6"},{n:["curry","curry and rice"],u:"1f35b",a:"0.6"},{n:["ramen","steaming bowl"],u:"1f35c",a:"0.6"},{n:["spaghetti"],u:"1f35d",a:"0.6"},{n:["sweet potato","roasted sweet potato"],u:"1f360",a:"0.6"},{n:["oden"],u:"1f362",a:"0.6"},{n:["sushi"],u:"1f363",a:"0.6"},{n:["fried shrimp"],u:"1f364",a:"0.6"},{n:["fish cake","fish cake with swirl design"],u:"1f365",a:"0.6"},{n:["moon cake"],u:"1f96e",a:"11.0"},{n:["dango"],u:"1f361",a:"0.6"},{n:["dumpling"],u:"1f95f",a:"5.0"},{n:["fortune cookie"],u:"1f960",a:"5.0"},{n:["takeout box"],u:"1f961",a:"5.0"},{n:["crab"],u:"1f980",a:"1.0"},{n:["lobster"],u:"1f99e",a:"11.0"},{n:["shrimp"],u:"1f990",a:"3.0"},{n:["squid"],u:"1f991",a:"3.0"},{n:["oyster"],u:"1f9aa",a:"12.0"},{n:["icecream","soft ice cream"],u:"1f366",a:"0.6"},{n:["shaved ice"],u:"1f367",a:"0.6"},{n:["ice cream"],u:"1f368",a:"0.6"},{n:["doughnut"],u:"1f369",a:"0.6"},{n:["cookie"],u:"1f36a",a:"0.6"},{n:["birthday","birthday cake"],u:"1f382",a:"0.6"},{n:["cake","shortcake"],u:"1f370",a:"0.6"},{n:["cupcake"],u:"1f9c1",a:"11.0"},{n:["pie"],u:"1f967",a:"5.0"},{n:["chocolate bar"],u:"1f36b",a:"0.6"},{n:["candy"],u:"1f36c",a:"0.6"},{n:["lollipop"],u:"1f36d",a:"0.6"},{n:["custard"],u:"1f36e",a:"0.6"},{n:["honey pot"],u:"1f36f",a:"0.6"},{n:["baby bottle"],u:"1f37c",a:"1.0"},{n:["glass of milk"],u:"1f95b",a:"3.0"},{n:["coffee","hot beverage"],u:"2615",a:"0.6"},{n:["teapot"],u:"1fad6",a:"13.0"},{n:["tea","teacup without handle"],u:"1f375",a:"0.6"},{n:["sake","sake bottle and cup"],u:"1f376",a:"0.6"},{n:["champagne","bottle with popping cork"],u:"1f37e",a:"1.0"},{n:["wine glass"],u:"1f377",a:"0.6"},{n:["cocktail","cocktail glass"],u:"1f378",a:"0.6"},{n:["tropical drink"],u:"1f379",a:"0.6"},{n:["beer","beer mug"],u:"1f37a",a:"0.6"},{n:["beers","clinking beer mugs"],u:"1f37b",a:"0.6"},{n:["clinking glasses"],u:"1f942",a:"3.0"},{n:["tumbler glass"],u:"1f943",a:"3.0"},{n:["pouring liquid"],u:"1fad7",a:"14.0"},{n:["cup with straw"],u:"1f964",a:"5.0"},{n:["bubble tea"],u:"1f9cb",a:"13.0"},{n:["beverage box"],u:"1f9c3",a:"12.0"},{n:["mate drink"],u:"1f9c9",a:"12.0"},{n:["ice cube"],u:"1f9ca",a:"12.0"},{n:["chopsticks"],u:"1f962",a:"5.0"},{n:["knife fork plate","fork and knife with plate"],u:"1f37d-fe0f",a:"0.7"},{n:["fork and knife"],u:"1f374",a:"0.6"},{n:["spoon"],u:"1f944",a:"3.0"},{n:["hocho","knife"],u:"1f52a",a:"0.6"},{n:["jar"],u:"1fad9",a:"14.0"},{n:["amphora"],u:"1f3fa",a:"1.0"}],travel_places:[{n:["earth africa","earth globe europe-africa"],u:"1f30d",a:"0.7"},{n:["earth americas","earth globe americas"],u:"1f30e",a:"0.7"},{n:["earth asia","earth globe asia-australia"],u:"1f30f",a:"0.6"},{n:["globe with meridians"],u:"1f310",a:"1.0"},{n:["world map"],u:"1f5fa-fe0f",a:"0.7"},{n:["japan","silhouette of japan"],u:"1f5fe",a:"0.6"},{n:["compass"],u:"1f9ed",a:"11.0"},{n:["snow-capped mountain","snow capped mountain"],u:"1f3d4-fe0f",a:"0.7"},{n:["mountain"],u:"26f0-fe0f",a:"0.7"},{n:["volcano"],u:"1f30b",a:"0.6"},{n:["mount fuji"],u:"1f5fb",a:"0.6"},{n:["camping"],u:"1f3d5-fe0f",a:"0.7"},{n:["beach with umbrella"],u:"1f3d6-fe0f",a:"0.7"},{n:["desert"],u:"1f3dc-fe0f",a:"0.7"},{n:["desert island"],u:"1f3dd-fe0f",a:"0.7"},{n:["national park"],u:"1f3de-fe0f",a:"0.7"},{n:["stadium"],u:"1f3df-fe0f",a:"0.7"},{n:["classical building"],u:"1f3db-fe0f",a:"0.7"},{n:["building construction"],u:"1f3d7-fe0f",a:"0.7"},{n:["brick","bricks"],u:"1f9f1",a:"11.0"},{n:["rock"],u:"1faa8",a:"13.0"},{n:["wood"],u:"1fab5",a:"13.0"},{n:["hut"],u:"1f6d6",a:"13.0"},{n:["houses","house buildings"],u:"1f3d8-fe0f",a:"0.7"},{n:["derelict house","derelict house building"],u:"1f3da-fe0f",a:"0.7"},{n:["house","house building"],u:"1f3e0",a:"0.6"},{n:["house with garden"],u:"1f3e1",a:"0.6"},{n:["office","office building"],u:"1f3e2",a:"0.6"},{n:["post office","japanese post office"],u:"1f3e3",a:"0.6"},{n:["european post office"],u:"1f3e4",a:"1.0"},{n:["hospital"],u:"1f3e5",a:"0.6"},{n:["bank"],u:"1f3e6",a:"0.6"},{n:["hotel"],u:"1f3e8",a:"0.6"},{n:["love hotel"],u:"1f3e9",a:"0.6"},{n:["convenience store"],u:"1f3ea",a:"0.6"},{n:["school"],u:"1f3eb",a:"0.6"},{n:["department store"],u:"1f3ec",a:"0.6"},{n:["factory"],u:"1f3ed",a:"0.6"},{n:["japanese castle"],u:"1f3ef",a:"0.6"},{n:["european castle"],u:"1f3f0",a:"0.6"},{n:["wedding"],u:"1f492",a:"0.6"},{n:["tokyo tower"],u:"1f5fc",a:"0.6"},{n:["statue of liberty"],u:"1f5fd",a:"0.6"},{n:["church"],u:"26ea",a:"0.6"},{n:["mosque"],u:"1f54c",a:"1.0"},{n:["hindu temple"],u:"1f6d5",a:"12.0"},{n:["synagogue"],u:"1f54d",a:"1.0"},{n:["shinto shrine"],u:"26e9-fe0f",a:"0.7"},{n:["kaaba"],u:"1f54b",a:"1.0"},{n:["fountain"],u:"26f2",a:"0.6"},{n:["tent"],u:"26fa",a:"0.6"},{n:["foggy"],u:"1f301",a:"0.6"},{n:["night with stars"],u:"1f303",a:"0.6"},{n:["cityscape"],u:"1f3d9-fe0f",a:"0.7"},{n:["sunrise over mountains"],u:"1f304",a:"0.6"},{n:["sunrise"],u:"1f305",a:"0.6"},{n:["city sunset","cityscape at dusk"],u:"1f306",a:"0.6"},{n:["city sunrise","sunset over buildings"],u:"1f307",a:"0.6"},{n:["bridge at night"],u:"1f309",a:"0.6"},{n:["hotsprings","hot springs"],u:"2668-fe0f",a:"0.6"},{n:["carousel horse"],u:"1f3a0",a:"0.6"},{n:["playground slide"],u:"1f6dd",a:"14.0"},{n:["ferris wheel"],u:"1f3a1",a:"0.6"},{n:["roller coaster"],u:"1f3a2",a:"0.6"},{n:["barber","barber pole"],u:"1f488",a:"0.6"},{n:["circus tent"],u:"1f3aa",a:"0.6"},{n:["steam locomotive"],u:"1f682",a:"1.0"},{n:["railway car"],u:"1f683",a:"0.6"},{n:["high-speed train","bullettrain side"],u:"1f684",a:"0.6"},{n:["bullettrain front","high-speed train with bullet nose"],u:"1f685",a:"0.6"},{n:["train","train2"],u:"1f686",a:"1.0"},{n:["metro"],u:"1f687",a:"0.6"},{n:["light rail"],u:"1f688",a:"1.0"},{n:["station"],u:"1f689",a:"0.6"},{n:["tram"],u:"1f68a",a:"1.0"},{n:["monorail"],u:"1f69d",a:"1.0"},{n:["mountain railway"],u:"1f69e",a:"1.0"},{n:["train","tram car"],u:"1f68b",a:"1.0"},{n:["bus"],u:"1f68c",a:"0.6"},{n:["oncoming bus"],u:"1f68d",a:"0.7"},{n:["trolleybus"],u:"1f68e",a:"1.0"},{n:["minibus"],u:"1f690",a:"1.0"},{n:["ambulance"],u:"1f691",a:"0.6"},{n:["fire engine"],u:"1f692",a:"0.6"},{n:["police car"],u:"1f693",a:"0.6"},{n:["oncoming police car"],u:"1f694",a:"0.7"},{n:["taxi"],u:"1f695",a:"0.6"},{n:["oncoming taxi"],u:"1f696",a:"1.0"},{n:["car","red car","automobile"],u:"1f697",a:"0.6"},{n:["oncoming automobile"],u:"1f698",a:"0.7"},{n:["blue car","recreational vehicle"],u:"1f699",a:"0.6"},{n:["pickup truck"],u:"1f6fb",a:"13.0"},{n:["truck","delivery truck"],u:"1f69a",a:"0.6"},{n:["articulated lorry"],u:"1f69b",a:"1.0"},{n:["tractor"],u:"1f69c",a:"1.0"},{n:["racing car"],u:"1f3ce-fe0f",a:"0.7"},{n:["motorcycle","racing motorcycle"],u:"1f3cd-fe0f",a:"0.7"},{n:["motor scooter"],u:"1f6f5",a:"3.0"},{n:["manual wheelchair"],u:"1f9bd",a:"12.0"},{n:["motorized wheelchair"],u:"1f9bc",a:"12.0"},{n:["auto rickshaw"],u:"1f6fa",a:"12.0"},{n:["bike","bicycle"],u:"1f6b2",a:"0.6"},{n:["scooter"],u:"1f6f4",a:"3.0"},{n:["skateboard"],u:"1f6f9",a:"11.0"},{n:["roller skate"],u:"1f6fc",a:"13.0"},{n:["busstop","bus stop"],u:"1f68f",a:"0.6"},{n:["motorway"],u:"1f6e3-fe0f",a:"0.7"},{n:["railway track"],u:"1f6e4-fe0f",a:"0.7"},{n:["oil drum"],u:"1f6e2-fe0f",a:"0.7"},{n:["fuelpump","fuel pump"],u:"26fd",a:"0.6"},{n:["wheel"],u:"1f6de",a:"14.0"},{n:["rotating light","police cars revolving light"],u:"1f6a8",a:"0.6"},{n:["traffic light","horizontal traffic light"],u:"1f6a5",a:"0.6"},{n:["vertical traffic light"],u:"1f6a6",a:"1.0"},{n:["octagonal sign"],u:"1f6d1",a:"3.0"},{n:["construction","construction sign"],u:"1f6a7",a:"0.6"},{n:["anchor"],u:"2693",a:"0.6"},{n:["ring buoy"],u:"1f6df",a:"14.0"},{n:["boat","sailboat"],u:"26f5",a:"0.6"},{n:["canoe"],u:"1f6f6",a:"3.0"},{n:["speedboat"],u:"1f6a4",a:"0.6"},{n:["passenger ship"],u:"1f6f3-fe0f",a:"0.7"},{n:["ferry"],u:"26f4-fe0f",a:"0.7"},{n:["motor boat"],u:"1f6e5-fe0f",a:"0.7"},{n:["ship"],u:"1f6a2",a:"0.6"},{n:["airplane"],u:"2708-fe0f",a:"0.6"},{n:["small airplane"],u:"1f6e9-fe0f",a:"0.7"},{n:["airplane departure"],u:"1f6eb",a:"1.0"},{n:["airplane arriving"],u:"1f6ec",a:"1.0"},{n:["parachute"],u:"1fa82",a:"12.0"},{n:["seat"],u:"1f4ba",a:"0.6"},{n:["helicopter"],u:"1f681",a:"1.0"},{n:["suspension railway"],u:"1f69f",a:"1.0"},{n:["mountain cableway"],u:"1f6a0",a:"1.0"},{n:["aerial tramway"],u:"1f6a1",a:"1.0"},{n:["satellite"],u:"1f6f0-fe0f",a:"0.7"},{n:["rocket"],u:"1f680",a:"0.6"},{n:["flying saucer"],u:"1f6f8",a:"5.0"},{n:["bellhop bell"],u:"1f6ce-fe0f",a:"0.7"},{n:["luggage"],u:"1f9f3",a:"11.0"},{n:["hourglass"],u:"231b",a:"0.6"},{n:["hourglass flowing sand","hourglass with flowing sand"],u:"23f3",a:"0.6"},{n:["watch"],u:"231a",a:"0.6"},{n:["alarm clock"],u:"23f0",a:"0.6"},{n:["stopwatch"],u:"23f1-fe0f",a:"1.0"},{n:["timer clock"],u:"23f2-fe0f",a:"1.0"},{n:["mantelpiece clock"],u:"1f570-fe0f",a:"0.7"},{n:["clock12","clock face twelve oclock"],u:"1f55b",a:"0.6"},{n:["clock1230","clock face twelve-thirty"],u:"1f567",a:"0.7"},{n:["clock1","clock face one oclock"],u:"1f550",a:"0.6"},{n:["clock130","clock face one-thirty"],u:"1f55c",a:"0.7"},{n:["clock2","clock face two oclock"],u:"1f551",a:"0.6"},{n:["clock230","clock face two-thirty"],u:"1f55d",a:"0.7"},{n:["clock3","clock face three oclock"],u:"1f552",a:"0.6"},{n:["clock330","clock face three-thirty"],u:"1f55e",a:"0.7"},{n:["clock4","clock face four oclock"],u:"1f553",a:"0.6"},{n:["clock430","clock face four-thirty"],u:"1f55f",a:"0.7"},{n:["clock5","clock face five oclock"],u:"1f554",a:"0.6"},{n:["clock530","clock face five-thirty"],u:"1f560",a:"0.7"},{n:["clock6","clock face six oclock"],u:"1f555",a:"0.6"},{n:["clock630","clock face six-thirty"],u:"1f561",a:"0.7"},{n:["clock7","clock face seven oclock"],u:"1f556",a:"0.6"},{n:["clock730","clock face seven-thirty"],u:"1f562",a:"0.7"},{n:["clock8","clock face eight oclock"],u:"1f557",a:"0.6"},{n:["clock830","clock face eight-thirty"],u:"1f563",a:"0.7"},{n:["clock9","clock face nine oclock"],u:"1f558",a:"0.6"},{n:["clock930","clock face nine-thirty"],u:"1f564",a:"0.7"},{n:["clock10","clock face ten oclock"],u:"1f559",a:"0.6"},{n:["clock1030","clock face ten-thirty"],u:"1f565",a:"0.7"},{n:["clock11","clock face eleven oclock"],u:"1f55a",a:"0.6"},{n:["clock1130","clock face eleven-thirty"],u:"1f566",a:"0.7"},{n:["new moon","new moon symbol"],u:"1f311",a:"0.6"},{n:["waxing crescent moon","waxing crescent moon symbol"],u:"1f312",a:"1.0"},{n:["first quarter moon","first quarter moon symbol"],u:"1f313",a:"0.6"},{n:["moon","waxing gibbous moon","waxing gibbous moon symbol"],u:"1f314",a:"0.6"},{n:["full moon","full moon symbol"],u:"1f315",a:"0.6"},{n:["waning gibbous moon","waning gibbous moon symbol"],u:"1f316",a:"1.0"},{n:["last quarter moon","last quarter moon symbol"],u:"1f317",a:"1.0"},{n:["waning crescent moon","waning crescent moon symbol"],u:"1f318",a:"1.0"},{n:["crescent moon"],u:"1f319",a:"0.6"},{n:["new moon with face"],u:"1f31a",a:"1.0"},{n:["first quarter moon with face"],u:"1f31b",a:"0.6"},{n:["last quarter moon with face"],u:"1f31c",a:"0.7"},{n:["thermometer"],u:"1f321-fe0f",a:"0.7"},{n:["sunny","black sun with rays"],u:"2600-fe0f",a:"0.6"},{n:["full moon with face"],u:"1f31d",a:"1.0"},{n:["sun with face"],u:"1f31e",a:"1.0"},{n:["ringed planet"],u:"1fa90",a:"12.0"},{n:["star","white medium star"],u:"2b50",a:"0.6"},{n:["star2","glowing star"],u:"1f31f",a:"0.6"},{n:["stars","shooting star"],u:"1f320",a:"0.6"},{n:["milky way"],u:"1f30c",a:"0.6"},{n:["cloud"],u:"2601-fe0f",a:"0.6"},{n:["partly sunny","sun behind cloud"],u:"26c5",a:"0.6"},{n:["thunder cloud and rain","cloud with lightning and rain"],u:"26c8-fe0f",a:"0.7"},{n:["mostly sunny","sun small cloud","sun behind small cloud"],u:"1f324-fe0f",a:"0.7"},{n:["barely sunny","sun behind cloud","sun behind large cloud"],u:"1f325-fe0f",a:"0.7"},{n:["partly sunny rain","sun behind rain cloud"],u:"1f326-fe0f",a:"0.7"},{n:["rain cloud","cloud with rain"],u:"1f327-fe0f",a:"0.7"},{n:["snow cloud","cloud with snow"],u:"1f328-fe0f",a:"0.7"},{n:["lightning","lightning cloud","cloud with lightning"],u:"1f329-fe0f",a:"0.7"},{n:["tornado","tornado cloud"],u:"1f32a-fe0f",a:"0.7"},{n:["fog"],u:"1f32b-fe0f",a:"0.7"},{n:["wind face","wind blowing face"],u:"1f32c-fe0f",a:"0.7"},{n:["cyclone"],u:"1f300",a:"0.6"},{n:["rainbow"],u:"1f308",a:"0.6"},{n:["closed umbrella"],u:"1f302",a:"0.6"},{n:["umbrella"],u:"2602-fe0f",a:"0.7"},{n:["umbrella with rain drops"],u:"2614",a:"0.6"},{n:["umbrella on ground"],u:"26f1-fe0f",a:"0.7"},{n:["zap","high voltage sign"],u:"26a1",a:"0.6"},{n:["snowflake"],u:"2744-fe0f",a:"0.6"},{n:["snowman"],u:"2603-fe0f",a:"0.7"},{n:["snowman without snow"],u:"26c4",a:"0.6"},{n:["comet"],u:"2604-fe0f",a:"1.0"},{n:["fire"],u:"1f525",a:"0.6"},{n:["droplet"],u:"1f4a7",a:"0.6"},{n:["ocean","water wave"],u:"1f30a",a:"0.6"}],activities:[{n:["jack-o-lantern","jack o lantern"],u:"1f383",a:"0.6"},{n:["christmas tree"],u:"1f384",a:"0.6"},{n:["fireworks"],u:"1f386",a:"0.6"},{n:["sparkler","firework sparkler"],u:"1f387",a:"0.6"},{n:["firecracker"],u:"1f9e8",a:"11.0"},{n:["sparkles"],u:"2728",a:"0.6"},{n:["balloon"],u:"1f388",a:"0.6"},{n:["tada","party popper"],u:"1f389",a:"0.6"},{n:["confetti ball"],u:"1f38a",a:"0.6"},{n:["tanabata tree"],u:"1f38b",a:"0.6"},{n:["bamboo","pine decoration"],u:"1f38d",a:"0.6"},{n:["dolls","japanese dolls"],u:"1f38e",a:"0.6"},{n:["flags","carp streamer"],u:"1f38f",a:"0.6"},{n:["wind chime"],u:"1f390",a:"0.6"},{n:["rice scene","moon viewing ceremony"],u:"1f391",a:"0.6"},{n:["red envelope","red gift envelope"],u:"1f9e7",a:"11.0"},{n:["ribbon"],u:"1f380",a:"0.6"},{n:["gift","wrapped present"],u:"1f381",a:"0.6"},{n:["reminder ribbon"],u:"1f397-fe0f",a:"0.7"},{n:["admission tickets"],u:"1f39f-fe0f",a:"0.7"},{n:["ticket"],u:"1f3ab",a:"0.6"},{n:["medal","military medal"],u:"1f396-fe0f",a:"0.7"},{n:["trophy"],u:"1f3c6",a:"0.6"},{n:["sports medal"],u:"1f3c5",a:"1.0"},{n:["first place medal"],u:"1f947",a:"3.0"},{n:["second place medal"],u:"1f948",a:"3.0"},{n:["third place medal"],u:"1f949",a:"3.0"},{n:["soccer","soccer ball"],u:"26bd",a:"0.6"},{n:["baseball"],u:"26be",a:"0.6"},{n:["softball"],u:"1f94e",a:"11.0"},{n:["basketball","basketball and hoop"],u:"1f3c0",a:"0.6"},{n:["volleyball"],u:"1f3d0",a:"1.0"},{n:["football","american football"],u:"1f3c8",a:"0.6"},{n:["rugby football"],u:"1f3c9",a:"1.0"},{n:["tennis","tennis racquet and ball"],u:"1f3be",a:"0.6"},{n:["flying disc"],u:"1f94f",a:"11.0"},{n:["bowling"],u:"1f3b3",a:"0.6"},{n:["cricket bat and ball"],u:"1f3cf",a:"1.0"},{n:["field hockey stick and ball"],u:"1f3d1",a:"1.0"},{n:["ice hockey stick and puck"],u:"1f3d2",a:"1.0"},{n:["lacrosse","lacrosse stick and ball"],u:"1f94d",a:"11.0"},{n:["table tennis paddle and ball"],u:"1f3d3",a:"1.0"},{n:["badminton racquet and shuttlecock"],u:"1f3f8",a:"1.0"},{n:["boxing glove"],u:"1f94a",a:"3.0"},{n:["martial arts uniform"],u:"1f94b",a:"3.0"},{n:["goal net"],u:"1f945",a:"3.0"},{n:["golf","flag in hole"],u:"26f3",a:"0.6"},{n:["ice skate"],u:"26f8-fe0f",a:"0.7"},{n:["fishing pole and fish"],u:"1f3a3",a:"0.6"},{n:["diving mask"],u:"1f93f",a:"12.0"},{n:["running shirt with sash"],u:"1f3bd",a:"0.6"},{n:["ski","ski and ski boot"],u:"1f3bf",a:"0.6"},{n:["sled"],u:"1f6f7",a:"5.0"},{n:["curling stone"],u:"1f94c",a:"5.0"},{n:["dart","direct hit"],u:"1f3af",a:"0.6"},{n:["yo-yo"],u:"1fa80",a:"12.0"},{n:["kite"],u:"1fa81",a:"12.0"},{n:["8ball","billiards"],u:"1f3b1",a:"0.6"},{n:["crystal ball"],u:"1f52e",a:"0.6"},{n:["magic wand"],u:"1fa84",a:"13.0"},{n:["nazar amulet"],u:"1f9ff",a:"11.0"},{n:["hamsa"],u:"1faac",a:"14.0"},{n:["video game"],u:"1f3ae",a:"0.6"},{n:["joystick"],u:"1f579-fe0f",a:"0.7"},{n:["slot machine"],u:"1f3b0",a:"0.6"},{n:["game die"],u:"1f3b2",a:"0.6"},{n:["jigsaw","jigsaw puzzle piece"],u:"1f9e9",a:"11.0"},{n:["teddy bear"],u:"1f9f8",a:"11.0"},{n:["pinata"],u:"1fa85",a:"13.0"},{n:["mirror ball"],u:"1faa9",a:"14.0"},{n:["nesting dolls"],u:"1fa86",a:"13.0"},{n:["spades","black spade suit"],u:"2660-fe0f",a:"0.6"},{n:["hearts","black heart suit"],u:"2665-fe0f",a:"0.6"},{n:["diamonds","black diamond suit"],u:"2666-fe0f",a:"0.6"},{n:["clubs","black club suit"],u:"2663-fe0f",a:"0.6"},{n:["chess pawn"],u:"265f-fe0f",a:"11.0"},{n:["black joker","playing card black joker"],u:"1f0cf",a:"0.6"},{n:["mahjong","mahjong tile red dragon"],u:"1f004",a:"0.6"},{n:["flower playing cards"],u:"1f3b4",a:"0.6"},{n:["performing arts"],u:"1f3ad",a:"0.6"},{n:["framed picture","frame with picture"],u:"1f5bc-fe0f",a:"0.7"},{n:["art","artist palette"],u:"1f3a8",a:"0.6"},{n:["thread","spool of thread"],u:"1f9f5",a:"11.0"},{n:["sewing needle"],u:"1faa1",a:"13.0"},{n:["yarn","ball of yarn"],u:"1f9f6",a:"11.0"},{n:["knot"],u:"1faa2",a:"13.0"}],objects:[{n:["eyeglasses"],u:"1f453",a:"0.6"},{n:["sunglasses","dark sunglasses"],u:"1f576-fe0f",a:"0.7"},{n:["goggles"],u:"1f97d",a:"11.0"},{n:["lab coat"],u:"1f97c",a:"11.0"},{n:["safety vest"],u:"1f9ba",a:"12.0"},{n:["necktie"],u:"1f454",a:"0.6"},{n:["shirt","tshirt","t-shirt"],u:"1f455",a:"0.6"},{n:["jeans"],u:"1f456",a:"0.6"},{n:["scarf"],u:"1f9e3",a:"5.0"},{n:["gloves"],u:"1f9e4",a:"5.0"},{n:["coat"],u:"1f9e5",a:"5.0"},{n:["socks"],u:"1f9e6",a:"5.0"},{n:["dress"],u:"1f457",a:"0.6"},{n:["kimono"],u:"1f458",a:"0.6"},{n:["sari"],u:"1f97b",a:"12.0"},{n:["one-piece swimsuit"],u:"1fa71",a:"12.0"},{n:["briefs"],u:"1fa72",a:"12.0"},{n:["shorts"],u:"1fa73",a:"12.0"},{n:["bikini"],u:"1f459",a:"0.6"},{n:["womans clothes"],u:"1f45a",a:"0.6"},{n:["purse"],u:"1f45b",a:"0.6"},{n:["handbag"],u:"1f45c",a:"0.6"},{n:["pouch"],u:"1f45d",a:"0.6"},{n:["shopping bags"],u:"1f6cd-fe0f",a:"0.7"},{n:["school satchel"],u:"1f392",a:"0.6"},{n:["thong sandal"],u:"1fa74",a:"13.0"},{n:["shoe","mans shoe"],u:"1f45e",a:"0.6"},{n:["athletic shoe"],u:"1f45f",a:"0.6"},{n:["hiking boot"],u:"1f97e",a:"11.0"},{n:["flat shoe","womans flat shoe"],u:"1f97f",a:"11.0"},{n:["high heel","high-heeled shoe"],u:"1f460",a:"0.6"},{n:["sandal","womans sandal"],u:"1f461",a:"0.6"},{n:["ballet shoes"],u:"1fa70",a:"12.0"},{n:["boot","womans boots"],u:"1f462",a:"0.6"},{n:["crown"],u:"1f451",a:"0.6"},{n:["womans hat"],u:"1f452",a:"0.6"},{n:["tophat","top hat"],u:"1f3a9",a:"0.6"},{n:["mortar board","graduation cap"],u:"1f393",a:"0.6"},{n:["billed cap"],u:"1f9e2",a:"5.0"},{n:["military helmet"],u:"1fa96",a:"13.0"},{n:["rescue worker\u2019s helmet","helmet with white cross"],u:"26d1-fe0f",a:"0.7"},{n:["prayer beads"],u:"1f4ff",a:"1.0"},{n:["lipstick"],u:"1f484",a:"0.6"},{n:["ring"],u:"1f48d",a:"0.6"},{n:["gem","gem stone"],u:"1f48e",a:"0.6"},{n:["mute","speaker with cancellation stroke"],u:"1f507",a:"1.0"},{n:["speaker"],u:"1f508",a:"0.7"},{n:["sound","speaker with one sound wave"],u:"1f509",a:"1.0"},{n:["loud sound","speaker with three sound waves"],u:"1f50a",a:"0.6"},{n:["loudspeaker","public address loudspeaker"],u:"1f4e2",a:"0.6"},{n:["mega","cheering megaphone"],u:"1f4e3",a:"0.6"},{n:["postal horn"],u:"1f4ef",a:"1.0"},{n:["bell"],u:"1f514",a:"0.6"},{n:["no bell","bell with cancellation stroke"],u:"1f515",a:"1.0"},{n:["musical score"],u:"1f3bc",a:"0.6"},{n:["musical note"],u:"1f3b5",a:"0.6"},{n:["notes","multiple musical notes"],u:"1f3b6",a:"0.6"},{n:["studio microphone"],u:"1f399-fe0f",a:"0.7"},{n:["level slider"],u:"1f39a-fe0f",a:"0.7"},{n:["control knobs"],u:"1f39b-fe0f",a:"0.7"},{n:["microphone"],u:"1f3a4",a:"0.6"},{n:["headphone","headphones"],u:"1f3a7",a:"0.6"},{n:["radio"],u:"1f4fb",a:"0.6"},{n:["saxophone"],u:"1f3b7",a:"0.6"},{n:["accordion"],u:"1fa97",a:"13.0"},{n:["guitar"],u:"1f3b8",a:"0.6"},{n:["musical keyboard"],u:"1f3b9",a:"0.6"},{n:["trumpet"],u:"1f3ba",a:"0.6"},{n:["violin"],u:"1f3bb",a:"0.6"},{n:["banjo"],u:"1fa95",a:"12.0"},{n:["drum with drumsticks"],u:"1f941",a:"3.0"},{n:["long drum"],u:"1fa98",a:"13.0"},{n:["iphone","mobile phone"],u:"1f4f1",a:"0.6"},{n:["calling","mobile phone with rightwards arrow at left"],u:"1f4f2",a:"0.6"},{n:["phone","telephone","black telephone"],u:"260e-fe0f",a:"0.6"},{n:["telephone receiver"],u:"1f4de",a:"0.6"},{n:["pager"],u:"1f4df",a:"0.6"},{n:["fax","fax machine"],u:"1f4e0",a:"0.6"},{n:["battery"],u:"1f50b",a:"0.6"},{n:["low battery"],u:"1faab",a:"14.0"},{n:["electric plug"],u:"1f50c",a:"0.6"},{n:["computer","personal computer"],u:"1f4bb",a:"0.6"},{n:["desktop computer"],u:"1f5a5-fe0f",a:"0.7"},{n:["printer"],u:"1f5a8-fe0f",a:"0.7"},{n:["keyboard"],u:"2328-fe0f",a:"1.0"},{n:["computer mouse","three button mouse"],u:"1f5b1-fe0f",a:"0.7"},{n:["trackball"],u:"1f5b2-fe0f",a:"0.7"},{n:["minidisc"],u:"1f4bd",a:"0.6"},{n:["floppy disk"],u:"1f4be",a:"0.6"},{n:["cd","optical disc"],u:"1f4bf",a:"0.6"},{n:["dvd"],u:"1f4c0",a:"0.6"},{n:["abacus"],u:"1f9ee",a:"11.0"},{n:["movie camera"],u:"1f3a5",a:"0.6"},{n:["film frames"],u:"1f39e-fe0f",a:"0.7"},{n:["film projector"],u:"1f4fd-fe0f",a:"0.7"},{n:["clapper","clapper board"],u:"1f3ac",a:"0.6"},{n:["tv","television"],u:"1f4fa",a:"0.6"},{n:["camera"],u:"1f4f7",a:"0.6"},{n:["camera with flash"],u:"1f4f8",a:"1.0"},{n:["video camera"],u:"1f4f9",a:"0.6"},{n:["vhs","videocassette"],u:"1f4fc",a:"0.6"},{n:["mag","left-pointing magnifying glass"],u:"1f50d",a:"0.6"},{n:["mag right","right-pointing magnifying glass"],u:"1f50e",a:"0.6"},{n:["candle"],u:"1f56f-fe0f",a:"0.7"},{n:["bulb","electric light bulb"],u:"1f4a1",a:"0.6"},{n:["flashlight","electric torch"],u:"1f526",a:"0.6"},{n:["lantern","izakaya lantern"],u:"1f3ee",a:"0.6"},{n:["diya lamp"],u:"1fa94",a:"12.0"},{n:["notebook with decorative cover"],u:"1f4d4",a:"0.6"},{n:["closed book"],u:"1f4d5",a:"0.6"},{n:["book","open book"],u:"1f4d6",a:"0.6"},{n:["green book"],u:"1f4d7",a:"0.6"},{n:["blue book"],u:"1f4d8",a:"0.6"},{n:["orange book"],u:"1f4d9",a:"0.6"},{n:["books"],u:"1f4da",a:"0.6"},{n:["notebook"],u:"1f4d3",a:"0.6"},{n:["ledger"],u:"1f4d2",a:"0.6"},{n:["page with curl"],u:"1f4c3",a:"0.6"},{n:["scroll"],u:"1f4dc",a:"0.6"},{n:["page facing up"],u:"1f4c4",a:"0.6"},{n:["newspaper"],u:"1f4f0",a:"0.6"},{n:["rolled-up newspaper","rolled up newspaper"],u:"1f5de-fe0f",a:"0.7"},{n:["bookmark tabs"],u:"1f4d1",a:"0.6"},{n:["bookmark"],u:"1f516",a:"0.6"},{n:["label"],u:"1f3f7-fe0f",a:"0.7"},{n:["moneybag","money bag"],u:"1f4b0",a:"0.6"},{n:["coin"],u:"1fa99",a:"13.0"},{n:["yen","banknote with yen sign"],u:"1f4b4",a:"0.6"},{n:["dollar","banknote with dollar sign"],u:"1f4b5",a:"0.6"},{n:["euro","banknote with euro sign"],u:"1f4b6",a:"1.0"},{n:["pound","banknote with pound sign"],u:"1f4b7",a:"1.0"},{n:["money with wings"],u:"1f4b8",a:"0.6"},{n:["credit card"],u:"1f4b3",a:"0.6"},{n:["receipt"],u:"1f9fe",a:"11.0"},{n:["chart","chart with upwards trend and yen sign"],u:"1f4b9",a:"0.6"},{n:["email","envelope"],u:"2709-fe0f",a:"0.6"},{n:["e-mail","e-mail symbol"],u:"1f4e7",a:"0.6"},{n:["incoming envelope"],u:"1f4e8",a:"0.6"},{n:["envelope with arrow","envelope with downwards arrow above"],u:"1f4e9",a:"0.6"},{n:["outbox tray"],u:"1f4e4",a:"0.6"},{n:["inbox tray"],u:"1f4e5",a:"0.6"},{n:["package"],u:"1f4e6",a:"0.6"},{n:["mailbox","closed mailbox with raised flag"],u:"1f4eb",a:"0.6"},{n:["mailbox closed","closed mailbox with lowered flag"],u:"1f4ea",a:"0.6"},{n:["mailbox with mail","open mailbox with raised flag"],u:"1f4ec",a:"0.7"},{n:["mailbox with no mail","open mailbox with lowered flag"],u:"1f4ed",a:"0.7"},{n:["postbox"],u:"1f4ee",a:"0.6"},{n:["ballot box with ballot"],u:"1f5f3-fe0f",a:"0.7"},{n:["pencil","pencil2"],u:"270f-fe0f",a:"0.6"},{n:["black nib"],u:"2712-fe0f",a:"0.6"},{n:["fountain pen","lower left fountain pen"],u:"1f58b-fe0f",a:"0.7"},{n:["pen","lower left ballpoint pen"],u:"1f58a-fe0f",a:"0.7"},{n:["paintbrush","lower left paintbrush"],u:"1f58c-fe0f",a:"0.7"},{n:["crayon","lower left crayon"],u:"1f58d-fe0f",a:"0.7"},{n:["memo","pencil"],u:"1f4dd",a:"0.6"},{n:["briefcase"],u:"1f4bc",a:"0.6"},{n:["file folder"],u:"1f4c1",a:"0.6"},{n:["open file folder"],u:"1f4c2",a:"0.6"},{n:["card index dividers"],u:"1f5c2-fe0f",a:"0.7"},{n:["date","calendar"],u:"1f4c5",a:"0.6"},{n:["calendar","tear-off calendar"],u:"1f4c6",a:"0.6"},{n:["spiral notepad","spiral note pad"],u:"1f5d2-fe0f",a:"0.7"},{n:["spiral calendar","spiral calendar pad"],u:"1f5d3-fe0f",a:"0.7"},{n:["card index"],u:"1f4c7",a:"0.6"},{n:["chart with upwards trend"],u:"1f4c8",a:"0.6"},{n:["chart with downwards trend"],u:"1f4c9",a:"0.6"},{n:["bar chart"],u:"1f4ca",a:"0.6"},{n:["clipboard"],u:"1f4cb",a:"0.6"},{n:["pushpin"],u:"1f4cc",a:"0.6"},{n:["round pushpin"],u:"1f4cd",a:"0.6"},{n:["paperclip"],u:"1f4ce",a:"0.6"},{n:["linked paperclips"],u:"1f587-fe0f",a:"0.7"},{n:["straight ruler"],u:"1f4cf",a:"0.6"},{n:["triangular ruler"],u:"1f4d0",a:"0.6"},{n:["scissors","black scissors"],u:"2702-fe0f",a:"0.6"},{n:["card file box"],u:"1f5c3-fe0f",a:"0.7"},{n:["file cabinet"],u:"1f5c4-fe0f",a:"0.7"},{n:["wastebasket"],u:"1f5d1-fe0f",a:"0.7"},{n:["lock"],u:"1f512",a:"0.6"},{n:["unlock","open lock"],u:"1f513",a:"0.6"},{n:["lock with ink pen"],u:"1f50f",a:"0.6"},{n:["closed lock with key"],u:"1f510",a:"0.6"},{n:["key"],u:"1f511",a:"0.6"},{n:["old key"],u:"1f5dd-fe0f",a:"0.7"},{n:["hammer"],u:"1f528",a:"0.6"},{n:["axe"],u:"1fa93",a:"12.0"},{n:["pick"],u:"26cf-fe0f",a:"0.7"},{n:["hammer and pick"],u:"2692-fe0f",a:"1.0"},{n:["hammer and wrench"],u:"1f6e0-fe0f",a:"0.7"},{n:["dagger","dagger knife"],u:"1f5e1-fe0f",a:"0.7"},{n:["crossed swords"],u:"2694-fe0f",a:"1.0"},{n:["gun","pistol"],u:"1f52b",a:"0.6"},{n:["boomerang"],u:"1fa83",a:"13.0"},{n:["bow and arrow"],u:"1f3f9",a:"1.0"},{n:["shield"],u:"1f6e1-fe0f",a:"0.7"},{n:["carpentry saw"],u:"1fa9a",a:"13.0"},{n:["wrench"],u:"1f527",a:"0.6"},{n:["screwdriver"],u:"1fa9b",a:"13.0"},{n:["nut and bolt"],u:"1f529",a:"0.6"},{n:["gear"],u:"2699-fe0f",a:"1.0"},{n:["clamp","compression"],u:"1f5dc-fe0f",a:"0.7"},{n:["scales","balance scale"],u:"2696-fe0f",a:"1.0"},{n:["probing cane"],u:"1f9af",a:"12.0"},{n:["link","link symbol"],u:"1f517",a:"0.6"},{n:["chains"],u:"26d3-fe0f",a:"0.7"},{n:["hook"],u:"1fa9d",a:"13.0"},{n:["toolbox"],u:"1f9f0",a:"11.0"},{n:["magnet"],u:"1f9f2",a:"11.0"},{n:["ladder"],u:"1fa9c",a:"13.0"},{n:["alembic"],u:"2697-fe0f",a:"1.0"},{n:["test tube"],u:"1f9ea",a:"11.0"},{n:["petri dish"],u:"1f9eb",a:"11.0"},{n:["dna","dna double helix"],u:"1f9ec",a:"11.0"},{n:["microscope"],u:"1f52c",a:"1.0"},{n:["telescope"],u:"1f52d",a:"1.0"},{n:["satellite antenna"],u:"1f4e1",a:"0.6"},{n:["syringe"],u:"1f489",a:"0.6"},{n:["drop of blood"],u:"1fa78",a:"12.0"},{n:["pill"],u:"1f48a",a:"0.6"},{n:["adhesive bandage"],u:"1fa79",a:"12.0"},{n:["crutch"],u:"1fa7c",a:"14.0"},{n:["stethoscope"],u:"1fa7a",a:"12.0"},{n:["x-ray"],u:"1fa7b",a:"14.0"},{n:["door"],u:"1f6aa",a:"0.6"},{n:["elevator"],u:"1f6d7",a:"13.0"},{n:["mirror"],u:"1fa9e",a:"13.0"},{n:["window"],u:"1fa9f",a:"13.0"},{n:["bed"],u:"1f6cf-fe0f",a:"0.7"},{n:["couch and lamp"],u:"1f6cb-fe0f",a:"0.7"},{n:["chair"],u:"1fa91",a:"12.0"},{n:["toilet"],u:"1f6bd",a:"0.6"},{n:["plunger"],u:"1faa0",a:"13.0"},{n:["shower"],u:"1f6bf",a:"1.0"},{n:["bathtub"],u:"1f6c1",a:"1.0"},{n:["mouse trap"],u:"1faa4",a:"13.0"},{n:["razor"],u:"1fa92",a:"12.0"},{n:["lotion bottle"],u:"1f9f4",a:"11.0"},{n:["safety pin"],u:"1f9f7",a:"11.0"},{n:["broom"],u:"1f9f9",a:"11.0"},{n:["basket"],u:"1f9fa",a:"11.0"},{n:["roll of paper"],u:"1f9fb",a:"11.0"},{n:["bucket"],u:"1faa3",a:"13.0"},{n:["soap","bar of soap"],u:"1f9fc",a:"11.0"},{n:["bubbles"],u:"1fae7",a:"14.0"},{n:["toothbrush"],u:"1faa5",a:"13.0"},{n:["sponge"],u:"1f9fd",a:"11.0"},{n:["fire extinguisher"],u:"1f9ef",a:"11.0"},{n:["shopping trolley"],u:"1f6d2",a:"3.0"},{n:["smoking","smoking symbol"],u:"1f6ac",a:"0.6"},{n:["coffin"],u:"26b0-fe0f",a:"1.0"},{n:["headstone"],u:"1faa6",a:"13.0"},{n:["funeral urn"],u:"26b1-fe0f",a:"1.0"},{n:["moyai"],u:"1f5ff",a:"0.6"},{n:["placard"],u:"1faa7",a:"13.0"},{n:["identification card"],u:"1faaa",a:"14.0"}],symbols:[{n:["atm","automated teller machine"],u:"1f3e7",a:"0.6"},{n:["put litter in its place","put litter in its place symbol"],u:"1f6ae",a:"1.0"},{n:["potable water","potable water symbol"],u:"1f6b0",a:"1.0"},{n:["wheelchair","wheelchair symbol"],u:"267f",a:"0.6"},{n:["mens","mens symbol"],u:"1f6b9",a:"0.6"},{n:["womens","womens symbol"],u:"1f6ba",a:"0.6"},{n:["restroom"],u:"1f6bb",a:"0.6"},{n:["baby symbol"],u:"1f6bc",a:"0.6"},{n:["wc","water closet"],u:"1f6be",a:"0.6"},{n:["passport control"],u:"1f6c2",a:"1.0"},{n:["customs"],u:"1f6c3",a:"1.0"},{n:["baggage claim"],u:"1f6c4",a:"1.0"},{n:["left luggage"],u:"1f6c5",a:"1.0"},{n:["warning","warning sign"],u:"26a0-fe0f",a:"0.6"},{n:["children crossing"],u:"1f6b8",a:"1.0"},{n:["no entry"],u:"26d4",a:"0.6"},{n:["no entry sign"],u:"1f6ab",a:"0.6"},{n:["no bicycles"],u:"1f6b3",a:"1.0"},{n:["no smoking","no smoking symbol"],u:"1f6ad",a:"0.6"},{n:["do not litter","do not litter symbol"],u:"1f6af",a:"1.0"},{n:["non-potable water","non-potable water symbol"],u:"1f6b1",a:"1.0"},{n:["no pedestrians"],u:"1f6b7",a:"1.0"},{n:["no mobile phones"],u:"1f4f5",a:"1.0"},{n:["underage","no one under eighteen symbol"],u:"1f51e",a:"0.6"},{n:["radioactive","radioactive sign"],u:"2622-fe0f",a:"1.0"},{n:["biohazard","biohazard sign"],u:"2623-fe0f",a:"1.0"},{n:["arrow up","upwards black arrow"],u:"2b06-fe0f",a:"0.6"},{n:["north east arrow","arrow upper right"],u:"2197-fe0f",a:"0.6"},{n:["arrow right","black rightwards arrow"],u:"27a1-fe0f",a:"0.6"},{n:["south east arrow","arrow lower right"],u:"2198-fe0f",a:"0.6"},{n:["arrow down","downwards black arrow"],u:"2b07-fe0f",a:"0.6"},{n:["south west arrow","arrow lower left"],u:"2199-fe0f",a:"0.6"},{n:["arrow left","leftwards black arrow"],u:"2b05-fe0f",a:"0.6"},{n:["north west arrow","arrow upper left"],u:"2196-fe0f",a:"0.6"},{n:["up down arrow","arrow up down"],u:"2195-fe0f",a:"0.6"},{n:["left right arrow"],u:"2194-fe0f",a:"0.6"},{n:["leftwards arrow with hook"],u:"21a9-fe0f",a:"0.6"},{n:["arrow right hook","rightwards arrow with hook"],u:"21aa-fe0f",a:"0.6"},{n:["arrow heading up","arrow pointing rightwards then curving upwards"],u:"2934-fe0f",a:"0.6"},{n:["arrow heading down","arrow pointing rightwards then curving downwards"],u:"2935-fe0f",a:"0.6"},{n:["arrows clockwise","clockwise downwards and upwards open circle arrows"],u:"1f503",a:"0.6"},{n:["arrows counterclockwise","anticlockwise downwards and upwards open circle arrows"],u:"1f504",a:"1.0"},{n:["back","back with leftwards arrow above"],u:"1f519",a:"0.6"},{n:["end","end with leftwards arrow above"],u:"1f51a",a:"0.6"},{n:["on","on with exclamation mark with left right arrow above"],u:"1f51b",a:"0.6"},{n:["soon","soon with rightwards arrow above"],u:"1f51c",a:"0.6"},{n:["top","top with upwards arrow above"],u:"1f51d",a:"0.6"},{n:["place of worship"],u:"1f6d0",a:"1.0"},{n:["atom symbol"],u:"269b-fe0f",a:"1.0"},{n:["om","om symbol"],u:"1f549-fe0f",a:"0.7"},{n:["star of david"],u:"2721-fe0f",a:"0.7"},{n:["wheel of dharma"],u:"2638-fe0f",a:"0.7"},{n:["yin yang"],u:"262f-fe0f",a:"0.7"},{n:["latin cross"],u:"271d-fe0f",a:"0.7"},{n:["orthodox cross"],u:"2626-fe0f",a:"1.0"},{n:["star and crescent"],u:"262a-fe0f",a:"0.7"},{n:["peace symbol"],u:"262e-fe0f",a:"1.0"},{n:["menorah with nine branches"],u:"1f54e",a:"1.0"},{n:["six pointed star","six pointed star with middle dot"],u:"1f52f",a:"0.6"},{n:["aries"],u:"2648",a:"0.6"},{n:["taurus"],u:"2649",a:"0.6"},{n:["gemini"],u:"264a",a:"0.6"},{n:["cancer"],u:"264b",a:"0.6"},{n:["leo"],u:"264c",a:"0.6"},{n:["virgo"],u:"264d",a:"0.6"},{n:["libra"],u:"264e",a:"0.6"},{n:["scorpius"],u:"264f",a:"0.6"},{n:["sagittarius"],u:"2650",a:"0.6"},{n:["capricorn"],u:"2651",a:"0.6"},{n:["aquarius"],u:"2652",a:"0.6"},{n:["pisces"],u:"2653",a:"0.6"},{n:["ophiuchus"],u:"26ce",a:"0.6"},{n:["twisted rightwards arrows"],u:"1f500",a:"1.0"},{n:["repeat","clockwise rightwards and leftwards open circle arrows"],u:"1f501",a:"1.0"},{n:["repeat one","clockwise rightwards and leftwards open circle arrows with circled one overlay"],u:"1f502",a:"1.0"},{n:["arrow forward","black right-pointing triangle"],u:"25b6-fe0f",a:"0.6"},{n:["fast forward","black right-pointing double triangle"],u:"23e9",a:"0.6"},{n:["next track button","black right pointing double triangle with vertical bar"],u:"23ed-fe0f",a:"0.7"},{n:["play or pause button","black right pointing triangle with double vertical bar"],u:"23ef-fe0f",a:"1.0"},{n:["arrow backward","black left-pointing triangle"],u:"25c0-fe0f",a:"0.6"},{n:["rewind","black left-pointing double triangle"],u:"23ea",a:"0.6"},{n:["last track button","black left pointing double triangle with vertical bar"],u:"23ee-fe0f",a:"0.7"},{n:["arrow up small","up-pointing small red triangle"],u:"1f53c",a:"0.6"},{n:["arrow double up","black up-pointing double triangle"],u:"23eb",a:"0.6"},{n:["arrow down small","down-pointing small red triangle"],u:"1f53d",a:"0.6"},{n:["arrow double down","black down-pointing double triangle"],u:"23ec",a:"0.6"},{n:["pause button","double vertical bar"],u:"23f8-fe0f",a:"0.7"},{n:["stop button","black square for stop"],u:"23f9-fe0f",a:"0.7"},{n:["record button","black circle for record"],u:"23fa-fe0f",a:"0.7"},{n:["eject","eject button"],u:"23cf-fe0f",a:"1.0"},{n:["cinema"],u:"1f3a6",a:"0.6"},{n:["low brightness","low brightness symbol"],u:"1f505",a:"1.0"},{n:["high brightness","high brightness symbol"],u:"1f506",a:"1.0"},{n:["signal strength","antenna with bars"],u:"1f4f6",a:"0.6"},{n:["vibration mode"],u:"1f4f3",a:"0.6"},{n:["mobile phone off"],u:"1f4f4",a:"0.6"},{n:["female sign"],u:"2640-fe0f",a:"4.0"},{n:["male sign"],u:"2642-fe0f",a:"4.0"},{n:["transgender symbol"],u:"26a7-fe0f",a:"13.0"},{n:["heavy multiplication x"],u:"2716-fe0f",a:"0.6"},{n:["heavy plus sign"],u:"2795",a:"0.6"},{n:["heavy minus sign"],u:"2796",a:"0.6"},{n:["heavy division sign"],u:"2797",a:"0.6"},{n:["heavy equals sign"],u:"1f7f0",a:"14.0"},{n:["infinity"],u:"267e-fe0f",a:"11.0"},{n:["bangbang","double exclamation mark"],u:"203c-fe0f",a:"0.6"},{n:["interrobang","exclamation question mark"],u:"2049-fe0f",a:"0.6"},{n:["question","black question mark ornament"],u:"2753",a:"0.6"},{n:["grey question","white question mark ornament"],u:"2754",a:"0.6"},{n:["grey exclamation","white exclamation mark ornament"],u:"2755",a:"0.6"},{n:["exclamation","heavy exclamation mark","heavy exclamation mark symbol"],u:"2757",a:"0.6"},{n:["wavy dash"],u:"3030-fe0f",a:"0.6"},{n:["currency exchange"],u:"1f4b1",a:"0.6"},{n:["heavy dollar sign"],u:"1f4b2",a:"0.6"},{n:["medical symbol","staff of aesculapius"],u:"2695-fe0f",a:"4.0"},{n:["recycle","black universal recycling symbol"],u:"267b-fe0f",a:"0.6"},{n:["fleur-de-lis","fleur de lis"],u:"269c-fe0f",a:"1.0"},{n:["trident","trident emblem"],u:"1f531",a:"0.6"},{n:["name badge"],u:"1f4db",a:"0.6"},{n:["beginner","japanese symbol for beginner"],u:"1f530",a:"0.6"},{n:["o","heavy large circle"],u:"2b55",a:"0.6"},{n:["white check mark","white heavy check mark"],u:"2705",a:"0.6"},{n:["ballot box with check"],u:"2611-fe0f",a:"0.6"},{n:["heavy check mark"],u:"2714-fe0f",a:"0.6"},{n:["x","cross mark"],u:"274c",a:"0.6"},{n:["negative squared cross mark"],u:"274e",a:"0.6"},{n:["curly loop"],u:"27b0",a:"0.6"},{n:["loop","double curly loop"],u:"27bf",a:"1.0"},{n:["part alternation mark"],u:"303d-fe0f",a:"0.6"},{n:["eight spoked asterisk"],u:"2733-fe0f",a:"0.6"},{n:["eight pointed black star"],u:"2734-fe0f",a:"0.6"},{n:["sparkle"],u:"2747-fe0f",a:"0.6"},{n:["copyright","copyright sign"],u:"00a9-fe0f",a:"0.6"},{n:["registered","registered sign"],u:"00ae-fe0f",a:"0.6"},{n:["tm","trade mark sign"],u:"2122-fe0f",a:"0.6"},{n:["hash","hash key"],u:"0023-fe0f-20e3",a:"0.6"},{n:["keycap: *","keycap star"],u:"002a-fe0f-20e3",a:"2.0"},{n:["zero","keycap 0"],u:"0030-fe0f-20e3",a:"0.6"},{n:["one","keycap 1"],u:"0031-fe0f-20e3",a:"0.6"},{n:["two","keycap 2"],u:"0032-fe0f-20e3",a:"0.6"},{n:["three","keycap 3"],u:"0033-fe0f-20e3",a:"0.6"},{n:["four","keycap 4"],u:"0034-fe0f-20e3",a:"0.6"},{n:["five","keycap 5"],u:"0035-fe0f-20e3",a:"0.6"},{n:["six","keycap 6"],u:"0036-fe0f-20e3",a:"0.6"},{n:["seven","keycap 7"],u:"0037-fe0f-20e3",a:"0.6"},{n:["eight","keycap 8"],u:"0038-fe0f-20e3",a:"0.6"},{n:["nine","keycap 9"],u:"0039-fe0f-20e3",a:"0.6"},{n:["keycap ten"],u:"1f51f",a:"0.6"},{n:["capital abcd","input symbol for latin capital letters"],u:"1f520",a:"0.6"},{n:["abcd","input symbol for latin small letters"],u:"1f521",a:"0.6"},{n:["1234","input symbol for numbers"],u:"1f522",a:"0.6"},{n:["symbols","input symbol for symbols"],u:"1f523",a:"0.6"},{n:["abc","input symbol for latin letters"],u:"1f524",a:"0.6"},{n:["a","negative squared latin capital letter a"],u:"1f170-fe0f",a:"0.6"},{n:["ab","negative squared ab"],u:"1f18e",a:"0.6"},{n:["b","negative squared latin capital letter b"],u:"1f171-fe0f",a:"0.6"},{n:["cl","squared cl"],u:"1f191",a:"0.6"},{n:["cool","squared cool"],u:"1f192",a:"0.6"},{n:["free","squared free"],u:"1f193",a:"0.6"},{n:["information source"],u:"2139-fe0f",a:"0.6"},{n:["id","squared id"],u:"1f194",a:"0.6"},{n:["m","circled latin capital letter m"],u:"24c2-fe0f",a:"0.6"},{n:["new","squared new"],u:"1f195",a:"0.6"},{n:["ng","squared ng"],u:"1f196",a:"0.6"},{n:["o2","negative squared latin capital letter o"],u:"1f17e-fe0f",a:"0.6"},{n:["ok","squared ok"],u:"1f197",a:"0.6"},{n:["parking","negative squared latin capital letter p"],u:"1f17f-fe0f",a:"0.6"},{n:["sos","squared sos"],u:"1f198",a:"0.6"},{n:["up","squared up with exclamation mark"],u:"1f199",a:"0.6"},{n:["vs","squared vs"],u:"1f19a",a:"0.6"},{n:["koko","squared katakana koko"],u:"1f201",a:"0.6"},{n:["sa","squared katakana sa"],u:"1f202-fe0f",a:"0.6"},{n:["u6708","squared cjk unified ideograph-6708"],u:"1f237-fe0f",a:"0.6"},{n:["u6709","squared cjk unified ideograph-6709"],u:"1f236",a:"0.6"},{n:["u6307","squared cjk unified ideograph-6307"],u:"1f22f",a:"0.6"},{n:["ideograph advantage","circled ideograph advantage"],u:"1f250",a:"0.6"},{n:["u5272","squared cjk unified ideograph-5272"],u:"1f239",a:"0.6"},{n:["u7121","squared cjk unified ideograph-7121"],u:"1f21a",a:"0.6"},{n:["u7981","squared cjk unified ideograph-7981"],u:"1f232",a:"0.6"},{n:["accept","circled ideograph accept"],u:"1f251",a:"0.6"},{n:["u7533","squared cjk unified ideograph-7533"],u:"1f238",a:"0.6"},{n:["u5408","squared cjk unified ideograph-5408"],u:"1f234",a:"0.6"},{n:["u7a7a","squared cjk unified ideograph-7a7a"],u:"1f233",a:"0.6"},{n:["congratulations","circled ideograph congratulation"],u:"3297-fe0f",a:"0.6"},{n:["secret","circled ideograph secret"],u:"3299-fe0f",a:"0.6"},{n:["u55b6","squared cjk unified ideograph-55b6"],u:"1f23a",a:"0.6"},{n:["u6e80","squared cjk unified ideograph-6e80"],u:"1f235",a:"0.6"},{n:["red circle","large red circle"],u:"1f534",a:"0.6"},{n:["large orange circle"],u:"1f7e0",a:"12.0"},{n:["large yellow circle"],u:"1f7e1",a:"12.0"},{n:["large green circle"],u:"1f7e2",a:"12.0"},{n:["large blue circle"],u:"1f535",a:"0.6"},{n:["large purple circle"],u:"1f7e3",a:"12.0"},{n:["large brown circle"],u:"1f7e4",a:"12.0"},{n:["black circle","medium black circle"],u:"26ab",a:"0.6"},{n:["white circle","medium white circle"],u:"26aa",a:"0.6"},{n:["large red square"],u:"1f7e5",a:"12.0"},{n:["large orange square"],u:"1f7e7",a:"12.0"},{n:["large yellow square"],u:"1f7e8",a:"12.0"},{n:["large green square"],u:"1f7e9",a:"12.0"},{n:["large blue square"],u:"1f7e6",a:"12.0"},{n:["large purple square"],u:"1f7ea",a:"12.0"},{n:["large brown square"],u:"1f7eb",a:"12.0"},{n:["black large square"],u:"2b1b",a:"0.6"},{n:["white large square"],u:"2b1c",a:"0.6"},{n:["black medium square"],u:"25fc-fe0f",a:"0.6"},{n:["white medium square"],u:"25fb-fe0f",a:"0.6"},{n:["black medium small square"],u:"25fe",a:"0.6"},{n:["white medium small square"],u:"25fd",a:"0.6"},{n:["black small square"],u:"25aa-fe0f",a:"0.6"},{n:["white small square"],u:"25ab-fe0f",a:"0.6"},{n:["large orange diamond"],u:"1f536",a:"0.6"},{n:["large blue diamond"],u:"1f537",a:"0.6"},{n:["small orange diamond"],u:"1f538",a:"0.6"},{n:["small blue diamond"],u:"1f539",a:"0.6"},{n:["small red triangle","up-pointing red triangle"],u:"1f53a",a:"0.6"},{n:["small red triangle down","down-pointing red triangle"],u:"1f53b",a:"0.6"},{n:["diamond shape with a dot inside"],u:"1f4a0",a:"0.6"},{n:["radio button"],u:"1f518",a:"0.6"},{n:["white square button"],u:"1f533",a:"0.6"},{n:["black square button"],u:"1f532",a:"0.6"}],flags:[{n:["chequered flag","checkered flag"],u:"1f3c1",a:"0.6"},{n:["triangular flag on post"],u:"1f6a9",a:"0.6"},{n:["crossed flags"],u:"1f38c",a:"0.6"},{n:["waving black flag"],u:"1f3f4",a:"1.0"},{n:["white flag","waving white flag"],u:"1f3f3-fe0f",a:"0.7"},{n:["rainbow flag","rainbow-flag"],u:"1f3f3-fe0f-200d-1f308",a:"4.0"},{n:["transgender flag"],u:"1f3f3-fe0f-200d-26a7-fe0f",a:"13.0"},{n:["pirate flag"],u:"1f3f4-200d-2620-fe0f",a:"11.0"},{n:["flag-ac","ascension island flag"],u:"1f1e6-1f1e8",a:"2.0"},{n:["flag-ad","andorra flag"],u:"1f1e6-1f1e9",a:"2.0"},{n:["flag-ae","united arab emirates flag"],u:"1f1e6-1f1ea",a:"2.0"},{n:["flag-af","afghanistan flag"],u:"1f1e6-1f1eb",a:"2.0"},{n:["flag-ag","antigua & barbuda flag"],u:"1f1e6-1f1ec",a:"2.0"},{n:["flag-ai","anguilla flag"],u:"1f1e6-1f1ee",a:"2.0"},{n:["flag-al","albania flag"],u:"1f1e6-1f1f1",a:"2.0"},{n:["flag-am","armenia flag"],u:"1f1e6-1f1f2",a:"2.0"},{n:["flag-ao","angola flag"],u:"1f1e6-1f1f4",a:"2.0"},{n:["flag-aq","antarctica flag"],u:"1f1e6-1f1f6",a:"2.0"},{n:["flag-ar","argentina flag"],u:"1f1e6-1f1f7",a:"2.0"},{n:["flag-as","american samoa flag"],u:"1f1e6-1f1f8",a:"2.0"},{n:["flag-at","austria flag"],u:"1f1e6-1f1f9",a:"2.0"},{n:["flag-au","australia flag"],u:"1f1e6-1f1fa",a:"2.0"},{n:["flag-aw","aruba flag"],u:"1f1e6-1f1fc",a:"2.0"},{n:["flag-ax","\xe5land islands flag"],u:"1f1e6-1f1fd",a:"2.0"},{n:["flag-az","azerbaijan flag"],u:"1f1e6-1f1ff",a:"2.0"},{n:["flag-ba","bosnia & herzegovina flag"],u:"1f1e7-1f1e6",a:"2.0"},{n:["flag-bb","barbados flag"],u:"1f1e7-1f1e7",a:"2.0"},{n:["flag-bd","bangladesh flag"],u:"1f1e7-1f1e9",a:"2.0"},{n:["flag-be","belgium flag"],u:"1f1e7-1f1ea",a:"2.0"},{n:["flag-bf","burkina faso flag"],u:"1f1e7-1f1eb",a:"2.0"},{n:["flag-bg","bulgaria flag"],u:"1f1e7-1f1ec",a:"2.0"},{n:["flag-bh","bahrain flag"],u:"1f1e7-1f1ed",a:"2.0"},{n:["flag-bi","burundi flag"],u:"1f1e7-1f1ee",a:"2.0"},{n:["flag-bj","benin flag"],u:"1f1e7-1f1ef",a:"2.0"},{n:["flag-bl","st. barth\xe9lemy flag"],u:"1f1e7-1f1f1",a:"2.0"},{n:["flag-bm","bermuda flag"],u:"1f1e7-1f1f2",a:"2.0"},{n:["flag-bn","brunei flag"],u:"1f1e7-1f1f3",a:"2.0"},{n:["flag-bo","bolivia flag"],u:"1f1e7-1f1f4",a:"2.0"},{n:["flag-bq","caribbean netherlands flag"],u:"1f1e7-1f1f6",a:"2.0"},{n:["flag-br","brazil flag"],u:"1f1e7-1f1f7",a:"2.0"},{n:["flag-bs","bahamas flag"],u:"1f1e7-1f1f8",a:"2.0"},{n:["flag-bt","bhutan flag"],u:"1f1e7-1f1f9",a:"2.0"},{n:["flag-bv","bouvet island flag"],u:"1f1e7-1f1fb",a:"2.0"},{n:["flag-bw","botswana flag"],u:"1f1e7-1f1fc",a:"2.0"},{n:["flag-by","belarus flag"],u:"1f1e7-1f1fe",a:"2.0"},{n:["flag-bz","belize flag"],u:"1f1e7-1f1ff",a:"2.0"},{n:["flag-ca","canada flag"],u:"1f1e8-1f1e6",a:"2.0"},{n:["flag-cc","cocos (keeling) islands flag"],u:"1f1e8-1f1e8",a:"2.0"},{n:["flag-cd","congo - kinshasa flag"],u:"1f1e8-1f1e9",a:"2.0"},{n:["flag-cf","central african republic flag"],u:"1f1e8-1f1eb",a:"2.0"},{n:["flag-cg","congo - brazzaville flag"],u:"1f1e8-1f1ec",a:"2.0"},{n:["flag-ch","switzerland flag"],u:"1f1e8-1f1ed",a:"2.0"},{n:["flag-ci","c\xf4te d\u2019ivoire flag"],u:"1f1e8-1f1ee",a:"2.0"},{n:["flag-ck","cook islands flag"],u:"1f1e8-1f1f0",a:"2.0"},{n:["flag-cl","chile flag"],u:"1f1e8-1f1f1",a:"2.0"},{n:["flag-cm","cameroon flag"],u:"1f1e8-1f1f2",a:"2.0"},{n:["cn","flag-cn","china flag"],u:"1f1e8-1f1f3",a:"0.6"},{n:["flag-co","colombia flag"],u:"1f1e8-1f1f4",a:"2.0"},{n:["flag-cp","clipperton island flag"],u:"1f1e8-1f1f5",a:"2.0"},{n:["flag-cr","costa rica flag"],u:"1f1e8-1f1f7",a:"2.0"},{n:["flag-cu","cuba flag"],u:"1f1e8-1f1fa",a:"2.0"},{n:["flag-cv","cape verde flag"],u:"1f1e8-1f1fb",a:"2.0"},{n:["flag-cw","cura\xe7ao flag"],u:"1f1e8-1f1fc",a:"2.0"},{n:["flag-cx","christmas island flag"],u:"1f1e8-1f1fd",a:"2.0"},{n:["flag-cy","cyprus flag"],u:"1f1e8-1f1fe",a:"2.0"},{n:["flag-cz","czechia flag"],u:"1f1e8-1f1ff",a:"2.0"},{n:["de","flag-de","germany flag"],u:"1f1e9-1f1ea",a:"0.6"},{n:["flag-dg","diego garcia flag"],u:"1f1e9-1f1ec",a:"2.0"},{n:["flag-dj","djibouti flag"],u:"1f1e9-1f1ef",a:"2.0"},{n:["flag-dk","denmark flag"],u:"1f1e9-1f1f0",a:"2.0"},{n:["flag-dm","dominica flag"],u:"1f1e9-1f1f2",a:"2.0"},{n:["flag-do","dominican republic flag"],u:"1f1e9-1f1f4",a:"2.0"},{n:["flag-dz","algeria flag"],u:"1f1e9-1f1ff",a:"2.0"},{n:["flag-ea","ceuta & melilla flag"],u:"1f1ea-1f1e6",a:"2.0"},{n:["flag-ec","ecuador flag"],u:"1f1ea-1f1e8",a:"2.0"},{n:["flag-ee","estonia flag"],u:"1f1ea-1f1ea",a:"2.0"},{n:["flag-eg","egypt flag"],u:"1f1ea-1f1ec",a:"2.0"},{n:["flag-eh","western sahara flag"],u:"1f1ea-1f1ed",a:"2.0"},{n:["flag-er","eritrea flag"],u:"1f1ea-1f1f7",a:"2.0"},{n:["es","flag-es","spain flag"],u:"1f1ea-1f1f8",a:"0.6"},{n:["flag-et","ethiopia flag"],u:"1f1ea-1f1f9",a:"2.0"},{n:["flag-eu","european union flag"],u:"1f1ea-1f1fa",a:"2.0"},{n:["flag-fi","finland flag"],u:"1f1eb-1f1ee",a:"2.0"},{n:["flag-fj","fiji flag"],u:"1f1eb-1f1ef",a:"2.0"},{n:["flag-fk","falkland islands flag"],u:"1f1eb-1f1f0",a:"2.0"},{n:["flag-fm","micronesia flag"],u:"1f1eb-1f1f2",a:"2.0"},{n:["flag-fo","faroe islands flag"],u:"1f1eb-1f1f4",a:"2.0"},{n:["fr","flag-fr","france flag"],u:"1f1eb-1f1f7",a:"0.6"},{n:["flag-ga","gabon flag"],u:"1f1ec-1f1e6",a:"2.0"},{n:["gb","uk","flag-gb","united kingdom flag"],u:"1f1ec-1f1e7",a:"0.6"},{n:["flag-gd","grenada flag"],u:"1f1ec-1f1e9",a:"2.0"},{n:["flag-ge","georgia flag"],u:"1f1ec-1f1ea",a:"2.0"},{n:["flag-gf","french guiana flag"],u:"1f1ec-1f1eb",a:"2.0"},{n:["flag-gg","guernsey flag"],u:"1f1ec-1f1ec",a:"2.0"},{n:["flag-gh","ghana flag"],u:"1f1ec-1f1ed",a:"2.0"},{n:["flag-gi","gibraltar flag"],u:"1f1ec-1f1ee",a:"2.0"},{n:["flag-gl","greenland flag"],u:"1f1ec-1f1f1",a:"2.0"},{n:["flag-gm","gambia flag"],u:"1f1ec-1f1f2",a:"2.0"},{n:["flag-gn","guinea flag"],u:"1f1ec-1f1f3",a:"2.0"},{n:["flag-gp","guadeloupe flag"],u:"1f1ec-1f1f5",a:"2.0"},{n:["flag-gq","equatorial guinea flag"],u:"1f1ec-1f1f6",a:"2.0"},{n:["flag-gr","greece flag"],u:"1f1ec-1f1f7",a:"2.0"},{n:["flag-gs","south georgia & south sandwich islands flag"],u:"1f1ec-1f1f8",a:"2.0"},{n:["flag-gt","guatemala flag"],u:"1f1ec-1f1f9",a:"2.0"},{n:["flag-gu","guam flag"],u:"1f1ec-1f1fa",a:"2.0"},{n:["flag-gw","guinea-bissau flag"],u:"1f1ec-1f1fc",a:"2.0"},{n:["flag-gy","guyana flag"],u:"1f1ec-1f1fe",a:"2.0"},{n:["flag-hk","hong kong sar china flag"],u:"1f1ed-1f1f0",a:"2.0"},{n:["flag-hm","heard & mcdonald islands flag"],u:"1f1ed-1f1f2",a:"2.0"},{n:["flag-hn","honduras flag"],u:"1f1ed-1f1f3",a:"2.0"},{n:["flag-hr","croatia flag"],u:"1f1ed-1f1f7",a:"2.0"},{n:["flag-ht","haiti flag"],u:"1f1ed-1f1f9",a:"2.0"},{n:["flag-hu","hungary flag"],u:"1f1ed-1f1fa",a:"2.0"},{n:["flag-ic","canary islands flag"],u:"1f1ee-1f1e8",a:"2.0"},{n:["flag-id","indonesia flag"],u:"1f1ee-1f1e9",a:"2.0"},{n:["flag-ie","ireland flag"],u:"1f1ee-1f1ea",a:"2.0"},{n:["flag-il","israel flag"],u:"1f1ee-1f1f1",a:"2.0"},{n:["flag-im","isle of man flag"],u:"1f1ee-1f1f2",a:"2.0"},{n:["flag-in","india flag"],u:"1f1ee-1f1f3",a:"2.0"},{n:["flag-io","british indian ocean territory flag"],u:"1f1ee-1f1f4",a:"2.0"},{n:["flag-iq","iraq flag"],u:"1f1ee-1f1f6",a:"2.0"},{n:["flag-ir","iran flag"],u:"1f1ee-1f1f7",a:"2.0"},{n:["flag-is","iceland flag"],u:"1f1ee-1f1f8",a:"2.0"},{n:["it","flag-it","italy flag"],u:"1f1ee-1f1f9",a:"0.6"},{n:["flag-je","jersey flag"],u:"1f1ef-1f1ea",a:"2.0"},{n:["flag-jm","jamaica flag"],u:"1f1ef-1f1f2",a:"2.0"},{n:["flag-jo","jordan flag"],u:"1f1ef-1f1f4",a:"2.0"},{n:["jp","flag-jp","japan flag"],u:"1f1ef-1f1f5",a:"0.6"},{n:["flag-ke","kenya flag"],u:"1f1f0-1f1ea",a:"2.0"},{n:["flag-kg","kyrgyzstan flag"],u:"1f1f0-1f1ec",a:"2.0"},{n:["flag-kh","cambodia flag"],u:"1f1f0-1f1ed",a:"2.0"},{n:["flag-ki","kiribati flag"],u:"1f1f0-1f1ee",a:"2.0"},{n:["flag-km","comoros flag"],u:"1f1f0-1f1f2",a:"2.0"},{n:["flag-kn","st. kitts & nevis flag"],u:"1f1f0-1f1f3",a:"2.0"},{n:["flag-kp","north korea flag"],u:"1f1f0-1f1f5",a:"2.0"},{n:["kr","flag-kr","south korea flag"],u:"1f1f0-1f1f7",a:"0.6"},{n:["flag-kw","kuwait flag"],u:"1f1f0-1f1fc",a:"2.0"},{n:["flag-ky","cayman islands flag"],u:"1f1f0-1f1fe",a:"2.0"},{n:["flag-kz","kazakhstan flag"],u:"1f1f0-1f1ff",a:"2.0"},{n:["flag-la","laos flag"],u:"1f1f1-1f1e6",a:"2.0"},{n:["flag-lb","lebanon flag"],u:"1f1f1-1f1e7",a:"2.0"},{n:["flag-lc","st. lucia flag"],u:"1f1f1-1f1e8",a:"2.0"},{n:["flag-li","liechtenstein flag"],u:"1f1f1-1f1ee",a:"2.0"},{n:["flag-lk","sri lanka flag"],u:"1f1f1-1f1f0",a:"2.0"},{n:["flag-lr","liberia flag"],u:"1f1f1-1f1f7",a:"2.0"},{n:["flag-ls","lesotho flag"],u:"1f1f1-1f1f8",a:"2.0"},{n:["flag-lt","lithuania flag"],u:"1f1f1-1f1f9",a:"2.0"},{n:["flag-lu","luxembourg flag"],u:"1f1f1-1f1fa",a:"2.0"},{n:["flag-lv","latvia flag"],u:"1f1f1-1f1fb",a:"2.0"},{n:["flag-ly","libya flag"],u:"1f1f1-1f1fe",a:"2.0"},{n:["flag-ma","morocco flag"],u:"1f1f2-1f1e6",a:"2.0"},{n:["flag-mc","monaco flag"],u:"1f1f2-1f1e8",a:"2.0"},{n:["flag-md","moldova flag"],u:"1f1f2-1f1e9",a:"2.0"},{n:["flag-me","montenegro flag"],u:"1f1f2-1f1ea",a:"2.0"},{n:["flag-mf","st. martin flag"],u:"1f1f2-1f1eb",a:"2.0"},{n:["flag-mg","madagascar flag"],u:"1f1f2-1f1ec",a:"2.0"},{n:["flag-mh","marshall islands flag"],u:"1f1f2-1f1ed",a:"2.0"},{n:["flag-mk","north macedonia flag"],u:"1f1f2-1f1f0",a:"2.0"},{n:["flag-ml","mali flag"],u:"1f1f2-1f1f1",a:"2.0"},{n:["flag-mm","myanmar (burma) flag"],u:"1f1f2-1f1f2",a:"2.0"},{n:["flag-mn","mongolia flag"],u:"1f1f2-1f1f3",a:"2.0"},{n:["flag-mo","macao sar china flag"],u:"1f1f2-1f1f4",a:"2.0"},{n:["flag-mp","northern mariana islands flag"],u:"1f1f2-1f1f5",a:"2.0"},{n:["flag-mq","martinique flag"],u:"1f1f2-1f1f6",a:"2.0"},{n:["flag-mr","mauritania flag"],u:"1f1f2-1f1f7",a:"2.0"},{n:["flag-ms","montserrat flag"],u:"1f1f2-1f1f8",a:"2.0"},{n:["flag-mt","malta flag"],u:"1f1f2-1f1f9",a:"2.0"},{n:["flag-mu","mauritius flag"],u:"1f1f2-1f1fa",a:"2.0"},{n:["flag-mv","maldives flag"],u:"1f1f2-1f1fb",a:"2.0"},{n:["flag-mw","malawi flag"],u:"1f1f2-1f1fc",a:"2.0"},{n:["flag-mx","mexico flag"],u:"1f1f2-1f1fd",a:"2.0"},{n:["flag-my","malaysia flag"],u:"1f1f2-1f1fe",a:"2.0"},{n:["flag-mz","mozambique flag"],u:"1f1f2-1f1ff",a:"2.0"},{n:["flag-na","namibia flag"],u:"1f1f3-1f1e6",a:"2.0"},{n:["flag-nc","new caledonia flag"],u:"1f1f3-1f1e8",a:"2.0"},{n:["flag-ne","niger flag"],u:"1f1f3-1f1ea",a:"2.0"},{n:["flag-nf","norfolk island flag"],u:"1f1f3-1f1eb",a:"2.0"},{n:["flag-ng","nigeria flag"],u:"1f1f3-1f1ec",a:"2.0"},{n:["flag-ni","nicaragua flag"],u:"1f1f3-1f1ee",a:"2.0"},{n:["flag-nl","netherlands flag"],u:"1f1f3-1f1f1",a:"2.0"},{n:["flag-no","norway flag"],u:"1f1f3-1f1f4",a:"2.0"},{n:["flag-np","nepal flag"],u:"1f1f3-1f1f5",a:"2.0"},{n:["flag-nr","nauru flag"],u:"1f1f3-1f1f7",a:"2.0"},{n:["flag-nu","niue flag"],u:"1f1f3-1f1fa",a:"2.0"},{n:["flag-nz","new zealand flag"],u:"1f1f3-1f1ff",a:"2.0"},{n:["flag-om","oman flag"],u:"1f1f4-1f1f2",a:"2.0"},{n:["flag-pa","panama flag"],u:"1f1f5-1f1e6",a:"2.0"},{n:["flag-pe","peru flag"],u:"1f1f5-1f1ea",a:"2.0"},{n:["flag-pf","french polynesia flag"],u:"1f1f5-1f1eb",a:"2.0"},{n:["flag-pg","papua new guinea flag"],u:"1f1f5-1f1ec",a:"2.0"},{n:["flag-ph","philippines flag"],u:"1f1f5-1f1ed",a:"2.0"},{n:["flag-pk","pakistan flag"],u:"1f1f5-1f1f0",a:"2.0"},{n:["flag-pl","poland flag"],u:"1f1f5-1f1f1",a:"2.0"},{n:["flag-pm","st. pierre & miquelon flag"],u:"1f1f5-1f1f2",a:"2.0"},{n:["flag-pn","pitcairn islands flag"],u:"1f1f5-1f1f3",a:"2.0"},{n:["flag-pr","puerto rico flag"],u:"1f1f5-1f1f7",a:"2.0"},{n:["flag-ps","palestinian territories flag"],u:"1f1f5-1f1f8",a:"2.0"},{n:["flag-pt","portugal flag"],u:"1f1f5-1f1f9",a:"2.0"},{n:["flag-pw","palau flag"],u:"1f1f5-1f1fc",a:"2.0"},{n:["flag-py","paraguay flag"],u:"1f1f5-1f1fe",a:"2.0"},{n:["flag-qa","qatar flag"],u:"1f1f6-1f1e6",a:"2.0"},{n:["flag-re","r\xe9union flag"],u:"1f1f7-1f1ea",a:"2.0"},{n:["flag-ro","romania flag"],u:"1f1f7-1f1f4",a:"2.0"},{n:["flag-rs","serbia flag"],u:"1f1f7-1f1f8",a:"2.0"},{n:["ru","flag-ru","russia flag"],u:"1f1f7-1f1fa",a:"0.6"},{n:["flag-rw","rwanda flag"],u:"1f1f7-1f1fc",a:"2.0"},{n:["flag-sa","saudi arabia flag"],u:"1f1f8-1f1e6",a:"2.0"},{n:["flag-sb","solomon islands flag"],u:"1f1f8-1f1e7",a:"2.0"},{n:["flag-sc","seychelles flag"],u:"1f1f8-1f1e8",a:"2.0"},{n:["flag-sd","sudan flag"],u:"1f1f8-1f1e9",a:"2.0"},{n:["flag-se","sweden flag"],u:"1f1f8-1f1ea",a:"2.0"},{n:["flag-sg","singapore flag"],u:"1f1f8-1f1ec",a:"2.0"},{n:["flag-sh","st. helena flag"],u:"1f1f8-1f1ed",a:"2.0"},{n:["flag-si","slovenia flag"],u:"1f1f8-1f1ee",a:"2.0"},{n:["flag-sj","svalbard & jan mayen flag"],u:"1f1f8-1f1ef",a:"2.0"},{n:["flag-sk","slovakia flag"],u:"1f1f8-1f1f0",a:"2.0"},{n:["flag-sl","sierra leone flag"],u:"1f1f8-1f1f1",a:"2.0"},{n:["flag-sm","san marino flag"],u:"1f1f8-1f1f2",a:"2.0"},{n:["flag-sn","senegal flag"],u:"1f1f8-1f1f3",a:"2.0"},{n:["flag-so","somalia flag"],u:"1f1f8-1f1f4",a:"2.0"},{n:["flag-sr","suriname flag"],u:"1f1f8-1f1f7",a:"2.0"},{n:["flag-ss","south sudan flag"],u:"1f1f8-1f1f8",a:"2.0"},{n:["flag-st","s\xe3o tom\xe9 & pr\xedncipe flag"],u:"1f1f8-1f1f9",a:"2.0"},{n:["flag-sv","el salvador flag"],u:"1f1f8-1f1fb",a:"2.0"},{n:["flag-sx","sint maarten flag"],u:"1f1f8-1f1fd",a:"2.0"},{n:["flag-sy","syria flag"],u:"1f1f8-1f1fe",a:"2.0"},{n:["flag-sz","eswatini flag"],u:"1f1f8-1f1ff",a:"2.0"},{n:["flag-ta","tristan da cunha flag"],u:"1f1f9-1f1e6",a:"2.0"},{n:["flag-tc","turks & caicos islands flag"],u:"1f1f9-1f1e8",a:"2.0"},{n:["flag-td","chad flag"],u:"1f1f9-1f1e9",a:"2.0"},{n:["flag-tf","french southern territories flag"],u:"1f1f9-1f1eb",a:"2.0"},{n:["flag-tg","togo flag"],u:"1f1f9-1f1ec",a:"2.0"},{n:["flag-th","thailand flag"],u:"1f1f9-1f1ed",a:"2.0"},{n:["flag-tj","tajikistan flag"],u:"1f1f9-1f1ef",a:"2.0"},{n:["flag-tk","tokelau flag"],u:"1f1f9-1f1f0",a:"2.0"},{n:["flag-tl","timor-leste flag"],u:"1f1f9-1f1f1",a:"2.0"},{n:["flag-tm","turkmenistan flag"],u:"1f1f9-1f1f2",a:"2.0"},{n:["flag-tn","tunisia flag"],u:"1f1f9-1f1f3",a:"2.0"},{n:["flag-to","tonga flag"],u:"1f1f9-1f1f4",a:"2.0"},{n:["flag-tr","turkey flag"],u:"1f1f9-1f1f7",a:"2.0"},{n:["flag-tt","trinidad & tobago flag"],u:"1f1f9-1f1f9",a:"2.0"},{n:["flag-tv","tuvalu flag"],u:"1f1f9-1f1fb",a:"2.0"},{n:["flag-tw","taiwan flag"],u:"1f1f9-1f1fc",a:"2.0"},{n:["flag-tz","tanzania flag"],u:"1f1f9-1f1ff",a:"2.0"},{n:["flag-ua","ukraine flag"],u:"1f1fa-1f1e6",a:"2.0"},{n:["flag-ug","uganda flag"],u:"1f1fa-1f1ec",a:"2.0"},{n:["flag-um","u.s. outlying islands flag"],u:"1f1fa-1f1f2",a:"2.0"},{n:["flag-un","united nations flag"],u:"1f1fa-1f1f3",a:"4.0"},{n:["us","flag-us","united states flag"],u:"1f1fa-1f1f8",a:"0.6"},{n:["flag-uy","uruguay flag"],u:"1f1fa-1f1fe",a:"2.0"},{n:["flag-uz","uzbekistan flag"],u:"1f1fa-1f1ff",a:"2.0"},{n:["flag-va","vatican city flag"],u:"1f1fb-1f1e6",a:"2.0"},{n:["flag-vc","st. vincent & grenadines flag"],u:"1f1fb-1f1e8",a:"2.0"},{n:["flag-ve","venezuela flag"],u:"1f1fb-1f1ea",a:"2.0"},{n:["flag-vg","british virgin islands flag"],u:"1f1fb-1f1ec",a:"2.0"},{n:["flag-vi","u.s. virgin islands flag"],u:"1f1fb-1f1ee",a:"2.0"},{n:["flag-vn","vietnam flag"],u:"1f1fb-1f1f3",a:"2.0"},{n:["flag-vu","vanuatu flag"],u:"1f1fb-1f1fa",a:"2.0"},{n:["flag-wf","wallis & futuna flag"],u:"1f1fc-1f1eb",a:"2.0"},{n:["flag-ws","samoa flag"],u:"1f1fc-1f1f8",a:"2.0"},{n:["flag-xk","kosovo flag"],u:"1f1fd-1f1f0",a:"2.0"},{n:["flag-ye","yemen flag"],u:"1f1fe-1f1ea",a:"2.0"},{n:["flag-yt","mayotte flag"],u:"1f1fe-1f1f9",a:"2.0"},{n:["flag-za","south africa flag"],u:"1f1ff-1f1e6",a:"2.0"},{n:["flag-zm","zambia flag"],u:"1f1ff-1f1f2",a:"2.0"},{n:["flag-zw","zimbabwe flag"],u:"1f1ff-1f1fc",a:"2.0"},{n:["england flag","flag-england"],u:"1f3f4-e0067-e0062-e0065-e006e-e0067-e007f",a:"5.0"},{n:["scotland flag","flag-scotland"],u:"1f3f4-e0067-e0062-e0073-e0063-e0074-e007f",a:"5.0"},{n:["wales flag","flag-wales"],u:"1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",a:"5.0"}]},vpe=[epe.NEUTRAL,epe.LIGHT,epe.MEDIUM_LIGHT,epe.MEDIUM,epe.MEDIUM_DARK,epe.DARK],bpe=Object.entries(epe).reduce((function(e,t){var r=t[0];return e[t[1]]=r,e}),{}),wpe=vpe.reduce((function(e,t){var r;return Object.assign(e,((r={})[t]=t,r))}),{});function _pe(e){var t;return null!=(t=e[gpe.name])?t:[]}function Epe(e){return e?_pe(e)[0]:""}function Ape(e){var t=e.split("-"),r=t.splice(1,1)[0];return wpe[r]?t.join("-"):e}function Mpe(e,t){var r,n=e[gpe.unified];return t&&Tpe(e)&&null!=(r=function(e,t){return t?kpe(e).find((function(e){return e.includes(t)})):Mpe(e)}(e,t))?r:n}function Spe(e){var t;return null!=(t=null==ype?void 0:ype[e])?t:[]}function xpe(e,t){return""+function(e){switch(e){case Zfe.TWITTER:return"https://cdn.jsdelivr.net/npm/emoji-datasource-twitter/img/twitter/64/";case Zfe.GOOGLE:return"https://cdn.jsdelivr.net/npm/emoji-datasource-google/img/google/64/";case Zfe.FACEBOOK:return"https://cdn.jsdelivr.net/npm/emoji-datasource-facebook/img/facebook/64/";case Zfe.APPLE:default:return"https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/"}}(t)+e+".png"}function kpe(e){var t;return null!=(t=e[gpe.variations])?t:[]}function Tpe(e){return kpe(e).length>0}function Cpe(e){if(e){if(Rpe[e])return Rpe[e];var t=Ape(e);return Rpe[t]}}!function(e){e.name="n",e.unified="u",e.variations="v",e.added_in="a"}(gpe||(gpe={}));var Ipe,Npe=Object.values(ype).flat(),Rpe={};setTimeout((function(){Npe.reduce((function(e,t){return e[Mpe(t)]=t,e}),Rpe)}));var Ppe=[tpe.SUGGESTED,tpe.SMILEYS_PEOPLE,tpe.ANIMALS_NATURE,tpe.FOOD_DRINK,tpe.TRAVEL_PLACES,tpe.ACTIVITIES,tpe.OBJECTS,tpe.SYMBOLS,tpe.FLAGS],Dpe={name:"Recently Used",category:tpe.SUGGESTED},Lpe=((Ipe={})[tpe.SUGGESTED]={category:tpe.SUGGESTED,name:"Frequently Used"},Ipe[tpe.SMILEYS_PEOPLE]={category:tpe.SMILEYS_PEOPLE,name:"Smileys & People"},Ipe[tpe.ANIMALS_NATURE]={category:tpe.ANIMALS_NATURE,name:"Animals & Nature"},Ipe[tpe.FOOD_DRINK]={category:tpe.FOOD_DRINK,name:"Food & Drink"},Ipe[tpe.TRAVEL_PLACES]={category:tpe.TRAVEL_PLACES,name:"Travel & Places"},Ipe[tpe.ACTIVITIES]={category:tpe.ACTIVITIES,name:"Activities"},Ipe[tpe.OBJECTS]={category:tpe.OBJECTS,name:"Objects"},Ipe[tpe.SYMBOLS]={category:tpe.SYMBOLS,name:"Symbols"},Ipe[tpe.FLAGS]={category:tpe.FLAGS,name:"Flags"},Ipe);function Ope(e){return Ppe.map((function(t){return dpe({},Lpe[t],e&&e[t]&&e[t])}))}function jpe(e){return e.category}function Bpe(e){return e.name}function Upe(e,t){return void 0===t&&(t={}),Object.assign(Lpe[e],t)}function Fpe(e){var t;void 0===e&&(e={});var r=zpe(),n=Object.assign(r.previewConfig,null!=(t=e.previewConfig)?t:{}),i=Object.assign(r,e),o=function(e,t){var r;void 0===e&&(e=[]),void 0===t&&(t={});var n={};t.suggestionMode===Jfe.RECENT&&(n[tpe.SUGGESTED]=Dpe);var i=Ope(n);return null!=(r=e)&&r.length?e.map((function(e){return"string"==typeof e?Upe(e,n[e]):dpe({},Upe(e.category,n[e.category]),e)})):i}(e.categories,{suggestionMode:i.suggestedEmojisMode});return dpe({},i,{categories:o,previewConfig:n,skinTonePickerLocation:i.searchDisabled?rpe.PREVIEW:i.skinTonePickerLocation})}function zpe(){return{autoFocusSearch:!0,categories:Ope(),defaultSkinTone:epe.NEUTRAL,emojiStyle:Zfe.APPLE,emojiVersion:null,getEmojiUrl:xpe,height:450,lazyLoadEmojis:!1,onEmojiClick:function(e,t){},previewConfig:dpe({},Hpe),searchDisabled:!1,searchPlaceHolder:"Search",skinTonePickerLocation:rpe.SEARCH,skinTonesDisabled:!1,suggestedEmojisMode:Jfe.FREQUENT,theme:Xfe.LIGHT,width:350,unicodeToHide:new Set}}var Hpe={defaultEmoji:"1f60a",defaultCaption:"What's your mood?",showPreview:!0},Gpe=["children"],Ype=(0,w.createContext)(zpe());function Kpe(e){var t=e.children,r=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n=0||(i[r]=e[r]);return i}(e,Gpe);return(0,w.createElement)(Ype.Provider,{value:Fpe(r)},t)}function qpe(){return(0,w.useContext)(Ype)}function Wpe(){return qpe().skinTonesDisabled}function Vpe(){return qpe().emojiStyle}function $pe(){return qpe().categories}function Qpe(){return qpe().previewConfig}function Jpe(){var e=qpe().theme;return e===Xfe.AUTO?"undefined"!=typeof window&&window.matchMedia("(prefers-color-scheme: dark)").matches?Xfe.DARK:Xfe.LIGHT:e}function Zpe(){return qpe().searchDisabled}function Xpe(){return qpe().skinTonePickerLocation}function eme(){return qpe().getEmojiUrl}function tme(e){return"number"==typeof e?e+"px":e}var rme={};function nme(e,t){void 0===t&&(t=0);var r=(0,w.useState)(e),n=r[0],i=r[1],o=(0,w.useRef)(null);return[n,function(e){return new Promise((function(r){var n;o.current&&clearTimeout(o.current),o.current=null==(n=window)?void 0:n.setTimeout((function(){i(e),r(e)}),t)}))}]}function ime(){var e=qpe().unicodeToHide;return function(t){return e.has(t)}}function ome(){var e=(0,w.useRef)({}),t=qpe().emojiVersion;return(0,w.useMemo)((function(){var r=parseFloat(""+t);return!t||Number.isNaN(r)?e.current:Npe.reduce((function(e,t){return function(e,t){return function(e){return parseFloat(e[gpe.added_in])}(e)>t}(t,r)&&(e[Mpe(t)]=!0),e}),e.current)}),[t])}function sme(e){var t,r=e.children,n=ome(),i=qpe().defaultSkinTone,o=(0,w.useRef)(rme),s=(0,w.useRef)(!1),a=(0,w.useRef)(!1),u=(0,w.useRef)(n),l=nme(Date.now(),200),c=nme("",100),h=(0,w.useState)(!1),d=(0,w.useState)(i),f=(0,w.useState)(null),p=(0,w.useState)(new Set),m=(0,w.useState)(null),g=(0,w.useState)(!1),y=g[0],v=g[1];return t=v,(0,w.useEffect)((function(){t(!0)}),[t]),(0,w.createElement)(ame.Provider,{value:{activeCategoryState:f,activeSkinTone:d,disallowClickRef:s,disallowMouseRef:a,disallowedEmojisRef:u,emojiVariationPickerState:m,emojisThatFailedToLoadState:p,filterRef:o,isPastInitialLoad:y,searchTerm:c,skinToneFanOpenState:h,suggestedUpdateState:l}},r)}setTimeout((function(){Npe.reduce((function(e,t){return _pe(t).flat().join("").replace(/[^a-zA-Z\d]/g,"").split("").forEach((function(r){var n;e[r]=null!=(n=e[r])?n:{},e[r][Mpe(t)]=t})),e}),rme)}));var ame=(0,w.createContext)({activeCategoryState:[null,function(){}],activeSkinTone:[epe.NEUTRAL,function(){}],disallowClickRef:{current:!1},disallowMouseRef:{current:!1},disallowedEmojisRef:{current:{}},emojiVariationPickerState:[null,function(){}],emojisThatFailedToLoadState:[new Set,function(){}],filterRef:{current:{}},isPastInitialLoad:!0,searchTerm:["",function(){return new Promise((function(){}))}],skinToneFanOpenState:[!1,function(){}],suggestedUpdateState:[Date.now(),function(){}]});function ume(){return(0,w.useContext)(ame).filterRef}function lme(){return(0,w.useContext)(ame).disallowMouseRef}function cme(){return(0,w.useContext)(ame).searchTerm}function hme(){return(0,w.useContext)(ame).activeSkinTone}function dme(){return(0,w.useContext)(ame).emojisThatFailedToLoadState}function fme(){return(0,w.useContext)(ame).emojiVariationPickerState}function pme(){return(0,w.useContext)(ame).skinToneFanOpenState}function mme(){var e=(0,w.useContext)(ame).suggestedUpdateState,t=e[0],r=e[1];return[t,function(){r(Date.now())}]}function gme(){var e=lme();return function(){e.current=!1}}function yme(){var e=lme();return function(){return e.current}}function vme(e,t){if(!e||!t)return 0;var r=e.getBoundingClientRect().width,n=t.getBoundingClientRect().width;return Math.floor(r/n)}function bme(e,t){if(!e||!t)return 0;var r=t.getBoundingClientRect().width,n=t.getBoundingClientRect().left,i=e.getBoundingClientRect().left;return Math.floor((n-i)/r)}function wme(e,t){if(!e||!t)return 0;var r=t.getBoundingClientRect().height,n=t.getBoundingClientRect().top,i=e.getBoundingClientRect().top;return Math.round((n-i)/r)}function _me(e,t,r){if(-1===t){var n=Math.floor((e.length-1)/r)*r,i=e.length-1;return e.slice(n,i+1)}return e.slice(t*r,(t+1)*r)}function Eme(e,t,r,n){var i=_me(e,t,r);return i[n]||i[i.length-1]||null}function Ame(e,t,r,n){var i=function(e,t,r){var n=t+1;return n*r>e.length?[]:_me(e,n,r)}(e,t,r);return i[n]||i[i.length-1]||null}var Mme="button"+Kfe(Hfe.emoji),Sme=[Mme,Kfe(Hfe.visible),":not("+Kfe(Hfe.hidden)+")"].join("");function xme(e){var t;return null!=(t=null==e?void 0:e.closest(Mme))?t:null}function kme(e){var t=jme(e),r=Ome(e);if(!t)return[];var n=Cpe(t);return n?[n,r]:[]}function Tme(e){var t;return null!=(t=null==e?void 0:e.clientHeight)?t:0}function Cme(e){if(!e)return 0;var t=xme(e),r=Wme(t),n=Ime(r);return Dme(t)+Dme(r)+n}function Ime(e){var t,r;if(!e)return 0;var n=e.querySelector(Kfe(Hfe.categoryContent));return(null!=(t=null==e?void 0:e.clientHeight)?t:0)-(null!=(r=null==n?void 0:n.clientHeight)?r:0)}function Nme(e){return e?e.matches(Kfe(Hfe.scrollBody))?e:e.querySelector(Kfe(Hfe.scrollBody)):null}function Rme(e){var t,r;return e?Cme(e)-(null!=(t=null==(r=Pme(e))?void 0:r.scrollTop)?t:0):0}function Pme(e){var t;return e&&null!=(t=e.closest(Kfe(Hfe.scrollBody)))?t:null}function Dme(e){var t;return null!=(t=null==e?void 0:e.offsetTop)?t:0}function Lme(e){var t;return null!=(t=null==e?void 0:e.offsetLeft)?t:0}function Ome(e){var t;return null!=(t=function(e,t){var r;return null!=(r=function(e){var t;return null!=(t=null==e?void 0:e.dataset)?t:{}}(e)[t])?r:null}(xme(e),"unified"))?t:null}function jme(e){var t=Ome(e);return t?Ape(t):null}function Bme(e){return e.classList.contains(Hfe.visible)}function Ume(e){return!e||e.classList.contains(Hfe.hidden)}function Fme(e){return e?Array.from(e.querySelectorAll(Sme)):[]}function zme(e){if(!e)return null;var t=Fme(e).slice(-1)[0];return t?Bme(t)?t:Gme(t):null}function Hme(e){var t=e.nextElementSibling;return t?Bme(t)?t:Hme(t):Yme(qme(e))}function Gme(e){var t=e.previousElementSibling;return t?Bme(t)?t:Gme(t):zme(Kme(e))}function Yme(e){return e?function(e,t){if(!e||!t.length)return null;var r=e.getBoundingClientRect().top,n=e.getBoundingClientRect().bottom;return t.find((function(e){var t=e.getBoundingClientRect().top,i=e.getBoundingClientRect().bottom;return t>=r&&t<=n||i>=r&&i<=n}))||null}(e,Fme(e)):null}function Kme(e){var t=Wme(e);if(!t)return null;var r=t.previousElementSibling;return r?Ume(r)?Kme(r):r:null}function qme(e){var t=Wme(e);if(!t)return null;var r=t.nextElementSibling;return r?Ume(r)?qme(r):r:null}function Wme(e){return e?e.closest(Kfe(Hfe.category)):null}function Vme(e){return e?e.closest(Kfe(Hfe.categoryContent)):null}function $me(e){return e.split("-").map((function(e){return String.fromCodePoint(parseInt(e,16))})).join("")}var Qme="epr_suggested";function Jme(e){try{var t,r,n;if(null==(t=window)||!t.localStorage)return[];var i=JSON.parse(null!=(r=null==(n=window)?void 0:n.localStorage.getItem(Qme))?r:"[]");return e===Jfe.FREQUENT?i.sort((function(e,t){return t.count-e.count})):i}catch(o){return[]}}function Zme(){var e=fme(),t=e[0],r=e[1],n=pme(),i=n[0],o=n[1];return(0,w.useCallback)((function(){t&&r(null),i&&o(!1)}),[t,i,r,o])}function Xme(){var e=fme()[0],t=pme()[0];return function(){return!!e||t}}function ege(){var e=ape(),t=fme()[1];return function(r){var n=kme(r)[0];n&&(e(r),t(n))}}function tge(e){var t=(0,w.useRef)(),r=ege(),n=(0,w.useContext)(ame).disallowClickRef,i=fme()[1],o=Zme(),s=hme()[0],a=qpe().onEmojiClick,u=mme()[1],l=eme(),c=(0,w.useCallback)((function(e){if(!n.current){o();var t=rge(e),r=t[0],i=t[1];if(r&&i){var c=function(e){var t=e.split("-")[1];return vpe.includes(t)?t:null}(i)||s;u(),function(e,t){var r,n=Jme(),i=Mpe(e,t),o=Mpe(e),s=n.find((function(e){return e.unified===i}));r=s?[s].concat(n.filter((function(e){return e!==s}))):[s={unified:i,original:o,count:0}].concat(n),s.count++,r.length=Math.min(r.length,14);try{var a;null==(a=window)||a.localStorage.setItem(Qme,JSON.stringify(r))}catch(u){}}(r,c),a(function(e,t,r){var n=Mpe(e,t);return{activeSkinTone:t,emoji:$me(n),getImageUrl:function(e){return r(n,e)},names:_pe(e),unified:n,unifiedWithoutSkinTone:Mpe(e)}}(r,c,l),e)}}}),[s,o,n,a,u,l]),h=(0,w.useCallback)((function(e){var s;t.current&&clearTimeout(t.current);var a=rge(e)[0];a&&Tpe(a)&&(t.current=null==(s=window)?void 0:s.setTimeout((function(){n.current=!0,t.current=void 0,o(),r(e.target),i(a)}),500))}),[n,o,r,i]),d=(0,w.useCallback)((function(){t.current?(clearTimeout(t.current),t.current=void 0):n.current&&requestAnimationFrame((function(){n.current=!1}))}),[n]);(0,w.useEffect)((function(){if(e.current){var t=e.current;return t.addEventListener("click",c,{passive:!0}),t.addEventListener("mousedown",h,{passive:!0}),t.addEventListener("mouseup",d,{passive:!0}),function(){null==t||t.removeEventListener("click",c),null==t||t.removeEventListener("mousedown",h),null==t||t.removeEventListener("mouseup",d)}}}),[e,c,h,d])}function rge(e){var t,r,n=null==e?void 0:e.target;return t=n,Boolean((null==t?void 0:t.matches(Mme))||(null==t||null==(r=t.parentElement)?void 0:r.matches(Mme)))?kme(n):[]}function nge(e,t){void 0===t&&(t=0);var r=Nme(e);r&&requestAnimationFrame((function(){r.scrollTop=t+1}))}function ige(e){if(e&&function(e){return!!e&&Rme(e)*{align-self:center;display:block;justify-self:center}.EmojiPickerReact button.epr-emoji.epr-emoji-has-variations:hover:after{border-bottom:4px solid var(--epr-emoji-variation-indicator-color-hover)}.__EmojiPicker__.epr-emoji-img{font-size:0}.__EmojiPicker__.epr-emoji-native{align-self:center;font-family:Segoe UI Emoji,Segoe UI Symbol,Segoe UI,Apple Color Emoji,Twemoji Mozilla,Noto Color Emoji,Android Emoji,Times,Symbola,Aegyptus,Code2000,Code2001,Code2002,Musica,serif,LastResort;font-size:var(--epr-emoji-size);justify-self:center;letter-spacing:0;line-height:100%;position:relative;text-align:center}.EmojiPickerReact button.epr-emoji:hover>*{background-color:var(--epr-emoji-hover-color)}.EmojiPickerReact button.epr-emoji:focus>*{background-color:var(--epr-focus-bg-color)}');function bge(e){var t,r=e.categoryConfig,n=e.children,i=e.hidden,o=e.hiddenOnSearch,s=jpe(r),a=Bpe(r);return(0,w.createElement)("li",{className:(0,Gfe.default)(Hfe.category,(t={},t[Hfe.hidden]=i,t[Hfe.hiddenOnSearch]=o,t)),"data-name":s,"aria-label":a},(0,w.createElement)("div",{className:Hfe.label},a),(0,w.createElement)("div",{className:Hfe.categoryContent},n))}function wge(e){var t=e.categoryConfig,r=mme()[0],n=qpe().suggestedEmojisMode,i=eme(),o=(0,w.useMemo)((function(){var e;return null!=(e=Jme(n))?e:[]}),[r,n]),s=Vpe();return(0,w.createElement)(bge,{categoryConfig:t,hiddenOnSearch:!0,hidden:0===o.length},o.map((function(e){var t=Cpe(e.original);return t?(0,w.createElement)(mge,{showVariations:!1,unified:e.unified,emojiStyle:s,emoji:t,key:e.unified,getEmojiUrl:i}):null})))}pge(".EmojiPickerReact li.epr-emoji-category>.epr-emoji-category-content{grid-gap:0;display:grid;grid-template-columns:repeat(auto-fill,var(--epr-emoji-fullsize));justify-content:space-between;margin:var(--epr-category-padding);position:relative}.EmojiPickerReact li.epr-emoji-category:not(:has(.epr-visible)){display:none}.EmojiPickerReact li.epr-emoji-category>.epr-emoji-category-label{align-items:center;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background-color:var(--epr-category-label-bg-color);color:var(--epr-category-label-text-color);display:flex;font-weight:700;height:var(--epr-category-label-height);padding:var(--epr-category-label-padding);position:-webkit-sticky;position:sticky;text-transform:capitalize;top:0;width:100%;z-index:var(--epr-category-label-z-index)}");function _ge(){var e=$pe();return(0,w.createElement)("ul",{className:Hfe.emojiList},e.map((function(e,t){var r=jpe(e);return r===tpe.SUGGESTED?(0,w.createElement)(wge,{key:r,categoryConfig:e}):(0,w.createElement)(Ege,{key:r,index:t,category:r,categoryConfig:e})})))}function Ege(e){var t,r,n=e.index,i=e.category,o=e.categoryConfig,s=dge(),a=qpe().lazyLoadEmojis,u=Vpe(),l=(0,w.useContext)(ame).isPastInitialLoad,c=hme()[0],h=(t=ome(),r=ime(),function(e){var n=Ape(Mpe(e));return Boolean(t[n]||r(n))}),d=eme(),f=!Wpe(),p=!l&&n>1?[]:Spe(i),m=0,g=p.map((function(e){var t=Mpe(e,c),r=s(e),n=r.failedToLoad,i=r.filteredOut,o=r.hidden,l=h(e);return(o||l)&&m++,l?null:(0,w.createElement)(mge,{showVariations:f,key:t,emoji:e,unified:t,hidden:n,hiddenOnSearch:i,emojiStyle:u,lazyLoad:a,getEmojiUrl:d})}));return(0,w.createElement)(bge,{categoryConfig:o,hidden:m===g.length},g)}function Age(e){var t=Yme(e);qfe(t),ige(t)}function Mge(e){if(e){var t=Hme(e);if(!t)return Age(qme(e));qfe(t),ige(t)}}function Sge(e){if(e){var t=Gme(e);if(t)qfe(t),ige(t);else qfe(zme(Kme(e)))}}function xge(e,t){if(e){var r=function(e){if(!e)return null;var t=Vme(e),r=Wme(t),n=bme(t,e),i=wme(t,e),o=vme(t,e);if(0===i){var s=Kme(r);return s?Eme(Fme(s),-1,o,n):null}return function(e,t,r,n){var i=_me(e,t-1,r);return i[n]||i[i.length-1]||null}(Fme(t),i,o,n)}(e);if(!r)return t();qfe(r),ige(r)}}function kge(e){if(e){var t=function(e){if(!e)return null;var t=Vme(e),r=Wme(t),n=bme(t,e),i=wme(t,e),o=vme(t,e);if(!function(e,t){if(!e||!t)return!1;var r=t.getBoundingClientRect().height,n=t.getBoundingClientRect().top,i=e.getBoundingClientRect().top,o=e.getBoundingClientRect().height;return Math.round(n-i+r)i-o&&(n=Tge.Down,i+=l+o)}return i-o}}(n),a=s.getTop,u=s.getMenuDirection,l=ape(),c=function(e){var t=spe();return function(){var r={};if(!e.current)return r;if(t.current){var n=xme(t.current),i=function(e){var t=xme(e),r=Wme(t);return Lme(t)+Lme(r)}(n);if(!n)return r;r.left=i+(null==n?void 0:n.clientWidth)/2}return r}}(n),h=eme(),d=xme(r.current),f=i&&d&&Tpe(i)&&d.classList.contains(Hfe.emojiHasVariations);return(0,w.useEffect)((function(){f&&Age(n.current)}),[n,f,r]),!f&&r.current?l(null):(e=a(),t=c()),(0,w.createElement)("div",{ref:n,className:(0,Gfe.default)(Hfe.variationPicker,{visible:f,"pointing-up":u()===Tge.Down}),style:{top:e}},f&&i?[Mpe(i)].concat(kpe(i)).slice(0,6).map((function(e){return(0,w.createElement)(mge,{key:e,emoji:i,unified:e,emojiStyle:o,showVariations:!1,getEmojiUrl:h})})):null,(0,w.createElement)("div",{className:"epr-emoji-pointer",style:t}))}pge(".EmojiPickerReact .epr-emoji-variation-picker{align-items:center;background:var(--epr-emoji-variation-picker-bg-color);border:1px solid var(--epr-picker-border-color);border-radius:3px;box-shadow:0 2px 5px rgba(0,0,0,.2);display:flex;height:0;height:var(--epr-emoji-variation-picker-height);justify-content:space-around;left:15px;opacity:0;padding:5px;pointer-events:none;position:absolute;right:15px;top:0;top:-100%;transform:scale(.9);transition:transform .1s ease-out,opacity .2s ease-out;visibility:hidden;z-index:var(--epr-skin-variation-picker-z-index)}.EmojiPickerReact .epr-emoji-variation-picker.pointing-up{transform:scale(.9);transform-origin:center 0}.EmojiPickerReact .epr-emoji-variation-picker.visible{opacity:1;pointer-events:all;transform:scale(1);visibility:visible}.EmojiPickerReact .epr-emoji-variation-picker .EmojiPickerReact .epr-emoji-variation-picker button.epr-emoji:hover{background:none}.EmojiPickerReact .epr-emoji-variation-picker .epr-emoji-pointer{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='15' xml:space='preserve'%3E%3Cg stroke-miterlimit='10'%3E%3Cpath fill='%23FFF' stroke='%23E8E7E7' d='m1.86-.43 9.83 11.53c.59.69 1.56.69 2.14 0L23.66-.43'/%3E%3Cpath fill='%23010202' stroke='%23151617' d='m26.86-.43 9.83 11.53c.59.69 1.56.69 2.14 0L48.66-.43'/%3E%3C/g%3E%3C/svg%3E\");background-position:0 0;background-repeat:no-repeat;background-size:50px 15px;content:\"\";height:15px;position:absolute;top:-10px;width:25px}.EmojiPickerReact.epr-dark-theme .epr-emoji-variation-picker .epr-emoji-pointer{background-position:-25px 0}.EmojiPickerReact .epr-emoji-variation-picker .epr-emoji-pointer{top:100%;transform:translateX(-18px)}.EmojiPickerReact .epr-emoji-variation-picker.pointing-up .epr-emoji-pointer{top:0;transform:rotate(180deg) translateY(100%) translateX(18px)}"),function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(Tge||(Tge={}));function Ige(){var e=upe();return function(e){var t=Zme();(0,w.useEffect)((function(){var r=e.current;if(r)return r.addEventListener("scroll",n,{passive:!0}),function(){null==r||r.removeEventListener("scroll",n)};function n(){t()}}),[e,t])}(e),tge(e),function(){var e=upe(),t=gme(),r=yme();(0,w.useEffect)((function(){var n=e.current;function i(){r()&&t()}return null==n||n.addEventListener("mousemove",i,{passive:!0}),function(){null==n||n.removeEventListener("mousemove",i)}}),[e,t,r])}(),(0,w.createElement)("div",{className:Hfe.scrollBody,ref:e},(0,w.createElement)(Cge,null),(0,w.createElement)(_ge,null))}function Nge(){return Xpe()===rpe.SEARCH}function Rge(){return Xpe()===rpe.PREVIEW}pge(".EmojiPickerReact .epr-body{flex:1;overflow-x:hidden;overflow-y:scroll;position:relative}");var Pge;function Dge(e){var t=e.children,r=e.className,n=e.style,i=void 0===n?{}:n,o=e.direction,s=void 0===o?Pge.ROW:o;return(0,w.createElement)("div",{style:dpe({},i),className:(0,Gfe.default)("Flex",r,s)},t)}function Lge(e){var t=e.className,r=e.style,n=void 0===r?{}:r;return(0,w.createElement)("div",{style:dpe({flex:1},n),className:(0,Gfe.default)(t)})}pge(".EmojiPickerReact .Flex{display:flex}.EmojiPickerReact .Flex.FlexRow{flex-direction:row}.EmojiPickerReact .Flex.FlexColumn{flex-direction:column}"),function(e){e.ROW="FlexRow",e.COLUMN="FlexColumn"}(Pge||(Pge={}));function Oge(e){var t=e.children,r=e.className,n=e.style;return(0,w.createElement)("div",{style:dpe({},n,{position:"absolute"}),className:r},t)}function jge(e){var t=e.children,r=e.className,n=e.style;return(0,w.createElement)("div",{style:dpe({},n,{position:"relative"}),className:r},t)}pge(".EmojiPickerReact .epr-preview{align-items:center;border-top:1px solid var(--epr-preview-border-color);height:var(--epr-preview-height);padding:0 var(--epr-horizontal-padding);position:relative;z-index:1;z-index:var(--epr-preview-z-index)}.EmojiPickerReact .epr-preview .epr-preview-emoji-label{color:var(--epr-preview-text-color);font-size:var(--epr-preview-text-size);padding:var(--epr-preview-text-padding);text-transform:capitalize}");pge('.EmojiPickerReact .epr-skin-tones{--epr-skin-tone-size:15px;align-items:center;display:flex;justify-content:flex-end;padding:10px 0;transition:all .3s ease-in-out}.EmojiPickerReact .epr-skin-tones.epr-vertical{align-items:flex-end;border:1px solid var(--epr-bg-color);border-radius:6px;flex-direction:column;padding:5px}.EmojiPickerReact .epr-skin-tones.epr-vertical.epr-open{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:var(--epr-skin-tone-picker-menu-color);border:1px solid var(--epr-picker-border-color)}.EmojiPickerReact .epr-skin-tone-select{height:var(--epr-skin-tone-size);position:relative;width:var(--epr-skin-tone-size)}.EmojiPickerReact .epr-skin-tones.epr-open .epr-tone{transition:transform .3s ease-in-out,opacity .3s ease-in-out}.EmojiPickerReact .epr-skin-tones:not(.epr-open) .epr-tone{opacity:0;z-index:0}.EmojiPickerReact .epr-skin-tones .epr-tone{border-radius:4px;box-shadow:0 0 0 0 var(--epr-active-skin-hover-color);cursor:pointer;display:block;height:var(--epr-skin-tone-size);position:absolute;right:0;transition:transform .3s ease-in-out,opacity .5s ease-in-out;width:var(--epr-skin-tone-size);z-index:1}.EmojiPickerReact .epr-skin-tones .epr-tone:hover{box-shadow:0 0 0 3px var(--epr-active-skin-hover-color)}.EmojiPickerReact .epr-skin-tones .epr-tone:focus{box-shadow:0 0 0 3px var(--epr-focus-bg-color)}.EmojiPickerReact .epr-skin-tones.epr-open .epr-skin-tone-select .epr-tone.epr-active:after{border:1px solid var(--epr-active-skin-tone-indicator-border-color);border-radius:5px;bottom:-2px;content:"";left:-2px;position:absolute;right:-2px;top:-2px}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-active{opacity:1;z-index:1}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-neutral{background-color:#ffd225}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fb{background-color:#ffdfbd}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fc{background-color:#e9c197}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fd{background-color:#c88e62}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3fe{background-color:#a86637}.EmojiPickerReact .epr-skin-tones .epr-tone.epr-tone-1f3ff{background-color:#60463a}');var Bge;function Uge(){return(0,w.createElement)(jge,{style:{height:28}},(0,w.createElement)(Oge,{style:{bottom:0,right:0}},(0,w.createElement)(Fge,{direction:Bge.VERTICAL})))}function Fge(e){var t,r=e.direction,n=void 0===r?Bge.HORIZONTAL:r,i=cpe(),o=Wpe(),s=pme(),a=s[0],u=s[1],l=hme(),c=l[0],h=l[1],d=Zme(),f=oge();if(o)return null;var p=28*vpe.length+"px",m=a?p:"28px",g=n===Bge.VERTICAL;return(0,w.createElement)(jge,{className:(0,Gfe.default)("epr-skin-tones",n,(t={},t[Hfe.open]=a,t)),style:g?{flexBasis:m,height:m}:{flexBasis:m}},(0,w.createElement)("div",{className:"epr-skin-tone-select",ref:i},vpe.map((function(e,t){var r,n=e===c;return(0,w.createElement)(fge,{style:{transform:(0,Gfe.default)(g?"translateY(-"+t*(a?28:0)+"px)":"translateX(-"+t*(a?28:0)+"px)",a&&n&&"scale(1.3)")},onClick:function(){a?(h(e),f()):u(!0),d()},key:e,className:(0,Gfe.default)("epr-tone-"+e,"epr-tone",(r={},r[Hfe.active]=n,r)),tabIndex:a?0:-1,"aria-pressed":n,"aria-label":"Skin tone "+bpe[e]})}))))}function zge(){var e=Qpe(),t=Rge();return e.showPreview?(0,w.createElement)(Dge,{className:"epr-preview"},(0,w.createElement)(Hge,null),(0,w.createElement)(Lge,null),t?(0,w.createElement)(Uge,null):null):null}function Hge(){var e=Qpe(),t=(0,w.useState)(null),r=t[0],n=t[1],i=Vpe(),o=fme()[0],s=eme();!function(e,t){var r=upe(),n=yme(),i=gme();(0,w.useEffect)((function(){if(e){var i=r.current;return null==i||i.addEventListener("keydown",a,{passive:!0}),null==i||i.addEventListener("mouseover",u,!0),null==i||i.addEventListener("focus",o,!0),null==i||i.addEventListener("mouseout",s,{passive:!0}),null==i||i.addEventListener("blur",s,!0),function(){null==i||i.removeEventListener("mouseover",u),null==i||i.removeEventListener("mouseout",s),null==i||i.removeEventListener("focus",o,!0),null==i||i.removeEventListener("blur",s,!0),null==i||i.removeEventListener("keydown",a)}}function o(e){var r=xme(e.target);if(!r)return s();var n=Ome(r),i=jme(r);if(!n||!i)return s();t({unified:n,originalUnified:i})}function s(e){if(e&&!xme(e.relatedTarget))return t(null);t(null)}function a(e){"Escape"===e.key&&t(null)}function u(e){if(!n()){var t=xme(e.target);t&&qfe(t)}}}),[r,e,t,n,i])}(e.showPreview,n);var a=Cpe(null==r?void 0:r.originalUnified),u=null!=a&&null!=r;return(0,w.createElement)((function(){var t=null!=o?o:Cpe(e.defaultEmoji);if(!t)return null;var n=o?Epe(o):e.defaultCaption;return(0,w.createElement)(w.Fragment,null,(0,w.createElement)("div",null,u?(0,w.createElement)(gge,{unified:null==r?void 0:r.unified,emoji:a,emojiStyle:i,size:45,getEmojiUrl:s}):t?(0,w.createElement)(gge,{unified:Mpe(t),emoji:t,emojiStyle:i,size:45,getEmojiUrl:s}):null),u?(0,w.createElement)("div",{className:"epr-preview-emoji-label"},Epe(a)):(0,w.createElement)("div",{className:"epr-preview-emoji-label"},n))}),null)}!function(e){e.VERTICAL="epr-vertical",e.HORIZONTAL="epr-horizontal"}(Bge||(Bge={}));function Gge(){return!!cme()[0]}function Yge(){var e,t,r=(0,w.useState)(null),n=r[0],i=r[1],o=(e=upe(),t=ope(),function(r){var n;if(e.current){var i=null==(n=e.current)?void 0:n.querySelector('[data-name="'+r+'"]');if(i){var o=i.offsetTop||0;nge(t.current,o)}}});!function(e){var t=upe();(0,w.useEffect)((function(){var r=new Map,n=t.current,i=new IntersectionObserver((function(t){if(n){for(var i,o=mpe(t);!(i=o()).done;){var s=i.value,a=(l=void 0,null!=(l=null==(u=s.target)?void 0:u.getAttribute("data-name"))?l:null);r.set(a,s.intersectionRatio)}var u,l,c=Array.from(r),h=c[c.length-1];if(1==h[1])return e(h[0]);for(var d=0,f=c;dbutton.epr-cat-btn{background-size:calc(var(--epr-category-navigation-button-size)*10);display:inline-block;height:var(--epr-category-navigation-button-size);outline:none;position:relative;transition:opacity .2s ease-in-out;width:var(--epr-category-navigation-button-size)}.EmojiPickerReact .epr-category-nav>button.epr-cat-btn:focus:before{border:2px solid var(--epr-category-icon-active-color);border-radius:50%;bottom:-2px;content:\"\";left:-2px;position:absolute;right:-2px;top:-2px}aside.EmojiPickerReact.epr-main:has(input:not(:-moz-placeholder-shown)) .epr-category-nav{cursor:default;opacity:.3;pointer-events:none}aside.EmojiPickerReact.epr-main:has(input:not(:placeholder-shown)) .epr-category-nav{cursor:default;opacity:.3;pointer-events:none}.EmojiPickerReact.epr-search-active .epr-category-nav{cursor:default;opacity:.3;pointer-events:none}aside.EmojiPickerReact.epr-main:has(input:not(:-moz-placeholder-shown)) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:var(--epr-category-navigation-button-size);opacity:1}aside.EmojiPickerReact.epr-main:has(input:not(:placeholder-shown)) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:var(--epr-category-navigation-button-size);opacity:1}.EmojiPickerReact:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn.epr-active,.EmojiPickerReact:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:var(--epr-category-navigation-button-size);opacity:1}.EmojiPickerReact .epr-category-nav>button.epr-cat-btn{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='80' xml:space='preserve'%3E%3Cg fill='%233371B7' stroke='%233371B7' stroke-width='.1' stroke-miterlimit='10'%3E%3Cpath d='M12.8 29.5c.6 0 1.1-.5 1.1-1.1 0-.6-.5-1.2-1.1-1.2-.6 0-1.2.5-1.2 1.2 0 .6.6 1.1 1.2 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4z'/%3E%3Cpath d='M10 23c-3.8 0-7 3.1-7 7 0 3.8 3.1 7 7 7s7-3.1 7-7c0-3.8-3.2-7-7-7zm0 13.2c-3.4 0-6.2-2.8-6.2-6.2 0-3.4 2.8-6.2 6.2-6.2s6.2 2.8 6.2 6.2c0 3.4-2.8 6.2-6.2 6.2z'/%3E%3Cpath d='M14.6 31.2c-.1-.1-.2-.2-.3-.2H5.7c-.1 0-.2.1-.3.2-.1.1-.1.2 0 .4.7 2 2.5 3.3 4.6 3.3s3.9-1.3 4.6-3.3c.1-.1.1-.3 0-.4zM10 34.1c-1.6 0-3-.9-3.7-2.2h7.3c-.6 1.3-2 2.2-3.6 2.2zm-2.8-4.6c.6 0 1.2-.5 1.2-1.1 0-.6-.5-1.2-1.2-1.2-.6 0-1.1.5-1.1 1.2 0 .6.5 1.1 1.1 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%233371B7' d='M64.1 33.4h2.3c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.3c-.2 0-.4-.2-.4-.4v-2.1c0-.2.1-.4.4-.4zm9.4.1h2.4c.2 0 .4.2.4.4v2c0 .2-.2.4-.4.4h-2.4c-.2 0-.4-.2-.4-.4v-2c0-.3.2-.4.4-.4zm-9.8-5.1h12.6v5H63.7v-5z'/%3E%3Cpath fill='none' stroke='%233371B7' d='M65.5 23.6h8.9c1 0 1.9.8 1.9 1.9v3.1H63.7v-3.1c0-1 .8-1.9 1.8-1.9z'/%3E%3Cellipse fill='%233371B7' cx='66.2' cy='30.9' rx='.9' ry='1'/%3E%3Cellipse fill='%233371B7' cx='73.8' cy='30.9' rx='.9' ry='1'/%3E%3Cg fill='none' stroke='%233371B7'%3E%3Cpath d='M96.4 30c0 3.6-2.9 6.5-6.4 6.5s-6.4-2.9-6.4-6.5 2.9-6.5 6.4-6.5 6.4 2.9 6.4 6.5z'/%3E%3Cpath d='M96.3 28.6v.1c-.9.1-2.9.1-4.6-1.1-1.1-.8-2-1.7-2.6-2.5-.3-.4-.6-.8-.7-1-.1-.1-.1-.1-.1-.2.5-.1 1.2-.2 2-.1 1.2 0 2.5.3 3.5 1.1s1.7 1.8 2.1 2.8c.2.2.3.6.4.9zM84 32.2v-.1c.9-.2 2.9-.4 4.7.6 1.1.7 1.9 1.5 2.4 2.3.4.5.6 1 .7 1.3-.4.1-1 .2-1.7.3-1 0-2.1-.1-3.2-.8s-1.9-1.6-2.4-2.5c-.3-.5-.4-.8-.5-1.1z'/%3E%3C/g%3E%3Cg fill='none' stroke='%233371B7'%3E%3Cpath stroke-linecap='round' d='m116.3 26.8-1.4 2-.8-.8-.6-.6v.9l-.1 8.2h-6.8l-.1-8.2v-.9l-.6.6-.8.8-1.4-2 2.6-2.9c.1-.1.2-.1.3-.1h1.3l.4.7c.7 1.3 2.6 1.3 3.3-.1l.3-.6h1.2c.1 0 .2 0 .3.1l.3-.3-.3.3 2.9 2.9z'/%3E%3Cpath d='M110.1 27.7h2v.9c0 .4-.4.7-1 .7s-1-.3-1-.7v-.9z'/%3E%3C/g%3E%3Cpath d='M126.8 34.3c0 1.2-1 2.2-2.2 2.2s-2.2-1-2.2-2.2 1-2.2 2.2-2.2 2.2 1 2.2 2.2zm10.8 0c0 1.2-1 2.2-2.2 2.2-1.2 0-2.2-1-2.2-2.2s1-2.2 2.2-2.2c1.2 0 2.2 1 2.2 2.2zm-10.8-9.9v9.9m10.9-9.9v9.9m-10.9-10.8h10.8v2.7h-10.8v-2.7z' fill='none' stroke='%233371B7'/%3E%3Cg fill='%233371B7'%3E%3Cpath d='M170.8 23.1h-.8c-2.1 0-4 1-5.3 2.5h-.1l-.1-.1-1-1.2-.3 3.4 3.4.3-1.1-1.3-.1-.1.1-.1c1.1-1.5 3-2.3 5-2.1 3.2.3 5.5 3.1 5.2 6.3-.3 3-3.1 5.3-6.1 5.1-3.1-.2-5.4-2.9-5.3-6l-1.3-.1c-.2 3.8 2.6 7.1 6.3 7.4 3.9.3 7.3-2.6 7.6-6.5.3-3.8-2.5-7.1-6.1-7.5z'/%3E%3Cpath d='M170.3 27.4c0-.3-.3-.6-.6-.6s-.6.3-.6.6v3.2c0 .2.1.3.2.4.1.1.3.2.4.2h2.4c.4 0 .6-.3.6-.6 0-.4-.3-.6-.6-.6h-1.8v-2.6z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%233371B7' d='M186.2 23.4h7.7c1.5 0 2.7 1.2 2.7 2.7v7.7c0 1.5-1.2 2.7-2.7 2.7h-7.7c-1.5 0-2.7-1.2-2.7-2.7v-7.7c-.1-1.5 1.2-2.7 2.7-2.7z'/%3E%3Ccircle fill='%233371B7' cx='186' cy='28.9' r='.7'/%3E%3Ccircle fill='%233371B7' cx='194' cy='26.7' r='.7'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='m186 33.3.4-.3c.4-.3 1-.3 1.5-.1l1 .4c.5.2 1 .2 1.5-.1l.8-.5c.4-.3 1-.3 1.5-.1l1.8.8'/%3E%3Cpath fill='%233371B7' stroke='%233371B7' stroke-width='.25' stroke-miterlimit='10' d='M156 24.3c-.2-.1-.4-.1-.5 0 0 0-.2.1-.9.2-.7 0-2.4-.1-3.8-.6-.8-.3-1.7-.5-2.5-.5h-.5c-1.3 0-2.5.3-3.6 1-.2.1-.2.2-.2.4v11.6c0 .3.1.5.3.5.6 0 .5-.4.5-.6v-5.7c.7-.3 3.2-1.1 5.8-.1 1.6.6 3.5.7 4.3.7.8 0 1.3-.3 1.3-.3.2-.1.3-.2.3-.4v-5.7c-.3-.2-.4-.4-.5-.5zm-.4 5.9c-.1 0-.7.1-1 .1-.7 0-2.4-.1-3.8-.6-2.5-1-5-.5-6.2-.1v-4.9c.9-.5 2.2-.7 3.2-.7h.4c.7 0 1.5.2 2.2.4 1.6.6 3.5.7 4.3.7.2 0 .8 0 1-.1v5.2z'/%3E%3Cpath fill='none' stroke='%233371B7' d='M48.1 23.5h3.7c2.5 0 4.5 2 4.5 4.5 0 .5-.4.9-.9.9H44.5c-.5 0-.9-.4-.9-.9 0-2.5 2-4.5 4.5-4.5z'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='M43.5 28.8c-.2.1-.5 1.2 0 1.5 1.4 1 8.5.8 11.3.6.8-.1 1.6-.4 1.7-1.2 0-.3-.1-.6-.6-.9'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='m43.5 30.6-.2.4c-.2.5.2 1 .7.9.3-.1.5 0 .7.3l.1.2c.3.5 1 .6 1.5.2h0c.3-.2.7-.3 1-.2l.8.3c.4.2.8.1 1.2 0l.5-.2c.4-.2.9-.2 1.3 0l.5.2c.4.2.8.2 1.2 0l.2-.1c.3-.2.8-.2 1.1.1l.2.2c.3.3.8.2 1-.2l.1-.2c.1-.2 0-.3.2-.3.5 0 1.2-.3 1.1-.7l-.4-1.1'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='M43.5 32.2c-.1.2-.3.8 0 1.1.3.4 3 1.1 6.4 1.1 2.2 0 4.6-.3 6-.6.5-.1.9-.5.8-.9 0-.2-.2-.5-.4-.7'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='M43.5 33.3c0 .5.6 2.3 1.3 2.7 1.8.8 5.7.7 8.1.5 1.3-.1 2.5-.7 3.2-1.8.3-.5.5-1 .5-1.4'/%3E%3Cellipse fill='%233371B7' cx='51.6' cy='26.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%233371B7' cx='53' cy='25' rx='.3' ry='.4'/%3E%3Cellipse fill='%233371B7' cx='53' cy='27.2' rx='.3' ry='.4'/%3E%3Cellipse fill='%233371B7' cx='54.3' cy='26.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%233371B7' cx='50.9' cy='25' rx='.3' ry='.4'/%3E%3Cpath fill='none' stroke='%233371B7' d='M24.2 31v-7.6c.1.1.8.9 2.8 3.1 2.5-1.6 5.6-.7 6.9 0l2.4-3.1v7.1c0 1.2-.1 2.5-.9 3.4-1 1.2-2.7 2.5-5.3 2.5-2.9 0-4.5-1.5-5.3-2.9-.6-.6-.6-1.5-.6-2.5z'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='m21.2 30 5.4 1.2m-5.4 2.9 5.4-1.2M38.8 30l-5.4 1.2m5.4 2.9-5.4-1.2'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%233371B7' d='m29.5 32.4-.5-.7c-.2-.3 0-.6.3-.6h1.4c.3 0 .5.4.3.6l-.7 1c-.7 1.2-2.6 1.1-3.1-.3l-.1-.2c-.1-.2 0-.4.2-.5s.4 0 .5.2l.1.2c.4.7 1.2.8 1.6.3z'/%3E%3Cpath fill='none' stroke='%233371B7' stroke-linecap='round' d='m32.4 32.1-.1.2c-.4 1-1.8 1.1-2.3.2'/%3E%3Ccircle fill='%233371B7' cx='27.6' cy='29.7' r='.7'/%3E%3Ccircle fill='%233371B7' cx='32.4' cy='29.7' r='.7'/%3E%3Cg fill='%23C0C0BF' stroke='%23C0C0BF' stroke-width='.1' stroke-miterlimit='10'%3E%3Cpath d='M12.8 49.5c.6 0 1.1-.5 1.1-1.1 0-.6-.5-1.2-1.1-1.2-.6 0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1.1-1.3-.1-.1.1-.1c1.1-1.5 3-2.3 5-2.1 3.2.3 5.5 3.1 5.2 6.3-.3 3-3.1 5.3-6.1 5.1-3.1-.2-5.4-2.9-5.3-6l-1.3-.1c-.2 3.8 2.6 7.1 6.3 7.4 3.9.3 7.3-2.6 7.6-6.5.3-3.8-2.5-7.1-6.1-7.5z'/%3E%3Cpath d='M170.3 47.4c0-.3-.3-.6-.6-.6s-.6.3-.6.6v3.2c0 .2.1.3.2.4.1.1.3.2.4.2h2.4c.4 0 .6-.3.6-.6s-.3-.6-.6-.6h-1.8v-2.6z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M186.2 43.4h7.7c1.5 0 2.7 1.2 2.7 2.7v7.7c0 1.5-1.2 2.7-2.7 2.7h-7.7c-1.5 0-2.7-1.2-2.7-2.7v-7.7c-.1-1.4 1.2-2.7 2.7-2.7z'/%3E%3Ccircle fill='%23C0C0BF' cx='186' cy='48.9' r='.7'/%3E%3Ccircle fill='%23C0C0BF' cx='194' cy='46.7' r='.7'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='m186 53.3.4-.3c.4-.3 1-.3 1.5-.1l1 .4c.5.2 1 .2 1.5-.1l.8-.5c.4-.3 1-.3 1.5-.1l1.8.8'/%3E%3Cpath fill='%23C0C0BF' stroke='%23C0C0BF' stroke-width='.25' stroke-miterlimit='10' d='M156 44.3c-.2-.1-.4-.1-.5 0 0 0-.2.1-.9.2-.7 0-2.4-.1-3.8-.6-.8-.3-1.7-.5-2.5-.5h-.5c-1.3 0-2.5.3-3.6 1-.2.1-.2.2-.2.4v11.6c0 .3.1.5.3.5.6 0 .5-.4.5-.6v-5.7c.7-.3 3.2-1.1 5.8-.1 1.6.6 3.5.7 4.3.7.8 0 1.3-.3 1.3-.3.2-.1.3-.2.3-.4v-5.7c-.3-.2-.4-.4-.5-.5zm-.4 5.9c-.1 0-.7.1-1 .1-.7 0-2.4-.1-3.8-.6-2.5-1-5-.5-6.2-.1v-4.9c.9-.5 2.2-.7 3.2-.7h.4c.7 0 1.5.2 2.2.4 1.6.6 3.5.7 4.3.7.2 0 .8 0 1-.1v5.2z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M48.1 43.5h3.7c2.5 0 4.5 2 4.5 4.5 0 .5-.4.9-.9.9H44.5c-.5 0-.9-.4-.9-.9 0-2.5 2-4.5 4.5-4.5z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='M43.5 48.8c-.2.1-.5 1.2 0 1.5 1.4 1 8.5.8 11.3.6.8-.1 1.6-.4 1.7-1.2 0-.3-.1-.6-.6-.9'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='m43.5 50.6-.2.4c-.2.5.2 1 .7.9.3-.1.5 0 .7.3l.1.2c.3.5 1 .6 1.5.2h0c.3-.2.7-.3 1-.2l.8.3c.4.2.8.1 1.2 0l.5-.2c.4-.2.9-.2 1.3 0l.5.2c.4.2.8.2 1.2 0l.2-.1c.3-.2.8-.2 1.1.1l.2.2c.3.3.8.2 1-.2l.1-.2c.1-.2 0-.3.2-.3.5 0 1.2-.3 1.1-.7l-.4-1.1'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='M43.5 52.2c-.1.2-.3.8 0 1.1.3.4 3 1.1 6.4 1.1 2.2 0 4.6-.3 6-.6.5-.1.9-.5.8-.9 0-.2-.2-.5-.4-.7'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='M43.5 53.3c0 .5.6 2.3 1.3 2.7 1.8.8 5.7.7 8.1.5 1.3-.1 2.5-.7 3.2-1.8.3-.5.5-1 .5-1.4'/%3E%3Cellipse fill='%23C0C0BF' cx='51.6' cy='46.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%23C0C0BF' cx='53' cy='45' rx='.3' ry='.4'/%3E%3Cellipse fill='%23C0C0BF' cx='53' cy='47.2' rx='.3' ry='.4'/%3E%3Cellipse fill='%23C0C0BF' cx='54.3' cy='46.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%23C0C0BF' cx='50.9' cy='45' rx='.3' ry='.4'/%3E%3Cpath fill='none' stroke='%23C0C0BF' d='M24.2 51v-7.6c.1.1.8.9 2.8 3.1 2.5-1.7 5.6-.7 6.9 0l2.4-3.1v7.1c0 1.2-.1 2.5-.9 3.4-1 1.2-2.7 2.5-5.3 2.5-2.9 0-4.5-1.5-5.3-2.9-.6-.6-.6-1.5-.6-2.5z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='m21.2 50 5.4 1.2m-5.4 2.9 5.4-1.2M38.8 50l-5.4 1.2m5.4 2.9-5.4-1.2'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23C0C0BF' d='m29.5 52.4-.5-.7c-.2-.3 0-.6.3-.6h1.4c.3 0 .5.4.3.6l-.7 1c-.7 1.2-2.6 1.1-3.1-.3l-.1-.2c-.1-.2 0-.4.2-.5s.4 0 .5.2l.1.2c.4.7 1.2.8 1.6.3z'/%3E%3Cpath fill='none' stroke='%23C0C0BF' stroke-linecap='round' d='m32.4 52.1-.1.2c-.4 1-1.8 1.1-2.3.2'/%3E%3Ccircle fill='%23C0C0BF' cx='27.6' cy='49.7' r='.7'/%3E%3Ccircle fill='%23C0C0BF' cx='32.4' cy='49.7' r='.7'/%3E%3Cg fill='%236AA9DD' stroke='%236AA9DD' stroke-width='.1' stroke-miterlimit='10'%3E%3Cpath d='M14.6 71.2c-.1-.1-.2-.2-.3-.2H5.7c-.1 0-.2.1-.3.2-.1.1-.1.2 0 .4.7 2 2.5 3.3 4.6 3.3s3.9-1.3 4.6-3.3c.1-.1.1-.3 0-.4zM10 74.1c-1.6 0-3-.9-3.7-2.2h7.3c-.6 1.3-2 2.2-3.6 2.2zm2.8-4.6c.6 0 1.1-.5 1.1-1.1 0-.6-.5-1.2-1.1-1.2-.6 0-1.2.5-1.2 1.2 0 .6.6 1.1 1.2 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4zm-5.6 1.5c.6 0 1.2-.5 1.2-1.1 0-.6-.5-1.2-1.2-1.2-.6 0-1.1.5-1.1 1.2 0 .6.5 1.1 1.1 1.1zm0-1.5c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4c0-.3.2-.4.4-.4z'/%3E%3Cpath d='M10 63c-3.8 0-7 3.1-7 7 0 3.8 3.1 7 7 7s7-3.1 7-7c0-3.8-3.2-7-7-7zm0 13.2c-3.4 0-6.2-2.8-6.2-6.2 0-3.4 2.8-6.2 6.2-6.2s6.2 2.8 6.2 6.2c0 3.4-2.8 6.2-6.2 6.2z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%236AA9DD' d='M64.1 73.4h2.3c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.3c-.2 0-.4-.2-.4-.4v-2.1c0-.2.1-.4.4-.4zm9.4.1h2.4c.2 0 .4.2.4.4V76c0 .2-.2.4-.4.4h-2.4c-.2 0-.4-.2-.4-.4v-2.1c0-.3.2-.4.4-.4zm-9.8-5.1h12.6v5H63.7v-5z'/%3E%3Cpath fill='none' stroke='%236AA9DD' d='M65.5 63.6h8.9c1 0 1.9.8 1.9 1.9v3.1H63.7v-3.1c0-1 .8-1.9 1.8-1.9z'/%3E%3Ccircle fill='%236AA9DD' cx='66.2' cy='70.9' r='.9'/%3E%3Ccircle fill='%236AA9DD' cx='73.8' cy='70.9' r='.9'/%3E%3Cg fill='none' stroke='%236AA9DD'%3E%3Cpath d='M96.4 70c0 3.6-2.9 6.5-6.4 6.5s-6.4-2.9-6.4-6.5 2.9-6.5 6.4-6.5 6.4 2.9 6.4 6.5z'/%3E%3Cpath d='M96.3 68.6v.1c-.9.1-2.9.1-4.6-1.2-1.1-.8-2-1.7-2.6-2.5-.3-.4-.6-.8-.7-1.1-.1-.1-.1-.2-.1-.2.5-.1 1.2-.2 2-.2 1.2 0 2.5.3 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6.6v3.2c0 .2.1.3.2.4.1.1.3.2.4.2h2.4c.4 0 .6-.3.6-.6s-.3-.6-.7-.6h-1.8v-.2l.1-2.4z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%236AA9DD' d='M186.2 63.4h7.7c1.5 0 2.7 1.2 2.7 2.7v7.7c0 1.5-1.2 2.7-2.7 2.7h-7.7c-1.5 0-2.7-1.2-2.7-2.7v-7.7c-.1-1.4 1.2-2.7 2.7-2.7z'/%3E%3Ccircle fill='%236AA9DD' cx='186' cy='68.9' r='.7'/%3E%3Ccircle fill='%236AA9DD' cx='194' cy='66.7' r='.7'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='m186 73.3.4-.3c.4-.3 1-.3 1.5-.1l1 .4c.5.2 1 .2 1.5-.1l.8-.5c.4-.3 1-.3 1.5-.1l1.8.8'/%3E%3Cpath fill='%236AA9DD' stroke='%236AA9DD' stroke-width='.25' stroke-miterlimit='10' d='M156 64.3c-.2-.1-.4-.1-.5 0 0 0-.2.1-.9.2-.7 0-2.4-.1-3.8-.6-.8-.3-1.7-.5-2.5-.5h-.5c-1.3 0-2.5.3-3.6 1-.2.1-.2.2-.2.4v11.6c0 .3.1.5.3.5.6 0 .5-.4.5-.6v-5.7c.7-.3 3.2-1.1 5.8-.1 1.6.6 3.5.7 4.3.7.8 0 1.3-.3 1.3-.3.2-.1.3-.2.3-.4v-5.7c-.3-.2-.4-.4-.5-.5zm-.4 5.9c-.1 0-.7.1-1 .1-.7 0-2.4-.1-3.8-.6-2.5-1-5-.5-6.2-.1v-4.9c.9-.5 2.2-.7 3.2-.7h.4c.7 0 1.5.2 2.2.4 1.6.6 3.5.7 4.3.7.2 0 .8 0 1-.1v5.2z'/%3E%3Cpath fill='none' stroke='%236AA9DD' d='M48.1 63.5h3.7c2.5 0 4.5 2 4.5 4.5 0 .5-.4.9-.9.9H44.5c-.5 0-.9-.4-.9-.9 0-2.5 2-4.5 4.5-4.5z'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='M43.5 68.8c-.2.1-.5 1.2 0 1.5 1.4.9 8.5.8 11.3.6.8-.1 1.6-.4 1.7-1.2 0-.3-.1-.6-.6-.9'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='m43.5 70.6-.2.4c-.2.5.2 1 .7.9.3-.1.5.1.7.3l.1.2c.3.5 1 .6 1.5.2h0c.3-.2.7-.3 1-.2l.8.3c.4.2.8.1 1.2 0l.5-.2c.4-.2.9-.2 1.3 0l.5.2c.4.2.8.2 1.2-.1l.2-.1c.3-.2.8-.2 1.1.1l.2.2c.3.3.8.2 1-.2l.1-.2c.1-.2 0-.3.2-.3.5 0 1.2-.3 1.1-.7l-.4-1.1'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='M43.5 72.2c-.1.2-.3.8 0 1.1.3.4 3 1.1 6.4 1.1 2.2 0 4.6-.3 6-.6.5-.1.9-.4.8-.9 0-.2-.2-.5-.4-.7'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='M43.5 73.3c0 .5.6 2.3 1.3 2.7 1.8.8 5.7.7 8.1.5 1.3-.1 2.5-.7 3.2-1.8.3-.5.5-1 .5-1.4'/%3E%3Cellipse fill='%236AA9DD' cx='51.6' cy='66.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%236AA9DD' cx='53' cy='65' rx='.3' ry='.4'/%3E%3Cellipse fill='%236AA9DD' cx='53' cy='67.2' rx='.3' ry='.4'/%3E%3Cellipse fill='%236AA9DD' cx='54.3' cy='66.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%236AA9DD' cx='50.9' cy='65' rx='.3' ry='.4'/%3E%3Cpath fill='none' stroke='%236AA9DD' d='M24.2 71v-7.6c.1.1.8.9 2.8 3.1 2.5-1.7 5.6-.7 6.9 0l2.4-3.1v7.1c0 1.2-.1 2.5-.9 3.4-1 1.2-2.7 2.5-5.3 2.5-2.9 0-4.5-1.5-5.3-2.9-.6-.6-.6-1.5-.6-2.5z'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='m21.2 70.1 5.4 1.2m-5.4 2.8 5.4-1.2m12.2-2.8-5.4 1.2m5.4 2.8-5.4-1.2'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%236AA9DD' d='m29.5 72.4-.5-.7c-.2-.3 0-.6.3-.6h1.4c.3 0 .5.4.3.6l-.7 1c-.7 1.2-2.6 1.1-3.1-.3l-.1-.2c-.1-.2 0-.4.2-.5.2-.1.4 0 .5.2l.1.2c.4.7 1.2.8 1.6.3z'/%3E%3Cpath fill='none' stroke='%236AA9DD' stroke-linecap='round' d='m32.4 72.1-.1.2c-.4 1-1.8 1.1-2.3.2'/%3E%3Ccircle fill='%236AA9DD' cx='27.6' cy='69.7' r='.7'/%3E%3Ccircle fill='%236AA9DD' cx='32.4' cy='69.7' r='.7'/%3E%3Cg fill='%23868686' stroke='%23868686' stroke-width='.1' stroke-miterlimit='10'%3E%3Cpath d='M12.8 9.5c.6 0 1.1-.5 1.1-1.2 0-.6-.5-1.1-1.1-1.1-.6 0-1.2.5-1.2 1.1s.6 1.2 1.2 1.2zm0-1.6c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4.2-.4.4-.4zM7.2 9.5c.6 0 1.2-.5 1.2-1.2 0-.6-.5-1.1-1.2-1.1-.6 0-1.1.5-1.1 1.1s.5 1.2 1.1 1.2zm0-1.6c.2 0 .4.2.4.4s-.2.4-.4.4-.4-.2-.4-.4.2-.4.4-.4zm7.4 3.3c-.1-.1-.2-.2-.3-.2H5.7c-.1 0-.2.1-.3.2-.1.1-.1.2 0 .4.7 2 2.5 3.3 4.6 3.3s3.9-1.3 4.6-3.3c.1-.2.1-.3 0-.4zM10 14.1c-1.6 0-3-.9-3.7-2.2h7.3c-.6 1.3-2 2.2-3.6 2.2z'/%3E%3Cpath d='M10 3c-3.8 0-7 3.1-7 7s3.1 7 7 7 7-3.1 7-7-3.2-7-7-7zm0 13.2c-3.4 0-6.2-2.8-6.2-6.2S6.6 3.8 10 3.8s6.2 2.8 6.2 6.2-2.8 6.2-6.2 6.2z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23868686' d='M64.1 13.4h2.3c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.3c-.2 0-.4-.2-.4-.4v-2.1c0-.2.1-.4.4-.4zm9.4 0h2.4c.2 0 .4.2.4.4v2.1c0 .2-.2.4-.4.4h-2.4c-.2 0-.4-.2-.4-.4v-2.1c0-.2.2-.4.4-.4zm-9.8-5h12.6v5H63.7v-5z'/%3E%3Cpath fill='none' stroke='%23868686' d='M65.5 3.6h8.9c1 0 1.9.8 1.9 1.9v3.1H63.7V5.5c0-1.1.8-1.9 1.8-1.9z'/%3E%3Ccircle fill='%23868686' cx='66.2' cy='10.9' r='.9'/%3E%3Ccircle fill='%23868686' cx='73.8' cy='10.9' r='.9'/%3E%3Cg fill='none' stroke='%23868686'%3E%3Cpath d='M96.4 10c0 3.6-2.9 6.5-6.4 6.5s-6.4-2.9-6.4-6.5 2.9-6.5 6.4-6.5 6.4 2.9 6.4 6.5z'/%3E%3Cpath d='M96.3 8.6v.1c-.9.1-2.9.1-4.6-1.2-1.1-.8-2-1.7-2.6-2.5-.3-.4-.6-.8-.7-1.1-.1-.1-.1-.2-.1-.2.5-.1 1.2-.2 2-.2 1.2 0 2.5.3 3.5 1.1s1.7 1.8 2.1 2.8c.2.5.3.9.4 1.2zM84 12.1V12c.9-.2 2.9-.4 4.7.6 1.1.6 1.9 1.5 2.4 2.3.4.5.6 1 .7 1.3-.4.1-1 .2-1.7.3-1 0-2.1-.1-3.2-.8-1.1-.6-1.9-1.6-2.4-2.5-.3-.4-.4-.8-.5-1.1z'/%3E%3C/g%3E%3Cg fill='none' stroke='%23868686'%3E%3Cpath stroke-linecap='round' d='m116.3 6.8-1.4 2-.8-.8-.6-.7v.9l-.1 8.2h-6.8l-.1-8.2v-.9l-.6.7-.8.8-1.4-2 2.6-2.9c.1-.1.2-.1.3-.1h1.3l.4.7c.7 1.3 2.6 1.3 3.3-.1l.3-.6h1.2c.1 0 .2 0 .3.1l.3-.3-.3.3 2.9 2.9z'/%3E%3Cpath d='M110.1 7.7h2v.9c0 .4-.4.7-1 .7s-1-.3-1-.7v-.9z'/%3E%3C/g%3E%3Cpath d='M126.8 14.3c0 1.2-1 2.2-2.2 2.2s-2.2-1-2.2-2.2 1-2.2 2.2-2.2 2.2 1 2.2 2.2zm10.8 0c0 1.2-1 2.2-2.2 2.2-1.2 0-2.2-1-2.2-2.2s1-2.2 2.2-2.2c1.2 0 2.2 1 2.2 2.2zm-10.8-9.9v9.9m10.9-9.9v9.9M126.8 3.5h10.8v2.7h-10.8V3.5z' fill='none' stroke='%23868686'/%3E%3Cg fill='%23868686'%3E%3Cpath d='M170.8 3.1h-.8c-2.1 0-4 1-5.3 2.5h-.1l-.1-.1-1-1.2-.3 3.4 3.4.3-1.1-1.3-.1-.1.1-.1c1.1-1.4 3-2.3 5-2.1 3.2.3 5.5 3.1 5.2 6.3-.3 3-3.1 5.3-6.1 5.1-3.1-.2-5.4-2.9-5.3-6l-1.3-.3c-.2 3.8 2.6 7.1 6.3 7.4 3.9.4 7.3-2.6 7.6-6.5.3-3.6-2.5-6.9-6.1-7.3z'/%3E%3Cpath d='M170.3 7.4c0-.3-.3-.6-.6-.6s-.7.3-.7.6v3.2c0 .2.1.3.2.4.1.1.3.2.4.2h2.4c.4 0 .6-.3.6-.6s-.3-.6-.6-.6h-1.8v-.2l.1-2.4z'/%3E%3C/g%3E%3Cpath fill='none' stroke='%23868686' d='M186.2 3.4h7.7c1.5 0 2.7 1.2 2.7 2.7v7.7c0 1.5-1.2 2.7-2.7 2.7h-7.7c-1.5 0-2.7-1.2-2.7-2.7V6.1c-.1-1.5 1.2-2.7 2.7-2.7z'/%3E%3Ccircle fill='%23868686' cx='186' cy='8.9' r='.7'/%3E%3Ccircle fill='%23868686' cx='194' cy='6.7' r='.7'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='m186 13.3.4-.3c.4-.3 1-.3 1.5-.1l1 .4c.5.2 1 .2 1.5-.1l.8-.5c.4-.3 1-.3 1.5-.1l1.8.8'/%3E%3Cpath fill='%23868686' stroke='%23868686' stroke-width='.25' stroke-miterlimit='10' d='M156 4.3c-.2-.1-.4-.1-.5 0 0 0-.2.1-.9.1s-2.4-.1-3.8-.6c-.8-.3-1.7-.5-2.5-.5h-.5c-1.3 0-2.5.3-3.6 1-.2.1-.2.2-.2.4v11.6c0 .3.1.5.3.5.6 0 .5-.4.5-.6v-5.7c.7-.3 3.2-1.1 5.8-.1 1.6.6 3.5.7 4.3.7.8 0 1.3-.3 1.3-.3.2-.1.3-.2.3-.4V4.7c-.3-.2-.4-.3-.5-.4zm-.4 5.9c-.1 0-.7.1-1 .1-.7 0-2.4-.1-3.8-.6-2.5-1-5-.5-6.2-.1V4.7c.9-.5 2.2-.7 3.2-.7h.4c.7 0 1.5.2 2.2.4 1.6.6 3.5.7 4.3.7.2 0 .8 0 1-.1v5.2z'/%3E%3Cpath fill='none' stroke='%23868686' d='M48.1 3.5h3.7c2.5 0 4.5 2 4.5 4.5 0 .5-.4.9-.9.9H44.5c-.5 0-.9-.4-.9-.9 0-2.5 2-4.5 4.5-4.5z'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='M43.5 8.7c-.2.1-.5 1.2 0 1.5 1.4.9 8.5.8 11.3.6.8-.1 1.6-.4 1.7-1.2 0-.3-.1-.6-.6-.9'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='m43.5 10.6-.2.4c-.2.5.2 1 .7.9.3-.1.5.1.7.3l.1.2c.3.5 1 .6 1.5.2h0c.3-.2.7-.3 1-.2l.8.3c.4.1.8.1 1.2 0l.5-.2c.4-.2.9-.2 1.3 0l.5.2c.4.2.8.1 1.2-.1l.2-.1c.3-.2.8-.1 1.1.1l.2.2c.3.3.8.2 1-.2l.1-.2c.1-.2 0-.3.2-.4.5 0 1.2-.3 1.1-.7l-.4-1.1'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='M43.5 12.1c-.1.2-.3.8 0 1.1.3.4 3 1.1 6.4 1.1 2.2 0 4.6-.3 6-.6.5-.1.9-.4.8-.9 0-.2-.2-.5-.4-.7'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='M43.5 13.3c0 .5.6 2.4 1.3 2.6 1.8.8 5.7.7 8.1.5 1.3-.1 2.5-.7 3.2-1.8.3-.5.5-1 .5-1.4'/%3E%3Cellipse fill='%23868686' cx='51.6' cy='6.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%23868686' cx='53' cy='4.9' rx='.3' ry='.4'/%3E%3Cellipse fill='%23868686' cx='53' cy='7.2' rx='.3' ry='.4'/%3E%3Cellipse fill='%23868686' cx='54.3' cy='6.5' rx='.3' ry='.4'/%3E%3Cellipse fill='%23868686' cx='50.9' cy='4.9' rx='.3' ry='.4'/%3E%3Cpath fill='none' stroke='%23868686' d='M24.2 11V3.5c.1.1.8.9 2.8 3.1 2.5-1.7 5.6-.7 6.9 0l2.4-3.1v7.1c0 1.2-.1 2.5-.9 3.4-1 1.2-2.7 2.5-5.3 2.5-2.9 0-4.5-1.5-5.3-2.9-.6-.7-.6-1.7-.6-2.6z'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='m21.2 10 5.4 1.2m-5.4 2.9 5.4-1.2M38.8 10l-5.4 1.2m5.4 2.9-5.4-1.2'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23868686' d='m29.5 12.4-.5-.7c-.2-.3 0-.6.3-.6h1.4c.3 0 .5.4.3.6l-.7 1c-.7 1.2-2.6 1.1-3.1-.3l-.1-.2c-.1-.2 0-.4.2-.5s.4 0 .5.2l.1.2c.4.6 1.2.8 1.6.3z'/%3E%3Cpath fill='none' stroke='%23868686' stroke-linecap='round' d='m32.4 12.1-.1.2c-.4 1-1.8 1.1-2.3.2'/%3E%3Ccircle fill='%23868686' cx='27.6' cy='9.7' r='.7'/%3E%3Ccircle fill='%23868686' cx='32.4' cy='9.7' r='.7'/%3E%3C/svg%3E\");background-position:0 0}.EmojiPickerReact.epr-dark-theme .epr-category-nav>button.epr-cat-btn{background-position-y:calc(var(--epr-category-navigation-button-size)*2)}aside.EmojiPickerReact.epr-main:has(input:-moz-placeholder-shown) .epr-category-nav{background-position-y:calc(var(--epr-category-navigation-button-size)*3)}aside.EmojiPickerReact.epr-main:has(input:placeholder-shown) .epr-category-nav{background-position-y:calc(var(--epr-category-navigation-button-size)*3)}.EmojiPickerReact.epr-dark-theme:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn.epr-active,.EmojiPickerReact.epr-dark-theme:not(.epr-search-active) .epr-category-nav>button.epr-cat-btn:hover{background-position-y:calc(var(--epr-category-navigation-button-size)*3)}.EmojiPickerReact button.epr-cat-btn.epr-icn-suggested{background-position-x:calc(var(--epr-category-navigation-button-size)*-8)}.EmojiPickerReact button.epr-cat-btn.epr-icn-activities{background-position-x:calc(var(--epr-category-navigation-button-size)*-4)}.EmojiPickerReact button.epr-cat-btn.epr-icn-animals_nature{background-position-x:calc(var(--epr-category-navigation-button-size)*-1)}.EmojiPickerReact button.epr-cat-btn.epr-icn-flags{background-position-x:calc(var(--epr-category-navigation-button-size)*-7)}.EmojiPickerReact button.epr-cat-btn.epr-icn-food_drink{background-position-x:calc(var(--epr-category-navigation-button-size)*-2)}.EmojiPickerReact button.epr-cat-btn.epr-icn-objects{background-position-x:calc(var(--epr-category-navigation-button-size)*-5)}.EmojiPickerReact button.epr-cat-btn.epr-icn-smileys_people{background-position-x:0}.EmojiPickerReact button.epr-cat-btn.epr-icn-symbols{background-position-x:calc(var(--epr-category-navigation-button-size)*-6)}.EmojiPickerReact button.epr-cat-btn.epr-icn-travel_places{background-position-x:calc(var(--epr-category-navigation-button-size)*-3)}");pge(".EmojiPickerReact .epr-header .epr-header-overlay{padding:var(--epr-header-padding);z-index:var(--epr-header-overlay-z-index)}");function Kge(){var e=Zpe(),t=Nge();return e?null:(0,w.createElement)(Dge,{className:"epr-header-overlay"},(0,w.createElement)(qge,null),t?(0,w.createElement)(Fge,null):null)}function qge(){var e=(0,w.useState)(0),t=e[0],r=e[1],n=Zme(),i=lpe(),o=age(),s=qpe().searchPlaceHolder,a=qpe().autoFocusSearch,u=uge().onChange,l=null==i?void 0:i.current,c=null==l?void 0:l.value;return(0,w.createElement)(jge,{className:"epr-search-container"},(0,w.createElement)($ge,{value:c}),(0,w.createElement)("input",{autoFocus:a,"aria-label":"Type to search for an emoji",onFocus:n,className:"epr-search",type:"text",placeholder:s,onChange:function(e){r(t+1),setTimeout((function(){var t,r;u(null!=(t=null==e||null==(r=e.target)?void 0:r.value)?t:c)}))},ref:i}),(0,w.createElement)("div",{className:"epr-icn-search"}),(0,w.createElement)(fge,{className:(0,Gfe.default)("epr-btn-clear-search","epr-visible-on-search-only"),onClick:o},(0,w.createElement)("div",{className:"epr-icn-clear-search"})))}pge(".EmojiPickerReact .epr-search-container{display:block;flex:1;min-width:0}.EmojiPickerReact .epr-search-container input.epr-search{background-color:var(--epr-search-input-bg-color);border:1px solid var(--epr-search-input-bg-color);border-radius:var(--epr-search-input-border-radius);color:var(--epr-search-input-text-color);height:var(--epr-search-input-height);outline:none;padding:var(--epr-search-input-padding);transition:all .2s ease-in-out;width:100%}.EmojiPickerReact .epr-search-container button.epr-btn-clear-search .epr-icn-clear-search{background-color:transparent;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='80' xml:space='preserve'%3E%3Cpath fill='%23868686' d='M6.98 13.59a.53.53 0 0 0 .74 0l2.42-2.42 2.43 2.43a.53.53 0 0 0 .74 0c.21-.21.21-.54 0-.75l-2.43-2.43L13.32 8c.21-.21.21-.54 0-.75a.525.525 0 0 0-.75 0l-2.42 2.42-2.41-2.4a.525.525 0 0 0-.75 0c-.21.21-.21.54 0 .75l2.41 2.41-2.42 2.42c-.21.2-.21.54 0 .74z'/%3E%3Cpath fill='%23868686' d='M10.15 18.43c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8zm0-14.94c3.83 0 6.94 3.11 6.94 6.94 0 3.83-3.11 6.94-6.94 6.94-3.83 0-6.94-3.11-6.94-6.94 0-3.83 3.12-6.94 6.94-6.94z'/%3E%3Cpath fill='%233371B7' d='M6.98 33.59a.53.53 0 0 0 .74 0l2.42-2.42 2.43 2.43a.53.53 0 0 0 .74 0c.21-.21.21-.54 0-.75l-2.43-2.43L13.32 28c.21-.21.21-.54 0-.75a.525.525 0 0 0-.75 0l-2.42 2.42-2.41-2.41a.525.525 0 0 0-.75 0c-.21.21-.21.54 0 .75l2.41 2.41-2.42 2.42c-.21.21-.21.55 0 .75z'/%3E%3Cpath fill='%233371B7' d='M10.15 38.43c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8zm0-14.94c3.83 0 6.94 3.11 6.94 6.94 0 3.83-3.11 6.94-6.94 6.94-3.83 0-6.94-3.11-6.94-6.94 0-3.83 3.12-6.94 6.94-6.94z'/%3E%3Cpath fill='%23C0C0BF' d='M6.98 53.59a.53.53 0 0 0 .74 0l2.42-2.42 2.43 2.43a.53.53 0 0 0 .74 0c.21-.21.21-.54 0-.75l-2.43-2.43L13.32 48c.21-.21.21-.54 0-.75a.525.525 0 0 0-.75 0l-2.42 2.42-2.41-2.41a.525.525 0 0 0-.75 0c-.21.21-.21.54 0 .75l2.41 2.41-2.42 2.42c-.21.21-.21.55 0 .75z'/%3E%3Cpath fill='%23C0C0BF' d='M10.15 58.43c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8zm0-14.94c3.83 0 6.94 3.11 6.94 6.94 0 3.83-3.11 6.94-6.94 6.94-3.83 0-6.94-3.11-6.94-6.94 0-3.83 3.12-6.94 6.94-6.94z'/%3E%3Cpath fill='%236AA9DD' d='M6.98 73.59a.53.53 0 0 0 .74 0l2.42-2.42 2.43 2.43a.53.53 0 0 0 .74 0c.21-.21.21-.54 0-.75l-2.43-2.43L13.32 68c.21-.21.21-.54 0-.75a.525.525 0 0 0-.75 0l-2.42 2.42-2.41-2.41a.525.525 0 0 0-.75 0c-.21.21-.21.54 0 .75l2.41 2.41-2.42 2.42c-.21.21-.21.55 0 .75z'/%3E%3Cpath fill='%236AA9DD' d='M10.15 78.43c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8zm0-14.94c3.83 0 6.94 3.11 6.94 6.94 0 3.83-3.11 6.94-6.94 6.94-3.83 0-6.94-3.11-6.94-6.94 0-3.83 3.12-6.94 6.94-6.94z'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-size:20px;height:20px;width:20px}.EmojiPickerReact .epr-search-container button.epr-btn-clear-search{align-items:center;border-radius:50%;display:flex;height:30px;justify-content:center;padding:0;position:absolute;right:var(--epr-search-bar-inner-padding);top:50%;transform:translateY(-50%);width:30px}.EmojiPickerReact .epr-search-container button.epr-btn-clear-search:focus .epr-icn-clear-search,.EmojiPickerReact .epr-search-container button.epr-btn-clear-search:hover .epr-icn-clear-search{background-position-y:-20px}.EmojiPickerReact .epr-search-container button.epr-btn-clear-search:focus,.EmojiPickerReact .epr-search-container button.epr-btn-clear-search:hover{background:var(--epr-hover-bg-color)}.EmojiPickerReact..epr-dark-theme .epr-search-container button.epr-btn-clear-search .epr-icn-clear-search{background-position-y:-40px}.EmojiPickerReact..epr-dark-theme .epr-search-container button.epr-btn-clear-search:hover .epr-icn-clear-search{background-position-y:-60px}.EmojiPickerReact .epr-search-container .epr-icn-search{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='40' xml:space='preserve'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23868686' d='M12 8.81c0 2.08-1.68 3.76-3.76 3.76s-3.76-1.68-3.76-3.76 1.68-3.76 3.76-3.76S12 6.73 12 8.81zm-.77 3.91c-.83.64-1.87 1.01-2.99 1.01-2.72 0-4.92-2.2-4.92-4.92 0-2.72 2.2-4.92 4.92-4.92 2.72 0 4.92 2.2 4.92 4.92 0 1.13-.38 2.16-1.01 2.99l3.94 3.93c.25.25.25.66 0 .92-.25.25-.66.25-.92 0l-3.94-3.93z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' fill='%23C0C0BF' d='M12 28.81c0 2.08-1.68 3.76-3.76 3.76s-3.76-1.68-3.76-3.76 1.68-3.76 3.76-3.76S12 26.73 12 28.81zm-.77 3.91c-.83.64-1.87 1.01-2.99 1.01-2.72 0-4.92-2.2-4.92-4.92 0-2.72 2.2-4.92 4.92-4.92 2.72 0 4.92 2.2 4.92 4.92 0 1.13-.38 2.16-1.01 2.99l3.94 3.93c.25.25.25.66 0 .92-.25.25-.66.25-.92 0l-3.94-3.93z'/%3E%3C/svg%3E\");background-position:0 0;background-repeat:no-repeat;background-size:20px;content:\"\";height:20px;left:var(--epr-search-bar-inner-padding);position:absolute;top:50%;transform:translateY(-50%);width:20px}.EmojiPickerReact.epr-dark-theme .epr-search-container .epr-icn-search{background-position-y:-20px}.EmojiPickerReact .epr-search-container input.epr-search::-moz-placeholder{color:var(--epr-search-input-placeholder-color)}.EmojiPickerReact .epr-search-container input.epr-search::placeholder{color:var(--epr-search-input-placeholder-color)}.EmojiPickerReact .epr-search-container input.epr-search:focus{background-color:var(--epr-search-input-bg-color-active);border:1px solid var(--epr-search-border-color)}");var Wge,Vge=Kfe(Hfe.emojiPicker)+" "+Kfe(Hfe.emojiList);function $ge(e){var t=e.value;if(!t)return null;var r='button[data-full-name*="'+hge(t)+'"]';return(0,w.createElement)("style",null,"\n "+Vge+" "+Kfe(Hfe.category)+":not(:has("+r+")) {\n display: none;\n }\n\n "+Vge+" button"+Kfe(Hfe.emoji)+":not("+r+") {\n display: none;\n }\n ")}function Qge(){return(0,w.createElement)(jge,{className:"epr-header"},(0,w.createElement)(Kge,null),(0,w.createElement)(Yge,null))}function Jge(){return document.activeElement}function Zge(){var e,t,r,n,i,o,s,a,u;!function(){var e=ope(),t=age(),r=(c=upe(),(0,w.useCallback)((function(e){requestAnimationFrame((function(){c.current&&(c.current.scrollTop=e)}))}),[c])),n=lpe(),i=oge(),o=Xme(),s=(l=lme(),function(){l.current=!0}),a=Zme(),u=(0,w.useMemo)((function(){return function(e){var n=e.key;if(s(),n===Wge.Escape){if(e.preventDefault(),o())return void a();t(),r(0),i()}}}),[r,t,a,i,o,s]);var l;var c;(0,w.useEffect)((function(){var t=e.current;if(t)return t.addEventListener("keydown",u),function(){t.removeEventListener("keydown",u)}}),[e,n,r,u])}(),u=cpe(),e=(0,w.useCallback)((function(){u.current&&$fe(u.current)}),[u]),t=ope(),r=upe(),n=lpe(),i=pme()[1],o=Xge(),s=Nge(),a=(0,w.useMemo)((function(){return function(t){var n,a;switch(t.key){case Wge.ArrowRight:if(!s)return;t.preventDefault(),i(!0),e();break;case Wge.ArrowDown:t.preventDefault(),o();break;case Wge.Enter:t.preventDefault(),n=r.current,qfe(a=Yme(n)),null==a||a.click()}}}),[e,o,i,r,s]),(0,w.useEffect)((function(){var e=n.current;if(e)return e.addEventListener("keydown",a),function(){e.removeEventListener("keydown",a)}}),[t,n,a]),function(){var e=cpe(),t=oge(),r=lpe(),n=Xge(),i=pme(),o=i[0],s=i[1],a=Rge(),u=Nge(),l=rye(),c=(0,w.useMemo)((function(){return function(e){var r=e.key;if(u)switch(r){case Wge.ArrowLeft:if(e.preventDefault(),!o)return t();eye(t);break;case Wge.ArrowRight:if(e.preventDefault(),!o)return t();tye();break;case Wge.ArrowDown:e.preventDefault(),o&&s(!1),n();break;default:l(e)}if(a)switch(r){case Wge.ArrowUp:if(e.preventDefault(),!o)return t();eye(t);break;case Wge.ArrowDown:if(e.preventDefault(),!o)return t();tye();break;default:l(e)}}}),[o,t,s,n,l,a,u]);(0,w.useEffect)((function(){var t=e.current;if(t)return t.addEventListener("keydown",c),function(){t.removeEventListener("keydown",c)}}),[e,r,o,c])}(),function(){var e=oge(),t=hpe(),r=upe(),n=rye(),i=(0,w.useMemo)((function(){return function(t){switch(t.key){case Wge.ArrowUp:t.preventDefault(),e();break;case Wge.ArrowRight:t.preventDefault(),Vfe(Jge());break;case Wge.ArrowLeft:t.preventDefault(),Wfe(Jge());break;case Wge.ArrowDown:t.preventDefault(),Age(r.current);break;default:n(t)}}}),[r,e,n]);(0,w.useEffect)((function(){var e=t.current;if(e)return e.addEventListener("keydown",i),function(){e.removeEventListener("keydown",i)}}),[t,r,i])}(),function(){var e=upe(),t=(a=oge(),u=sge(),l=Gge(),(0,w.useCallback)((function(){return l?a():u()}),[a,l,u])),r=ege(),n=Xme(),i=Zme(),o=rye(),s=(0,w.useMemo)((function(){return function(e){var s=e.key,a=xme(Jge());switch(s){case Wge.ArrowRight:e.preventDefault(),Mge(a);break;case Wge.ArrowLeft:e.preventDefault(),Sge(a);break;case Wge.ArrowDown:if(e.preventDefault(),n()){i();break}kge(a);break;case Wge.ArrowUp:if(e.preventDefault(),n()){i();break}xge(a,t);break;case Wge.Space:e.preventDefault(),r(e.target);break;default:o(e)}}}),[t,o,r,n,i]);var a,u,l;(0,w.useEffect)((function(){var t=e.current;if(t)return t.addEventListener("keydown",s),function(){t.removeEventListener("keydown",s)}}),[e,s])}()}function Xge(){var e=sge(),t=Gge(),r=upe();return(0,w.useCallback)((function(){return t?Age(r.current):e()}),[r,e,t])}function eye(e){var t=Jge();t&&(t.nextElementSibling||e(),Vfe(t))}function tye(){var e=Jge();e&&Wfe(e)}function rye(){var e,t,r=(e=lpe(),t=lge(),function(r){e.current?(e.current.value=""+e.current.value+r,t(hge(e.current.value))):t(hge(r))}),n=oge(),i=Zpe(),o=Zme();return function(e){var t=e.key;(function(e){var t=e.metaKey,r=e.ctrlKey,n=e.altKey;return t||r||n})(e)||i||t.match(/(^[a-zA-Z0-9]$){1}/)&&(e.preventDefault(),o(),n(),r(t))}}function nye(e,t,r){if(t&&r!==Zfe.NATIVE){var n=Mpe(t);iye.has(n)||(kpe(t).forEach((function(t){!function(e){(new Image).src=e}(e(t,r))})),iye.add(n))}}!function(e){e.ArrowDown="ArrowDown",e.ArrowUp="ArrowUp",e.ArrowLeft="ArrowLeft",e.ArrowRight="ArrowRight",e.Escape="Escape",e.Enter="Enter",e.Space=" "}(Wge||(Wge={}));var iye=new Set;function oye(e){var t=e.children;return(0,w.createElement)(sme,null,(0,w.createElement)(sye,null,t))}function sye(e){var t,r,n,i,o=e.children,s=Jpe(),a=Gge(),u=ope(),l=function(){var e=qpe(),t=e.height,r=e.width;return{height:tme(t),width:tme(r)}}(),c=l.height,h=l.width;Zge(),r=upe(),n=Vpe(),i=eme(),(0,w.useEffect)((function(){if(n!==Zfe.NATIVE){var e=r.current;return null==e||e.addEventListener("focusin",t),function(){null==e||e.removeEventListener("focusin",t)}}function t(e){var t=xme(e.target);if(t){var r=kme(t)[0];r&&Tpe(r)&&nye(i,r,n)}}}),[r,n,i]);var d={height:c,width:h};return(0,w.createElement)("aside",{className:(0,Gfe.default)(Hfe.emojiPicker,"epr-main",(t={},t[Hfe.searchActive]=a,t["epr-dark-theme"]=s===Xfe.DARK,t)),ref:u,style:d},o)}pge("aside.EmojiPickerReact.epr-main{border-color:var(--epr-picker-border-color);border-radius:var(--epr-picker-border-radius);border-style:solid;border-width:1px;display:flex;flex-direction:column;position:relative}");function aye(e){return(0,w.createElement)(Qfe,null,(0,w.createElement)(Kpe,Object.assign({},e),(0,w.createElement)(oye,null,(0,w.createElement)(Qge,null),(0,w.createElement)(Ige,null),(0,w.createElement)(zge,null))))}pge(".EmojiPickerReact{--epr-highlight-color:#007aeb;--epr-hover-bg-color:#f1f8ff;--epr-focus-bg-color:#e0f0ff;--epr-text-color:#858585;--epr-search-input-bg-color:#f6f6f6;--epr-picker-border-color:#e7e7e7;--epr-bg-color:#fff;--epr-category-icon-active-color:#6aa8de;--epr-skin-tone-picker-menu-color:#ffffff95;--epr-horizontal-padding:10px;--epr-picker-border-radius:8px;--epr-search-border-color:var(--epr-highlight-color);--epr-header-padding:15px var(--epr-horizontal-padding);--epr-active-skin-tone-indicator-border-color:var(--epr-highlight-color);--epr-active-skin-hover-color:var(--epr-hover-bg-color);--epr-search-input-bg-color-active:var(--epr-search-input-bg-color);--epr-search-input-padding:0 30px;--epr-search-input-border-radius:8px;--epr-search-input-height:40px;--epr-search-input-text-color:var(--epr-text-color);--epr-search-input-placeholder-color:var(--epr-text-color);--epr-search-bar-inner-padding:var(--epr-horizontal-padding);--epr-category-navigation-button-size:30px;--epr-emoji-variation-picker-height:45px;--epr-emoji-variation-picker-bg-color:var(--epr-bg-color);--epr-preview-height:70px;--epr-preview-text-size:14px;--epr-preview-text-padding:0 var(--epr-horizontal-padding);--epr-preview-border-color:var(--epr-picker-border-color);--epr-preview-text-color:var(--epr-text-color);--epr-category-padding:0 var(--epr-horizontal-padding);--epr-category-label-bg-color:#ffffffe6;--epr-category-label-text-color:var(--epr-text-color);--epr-category-label-padding:0 var(--epr-horizontal-padding);--epr-category-label-height:40px;--epr-emoji-size:30px;--epr-emoji-padding:5px;--epr-emoji-fullsize:calc(var(--epr-emoji-size) + var(--epr-emoji-padding)*2);--epr-emoji-hover-color:var(--epr-hover-bg-color);--epr-emoji-variation-indicator-color:var(--epr-picker-border-color);--epr-emoji-variation-indicator-color-hover:var(--epr-text-color);--epr-header-overlay-z-index:3;--epr-emoji-variations-indictator-z-index:1;--epr-category-label-z-index:2;--epr-skin-variation-picker-z-index:5;--epr-preview-z-index:6}.EmojiPickerReact.epr-dark-theme{--epr-dark:#000;--epr-emoji-variation-picker-bg-color:var(--epr-dark);--epr-highlight-color:silver;--epr-text-color:var(--epr-highlight-color);--epr-hover-bg-color:#363636f6;--epr-focus-bg-color:#474747;--epr-search-input-bg-color:#333;--epr-category-label-bg-color:#222222e6;--epr-picker-border-color:#151617;--epr-bg-color:#222;--epr-search-input-bg-color-active:var(--epr-dark);--epr-emoji-variation-indicator-color:#444;--epr-category-icon-active-color:#3271b7;--epr-skin-tone-picker-menu-color:#22222295}.EmojiPickerReact{background-color:var(--epr-bg-color);overflow:hidden}.EmojiPickerReact .epr-hidden,.EmojiPickerReact.epr-search-active .epr-hidden-on-search,.EmojiPickerReact:not(.epr-search-active) .epr-visible-on-search-only{display:none!important;opacity:0!important;pointer-events:none!important;visibility:hidden!important}aside.EmojiPickerReact.epr-main:has(input:not(:-moz-placeholder-shown)) .epr-hidden-on-search{display:none!important;opacity:0!important;pointer-events:none!important;visibility:hidden!important}aside.EmojiPickerReact.epr-main:has(input:not(:placeholder-shown)) .epr-hidden-on-search{display:none!important;opacity:0!important;pointer-events:none!important;visibility:hidden!important}aside.EmojiPickerReact.epr-main:has(input:-moz-placeholder-shown) .epr-visible-on-search-only{display:none!important;opacity:0!important;pointer-events:none!important;visibility:hidden!important}aside.EmojiPickerReact.epr-main:has(input:placeholder-shown) .epr-visible-on-search-only{display:none!important;opacity:0!important;pointer-events:none!important;visibility:hidden!important}.EmojiPickerReact *{box-sizing:border-box;font-family:sans-serif}.EmojiPickerReact button.epr-btn{background:none;border:0;cursor:pointer;outline:none}");var uye=function(e){var t,r;function n(t){var r;return(r=e.call(this,t)||this).state={hasError:!1},r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,fpe(t,r),n.getDerivedStateFromError=function(){return{hasError:!0}};var i=n.prototype;return i.componentDidCatch=function(e,t){Yfe.error("Emoji Picker React failed to render:",e,t)},i.render=function(){return this.state.hasError?null:this.props.children},n}(w.Component);const lye=function(e){return(0,w.createElement)(uye,null,(0,w.createElement)(aye,Object.assign({},e)))};var cye=r(98399),hye=class extends w.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){cye.error("GIF Picker React failed to render:",e,t)}render(){return this.state.hasError?null:this.props.children}},dye=w.createContext(null),fye=w.createContext(null);function pye(e,{insertAt:t}={}){if(!e||typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===t&&r.firstChild?r.insertBefore(n,r.firstChild):r.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}pye(".GifPickerReact .gpr-body{display:flex;flex:1;min-height:0}\n");var mye=w.createContext(null);pye(".GifPickerReact .gpr-category-placeholder{border-radius:var(--gpr-category-border-radius);position:relative}\n"),pye(".GifPickerReact .gpr-placeholder{background-color:var(--gpr-placeholder-color);transition:opacity .2s ease-in-out}\n");var gye=function(e){return w.createElement("div",{...e,className:`gpr-placeholder ${e.className||""}`,style:{width:e.width,height:e.height,...e.style}})};var yye=function(){let e=(0,w.useContext)(mye);return w.createElement(gye,{className:"gpr-category-placeholder",height:e.categoryHeight,width:"100%"})};pye(".GifPickerReact .gpr-category-list{grid-gap:var(--gpr-category-list-padding);display:grid;flex:1;grid-auto-rows:min-content;overflow-y:scroll;padding:var(--gpr-body-padding)}\n"),pye(".GifPickerReact .gpr-category{border-radius:var(--gpr-category-border-radius);cursor:pointer;position:relative;transition:box-shadow .15s ease-in-out}.GifPickerReact .gpr-category img{background-color:#d3d3d3;border-radius:var(--gpr-category-border-radius);height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.GifPickerReact .gpr-category-overlay{align-items:center;background-color:rgba(0,0,0,var(--gpr-category-background-opacity));border-radius:var(--gpr-category-border-radius);display:flex;height:100%;justify-content:center;left:0;overflow:hidden;position:absolute;top:0;transition:background-color .15s ease-in-out;width:100%}.GifPickerReact .gpr-category-overlay .gpr-category-name{color:var(--gpr-category-font-color);font-size:var(--gpr-category-font-size);font-weight:var(--gpr-category-font-weight);text-shadow:0 1px 1px rgba(0,0,0,var(--gpr-category-shadow-opacity))}.GifPickerReact .gpr-category:hover{box-shadow:0 0 0 2px var(--gpr-category-border-color-hover)}.GifPickerReact .gpr-category:hover .gpr-category-overlay{background-color:rgba(0,0,0,var(--gpr-category-shadow-opacity-hover))}\n");var vye=function({image:e,text:t,onClick:r}){let n=(0,w.useContext)(mye);return w.createElement("button",{className:"gpr-btn gpr-category",style:{height:n.categoryHeight},"data-testid":"gpr-category",onClick:r},w.createElement("img",{src:e,loading:"lazy"}),w.createElement("div",{className:"gpr-category-overlay"},w.createElement("div",{className:"gpr-category-name"},t)))};var bye=function({image:e,name:t}){let[r,n]=(0,w.useContext)(dye);return w.createElement(vye,{image:e,text:t,onClick:function(){let e=Object.assign({},r);e.searchTerm=t,n(e)}})};pye(".GifPickerReact .gpr-icn-trending{background-color:transparent;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath fill='%23fff' d='M6.3 37 4 34.7l15-15 8 8.05L41.9 11l2.1 2.05-17 19.2-8-7.95Z'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-size:20px;height:20px;width:20px}.GifPickerReact .gpr-category .gpr-text-trending-category{align-items:center;display:flex;gap:4px}\n");var wye=function({image:e}){let[t,r]=(0,w.useContext)(dye);return w.createElement(vye,{image:e,onClick:function(){let e=Object.assign({},t);e.showTrending=!0,r(e)},text:w.createElement("div",{className:"gpr-text-trending-category"},w.createElement("div",{className:"gpr-icn-trending"}),w.createElement("span",null,"Trending GIFs"))})};var _ye=function({categories:e,trending:t,columnsCount:r}){let n=e;return r>1&&(n=null==e?void 0:e.slice(0,-(e.length+1)%r)),w.createElement("div",{className:"gpr-category-list",style:{gridTemplateColumns:`repeat(${r}, 1fr)`}},e&&t?w.createElement(w.Fragment,null,w.createElement(wye,{image:t.url}),null==n?void 0:n.map(((e,t)=>w.createElement(bye,{key:t,image:e.image,name:e.name})))):w.createElement(w.Fragment,null,[...Array(10*r)].map(((e,t)=>w.createElement(yye,{key:t})))))};pye(".GifPickerReact .gpr-gif-list{display:flex;flex:1;flex-direction:row;gap:var(--gpr-category-list-padding);overflow-y:scroll;padding:var(--gpr-body-padding)}.GifPickerReact .gpr-gif-list-column{grid-gap:var(--gpr-category-list-padding);display:grid;flex:1;grid-auto-rows:min-content;grid-template-columns:1fr;grid-template-rows:auto 1fr}.GifPickerReact .gpr-gif-list-no-result{align-items:center;display:flex;flex:1;justify-content:center;padding-bottom:30%}\n"),pye(".GifPickerReact .gpr-result-placeholder{border-radius:var(--gpr-category-border-radius)}\n");var Eye=function({height:e,showDelay:t}){let[r,n]=(0,w.useState)(!1);return(0,w.useEffect)((()=>{if(r)return;let e=setTimeout((function(){n(!0)}),t);return()=>clearTimeout(e)}),[]),w.createElement(gye,{className:"gpr-result-placeholder",height:e,width:"100%",style:{opacity:r?1:0}})},Aye=[[120,100,130,175,154,110],[150,115,135,154,145,170],[140,125,120,150,100,125],[130,145,175,120,135,100]];var Mye=function({columnsCount:e,showDelay:t=70}){return w.createElement("div",{className:"gpr-gif-list"},[...Array(e)].map(((r,n)=>w.createElement("div",{className:"gpr-gif-list-column",key:n},Aye[n%Aye.length].map(((r,i)=>w.createElement(Eye,{key:i,height:r,showDelay:(i+1)*t*e+t*n})))))))};pye(".GifPickerReact .gpr-result-image{border-radius:var(--gpr-category-border-radius);cursor:pointer;transition:box-shadow .15s ease-in-out}.GifPickerReact .gpr-result-image img{background-color:var(--gpr-placeholder-color);border-radius:var(--gpr-category-border-radius);height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.GifPickerReact .gpr-result-image:hover{box-shadow:0 0 0 2px var(--gpr-category-border-color-hover)}\n");var Sye=function({image:e,searchTerm:t}){let r=(0,w.useContext)(mye),n=(0,w.useContext)(fye);return w.createElement("button",{className:"gpr-btn gpr-result-image",onClick:function(){let i=r.onGifClick;i&&i(e),n.registerShare(e,t)}},w.createElement("img",{src:e.preview.url,height:e.preview.height,width:e.preview.width,loading:"lazy"}))};var xye=function({isLoading:e,result:t,searchTerm:r,columnsCount:n}){let i=(0,w.useMemo)((()=>function(e,t=2){if(!e)return[];let r=new Array(t).fill(null).map((()=>[])),n=new Array(t).fill(0);for(let i of e.images){let e=i.preview.height/i.preview.width,t=n.indexOf(Math.min(...n));r[t].push(i),n[t]+=e}return r}(t,n)),[t,n]),o=!t||t.images.length<=0;return e?w.createElement(Mye,{columnsCount:n}):o?w.createElement("div",{className:"gpr-gif-list-no-result"},w.createElement("span",null,"No GIFs found!")):w.createElement("div",{className:"gpr-gif-list"},i.map(((e,t)=>w.createElement("div",{className:"gpr-gif-list-column",key:t},e.map((e=>w.createElement(Sye,{key:e.id,image:e,searchTerm:r})))))))};var kye=function({searchTerm:e,columnsCount:t}){let[r,n]=(0,w.useState)(null),[i,o]=(0,w.useState)(!0),s=(0,w.useContext)(fye);return(0,w.useEffect)((()=>{o(!0);let t=setTimeout((()=>async function(){let t=await s.search(e);n(t),o(!1)}()),800);return()=>clearTimeout(t)}),[e]),w.createElement(xye,{isLoading:i,columnsCount:t,result:r,searchTerm:e})};var Tye=function({columnsCount:e}){let[t,r]=(0,w.useState)(null),[n,i]=(0,w.useState)(!0),o=(0,w.useContext)(fye);return(0,w.useEffect)((()=>{i(!0),(async()=>{let e=await o.trending();r(e),i(!1)})()}),[]),w.createElement(xye,{columnsCount:e,isLoading:n,result:t})};var Cye=function({width:e}){let[t,r]=(0,w.useState)(void 0),[n,i]=(0,w.useState)(void 0),[o]=(0,w.useContext)(dye),[s,a]=(0,w.useState)(1),u=(0,w.useContext)(fye),l=(0,w.useRef)(null);return(0,w.useEffect)((()=>{(async()=>{let e=await u.categories();r(e);let t=await u.trending(1);i(t.images[0])})()}),[]),(0,w.useEffect)((()=>{let e=l.current?l.current.offsetWidth:0,t=Math.floor(e/170);t<1&&(t=1),a(t)}),[l.current,e]),w.createElement("div",{className:"gpr-body",ref:l},o.showTrending?w.createElement(Tye,{columnsCount:s}):o.searchTerm?w.createElement(kye,{columnsCount:s,searchTerm:o.searchTerm}):w.createElement(_ye,{columnsCount:s,categories:t,trending:n}))};pye(".GifPickerReact .gpr-header{border-bottom:1px solid var(--gpr-picker-border-color);min-height:0;padding:var(--gpr-header-padding)}\n");var Iye=function(e){return w.createElement("button",{type:"button",...e,className:"gpr-btn "+e.className},e.children)};pye(".GifPickerReact button.gpr-btn-clear-search{align-items:center;border-radius:50%;display:flex;height:20px;justify-content:end;padding:0;position:absolute;right:var(--gpr-search-bar-inner-padding);top:50%;transform:translateY(-50%);width:20px}.GifPickerReact .gpr-icn-clear-search{background-color:transparent;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' width='20' height='80'%3E%3Cpath fill='%23868686' d='M6.98 13.59a.53.53 0 0 0 .74 0l2.42-2.42 2.43 2.43a.53.53 0 0 0 .74 0c.21-.21.21-.54 0-.75l-2.43-2.43L13.32 8c.21-.21.21-.54 0-.75a.525.525 0 0 0-.75 0l-2.42 2.42-2.41-2.4a.525.525 0 0 0-.75 0c-.21.21-.21.54 0 .75l2.41 2.41-2.42 2.42c-.21.2-.21.54 0 .74z'/%3E%3Cpath fill='%23868686' d='M10.15 18.43c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8zm0-14.94c3.83 0 6.94 3.11 6.94 6.94 0 3.83-3.11 6.94-6.94 6.94-3.83 0-6.94-3.11-6.94-6.94 0-3.83 3.12-6.94 6.94-6.94z'/%3E%3Cpath fill='%233371B7' d='M6.98 33.59a.53.53 0 0 0 .74 0l2.42-2.42 2.43 2.43a.53.53 0 0 0 .74 0c.21-.21.21-.54 0-.75l-2.43-2.43L13.32 28c.21-.21.21-.54 0-.75a.525.525 0 0 0-.75 0l-2.42 2.42-2.41-2.41a.525.525 0 0 0-.75 0c-.21.21-.21.54 0 .75l2.41 2.41-2.42 2.42c-.21.21-.21.55 0 .75z'/%3E%3Cpath fill='%233371B7' d='M10.15 38.43c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8zm0-14.94c3.83 0 6.94 3.11 6.94 6.94 0 3.83-3.11 6.94-6.94 6.94-3.83 0-6.94-3.11-6.94-6.94 0-3.83 3.12-6.94 6.94-6.94z'/%3E%3Cpath fill='%23C0C0BF' d='M6.98 53.59a.53.53 0 0 0 .74 0l2.42-2.42 2.43 2.43a.53.53 0 0 0 .74 0c.21-.21.21-.54 0-.75l-2.43-2.43L13.32 48c.21-.21.21-.54 0-.75a.525.525 0 0 0-.75 0l-2.42 2.42-2.41-2.41a.525.525 0 0 0-.75 0c-.21.21-.21.54 0 .75l2.41 2.41-2.42 2.42c-.21.21-.21.55 0 .75z'/%3E%3Cpath fill='%23C0C0BF' d='M10.15 58.43c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8zm0-14.94c3.83 0 6.94 3.11 6.94 6.94 0 3.83-3.11 6.94-6.94 6.94-3.83 0-6.94-3.11-6.94-6.94 0-3.83 3.12-6.94 6.94-6.94z'/%3E%3Cpath fill='%236AA9DD' d='M6.98 73.59a.53.53 0 0 0 .74 0l2.42-2.42 2.43 2.43a.53.53 0 0 0 .74 0c.21-.21.21-.54 0-.75l-2.43-2.43L13.32 68c.21-.21.21-.54 0-.75a.525.525 0 0 0-.75 0l-2.42 2.42-2.41-2.41a.525.525 0 0 0-.75 0c-.21.21-.21.54 0 .75l2.41 2.41-2.42 2.42c-.21.21-.21.55 0 .75z'/%3E%3Cpath fill='%236AA9DD' d='M10.15 78.43c4.41 0 8-3.59 8-8s-3.59-8-8-8-8 3.59-8 8 3.59 8 8 8zm0-14.94c3.83 0 6.94 3.11 6.94 6.94 0 3.83-3.11 6.94-6.94 6.94-3.83 0-6.94-3.11-6.94-6.94 0-3.83 3.12-6.94 6.94-6.94z'/%3E%3C/svg%3E\");background-repeat:no-repeat;background-size:20px;height:20px;width:20px}.GifPickerReact .gpr-search-container button.gpr-btn-clear-search:focus .gpr-icn-clear-search,.GifPickerReact button.gpr-btn-clear-search:hover .gpr-icn-clear-search{background-position-y:-20px}.GifPickerReact button.gpr-btn-clear-search:focus,.GifPickerReact button.gpr-btn-clear-search:hover{background:var(--gpr-hover-bg-color)}.GifPickerReact.gpr-dark-theme button.gpr-btn-clear-search .gpr-icn-clear-search{background-position-y:-40px}.GifPickerReact.gpr-dark-theme button.gpr-btn-clear-search:hover .gpr-icn-clear-search{background-position-y:-60px}\n");var Nye=function({onClick:e}){return w.createElement(Iye,{className:"gpr-btn-clear-search",onClick:e},w.createElement("div",{className:"gpr-icn-clear-search"}))};pye(".GifPickerReact .gpr-search-container{display:block;flex:1;min-width:0;position:relative}.GifPickerReact .gpr-search-container input.gpr-search{background-color:var(--gpr-search-input-bg-color);border:1px solid var(--gpr-search-input-bg-color);border-radius:var(--gpr-search-input-border-radius);color:var(--gpr-search-input-text-color);height:var(--gpr-search-input-height);outline:none;padding:var(--gpr-search-input-padding);transition:all .2s ease-in-out;width:100%}.GifPickerReact .gpr-search-container .gpr-icn-search{background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' width='20' height='40'%3E%3Cpath fill='%23868686' fill-rule='evenodd' d='M12 8.81c0 2.08-1.68 3.76-3.76 3.76s-3.76-1.68-3.76-3.76 1.68-3.76 3.76-3.76S12 6.73 12 8.81zm-.77 3.91c-.83.64-1.87 1.01-2.99 1.01-2.72 0-4.92-2.2-4.92-4.92 0-2.72 2.2-4.92 4.92-4.92 2.72 0 4.92 2.2 4.92 4.92 0 1.13-.38 2.16-1.01 2.99l3.94 3.93c.25.25.25.66 0 .92-.25.25-.66.25-.92 0l-3.94-3.93z' clip-rule='evenodd'/%3E%3Cpath fill='%23C0C0BF' fill-rule='evenodd' d='M12 28.81c0 2.08-1.68 3.76-3.76 3.76s-3.76-1.68-3.76-3.76 1.68-3.76 3.76-3.76S12 26.73 12 28.81zm-.77 3.91c-.83.64-1.87 1.01-2.99 1.01-2.72 0-4.92-2.2-4.92-4.92 0-2.72 2.2-4.92 4.92-4.92 2.72 0 4.92 2.2 4.92 4.92 0 1.13-.38 2.16-1.01 2.99l3.94 3.93c.25.25.25.66 0 .92-.25.25-.66.25-.92 0l-3.94-3.93z' clip-rule='evenodd'/%3E%3C/svg%3E\");background-position:0 0;background-repeat:no-repeat;background-size:20px;content:\"\";height:20px;left:var(--gpr-search-bar-inner-padding);position:absolute;top:50%;transform:translateY(-50%);width:20px}.GifPickerReact.gpr-dark-theme .gpr-search-container .gpr-icn-search{background-position-y:-20px}.GifPickerReact .gpr-search-container input.gpr-search::-moz-placeholder{color:var(--gpr-search-input-placeholder-color)}.GifPickerReact .gpr-search-container input.gpr-search::placeholder{color:var(--gpr-search-input-placeholder-color)}.GifPickerReact .gpr-search-container input.gpr-search:focus{background-color:var(--gpr-search-input-bg-color-active);border:1px solid var(--gpr-search-border-color-active)}\n");var Rye=function(){let[e,t]=(0,w.useContext)(dye),r=(0,w.useContext)(mye);return w.createElement("div",{className:"gpr-search-container"},w.createElement("input",{autoFocus:r.autoFocusSearch,"aria-label":"Search Tenor",placeholder:"Search Tenor",className:"gpr-search","data-testid":"gpr-search-input",type:"text",dir:"auto",maxLength:500,value:e.searchTerm,onChange:function(r){let n=Object.assign({},e);n.searchTerm=r.target.value,t(n)}}),w.createElement("div",{className:"gpr-icn-search"}),e.searchTerm.length>0&&w.createElement(Nye,{onClick:function(){let r=Object.assign({},e);r.searchTerm="",t(r)}}))};pye(".GifPickerReact .gpr-title-container{display:block;flex:1;min-width:0;position:relative}.GifPickerReact .gpr-title-container .gpr-title{align-items:center;background-color:var(--gpr-search-input-bg-color);border-radius:var(--gpr-search-input-border-radius);color:var(--gpr-search-input-text-color);display:flex;height:var(--gpr-search-input-height);padding:var(--gpr-horizontal-padding);width:100%}\n");var Pye=function({children:e}){let[t,r]=(0,w.useContext)(dye);return w.createElement("div",{className:"gpr-title-container"},w.createElement("div",{className:"gpr-title"},e),w.createElement(Iye,{className:"gpr-btn-clear-search",onClick:function(){let e=Object.assign({},t);e.showTrending=!1,r(e)}},w.createElement("div",{className:"gpr-icn-clear-search"})))};var Dye=function(){let[e]=(0,w.useContext)(dye);return w.createElement("div",{className:"gpr-header"},e.showTrending?w.createElement(Pye,null,"Trending GIFs"):w.createElement(Rye,null))},Lye=(e=>(e.HIGH="high",e.MEDIUM="medium",e.LOW="low",e.OFF="off",e))(Lye||{}),Oye=(e=>(e.LIGHT="light",e.DARK="dark",e.AUTO="auto",e))(Oye||{});var jye=function({children:e}){let t=(0,w.useContext)(mye),r={height:t.height,width:t.width};return w.createElement("aside",{className:"GifPickerReact gpr-main "+("dark"===t.theme?" gpr-dark-theme":""),style:r},e)};pye(".GifPickerReact{--gpr-highlight-color:#007aeb;--gpr-hover-bg-color:#f1f8ff;--gpr-focus-bg-color:#e0f0ff;--gpr-text-color:#858585;--gpr-search-input-bg-color:#f6f6f6;--gpr-picker-border-color:#e7e7e7;--gpr-bg-color:#fff;--gpr-horizontal-padding:10px;--gpr-picker-border-radius:8px;--gpr-header-padding:15px var(--gpr-horizontal-padding);--gpr-search-input-bg-color-active:var(--gpr-search-input-bg-color);--gpr-search-input-padding:0 32px;--gpr-search-input-border-radius:8px;--gpr-search-input-height:40px;--gpr-search-input-text-color:var(--gpr-text-color);--gpr-search-input-placeholder-color:var(--gpr-text-color);--gpr-search-bar-inner-padding:var(--gpr-horizontal-padding);--gpr-search-border-color-active:var(--gpr-highlight-color);--gpr-body-padding:var(--gpr-header-padding) 0px;--gpr-category-list-padding:var(--gpr-horizontal-padding);--gpr-category-border-radius:4px;--gpr-category-background-opacity:40%;--gpr-category-font-color:var(--gpr-picker-border-color);--gpr-category-font-size:16px;--gpr-category-font-weight:600;--gpr-category-shadow-opacity:60%;--gpr-category-shadow-opacity-hover:65%;--gpr-category-border-color-hover:var(--gpr-highlight-color);--gpr-placeholder-color:#d3d3d3;color-scheme:light}.GifPickerReact.gpr-dark-theme{--gpr-dark:#000;--gpr-hover-bg-color:#363636f6;--gpr-focus-bg-color:#474747;--gpr-text-color:silver;--gpr-search-input-bg-color:#3b3b3b;--gpr-picker-border-color:#2b2b2b;--gpr-bg-color:#222;--gpr-category-font-color:#e7e7e7;--gpr-search-input-bg-color-active:var(--gpr-dark);--gpr-placeholder-color:var(--gpr-search-input-bg-color);color-scheme:dark}.GifPickerReact *{box-sizing:border-box}.GifPickerReact.gpr-main{background-color:var(--gpr-bg-color);border-color:var(--gpr-picker-border-color);border-radius:var(--gpr-picker-border-radius);border-style:solid;border-width:1px;color:var(--gpr-text-color);display:flex;flex-direction:column;position:relative}.GifPickerReact button.gpr-btn{background:none;border:0;cursor:pointer;outline:none;padding:0}\n");var Bye=function(){let[e,t]=(0,w.useState)({searchTerm:"",showTrending:!1});return[e,t]};function Uye(e){if("number"==typeof e)return`${e}px`;if("string"==typeof e)return e;throw new TypeError("Invalid dimension provided")}function Fye(e){return"auto"===e?typeof window>"u"||!window.matchMedia("(prefers-color-scheme: dark)").matches?"light":"dark":e??"light"}var zye=function(e){if(!e.tenorApiKey)throw new Error("tenorApiKey is a required prop that is missing");return{tenorApiKey:e.tenorApiKey,onGifClick:e.onGifClick??void 0,autoFocusSearch:e.autoFocusSearch??!0,clientKey:e.clientKey??"gif-picker-react",country:e.country??"US",locale:e.locale??"en_US",contentFilter:e.contentFilter??"off",height:Uye(e.height??450),width:Uye(e.width??350),categoryHeight:Uye(e.categoryHeight??100),theme:Fye(e.theme)}},Hye=class{apiKey;clientKey;country;locale;contentFilter;constructor(e,t,r,n,i){this.apiKey=e,this.clientKey=t,this.country=r,this.locale=n,this.contentFilter=i}async callApi(e,t){let r=new URLSearchParams({key:this.apiKey,client_key:this.clientKey,contentfilter:this.contentFilter,media_filter:"gif,tinygif",locale:this.locale,country:this.country,...t});return fetch("https://tenor.googleapis.com/v2/"+e+"?"+r).then((e=>(e.ok||(cye.error(e),cye.error("[gif-picker-react] Failed to fetch data from Tenor API")),e))).then((e=>e.json())).catch((e=>{cye.error(e),cye.error("[gif-picker-react] Failed to fetch data from Tenor API")}))}praseResult(e){let t=e.media_formats.tinygif,r=e.media_formats.gif;return{id:e.id,tenorUrl:e.itemurl,shortTenorUrl:e.url,description:e.content_description,createdAt:new Date(1e3*e.created),tags:e.tags,url:r.url,width:r.dims[0],height:r.dims[1],preview:{url:t.url,width:t.dims[0],height:t.dims[1]}}}async categories(){return this.callApi("categories",{type:"featured"}).then((e=>e.tags.map((e=>({name:e.searchterm,image:e.image})))))}async search(e,t=50){return this.callApi("search",{q:e,ar_range:"all",limit:t}).then((e=>{let t=e.results.map(this.praseResult);return{next:e.next,images:t}}))}async trending(e=50){return this.callApi("featured",{ar_range:"all",limit:e}).then((e=>{let t=e.results.map(this.praseResult);return{next:e.next,images:t}}))}async registerShare(e,t){let r={id:e.id};t&&(r.q=t),await this.callApi("registershare",r)}};var Gye=function(e){let t=zye(e),r=Bye(),n=(0,w.useMemo)((()=>new Hye(t.tenorApiKey,t.clientKey,t.country,t.locale,t.contentFilter)),[]);return w.createElement(mye.Provider,{value:t},w.createElement(dye.Provider,{value:r},w.createElement(fye.Provider,{value:n},w.createElement(jye,null,w.createElement(Dye,null),w.createElement(Cye,{width:e.width})))))};var Yye=function(e){return w.createElement(hye,null,w.createElement(Gye,{...e}))};r(98399);const Kye=({size:e})=>(0,Tf.jsx)("svg",{width:null!=e?e:"25",height:null!=e?e:"25",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Tf.jsx)("g",{id:"lock_FILL0_wght500_GRAD0_opsz48 1",children:(0,Tf.jsx)("path",{id:"Vector",d:"M4.62836 18.4476C4.23803 18.4476 3.90388 18.3086 3.62592 18.0307C3.34796 17.7527 3.20898 17.4186 3.20898 17.0283V8.07625C3.20898 7.68455 3.34796 7.34923 3.62592 7.07029C3.90388 6.79135 4.23803 6.65188 4.62836 6.65188H5.98707V4.76148C5.98707 3.64529 6.3778 2.69489 7.15926 1.91029C7.94073 1.1257 8.88805 0.733398 10.0012 0.733398C11.1144 0.733398 12.0613 1.1257 12.8421 1.91029C13.6229 2.69489 14.0133 3.64529 14.0133 4.76148V6.65188H15.372C15.7637 6.65188 16.099 6.79135 16.378 7.07029C16.6569 7.34923 16.7964 7.68455 16.7964 8.07625V17.0283C16.7964 17.4186 16.6569 17.7527 16.378 18.0307C16.099 18.3086 15.7637 18.4476 15.372 18.4476H4.62836ZM4.62836 17.0283H15.372V8.07625H4.62836V17.0283ZM10.0037 14.1564C10.4458 14.1564 10.8231 14.0034 11.1356 13.6974C11.4481 13.3914 11.6044 13.0236 11.6044 12.5939C11.6044 12.1773 11.4469 11.7988 11.1321 11.4585C10.8173 11.1182 10.4388 10.9481 9.99669 10.9481C9.55458 10.9481 9.17728 11.1182 8.86478 11.4585C8.55228 11.7988 8.39603 12.1807 8.39603 12.6043C8.39603 13.0279 8.55344 13.3925 8.86828 13.6981C9.18311 14.0036 9.56158 14.1564 10.0037 14.1564ZM7.40644 6.65188H12.5939V4.76263C12.5939 4.03502 12.3429 3.41897 11.8408 2.91448C11.3387 2.41001 10.7263 2.15777 10.0038 2.15777C9.28129 2.15777 8.66776 2.41001 8.16323 2.91448C7.65871 3.41897 7.40644 4.03502 7.40644 4.76263V6.65188Z",fill:"#62626A"})})}),qye=({size:e})=>(0,Tf.jsx)("svg",{width:null!=e?e:"21",height:null!=e?e:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Tf.jsx)("g",{id:"no_encryption",children:(0,Tf.jsx)("path",{id:"Vector",d:"M17.1668 14.2913L15.5002 12.6247V8.33301H11.2085L9.54183 6.66634H13.0002V4.99967C13.0002 4.30523 12.7606 3.71495 12.2814 3.22884C11.8022 2.74273 11.2154 2.49967 10.521 2.49967C9.82655 2.49967 9.24322 2.73926 8.771 3.21842C8.29877 3.69759 8.06266 4.29134 8.06266 4.99967V5.18717L6.54183 3.66634C6.84738 2.81912 7.36822 2.13509 8.10433 1.61426C8.84044 1.09342 9.646 0.833008 10.521 0.833008C11.6738 0.833008 12.6529 1.23926 13.4585 2.05176C14.2641 2.86426 14.6668 3.8469 14.6668 4.99967V6.66634H15.5002C15.9585 6.66634 16.3509 6.82954 16.6772 7.15592C17.0036 7.48231 17.1668 7.87467 17.1668 8.33301V14.2913ZM17.5835 19.4163L16.2918 18.1247C16.1391 18.1941 16.0002 18.2462 15.8752 18.2809C15.7502 18.3156 15.6252 18.333 15.5002 18.333H5.50016C5.04183 18.333 4.64947 18.1698 4.32308 17.8434C3.99669 17.517 3.8335 17.1247 3.8335 16.6663V8.33301C3.8335 7.98579 3.93419 7.66634 4.13558 7.37467C4.33697 7.08301 4.59738 6.87467 4.91683 6.74967L1.0835 2.91634L2.25016 1.74967L18.7502 18.2497L17.5835 19.4163ZM14.7918 16.6663L11.7293 13.5622C11.5766 13.715 11.3995 13.833 11.1981 13.9163C10.9967 13.9997 10.7779 14.0413 10.5418 14.0413C10.0835 14.0413 9.69113 13.8781 9.36475 13.5518C9.03836 13.2254 8.87516 12.833 8.87516 12.3747C8.87516 12.1386 8.91683 11.9198 9.00016 11.7184C9.0835 11.517 9.20155 11.34 9.35433 11.1872L6.4585 8.33301H5.50016V16.6663H14.7918Z",fill:"#62626A"})})});r(98399);r(98399);Object.assign({},s7,{borderRadius:Object.assign({},s7.borderRadius,{modal:"12px"}),color:Object.assign({},s7.color,{channelNameText:"#62626A",notificationTitleText:"#000",notificationContentText:"#62626A",modalBorder:"#C8C8CB",timestamp:"#62626A"}),fontWeight:Object.assign({},s7.fontWeight,{channelNameText:600,notificationTitleText:600,notificationContentText:500,timestamp:400}),fontSize:Object.assign({},s7.fontSize,{channelNameText:"16px",notificationTitleText:"16px",notificationContentText:"16px",timestamp:"12px"}),modalDivider:"none"});r(98399);const Wye=({height:e,width:t})=>(0,Tf.jsx)("svg",{width:t||"18",height:e||"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Tf.jsx)("path",{d:"M12.5 11H11.71L11.43 10.73C12.41 9.59 13 8.11 13 6.5C13 2.91 10.09 0 6.5 0C2.91 0 0 2.91 0 6.5C0 10.09 2.91 13 6.5 13C8.11 13 9.59 12.41 10.73 11.43L11 11.71V12.5L16 17.49L17.49 16L12.5 11ZM6.5 11C4.01 11 2 8.99 2 6.5C2 4.01 4.01 2 6.5 2C8.99 2 11 4.01 11 6.5C11 8.99 8.99 11 6.5 11Z",fill:"#7A7A85"})}),Vye=()=>(0,Tf.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsx)("path",{d:"M15.625 4.375L4.375 15.625",stroke:"#82828A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),(0,Tf.jsx)("path",{d:"M15.0799 15.4442L4.375 4.375",stroke:"#82828A","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]});r(98399);r(98399);var $ye=r(98399),Qye="https://platform.twitter.com/widgets.js",Jye=function(e){var t=w.useRef(null),n=w.useState(!0),i=n[0],o=n[1];return w.useEffect((function(){var n=!0;return r(8068)(Qye,"twitter-embed",(function(){if(window.twttr){if(n){if(!window.twttr.widgets.createTweet)return void $ye.error("Method createTweet is not present anymore in twttr.widget api");window.twttr.widgets.createTweet(e.tweetId,null==t?void 0:t.current,e.options).then((function(t){o(!1),e.onLoad&&e.onLoad(t)}))}}else $ye.error("Failure to load window.twttr, aborting load")})),function(){n=!1}}),[]),w.createElement(w.Fragment,null,i&&w.createElement(w.Fragment,null,e.placeholder),w.createElement("div",{ref:t}))};const Zye={borderRadius:{chatViewComponent:"24px",chatProfile:"32px",messageInput:"13px",searchInput:"99px",modal:"16px",modalInnerComponents:"12px"},backgroundColor:{chatViewComponentBackground:"linear-gradient(179.97deg, #EEF5FF 0.02%, #ECE9FA 123.25%)",chatProfileBackground:"#fff",messageInputBackground:"#fff",chatSentBubbleBackground:"rgb(202, 89, 155)",chatReceivedBubbleBackground:"#fff",encryptionMessageBackground:"#fff",buttonBackground:"rgb(202, 89, 155)",searchInputBackground:"rgb(244, 245, 250)",modalBackground:"#fff",modalInputBackground:"transparent",modalHoverBackground:"rgb(244, 245, 250)",buttonDisableBackground:"#DFDEE9",toastSuccessBackground:"linear-gradient(90.15deg, #30CC8B -125.65%, #30CC8B -125.63%, #F3FFF9 42.81%)",toastErrorBackground:"linear-gradient(90.15deg, #FF2070 -125.65%, #FF2D79 -125.63%, #FFF9FB 42.81%)",toastShadowBackground:"#ccc",criteriaLabelBackground:"#657795"},fontSize:{chatProfileText:"17px",messageInputText:"16px",chatSentBubbleText:"16px",chatReceivedBubbleText:"16px",timestamp:"12px",encryptionMessageText:"13px",chatReceivedBubbleAddressText:"16px",chatReceivedBubbleTimestampText:"12px",chatSentBubbleTimestampText:"12px",searchInputText:"16px",searchPlaceholderText:"16px"},fontWeight:{chatProfileText:"300",messageInputText:"400",chatSentBubbleText:"400",chatReceivedBubbleText:"400",timestamp:"400",encryptionMessageText:"400",chatReceivedBubbleAddressText:"300",chatReceivedBubbleTimestampText:"400",chatSentBubbleTimestampText:"400",searchInputText:"400",searchPlaceholderText:"400"},fontFamily:"inherit",border:{chatViewComponent:"none",chatProfile:"none",messageInput:"none",searchInput:"1px solid transparent",modal:"none",modalInnerComponents:"1px solid rgb(194, 203, 219)"},iconColor:{emoji:"rgb(101, 119, 149)",attachment:"rgb(101, 119, 149)",sendButton:"rgb(101, 119, 149)",groupSettings:"rgb(101, 119, 149)"},textColor:{chatProfileText:"#000",messageInputText:"#000",chatSentBubbleText:"#fff",chatReceivedBubbleText:"#000",timestamp:"400",encryptionMessageText:"#000",buttonText:"#fff",buttonDisableText:"#AFB3BF",chatReceivedBubbleAddressText:"#000",chatReceivedBubbleTimestampText:"#000",chatSentBubbleTimestampText:"#fff",searchInputText:"#000",searchPlaceholderText:"rgb(101, 119, 149)",modalHeadingText:"#000",modalSubHeadingText:"rgb(101, 119, 149)"},backdropFilter:"none",spinnerColor:"rgb(202, 89, 155)",scrollbarColor:"rgb(202, 89, 155)"},Xye={borderRadius:{chatViewComponent:"24px",chatProfile:"32px",messageInput:"13px",searchInput:"99px",modal:"16px",modalInnerComponents:"12px"},backgroundColor:{chatViewComponentBackground:"rgb(40, 42, 46);",chatProfileBackground:"rgb(64, 70, 80);",messageInputBackground:"rgb(64, 70, 80);",chatSentBubbleBackground:"rgb(202, 89, 155)",chatReceivedBubbleBackground:"rgb(64, 70, 80);",encryptionMessageBackground:"rgb(64, 70, 80);",buttonBackground:"rgb(202, 89, 155)",modalBackground:"rgb(47, 49, 55)",criteriaLabelBackground:"rgb(47, 49, 55)",modalInputBackground:"transparent",modalHoverBackground:"rgb(64, 70, 80)",buttonDisableBackground:"#787E99",toastSuccessBackground:"linear-gradient(90.15deg, #30CC8B -125.65%, #30CC8B -125.63%, #2F3137 42.81%)",toastErrorBackground:"linear-gradient(89.96deg, #FF2070 -101.85%, #2F3137 51.33%)",toastShadowBackground:"#00000010"},fontSize:{chatProfileText:"17px",messageInputText:"16px",chatSentBubbleText:"16px",chatReceivedBubbleText:"16px",timestamp:"12px",encryptionMessageText:"13px",chatReceivedBubbleAddressText:"16px",chatReceivedBubbleTimestampText:"12px",chatSentBubbleTimestampText:"12px",searchInputText:"16px",searchPlaceholderText:"16px"},fontWeight:{chatProfileText:"300",messageInputText:"400",chatSentBubbleText:"400",chatReceivedBubbleText:"400",timestamp:"400",encryptionMessageText:"400",chatReceivedBubbleAddressText:"300",chatReceivedBubbleTimestampText:"400",chatSentBubbleTimestampText:"400",searchInputText:"400",searchPlaceholderText:"400"},fontFamily:"inherit",border:{chatViewComponent:"none",chatProfile:"none",messageInput:"none",searchInput:"1px solid transparent",modal:"none",modalInnerComponents:"1px solid rgb(74, 79, 103)"},iconColor:{emoji:"rgba(120, 126, 153, 1)",attachment:"rgba(120, 126, 153, 1)",sendButton:"rgba(120, 126, 153, 1)",groupSettings:"rgba(120, 126, 153, 1)"},textColor:{chatProfileText:"rgb(182, 188, 214)",messageInputText:"rgb(182, 188, 214)",chatSentBubbleText:"#fff",chatReceivedBubbleText:"rgb(182, 188, 214)",timestamp:"rgb(182, 188, 214)",encryptionMessageText:"rgb(182, 188, 214)",buttonText:"#fff",chatReceivedBubbleAddressText:"rgb(182, 188, 214)",chatReceivedBubbleTimestampText:"rgb(182, 188, 214)",chatSentBubbleTimestampText:"#fff",searchInputText:"#fff",searchPlaceholderText:"rgb(101, 119, 149)",modalHeadingText:"#fff",modalSubHeadingText:"rgb(182, 188, 214)",buttonDisableText:"#B6BCD6"},backdropFilter:"none",spinnerColor:"rgb(202, 89, 155)",scrollbarColor:"rgb(202, 89, 155)"},eve=(0,w.createContext)(Zye),tve=({chat:e})=>{var t,r,n;const{account:i}=(0,w.useContext)(d6),o=(0,w.useContext)(eve);return(0,Tf.jsx)(Tf.Fragment,{children:e.fromCAIP10.split(":")[1]!==i&&(0,Tf.jsxs)(ofe,{theme:o,alignSelf:"start",textAlign:"start",fontSize:null==(t=o.fontSize)?void 0:t.chatReceivedBubbleAddressText,fontWeight:null==(r=o.fontWeight)?void 0:r.chatReceivedBubbleAddressText,color:null==(n=o.textColor)?void 0:n.chatReceivedBubbleAddressText,children:[e.fromDID.split(":")[1].slice(0,6),"...",e.fromDID.split(":")[1].slice(-6)]})})},rve=({chat:e})=>{const{account:t,env:r}=(0,w.useContext)(d6),[n,i]=(0,w.useState)("");return(0,w.useEffect)((()=>{(async()=>{const t=await B8({account:e.fromCAIP10.split(":")[1],env:r});t&&i(t)})()}),[t,e.fromCAIP10]),(0,Tf.jsx)(sfe,{justifyContent:"start",alignItems:"start",children:e.fromCAIP10.split(":")[1]!==t&&(0,Tf.jsx)(sfe,{alignItems:"start",children:n&&(0,Tf.jsx)(afe,{src:n,alt:"profile picture",width:"40px",height:"40px",borderRadius:"50%"})})})},nve=({chat:e,children:t,isGroup:r,maxWidth:n})=>{const i=(0,w.useContext)(eve);return(0,Tf.jsxs)(sfe,{theme:i,flexDirection:"row",justifyContent:"start",gap:"6px",width:"fit-content",maxWidth:n||"auto",children:[r&&(0,Tf.jsx)(rve,{chat:e}),(0,Tf.jsxs)(sfe,{justifyContent:"start",flexDirection:"column",children:[r&&(0,Tf.jsx)(tve,{chat:e}),t]})]})},ive=({chat:e,position:t,isGroup:r})=>{var n,i,o,s,a,u,l,c,h,d;const f=(0,w.useContext)(eve),p=Z8()(e.timestamp).format("hh:mm a");return(0,Tf.jsx)(nve,{chat:e,isGroup:r,maxWidth:"70%",children:(0,Tf.jsxs)(sfe,{gap:"5px",background:t?`${null==(n=f.backgroundColor)?void 0:n.chatSentBubbleBackground}`:`${null==(i=f.backgroundColor)?void 0:i.chatReceivedBubbleBackground}`,padding:"8px 12px",borderRadius:t?"12px 0px 12px 12px":"0px 12px 12px 12px",margin:"5px 0",alignSelf:t?"end":"start",justifyContent:"start",minWidth:"71px",position:"relative",width:"fit-content",color:t?`${null==(o=f.textColor)?void 0:o.chatSentBubbleText}`:`${null==(s=f.textColor)?void 0:s.chatReceivedBubbleText}`,children:[" ",(0,Tf.jsx)(sfe,{flexDirection:"column",padding:"5px 0 15px 0",children:e.messageContent.split("\n").map((e=>{var r,n,i,o,s,a;return(0,Tf.jsx)(ofe,{alignSelf:"start",textAlign:"left",fontSize:t?`${null==(r=f.fontSize)?void 0:r.chatSentBubbleText}`:`${null==(n=f.fontSize)?void 0:n.chatReceivedBubbleText}`,fontWeight:t?`${null==(i=f.fontWeight)?void 0:i.chatSentBubbleText}`:`${null==(o=f.fontWeight)?void 0:o.chatReceivedBubbleText}`,color:t?`${null==(s=f.textColor)?void 0:s.chatSentBubbleText}`:`${null==(a=f.textColor)?void 0:a.chatReceivedBubbleText}`,children:e},Math.random().toString())}))}),(0,Tf.jsx)(ofe,{position:"absolute",fontSize:t?`${null==(a=f.fontSize)?void 0:a.chatSentBubbleTimestampText}`:`${null==(u=f.fontSize)?void 0:u.chatReceivedBubbleTimestampText}`,fontWeight:t?`${null==(l=f.fontWeight)?void 0:l.chatSentBubbleTimestampText}`:`${null==(c=f.fontWeight)?void 0:c.chatReceivedBubbleTimestampText}`,color:t?`${null==(h=f.textColor)?void 0:h.chatSentBubbleText}`:`${null==(d=f.textColor)?void 0:d.chatReceivedBubbleText}`,bottom:"6px",right:"10px",children:p})]})})},ove=({chat:e,isGroup:t})=>{const r=JSON.parse(e.messageContent),n=r.name,i=r.content,o=r.size;return(0,Tf.jsx)(nve,{maxWidth:"fit-content",chat:e,isGroup:t,children:(0,Tf.jsxs)(sfe,{alignSelf:"start",maxWidth:"100%",margin:"5px 0",background:"#343536",borderRadius:"8px",justifyContent:"space-around",padding:"10px 13px",gap:"15px",width:"fit-content",children:[(0,Tf.jsx)(afe,{src:(s=n.split(".").slice(-1)[0],`https://cdn.jsdelivr.net/gh/napthedev/file-icons/file/${s}.svg`),alt:"extension icon",width:"20px",height:"20px"}),(0,Tf.jsxs)(sfe,{flexDirection:"column",gap:"5px",children:[(0,Tf.jsx)(ofe,{color:"#fff",fontSize:"15px",children:X8(n,11)}),(0,Tf.jsx)(ofe,{color:"#fff",fontSize:"12px",children:e9(o)})]}),(0,Tf.jsx)(hve,{href:i,target:"_blank",rel:"noopener noreferrer",download:!0,children:(0,Tf.jsx)(cve,{className:"fa fa-download","aria-hidden":"true"})})]})});var s},sve=({chat:e,position:t,isGroup:r})=>(0,Tf.jsx)(nve,{chat:e,isGroup:r,children:(0,Tf.jsx)(sfe,{alignSelf:t?"end":"start",maxWidth:"65%",width:"fit-content",margin:"5px 0",children:(0,Tf.jsx)(afe,{src:JSON.parse(e.messageContent).content,alt:"",width:"100%",borderRadius:t?"12px 0px 12px 12px":"0px 12px 12px 12px"})})}),ave=({chat:e,position:t,isGroup:r})=>(0,Tf.jsx)(nve,{chat:e,isGroup:r,maxWidth:"fit-content",children:(0,Tf.jsx)(sfe,{alignSelf:t?"end":"start",maxWidth:"65%",margin:"5px 0",width:"fit-content",children:(0,Tf.jsx)(afe,{src:e.messageContent,alt:"",width:"100%",borderRadius:t?"12px 0px 12px 12px":"0px 12px 12px 12px"})})}),uve=({chat:e,tweetId:t,isGroup:r,position:n})=>(0,Tf.jsx)(nve,{chat:e,isGroup:r,maxWidth:"fit-content",children:(0,Tf.jsx)(sfe,{alignSelf:n?"end":"start",maxWidth:"100%",width:"fit-content",margin:"5px 0",children:(0,Tf.jsx)(Jye,{tweetId:t})})}),lve=({decryptedMessagePayload:e})=>{const{account:t}=c9(),r=L8(e.fromDID).toLowerCase()!==(null==t?void 0:t.toLowerCase())?0:1,{tweetId:n,messageType:i}=(({message:e})=>{let t="",r="";const n=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/)?([\w#!:.?+=&%@!-]+)/,i=null==e?void 0:e.split(" ");for(let o=0;o=6){t=e[(null==e?void 0:e.length)-1],r="TwitterFeedLink";break}r="Text";break}return{tweetId:t,messageType:r}})({message:null==e?void 0:e.messageContent}),[o,s]=(0,w.useState)(!1);return(0,w.useEffect)((()=>{"eip155"===e.toDID.split(":")[0]?o&&s(!1):o||s(!0)}),[e.toDID,o]),"TwitterFeedLink"===i&&(e.messageType="TwitterFeedLink"),"GIF"===e.messageType?(0,Tf.jsx)(ave,{isGroup:o,chat:e,position:r}):"Image"===e.messageType?(0,Tf.jsx)(sve,{isGroup:o,chat:e,position:r}):"File"===e.messageType?(0,Tf.jsx)(ove,{isGroup:o,chat:e,position:r}):"TwitterFeedLink"===e.messageType?(0,Tf.jsx)(uve,{tweetId:n,isGroup:o,chat:e,position:r}):(0,Tf.jsx)(ive,{isGroup:o,chat:e,position:r})},cve=hf.i.withConfig({displayName:"ChatViewBubble__FileDownloadIcon",componentId:"sc-15kn8zb-0"})(["color:#575757;"]),hve=hf.a.withConfig({displayName:"ChatViewBubble__FileDownloadIconAnchor",componentId:"sc-15kn8zb-1"})(["font-size:20px;"]),dve="ENCRYPTED",fve="NO_ENCRYPTED",pve="NO_ENCRYPTED_GROUP",mve={ENCRYPTED:{IconComponent:(0,Tf.jsx)(Kye,{size:"15"}),text:"Messages are end-to-end encrypted. Only users in this chat can view or listen to them. Click to learn more."},NO_ENCRYPTED:{IconComponent:(0,Tf.jsx)(qye,{size:"15"}),text:"Messages are not encrypted"},NO_ENCRYPTED_GROUP:{IconComponent:(0,Tf.jsx)(qye,{size:"15"}),text:"Messages in this group are not encrypted"}},gve=({id:e})=>{var t,r;const n=(0,w.useContext)(eve),i=G9(771);return(0,Tf.jsx)(sfe,{padding:"10px",alignSelf:"center",borderRadius:"12px",background:null==(t=n.backgroundColor)?void 0:t.encryptionMessageBackground,margin:"10px 10px 0px",width:i?"80%":"fit-content",children:(0,Tf.jsxs)(yve,{textAlign:"center",children:[mve[e].IconComponent,(0,Tf.jsx)(ofe,{fontSize:"13px",margin:"0 0 0 5px",color:null==(r=n.textColor)?void 0:r.encryptionMessageText,fontWeight:"400",textAlign:"left",children:mve[e].text})]})})},yve=hf(ufe).withConfig({displayName:"MessageEncryption__EncryptionMessageDiv",componentId:"sc-dk1cef-0"})(["display:flex;text-align:center;svg{vertical-align:middle;}"]);var vve=r(98399);const bve=()=>{const[e,t]=(0,w.useState)(),[r,n]=(0,w.useState)(!1),{env:i}=c9(),o=(0,w.useCallback)((async({searchText:r})=>{let o;n(!0);try{o=await AO({chatId:r,env:i})}catch(e){if(!e.message.includes("No group with chatId"))return n(!1),t(e.message),void vve.log(e);try{o=await RU({groupName:r,env:i})}catch(dVe){return n(!1),t(e.message),void vve.log(e)}}return o}),[i]);return{getGroup:o,error:e,loading:r}};var wve=r(98399);const _ve=()=>{const[e,t]=(0,w.useState)(),[r,n]=(0,w.useState)(!1),{account:i,env:o,pgpPrivateKey:s,signer:a}=c9(),u=(0,w.useCallback)((async r=>{const{chatId:u}=r||{};n(!0);try{const e=await dU({status:"Approved",account:i,senderAddress:u,signer:a,pgpPrivateKey:s,env:o});return n(!1),e}catch(e){return n(!1),t(e.message),void wve.log(e)}}),[i,o,a,s]);return{approveChatRequest:u,error:e,loading:r}};var Eve=r(98399);const Ave=({chatFeed:e,chatId:t,setChatFeed:r})=>{var n,i,o,s,a,u;const{pgpPrivateKey:l}=c9(),c={GROUP:`You were invited to the group ${null==e||null==(n=e.groupInformation)?void 0:n.groupName}. Please accept to continue messaging in this group.`,W2W:" Please accept to enable push chat from this wallet"},h=(0,w.useContext)(eve),{approveChatRequest:d,loading:f}=_ve();return(0,Tf.jsxs)(sfe,{color:null==(i=h.textColor)?void 0:i.chatReceivedBubbleText,gap:"10px",background:null==(o=h.backgroundColor)?void 0:o.chatReceivedBubbleBackground,padding:"8px 12px",margin:"7px 0",borderRadius:" 0px 12px 12px 12px",alignSelf:"start",justifyContent:"start",maxWidth:"600px",width:"40%",minWidth:"15%",position:"relative",flexDirection:"column",children:[(0,Tf.jsx)(ofe,{alignSelf:"center",textAlign:"left",fontSize:null==(s=h.fontSize)?void 0:s.chatReceivedBubbleText,fontWeight:null==(a=h.fontWeight)?void 0:a.chatReceivedBubbleText,color:null==(u=h.textColor)?void 0:u.chatReceivedBubbleText,lineHeight:"24px",children:null!=e&&e.groupInformation?c.GROUP:c.W2W}),(0,Tf.jsx)(Mve,{theme:h,onClick:()=>f?null:(async()=>{try{if(!l)return;const n=await d({chatId:t});if(n){const t=Object.assign({},e);t.intent=n,r(t)}}catch(n){Eve.log(n.message)}})(),children:f?(0,Tf.jsx)(Ofe,{color:"#fff",size:"24"}):"Accept"})]})},Mve=hf.button.withConfig({displayName:"ApproveRequestBubble__Button",componentId:"sc-n86oiw-0"})(["border:none;cursor:pointer;border-radius:8px;background:",";border:none;color:",";width:100%;font-size:16px;font-weight:600;line-height:24px;max-height:48px;min-height:48px;padding:0px 24px;display:flex;justify-content:center;align-items:center;"],(e=>e.theme.backgroundColor.buttonBackground),(e=>e.theme.textColor.buttonText)),Sve={FIRST_CHAT:"This is your first conversation with recipient.\n Start the conversation by sending a message.",INVALID_CHAT:"Invalid chatId"},xve=e=>{var t,r,n;const{chatId:i,limit:o=X3,chatFilterList:s=[]}=e||{},{pgpPrivateKey:a,account:u,connectedProfile:l,setConnectedProfile:c}=c9(),[h,d]=(0,w.useState)({}),[f,p]=(0,w.useState)(""),[m,g]=(0,w.useState)(),[y,v]=(0,w.useState)(!0),[b,_]=(0,w.useState)(),{historyMessages:E,loading:A}=d9(),M=(0,w.useRef)(null),[S,x]=(0,w.useState)(!1),{fetchChat:k}=w9(),{fetchChatProfile:T}=g9(),{getGroup:C}=bve(),{messagesSinceLastConnection:I,groupInformationSinceLastConnection:N}=v9(),R=(0,w.useContext)(eve),P=new Set,{env:D}=c9();(0,w.useEffect)((()=>{p("")}),[i,u,D]),(0,w.useEffect)((()=>{(async()=>{if(!l&&u){const e=await T({profileId:u,env:D});e&&c(e)}})()}),[u]),(0,w.useEffect)((()=>{_(void 0),d({}),g(void 0)}),[i,u,a,D]),(0,w.useEffect)((()=>{(async()=>{if(!u&&!D)return;const e=await k({chatId:i});if(Object.keys(e||{}).length)_(null==e?void 0:e.threadhash),d(e);else{let e,r;const n=await $8({searchText:i,fetchChatProfile:T,env:D});var t;if(n?e=G8({user:n}):(r=await C({searchText:i}),r&&(e=G8({groupInformation:r}))),e)null!=(t=e)&&t.groupInformation||p(Sve.FIRST_CHAT),_(e.threadhash),d(e);else p(Sve.INVALID_CHAT)}v(!1)})()}),[i,a,u,D]),(0,w.useEffect)((()=>{if(((e,t,r)=>{var n,i,o,s,a;if(T6.UJ(r)){if(r=D8(r),Object.keys(e||{}).length&&(r.toLowerCase()===(null==(n=e.fromCAIP10)?void 0:n.toLowerCase())&&D8(t).toLowerCase()===(null==(i=e.toCAIP10)?void 0:i.toLowerCase())||r.toLowerCase()===(null==(o=e.toCAIP10)?void 0:o.toLowerCase())&&D8(t).toLowerCase()===(null==(s=e.fromCAIP10)?void 0:s.toLowerCase())))return!0}else if(Object.keys(e||{}).length&&r.toLowerCase()===(null==(a=e.toCAIP10)?void 0:a.toLowerCase()))return!0;return!1})(I,u,i.includes(":")?i.split(":")[1]:i)){const e=h;if(e.msg=I,Object.keys(m||{}).length){const e=K8(m,[I],!1);j(e)}else j([I]),_(I.cid);p(""),d(e),L()}}),[I]),(0,w.useEffect)((()=>{var e;Object.keys(N||{}).length&&((null==h||null==(e=h.groupInformation)?void 0:e.chatId.toLowerCase())===N.chatId.toLowerCase()&&(async()=>{const e=h,t=await C({searchText:i});(t||Object.keys(t||{}).length)&&(e.groupInformation=t,d(e))})())}),[N]),(0,w.useEffect)((()=>{b&&async function(){await O()}()}),[b,a,u,D,h,i]),(0,w.useEffect)((()=>{L()}),[b,u,D,i,a,h]),(0,w.useEffect)((()=>{b&&Object.keys(m||{}).length&&null!=m&&m.messages.length&&(null==m?void 0:m.messages.length)<=o&&(p(""),L())}),[m]),(0,w.useEffect)((()=>{var e,t;!h||null!=h&&null!=(e=h.groupInformation)&&e.isPublic||!u||(null==h||null==(t=h.groupInformation)||t.members.forEach((e=>{e.wallet.toLowerCase()===D8(u).toLowerCase()&&x(!0)})))}),[u,h]);const L=()=>{setTimeout((()=>{M.current&&(M.current.scrollTop=M.current.scrollHeight+100)}),0)},O=async()=>{let e=null;if(e=m?null==m?void 0:m.lastThreadHash:b,e&&(u&&a&&h&&(null==h||!h.groupInformation)||h&&null!=h&&h.groupInformation)){const t=await E({limit:o,threadHash:e});if(null!=t&&t.length)if(Object.keys(m||{})&&null!=m&&m.messages.length){const e=K8(m,t,!0);j(e)}else j(t)}},j=e=>{const t=e.filter((e=>!s.includes(e.cid)));t&&t.length&&g({messages:t,lastThreadHash:t[0].link})},B=({chat:e,dateNum:t})=>{var r,n,i;const o=(s=e.timestamp,Z8()(s).calendar(null,{lastWeek:" dddd",lastDay:"[Yesterday]",sameDay:"[Today]",nextWeek:"dddd",sameElse:"LL"}));var s;return P.add(t),(0,Tf.jsx)(ofe,{margin:"15px 0",fontSize:null==(r=R.fontSize)?void 0:r.timestamp,fontWeight:null==(n=R.fontWeight)?void 0:n.timestamp,color:null==(i=R.textColor)?void 0:i.timestamp,textAlign:"center",children:o})};return(0,Tf.jsxs)(kve,{overflow:"hidden scroll",flexDirection:"column",ref:M,width:"100%",justifyContent:"start",padding:"0 2px",theme:R,blur:!(!h||null==h||!h.groupInformation||null!=h&&null!=(U=h.groupInformation)&&U.isPublic||(S||!a)&&a),onScroll:e=>{e.stopPropagation(),(async()=>{if(M.current){const{scrollTop:e}=M.current;if(0===e){const e=M.current,t=e.scrollTop,r=e.scrollHeight-e.clientHeight;await O();const n=e.scrollHeight-e.clientHeight;e.scrollTop=t+(n-r)}}})()},children:[y?(0,Tf.jsx)(Ofe,{color:R.spinnerColor}):"",!y&&(0,Tf.jsxs)(Tf.Fragment,{children:[h&&(h.publicKey||null!=h&&h.groupInformation&&(null==h||null==(t=h.groupInformation)||!t.isPublic))?(0,Tf.jsx)(gve,{id:dve}):(0,Tf.jsx)(gve,{id:null!=h&&h.groupInformation?pve:fve}),f&&(0,Tf.jsx)(sfe,{margin:"20px 0 0 0",children:(0,Tf.jsx)(ofe,{fontSize:"13px",color:null==(r=R.textColor)?void 0:r.encryptionMessageText,fontWeight:"400",children:f})}),A?(0,Tf.jsx)(Ofe,{color:R.spinnerColor}):"",!A&&(0,Tf.jsxs)(Tf.Fragment,{children:[(0,Tf.jsx)(sfe,{flexDirection:"column",justifyContent:"start",width:"100%",children:(null==m?void 0:m.messages)&&(null==m||null==(n=m.messages)?void 0:n.map(((e,t)=>{const r=Z8()(e.timestamp).format("L"),n=L8(e.fromDID).toLowerCase()!==(null==u?void 0:u.toLowerCase())?0:1;return(0,Tf.jsxs)(Tf.Fragment,{children:[P.has(r)?null:B({chat:e,dateNum:r}),(0,Tf.jsx)(sfe,{justifyContent:n?"end":"start",margin:"7px",children:(0,Tf.jsx)(lve,{decryptedMessagePayload:e},t)})]})})))}),!!Object.keys(h||{}).length&&u&&Y8({chat:h,account:u})&&(0,Tf.jsx)(Ave,{chatFeed:h,chatId:i,setChatFeed:d})]})]})]});var U},kve=hf(sfe).withConfig({displayName:"ChatViewList__ChatViewListCard",componentId:"sc-1e83dab-0"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar{width:5px;}"," overscroll-behavior:contain;scroll-behavior:smooth;"],(e=>e.theme.scrollbarColor),(({blur:e})=>e&&"\n filter: blur(12px);\n ")),Tve={OVERLAY:"OVERLAY",BLUR:"BLUR",TRANSPARENT:"TRANSPARENT"},Cve={RELATIVE:"RELATIVE",GLOBAL:"GLOBAL"},Ive=e=>"number"==typeof e&&!isNaN(e),Nve=e=>"string"==typeof e,Rve=e=>"function"==typeof e,Pve=e=>Nve(e)||Rve(e)?e:null,Dve=e=>(0,w.isValidElement)(e)||Nve(e)||Rve(e)||Ive(e);function Lve(e){let{enter:t,exit:r,appendPosition:n=!1,collapse:i=!0,collapseDuration:o=300}=e;return function(e){let{children:s,position:a,preventExitTransition:u,done:l,nodeRef:c,isIn:h}=e;const d=n?`${t}--${a}`:t,f=n?`${r}--${a}`:r,p=(0,w.useRef)(0);return(0,w.useLayoutEffect)((()=>{const e=c.current,t=d.split(" "),r=n=>{n.target===c.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",r),e.removeEventListener("animationcancel",r),0===p.current&&"animationcancel"!==n.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",r),e.addEventListener("animationcancel",r)}),[]),(0,w.useEffect)((()=>{const e=c.current,t=()=>{e.removeEventListener("animationend",t),i?function(e,t,r){void 0===r&&(r=300);const{scrollHeight:n,style:i}=e;requestAnimationFrame((()=>{i.minHeight="initial",i.height=n+"px",i.transition=`all ${r}ms`,requestAnimationFrame((()=>{i.height="0",i.padding="0",i.margin="0",setTimeout(t,r)}))}))}(e,l,o):l()};h||(u?t():(p.current=1,e.className+=` ${f}`,e.addEventListener("animationend",t)))}),[h]),w.createElement(w.Fragment,null,s)}}function Ove(e,t){return null!=e?{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}:{}}const jve={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const r=this.list.get(e).filter((e=>e!==t));return this.list.set(e,r),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const r=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(r)}))}},Bve=e=>{let{theme:t,type:r,...n}=e;return w.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${r})`,...n})},Uve={info:function(e){return w.createElement(Bve,{...e},w.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return w.createElement(Bve,{...e},w.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return w.createElement(Bve,{...e},w.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return w.createElement(Bve,{...e},w.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return w.createElement("div",{className:"Toastify__spinner"})}};function Fve(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function zve(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function Hve(e){let{closeToast:t,theme:r,ariaLabel:n="close"}=e;return w.createElement("button",{className:`Toastify__close-button Toastify__close-button--${r}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":n},w.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},w.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function Gve(e){let{delay:t,isRunning:r,closeToast:n,type:i="default",hide:o,className:s,style:a,controlledProgress:u,progress:l,rtl:c,isIn:h,theme:d}=e;const f=o||u&&0===l,p={...a,animationDuration:`${t}ms`,animationPlayState:r?"running":"paused",opacity:f?0:1};u&&(p.transform=`scaleX(${l})`);const m=(0,Gfe.default)("Toastify__progress-bar",u?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${d}`,`Toastify__progress-bar--${i}`,{"Toastify__progress-bar--rtl":c}),g=Rve(s)?s({rtl:c,type:i,defaultClassName:m}):(0,Gfe.default)(m,s);return w.createElement("div",{role:"progressbar","aria-hidden":f?"true":"false","aria-label":"notification timer",className:g,style:p,[u&&l>=1?"onTransitionEnd":"onAnimationEnd"]:u&&l<1?null:()=>{h&&n()}})}const Yve=e=>{const{isRunning:t,preventExitTransition:r,toastRef:n,eventHandlers:i}=function(e){const[t,r]=(0,w.useState)(!1),[n,i]=(0,w.useState)(!1),o=(0,w.useRef)(null),s=(0,w.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,a=(0,w.useRef)(e),{autoClose:u,pauseOnHover:l,closeToast:c,onClick:h,closeOnClick:d}=e;function f(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),s.didMove=!1,document.addEventListener("mousemove",y),document.addEventListener("mouseup",v),document.addEventListener("touchmove",y),document.addEventListener("touchend",v);const r=o.current;s.canCloseOnClick=!0,s.canDrag=!0,s.boundingRect=r.getBoundingClientRect(),r.style.transition="",s.x=Fve(t.nativeEvent),s.y=zve(t.nativeEvent),"x"===e.draggableDirection?(s.start=s.x,s.removalDistance=r.offsetWidth*(e.draggablePercent/100)):(s.start=s.y,s.removalDistance=r.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function p(t){if(s.boundingRect){const{top:r,bottom:n,left:i,right:o}=s.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&s.x>=i&&s.x<=o&&s.y>=r&&s.y<=n?g():m()}}function m(){r(!0)}function g(){r(!1)}function y(r){const n=o.current;s.canDrag&&n&&(s.didMove=!0,t&&g(),s.x=Fve(r),s.y=zve(r),s.delta="x"===e.draggableDirection?s.x-s.start:s.y-s.start,s.start!==s.x&&(s.canCloseOnClick=!1),n.style.transform=`translate${e.draggableDirection}(${s.delta}px)`,n.style.opacity=""+(1-Math.abs(s.delta/s.removalDistance)))}function v(){document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",v),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",v);const t=o.current;if(s.canDrag&&s.didMove&&t){if(s.canDrag=!1,Math.abs(s.delta)>s.removalDistance)return i(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,w.useEffect)((()=>{a.current=e})),(0,w.useEffect)((()=>(o.current&&o.current.addEventListener("d",m,{once:!0}),Rve(e.onOpen)&&e.onOpen((0,w.isValidElement)(e.children)&&e.children.props),()=>{const e=a.current;Rve(e.onClose)&&e.onClose((0,w.isValidElement)(e.children)&&e.children.props)})),[]),(0,w.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||g(),window.addEventListener("focus",m),window.addEventListener("blur",g)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",m),window.removeEventListener("blur",g))})),[e.pauseOnFocusLoss]);const b={onMouseDown:f,onTouchStart:f,onMouseUp:p,onTouchEnd:p};return u&&l&&(b.onMouseEnter=g,b.onMouseLeave=m),d&&(b.onClick=e=>{h&&h(e),s.canCloseOnClick&&c()}),{playToast:m,pauseToast:g,isRunning:t,preventExitTransition:n,toastRef:o,eventHandlers:b}}(e),{closeButton:o,children:s,autoClose:a,onClick:u,type:l,hideProgressBar:c,closeToast:h,transition:d,position:f,className:p,style:m,bodyClassName:g,bodyStyle:y,progressClassName:v,progressStyle:b,updateId:_,role:E,progress:A,rtl:M,toastId:S,deleteToast:x,isIn:k,isLoading:T,iconOut:C,closeOnClick:I,theme:N}=e,R=(0,Gfe.default)("Toastify__toast",`Toastify__toast-theme--${N}`,`Toastify__toast--${l}`,{"Toastify__toast--rtl":M},{"Toastify__toast--close-on-click":I}),P=Rve(p)?p({rtl:M,position:f,type:l,defaultClassName:R}):(0,Gfe.default)(R,p),D=!!A||!a,L={closeToast:h,type:l,theme:N};let O=null;return!1===o||(O=Rve(o)?o(L):(0,w.isValidElement)(o)?(0,w.cloneElement)(o,L):Hve(L)),w.createElement(d,{isIn:k,done:x,position:f,preventExitTransition:r,nodeRef:n},w.createElement("div",{id:S,onClick:u,className:P,...i,style:m,ref:n},w.createElement("div",{...k&&{role:E},className:Rve(g)?g({type:l}):(0,Gfe.default)("Toastify__toast-body",g),style:y},null!=C&&w.createElement("div",{className:(0,Gfe.default)("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!T})},C),w.createElement("div",null,s)),O,w.createElement(Gve,{..._&&!D?{key:`pb-${_}`}:{},rtl:M,theme:N,delay:a,isRunning:t,isIn:k,closeToast:h,hide:c,type:l,style:b,className:v,controlledProgress:D,progress:A||0})))},Kve=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},qve=Lve(Kve("bounce",!0)),Wve=(Lve(Kve("slide",!0)),Lve(Kve("zoom")),Lve(Kve("flip")),(0,w.forwardRef)(((e,t)=>{const{getToastToRender:r,containerRef:n,isToastActive:i}=function(e){const[,t]=(0,w.useReducer)((e=>e+1),0),[r,n]=(0,w.useState)([]),i=(0,w.useRef)(null),o=(0,w.useRef)(new Map).current,s=e=>-1!==r.indexOf(e),a=(0,w.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:s,getToast:e=>o.get(e)}).current;function u(e){let{containerId:t}=e;const{limit:r}=a.props;!r||t&&a.containerId!==t||(a.count-=a.queue.length,a.queue=[])}function l(e){n((t=>null==e?[]:t.filter((t=>t!==e))))}function c(){const{toastContent:e,toastProps:t,staleId:r}=a.queue.shift();d(e,t,r)}function h(e,r){let{delay:n,staleId:s,...u}=r;if(!Dve(e)||function(e){return!i.current||a.props.enableMultiContainer&&e.containerId!==a.props.containerId||o.has(e.toastId)&&null==e.updateId}(u))return;const{toastId:h,updateId:f,data:p}=u,{props:m}=a,g=()=>l(h),y=null==f;y&&a.count++;const v={...m,style:m.toastStyle,key:a.toastKey++,...Object.fromEntries(Object.entries(u).filter((e=>{let[t,r]=e;return null!=r}))),toastId:h,updateId:f,data:p,closeToast:g,isIn:!1,className:Pve(u.className||m.toastClassName),bodyClassName:Pve(u.bodyClassName||m.bodyClassName),progressClassName:Pve(u.progressClassName||m.progressClassName),autoClose:!u.isLoading&&(b=u.autoClose,_=m.autoClose,!1===b||Ive(b)&&b>0?b:_),deleteToast(){const e=Ove(o.get(h),"removed");o.delete(h),jve.emit(4,e);const r=a.queue.length;if(a.count=null==h?a.count-a.displayedToast:a.count-1,a.count<0&&(a.count=0),r>0){const e=null==h?a.props.limit:1;if(1===r||1===e)a.displayedToast++,c();else{const t=e>r?r:e;a.displayedToast=t;for(let e=0;ee in Uve)(r)&&(o=Uve[r](s))),o}(v),Rve(u.onOpen)&&(v.onOpen=u.onOpen),Rve(u.onClose)&&(v.onClose=u.onClose),v.closeButton=m.closeButton,!1===u.closeButton||Dve(u.closeButton)?v.closeButton=u.closeButton:!0===u.closeButton&&(v.closeButton=!Dve(m.closeButton)||m.closeButton);let E=e;(0,w.isValidElement)(e)&&!Nve(e.type)?E=(0,w.cloneElement)(e,{closeToast:g,toastProps:v,data:p}):Rve(e)&&(E=e({closeToast:g,toastProps:v,data:p})),m.limit&&m.limit>0&&a.count>m.limit&&y?a.queue.push({toastContent:E,toastProps:v,staleId:s}):Ive(n)?setTimeout((()=>{d(E,v,s)}),n):d(E,v,s)}function d(e,t,r){const{toastId:i}=t;r&&o.delete(r);const s={content:e,props:t};o.set(i,s),n((e=>[...e,i].filter((e=>e!==r)))),jve.emit(4,Ove(s,null==s.props.updateId?"added":"updated"))}return(0,w.useEffect)((()=>(a.containerId=e.containerId,jve.cancelEmit(3).on(0,h).on(1,(e=>i.current&&l(e))).on(5,u).emit(2,a),()=>{o.clear(),jve.emit(3,a)})),[]),(0,w.useEffect)((()=>{a.props=e,a.isToastActive=s,a.displayedToast=r.length})),{getToastToRender:function(t){const r=new Map,n=Array.from(o.values());return e.newestOnTop&&n.reverse(),n.forEach((e=>{const{position:t}=e.props;r.has(t)||r.set(t,[]),r.get(t).push(e)})),Array.from(r,(e=>t(e[0],e[1])))},containerRef:i,isToastActive:s}}(e),{className:o,style:s,rtl:a,containerId:u}=e;function l(e){const t=(0,Gfe.default)("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":a});return Rve(o)?o({position:e,rtl:a,defaultClassName:t}):(0,Gfe.default)(t,Pve(o))}return(0,w.useEffect)((()=>{t&&(t.current=n.current)}),[]),w.createElement("div",{ref:n,className:"Toastify",id:u},r(((e,t)=>{const r=t.length?{...s}:{...s,pointerEvents:"none"};return w.createElement("div",{className:l(e),style:r,key:`container-${e}`},t.map(((e,r)=>{let{content:n,props:o}=e;return w.createElement(Yve,{...o,isIn:i(o.toastId),style:{...o.style,"--nth":r+1,"--len":t.length},key:`toast-${o.key}`},n)})))})))})));Wve.displayName="ToastContainer",Wve.defaultProps={position:"top-right",transition:qve,autoClose:5e3,closeButton:Hve,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let Vve,$ve=new Map,Qve=[],Jve=1;function Zve(){return""+Jve++}function Xve(e){return e&&(Nve(e.toastId)||Ive(e.toastId))?e.toastId:Zve()}function ebe(e,t){return $ve.size>0?jve.emit(0,e,t):Qve.push({content:e,options:t}),t.toastId}function tbe(e,t){return{...t,type:t&&t.type||e,toastId:Xve(t)}}function rbe(e){return(t,r)=>ebe(t,tbe(e,r))}function nbe(e,t){return ebe(e,tbe("default",t))}nbe.loading=(e,t)=>ebe(e,tbe("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),nbe.promise=function(e,t,r){let n,{pending:i,error:o,success:s}=t;i&&(n=Nve(i)?nbe.loading(i,r):nbe.loading(i.render,{...r,...i}));const a={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},u=(e,t,i)=>{if(null==t)return void nbe.dismiss(n);const o={type:e,...a,...r,data:i},s=Nve(t)?{render:t}:t;return n?nbe.update(n,{...o,...s}):nbe(s.render,{...o,...s}),i},l=Rve(e)?e():e;return l.then((e=>u("success",s,e))).catch((e=>u("error",o,e))),l},nbe.success=rbe("success"),nbe.info=rbe("info"),nbe.error=rbe("error"),nbe.warning=rbe("warning"),nbe.warn=nbe.warning,nbe.dark=(e,t)=>ebe(e,tbe("default",{theme:"dark",...t})),nbe.dismiss=e=>{$ve.size>0?jve.emit(1,e):Qve=Qve.filter((t=>null!=e&&t.options.toastId!==e))},nbe.clearWaitingQueue=function(e){return void 0===e&&(e={}),jve.emit(5,e)},nbe.isActive=e=>{let t=!1;return $ve.forEach((r=>{r.isToastActive&&r.isToastActive(e)&&(t=!0)})),t},nbe.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const r=function(e,t){let{containerId:r}=t;const n=$ve.get(r||Vve);return n&&n.getToast(e)}(e,t);if(r){const{props:n,content:i}=r,o={delay:100,...n,...t,toastId:t.toastId||e,updateId:Zve()};o.toastId!==e&&(o.staleId=e);const s=o.render||i;delete o.render,ebe(s,o)}}),0)},nbe.done=e=>{nbe.update(e,{progress:1})},nbe.onChange=e=>(jve.on(4,e),()=>{jve.off(4,e)}),nbe.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},nbe.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},jve.on(2,(e=>{Vve=e.containerId||e,$ve.set(Vve,e),Qve.forEach((e=>{jve.emit(0,e.content,e.options)})),Qve=[]})).on(3,(e=>{$ve.delete(e.containerId||e),0===$ve.size&&jve.off(0).off(1).off(5)}));var ibe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},obe=w.createContext&&w.createContext(ibe),sbe=function(){return sbe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r(0,Tf.jsxs)("svg",{width:null!=t?t:"32",height:null!=r?r:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",cursor:"pointer",children:[(0,Tf.jsx)("path",{d:"M16 10C17.1046 10 18 9.10457 18 8C18 6.89543 17.1046 6 16 6C14.8954 6 14 6.89543 14 8C14 9.10457 14.8954 10 16 10Z",fill:null!=e?e:"#787E99"}),(0,Tf.jsx)("path",{d:"M16 18C17.1046 18 18 17.1046 18 16C18 14.8954 17.1046 14 16 14C14.8954 14 14 14.8954 14 16C14 17.1046 14.8954 18 16 18Z",fill:null!=e?e:"#787E99"}),(0,Tf.jsx)("path",{d:"M16 26C17.1046 26 18 25.1046 18 24C18 22.8954 17.1046 22 16 22C14.8954 22 14 22.8954 14 24C14 25.1046 14.8954 26 16 26Z",fill:null!=e?e:"#787E99"})]}),mbe=()=>(0,Tf.jsxs)("svg",{width:"49",height:"21",viewBox:"0 0 49 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",cursor:"pointer",children:[(0,Tf.jsx)("rect",{width:"49",height:"21",rx:"6",fill:"#282A2E"}),(0,Tf.jsx)("path",{d:"M13.86 14L10.656 5.6H9.348L6.084 14H7.428L8.076 12.26H11.868L12.516 14H13.86ZM9.972 7.208L11.424 11.096H8.52L9.972 7.208ZM19.0121 9.056C18.5201 8.648 17.8841 8.42 17.2361 8.42C15.6281 8.42 14.3561 9.68 14.3561 11.276C14.3561 12.884 15.6281 14.132 17.2361 14.132C17.8841 14.132 18.5201 13.904 19.0121 13.496V14H20.1521V5.6H19.0121V9.056ZM17.2841 13.028C16.2881 13.028 15.5561 12.284 15.5561 11.276C15.5561 10.268 16.2881 9.524 17.2841 9.512C18.2681 9.524 19.0121 10.268 19.0121 11.276C19.0121 12.284 18.2681 13.028 17.2841 13.028ZM26.1371 9.056C25.6451 8.648 25.0091 8.42 24.3611 8.42C22.7531 8.42 21.4811 9.68 21.4811 11.276C21.4811 12.884 22.7531 14.132 24.3611 14.132C25.0091 14.132 25.6451 13.904 26.1371 13.496V14H27.2771V5.6H26.1371V9.056ZM24.4091 13.028C23.4131 13.028 22.6811 12.284 22.6811 11.276C22.6811 10.268 23.4131 9.524 24.4091 9.512C25.3931 9.524 26.1371 10.268 26.1371 11.276C26.1371 12.284 25.3931 13.028 24.4091 13.028Z",fill:"white"}),(0,Tf.jsx)("path",{d:"M41.9062 10.5C41.9062 10.6243 41.8569 10.7435 41.769 10.8315C41.681 10.9194 41.5618 10.9688 41.4375 10.9688H38.4688V13.9375C38.4688 14.0618 38.4194 14.181 38.3315 14.269C38.2435 14.3569 38.1243 14.4062 38 14.4062C37.8757 14.4062 37.7565 14.3569 37.6685 14.269C37.5806 14.181 37.5312 14.0618 37.5312 13.9375V10.9688H34.5625C34.4382 10.9688 34.319 10.9194 34.231 10.8315C34.1431 10.7435 34.0938 10.6243 34.0938 10.5C34.0938 10.3757 34.1431 10.2565 34.231 10.1685C34.319 10.0806 34.4382 10.0312 34.5625 10.0312H37.5312V7.0625C37.5312 6.93818 37.5806 6.81895 37.6685 6.73104C37.7565 6.64314 37.8757 6.59375 38 6.59375C38.1243 6.59375 38.2435 6.64314 38.3315 6.73104C38.4194 6.81895 38.4688 6.93818 38.4688 7.0625V10.0312H41.4375C41.5618 10.0312 41.681 10.0806 41.769 10.1685C41.8569 10.2565 41.9062 10.3757 41.9062 10.5Z",fill:"white"})]});const gbe=hf(ofe).withConfig({displayName:"DropDown__SpanAddress",componentId:"sc-1x3mmiu-0"})(["margin:11px 22px 11px 2px;font-weight:400;size:14px;text-transform:uppercase;color:#fff;spacing:1px;width:100%;"]),ybe=hf(gbe).withConfig({displayName:"DropDown__MobileAddress",componentId:"sc-1x3mmiu-1"})(["@media (min-width:993px){display:none;}"]),vbe=hf(gbe).withConfig({displayName:"DropDown__DesktopAddress",componentId:"sc-1x3mmiu-2"})(["@media (max-width:992px){display:none;}"]),bbe=hf(sfe).withConfig({displayName:"DropDown__DropdownItemContainer",componentId:"sc-1x3mmiu-3"})(["justify-content:flex-start;flex-wrap:nowrap;white-space:nowrap;margin:1px 0;padding:2px 8px;border-radius:12px;cursor:pointer;text-align:left;span{text-wrap:nowrap;}&:hover{background-color:",";}"],(e=>e.hoverBGColor||"none")),wbe=hf.a.withConfig({displayName:"DropDown__A",componentId:"sc-1x3mmiu-4"})(["margin:8px 10px;font-weight:400;font-size:16px;width:max-content;background:",";z-index:11;&:hover{background:transparent !important;}"],(e=>e.color)),_be=function({dropdownValues:e,textColor:t,iconFilter:r,hoverBGColor:n}){const i=(0,w.useContext)(eve),o=e=>{var r;return e.textColor?e.textColor:t||(null==(r=i.textColor)?void 0:r.modalSubHeadingText)},s=e=>{if(navigator&&navigator.clipboard)navigator.clipboard.writeText(e);else{const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}};return(0,Tf.jsx)(Tf.Fragment,{children:e.map((e=>{var t;return"walletAddress"===(null==e?void 0:e.id)?(0,Tf.jsxs)(sfe,{background:"linear-gradient(87.17deg, #B6A0F5 0%, #F46EF7 57.29%, #FF95D5 100%)",borderRadius:"17px",padding:"2px 12px",margin:"0px 0 8px 0",width:"100%",style:{cursor:"pointer"},onClick:()=>{null==e||e.function()},children:[(0,Tf.jsxs)(ofe,{margin:"11px 22px 11px 2px",fontWeight:"400",fontSize:"14px",textTransform:"uppercase",color:"#fff",textAlign:"start",letterSpacing:"1px",width:"100%",children:[(0,Tf.jsx)(vbe,{children:null==e?void 0:e.title}),(0,Tf.jsx)(ybe,{children:X8(null==e?void 0:e.title,6)})]}),(null==e?void 0:e.invertedIcon)&&(0,Tf.jsx)(afe,{src:e.invertedIcon,alt:"icon",width:"auto",cursor:"pointer",filter:"brightness(0) invert(1)",onClick:()=>{s((null==e?void 0:e.value)||"")}}),(null==e?void 0:e.icon)&&(0,Tf.jsx)(afe,{src:e.icon,alt:"icon",width:"auto",cursor:"pointer",onClick:()=>{s((null==e?void 0:e.value)||"")}})]}):(0,Tf.jsxs)(bbe,{hoverBGColor:n,onClick:()=>null==e?void 0:e.function(),children:[(null==e?void 0:e.invertedIcon)&&(0,Tf.jsx)(afe,{src:e.invertedIcon,alt:"icon",width:"100%",filter:r||(null==(t=i.textColor)?void 0:t.modalSubHeadingText)}),(null==e?void 0:e.icon)&&(0,Tf.jsx)(afe,{src:e.icon,alt:"icon",width:"24px",cursor:"pointer"}),!(null!=e&&e.link)&&(0,Tf.jsx)(ofe,{color:o(e),textAlign:"start",margin:"8px 10px",fontWeight:"400",fontSize:"15px",cursor:"pointer",children:e.title}),(null==e?void 0:e.link)&&(0,Tf.jsx)(wbe,{href:null==e?void 0:e.link,target:"_blank",rel:"nofollow",color:o(e),children:e.title})]})}))})};const Ebe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuMTg3NSAzTDI3LjgxMjUgMjkiIHN0cm9rZT0iIzc4N0U5OSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJ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SAyIDFIMjJDMjIuMjY1MiAxIDIyLjUxOTYgMS4xMDUzNiAyMi43MDcxIDEuMjkyODlDMjIuODk0NiAxLjQ4MDQzIDIzIDEuNzM0NzggMjMgMlY5LjMzNzVDMjMgMTkuODM3NSAxNC4wODc1IDIzLjMxMjUgMTIuMzEyNSAyMy45QzEyLjExMDkgMjMuOTc0NyAxMS44ODkxIDIzLjk3NDcgMTEuNjg3NSAyMy45QzkuOTEyNSAyMy4zMTI1IDEgMTkuODM3NSAxIDkuMzM3NVoiIHN0cm9rZT0iIzY1Nzc5NSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==";const Mbe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE2IDI4QzIyLjYyNzQgMjggMjggMjIuNjI3NCAyOCAxNkMyOCA5LjM3MjU4IDIyLjYyNzQgNCAxNiA0QzkuMzcyNTggNCA0IDkuMzcyNTggNCAxNkM0IDIyLjYyNzQgOS4zNzI1OCAyOCAxNiAyOFoiIHN0cm9rZT0iI0U5MzYzNiIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiLz4KPHBhdGggZD0iTTExIDE2SDIxIiBzdHJva2U9IiNFOTM2MzYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPgo=",Sbe=(e,t,r)=>{let n=!1;return e&&t.map((t=>{t[r]==e[r]&&(n=!0)})),n};function xbe(e){return T6.UJ(e)}const kbe=({handleSearch:e,clearInput:t,customStyle:r=null,placeholder:n})=>{var i,o;const s=(0,w.useContext)(eve),[a,u]=(0,w.useState)(""),[l,c]=(0,w.useState)(!1);w.useEffect((()=>{c(!0);const e=setTimeout((()=>{h(),c(!1)}),2e3);return()=>clearTimeout(e)}),[a]);const h=()=>{""!==a.trim()?e({searchedText:a}):t()};return(0,Tf.jsx)(Tbe,{justifyContent:"space-between",margin:"4px 0",gap:"15px",width:"100%",alignItems:"center",children:(0,Tf.jsxs)(Cbe,{theme:s,width:"100%",background:null!=r&&r.background?r.background:null==(i=s.backgroundColor)?void 0:i.searchInputBackground,padding:"8px 12px",borderRadius:null!=r&&r.borderRadius?r.borderRadius:null==(o=s.borderRadius)?void 0:o.searchInput,customStyle:r,children:[(0,Tf.jsx)(Ibe,{theme:s,customStyle:r,type:"text",value:a,onChange:e=>{return t=e.target.value,void u(t);var t},placeholder:n,onKeyDown:e=>{"Enter"===e.key&&h()}}),(0,Tf.jsxs)(ofe,{children:[!l&&!a&&(0,Tf.jsx)(ufe,{cursor:"pointer",width:"17.49px",height:"17.49px",onClick:()=>h(),children:(0,Tf.jsx)(Wye,{})}),!l&&a&&(0,Tf.jsx)(ufe,{cursor:"pointer",onClick:()=>{u(""),t()},width:"17.49px",height:"17.49px",children:(0,Tf.jsx)(Vye,{})}),l&&(0,Tf.jsx)(Ofe,{size:"17.49",color:s.spinnerColor})]})]})})},Tbe=hf(sfe).withConfig({displayName:"ChatSearchInput__Container",componentId:"sc-i2ykdd-0"})(["border-radius:4px;"]),Cbe=hf(sfe).withConfig({displayName:"ChatSearchInput__InputSection",componentId:"sc-i2ykdd-1"})(["border:",";"],(e=>{var t,r;return null!=(t=e.customStyle)&&t.border?e.customStyle.border:null==(r=e.theme.border)?void 0:r.searchInput})),Ibe=hf.input.withConfig({displayName:"ChatSearchInput__Input",componentId:"sc-i2ykdd-2"})(["border:none;background:",";width:100%;flex:1;margin-left:10px;font-style:normal;color:",";font-weight:",";font-size:",";line-height:24px;&:focus{outline:none;background-origin:border;background-clip:padding-box,border-box;}&::placeholder{color:",";font-weight:",";font-size:",";}"],(e=>{var t,r;return null!=(t=e.customStyle)&&t.background?e.customStyle.background:null==(r=e.theme.backgroundColor)?void 0:r.searchInputBackground}),(e=>{var t,r;return null!=(t=e.customStyle)&&t.color?e.customStyle.color:null==(r=e.theme.textColor)?void 0:r.searchInputText}),(e=>{var t,r;return null!=(t=e.customStyle)&&t.fontWeight?e.customStyle.fontWeight:null==(r=e.theme.fontWeight)?void 0:r.searchInputText}),(e=>{var t,r;return null!=(t=e.customStyle)&&t.fontSize?e.customStyle.fontSize:null==(r=e.theme.fontSize)?void 0:r.searchInputText}),(e=>{var t,r;return null!=(t=e.customStyle)&&t.placeholderColor?e.customStyle.placeholderColor:null==(r=e.theme.textColor)?void 0:r.searchPlaceholderText}),(e=>{var t,r;return null!=(t=e.customStyle)&&t.fontWeight?e.customStyle.fontWeight:null==(r=e.theme.fontWeight)?void 0:r.searchInputText}),(e=>{var t,r;return null!=(t=e.customStyle)&&t.fontSize?e.customStyle.fontSize:null==(r=e.theme.fontSize)?void 0:r.searchInputText})),Nbe=({theme:e,member:t,customStyle:r})=>{var n,i,o,s,a,u;return(0,Tf.jsxs)(sfe,{justifyContent:"flex-start",children:[(0,Tf.jsx)(sfe,{height:null!=(n=null==r?void 0:r.imgHeight)?n:"48px",maxWidth:"48px",borderRadius:"100%",overflow:"hidden",margin:"0px 12px 0px 0px",position:"relative",children:(0,Tf.jsx)(afe,{height:null!=(i=null==r?void 0:r.imgHeight)?i:"48px",maxHeight:null!=(o=null==r?void 0:r.imgMaxHeight)?o:"48px",width:"auto",cursor:"pointer",src:null==t?void 0:t.image})}),(0,Tf.jsx)(ofe,{fontSize:null!=(s=null==r?void 0:r.fontSize)?s:"18px",fontWeight:null!=(a=null==r?void 0:r.fontWeight)?a:"400",color:null==(u=e.textColor)?void 0:u.modalSubHeadingText,position:"relative",children:t.wallet})]})};const Rbe=({children:e,clickawayClose:t,width:r})=>{const n=(0,w.useRef)(null),i=(0,w.useContext)(eve);return K3(n,(()=>{t&&t()})),(0,Tf.jsx)(Obe,{ref:n,width:r,theme:i,children:e})},Pbe=({clickawayClose:e,children:t,width:r,modalBackground:n=Tve.OVERLAY,modalPositionType:i=Cve.GLOBAL})=>{const o=(0,w.useContext)(eve);return(0,Tf.jsx)(Lbe,{theme:o,modalBackground:n,modalPositionType:i,children:e?(0,Tf.jsx)(Rbe,{clickawayClose:e,width:r,children:t}):(0,Tf.jsx)(Obe,{width:r,theme:o,children:t})})},Dbe=({handlePrevious:e,handleClose:t,title:r})=>{var n;const i=(0,w.useContext)(eve);return(0,Tf.jsxs)(sfe,{justifyContent:"center",alignItems:"center",width:"100%",children:[e&&(0,Tf.jsx)(ofe,{onClick:()=>e(),cursor:"pointer",children:(0,Tf.jsx)(Lfe,{})}),(0,Tf.jsx)(ofe,{fontWeight:"500",fontSize:"24px",color:null==(n=i.textColor)?void 0:n.modalHeadingText,flex:"1",children:r}),t&&(0,Tf.jsx)(afe,{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE1LjYyNSA0LjM3NUw0LjM3NSAxNS42MjUiIHN0cm9rZT0iIzY1Nzc5NSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTE1LjA3OTkgMTUuNDQ0Mkw0LjM3NSA0LjM3NSIgc3Ryb2tlPSIjNjU3Nzk1IiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8L3N2Zz4K",height:"24px",maxHeight:"24px",width:"auto",onClick:()=>t(),cursor:"pointer"})," "]})},Lbe=hf.div.withConfig({displayName:"Modal__ModalOverlay",componentId:"sc-fq4i0y-0"})(["position:",";top:0;left:0;right:0;bottom:0;width:100%;height:100%;backdrop-filter:",";background-color:",";display:flex;color:",";justify-content:center;align-items:center;z-index:2000;max-height:100vh;overflow-y:auto;margin:auto !important;"],(e=>e.modalPositionType===Cve.GLOBAL?"fixed":"absolute"),(e=>e.modalBackground===Tve.BLUR?"blur(3px)":"none"),(e=>e.modalBackground===Tve.OVERLAY?"rgba(0, 0, 0, 0.5)":" transparent"),(e=>{var t;return null!=(t=e.theme.textColor.modalHeadingText)?t:"#000"})),Obe=hf.div.withConfig({displayName:"Modal__ModalParent",componentId:"sc-fq4i0y-1"})(["display:flex;flex-direction:column;align-items:center;padding:24px 20px;max-height:75vh;background:",";border-radius:",";width:",";margin:auto !important;@media (max-width:425px){min-width:300px;}"],(e=>{var t;return null==(t=e.theme.backgroundColor)?void 0:t.modalBackground}),(e=>{var t;return null==(t=e.theme.borderRadius)?void 0:t.modal}),(e=>e.width?e.width:"auto")),jbe=({msg:e,loaderColor:t,textColor:r})=>(0,Tf.jsxs)(Ube,{children:[(0,Tf.jsx)(xde,{color:t,size:"35px"}),(0,Tf.jsx)(Fbe,{style:{color:r},children:e})]}),Bbe=({closeToast:e})=>(0,Tf.jsx)(qbe,{onClick:e,children:(0,Tf.jsx)(fbe,{color:"#657795",size:"100%"})}),Ube=hf.div.withConfig({displayName:"NewToast__LoaderNotification",componentId:"sc-1y55fqo-0"})(["display:flex;flex-direction:row;align-items:center;justify-content:center;margin:1% 3%;"]),Fbe=hf.div.withConfig({displayName:"NewToast__LoaderMessage",componentId:"sc-1y55fqo-1"})(["margin-left:3%;font-size:1rem;font-weight:600;line-height:1.3rem;letter-spacing:0em;text-align:left;"]),zbe=hf.div.withConfig({displayName:"NewToast__Toast",componentId:"sc-1y55fqo-2"})(["display:flex;flex-direction:row;align-items:flex-start;margin:1.5% 1%;"]),Hbe=hf.div.withConfig({displayName:"NewToast__ToastIcon",componentId:"sc-1y55fqo-3"})(["width:15%;margin-right:4%;"]),Gbe=hf.div.withConfig({displayName:"NewToast__ToastContent",componentId:"sc-1y55fqo-4"})(["display:flex;flex-direction:column;align-items:flex-start;"]),Ybe=hf.div.withConfig({displayName:"NewToast__ToastTitle",componentId:"sc-1y55fqo-5"})(["font-weight:500;font-size:1.125rem;letter-spacing:-0.019em;line-height:1.4rem;letter-spacing:0em;text-align:left;margin-bottom:1%;"]),Kbe=hf.div.withConfig({displayName:"NewToast__ToastMessage",componentId:"sc-1y55fqo-6"})(["font-weight:400;font-size:0.9375rem;line-height:1.3rem;text-align:left;"]),qbe=hf.button.withConfig({displayName:"NewToast__Button",componentId:"sc-1y55fqo-7"})(["cursor:pointer;background:none;margin:0;padding:0;width:1.3rem;height:1.3rem;border:none;"]),Wbe=(e=3e3,t="top-right")=>{const r=(0,w.useRef)(null),n=(0,w.useContext)(eve),i=Y9(u6.tablet);let o=!1;return{showLoaderToast:({loaderMessage:e})=>{var i,s,a;return o=!0,r.current=nbe((0,Tf.jsx)(rf,{theme:n,children:(0,Tf.jsx)(jbe,{msg:e,loaderColor:n.spinnerColor,textColor:n.textColor.modalHeadingText})}),{position:t,autoClose:!1,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,closeButton:!1,style:{background:null==(i=n.backgroundColor)?void 0:i.modalBackground,border:null==(s=n.border)?void 0:s.modalInnerComponents,boxShadow:`8px 8px 8px ${null==(a=n.backgroundColor)?void 0:a.toastShadowBackground}`,borderRadius:"20px"}})},showMessageToast:({toastTitle:s,toastMessage:a,toastType:u,getToastIcon:l})=>{var c,h,d,f,p;const m=(0,Tf.jsxs)(zbe,{children:[(0,Tf.jsx)(Hbe,{children:l?l(30):""}),(0,Tf.jsxs)(Gbe,{children:[(0,Tf.jsx)(Ybe,{style:{color:null==(c=n.textColor)?void 0:c.modalHeadingText},children:s}),(0,Tf.jsx)(Kbe,{style:{color:null==(h=n.textColor)?void 0:h.modalSubHeadingText},children:a})]})]}),g={position:t,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,progress:void 0,type:nbe.TYPE.DEFAULT,closeButton:Bbe,autoClose:e,style:{background:"SUCCESS"===u?null==(d=n.backgroundColor)?void 0:d.toastSuccessBackground:null==(f=n.backgroundColor)?void 0:f.toastErrorBackground,boxShadow:`10px 10px 10px ${null==(p=n.backgroundColor)?void 0:p.toastShadowBackground}`,borderRadius:"20px",margin:i?"20px":"0px"}};o||(r.current=nbe(m,Object.assign({},g))),nbe.update(r.current,Object.assign({render:m},g))}}},Vbe=({color:e})=>(0,Tf.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Tf.jsx)("path",{d:"M8.15234 6.10618C8.15234 5.63757 8.53222 5.25769 9.00083 5.25769C9.46943 5.25769 9.84931 5.63757 9.84931 6.10618C9.84931 6.57478 9.46943 6.95466 9.00083 6.95466C8.53222 6.95466 8.15234 6.57478 8.15234 6.10618ZM8.15234 9.50011C8.15234 9.03151 8.53222 8.65163 9.00083 8.65163C9.46943 8.65163 9.84931 9.03151 9.84931 9.50011V12.8941C9.84931 13.3627 9.46943 13.7425 9.00083 13.7425C8.53222 13.7425 8.15234 13.3627 8.15234 12.8941V9.50011Z",fill:e||"#575D73"}),(0,Tf.jsx)("circle",{cx:"9",cy:"9.5",r:"8",stroke:e||"#575D73","stroke-width":"1.5"})]}),$be=({label:e,cta:t})=>{var r;const n=(0,w.useContext)(eve);return(0,Tf.jsx)(sfe,{cursor:"pointer",children:(0,Tf.jsxs)(Qbe,{href:t,target:t?"_target":"",children:[(0,Tf.jsx)(Vbe,{}),e&&(0,Tf.jsx)(ofe,{color:null==(r=n.textColor)?void 0:r.modalSubHeadingText,fontSize:"15px",cursor:"pointer",children:e})]})})},Qbe=hf.a.withConfig({displayName:"InfoContainer__Link",componentId:"sc-2gglnx-0"})(["text-decoration:none;display:flex;align-items:center;justify-content:center;gap:6px;"]),Jbe=({key:e,memberData:t,handleMembers:r,handleMemberList:n,darkIcon:i,memberList:o})=>{var s,a,u,l,c,h;const d=(0,w.useContext)(eve),[f,p]=(0,w.useState)(null),[m,g]=(0,w.useState)(0),y=(0,w.useRef)(null);K3(y,(()=>p(null)));const v={id:"dismiss_admin",title:"Dismiss as admin",icon:Ebe,function:()=>E()},b={id:"dismiss_admin",title:"Make group admin",icon:Abe,function:()=>A()},_={id:"remove_user",title:"Remove",icon:Mbe,function:()=>M()},E=()=>{const e=o.map((e=>{var r,n;return(null==e||null==(r=e.wallets)?void 0:r.toLowerCase())==(null==t||null==(n=t.wallets)?void 0:n.toLowerCase())?Object.assign({},e,{isAdmin:!1}):e}));null==r||r(e),p(null)},A=()=>{const e=o.map((e=>{var r,n;return(null==e||null==(r=e.wallets)?void 0:r.toLowerCase())==(null==t||null==(n=t.wallets)?void 0:n.toLowerCase())?Object.assign({},e,{isAdmin:!0}):e}));null==r||r(e),p(null)},M=()=>{n(t),p(null)};return(0,Tf.jsxs)(Zbe,{id:null==t?void 0:t.wallets,background:o?"transparent":null==(s=d.backgroundColor)?void 0:s.modalHoverBackground,border:o?null==(a=d.border)?void 0:a.modalInnerComponents:"none",borderRadius:null==(u=d.borderRadius)?void 0:u.modalInnerComponents,children:[(0,Tf.jsx)(Nbe,{theme:d,member:{wallet:X8(null==(l=t.wallets)?void 0:l.split(":")[1],6,!0),image:t.profilePicture||""}}),(0,Tf.jsxs)(sfe,{justifyContent:"flex-end",children:[(null==t?void 0:t.isAdmin)&&(0,Tf.jsx)(ofe,{background:"#F4DCEA",color:"#D53A94",borderRadius:"8px",padding:"6px",fontWeight:"500",fontSize:"10px",children:"Admin"}),(0,Tf.jsx)(sfe,{maxWidth:"fit-content",onClick:()=>{(e=>{var t;const r=null==(t=document.getElementById(e))?void 0:t.getBoundingClientRect();g(null==r?void 0:r.top)})(null==t?void 0:t.wallets),p(null),o&&Sbe(t,o,"wallets")?p(null==t?void 0:t.wallets):n(t)},children:i})]}),(null==f?void 0:f.toLowerCase())==(null==t||null==(c=t.wallets)?void 0:c.toLowerCase())&&(0,Tf.jsx)(Xbe,{style:{top:m>500?"30%":"45%"},ref:y,theme:d,children:(0,Tf.jsx)(_be,{dropdownValues:null!=t&&t.isAdmin?[v,_]:[b,_],hoverBGColor:null==(h=d.backgroundColor)?void 0:h.modalHoverBackground})})]})},Zbe=hf(sfe).withConfig({displayName:"MemberListContainer__WalletProfileContainer",componentId:"sc-6hilce-0"})(["justify-content:space-between;padding:8px 16px;border:",";position:relative;box-sizing:border-box;width:100%;max-height:64px;align-self:stretch;display:flex;height:auto;z-index:auto;flex:1;@media (max-width:480px){max-width:100%;}"],(e=>e.border)),Xbe=hf.div.withConfig({displayName:"MemberListContainer__DropdownContainer",componentId:"sc-6hilce-1"})(["position:absolute;left:48%;top:69%;border-radius:",";padding:14px 8px;z-index:999999999999 !important;display:flex;flex-direction:column !important;background:",";border:",";@media ","{left:27%;}@media (min-width:426px) and (max-width:1150px){left:48%;}@media (max-width:480px){left:25%;}"],(e=>e.theme.borderRadius.modalInnerComponents),(e=>e.theme.backgroundColor.modalBackground),(e=>e.theme.border.modalInnerComponents),u6.mobileL);var ewe=r(98399);const twe=({onSubmit:e,handlePrevious:t,onClose:r,memberList:n,handleMemberList:i,groupMembers:o,isLoading:s,title:a,submitButtonTitle:u})=>{var l,c,h,d,f;const p=(0,w.useContext)(eve),[m,g]=(0,w.useState)(null),{account:y,env:v}=c9(),b=Y9(u6.mobileL),{fetchChatProfile:_}=g9(),E=Wbe(),A={background:null==(l=p.backgroundColor)?void 0:l.modalInputBackground,border:null==(c=p.border)?void 0:c.modalInnerComponents,placeholderColor:null==(h=p.textColor)?void 0:h.modalSubHeadingText,fontSize:"15px",fontWeight:"400"},M=()=>{g(null)},S=e=>{const t=null==n?void 0:n.filter((t=>t.wallets.toLowerCase()!==e.wallets.toLowerCase()));i(t)};return(0,Tf.jsxs)(sfe,{margin:"auto",width:b?"100%":"410px",flexDirection:"column",padding:b?"0px auto":"0px 10px",children:[(0,Tf.jsx)(Dbe,{title:a||"Add More Wallets",handleClose:r,handlePrevious:t}),(0,Tf.jsxs)(sfe,{margin:"50px 0 10px 0",flex:"1",flexDirection:"row",justifyContent:"space-between",children:[(0,Tf.jsx)(ofe,{fontSize:"18px",color:null==(d=p.textColor)?void 0:d.modalSubHeadingText,children:"Add Wallets"}),(0,Tf.jsx)(ofe,{fontSize:"14px",color:null==(f=p.textColor)?void 0:f.modalSubHeadingText,children:o?`0${(null==n?void 0:n.length)+(null==o?void 0:o.length)} / 5000 Members`:`0${null==n?void 0:n.length} / 5000 Members`})]}),(0,Tf.jsx)(sfe,{flex:"1",children:(0,Tf.jsx)(kbe,{handleSearch:async({searchedText:e})=>{const t=await $8({searchText:e,fetchChatProfile:_,env:v});t?g(t):E.showMessageToast({toastTitle:"Error",toastMessage:"Invalid Address",toastType:"ERROR",getToastIcon:e=>(0,Tf.jsx)(dbe,{size:e,color:"red"})})},clearInput:M,placeholder:"Search Web3 domain or 0x123...",customStyle:A})}),m&&(0,Tf.jsx)(rwe,{children:(0,Tf.jsx)(Jbe,{memberData:m,handleMemberList:e=>{let t="";const r=null==n?void 0:n.find((t=>t.wallets.toLowerCase()===e.wallets.toLowerCase()));ewe.log("member",e),t=((e,t,r,n)=>{var i,o;const s=((e,t)=>{const r=null==t?void 0:t.find((t=>{var r,n;return(null==(r=t.wallet)?void 0:r.toLowerCase())==(null==(n=e.wallets)?void 0:n.toLowerCase())}));return!!r})(e,r);let a="";return s&&(a="This Member is Already present in the group"),(null==t?void 0:t.length)+(null==r?void 0:r.length)>=9&&(a="No More Addresses can be added"),(null==t?void 0:t.length)>=9&&(a="No More Addresses can be added"),Sbe(e,t,"wallets")&&(a="Address is already added"),(null==e||null==(i=e.wallets)?void 0:i.toLowerCase())===(null==(o=D8(n))?void 0:o.toLowerCase())&&(a="Group Creator cannot be added as Member"),a})(e,n,o,y),t?E.showMessageToast({toastTitle:"Error",toastMessage:t,toastType:"ERROR",getToastIcon:e=>(0,Tf.jsx)(dbe,{size:e,color:"red"})}):r||i((t=>[...t,Object.assign({},e,{isAdmin:!1})])),g(""),M()},darkIcon:(0,Tf.jsx)(mbe,{})})}),(0,Tf.jsx)(nwe,{children:n&&(null==n?void 0:n.map(((e,t)=>(0,Tf.jsx)(Jbe,{memberList:n,memberData:e,handleMembers:i,handleMemberList:S,darkIcon:(0,Tf.jsx)(pbe,{})},t))))}),(0,Tf.jsx)(sfe,{flex:"1",alignSelf:"center",children:(0,Tf.jsxs)(iwe,{onClick:()=>{e()},isLoading:s,memberListCount:(null==n?void 0:n.length)>0,theme:p,disabled:s||0===o.length,children:[!s&&o?u||"Add To Group":"",s&&(0,Tf.jsx)(xde,{size:"30",color:"#fff"})]})})]})},rwe=hf.div.withConfig({displayName:"AddWalletContent__MemberList",componentId:"sc-19wsss8-0"})(["flex:1;width:100%;margin-bottom:40px;"]),nwe=hf.div.withConfig({displayName:"AddWalletContent__MultipleMemberList",componentId:"sc-19wsss8-1"})(["height:fit-content;max-height:216px;padding:0px 2px;width:100%;&::-webkit-scrollbar-track{background-color:",";}&::-webkit-scrollbar{background-color:",";width:6px;}@media (max-width:768px){padding:0px 0px 0px 0px;max-height:35vh;&::-webkit-scrollbar-track{background-color:none;border-radius:9px;}&::-webkit-scrollbar{background-color:none;width:4px;}}&::-webkit-scrollbar-thumb{border-radius:10px;background-image:-webkit-gradient( linear,left top,left bottom,color-stop(0.44,#cf1c84),color-stop(0.72,#cf1c84),color-stop(0.86,#cf1c84) );}"],(e=>e.theme.scrollbarColor),(e=>e.theme.scrollbarColor)),iwe=hf.button.withConfig({displayName:"AddWalletContent__ModalConfirmButton",componentId:"sc-19wsss8-2"})(["margin:60px 0 0 0;width:197px;background:",";color:",";border:",";min-width:50%;box-sizing:border-box;cursor:pointer;border-radius:12px;padding:16px;font-size:16px;font-weight:500;display:flex;align-items:center;justify-content:center;box-shadow:none;height:48px;"],(e=>e.memberListCount?e.theme.backgroundColor.buttonBackground:e.theme.backgroundColor.buttonDisableBackground),(e=>e.memberListCount?e.theme.textColor.buttonText:e.theme.textColor.buttonDisableText),(e=>e.memberListCount?"none":e.theme.border.modal)),owe=({fill:e})=>(0,Tf.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",cursor:"pointer",children:[(0,Tf.jsx)("path",{d:"M16 10C17.1046 10 18 9.10457 18 8C18 6.89543 17.1046 6 16 6C14.8954 6 14 6.89543 14 8C14 9.10457 14.8954 10 16 10Z",fill:e}),(0,Tf.jsx)("path",{d:"M16 18C17.1046 18 18 17.1046 18 16C18 14.8954 17.1046 14 16 14C14.8954 14 14 14.8954 14 16C14 17.1046 14.8954 18 16 18Z",fill:e}),(0,Tf.jsx)("path",{d:"M16 26C17.1046 26 18 25.1046 18 24C18 22.8954 17.1046 22 16 22C14.8954 22 14 22.8954 14 24C14 25.1046 14.8954 26 16 26Z",fill:e})]}),swe=({key:e,member:t,dropdownValues:r,selectedMemberAddress:n,setSelectedMemberAddress:i,dropdownRef:o})=>{var s,a,u,l,c,h,d;const f=(0,w.useContext)(eve),{account:p}=c9(),[m,g]=(0,w.useState)(0);return(0,Tf.jsxs)(awe,{background:(null==(s=t.wallet)?void 0:s.toLowerCase())===(null==n?void 0:n.toLowerCase())?null==(a=f.backgroundColor)?void 0:a.modalHoverBackground:"",id:t.wallet,theme:f,children:[(0,Tf.jsx)(Nbe,{theme:f,member:{wallet:X8(null==t||null==(u=t.wallet)?void 0:u.split(":")[1],6,!0),image:t.image}}),(0,Tf.jsxs)(sfe,{justifyContent:"flex-end",position:"relative",zIndex:"2",children:[(null==t?void 0:t.isAdmin)&&(0,Tf.jsx)(ofe,{background:"#F4DCEA",color:"#D53A94",borderRadius:"8px",padding:"6px",fontWeight:"500",fontSize:"10px",children:"Admin"}),(null==(l=L8(null==t?void 0:t.wallet))?void 0:l.toLowerCase())!==(null==p?void 0:p.toLowerCase())&&r.length>0&&(0,Tf.jsx)(sfe,{maxWidth:"fit-content",padding:"0 0px 0 0",position:"relative",zIndex:"2",onClick:()=>{(e=>{var t;const r=null==(t=document.getElementById(e))?void 0:t.getBoundingClientRect();g(null==r?void 0:r.top)})(t.wallet),i(null==t?void 0:t.wallet)},style:{cursor:"pointer"},children:(0,Tf.jsx)(owe,{fill:null==(c=f.iconColor)?void 0:c.groupSettings})})]}),(null==n?void 0:n.toLowerCase())==(null==t||null==(h=t.wallet)?void 0:h.toLowerCase())&&(0,Tf.jsx)(uwe,{style:{top:m>570?"30%":"40%"},theme:f,ref:o,children:(0,Tf.jsx)(_be,{dropdownValues:r,hoverBGColor:null==(d=f.backgroundColor)?void 0:d.modalHoverBackground})})]},e)},awe=hf(sfe).withConfig({displayName:"MemberProfileCard__ProfileCardItem",componentId:"sc-g1t8d9-0"})(["justify-content:space-between;padding:8px 8px;border-bottom:",";position:relative;box-sizing:border-box;width:100%;max-height:64px;align-self:stretch;display:flex;height:auto;z-index:auto;flex:1;@media (max-width:480px){max-width:100%;}"],(e=>e.theme.border.modalInnerComponents)),uwe=hf(sfe).withConfig({displayName:"MemberProfileCard__DropdownContainer",componentId:"sc-g1t8d9-1"})(["position:absolute;left:48%;top:69%;border-radius:",";padding:14px 8px;z-index:999999999999 !important;display:flex;flex-direction:column !important;background:",";border:",";@media ","{left:27%;}@media (min-width:426px) and (max-width:1150px){left:48%;}@media (max-width:480px){left:25%;}"],(e=>e.theme.borderRadius.modalInnerComponents),(e=>e.theme.backgroundColor.modalBackground),(e=>e.theme.border.modal),u6.mobileL),lwe=e=>[...cwe(null==e?void 0:e.members.filter((e=>1==e.isAdmin))),...cwe(null==e?void 0:e.pendingMembers.filter((e=>1==e.isAdmin)))],cwe=e=>e?e.map((e=>e.wallet)):[],hwe=(e,t,r)=>{const n=lwe(e);if(r){return n.filter((e=>e.toLowerCase()!==(null==t?void 0:t.toLowerCase())))}return[...n,t]},dwe=(e,t)=>{var r;return!(!t||!e)&&(null==e||null==(r=e.members)?void 0:r.some((e=>{var r;return(null==(r=L8(null==e?void 0:e.wallet))?void 0:r.toLowerCase())===(null==t?void 0:t.toLowerCase())&&(null==e?void 0:e.isAdmin)})))};const fwe=(e,t)=>(0,Tf.jsx)(I3,{tooltipContent:`${t}`,children:e}),pwe={11155111:{label:"ETHEREUM SEPOLIA",icon:fwe((0,Tf.jsx)(N3,{}),"Ethereum Sepolia")},1:{label:"ETHEREUM MAINNET",icon:fwe((0,Tf.jsx)(N3,{}),"Ethereum Mainnet")},80001:{label:"POLYGON MUMBAI",icon:fwe((0,Tf.jsx)(R3,{}),"Polygon Mumbai")},137:{label:"POLYGON MAINNET",icon:fwe((0,Tf.jsx)(R3,{}),"Polygon Mainnet")},97:{label:"BSC TESTNET",icon:fwe((0,Tf.jsx)(P3,{}),"Bsc Testnet")},56:{label:"BSC MAINNET",icon:fwe((0,Tf.jsx)(P3,{}),"Bsc Mainnet")},420:{label:"OPTIMISM TESTNET",icon:fwe((0,Tf.jsx)(D3,{}),"Optimism Testnet")},10:{label:"OPTIMISM MAINNET",icon:fwe((0,Tf.jsx)(D3,{}),"Optimism Mainnet")},1442:{label:"POLYGON ZK EVM TESTNET",icon:fwe((0,Tf.jsx)(L3,{}),"Polygon ZK EVM Testnet")},1101:{label:"POLYGON ZK EVM MAINNET",icon:fwe((0,Tf.jsx)(L3,{}),"Polygon ZK EVM Mainnet")},42161:{label:"ARBITRUMONE MAINNET",icon:fwe((0,Tf.jsx)(j3,{}),"Arbitrum Mainnet")},421613:{label:"ARBITRUM TESTNET",icon:fwe((0,Tf.jsx)(j3,{}),"Arbitrum Testnet")},123:{label:"FUSE TESTNET",icon:fwe((0,Tf.jsx)(B3,{}),"Fuse Testnet")},122:{label:"FUSE MAINNET",icon:fwe((0,Tf.jsx)(B3,{}),"Fuse Mainnet")}},mwe=[{heading:"ALL",value:"all"},{heading:"ANY",value:"any"},{heading:"SPECIFIC",value:"specific"}],gwe={any:{head:"Any one",tail:"of the following criteria must be true"},all:{head:"All",tail:"of the following criteria must be true"}},ywe={ENTRY:{heading:"Conditions to Join",subHeading:"Add a condition to join or leave it open for everyone"},CHAT:{heading:"Conditions to Chat",subHeading:"Add a condition to join or leave it open for everyone"}},vwe=({handleMoreOptionsClick:e,setSelectedIndex:t,selectedIndex:r,row:n,col:i,dropDownValues:o})=>{var s,a;const u=(0,w.useContext)(eve),l=(0,w.useRef)(null);return K3(l,(()=>t(null))),(0,Tf.jsxs)(sfe,{onClick:()=>e(n,i),position:"static",children:[(0,Tf.jsx)(pbe,{color:null==(s=u.iconColor)?void 0:s.groupSettings,width:"24",height:"24"}),(null==r?void 0:r.length)&&r[0]===n&&(0,Tf.jsx)(_we,{ref:l,theme:u,children:(0,Tf.jsx)(_be,{dropdownValues:o,hoverBGColor:null==(a=u.backgroundColor)?void 0:a.modalHoverBackground})})]})},bwe=({criteria:e})=>{var t,r,n,i,o,s,a,u,l,c,h,d;const f=(0,w.useContext)(eve),[p]=(e=>{const t=i7(e),[r,n]=(0,w.useState)("...."),[i,o]=(0,w.useState)(!0),s=e=>{n(e),o(!1)};return(0,w.useEffect)((()=>{(async()=>{if(t){const t=e.data,r=t.contract,n=e.category;if(n&&r){if(t.token)return void s(t.token);const e=r.split(":"),[i,o]=[e[2],parseInt(e[1])];if(n===K9){const[e,t]=await r7(i,o);e||s(t.symbol)}else if(n===q9){const[e,t]=await n7(i,o);e||s(t)}}}})()}),[]),[r,i]})(e);return(0,Tf.jsxs)(sfe,{gap:"8px",width:"100%",justifyContent:"start",children:[(0,Tf.jsx)(ofe,{alignSelf:"center",background:null==(t=f.backgroundColor)?void 0:t.criteriaLabelBackground,borderRadius:"4px",fontSize:"10px",color:null==(r=f.textColor)?void 0:r.buttonText,padding:"4px 8px 4px 8px",children:J9[e.category]}),((null==e?void 0:e.category)===q9||(null==e?void 0:e.category)===K9)&&(0,Tf.jsxs)(sfe,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[(0,Tf.jsxs)(ofe,{fontWeight:"700",color:null==(n=f.textColor)?void 0:n.modalHeadingText,children:[(0,Tf.jsxs)(ofe,{fontWeight:"500",color:null==(i=f.textColor)?void 0:i.modalSubHeadingText,children:[Q9[null==e||null==(y=e.data)?void 0:y.comparison]," "]}),null==e||null==(o=e.data)?void 0:o.amount," ",p]}),(0,Tf.jsx)(Mwe,{padding:"3px 6px 0 0",children:pwe[null==e||null==(s=e.data)?void 0:s.contract.split(":")[1]].icon})]}),e.category===W9&&(0,Tf.jsx)(ofe,{fontWeight:"500",color:null==(a=f.textColor)?void 0:a.modalSubHeadingText,children:"Owner and Admin can invite"}),e.category===V9&&(0,Tf.jsx)(ofe,{fontWeight:"500",fontSize:"14px",color:null==(u=f.textColor)?void 0:u.modalSubHeadingText,children:X8(null==(l=e.data)?void 0:l.url,30)}),e.category===$9&&(0,Tf.jsxs)(ofe,{fontWeight:"700",color:null==(c=f.textColor)?void 0:c.modalHeadingText,children:[null==e||null==(h=e.data)?void 0:h.id," ",(0,Tf.jsxs)(ofe,{fontWeight:"500",color:null==(d=f.textColor)?void 0:d.modalSubHeadingText,children:["with"," "]}),null!=e&&null!=(m=e.data)&&m.comparison?null==(g=mwe.find((t=>{var r;return t.value===(null==e||null==(r=e.data)?void 0:r.comparison)})))?void 0:g.heading:"SPECIFIC"," role"]})]});var m,g,y},wwe=({conditionData:e,deleteFunction:t,updateFunction:r,moreOptions:n=!0})=>{const[i,o]=(0,w.useState)(null),s=(0,w.useRef)(null),a=[{id:0,value:"Edit",title:"Edit",icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTUuMDA4OTkgMTVIMS42MDg2OUMxLjQ0NzI2IDE1IDEuMjkyNDMgMTQuOTM1OSAxLjE3ODI4IDE0LjgyMTdDMS4wNjQxMyAxNC43MDc2IDEgMTQuNTUyNyAxI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W5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNOSAxN0MxMy40MTgzIDE3IDE3IDEzLjQxODMgMTcgOUMxNyA0LjU4MTcyIDEzLjQxODMgMSA5IDFDNC41ODE3MiAxIDEgNC41ODE3MiAxIDlDMSAxMy40MTgzIDQuNTgxNzIgMTcgOSAxN1oiIHN0cm9rZT0icmdiYSgxMjAsIDEyNiwgMTUzLCAxKSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiLz4KPC9zdmc+Cg==",function:()=>{t&&i&&(t(i[0]),o(null))}}],u=(0,w.useContext)(eve);K3(s,(()=>o(null)));const l=(e,t)=>{o([e,t])};return(0,Tf.jsx)(sfe,{flexDirection:"column",width:"100%",height:"100%",children:e&&e.slice(1).map(((t,r)=>{var s,c,h;return(0,Tf.jsxs)(sfe,{flexDirection:"column",children:[t.length<=2&&t.length>=1&&t.map(((e,t)=>{var s,c;return(0,Tf.jsx)(Tf.Fragment,{children:e.type&&(0,Tf.jsxs)(sfe,{borderRadius:null==(s=u.borderRadius)?void 0:s.modalInnerComponents,background:null==(c=u.backgroundColor)?void 0:c.modalHoverBackground,padding:"15px 4px 15px 12px",justifyContent:"space-between",children:[(0,Tf.jsx)(bwe,{criteria:e}),n&&(0,Tf.jsx)(vwe,{handleMoreOptionsClick:l,row:r,col:t,dropDownValues:a,setSelectedIndex:o,selectedIndex:i})]})})})),(null==(s=t[0])?void 0:s.operator)&&t.length>2&&(0,Tf.jsxs)(Awe,{theme:u,flexDirection:"row",justifyContent:"space-between",alignItems:"center",borderRadius:null==(c=u.borderRadius)?void 0:c.modalInnerComponents,padding:"8px 0px 8px 8px",gap:"25px",children:[(0,Tf.jsx)(sfe,{flexDirection:"column",gap:"8px",width:"100%",children:t.map(((e,t)=>{var r,n;return(0,Tf.jsx)(Tf.Fragment,{children:e.type&&(0,Tf.jsx)(Tf.Fragment,{children:(0,Tf.jsx)(sfe,{borderRadius:null==(r=u.borderRadius)?void 0:r.modalInnerComponents,background:null==(n=u.backgroundColor)?void 0:n.modalHoverBackground,padding:"15px 4px 15px 12px",justifyContent:"space-between",width:"100%",children:(0,Tf.jsx)(bwe,{criteria:e})})})})}))}),(0,Tf.jsxs)(sfe,{children:[t.map((e=>(0,Tf.jsx)(Tf.Fragment,{children:t.length>2&&e.operator&&!e.type&&(0,Tf.jsx)(Ewe,{theme:u,children:e.operator})}))),n&&(0,Tf.jsx)(vwe,{handleMoreOptionsClick:l,row:r,col:0,dropDownValues:a,setSelectedIndex:o,selectedIndex:i})]})]}),e&&re.theme.borderRadius.modalInnerComponents),(e=>e.theme.backgroundColor.modalBackground),(e=>e.theme.border.modalInnerComponents)),Ewe=hf(ofe).withConfig({displayName:"ConditionsComponent__OperatorSpan",componentId:"sc-v7lmqz-1"})(["padding:4px 8px;margin:8px 0;border-radius:",";background:",";color:",";"],(e=>{var t;return null==(t=e.theme.borderRadius)?void 0:t.modalInnerComponents}),(e=>{var t;return null==(t=e.theme.backgroundColor)?void 0:t.modalHoverBackground}),(e=>{var t;return null==(t=e.theme.textColor)?void 0:t.modalSubHeadingText})),Awe=hf(sfe).withConfig({displayName:"ConditionsComponent__CriteriaGroup",componentId:"sc-v7lmqz-2"})(["border:",";"],(e=>{var t;return null==(t=e.theme.border)?void 0:t.modalInnerComponents})),Mwe=hf(sfe).withConfig({displayName:"ConditionsComponent__ChainIconSVG",componentId:"sc-v7lmqz-3"})(["width:20px;height:20px;svg,svg image,img{width:100%;height:100%;}"]),Swe=e=>{const t=e=>Object.keys(e)[0];if(!e)return[];const r=[],n=Array.isArray(e.conditions)?e.conditions[0]:e.conditions,i=t(n);if(r.push([{operator:i}]),0===n[i].length)return[];const o=n[i];for(const s of o){const e=t(s);"type"===e?r.push([s]):r.push([{operator:e},...s[e].map((e=>Object.assign({},e)))])}return r},xwe=({color:e})=>(0,Tf.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Tf.jsx)("path",{d:"M9.75 0.25C7.82164 0.25 5.93657 0.821828 4.33319 1.89317C2.72982 2.96452 1.48013 4.48726 0.742179 6.26884C0.00422448 8.05042 -0.188858 10.0108 0.187348 11.9021C0.563554 13.7934 1.49215 15.5307 2.85571 16.8943C4.21927 18.2579 5.95656 19.1865 7.84787 19.5627C9.73919 19.9389 11.6996 19.7458 13.4812 19.0078C15.2627 18.2699 16.7855 17.0202 17.8568 15.4168C18.9282 13.8134 19.5 11.9284 19.5 10C19.4973 7.41498 18.4692 4.93661 16.6413 3.10872C14.8134 1.28084 12.335 0.25273 9.75 0.25ZM15.7613 12.7319C15.9318 12.8343 16.0547 13.0003 16.1029 13.1934C16.1511 13.3864 16.1206 13.5907 16.0181 13.7612C15.9157 13.9318 15.7497 14.0547 15.5566 14.1029C15.3636 14.1511 15.1593 14.1206 14.9888 14.0181L10.5 11.3247V16.1875C10.5 16.3864 10.421 16.5772 10.2803 16.7178C10.1397 16.8585 9.94892 16.9375 9.75 16.9375C9.55109 16.9375 9.36033 16.8585 9.21967 16.7178C9.07902 16.5772 9 16.3864 9 16.1875V11.3247L4.51125 14.0181C4.34069 14.1206 4.13641 14.1511 3.94337 14.1029C3.75032 14.0547 3.58432 13.9318 3.48188 13.7612C3.37944 13.5907 3.34895 13.3864 3.39713 13.1934C3.4453 13.0003 3.56819 12.8343 3.73875 12.7319L8.29219 10L3.73875 7.26813C3.56819 7.16569 3.4453 6.99968 3.39713 6.80664C3.34895 6.61359 3.37944 6.40932 3.48188 6.23875C3.58432 6.06818 3.75032 5.9453 3.94337 5.89712C4.13641 5.84895 4.34069 5.87944 4.51125 5.98187L9 8.67531V3.8125C9 3.61359 9.07902 3.42282 9.21967 3.28217C9.36033 3.14152 9.55109 3.0625 9.75 3.0625C9.94892 3.0625 10.1397 3.14152 10.2803 3.28217C10.421 3.42282 10.5 3.61359 10.5 3.8125V8.67531L14.9888 5.98187C15.0732 5.93115 15.1668 5.89756 15.2643 5.88302C15.3617 5.86848 15.4611 5.87327 15.5566 5.89712C15.6522 5.92098 15.7422 5.96342 15.8214 6.02204C15.9005 6.08065 15.9674 6.15429 16.0181 6.23875C16.0689 6.32321 16.1024 6.41683 16.117 6.51427C16.1315 6.6117 16.1267 6.71105 16.1029 6.80664C16.079 6.90222 16.0366 6.99218 15.978 7.07136C15.9193 7.15054 15.8457 7.2174 15.7613 7.26813L11.2078 10L15.7613 12.7319Z",fill:null!=e?e:"#657795"})});var kwe=r(98399);const Twe="REMOVE_MEMBER",Cwe="ADD_MEMBER",Iwe="REMOVE_ADMIN",Nwe="ADD_ADMIN",Rwe={REMOVE_MEMBER:"Removed Member successfully",ADD_MEMBER:"Group Invitation sent",REMOVE_ADMIN:"Admin added successfully",ADD_ADMIN:"Removed added successfully"},Pwe=({groupInfo:e,setShowPendingRequests:t,showPendingRequests:r,theme:n})=>{var i,o,s;return e?(0,Tf.jsxs)(Kwe,{theme:n,children:[(0,Tf.jsxs)(qwe,{onClick:()=>t(!r),children:[(0,Tf.jsx)(ofe,{fontSize:"18px",color:null==(i=n.textColor)?void 0:i.modalSubHeadingText,children:"Pending Requests"}),(0,Tf.jsx)(Vwe,{children:null==e||null==(o=e.pendingMembers)?void 0:o.length}),(0,Tf.jsx)(Wwe,{src:uhe,width:"auto",setPosition:!r,borderRadius:"100%"})]}),r&&(0,Tf.jsx)(Qwe,{flexDirection:"column",flex:"1",justifyContent:"start",borderRadius:"16px",children:(null==e?void 0:e.pendingMembers)&&(null==e||null==(s=e.pendingMembers)?void 0:s.length)>0&&(null==e?void 0:e.pendingMembers.map((e=>{var t;return(0,Tf.jsx)(Ywe,{theme:n,children:(0,Tf.jsx)(Nbe,{theme:n,member:{wallet:X8(null==(t=e.wallet)?void 0:t.split(":")[1],6,!0),image:(null==e?void 0:e.image)||""},customStyle:{imgHeight:"36px",imgMaxHeight:"36px",fontSize:"inherit",fontWeight:"300"}})})})))})]}):null},Dwe=({theme:e,groupInfo:t,alert:r,header:n,subheader:i})=>{var o,s,a,u;const l=(e=>{if(!e)return{CHAT:[],ENTRY:[]};const[t,r]=[Swe(e.chat),Swe(e.entry)];return{CHAT:t,ENTRY:r}})(null==t?void 0:t.rules),c=Y9(u6.mobileL),h=e=>{var t;return l[e].length?null==(t=l[e][0][0])?void 0:t.operator:null};return(0,Tf.jsxs)(sfe,{margin:"5px 0px 0px 0px",gap:"16px",flexDirection:"column",width:"100%",children:[((null==t||null==(o=t.rules)||null==(s=o.chat)?void 0:s.conditions)||(null==t||null==(a=t.rules)||null==(u=a.entry)?void 0:u.conditions))&&(0,Tf.jsx)(Lwe,{theme:e,icon:(0,Tf.jsx)(xwe,{color:r?"#E93636":void 0}),header:null!=n?n:"Gated group",subheader:null!=i?i:"Conditions must be true to join and chat",alert:r}),(0,Tf.jsx)($we,{overflow:"hidden auto",maxHeight:c?"46vh":"49vh",justifyContent:"start",flexDirection:"column",padding:"0 2px 0 0",theme:e,children:Object.keys(ywe).map(((t,r)=>{var n,i,o,s,a,u;return(0,Tf.jsx)(Tf.Fragment,{children:h(t)?(0,Tf.jsxs)(sfe,{flexDirection:"column",children:[(0,Tf.jsx)(ofe,{fontSize:"16px",fontWeight:"500",alignSelf:"start",margin:"5px 0",children:null==(n=ywe[t])?void 0:n.heading}),(0,Tf.jsxs)(ofe,{fontSize:"14px",margin:"15px 0",children:[null==(i=gwe[null==(o=l[t][0][0])?void 0:o.operator])?void 0:i.head,(0,Tf.jsxs)(ofe,{color:null==(s=e.textColor)?void 0:s.modalSubHeadingText,children:[" ",null==(a=gwe[null==(u=l[t][0][0])?void 0:u.operator])?void 0:a.tail]})]}),(0,Tf.jsx)(sfe,{width:"100%",justifyContent:"start",flexDirection:"column",children:(0,Tf.jsx)(wwe,{moreOptions:!1,conditionData:l[t]})})]},r):null})}))})]})},Lwe=({theme:e,icon:t,header:r,subheader:n,handleNextInformation:i,cursor:o,alert:s})=>{var a,u;return(0,Tf.jsxs)(Hwe,{onClick:i,theme:e,alert:s,cursor:"pointer",justifyContent:"start",children:[t,(0,Tf.jsxs)(sfe,{cursor:o,flexDirection:"column",alignItems:"flex-start",gap:"5px",children:[(0,Tf.jsx)(ofe,{cursor:o,fontSize:"18px",textAlign:"left",color:null==(a=e.textColor)?void 0:a.modalHeadingText,children:r}),(0,Tf.jsx)(ofe,{cursor:o,textAlign:"left",fontSize:"12px",color:null==(u=e.textColor)?void 0:u.modalSubHeadingText,children:n})]})]})},Owe=1,jwe=2,Bwe=({theme:e,groupInfo:t,handleNextInformation:r,handleAddRemove:n,setShowAddMoreWalletModal:i,selectedMemberAddress:o,setSelectedMemberAddress:s})=>{var a,u,l,c,h,d,f,p,m,g,y,v,b,_;const{account:E}=c9(),[A,M]=(0,w.useState)(!1),[S,x]=(0,w.useState)(""),k=Y9(u6.mobileL),T=(0,w.useRef)(null);K3(T,(()=>s(null)));const C=async()=>{const e=((e,t)=>{var r;const n=null==e||null==(r=e.members)?void 0:r.filter((e=>{var r;return(null==(r=e.wallet)?void 0:r.toLowerCase())!==(null==t?void 0:t.toLowerCase())}));return cwe([...n,...e.pendingMembers])})(t,o),r=hwe(t,o,!0);await n({memberList:e,adminList:r,updateKey:Twe})},I=async e=>{const r=cwe([...t.members,...t.pendingMembers]),i=hwe(t,o,!(e===Nwe));await n({memberList:r,adminList:i,updateKey:e})},N={id:"dismiss_admin",title:"Dismiss as admin",icon:Ebe,function:()=>I(Iwe)},R={id:"add_admin",title:"Make group admin",icon:Abe,function:()=>I(Nwe)},P={id:"remove_member",title:"Remove",icon:Mbe,function:()=>C(),textColor:"#ED5858"};return(0,Tf.jsxs)(Jwe,{margin:"auto",width:"100%",flexDirection:"column",gap:"16px",maxHeight:k?"59vh":"61vh",height:k?"59vh":"61vh",overflow:"hidden auto",justifyContent:"start",padding:"0 2px 0 0",theme:e,children:[(0,Tf.jsxs)(zwe,{children:[(0,Tf.jsx)(ofe,{fontSize:"18px",color:null==(a=e.textColor)?void 0:a.modalHeadingText,children:"Chat ID"}),(0,Tf.jsxs)(sfe,{gap:"5px",alignSelf:"start",onClick:()=>{H8(null==t?void 0:t.chatId),x("copied")},onMouseEnter:()=>{x("click to copy")},onMouseLeave:()=>{x("")},children:[(0,Tf.jsx)(ofe,{textAlign:"start",fontSize:"16px",fontWeight:"400",color:null==(u=e.textColor)?void 0:u.modalSubHeadingText,children:X8(null==t?void 0:t.chatId,8,!0)}),!!S&&(0,Tf.jsx)(ofe,{cursor:"pointer",position:"relative",padding:"2px 10px",color:null==(l=e.textColor)?void 0:l.modalSubHeadingText,fontSize:"14px",fontWeight:"400",background:null==(c=e.backgroundColor)?void 0:c.modalHoverBackground,borderRadius:"16px",children:S})]})]}),(0,Tf.jsxs)(zwe,{children:[(0,Tf.jsx)(ofe,{fontSize:"18px",color:null==(h=e.textColor)?void 0:h.modalHeadingText,children:"Group Description"}),(0,Tf.jsx)(ofe,{textAlign:"start",fontSize:"16px",fontWeight:"400",color:null==(d=e.textColor)?void 0:d.modalSubHeadingText,children:null==t?void 0:t.groupDescription})]}),(0,Tf.jsx)(Lwe,{theme:e,icon:(0,Tf.jsx)(afe,{cursor:"default",src:null!=t&&t.isPublic?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAABACAYAAABcIPRGAAAACXBIWXMAACxLAAAsSwGlPZapAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAALISURBVHgB7Zp/bhJBFMffmy1o/3KP0BsUT1A4gXgCMdKmtpq2iWLjP8A/hqBJSUwLAZLiCSwnKJ7AvYF4AvuPbmS785xpU9M/dvYXS6ck80kgG97M7PvO8N78yCBkxPZ+d+0y75cttNY58CIB2QhoS5t4vhDPU/khTmPPYpNR6+UUMgBhTl7UTsoMYU+4WYRE4AQ4fRl83B3BHKQWUH3TLaLld0QT6zAfU0L+fNh6PYEUMEjB1ruTI7T4eQbOS9aQ2PlWrVuHFCQagUrj1M65vycZOR6E463OSqPGwUXcCrEF3IHzNyQSsQIxybnu1zjOkwxO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hnCVp6LhAzhVc4ioeZFc35Q/ImMDEG7y5TndPGH8pxuZ5qIlEwHx40/GqG9B6uLujwXRRmC8tyR3zwXVRliYPz5bG62p8tFWYbwFPp0JyLqMoRnnrvOJMgQSa9yVpdJkSHa5SxNniMmScbFa3ty4mQIXfzpkZGyFehBz3GgEuqRuWpelUZdQrXJp3lO+VhjZhM3nSS/ARGCgUjrnufsbk9aeXw+LDyf55RwP9BD2uPizav/ql9/9wNuubJ030nGGxMlQ7x5+f+hSmjiWqZLV4gDS7qrIAl3sdRb+QDqbV31OTmBWAAAAABJRU5ErkJggg==",height:"24px",maxHeight:"24px",width:"auto"}),header:null!=t&&t.isPublic?"Open":"Encrypted",subheader:null!=t&&t.isPublic?"Chats are not encrypted":"Chats are end-to-end encrypted"}),((null==(f=t.rules)||null==(p=f.chat)?void 0:p.conditions)||(null==(m=t.rules)||null==(g=m.entry)?void 0:g.conditions))&&(0,Tf.jsx)(Lwe,{cursor:"pointer",handleNextInformation:r,theme:e,icon:(0,Tf.jsx)(xwe,{}),header:"Gated group",subheader:"Conditions must be true to join"}),dwe(t,E)&&(null==t?void 0:t.members)&&(null==t||null==(y=t.members)?void 0:y.length)<10&&(0,Tf.jsxs)(Gwe,{theme:e,onClick:()=>i(!0),children:[(0,Tf.jsx)(afe,{cursor:"pointer",src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuNSAxMkgyMC41IiBzdHJva2U9IiM3ODdFOTkiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xMi41IDRWMjAiIHN0cm9rZT0iIzc4N0U5OSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPC9zdmc+Cg==",height:"18px",maxHeight:"18px",width:"auto"}),(0,Tf.jsx)(ofe,{cursor:"pointer",color:null==(v=e.textColor)?void 0:v.modalSubHeadingText,margin:"0px 14px",fontSize:"16px",fontWeight:"400",children:"Add more wallets"})]}),(0,Tf.jsx)(sfe,{borderRadius:"16px",children:(null==t||null==(b=t.pendingMembers)?void 0:b.length)>0&&(0,Tf.jsx)(Pwe,{groupInfo:t,setShowPendingRequests:M,showPendingRequests:A,theme:e})}),(0,Tf.jsx)(Qwe,{flexDirection:"column",zIndex:"2",justifyContent:"start",children:(null==t?void 0:t.members)&&(null==t||null==(_=t.members)?void 0:_.length)>0&&(null==t?void 0:t.members.map(((e,r)=>(0,Tf.jsx)(swe,{member:e,dropdownValues:null!=e&&e.isAdmin&&dwe(t,E)?[N,P]:dwe(t,E)?[R,P]:[],selectedMemberAddress:o,setSelectedMemberAddress:s,dropdownRef:T},r))))})]})},Uwe=({theme:e,setModal:t,groupInfo:r,setGroupInfo:n,groupInfoModalBackground:i=Tve.OVERLAY,groupInfoModalPositionType:o=Cve.GLOBAL})=>{var s;const[a,u]=(0,w.useState)(Owe),[l,c]=(0,w.useState)([]),[h,d]=(0,w.useState)(!1),[f,p]=(0,w.useState)(!1);(0,w.useState)(!1);const[m,g]=(0,w.useState)(null),y=Y9(u6.mobileL),v=Wbe(),{updateGroup:b}=B9(),_=null==r?void 0:r.groupCreator,E=null==r||null==(s=r.members)?void 0:s.filter((e=>{var t;return(null==(t=e.wallet)?void 0:t.toLowerCase())!==(null==_?void 0:_.toLowerCase())})),A=[...E,...r.pendingMembers],M=(0,w.useRef)(null),S=()=>{u(a+1)},x=()=>{u(a-1)},k=()=>{switch(a){case Owe:return(0,Tf.jsx)(Bwe,{handleNextInformation:S,theme:e,setModal:t,groupInfo:r,setGroupInfo:n,handleAddRemove:C,setShowAddMoreWalletModal:p,selectedMemberAddress:m,setSelectedMemberAddress:g});case jwe:return(0,Tf.jsx)(Dwe,{groupInfo:r,theme:e});default:return(0,Tf.jsx)(Bwe,{handleNextInformation:S,theme:e,setModal:t,groupInfo:r,setGroupInfo:n,handleAddRemove:C,setShowAddMoreWalletModal:p,selectedMemberAddress:m,setSelectedMemberAddress:g})}};K3(M,(()=>g(null)));const T=()=>{t(!1)},C=async e=>{const{adminList:t,memberList:i,updateKey:o}=e||{};try{d(!0);const{updateResponse:e}=await(async e=>{const{adminList:t,memberList:n}=e||{};return{updateResponse:await b({groupInfo:r,memberList:n,adminList:t})}})({adminList:t,memberList:i});"string"!=typeof e?(n(e),v.showMessageToast({toastTitle:"Success",toastMessage:Rwe[o],toastType:"SUCCESS",getToastIcon:e=>(0,Tf.jsx)(hbe,{size:e,color:"green"})})):v.showMessageToast({toastTitle:"Error",toastMessage:e,toastType:"ERROR",getToastIcon:e=>(0,Tf.jsx)(dbe,{size:e,color:"red"})})}catch(XMe){kwe.error("Error",XMe),v.showMessageToast({toastTitle:"Error",toastMessage:"Please, try again",toastType:"ERROR",getToastIcon:e=>(0,Tf.jsx)(dbe,{size:e,color:"red"})})}finally{o===Cwe&&T(),d(!1),g(null)}},I=async()=>{const e=[...cwe([...r.members,...r.pendingMembers]),...l.map((e=>e.wallets))],t=null==lwe?void 0:lwe(r);await C({memberList:e,adminList:t,updateKey:Cwe})},N=()=>{p(!1)};var R,P,D,L;return r?(0,Tf.jsxs)(Pbe,{clickawayClose:T,modalBackground:i,modalPositionType:o,children:[!f&&(0,Tf.jsxs)(sfe,{margin:"auto",width:y?"100%":"410px",flexDirection:"column",gap:"16px",padding:y?"0px auto":"0px 10px",children:[(0,Tf.jsx)(Dbe,{handlePrevious:2==a?x:void 0,title:"Group Info",handleClose:T}),(0,Tf.jsxs)(Fwe,{children:[(0,Tf.jsx)(afe,{src:null!=(R=null==r?void 0:r.groupImage)?R:"",height:"64px",maxHeight:"64px",width:"auto",borderRadius:"16px"}),(0,Tf.jsxs)(sfe,{flexDirection:"column",alignItems:"flex-start",gap:"5px",children:[(0,Tf.jsx)(ofe,{fontSize:"20px",fontWeight:"500",color:null==(P=e.textColor)?void 0:P.modalHeadingText,children:null==r?void 0:r.groupName}),(0,Tf.jsxs)(ofe,{fontSize:"16px",fontWeight:"500",color:null==(D=e.textColor)?void 0:D.modalSubHeadingText,children:[null==r||null==(L=r.members)?void 0:L.length," Members"]})]})]}),k()]}),f&&(0,Tf.jsx)(twe,{onSubmit:I,handlePrevious:N,onClose:T,memberList:l,handleMemberList:c,groupMembers:A,isLoading:h,modalHeader:"Add More Wallets"})]}):null},Fwe=hf.div.withConfig({displayName:"GroupInfoModal__GroupHeader",componentId:"sc-x8f4tb-0"})(["display:flex;flex-direction:row;width:100%;gap:19px;"]),zwe=hf.div.withConfig({displayName:"GroupInfoModal__GroupDescription",componentId:"sc-x8f4tb-1"})(["display:flex;flex-direction:column;width:100%;align-items:flex-start;gap:5px;"]),Hwe=hf(sfe).withConfig({displayName:"GroupInfoModal__PublicEncrypted",componentId:"sc-x8f4tb-2"})(["display:flex;flex-direction:row;width:100%;gap:12px;align-items:center;border:",";border-radius:",";padding:12px 16px;box-sizing:border-box;background:",";"],(e=>null!=e&&e.alert?"1px solid #E93636":e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents),(e=>e.theme.backgroundColor.modalHoverBackground)),Gwe=hf.div.withConfig({displayName:"GroupInfoModal__AddWalletContainer",componentId:"sc-x8f4tb-3"})(["border:",";border-radius:",";width:100%;padding:20px 16px;box-sizing:border-box;display:flex;flex-direction:row;justify-content:center;cursor:pointer;align-items:center;"],(e=>e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents)),Ywe=hf.div.withConfig({displayName:"GroupInfoModal__GroupPendingMembers",componentId:"sc-x8f4tb-4"})(["margin-top:3px;display:flex;flex-direction:row;width:100%;align-items:center;background:",";padding:10px 15px;box-sizing:border-box;&:last-child{border-radius:0px 0px 16px 16px;}"],(e=>e.theme.backgroundColor.modalHoverBackground)),Kwe=hf.div.withConfig({displayName:"GroupInfoModal__PendingRequestWrapper",componentId:"sc-x8f4tb-5"})(["width:100%;border:",";border-radius:",";padding:0px 0px;box-sizing:border-box;"],(e=>e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents)),qwe=hf.div.withConfig({displayName:"GroupInfoModal__PendingSection",componentId:"sc-x8f4tb-6"})(["width:100%;display:flex;flex-direction:row;align-items:center;flex:1;cursor:pointer;padding:15px 20px;box-sizing:border-box;"]),Wwe=hf(afe).withConfig({displayName:"GroupInfoModal__ArrowImage",componentId:"sc-x8f4tb-7"})(["margin-left:auto;transform:",";"],(e=>null!=e&&e.setPosition?"rotate(0)":"rotate(180deg)")),Vwe=hf.div.withConfig({displayName:"GroupInfoModal__Badge",componentId:"sc-x8f4tb-8"})(["margin:0 0 0 5px;font-size:13px;background:rgb(207,28,132);padding:4px 8px;border-radius:7px;color:white;font-weight:700;"]),$we=hf(sfe).withConfig({displayName:"GroupInfoModal__ConditionSection",componentId:"sc-x8f4tb-9"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar-button{height:20px;}&::-webkit-scrollbar{width:4px;}"],(e=>e.theme.scrollbarColor)),Qwe=hf(sfe).withConfig({displayName:"GroupInfoModal__ProfileSection",componentId:"sc-x8f4tb-10"})(["height:fit-content;"]),Jwe=hf(sfe).withConfig({displayName:"GroupInfoModal__ScrollSection",componentId:"sc-x8f4tb-11"})(["&::-webkit-scrollbar-thumb{background:",";border-radius:10px;}&::-webkit-scrollbar-button{height:40px;}&::-webkit-scrollbar{width:4px;}"],(e=>e.theme.scrollbarColor));var Zwe=r(8816),Xwe=r.n(Zwe),e_e={};e_e.styleTagTransform=Tfe(),e_e.setAttributes=Mfe(),e_e.insert=Efe().bind(null,"head"),e_e.domAPI=wfe(),e_e.insertStyleElement=xfe();vfe()(Xwe(),e_e);Xwe()&&Xwe().locals&&Xwe().locals;const t_e=({chatId:e,style:t,groupInfoModalBackground:r=Tve.OVERLAY,groupInfoModalPositionType:n=Cve.GLOBAL,component:i=null})=>{const o=(0,w.useContext)(eve),{account:s,env:a}=c9(),{getGroupByID:u}=M9(),{fetchChatProfile:l}=p9(),[c,h]=(0,w.useState)(!1),[d,f]=(0,w.useState)(!1),[p,m]=(0,w.useState)(),[g,y]=(0,w.useState)(),[v,b]=(0,w.useState)(""),_=Y9(u6.tablet),E=Q3[a].includes(1)?1:5,A=new r8(E,J3),M=(0,w.useRef)(null),[S,x]=(0,w.useState)(!1);K3(M,(()=>{f(!1)}));const k=()=>{x(!0)},T=async()=>{if(xbe(e)){const t=await l({profileId:e}),r=await(async(e,t)=>{const r=L8(e).toLowerCase(),n=T6.Kn(r);let i;return await t.lookupAddress(n).then((e=>e?(i=e,e):(i=null,null))),i})(e,A);b(r),m(t),y(null),h(!1)}else{const t=await u({groupId:e});y(t),m(null),h(!0)}};var C,I,N,R,P,D,L,O,j,B,U,F,z,H,G;return(0,w.useEffect)((()=>{e&&T()}),[e,s,a]),e&&"Info"===t?(0,Tf.jsxs)(r_e,{theme:o,children:[(0,Tf.jsx)(Nbe,{theme:o,member:{wallet:c?null==g?void 0:g.groupName:v?`${v} (${_?X8(null!=(F=null==p||null==(z=p.did)?void 0:z.split(":")[1])?F:"",4,!0):e})`:X8(p?null!=(H=null==(G=p.did)?void 0:G.split(":")[1])?H:"":e,6,!0),image:p||g?c?null!=(P=null==g?void 0:g.groupImage)?P:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAA1BMVEWIiIhYZW6zAAAASElEQVR4nO3BgQAAAADDoPlTX+AIVQEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADwDcaiAAFXD1ujAAAAAElFTkSuQmCC":null!=(D=null==p||null==(L=p.profile)?void 0:L.picture)?D:null==sce||null==(O=sce(e))||null==(j=O.toDataURL())?void 0:j.toString():null==sce||null==(B=sce(e))||null==(U=B.toDataURL())?void 0:U.toString()},customStyle:{fontSize:"17px"}}),(0,Tf.jsxs)(sfe,{zIndex:"unset",flexDirection:"row",gap:"10px",margin:"0 20px 0 auto",alignSelf:"center",children:[i&&!g&&(0,Tf.jsx)(sfe,{cursor:"pointer",maxHeight:"1.75rem",width:"1.75rem",maxWidth:"1.75rem",minWidth:"1.75rem",children:i}),((null==g||null==(C=g.rules)||null==(I=C.chat)?void 0:I.conditions)||(null==g||null==(N=g.rules)||null==(R=N.entry)?void 0:R.conditions))&&(0,Tf.jsx)(xwe,{}),!(null==g||!g.isPublic)&&(0,Tf.jsx)(afe,{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMwLjkxMzcgMTUuNTk1QzMwLjg3IDE1LjQ5NjMgMjkuODExMiAxMy4xNDc1IDI3LjQ1NzUgMTAuNzkzN0MyNC4zMjEyIDcuNjU3NSAyMC4zNiA2IDE2IDZDMTEuNjQgNiA3LjY3ODc0IDcuNjU3NSA0LjU0MjQ5IDEwLjc5MzdDMi4xODg3NCAxMy4xNDc1IDEuMTI0OTkgMTUuNSAxLjA4NjI0IDE1LjU5NUMxLjAyOTM4IDE1LjcyMjkgMSAxNS44NjEzIDEgMTYuMDAxMkMxIDE2LjE0MTIgMS4wMjkzOCAxNi4yNzk2IDEuMDg2MjQgMTYuNDA3NUMxLjEyOTk5IDE2LjUwNjIgMi4xODg3NCAxOC44NTM4IDQuNTQyNDkgMjEuMjA3NUM3LjY3ODc0IDI0LjM0MjUgMTEuNjQgMjYgMTYgMjZDMjAuMzYgMjYgMjQuMzIxMiAyNC4zNDI1IDI3LjQ1NzUgMjEuMjA3NUMyOS44MTEyIDE4Ljg1MzggMzAuODcgMTYu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yNTggNCAxNkM0IDIyLjYyNzQgOS4zNzI1OCAyOCAxNiAyOFoiIHN0cm9rZT0iIzc4N0U5OSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiLz4KPHBhdGggZD0iTTE2IDE1VjIyIiBzdHJva2U9IiM3ODdFOTkiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+CjxwYXRoIGQ9Ik0xNS43NSAxMkMxNi41Nzg0IDEyIDE3LjI1IDExLjMyODQgMTcuMjUgMTAuNUMxNy4yNSA5LjY3MTU3IDE2LjU3ODQgOSAxNS43NSA5QzE0LjkyMTYgOSAxNC4yNSA5LjY3MTU3IDE0LjI1IDEwLjVDMTQuMjUgMTEuMzI4NCAxNC45MjE2IDEyIDE1Ljc1IDEyWiIgZmlsbD0iIzc4N0U5OSIvPgo8L3N2Zz4K",height:"21px",maxHeight:"21px",width:"auto",cursor:"pointer"}),(0,Tf.jsx)(s_e,{cursor:"pointer",children:"Group Info"})]})})]})]}),S&&(0,Tf.jsx)(Uwe,{theme:o,setModal:x,groupInfo:g,setGroupInfo:y,groupInfoModalBackground:r,groupInfoModalPositionType:n}),(0,Tf.jsx)(Wve,{})]}):null},r_e=hf.div.withConfig({displayName:"ChatProfile__Container",componentId:"sc-1z0n7or-0"})(["width:100%;background:",";border:",";border-radius:",";display:flex;flex-direction:row;align-items:center;padding:6px;box-sizing:border-box;"],(e=>e.theme.backgroundColor.chatProfileBackground),(e=>{var t;return null==(t=e.theme.border)?void 0:t.chatProfile}),(e=>{var t;return null==(t=e.theme.borderRadius)?void 0:t.chatProfile})),n_e=hf.div.withConfig({displayName:"ChatProfile__ImageItem",componentId:"sc-1z0n7or-1"})(["position:relative;"]),i_e=hf.div.withConfig({displayName:"ChatProfile__DropDownBar",componentId:"sc-1z0n7or-2"})(["position:absolute;top:30px;left:-130px;cursor:pointer;display:block;min-width:140px;color:rgb(101,119,149);background:",";border:",";z-index:10;border-radius:",";"],(e=>e.theme.backgroundColor.modalBackground),(e=>e.theme.border.modalInnerComponents),(e=>e.theme.borderRadius.modalInnerComponents)),o_e=hf(ofe).withConfig({displayName:"ChatProfile__DropDownItem",componentId:"sc-1z0n7or-4"})(["display:flex;flex-direction:row;align-items:center;gap:8px;padding:10px 16px;border-radius:16px;z-index:3000000;width:100%;"]),s_e=hf(ofe).withConfig({displayName:"ChatProfile__TextItem",componentId:"sc-1z0n7or-5"})(["white-space:nowrap;overflow:hidden;"]),a_e=()=>(0,Tf.jsx)("svg",{width:"28",height:"28",viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Tf.jsx)("path",{d:"M27.4625 3.24124L20.9125 26.4787C20.8033 26.8722 20.5755 27.2225 20.2602 27.4819C19.9448 27.7414 19.5572 27.8974 19.15 27.9287H18.975C18.5983 27.9279 18.2295 27.8207 17.9111 27.6194C17.5926 27.4182 17.3375 27.1311 17.175 26.7912L12.7125 17.3662C12.6687 17.2716 12.6548 17.1659 12.6727 17.0631C12.6906 16.9604 12.7394 16.8655 12.8125 16.7912L19.225 10.3787C19.3254 10.2878 19.4063 10.1774 19.4627 10.0542C19.5191 9.93107 19.55 9.79773 19.5533 9.6623C19.5566 9.52688 19.5324 9.39219 19.4821 9.26641C19.4318 9.14063 19.3565 9.02637 19.2607 8.93058C19.1649 8.8348 19.0507 8.75947 18.9249 8.70917C18.7991 8.65888 18.6644 8.63466 18.529 8.638C18.3936 8.64133 18.2602 8.67214 18.1371 8.72857C18.0139 8.785 17.9035 8.86585 17.8125 8.96624L11.4 15.3912C11.3258 15.4644 11.2309 15.5132 11.1282 15.5311C11.0254 15.549 10.9197 15.5351 10.825 15.4912L1.45004 11.0537C1.08311 10.8804 0.775053 10.6033 0.563988 10.2567C0.352924 9.91016 0.248118 9.50928 0.262542 9.10374C0.284668 8.68619 0.437922 8.28625 0.700498 7.96083C0.963074 7.63542 1.32159 7.40111 1.72504 7.29124L25.0125 0.728741C25.4198 0.612421 25.8536 0.628425 26.2512 0.774446C26.6488 0.920467 26.9898 1.18896 27.225 1.54124C27.3829 1.79158 27.4857 2.07261 27.5266 2.3657C27.5676 2.65879 27.5457 2.95723 27.4625 3.24124Z",fill:"#D53A94"})}),u_e=({height:e="8",width:t="8"})=>(0,Tf.jsx)("svg",{width:t,height:e,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Tf.jsx)("path",{d:"M0.130244 7.24089L6.48282 0.888862H1.77797C1.6601 0.888862 1.54706 0.842038 1.46371 0.758691C1.38036 0.675344 1.33354 0.562301 1.33354 0.444431C1.33354 0.32656 1.38036 0.213518 1.46371 0.130171C1.54706 0.0468235 1.6601 4.76837e-07 1.77797 4.76837e-07H7.55557C7.67344 4.76837e-07 7.78648 0.0468235 7.86983 0.130171C7.95318 0.213518 8 0.32656 8 0.444431V6.22203C8 6.3399 7.95318 6.45294 7.86983 6.53629C7.78648 6.61964 7.67344 6.66646 7.55557 6.66646C7.4377 6.66646 7.32466 6.61964 7.24131 6.53629C7.15796 6.45294 7.11114 6.3399 7.11114 6.22203V1.51718L0.759113 7.86976C0.717821 7.91105 0.6688 7.9438 0.61485 7.96615C0.560899 7.9885 0.503074 8 0.444678 8C0.386282 8 0.328458 7.9885 0.274508 7.96615C0.220557 7.9438 0.171535 7.91105 0.130244 7.86976C0.0889516 7.82846 0.0561972 7.77944 0.0338502 7.72549C0.0115027 7.67154 4.76837e-07 7.61372 4.76837e-07 7.55532C4.76837e-07 7.49693 0.0115027 7.4391 0.0338502 7.38515C0.0561972 7.3312 0.0889516 7.28218 0.130244 7.24089Z",fill:"#D53A94"})});var l_e=r(98399);const c_e=()=>{const[e,t]=(0,w.useState)(),[r,n]=(0,w.useState)(!1),[i,o]=(0,w.useState)(!0),[s,a]=(0,w.useState)(!1),{pgpPrivateKey:u,env:l,account:c}=c9(),h=(0,w.useCallback)((async r=>{const{chatId:i,did:s}=r||{};n(!0);try{const e=await YU({chatId:i,did:`eip155:${s}`,env:l});return n(!1),!1===e.chat?o(!1):!0===e.chat&&(a(!0),F8(i,!1)),!!e&&void 0}catch(e){return n(!1),o(!1),t(e.message),void l_e.log(e)}}),[u,c,l]);return{verifyAccessControl:h,error:e,loading:r,verificationSuccessfull:i,setVerificationSuccessfull:o,verified:s,setVerified:a}};const h_e=function({darkMode:e=!1}={}){return()=>({label:"Coinbase Wallet",getIcon:async()=>(await r.e(9198).then(r.bind(r,9198))).default,getInterface:async({chains:t,appMetadata:n})=>{const[i]=t,{name:o,icon:s}=n||{},{default:a}=await Promise.all([r.e(8592),r.e(8858),r.e(3173)]).then(r.t.bind(r,48858,19)),u=new(a.default?a.default:a)({appName:o||"",appLogoUrl:`data:image/svg+xml;base64,${window.btoa(s||"")}`,darkMode:e}),l=u.makeWeb3Provider(i.rpcUrl,parseInt(i.id)),c=l.on.bind(l);return l.on=(e,t)=>(c(e,(r=>{t("chainChanged"!==e?r:`0x${r.toString(16)}`)})),l),{provider:l,instance:u}}})},d_e=({autoConnect:e=!1})=>{const{wallet:t,connecting:r,connect:n,disconnect:i}=O9(),{signer:o,setAccount:s,setSigner:a}=c9(),u=(0,w.useContext)(eve);return(0,w.useEffect)((()=>{t&&!e&&i(t),t?(async()=>{const e=new d8(t.provider,"any").getSigner(),r=await O8(e);a(e),s(r)})():t||(s(""),a(void 0))}),[t]),o?(0,Tf.jsx)(Tf.Fragment,{}):(0,Tf.jsx)(f_e,{theme:u,children:(0,Tf.jsx)("button",{onClick:()=>t?i(t):n(),children:r?"connecting":t?"disconnect":"Connect Wallet"})})},f_e=hf.div.withConfig({displayName:"ConnectButton__ConnectButtonDiv",componentId:"sc-c9327r-0"})(["width:fit-content;button{background:",";color:",";text-align:center;font-size:1em;cursor:pointer;border-radius:10px;padding:10px 20px;outline:none;border:none;cursor:pointer;font-weight:600;}button:hover{scale:1.05;transition:0.3s;}@media ","{font-size:12px;}body.modal-open{overflow-y:hidden;}"],(e=>{var t;return`${null==(t=e.theme.backgroundColor)?void 0:t.buttonBackground}!important`}),(e=>{var t;return`${null==(t=e.theme.textColor)?void 0:t.buttonText}!important`}),u6.mobileL);var p_e,m_e,g_e,y_e,v_e=r(58558);!function(e){e.AlphaWallet="isAlphaWallet",e.ApexWallet="isApexWallet",e.AToken="isAToken",e.BifrostWallet="isBifrost",e.Binance="bbcSignTx",e.Bitpie="isBitpie",e.BlockWallet="isBlockWallet",e.Coinbase="isToshi",e.CoinbaseExtension="isCoinbaseWallet",e.Detected="request",e.Dcent="isDcentWallet",e.Exodus="isExodus",e.Frontier="isFrontier",e.Frame="isFrame",e.HuobiWallet="isHbWallet",e.HyperPay="isHyperPay",e.ImToken="isImToken",e.InfinityWallet="isInfinityWallet",e.Liquality="isLiquality",e.MeetOne="wallet",e.MetaMask="isMetaMask",e.MyKey="isMYKEY",e.OwnBit="isOwnbit",e.Status="isStatus",e.Trust="isTrust",e.TokenPocket="isTokenPocket",e.TP="isTp",e.WalletIo="isWalletIO",e.XDEFI="isXDEFI",e.OneInch="isOneInchIOSWallet",e.Tokenary="isTokenary",e.Tally="isTally",e.BraveWallet="isBraveWallet",e.Rabby="isRabby",e.MathWallet="isMathWallet",e.GameStop="isGamestop",e.BitKeep="isBitKeep",e.Sequence="isSequence",e.Core="isAvalanche",e.Opera="isOpera",e.Bitski="isBitski",e.Enkrypt="isEnkrypt",e.Phantom="isPhantom",e.OKXWallet="isOkxWallet",e.Zeal="isZeal",e.Zerion="isZerion",e.Rainbow="isRainbow",e.SafePal="isSafePal",e.DeFiWallet="isDeficonnectProvider",e.Safeheron="isSafeheron",e.Talisman="isTalisman",e.OneKey="isOneKey",e.Fordefi="isFordefi",e.Coin98Wallet="isCoin98",e.SubWallet="isSubWallet"}(p_e||(p_e={})),function(e){e.Binance="https://www.bnbchain.org/ru/blog/binance-extension-wallet/",e.BitKeep="https://bitkeep.com/en/download?type=0",e.Coinbase="https://www.coinbase.com/wallet/downloads",e.MetaMask="https://metamask.io/download/",e.OKXWallet="https://okx.com/download",e.Phantom="https://phantom.app/download",e.Talisman="https://www.talisman.xyz/",e.Trust="https://trustwallet.com/download/",e.OneKey="https://onekey.so/download/",e.RoninWallet="https://wallet.skymavis.com/",e.Coin98Wallet="https://coin98.com/wallet/",e.SubWallet="https://www.subwallet.app/"}(m_e||(m_e={})),function(e){e.AlphaWallet="AlphaWallet",e.ApexWallet="Apex Wallet",e.AToken="AToken",e.BifrostWallet="Bifrost Wallet",e.Binance="Binance Smart Wallet",e.Bitpie="Bitpie",e.Bitski="Bitski",e.BlockWallet="BlockWallet",e.Brave="Brave Wallet",e.Coinbase="Coinbase Wallet",e.Dcent="D'CENT",e.Detected="Detected Wallet",e.Exodus="Exodus",e.Frame="Frame",e.Frontier="Frontier",e.HuobiWallet="Huobi Wallet",e.HyperPay="HyperPay",e.ImToken="imToken",e.InfinityWallet="Infinity Wallet",e.Liquality="Liquality",e.MeetOne="MeetOne",e.MetaMask="MetaMask",e.MyKey="MyKey",e.Opera="Opera Wallet",e.OwnBit="OwnBit",e.Status="Status Wallet",e.Trust="Trust Wallet",e.TokenPocket="TokenPocket",e.TP="TP Wallet",e.WalletIo="Wallet.io",e.XDEFI="XDEFI Wallet",e.OneInch="1inch Wallet",e.Tokenary="Tokenary Wallet",e.Tally="Taho",e.Rabby="Rabby Wallet",e.MathWallet="MathWallet",e.GameStop="GameStop Wallet",e.BitKeep="BitKeep",e.Sequence="Sequence",e.Core="Core",e.Enkrypt="Enkrypt",e.Zeal="Zeal",e.Phantom="Phantom",e.OKXWallet="OKX Wallet",e.Zerion="Zerion",e.Rainbow="Rainbow",e.SafePal="SafePal",e.DeFiWallet="DeFi Wallet",e.Safeheron="Safeheron",e.Talisman="Talisman",e.OneKey="OneKey",e.Fordefi="Fordefi",e.RoninWallet="Ronin Wallet",e.Coin98Wallet="Coin98 Wallet",e.SubWallet="SubWallet"}(g_e||(g_e={})),function(e){e.Ethereum="ethereum",e.Binance="BinanceChain",e.Tally="tally",e.Web3="web3",e.Arbitrum="arbitrum",e.XFI="xfi",e.GameStop="gamestop",e.BitKeep="bitkeep",e.Avalanche="avalanche",e.Bitski="Bitski",e.Enkrypt="enkrypt",e.Zeal="zeal",e.Phantom="phantom",e.OKXWallet="okxwallet",e.Trust="trustwallet",e.Frontier="frontier",e.DeFiConnectProvider="deficonnectProvider",e.Safeheron="safeheron",e.Talisman="talismanEth",e.OneKey="$onekey",e.RoninWallet="ronin",e.Coin98Wallet="coin98",e.SubWallet="SubWallet"}(y_e||(y_e={}));const b_e=null;function w_e(e,t){return async()=>({provider:window.ethereum.providers&&Array.isArray(window.ethereum.providers)?__e(e,t):window.ethereum})}function __e(e,t){return window.ethereum.providers.find((r=>t?!!r[e]&&!E_e(e,r):!!r[e]))}function E_e(e,t){const r=Object.values(p_e).filter((t=>t!==e&&t!==p_e.Detected));return r.some((e=>!!t[e]))}const A_e={label:g_e.MetaMask,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.MetaMask]&&!E_e(p_e.MetaMask,e),getIcon:async()=>(await r.e(4582).then(r.bind(r,94582))).default,getInterface:w_e(p_e.MetaMask,!0),platforms:["all"],externalUrl:m_e.MetaMask},M_e={label:g_e.InfinityWallet,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.InfinityWallet],getIcon:async()=>(await r.e(9822).then(r.bind(r,69822))).default,getInterface:w_e(p_e.InfinityWallet),platforms:["desktop"]},S_e={label:g_e.Exodus,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Exodus],getIcon:async()=>(await r.e(5712).then(r.bind(r,75712))).default,getInterface:w_e(p_e.Exodus),platforms:["all"]},x_e={label:g_e.Frontier,injectedNamespace:y_e.Frontier,checkProviderIdentity:({provider:e})=>!!e&&!!e.ethereum&&!!e.ethereum[p_e.Frontier],getIcon:async()=>(await r.e(931).then(r.bind(r,90931))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.frontier.ethereum)}),platforms:["all"]},k_e={label:g_e.Brave,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.BraveWallet],getIcon:async()=>(await r.e(7641).then(r.bind(r,17641))).default,getInterface:w_e(p_e.BraveWallet),platforms:["all"]},T_e={label:g_e.Binance,injectedNamespace:y_e.Binance,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Binance],getIcon:async()=>(await r.e(2465).then(r.bind(r,52465))).default,getInterface:async()=>{let e={...window.BinanceChain};window.BinanceChain=e;const t=window.BinanceChain.on.bind(window.BinanceChain);window.BinanceChain.on=(e,r)=>{t(e,"chainChanged"===e?e=>{r(`0x${parseInt(e).toString(16)}`)}:r)};const r=(0,T9.createEIP1193Provider)(window.BinanceChain,{eth_chainId:({baseRequest:e})=>e({method:"eth_chainId"}).then((e=>`0x${parseInt(e).toString(16)}`)),eth_selectAccounts:b_e,wallet_switchEthereumChain:b_e});return r.removeListener=(e,t)=>{},{provider:r}},platforms:["desktop"],externalUrl:m_e.Binance},C_e={label:g_e.Coinbase,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Coinbase]||!!e&&!!e[p_e.CoinbaseExtension],getIcon:async()=>(await r.e(6177).then(r.bind(r,56177))).default,getInterface:async()=>{const{provider:e}=await w_e(p_e.CoinbaseExtension)(),t=e.on.bind(e);return e.on=(e,r)=>{t(e,"chainChanged"===e?e=>{r(`0x${parseInt(e).toString(16)}`)}:r)},{provider:e}},platforms:["all"],externalUrl:m_e.Coinbase},I_e={label:g_e.Detected,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Detected],getIcon:async()=>(await r.e(7005).then(r.bind(r,87005))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["all"]},N_e={label:g_e.Trust,injectedNamespace:y_e.Trust,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Trust],getIcon:async()=>(await r.e(6319).then(r.bind(r,56319))).default,getInterface:async()=>{let e;return e=window.hasOwnProperty(y_e.Ethereum)&&window[y_e.Ethereum].isTrust?window[y_e.Ethereum]:window[y_e.Trust],{provider:e}},platforms:["all"],externalUrl:m_e.Trust},R_e={label:g_e.Opera,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Opera],getIcon:async()=>(await r.e(7579).then(r.bind(r,57579))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.ethereum,{eth_requestAccounts:async({baseRequest:e})=>e({method:"eth_accounts"}),eth_selectAccounts:b_e})}),platforms:["all"]},P_e={label:g_e.Status,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Status],getIcon:async()=>(await r.e(1597).then(r.bind(r,21597))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},D_e={label:g_e.AlphaWallet,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.AlphaWallet],getIcon:async()=>(await r.e(8513).then(r.bind(r,88513))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:b_e,eth_selectAccounts:b_e})}),platforms:["mobile"]},L_e={label:g_e.ApexWallet,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.ApexWallet],getIcon:async()=>(await r.e(9211).then(r.bind(r,59211))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["desktop","Chrome","Chromium","Microsoft Edge"]},O_e={label:g_e.AToken,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.AToken],getIcon:async()=>(await r.e(6927).then(r.bind(r,86927))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},j_e={label:g_e.BifrostWallet,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.BifrostWallet],getIcon:async()=>(await r.e(2788).then(r.bind(r,42788))).default,getInterface:w_e(p_e.BifrostWallet),platforms:["all"]},B_e={label:g_e.Bitpie,injectedNamespace:y_e.Ethereum,checkProviderIdentity:()=>!!window.Bitpie,getIcon:async()=>(await r.e(2907).then(r.bind(r,12907))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:b_e,eth_selectAccounts:b_e})}),platforms:["mobile"]},U_e={label:g_e.BlockWallet,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.BlockWallet],getIcon:async()=>(await r.e(7720).then(r.bind(r,17720))).default,getInterface:w_e(p_e.BlockWallet),platforms:["desktop"]},F_e={label:g_e.Frame,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Frame],getIcon:async()=>(await r.e(7054).then(r.bind(r,87054))).default,getInterface:async()=>{const e=window.ethereum;if(!e||!e.connected)throw new Error("Frame App must be open with a hot wallet connected. If not installed first download the Frame App.");return{provider:e}},platforms:["desktop"]},z_e={label:g_e.HuobiWallet,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.HuobiWallet],getIcon:async()=>(await r.e(3158).then(r.bind(r,23158))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:b_e,eth_selectAccounts:b_e})}),platforms:["mobile"]},H_e={label:g_e.HyperPay,injectedNamespace:y_e.Ethereum,checkProviderIdentity:()=>!!window.hiWallet,getIcon:async()=>(await r.e(5207).then(r.bind(r,5207))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:b_e,eth_selectAccounts:b_e})}),platforms:["mobile"]},G_e={label:g_e.ImToken,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.ImToken],getIcon:async()=>(await r.e(5472).then(r.bind(r,45472))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:b_e,eth_selectAccounts:b_e})}),platforms:["mobile"]},Y_e={label:g_e.Liquality,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Liquality],getIcon:async()=>(await r.e(3140).then(r.bind(r,63140))).default,getInterface:async()=>{const e=(0,T9.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:b_e,eth_selectAccounts:b_e});return e.removeListener=(e,t)=>{},{provider:e}},platforms:["desktop"]},K_e={label:g_e.MeetOne,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&"MEETONE"===e[p_e.MeetOne],getIcon:async()=>(await r.e(190).then(r.bind(r,70190))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},q_e={label:g_e.MyKey,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.MyKey],getIcon:async()=>(await r.e(5930).then(r.bind(r,5930))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["mobile"]},W_e={label:g_e.OwnBit,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.OwnBit],getIcon:async()=>(await r.e(7417).then(r.bind(r,17417))).default,getInterface:async()=>{const e=(0,T9.createEIP1193Provider)(window.ethereum,{eth_chainId:({baseRequest:e})=>e({method:"eth_chainId"}).then((e=>`0x${parseInt(e).toString(16)}`)),wallet_switchEthereumChain:b_e,eth_selectAccounts:b_e});return e.removeListener=(e,t)=>{},e.on=(e,t)=>{},{provider:e}},platforms:["mobile"]},V_e={label:g_e.TokenPocket,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.TokenPocket]&&!e[p_e.TP],getIcon:async()=>(await r.e(6251).then(r.bind(r,36251))).default,getInterface:w_e(p_e.TokenPocket),platforms:["all"]},$_e={label:g_e.TP,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.TP],getIcon:async()=>(await r.e(69).then(r.bind(r,80069))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.ethereum,{wallet_switchEthereumChain:b_e,eth_selectAccounts:b_e})}),platforms:["mobile"]},Q_e={label:g_e.XDEFI,injectedNamespace:y_e.XFI,checkProviderIdentity:({provider:e})=>e&&e.ethereum&&e.ethereum[p_e.XDEFI],getIcon:async()=>(await r.e(6498).then(r.bind(r,86498))).default,getInterface:async()=>({provider:window.xfi&&window.xfi.ethereum}),platforms:["all"]},J_e={label:g_e.OneInch,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.OneInch],getIcon:async()=>(await r.e(8588).then(r.bind(r,58588))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.ethereum)}),platforms:["mobile"]},Z_e={label:g_e.Tokenary,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Tokenary],getIcon:async()=>(await r.e(6306).then(r.bind(r,76306))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.ethereum)}),platforms:["all"]},X_e={label:g_e.Tally,injectedNamespace:y_e.Tally,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Tally],getIcon:async()=>(await r.e(627).then(r.bind(r,80627))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.tally)}),platforms:["desktop"]},eEe={label:g_e.Zeal,injectedNamespace:y_e.Zeal,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Zeal],getIcon:async()=>(await r.e(8445).then(r.bind(r,38445))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.zeal)}),platforms:["desktop"]},tEe={label:g_e.Rabby,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Rabby],getIcon:async()=>(await r.e(1331).then(r.bind(r,71331))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.ethereum)}),platforms:["desktop"]},rEe={label:g_e.MathWallet,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.MathWallet],getIcon:async()=>(await r.e(4469).then(r.bind(r,14469))).default,getInterface:w_e(p_e.MathWallet),platforms:["all"]},nEe={label:g_e.GameStop,injectedNamespace:y_e.GameStop,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.GameStop],getIcon:async()=>(await r.e(5194).then(r.bind(r,5194))).default,getInterface:async()=>{const e=(0,T9.createEIP1193Provider)(window.gamestop,{eth_chainId:({baseRequest:e})=>e({method:"eth_chainId"}).then((e=>`0x${parseInt(e).toString(16)}`)),wallet_switchEthereumChain:b_e});return e.removeListener=(e,t)=>{},e.on=(e,t)=>{},{provider:e}},platforms:["desktop"]},iEe={label:g_e.BitKeep,injectedNamespace:y_e.BitKeep,checkProviderIdentity:({provider:e})=>!!e&&!!e.ethereum[p_e.BitKeep],getIcon:async()=>(await r.e(4783).then(r.bind(r,94783))).default,getInterface:async()=>({provider:window.bitkeep&&window.bitkeep.ethereum}),platforms:["all"],externalUrl:m_e.BitKeep},oEe={label:g_e.Sequence,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Sequence],getIcon:async()=>(await r.e(6093).then(r.bind(r,6093))).default,getInterface:async()=>({provider:window.ethereum}),platforms:["all"]},sEe={label:g_e.Core,injectedNamespace:y_e.Avalanche,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Core],getIcon:async()=>(await r.e(8792).then(r.bind(r,68792))).default,getInterface:w_e(p_e.Core),platforms:["desktop","Chrome","Chromium","Microsoft Edge"]},aEe={label:g_e.Bitski,injectedNamespace:y_e.Bitski,checkProviderIdentity:({provider:e})=>!!e&&!!e.getProvider&&!!e.getProvider().isBitski,getIcon:async()=>(await r.e(9517).then(r.bind(r,99517))).default,getInterface:async()=>({provider:window.Bitski&&window.Bitski.getProvider&&window.Bitski.getProvider()}),platforms:["all"]},uEe={label:g_e.Zerion,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Zerion],getIcon:async()=>(await r.e(5287).then(r.bind(r,25287))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.ethereum)}),platforms:["all"]},lEe={label:g_e.Enkrypt,injectedNamespace:y_e.Enkrypt,checkProviderIdentity:({provider:e})=>!!e&&!!e.providers&&!!e.providers.ethereum,getIcon:async()=>(await r.e(1557).then(r.bind(r,61557))).default,getInterface:async()=>{const e=window.enkrypt.providers.ethereum.on.bind(window.enkrypt.providers.ethereum);window.enkrypt.providers.ethereum.on=(t,r)=>{e(t,"chainChanged"===t?e=>{r(`0x${parseInt(e).toString(16)}`)}:r)};const t=(0,T9.createEIP1193Provider)(window.enkrypt.providers.ethereum,{eth_chainId:({baseRequest:e})=>e({method:"eth_chainId"}).then((e=>`0x${parseInt(e).toString(16)}`))});return t.removeListener=(e,t)=>{},{provider:t}},platforms:["all"]},cEe={label:g_e.Phantom,injectedNamespace:y_e.Phantom,checkProviderIdentity:({provider:e})=>!!e&&!!e.ethereum&&!!e.ethereum[p_e.Phantom],getIcon:async()=>(await r.e(2751).then(r.bind(r,42751))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.phantom.ethereum)}),platforms:["all"],externalUrl:m_e.Phantom},hEe={label:g_e.SafePal,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.SafePal],getIcon:async()=>(await r.e(2156).then(r.bind(r,42156))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.ethereum)}),platforms:["all"]},dEe={label:g_e.Rainbow,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Rainbow],getIcon:async()=>(await r.e(3626).then(r.bind(r,3626))).default,getInterface:w_e(p_e.Rainbow),platforms:["all"]},fEe={label:g_e.OKXWallet,injectedNamespace:y_e.OKXWallet,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.OKXWallet],getIcon:async()=>(await r.e(6112).then(r.bind(r,76112))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.okxwallet)}),platforms:["desktop"],externalUrl:m_e.OKXWallet},pEe={label:g_e.DeFiWallet,injectedNamespace:y_e.DeFiConnectProvider,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.DeFiWallet],getIcon:async()=>(await r.e(8790).then(r.bind(r,38790))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.deficonnectProvider)}),platforms:["all"]},mEe={label:g_e.Safeheron,injectedNamespace:y_e.Safeheron,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Safeheron],getIcon:async()=>(await r.e(7087).then(r.bind(r,50280))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.safeheron)}),platforms:["desktop","Chrome","Chromium","Microsoft Edge"]},gEe={label:g_e.Talisman,injectedNamespace:y_e.Talisman,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Talisman],getIcon:async()=>(await r.e(7039).then(r.bind(r,7039))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.talismanEth)}),platforms:["desktop"],externalUrl:m_e.Talisman},yEe={label:g_e.RoninWallet,injectedNamespace:y_e.RoninWallet,checkProviderIdentity:({provider:e})=>!!e,getIcon:async()=>(await r.e(787).then(r.bind(r,30787))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.ronin.provider)}),platforms:["all"],externalUrl:m_e.RoninWallet},vEe=[eEe,S_e,x_e,A_e,j_e,T_e,C_e,I_e,N_e,R_e,P_e,D_e,L_e,O_e,B_e,U_e,k_e,F_e,z_e,H_e,G_e,Y_e,K_e,q_e,W_e,V_e,$_e,Q_e,J_e,Z_e,X_e,tEe,rEe,nEe,iEe,oEe,sEe,aEe,lEe,cEe,fEe,uEe,dEe,hEe,pEe,M_e,mEe,gEe,{label:g_e.OneKey,injectedNamespace:y_e.OneKey,checkProviderIdentity:({provider:e})=>!!e&&!!e.ethereum&&!!e.ethereum[p_e.OneKey],getIcon:async()=>(await r.e(4656).then(r.bind(r,64656))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.$onekey.ethereum)}),platforms:["all"],externalUrl:m_e.OneKey},{label:g_e.Fordefi,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Fordefi]&&!E_e(p_e.Fordefi,e),getIcon:async()=>(await r.e(2422).then(r.bind(r,2422))).default,getInterface:w_e(p_e.Fordefi,!0),platforms:["desktop"]},yEe,{label:g_e.Coin98Wallet,injectedNamespace:y_e.Ethereum,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.Coin98Wallet],getIcon:async()=>(await r.e(886).then(r.bind(r,50886))).default,getInterface:async()=>{let e;return e=window.hasOwnProperty(y_e.Ethereum)&&window[y_e.Ethereum].isCoin98?window[y_e.Ethereum]:window[y_e.Coin98Wallet].provider,{provider:e}},platforms:["all"],externalUrl:m_e.Coin98Wallet},{label:g_e.SubWallet,injectedNamespace:y_e.SubWallet,checkProviderIdentity:({provider:e})=>!!e&&!!e[p_e.SubWallet],getIcon:async()=>(await r.e(5926).then(r.bind(r,15926))).default,getInterface:async()=>({provider:(0,T9.createEIP1193Provider)(window.SubWallet)}),platforms:["all"],externalUrl:m_e.SubWallet}],bEe=k9.object({label:k9.string().required(),getIcon:k9.function().arity(0).required(),getInterface:k9.function().maxArity(1).required(),injectedNamespace:k9.string().required(),checkProviderIdentity:k9.function().arity(1).required(),platforms:k9.array().items(k9.string()),externalUrl:k9.string()}),wEe=k9.array().items(bEe),_Ee=k9.object().pattern(/\w+/,k9.any().allow(k9.boolean(),k9.array().items(k9.string()))),EEe=k9.object({custom:wEe,filter:_Ee,displayUnavailable:[k9.boolean(),k9.array().items(k9.string())],walletUnavailableMessage:k9.function(),sort:k9.function(),externalUrl:k9.string()});class AEe extends Error{constructor(e){super(e.message),this.message=e.message,this.code=e.code,this.data=e.data}}const MEe=function(e){if("undefined"==typeof window)return()=>null;if(e){const t=(e=>(0,T9.validate)(EEe,e))(e);if(t&&t.error)throw t.error}return t=>{const{device:r}=t,{custom:n=[],filter:i={},displayUnavailable:o,sort:s,walletUnavailableMessage:a}=e||{},u=v_e([...n,...vEe],(({label:e})=>e)).reduce(((e,t)=>{const{label:n,platforms:s,injectedNamespace:u,checkProviderIdentity:l}=t,c=i[n],h=!1===c,d=((e,t,r)=>{var n;return!(!e||!t({provider:e,device:r})&&!(null===(n=e.providers)||void 0===n?void 0:n.some((e=>t({provider:e,device:r})))))})(window[u],l,r);let f=!1;Array.isArray(c)&&(c.includes(r.type)||c.includes(r.os.name))&&(f=!0),"unavailable"!==c||d||(f=!0);const p=!s.includes("all")&&!s.includes(r.type)&&!s.includes(r.os.name);return!h&&!f&&!p&&(d||!0===o||Array.isArray(o)&&o.length&&o.includes(t.label))&&e.push((!0===o||Array.isArray(o)&&o.length&&o.includes(t.label))&&!d?{...t,getInterface:async()=>{throw new Error(a?a(t):(({label:e,externalUrl:t})=>t?`Please install or enable ${e} to continue`:`Please install or enable ${e} to continue`)(t))}}:t),e}),[]);if(u.length){const e=u.length>1,t=u.filter((t=>{const{label:r}=t;return!(r===g_e.Detected&&e)})).map((({label:e,getIcon:t,getInterface:r})=>({label:e,getIcon:t,getInterface:r}))).sort(((e,t)=>e.labelt.label?1:0));return s?s(t):t}return[]}};var SEe=r(98399);const xEe=function(e){if(1!==e.version)throw"WalletConnect version must be set to 1 to initialize - note version 1 has been deprecated by the WalletConnect team";const{bridge:t,qrcodeModalOptions:n,connectFirstChainId:i,handleUri:o}=e||{};if(SEe.warn("Wallet Connect version 1 support has been deprecated by the WalletConnect team. Please consider using version 2. See docs for more details."),!t)throw"WalletConnect version 1 requires a bridge to be passed in. The WalletConnect team has remove support for the bridge. Please upgrade to version 2 of WalletConnect or pass in a custom bridge URL.";return()=>({label:"WalletConnect",getIcon:async()=>(await r.e(8294).then(r.bind(r,28294))).default,getInterface:async({chains:e,EventEmitter:s})=>{const{StaticJsonRpcProvider:a}=await r.e(1067).then(r.bind(r,1067)),{ProviderRpcError:u,ProviderRpcErrorCode:l}=await Promise.resolve().then(r.bind(r,37020)),{default:c}=await Promise.all([r.e(8592),r.e(4567),r.e(763)]).then(r.bind(r,84567));let h=await Promise.all([r.e(8592),r.e(2459)]).then(r.t.bind(r,82459,19));h=h.default||h;const{Subject:d,fromEvent:f}=await Promise.resolve().then(r.bind(r,49531)),{takeUntil:p,take:m}=await Promise.resolve().then(r.bind(r,2131)),g=new c({bridge:t});if(o)try{await o(g.uri||"")}catch(XMe){throw`An error occurred when handling the URI. Error: ${XMe}`}const y=new s;return{provider:new class{constructor({connector:e,chains:t}){let r;this.emit=y.emit.bind(y),this.on=y.on.bind(y),this.removeListener=y.removeListener.bind(y),this.connector=e,this.chains=t,this.disconnected$=new d,this.providers={},f(this.connector,"session_update",((e,t)=>{if(e)throw e;return t})).pipe(p(this.disconnected$)).subscribe({next:({params:e})=>{const[{accounts:t,chainId:n}]=e,i=t.map((e=>e.toLowerCase()));this.emit("accountsChanged",i);const o=REe(n)?n:`0x${n.toString(16)}`;r&&r===o||(this.emit("chainChanged",o),r=o)},error:SEe.warn}),f(this.connector,"disconnect",((e,t)=>{if(e)throw e;return t})).pipe(p(this.disconnected$)).subscribe({next:()=>{this.emit("accountsChanged",[]),this.disconnected$.next(!0),"undefined"!=typeof localStorage&&localStorage.removeItem("walletconnect")},error:SEe.warn}),this.disconnect=()=>this.connector.killSession(),this.request=async({method:e,params:o})=>{if("eth_chainId"===e)return REe(this.connector.chainId)?this.connector.chainId:`0x${this.connector.chainId.toString(16)}`;if("eth_requestAccounts"===e)return new Promise(((e,o)=>{if(f(this.connector,"connect",((e,t)=>{if(e)throw e;return t})).pipe(m(1)).subscribe({next:({params:t})=>{const[{accounts:n,chainId:i}]=t,o=n.map((e=>e.toLowerCase()));this.emit("accountsChanged",o);const s=REe(i)?i:`0x${i.toString(16)}`;r||(r=s),this.emit("chainChanged",s),h.close(),e(o)},error:o}),this.connector.connected){const{accounts:t,chainId:n}=this.connector.session,i=REe(n)?n:`0x${n.toString(16)}`;this.emit("chainChanged",i),r||(r=i);const o=t.map((e=>e.toLowerCase()));return e(o)}this.connector.createSession(i?{chainId:parseInt(t[0].id,16)}:void 0).then((()=>{h.open(this.connector.uri,(()=>o(new u({code:4001,message:"User rejected the request."}))),n)}))}));if("eth_selectAccounts"===e)throw new u({code:l.UNSUPPORTED_METHOD,message:`The Provider does not support the requested method: ${e}`});if("wallet_switchEthereumChain"==e){if(!o)throw new u({code:l.INVALID_PARAMS,message:"The Provider requires a chainId to be passed in as an argument"});const e=o[0];if(!e.hasOwnProperty("chainId")||void 0===e.chainId)throw new u({code:l.INVALID_PARAMS,message:"The Provider requires a chainId to be passed in as an argument"});return this.connector.sendCustomRequest({method:"wallet_switchEthereumChain",params:[{chainId:e.chainId}]})}if("eth_sendTransaction"===e)return this.connector.sendTransaction(o[0]);if("eth_signTransaction"===e)return this.connector.signTransaction(o[0]);if("personal_sign"===e)return this.connector.signPersonalMessage(o);if("eth_sign"===e)return this.connector.signMessage(o);if(e.includes("eth_signTypedData"))return this.connector.signTypedData(o);if("eth_accounts"===e)return this.connector.sendCustomRequest({id:1337,jsonrpc:"2.0",method:e,params:o});const s=await this.request({method:"eth_chainId"});if(!this.providers[s]){const r=t.find((({id:e})=>e===s));if(!r)throw new u({code:l.CHAIN_NOT_ADDED,message:`The Provider does not have a rpcUrl to make a request for the requested method: ${e}`});this.providers[s]=new a(r.rpcUrl)}return this.providers[s].send(e,o)}}}({chains:e,connector:g})}}})};var kEe=r(47025),TEe=r(98399);const CEe=["eth_sendTransaction","eth_signTransaction","personal_sign","eth_sign","eth_signTypedData","eth_signTypedData_v4"];const IEe=function(e){if(2!==e.version||!e.projectId)throw new Error("WalletConnect requires a projectId. Please visit https://cloud.walletconnect.com to get one.");const{projectId:t,handleUri:n,requiredChains:i,optionalChains:o,qrModalOptions:s,additionalRequiredMethods:a,additionalOptionalMethods:u,dappUrl:l}=e;let c;return()=>({label:"WalletConnect",getIcon:async()=>(await r.e(8294).then(r.bind(r,28294))).default,getInterface:async({chains:h,EventEmitter:d,appMetadata:f})=>{const{ProviderRpcError:p,ProviderRpcErrorCode:m}=await Promise.resolve().then(r.bind(r,37020)),{default:g}=await Promise.resolve().then(r.bind(r,47025)),{Subject:y,fromEvent:v}=await Promise.resolve().then(r.bind(r,49531)),{takeUntil:b,take:w}=await Promise.resolve().then(r.bind(r,2131)),_=Array.isArray(i)&&i.length&&i.every((e=>!isNaN(e)))?i.map((e=>parseInt(e))):[],E=Array.isArray(o)&&o.length&&o.every((e=>!isNaN(e)))?o.map((e=>parseInt(e))):h.map((({id:e})=>parseInt(e,16))),A=new Set(a&&Array.isArray(a)?[...a,...kEe.REQUIRED_METHODS]:kEe.REQUIRED_METHODS),M=Array.from(A),S=u&&Array.isArray(u)?[...u,...CEe]:CEe,x=await g.init({projectId:t,chains:_,methods:M,optionalChains:E,optionalMethods:S,showQrModal:!0,rpcMap:h.map((({id:e,rpcUrl:t})=>({id:e,rpcUrl:t}))).reduce(((e,{id:t,rpcUrl:r})=>(e[parseInt(t,16)]=r||"",e)),{}),metadata:(()=>{if(!f)return;const e=l||f.explore||"";!e&&!e.length&&TEe.warn("It is strongly recommended to supply a dappUrl as it is required by some wallets (i.e. MetaMask) to allow connection.");const t={name:f.name,description:f.description||"",url:e,icons:[]};return void 0!==f.icon&&f.icon.length&&(t.icons=[f.icon]),void 0!==f.logo&&f.logo.length&&(t.icons=t.icons.length?[...t.icons,f.logo]:[f.logo]),t})(),qrModalOptions:s}),k=new d;return{provider:new class{constructor({connector:t,chains:r}){this.emit=k.emit.bind(k),this.on=k.on.bind(k),this.removeListener=k.removeListener.bind(k),this.connector=t,this.chains=r,this.disconnected$=new y,v(this.connector,"accountsChanged",(e=>e)).pipe(b(this.disconnected$)).subscribe({next:e=>{const t=Array.isArray(e)?e:[e];this.emit("accountsChanged",t)},error:TEe.warn}),v(this.connector,"chainChanged",(e=>e)).pipe(b(this.disconnected$)).subscribe({next:e=>{const t=REe(e)?e:`0x${e.toString(16)}`;this.emit("chainChanged",t)},error:TEe.warn}),v(this.connector,"session_delete",(e=>e)).pipe(b(this.disconnected$)).subscribe({next:()=>{this.emit("accountsChanged",[]),this.disconnected$.next(!0),"undefined"!=typeof localStorage&&localStorage.removeItem("walletconnect")},error:TEe.warn}),this.disconnect=()=>{this.connector.session&&(this.connector.disconnect(),c=null)},e&&n&&v(this.connector,"display_uri",(e=>e)).pipe(b(this.disconnected$)).subscribe((async e=>{try{n&&await n(e)}catch(XMe){throw`An error occurred when handling the URI. Error: ${XMe}`}}));(()=>{const e=this.connector.session;c=e,e&&(this.emit("accountsChanged",this.connector.accounts),this.emit("chainChanged",this.connector.chainId))})(),this.request=async({method:e,params:t})=>{if("eth_chainId"===e)return REe(this.connector.chainId)?this.connector.chainId:`0x${this.connector.chainId.toString(16)}`;if("eth_requestAccounts"===e)return new Promise((async(e,t)=>{if(v(this.connector,"connect",(e=>e)).pipe(w(1)).subscribe({next:({chainId:t})=>{this.emit("accountsChanged",this.connector.accounts);const r=REe(t)?t:`0x${t.toString(16)}`;this.emit("chainChanged",r),e(this.connector.accounts)},error:t}),this.connector.session){const t=this.connector.accounts,r=this.connector.chainId;c=this.connector.session;const n=`0x${r.toString(16)}`;return this.emit("chainChanged",n),e(t)}await this.connector.connect().catch((e=>{TEe.error("err creating new session: ",e),t(new p({code:4001,message:"User rejected the request."}))}))}));if("eth_selectAccounts"===e)throw new p({code:m.UNSUPPORTED_METHOD,message:`The Provider does not support the requested method: ${e}`});if("wallet_switchEthereumChain"==e){if(!t)throw new p({code:m.INVALID_PARAMS,message:"The Provider requires a chainId to be passed in as an argument"});const e=t[0];if(!e.hasOwnProperty("chainId")||void 0===e.chainId)throw new p({code:m.INVALID_PARAMS,message:"The Provider requires a chainId to be passed in as an argument"});return this.connector.request({method:"wallet_switchEthereumChain",params:[{chainId:e.chainId}]})}return this.connector.request({method:e,params:t})}}}({chains:h,connector:x}),instance:c}}})},NEe=k9.object({handleUri:k9.func().optional(),version:k9.number().valid(1,2).optional(),bridge:k9.string().when("version",{is:1,then:k9.required(),otherwise:k9.forbidden()}).messages({"any.required":"A bridge URL is a required when version is 1 of WalletConnect as the WC team has removed support for their default bridge."}),connectFirstChainId:k9.boolean().optional(),qrcodeModalOptions:k9.object({mobileLinks:k9.array().items(k9.string()).optional()}).optional(),projectId:k9.string().when("version",{is:2,then:k9.required(),otherwise:k9.optional()}).messages({"any.required":"WalletConnect version 2 requires a projectId. Please visit https://cloud.walletconnect.com to get one."}),dappUrl:k9.string().optional(),requiredChains:k9.array().items(k9.number()).optional(),optionalChains:k9.array().items(k9.number()).optional(),qrModalOptions:k9.object().optional(),additionalRequiredMethods:k9.array().items(k9.string()).optional(),additionalOptionalMethods:k9.array().items(k9.string()).optional()}),REe=e=>!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/));const PEe=function(e){if(!e)throw new Error("WalletConnect requires an initialization object to be passed - see the official docs for an example: https://onboard.blocknative.com/docs/wallets/walletconnect");if(e){const t=(e=>((e,t)=>{const r=e.validate(t);return r.error?r:null})(NEe,e))(e);if(t)throw t}return e.version=e.version||2,2===e.version?IEe(e):xEe(e)};const DEe="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJhIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgMzI5LjYyIDQ1Mi45NCI+PGRlZnM+PHN0eWxlPi5oe2ZpbGw6dXJsKCNlKTt9Lml7ZmlsbDp1cmwoI2QpO30uantmaWxsOnVybCgjZyk7fS5re2ZpbGw6dXJsKCNmKTt9Lmx7ZmlsbDp1cmwoI2MpO30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Mi44LS4yNSwwLS40OSwuMDMtLjc0LC4wOC0xNC42MywzLjE0LTI3LjY1LDEwLjczLTM3LjY3LDIxLjk1LTEwLjEsMTEuMzEtMTYuMTcsMjUuMjQtMTcuNTcsNDAuMjktLjA5LC45NCwuMiwxLjg2LC44LDIuNTlzMS40NiwxLjE4LDIuNCwxLjI2YzEuOTgsLjE4LDMuNjctMS4yNiwzLjg1LTMuMiwyLjUyLTI3LjIxLDIyLjk1LTUwLjIyLDQ5LjY3LTU1Ljk2WiIvPjwvZz48L3N2Zz4=",LEe={name:"Push Protocol",logo:DEe,icon:DEe,description:"Example showcasing how to connect a wallet.",recommendedInjectedWallets:[{name:"MetaMask",url:"https://metamask.io"}]},OEe=PEe({projectId:"64a44a0fb537407bfe97d24330e4109c",requiredChains:[1,56]}),jEe=h_e({darkMode:!0}),BEe=[{id:"0x1",token:"ETH",label:"Ethereum Mainnet",rpcUrl:`https://mainnet.infura.io/v3/${J3}`},{id:"0xAA36A7",token:"ETH",label:"Sepolia",rpcUrl:`https://sepolia.infura.io/v3/${J3}`},{id:"0x13881",token:"MATIC",label:"Polygon - Mumbai",rpcUrl:"https://matic-mumbai.chainstacklabs.com"},{id:"0x38",token:"BNB",label:"Binance",rpcUrl:"https://bsc-dataseed.binance.org/"},{id:"0xA",token:"OETH",label:"Optimism",rpcUrl:"https://mainnet.optimism.io"},{id:"0xA4B1",token:"ARB-ETH",label:"Arbitrum",rpcUrl:"https://rpc.ankr.com/arbitrum"}],UEe=[MEe(),OEe,jEe],FEe=(0,S9.aB)({wallets:UEe,chains:BEe,appMetadata:LEe,accountCenter:{desktop:{enabled:!1},mobile:{enabled:!1}},connect:{autoConnectLastWallet:!0}}),zEe=({autoConnect:e})=>(0,Tf.jsx)(R9,{web3Onboard:FEe,children:(0,Tf.jsx)(d_e,{autoConnect:e})});var HEe=r(98399);const GEe=({autoConnect:e})=>{const{signer:t}=c9();return(0,Tf.jsxs)(sfe,{width:"100%",justifyContent:"space-between",alignItems:"center",padding:"8px",children:[!t&&(0,Tf.jsx)(ofe,{padding:"8px 8px 8px 16px",color:"#B6BCD6",fontSize:"15px",fontWeight:"400",textAlign:"start",children:"You need to connect your wallet to get started"}),(0,Tf.jsx)(zEe,{autoConnect:e})]})},YEe=({chatId:e,emoji:t=!0,gif:r=!0,file:n=!0,isConnected:i=!0,autoConnect:o=!1,verificationFailModalBackground:s=Tve.OVERLAY,verificationFailModalPosition:a=Cve.GLOBAL,onVerificationFail:u})=>{var l,c,h,d,f,p,m,g,y;const[v,b]=(0,w.useState)(""),[_,E]=(0,w.useState)(!1),[A,M]=(0,w.useState)(!1),S=(0,w.useRef)(null),x=(0,w.useRef)(null),[k,T]=(0,w.useState)(!1),[C,I]=(0,w.useState)(!1),[N,R]=(0,w.useState)(!1),{approveChatRequest:P,loading:D}=_ve(),{acceptedRequestMessage:L,groupInformationSinceLastConnection:O}=v9(),[j,B]=(0,w.useState)({}),U=(0,w.useContext)(eve),F=G9(425),{sendMessage:z,loading:H}=E9(),{verifyAccessControl:G,setVerificationSuccessfull:Y,verificationSuccessfull:K,verified:q,setVerified:W,loading:V}=c_e(),{account:$,env:Q,connectedProfile:J,setConnectedProfile:Z,pgpPrivateKey:X,signer:ee}=c9(),{fetchChat:te}=w9(),{fetchChatProfile:re}=g9(),{getGroup:ne}=bve(),ie=Wbe(),oe=(0,w.useRef)(null);K3(S,(()=>{E(!1),M(!1)})),(0,w.useEffect)((()=>{var e;if(null!=oe&&null!=(e=oe.current)&&e.style){var t;oe.current.style.height="25px";const e=null==(t=oe.current)?void 0:t.scrollHeight;oe.current.style.height=e+"px"}}),[oe,v]),(0,w.useEffect)((()=>{!H&&oe.current&&oe.current.focus()}),[H,oe]),(0,w.useEffect)((()=>{(async()=>{if(!J&&$){const e=await re({profileId:$,env:Q});e&&Z(e)}})()}),[$]),(0,w.useEffect)((()=>{if(!xbe(e)){const t=localStorage.getItem(e);if(t){const r=JSON.parse(t),n=(new Date).getTime(),i=864e5;Math.abs(n-r){var t;Object.keys(O||{}).length&&((null==j||null==(t=j.groupInformation)?void 0:t.chatId.toLowerCase())===O.chatId.toLowerCase()&&(async()=>{const t=j,r=await ne({searchText:e});(r||Object.keys(r||{}).length)&&(t.groupInformation=r,B(t))})())}),[O]),(0,w.useEffect)((()=>{(async()=>{Object.keys(L||{}).length&&Object.keys(j||{}).length&&await ce()})()}),[L]),(0,w.useEffect)((()=>{(async()=>{if(($||Q)&&$&&Q){const t=await te({chatId:e});if(Object.keys(t||{}).length)B(t);else{let t,r;const n=await $8({searchText:e,fetchChatProfile:re,env:Q});n?t=G8({user:n}):(r=await ne({searchText:e}),r&&(t=G8({groupInformation:r}))),t&&B(t)}}})()}),[e,X,$,Q]),(0,w.useEffect)((()=>{($||Q||e)&&$&&Q&&e&&j&&null!=j&&j.groupInformation&&(R(((e,t)=>{var r,n;const i=[...(null==e||null==(r=e.groupInformation)?void 0:r.members)||[],...(null==e||null==(n=e.groupInformation)?void 0:n.pendingMembers)||[]];let o=!1;return i.forEach((e=>{e.wallet.toLowerCase()===D8(t).toLowerCase()&&(o=!0)})),o})(j,$)),I((e=>{var t,r,n,i,o;let s=!1;return null!=e&&null!=(t=e.groupInformation)&&t.rules&&(null!=e&&null!=(r=e.groupInformation)&&null!=(n=r.rules)&&n.entry||null!=e&&null!=(i=e.groupInformation)&&null!=(o=i.rules)&&o.chat)&&(s=!0),s})(j)))}),[e,j,$,Q]);const se=()=>!!X&&!N,ae=()=>!!X&&!q&&N&&C,ue=async(t,r)=>{try{const n=await z({message:t,chatId:e,messageType:r});n&&"string"==typeof n&&n.includes("403")&&(F8(e,!0),W(!1),Y(!1))}catch(XMe){HEe.log(XMe)}},le=async()=>{""!==v.trim()&&(await ue(v,"Text"),b(""))},ce=async()=>{const t=await te({chatId:e});Object.keys(t||{}).length&&B(t)};return X&&$||!i?!Y8({chat:j,account:$})&&Object.keys(j||{}).length?(0,Tf.jsxs)(KEe,{width:"100%",overflow:"hidden",borderRadius:null==(c=U.borderRadius)?void 0:c.messageInput,position:"static",border:null==(h=U.border)?void 0:h.messageInput,padding:" "+(X?"13px 16px":""),background:`${null==(d=U.backgroundColor)?void 0:d.messageInputBackground}`,alignItems:"center",justifyContent:"space-between",children:[Object.keys(j||{}).length&&null!=j&&j.groupInformation?(0,Tf.jsxs)(Tf.Fragment,{children:[(se()||ae())&&(0,Tf.jsxs)(sfe,{width:"100%",justifyContent:"space-between",alignItems:"center",children:[(0,Tf.jsxs)(ofe,{padding:"8px 8px 8px 16px",color:null==(f=U.textColor)?void 0:f.chatReceivedBubbleText,fontSize:"15px",fontWeight:"500",textAlign:"start",children:[se()&&"Click on the button to join the group",ae()&&(0,Tf.jsxs)(Tf.Fragment,{children:["Sending messages requires to staisfy the group rules."," ",(0,Tf.jsxs)(XEe,{href:"https://push.org/docs/chat/build/conditional-rules-for-group/",target:"_blank",color:null==(p=U.backgroundColor)?void 0:p.chatSentBubbleBackground,children:["Learn More ",(0,Tf.jsx)(u_e,{})]})]})]}),(0,Tf.jsx)($Ee,{children:(0,Tf.jsxs)(QEe,{onClick:async()=>se()?await(async()=>{var t,r;j&&null!=j&&null!=(t=j.groupInformation)&&t.isPublic?await P({chatId:e})&&await ce():await z({message:`Hello, please let me join this group, my wallet address is ${$}`,chatId:(null==j||null==(r=j.groupInformation)?void 0:r.groupCreator)||"",messageType:"Text"})?ie.showMessageToast({toastTitle:"Success",toastMessage:"Request sent successfully",toastType:"SUCCESS",getToastIcon:e=>(0,Tf.jsx)(hbe,{size:e,color:"green"})}):ie.showMessageToast({toastTitle:"Error",toastMessage:"Unable to send request",toastType:"ERROR",getToastIcon:e=>(0,Tf.jsx)(dbe,{size:e,color:"red"})})})():await void G({chatId:e,did:$}),children:[se()&&(0,Tf.jsx)(Tf.Fragment,{children:D?(0,Tf.jsx)(Ofe,{color:"#fff",size:"24"}):" Join Group "}),ae()&&(0,Tf.jsx)(Tf.Fragment,{children:V?(0,Tf.jsx)(Ofe,{color:"#fff",size:"24"}):"Verify Access"})]})})]}),!!X&&!K&&(0,Tf.jsx)(Pbe,{width:"550px",modalBackground:s,modalPositionType:a,children:(0,Tf.jsxs)(sfe,{margin:"5px 0px 0px 0px",gap:"16px",flexDirection:"column",width:"100%",children:[(0,Tf.jsx)(Dbe,{title:"Access Failed"}),(0,Tf.jsx)(Dwe,{theme:U,groupInfo:null==j?void 0:j.groupInformation,subheader:"Please make sure the following conditions are met to pariticpate and send messages.",alert:!0}),(0,Tf.jsx)(JEe,{onClick:()=>{u&&u(),Y(!0)},children:(0,Tf.jsx)(ZEe,{children:"Cancel"})}),(0,Tf.jsx)($be,{cta:"https://push.org/docs/chat/build/conditional-rules-for-group/",label:"Learn more about access gating rules"})]})})]}):null,!!X&&((!C||q)&&N||j&&!(null!=j&&j.groupInformation))&&(0,Tf.jsxs)(Tf.Fragment,{children:[(0,Tf.jsxs)(sfe,{gap:"8px",flex:"1",position:"static",children:[t&&(0,Tf.jsx)(ufe,{width:"25px",cursor:"pointer",height:"25px",alignSelf:"end",onClick:()=>E(!_),children:(0,Tf.jsx)(Ufe,{color:null==(m=U.iconColor)?void 0:m.emoji})}),_&&(0,Tf.jsx)(sfe,{ref:S,position:"absolute",bottom:"2.5rem",left:"2.5rem",zIndex:"700",children:(0,Tf.jsx)(lye,{width:F?260:320,height:370,onEmojiClick:(e,t)=>{b(v+e.emoji),E(!1)}})}),(0,Tf.jsx)(WEe,{disabled:!!H,theme:U,onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||(e.preventDefault(),le())},placeholder:"Type your message...",onChange:e=>{return t=e.target.value,void b(t);var t},value:v,ref:oe,rows:1})]}),(0,Tf.jsxs)(qEe,{position:"static",children:[r&&(0,Tf.jsx)(sfe,{width:"34px",height:"24px",cursor:"pointer",alignSelf:"end",onClick:()=>M(!A),children:(0,Tf.jsx)(Ffe,{})}),A&&(0,Tf.jsx)(sfe,{position:"absolute",bottom:"2.5rem",zIndex:"1",right:F?"7rem":"8rem",ref:S,children:(0,Tf.jsx)(Yye,{onGifClick:async e=>{ue(e.url,"GIF"),M(!1)},width:F?260:320,height:370,tenorApiKey:String("AIzaSyBhUBnCia6zpxY7KcqjghRS1IphinAvKXs")})}),(0,Tf.jsx)(sfe,{onClick:()=>{x.current&&x.current.click()},children:!k&&n&&(0,Tf.jsxs)(Tf.Fragment,{children:[(0,Tf.jsx)(sfe,{width:"17",height:"24px",cursor:"pointer",alignSelf:"end",children:(0,Tf.jsx)(zfe,{color:null==(g=U.iconColor)?void 0:g.attachment})}),(0,Tf.jsx)(VEe,{type:"file",ref:x,onChange:e=>(async e=>{if(e.target instanceof HTMLInputElement&&e.target.files&&e.target&&e.target.files&&e.target.files.length){const t=e.target.files[0];if(t)try{const e=2097152;if(t.size>e)throw HEe.log("Files larger than 2mb is now allowed"),new Error("Files larger than 2mb is now allowed");T(!0);const r=t.type.startsWith("image")?"Image":"File",n=new FileReader;let i;n.readAsDataURL(t),n.onloadend=async e=>{i={content:e.target.result,name:t.name,type:t.type,size:t.size},ue(JSON.stringify(i),r)}}catch(dVe){HEe.log(dVe)}finally{T(!1)}}})(e)})]})}),!(H||k)&&(0,Tf.jsx)(sfe,{cursor:"pointer",alignSelf:"end",height:"24px",onClick:()=>le(),children:(0,Tf.jsx)(a_e,{color:null==(y=U.iconColor)?void 0:y.sendButton})}),(H||k)&&(0,Tf.jsx)(sfe,{alignSelf:"end",height:"24px",children:(0,Tf.jsx)(Ofe,{color:U.spinnerColor,size:"22"})})]})]}),(0,Tf.jsx)(Wve,{})]}):(0,Tf.jsx)(Tf.Fragment,{}):(0,Tf.jsx)(KEe,{width:"100%",overflow:"hidden",borderRadius:"13px",position:"static",padding:" "+(X?"13px 16px":""),background:`${null==(l=U.backgroundColor)?void 0:l.messageInputBackground}`,alignItems:"center",justifyContent:"space-between",children:(0,Tf.jsx)(GEe,{autoConnect:o})})},KEe=hf(sfe).withConfig({displayName:"MessageInput__TypebarSection",componentId:"sc-xbdscc-0"})(["gap:10px;border:",";@media ","{gap:0px;}"],(e=>e.border||"none"),u6.mobileL),qEe=hf(sfe).withConfig({displayName:"MessageInput__SendSection",componentId:"sc-xbdscc-1"})(["gap:11.5px;@media ","{gap:7.5px;}"],u6.mobileL),WEe=hf.textarea.withConfig({displayName:"MessageInput__MultiLineInput",componentId:"sc-xbdscc-2"})(["font-family:inherit;font-weight:400;transform:translateY(3px);font-size:16px;outline:none;overflow-y:auto;box-sizing:border-box;background:",";border:none;color:",";resize:none;flex:1;padding-right:5px;align-self:end;@media ","{font-size:14px;}&&::-webkit-scrollbar{width:4px;padding-right:0px;}::-webkit-scrollbar-thumb{background:rgb(181 181 186);border-radius:10px;height:50px;}::placeholder{color:",";transform:translateY(0px);@media ","{font-size:14px;}}min-height:25px;max-height:80px;word-break:break-word;"],(e=>{var t;return null==(t=e.theme.backgroundColor)?void 0:t.messageInputBackground}),(e=>{var t;return null==(t=e.theme.textColor)?void 0:t.messageInputText}),u6.mobileL,(e=>{var t;return null==(t=e.theme.textColor)?void 0:t.messageInputText}),u6.mobileL),VEe=hf.input.withConfig({displayName:"MessageInput__FileInput",componentId:"sc-xbdscc-3"})(["display:none;"]),$Ee=hf.div.withConfig({displayName:"MessageInput__ConnectWrapper",componentId:"sc-xbdscc-4"})(["display:flex;align-items:center;flex-direction:column;cursor:pointer;"]),QEe=hf(hf.button.withConfig({displayName:"MessageInput__StyledButton",componentId:"sc-xbdscc-5"})(["border:0px;outline:0px;padding:24px 9px;font-weight:500;border-radius:12px;font-size:17px;cursor:pointer;width:147px;height:44px;text-align:start;align-items:center;display:flex;justify-content:center;"])).withConfig({displayName:"MessageInput__Connect",componentId:"sc-xbdscc-6"})(["color:rgb(255,255,255);background:#d53a94;"]),JEe=hf.div.withConfig({displayName:"MessageInput__ConnectWrapperClose",componentId:"sc-xbdscc-7"})(["display:flex;align-items:center;flex-direction:column;"]),ZEe=hf(hf.button.withConfig({displayName:"MessageInput__StyledButtonClose",componentId:"sc-xbdscc-8"})(["border:0px;outline:0px;padding:24px 9px;font-weight:500;border-radius:12px;font-size:17px;cursor:pointer;width:147px;height:44px;text-align:start;align-items:center;display:flex;justify-content:center;"])).withConfig({displayName:"MessageInput__ConnectClose",componentId:"sc-xbdscc-9"})(["color:rgb(255,255,255);background:#d53a94;gap:8px;"]),XEe=hf.a.withConfig({displayName:"MessageInput__Link",componentId:"sc-xbdscc-13"})(["color:#d53a94;link-decoration:none;text-decoration:none;"]),eAe=e=>{var t,r;const{chatId:n,chatFilterList:i=[],messageInput:o=!0,chatViewList:s=!0,chatProfile:a=!0,limit:u=X3,emoji:l=!0,file:c=!0,gif:h=!0,isConnected:d=!0,autoConnect:f=!1,onVerificationFail:p,groupInfoModalBackground:m=Tve.OVERLAY,groupInfoModalPositionType:g=Cve.GLOBAL,verificationFailModalBackground:y=Tve.OVERLAY,verificationFailModalPosition:v=Cve.GLOBAL,component:b=null}=e||{},{env:_,signer:E,account:A,pgpPrivateKey:M}=c9(),S=(0,w.useContext)(eve),x=Y9(u6.mobileL);return(0,Tf.jsxs)(tAe,{width:"100%",height:"inherit",flexDirection:"column",justifyContent:"space-between",overflow:"hidden",background:null==(t=S.backgroundColor)?void 0:t.chatViewComponentBackground,borderRadius:null==(r=S.borderRadius)?void 0:r.chatViewComponent,padding:"13px",theme:S,children:[a&&(0,Tf.jsx)(t_e,{component:b,chatId:n,style:"Info",groupInfoModalBackground:m,groupInfoModalPositionType:g}),(0,Tf.jsx)(sfe,{flex:"1 1 auto",overflow:"hidden",padding:x?"0 10px":"0 20px",margin:"0 0px 10px 0px",flexDirection:"column",justifyContent:"start",children:n&&s&&(0,Tf.jsx)(xve,{chatFilterList:i,limit:u,chatId:n})}),!E&&!(A&&M)&&!d&&(0,Tf.jsx)(sfe,{flex:"0 1 auto",children:(0,Tf.jsxs)(ofe,{children:["You need to either pass signer or isConnected to send messages"," "]})}),o&&(!!E||!!A&&!!M||d)&&(0,Tf.jsx)(sfe,{flex:"0 1 auto",position:"static",children:(0,Tf.jsx)(YEe,{onVerificationFail:p,chatId:n,file:c,emoji:l,gif:h,isConnected:d,verificationFailModalBackground:y,verificationFailModalPosition:v,autoConnect:f})})]})},tAe=hf(sfe).withConfig({displayName:"ChatViewComponent__Conatiner",componentId:"sc-1hbxenz-0"})(["border:",";backdrop-filter:",";box-sizing:border-box;"],(e=>{var t;return null==(t=e.theme.border)?void 0:t.chatViewComponent}),(e=>e.theme.backdropFilter));r(98399);let rAe;!function(e){e[e.ENTRY=0]="ENTRY",e[e.CHAT=1]="CHAT"}(rAe||(rAe={}));var nAe=function(e,t){return nAe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},nAe(e,t)};var iAe=function(){return iAe=Object.assign||function(e){for(var t,r=1,n=arguments.length;rc*i?{width:c*i,height:c}:{width:l,height:l/i}}function uAe(e,t,r,n,i){void 0===i&&(i=0);var o=vAe(t.width,t.height,i),s=o.width,a=o.height;return{x:lAe(e.x,s,r.width,n),y:lAe(e.y,a,r.height,n)}}function lAe(e,t,r,n){var i=t*n/2-r/2;return bAe(e,-i,i)}function cAe(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function hAe(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function dAe(e,t,r,n,i,o,s){void 0===o&&(o=0),void 0===s&&(s=!0);var a=s?fAe:pAe,u=vAe(t.width,t.height,o),l=vAe(t.naturalWidth,t.naturalHeight,o),c={x:a(100,((u.width-r.width/i)/2-e.x/i)/u.width*100),y:a(100,((u.height-r.height/i)/2-e.y/i)/u.height*100),width:a(100,r.width/u.width*100/i),height:a(100,r.height/u.height*100/i)},h=Math.round(a(l.width,c.width*l.width/100)),d=Math.round(a(l.height,c.height*l.height/100)),f=l.width>=l.height*n?{width:Math.round(d*n),height:d}:{width:h,height:Math.round(h/n)};return{croppedAreaPercentages:c,croppedAreaPixels:iAe(iAe({},f),{x:Math.round(a(l.width-f.width,c.x*l.width/100)),y:Math.round(a(l.height-f.height,c.y*l.height/100))})}}function fAe(e,t){return Math.min(e,Math.max(0,t))}function pAe(e,t){return t}function mAe(e,t,r,n,i,o){var s=vAe(t.width,t.height,r),a=bAe(n.width/s.width*(100/e.width),i,o);return{crop:{x:a*s.width/2-n.width/2-s.width*a*(e.x/100),y:a*s.height/2-n.height/2-s.height*a*(e.y/100)},zoom:a}}function gAe(e,t,r,n,i,o){void 0===r&&(r=0);var s=vAe(t.naturalWidth,t.naturalHeight,r),a=bAe(function(e,t,r){var n=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return r.height>r.width?r.height/(e.height*n):r.width/(e.width*n)}(e,t,n),i,o),u=n.height>n.width?n.height/e.height:n.width/e.width;return{crop:{x:((s.width-e.width)/2-e.x)*u,y:((s.height-e.height)/2-e.y)*u},zoom:a}}function yAe(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function vAe(e,t,r){var n=r*Math.PI/180;return{width:Math.abs(Math.cos(n)*e)+Math.abs(Math.sin(n)*t),height:Math.abs(Math.sin(n)*e)+Math.abs(Math.cos(n)*t)}}function bAe(e,t,r){return Math.min(Math.max(e,t),r)}function wAe(){for(var e=[],t=0;t0})).join(" ").trim()}(function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.imageRef=w.createRef(),r.videoRef=w.createRef(),r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.gestureZoomStart=0,r.gestureRotationStart=0,r.isTouching=!1,r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.currentDoc="undefined"!=typeof document?document:null,r.currentWindow="undefined"!=typeof window?window:null,r.resizeObserver=null,r.state={cropSize:null,hasWheelJustStarted:!1},r.initResizeObserver=function(){if(void 0!==window.ResizeObserver&&r.containerRef){var e=!0;r.resizeObserver=new window.ResizeObserver((function(t){e?e=!1:r.computeSizes()})),r.resizeObserver.observe(r.containerRef)}},r.preventZoomSafari=function(e){return e.preventDefault()},r.cleanEvents=function(){r.currentDoc&&(r.currentDoc.removeEventListener("mousemove",r.onMouseMove),r.currentDoc.removeEventListener("mouseup",r.onDragStopped),r.currentDoc.removeEventListener("touchmove",r.onTouchMove),r.currentDoc.removeEventListener("touchend",r.onDragStopped),r.currentDoc.removeEventListener("gesturemove",r.onGestureMove),r.currentDoc.removeEventListener("gestureend",r.onGestureEnd))},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){var e=r.computeSizes();e&&(r.emitCropData(),r.setInitialCrop(e)),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(e){if(r.props.initialCroppedAreaPercentages){var t=mAe(r.props.initialCroppedAreaPercentages,r.mediaSize,r.props.rotation,e,r.props.minZoom,r.props.maxZoom),n=t.crop,i=t.zoom;r.props.onCropChange(n),r.props.onZoomChange&&r.props.onZoomChange(i)}else if(r.props.initialCroppedAreaPixels){var o=gAe(r.props.initialCroppedAreaPixels,r.mediaSize,r.props.rotation,e,r.props.minZoom,r.props.maxZoom);n=o.crop,i=o.zoom;r.props.onCropChange(n),r.props.onZoomChange&&r.props.onZoomChange(i)}},r.computeSizes=function(){var e,t,n,i,o,s,a=r.imageRef.current||r.videoRef.current;if(a&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect();var u=r.containerRect.width/r.containerRect.height,l=(null===(e=r.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=r.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,c=(null===(n=r.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(i=r.videoRef.current)||void 0===i?void 0:i.videoHeight)||0,h=l/c,d=void 0;if(a.offsetWidthh?{width:r.containerRect.height*h,height:r.containerRect.height}:{width:r.containerRect.width,height:r.containerRect.width/h};break;case"horizontal-cover":d={width:r.containerRect.width,height:r.containerRect.width/h};break;case"vertical-cover":d={width:r.containerRect.height*h,height:r.containerRect.height};break;case"auto-cover":d=l>c?{width:r.containerRect.width,height:r.containerRect.width/h}:{width:r.containerRect.height*h,height:r.containerRect.height}}else d={width:a.offsetWidth,height:a.offsetHeight};r.mediaSize=iAe(iAe({},d),{naturalWidth:l,naturalHeight:c}),r.props.setMediaSize&&r.props.setMediaSize(r.mediaSize);var f=r.props.cropSize?r.props.cropSize:aAe(r.mediaSize.width,r.mediaSize.height,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);return(null===(o=r.state.cropSize)||void 0===o?void 0:o.height)===f.height&&(null===(s=r.state.cropSize)||void 0===s?void 0:s.width)===f.width||r.props.onCropSizeChange&&r.props.onCropSizeChange(f),r.setState({cropSize:f},r.recomputeCropPosition),r.props.setCropSize&&r.props.setCropSize(f),f}},r.onMouseDown=function(e){r.currentDoc&&(e.preventDefault(),r.currentDoc.addEventListener("mousemove",r.onMouseMove),r.currentDoc.addEventListener("mouseup",r.onDragStopped),r.onDragStart(t.getMousePoint(e)))},r.onMouseMove=function(e){return r.onDrag(t.getMousePoint(e))},r.onTouchStart=function(e){r.currentDoc&&(r.isTouching=!0,r.props.onTouchRequest&&!r.props.onTouchRequest(e)||(r.currentDoc.addEventListener("touchmove",r.onTouchMove,{passive:!1}),r.currentDoc.addEventListener("touchend",r.onDragStopped),2===e.touches.length?r.onPinchStart(e):1===e.touches.length&&r.onDragStart(t.getTouchPoint(e.touches[0]))))},r.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?r.onPinchMove(e):1===e.touches.length&&r.onDrag(t.getTouchPoint(e.touches[0]))},r.onGestureStart=function(e){r.currentDoc&&(e.preventDefault(),r.currentDoc.addEventListener("gesturechange",r.onGestureMove),r.currentDoc.addEventListener("gestureend",r.onGestureEnd),r.gestureZoomStart=r.props.zoom,r.gestureRotationStart=r.props.rotation)},r.onGestureMove=function(e){if(e.preventDefault(),!r.isTouching){var n=t.getMousePoint(e),i=r.gestureZoomStart-1+e.scale;if(r.setNewZoom(i,n,{shouldUpdatePosition:!0}),r.props.onRotationChange){var o=r.gestureRotationStart+e.rotation;r.props.onRotationChange(o)}}},r.onGestureEnd=function(e){r.cleanEvents()},r.onDragStart=function(e){var t,n,i=e.x,o=e.y;r.dragStartPosition={x:i,y:o},r.dragStartCrop=iAe({},r.props.crop),null===(n=(t=r.props).onInteractionStart)||void 0===n||n.call(t)},r.onDrag=function(e){var t=e.x,n=e.y;r.currentWindow&&(r.rafDragTimeout&&r.currentWindow.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=r.currentWindow.requestAnimationFrame((function(){if(r.state.cropSize&&void 0!==t&&void 0!==n){var e=t-r.dragStartPosition.x,i=n-r.dragStartPosition.y,o={x:r.dragStartCrop.x+e,y:r.dragStartCrop.y+i},s=r.props.restrictPosition?uAe(o,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):o;r.props.onCropChange(s)}})))},r.onDragStopped=function(){var e,t;r.isTouching=!1,r.cleanEvents(),r.emitCropData(),null===(t=(e=r.props).onInteractionEnd)||void 0===t||t.call(e)},r.onWheel=function(e){if(r.currentWindow&&(!r.props.onWheelRequest||r.props.onWheelRequest(e))){e.preventDefault();var n=t.getMousePoint(e),i=sAe()(e).pixelY,o=r.props.zoom-i*r.props.zoomSpeed/200;r.setNewZoom(o,n,{shouldUpdatePosition:!0}),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=r.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=r.currentWindow.setTimeout((function(){return r.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=r.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)}},r.getPointOnContainer=function(e){var t=e.x,n=e.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(t-r.containerRect.left),y:r.containerRect.height/2-(n-r.containerRect.top)}},r.getPointOnMedia=function(e){var t=e.x,n=e.y,i=r.props,o=i.crop,s=i.zoom;return{x:(t+o.x)/s,y:(n+o.y)/s}},r.setNewZoom=function(e,t,n){var i=(void 0===n?{}:n).shouldUpdatePosition,o=void 0===i||i;if(r.state.cropSize&&r.props.onZoomChange){var s=bAe(e,r.props.minZoom,r.props.maxZoom);if(o){var a=r.getPointOnContainer(t),u=r.getPointOnMedia(a),l={x:u.x*s-a.x,y:u.y*s-a.y},c=r.props.restrictPosition?uAe(l,r.mediaSize,r.state.cropSize,s,r.props.rotation):l;r.props.onCropChange(c)}r.props.onZoomChange(s)}},r.getCropData=function(){return r.state.cropSize?dAe(r.props.restrictPosition?uAe(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition):null},r.emitCropData=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(t,n),r.props.onCropAreaChange&&r.props.onCropAreaChange(t,n)}},r.emitCropAreaChange=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropAreaChange&&r.props.onCropAreaChange(t,n)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var e=r.props.restrictPosition?uAe(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;r.props.onCropChange(e),r.emitCropData()}},r}(function(e,t){function r(){this.constructor=e}nAe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)})(t,e),t.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),void 0===window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n overflow: hidden;\n user-select: none;\n touch-action: none;\n cursor: move;\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n max-width: 100%;\n max-height: 100%;\n margin: auto;\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n width: 100%;\n height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n width: auto;\n height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n position: absolute;\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n border: 1px solid rgba(255, 255, 255, 0.5);\n box-sizing: border-box;\n box-shadow: 0 0 0 9999em;\n color: rgba(0, 0, 0, 0.5);\n overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 0;\n bottom: 0;\n left: 33.33%;\n right: 33.33%;\n border-top: 0;\n border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n content: ' ';\n box-sizing: border-box;\n position: absolute;\n border: 1px solid rgba(255, 255, 255, 0.5);\n top: 33.33%;\n bottom: 33.33%;\n left: 0;\n right: 0;\n border-left: 0;\n border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},t.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&(void 0===window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},t.prototype.componentDidUpdate=function(e){var t,r,n,i,o,s,a,u,l;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(r=this.props.cropSize)||void 0===r?void 0:r.height)||(null===(n=e.cropSize)||void 0===n?void 0:n.width)!==(null===(i=this.props.cropSize)||void 0===i?void 0:i.width)?this.computeSizes():(null===(o=e.crop)||void 0===o?void 0:o.x)===(null===(s=this.props.crop)||void 0===s?void 0:s.x)&&(null===(a=e.crop)||void 0===a?void 0:a.y)===(null===(u=this.props.crop)||void 0===u?void 0:u.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(l=this.videoRef.current)||void 0===l||l.load())},t.prototype.getAspect=function(){var e=this.props,t=e.cropSize,r=e.aspect;return t?t.width/t.height:r},t.prototype.onPinchStart=function(e){var r=t.getTouchPoint(e.touches[0]),n=t.getTouchPoint(e.touches[1]);this.lastPinchDistance=cAe(r,n),this.lastPinchRotation=hAe(r,n),this.onDragStart(yAe(r,n))},t.prototype.onPinchMove=function(e){var r=this;if(this.currentDoc&&this.currentWindow){var n=t.getTouchPoint(e.touches[0]),i=t.getTouchPoint(e.touches[1]),o=yAe(n,i);this.onDrag(o),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame((function(){var e=cAe(n,i),t=r.props.zoom*(e/r.lastPinchDistance);r.setNewZoom(t,o,{shouldUpdatePosition:!1}),r.lastPinchDistance=e;var s=hAe(n,i),a=r.props.rotation+(s-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(a),r.lastPinchRotation=s}))}},t.prototype.render=function(){var e=this,t=this.props,r=t.image,n=t.video,i=t.mediaProps,o=t.transform,s=t.crop,a=s.x,u=s.y,l=t.rotation,c=t.zoom,h=t.cropShape,d=t.showGrid,f=t.style,p=f.containerStyle,m=f.cropAreaStyle,g=f.mediaStyle,y=t.classes,v=y.containerClassName,b=y.cropAreaClassName,_=y.mediaClassName,E=t.objectFit;return w.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(t){return e.containerRef=t},"data-testid":"container",style:p,className:wAe("reactEasyCrop_Container",v)},r?w.createElement("img",iAe({alt:"",className:wAe("reactEasyCrop_Image","contain"===E&&"reactEasyCrop_Contain","horizontal-cover"===E&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===E&&"reactEasyCrop_Cover_Vertical","auto-cover"===E&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),_)},i,{src:r,ref:this.imageRef,style:iAe(iAe({},g),{transform:o||"translate(".concat(a,"px, ").concat(u,"px) rotate(").concat(l,"deg) scale(").concat(c,")")}),onLoad:this.onMediaLoad})):n&&w.createElement("video",iAe({autoPlay:!0,loop:!0,muted:!0,className:wAe("reactEasyCrop_Video","contain"===E&&"reactEasyCrop_Contain","horizontal-cover"===E&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===E&&"reactEasyCrop_Cover_Vertical","auto-cover"===E&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),_)},i,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:iAe(iAe({},g),{transform:o||"translate(".concat(a,"px, ").concat(u,"px) rotate(").concat(l,"deg) scale(").concat(c,")")}),controls:!1}),(Array.isArray(n)?n:[{src:n}]).map((function(e){return w.createElement("source",iAe({key:e.src},e))}))),this.state.cropSize&&w.createElement("div",{style:iAe(iAe({},m),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:wAe("reactEasyCrop_CropArea","round"===h&&"reactEasyCrop_CropAreaRound",d&&"reactEasyCrop_CropAreaGrid",b)}))},t.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},t.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},t.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}}})(w.Component),r(55390),r(98399);r(98399);const _Ae=({children:e})=>{const{account:t,env:r,acceptSpaceRequest:n,connectSpaceRequest:i,broadcastRaisedHand:o}=g6();return(({account:e,acceptSpaceRequest:t,connectSpaceRequest:r,broadcastRaisedHand:n,env:i=q3.PROD})=>{const[o,s]=(0,w.useState)(null),[a,u]=(0,w.useState)(!1),l=(0,w.useCallback)((()=>{null==o||o.on(Kf,(()=>{u(!0)})),null==o||o.on(qf,(()=>{u(!1)})),null==o||o.on(Wf,(e=>{var i,o,s,a;const{payload:u}=e;if(r9.log("USER FEEDS NOTIFICATION RECEIVED",null==u||null==(i=u.data)||null==(o=i.additionalMeta)?void 0:o.type,`${gB.PUSH_SPACE}+1`),(null==u||null==(s=u.data)||null==(a=s.additionalMeta)?void 0:a.type)===`${gB.PUSH_SPACE}+1`){const e=JSON.parse(u.data.additionalMeta.data),{callDetails:i,status:o}=e;r9.log("RECEIVED ADDITIONAL META DATA",e),o===pF.INITIALIZED&&((null==i?void 0:i.type)===vB.JOIN_SPEAKER&&(r9.log("ON HOST, ACCEPTING REQUEST OF AN ADDED SPEAKER TO JOIN"),t(e)),(null==i?void 0:i.type)===vB.ESTABLISH_MESH&&t(e),(null==i?void 0:i.type)===vB.REQUEST_TO_PROMOTE&&n(e)),o===pF.RECEIVED&&r(e),o===pF.DISCONNECTED&&(null==i||i.type,wB.LEAVE,null==i||i.type,wB.STOP)}}))}),[t,r,o]),c=(0,w.useCallback)((()=>{null==o||o.off(Kf),null==o||o.off(qf),null==o||o.off(Wf)}),[o]);(0,w.useEffect)((()=>(o&&l(),()=>{o&&c()})),[l,o,c]),(0,w.useEffect)((()=>{e&&(o&&(null==o||o.disconnect()),(async()=>{const t=mm({user:L8(e),env:i,socketType:"notification",socketOptions:{autoConnect:!0,reconnectionAttempts:3}});r9.warn("new connection object: ",t),s(t)})().catch((e=>r9.error(e))))}),[e,i])})({account:t,env:r,acceptSpaceRequest:n,connectSpaceRequest:i,broadcastRaisedHand:o}),(({account:e,env:t=q3.PROD})=>{const{spaceRequests:r,setSpaceRequests:n,popularSpaces:i,setPopularSpaces:o,mySpaces:s,setMySpaces:a,setSpaceInfo:u,pushSpaceSocket:l,setPushSpaceSocket:c,isPushSDKSocketConnected:h,setIsPushSDKSocketConnected:d,spacesObjectRef:f}=g6(),p=(0,w.useCallback)((()=>{a9.log("addSocketEvents"),null==l||l.on(Kf,(()=>{d(!0)})),null==l||l.on(qf,(e=>{d(!1)})),null==l||l.on("SPACES_MESSAGES",(async e=>{var t,r;a9.log("SPACES_MESSAGES RECEIVED",e),("Request"===(null==e?void 0:e.messageCategory)||"Approve"===(null==e?void 0:e.messageCategory))&&await(null==f||null==(t=f.current)||null==t.onJoinListener?void 0:t.onJoinListener({receivedAddress:null==e?void 0:e.fromCAIP10})),"Chat"===(null==e?void 0:e.messageCategory)&&"Meta"===(null==e?void 0:e.messageType)&&(null==f||null==(r=f.current)||null==r.onReceiveMetaMessage||r.onReceiveMetaMessage({receivedMetaMessage:e}))})),null==l||l.on("SPACES",(async l=>{var c,h,d,f,p,m;if(a9.log("SPACES EVENT RECEIVED",l),u(l.spaceId,l),null==l||null==(c=l.pendingMembers)?void 0:c.some((t=>s9(e,t.wallet))))if(null!=(d=null==r||null==(f=r.apiData)?void 0:f.some((e=>e.spaceId===l.spaceId)))&&d){var g;const e=null==r||null==(g=r.apiData)?void 0:g.map((e=>e.spaceId===l.spaceId?Object.assign({},e,{spaceInformation:l}):e));n({apiData:e})}else{const i=[await PF({account:e,env:t,recipient:l.spaceId,toDecrypt:!1}),...(null==r?void 0:r.apiData)||[]];n({apiData:i})}else if(null!=(p=null==s||null==(m=s.apiData)?void 0:m.some((e=>e.spaceId===l.spaceId)))&&p){var y;const e=null==s||null==(y=s.apiData)?void 0:y.map((e=>e.spaceId===l.spaceId?Object.assign({},e,{spaceInformation:l}):e));a({apiData:e})}else{const r=[await PF({account:e,env:t,recipient:l.spaceId,toDecrypt:!1}),...(null==s?void 0:s.apiData)||[]];a({apiData:r})}const v=null==i||null==(h=i.apiData)?void 0:h.map((e=>e.spaceId===l.spaceId?Object.assign({},e,{spaceInformation:l}):e));o({apiData:v})}))}),[l,r,i,s,u,o,e,n,t,a]),m=(0,w.useCallback)((()=>{null==l||l.off(Kf),null==l||l.off(qf),null==l||l.off($f),null==l||l.off(Vf)}),[l]);(0,w.useEffect)((()=>(l&&p(),()=>{l&&m()})),[l]),(0,w.useEffect)((()=>{e&&(l&&(null==l||l.disconnect()),(async()=>{const r=mm({user:e,env:t,socketType:"chat",socketOptions:{autoConnect:!0,reconnectionAttempts:3}});a9.warn("new connection object: ",r),c(r)})().catch((e=>a9.error(e))))}),[e,t]),(0,w.useEffect)((()=>{a9.log("isPushSDKSocketConnected",h)}),[h])})({account:t,env:r}),(0,Tf.jsx)(Tf.Fragment,{children:e})};class EAe extends Error{constructor(e,t,r,n){if(!Number.isInteger(e))throw new Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw new Error('"message" must be a nonempty string.');super(t),this.code=e,this.data=n,this.internal=r}}const AAe="stream is offline",MAe="shutting down since this session is not allowed to view this stream",SAe=e=>e.message.toLowerCase().includes("stream open failed")||e.message.toLowerCase().includes("stream is waiting for data")||e.message.toLowerCase().includes(AAe),xAe=e=>e.message.toLowerCase().includes(MAe);var kAe=r(98399);const TAe=e=>(t,r,n)=>{const i=n.subscribe;n.subscribe=(e,t,r)=>{let o=e;if(t){const i=(null==r?void 0:r.equalityFn)||Object.is;let s=e(n.getState());o=r=>{const n=e(r);if(!i(s,n)){const e=s;t(s=n,e)}},(null==r?void 0:r.fireImmediately)&&t(s,s)}return i(o)};return e(t,r,n)};function CAe(e,t){let r;try{r=e()}catch(fVe){return}const n={getItem:e=>{var n;const i=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),o=null!=(n=r.getItem(e))?n:null;return o instanceof Promise?o.then(i):i(o)},setItem:(e,n)=>r.setItem(e,JSON.stringify(n,null==t?void 0:t.replacer)),removeItem:e=>r.removeItem(e)};return n}const IAe=e=>t=>{try{const r=e(t);return r instanceof Promise?r:{then:e=>IAe(e)(r),catch(e){return this}}}catch(fVe){return{then(e){return this},catch:t=>IAe(t)(fVe)}}},NAe=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(kAe.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(r,n,i)=>{let o={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1;const a=new Set,u=new Set;let l;try{l=o.getStorage()}catch(fVe){}if(!l)return e(((...e)=>{kAe.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...e)}),n,i);const c=IAe(o.serialize),h=()=>{const e=o.partialize({...n()});let t;const r=c({state:e,version:o.version}).then((e=>l.setItem(o.name,e))).catch((e=>{t=e}));if(t)throw t;return r},d=i.setState;i.setState=(e,t)=>{d(e,t),h()};const f=e(((...e)=>{r(...e),h()}),n,i);let p;const m=()=>{var e;if(!l)return;s=!1,a.forEach((e=>e(n())));const t=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,n()))||void 0;return IAe(l.getItem.bind(l))(o.name).then((e=>{if(e)return o.deserialize(e)})).then((e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);kAe.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return p=o.merge(e,null!=(t=n())?t:f),r(p,!0),h()})).then((()=>{null==t||t(p,void 0),s=!0,u.forEach((e=>e(p)))})).catch((e=>{null==t||t(void 0,e)}))};return i.persist={setOptions:e=>{o={...o,...e},e.getStorage&&(l=e.getStorage())},clearStorage:()=>{null==l||l.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>s,onHydrate:e=>(a.add(e),()=>{a.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},m(),p||f})(e,t)):((e,t)=>(r,n,i)=>{let o={storage:CAe((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},s=!1;const a=new Set,u=new Set;let l=o.storage;if(!l)return e(((...e)=>{kAe.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),r(...e)}),n,i);const c=()=>{const e=o.partialize({...n()});return l.setItem(o.name,{state:e,version:o.version})},h=i.setState;i.setState=(e,t)=>{h(e,t),c()};const d=e(((...e)=>{r(...e),c()}),n,i);let f;const p=()=>{var e,t;if(!l)return;s=!1,a.forEach((e=>{var t;return e(null!=(t=n())?t:d)}));const i=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=n())?e:d))||void 0;return IAe(l.getItem.bind(l))(o.name).then((e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);kAe.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return f=o.merge(e,null!=(t=n())?t:d),r(f,!0),c()})).then((()=>{null==i||i(f,void 0),f=n(),s=!0,u.forEach((e=>e(f)))})).catch((e=>{null==i||i(void 0,e)}))};return i.persist={setOptions:e=>{o={...o,...e},e.storage&&(l=e.storage)},clearStorage:()=>{null==l||l.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>p(),hasHydrated:()=>s,onHydrate:e=>(a.add(e),()=>{a.delete(e)}),onFinishHydration:e=>(u.add(e),()=>{u.delete(e)})},o.skipHydration||p(),f||d})(e,t);var RAe=r(98399);const PAe=e=>{let t;const r=new Set,n=(e,n)=>{const i="function"==typeof e?e(t):e;if(!Object.is(i,t)){const e=t;t=(null!=n?n:"object"!=typeof i)?i:Object.assign({},t,i),r.forEach((r=>r(t,e)))}},i=()=>t,o={setState:n,getState:i,subscribe:e=>(r.add(e),()=>r.delete(e)),destroy:()=>{RAe.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}};return t=e(n,i,o),o},DAe=e=>e?PAe(e):PAe;var LAe=r(98399);const OAe={getItem:e=>"",setItem:(e,t)=>{},removeItem:e=>{}};function jAe({storage:e=OAe,key:t="livepeer"}){return{getItem:async(r,n=null)=>{try{const i=await e.getItem(`${t}.${r}`);return i?JSON.parse(i):n}catch(XMe){return LAe.warn(XMe),n}},setItem:async(r,n)=>{if(null===n)await e.removeItem(`${t}.${r}`);else try{await e.setItem(`${t}.${r}`,JSON.stringify(n))}catch(dVe){LAe.error(dVe)}},removeItem:async r=>e.removeItem(`${t}.${r}`)}}class BAe{constructor({provider:e,storage:t=jAe({})}){this.store=DAe(TAe(NAe((()=>({provider:e()})),{name:"livepeer-store",storage:CAe((()=>t)),partialize:e=>({}),version:1}))),this.config={provider:e,storage:t},this.storage=t}get error(){return this.store.getState().error}get provider(){return this.store.getState().provider}get subscribe(){return this.store.subscribe}setState(e){const t="function"==typeof e?e(this.store.getState()):e;this.store.setState(t,!0)}clearState(){this.setState((e=>({...e,data:void 0,error:void 0})))}async destroy(){this.clearState(),this.store.destroy()}}let UAe=null;function FAe(e){const t=new BAe(e);return UAe=t,t}function zAe(){if(!UAe)throw new Error("No livepeer client found.");return UAe}const HAe={core:"@livepeer/core@1.8.0",react:"@livepeer/react@2.8.0",reactNative:"@livepeer/react-native@1.8.0"};function GAe(){return zAe().provider}const YAe={name:"Livepeer Studio",baseUrl:"https://livepeer.studio/api",webrtcIngestBaseUrl:"https://webrtc.livepeer.studio/webrtc"};const KAe=(e,...t)=>{try{const r=Object.keys(e);return t.filter((e=>r.includes(e))).reduce(((t,r)=>({...t,[r]:e[r]})),{})}catch(fVe){throw new Error("Could not pick keys for object.")}};function qAe(e,...t){try{return Object.keys(e).filter((e=>!t.some((t=>String(t)===e)))).reduce(((t,r)=>({...t,[r]:e[r]})),{})}catch(fVe){throw new Error("Could not omit keys for object.")}}const WAe=e=>{for(const t of Object.keys(VAe))if(VAe[t]?.some((t=>t===e)))return t;return null},VAe={"application/mp4":["mp4s","m4p"],"application/ogg":["ogx"],"application/vnd.apple.mpegurl":["m3u8"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.dts":["dts"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"audio/xm":["xm"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/vp8":["vp8"],"video/webm":["webm"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"]},$Ae=/\.(m4a|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,QAe=/\.(mp4|ogv|webm|mov|m4v|avi|m3u8)($|\?)/i,JAe=/data:video/i,ZAe=/\.(m3u8)($|\?)/i,XAe=/(webrtc|sdp)/i,eMe=/data:(.+?);base64/,tMe=e=>{const t=e.match(eMe);return XAe.test(e)?{type:"webrtc",src:e,mime:"video/h264"}:ZAe.test(e)?{type:"hls",src:e,mime:WAe(ZAe.exec(e)?.[1]??"")}:QAe.test(e)?{type:"video",src:e,mime:WAe(QAe.exec(e)?.[1]??"")}:$Ae.test(e)?{type:"audio",src:e,mime:WAe($Ae.exec(e)?.[1]??"")}:JAe.test(e)?{type:"video",src:e,mime:t?t[1]:"video/mp4"}:null},rMe=e=>{const t=new URL(e).pathname.split("/"),r=t.includes("hls"),n=t.includes("webrtc"),i=t.includes("recordings");return n?t?.[(t?.length??0)-1]:i||r?t?.[(t?.length??0)-2]??null:null},nMe=["_lastInteraction","_requestSeekDiff","_requestedFullscreenLastTime","_requestedPictureInPictureLastTime","_requestedPlayPauseLastTime","_requestedRangeToSeekTo","_setVolume","_updateBuffered","_updateLastInteraction","_updateMediaStream","_updateSource","setIsVolumeChangeSupported","setError","setWebsocketMetadata","setStalled","setWaiting","onProgress","onDurationChange","onPlay","onPause"],iMe=e=>qAe(e,...nMe),oMe=e=>e&&!isNaN(e)&&isFinite(e)?e:0,sMe=(e,t)=>Math.min(Math.max(0,oMe(e)),oMe(t)?oMe(t)-.01:0),aMe=e=>Math.min(Math.max(0,oMe(e)),1),uMe=({element:e,device:t,storage:r,mediaProps:n,opts:i})=>{const o=DAe(TAe(NAe(((r,s)=>({_element:e??null,canPlay:!1,hidden:!1,live:!1,ingestUrl:n.ingestUrl??null,playbackId:n.playbackId??null,src:null,autoplay:Boolean(n.autoPlay),muted:Boolean(n.muted),priority:Boolean(n.priority),preload:n.priority?"full":"none",viewerId:n.viewerId??"",creatorId:n.creatorId??"",deviceIds:null,hasPlayed:!1,playing:!1,fullscreen:!1,pictureInPicture:!1,waiting:!1,stalled:!1,loading:!1,playbackRate:1,_mediaStream:null,video:null,device:t,progress:0,duration:0,buffered:0,volume:aMe(i?.defaultVolume??1),isVolumeChangeSupported:!1,_lastInteraction:Date.now(),_requestedRangeToSeekTo:0,_requestedFullscreenLastTime:Date.now(),_requestedPictureInPictureLastTime:Date.now(),_requestedPlayPauseLastTime:0,_updateMediaStream:(e,t)=>r((({deviceIds:r})=>({_mediaStream:e,...t?.video?{video:!0}:{},deviceIds:{...r,...t?.audio?{audio:t.audio}:{},...t?.video?{video:t.video}:{}}}))),setHidden:e=>r((({playing:t})=>({hidden:!!t&&e}))),_updateLastInteraction:()=>r((()=>({_lastInteraction:Date.now(),hidden:!1}))),_updateSource:e=>r((({playbackId:t})=>({src:tMe(e),...t?{}:{playbackId:rMe(e)}}))),onCanPlay:()=>r((()=>({canPlay:!0,loading:!1}))),onPlay:()=>r((()=>({playing:!0,hasPlayed:!0,stalled:!1,waiting:!1}))),onPause:()=>r((()=>({playing:!1,hidden:!1,stalled:!1,waiting:!1}))),togglePlay:e=>{const{hidden:t,setHidden:n,device:i}=o.getState();!e&&t&&i.isMobile?n(!1):r((()=>({_requestedPlayPauseLastTime:Date.now(),_lastInteraction:Date.now()})))},toggleVideo:()=>r((({video:e})=>({video:!e}))),onProgress:e=>r((()=>({progress:oMe(e),waiting:!1,stalled:!1}))),requestSeek:e=>r((({duration:t})=>({_requestedRangeToSeekTo:sMe(e,t),progress:sMe(e,t)}))),onDurationChange:e=>r((({live:t})=>({duration:e,live:e===Number.POSITIVE_INFINITY||t}))),setWebsocketMetadata:e=>r((()=>({metadata:e}))),_updateBuffered:e=>r((()=>({buffered:e}))),_requestSeekDiff:e=>r((({progress:t,duration:r})=>({_requestedRangeToSeekTo:sMe(oMe(t)+e/1e3,r)}))),requestSeekBack:(e=5e3)=>s()._requestSeekDiff(-e),requestSeekForward:(e=5e3)=>s()._requestSeekDiff(e),setSize:e=>r((()=>({size:e}))),setWaiting:e=>r((()=>({waiting:e}))),setError:e=>r((()=>({error:e}))),setStalled:e=>r((()=>({stalled:e}))),setLoading:e=>r((()=>({loading:e}))),setFullscreen:e=>r((()=>({fullscreen:e}))),requestToggleFullscreen:()=>r((()=>({_requestedFullscreenLastTime:Date.now()}))),setPictureInPicture:e=>r((()=>({pictureInPicture:e}))),requestTogglePictureInPicture:()=>r((()=>({_requestedPictureInPictureLastTime:Date.now()}))),setLive:e=>r((()=>({live:e}))),requestVolume:e=>r((({volume:t})=>({volume:0===e?t:aMe(e),muted:0===e}))),_setVolume:e=>r((()=>({volume:aMe(e)}))),requestToggleMute:()=>r((({muted:e})=>({muted:!e}))),setIsVolumeChangeSupported:e=>r((()=>({isVolumeChangeSupported:e})))})),{name:"livepeer-player",version:1,partialize:({volume:e,playbackRate:t})=>({volume:e,playbackRate:t}),storage:CAe((()=>r))})));return o};r(75291).Buffer;const lMe=e=>{if("object"==typeof e&&null!==e){if("function"==typeof Object.getPrototypeOf){const t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}return"[object Object]"===Object.prototype.toString.call(e)}return!1},cMe=(...e)=>e.reduce(((e,t)=>{if(Array.isArray(t))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(t).forEach((r=>{["__proto__","constructor","prototype"].includes(r)||(Array.isArray(e[r])&&Array.isArray(t[r])?e[r]=cMe.options.mergeArrays?Array.from(new Set(e[r].concat(t[r]))):t[r]:lMe(e[r])&&lMe(t[r])?e[r]=cMe(e[r],t[r]):e[r]=t[r])})),e}),{}),hMe={mergeArrays:!0};cMe.options=hMe,cMe.withOptions=(e,...t)=>{cMe.options={mergeArrays:!0,...e};const r=cMe(...t);return cMe.options=hMe,r};const dMe=cMe;var fMe=r(49694),pMe=r.n(fMe),mMe=r(98399);const gMe=["livepeer","livepeercdn","lp-playback"];class yMe{active=!1;values=[];score=null;averagingSteps=20;constructor(e){this.store=e}init(){this.active||(this.values=[],this.score=null,this.active=!0)}reset(){this.active?this.values=[]:this.init()}destroy(){this.active&&(this.values=[],this.score=null,this.active=!1)}calculateScore(){if(this.active){const e=this.values.length>0?this.values[this.values.length-1]:void 0,t={clockTime:.001*Date.now(),mediaTime:this.store.getState().progress,score:e?this.valueToScore(e):0};if(this.values.push(t),this.values.length<2)return null;const r=this.values[0];if(void 0!==r){const e=this.valueToScore(r,t);return this.values.length>this.averagingSteps&&this.values.shift(),this.score=Math.max(e,t.score),Math.round(10*this.score)/10}}return null}valueToScore(e,t){const r=this?.store?.getState?.()?.playbackRate??1;return(t?.mediaTime??this.store.getState().progress-e.mediaTime)/(t?.clockTime??.001*Date.now()-e.clockTime)/r}}class vMe{totalTime=0;countStarts=0;startTime=0;start(){this.startTime=Date.now(),this.countStarts++}stop(){this.totalTime+=this.startTime>0?Date.now()-this.startTime:0,this.startTime=0}getTotalTime(){return this.totalTime+=this.startTime>0?Date.now()-this.startTime:0,this.startTime=this.startTime>0?Date.now():0,this.totalTime}getCountStarts(){return this.countStarts}}class bMe{requestedPlayTime=0;firstFrameTime=0;retryCount=0;connected=!1;previousMetrics=null;timeWaiting=new vMe;timeStalled=new vMe;timeUnpaused=new vMe;constructor(e){const t=e.getState();this.store=e;const r="undefined"!=typeof window?window?.location?.href??"":"",n=function(){try{return"undefined"!=typeof window&&window.self!==window.top}catch(fVe){return!0}}()&&"undefined"!=typeof document&&document?.referrer||r,i=t?.src?.type??"unknown",o=t?.device.version??"unknown";this.currentMetrics={autoplay:t.priority&&t.autoplay?"autoplay":"full"===t.preload?"preload-full":"metadata"===t.preload?"preload-metadata":"standard",duration:null,firstPlayback:0,nError:0,nStalled:0,nWaiting:0,pageUrl:n,playbackScore:null,player:`${i}-${o}`,sourceType:t?.src?.mime??"unknown",sourceUrl:t?.src?.src??null,playerHeight:null,playerWidth:null,preloadTime:0,timeStalled:0,timeUnpaused:0,timeWaiting:0,ttff:0,uid:t.viewerId,userAgent:String(t?.device?.userAgent??"").replace(/\\|"/gm,""),videoHeight:null,videoWidth:null},this.destroy=e.subscribe(((e,t)=>{if(0===this.requestedPlayTime&&(e.autoplay?e.priority?e.src?.src&&e.hasPlayed&&(this.requestedPlayTime=Date.now()-_Me):e.src?.src&&(this.requestedPlayTime=Date.now()-_Me):e.src?.src&&e._requestedPlayPauseLastTime&&(this.requestedPlayTime=Date.now()-_Me)),e.src?.src!==t.src?.src){const t=e?.src?.type??"unknown",r=e?.device.version??"unknown";this.currentMetrics.player=`${t}-${r}`,this.currentMetrics.sourceType=e.src?.mime??"unknown",this.currentMetrics.sourceUrl=e.src?.src??null}e.playing!==t.playing&&(e.playing?(this.timeStalled.stop(),this.timeWaiting.stop(),this.timeUnpaused.start()):this.timeUnpaused.stop()),e.progress===t.progress||this.timeUnpaused.startTime||(this.timeStalled.stop(),this.timeWaiting.stop(),this.timeUnpaused.start()),e.stalled!==t.stalled&&e.stalled&&(this.timeStalled.start(),this.timeUnpaused.stop()),e.waiting!==t.waiting&&e.waiting&&(this.timeWaiting.start(),this.timeUnpaused.stop())}))}addError(e){this.currentMetrics.nError++,this.currentMetrics.lastError=e}getFirstPlayback(){return this.currentMetrics.firstPlayback}setFirstPlayback(){this.currentMetrics.firstPlayback=Date.now()-_Me}getFirstFrameTime(){return this.firstFrameTime}setFirstFrameTime(){this.firstFrameTime=Date.now()-_Me}setPlaybackScore(e){this.currentMetrics.playbackScore=e}setConnected(e){this.connected=e}getMetrics(){const e={...this.currentMetrics,playerHeight:this.store.getState().size?.container?.height??null,playerWidth:this.store.getState().size?.container?.width??null,videoWidth:this.store.getState().size?.media?.width??null,videoHeight:this.store.getState().size?.media?.height??null,duration:this.store.getState().duration,nWaiting:this.timeWaiting.getCountStarts(),nStalled:this.timeStalled.getCountStarts(),timeWaiting:this.timeWaiting.getTotalTime(),timeStalled:this.timeStalled.getTotalTime(),timeUnpaused:this.timeUnpaused.getTotalTime(),preloadTime:this.requestedPlayTime,ttff:this.firstFrameTime>0?Math.max(this.firstFrameTime-this.requestedPlayTime,0):0},t=this.previousMetrics;return this.previousMetrics=e,{current:e,previous:t}}}const wMe=(()=>{try{return Math.random().toString(16).substring(2)}catch(fVe){}return"none"})(),_Me=Date.now();function EMe(e,t){const r={metrics:null,destroy:()=>{}};if(!e)return r;if(!WebSocket)return mMe.log("Environment does not support WebSocket"),r;let n,i=null,o=!0;const s=new bMe(e),a=new yMe(e),u=()=>{if(!o||!n)return;const e=a.calculateScore();null!==e&&s.setPlaybackScore(e);const t=s.getMetrics(),r={};let l;for(l in t.current){const e=t.current[l];e!==t?.previous?.[l]&&(r[l]=e)}Object.keys(r).length>0&&function(e,t){if(e.readyState!==e.OPEN)return;e.send(JSON.stringify(t))}(n,r),i=setTimeout((function(){u()}),1e3)};let l=null;const c=e.subscribe((r=>{if(r?.playbackId&&r?.playbackId!==l&&r?.src?.src&&r._element){const s=r.playbackId,a=r.src.src;l=s;try{const r=async(l=0)=>{const c=await(async(e,t,r)=>{try{const n=new URL(t).host.split("."),i=gMe.includes(n?.[n.length-2]??""),o=n?.[n?.length-1]??null,s="com"===o||"studio"===o?"studio":"fun"===o?"fun:20443":"monster"===o?"monster":null;if(e&&i&&s)try{const t=(await pMe()(`https://playback.livepeer.${s}/json_video+${e}.js`))?.url?.replace("https:","wss:"),n=t?new URL(t):null;return n&&r&&n.searchParams.set("tkn",r),n?.toString?.()??null}catch(XMe){mMe.log("Could not fetch metrics reporting URL.",XMe)}}catch(XMe){return mMe.error(XMe?.message),null}return null})(s,a,wMe);if(c){const s=new WebSocket(c);return s.addEventListener("open",(()=>{u()})),s.addEventListener("message",(r=>{try{if(r?.data){const n=JSON.parse(r.data);n?.error&&e.getState().live&&t?.(new Error(n.error)),(n?.meta?.bframes||n?.meta?.buffer_window)&&e.getState().setWebsocketMetadata({bframes:n?.meta?.bframes?Number(n?.meta?.bframes):void 0,bufferWindow:n?.meta?.buffer_window?Number(n?.meta?.buffer_window):void 0})}}catch(fVe){mMe.warn("Failed to parse metadata from websocket.")}})),s.addEventListener("close",(e=>{i&&(clearTimeout(i),i=null,o=!1),3077!==e.code&&setTimeout((function(){r(l++).then((e=>{n=e}))}),1e3*Math.pow(2,l))})),s}return null};r().then((e=>{n=e})).catch((e=>{mMe.error(e),t?.(e)}))}catch(fVe){mMe.error(fVe)}}}));try{const t=e.subscribe(((e,t)=>{e.playing!==t.playing&&0===s.getFirstPlayback()&&s.setFirstPlayback(),e.progress!==t.progress&&0===s.getFirstFrameTime()&&s.setFirstFrameTime(),e.error!==t.error&&e.error&&s.addError(e.error??"unknown")})),r=e.subscribe(((e,t)=>{(e.playing!==t.playing&&e.playing||e.loading!==t.loading&&e.loading)&&a.init(),e._requestedRangeToSeekTo!==t._requestedRangeToSeekTo&&a.reset(),e.playing===t.playing||e.playing||a.destroy()})),u=()=>{o=!1,c?.(),r?.(),t?.(),a?.destroy?.(),s?.destroy?.(),i&&clearTimeout(i),n?.close(3077)};return{metrics:s,destroy:u}}catch(fVe){mMe.error(fVe)}return r}const AMe=[{key:"16to9",value:"16 / 9",numeric:16/9},{key:"1to1",value:"1 / 1",numeric:1},{key:"9to16",value:"9 / 16",numeric:9/16},{key:"4to5",value:"4 / 5",numeric:.8},{key:"21to9",value:"21 / 9",numeric:21/9}];var MMe=r(75291).Buffer;const SMe="function"==typeof btoa,xMe="function"==typeof MMe,kMe=("function"==typeof TextDecoder&&new TextDecoder,"function"==typeof TextEncoder?new TextEncoder:void 0),TMe=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),CMe=((e=>{let t={};e.forEach(((e,r)=>t[e]=r))})(TMe),String.fromCharCode.bind(String)),IMe=("function"==typeof Uint8Array.from&&Uint8Array.from.bind(Uint8Array),e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_"))),NMe=e=>{let t,r,n,i,o="";const s=e.length%3;for(let a=0;a255||(n=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|i,o+=TMe[t>>18&63]+TMe[t>>12&63]+TMe[t>>6&63]+TMe[63&t]}return s?o.slice(0,s-3)+"===".substring(s):o},RMe=SMe?e=>btoa(e):xMe?e=>MMe.from(e,"binary").toString("base64"):NMe,PMe=xMe?e=>MMe.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?CMe(192|t>>>6)+CMe(128|63&t):CMe(224|t>>>12&15)+CMe(128|t>>>6&63)+CMe(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return CMe(240|t>>>18&7)+CMe(128|t>>>12&63)+CMe(128|t>>>6&63)+CMe(128|63&t)},LMe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,OMe=e=>e.replace(LMe,DMe),jMe=xMe?e=>MMe.from(e,"utf8").toString("base64"):kMe?e=>PMe(kMe.encode(e)):e=>RMe(OMe(e)),BMe=(e,t=!1)=>t?IMe(jMe(e)):jMe(e),UMe=BMe;var FMe=r(35764),zMe=r.n(FMe);function HMe(e){return HMe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},HMe(e)}function GMe(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(KMe(this,a),(t=s.call(this,e)).originalRequest=n,t.originalResponse=i,t.causingError=r,null!=r&&(e+=", caused by ".concat(r.toString())),null!=n){var o=n.getHeader("X-Request-ID")||"n/a",u=n.getMethod(),l=n.getURL(),c=i?i.getStatus():"n/a",h=i?i.getBody()||"":"n/a";e+=", originated from request (method: ".concat(u,", url: ").concat(l,", response code: ").concat(c,", response text: ").concat(h,", request id: ").concat(o,")")}return t.message=e,t}return n=a,i&&GMe(n.prototype,i),o&&GMe(n,o),Object.defineProperty(n,"prototype",{writable:!1}),n}(WMe(Error));const XMe=ZMe;var eSe=r(98399),tSe=!1;function rSe(e){tSe&&eSe.log(e)}var nSe=r(98399);function iSe(){iSe=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(dVe){u=function(e,t,r){return e[t]=r}}function l(e,t,r,i){var o=t&&t.prototype instanceof d?t:d,s=Object.create(o.prototype),a=new S(i||[]);return n(s,"_invoke",{value:_(e,r,a)}),s}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(dVe){return{type:"throw",arg:dVe}}}e.wrap=l;var h={};function d(){}function f(){}function p(){}var m={};u(m,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(x([])));y&&y!==t&&r.call(y,o)&&(m=y);var v=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(n,o,s,a){var u=c(e[n],e,o);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==lSe(h)&&r.call(h,"__await")?t.resolve(h.__await).then((function(e){i("next",e,s,a)}),(function(e){i("throw",e,s,a)})):t.resolve(h).then((function(e){l.value=e,s(l)}),(function(e){return i("throw",e,s,a)}))}a(u.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return k()}for(r.method=i,r.arg=o;;){var s=r.delegate;if(s){var a=E(s,r);if(a){if(a===h)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=c(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=c(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function A(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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(a&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),M(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;M(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function oSe(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(XMe){return void r(XMe)}a.done?t(u):Promise.resolve(u).then(n,i)}function sSe(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function s(e){oSe(o,n,i,s,a,"next",e)}function a(e){oSe(o,n,i,s,a,"throw",e)}s(void 0)}))}}function aSe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,s,a=[],u=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(dVe){l=!0,i=dVe}finally{try{if(!u&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return uSe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return uSe(e,t)}(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.")}()}function uSe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1)for(var n=0,i=["uploadUrl","uploadSize","uploadLengthDeferred"];n1||null!=e._parallelUploadUrls?e._startParallelUpload():e._startSingleUpload()})).catch((function(t){e._emitError(t)}))}else this._emitError(new Error("tus: the `retryDelays` option must either be an array or null"))}else this._emitError(new Error("tus: neither an endpoint or an upload URL is provided"));else this._emitError(new Error("tus: no file or stream to upload provided"))}},{key:"_startParallelUpload",value:function(){var t,r=this,n=this._size,i=0;this._parallelUploads=[];var o=null!=this._parallelUploadUrls?this._parallelUploadUrls.length:this.options.parallelUploads,s=null!==(t=this.options.parallelUploadBoundaries)&&void 0!==t?t:function(e,t){for(var r=Math.floor(e/t),n=[],i=0;ithis._offsetBeforeRetry&&(this._retryAttempt=0),ESe(e,this._retryAttempt,this.options))){var r=this.options.retryDelays[this._retryAttempt++];return this._offsetBeforeRetry=this._offset,void(this._retryTimeout=setTimeout((function(){t.start()}),r))}if("function"!=typeof this.options.onError)throw e;this.options.onError(e)}}},{key:"_emitSuccess",value:function(){this.options.removeFingerprintOnSuccess&&this._removeFromUrlStorage(),"function"==typeof this.options.onSuccess&&this.options.onSuccess()}},{key:"_emitProgress",value:function(e,t){"function"==typeof this.options.onProgress&&this.options.onProgress(e,t)}},{key:"_emitChunkComplete",value:function(e,t,r){"function"==typeof this.options.onChunkComplete&&this.options.onChunkComplete(e,t,r)}},{key:"_createUpload",value:function(){var e=this;if(this.options.endpoint){var t=this._openRequest("POST",this.options.endpoint);this.options.uploadLengthDeferred?t.setHeader("Upload-Defer-Length",1):t.setHeader("Upload-Length",this._size);var r,n=ySe(this.options.metadata);""!==n&&t.setHeader("Upload-Metadata",n),this.options.uploadDataDuringCreation&&!this.options.uploadLengthDeferred?(this._offset=0,r=this._addChunkToRequest(t)):r=this._sendRequest(t,null),r.then((function(r){if(vSe(r.getStatus(),200)){var n=r.getHeader("Location");if(null!=n){if(e.url=ASe(e.options.endpoint,n),rSe("Created upload at ".concat(e.url)),"function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),0===e._size)return e._emitSuccess(),void e._source.close();e._saveUploadInUrlStorage().then((function(){e.options.uploadDataDuringCreation?e._handleUploadResponse(t,r):(e._offset=0,e._performUpload())}))}else e._emitHttpError(t,r,"tus: invalid or missing Location header")}else e._emitHttpError(t,r,"tus: unexpected response while creating upload")})).catch((function(r){e._emitHttpError(t,null,"tus: failed to create upload",r)}))}else this._emitError(new Error("tus: unable to create upload because no endpoint is provided"))}},{key:"_resumeUpload",value:function(){var e=this,t=this._openRequest("HEAD",this.url);this._sendRequest(t,null).then((function(r){var n=r.getStatus();if(!vSe(n,200))return 423===n?void e._emitHttpError(t,r,"tus: upload is currently locked; retry later"):(vSe(n,400)&&e._removeFromUrlStorage(),e.options.endpoint?(e.url=null,void e._createUpload()):void e._emitHttpError(t,r,"tus: unable to resume upload (new upload cannot be created without an endpoint)"));var i=parseInt(r.getHeader("Upload-Offset"),10);if(Number.isNaN(i))e._emitHttpError(t,r,"tus: invalid or missing offset value");else{var o=parseInt(r.getHeader("Upload-Length"),10);!Number.isNaN(o)||e.options.uploadLengthDeferred?("function"==typeof e.options.onUploadUrlAvailable&&e.options.onUploadUrlAvailable(),e._saveUploadInUrlStorage().then((function(){if(i===o)return e._emitProgress(o,o),void e._emitSuccess();e._offset=i,e._performUpload()}))):e._emitHttpError(t,r,"tus: invalid or missing length value")}})).catch((function(r){e._emitHttpError(t,null,"tus: failed to resume upload",r)}))}},{key:"_performUpload",value:function(){var e,t=this;this._aborted||(this.options.overridePatchMethod?(e=this._openRequest("POST",this.url)).setHeader("X-HTTP-Method-Override","PATCH"):e=this._openRequest("PATCH",this.url),e.setHeader("Upload-Offset",this._offset),this._addChunkToRequest(e).then((function(r){vSe(r.getStatus(),200)?t._handleUploadResponse(e,r):t._emitHttpError(e,r,"tus: unexpected response while uploading chunk")})).catch((function(r){t._aborted||t._emitHttpError(e,null,"tus: failed to upload chunk at offset ".concat(t._offset),r)})))}},{key:"_addChunkToRequest",value:function(e){var t=this,r=this._offset,n=this._offset+this.options.chunkSize;return e.setProgressHandler((function(e){t._emitProgress(r+e,t._size)})),e.setHeader("Content-Type","application/offset+octet-stream"),(n===1/0||n>this._size)&&!this.options.uploadLengthDeferred&&(n=this._size),this._source.slice(r,n).then((function(r){var n=r.value,i=r.done,o=n&&n.size?n.size:0;t.options.uploadLengthDeferred&&i&&(t._size=t._offset+o,e.setHeader("Upload-Length",t._size));var s=t._offset+o;return!t.options.uploadLengthDeferred&&i&&s!==t._size?Promise.reject(new Error("upload was configured with a size of ".concat(t._size," bytes, but the source is done after ").concat(s," bytes"))):null===n?t._sendRequest(e):(t._emitProgress(t._offset,t._size),t._sendRequest(e,n))}))}},{key:"_handleUploadResponse",value:function(e,t){var r=parseInt(t.getHeader("Upload-Offset"),10);if(Number.isNaN(r))this._emitHttpError(e,t,"tus: invalid or missing offset value");else{if(this._emitProgress(r,this._size),this._emitChunkComplete(r-this._offset,r,this._size),this._offset=r,r===this._size)return this._emitSuccess(),void this._source.close();this._performUpload()}}},{key:"_openRequest",value:function(e,t){var r=bSe(e,t,this.options);return this._req=r,r}},{key:"_removeFromUrlStorage",value:function(){var e=this;this._urlStorageKey&&(this._urlStorage.removeUpload(this._urlStorageKey).catch((function(t){e._emitError(t)})),this._urlStorageKey=null)}},{key:"_saveUploadInUrlStorage",value:function(){var e=this;if(!this.options.storeFingerprintForResuming||!this._fingerprint||null!==this._urlStorageKey)return Promise.resolve();var t={size:this._size,metadata:this.options.metadata,creationTime:(new Date).toString()};return this._parallelUploads?t.parallelUploadUrls=this._parallelUploadUrls:t.uploadUrl=this.url,this._urlStorage.addUpload(this._fingerprint,t).then((function(t){e._urlStorageKey=t}))}},{key:"_sendRequest",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return wSe(e,t,this.options)}}],n=[{key:"terminate",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=bSe("DELETE",t,r);return wSe(n,null,r).then((function(e){if(204!==e.getStatus())throw new XMe("tus: unexpected response while terminating upload",null,n,e)})).catch((function(i){if(i instanceof XMe||(i=new XMe("tus: failed to terminate upload",i,n,null)),!ESe(i,0,r))throw i;var o=r.retryDelays[0],s=r.retryDelays.slice(1),a=hSe(hSe({},r),{},{retryDelays:s});return new Promise((function(e){return setTimeout(e,o)})).then((function(){return e.terminate(t,a)}))}))}}],r&&fSe(t.prototype,r),n&&fSe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ySe(e){return Object.entries(e).map((function(e){var t=aSe(e,2),r=t[0],n=t[1];return"".concat(r," ").concat(UMe(String(n)))})).join(",")}function vSe(e,t){return e>=t&&e=r.retryDelays.length||null==e.originalRequest)return!1;if(r&&"function"==typeof r.onShouldRetry)return r.onShouldRetry(e,t,r);var n,i=e.originalResponse?e.originalResponse.getStatus():0;return(!vSe(i,400)||409===i||423===i)&&(n=!0,"undefined"!=typeof window&&"navigator"in window&&!1===window.navigator.onLine&&(n=!1),n)}function ASe(e,t){return new(zMe())(t,e).toString()}gSe.defaultOptions=mSe;const MSe=gSe;function SSe(e){return SSe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},SSe(e)}function xSe(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:null;return new Promise((function(r,n){e._xhr.onload=function(){r(new YSe(e._xhr))},e._xhr.onerror=function(e){n(e)},e._xhr.send(t)}))}},{key:"abort",value:function(){return this._xhr.abort(),Promise.resolve()}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}(),YSe=function(){function e(t){BSe(this,e),this._xhr=t}return FSe(e,[{key:"getStatus",value:function(){return this._xhr.status}},{key:"getHeader",value:function(e){return this._xhr.getResponseHeader(e)}},{key:"getBody",value:function(){return this._xhr.responseText}},{key:"getUnderlyingObject",value:function(){return this._xhr}}]),e}();const KSe=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()};function qSe(e){return new Promise((function(t,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var e=n.response;t(e)},n.onerror=function(e){r(e)},n.open("GET",e),n.send()}))}const WSe=function(){return"undefined"!=typeof window&&(void 0!==window.PhoneGap||void 0!==window.Cordova||void 0!==window.cordova)};function VSe(e){return VSe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},VSe(e)}function $Se(e,t){for(var r=0;r=this.size;return Promise.resolve({value:r,done:n})}},{key:"close",value:function(){}}],r&&$Se(t.prototype,r),n&&$Se(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function ZSe(e){return ZSe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ZSe(e)}function XSe(e,t){for(var r=0;rthis._bufferOffset&&(this._buffer=this._buffer.slice(e-this._bufferOffset),this._bufferOffset=e);var r=0===txe(this._buffer);return this._done&&r?null:this._buffer.slice(0,t-e)}},{key:"close",value:function(){this._reader.cancel&&this._reader.cancel()}}],r&&XSe(t.prototype,r),n&&XSe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function nxe(e){return nxe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nxe(e)}function ixe(){ixe=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(dVe){u=function(e,t,r){return e[t]=r}}function l(e,t,r,i){var o=t&&t.prototype instanceof d?t:d,s=Object.create(o.prototype),a=new S(i||[]);return n(s,"_invoke",{value:_(e,r,a)}),s}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(dVe){return{type:"throw",arg:dVe}}}e.wrap=l;var h={};function d(){}function f(){}function p(){}var m={};u(m,o,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(x([])));y&&y!==t&&r.call(y,o)&&(m=y);var v=p.prototype=d.prototype=Object.create(m);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function i(n,o,s,a){var u=c(e[n],e,o);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==nxe(h)&&r.call(h,"__await")?t.resolve(h.__await).then((function(e){i("next",e,s,a)}),(function(e){i("throw",e,s,a)})):t.resolve(h).then((function(e){l.value=e,s(l)}),(function(e){return i("throw",e,s,a)}))}a(u.arg)}var o;n(this,"_invoke",{value:function(e,r){function n(){return new t((function(t,n){i(e,r,t,n)}))}return o=o?o.then(n,n):n()}})}function _(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return k()}for(r.method=i,r.arg=o;;){var s=r.delegate;if(s){var a=E(s,r);if(a){if(a===h)continue;return a}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=c(e,t,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function E(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=c(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function A(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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function x(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(a&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),M(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;M(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function oxe(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(XMe){return void r(XMe)}a.done?t(u):Promise.resolve(u).then(n,i)}function sxe(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return cxe(this,o),t=yxe(yxe({},wxe),t),i.call(this,e,t)}return t=o,n=[{key:"terminate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=yxe(yxe({},wxe),t),MSe.terminate(e,t)}}],(r=null)&&hxe(t.prototype,r),n&&hxe(t,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(MSe),Exe=window,Axe=Exe.XMLHttpRequest,Mxe=Exe.Blob,Sxe=(Axe&&Mxe&&Mxe.prototype.slice,r(98399));class xxe{constructor(e){this._config=e}getConfig(){return this._config}async _get(e,t){const r=await pMe()(`${this._config.baseUrl}${e}`,{method:"GET",...t,headers:{...t?.headers,"x-core-sdk-version":HAe.core,"x-react-sdk-version":HAe.react,"x-react-native-sdk-version":HAe.reactNative}});if(!r.ok)throw new EAe(r.status,`Provider failed to get object from ${this._config.baseUrl}${e}, status code was ${r.status}`,await r.json());return r.json()}async _create(e,t){const r=await pMe()(`${this._config.baseUrl}${e}`,{method:"POST",...t,...t?.json?{body:JSON.stringify(t.json)}:{},headers:{...t?.json?{"content-type":"application/json"}:{},...t?.headers,"x-core-sdk-version":HAe.core,"x-react-sdk-version":HAe.react,"x-react-native-sdk-version":HAe.reactNative}});if(!r.ok)throw new EAe(r.status,"Provider failed to create object",await r.json());return r.json()}async _update(e,t){const r=await pMe()(`${this._config.baseUrl}${e}`,{method:"PATCH",...t,...t?.json?{body:JSON.stringify(t.json)}:{},headers:{...t?.json?{"content-type":"application/json"}:{},...t?.headers,"x-core-sdk-version":HAe.core,"x-react-sdk-version":HAe.react,"x-react-native-sdk-version":HAe.reactNative}});if(!r.ok)throw new EAe(r.status,"Provider failed to update object",await r.json())}}class kxe extends xxe{constructor(e){super(e),this._defaultHeaders={...e.apiKey?{Authorization:`Bearer ${e.apiKey}`}:{},...e.origin?{Origin:e.origin}:{}}}async createStream(e){const t=this._getPlaybackPolicyMapped(e.playbackPolicy),r=await this._create("/stream",{json:{...e,...t?{playbackPolicy:t}:{},...e.creatorId?{creatorId:e.creatorId}:{}},headers:this._defaultHeaders});return this._mapToStream(r)}async updateStream(e){const t="string"==typeof e?e:e.streamId,r=this._getPlaybackPolicyMapped(e.playbackPolicy);return await this._update(`/stream/${t}`,{json:{...void 0!==e?.record?{record:Boolean(e.record)}:{},...void 0!==e?.suspend?{suspended:Boolean(e.suspend)}:{},...void 0!==e?.multistream?.targets?{multistream:{targets:e.multistream.targets.map((e=>void 0===e.id||"url"in(e.spec??{})?{...e,id:void 0}:{...e,spec:void 0}))}}:{},...r?{playbackPolicy:r}:{},...e.creatorId?{creatorId:e.creatorId}:{}},headers:this._defaultHeaders}),this.getStream(t)}async getStream(e){const t=await this._get(`/stream/${"string"==typeof e?e:e.streamId}`,{headers:this._defaultHeaders});return this._mapToStream(t)}async getStreamSession(e){return await this._get(`/session/${"string"==typeof e?e:e.streamSessionId}`,{headers:this._defaultHeaders})}async getStreamSessions(e){return await this._get(`/stream/${"string"==typeof e?e:e.streamId}/sessions`,{headers:this._defaultHeaders})}async createAsset(e){const{sources:t,onProgress:r,noWait:n,chunkSize:i}=e;let o=t.map((e=>({name:e.name,progress:0,assetId:null,phase:e?.url?"waiting":"uploading"})));const s=await Promise.allSettled(t.map((async(e,t)=>{const n=this._getPlaybackPolicyMapped(e.playbackPolicy);if(e.url){return(await this._create("/asset/upload/url",{json:{name:e.name,url:e.url,storage:e?.storage?.ipfs?{ipfs:{spec:{nftMetadata:e?.storage?.metadata??{},...e?.storage?.metadataTemplate?{nftMetadataTemplate:e.storage.metadataTemplate}:{}}}}:void 0,...n?{playbackPolicy:n}:{},...e.creatorId?{creatorId:e.creatorId}:{}},headers:this._defaultHeaders}))?.asset?.id}{const s=await this._create("/asset/request-upload",{json:{name:e.name,storage:e?.storage?.ipfs?{ipfs:{spec:{nftMetadata:e?.storage?.metadata??{},...e?.storage?.metadataTemplate?{nftMetadataTemplate:e.storage.metadataTemplate}:{}}}}:void 0,...n?{playbackPolicy:n}:{},...e.creatorId?{creatorId:e.creatorId}:{}},headers:this._defaultHeaders}),{tusEndpoint:a,asset:{id:u}}=s;return await new Promise(((n,s)=>{const l=new _xe(e.file,{endpoint:a,metadata:{id:u},...i?{chunkSize:i}:"undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase()?null:{chunkSize:104857600},onError:e=>{Sxe.log("Failed because: ",e)},onProgress(n,i){const s=n/i,a={name:e.name,assetId:u,progress:s,phase:"uploading"},l=[...o];l[t]=a,o=l,r?.(o)},onSuccess(){n()}});l.findPreviousUploads().then((e=>{e?.length>0&&e[0]&&l.resumeFromPreviousUpload(e[0]),l.start()})).catch(s)})),u}})));if(n)return Promise.all(s.map((async e=>{if("rejected"===e.status)throw e.reason;return this.getAsset(e.value)})));const a=await Promise.allSettled(s.map((async(e,t)=>{if("rejected"===e.status)throw e.reason;let n=null,i=0;for(;"ready"!==n?.status?.phase&&"failed"!==n?.status?.phase;)try{if(await new Promise((e=>setTimeout(e,1e3*Math.random()+4e3))),n=await this.getAsset(e.value),void 0===n.status?.phase)throw new Error("Asset phase was undefined.");{const e={name:n.name,assetId:n.id,progress:n.status.progress??0,phase:n.status.phase},i=[...o];i[t]=e,o=i,r?.(o)}}catch(fVe){if(i>5)throw fVe;i+=1}const s={name:n.name,assetId:n.id,progress:1,phase:n.status.phase},a=[...o];return a[t]=s,o=a,r?.(o),n})));return[...a.map((e=>{if("fulfilled"===e.status)return e.value;throw e.reason}))]}async getAsset(e){return await this._get(`/asset/${"string"==typeof e?e:e.assetId}`,{headers:this._defaultHeaders})}async updateAsset(e){const{assetId:t,name:r,storage:n}=e,i=this._getPlaybackPolicyMapped(e.playbackPolicy);return await this._update(`/asset/${t}`,{json:{name:void 0!==r?String(r):void 0,storage:n?.ipfs?{ipfs:{spec:{nftMetadata:n?.metadata??{},...n?.metadataTemplate?{nftMetadataTemplate:n.metadataTemplate}:{}}}}:void 0,...i?{playbackPolicy:i}:{},...e.creatorId?{creatorId:e.creatorId}:{}},headers:this._defaultHeaders}),this.getAsset({assetId:t})}_getRtmpIngestUrl(e){return`rtmp://rtmp.livepeer.com/live/${e}`}async getPlaybackInfo(e){const t="string"==typeof e?e:e.playbackId,r=encodeURIComponent(t),n=await this._get(`/playback/${r}`,{headers:this._defaultHeaders});return this._mapToPlaybackInfo(n)}_getPlaybackUrl(e){return`https://livepeercdn.com/hls/${e}/index.m3u8`}async getAssetMetrics(e){const t="string"==typeof e?e:e.assetId,r=await this._get(`/data/views/${t}/total`,{headers:this._defaultHeaders});return this._mapToViewsMetrics(r)}async _mapToStream(e){return{...e,multistream:await this._mapToMultistream(e.multistream),rtmpIngestUrl:this._getRtmpIngestUrl(e.streamKey),playbackUrl:this._getPlaybackUrl(e.playbackId)}}async _mapToMultistream(e){if(!e?.targets)return;const t=e.targets.map((async e=>{const{name:t}=await this._get(`/multistream/target/${e.id}`,{headers:this._defaultHeaders});return{...e,spec:{name:t}}}));return{targets:await Promise.all(t)}}_mapToPlaybackInfo(e){return{type:e?.type,meta:{...e?.meta,live:Boolean(e?.meta?.live),source:e?.meta?.source?.map((e=>({...e}))),attestation:e?.meta?.attestation}}}_mapToViewsMetrics(e){return{type:"ViewsMetrics",metrics:e}}_getPlaybackPolicyMapped(e){return e&&void 0!==e?.type?"webhook"===e.type?{type:e.type,webhookId:e.webhookId,webhookContext:e.webhookContext}:{type:e.type}:null}}function Txe(e){return()=>new kxe({...YAe,...e})}var Cxe,Ixe="colors",Nxe="sizes",Rxe="space",Pxe={gap:Rxe,gridGap:Rxe,columnGap:Rxe,gridColumnGap:Rxe,rowGap:Rxe,gridRowGap:Rxe,inset:Rxe,insetBlock:Rxe,insetBlockEnd:Rxe,insetBlockStart:Rxe,insetInline:Rxe,insetInlineEnd:Rxe,insetInlineStart:Rxe,margin:Rxe,marginTop:Rxe,marginRight:Rxe,marginBottom:Rxe,marginLeft:Rxe,marginBlock:Rxe,marginBlockEnd:Rxe,marginBlockStart:Rxe,marginInline:Rxe,marginInlineEnd:Rxe,marginInlineStart:Rxe,padding:Rxe,paddingTop:Rxe,paddingRight:Rxe,paddingBottom:Rxe,paddingLeft:Rxe,paddingBlock:Rxe,paddingBlockEnd:Rxe,paddingBlockStart:Rxe,paddingInline:Rxe,paddingInlineEnd:Rxe,paddingInlineStart:Rxe,top:Rxe,right:Rxe,bottom:Rxe,left:Rxe,scrollMargin:Rxe,scrollMarginTop:Rxe,scrollMarginRight:Rxe,scrollMarginBottom:Rxe,scrollMarginLeft:Rxe,scrollMarginX:Rxe,scrollMarginY:Rxe,scrollMarginBlock:Rxe,scrollMarginBlockEnd:Rxe,scrollMarginBlockStart:Rxe,scrollMarginInline:Rxe,scrollMarginInlineEnd:Rxe,scrollMarginInlineStart:Rxe,scrollPadding:Rxe,scrollPaddingTop:Rxe,scrollPaddingRight:Rxe,scrollPaddingBottom:Rxe,scrollPaddingLeft:Rxe,scrollPaddingX:Rxe,scrollPaddingY:Rxe,scrollPaddingBlock:Rxe,scrollPaddingBlockEnd:Rxe,scrollPaddingBlockStart:Rxe,scrollPaddingInline:Rxe,scrollPaddingInlineEnd:Rxe,scrollPaddingInlineStart:Rxe,fontSize:"fontSizes",background:Ixe,backgroundColor:Ixe,backgroundImage:Ixe,borderImage:Ixe,border:Ixe,borderBlock:Ixe,borderBlockEnd:Ixe,borderBlockStart:Ixe,borderBottom:Ixe,borderBottomColor:Ixe,borderColor:Ixe,borderInline:Ixe,borderInlineEnd:Ixe,borderInlineStart:Ixe,borderLeft:Ixe,borderLeftColor:Ixe,borderRight:Ixe,borderRightColor:Ixe,borderTop:Ixe,borderTopColor:Ixe,caretColor:Ixe,color:Ixe,columnRuleColor:Ixe,fill:Ixe,outline:Ixe,outlineColor:Ixe,stroke:Ixe,textDecorationColor:Ixe,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:Nxe,minBlockSize:Nxe,maxBlockSize:Nxe,inlineSize:Nxe,minInlineSize:Nxe,maxInlineSize:Nxe,width:Nxe,minWidth:Nxe,maxWidth:Nxe,height:Nxe,minHeight:Nxe,maxHeight:Nxe,flexBasis:Nxe,gridTemplateColumns:Nxe,gridTemplateRows:Nxe,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},Dxe=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,Lxe=()=>{const e=Object.create(null);return(t,r,...n)=>{const i=(e=>JSON.stringify(e,Dxe))(t);return i in e?e[i]:e[i]=r(t,...n)}},Oxe=Symbol.for("sxs.internal"),jxe=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),Bxe=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:Uxe}=Object.prototype,Fxe=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),zxe=/\s+(?![^()]*\))/,Hxe=e=>t=>e(..."string"==typeof t?String(t).split(zxe):[t]),Gxe={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:Hxe(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:Hxe(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:Hxe(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:Hxe(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:Hxe(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:Hxe(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},Yxe=/([\d.]+)([^]*)/,Kxe=(e,t)=>e.length?e.reduce(((e,r)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(r)&&/&.*&/.test(e)?`:is(${r})`:r):r+" "+e))),e)),[]):t,qxe=(e,t)=>e in Wxe&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,r,n,i)=>r+("stretch"===n?`-moz-available${i};${Fxe(e)}:${r}-webkit-fill-available`:`-moz-fit-content${i};${Fxe(e)}:${r}fit-content`)+i)):String(t),Wxe={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},Vxe=e=>e?e+"-":"",$xe=(e,t,r)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,n,i,o,s)=>"$"==o==!!i?e:(n||"--"==o?"calc(":"")+"var(--"+("$"===o?Vxe(t)+(s.includes("$")?"":Vxe(r))+s.replace(/\$/g,"-"):s)+")"+(n||"--"==o?"*"+(n||"")+(i||"1")+")":""))),Qxe=/\s*,\s*(?![^()]*\))/,Jxe=Object.prototype.toString,Zxe=(e,t,r,n,i)=>{let o,s,a;const u=(e,t,r)=>{let l,c;const h=e=>{for(l in e){const p=64===l.charCodeAt(0),m=p&&Array.isArray(e[l])?e[l]:[e[l]];for(c of m){const e=/[A-Z]/.test(f=l)?f:f.replace(/-[^]/g,(e=>e[1].toUpperCase())),m="object"==typeof c&&c&&c.toString===Jxe&&(!n.utils[e]||!t.length);if(e in n.utils&&!m){const t=n.utils[e];if(t!==s){s=t,h(t(c)),s=null;continue}}else if(e in Gxe){const t=Gxe[e];if(t!==a){a=t,h(t(c)),a=null;continue}}if(p&&(d=l.slice(1)in n.media?"@media "+n.media[l.slice(1)]:l,l=d.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,r,n,i,o)=>{const s=Yxe.test(t),a=.0625*(s?-1:1),[u,l]=s?[n,t]:[t,n];return"("+("="===r[0]?"":">"===r[0]===s?"max-":"min-")+u+":"+("="!==r[0]&&1===r.length?l.replace(Yxe,((e,t,n)=>Number(t)+a*(">"===r?1:-1)+n)):l)+(i?") and ("+(">"===i[0]?"min-":"max-")+u+":"+(1===i.length?o.replace(Yxe,((e,t,r)=>Number(t)+a*(">"===i?-1:1)+r)):o):"")+")"}))),m){const e=p?r.concat(l):[...r],n=p?[...t]:Kxe(t,l.split(Qxe));void 0!==o&&i(Xxe(...o)),o=void 0,u(c,n,e)}else void 0===o&&(o=[[],t,r]),l=p||36!==l.charCodeAt(0)?l:`--${Vxe(n.prefix)}${l.slice(1).replace(/\$/g,"-")}`,c=m?c:"number"==typeof c?c&&e in eke?String(c)+"px":String(c):$xe(qxe(e,null==c?"":c),n.prefix,n.themeMap[e]),o[0].push(`${p?`${l} `:`${Fxe(l)}:`}${c}`)}}var d,f};h(e),void 0!==o&&i(Xxe(...o)),o=void 0};u(e,t,r)},Xxe=(e,t,r)=>`${r.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(r.length?r.length+1:0).join("}")}`,eke={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},tke=e=>String.fromCharCode(e+(e>25?39:97)),rke=e=>(e=>{let t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=tke(t%52)+r;return tke(t%52)+r})(((e,t)=>{let r=t.length;for(;r;)e=33*e^t.charCodeAt(--r);return e})(5381,JSON.stringify(e))>>>0),nke=["themed","global","styled","onevar","resonevar","allvar","inline"],ike=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},oke=e=>{let t;const r=()=>{const{cssRules:e}=t.sheet;return[].map.call(e,((r,n)=>{const{cssText:i}=r;let o="";if(i.startsWith("--sxs"))return"";if(e[n-1]&&(o=e[n-1].cssText).startsWith("--sxs")){if(!r.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===r)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${i}`;return r.cssRules.length?`${o}${i}`:""}return i})).join("")},n=()=>{if(t){const{rules:e,sheet:r}=t;if(!r.deleteRule){for(;3===Object(Object(r.cssRules)[0]).type;)r.cssRules.splice(0,1);r.cssRules=[]}for(const t in e)delete e[t]}const i=Object(e).styleSheets||[];for(const e of i)if(ike(e)){for(let i=0,o=e.cssRules;o[i];++i){const s=Object(o[i]);if(1!==s.type)continue;const a=Object(o[i+1]);if(4!==a.type)continue;++i;const{cssText:u}=s;if(!u.startsWith("--sxs"))continue;const l=u.slice(14,-3).trim().split(/\s+/),c=nke[l[0]];c&&(t||(t={sheet:e,reset:n,rules:{},toString:r}),t.rules[c]={group:a,index:i,cache:new Set(l)})}if(t)break}if(!t){const i=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,i(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:i("","text/css"),rules:{},reset:n,toString:r}}const{sheet:o,rules:s}=t;for(let e=nke.length-1;e>=0;--e){const t=nke[e];if(!s[t]){const r=nke[e+1],n=s[r]?s[r].index:o.cssRules.length;o.insertRule("@media{}",n),o.insertRule(`--sxs{--sxs:${e}}`,n),s[t]={group:o.cssRules[n+1],index:n,cache:new Set([e])}}ske(s[t])}};return n(),t},ske=e=>{const t=e.group;let r=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,r),++r}catch(e){}}},ake=Symbol(),uke=Lxe(),lke=(e,t)=>uke(e,(()=>(...r)=>{let n={type:null,composers:new Set};for(const t of r)if(null!=t)if(t[Oxe]){null==n.type&&(n.type=t[Oxe].type);for(const e of t[Oxe].composers)n.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==n.type&&(n.type=t):n.composers.add(cke(t,e));return null==n.type&&(n.type="span"),n.composers.size||n.composers.add(["PJLV",{},[],[],{},[]]),hke(e,n,t)})),cke=({variants:e,compoundVariants:t,defaultVariants:r,...n},i)=>{const o=`${Vxe(i.prefix)}c-${rke(n)}`,s=[],a=[],u=Object.create(null),l=[];for(const d in r)u[d]=String(r[d]);if("object"==typeof e&&e)for(const d in e){c=u,h=d,Uxe.call(c,h)||(u[d]="undefined");const t=e[d];for(const e in t){const r={[d]:String(e)};"undefined"===String(e)&&l.push(d);const n=t[e],i=[r,n,!Bxe(n)];s.push(i)}}var c,h;if("object"==typeof t&&t)for(const d of t){let{css:e,...t}=d;e="object"==typeof e&&e||{};for(const n in t)t[n]=String(t[n]);const r=[t,e,!Bxe(e)];a.push(r)}return[o,n,s,a,u,l]},hke=(e,t,r)=>{const[n,i,o,s]=dke(t.composers),a="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let r=0;rt.rules[e]={apply:r=>t[ake].push([e,r])})),t})(r):null,u=(a||r).rules,l=`.${n}${i.length>1?`:where(.${i.slice(1).join(".")})`:""}`,c=c=>{c="object"==typeof c&&c||pke;const{css:h,...d}=c,f={};for(const e in o)if(delete d[e],e in c){let t=c[e];"object"==typeof t&&t?f[e]={"@initial":o[e],...t}:(t=String(t),f[e]="undefined"!==t||s.has(e)?t:o[e])}else f[e]=o[e];const p=new Set([...i]);for(const[n,i,o,s]of t.composers){r.rules.styled.cache.has(n)||(r.rules.styled.cache.add(n),Zxe(i,[`.${n}`],[],e,(e=>{u.styled.apply(e)})));const t=fke(o,f,e.media),a=fke(s,f,e.media,!0);for(const i of t)if(void 0!==i)for(const[t,o,s]of i){const i=`${n}-${rke(o)}-${t}`;p.add(i);const a=(s?r.rules.resonevar:r.rules.onevar).cache,l=s?u.resonevar:u.onevar;a.has(i)||(a.add(i),Zxe(o,[`.${i}`],[],e,(e=>{l.apply(e)})))}for(const i of a)if(void 0!==i)for(const[t,o]of i){const i=`${n}-${rke(o)}-${t}`;p.add(i),r.rules.allvar.cache.has(i)||(r.rules.allvar.cache.add(i),Zxe(o,[`.${i}`],[],e,(e=>{u.allvar.apply(e)})))}}if("object"==typeof h&&h){const t=`${n}-i${rke(h)}-css`;p.add(t),r.rules.inline.cache.has(t)||(r.rules.inline.cache.add(t),Zxe(h,[`.${t}`],[],e,(e=>{u.inline.apply(e)})))}for(const e of String(c.className||"").trim().split(/\s+/))e&&p.add(e);const m=d.className=[...p].join(" ");return{type:t.type,className:m,selector:l,props:d,toString:()=>m,deferredInjector:a}};return jxe(c,{className:n,selector:l,[Oxe]:t,toString:()=>(r.rules.styled.cache.has(n)||c(),n)})},dke=e=>{let t="";const r=[],n={},i=[];for(const[o,,,,s,a]of e){""===t&&(t=o),r.push(o),i.push(...a);for(const e in s){const t=s[e];(void 0===n[e]||"undefined"!==t||a.includes(t))&&(n[e]=t)}}return[t,r,n,new Set(i)]},fke=(e,t,r,n)=>{const i=[];e:for(let[o,s,a]of e){if(a)continue;let e,u=0,l=!1;for(e in o){const n=o[e];let i=t[e];if(i!==n){if("object"!=typeof i||!i)continue e;{let e,t,o=0;for(const s in i){if(n===String(i[s])){if("@initial"!==s){const e=s.slice(1);(t=t||[]).push(e in r?r[e]:s.replace(/^@media ?/,"")),l=!0}u+=o,e=!0}++o}if(t&&t.length&&(s={["@media "+t.join(", ")]:s}),!e)continue e}}}(i[u]=i[u]||[]).push([n?"cv":`${e}-${o[e]}`,s,l])}return i},pke={},mke=Lxe(),gke=(e,t)=>mke(e,(()=>(...r)=>{const n=()=>{for(let n of r){n="object"==typeof n&&n||{};let r=rke(n);if(!t.rules.global.cache.has(r)){if(t.rules.global.cache.add(r),"@import"in n){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let r of[].concat(n["@import"]))r=r.includes('"')||r.includes("'")?r:`"${r}"`,t.sheet.insertRule(`@import ${r};`,e++);delete n["@import"]}Zxe(n,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return jxe(n,{toString:n})})),yke=Lxe(),vke=(e,t)=>yke(e,(()=>r=>{const n=`${Vxe(e.prefix)}k-${rke(r)}`,i=()=>{if(!t.rules.global.cache.has(n)){t.rules.global.cache.add(n);const i=[];Zxe(r,[],[],e,(e=>i.push(e)));const o=`@keyframes ${n}{${i.join("")}}`;t.rules.global.apply(o)}return n};return jxe(i,{get name(){return i()},toString:i})})),bke=class{constructor(e,t,r,n){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==r?"":String(r),this.prefix=null==n?"":String(n)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+Vxe(this.prefix)+Vxe(this.scale)+this.token}toString(){return this.computedValue}},wke=Lxe(),_ke=(e,t)=>wke(e,(()=>(r,n)=>{n="object"==typeof r&&r||Object(n);const i=`.${r=(r="string"==typeof r?r:"")||`${Vxe(e.prefix)}t-${rke(n)}`}`,o={},s=[];for(const t in n){o[t]={};for(const r in n[t]){const i=`--${Vxe(e.prefix)}${t}-${r}`,a=$xe(String(n[t][r]),e.prefix,t);o[t][r]=new bke(r,a,t,e.prefix),s.push(`${i}:${a}`)}}const a=()=>{if(s.length&&!t.rules.themed.cache.has(r)){t.rules.themed.cache.add(r);const i=`${n===e.theme?":root,":""}.${r}{${s.join(";")}}`;t.rules.themed.apply(i)}return r};return{...o,get className(){return a()},selector:i,toString:a}})),Eke=Lxe(),Ake=e=>{let t=!1;const r=Eke(e,(e=>{t=!0;const r="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",n="object"==typeof e.media&&e.media||{},i="object"==typeof e.root?e.root||null:globalThis.document||null,o="object"==typeof e.theme&&e.theme||{},s={prefix:r,media:n,theme:o,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...Pxe},utils:"object"==typeof e.utils&&e.utils||{}},a=oke(i),u={css:lke(s,a),globalCss:gke(s,a),keyframes:vke(s,a),createTheme:_ke(s,a),reset(){a.reset(),u.theme.toString()},theme:{},sheet:a,config:s,prefix:r,getCssText:a.toString,toString:a.toString};return String(u.theme=u.createTheme(o)),u}));return t||r.reset(),r},Mke=()=>Cxe||(Cxe=Ake()),Ske=(...e)=>Mke().keyframes(...e);r(37597);function xke(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function kke(e,t,r){return(t=xke(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Tke,Cke=function(){return"undefined"!=typeof window},Ike=function(){var e,t,r;return Cke()?null===(e=window)||void 0===e||null===(t=e.navigator)||void 0===t||null===(r=t.userAgent)||void 0===r?void 0:r.toLowerCase():""},Nke=function(){return/iphone|ipad|ipod|ios|CriOS|FxiOS/.test(Ike())},Rke=function(){return/android/.test(Ike())},Pke=function(){return Cke()&&(Nke()||Rke())},Dke=function(e){var t;return!Cke()||null==e||!e.mime||(null!=e&&null!==(t=e.type)&&void 0!==t&&t.includes("audio")?document.createElement("audio").canPlayType(e.mime).length>0:document.createElement("video").canPlayType(e.mime).length>0)},Lke="#00a55f",Oke="rgba(255,255,255,1)",jke=Ake({media:{sm:"(min-width: 640px)",md:"(min-width: 768px)",lg:"(min-width: 1024px)"},theme:{borderStyles:{containerBorderStyle:"solid"},borderWidths:{containerBorderWidth:0,loadingWidth:"3px"},colors:{accent:Lke,background:"#000000",containerBorderColor:"transparent",icon:Oke,iconHover:"rgba(255,255,255,0.8)",liveIndicator:"#e5484d",loading:Lke,progressLeft:Lke,progressMiddle:Lke,progressRight:Lke,progressThumb:Oke,volumeLeft:Lke,volumeMiddle:Lke,volumeRight:Lke,volumeThumb:Oke,errorText:"#B7B7B7"},fonts:{display:"ui-sans-serif"},fontSizes:{timeFontSize:"1.0rem",timeFontSizeMd:"0.95rem",timeFontSizeSm:"0.85rem",titleFontSize:"1.1rem",titleFontSizeMd:"1rem",titleFontSizeSm:"0.9rem",errorTitleFontSize:"2.5rem",errorTitleFontSizeMd:"2.0rem",errorTitleFontSizeSm:"1.3rem",errorTextFontSize:"0.95rem",errorTextFontSizeMd:"0.85rem",errorTextFontSizeSm:"0.75rem"},fontWeights:{titleFontWeight:"400",errorTitleFontWeight:"700"},sizes:{iconButtonSize:"42px",iconButtonSizeSm:"36px",liveIndicatorSize:"5px",loading:"64px",thumb:"10px",thumbActive:"12px",trackActive:"5px",trackContainerHeight:"15px",trackContainerHeightSm:"20px",trackInactive:"3px"},space:{controlsBottomMarginX:"10px",controlsBottomMarginY:"5px",controlsTopMarginX:"15px",controlsTopMarginY:"10px",timeMarginX:"8px"},radii:{containerBorderRadius:"0px",slider:"3px"}}}),Bke=jke.css,Uke=jke.createTheme,Fke=(jke.theme,jke.getCssText,Ske({"0%":{transform:"scale(1)"},"100%":{transform:"scale(1.1)"}})),zke=Bke("button",{background:"none",border:"none",cursor:"pointer",outline:"inherit",padding:0,height:"$iconButtonSizeSm",width:"$iconButtonSizeSm",minHeight:"$iconButtonSizeSm",minWidth:"$iconButtonSizeSm","@lg":{height:"$iconButtonSize",width:"$iconButtonSize",minHeight:"$iconButtonSize",minWidth:"$iconButtonSize"},color:"$icon","&:hover":{color:"$iconHover",animation:Pke()?void 0:"".concat(Fke," 200ms")}}),Hke=Bke("div",{variants:{aspectRatio:(Tke={},kke(Tke,AMe[0].key,kke({aspectRatio:AMe[0].value},"@supports not (aspect-ratio: ".concat(AMe[0].value,")"),{"&:before":{float:"left",paddingTop:"calc(".concat(AMe[0].value,")%"),content:""},"&:after":{display:"block",content:"",clear:"both"}})),kke(Tke,AMe[1].key,kke({aspectRatio:AMe[1].value},"@supports not (aspect-ratio: ".concat(AMe[1].value,")"),{"&:before":{float:"left",paddingTop:"calc(".concat(AMe[1].value,")%"),content:""},"&:after":{display:"block",content:"",clear:"both"}})),kke(Tke,AMe[2].key,kke({aspectRatio:AMe[2].value},"@supports not (aspect-ratio: ".concat(AMe[2].value,")"),{"&:before":{float:"left",paddingTop:"calc(".concat(AMe[2].value,")%"),content:""},"&:after":{display:"block",content:"",clear:"both"}})),kke(Tke,AMe[3].key,kke({aspectRatio:AMe[3].value},"@supports not (aspect-ratio: ".concat(AMe[3].value,")"),{"&:before":{float:"left",paddingTop:"calc(".concat(AMe[3].value,")%"),content:""},"&:after":{display:"block",content:"",clear:"both"}})),kke(Tke,AMe[4].key,kke({aspectRatio:AMe[4].value},"@supports not (aspect-ratio: ".concat(AMe[4].value,")"),{"&:before":{float:"left",paddingTop:"calc(".concat(AMe[4].value,")%"),content:""},"&:after":{display:"block",content:"",clear:"both"}})),Tke)}}),Gke=Bke(Hke,{fontFamily:"$display, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji",backgroundColor:"$background",overflow:"hidden",maxWidth:"100%",maxHeight:"100%",position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flex:1,svg:{pointerEvents:"none"},variants:{size:{fullscreen:{zIndex:2147483647},default:{boxShadow:"rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px",borderStyle:"$containerBorderStyle",borderColor:"$containerBorderColor",borderRadius:"$containerBorderRadius",borderWidth:"$containerBorderWidth",zIndex:1}}},defaultVariants:{size:"default"}}),Yke=Bke("span",{color:"$icon",userSelect:"none"}),Kke={background:Bke("div",{display:"flex",flexDirection:"column",alignItems:"center",maxWidth:"220px",marginTop:"1rem","@md":{maxWidth:"340px"},maxHeight:"100%"}),title:Bke(Yke,{fontWeight:"$errorTitleFontWeight",margin:"0.5rem 0 0.5rem 0",fontSize:"$errorTitleFontSizeSm","@md":{fontSize:"$errorTitleFontSizeMd",margin:"2rem 0 0.5rem 0"},"@lg":{fontSize:"$errorTitleFontSize"}}),text:Bke(Yke,{fontWeight:"$titleFontWeight",color:"$errorText",textAlign:"center",width:"90%",fontSize:"$errorTextFontSizeSm",marginBottom:"1rem","@md":{fontSize:"$errorTextFontSizeMd"},"@lg":{fontSize:"$errorTextFontSize"}})},qke=Ske({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Wke=Bke("div",{display:"inline-flex",alignItems:"center",justifyContent:"center",width:"100%",height:"100%",maxWidth:"100%",maxHeight:"100%","&:after":{content:" ",display:"block",width:"$loading",height:"$loading",maxWidth:"100%",maxHeight:"100%",borderRadius:"50%",borderWidth:"$loadingWidth",borderStyle:"solid",borderColor:"$loading transparent $loading transparent",animation:"".concat(qke," 1.4s ease-in-out infinite")}}),Vke=Ske({"0%":{opacity:1},"100%":{opacity:0}}),$ke=Ske({"0%":{opacity:0},"100%":{opacity:1}}),Qke=Bke("div",{variants:{display:{shown:{opacity:1,animation:Pke()?void 0:"".concat($ke," 0.2s")},hidden:{opacity:0,animation:Pke()?void 0:"".concat(Vke," 0.2s")}}},defaultVariants:{display:"shown"}}),Jke=Bke(Qke,{position:"absolute",display:"inline-flex",alignItems:"center",justifyContent:"center",bottom:0,left:0,right:0,top:0,height:"100%",backgroundColor:"#000000"}),Zke=Bke(Qke,{position:"absolute",bottom:0,left:0,right:0,height:233,marginBottom:-1,maxWidth:"100%",maxHeight:"100%",overflow:"hidden",backgroundImage:'url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAADpCAYAAADlAl1mAAAAAXNSR0IArs4c6QAAAexJREFUOE9V0ftrzXEcx/H3x+43l9lmGGaz65ld2YUZG2YYKUlJUpKSpNZSkpSkJClJSVKSkj9Sj8/3nJ12fnie5/v9en/en+/3nIjik6rfNOU6YwfJqNGp0ctWGylSLavTqzNe72S9YYgGaYOysYJodKxJ2uSeZseaC4uUWpQt0lbWWlhEtFnVZv1O5RbSLkHGbifKiBR7XJnR7kS7dG+BSNlSh7TDvZ02d5rL6DLXxfYZriCiW69bbz+rIKUDyoyDW+hxB0RPpJQOCTIOb8cRZUavB+r1QCyOVpD6WJ97s/Wb67f5GINsMaA3YG6QDbIh7zZUWEQaNjesHHHRiB7EqLlRx0qsZKQkHdMb0zturopx5bhgwqoJJaRJNmnBlGBKj8W0YNq+GTbjFzrBqjipzJh1bNYxFnNsjs1bMF9YpFhgC3qnCkQkiNMMYlGwqDzDyoiIJc+35O85a66MFHFOmbHsjmVnM1Y884rgvLKClC4oIS5ux6pg1ZZLgow1v9pa2SIus4wrBVKkbFedhVhn67Zku2bBdcENr3CT3ZLe9oJ32F12T3DfCz7QewiP9B7b8kT5VPmMbVi6yZ7DCwtemnvFXrvoDXtr7p3gPXxQfhR8suqz8gv7Kv3mZb5Lf+j91PvFfsMf+Av//gMAXDGpZ05jKQAAAABJRU5ErkJggg==")'}),Xke=Bke(Qke,{top:0,marginTop:"$controlsTopMarginY",marginBottom:"$controlsTopMarginY",marginLeft:"$controlsTopMarginX",marginRight:"$controlsTopMarginX",display:"inline-flex",alignItems:"center",justifyContent:"space-between",position:"absolute",left:0,right:0}),eTe=Bke(Qke,{justifyContent:"center",bottom:0,marginTop:"$controlsBottomMarginY",marginBottom:"$controlsBottomMarginY",marginLeft:"$controlsBottomMarginX",marginRight:"$controlsBottomMarginX",display:"inline-flex",alignItems:"center",position:"absolute",flexDirection:"column",left:0,right:0}),tTe=Bke("div",{width:"100%",display:"inline-flex",alignItems:"center",justifyContent:"space-between"}),rTe=Bke(tTe,{width:"auto"}),nTe=Bke(tTe,{width:"auto"}),iTe={background:Jke,gradient:Zke,loading:Wke,loadingText:Bke(Qke,{top:0,userSelect:"none",color:"$icon",marginTop:"$controlsTopMarginY",marginBottom:"$controlsTopMarginY",marginLeft:"$controlsTopMarginX",marginRight:"$controlsTopMarginX",display:"inline-flex",alignItems:"flex-start",justifyContent:"flex-start",position:"absolute",fontSize:"$timeFontSizeSm","@md":{fontSize:"$timeFontSizeMd"},"@lg":{fontSize:"$timeFontSize"},left:0,right:0,bottom:0}),error:Kke,top:{container:Xke},bottom:{container:eTe,middle:{container:tTe},lower:{container:tTe,left:nTe,right:rTe}}},oTe=Bke("img",{maxWidth:"100%",width:"100%",maxHeight:"100%",height:"100%",pointerEvents:"none",userSelect:"none",objectPosition:"center",objectFit:"cover",variants:{size:{fullscreen:{width:"100% !important",height:"100% !important"},default:{}}},defaultVariants:{size:"default"}}),sTe=Bke("video",{width:"100% !important",height:"100% !important",objectPosition:"center",variants:{size:{fullscreen:{objectFit:"contain","&::-webkit-media-overlay-enclosure":{display:"none !important"},"&::-webkit-media-controls-enclosure":{display:"none !important"}},contain:{objectFit:"contain"},cover:{objectFit:"cover"}}},defaultVariants:{size:"cover"}}),aTe={audio:Bke("audio",sTe),poster:oTe,video:sTe},uTe=Ske({"0%":{opacity:0},"100%":{opacity:1}}),lTe=Ske({"0%":{opacity:0,transform:"translate(-50%, -48%) scale(.96)"},"100%":{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),cTe=Bke("div",{backgroundColor:"hsla(0, 0%, 0%, 0.439)",position:"fixed",inset:0,animation:"".concat(uTe," 150ms cubic-bezier(0.16, 1, 0.3, 1)")}),hTe=Bke("div",{fontFamily:"$display, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji",backgroundColor:"white",color:"black",borderRadius:6,display:"inline-flex",flexDirection:"column",gap:12,boxShadow:"hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px",position:"fixed",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"350px",maxWidth:"85%",maxHeight:"85vh",padding:25,animation:"".concat(lTe," 150ms cubic-bezier(0.16, 1, 0.3, 1)"),"&:focus":{outline:"none"}}),dTe=Bke("span",{margin:0,fontWeight:600,color:"black",fontSize:20,marginBottom:12}),fTe=Bke("button",{all:"unset",fontFamily:"inherit",borderRadius:"100%",height:20,width:20,display:"inline-flex",alignItems:"center",justifyContent:"center",position:"absolute",top:10,right:10,cursor:"pointer"}),pTe=Bke("div",{display:"inline-flex",flexDirection:"column",gap:8}),mTe=Bke("button",{all:"unset",display:"inline-flex",alignItems:"center",justifyContent:"center",borderRadius:4,padding:"0 15px",fontSize:13,lineHeight:1,height:35,gap:5,backgroundColor:"white",color:"black",borderStyle:"solid",borderWidth:1,borderColor:"black",boxShadow:"0 2px 10px hsla(0, 0%, 0%, 0.141)","&:hover":{backgroundColor:"hsl(294, 5.5%, 95.3%)"},"&:focus":{boxShadow:"0 0 0 2px black"},"&[data-placeholder]":{color:"hsl(0, 0%, 9.0%)"}}),gTe=Bke("span",{fontSize:16,fontWeight:600}),yTe=Bke("span",{}),vTe=Bke("div",{overflow:"hidden",backgroundColor:"white",display:"flex",flexDirection:"column",borderRadius:6,borderStyle:"solid",borderWidth:1,borderColor:"black",boxShadow:"0px 10px 38px -10px rgba(22, 23, 24, 0.35), 0px 10px 20px -15px rgba(22, 23, 24, 0.2)"}),bTe=Bke("div",{padding:5}),wTe={overlay:cTe,content:hTe,title:dTe,close:fTe,select:{content:vTe,group:pTe,label:gTe,icon:yTe,item:Bke("div",{fontFamily:"$display, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji",fontSize:13,lineHeight:1,borderRadius:3,display:"flex",alignItems:"center",height:25,padding:"10px 35px 10px 30px",position:"relative",userSelect:"none",color:"black","&[data-disabled]":{pointerEvents:"none"},"&[data-highlighted]":{outline:"none",backgroundColor:"#fafafa"}}),itemIndicator:Bke("div",{position:"absolute",left:4,width:30,display:"inline-flex",alignItems:"center",justifyContent:"center"}),trigger:mTe,viewport:bTe}},_Te=Ske({"0%":{height:"$trackInactive"},"100%":{height:"$trackActive"}}),ETe=Ske({"0%":{height:"$trackActive"},"100%":{height:"$trackInactive"}}),ATe=Bke("div",{minHeight:"$trackContainerHeightSm","@lg":{minHeight:"$trackContainerHeight"},"@media (hover: none)":{minHeight:"$trackContainerHeightSm"},position:"relative",display:"flex",alignItems:"center",minWidth:80,touchAction:"none",cursor:"pointer",height:"100%",width:"100%"}),MTe=Bke("div",{variants:{size:{default:{height:"$trackInactive",animation:"".concat(ETe," 0.1s")},active:{height:"$trackActive",animation:"".concat(_Te," 0.1s")}},rounded:{full:{borderRadius:"$slider"},left:{borderTopLeftRadius:"$slider",borderBottomLeftRadius:"$slider"},right:{borderTopRightRadius:"$slider",borderBottomRightRadius:"$slider"},none:{}}},defaultVariants:{size:"default",rounded:"none"}}),STe=Bke(MTe,{backgroundColor:"$accent",opacity:.95}),xTe=Bke(MTe,{backgroundColor:"$accent",opacity:.55}),kTe=Bke(MTe,{backgroundColor:"$accent",opacity:.2}),TTe={container:ATe,thumb:Bke("div",{variants:{size:{default:{width:"$thumb",height:"$thumb"},active:{width:"$thumbActive",height:"$thumbActive"}}},defaultVariants:{size:"default"},backgroundColor:"$icon",borderRadius:"100%"}),track:{left:STe,middle:xTe,right:kTe}},CTe=Ske({"0%, 100%":{opacity:1},"50%":{opacity:.5}}),ITe=Bke("div",{marginLeft:"$timeMarginX",marginRight:"$timeMarginX",display:"flex",alignItems:"center"}),NTe=Bke("div",{backgroundColor:"$liveIndicator",borderRadius:"100%",width:"$liveIndicatorSize",height:"$liveIndicatorSize",animation:"".concat(CTe," 2s cubic-bezier(0.4, 0, 0.6, 1) infinite")}),RTe={container:Gke,controlsContainer:iTe,iconButton:zke,media:aTe,settings:wTe,slider:TTe,time:{container:ITe,text:Bke(Yke,{marginLeft:"$timeMarginX",marginRight:"$timeMarginX",fontVariant:"tabular-nums",fontSize:"$timeFontSizeSm","@md":{fontSize:"$timeFontSizeMd"},"@lg":{fontSize:"$timeFontSize"}}),liveIndicator:NTe},title:Bke(Yke,{fontWeight:"$titleFontWeight",fontSize:"$titleFontSizeSm","@md":{fontSize:"$titleFontSizeMd"},"@lg":{fontSize:"$titleFontSize"}}),volume:{container:Bke("div",{display:"inline-flex",alignItems:"center",justifyContent:"center"})}};function PTe(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}function DTe(e,t,r){return(t=PTe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LTe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function OTe(e){for(var t=1;t{};function BTe(e,{interval:t=1e3,onError:r=jTe}={}){if("function"!=typeof e)throw new Error("argument is not function.");let n,i=!1,o=0,s=null;const a=async()=>{if(s){const t=s;s=null;try{i=!0,await e(...t)}catch(XMe){r(XMe)}finally{o=Date.now(),i=!1}}},u=async()=>{clearTimeout(n),n=setTimeout((()=>{i?u():a()}),t)};return(...e)=>{s=e;const r=Date.now()-o{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const zTe="undefined"==typeof window||"Deno"in window;function HTe(){}function GTe(e){return"number"==typeof e&&e>=0&&e!==1/0}function YTe(e,t){return Math.max(e+(t||0)-Date.now(),0)}function KTe(e,t,r){return iCe(e)?"function"==typeof t?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function qTe(e,t,r){return iCe(e)?[{...t,queryKey:e},r]:[e||{},t]}function WTe(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(iCe(s))if(n){if(t.queryHash!==$Te(s,t.options))return!1}else if(!JTe(t.queryKey,s))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof a||t.isStale()===a)&&((void 0===i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function VTe(e,t){const{exact:r,fetching:n,predicate:i,mutationKey:o}=e;if(iCe(o)){if(!t.options.mutationKey)return!1;if(r){if(QTe(t.options.mutationKey)!==QTe(o))return!1}else if(!JTe(t.options.mutationKey,o))return!1}return("boolean"!=typeof n||"loading"===t.state.status===n)&&!(i&&!i(t))}function $Te(e,t){return((null==t?void 0:t.queryKeyHashFn)||QTe)(e)}function QTe(e){return JSON.stringify(e,((e,t)=>rCe(t)?Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{}):t))}function JTe(e,t){return ZTe(e,t)}function ZTe(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((r=>!ZTe(e[r],t[r]))))}function XTe(e,t){if(e===t)return e;const r=tCe(e)&&tCe(t);if(r||rCe(e)&&rCe(t)){const n=r?e.length:Object.keys(e).length,i=r?t:Object.keys(t),o=i.length,s=r?[]:{};let a=0;for(let u=0;u{setTimeout(t,e)}))}function sCe(e){oCe(0).then(e)}function aCe(e,t,r){return null!=r.isDataEqual&&r.isDataEqual(e,t)?e:"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?XTe(e,t):t}const uCe=new class extends FTe{constructor(){super(),this.setup=e=>{if(!zTe&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((({listener:e})=>{e()}))}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},lCe=["online","offline"];const cCe=new class extends FTe{constructor(){super(),this.setup=e=>{if(!zTe&&window.addEventListener){const t=()=>e();return lCe.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{lCe.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((({listener:e})=>{e()}))}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function hCe(e){return Math.min(1e3*2**e,3e4)}function dCe(e){return"online"!==(null!=e?e:"online")||cCe.isOnline()}class fCe{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function pCe(e){return e instanceof fCe}function mCe(e){let t,r,n,i=!1,o=0,s=!1;const a=new Promise(((e,t)=>{r=e,n=t})),u=()=>!uCe.isFocused()||"always"!==e.networkMode&&!cCe.isOnline(),l=n=>{s||(s=!0,null==e.onSuccess||e.onSuccess(n),null==t||t(),r(n))},c=r=>{s||(s=!0,null==e.onError||e.onError(r),null==t||t(),n(r))},h=()=>new Promise((r=>{t=e=>{const t=s||!u();return t&&r(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,s||null==e.onContinue||e.onContinue()})),d=()=>{if(s)return;let t;try{t=e.fn()}catch(XMe){t=Promise.reject(XMe)}Promise.resolve(t).then(l).catch((t=>{var r,n;if(s)return;const a=null!=(r=e.retry)?r:3,l=null!=(n=e.retryDelay)?n:hCe,f="function"==typeof l?l(o,t):l,p=!0===a||"number"==typeof a&&o{if(u())return h()})).then((()=>{i?c(t):d()}))):c(t)}))};return dCe(e.networkMode)?d():h().then(d),{promise:a,cancel:t=>{s||(c(new fCe(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?a:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}const gCe=r(98399);const yCe=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()};const i=n=>{t?e.push(n):sCe((()=>{r(n)}))},o=()=>{const t=e;e=[],t.length&&sCe((()=>{n((()=>{t.forEach((e=>{r(e)}))}))}))};return{batch:e=>{let r;t++;try{r=e()}finally{t--,t||o()}return r},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e}}}();class vCe{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),GTe(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:zTe?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class bCe extends vCe{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||gCe,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const r=aCe(this.state.data,e,this.options);return this.dispatch({data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const r=this.promise;return null==(t=this.retryer)||t.cancel(e),r?r.then(HTe).catch(HTe):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!YTe(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var r,n;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey);const o=function(){if("function"==typeof AbortController)return new AbortController}(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};a(s);const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var l;(a(u),null==(r=this.options.behavior)||r.onFetch(u),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(n=u.fetchOptions)?void 0:n.meta))&&this.dispatch({type:"fetch",meta:null==(l=u.fetchOptions)?void 0:l.meta});const c=e=>{var t,r,n,i;(pCe(e)&&e.silent||this.dispatch({type:"error",error:e}),pCe(e))||(null==(t=(r=this.cache.config).onError)||t.call(r,e,this),null==(n=(i=this.cache.config).onSettled)||n.call(i,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=mCe({fn:u.fetchFn,abort:null==o?void 0:o.abort.bind(o),onSuccess:e=>{var t,r,n,i;void 0!==e?(this.setData(e),null==(t=(r=this.cache.config).onSuccess)||t.call(r,e,this),null==(n=(i=this.cache.config).onSettled)||n.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):c(new Error(this.queryHash+" data is undefined"))},onError:c,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var r,n;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:dCe(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(n=e.dataUpdatedAt)?n:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return pCe(i)&&i.revert&&this.revertState?{...this.revertState}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),yCe.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class wCe extends FTe{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,r){var n;const i=t.queryKey,o=null!=(n=t.queryHash)?n:$Te(i,t);let s=this.get(o);return s||(s=new bCe({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){yCe.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[r]=qTe(e,t);return void 0===r.exact&&(r.exact=!0),this.queries.find((e=>WTe(r,e)))}findAll(e,t){const[r]=qTe(e,t);return Object.keys(r).length>0?this.queries.filter((e=>WTe(r,e))):this.queries}notify(e){yCe.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}onFocus(){yCe.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){yCe.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class _Ce extends vCe{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||gCe,this.observers=[],this.state=e.state||ECe(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=mCe({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var r,n,i,o,s,a,u,l;if(!t){var c,h,d,f;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(c=(h=this.mutationCache.config).onMutate)?void 0:c.call(h,this.state.variables,this));const e=await(null==(d=(f=this.options).onMutate)?void 0:d.call(f,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const p=await e();return await(null==(r=(n=this.mutationCache.config).onSuccess)?void 0:r.call(n,p,this.state.variables,this.state.context,this)),await(null==(i=(o=this.options).onSuccess)?void 0:i.call(o,p,this.state.variables,this.state.context)),await(null==(s=(a=this.mutationCache.config).onSettled)?void 0:s.call(a,p,null,this.state.variables,this.state.context,this)),await(null==(u=(l=this.options).onSettled)?void 0:u.call(l,p,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:p}),p}catch(XMe){try{var p,m,g,y,v,b,w,_;throw await(null==(p=(m=this.mutationCache.config).onError)?void 0:p.call(m,XMe,this.state.variables,this.state.context,this)),await(null==(g=(y=this.options).onError)?void 0:g.call(y,XMe,this.state.variables,this.state.context)),await(null==(v=(b=this.mutationCache.config).onSettled)?void 0:v.call(b,void 0,XMe,this.state.variables,this.state.context,this)),await(null==(w=(_=this.options).onSettled)?void 0:w.call(_,void 0,XMe,this.state.variables,this.state.context)),XMe}finally{this.dispatch({type:"error",error:XMe})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!dCe(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),yCe.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}function ECe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class ACe extends FTe{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,r){const n=new _Ce({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:r,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(n),n}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){yCe.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((t=>VTe(e,t)))}findAll(e){return this.mutations.filter((t=>VTe(e,t)))}notify(e){yCe.batch((()=>{this.listeners.forEach((({listener:t})=>{t(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return yCe.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(HTe)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function MCe(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,i,o,s;const a=null==(t=e.fetchOptions)||null==(r=t.meta)?void 0:r.refetchPage,u=null==(n=e.fetchOptions)||null==(i=n.meta)?void 0:i.fetchMore,l=null==u?void 0:u.pageParam,c="forward"===(null==u?void 0:u.direction),h="backward"===(null==u?void 0:u.direction),d=(null==(o=e.state.data)?void 0:o.pages)||[],f=(null==(s=e.state.data)?void 0:s.pageParams)||[];let p=f,m=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(e,t,r,n)=>(p=n?[t,...p]:[...p,t],n?[r,...e]:[...e,r]),v=(t,r,n,i)=>{if(m)return Promise.reject("Cancelled");if(void 0===n&&!r&&t.length)return Promise.resolve(t);const o={queryKey:e.queryKey,pageParam:n,meta:e.options.meta};var s;s=o,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>{var t,r;return null!=(t=e.signal)&&t.aborted?m=!0:null==(r=e.signal)||r.addEventListener("abort",(()=>{m=!0})),e.signal}});const a=g(o),u=Promise.resolve(a).then((e=>y(t,n,e,i)));return u};let b;if(d.length)if(c){const t=void 0!==l,r=t?l:SCe(e.options,d);b=v(d,t,r)}else if(h){const t=void 0!==l,r=t?l:xCe(e.options,d);b=v(d,t,r,!0)}else{p=[];const t=void 0===e.options.getNextPageParam;b=!a||!d[0]||a(d[0],0,d)?v([],t,f[0]):Promise.resolve(y([],f[0],d[0]));for(let r=1;r{if(!a||!d[r]||a(d[r],r,d)){const i=t?f[r]:SCe(e.options,n);return v(n,t,i)}return Promise.resolve(y(n,f[r],d[r]))}))}else b=v([]);return b.then((e=>({pages:e,pageParams:p})))}}}}function SCe(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function xCe(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}class kCe{constructor(e={}){this.queryCache=e.queryCache||new wCe,this.mutationCache=e.mutationCache||new ACe,this.logger=e.logger||gCe,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=uCe.subscribe((()=>{uCe.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())})),this.unsubscribeOnline=cCe.subscribe((()=>{cCe.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())})))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){const[r]=qTe(e,t);return r.fetchStatus="fetching",this.queryCache.findAll(r).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state.data}ensureQueryData(e,t,r){const n=KTe(e,t,r),i=this.getQueryData(n.queryKey);return i?Promise.resolve(i):this.fetchQuery(n)}getQueriesData(e){return this.getQueryCache().findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,r){const n=this.queryCache.find(e),i=function(e,t){return"function"==typeof e?e(t):e}(t,null==n?void 0:n.state.data);if(void 0===i)return;const o=KTe(e),s=this.defaultQueryOptions(o);return this.queryCache.build(this,s).setData(i,{...r,manual:!0})}setQueriesData(e,t,r){return yCe.batch((()=>this.getQueryCache().findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,r)]))))}getQueryState(e,t){var r;return null==(r=this.queryCache.find(e,t))?void 0:r.state}removeQueries(e,t){const[r]=qTe(e,t),n=this.queryCache;yCe.batch((()=>{n.findAll(r).forEach((e=>{n.remove(e)}))}))}resetQueries(e,t,r){const[n,i]=qTe(e,t,r),o=this.queryCache,s={type:"active",...n};return yCe.batch((()=>(o.findAll(n).forEach((e=>{e.reset()})),this.refetchQueries(s,i))))}cancelQueries(e,t,r){const[n,i={}]=qTe(e,t,r);void 0===i.revert&&(i.revert=!0);const o=yCe.batch((()=>this.queryCache.findAll(n).map((e=>e.cancel(i)))));return Promise.all(o).then(HTe).catch(HTe)}invalidateQueries(e,t,r){const[n,i]=qTe(e,t,r);return yCe.batch((()=>{var e,t;if(this.queryCache.findAll(n).forEach((e=>{e.invalidate()})),"none"===n.refetchType)return Promise.resolve();const r={...n,type:null!=(e=null!=(t=n.refetchType)?t:n.type)?e:"active"};return this.refetchQueries(r,i)}))}refetchQueries(e,t,r){const[n,i]=qTe(e,t,r),o=yCe.batch((()=>this.queryCache.findAll(n).filter((e=>!e.isDisabled())).map((e=>{var t;return e.fetch(void 0,{...i,cancelRefetch:null==(t=null==i?void 0:i.cancelRefetch)||t,meta:{refetchPage:n.refetchPage}})}))));let s=Promise.all(o).then(HTe);return null!=i&&i.throwOnError||(s=s.catch(HTe)),s}fetchQuery(e,t,r){const n=KTe(e,t,r),i=this.defaultQueryOptions(n);void 0===i.retry&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(e,t,r){return this.fetchQuery(e,t,r).then(HTe).catch(HTe)}fetchInfiniteQuery(e,t,r){const n=KTe(e,t,r);return n.behavior=MCe(),this.fetchQuery(n)}prefetchInfiniteQuery(e,t,r){return this.fetchInfiniteQuery(e,t,r).then(HTe).catch(HTe)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){const r=this.queryDefaults.find((t=>QTe(e)===QTe(t.queryKey)));r?r.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;const t=this.queryDefaults.find((t=>JTe(e,t.queryKey)));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){const r=this.mutationDefaults.find((t=>QTe(e)===QTe(t.mutationKey)));r?r.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;const t=this.mutationDefaults.find((t=>JTe(e,t.mutationKey)));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;const t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=$Te(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class TCe extends FTe{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),CCe(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ICe(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ICe(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){const r=this.options,n=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),eCe(r,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=r.queryKey),this.updateQuery();const i=this.hasListeners();i&&NCe(this.currentQuery,n,this.options,r)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===n&&this.options.enabled===r.enabled&&this.options.staleTime===r.staleTime||this.updateStaleTimeout();const o=this.computeRefetchInterval();!i||this.currentQuery===n&&this.options.enabled===r.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)}getOptimisticResult(e){const t=this.client.getQueryCache().build(this.client,e),r=this.createResult(t,e);return function(e,t,r){if(r.keepPreviousData)return!1;if(void 0!==r.placeholderData)return t.isPlaceholderData;if(e.getCurrentResult()!==t)return!0;return!1}(this,r,e)&&(this.currentResult=r,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),r}getCurrentResult(){return this.currentResult}trackResult(e){const t={};return Object.keys(e).forEach((r=>{Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(r),e[r])})})),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){const t=this.client.defaultQueryOptions(e),r=this.client.getQueryCache().build(this.client,t);return r.isFetchingOptimistic=!0,r.fetch().then((()=>this.createResult(r,t)))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then((()=>(this.updateResult(),this.currentResult)))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(HTe)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),zTe||this.currentResult.isStale||!GTe(this.options.staleTime))return;const e=YTe(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((()=>{this.currentResult.isStale||this.updateResult()}),e)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!zTe&&!1!==this.options.enabled&>e(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((()=>{(this.options.refetchIntervalInBackground||uCe.isFocused())&&this.executeFetch()}),this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){const r=this.currentQuery,n=this.options,i=this.currentResult,o=this.currentResultState,s=this.currentResultOptions,a=e!==r,u=a?e.state:this.currentQueryInitialState,l=a?this.currentResult:this.previousQueryResult,{state:c}=e;let h,{dataUpdatedAt:d,error:f,errorUpdatedAt:p,fetchStatus:m,status:g}=c,y=!1,v=!1;if(t._optimisticResults){const i=this.hasListeners(),o=!i&&CCe(e,t),s=i&&NCe(e,r,t,n);(o||s)&&(m=dCe(e.options.networkMode)?"fetching":"paused",d||(g="loading")),"isRestoring"===t._optimisticResults&&(m="idle")}if(t.keepPreviousData&&!c.dataUpdatedAt&&null!=l&&l.isSuccess&&"error"!==g)h=l.data,d=l.dataUpdatedAt,g=l.status,y=!0;else if(t.select&&void 0!==c.data)if(i&&c.data===(null==o?void 0:o.data)&&t.select===this.selectFn)h=this.selectResult;else try{this.selectFn=t.select,h=t.select(c.data),h=aCe(null==i?void 0:i.data,h,t),this.selectResult=h,this.selectError=null}catch(E){0,this.selectError=E}else h=c.data;if(void 0!==t.placeholderData&&void 0===h&&"loading"===g){let e;if(null!=i&&i.isPlaceholderData&&t.placeholderData===(null==s?void 0:s.placeholderData))e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(E){0,this.selectError=E}void 0!==e&&(g="success",h=aCe(null==i?void 0:i.data,e,t),v=!0)}this.selectError&&(f=this.selectError,h=this.selectResult,p=Date.now(),g="error");const b="fetching"===m,w="loading"===g,_="error"===g;return{status:g,fetchStatus:m,isLoading:w,isSuccess:"success"===g,isError:_,isInitialLoading:w&&b,data:h,dataUpdatedAt:d,error:f,errorUpdatedAt:p,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:c.dataUpdateCount>0||c.errorUpdateCount>0,isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:b,isRefetching:b&&!w,isLoadingError:_&&0===c.dataUpdatedAt,isPaused:"paused"===m,isPlaceholderData:v,isPreviousData:y,isRefetchError:_&&0!==c.dataUpdatedAt,isStale:RCe(e,t),refetch:this.refetch,remove:this.remove}}updateResult(e){const t=this.currentResult,r=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,eCe(r,t))return;this.currentResult=r;const n={cache:!0};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options;if("all"===e||!e&&!this.trackedProps.size)return!0;const r=new Set(null!=e?e:this.trackedProps);return this.options.useErrorBoundary&&r.add("error"),Object.keys(this.currentResult).some((e=>{const n=e;return this.currentResult[n]!==t[n]&&r.has(n)}))})()&&(n.listeners=!0),this.notify({...n,...e})}updateQuery(){const e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;const t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){const t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||pCe(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){yCe.batch((()=>{var t,r,n,i;if(e.onSuccess)null==(t=(r=this.options).onSuccess)||t.call(r,this.currentResult.data),null==(n=(i=this.options).onSettled)||n.call(i,this.currentResult.data,null);else if(e.onError){var o,s,a,u;null==(o=(s=this.options).onError)||o.call(s,this.currentResult.error),null==(a=(u=this.options).onSettled)||a.call(u,void 0,this.currentResult.error)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)})),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})}))}}function CCe(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&ICe(e,t,t.refetchOnMount)}function ICe(e,t,r){if(!1!==t.enabled){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&RCe(e,t)}return!1}function NCe(e,t,r,n){return!1!==r.enabled&&(e!==t||!1===n.enabled)&&(!r.suspense||"error"!==e.state.status)&&RCe(e,r)}function RCe(e,t){return e.isStaleByTime(t.staleTime)}class PCe extends FTe{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const r=this.options;this.options=this.client.defaultMutationOptions(e),eCe(r,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.currentMutation)||e.removeObserver(this))}onMutationUpdate(e){this.updateResult();const t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const e=this.currentMutation?this.currentMutation.state:{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){yCe.batch((()=>{var t,r,n,i;if(this.mutateOptions&&this.hasListeners())if(e.onSuccess)null==(t=(r=this.mutateOptions).onSuccess)||t.call(r,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(n=(i=this.mutateOptions).onSettled)||n.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context);else if(e.onError){var o,s,a,u;null==(o=(s=this.mutateOptions).onError)||o.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(a=(u=this.mutateOptions).onSettled)||a.call(u,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}e.listeners&&this.listeners.forEach((({listener:e})=>{e(this.currentResult)}))}))}}function DCe(e){return e.state.isPaused}function LCe(e){return"success"===e.state.status}function OCe(e,t={}){const r=[],n=[];if(!1!==t.dehydrateMutations){const n=t.shouldDehydrateMutation||DCe;e.getMutationCache().getAll().forEach((e=>{n(e)&&r.push(function(e){return{mutationKey:e.options.mutationKey,state:e.state}}(e))}))}if(!1!==t.dehydrateQueries){const r=t.shouldDehydrateQuery||LCe;e.getQueryCache().getAll().forEach((e=>{r(e)&&n.push(function(e){return{state:e.state,queryKey:e.queryKey,queryHash:e.queryHash}}(e))}))}return{mutations:r,queries:n}}function jCe(e,t,r){if("object"!=typeof t||null===t)return;const n=e.getMutationCache(),i=e.getQueryCache(),o=t.mutations||[],s=t.queries||[];o.forEach((t=>{var i;n.build(e,{...null==r||null==(i=r.defaultOptions)?void 0:i.mutations,mutationKey:t.mutationKey},t.state)})),s.forEach((t=>{var n;const o=i.get(t.queryHash),s={...t.state,fetchStatus:"idle"};o?o.state.dataUpdatedAt{const t=w.useContext(HCe(e,w.useContext(zCe)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},YCe=({client:e,children:t,context:r,contextSharing:n=!1})=>{w.useEffect((()=>(e.mount(),()=>{e.unmount()})),[e]);const i=HCe(r,n);return w.createElement(zCe.Provider,{value:!r&&n},w.createElement(i.Provider,{value:e},t))},KCe=w.createContext(!1);KCe.Provider;function qCe(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const WCe=w.createContext(qCe());function VCe(e,t){return"function"==typeof e?e(...t):!!e}function $Ce(e,t){const r=GCe({context:e.context}),n=w.useContext(KCe),i=w.useContext(WCe),o=r.defaultQueryOptions(e);o._optimisticResults=n?"isRestoring":"optimistic",o.onError&&(o.onError=yCe.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=yCe.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=yCe.batchCalls(o.onSettled)),(e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)})(o),((e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))})(o,i),(e=>{w.useEffect((()=>{e.clearReset()}),[e])})(i);const[s]=w.useState((()=>new t(r,o))),a=s.getOptimisticResult(o);if(UCe(w.useCallback((e=>{const t=n?()=>{}:s.subscribe(yCe.batchCalls(e));return s.updateResult(),t}),[s,n]),(()=>s.getCurrentResult()),(()=>s.getCurrentResult())),w.useEffect((()=>{s.setOptions(o,{listeners:!1})}),[o,s]),((e,t,r)=>(null==e?void 0:e.suspense)&&((e,t)=>e.isLoading&&e.isFetching&&!t)(t,r))(o,a,n))throw((e,t,r)=>t.fetchOptimistic(e).then((({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)})).catch((t=>{r.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)})))(o,s,i);if((({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&VCe(r,[e.error,n]))({result:a,errorResetBoundary:i,useErrorBoundary:o.useErrorBoundary,query:s.getCurrentQuery()}))throw a.error;return o.notifyOnChangeProps?a:s.trackResult(a)}const QCe=({children:e,options:t,state:r})=>(function(e,t={}){const r=GCe({context:t.context}),n=w.useRef(t);n.current=t,w.useMemo((()=>{e&&jCe(r,e,n.current)}),[r,e])}(r,t),e);function JCe(e,t,r){const n=function(e,t,r){return iCe(e)?"function"==typeof t?{...r,mutationKey:e,mutationFn:t}:{...t,mutationKey:e}:"function"==typeof e?{...t,mutationFn:e}:{...e}}(e,t,r),i=GCe({context:n.context}),[o]=w.useState((()=>new PCe(i,n)));w.useEffect((()=>{o.setOptions(n)}),[o,n]);const s=UCe(w.useCallback((e=>o.subscribe(yCe.batchCalls(e))),[o]),(()=>o.getCurrentResult()),(()=>o.getCurrentResult())),a=w.useCallback(((e,t)=>{o.mutate(e,t).catch(ZCe)}),[o]);if(s.error&&VCe(o.options.useErrorBoundary,[s.error]))throw s.error;return{...s,mutate:a,mutateAsync:s.mutate}}function ZCe(){}const XCe=["added","removed","updated"];function eIe(e){return XCe.includes(e)}async function tIe({queryClient:e,persister:t,buster:r="",dehydrateOptions:n}){const i={buster:r,timestamp:Date.now(),clientState:OCe(e,n)};await t.persistClient(i)}function rIe(e){let t,r=!1;const n=async function({queryClient:e,persister:t,maxAge:r=864e5,buster:n="",hydrateOptions:i}){try{const o=await t.restoreClient();if(o)if(o.timestamp){const s=Date.now()-o.timestamp>r,a=o.buster!==n;s||a?t.removeClient():jCe(e,o.clientState,i)}else t.removeClient()}catch(dVe){t.removeClient()}}(e).then((()=>{r||(t=function(e){const t=e.queryClient.getQueryCache().subscribe((t=>{eIe(t.type)&&tIe(e)})),r=e.queryClient.getMutationCache().subscribe((t=>{eIe(t.type)&&tIe(e)}));return()=>{t(),r()}}(e))}));return[()=>{r=!0,null==t||t()},n]}function nIe(e){try{return JSON.parse(e)}catch(fVe){return{}}}function iIe(e,t){return e.slice(0,t).join(".")||"."}function oIe(e,t){const{length:r}=e;for(let n=0;nnew kCe({defaultOptions:{queries:{cacheTime:864e5,networkMode:"offlineFirst",refetchOnWindowFocus:!1,retry:0},mutations:{networkMode:"offlineFirst"}}});function uIe({queryClient:e=aIe(),...t}){const r=FAe(t),n=t?.storage?(({storage:e,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:r=1e3,serialize:n=JSON.stringify,deserialize:i=JSON.parse,retry:o})=>{if(e){const s=async r=>{try{return void(await e.setItem(t,n(r)))}catch(XMe){return XMe}};return{persistClient:BTe((async e=>{let t=e,r=await s(t),n=0;for(;r&&t;)n++,t=await(null==o?void 0:o({persistedClient:t,error:r,errorCount:n})),t&&(r=await s(t))}),{interval:r}),restoreClient:async()=>{const r=await e.getItem(t);if(r)return i(r)},removeClient:()=>e.removeItem(t)}}return{persistClient:UTe,restoreClient:()=>Promise.resolve(void 0),removeClient:UTe}})({key:"livepeer.cache",storage:t.storage,serialize:sIe,deserialize:nIe}):void 0;return n&&rIe({queryClient:e,persister:n,dehydrateOptions:{shouldDehydrateQuery:e=>0!==e.cacheTime}}),Object.assign(r,{queryClient:e})}function lIe(e){var t=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(e),e));return uIe(OTe({storage:"undefined"!=typeof window?t.storage?t.storage:jAe({storage:window.localStorage}):void 0},t))}const cIe=w.createContext(void 0),hIe=w.createContext(void 0);function dIe({children:e,client:t,dehydratedState:r}){return(0,Tf.jsx)(cIe.Provider,{value:t,children:(0,Tf.jsx)(YCe,{context:hIe,client:t.queryClient,children:(0,Tf.jsx)(QCe,{options:{context:hIe},state:r??void 0,children:e})})})}function fIe(){const e=w.useContext(cIe);if(!e)throw new Error(["`useClient` must be used within `LivepeerConfig`."].join("\n"));return e}r(98399);const pIe=["cacheTime","networkMode","onError","onMutate","onSettled","onSuccess","retry","retryDelay","useErrorBoundary","meta"];const mIe=["cacheTime","enabled","networkMode","initialData","initialDataUpdatedAt","isDataEqual","keepPreviousData","meta","notifyOnChangeProps","onError","onSettled","onSuccess","placeholderData","refetchInterval","refetchIntervalInBackground","refetchOnMount","refetchOnReconnect","refetchOnWindowFocus","retry","retryOnMount","retryDelay","select","staleTime","structuralSharing","suspense","useErrorBoundary"];function gIe(e){const{data:t,dataUpdatedAt:r,error:n,errorUpdatedAt:i,failureCount:o,isError:s,isFetched:a,isFetchedAfterMount:u,isFetching:l,isPaused:c,isLoadingError:h,isPlaceholderData:d,isPreviousData:f,isRefetchError:p,isRefetching:m,isStale:g,isSuccess:y,refetch:v,remove:b,status:_,fetchStatus:E}=$Ce(KTe({...e,context:hIe},A,M),TCe);var A,M;const S=(0,w.useMemo)((()=>"loading"===_&&"idle"===E?"idle":_),[_,E]);return{data:t,error:n,isError:s,isFetched:a,isFetching:l,isIdle:(0,w.useMemo)((()=>"idle"===S),[S]),isLoading:(0,w.useMemo)((()=>"loading"===S&&"fetching"===E),[S,E]),isRefetching:m,isSuccess:y,refetch:v,status:S,internal:{fetchStatus:E,dataUpdatedAt:r,errorUpdatedAt:i,failureCount:o,isFetchedAfterMount:u,isLoadingError:h,isPaused:c,isPlaceholderData:d,isPreviousData:f,isRefetchError:p,isStale:g,remove:b}}}var yIe=r(41900);r(98399);const vIe=/^(ar):\/\/([^/?#]+)(.*)$/,bIe=/^https:\/\/(arweave\.net|arweave\.dev)\/([^/?#]+)(.*)$/,wIe=/^https:\/\/([^/]+)\.(arweave\.net|arweave\.dev)\/([^/?#]+)(.*)$/,_Ie=e=>{if(!e)return null;const t=e.match(vIe)?.[2],r=e.match(vIe)?.[3];if(t)return EIe(t,r);const n=e.match(wIe)?.[3],i=e.match(wIe)?.[4];if(n)return EIe(n,i);const o=e.match(bIe)?.[2],s=e.match(bIe)?.[3];return o?EIe(o,s):null},EIe=(e,t)=>{const r=`${e}${t??""}`;return{url:`ar://${r}`,id:r}},AIe=/^([^/?#]+)$/,MIe=/^(ipfs):\/\/([^/?#]+)(.*)$/,SIe=/^https?:\/\/[^/]+\/(ipfs)\/([^/?#]+)(.*)$/,xIe=/^https?:\/\/([^/]+)\.(ipfs)\.[^/?#]+(.*)$/,kIe=e=>{if(!e)return null;const t=e.match(MIe)?.[2],r=e.match(MIe)?.[3];if(TIe(t))return CIe(t,r);const n=e.match(xIe)?.[1],i=e.match(xIe)?.[3];if(TIe(n))return CIe(n,i);const o=e.match(SIe)?.[2],s=e.match(SIe)?.[3];if(TIe(o))return CIe(o,s);const a=e.match(AIe)?.[1];return TIe(a)?CIe(a):null},TIe=e=>{try{return!!e&&("string"==typeof e?Boolean(yIe.k.parse(e)):e instanceof Uint8Array?Boolean(yIe.k.decode(e)):Boolean(yIe.k.asCID(e)))}catch{return!1}},CIe=(e,t)=>{const r=`${e}${t??""}`;return{url:`ipfs://${r}`,id:r}};new Set;var IIe=r(17283);function NIe(){return(0,IIe.useSyncExternalStoreWithSelector)((e=>{return t=e,zAe().subscribe((({provider:e})=>e),(async()=>t(GAe())));var t}),(()=>GAe()),(()=>GAe()),(e=>e))}function RIe(e){const t=NIe(),[r,n]=(0,w.useState)(void 0),i=function(e,t,r){const{data:n,error:i,isError:o,isIdle:s,isLoading:a,isSuccess:u,mutate:l,mutateAsync:c,reset:h,variables:d,status:f}=JCe(t,{context:hIe,mutationKey:r,..."object"==typeof e?.mutationConfig?KAe(e.mutationConfig,...pIe):{},useErrorBoundary:!1});return(0,w.useMemo)((()=>({data:n,error:i,isError:o,isIdle:s,isLoading:a,isSuccess:u,mutate:e?()=>l({...e,config:void 0}):void 0,mutateAsync:()=>e?c({...e,config:void 0}):void 0,variables:d,status:f,internal:{reset:h}})),[n,i,o,s,a,u,l,c,h,d,f,e])}(e,(async e=>function(e){return GAe().createAsset(e)}({...e,onProgress:e=>n(e)})),[{entity:"createAsset",livepeerProvider:t}]);return(0,w.useMemo)((()=>({...i,progress:r})),[i,r])}const PIe=(e,t)=>[{entity:"getPlaybackInfo",args:e,config:t}];function DIe(e,t){const r="string"==typeof e?e:{playbackId:e?.playbackId??""};return{clearClient:e.clearClient,queryKey:PIe(r,t.getConfig()),queryFn:async()=>function(e){return GAe().getPlaybackInfo(e)}(e),enabled:Boolean("string"==typeof e?e:e?.playbackId),..."object"==typeof e?KAe(e,...mIe):{}}}const LIe=(e,t,r,n,i)=>{const o=w.useMemo((()=>e?t??r:n??i),[e,t,r,n,i]);return w.useMemo((()=>w.isValidElement(o)?w.cloneElement(o):null),[o])};var OIe=r(98399);const jIe=e=>{const[t,r]=w.useState(null),{onChange:n,thumbIcon:i,defaultThumbIcon:o,sliderWidth:s,ariaName:a,isActive:u,leftCss:l,middleCss:c,rightCss:h,thumbCss:d}=e,f=u||null!==t,p=w.useCallback((async(e,t)=>{if(s){const i=e/s,o=Math.min(Math.max(0,i),1);t?(await(n?.(o)),r(null)):r(o)}}),[n,s]),{value:m,middleValue:g}=w.useMemo((()=>{const r=null!==t?t:isNaN(e.value)?0:e.value,n=null!==t||!e.secondaryValue||isNaN(e.value)||isNaN(e.secondaryValue)?0:e.secondaryValue-e.value;return{value:r,middleValue:n>0?n:0}}),[t,e.value,e.secondaryValue]),y=w.useMemo((()=>({css:{...d,zIndex:1},size:f?"active":"default"})),[d,f]),v=((e,t)=>w.useMemo((()=>e&&w.isValidElement(e)?w.cloneElement(e):t),[e,t]))(i,w.cloneElement(o,y)),b=w.useMemo((()=>1-(m+g)),[m,g]),_=w.useMemo((()=>Math.round(100*m)),[m]);return{title:`${_}% ${a}`,value:_,active:f,handle:v,sliderProps:{onUpdate:p},sliderLeftTrackProps:{shown:m>.001,rounded:1!==m||f?"left":"full",css:{...l,flex:m}},sliderMiddleTrackProps:{shown:(g??0)>0,rounded:1===g?f?"right":"full":m<=.001?"left":0===b?"right":"none",css:{...c,flex:g}},sliderRightTrackProps:{shown:(b??0)>0,rounded:m<=.001&&!f?"full":"right",css:{...h,flex:b}}}},BIe=e=>{if(null!=e&&!isNaN(e)&&isFinite(e)){const t=Math.round(e),r=Math.floor(t/3600),n=Math.floor(t%60);if(r>0){return`${r}:${Math.floor(t%3600/60).toString().padStart(2,"0")}:${n<10?"0":""}${n}`}return`${Math.floor(t/60)}:${n.toString().padStart(2,"0")}`}return"0:00"},UIe=e=>{const{unmutedIcon:t,mutedIcon:r,onPress:n,showSlider:i=!0,defaultUnmutedIcon:o,defaultMutedIcon:s,requestVolume:a,requestToggleMute:u,isVolumeChangeSupported:l,muted:c,...h}=e,d=w.useCallback((async()=>{await(n?.()),u()}),[n,u]),f=LIe(!c,t,o,r,s),p=w.useMemo((()=>c?"Unmute (m)":"Mute (m)"),[c]),m=w.useCallback((async e=>{a(e)}),[a]);return{title:p,buttonProps:{onPress:d,children:f,...h},progressProps:{shown:l&&i,onChange:m,leftCss:{backgroundColor:"$volumeLeft"},middleCss:{backgroundColor:"$volumeMiddle"},rightCss:{backgroundColor:"$volumeRight"},thumbCss:{backgroundColor:"$volumeThumb"}}}},FIe=({decentralizedSrcOrPlaybackId:e,playbackId:t,refetchPlaybackInfoInterval:r,autoUrlUpload:n,onAssetStatusChange:i})=>{const{mutate:o,status:s,progress:a}=RIe(e?{sources:[{name:e.id,url:e.url}]}:null);w.useEffect((()=>{a?.[0]&&i(a[0])}),[a,i]);const{data:u,error:l}=function(e){return gIe(DIe(e,NIe()))}({playbackId:e?.id??t??void 0,staleTime:864e5,refetchInterval:e=>!e&&r}),c=w.useMemo((()=>l?.code),[l]);return w.useEffect((()=>{n&&o&&"idle"===s&&404===c&&o()}),[n,c,o,s]),u},zIe="https://w3s.link",HIe="https://arweave.net",GIe=({autoPlay:e,children:t,controls:r,muted:n,playbackId:i,src:o,playbackInfo:s,theme:a,title:u,poster:l,loop:c,onStreamStatusChange:h,onAccessControlError:d,onError:f,onSourceUpdated:p,jwt:m,viewerId:g,refetchPlaybackInfoInterval:y=5e3,autoUrlUpload:v=!0,accessKey:b,onAccessKeyRequest:_,showLoadingSpinner:E=!0,showUploadingIndicator:A=!0,showTitle:M=!0,priority:S,aspectRatio:x="16to9",objectFit:k="contain",mediaElementRef:T,_isCurrentlyShown:C,onPlaybackStatusUpdate:I,playbackStatusSelector:N,renderChildrenOutsideContainer:R},{_screenWidth:P})=>{const[D,L]=w.useState(null),{source:O,uploadStatus:j}=(({src:e,playbackId:t,jwt:r,refetchPlaybackInfoInterval:n,autoUrlUpload:i={fallback:!0},playbackInfo:o,screenWidth:s,accessKey:a,onAccessKeyRequest:u})=>{const[l,c]=w.useState(null),h=w.useCallback((e=>{c(e)}),[c]),d=w.useMemo((()=>t?kIe(t)??_Ie(t):Array.isArray(e)?null:kIe(e)??_Ie(e)),[t,e]),f=FIe({decentralizedSrcOrPlaybackId:d,playbackId:t,refetchPlaybackInfoInterval:n,autoUrlUpload:i,onAssetStatusChange:h}),p=w.useMemo((()=>o??f),[o,f]),m=w.useCallback((async()=>a||("webhook"===p?.meta?.playbackPolicy?.type?await(u?.(p.meta.playbackPolicy))??null:null)),[a,u,p]),{data:g}=gIe({queryKey:[p,u,a],queryFn:m,enabled:Boolean(p||a),staleTime:1/0}),[y,v]=w.useState([]);w.useEffect((()=>{const e=2.5*(s??1280),t=(o??f)?.meta?.source?.map((t=>({url:t?.url,screenWidthDelta:t?.width?Math.abs(e-t.width):t?.url.includes("static360p")||t?.url.includes("low-bitrate")?Math.abs(e-480):t?.url.includes("static720p")?Math.abs(e-1280):t?.url.includes("static1080p")?Math.abs(e-1920):t?.url.includes("static2160p")?Math.abs(e-3840):null})))??null;t&&v(t)}),[o,f,s]);const b=w.useMemo((()=>{if(d&&i){const t="boolean"!=typeof i?{arweaveGateway:i.arweaveGateway??HIe,ipfsGateway:i.ipfsGateway??zIe}:{arweaveGateway:HIe,ipfsGateway:zIe};if(d.url.startsWith("ar://")){const{host:e}=new URL(t.arweaveGateway);return{type:"video",mime:"video/mp4",src:`https://${e}/${d.id}`}}if(d.url.startsWith("ipfs://")){const{host:e}=new URL(t.ipfsGateway);return{type:"video",mime:"video/mp4",src:`https://${e}/ipfs/${d.id}`}}return{type:"video",mime:"video/mp4",src:e}}return null}),[i,d,e]),[_,E]=w.useMemo((()=>{const t=["none",null],n=y.length>0?y.map((e=>e.url)):"string"==typeof e?[e]:e;if(!n)return t;const i=n.map((e=>{if(r){const t=new URL(e);return t.searchParams.append("jwt",r),t.toString()}if(g){const t=new URL(e);return t.searchParams.append("accessKey",g),t.toString()}return e})),o=i.map((e=>"string"==typeof e?tMe(e):null)).filter((e=>e));return"audio"===o?.[0]?.type?["audio",o.filter((e=>"audio"===e.type))]:"video"===o?.[0]?.type||"hls"===o?.[0]?.type||"webrtc"===o?.[0]?.type?["video",o.filter((e=>"video"===e.type||"hls"===e.type||"webrtc"===e.type))]:t}),[y,e,r,g]),A=w.useMemo((()=>!E&&b?[b]:"video"===_?[...E].sort(((e,t)=>{if("video"===e.type&&"video"===t.type){const r=y.find((t=>t.url===e.src)),n=y.find((e=>e.url===t.src));return n?.screenWidthDelta&&r?.screenWidthDelta?r.screenWidthDelta-n.screenWidthDelta:1}return"video"!==e.type||"hls"!==t.type&&"webrtc"!==t.type?"webrtc"===e.type&&"hls"===t.type?-1:1:-1})):E),[E,_,b,y]);return{source:A,uploadStatus:l}})({src:o,playbackId:i,jwt:m,refetchPlaybackInfoInterval:y,autoUrlUpload:v,screenWidth:P,playbackInfo:s,accessKey:b,onAccessKeyRequest:_}),[B,U]=w.useState(null),F=w.useCallback((e=>{const t=e?{type:xAe(e)?"access-control":SAe(e)?"offline":"unknown",message:e?.message??"Error with playback."}:null;U(t);try{t&&OIe.log(t),e?"offline"===t?.type?h?.(!1):"access-control"===t?.type?d?.(new Error(t.message)):t?.message&&f?.(new Error(t.message)):h?.(!0)}catch(fVe){}return t}),[d,h,f]);w.useEffect((()=>{O&&(p?.(O),U(null))}),[O,p]);const[z,H]=w.useState(!1),G=w.useMemo((()=>S||C||z),[S,C,z]);w.useEffect((()=>{C&&!z&&H(!0)}),[C,z]);const Y=w.useMemo((()=>Array.isArray(O)&&"audio"!==O?.[0]?.type||void 0),[O]),K=w.useCallback((e=>{e&&(L(e),T?.(e))}),[T]),q=w.useMemo((()=>A?"processing"===j?.phase&&(e=>"number"==typeof e&&!Number.isNaN(e))(j?.progress)?`Processing: ${(100*Number(j?.progress)).toFixed(0)}%`:"failed"===j?.phase?"Upload Failed":null:null),[j,A]),W=w.useMemo((()=>({ref:K,autoPlay:e,playbackId:i,muted:n,poster:l,loop:c,objectFit:k,options:r,priority:S,playbackError:B,onPlaybackError:F,isCurrentlyShown:C,viewerId:g,onPlaybackStatusUpdate:I,playbackStatusSelector:N})),[K,i,e,n,l,c,k,r,S,B,F,C,g,I,N]),V=w.useMemo((()=>({autoPlay:e,playbackId:i??void 0,muted:n,priority:S,viewerId:g})),[e,i,n,S,g]),$=w.useMemo((()=>({hidePosterOnPlayed:Y,showLoadingSpinner:E,loadingText:q,showUploadingIndicator:A,error:B})),[Y,E,q,A,B]),Q=w.useMemo((()=>({autoPlay:e,children:t,controls:r,playbackId:i,src:o,theme:a,title:u,poster:l,loop:c,jwt:m,refetchPlaybackInfoInterval:y,autoUrlUpload:v,showTitle:M,aspectRatio:x,objectFit:k,renderChildrenOutsideContainer:R,playbackError:B})),[e,t,r,i,o,a,u,l,c,m,y,v,M,x,k,R,B]);return{mediaElement:D,source:w.useMemo((()=>G?O:null),[G,O]),uploadStatus:j,playerProps:W,mediaControllerProps:V,controlsContainerProps:$,props:Q}};function YIe(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function KIe(e){for(var t=1;t=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(a&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),M(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;M(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},e}function WIe(e,t,r,n,i,o,s){try{var a=e[o](s),u=a.value}catch(XMe){return void r(XMe)}a.done?t(u):Promise.resolve(u).then(n,i)}function VIe(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function s(e){WIe(o,n,i,s,a,"next",e)}function a(e){WIe(o,n,i,s,a,"throw",e)}s(void 0)}))}}function $Ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}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 o,s=!0,a=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==r.return||r.return()}finally{if(a)throw o}}}}r(41329),r(87868),r(34198),r(42166),r(76831),r(64467);var ZIe=r(64565),XIe=r.n(ZIe),eNe=r(98399),tNe=function(){var e,t,r,n,i,o,s,a,u,l,c,h;if(!Cke())return!1;var d=!!(null!==(e=window)&&void 0!==e&&e.RTCPeerConnection||null!==(t=window)&&void 0!==t&&t.webkitRTCPeerConnection||null!==(r=window)&&void 0!==r&&r.mozRTCPeerConnection),f=!!(null!==(n=navigator)&&void 0!==n&&n.getUserMedia||null!==(i=navigator)&&void 0!==i&&null!==(o=i.mediaDevices)&&void 0!==o&&o.getUserMedia||null!==(s=navigator)&&void 0!==s&&s.webkitGetUserMedia||null!==(a=navigator)&&void 0!==a&&a.mozGetUserMedia||null!==(u=navigator)&&void 0!==u&&u.msGetUserMedia),p=!!(null!==(l=window)&&void 0!==l&&l.RTCDataChannel||null!==(c=window)&&void 0!==c&&c.webkitRTCDataChannel||null!==(h=window)&&void 0!==h&&h.mozRTCDataChannel);return d&&f&&p};function rNe(e){var t,r,n,i=(null===(t=window)||void 0===t?void 0:t.RTCPeerConnection)||(null===(r=window)||void 0===r?void 0:r.webkitRTCPeerConnection)||(null===(n=window)||void 0===n?void 0:n.mozRTCPeerConnection),o=e?[{urls:"stun:".concat(e)},{urls:"turn:".concat(e),username:"livepeer",credential:"livepeer"}]:[];return i?new i({iceServers:o}):null}var nNe=1e4;function iNe(e,t,r,n){return oNe.apply(this,arguments)}function oNe(){return(oNe=VIe(qIe().mark((function e(t,r,n,i){var o,s,a,u;return qIe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t&&r&&n)){e.next=20;break}return e.next=3,uNe(r,n.sdp,i);case 3:if(!(o=e.sent).ok){e.next=14;break}return e.next=7,o.text();case 7:return s=e.sent,e.next=10,t.setRemoteDescription(new RTCSessionDescription({type:"answer",sdp:s}));case 10:return a=o.headers.get("Link"),e.abrupt("return",pNe(a));case 14:return e.next=16,o.text();case 16:throw u=e.sent,new Error(u);case 18:e.next=21;break;case 20:throw new Error("Peer connection not defined.");case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function sNe(e,t){return aNe.apply(this,arguments)}function aNe(){return(aNe=VIe(qIe().mark((function e(t,r){var n,i;return qIe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||!r){e.next=12;break}return e.next=3,t.createOffer();case 3:return n=e.sent,e.next=6,t.setLocalDescription(n);case 6:return e.next=8,dNe(t);case 8:if(i=e.sent){e.next=11;break}throw Error("failed to gather ICE candidates for offer");case 11:return e.abrupt("return",i);case 12:return e.abrupt("return",null);case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function uNe(e,t,r){return lNe.apply(this,arguments)}function lNe(){return lNe=VIe(qIe().mark((function e(t,r,n){var i,o,s;return qIe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=new AbortController,o=setTimeout((function(){return i.abort()}),null!=n?n:nNe),e.next=4,XIe()(t,{method:"POST",mode:"cors",headers:{"content-type":"application/sdp"},body:r,signal:i.signal});case 4:return s=e.sent,clearTimeout(o),e.abrupt("return",s);case 7:case"end":return e.stop()}}),e)}))),lNe.apply(this,arguments)}function cNe(e,t,r){return hNe.apply(this,arguments)}function hNe(){return hNe=VIe(qIe().mark((function e(t,r,n){var i,o,s;return qIe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=setTimeout((function(){return r.abort()}),null!=n?n:nNe),e.prev=1,e.next=4,XIe()(t,{method:"HEAD",signal:r.signal});case 4:return o=e.sent,clearTimeout(i),s=new URL(o.url),e.abrupt("return",s);case 10:return e.prev=10,e.t0=e.catch(1),e.abrupt("return",null);case 13:case"end":return e.stop()}}),e,null,[[1,10]])}))),hNe.apply(this,arguments)}function dNe(e){return fNe.apply(this,arguments)}function fNe(){return(fNe=VIe(qIe().mark((function e(t){return qIe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){setTimeout((function(){e(t.localDescription)}),5e3),t.onicegatheringstatechange=function(r){"complete"===t.iceGatheringState&&e(t.localDescription)}})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function pNe(e){try{var t,r=null==e?void 0:e.split(", ").map((function(e){var t,r={urls:""},n=JIe(e.split("; "));try{for(n.s();!(t=n.n()).done;){var i=t.value;i.startsWith("stun:")||i.startsWith("turn:")?r.urls=i:i.startsWith("username=")?r.username=i.slice('username="'.length,-1):i.startsWith("credential=")&&(r.credential=i.slice('credential="'.length,-1))}}catch(dVe){n.e(dVe)}finally{n.f()}return r})).filter((function(e){return e.urls}));return r&&(null!==(t=null==r?void 0:r.length)&&void 0!==t?t:0)>0?r:null}catch(fVe){eNe.error(fVe)}return null}function mNe(e){return mNe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mNe(e)}var gNe=function(){var e=VIe(qIe().mark((function e(t){var r,n,i,o,s,a,u,l,c,h,d,f,p,m,g,y,v,b,w,_,E,A,M,S,x;return qIe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p=t.newMediaStream,m=t.prevMediaStream,g=t.aspectRatio,y=t.element,v=t.onConnected,b=t.videoTransceiver,w=t.audioTransceiver,_=null!==(r=null==m||null===(n=m.getVideoTracks)||void 0===n||null===(i=n.call(m))||void 0===i?void 0:i[0])&&void 0!==r?r:null,E=null!==(o=null==m||null===(s=m.getAudioTracks)||void 0===s||null===(a=s.call(m))||void 0===a?void 0:a[0])&&void 0!==o?o:null,A=null!==(u=null==p||null===(l=p.getVideoTracks)||void 0===l||null===(c=l.call(p))||void 0===c?void 0:c[0])&&void 0!==u?u:null,M=null!==(h=null==p||null===(d=p.getAudioTracks)||void 0===d||null===(f=d.call(p))||void 0===f?void 0:f[0])&&void 0!==h?h:null,!A){e.next=11;break}return e.next=8,A.applyConstraints(wNe(g));case 8:return e.next=10,b.sender.replaceTrack(A);case 10:A.enabled=null===(S=null==_?void 0:_.enabled)||void 0===S||S;case 11:if(!M){e.next=15;break}return e.next=14,w.sender.replaceTrack(M);case 14:M.enabled=null===(x=null==E?void 0:E.enabled)||void 0===x||x;case 15:y.srcObject=p,v({stream:p,videoTransceiver:b,audioTransceiver:w});case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),yNe=function(){var e=VIe(qIe().mark((function e(t){var r,n,i,o,s,a,u,l;return qIe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.source,e.prev=1,e.next=4,null===(n=navigator)||void 0===n||null===(i=n.mediaDevices)||void 0===i?void 0:i.getUserMedia(KIe(KIe({},"object"===mNe(r.streamConstraints)?r.streamConstraints:{}),{},{video:KIe(KIe({},"boolean"!=typeof(null===(o=r.streamConstraints)||void 0===o?void 0:o.video)?null===(s=r.streamConstraints)||void 0===s?void 0:s.video:{}),null!=r&&r.videoDeviceId?{deviceId:null==r?void 0:r.videoDeviceId}:{}),audio:KIe(KIe({},"boolean"!=typeof(null===(a=r.streamConstraints)||void 0===a?void 0:a.audio)?null===(u=r.streamConstraints)||void 0===u?void 0:u.audio:{}),null!=r&&r.audioDeviceId?{deviceId:null==r?void 0:r.audioDeviceId}:{})}));case 4:return l=e.sent,e.abrupt("return",null!=l?l:null);case 8:return e.prev=8,e.t0=e.catch(1),eNe.error(e.t0),e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}(),vNe=function(e){var t,r;if("undefined"!=typeof navigator&&null!==(t=navigator)&&void 0!==t&&null!==(r=t.mediaDevices)&&void 0!==r&&r.enumerateDevices){var n=function(){navigator.mediaDevices.enumerateDevices().then((function(t){return e(t)}))};return navigator.mediaDevices.addEventListener("devicechange",n),n(),function(){navigator.mediaDevices.removeEventListener("devicechange",n)}}return function(){}},bNe=function(){var e=VIe(qIe().mark((function e(t){var r,n,i;return qIe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"undefined"==typeof navigator||null===(r=navigator)||void 0===r||null===(n=r.mediaDevices)||void 0===n||!n.getDisplayMedia){e.next=6;break}return e.next=4,navigator.mediaDevices.getDisplayMedia(t);case 4:return i=e.sent,e.abrupt("return",i);case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),eNe.error(e.t0);case 11:return e.abrupt("return",null);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}(),wNe=function(e){return{width:{ideal:1280},height:{ideal:720},aspectRatio:{ideal:"9to16"===e?9/16:"1to1"===e?1:"21to9"===e?21/9:"4to5"===e?.8:16/9}}};const _Ne=(e,t,r)=>{const n=w.useContext(e);return w.useMemo((()=>{const e=n?r?dMe(n,r):dMe(n):r,i=e?dMe({colors:{progressLeft:e.colors?.progressLeft??e.colors?.accent,progressMiddle:e.colors?.progressMiddle??e.colors?.accent,progressRight:e.colors?.progressRight??e.colors?.accent,volumeLeft:e.colors?.volumeLeft??e.colors?.accent,volumeMiddle:e.colors?.volumeMiddle??e.colors?.accent,volumeRight:e.colors?.volumeRight??e.colors?.accent,progressThumb:e.colors?.progressThumb??e.colors?.icon,volumeThumb:e.colors?.volumeThumb??e.colors?.icon,loading:e.colors?.loading??e.colors?.accent}},e):void 0,o=i?ENe(i):void 0;return o?t(o):void 0}),[r,n,t])};function ENe(e){return Object.fromEntries(Object.entries(e).filter((([e,t])=>null!=t)).map((([e,t])=>[e,t===Object(t)?ENe(t):t])))}var ANe=r(98399);function MNe(e){return function(e){if(Array.isArray(e))return $Ie(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||QIe(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 SNe,xNe=[{requestFullscreen:"requestFullscreen",exitFullscreen:"exitFullscreen",fullscreenElement:"fullscreenElement",fullscreenEnabled:"fullscreenEnabled",fullscreenchange:"fullscreenchange",fullscreenerror:"fullscreenerror"},{requestFullscreen:"webkitRequestFullscreen",exitFullscreen:"webkitExitFullscreen",fullscreenElement:"webkitFullscreenElement",fullscreenEnabled:"webkitFullscreenEnabled",fullscreenchange:"webkitfullscreenchange",fullscreenerror:"webkitfullscreenerror"},{requestFullscreen:"webkitRequestFullScreen",exitFullscreen:"webkitCancelFullScreen",fullscreenElement:"webkitCurrentFullScreenElement",fullscreenEnabled:"webkitCancelFullScreen",fullscreenchange:"webkitfullscreenchange",fullscreenerror:"webkitfullscreenerror"},{requestFullscreen:"mozRequestFullScreen",exitFullscreen:"mozCancelFullScreen",fullscreenElement:"mozFullScreenElement",fullscreenEnabled:"mozFullScreenEnabled",fullscreenchange:"mozfullscreenchange",fullscreenerror:"mozfullscreenerror"},{requestFullscreen:"msRequestFullscreen",exitFullscreen:"msExitFullscreen",fullscreenElement:"msFullscreenElement",fullscreenEnabled:"msFullscreenEnabled",fullscreenchange:"MSFullscreenChange",fullscreenerror:"MSFullscreenError"}],kNe={requestFullscreen:"webkitEnterFullscreen",exitFullscreen:"webkitExitFullscreen",fullscreenElement:null,fullscreenEnabled:"webkitDisplayingFullscreen",fullscreenchange:"fullscreenchange",fullscreenerror:"fullscreenerror"},TNe=function(e){var t=PNe(e),r=t.methods,n=t.element;return null!=r&&r.fullscreenElement?Boolean(document[r.fullscreenElement]):Boolean("fullscreen"===(null==n?void 0:n.webkitPresentationMode))},CNe=function(e){var t=PNe(e),r=t.methods,n=t.element;return!!r&&new Promise((function(t,i){var o,s,a,u,l=r.requestFullscreen,c=function r(){RNe(e,r),t()};NNe(e,c);var h=r.fullscreenElement?null==n||null===(o=n.parentElement)||void 0===o||null===(s=o[l])||void 0===s?void 0:s.call(o):null!==(a=null==n||null===(u=n[l])||void 0===u?void 0:u.call(n))&&void 0!==a?a:null;if(null===h)return t();h instanceof Promise&&h.then(c).catch(i)}))},INe=function(e){var t=PNe(e),r=t.methods,n=t.element;return!!r&&new Promise((function(t,i){var o,s,a,u;if(TNe(e)){var l=function r(){RNe(e,r),t()};NNe(e,l);var c=r.fullscreenElement?null===(o=document)||void 0===o||null===(s=o[r.exitFullscreen])||void 0===s?void 0:s.call(o):null!==(a=null==n||null===(u=n[r.exitFullscreen])||void 0===u?void 0:u.call(n))&&void 0!==a?a:null;c instanceof Promise&&c.then(l).catch(i)}else t()}))},NNe=function(e,t){var r=PNe(e),n=r.methods,i=r.element;if(n&&i){var o,s=null!==(o=null==i?void 0:i.parentElement)&&void 0!==o?o:i;return null==s||s.addEventListener(n.fullscreenchange,t,!1),function(){RNe(e,t)}}return null},RNe=function(e,t){var r=PNe(e),n=r.methods,i=r.element;if(n&&i){var o,s=null!==(o=null==i?void 0:i.parentElement)&&void 0!==o?o:i;return null==s||s.removeEventListener(n.fullscreenchange,t,!1),!0}return!1},PNe=function(e){if(Cke()){var t,r=JIe(xNe);try{for(r.s();!(t=r.n()).done;){var n=t.value;if(n.exitFullscreen in document)return{methods:n,element:e}}}catch(dVe){r.e(dVe)}finally{r.f()}if(e&&kNe.requestFullscreen in e)return{methods:kNe,element:e}}return{methods:null}},DNe=function(){var e=VIe(qIe().mark((function e(t){var r,n,i,o,s;return qIe().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=BNe(t),n=r.apiType,i=r.element,e.prev=1,"w3c"!==n){e.next=7;break}return e.next=5,null==i||null===(o=i.requestPictureInPicture)||void 0===o?void 0:o.call(i);case 5:e.next=10;break;case 7:if("webkit"!==n){e.next=10;break}return e.next=10,null==i||null===(s=i.webkitSetPresentationMode)||void 0===s?void 0:s.call(i,"picture-in-picture");case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),ANe.warn(e.t0);case 15:return e.abrupt("return",null);case 16:case"end":return e.stop()}}),e,null,[[1,12]])})));return function(t){return e.apply(this,arguments)}}(),LNe=function(e){var t,r,n,i,o,s=BNe(e),a=s.apiType,u=s.element;return"w3c"===a?null!==(t=null===(r=document)||void 0===r||null===(n=r.exitPictureInPicture)||void 0===n?void 0:n.call(r))&&void 0!==t?t:null:"webkit"===a&&null!==(i=null==u||null===(o=u.webkitSetPresentationMode)||void 0===o?void 0:o.call(u,"inline"))&&void 0!==i?i:null},ONe=function(e,t){var r=BNe(e),n=r.apiType,i=r.element;if("w3c"===n&&i)return i.addEventListener("enterpictureinpicture",t,!1),function(){i.removeEventListener("enterpictureinpicture",t,!1)};if("webkit"===n&&i){var o=function(e){"picture-in-picture"===(null==i?void 0:i.webkitPresentationMode)&&(null==t||t(e))};return document.addEventListener("webkitpresentationmodechanged",o,!1),function(){document.removeEventListener("webkitpresentationmodechanged",o,!1)}}return null},jNe=function(e,t){var r=BNe(e),n=r.apiType,i=r.element;if("w3c"===n&&i)return i.addEventListener("leavepictureinpicture",t,!1),function(){i.removeEventListener("leavepictureinpicture",t,!1)};if("webkit"===n&&i){var o=function(e){"inline"===(null==i?void 0:i.webkitPresentationMode)&&(null==t||t(e))};return document.addEventListener("webkitpresentationmodechanged",o,!1),function(){document.removeEventListener("webkitpresentationmodechanged",o,!1)}}return null},BNe=function(e){if(Cke()&&e instanceof HTMLVideoElement){var t,r;if(null!==(t=document)&&void 0!==t&&t.pictureInPictureEnabled)return{apiType:"w3c",element:e};if(null!=e&&null!==(r=e.webkitSupportsPresentationMode)&&void 0!==r&&r.call(e,"picture-in-picture"))return{apiType:"webkit",element:e}}return{apiType:null}},UNe="data-controller-initialized",FNe=["KeyF","KeyK","KeyM","KeyI","KeyV","Space","ArrowRight","ArrowLeft"],zNe=function(e){return new Promise((function(t){var r,n=null!==(r=null==e?void 0:e.volume)&&void 0!==r?r:1;e.volume=.342,setTimeout((function(){var r=1!==e.volume;e.volume=function(e){return Math.min(Math.max(0,e&&!isNaN(e)&&isFinite(e)?e:0),1)}(n),t(r)}))}))},HNe=function(e){return new Promise((function(t){return setTimeout(t,e)}))},GNe=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.hotkeys,i=void 0===n||n,o=r.autohide,s=void 0===o?3e3:o,a=null,u=null==e||null===(t=e.getState())||void 0===t?void 0:t._element,l=e.getState();u&&setTimeout((function(){u&&!e.getState().muted&&e.getState().requestVolume(l.volume)}),1);var c=e.subscribe((function(e){return e._element}),(function(t){var r;null===(r=a)||void 0===r||r();var n=function(){return e.getState().onCanPlay()},o=function(){e.getState().onPlay()},u=function(){e.getState().onPause()},l=function(){var r;return e.getState().onDurationChange(null!==(r=null==t?void 0:t.duration)&&void 0!==r?r:0)},c=function(t){t.preventDefault(),t.stopPropagation();var r=t.code;e.getState()._updateLastInteraction(),FNe.includes(r)&&("Space"===r||"KeyK"===r?e.getState().togglePlay():"KeyF"===r?e.getState().requestToggleFullscreen():"KeyI"===r?e.getState().requestTogglePictureInPicture():"ArrowRight"===r?e.getState().requestSeekForward():"ArrowLeft"===r?e.getState().requestSeekBack():"KeyM"===r?e.getState().requestToggleMute():"KeyV"===r&&e.getState().toggleVideo())},h=function(){e.getState()._updateLastInteraction()},d=function(){s&&e.getState().setHidden(!0)},f=function(){var t=VIe(qIe().mark((function t(){return qIe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.getState()._updateLastInteraction();case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),p=function(){var t=VIe(qIe().mark((function t(){return qIe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.getState()._updateLastInteraction();case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),m=function(){void 0!==(null==t?void 0:t.volume)&&(null==t?void 0:t.volume)!==e.getState().volume&&e.getState()._setVolume(t.volume)},g=function(){var r,n;if(e.getState().onProgress(null!==(r=null==t?void 0:t.currentTime)&&void 0!==r?r:0),t&&(null!==(n=null==t?void 0:t.duration)&&void 0!==n?n:0)>0){var i=t.currentTime,o=MNe(Array(t.buffered.length)).reduce((function(e,r,n){var o=t.buffered.start(t.buffered.length-1-n),s=t.buffered.end(t.buffered.length-1-n);return o<=i&&s>=i?s:e}),0);e.getState()._updateBuffered(o)}},y=0,v=function(){var r=VIe(qIe().mark((function r(n){return qIe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return e.getState().setError(n.message),r.next=3,new Promise((function(e){return setTimeout(e,1e3*++y)}));case 3:null==t||t.load();case 4:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}(),b=function(){var t=VIe(qIe().mark((function t(){return qIe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.getState().setWaiting(!0);case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),w=function(){var t=VIe(qIe().mark((function t(){return qIe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.getState().setStalled(!0);case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),_=function(){var t=VIe(qIe().mark((function t(){return qIe().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.getState().setLoading(!0);case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),E=function(){var r=VIe(qIe().mark((function r(){return qIe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.getState().setSize(KIe(KIe({},null!=t&&t.videoHeight&&null!=t&&t.videoWidth?{media:{height:t.videoHeight,width:t.videoWidth}}:{}),null!=t&&t.clientHeight&&null!=t&&t.clientWidth?{container:{height:t.clientHeight,width:t.clientWidth}}:{}));case 1:case"end":return r.stop()}}),r)})));return function(){return r.apply(this,arguments)}}();if(t&&E(),t){var A;t.addEventListener("volumechange",m),t.addEventListener("loadedmetadata",n),t.addEventListener("play",o),t.addEventListener("pause",u),t.addEventListener("durationchange",l),t.addEventListener("timeupdate",g),t.addEventListener("error",v),t.addEventListener("waiting",b),t.addEventListener("stalled",w),t.addEventListener("loadstart",_),t.addEventListener("resize",E);var M=null!==(A=null==t?void 0:t.parentElement)&&void 0!==A?A:t;i&&M.addEventListener("keyup",c),s&&(M.addEventListener("mouseenter",h),M.addEventListener("mouseleave",d),M.addEventListener("mousemove",f),M.addEventListener("touchstart",p),M.addEventListener("touchend",p),M.addEventListener("touchmove",p)),t.load(),zNe(t).then((function(t){return e.getState().setIsVolumeChangeSupported(t)})),t.setAttribute(UNe,"true")}var S=YNe(e,{autohide:s}),x=NNe(t,(function(){e.getState().setFullscreen(TNe(t))})),k=ONe(t,(function(){e.getState().setPictureInPicture(!0)})),T=jNe(t,(function(){e.getState().setPictureInPicture(!1)}));a=function(){var e,r,i,s,a,y,A,M,C,I,N,R,P,D,L,O,j,B,U,F;null==x||x(),null==k||k(),null==T||T(),null==t||null===(e=t.removeEventListener)||void 0===e||e.call(t,"volumechange",m),null==t||null===(r=t.removeEventListener)||void 0===r||r.call(t,"loadedmetadata",n),null==t||null===(i=t.removeEventListener)||void 0===i||i.call(t,"play",o),null==t||null===(s=t.removeEventListener)||void 0===s||s.call(t,"pause",u),null==t||null===(a=t.removeEventListener)||void 0===a||a.call(t,"durationchange",l),null==t||null===(y=t.removeEventListener)||void 0===y||y.call(t,"timeupdate",g),null==t||null===(A=t.removeEventListener)||void 0===A||A.call(t,"error",v),null==t||null===(M=t.removeEventListener)||void 0===M||M.call(t,"waiting",b),null==t||null===(C=t.removeEventListener)||void 0===C||C.call(t,"stalled",w),null==t||null===(I=t.removeEventListener)||void 0===I||I.call(t,"loadstart",_),null==t||null===(N=t.removeEventListener)||void 0===N||N.call(t,"resize",E);var z=null!==(R=null==t?void 0:t.parentElement)&&void 0!==R?R:t;null==z||null===(P=z.removeEventListener)||void 0===P||P.call(z,"keyup",c),null==z||null===(D=z.removeEventListener)||void 0===D||D.call(z,"mouseenter",h),null==z||null===(L=z.removeEventListener)||void 0===L||L.call(z,"mouseleave",d),null==z||null===(O=z.removeEventListener)||void 0===O||O.call(z,"mousemove",f),null==z||null===(j=z.addEventListener)||void 0===j||j.call(z,"touchstart",p),null==z||null===(B=z.addEventListener)||void 0===B||B.call(z,"touchend",p),null==z||null===(U=z.addEventListener)||void 0===U||U.call(z,"touchmove",p),null==S||S(),null==t||null===(F=t.removeAttribute)||void 0===F||F.call(t,UNe)}}));return{destroy:function(){var e;null==c||c(),null===(e=a)||void 0===e||e()}}},YNe=function(e,t){return e.subscribe(function(){var r=VIe(qIe().mark((function r(n,i){var o,s,a,u,l,c,h,d,f,p,m,g,y,v,b;return qIe().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(r.prev=0,!n._element){r.next=23;break}if(!SNe){r.next=11;break}return r.prev=3,r.next=6,SNe;case 6:r.next=11;break;case 8:r.prev=8,r.t0=r.catch(3),ANe.warn(r.t0);case 11:if(n._requestedPlayPauseLastTime!==i._requestedPlayPauseLastTime&&(n._element.paused?SNe=n._element.play():n._element.pause()),n.volume!==i.volume&&(n._element.volume=n.volume),n.ingestUrl){if(n.muted!==i.muted){u=null!==(o=null==n||null===(s=n._mediaStream)||void 0===s||null===(a=s.getAudioTracks)||void 0===a?void 0:a.call(s))&&void 0!==o?o:[],l=JIe(u);try{for(l.s();!(c=l.n()).done;)c.value.enabled=!n.muted}catch(dVe){l.e(dVe)}finally{l.f()}}if(n.video!==i.video){p=null!==(h=null==n||null===(d=n._mediaStream)||void 0===d||null===(f=d.getVideoTracks)||void 0===f?void 0:f.call(d))&&void 0!==h?h:[],m=JIe(p);try{for(m.s();!(g=m.n()).done;)g.value.enabled=Boolean(n.video)}catch(dVe){m.e(dVe)}finally{m.f()}}}else n._element.muted=n.muted,n.muted!==i.muted&&0===n.volume&&(n._element.volume=1);if(n._requestedRangeToSeekTo!==i._requestedRangeToSeekTo&&(void 0===n._element.readyState||n._element.readyState>0)&&(n._element.currentTime=n._requestedRangeToSeekTo),!t.autohide||n._lastInteraction===i._lastInteraction){r.next=21;break}return y=e.getState(),y.device.isMobile||e.getState().setHidden(!1),r.next=20,HNe(t.autohide);case 20:e.getState().hidden||n._lastInteraction!==e.getState()._lastInteraction||e.getState().setHidden(!0);case 21:n._requestedFullscreenLastTime!==i._requestedFullscreenLastTime&&(v=TNe(n._element),SNe=v?INe(n._element):CNe(n._element)),n._requestedPictureInPictureLastTime!==i._requestedPictureInPictureLastTime&&(w=n._element,_=void 0,E=void 0,A=void 0,M=void 0,E=BNe(w),A=E.apiType,M=E.element,b="w3c"===A?Boolean(null===(_=document)||void 0===_?void 0:_.pictureInPictureElement):"webkit"===A&&"picture-in-picture"===(null==M?void 0:M.webkitPresentationMode),SNe=b?LNe(n._element):DNe(n._element));case 23:r.next=28;break;case 25:r.prev=25,r.t1=r.catch(0),ANe.warn(r.t1);case 28:case"end":return r.stop()}var w,_,E,A,M}),r,null,[[0,25],[3,8]])})));return function(e,t){return r.apply(this,arguments)}}())},KNe=function(e){return{version:e,isAndroid:Rke(),isIos:Nke(),isMobile:Pke(),userAgent:"undefined"!=typeof navigator?navigator.userAgent:"Node.js or unknown"}};var qNe=r(98399);const{useSyncExternalStoreWithSelector:WNe}=IIe;function VNe(e,t=e.getState,r){r&&qNe.warn("[DEPRECATED] Use `createWithEqualityFn` from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937");const n=WNe(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,w.useDebugValue)(n),n}var $Ne=w.createContext(null),QNe=w.createContext(uMe({element:void 0,device:KNe(HAe.react),storage:jAe({}),mediaProps:{},opts:{}})),JNe=function(e){var t=e.element,r=e.children,n=e.mediaProps,i=e.opts,o=ZNe(t,i,n);return(0,Tf.jsx)(QNe.Provider,{value:o,children:r})},ZNe=function(e,t,r){var n=fIe(),i=w.useMemo((function(){return uMe({device:KNe(HAe.react),storage:n.storage,opts:null!=t?t:{},mediaProps:r})}),[null==n?void 0:n.storage,t,r]);return w.useEffect((function(){var e=GNe(i,t).destroy;return function(){null==e||e()}}),[i,t]),w.useEffect((function(){e&&i.setState({_element:e})}),[i,e]),i},XNe=function(e){return VNe(w.useContext(QNe),e)};function eRe(){return eRe=Object.assign?Object.assign.bind():function(e){for(var t=1;te.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function nRe(...e){return(0,w.useCallback)(rRe(...e),e)}function iRe(e,t=[]){let r=[];const n=()=>{const t=r.map((e=>(0,w.createContext)(e)));return function(r){const n=(null==r?void 0:r[e])||t;return(0,w.useMemo)((()=>({[`__scope${e}`]:{...r,[e]:n}})),[r,n])}};return n.scopeName=e,[function(t,n){const i=(0,w.createContext)(n),o=r.length;function s(t){const{scope:r,children:n,...s}=t,a=(null==r?void 0:r[e][o])||i,u=(0,w.useMemo)((()=>s),Object.values(s));return(0,w.createElement)(a.Provider,{value:u},n)}return r=[...r,n],s.displayName=t+"Provider",[s,function(r,s){const a=(null==s?void 0:s[e][o])||i,u=(0,w.useContext)(a);if(u)return u;if(void 0!==n)return n;throw new Error(`\`${r}\` must be used within \`${t}\``)}]},oRe(n,...t)]}function oRe(...e){const t=e[0];if(1===e.length)return t;const r=()=>{const r=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const n=r.reduce(((t,{useScope:r,scopeName:n})=>({...t,...r(e)[`__scope${n}`]})),{});return(0,w.useMemo)((()=>({[`__scope${t.scopeName}`]:n})),[n])}};return r.scopeName=t.scopeName,r}const sRe=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?w.useLayoutEffect:()=>{},aRe=_["useId".toString()]||(()=>{});let uRe=0;function lRe(e){const[t,r]=w.useState(aRe());return sRe((()=>{e||r((e=>null!=e?e:String(uRe++)))}),[e]),e||(t?`radix-${t}`:"")}function cRe(e){const t=(0,w.useRef)(e);return(0,w.useEffect)((()=>{t.current=e})),(0,w.useMemo)((()=>(...e)=>{var r;return null===(r=t.current)||void 0===r?void 0:r.call(t,...e)}),[])}function hRe({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[n,i]=function({defaultProp:e,onChange:t}){const r=(0,w.useState)(e),[n]=r,i=(0,w.useRef)(n),o=cRe(t);return(0,w.useEffect)((()=>{i.current!==n&&(o(n),i.current=n)}),[n,i,o]),r}({defaultProp:t,onChange:r}),o=void 0!==e,s=o?e:n,a=cRe(r),u=(0,w.useCallback)((t=>{if(o){const r=t,n="function"==typeof t?r(e):t;n!==e&&a(n)}else i(t)}),[o,e,i,a]);return[s,u]}const dRe=(0,w.forwardRef)(((e,t)=>{const{children:r,...n}=e,i=w.Children.toArray(r),o=i.find(mRe);if(o){const e=o.props.children,r=i.map((t=>t===o?w.Children.count(e)>1?w.Children.only(null):(0,w.isValidElement)(e)?e.props.children:null:t));return(0,w.createElement)(fRe,eRe({},n,{ref:t}),(0,w.isValidElement)(e)?(0,w.cloneElement)(e,void 0,r):null)}return(0,w.createElement)(fRe,eRe({},n,{ref:t}),r)}));dRe.displayName="Slot";const fRe=(0,w.forwardRef)(((e,t)=>{const{children:r,...n}=e;return(0,w.isValidElement)(r)?(0,w.cloneElement)(r,{...gRe(n,r.props),ref:t?rRe(t,r.ref):r.ref}):w.Children.count(r)>1?w.Children.only(null):null}));fRe.displayName="SlotClone";const pRe=({children:e})=>(0,w.createElement)(w.Fragment,null,e);function mRe(e){return(0,w.isValidElement)(e)&&e.type===pRe}function gRe(e,t){const r={...t};for(const n in t){const i=e[n],o=t[n];/^on[A-Z]/.test(n)?i&&o?r[n]=(...e)=>{o(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...o}:"className"===n&&(r[n]=[i,o].filter(Boolean).join(" "))}return{...e,...r}}const yRe=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>{const r=(0,w.forwardRef)(((e,r)=>{const{asChild:n,...i}=e,o=n?dRe:t;return(0,w.useEffect)((()=>{window[Symbol.for("radix-ui")]=!0}),[]),(0,w.createElement)(o,eRe({},i,{ref:r}))}));return r.displayName=`Primitive.${t}`,{...e,[t]:r}}),{});const vRe="dismissableLayer.update",bRe="dismissableLayer.pointerDownOutside",wRe="dismissableLayer.focusOutside";let _Re;const ERe=(0,w.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ARe=(0,w.forwardRef)(((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:a,onDismiss:u,...l}=e,c=(0,w.useContext)(ERe),[h,d]=(0,w.useState)(null),f=null!==(r=null==h?void 0:h.ownerDocument)&&void 0!==r?r:null===globalThis||void 0===globalThis?void 0:globalThis.document,[,p]=(0,w.useState)({}),m=nRe(t,(e=>d(e))),g=Array.from(c.layers),[y]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(y),b=h?g.indexOf(h):-1,_=c.layersWithOutsidePointerEventsDisabled.size>0,E=b>=v,A=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=cRe(e),n=(0,w.useRef)(!1),i=(0,w.useRef)((()=>{}));return(0,w.useEffect)((()=>{const e=e=>{if(e.target&&!n.current){const o={originalEvent:e};function s(){SRe(bRe,r,o,{discrete:!0})}"touch"===e.pointerType?(t.removeEventListener("click",i.current),i.current=s,t.addEventListener("click",i.current,{once:!0})):s()}n.current=!1},o=window.setTimeout((()=>{t.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",i.current)}}),[t,r]),{onPointerDownCapture:()=>n.current=!0}}((e=>{const t=e.target,r=[...c.branches].some((e=>e.contains(t)));E&&!r&&(null==o||o(e),null==a||a(e),e.defaultPrevented||null==u||u())}),f),M=function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=cRe(e),n=(0,w.useRef)(!1);return(0,w.useEffect)((()=>{const e=e=>{if(e.target&&!n.current){SRe(wRe,r,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)}),[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==s||s(e),null==a||a(e),e.defaultPrevented||null==u||u())}),f);return function(e,t=(null===globalThis||void 0===globalThis?void 0:globalThis.document)){const r=cRe(e);(0,w.useEffect)((()=>{const e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e),()=>t.removeEventListener("keydown",e)}),[r,t])}((e=>{b===c.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))}),f),(0,w.useEffect)((()=>{if(h)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(_Re=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(h)),c.layers.add(h),MRe(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(f.body.style.pointerEvents=_Re)}}),[h,f,n,c]),(0,w.useEffect)((()=>()=>{h&&(c.layers.delete(h),c.layersWithOutsidePointerEventsDisabled.delete(h),MRe())}),[h,c]),(0,w.useEffect)((()=>{const e=()=>p({});return document.addEventListener(vRe,e),()=>document.removeEventListener(vRe,e)}),[]),(0,w.createElement)(yRe.div,eRe({},l,{ref:m,style:{pointerEvents:_?E?"auto":"none":void 0,...e.style},onFocusCapture:tRe(e.onFocusCapture,M.onFocusCapture),onBlurCapture:tRe(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:tRe(e.onPointerDownCapture,A.onPointerDownCapture)}))}));function MRe(){const e=new CustomEvent(vRe);document.dispatchEvent(e)}function SRe(e,t,r,{discrete:n}){const i=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&i.addEventListener(e,t,{once:!0}),n?function(e,t){e&&(0,E.flushSync)((()=>e.dispatchEvent(t)))}(i,o):i.dispatchEvent(o)}const xRe="focusScope.autoFocusOnMount",kRe="focusScope.autoFocusOnUnmount",TRe={bubbles:!1,cancelable:!0},CRe=(0,w.forwardRef)(((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=e,[a,u]=(0,w.useState)(null),l=cRe(i),c=cRe(o),h=(0,w.useRef)(null),d=nRe(t,(e=>u(e))),f=(0,w.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,w.useEffect)((()=>{if(n){function e(e){if(f.paused||!a)return;const t=e.target;a.contains(t)?h.current=t:PRe(h.current,{select:!0})}function t(e){if(f.paused||!a)return;const t=e.relatedTarget;null!==t&&(a.contains(t)||PRe(h.current,{select:!0}))}function r(e){const t=document.activeElement;for(const r of e)r.removedNodes.length>0&&(null!=a&&a.contains(t)||PRe(a))}document.addEventListener("focusin",e),document.addEventListener("focusout",t);const i=new MutationObserver(r);return a&&i.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),i.disconnect()}}}),[n,a,f.paused]),(0,w.useEffect)((()=>{if(a){DRe.add(f);const t=document.activeElement;if(!a.contains(t)){const r=new CustomEvent(xRe,TRe);a.addEventListener(xRe,l),a.dispatchEvent(r),r.defaultPrevented||(!function(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(PRe(n,{select:t}),document.activeElement!==r)return}((e=IRe(a),e.filter((e=>"A"!==e.tagName))),{select:!0}),document.activeElement===t&&PRe(a))}return()=>{a.removeEventListener(xRe,l),setTimeout((()=>{const e=new CustomEvent(kRe,TRe);a.addEventListener(kRe,c),a.dispatchEvent(e),e.defaultPrevented||PRe(null!=t?t:document.body,{select:!0}),a.removeEventListener(kRe,c),DRe.remove(f)}),0)}}var e}),[a,l,c,f]);const p=(0,w.useCallback)((e=>{if(!r&&!n)return;if(f.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){const t=e.currentTarget,[n,o]=function(e){const t=IRe(e),r=NRe(t,e),n=NRe(t.reverse(),e);return[r,n]}(t);n&&o?e.shiftKey||i!==o?e.shiftKey&&i===n&&(e.preventDefault(),r&&PRe(o,{select:!0})):(e.preventDefault(),r&&PRe(n,{select:!0})):i===t&&e.preventDefault()}}),[r,n,f.paused]);return(0,w.createElement)(yRe.div,eRe({tabIndex:-1},s,{ref:d,onKeyDown:p}))}));function IRe(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function NRe(e,t){for(const r of e)if(!RRe(r,{upTo:t}))return r}function RRe(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function PRe(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const DRe=function(){let e=[];return{add(t){const r=e[0];t!==r&&(null==r||r.pause()),e=LRe(e,t),e.unshift(t)},remove(t){var r;e=LRe(e,t),null===(r=e[0])||void 0===r||r.resume()}}}();function LRe(e,t){const r=[...e],n=r.indexOf(t);return-1!==n&&r.splice(n,1),r}const ORe=(0,w.forwardRef)(((e,t)=>{var r;const{container:n=(null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body),...i}=e;return n?E.createPortal((0,w.createElement)(yRe.div,eRe({},i,{ref:t})),n):null}));const jRe=e=>{const{present:t,children:r}=e,n=function(e){const[t,r]=(0,w.useState)(),n=(0,w.useRef)({}),i=(0,w.useRef)(e),o=(0,w.useRef)("none"),s=e?"mounted":"unmounted",[a,u]=function(e,t){return(0,w.useReducer)(((e,r)=>{const n=t[e][r];return null!=n?n:e}),e)}(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return(0,w.useEffect)((()=>{const e=BRe(n.current);o.current="mounted"===a?e:"none"}),[a]),sRe((()=>{const t=n.current,r=i.current;if(r!==e){const n=o.current,s=BRe(t);if(e)u("MOUNT");else if("none"===s||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{const e=n!==s;u(r&&e?"ANIMATION_OUT":"UNMOUNT")}i.current=e}}),[e,u]),sRe((()=>{if(t){const e=e=>{const r=BRe(n.current).includes(e.animationName);e.target===t&&r&&(0,E.flushSync)((()=>u("ANIMATION_END")))},r=e=>{e.target===t&&(o.current=BRe(n.current))};return t.addEventListener("animationstart",r),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",r),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:(0,w.useCallback)((e=>{e&&(n.current=getComputedStyle(e)),r(e)}),[])}}(t),i="function"==typeof r?r({present:n.isPresent}):w.Children.only(r),o=nRe(n.ref,i.ref);return"function"==typeof r||n.isPresent?(0,w.cloneElement)(i,{ref:o}):null};function BRe(e){return(null==e?void 0:e.animationName)||"none"}jRe.displayName="Presence";let URe=0;function FRe(){(0,w.useEffect)((()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:zRe()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:zRe()),URe++,()=>{1===URe&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),URe--}}),[])}function zRe(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var HRe=function(){return HRe=Object.assign||function(e){for(var t,r=1,n=arguments.length;r