evm-contracts-tools 0.0.50 → 0.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/evm-contract-call/evm-contract-call.js +1 -2
- package/dist/evm-contract-call/fs-worker.js +1 -1
- package/dist/evm-contract-deployment-abi/evm-contract-deployment-abi.js +1 -2
- package/dist/evm-contract-deployment-abi/fs-worker.js +1 -1
- package/dist/evm-contract-deployment-address/evm-contract-deployment-address.js +1 -2
- package/dist/evm-contract-deployment-address/fs-worker.js +1 -1
- package/dist/evm-contract-deployment-bytecode/evm-contract-deployment-bytecode.js +1 -2
- package/dist/evm-contract-deployment-bytecode/fs-worker.js +1 -1
- package/dist/evm-contract-deployment-compiler-output/evm-contract-deployment-compiler-output.js +1 -2
- package/dist/evm-contract-deployment-compiler-output/fs-worker.js +1 -1
- package/dist/evm-contract-deployment-deployment-networks +1 -1
- package/dist/evm-contract-deployment-networks/evm-contract-deployment-networks.js +1 -2
- package/dist/evm-contract-deployment-versions/evm-contract-deployment-versions.js +1 -2
- package/dist/evm-contract-deployment-versions/fs-worker.js +1 -1
- package/dist/evm-contract-deployments-dir/evm-contract-deployments-dir.js +1 -2
- package/dist/evm-contract-deployments-dir/fs-worker.js +1 -1
- package/dist/evm-contracts-tools/evm-contracts-tools.js +1 -2
- package/dist/evm-contracts-tools/fs-worker.js +1 -1
- package/dist/libevm-contract-call/fs-worker.js +1 -1
- package/dist/libevm-contract-call/libevm-contract-call.js +1 -2
- package/dist/libevm-contract-deployment-abi/fs-worker.js +1 -1
- package/dist/libevm-contract-deployment-abi/libevm-contract-deployment-abi.js +1 -2
- package/dist/libevm-contract-deployment-address/fs-worker.js +1 -1
- package/dist/libevm-contract-deployment-address/libevm-contract-deployment-address.js +1 -1
- package/dist/libevm-contract-deployment-bytecode/fs-worker.js +1 -1
- package/dist/libevm-contract-deployment-bytecode/libevm-contract-deployment-bytecode.js +1 -2
- package/dist/libevm-contract-deployment-compiler-output/fs-worker.js +1 -1
- package/dist/libevm-contract-deployment-compiler-output/libevm-contract-deployment-compiler-output.js +1 -0
- package/dist/libevm-contract-deployment-deployment-networks +1 -1
- package/dist/libevm-contract-deployment-networks/libevm-contract-deployment-networks.js +1 -2
- package/dist/libevm-contract-deployment-versions/fs-worker.js +1 -1
- package/dist/libevm-contract-deployment-versions/libevm-contract-deployment-versions.js +1 -2
- package/dist/libevm-contract-deployments-dir/fs-worker.js +1 -1
- package/dist/libevm-contract-deployments-dir/libevm-contract-deployments-dir.js +1 -2
- package/dist/libevm-contracts-tools +1 -1
- package/eslint.config.mjs +131 -0
- package/evm-contract-call +348 -151
- package/evm-contract-call.webpack.config.cjs +159 -0
- package/evm-contract-deployment-abi +212 -87
- package/evm-contract-deployment-abi.webpack.config.cjs +159 -0
- package/evm-contract-deployment-address +209 -89
- package/evm-contract-deployment-address.webpack.config.cjs +159 -0
- package/evm-contract-deployment-bytecode +146 -61
- package/evm-contract-deployment-bytecode.webpack.config.cjs +159 -0
- package/evm-contract-deployment-compiler-output +168 -67
- package/evm-contract-deployment-compiler-output.webpack.config.cjs +159 -0
- package/evm-contract-deployment-networks +160 -68
- package/evm-contract-deployment-networks.webpack.config.cjs +159 -0
- package/evm-contract-deployment-versions +138 -66
- package/evm-contract-deployment-versions.webpack.config.cjs +159 -0
- package/evm-contract-deployments-dir +116 -47
- package/evm-contract-deployments-dir.webpack.config.cjs +159 -0
- package/evm-contracts-tools +41 -29
- package/fs-worker.webpack.config.cjs +82 -0
- package/lib/address-check +0 -0
- package/lib/evm-contract-call-dynamic +0 -0
- package/lib/evm-contract-call-static +0 -0
- package/libevm-contract-call +254 -58
- package/libevm-contract-call.webpack.config.cjs +159 -0
- package/libevm-contract-deployment +39 -41
- package/libevm-contract-deployment-abi +31 -18
- package/libevm-contract-deployment-abi.webpack.config.cjs +155 -0
- package/libevm-contract-deployment-address.webpack.config.cjs +155 -0
- package/libevm-contract-deployment-bytecode +31 -18
- package/libevm-contract-deployment-bytecode.webpack.config.cjs +155 -0
- package/libevm-contract-deployment-compiler-output +32 -19
- package/libevm-contract-deployment-compiler-output.webpack.config.cjs +155 -0
- package/libevm-contract-deployment-networks +20 -11
- package/libevm-contract-deployment-networks.webpack.config.cjs +159 -0
- package/libevm-contract-deployment-versions +16 -10
- package/libevm-contract-deployment-versions.webpack.config.cjs +159 -0
- package/libevm-contract-deployments-dir +12 -7
- package/libevm-contract-deployments-dir.webpack.config.cjs +159 -0
- package/package.json +49 -50
- package/webpack.config.cjs +155 -0
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
(()=>{var e={204(e,t,r){r(368);const n=r(29)._address_check,o=r(648)._bytecode_creation_get,i=r(823)._bytecode_runtime_get,a=r(35)._contract_get,s=r(189)._deployer_get,c=r(260)._deployer_verify,u=r(292),l=u._contract_call_dynamic,f=u._contract_run,h=r(727)._contract_call_static;e.exports={_address_check:n,_bytecode_creation_get:o,_bytecode_runtime_get:i,_contract_call_dynamic:l,_contract_call_static:h,_contract_get:a,_contract_run:f,_deployer_get:s,_deployer_verify:c}},29(e,t,r){"use strict";r.a(e,async(n,o)=>{try{r.r(t),e=r.hmd(e);const i=r(368),a=i._argv_get,s=i._basename,c=i._cmdline_check,u=i._exit,l=i._msg_info,f=i._msg_error,h=i._require,d=(await h("ethers")).ethers.isAddress;function p(){let e;const t=a(),r=[`${s(t.$0)} configuration:`,` Target address: ${target_address}`];for(e of r)l(e)}function y(e){let t;const r=a(),n=["Checks whether an address is valid.","","usage:",` ${s(r.$0)}`," <target-address>"," [options]","","args:"," <target-address> Address to check.",""," options:"," -v --verbose Extended output."," -h --help This help."];for(t of n)l(t);u(e)}function g(){quiet="y",process.argv.forEach(function(e,t,r){2==t?target_address=e:"-v"==e||"--verbose"==e?quiet="n":"-h"!=e&&"--help"!=e||(quiet="n",y(0))}),""==target_address&&(f("No target address specified.",0),quiet="n",y(1))}async function _(e){let t,r;try{if(t=await d.apply(null,e),void 0===t)r="Big error.",f(r,1);else if(!t)throw r=`Address '${target_address}' not is valid.'`,r}catch(e){f(e,1)}}(c("address-check")||c("ethereum-address-validate"))&&(app_name="address-check",target_address="",quiet="",await g(),await void 0,p(),app_opts=[target_address],_(app_opts)),e.exports={_address_check:d},o()}catch(m){o(m)}},1)},648(e,t,r){"use strict";r.a(e,async(n,o)=>{try{r.r(t),e=r.hmd(e);const i=r(368),a=i._cmdline_check,s=i._error_display,c=i._exit,u=i._msg_info,l=i._msg_error,f=i._override_set,h=(i._printf,i._require),d=((await h("ethers")).ethers.formatEther,await h("evm-transactions-tools")),p=d._transaction_get;function y(e){return new Promise(t=>setTimeout(t,e))}async function g(e,t,r,n,o,i,a,c,u){let f,h,d,g,_;for(null==u&&(u=""),null==a&&(a=""),a=a.toLowerCase(),f=1,_="",_output_path="",d=[t,e,"",n,o,i,r,_output_path,c],_transaction_receipt_get_opts=[t,e,"",n,o,i,r,_output_path,c];f<=t;)try{if(g=await p.apply(null,d),null==g)throw{error:{message:"Undefined transaction."}};null!=g&&(h=g.data,_file_write(u,h));break}catch(e){s(e),f+=1,l("Increasing retry and waiting 3 seconds.",0),await y(3e3)}if(f>t)throw"Maximum number of retries reached.";return h}function _(){let e,t;for(e of(t=[],t.push("bytecode-creation-get configuration:"),t.push(" Wallet seed: {wallet_seed}".replace("{wallet_seed}",wallet_seed)),t.push(" Max retries: {retries_max}".replace("{retries_max}",retries_max)),t.push(" API Key path: {api_key_path}".replace("{api_key_path}",api_key_path)),t.push(" Chain ID: {chain_id}".replace("{chain_id}",chain_id)),t.push(" Chain Name: {chain_name}".replace("{chain_name}",chain_name)),t.push(" Target network: {target_network}".replace("{target_network}",target_network)),t.push(" Contract address: {contract_address}".replace("{contract_address}",contract_address)),t.push(" Deployment transaction: {transaction_deployment}".replace("{transaction_deployment}",transaction_deployment)),t))u(e)}function m(e){let t,r;for(t of(r=["Returns the creation bytecode for a contract given its deployment transaction hash.","","Usage:"," bytecode-creation-get"," <quiet>"," <wallet_seed>"," <retries_max>"," <api_key_path>"," <chain_id>"," <chain_name>"," <target_network>"," <contract_address>"," <transaction_deployment>"," <contract_bytecode_path>","","Args:"," <quiet> Can be 'y' or 'n'"," Default: y"," <wallet_seed> Path of the file containing"," the seed phrase."," <retries_max> Maximum number of retries before"," failing."," <api_key_path> Path of the API key for the"," contract ABI provider service"," <chain_id> Chain ID for the network."," <chain_name> Name for the network."," <target_network> Network on which the contract"," resides."," <contract_address> Address of the contract"," <transaction_deployment> Contract deployment transaction."," <contract_bytecode_path> Where to save contract bytecode.",""," Options:"," -h This help."],r))u(t);c(e)}function w(){f("retries","max",10)}function b(){let e,t;quiet="y",process.argv.forEach(function(e,t,r){2==t&&(quiet=e),3==t&&(wallet_seed=e),4==t&&(retries_max=e),5==t&&(api_key_path=e),6==t&&(chain_id=e),7==t&&(chain_name=e),8==t&&(target_network=e),9==t&&(contract_address=e),10==t&&(transaction_deployment=e),11==t&&(contract_bytecode_path=e),"-h"!=e&&"--help"!=e||(quiet="n",m(0))}),e=!1,""==transaction_deployment&&(t="No deployment transaction specified.",e=!0),""==contract_bytecode_path&&(t="No contract bytecode path specified.",e=!0),e&&(l(t,0),quiet="n",m(1))}async function v(e){let t,r;try{if(t=await g.apply(null,e),null==t)throw r="It has not been possible to retrieve the bytecode from the transaction.","It has not been possible to retrieve the bytecode from the transaction.";u(`Bytecode has length '${t.length}'`)}catch(e){l(e,1)}}d._transaction_receipt_get,r(189)._deployer_get,a("bytecode-creation-get")&&(app_name="bytecode-creation-get",wallet_seed="",retries_max="",api_key_path="",chain_id="",chain_name="",target_network="",contract_address="",transaction_deployment="",contract_bytecode_path="",quiet="",b(),w(),_(),app_opts=[wallet_seed,retries_max,api_key_path,chain_id,chain_name,target_network,contract_address,transaction_deployment,contract_bytecode_path],v(app_opts)),e.exports={_bytecode_creation_get:g},o()}catch(E){o(E)}},1)},823(e,t,r){"use strict";r.a(e,async(n,o)=>{try{r.r(t),e=r.hmd(e);const i=r(368),a=i._cmdline_check,s=i._error_display,c=i._exit,u=i._file_read,l=i._file_write,f=i._msg_info,h=i._msg_error,d=i._printf,p=i._require,y=(await p("evm-wallet"))._provider_get;function g(e){return new Promise(t=>setTimeout(t,e))}async function _(e,t,r,n,o,i){let a,c,d,p,_,m;for(""!=r?a=u(r):""==r&&(a=""),_retry=1,m="",_=!1;_retry<=t&&0==_;)try{if(p=await y(n,a),c=await p.getCode(o),null!=c)d=`Bytecode length: ${c.length}`,f(d),l(i,c),_=!0;else if(null==c)throw d="Code not retrieved.",{error:{message:d}}}catch(e){s(e),_retry+=1,d="Increasing retry and waiting 3 seconds.",h(d,0),await g(3e3)}if(_retry>t)throw"Maximum number of retries reached.";return c}function m(){let e;const t=[" bytecode-runtime-get configuration:",` Contract address: ${contract_address}`,` Contract bytecode: ${contract_bytecode_path}`,` Max retries: ${retries_max}`," Credentials options:",` Wallet seed: ${wallet_seed}`,` API Key path: ${api_key_path}`," Network options:",` Target network: ${target_network}`];for(e of t)f(e)}function w(e){let t,r;for(t of(r=["Retrieves the runtime bytecode for an address.","","Usage:"," bytecode-runtime-get"," <quiet>"," <wallet-seed>"," <retries-max>"," <api-key-path>"," <target-network>"," <contract-address>"," <contract-bytecode_path>","","Args:"," <quiet> Can be 'y' or 'n'",` Default: ${quiet}`," <wallet-seed> Path of the file containing"," the seed phrase."," <retries-max> Maximum number of retries before"," failing.",` Default: ${retries_max}`," <api-key-path> Path of the API key for the"," contract ABI provider service"," <target-network> Network on which the contract"," resides."," <contract-address> Address of the contract"," <contract-bytecode-path> Path in which to save"," the runtime bytecode.",""," Options:"," -h This help."],r))f(t);c(e)}function b(){""==retries_max&&(retries_max=100)}function v(){quiet="y",process.argv.forEach(function(e,t,r){2==t&&(quiet=e),3==t&&(wallet_seed=e),4==t&&(retries_max=e),5==t&&(api_key_path=e),6==t&&(target_network=e),7==t&&(contract_address=e),8==t&&(contract_bytecode_path=e),"-h"!=e&&"--help"!=e||w(0)}),""==contract_address&&(h("It is required to set a contract address.",0),quiet="n",b(),w(1)),""==target_network&&(h("It is required to set a network.",0),quiet="n",w(1)),""==contract_bytecode_path&&(h("It is required to set a path in which to save the bytecode.",0),quiet="n",w(1))}async function E(e){let t;try{if(t=await _.apply(null,e),null==t)throw"Bytecode runtime retrieval failed.";d(typeof t)}catch(e){h(e,1)}}r(35)._contract_get,a("bytecode-runtime-get")&&(app_name="bytecode-runtime-get",wallet_seed="",retries_max="",api_key_path="",target_network="",contract_address="",contract_abi_path="",contract_bytecode_path="",quiet="",v(),b(),m(),app_opts=[wallet_seed,retries_max,api_key_path,target_network,contract_address,contract_bytecode_path],E(app_opts)),e.exports={_bytecode_runtime_get:_},o()}catch(k){o(k)}},1)},35(e,t,r){"use strict";r.a(e,async(n,o)=>{try{r.r(t),e=r.hmd(e);const i=r(368),a=i._cmdline_check,s=i._dirname,c=i._exit,u=i._file_exists,l=i._file_read,f=i._json_read,h=i._path_join,d=i._msg_info,p=i._msg_error,y=i._require,g=(await y("ethers")).ethers,_=g.ContractFactory,m=g.BaseContract,w=await y("evm-wallet"),b=w._wallet_get,v=w._provider_get;function E(){const e=["You need to provide either","the bytecode or the data"].join(" ");p(e,1)}function k(e){d(`Wallet is '${e}'.`)}async function S(e,t,r){const n=f(r);return new m(t,n,runner=e)}async function T(e,t,r,n){let o,i,a;""==r?i=[]:""!=r&&(i=f(r)),""!=n&&(a=l(n));const s=new _(i,a,e);if(""!=t)o=s.attach(t);else if(""==t)try{o=s.getDeployTransaction()}catch(e){const t="Encountered the above error.";console.error(e),p(t,0)}return o}async function A(e,t,r){let n,o;void 0!==r&&""!=r||(o="No contract compiler output path given in input.",p(o,1)),u(r)||(o=`No contract compiler output found at path '${r}'.`,p(o,1));const i=l(r),a=_.fromSolidity(i,e);return""!=t?n=a.attach(t):""==t&&(n=await a.getDeployTransaction()),n}async function x(e,t,r,n,o,i,a,c){let u,f,d,p,y,g,_,m;""!=c&&(u=l(c)),p=v(a,u),d=[],""!=e?(_=[s(e),"wallet.dat"],m=h(_),g=[m,t,e,p],y=b.apply(null,g),k(y),d.push(y)):d.push(p),d.push(r),""!=o?(d.push(n,o),_contract_get_fun=T):""!=i?(d.push(i),_contract_get_fun=A):""==o&&""!=n?(d.push(n),_contract_get_fun=S):""==o&&""==n&&""==i&&E();try{f=await _contract_get_fun.apply(null,d)}catch(e){console.error(e)}return f}function R(){let e,t;for(e of(t=[],t.push(" Wallet seed: {wallet_seed}".replace("{wallet_seed}",wallet_seed)),t.push(" Wallet password: {wallet_password_path}".replace("{wallet_password_path}",wallet_password_path)),t.push(" Contract address: {contract_address}".replace("{contract_address}",contract_address)),t.push(" Contract ABI path: {contract_abi_path}".replace("{contract_abi_path}",contract_abi_path)),t.push(" Contract bytecode: {contract_bytecode_path}".replace("{contract_bytecode_path}",contract_bytecode_path)),t.push("Contract compiler output: {contract_compiler_output_path}".replace("{contract_compiler_output_path}",contract_compiler_output_path)),t.push(" Target network: {target_network}".replace("{target_network}",target_network)),t.push(" API Key: {api_key_path}".replace("{api_key_path}",api_key_path)),t))d(e)}function O(e){let t,r;for(t of(r=["Usage:"," contract-get"," <quiet>"," <wallet_seed>"," <wallet_password_path>"," <contract_address>"," <contract_abi_path>"," <contract_bytecode_path>"," <contract_compiler_output_path>"," <target_network>"," (<api_key_path>)","","Args:"," <quiet> Can be 'y' or 'n'"," Default: y"," <wallet_seed> Path of the seed phrase."," <wallet_password_path> Wallet password path."," <contract_address> Contract of the address one is"," getting the contract of."," <contract_abi_path> Path of the contract ABI."," <contract_bytecode_path> Path for the contract bytecode."," <contract_compiler_output_path> Path for the contract compiler"," output path (the hardhat artifact)."," <target_network> Network on which the contract"," resides."," <api_key_path> Path of the API key for the"," contract ABI provider service.",""," Options:"," -h This help."],r))d(t);c(e)}function C(){quiet="y",process.argv.forEach(function(e,t,r){2==t&&(quiet=e),3==t&&(wallet_seed=e),4==t&&(wallet_password_path=e),5==t&&(contract_address=e),6==t&&(contract_abi_path=e),7==t&&(contract_bytecode_path=e),8==t&&(contract_compiler_output_path=e),9==t&&(target_network=e),10==t&&(api_key_path=e),"-h"!=e&&"--help"!=e||O()}),""==contract_abi_path&&""==contract_bytecode_path&&""==contract_compiler_output_path&&O()}a("contract-get")&&(app_name="contract-get",wallet_seed="",wallet_password_path="",contract_address="",contract_abi_path="",contract_bytecode_path="",contract_compiler_output_path="",target_network="",api_key_path="",quiet="",C(),R(),app_opts=[wallet_seed,wallet_password_path,contract_address,contract_abi_path,contract_bytecode_path,contract_compiler_output_path,target_network,api_key_path],x.apply(null,app_opts)),e.exports={_contract_get:x},o()}catch(L){o(L)}},1)},189(e,t,r){"use strict";r.a(e,async(n,o)=>{try{r.r(t),e=r.hmd(e);const i=r(368),a=i._cmdline_check,s=i._error_display,c=i._exit,u=i._msg_info,l=i._msg_error,f=i._printf,h=i._require,d=((await h("ethers")).ethers.formatEther,await h("evm-transactions-tools")),p=d._transaction_get,y=d._transaction_receipt_get;function g(e){return new Promise(t=>setTimeout(t,e))}async function _(e,t,r,n,o,i,a,c){let u,f,h,d,_,m,w,b,v,E;for(a=a.toLowerCase(),u=1,E="",_output_path="",m=[t,e,"",n,o,i,r,_output_path,c],w=[t,e,"",n,o,i,r,_output_path,c];u<=t;)try{if(v=await p.apply(null,m),null==v)throw{error:{message:"Undefined transaction."}};if(null!=v&&(f=v.from,_=v.to),null!=_)throw{error:{message:"The transaction is not a deployment."}};if(d=await y.apply(null,w),null==d)throw{error:{message:"Undefined transaction receipt."}};if(null!=d&&(b=d.contractAddress.toLowerCase()),b!=a)throw console.error(d),console.error("Contract address:",a),console.error("Transaction contract:",b),{error:{message:"The transaction does not deploy input contract."}};h=f;break}catch(e){s(e),u+=1,l("Increasing retry and waiting 3 seconds.",0),await g(3e3)}if(u>t)throw"Maximum number of retries reached.";return h}function m(){let e,t;for(e of(t=[],t.push("deployer-get configuration:"),t.push(" Wallet seed: {wallet_seed}".replace("{wallet_seed}",wallet_seed)),t.push(" Max retries: {retries_max}".replace("{retries_max}",retries_max)),t.push(" API Key path: {api_key_path}".replace("{api_key_path}",api_key_path)),t.push(" Chain ID: {chain_id}".replace("{chain_id}",chain_id)),t.push(" Chain Name: {chain_name}".replace("{chain_name}",chain_name)),t.push(" Target network: {target_network}".replace("{target_network}",target_network)),t.push(" Contract address: {contract_address}".replace("{contract_address}",contract_address)),t.push(" Deployment transaction: {transaction_deployment}".replace("{transaction_deployment}",transaction_deployment)),t))u(e)}function w(e){let t,r;for(t of(r=["Returns the deployer address for a contract.","","Usage:"," deployer-get"," <quiet>"," <wallet_seed>"," <retries_max>"," <api_key_path>"," <chain_id>"," <chain_name>"," <target_network>"," <contract_address>"," <transaction_deployment>","","Args:"," <quiet> Can be 'y' or 'n'"," Default: y"," <wallet_seed> Path of the file containing"," the seed phrase."," <retries_max> Maximum number of retries before"," failing."," <api_key_path> Path of the API key for the"," contract ABI provider service"," <chain_id> Chain ID for the network."," <chain_name> Name for the network."," <target_network> Network on which the contract"," resides."," <contract_address> Address of the contract"," <transaction_deployment> Contract deployment transaction.",""," Options:"," -h This help."],r))u(t);c(e)}function b(){quiet="y",process.argv.forEach(function(e,t,r){2==t&&(quiet=e),3==t&&(wallet_seed=e),4==t&&(retries_max=e),5==t&&(api_key_path=e),6==t&&(chain_id=e),7==t&&(chain_name=e),8==t&&(target_network=e),9==t&&(contract_address=e),10==t&&(transaction_deployment=e),"-h"!=e&&"--help"!=e||(quiet="n",w(0))}),""==contract_address&&(l("No contract address specified.",0),quiet="n",w(1)),""==transaction_deployment&&(l("No deployment transaction specified.",0),quiet="n",w(1))}async function v(e){let t,r;try{if(t=await _.apply(null,e),null==t)throw r="It has not been possible to determine the deployer from the transaction.","It has not been possible to determine the deployer from the transaction.";f(t.toString())}catch(e){l(e,1)}}a("deployer-get")&&(app_name="deployer-get",wallet_seed="",retries_max="",api_key_path="",chain_id="",chain_name="",target_network="",contract_address="",transaction_deployment="",quiet="",b(),""==retries_max&&(retries_max=10),m(),app_opts=[wallet_seed,retries_max,api_key_path,chain_id,chain_name,target_network,contract_address,transaction_deployment],v(app_opts)),e.exports={_deployer_get:_},o()}catch(E){o(E)}},1)},260(e,t,r){const n=r(368),o=n._cmdline_check,i=n._exit,a=n._msg_info,s=n._msg_error,c=n._printf,u=r(189)._deployer_get;async function l(e,t,r,n,o,i,a,s,c){let l;const f=[e,t,r,n,o,i,a,c],h=await u.apply(null,f);if(void 0===h)throw"Error obtaining the deployer from input data.";return s==h?l=!0:s!=h&&(l=!1),l}function f(e){let t,r;for(t of(r=["Given a deployment transaction hash","and a contract address, determines","if an input address is the","contract deployer.","","Usage:"," deployer-verify"," <quiet>"," <wallet-seed>"," <retries-max>"," <api-key-path>"," <chain-id>"," <chain-name>"," <target-network>"," <contract-address>"," <contract-deployer>"," <transaction-deployment>","","Args:"," <quiet> Can be 'y' or 'n'"," Default: y"," <wallet-seed> Path of the file containing"," the seed phrase."," <retries-max> Maximum number of retries before"," failing."," <api-key-path> Path of the API key for the"," contract ABI provider service"," <target-network> Network on which the contract"," resides."," <contract-address> Address of the contract."," <contract-deployer> Address of the supposed deployer."," <transaction-deployment> Contract deployment transaction.",""," Options:"," -h This help."],r))a(t);i(e)}function h(){""==retries_max&&(retries_max=10)}o("deployer-verify")&&(app_name="deployer-verify",wallet_seed="",retries_max="",api_key_path="",chain_id="",chain_name="",target_network="",contract_address="",contract_deployer="",transaction_deployment="",quiet="",function(){let e;quiet="y",process.argv.forEach(function(e,t,r){2==t&&(quiet=e),3==t&&(wallet_seed=e),4==t&&(retries_max=e),5==t&&(api_key_path=e),6==t&&(chain_id=e),7==t&&(chain_name=e),8==t&&(target_network=e),9==t&&(contract_address=e),10==t&&(contract_deployer=e),11==t&&(transaction_deployment=e),"-h"!=e&&"--help"!=e||f(0)}),""==contract_address&&(e="No contract address specified.",s(e,0),quiet="n",h(),f(1)),""==contract_deployer&&(e="No contract deployer specified.",s(e,0),quiet="n",h(),f(1)),""==transaction_deployment&&(e="No deployement transaction specified.",s(e,0),quiet="n",h(),f(1))}(),h(),function(){let e;const t=["deployer-get configuration:",` Wallet seed: ${wallet_seed}`,` Max retries: ${retries_max}`,` API Key path: ${api_key_path}`,` Chain ID: ${chain_id}`,` Chain Name: ${chain_name}`,` Target network: ${target_network}`,` Contract address: ${contract_address}`,` Contract deployer: ${contract_deployer}`,` Deployment transaction: ${transaction_deployment}`];for(e of t)a(e)}(),app_opts=[wallet_seed,retries_max,api_key_path,chain_id,chain_name,target_network,contract_address,contract_deployer,transaction_deployment],async function(e){let t;try{if(t=await l.apply(null,e),void 0===t)throw"It has not been possile to discern from input data whether the candidate deployer is the contract actual deployer.";c(t.toString())}catch(e){s(e,1)}}(app_opts)),e.exports={_deployer_verify:l}},292(e,t,r){"use strict";r.a(e,async(n,o)=>{try{r.r(t),e=r.hmd(e);const i=r(368),a=i._cmdline_check,s=i._dirname,c=i._exit,u=i._error_display,l=i._msg_info,f=i._msg_error,h=i._override_set,d=i._path_join,p=i._require,y=i._sleep,g=(await p("ethers")).ethers,_=g.formatEther,m=g.parseUnits,w=(await p("evm-wallet"))._price_gas_transaction_get,b=r(35);function v(e){l(`Selecting '${e}'.`)}async function E(e){l("Contract object obtained.")}function k(e){f(`Transaction undefined at attempt '${e}'.`,0)}function S(e){f(`Transaction failed at attempt '${e}'.`,0)}function T(e){return m(e,"ether")}async function A(e,t,r,n){let o,i,a,s,c,u,f;return a="Auto-detecting gas price.",l(a),s=3,u=n,f=3,c=[e,u,t,r,"","","price","",3],n=await w.apply(null,c),c=[e,u,t,r,"","","fee","",3],o=await w.apply(null,c),c=[e,u,t,r,"","","priority","",3],i=await w.apply(null,c),a=`Got gas price '${n}' ${r} with '${o}' '${r}' with priority fee '${i}' '${r}' from rpc '${e}' using selection mode '${u}'.`,l(a),n}async function x(e,t,r,n,o,i,a,s,c,h,d,p,g,_,m){let b,v,k,S,x,R,O,C,L,I,M,P,$,U,B,N,j;C=!0,M=1e8,B={},void 0!==a&&""!=a||(a="wei"),void 0!==o&&""!=o||(o=0),"auto"==o||"fast"==o||"nextblock"==o?o=A(s,n,a,o):(O=`Setting gas price '${o}'.`,l(O)),o=Number(o),void 0===i&&(i=0),i=BigInt(i),void 0===e||""==e?(l("Setting timeout to '300' seconds."),e=3e5):e=Number(e),void 0!==a&&""!=a||(a="wei"),void 0!==m&&""!=m||(m="n"),k=[t,r,c,h,d,p,s,n];try{if(v=await _contract_get.apply(null,k),await E(),R=await v.getFunction(g),l("Method obtained."),o>0){try{j=await R.populateTransaction.apply(null,_)}catch(e){O="Error populating transaction.",u(e),f(O,0)}for(_gas_limit=Math.floor(18964174.8),O=`Setting gas price '${o}' ${a}, gas limit '${_gas_limit}' '${a}' gas fee '${x}' ${a}' and fee priority '${S}' '${a}'.`,l(O),L=0;M<Number(o)&&L<=I;)L+=1,O=`Current gas price '${o}', maximum gas price '${M}'. Waiting 30 seconds before retrying.`,l(O),await y(3e4),P=[s,U,n,a,"","","price","",$],o=await w.apply(null,P),Number(o)<=M&&(x=await w.apply(null,P),P=[s,U,n,a,"","","priority","",$],S=await w.apply(null,P));I<L&&(O=`Setting price to max price '${M}'`,l(O),o=M),L+=1,M=Math.max(M,x,S,o),j.maxFeePerGas=x,j.maxPriorityFeePerGas=S,i>0&&("ether"==a?b=T(i):"wei"==a||""==a?b=i:(O=`Unknown measure unit '${a}'.`,f(O,1)),j.value=b),j=await v.runner.sendTransaction(j)}else O="Setting no gas price.",l(O),i>0&&("ether"==a?b=T(i):"wei"==a||""==a?b=i:(O=`Unknown measure unit '${a}'.`,f(O,1)),B.value=b,_.push(B)),j=await R.send.apply(null,_);if(void 0===j)throw O={code:444444,message:"Transaction response undefined."},O;O=`Transaction no. '${j.nonce}' sent to network.`,l(O),"y"==m&&console.log(j),N=await j.wait(1,e)}catch(e){if("code"in e){const t=e.code;O=e.message,-32010==t?l(O):-32e3==t?(O=e.message,l(O)):(O="Unknown error.",f(O,0),u(e))}throw l(e.code),O="Dynamic contract call crashed.",l(O),e}return[j,N]}async function R(e,t,r,n,o,i,a,c,f,h,p,g,m,w,b,E,T){let A,R,O,C,L,I,M,P;for(void 0!==i&&""!=i||(A="Setting no gas price.",l(A),i=""),void 0!==e&&""!=e||(A="Setting maximum call retries to '100'.",l(A),e=100),e=Number(e),void 0!==t&&""!=t||(A="Setting timeout to '300' seconds.",l(A),t=3e5),t=Number(t),void 0!==a&&""!=a||(A="Setting transaction value '0'.",l(A),a=0),a=BigInt(a),void 0!==typeof c&&""!=c||(A="Setting measure unit to 'wei'.",l(A),c="wei"),void 0!==n&&""!=n||(A="Wallet without password.",l(A)),P="",void 0!==P&&""!=P||(M=[s(r),"wallet.dat"],P=d(M),v(P)),void 0!==T&&""!=T||(T="n"),I=[t,r,n,o,i,a,c,f,h,p,g,m,w,b],_attempt=1;_attempt<=e;)try{if([C,R]=await x.apply(null,I),O=typeof R,"undefined"==O)throw k(_attempt),A="No receipt, transaction may have failed.",A;if("undefined"!=O){if(A=`Transaction no. '${C.nonce}'.`,l(A),"y"==T&&(A="Transaction response:",l(A),console.log(C),A="Transaction receipt:",l(A),console.log(R)),null!=R.hash){_receipt_tx_cost_get(R,c),_receipt_display(R,c),A=`Transaction hash: '${R.hash}'.`,l(A),L=R.gasUsed*R.gasPrice,"ether"==c&&(L=_(L)),A=`Transaction cost: '${L}'.`,l(A);break}throw null==R.hash?(S(_attempt),A="Transaction hash undefined.",A):(S(_attempt),A="Unknown transaction error.",A)}}catch(e){u(e),A="Waiting 3 seconds before retrying.",l(A),await y(3e3),_attempt+=1}if(_attempt>e)throw A="Maximum number of retries reached.",A;return[C,R]}function O(){h("retries","max","100"),h("call","timeout","300000"),h("msg","value",0),h("measure","unit","wei")}function C(e){let t;t=["Execute a dynamic call to an EVM network's contract method.","","Usage:"," evm-contract-call-dynamic"," <quiet>"," <retries-max>"," <call-timeout>"," <wallet-seed>"," <wallet-password>"," <api-key-path>"," <price-gas>"," <msg-value>"," <measure-unit>"," <target-network>"," <contract-address>"," <contract-abi_path>"," <contract-bytecode_path>"," <contract-compiler-output_path>"," <contract-method>"," [method-args]","","Args:",""," <quiet> Can be 'y' or 'n'"," Default: y",""," <retries-max> Maximum number of retries before"," failing.",""," <call-timeout> How many milliseconds to wait for a return"," before declaring the call failed.",""," <wallet-seed> Path of the file containing"," the seed phrase.",""," <wallet-password> Password of the wallet.",""," <api-key-path> Path of the API key for the"," contract ABI provider service.",""," <target-network> Network on which the contract"," resides.",""," <price-gas> Gas price for the transaction.",""," <msg-value> How much <measure-unit> attach"," to the transaction.",` Default: ${msg_value}`,""," <measure-unit> Measure unit for the transaction"," value. It can be 'wei' or 'ether'",` Default: ${measure_unit}`,""," <contract-address> Address of the contract.",""," <contract-abi_path> Contract ABI path.",""," <contract-bytecode-path> Path for the contract bytecode.",""," <contract-compiler-output-path> Path for the contract compiler"," output path (the hardhat artifact).",""," <contract-method> Contract method to execute.",""," [method-args] Arguments to pass to the method.",""," Options:"," -h (--help) This help."];for(let e=0;e<t.length;e++)l(_msgs[e]);c(e)}function L(){let e,t,r,n;for(t of(e=300,r=method_args.join(" "),300<r.length&&(r=r.substring(0,300)),n=["Dynamic call configuration:",` Measure unit: ${measure_unit}`,` Max retries: ${retries_max}`," Network settings:",` Target network: ${target_network}`,` API Key path: ${api_key_path}`,` Call timeout: ${call_timeout}`,` Gas price: ${price_gas}`," Credentials settings:",` Wallet seed: ${wallet_seed}`,` Wallet password: ${wallet_password}`," Contract settings:",` Contract address: ${contract_address}`,` Contract ABI: ${contract_abi_path}`,` Contract Bytecode: ${contract_bytecode_path}`,`Contract compiler output: ${contract_compiler_output_path}`," Call settings:",` Transaction value: ${msg_value}`,` Contract method: ${contract_method}`,` Method args: ${r}`],n))l(t)}function I(){let e;quiet="y",process.argv.forEach(function(e,t,r){2==t&&(quiet=e),3==t&&(retries_max=e),4==t&&(call_timeout=e),5==t&&(wallet_seed=e),6==t&&(wallet_password=e),7==t&&(api_key_path=e),8==t&&(price_gas=e),9==t&&(msg_value=e),10==t&&(measure_unit=e),11==t&&(target_network=e),12==t&&(contract_address=e),13==t&&(contract_abi_path=e),14==t&&(contract_bytecode_path=e),15==t&&(contract_compiler_output_path=e),16==t&&(contract_method=e),16<t&&method_args.push(e),"-h"!=e&&"--help"!=e||(quiet="n",C(0))}),""==contract_address&&(e="No contract address specified.",f("No contract address specified.",0),quiet="n",C(1))}async function M(e){let t,r;[r,t]=await R.apply(null,e),_msg="Transaction response:",console.log(r),_msg="Transaction receipt:",console.log(t)}_contract_get=b._contract_get,(a("evm-contract-call-dynamic")||a("contract-run"))&&(app_name="evm-contract-call-dynamic",retries_max="",call_timeout="",wallet_seed="",wallet_password="",api_key_path="",price_gas="",msg_value="",measure_unit="",target_network="",contract_address="",contract_abi_path="",contract_bytecode_path="",contract_compiler_output_path="",contract_method="",method_args=[],quiet="",I(),L(),O(),app_opts=[retries_max,call_timeout,wallet_seed,wallet_password,api_key_path,price_gas,msg_value,measure_unit,target_network,contract_address,contract_abi_path,contract_bytecode_path,contract_compiler_output_path,contract_method,method_args],M(app_opts)),e.exports={_contract_call_dynamic:x,_contract_run:R},o()}catch(P){o(P)}},1)},727(e,t,r){const n=r(368),o=n._cmdline_check,i=n._error_display,a=n._exit,s=n._msg_info,c=n._msg_error,u=n._override_set,l=n._printf,f=n._sleep,h=r(35)._contract_get;function d(e){s(`Contract '${e}' obtained.`)}function p(e){s("Method obtained.")}async function y(e,t,r,n,o,a,u,l,y,g,_){let m,w,b,v,E,k;for(null==l&&(l=""),_retry=1,w=[e,"",y,o,a,u,n,r],E=!1;_retry<=t&&0==E;)try{if(""===l||void 0===l){m=await h.apply(null,w),d(m);try{b=await m.getFunction(g),p()}catch(e){throw"no matching fragment"==e.shortMessage&&(v=`Found no '${g}' method nor contract ABI '${o}' nor in compiler output '${u}'.`,c(v,0)),e}}else""==l&&null==l||(v="Re-using contract method.",s(v),b=l);if(k=await b.staticCall.apply(null,_),null!=k)E=!0;else if(null==k)throw{error:{message:"Value undefined, static call error"}}}catch(e){i(e),_retry+=1,c("Increasing retry and waiting 3 seconds.",0),await f(3e3)}if(_retry>t)throw{error:{message:"Maximum number of retries reached."}};return[k,b]}function g(e){let t;const r=["Execute a static call to an EVM network's contract method","","Usage:"," evm-contract-call-static"," <quiet>"," <wallet-seed>"," <retries-max>"," <api-key-path>"," <target-network>"," <contract-abi-path>"," <contract-bytecode-path>"," <contract-compiler-output-path>"," <contract-address>"," <contract-method>"," <method-args>","","Args:"," <quiet> Can be 'y' or 'n'"," Default: y"," <wallet-seed> Path of the file containing"," the seed phrase."," <retries-max> Maximum number of retries before"," failing."," <api-key-path> Path of the API key for the"," contract ABI provider service"," <target-network> Network on which the contract"," resides."," <contract-abi-path> Path of the contract ABI"," <contract-bytecode-path> Path for the contract bytecode"," <contract-compiler-output-path> Path for the contract compiler"," output path (the hardhat artifact)."," <contract-address> Address of the contract"," <contract-method> Contract method to execute"," [method-args] Arguments to pass to the method",""," Options:"," -h This help."];for(t of r)s(t);a(e)}o("evm-contract-call-static")&&(app_name="evm-contract-call-static",app_opts=[],wallet_seed="",retries_max="",api_key_path="",target_network="",contract_address="",contract_abi_path="",contract_bytecode_path="",contract_compiler_output_path="",method_object="",contract_method="",method_args=[],quiet="",quiet="y",process.argv.forEach(function(e,t,r){2==t&&(quiet=e),3==t&&(wallet_seed=e),4==t&&(retries_max=e),5==t&&(api_key_path=e),6==t&&(target_network=e),7==t&&(contract_abi_path=e),8==t&&(contract_bytecode_path=e),9==t&&(contract_compiler_output_path=e),10==t&&(contract_address=e),11==t&&(contract_method=e),11<t&&method_args.push(e),"-h"!=e&&"--help"!=e||g(0)}),""==contract_address&&g(1),u("retries","max",100),function(){let e;const t=method_args.join(" "),r=[` ${app_name} configuration:`,` Wallet seed: ${wallet_seed}`,` Max retries: ${retries_max}`,` API Key path: ${api_key_path}`,` Target network: ${target_network}`,` Contract ABI: ${contract_abi_path}`,` Contract bytecode: ${contract_bytecode_path}`,`Contract compiler output: ${contract_compiler_output_path}`,` Contract address: ${contract_address}`,` Contract method: ${contract_method}`,` Method args: ${t}`];for(e of r)s(e)}(),app_opts=[wallet_seed,retries_max,api_key_path,target_network,contract_abi_path,contract_bytecode_path,contract_compiler_output_path,method_object,contract_address,contract_method,method_args],async function(e){let t,r,n;try{if([n,t]=await y.apply(null,e),null==n)throw r="Static contract call returned undefined value.",{error:{message:r}};l(n.toString())}catch(e){i(e),r="Error while running static call.",c(r,1)}}(app_opts)),e.exports={_contract_call_static:y}},526(e,t){"use strict";t.toByteArray=function(e){var t,r,i=function(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}(e),a=i[0],s=i[1],c=new o(function(e,t,r){return 3*(t+r)/4-r}(0,a,s)),u=0,l=s>0?a-4:a;for(r=0;r<l;r+=4)t=n[e.charCodeAt(r)]<<18|n[e.charCodeAt(r+1)]<<12|n[e.charCodeAt(r+2)]<<6|n[e.charCodeAt(r+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;return 2===s&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,c[u++]=255&t),1===s&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t),c},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=16383,s=0,u=n-o;s<u;s+=a)i.push(c(e,s,s+a>u?u:s+a));return 1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function s(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function c(e,t,r){for(var n,o=[],i=t;i<r;i+=3)n=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(s(n));return o.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},287(e,t,r){"use strict";const n=r(526),o=r(251),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return f(e)}return u(e,t,r)}function u(e,t,r){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const r=0|y(e,t);let n=s(r);const o=n.write(e,t);return o!==r&&(n=n.slice(0,o)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(V(e,Uint8Array)){const 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(V(e,ArrayBuffer)||e&&V(e.buffer,ArrayBuffer))return d(e,t,r);if("undefined"!=typeof SharedArrayBuffer&&(V(e,SharedArrayBuffer)||e&&V(e.buffer,SharedArrayBuffer)))return d(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 c.from(n,t,r);const o=function(e){if(c.isBuffer(e)){const t=0|p(e.length),r=s(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||X(e.length)?s(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,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 l(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 f(e){return l(e),s(e<0?0:0|p(e))}function h(e){const t=e.length<0?0:0|p(e.length),r=s(t);for(let n=0;n<t;n+=1)r[n]=255&e[n];return r}function d(e,t,r){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),Object.setPrototypeOf(n,c.prototype),n}function p(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function y(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||V(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 o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return z(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(o)return n?-1:z(e).length;t=(""+t).toLowerCase(),o=!0}}function g(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 C(this,t,r);case"utf8":case"utf-8":return A(this,t,r);case"ascii":return R(this,t,r);case"latin1":case"binary":return O(this,t,r);case"base64":return T(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function _(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),X(r=+r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=c.from(t,n)),c.isBuffer(t))return 0===t.length?-1:w(e,t,r,n,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):w(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function w(e,t,r,n,o){let i,a=1,s=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;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let n=-1;for(i=r;i<s;i++)if(u(e,i)===u(t,-1===n?0:i-n)){if(-1===n&&(n=i),i-n+1===c)return n*a}else-1!==n&&(i-=i-n),n=-1}else for(r+c>s&&(r=s-c),i=r;i>=0;i--){let r=!0;for(let n=0;n<c;n++)if(u(e,i+n)!==u(t,n)){r=!1;break}if(r)return i}return-1}function b(e,t,r,n){r=Number(r)||0;const o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;const i=t.length;let a;for(n>i/2&&(n=i/2),a=0;a<n;++a){const n=parseInt(t.substr(2*a,2),16);if(X(n))return a;e[r+a]=n}return a}function v(e,t,r,n){return H(z(t,e.length-r),e,r,n)}function E(e,t,r,n){return H(function(e){const t=[];for(let r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function k(e,t,r,n){return H(G(t),e,r,n)}function S(e,t,r,n){return H(function(e,t){let r,n,o;const i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,o=r%256,i.push(o),i.push(n);return i}(t,e.length-r),e,r,n)}function T(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function A(e,t,r){r=Math.min(e.length,r);const n=[];let o=t;for(;o<r;){const t=e[o];let i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=r){let r,n,s,c;switch(a){case 1:t<128&&(i=t);break;case 2:r=e[o+1],128==(192&r)&&(c=(31&t)<<6|63&r,c>127&&(i=c));break;case 3:r=e[o+1],n=e[o+2],128==(192&r)&&128==(192&n)&&(c=(15&t)<<12|(63&r)<<6|63&n,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:r=e[o+1],n=e[o+2],s=e[o+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(c=(15&t)<<18|(63&r)<<12|(63&n)<<6|63&s,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=a}return function(e){const t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);let r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=x));return r}(n)}t.kMaxLength=a,c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,r){return u(e,t,r)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,r){return function(e,t,r){return l(e),e<=0?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)}(e,t,r)},c.allocUnsafe=function(e){return f(e)},c.allocUnsafeSlow=function(e){return f(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(V(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),V(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let r=e.length,n=t.length;for(let o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;const n=c.allocUnsafe(t);let o=0;for(r=0;r<e.length;++r){let t=e[r];if(V(t,Uint8Array))o+t.length>n.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(n,o)):Uint8Array.prototype.set.call(n,t,o);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(n,o)}o+=t.length}return n},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)_(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):g.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,r,n,o){if(V(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;let i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0);const s=Math.min(i,a),u=this.slice(n,o),l=e.slice(t,r);for(let e=0;e<s;++e)if(u[e]!==l[e]){i=u[e],a=l[e];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},c.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},c.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},c.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return b(this,e,t,r);case"utf8":case"utf-8":return v(this,e,t,r);case"ascii":case"latin1":case"binary":return E(this,e,t,r);case"base64":return k(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const x=4096;function R(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function O(e,t,r){let n="";r=Math.min(e.length,r);for(let o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function C(e,t,r){const n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);let o="";for(let n=t;n<r;++n)o+=K[e[n]];return o}function L(e,t,r){const n=e.slice(t,r);let o="";for(let e=0;e<n.length-1;e+=2)o+=String.fromCharCode(n[e]+256*n[e+1]);return o}function I(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,r,n,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function P(e,t,r,n,o){W(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i,i>>=8,e[r++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,a>>=8,e[r++]=a,r}function $(e,t,r,n,o){W(t,n,o,e,r,7);let i=Number(t&BigInt(4294967295));e[r+7]=i,i>>=8,e[r+6]=i,i>>=8,e[r+5]=i,i>>=8,e[r+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[r+3]=a,a>>=8,e[r+2]=a,a>>=8,e[r+1]=a,a>>=8,e[r]=a,r+8}function U(e,t,r,n,o,i){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||U(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function N(e,t,r,n,i){return t=+t,r>>>=0,i||U(e,0,r,8),o.write(e,t,r,n,52,8),r+8}c.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<e&&(t=e);const n=this.subarray(e,t);return Object.setPrototypeOf(n,c.prototype),n},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e],o=1,i=0;for(;++i<t&&(o*=256);)n+=this[e+i]*o;return n},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e+--t],o=1;for(;t>0&&(o*=256);)n+=this[e+--t]*o;return n},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=J(function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Y(e,this.length-8);const n=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+r*2**24;return BigInt(n)+(BigInt(o)<<BigInt(32))}),c.prototype.readBigUInt64BE=J(function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Y(e,this.length-8);const n=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+r;return(BigInt(n)<<BigInt(32))+BigInt(o)}),c.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=this[e],o=1,i=0;for(;++i<t&&(o*=256);)n+=this[e+i]*o;return o*=128,n>=o&&(n-=Math.pow(2,8*t)),n},c.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||I(e,t,this.length);let n=t,o=1,i=this[e+--n];for(;n>0&&(o*=256);)i+=this[e+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=J(function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Y(e,this.length-8);const n=this[e+4]+256*this[e+5]+65536*this[e+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),c.prototype.readBigInt64BE=J(function(e){q(e>>>=0,"offset");const t=this[e],r=this[e+7];void 0!==t&&void 0!==r||Y(e,this.length-8);const n=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(n)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+r)}),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||M(this,e,t,r,Math.pow(2,8*r)-1,0);let o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,r,n){e=+e,t>>>=0,r>>>=0,n||M(this,e,t,r,Math.pow(2,8*r)-1,0);let o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=J(function(e,t=0){return P(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=J(function(e,t=0){return $(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);M(this,e,t,r,n-1,-n)}let o=0,i=1,a=0;for(this[t]=255&e;++o<r&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+r},c.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){const n=Math.pow(2,8*r-1);M(this,e,t,r,n-1,-n)}let o=r-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i|0)-a&255;return t+r},c.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=J(function(e,t=0){return P(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=J(function(e,t=0){return $(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(e,t,r){return B(this,e,t,!0,r)},c.prototype.writeFloatBE=function(e,t,r){return B(this,e,t,!1,r)},c.prototype.writeDoubleLE=function(e,t,r){return N(this,e,t,!0,r)},c.prototype.writeDoubleBE=function(e,t,r){return N(this,e,t,!1,r)},c.prototype.copy=function(e,t,r,n){if(!c.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<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=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<n-r&&(n=e.length-t+r);const o=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),o},c.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!c.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){const t=e.charCodeAt(0);("utf8"===n&&t<128||"latin1"===n)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;let o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{const i=c.isBuffer(e)?e:c.from(e,n),a=i.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<r-t;++o)this[o+t]=i[o%a]}return this};const j={};function F(e,t,r){j[e]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function D(e){let t="",r=e.length;const n="-"===e[0]?1:0;for(;r>=n+4;r-=3)t=`_${e.slice(r-3,r)}${t}`;return`${e.slice(0,r)}${t}`}function W(e,t,r,n,o,i){if(e>r||e<t){const n="bigint"==typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${t}${n} and <= ${r}${n}`,new j.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,r){q(t,"offset"),void 0!==e[t]&&void 0!==e[t+r]||Y(t,e.length-(r+1))}(n,o,i)}function q(e,t){if("number"!=typeof e)throw new j.ERR_INVALID_ARG_TYPE(t,"number",e)}function Y(e,t,r){if(Math.floor(e)!==e)throw q(e,r),new j.ERR_OUT_OF_RANGE(r||"offset","an integer",e);if(t<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),F("ERR_INVALID_ARG_TYPE",function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),F("ERR_OUT_OF_RANGE",function(e,t,r){let n=`The value of "${e}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=D(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=D(o)),o+="n"),n+=` It must be ${t}. Received ${o}`,n},RangeError);const Z=/[^+/0-9A-Za-z-_]/g;function z(e,t){let r;t=t||1/0;const n=e.length;let o=null;const i=[];for(let a=0;a<n;++a){if(r=e.charCodeAt(a),r>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.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;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function G(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Z,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,r,n){let o;for(o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function V(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function X(e){return e!=e}const K=function(){const e="0123456789abcdef",t=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)t[n+o]=e[r]+e[o]}return t}();function J(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},368(e,t,r){const n=r(70),o=n._argv_get,i=n._argv_url_get,a=n._child_process_spawn_get,s=n._global_get,c=a(),u=a("async"),l=n._yargv_get,f=r(314),h=f._basename,d=f._dirname,p=(f._file_append,f._exit),y=f._file_exists,g=f._path_join,_=f._stat;function m(e,t){let r;return void 0===t||""==t?r=`${e}: {_msg}`:"string"!=typeof t&&""==t||(r=`[${t}] ${e}: {_msg}`),r}function w(e){let t;"n"==quiet&&(_template=m("WARNING",app_name),t=_template.replaceAll("{_msg}",e),console.warn(t))}function b(e){let t;"undefined"!=typeof quiet&&""!=quiet||(quiet="y"),"n"==quiet&&(t=m("INFO",app_name).replaceAll("{_msg}",e),console.log(t))}function v(e,t){let r,n,o;r=app_name,t=String(t),n=m("ERROR",r),o=n.replaceAll("{_msg}",e),"1"===t?(console.error(o),p(1)):"0"===t&&console.warn(o)}async function E(){let e;return new Set,"undefined"==typeof window&&void 0!==r.g&&r.g.global===r.g&&"function"!=typeof r||(e="/usr/lib"),e}function k(){const e=E();d(e)}function S(e,t){let r;return void 0===t&&(t=e,e=0),r=t-e,r<0?(_msg="Second argument 'end' is greater than first argument 'start', returning empty list.",w(_msg),[]):Array(r).keys().map(t=>t+e)}function T(e,t){let r,n;if(n=[],t<e)return _msg="Second argument 'end' is greater than first argument 'start', returning empty list.",w(_msg),n;for(r of(void 0===t&&(t=e,e=1),S(e,t+1)))n.push(r);return n}function A(e){return new Promise(t=>setTimeout(t,e))}function x(e,t){return R(e,t),s()[`${e}_${t}`]}function R(e,t,r){void 0!==e&&""!=e||void 0!==t&&""!=t||v("Either one of the 'object' or the 'variable' arguments must be non-empty",1),void 0===r&&(r="")}function O(e,t,r){R(e,t),s()[`${e}_${t}`]=r}function C(e,t,r){R(e,t,r);const n=s(),o=x(e,t),i=typeof o;Object.keys(n).includes(`override_${e}_${t}`)?O(e,t,x(`override_${e}`,t)):"undefined"!=i&&""!=o?""!=r&&O(e,t,r):"undefined"!=i&&""!=o||""!=r&&O(e,t,r)}const L=C;e.exports={_argv_get:o,_argv_url_get:i,_app_name_get:function(){let e;return e=h("/index.js"),e},_basename:f._basename,_cat:f._cat,_chmod:f._chmod,_chown:f._chown,_cmdline_check:function(e){let t,r,n;return"undefined"==typeof window&&(t=o(),r=t[1],void 0===r&&(r=t.$0),n=h(r),n==e)},_chdir:f.cd,_cd:f.cd,_cp:f._cp,_cwd:f._cwd,_dirname:d,_echo:function(e){console.log(e)},_error_display:function(e){let t;"object"==typeof error?(t="error"in e&&null!=e.error&&"message"in e.error?e.error.message:"shortMessage"in e?e.shortMessage:e,console.error(e)):(t=e,console.error(e)),v(t,0)},_exit:f._exit,_ext_rm:f._ext_rm,_dir_exists:f._dir_exists,_file_append:f._file_append,_file_exists:f._file_exists,_file_read:f._file_read,_file_write:f._file_write,_from_bash_ass_array:function(e){let t,r,n,o,i,a,s,c,u,l,f;const h=[],d={},p=new RegExp("(.+)=\\(","g"),y=e.match(p);for(l of y)r=l.replace("=(",""),h.push(r);for(r of h){for(a of(d[r]={},n=new RegExp(`${r}=\\(((.|\n)*?)\\)\n`,"g"),o=e.match(n),1<o.length?(u=`Multiple array '${r}' definitions detected.`,v(u,1)):0<o.length?t=o[0]:(u="No arrays found in input string.",v(u,1)),c=new RegExp('\\["(.*?)"\\]',"g"),s=t.match(c),i=[],s))_key_name=a.replace('["',""),_key_name=_key_name.replace('"]',""),i.push(_key_name);for(a of i)_value_re=new RegExp(`\\["${a}"\\]="(.*?)"`,"g"),_value_assignment_matches=t.match(_value_re),1<_value_assignment_matches.length?(u=`Multiple values '${_value_assignment_matches}' assignments found for key '${a}' of associative array '${r}'.`,v(u,1)):0<_value_assignment_matches.length?_value_assignment=_value_assignment_matches[0]:(u=`No values found for key '${a}'.`,v(u,1)),f=_value_assignment.replace(RegExp(`^\\["${a}"\\]="`,"g"),""),f=f.replace(RegExp('"$',"g"),""),d[r][a]=f}return d},_fs_worker_new:f._fs_worker_new,_fs_worker_start:f._fs_worker_start,_get:x,_get_date_human:function(){const e=new Date;return`${e.getFullYear()}-${e.getMonth()}-${e.getDay()}T${e.getHours()}:${e.getMinutes()}+0000`},_get_lib:E,_get_usr:k,_globals:function(){app_name="",quiet="y"},_global_get:s,_homedir_get:function(){let e;return"undefined"==typeof window&&void 0!==r.g&&(r.g.global,r.g),"undefined"!=typeof window&&(e="/home/user"),e},_json_display:f._json_display,_json_read:f._json_read,_lib_get:E,_ls:f._ls,_mkdir:f._mkdir,_mktemp:f._mktemp,_msg_info:b,_msg_error:v,_msg_warning:w,_msg_info_obj:function(e,t){let r;r=`${e}: '${t}'`,b(r)},_mv:f._mv,_override_set:C,_path_join:g,_printf:function(e){"undefined"==typeof window&&(_stdout=process.stdout),"undefined"!=typeof window&&(_stdout=r(310)),_stdout.write(e)},_process_argv:f._argv,_process_chdir:f._cd,_process_cwd:f._cwd,_process_exit:f._exit,_process_pwd:f._pwd,_pwd:f._pwd,_range:S,_require:async function(e){let t,n,o,i,a,s;n=!1,s=!1;try{o=r(801)(e),n=!0}catch(r){"MODULE_NOT_FOUND"==r.code?(a=`Program '${e}' not found as module.`,b(a),s=!0):(_display_error(r),t=r)}if(s){const t=await E(),a=[`${t}/${e}`,`${t}/${e}/nodejs`];for(_dir of a)if(i=`${_dir}/package.json`,y(i)){o=r(801)(i),n=!0;break}}if(!n)throw t.shortMessage=`Module '${e}'found not as Node.js module nor as standalone library module in ${_program_dirs}.`,exception;return o},_rm:f._rm,_run:async function(e,t,r,n,o,i){let a,s,l;void 0!==t&&""!=t&&t!=[]||(s="No command given in input.",v(s,1));const f=t[0],h=t.slice(1,t.length);if(void 0!==e&&""!=e||(e="sync"),void 0!==r&&""!=r||(r=""),void 0!==n&&""!=n||(n="0"),void 0!==o&&""!=o||(o="spawn"),void 0!==i&&""!=i||(i=""),s=`Running '${f}' with arguments '${h}'.`,b(s),l="","async"==e){const e=function(e){l+=e.toString()},t=function(e){let t,r;return 0!=e?(r=`Process exited with code '${e}'`,v(r,1)):(r="Process exited normally.",b(r)),t=l.split("\n"),t},r=u(f,h);return r.stdout.on("data",e),r.on("close",t),a=l.split("\n"),b(a.length),a}if("sync"==e){if("spawn"==o)return a=c(f,h,{encoding:"utf-8"}).stdout.split("\n"),a;if("native"==o){if(0<n){_msg_timeout=`Timeout of length '${n}' ms reached for task '${r}'.`,_time_over=!1;try{if(new Promise((e,t)=>{setTimeout(()=>{},n,"hurr")}),""!=i){if(l=await Promise.race([A(n),f[i].apply(f,h)]),void 0===l)throw _msg_timeout}else l=await f.apply(f,h)}catch(e){_time_over=!0}return _time_over?void w(_msg_timeout):l}l=await f[i].apply(f,h)}}},_seq:T,_set:O,_set_override:L,_sleep:A,_stat:_,_to_bash_ass_array:function(e){let t,r,n;n=["#!/usr/bin/env bash"];const o=[],i=Object.keys(e),a=["declare \\"," -A \\"],s=i.length-1,c=T(0,s);for(t of c){for(r of(_array_name=i[t],_array_declaration=` ${_array_name}`,t!=s&&(_array_declaration+=" \\"),a.push(_array_declaration),_array_assignment=[`${_array_name}=(`],_object_keys=Object.keys(e[_array_name]),_object_keys))_value=e[_array_name][r],_key_assignment=` ["${r}"]="${_value}"`,_array_assignment.push(_key_assignment);_array_assignment.push(")"),_array_assignment_string=_array_assignment.join("\n"),o.push(_array_assignment_string)}return n=n.concat(a),n=n.concat(o),n=n.join("\n"),n},_usr_get:k,_yargv_get:l}},314(e,t,r){const n=r(70)._os_tmpdir_get,o=r(962),i=o.readdirSync,a=o.existsSync,s=o.appendFileSync,c=o.readFileSync,u=o.writeFileSync,l=o.fsWorkerNew,f=o.fsWorkerStart,h=o.isDir,d=o.mkdtempSync,p=o.statSync,y=JSON.parse,g=JSON.stringify,_=r(843),m=_.basename,w=_.dirname,b=_.join,v=_.parse,E=r(272),k=E.exit;function S(e,t){return void 0!==t&&t!={}&&""!=t||(t={encoding:"utf8",flag:"r"}),c(e,t)}function T(e){let t;return t=b.apply(null,e),t}e.exports={_argv:E.argv,_basename:function(e){let t;return t=m(e),t},_cat:S,_chmod:o.chmodSync,_chown:o.chownSync,_cd:E.chdir,_cp:o.cpSync,_cwd:E.cwd,_dirname:function(e){let t;return t=w(e),t},_ext_rm:function(e){let t,r,n;return t=v(e).dir,r=v(e).name,n=[t,r],T(n)},_exit:k,_dir_exists:function(e){try{_return=h(e)}catch(e){if("ENOENT"!=e.code)throw e;_return=!1}return _return},_file_append:function(e,t,r){const n=[e,t];void 0!==r&&r!={}&&""!=r&&n.push(r),s.apply(null,n)},_file_exists:function(e){let t,r;return r=!1,t=a(e),t&&(r=!0),r},_file_read:S,_file_write:function(e,t,r){u(e,t)},_fs_worker_new:l,_fs_worker_start:f,_json_display:g,_json_read:function(e){let t,r;return t=S(e),r=y(t),r},_ls:function(e){return i.apply(null,[e])},_mkdir:o.mkdirSync,_mktemp:async function(e,t){const r=typeof t;if(void 0!==e&&""!=e||(e=`${n()}/tmp.`),"undefined"!=r&&""!=t&&"true"!=t||(t=!0),"false"==t&&(t=!1),t)try{return d(e)}catch(e){throw e}else _msg="It only supports creating temporary directories.",console.error(_msg),k(1)},_mv:o.renameSync,_path_join:T,_pwd:E.cwd,_rm:o.rmSync,_stat:p}},70(e,t,r){function n(e){let t,r,n,o,i,a,s,c,u;void 0!==e&&""!=e&&null!=e||(s="Getting all values.",_msg_info("Getting all values."),e=""),t=[],a=window.location,c=a.search.substring(1),n=c.split("&");for(let a=0;a<n.length;a++)r=n[a],i=r.split("="),o=i[0],o!=e&&""!=e||(u=i[1],t.push(u));return t}e.exports={_argv_get:function(e){let t;return"undefined"==typeof window&&void 0!==r.g&&r.g.global===r.g&&"function"!=typeof r||(t=n()),t},_argv_url_get:n,_child_process_spawn_get:function(e){let t;return void 0!==e&&""!=e||(e="sync"),"undefined"==typeof window&&void 0!==r.g&&r.g.global===r.g&&"function"!=typeof r||(t=function(e,t,r){return r}),t},_global_get:function(){let e;return"undefined"==typeof window&&void 0!==r.g&&(r.g.global,r.g),"undefined"!=typeof window&&(e=window),e},_os_tmpdir_get:function(){let e;return"undefined"==typeof window&&void 0!==r.g&&r.g.global===r.g&&"function"!=typeof r||(e=function(){return"/tmp"}),e},_yargv_get:function(e){let t;const n={},o={};void 0!==e&&e!={}&&""!=e||(e={booleans:[],string:!0});const i=e.booleans;if("undefined"==typeof window&&void 0!==r.g&&r.g.global===r.g){const a=r(Object(function(){const e=new Error("Cannot find module 'yargs'");throw e.code="MODULE_NOT_FOUND",e}()));_yargs_helpers_module=r(Object(function(){const e=new Error("Cannot find module 'yargs/helpers'");throw e.code="MODULE_NOT_FOUND",e}()));const s=_yargs_helpers_module.hideBin;if("string"in e&&e.string&&(n._={type:"string",string:!0},o["parse-numbers"]=!1,o["parse-positional-numbers"]=!1),i.length>0)for(t of i)n[t]={demand:!1,default:!1,type:"boolean"};return 0<i.length||e.string?a(s(process.argv)).parserConfiguration(o).options(n).string("_").parse():a(s(process.argv))}}}},801(e){function t(e){const t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=801,e.exports=t},7(e){"use strict";var t,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};t=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise(function(r,n){function o(r){e.removeListener(t,i),n(r)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}y(e,t,i,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&y(e,"error",t,{once:!0})}(e,o)})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,r,n){var o,i,a,u;if(s(r),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),i=e._events),a=i[t]),void 0===a)a=i[t]=r,++e._eventsCount;else if("function"==typeof a?a=i[t]=n?[r,a]:[a,r]:n?a.unshift(r):a.push(r),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=a.length,u=l,console&&console.warn&&console.warn(u)}return e}function l(){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 f(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=l.bind(n);return o.listener=r,n.wrapFn=o,o}function h(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]:r?function(e){for(var t=new Array(e.length),r=0;r<t.length;++r)t[r]=e[r].listener||e[r];return t}(o):p(o,o.length)}function d(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function y(e,t,r,n){if("function"==typeof e.on)n.once?e.once(t,r):e.on(t,r);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function o(i){n.once&&e.removeEventListener(t,o),r(i)})}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var u=c.length,l=p(c,u);for(r=0;r<u;++r)n(l[r],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var r,n,o,i,a;if(s(t),void 0===(n=this._events))return this;if(void 0===(r=n[e]))return this;if(r===t||r.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete n[e],n.removeListener&&this.emit("removeListener",e,r.listener||t));else if("function"!=typeof r){for(o=-1,i=r.length-1;i>=0;i--)if(r[i]===t||r[i].listener===t){a=r[i].listener,o=i;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var o,i=Object.keys(r);for(n=0;n<i.length;++n)"removeListener"!==(o=i[n])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=r[e]))this.removeListener(e,t);else if(void 0!==t)for(n=t.length-1;n>=0;n--)this.removeListener(e,t[n]);return this},i.prototype.listeners=function(e){return h(this,e,!0)},i.prototype.rawListeners=function(e){return h(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},251(e,t){t.read=function(e,t,r,n,o){var i,a,s=8*o-n-1,c=(1<<s)-1,u=c>>1,l=-7,f=r?o-1:0,h=r?-1:1,d=e[t+f];for(f+=h,i=d&(1<<-l)-1,d>>=-l,l+=s;l>0;i=256*i+e[t+f],f+=h,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+e[t+f],f+=h,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),i-=u}return(d?-1:1)*a*Math.pow(2,i-n)},t.write=function(e,t,r,n,o,i){var a,s,c,u=8*i-o-1,l=(1<<u)-1,f=l>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,p=n?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?h/c:h*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[r+d]=255&s,d+=p,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[r+d]=255&a,d+=p,a/=256,u-=8);e[r+d-p]|=128*y}},698(e){"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},10(e,t,r){const n=r(516),o=r(866),i=r(12);function a(e){let t;return void 0===e&&(e="fs-worker.js"),t=new o(e),t}_file=i.file,_read_stream_create=function(e,t){return _file(e).createReader()};const s=function(e){return void 0!==e&&""!=e&&e!={}||(e=r(516)),function(e){const t=n.copySync;return _return=t.apply(null,[e]).unwrap(),_return}}(n);e.exports=n,e.exports.copyFile=n.copy,e.exports.copyFileSync=s,e.exports.cp=n.copy,e.exports.cpSync=s,e.exports.fsWorkerNew=a,e.exports.fsWorkerStart=async function(e,t,r){let o,i,s,c;return void 0===e&&(e="fs-worker.js"),"Number"!=typeof t&&(t=10485760),"Number"!=typeof t&&(r=10485760),i=n.connectSyncAgent,c=a(e),s={worker:c,bufferLength:t,opTimeout:r},o=i(s),o},e.exports.createReadStream=_read_stream_create,e.exports.createWriteStream=function(e,t){return _file(e).createWriter()},e.exports.chmod=async function(e,t){},e.exports.chmodSync=function(e,t){},e.exports.chown=async function(e,t){},e.exports.chownSync=function(e,t){},e.exports.mkdtemp=n.mkTemp,e.exports.mkdtempSync=n.mkTempSync,e.exports.readdirSync=function(e){const t=n.readDirSync;return _return=t.apply(null,[e]).unwrap(),_return},e.exports.renameSync=function(e){const t=n.moveSync;return _return=t.apply(null,e).unwrap(),_return},e.exports.rmSync=function(e){const t=n.removeSync;return _return=t.apply(null,e).unwrap(),_return}},272(e,t,r){function n(){let e,t;const n=["_fs","_fs_module","fs","fs_module"],o=function(){let e;return"undefined"==typeof window&&void 0!==r.g&&(r.g.global,r.g),"undefined"!=typeof window&&(e=window),e}();for(t of(e=!1,n))if(t in o){_fs_module=o[t],e=!0;break}return e||(_fs_module=r(962)),_fs_module}function o(e){void 0!==e&&""!=e||(e=n());const t={};return t.argv=a,t.chdir=c,t.cwd=s,t.exit=u,t}function i(e){let t;return""!=e&&void 0!==e||(e=n()),"undefined"==typeof window&&void 0!==r.g&&r.g.global===r.g&&"function"!=typeof r||(t=o(e)),t}function a(e){let t,r,n,o,i,a,s,c;void 0!==e&&""!=e&&null!=e||(e="");const u=[];for(i=window.location,s=i.search.substring(1),r=s.split("&"),a=0;a<r.length;a++)t=r[a],o=t.split("="),n=o[0],n.length<2?u.push(`-${n}`):u.push(`--${n}`),n!=e&&""!=e||(c=o[1],u.push(c));return u}function s(e){return void 0!==e&&""!=e||(e=n()),e.CURRENT_DIR}function c(e,t){let r;return void 0!==t&&""!=t||(t=n()),(0,t.isDir)(e)?(t.CURRENT_DIR=e,r=!0):(r=!1,_msg_error(`Directory '${e}' does not exist.`,0)),r}function u(e){return e}_fs_module=n();const l=i(_fs_module);e.exports=l,e.exports.getModule=function(e){let t;if(_fs_module=n(),""==e||void 0===e)t=i(_fs_module);else if("process-browserify"==e)t=o(_fs_module);else if("node:process"==e)t=r(167)(e),t.browser=!1;else{if("process"!=e){const t="Unknown process module "+`'${e}'.`.const;throw _error={msg:t},console.error(t),_error}t=i(_fs_module)}return t}},167(e){function t(e){const t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=167,e.exports=t},48(e){"use strict";var t={};function r(e,r,n){n||(n=Error);var o=function(e){var t,n;function o(t,n,o){return e.call(this,function(e,t,n){return"string"==typeof r?r:r(e,t,n)}(t,n,o))||this}return n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,o}(n);o.prototype.name=n.name,o.prototype.code=e,t[e]=o}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 o,i,a,s,c;if("string"==typeof t&&(i="not ",t.substr(0,4)===i)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,r){return(void 0===r||r>e.length)&&(r=e.length),e.substring(r-9,r)===t}(e," argument"))a="The ".concat(e," ").concat(o," ").concat(n(t,"type"));else{var u=("number"!=typeof c&&(c=0),c+1>(s=e).length||-1===s.indexOf(".",c)?"argument":"property");a='The "'.concat(e,'" ').concat(u," ").concat(o," ").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.F=t},382(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=u;var o=r(412),i=r(708);r(698)(u,o);for(var a=n(i.prototype),s=0;s<a.length;s++){var c=a[s];u.prototype[c]||(u.prototype[c]=i.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);o.call(this,e),i.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||process.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},600(e,t,r){"use strict";e.exports=o;var n=r(610);function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}r(698)(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},412(e,t,r){"use strict";var n;e.exports=S,S.ReadableState=k,r(7).EventEmitter;var o,i=function(e,t){return e.listeners(t).length},a=r(345),s=r(287).Buffer,c=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=r(838);o=u&&u.debuglog?u.debuglog("stream"):function(){};var l,f,h,d=r(726),p=r(896),y=r(291).getHighWaterMark,g=r(48).F,_=g.ERR_INVALID_ARG_TYPE,m=g.ERR_STREAM_PUSH_AFTER_EOF,w=g.ERR_METHOD_NOT_IMPLEMENTED,b=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(698)(S,a);var v=p.errorOrDestroy,E=["error","close","destroy","pause","resume"];function k(e,t,o){n=n||r(382),e=e||{},"boolean"!=typeof o&&(o=t instanceof n),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=y(this,e,"readableHighWaterMark",o),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(l||(l=r(141).I),this.decoder=new l(e.encoding),this.encoding=e.encoding)}function S(e){if(n=n||r(382),!(this instanceof S))return new S(e);var t=this instanceof n;this._readableState=new k(e,this,t),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),a.call(this)}function T(e,t,r,n,i){o("readableAddChunk",t);var a,u=e._readableState;if(null===t)u.reading=!1,function(e,t){if(o("onEofChunk"),!t.ended){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?O(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,C(e)))}}(e,u);else if(i||(a=function(e,t){var r,n;return n=t,s.isBuffer(n)||n instanceof c||"string"==typeof t||void 0===t||e.objectMode||(r=new _("chunk",["string","Buffer","Uint8Array"],t)),r}(u,t)),a)v(e,a);else if(u.objectMode||t&&t.length>0)if("string"==typeof t||u.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),n)u.endEmitted?v(e,new b):A(e,u,t,!0);else if(u.ended)v(e,new m);else{if(u.destroyed)return!1;u.reading=!1,u.decoder&&!r?(t=u.decoder.write(t),u.objectMode||0!==t.length?A(e,u,t,!1):L(e,u)):A(e,u,t,!1)}else n||(u.reading=!1,L(e,u));return!u.ended&&(u.length<u.highWaterMark||0===u.length)}function A(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(t.awaitDrain=0,e.emit("data",r)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&O(e)),L(e,t)}Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),S.prototype.destroy=p.destroy,S.prototype._undestroy=p.undestroy,S.prototype._destroy=function(e,t){t(e)},S.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=s.from(e,t),t=""),r=!0),T(this,e,t,!1,r)},S.prototype.unshift=function(e){return T(this,e,null,!0,!1)},S.prototype.isPaused=function(){return!1===this._readableState.flowing},S.prototype.setEncoding=function(e){l||(l=r(141).I);var t=new l(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,o="";null!==n;)o+=t.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this};var x=1073741824;function R(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=x?e=x:(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 O(e){var t=e._readableState;o("emitReadable",t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(o("emitReadable",t.flowing),t.emittedReadable=!0,process.nextTick(C,e))}function C(e){var t=e._readableState;o("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,U(e)}function L(e,t){t.readingMore||(t.readingMore=!0,process.nextTick(I,e,t))}function I(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&0===t.length);){var r=t.length;if(o("maybeReadMore read 0"),e.read(0),r===t.length)break}t.readingMore=!1}function M(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount("data")>0&&e.resume()}function P(e){o("readable nexttick read 0"),e.read(0)}function $(e,t){o("resume",t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit("resume"),U(e),t.flowing&&!t.reading&&e.read(0)}function U(e){var t=e._readableState;for(o("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 N(e){var t=e._readableState;o("endReadable",t.endEmitted),t.endEmitted||(t.ended=!0,process.nextTick(j,t,e))}function j(e,t){if(o("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 F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}S.prototype.read=function(e){o("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&((0!==t.highWaterMark?t.length>=t.highWaterMark:t.length>0)||t.ended))return o("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?N(this):O(this),null;if(0===(e=R(e,t))&&t.ended)return 0===t.length&&N(this),null;var n,i=t.needReadable;return o("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&o("length less than watermark",i=!0),t.ended||t.reading?o("reading or ended",i=!1):i&&(o("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=R(r,t))),null===(n=e>0?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&&N(this)),null!==n&&this.emit("data",n),n},S.prototype._read=function(e){v(this,new w("_read()"))},S.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,o("pipe count=%d opts=%j",n.pipesCount,t);var a=t&&!1===t.end||e===process.stdout||e===process.stderr?p:s;function s(){o("onend"),e.end()}n.endEmitted?process.nextTick(a):r.once("end",a),e.on("unpipe",function t(i,a){o("onunpipe"),i===r&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),e.removeListener("close",h),e.removeListener("finish",d),e.removeListener("drain",c),e.removeListener("error",f),e.removeListener("unpipe",t),r.removeListener("end",s),r.removeListener("end",p),r.removeListener("data",l),u=!0,!n.awaitDrain||e._writableState&&!e._writableState.needDrain||c())});var c=function(e){return function(){var t=e._readableState;o("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&i(e,"data")&&(t.flowing=!0,U(e))}}(r);e.on("drain",c);var u=!1;function l(t){o("ondata");var i=e.write(t);o("dest.write",i),!1===i&&((1===n.pipesCount&&n.pipes===e||n.pipesCount>1&&-1!==F(n.pipes,e))&&!u&&(o("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function f(t){o("onerror",t),p(),e.removeListener("error",f),0===i(e,"error")&&v(e,t)}function h(){e.removeListener("finish",d),p()}function d(){o("onfinish"),e.removeListener("close",h),p()}function p(){o("unpipe"),r.unpipe(e)}return r.on("data",l),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",h),e.once("finish",d),e.emit("pipe",r),n.flowing||(o("pipe resume"),r.resume()),e},S.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,o=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<o;i++)n[i].emit("unpipe",this,{hasUnpiped:!1});return this}var a=F(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},S.prototype.on=function(e,t){var r=a.prototype.on.call(this,e,t),n=this._readableState;return"data"===e?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===e&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,o("on readable",n.length,n.reading),n.length?O(this):n.reading||process.nextTick(P,this))),r},S.prototype.addListener=S.prototype.on,S.prototype.removeListener=function(e,t){var r=a.prototype.removeListener.call(this,e,t);return"readable"===e&&process.nextTick(M,this),r},S.prototype.removeAllListeners=function(e){var t=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||process.nextTick(M,this),t},S.prototype.resume=function(){var e=this._readableState;return e.flowing||(o("resume"),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,process.nextTick($,e,t))}(this,e)),e.paused=!1,this},S.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},S.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",function(){if(o("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){o("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 a=0;a<E.length;a++)e.on(E[a],this.emit.bind(this,E[a]));return this._read=function(t){o("wrapped _read",t),n&&(n=!1,e.resume())},this},"function"==typeof Symbol&&(S.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=r(955)),f(this)}),Object.defineProperty(S.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(S.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(S.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),S._fromList=B,Object.defineProperty(S.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(S.from=function(e,t){return void 0===h&&(h=r(157)),h(S,e,t)})},610(e,t,r){"use strict";e.exports=l;var n=r(48).F,o=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(382);function u(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new i);r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function l(e){if(!(this instanceof l))return new l(e);c.call(this,e),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",f)}function f(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush(function(t,r){h(e,t,r)})}function h(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new s;if(e._transformState.transforming)throw new a;return e.push(null)}r(698)(l,c),l.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},l.prototype._transform=function(e,t,r){r(new o("_transform()"))},l.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var o=this._readableState;(n.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},l.prototype._read=function(e){var t=this._transformState;null===t.writechunk||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},l.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,function(e){t(e)})}},708(e,t,r){"use strict";function n(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var r=e.entry;for(e.entry=null;r;){var n=r.callback;t.pendingcb--,n(void 0),r=r.next}t.corkedRequestsFree.next=e}(t,e)}}var o;e.exports=S,S.WritableState=k;var i,a={deprecate:r(643)},s=r(345),c=r(287).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},l=r(896),f=r(291).getHighWaterMark,h=r(48).F,d=h.ERR_INVALID_ARG_TYPE,p=h.ERR_METHOD_NOT_IMPLEMENTED,y=h.ERR_MULTIPLE_CALLBACK,g=h.ERR_STREAM_CANNOT_PIPE,_=h.ERR_STREAM_DESTROYED,m=h.ERR_STREAM_NULL_VALUES,w=h.ERR_STREAM_WRITE_AFTER_END,b=h.ERR_UNKNOWN_ENCODING,v=l.errorOrDestroy;function E(){}function k(e,t,i){o=o||r(382),e=e||{},"boolean"!=typeof i&&(i=t instanceof o),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=f(this,e,"writableHighWaterMark",i),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,o=r.writecb;if("function"!=typeof o)throw new y;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,o){--t.pendingcb,r?(process.nextTick(o,n),process.nextTick(C,e,t),e._writableState.errorEmitted=!0,v(e,n)):(o(n),e._writableState.errorEmitted=!0,v(e,n),C(e,t))}(e,r,n,t,o);else{var i=R(r)||e.destroyed;i||r.corked||r.bufferProcessing||!r.bufferedRequest||x(e,r),n?process.nextTick(A,e,r,i,o):A(e,r,i,o)}}(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 n(this)}function S(e){var t=this instanceof(o=o||r(382));if(!t&&!i.call(S,this))return new S(e);this._writableState=new k(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)),s.call(this)}function T(e,t,r,n,o,i,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new _("write")):r?e._writev(o,t.onwrite):e._write(o,i,t.onwrite),t.sync=!1}function A(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),C(e,t)}function x(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var o=t.bufferedRequestCount,i=new Array(o),a=t.corkedRequestsFree;a.entry=r;for(var s=0,c=!0;r;)i[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;i.allBuffers=c,T(e,t,!0,t.length,i,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new n(t),t.bufferedRequestCount=0}else{for(;r;){var u=r.chunk,l=r.encoding,f=r.callback;if(T(e,t,!1,t.objectMode?1:u.length,u,l,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function R(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function O(e,t){e._final(function(r){t.pendingcb--,r&&v(e,r),t.prefinished=!0,e.emit("prefinish"),C(e,t)})}function C(e,t){var r=R(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,process.nextTick(O,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(698)(S,s),k.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(k.prototype,"buffer",{get:a.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]?(i=Function.prototype[Symbol.hasInstance],Object.defineProperty(S,Symbol.hasInstance,{value:function(e){return!!i.call(this,e)||this===S&&e&&e._writableState instanceof k}})):i=function(e){return e instanceof this},S.prototype.pipe=function(){v(this,new g)},S.prototype.write=function(e,t,r){var n,o=this._writableState,i=!1,a=!o.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=o.defaultEncoding),"function"!=typeof r&&(r=E),o.ending?function(e,t){var r=new w;v(e,r),process.nextTick(t,r)}(this,r):(a||function(e,t,r,n){var o;return null===r?o=new m:"string"==typeof r||t.objectMode||(o=new d("chunk",["string","Buffer"],r)),!o||(v(e,o),process.nextTick(n,o),!1)}(this,o,e,r))&&(o.pendingcb++,i=function(e,t,r,n,o,i){if(!r){var a=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=c.from(t,r)),t}(t,n,o);n!==a&&(r=!0,o="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var u=t.length<t.highWaterMark;if(u||(t.needDrain=!0),t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:o,isBuf:r,callback:i,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else T(e,t,!1,s,n,o,i);return u}(this,o,a,e,t,r)),i},S.prototype.cork=function(){this._writableState.corked++},S.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||x(this,e))},S.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new b(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(S.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(S.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),S.prototype._write=function(e,t,r){r(new p("_write()"))},S.prototype._writev=null,S.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,C(e,t),r&&(t.finished?process.nextTick(r):e.once("finish",r)),t.ended=!0,e.writable=!1}(this,n,r),this},Object.defineProperty(S.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(S.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),S.prototype.destroy=l.destroy,S.prototype._undestroy=l.undestroy,S.prototype._destroy=function(e,t){t(e)}},955(e,t,r){"use strict";var n;function o(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);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 i=r(238),a=Symbol("lastResolve"),s=Symbol("lastReject"),c=Symbol("error"),u=Symbol("ended"),l=Symbol("lastPromise"),f=Symbol("handlePromise"),h=Symbol("stream");function d(e,t){return{value:e,done:t}}function p(e){var t=e[a];if(null!==t){var r=e[h].read();null!==r&&(e[l]=null,e[a]=null,e[s]=null,t(d(r,!1)))}}function y(e){process.nextTick(p,e)}var g=Object.getPrototypeOf(function(){}),_=Object.setPrototypeOf((o(n={get stream(){return this[h]},next:function(){var e=this,t=this[c];if(null!==t)return Promise.reject(t);if(this[u])return Promise.resolve(d(void 0,!0));if(this[h].destroyed)return new Promise(function(t,r){process.nextTick(function(){e[c]?r(e[c]):t(d(void 0,!0))})});var r,n=this[l];if(n)r=new Promise(function(e,t){return function(r,n){e.then(function(){t[u]?r(d(void 0,!0)):t[f](r,n)},n)}}(n,this));else{var o=this[h].read();if(null!==o)return Promise.resolve(d(o,!1));r=new Promise(this[f])}return this[l]=r,r}},Symbol.asyncIterator,function(){return this}),o(n,"return",function(){var e=this;return new Promise(function(t,r){e[h].destroy(null,function(e){e?r(e):t(d(void 0,!0))})})}),n),g);e.exports=function(e){var t,r=Object.create(_,(o(t={},h,{value:e,writable:!0}),o(t,a,{value:null,writable:!0}),o(t,s,{value:null,writable:!0}),o(t,c,{value:null,writable:!0}),o(t,u,{value:e._readableState.endEmitted,writable:!0}),o(t,f,{value:function(e,t){var n=r[h].read();n?(r[l]=null,r[a]=null,r[s]=null,e(d(n,!1))):(r[a]=e,r[s]=t)},writable:!0}),t));return r[l]=null,i(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var t=r[s];return null!==t&&(r[l]=null,r[a]=null,r[s]=null,t(e)),void(r[c]=e)}var n=r[a];null!==n&&(r[l]=null,r[a]=null,r[s]=null,n(d(void 0,!0))),r[u]=!0}),e.on("readable",y.bind(null,r)),r}},726(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 o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){i(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function i(e,t,r){return(t=s(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s(n.key),n)}}function s(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}var c=r(287).Buffer,u=r(340).inspect,l=u&&u.custom||"inspect";function f(e,t,r){c.prototype.copy.call(e,t,r)}e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}var t,r;return t=e,(r=[{key:"push",value:function(e){var t={data:e,next:null};this.length>0?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=c.allocUnsafe(e>>>0),r=this.head,n=0;r;)f(r.data,t,n),n+=r.data.length,r=r.next;return t}},{key:"consume",value:function(e,t){var r;return e<this.head.data.length?(r=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):r=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var t=this.head,r=1,n=t.data;for(e-=n.length;t=t.next;){var o=t.data,i=e>o.length?o.length:e;if(i===o.length?n+=o:n+=o.slice(0,e),0===(e-=i)){i===o.length?(++r,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=o.slice(i));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 o=r.data,i=e>o.length?o.length:e;if(o.copy(t,t.length-e,0,i),0===(e-=i)){i===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(i));break}++n}return this.length-=n,t}},{key:l,value:function(e,t){return u(this,o(o({},t),{},{depth:0,customInspect:!1}))}}])&&a(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()},896(e){"use strict";function t(e,t){n(e,t),r(e)}function r(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,o){var i=this,a=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return a||s?(o?o(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,e)):process.nextTick(n,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!o&&e?i._writableState?i._writableState.errorEmitted?process.nextTick(r,i):(i._writableState.errorEmitted=!0,process.nextTick(t,i,e)):process.nextTick(t,i,e):o?(process.nextTick(r,i),o(e)):process.nextTick(r,i)}),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)}}},238(e,t,r){"use strict";var n=r(48).F.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(t,r,i){if("function"==typeof r)return e(t,null,r);r||(r={}),i=function(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];e.apply(this,n)}}}(i||o);var a=r.readable||!1!==r.readable&&t.readable,s=r.writable||!1!==r.writable&&t.writable,c=function(){t.writable||l()},u=t._writableState&&t._writableState.finished,l=function(){s=!1,u=!0,a||i.call(t)},f=t._readableState&&t._readableState.endEmitted,h=function(){a=!1,f=!0,s||i.call(t)},d=function(e){i.call(t,e)},p=function(){var e;return a&&!f?(t._readableState&&t._readableState.ended||(e=new n),i.call(t,e)):s&&!u?(t._writableState&&t._writableState.ended||(e=new n),i.call(t,e)):void 0},y=function(){t.req.on("finish",l)};return function(e){return e.setHeader&&"function"==typeof e.abort}(t)?(t.on("complete",l),t.on("abort",p),t.req?y():t.on("request",y)):s&&!t._writableState&&(t.on("end",c),t.on("close",c)),t.on("end",h),t.on("finish",l),!1!==r.error&&t.on("error",d),t.on("close",p),function(){t.removeListener("complete",l),t.removeListener("abort",p),t.removeListener("request",y),t.req&&t.req.removeListener("finish",l),t.removeListener("end",c),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("end",h),t.removeListener("error",d),t.removeListener("close",p)}}},157(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},758(e,t,r){"use strict";var n,o=r(48).F,i=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){e()}function u(e,t){return e.pipe(t)}e.exports=function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var l,f=function(e){return e.length?"function"!=typeof e[e.length-1]?s:e.pop():s}(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new i("streams");var h=t.map(function(e,o){var i=o<t.length-1;return function(e,t,o,i){i=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(i);var s=!1;e.on("close",function(){s=!0}),void 0===n&&(n=r(238)),n(e,{readable:t,writable:o},function(e){if(e)return i(e);s=!0,i()});var c=!1;return function(t){if(!s&&!c)return c=!0,function(e){return e.setHeader&&"function"==typeof e.abort}(e)?e.abort():"function"==typeof e.destroy?e.destroy():void i(t||new a("pipe"))}}(e,i,o>0,function(e){l||(l=e),e&&h.forEach(c),i||(h.forEach(c),f(l))})});return t.reduce(u)}},291(e,t,r){"use strict";var n=r(48).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,r,o){var i=function(e,t,r){return null!=e.highWaterMark?e.highWaterMark:t?e[r]:null}(t,o,r);if(null!=i){if(!isFinite(i)||Math.floor(i)!==i||i<0)throw new n(o?r:"highWaterMark",i);return Math.floor(i)}return e.objectMode?16:16384}}},345(e,t,r){e.exports=r(7).EventEmitter},861(e,t,r){var n=r(287),o=n.Buffer;function i(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return o(e,t,r)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=n:(i(n,t),t.Buffer=a),a.prototype=Object.create(o.prototype),i(o,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=o(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},310(e,t,r){e.exports=o;var n=r(7).EventEmitter;function o(){n.call(this)}r(698)(o,n),o.Readable=r(412),o.Writable=r(708),o.Duplex=r(382),o.Transform=r(610),o.PassThrough=r(600),o.finished=r(238),o.pipeline=r(758),o.Stream=o,o.prototype.pipe=function(e,t){var r=this;function o(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",o),e.on("drain",i),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"==typeof e.destroy&&e.destroy())}function u(e){if(l(),0===n.listenerCount(this,"error"))throw e}function l(){r.removeListener("data",o),e.removeListener("drain",i),r.removeListener("end",s),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",l),r.removeListener("close",l),e.removeListener("close",l)}return r.on("error",u),e.on("error",u),r.on("end",l),r.on("close",l),e.on("close",l),e.emit("pipe",r),e}},141(e,t,r){"use strict";var n=r(861).Buffer,o=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 i(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===o||!o(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=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,r=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==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 f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.I=i,i.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<e.length?t?t+this.text(e,r):this.text(e,r):t||""},i.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},i.prototype.text=function(e,t){var r=function(e,t,r){var n=t.length-1;if(n<r)return 0;var o=a(t[n]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--n<r||-2===o?0:(o=a(t[n]))>=0?(o>0&&(e.lastNeed=o-2),o):--n<r||-2===o?0:(o=a(t[n]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):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)},i.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}},962(e,t,r){function n(){let e;return"undefined"==typeof window&&void 0!==r.g&&r.g.global===r.g&&"function"!=typeof r||(e=function(){let e;try{e=r(10)}catch(e){console.log(e);const t="Error importing the '@themartiancompany/opfs' module as 'opfs'. If you got this error while bundling a webpack for a project depending on this module double check its 'webpack.config.js' file or whether the 'opfs' module is listed in developer dependencies and install them.I'm sorry for this inconvenience but Node packagement system does not currently distinguish 'development' from 'build' dependencies.";throw console.error(t),e}return e}()),e}const o=n();o.isDirSync=function(e){return void 0===e&&(e=n()),function(t){return!e.statSync(t).isFile()}}(o),o.isDir=o.isDirSync,e.exports=o,e.exports.getModule=function(e){let t;if(""==e||void 0===e)t=n();else if("opfs"==e)t=_opfs_module_auto_detect();else{if("fs"!=e){const t="Unknown file system module "+`'${e}'.`.const;throw _error={msg:t},console.error(t),_error}t=r(Object(function(){const e=new Error("Cannot find module 'node:fs'");throw e.code="MODULE_NOT_FOUND",e}())),t.fsWorkerStart=function(e){let t;return t=e.fsWorkerStart,void 0===t&&(t=function(){}),t}(t)}return t}},643(e,t,r){function n(e){try{if(!r.g.localStorage)return!1}catch(e){return!1}var t=r.g.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}},866(){},340(){},838(){},12(e,t){!function(e){"use strict";var t,r,n,o,i,a,s,c,u,l,f,h,d=e=>{throw TypeError(e)},p=(e,t,r)=>t.has(e)||d("Cannot "+r),y=(e,t,r)=>(p(e,t,"read from private field"),r?r.call(e):t.get(e)),g=(e,t,r)=>t.has(e)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),_=(e,t,r,n)=>(p(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);const m="KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO2Z1bmN0aW9uIHUobil7aWYobj09PSIvIilyZXR1cm57cGFyZW50Om51bGwsbmFtZToiIn07Y29uc3QgZT1uLnNwbGl0KCIvIikuZmlsdGVyKGk9PmkubGVuZ3RoPjApO2lmKGUubGVuZ3RoPT09MCl0aHJvdyBFcnJvcigiSW52YWxpZCBwYXRoIik7Y29uc3QgYT1lW2UubGVuZ3RoLTFdLHI9Ii8iK2Uuc2xpY2UoMCwtMSkuam9pbigiLyIpO3JldHVybntuYW1lOmEscGFyZW50OnJ9fWFzeW5jIGZ1bmN0aW9uIHcobixlKXtjb25zdHtwYXJlbnQ6YSxuYW1lOnJ9PXUobik7aWYoYT09bnVsbClyZXR1cm4gYXdhaXQgbmF2aWdhdG9yLnN0b3JhZ2UuZ2V0RGlyZWN0b3J5KCk7Y29uc3QgaT1hLnNwbGl0KCIvIikuZmlsdGVyKHQ9PnQubGVuZ3RoPjApO3RyeXtsZXQgdD1hd2FpdCBuYXZpZ2F0b3Iuc3RvcmFnZS5nZXREaXJlY3RvcnkoKTtmb3IoY29uc3QgcyBvZiBpKXQ9YXdhaXQgdC5nZXREaXJlY3RvcnlIYW5kbGUocyx7Y3JlYXRlOmUuY3JlYXRlfSk7aWYoZS5pc0ZpbGUpcmV0dXJuIGF3YWl0IHQuZ2V0RmlsZUhhbmRsZShyLHtjcmVhdGU6ZS5jcmVhdGV9KX1jYXRjaCh0KXtpZih0Lm5hbWU9PT0iTm90Rm91bmRFcnJvciIpcmV0dXJuIG51bGw7dGhyb3cgdH19Y29uc3QgZj17fTtzZWxmLm9ubWVzc2FnZT1hc3luYyBuPT57dmFyIGk7Y29uc3R7ZXZ0VHlwZTplLGFyZ3M6YX09bi5kYXRhO2xldCByPWZbYS5maWxlSWRdO3RyeXtsZXQgdDtjb25zdCBzPVtdO2lmKGU9PT0icmVnaXN0ZXIiKXtjb25zdCBsPWF3YWl0IHcoYS5maWxlUGF0aCx7Y3JlYXRlOiEwLGlzRmlsZTohMH0pO2lmKGw9PW51bGwpdGhyb3cgRXJyb3IoYG5vdCBmb3VuZCBmaWxlOiAke2EuZmlsZUlkfWApO3I9YXdhaXQgbC5jcmVhdGVTeW5jQWNjZXNzSGFuZGxlKHttb2RlOmEubW9kZX0pLGZbYS5maWxlSWRdPXJ9ZWxzZSBpZihlPT09ImNsb3NlIilhd2FpdCByLmNsb3NlKCksZGVsZXRlIGZbYS5maWxlSWRdO2Vsc2UgaWYoZT09PSJ0cnVuY2F0ZSIpYXdhaXQgci50cnVuY2F0ZShhLm5ld1NpemUpO2Vsc2UgaWYoZT09PSJ3cml0ZSIpe2NvbnN0e2RhdGE6bCxvcHRzOm99PW4uZGF0YS5hcmdzO3Q9YXdhaXQgci53cml0ZShsLG8pfWVsc2UgaWYoZT09PSJyZWFkIil7Y29uc3R7b2Zmc2V0Omwsc2l6ZTpvfT1uLmRhdGEuYXJncyxnPW5ldyBVaW50OEFycmF5KG8pLGQ9YXdhaXQgci5yZWFkKGcse2F0Omx9KSxjPWcuYnVmZmVyO3Q9ZD09PW8/YzooKGk9Yy50cmFuc2Zlcik9PW51bGw/dm9pZCAwOmkuY2FsbChjLGQpKT8/Yy5zbGljZSgwLGQpLHMucHVzaCh0KX1lbHNlIGU9PT0iZ2V0U2l6ZSI/dD1hd2FpdCByLmdldFNpemUoKTplPT09ImZsdXNoIiYmYXdhaXQgci5mbHVzaCgpO3NlbGYucG9zdE1lc3NhZ2Uoe2V2dFR5cGU6ImNhbGxiYWNrIixjYklkOm4uZGF0YS5jYklkLHJldHVyblZhbDp0fSxzKX1jYXRjaCh0KXtjb25zdCBzPXQ7c2VsZi5wb3N0TWVzc2FnZSh7ZXZ0VHlwZToidGhyb3dFcnJvciIsY2JJZDpuLmRhdGEuY2JJZCxlcnJNc2c6cy5uYW1lKyI6ICIrcy5tZXNzYWdlK2AKYCtKU09OLnN0cmluZ2lmeShuLmRhdGEpfSl9fX0pKCk7Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPW9wZnMtd29ya2VyLUY0UldscWNfLmpzLm1hcAo=",w=typeof self<"u"&&self.Blob&&new Blob([(b=m,Uint8Array.from(atob(b),e=>e.charCodeAt(0)))],{type:"text/javascript;charset=utf-8"});var b;function v(e){let t;try{if(t=w&&(self.URL||self.webkitURL).createObjectURL(w),!t)throw"";const r=new Worker(t,{name:null==e?void 0:e.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;base64,"+m,{name:null==e?void 0:e.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}async function E(e,t,r){const n=function(){if(k.length<3){const t=e();return k.push(t),t}{const e=k[S];return S=(S+1)%k.length,e}function e(){const e=new v;let t=0,r={};return e.onmessage=({data:e})=>{var t,n;"callback"===e.evtType?null==(t=r[e.cbId])||t.resolve(e.returnVal):"throwError"===e.evtType&&(null==(n=r[e.cbId])||n.reject(Error(e.errMsg))),delete r[e.cbId]},async function(n,o,i=[]){t+=1;const a=new Promise((e,n)=>{r[t]={resolve:e,reject:n}});return e.postMessage({cbId:t,evtType:n,args:o},i),a}}}();return await n("register",{fileId:e,filePath:t,mode:r}),{read:async(t,r)=>await n("read",{fileId:e,offset:t,size:r}),write:async(t,r)=>await n("write",{fileId:e,data:t,opts:r},[ArrayBuffer.isView(t)?t.buffer:t]),close:async()=>await n("close",{fileId:e}),truncate:async t=>await n("truncate",{fileId:e,newSize:t}),getSize:async()=>await n("getSize",{fileId:e}),flush:async()=>await n("flush",{fileId:e})}}const k=[];let S=0;function T(e){if("/"===e)return{parent:null,name:""};const t=e.split("/").filter(e=>e.length>0);if(0===t.length)throw Error("Invalid path");return{name:t[t.length-1],parent:"/"+t.slice(0,-1).join("/")}}async function A(e,t){const{parent:r,name:n}=T(e);if(null==r)return await navigator.storage.getDirectory();const o=r.split("/").filter(e=>e.length>0);try{let e=await navigator.storage.getDirectory();for(const r of o)e=await e.getDirectoryHandle(r,{create:t.create});return t.isFile?await e.getFileHandle(n,{create:t.create}):await e.getDirectoryHandle(n,{create:t.create})}catch(e){if("NotFoundError"===e.name)return null;throw e}}async function x(e){const{parent:t,name:r}=T(e);if(null==t){const e=await navigator.storage.getDirectory();for await(const t of e.keys())await e.removeEntry(t,{recursive:!0});return}const n=await A(t,{create:!1,isFile:!1});if(null!=n)try{await n.removeEntry(r,{recursive:!0})}catch(e){if("NotFoundError"===e.name)return;throw e}}function R(e,t){return`${e}/${t}`.replace("//","/")}function O(e){return new C(e)}t=new WeakMap,r=new WeakMap,n=new WeakMap;let C=class e{constructor(e){g(this,t),g(this,r),g(this,n),_(this,t,e);const{parent:o,name:i}=T(e);_(this,r,i),_(this,n,o)}get kind(){return"dir"}get name(){return y(this,r)}get path(){return y(this,t)}get parent(){return null==y(this,n)?null:O(y(this,n))}async create(){return await A(y(this,t),{create:!0,isFile:!1}),O(y(this,t))}async exists(){return await A(y(this,t),{create:!1,isFile:!1})instanceof FileSystemDirectoryHandle}async remove(e={}){for(const t of await this.children())try{await t.remove(e)}catch(e){console.warn(e)}try{await x(y(this,t))}catch(e){console.warn(e)}}async children(){const e=await A(y(this,t),{create:!1,isFile:!1});if(null==e)return[];const r=[];for await(const n of e.values())r.push(("file"===n.kind?I:O)(R(y(this,t),n.name)));return r}async copyTo(t){if(!await this.exists())throw Error(`dir ${this.path} not exists`);if(t instanceof e){const e=await t.exists()?O(R(t.path,this.name)):t;return await e.create(),await Promise.all((await this.children()).map(t=>t.copyTo(e))),e}if(t instanceof FileSystemDirectoryHandle)return await Promise.all((await this.children()).map(async e=>{"file"===e.kind?await e.copyTo(await t.getFileHandle(e.name,{create:!0})):await e.copyTo(await t.getDirectoryHandle(e.name,{create:!0}))})),null;throw Error("Illegal target type")}async moveTo(e){const t=await this.copyTo(e);return await this.remove(),t}};const L=new Map;function I(e,t="rw"){if("rw"===t){const r=L.get(e)??new $(e,t);return L.set(e,r),r}return new $(e,t)}async function M(e,t,r={overwrite:!0}){if(t instanceof $)return void await M(e,await t.stream(),r);const n=await(e instanceof $?e:I(e,"rw")).createWriter();try{if(r.overwrite&&await n.truncate(0),t instanceof ReadableStream){const e=t.getReader();for(;;){const{done:t,value:r}=await e.read();if(t)break;await n.write(r)}}else await n.write(t)}catch(e){throw e}finally{await n.close()}}let P=0;o=new WeakMap,i=new WeakMap,a=new WeakMap,s=new WeakMap,c=new WeakMap,u=new WeakMap,l=new WeakMap,f=new WeakMap,h=new WeakMap;let $=class e{constructor(e,t){g(this,o),g(this,i),g(this,a),g(this,s),g(this,c),g(this,u,0),g(this,l,async()=>{}),g(this,f,(()=>{let e=null;return()=>(_(this,u,y(this,u)+1),null!=e||(e=new Promise(async(t,r)=>{try{const r=await E(y(this,c),y(this,o),y(this,s));_(this,l,async()=>{null!=e&&(e=null,_(this,u,0),await r.close().catch(console.error))}),t([r,async()=>{_(this,u,y(this,u)-1),!(y(this,u)>0)&&(e=null,await r.close())}])}catch(e){r(e)}})),e)})()),g(this,h,!1),_(this,c,++P),_(this,o,e),_(this,s,{r:"read-only",rw:"readwrite","rw-unsafe":"readwrite-unsafe"}[t]);const{parent:r,name:n}=T(e);if(null==r)throw Error("Invalid path");_(this,a,n),_(this,i,r)}get kind(){return"file"}get path(){return y(this,o)}get name(){return y(this,a)}get parent(){return null==y(this,i)?null:O(y(this,i))}async createWriter(){if("read-only"===y(this,s))throw Error("file is read-only");if(y(this,h))throw Error("Other writer have not been closed");_(this,h,!0);try{const e=new TextEncoder,[t,r]=await y(this,f).call(this);let n=await t.getSize(),o=!1;return{write:async(r,i={})=>{if(o)throw Error("Writer is closed");const a="string"==typeof r?e.encode(r):r,s=i.at??n,c=a.byteLength;return n=s+c,await t.write(a,{at:s})},truncate:async e=>{if(o)throw Error("Writer is closed");await t.truncate(e),n>e&&(n=e)},flush:async()=>{if(o)throw Error("Writer is closed");await t.flush()},close:async()=>{if(o)throw Error("Writer is closed");o=!0,_(this,h,!1),await r()}}}catch(e){throw _(this,h,!1),e}}async createReader(){const[e,t]=await y(this,f).call(this);let r=!1,n=0;return{read:async(t,o={})=>{if(r)throw Error("Reader is closed");const i=o.at??n,a=await e.read(i,t);return n=i+a.byteLength,a},getSize:async()=>{if(r)throw Error("Reader is closed");return await e.getSize()},close:async()=>{r||(r=!0,await t())}}}async text(){return(new TextDecoder).decode(await this.arrayBuffer())}async arrayBuffer(){const e=await A(y(this,o),{create:!1,isFile:!0});return null==e?new ArrayBuffer(0):(await e.getFile()).arrayBuffer()}async stream(){const e=await this.getOriginFile();return null==e?new ReadableStream({pull:e=>{e.close()}}):e.stream()}async getOriginFile(){var e;return null==(e=await A(y(this,o),{create:!1,isFile:!0}))?void 0:e.getFile()}async getSize(){const e=await A(y(this,o),{create:!1,isFile:!0});return null==e?0:(await e.getFile()).size}async exists(){return await A(y(this,o),{create:!1,isFile:!0})instanceof FileSystemFileHandle}async remove(e={}){if(!0===e.force)return await y(this,l).call(this),await x(y(this,o)),void L.delete(y(this,o));if(y(this,u)>0)throw Error("exists unclosed reader/writer");await x(y(this,o))}async copyTo(t){if(t instanceof e)return t.path===this.path?this:(await M(t,this),t);if(t instanceof C){if(!await this.exists())throw Error(`file ${this.path} not exists`);return await this.copyTo(I(R(t.path,this.name)))}if(t instanceof FileSystemFileHandle)return await(await this.stream()).pipeTo(await t.createWritable()),null;throw Error("Illegal target type")}async moveTo(e){const t=await this.copyTo(e);return await this.remove(),t}};const U="/.opfs-tools-temp-dir";async function B(e){try{if("file"===e.kind){if(!await e.exists())return!0;const t=await e.createWriter();await t.truncate(0),await t.close(),await e.remove()}else await e.remove();return!0}catch(e){return console.warn(e),!1}}const N=[];let j=!1;(async function(){var e;!0!==globalThis.__opfs_tools_tmpfile_init__&&(globalThis.__opfs_tools_tmpfile_init__=!0,null!=globalThis.FileSystemDirectoryHandle&&null!=globalThis.FileSystemFileHandle&&null!=(null==(e=globalThis.navigator)?void 0:e.storage.getDirectory)&&(setInterval(async()=>{for(const e of await O(U).children()){const t=/^\d+-(\d+)$/.exec(e.name);(null==t||Date.now()-Number(t[1])>2592e5)&&await B(e)}},6e4),await async function(){if(null==globalThis.localStorage)return;const e="OPFS_TOOLS_EXPIRES_TMP_FILES";j||(j=!0,globalThis.addEventListener("unload",()=>{0!==N.length&&localStorage.setItem(e,`${localStorage.getItem(e)??""},${N.join(",")}`)}));let t=localStorage.getItem(e)??"";for(const e of t.split(","))0!==e.length&&await B(I(`${U}/${e}`))&&(t=t.replace(e,""));localStorage.setItem(e,t.replace(/,{2,}/g,","))}()))})(),e.dir=O,e.file=I,e.rollfile=function(e,t){let r=I(e),n=0,o=r.createWriter(),i=r.createReader();return{append:async e=>{const r=await o;n+=await r.write(e),n>=t&&await(async e=>{const t=await(await i).read(n,{at:Math.round(.3*n)});n=await e.write(t,{at:0}),await e.truncate(n)})(r)},text:r.text.bind(r),remove:async()=>{await(await i).close(),await(await o).close(),await r.remove()},getSize:async()=>n}},e.tmpfile=function(){const e=`${Math.random().toString().slice(2)}-${Date.now()}`;return N.push(e),I(`${U}/${e}`)},e.write=M,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}(t)},516(e,t,r){"use strict";r.r(t),r.d(t,{ABORT_ERROR:()=>A,CURRENT_DIR:()=>Xe,NOT_FOUND_ERROR:()=>He,ROOT_DIR:()=>Ve,TIMEOUT_ERROR:()=>x,TMP_DIR:()=>Ke,appendFile:()=>Tt,appendFileSync:()=>mr,assertAbsolutePath:()=>Je,assertFileUrl:()=>Qe,connectSyncAgent:()=>ir,copy:()=>At,copySync:()=>wr,createFile:()=>yt,createFileSync:()=>ur,deleteTemp:()=>Pt,deleteTempSync:()=>Er,downloadFile:()=>Et,emptyDir:()=>xt,emptyDirSync:()=>br,exists:()=>Rt,existsSync:()=>vr,generateTempPath:()=>ct,getFileDataByHandle:()=>pt,getSyncMessenger:()=>ar,isDirectoryHandle:()=>ht,isFileHandle:()=>ft,isFileHandleLike:()=>dt,isOPFSSupported:()=>qt,isTempPath:()=>ut,mkTemp:()=>Mt,mkTempSync:()=>kr,mkdir:()=>gt,mkdirSync:()=>lr,move:()=>Ot,moveSync:()=>fr,pruneTemp:()=>$t,pruneTempSync:()=>Sr,readBlobFile:()=>Ct,readBlobFileSync:()=>Tr,readDir:()=>_t,readDirSync:()=>hr,readFile:()=>mt,readFileSync:()=>dr,readJsonFile:()=>Lt,readJsonFileSync:()=>Ar,readTextFile:()=>It,readTextFileSync:()=>xr,remove:()=>wt,removeSync:()=>pr,setSyncMessenger:()=>sr,startSyncAgent:()=>or,stat:()=>bt,statSync:()=>yr,toFileSystemHandleLike:()=>lt,unzip:()=>Bt,unzipFromUrl:()=>Nt,unzipSync:()=>Rr,uploadFile:()=>jt,writeFile:()=>vt,writeFileSync:()=>_r,zip:()=>Dt,zipFromUrl:()=>Wt,zipSync:()=>Or});function n(e,t){if(!e)throw new Error("Invariant failed")}function o(e){if("string"!=typeof e)throw new TypeError(`Path must be a string, received "${JSON.stringify(e)}"`)}function i(e,t){if(e.length<=1)return e;let r=e.length;for(let n=e.length-1;n>0&&t(e.charCodeAt(n));n--)r=n;return e.slice(0,r)}function a(e){return 47===e}function s(e){return e=function(e){if("file:"!==(e=e instanceof URL?e:new URL(e)).protocol)throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function c(e){e instanceof URL&&(e=s(e)),function(e){o(e),e.length}(e);let t=-1,r=!1;for(let n=e.length-1;n>=1;--n)if(a(e.charCodeAt(n))){if(r){t=n;break}}else r=!0;return-1===t?a(e.charCodeAt(0))?"/":".":i(e.slice(0,t),a)}function u(e,t=""){e instanceof URL&&(e=s(e)),function(e,t){if(o(e),0===e.length)return e;if("string"!=typeof t)throw new TypeError(`Suffix must be a string, received "${JSON.stringify(t)}"`)}(e,t);const r=function(e,t,r=0){let n=!1,o=e.length;for(let i=e.length-1;i>=r;--i)if(t(e.charCodeAt(i))){if(n){r=i+1;break}}else n||(n=!0,o=i+1);return e.slice(r,o)}(e,a),n=i(r,a);return t?function(e,t){if(t.length>=e.length)return e;const r=e.length-t.length;for(let n=t.length-1;n>=0;--n)if(e.charCodeAt(r+n)!==t.charCodeAt(n))return e;return e.slice(0,-t.length)}(n,t):n}function l(e,...t){if(void 0===e)return".";e instanceof URL&&(e=s(e)),(t=e?[e,...t]:t).forEach(e=>o(e));const r=t.filter(e=>e.length>0).join("/");return""===r?".":function(e){e instanceof URL&&(e=s(e)),function(e){o(e),e.length}(e);const t=a(e.charCodeAt(0)),r=a(e.charCodeAt(e.length-1));return e=function(e,t,r,n){let o,i="",a=0,s=-1,c=0;for(let u=0;u<=e.length;++u){if(u<e.length)o=e.charCodeAt(u);else{if(n(o))break;o=47}if(n(o)){if(s===u-1||1===c);else if(s!==u-1&&2===c){if(i.length<2||2!==a||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2)){if(i.length>2){const e=i.lastIndexOf(r);-1===e?(i="",a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(r)),s=u,c=0;continue}if(2===i.length||1===i.length){i="",a=0,s=u,c=0;continue}}t&&(i.length>0?i+=`${r}..`:i="..",a=2)}else i.length>0?i+=r+e.slice(s+1,u):i=e.slice(s+1,u),a=u-s-1;s=u,c=0}else 46===o&&-1!==c?++c:c=-1}return i}(e,!t,"/",a),0!==e.length||t||(e="."),e.length>0&&r&&(e+="/"),t?`/${e}`:e}(r)}function f(e){e instanceof URL&&(e=s(e)),o(e);let t=-1,r=0,n=-1,i=!0,c=0;for(let o=e.length-1;o>=0;--o){const s=e.charCodeAt(o);if(a(s)){if(!i){r=o+1;break}}else-1===n&&(i=!1,n=o+1),46===s?-1===t?t=o:1!==c&&(c=1):-1!==t&&(c=-1)}return-1===t||-1===n||0===c||1===c&&t===n-1&&t===r+1?"":e.slice(t,n)}const h=Symbol("Option kind"),d=Symbol("Result kind"),p=Promise.resolve(!0),y=Promise.resolve(!1);function g(e){const t=Object.freeze({[Symbol.toStringTag]:"Option",[h]:"Some",*[Symbol.iterator](){yield e},toString:()=>`Some(${e})`,isSome:()=>!0,isNone:()=>!1,isSomeAnd:t=>t(e),isSomeAndAsync:t=>Promise.resolve(t(e)),isNoneOr:t=>t(e),isNoneOrAsync:t=>Promise.resolve(t(e)),expect:t=>e,unwrap:()=>e,unwrapOr:t=>e,unwrapOrElse:t=>e,unwrapOrElseAsync:t=>Promise.resolve(e),okOr:t=>w(e),okOrElse:t=>w(e),transpose:()=>(k(e),e.isOk()?w(g(e.unwrap())):b(e.unwrapErr())),filter:r=>r(e)?t:_,flatten:()=>(E(e),e),map:t=>g(t(e)),mapOr:(t,r)=>r(e),mapOrElse:(t,r)=>r(e),zip:t=>(E(t),t.isSome()?g([e,t.unwrap()]):_),zipWith:(t,r)=>(E(t),t.isSome()?g(r(e,t.unwrap())):_),unzip(){const t=e;if(!Array.isArray(t)||2!==t.length)throw new TypeError("Option::unzip() requires a 2-element tuple, received "+(Array.isArray(t)?`array with ${t.length} elements`:typeof t));const[r,n]=t;return[g(r),g(n)]},reduce:(r,n)=>(E(r),r.isSome()?g(n(e,r.unwrap())):t),and:e=>(E(e),e),andThen:t=>t(e),andThenAsync:t=>Promise.resolve(t(e)),or:e=>t,orElse:e=>t,orElseAsync:e=>Promise.resolve(t),xor:e=>(E(e),e.isSome()?_:t),inspect:r=>(r(e),t),eq:t=>(E(t),t.isSome()&&t.unwrap()===e)});return t}const _=Object.freeze({[Symbol.toStringTag]:"Option",[h]:"None",*[Symbol.iterator](){},toString:()=>"None",isSome:()=>!1,isNone:()=>!0,isSomeAnd:e=>!1,isSomeAndAsync:e=>y,isNoneOr:e=>!0,isNoneOrAsync:e=>p,expect(e){throw new TypeError(e)},unwrap(){throw new TypeError("Option::unwrap() called on a `None` value")},unwrapOr:e=>e,unwrapOrElse:e=>e(),unwrapOrElseAsync:e=>Promise.resolve(e()),okOr:e=>b(e),okOrElse:e=>b(e()),transpose:()=>w(_),filter:e=>_,flatten:()=>_,map:e=>_,mapOr:(e,t)=>e,mapOrElse:(e,t)=>e(),zip:e=>_,zipWith:(e,t)=>_,unzip:()=>[_,_],reduce:(e,t)=>(E(e),e),and:e=>_,andThen:e=>_,andThenAsync:e=>m,or:e=>(E(e),e),orElse:e=>e(),orElseAsync:e=>Promise.resolve(e()),xor:e=>(E(e),e.isSome()?e:_),inspect:e=>_,eq:e=>(E(e),e===_)}),m=Promise.resolve(_);function w(e){const t=Object.freeze({[Symbol.toStringTag]:"Result",[d]:"Ok",*[Symbol.iterator](){yield e},toString:()=>`Ok(${e})`,isOk:()=>!0,isErr:()=>!1,isOkAnd:t=>t(e),isOkAndAsync:t=>Promise.resolve(t(e)),isErrAnd:e=>!1,isErrAndAsync:e=>y,expect:t=>e,unwrap:()=>e,unwrapOr:t=>e,unwrapOrElse:t=>e,unwrapOrElseAsync:t=>Promise.resolve(e),expectErr(t){throw new TypeError(`${t}: ${e}`)},unwrapErr(){throw new TypeError("Result::unwrapErr() called on an `Ok` value")},intoOk:()=>e,intoErr(){throw new TypeError("Result::intoErr() called on an `Ok` value")},ok:()=>g(e),err:()=>_,transpose:()=>(E(e),e.isSome()?g(w(e.unwrap())):_),map:t=>w(t(e)),mapErr:e=>t,mapOr:(t,r)=>r(e),mapOrElse:(t,r)=>r(e),flatten:()=>(k(e),e),and:e=>(k(e),e),or:e=>t,andThen:t=>t(e),andThenAsync:t=>Promise.resolve(t(e)),orElse:e=>t,orElseAsync:e=>Promise.resolve(t),inspect:r=>(r(e),t),inspectErr:e=>t,eq:t=>(k(t),t.isOk()&&t.unwrap()===e),asOk:()=>t,asErr(){throw new TypeError("Result::asErr() called on an `Ok` value")},andTryAsync(t){try{const r=t(e);return Promise.resolve(r).then(w,b)}catch(e){return Promise.resolve(b(e))}},orTryAsync:e=>Promise.resolve(t)});return t}function b(e){const t=Object.freeze({[Symbol.toStringTag]:"Result",[d]:"Err",*[Symbol.iterator](){},toString:()=>`Err(${e})`,isOk:()=>!1,isErr:()=>!0,isOkAnd:e=>!1,isOkAndAsync:e=>y,isErrAnd:t=>t(e),isErrAndAsync:t=>Promise.resolve(t(e)),expect(t){throw new TypeError(`${t}: ${e}`)},unwrap(){throw new TypeError("Result::unwrap() called on an `Err` value")},unwrapOr:e=>e,unwrapOrElse:t=>t(e),unwrapOrElseAsync:t=>Promise.resolve(t(e)),expectErr:t=>e,unwrapErr:()=>e,intoOk(){throw new TypeError("Result::intoOk() called on an `Err` value")},intoErr:()=>e,ok:()=>_,err:()=>g(e),transpose:()=>g(t),map:e=>t,mapErr:t=>b(t(e)),mapOr:(e,t)=>e,mapOrElse:(t,r)=>t(e),flatten:()=>t,and:e=>t,or:e=>(k(e),e),andThen:e=>t,andThenAsync:e=>Promise.resolve(t),orElse:t=>t(e),orElseAsync:t=>Promise.resolve(t(e)),inspect:e=>t,inspectErr:r=>(r(e),t),eq:t=>(k(t),t.isErr()&&t.unwrapErr()===e),asOk(){throw new TypeError("Result::asOk() called on an `Err` value")},asErr:()=>t,andTryAsync:e=>Promise.resolve(t),orTryAsync(t){try{const r=t(e);return Promise.resolve(r).then(w,b)}catch(e){return Promise.resolve(b(e))}}});return t}function v(e){try{return null===e?"null":void 0===e?"undefined":"object"==typeof e?Object.prototype.toString.call(e):String(e)}catch{return"[unable to stringify]"}}function E(e){if(!function(e){return null!=e&&"object"==typeof e&&h in e}(e))throw new TypeError(`Expected an Option, but received: ${v(e)}`)}function k(e){if(!function(e){return null!=e&&"object"==typeof e&&d in e}(e))throw new TypeError(`Expected a Result, but received: ${v(e)}`)}const S=w(!1),T=w(),A="AbortError",x="TimeoutError";var R=class extends Error{name="FetchError";status;constructor(e,t){super(e),this.status=t}};function O(e,t){const r=function(e){if(e instanceof URL)return e;try{return new URL(e,"undefined"!=typeof location?location.href:void 0)}catch{throw new TypeError(`Invalid URL: ${e}`)}}(e),n=t??{},{retries:o,delay:i,when:a,onRetry:s}=function(e){const{responseType:t,timeout:r,retry:n=0,onProgress:o,onChunk:i}=e;if(null!=t){const e=["text","arraybuffer","blob","json","bytes","stream"];if(!e.includes(t))throw new TypeError(`responseType must be one of ${e.join(", ")} but received ${t}`)}if(null!=r){if("number"!=typeof r)throw new TypeError("timeout must be a number but received "+typeof r);if(r<=0)throw new Error(`timeout must be a number greater than 0 but received ${r}`)}if(null!=o&&"function"!=typeof o)throw new TypeError("onProgress callback must be a function but received "+typeof o);if(null!=i&&"function"!=typeof i)throw new TypeError("onChunk callback must be a function but received "+typeof i);let a,s,c=0,u=0;if("number"==typeof n?c=n:n&&"object"==typeof n&&(c=n.retries??0,u=n.delay??0,a=n.when,s=n.onRetry),!Number.isInteger(c))throw new TypeError(`Retry count must be an integer but received ${c}`);if(c<0)throw new Error(`Retry count must be non-negative but received ${c}`);if("number"==typeof u){if(u<0)throw new Error(`Retry delay must be a non-negative number but received ${u}`)}else if("function"!=typeof u)throw new TypeError("Retry delay must be a number or a function but received "+typeof u);if(null!=a&&!Array.isArray(a)&&"function"!=typeof a)throw new TypeError("Retry when condition must be an array of status codes or a function but received "+typeof a);if(null!=s&&"function"!=typeof s)throw new TypeError("Retry onRetry callback must be a function but received "+typeof s);return{retries:c,delay:u,when:a,onRetry:s}}(n),{abortable:c=!1,responseType:u,timeout:l,onProgress:f,onChunk:h,...d}=n,p=d.signal;let y;c&&(y=new AbortController);const g=(e,t)=>"AbortError"!==e.name&&(a?Array.isArray(a)?e instanceof R&&a.includes(e.status):a(e,t):!(e instanceof R)),_=e=>"function"==typeof i?i(e):i,m=()=>{const e=[];p&&e.push(p),y&&e.push(y.signal),"number"==typeof l&&e.push(function(e){if("function"==typeof AbortSignal.timeout)return AbortSignal.timeout(e);const t=new AbortController,r=function(){const e="The operation timed out.";try{return new DOMException(e,x)}catch{const t=new Error(e);return t.name=x,t}}(),n=setTimeout(()=>{t.abort(r)},e);return"function"==typeof n?.unref&&n.unref(),t.signal}(l)),e.length>0&&(d.signal=1===e.length?e[0]:function(e){if("function"==typeof AbortSignal.any)return AbortSignal.any(e);const t=new AbortController;for(const r of e)if(r.aborted)return t.abort(r.reason),t.signal;const r=e=>{t.abort(e.target.reason)};for(const t of e)t.addEventListener("abort",r);return t.signal.addEventListener("abort",()=>{for(const t of e)t.removeEventListener("abort",r)}),t.signal}(e))},v=async()=>{m();try{const e=await fetch(r,d);return e.ok?await E(e):(e.body?.cancel().catch(()=>{}),b(new R(e.statusText,e.status)))}catch(e){return b(e instanceof Error?e:L(e))}},E=async e=>{switch(e.body&&(f||h)&&(async e=>{let t,r=0;if(f){const r=e.headers.get("content-length");if(null==r)try{f(b(new Error("No content-length in response headers")))}catch{}else t=Number.parseInt(r,10)}const n=e.clone().body;try{for await(const e of n){if(h)try{h(e)}catch{}if(f&&null!=t){r+=e.byteLength;try{f(w({totalByteLength:t,completedByteLength:r}))}catch{}}}}catch{}})(e),u){case"json":if(null==e.body)return w(null);try{return w(await e.json())}catch{return b(new Error("Response is invalid json while responseType is json"))}case"text":return w(await e.text());case"bytes":return"function"==typeof e.bytes?w(await e.bytes()):w(new Uint8Array(await e.arrayBuffer()));case"arraybuffer":return w(await e.arrayBuffer());case"blob":return w(await e.blob());case"stream":return w(e.body);default:return w(e)}},k=(async()=>{let e,t=0;do{if(t>0){if(y?.signal.aborted)return b(y.signal.reason);const r=_(t);if(r>0&&(await C(r),y?.signal.aborted))return b(y.signal.reason);try{s?.(e,t)}catch{}}const r=await v();if(r.isOk())return r;e=r.unwrapErr(),t++}while(t<=o&&g(e,t));return b(e)})();return c&&y?{abort(e){e instanceof Error?y.abort(e):null!=e?y.abort(L(e)):y.abort()},get aborted(){return y.signal.aborted},get result(){return k}}:k}function C(e){return new Promise(t=>setTimeout(t,e))}function L(e){const t=new Error("string"==typeof e?e:String(e));return t.name=A,t.cause=e,t}var I={},M=Uint8Array,P=Uint16Array,$=Int32Array,U=new M([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,0,0,0]),B=new M([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,0,0]),N=new M([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),j=function(e,t){for(var r=new P(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];var o=new $(r[30]);for(n=1;n<30;++n)for(var i=r[n];i<r[n+1];++i)o[i]=i-r[n]<<5|n;return{b:r,r:o}},F=j(U,2),D=F.b,W=F.r;D[28]=258,W[258]=28;for(var q=j(B,0),Y=q.b,Z=q.r,z=new P(32768),G=0;G<32768;++G){var H=(43690&G)>>1|(21845&G)<<1;H=(61680&(H=(52428&H)>>2|(13107&H)<<2))>>4|(3855&H)<<4,z[G]=((65280&H)>>8|(255&H)<<8)>>1}var V=function(e,t,r){for(var n=e.length,o=0,i=new P(t);o<n;++o)e[o]&&++i[e[o]-1];var a,s=new P(t);for(o=1;o<t;++o)s[o]=s[o-1]+i[o-1]<<1;if(r){a=new P(1<<t);var c=15-t;for(o=0;o<n;++o)if(e[o])for(var u=o<<4|e[o],l=t-e[o],f=s[e[o]-1]++<<l,h=f|(1<<l)-1;f<=h;++f)a[z[f]>>c]=u}else for(a=new P(n),o=0;o<n;++o)e[o]&&(a[o]=z[s[e[o]-1]++]>>15-e[o]);return a},X=new M(288);for(G=0;G<144;++G)X[G]=8;for(G=144;G<256;++G)X[G]=9;for(G=256;G<280;++G)X[G]=7;for(G=280;G<288;++G)X[G]=8;var K=new M(32);for(G=0;G<32;++G)K[G]=5;var J=V(X,9,0),Q=V(X,9,1),ee=V(K,5,0),te=V(K,5,1),re=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},ne=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(7&t)&r},oe=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(7&t)},ie=function(e){return(e+7)/8|0},ae=function(e,t,r){return(null==t||t<0)&&(t=0),(null==r||r>e.length)&&(r=e.length),new M(e.subarray(t,r))},se=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],ce=function(e,t,r){var n=new Error(t||se[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,ce),!r)throw n;return n},ue=function(e,t,r,n){var o=e.length,i=n?n.length:0;if(!o||t.f&&!t.l)return r||new M(0);var a=!r,s=a||2!=t.i,c=t.i;a&&(r=new M(3*o));var u=function(e){var t=r.length;if(e>t){var n=new M(Math.max(2*t,e));n.set(r),r=n}},l=t.f||0,f=t.p||0,h=t.b||0,d=t.l,p=t.d,y=t.m,g=t.n,_=8*o;do{if(!d){l=ne(e,f,1);var m=ne(e,f+1,3);if(f+=3,!m){var w=e[(C=ie(f)+4)-4]|e[C-3]<<8,b=C+w;if(b>o){c&&ce(0);break}s&&u(h+w),r.set(e.subarray(C,b),h),t.b=h+=w,t.p=f=8*b,t.f=l;continue}if(1==m)d=Q,p=te,y=9,g=5;else if(2==m){var v=ne(e,f,31)+257,E=ne(e,f+10,15)+4,k=v+ne(e,f+5,31)+1;f+=14;for(var S=new M(k),T=new M(19),A=0;A<E;++A)T[N[A]]=ne(e,f+3*A,7);f+=3*E;var x=re(T),R=(1<<x)-1,O=V(T,x,1);for(A=0;A<k;){var C,L=O[ne(e,f,R)];if(f+=15&L,(C=L>>4)<16)S[A++]=C;else{var I=0,P=0;for(16==C?(P=3+ne(e,f,3),f+=2,I=S[A-1]):17==C?(P=3+ne(e,f,7),f+=3):18==C&&(P=11+ne(e,f,127),f+=7);P--;)S[A++]=I}}var $=S.subarray(0,v),j=S.subarray(v);y=re($),g=re(j),d=V($,y,1),p=V(j,g,1)}else ce(1);if(f>_){c&&ce(0);break}}s&&u(h+131072);for(var F=(1<<y)-1,W=(1<<g)-1,q=f;;q=f){var Z=(I=d[oe(e,f)&F])>>4;if((f+=15&I)>_){c&&ce(0);break}if(I||ce(2),Z<256)r[h++]=Z;else{if(256==Z){q=f,d=null;break}var z=Z-254;if(Z>264){var G=U[A=Z-257];z=ne(e,f,(1<<G)-1)+D[A],f+=G}var H=p[oe(e,f)&W],X=H>>4;if(H||ce(3),f+=15&H,j=Y[X],X>3&&(G=B[X],j+=oe(e,f)&(1<<G)-1,f+=G),f>_){c&&ce(0);break}s&&u(h+131072);var K=h+z;if(h<j){var J=i-j,ee=Math.min(j,K);for(J+h<0&&ce(3);h<ee;++h)r[h]=n[J+h]}for(;h<K;++h)r[h]=r[h-j]}}t.l=d,t.p=q,t.b=h,t.f=l,d&&(l=1,t.m=y,t.d=p,t.n=g)}while(!l);return h!=r.length&&a?ae(r,0,h):r.subarray(0,h)},le=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},fe=function(e,t,r){r<<=7&t;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},he=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var o=r.length,i=r.slice();if(!o)return{t:we,l:0};if(1==o){var a=new M(r[0].s+1);return a[r[0].s]=1,{t:a,l:1}}r.sort(function(e,t){return e.f-t.f}),r.push({s:-1,f:25001});var s=r[0],c=r[1],u=0,l=1,f=2;for(r[0]={s:-1,f:s.f+c.f,l:s,r:c};l!=o-1;)s=r[r[u].f<r[f].f?u++:f++],c=r[u!=l&&r[u].f<r[f].f?u++:f++],r[l++]={s:-1,f:s.f+c.f,l:s,r:c};var h=i[0].s;for(n=1;n<o;++n)i[n].s>h&&(h=i[n].s);var d=new P(h+1),p=de(r[l-1],d,0);if(p>t){n=0;var y=0,g=p-t,_=1<<g;for(i.sort(function(e,t){return d[t.s]-d[e.s]||e.f-t.f});n<o;++n){var m=i[n].s;if(!(d[m]>t))break;y+=_-(1<<p-d[m]),d[m]=t}for(y>>=g;y>0;){var w=i[n].s;d[w]<t?y-=1<<t-d[w]++-1:++n}for(;n>=0&&y;--n){var b=i[n].s;d[b]==t&&(--d[b],++y)}p=t}return{t:new M(d),l:p}},de=function(e,t,r){return-1==e.s?Math.max(de(e.l,t,r+1),de(e.r,t,r+1)):t[e.s]=r},pe=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new P(++t),n=0,o=e[0],i=1,a=function(e){r[n++]=e},s=1;s<=t;++s)if(e[s]==o&&s!=t)++i;else{if(!o&&i>2){for(;i>138;i-=138)a(32754);i>2&&(a(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(a(o),--i;i>6;i-=6)a(8304);i>2&&(a(i-3<<5|8208),i=0)}for(;i--;)a(o);i=1,o=e[s]}return{c:r.subarray(0,n),n:t}},ye=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},ge=function(e,t,r){var n=r.length,o=ie(t+2);e[o]=255&n,e[o+1]=n>>8,e[o+2]=255^e[o],e[o+3]=255^e[o+1];for(var i=0;i<n;++i)e[o+i+4]=r[i];return 8*(o+4+n)},_e=function(e,t,r,n,o,i,a,s,c,u,l){le(t,l++,r),++o[256];for(var f=he(o,15),h=f.t,d=f.l,p=he(i,15),y=p.t,g=p.l,_=pe(h),m=_.c,w=_.n,b=pe(y),v=b.c,E=b.n,k=new P(19),S=0;S<m.length;++S)++k[31&m[S]];for(S=0;S<v.length;++S)++k[31&v[S]];for(var T=he(k,7),A=T.t,x=T.l,R=19;R>4&&!A[N[R-1]];--R);var O,C,L,I,M=u+5<<3,$=ye(o,X)+ye(i,K)+a,j=ye(o,h)+ye(i,y)+a+14+3*R+ye(k,A)+2*k[16]+3*k[17]+7*k[18];if(c>=0&&M<=$&&M<=j)return ge(t,l,e.subarray(c,c+u));if(le(t,l,1+(j<$)),l+=2,j<$){O=V(h,d,0),C=h,L=V(y,g,0),I=y;var F=V(A,x,0);for(le(t,l,w-257),le(t,l+5,E-1),le(t,l+10,R-4),l+=14,S=0;S<R;++S)le(t,l+3*S,A[N[S]]);l+=3*R;for(var D=[m,v],W=0;W<2;++W){var q=D[W];for(S=0;S<q.length;++S){var Y=31&q[S];le(t,l,F[Y]),l+=A[Y],Y>15&&(le(t,l,q[S]>>5&127),l+=q[S]>>12)}}}else O=J,C=X,L=ee,I=K;for(S=0;S<s;++S){var Z=n[S];if(Z>255){fe(t,l,O[257+(Y=Z>>18&31)]),l+=C[Y+257],Y>7&&(le(t,l,Z>>23&31),l+=U[Y]);var z=31&Z;fe(t,l,L[z]),l+=I[z],z>3&&(fe(t,l,Z>>5&8191),l+=B[z])}else fe(t,l,O[Z]),l+=C[Z]}return fe(t,l,O[256]),l+C[256]},me=new $([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),we=new M(0),be=function(e,t,r,n,o,i){var a=i.z||e.length,s=new M(n+a+5*(1+Math.ceil(a/7e3))+o),c=s.subarray(n,s.length-o),u=i.l,l=7&(i.r||0);if(t){l&&(c[0]=i.r>>3);for(var f=me[t-1],h=f>>13,d=8191&f,p=(1<<r)-1,y=i.p||new P(32768),g=i.h||new P(p+1),_=Math.ceil(r/3),m=2*_,w=function(t){return(e[t]^e[t+1]<<_^e[t+2]<<m)&p},b=new $(25e3),v=new P(288),E=new P(32),k=0,S=0,T=i.i||0,A=0,x=i.w||0,R=0;T+2<a;++T){var O=w(T),C=32767&T,L=g[O];if(y[C]=L,g[O]=C,x<=T){var I=a-T;if((k>7e3||A>24576)&&(I>423||!u)){l=_e(e,c,0,b,v,E,S,A,R,T-R,l),A=k=S=0,R=T;for(var N=0;N<286;++N)v[N]=0;for(N=0;N<30;++N)E[N]=0}var j=2,F=0,D=d,q=C-L&32767;if(I>2&&O==w(T-q))for(var Y=Math.min(h,I)-1,z=Math.min(32767,T),G=Math.min(258,I);q<=z&&--D&&C!=L;){if(e[T+j]==e[T+j-q]){for(var H=0;H<G&&e[T+H]==e[T+H-q];++H);if(H>j){if(j=H,F=q,H>Y)break;var V=Math.min(q,H-2),X=0;for(N=0;N<V;++N){var K=T-q+N&32767,J=K-y[K]&32767;J>X&&(X=J,L=K)}}}q+=(C=L)-(L=y[C])&32767}if(F){b[A++]=268435456|W[j]<<18|Z[F];var Q=31&W[j],ee=31&Z[F];S+=U[Q]+B[ee],++v[257+Q],++E[ee],x=T+j,++k}else b[A++]=e[T],++v[e[T]]}}for(T=Math.max(T,x);T<a;++T)b[A++]=e[T],++v[e[T]];l=_e(e,c,u,b,v,E,S,A,R,T-R,l),u||(i.r=7&l|c[l/8|0]<<3,l-=7,i.h=g,i.p=y,i.i=T,i.w=x)}else{for(T=i.w||0;T<a+u;T+=65535){var te=T+65535;te>=a&&(c[l/8|0]=u,te=a),l=ge(c,l+1,e.subarray(T,te))}i.i=a}return ae(s,0,n+ie(l)+o)},ve=function(){for(var e=new Int32Array(256),t=0;t<256;++t){for(var r=t,n=9;--n;)r=(1&r&&-306674912)^r>>>1;e[t]=r}return e}(),Ee=function(e,t,r,n,o){if(!o&&(o={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),a=new M(i.length+e.length);a.set(i),a.set(e,i.length),e=a,o.w=i.length}return be(e,null==t.level?6:t.level,null==t.mem?o.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,r,n,o)},ke=function(e,t){var r={};for(var n in e)r[n]=e[n];for(var n in t)r[n]=t[n];return r},Se=function(e,t,r){for(var n=e(),o=e.toString(),i=o.slice(o.indexOf("[")+1,o.lastIndexOf("]")).replace(/\s+/g,"").split(","),a=0;a<n.length;++a){var s=n[a],c=i[a];if("function"==typeof s){t+=";"+c+"=";var u=s.toString();if(s.prototype)if(-1!=u.indexOf("[native code]")){var l=u.indexOf(" ",8)+1;t+=u.slice(l,u.indexOf("(",l))}else for(var f in t+=u,s.prototype)t+=";"+c+".prototype."+f+"="+s.prototype[f].toString();else t+=u}else r[c]=s}return t},Te=[],Ae=function(){return[M,P,$,U,B,N,D,Y,Q,te,z,se,V,re,ne,oe,ie,ae,ce,ue,Ue,Re,Oe]},xe=function(){return[M,P,$,U,B,N,W,Z,J,X,ee,K,z,me,we,V,le,fe,he,de,pe,ye,ge,_e,ie,ae,be,Ee,$e,Re]},Re=function(e){return postMessage(e,[e.buffer])},Oe=function(e){return e&&{out:e.size&&new M(e.size),dictionary:e.dictionary}},Ce=function(e,t,r,n,o,i){var a=function(e,t,r,n){if(!Te[r]){for(var o="",i={},a=e.length-1,s=0;s<a;++s)o=Se(e[s],o,i);Te[r]={c:Se(e[a],o,i),e:i}}var c=ke({},Te[r].e);return function(e,t,r,n,o){var i=new Worker(I[t]||(I[t]=URL.createObjectURL(new Blob([e+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return i.onmessage=function(e){var t=e.data,r=t.$e$;if(r){var n=new Error(r[0]);n.code=r[1],n.stack=r[2],o(n,null)}else o(null,t)},i.postMessage(r,n),i}(Te[r].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",r,c,function(e){var t=[];for(var r in e)e[r].buffer&&t.push((e[r]=new e[r].constructor(e[r])).buffer);return t}(c),n)}(r,n,o,function(e,t){a.terminate(),i(e,t)});return a.postMessage([e,t],t.consume?[e.buffer]:[]),function(){a.terminate()}},Le=function(e,t){return e[t]|e[t+1]<<8},Ie=function(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0},Me=function(e,t){return Ie(e,t)+4294967296*Ie(e,t+4)},Pe=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8};function $e(e,t){return Ee(e,t||{},0,0)}function Ue(e,t){return ue(e,{i:2},t&&t.out,t&&t.dictionary)}var Be=function(e,t,r,n){for(var o in e){var i=e[o],a=t+o,s=n;Array.isArray(i)&&(s=ke(n,i[1]),i=i[0]),ArrayBuffer.isView(i)?r[a]=[i,s]:(r[a+="/"]=[new M(0),s],Be(i,a,r,n))}},Ne="undefined"!=typeof TextEncoder&&new TextEncoder,je="undefined"!=typeof TextDecoder&&new TextDecoder;try{je.decode(we,{stream:!0})}catch(e){}function Fe(e,t){if(t){for(var r=new M(e.length),n=0;n<e.length;++n)r[n]=e.charCodeAt(n);return r}if(Ne)return Ne.encode(e);var o=e.length,i=new M(e.length+(e.length>>1)),a=0,s=function(e){i[a++]=e};for(n=0;n<o;++n){if(a+5>i.length){var c=new M(a+8+(o-n<<1));c.set(i),i=c}var u=e.charCodeAt(n);u<128||t?s(u):u<2048?(s(192|u>>6),s(128|63&u)):u>55295&&u<57344?(s(240|(u=65536+(1047552&u)|1023&e.charCodeAt(++n))>>18),s(128|u>>12&63),s(128|u>>6&63),s(128|63&u)):(s(224|u>>12),s(128|u>>6&63),s(128|63&u))}return ae(i,0,a)}function De(e,t){if(t){for(var r="",n=0;n<e.length;n+=16384)r+=String.fromCharCode.apply(null,e.subarray(n,n+16384));return r}if(je)return je.decode(e);var o=function(e){for(var t="",r=0;;){var n=e[r++],o=(n>127)+(n>223)+(n>239);if(r+o>e.length)return{s:t,r:ae(e,r-1)};o?3==o?(n=((15&n)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536,t+=String.fromCharCode(55296|n>>10,56320|1023&n)):t+=1&o?String.fromCharCode((31&n)<<6|63&e[r++]):String.fromCharCode((15&n)<<12|(63&e[r++])<<6|63&e[r++]):t+=String.fromCharCode(n)}}(e),i=o.s;return(r=o.r).length&&ce(8),i}var We=function(e,t,r,n,o,i,a){var s=4294967295==o,c=4294967295==i,u=4294967295==a,l=t+r;if(n&&s+c+u){for(;t+4<l;t+=4+Le(e,t+2))if(1==Le(e,t))return[s?Me(e,t+4+8*c):o,c?Me(e,t+4):i,u?Me(e,t+4+8*(c+s)):a,1];n<2&&ce(13)}return[o,i,a,0]},qe=function(e){var t=0;if(e)for(var r in e){var n=e[r].length;n>65535&&ce(9),t+=n+4}return t},Ye=function(e,t,r,n,o,i,a,s){var c=n.length,u=r.extra,l=s&&s.length,f=qe(u);Pe(e,t,null!=a?33639248:67324752),t+=4,null!=a&&(e[t++]=20,e[t++]=r.os),e[t]=20,t+=2,e[t++]=r.flag<<1|(i<0&&8),e[t++]=o&&8,e[t++]=255&r.compression,e[t++]=r.compression>>8;var h=new Date(null==r.mtime?Date.now():r.mtime),d=h.getFullYear()-1980;if((d<0||d>119)&&ce(10),Pe(e,t,d<<25|h.getMonth()+1<<21|h.getDate()<<16|h.getHours()<<11|h.getMinutes()<<5|h.getSeconds()>>1),t+=4,-1!=i&&(Pe(e,t,r.crc),Pe(e,t+4,i<0?-i-2:i),Pe(e,t+8,r.size)),Pe(e,t+12,c),Pe(e,t+14,f),t+=16,null!=a&&(Pe(e,t,l),Pe(e,t+6,r.attrs),Pe(e,t+10,a),t+=14),e.set(n,t),t+=c,f)for(var p in u){var y=u[p],g=y.length;Pe(e,t,+p),Pe(e,t+2,g),e.set(y,t+4),t+=4+g}return l&&(e.set(s,t),t+=l),t};function Ze(e,t,r){r||(r=t,t={}),"function"!=typeof r&&ce(7);var n={};Be(e,"",n,t);var o=Object.keys(n),i=o.length,a=0,s=0,c=i,u=new Array(i),l=[],f=function(){for(var e=0;e<l.length;++e)l[e]()},h=function(e,t){ze(function(){r(e,t)})};ze(function(){h=r});var d=function(){var e=new M(s+22),t=a,r=s-a;s=0;for(var n=0;n<c;++n){var o=u[n];try{var i=o.c.length;Ye(e,s,o,o.f,o.u,i);var l=30+o.f.length+qe(o.extra),f=s+l;e.set(o.c,f),Ye(e,a,o,o.f,o.u,i,s,o.m),a+=16+l+(o.m?o.m.length:0),s=f+i}catch(e){return h(e,null)}}(function(e,t,r,n,o){Pe(e,t,101010256),Pe(e,t+8,r),Pe(e,t+10,r),Pe(e,t+12,n),Pe(e,t+16,o)})(e,a,u.length,r,t),h(null,e)};i||d();for(var p=function(e){var t=o[e],r=n[t],c=r[0],p=r[1],y=function(){var e=-1;return{p:function(t){for(var r=e,n=0;n<t.length;++n)r=ve[255&r^t[n]]^r>>>8;e=r},d:function(){return~e}}}(),g=c.length;y.p(c);var _=Fe(t),m=_.length,w=p.comment,b=w&&Fe(w),v=b&&b.length,E=qe(p.extra),k=0==p.level?0:8,S=function(r,n){if(r)f(),h(r,null);else{var o=n.length;u[e]=ke(p,{size:g,crc:y.d(),c:n,f:_,m:b,u:m!=t.length||b&&w.length!=v,compression:k}),a+=30+m+E+o,s+=76+2*(m+E)+(v||0)+o,--i||d()}};if(m>65535&&S(ce(11,0,1),null),k)if(g<16e4)try{S(null,$e(c,p))}catch(e){S(e,null)}else l.push(function(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&ce(7),Ce(e,t,[xe],function(e){return Re($e(e.data[0],e.data[1]))},0,r)}(c,p,S));else S(null,c)},y=0;y<c;++y)p(y);return f}var ze="function"==typeof queueMicrotask?queueMicrotask:"function"==typeof setTimeout?setTimeout:function(e){e()};class Ge{resolve;reject;promise;constructor(){if("function"==typeof Promise.withResolvers){const{promise:e,resolve:t,reject:r}=Promise.withResolvers();this.promise=e,this.resolve=t,this.reject=r}else this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const He="NotFoundError",Ve="/",Xe=".",Ke="/tmp";function Je(e){n("string"==typeof e),n(e[0]===Ve)}function Qe(e){n("string"==typeof e)}let et;function tt(e){return e===Ve}async function rt(e,t,r){try{return w(await e.getDirectoryHandle(t,r))}catch(r){const n=r,o=new Error(`${n.name}: ${n.message} When get child directory '${t}' from directory '${e.name||Ve}'.`);return o.name=n.name,b(o)}}async function nt(e,t){let r=await async function(){return et??=await navigator.storage.getDirectory(),et}();if(tt(e))return w(r);let n=e.slice(1);for(;n;){let e="";const o=n.indexOf("/");if(-1===o)e=n,n="";else if(e=n.slice(0,o),n=n.slice(o+1),0===o)continue;const i=await rt(r,e,t);if(i.isErr())return i;r=i.unwrap()}return w(r)}async function ot(e,t){const r=t?.create??!1,n=c(e),o=u(e);return(await nt(n,{create:r})).andThenAsync(e=>async function(e,t,r){try{return w(await e.getFileHandle(t,r))}catch(r){const n=r,o=new Error(`${n.name}: ${n.message} When get child file '${t}' from directory '${e.name||Ve}'.`);return o.name=n.name,b(o)}}(e,o,{create:r}))}function it(e){return e.name===He}async function at(e){const t=(await Promise.all(e)).find(e=>e.isErr());return t??T}function st(){const e=new Error;return e.name=A,e}function ct(e){const{isDirectory:t=!1,basename:r="tmp",extname:n=""}=e??{},o=t?"":n;return l(Ke,`${r?`${r}-`:""}${crypto.randomUUID()}${o}`)}function ut(e){return e.startsWith(`${Ke}/`)}async function lt(e){const{name:t,kind:r}=e;if(ft(e)){const n=await e.getFile(),{size:o,lastModified:i,type:a}=n;return{name:t,kind:r,type:a,size:o,lastModified:i}}return{name:t,kind:r}}function ft(e){return"file"===e.kind}function ht(e){return"directory"===e.kind}function dt(e){return"file"===e.kind}async function pt(e){const t=await e.getFile(),r=await t.arrayBuffer();return new Uint8Array(r)}async function yt(e){return Je(e),(await ot(e,{create:!0})).and(T)}async function gt(e){return Je(e),(await nt(e,{create:!0})).and(T)}async function _t(e,t){async function*r(n,o){const i=n.entries();for await(const[a,s]of i){const i=o===e?a:l(o,a);yield{path:i,handle:s},ht(s)&&t?.recursive&&(yield*r(await n.getDirectoryHandle(a),i))}}return Je(e),(await nt(e)).andThen(t=>w(r(t,e)))}async function mt(e,t){return Je(e),(await ot(e)).andThenAsync(async e=>{const r=await e.getFile();switch(t?.encoding){case"blob":return w(r);case"utf8":return w(await r.text());default:return w(await r.arrayBuffer())}})}async function wt(e){Je(e);const t=c(e),r=u(e),n=await nt(t);return(await n.andThenAsync(async e=>{try{tt(t)&&tt(r)?await e.remove({recursive:!0}):await e.removeEntry(r,{recursive:!0})}catch(e){return b(e)}return T})).orElse(e=>it(e)?T:b(e))}async function bt(e){Je(e);const t=c(e),r=u(e),n=await nt(t);return r?n.andThenAsync(async t=>{for await(const[e,n]of t.entries())if(e===r)return w(n);const n=new Error(`${He}: '${r}' does not exist. Full path is '${e}'.`);return n.name=He,b(n)}):n}async function vt(e,t,r){Je(e);const{append:n=!1,create:o=!0}=r??{};return(await ot(e,{create:o})).andThenAsync(async e=>{const r=await e.createWritable({keepExistingData:n}),o={type:"write",data:t};if(n){const{size:t}=await e.getFile();o.position=t}return await r.write(o),await r.close(),T})}function Et(e,t,r){let n,o;Qe(e),o=!1,"string"==typeof t?Je(t):(r=t,t=ct({extname:f(e)}),o=!0),n=!1;const i=O(e,{redirect:"follow",...r,abortable:!0}),a=(async()=>(await i.response).andThenAsync(async e=>{const r=await e.blob();return n?b(st()):(await vt(t,r)).and(w(e))}))();return{abort(e){n=!0,i.abort(e)},get aborted(){return n},get response(){return o?a.then(e=>e.map(e=>({tempFilePath:t,rawResponse:e}))):a}}}async function kt(e,t){const r=c(t);return(await nt(r,{create:!0})).andThenAsync(async r=>{const n=u(t);try{return await e.move(r,n),T}catch(e){return b(e)}})}async function St(e,t,r,n=!0){return Je(t),(await bt(e)).andThenAsync(async o=>{let i;i=!1;const a=await bt(t);if(a.isErr()){if(!it(a.unwrapErr()))return a.asErr()}else{i=!0;const e=a.unwrap();if(!(ft(o)&&ft(e)||ht(o)&&ht(e)))return b(new Error("Both 'srcPath' and 'destPath' must both be a file or directory."))}return ft(o)?n||!i?await r(o,t):T:(await _t(e,{recursive:!0})).andThenAsync(async e=>{const o=[gt(t)];for await(const{path:a,handle:s}of e){const e=l(t,a);let c=!1;if(i){const t=await Rt(e);if(t.isErr()){o.push(Promise.resolve(t.asErr()));continue}c=t.unwrap()}const u=ft(s)?n||!c?r(s,e):Promise.resolve(T):gt(e);o.push(u)}return at(o)})})}function Tt(e,t){return vt(e,t,{append:!0})}async function At(e,t,r){const{overwrite:n=!0}=r??{};return St(e,t,async(e,t)=>await vt(t,await e.getFile()),n)}async function xt(e){const t=await _t(e);if(t.isErr())return it(t.unwrapErr())?gt(e):t.asErr();const r=[];for await(const{path:n}of t.unwrap())r.push(wt(l(e,n)));return at(r)}async function Rt(e,t){const{isDirectory:r=!1,isFile:o=!1}=t??{};n(!(r&&o));const i=await bt(e);return i.andThen(e=>w(!(r&&ft(e)||o&&ht(e)))).orElse(e=>it(e)?S:i.asErr())}async function Ot(e,t,r){const{overwrite:n=!0}=r??{};return(await St(e,t,kt,n)).andThenAsync(()=>wt(e))}function Ct(e){return mt(e,{encoding:"blob"})}async function Lt(e){return(await It(e)).andThenAsync(async e=>{try{return w(JSON.parse(e))}catch(e){return b(e)}})}function It(e){return mt(e,{encoding:"utf8"})}async function Mt(e){const{isDirectory:t=!1}=e??{},r=ct(e);return(await(t?gt:yt)(r)).and(w(r))}function Pt(){return wt(Ke)}async function $t(e){return n(e instanceof Date),(await _t(Ke,{recursive:!0})).andThenAsync(async t=>{try{for await(const{handle:r}of t)ft(r)&&(await r.getFile()).lastModified<=e.getTime()&&await r.remove()}catch(e){return b(e)}return T})}async function Ut(e,t){const r=new Uint8Array(e),n=new Ge;return function(e,t,r){r||(r=t,t={}),"function"!=typeof r&&ce(7);var n=[],o=function(){for(var e=0;e<n.length;++e)n[e]()},i={},a=function(e,t){ze(function(){r(e,t)})};ze(function(){a=r});for(var s=e.length-22;101010256!=Ie(e,s);--s)if(!s||e.length-s>65558)return a(ce(13,0,1),null),o;var c=Le(e,s+8);if(c){var u=c,l=Ie(e,s+16),f=117853008==Ie(e,s-20);if(f){var h=Ie(e,s-12);(f=101075792==Ie(e,h))&&(u=c=Ie(e,h+32),l=Ie(e,h+48))}for(var d=t&&t.filter,p=function(t){var r=function(e,t,r){var n=Le(e,t+28),o=Le(e,t+30),i=De(e.subarray(t+46,t+46+n),!(2048&Le(e,t+8))),a=t+46+n,s=We(e,a,o,r,Ie(e,t+20),Ie(e,t+24),Ie(e,t+42)),c=s[0],u=s[1],l=s[2];return[Le(e,t+10),c,u,i,a+o+Le(e,t+32),l]}(e,l,f),s=r[0],u=r[1],h=r[2],p=r[3],y=r[4],g=r[5],_=function(e,t){return t+30+Le(e,t+26)+Le(e,t+28)}(e,g);l=y;var m=function(e,t){e?(o(),a(e,null)):(t&&(i[p]=t),--c||a(null,i))};if(!d||d({name:p,size:u,originalSize:h,compression:s}))if(s)if(8==s){var w=e.subarray(_,_+u);if(h<524288||u>.8*h)try{m(null,Ue(w,{out:new M(h)}))}catch(e){m(e,null)}else n.push(function(e,t,r){return r||(r=t,t={}),"function"!=typeof r&&ce(7),Ce(e,t,[Ae],function(e){return Re(Ue(e.data[0],Oe(e.data[1])))},1,r)}(w,{size:h},m))}else m(ce(14,"unknown compression type "+s,1),null);else m(null,ae(e,_,_+u));else m(null,null)},y=0;y<u;++y)p()}else a(null,{})}(r,async(e,r)=>{if(e)return void n.resolve(b(e));const o=[];for(const e in r)"/"!==e.at(-1)&&o.push(vt(l(t,e),r[e]));n.resolve(at(o))}),await n.promise}async function Bt(e,t){return Je(t),(await mt(e)).andThenAsync(e=>Ut(e,t))}async function Nt(e,t,r){return Qe(e),Je(t),(await O(e,{redirect:"follow",...r,responseType:"arraybuffer",abortable:!1})).andThenAsync(e=>Ut(e,t))}function jt(e,t,r){let n,o;Qe(t),n=!1;const i=(async()=>(await Ct(e)).andThenAsync(async i=>{if(n)return b(st());const{filename:a=u(e),...s}=r??{},c=new FormData;return c.append(a,i,a),o=O(t,{method:"POST",...s,abortable:!0,body:c}),o.response}))();return{abort(e){n=!0,o?.abort(e)},get aborted(){return n},get response(){return i}}}async function Ft(e,t){const r=new Ge;return Ze(e,{consume:!0},async(e,n)=>{if(e)r.resolve(b(e));else if(t){const e=await vt(t,n);r.resolve(e)}else r.resolve(w(n))}),await r.promise}async function Dt(e,t,r){return"string"==typeof t?Je(t):(r=t,t=void 0),(await bt(e)).andThenAsync(async n=>{const o=u(e),i={};if(ft(n)){const e=await pt(n);i[o]=e}else{const t=await _t(e,{recursive:!0});if(t.isErr())return t.asErr();const n=r?.preserveRoot??!0;for await(const{path:e,handle:r}of t.unwrap())if(ft(r)){const t=n?l(o,e):e,a=await pt(r);i[t]=a}}return Ft(i,t)})}async function Wt(e,t,r){return Qe(e),"string"==typeof t?Je(t):(r=t,t=void 0),(await O(e,{redirect:"follow",...r,responseType:"arraybuffer",abortable:!1})).andThenAsync(r=>{const n={};return n[u(e)]=new Uint8Array(r),Ft(n,t)})}function qt(){return"function"==typeof navigator?.storage?.getDirectory}function Yt(e){return e?{name:e.name,message:e.message}:e}async function Zt(e){const t=await e.arrayBuffer();return{name:e.name,type:e.type,lastModified:e.lastModified,size:t.byteLength,data:t}}let zt=1e3;var Gt=(e=>(e[e.createFile=0]="createFile",e[e.mkdir=1]="mkdir",e[e.move=2]="move",e[e.readDir=3]="readDir",e[e.remove=4]="remove",e[e.stat=5]="stat",e[e.writeFile=6]="writeFile",e[e.appendFile=7]="appendFile",e[e.copy=8]="copy",e[e.emptyDir=9]="emptyDir",e[e.exists=10]="exists",e[e.deleteTemp=11]="deleteTemp",e[e.mkTemp=12]="mkTemp",e[e.pruneTemp=13]="pruneTemp",e[e.readBlobFile=14]="readBlobFile",e[e.unzip=15]="unzip",e[e.zip=16]="zip",e))(Gt||{});let Ht,Vt;function Xt(e){const t=JSON.stringify(e);return(Ht??=new TextEncoder,Ht).encode(t)}function Kt(e){const t=Jt(e);return JSON.parse(t)}function Jt(e){return(Vt??=new TextDecoder,Vt).decode(e)}class Qt{i32a;u8a;headerLength=16;maxDataLength;constructor(e){this.i32a=new Int32Array(e),this.u8a=new Uint8Array(e),this.maxDataLength=e.byteLength-this.headerLength}}async function er(e,t){const{i32a:r,u8a:n,headerLength:o,maxDataLength:i}=e;for(;1!==Atomics.load(r,1););const a=r[2],s=n.slice(o,o+a);let c=await t(s);const u=c.byteLength;if(u>i){const e=`Response is too large: ${u} > ${i}. Consider grow the size of SharedArrayBuffer.`;if(c=Xt([{name:"RangeError",message:e}]),c.byteLength>i)throw Atomics.store(r,1,0),new RangeError(e)}r[2]=c.byteLength,n.set(c,o),Atomics.store(r,1,0),Atomics.store(r,0,0)}const tr={[Gt.createFile]:yt,[Gt.mkdir]:gt,[Gt.move]:Ot,[Gt.readDir]:_t,[Gt.remove]:wt,[Gt.stat]:bt,[Gt.writeFile]:vt,[Gt.appendFile]:Tt,[Gt.copy]:At,[Gt.emptyDir]:xt,[Gt.exists]:Rt,[Gt.deleteTemp]:Pt,[Gt.mkTemp]:Mt,[Gt.pruneTemp]:$t,[Gt.readBlobFile]:Ct,[Gt.unzip]:Bt,[Gt.zip]:Dt};let rr,nr;function or(){if("undefined"!=typeof window)throw new Error("Only can use in worker");if(rr)throw new Error("Worker messenger already started");addEventListener("message",e=>{const t=e.data;if(!(t instanceof SharedArrayBuffer))throw new TypeError("Only can post SharedArrayBuffer to Worker");rr=new Qt(t),postMessage(!0),async function(){for(;;)try{await er(rr,async e=>{const[t,...r]=Kt(e);let n;t===Gt.writeFile||t===Gt.appendFile?Array.isArray(r[1])&&(r[1]=new Uint8Array(r[1])):t===Gt.pruneTemp&&(r[0]=new Date(r[0]));const o=tr[t];try{const e=await o(...r);if(e.isErr())n=Xt([Yt(e.unwrapErr())]);else{let r;if(t===Gt.readBlobFile){const t=e.unwrap(),n=await Zt(t);r={...n,data:[...new Uint8Array(n.data)]}}else if(t===Gt.readDir){const t=e.unwrap(),n=[];for await(const{path:e,handle:r}of t){const t=await lt(r);n.push({path:e,handle:t})}r=n}else if(t===Gt.stat){const t=e.unwrap();r=await lt(t)}else if(t===Gt.zip){const t=e.unwrap();r=t instanceof Uint8Array?[...t]:t}else r=e.unwrap();n=Xt([null,r])}}catch(e){n=Xt([Yt(e)])}return n})}catch(e){console.error(e instanceof Error?e.stack:e)}}()})}function ir(e){if("undefined"==typeof window)throw new Error("Only can use in main thread");if(nr)throw new Error("Main messenger already started");return new Promise(t=>{const{worker:r,bufferLength:o=1048576,opTimeout:i=1e3}=e;n(r instanceof Worker||r instanceof URL||"string"==typeof r&&r),n(o>16&&o%4==0),n(Number.isInteger(i)&&i>0),zt=i;const a=r instanceof Worker?r:new Worker(r),s=new SharedArrayBuffer(o);a.addEventListener("message",e=>{e.data&&(nr=new Qt(s),t())}),a.postMessage(s)})}function ar(){return nr}function sr(e){n(null!=e),nr=e}function cr(e,...t){if(!nr)return b(new Error("Worker not initialized. Come back later."));const r=Xt([e,...t]);try{const e=Kt(function(e,t){const{i32a:r,u8a:n,headerLength:o,maxDataLength:i}=e,a=t.byteLength;if(a>i)throw new RangeError(`Request is too large: ${a} > ${i}. Consider grow the size of SharedArrayBuffer.`);Atomics.store(r,0,1),r[2]=a,n.set(t,o),Atomics.store(r,1,1),function(e){const t=Date.now();for(;!e();)if(Date.now()-t>zt){const e=new Error("Operating Timeout");throw e.name=x,e}}(()=>0===Atomics.load(r,0));const s=r[2];return n.slice(o,o+s)}(nr,r)),t=e[0],n=t?b(function(e){const t=new Error(e.message);return t.name=e.name,t}(t)):w(e[1]??void 0);return n}catch(e){return b(e)}}function ur(e){return cr(Gt.createFile,e)}function lr(e){return cr(Gt.mkdir,e)}function fr(e,t,r){return cr(Gt.move,e,t,r)}function hr(e,t){return cr(Gt.readDir,e,t)}function dr(e,t){return cr(Gt.readBlobFile,e).map(e=>{const r=new Uint8Array(e.data);switch(e.data=r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength),t?.encoding){case"blob":return e;case"utf8":return Jt(new Uint8Array(e.data));default:return e.data}})}function pr(e){return cr(Gt.remove,e)}function yr(e){return cr(Gt.stat,e)}function gr(e){return e instanceof ArrayBuffer?[...new Uint8Array(e)]:ArrayBuffer.isView(e)?[...new Uint8Array(e.buffer)]:e}function _r(e,t,r){return cr(Gt.writeFile,e,gr(t),r)}function mr(e,t){return cr(Gt.appendFile,e,gr(t))}function wr(e,t,r){return cr(Gt.copy,e,t,r)}function br(e){return cr(Gt.emptyDir,e)}function vr(e,t){return cr(Gt.exists,e,t)}function Er(){return cr(Gt.deleteTemp)}function kr(e){return cr(Gt.mkTemp,e)}function Sr(e){return cr(Gt.pruneTemp,e)}function Tr(e){return dr(e,{encoding:"blob"})}function Ar(e){return xr(e).andThen(e=>{try{return w(JSON.parse(e))}catch(e){return b(e)}})}function xr(e){return dr(e,{encoding:"utf8"})}function Rr(e,t){return cr(Gt.unzip,e,t)}function Or(e,t,r){return cr(Gt.zip,e,t,r).map(e=>e?new Uint8Array(e):e)}},843(e,t,r){"use strict";r.d(t,{basename:()=>g,dirname:()=>m,join:()=>v,parse:()=>E});const n=function(){const e=globalThis,t=e.Deno?.build?.os;return"string"==typeof t?"windows"===t:e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}();function o(e){if("string"!=typeof e)throw new TypeError(`Path must be a string, received "${JSON.stringify(e)}"`)}function i(e,t){if(t.length>=e.length)return e;const r=e.length-t.length;for(let n=t.length-1;n>=0;--n)if(e.charCodeAt(r+n)!==t.charCodeAt(n))return e;return e.slice(0,-t.length)}function a(e,t,r=0){let n=!1,o=e.length;for(let i=e.length-1;i>=r;--i)if(t(e.charCodeAt(i))){if(n){r=i+1;break}}else n||(n=!0,o=i+1);return e.slice(r,o)}function s(e,t){if(o(e),0===e.length)return e;if("string"!=typeof t)throw new TypeError(`Suffix must be a string, received "${JSON.stringify(t)}"`)}function c(e){if("file:"!==(e=e instanceof URL?e:new URL(e)).protocol)throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function u(e){return e=c(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function l(e,t){if(e.length<=1)return e;let r=e.length;for(let n=e.length-1;n>0&&t(e.charCodeAt(n));n--)r=n;return e.slice(0,r)}function f(e){return 47===e}function h(e){return 47===e}function d(e){return 47===e||92===e}function p(e){return e>=97&&e<=122||e>=65&&e<=90}function y(e){e=c(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return""!==e.hostname&&(t=`\\\\${e.hostname}${t}`),t}function g(e,t=""){return n?function(e,t=""){e instanceof URL&&(e=y(e)),s(e,t);let r=0;e.length>=2&&p(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(r=2);const n=l(a(e,d,r),d);return t?i(n,t):n}(e,t):function(e,t=""){e instanceof URL&&(e=u(e)),s(e,t);const r=l(a(e,f),f);return t?i(r,t):r}(e,t)}function _(e){if(o(e),0===e.length)return"."}function m(e){return n?function(e){e instanceof URL&&(e=y(e)),_(e);const t=e.length;let r=-1,n=-1,o=!0,i=0;const a=e.charCodeAt(0);if(t>1)if(d(a)){if(r=i=1,d(e.charCodeAt(1))){let n=2,o=n;for(;n<t&&!d(e.charCodeAt(n));++n);if(n<t&&n!==o){for(o=n;n<t&&d(e.charCodeAt(n));++n);if(n<t&&n!==o){for(o=n;n<t&&!d(e.charCodeAt(n));++n);if(n===t)return e;n!==o&&(r=i=n+1)}}}}else p(a)&&58===e.charCodeAt(1)&&(r=i=2,t>2&&d(e.charCodeAt(2))&&(r=i=3));else if(d(a))return e;for(let r=t-1;r>=i;--r)if(d(e.charCodeAt(r))){if(!o){n=r;break}}else o=!1;if(-1===n){if(-1===r)return".";n=r}return l(e.slice(0,n),h)}(e):function(e){e instanceof URL&&(e=u(e)),_(e);let t=-1,r=!1;for(let n=e.length-1;n>=1;--n)if(f(e.charCodeAt(n))){if(r){t=n;break}}else r=!0;return-1===t?f(e.charCodeAt(0))?"/":".":l(e.slice(0,t),f)}(e)}function w(e){if(o(e),0===e.length)return"."}function b(e,t,r,n){let o,i="",a=0,s=-1,c=0;for(let u=0;u<=e.length;++u){if(u<e.length)o=e.charCodeAt(u);else{if(n(o))break;o=47}if(n(o)){if(s===u-1||1===c);else if(s!==u-1&&2===c){if(i.length<2||2!==a||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2)){if(i.length>2){const e=i.lastIndexOf(r);-1===e?(i="",a=0):(i=i.slice(0,e),a=i.length-1-i.lastIndexOf(r)),s=u,c=0;continue}if(2===i.length||1===i.length){i="",a=0,s=u,c=0;continue}}t&&(i.length>0?i+=`${r}..`:i="..",a=2)}else i.length>0?i+=r+e.slice(s+1,u):i=e.slice(s+1,u),a=u-s-1;s=u,c=0}else 46===o&&-1!==c?++c:c=-1}return i}function v(e,...t){return n?function(e,...t){if(e instanceof URL&&(e=y(e)),(t=e?[e,...t]:t).forEach(e=>o(e)),t=t.filter(e=>e.length>0),0===t.length)return".";let r=!0,n=0;const i=t[0];if(d(i.charCodeAt(0))){++n;const e=i.length;e>1&&d(i.charCodeAt(1))&&(++n,e>2&&(d(i.charCodeAt(2))?++n:r=!1))}let a=t.join("\\");if(r){for(;n<a.length&&d(a.charCodeAt(n));++n);n>=2&&(a=`\\${a.slice(n)}`)}return function(e){e instanceof URL&&(e=y(e)),w(e);const t=e.length;let r,n=0,o=!1;const i=e.charCodeAt(0);if(t>1)if(d(i))if(o=!0,d(e.charCodeAt(1))){let o=2,i=o;for(;o<t&&!d(e.charCodeAt(o));++o);if(o<t&&o!==i){const a=e.slice(i,o);for(i=o;o<t&&d(e.charCodeAt(o));++o);if(o<t&&o!==i){for(i=o;o<t&&!d(e.charCodeAt(o));++o);if(o===t)return`\\\\${a}\\${e.slice(i)}\\`;o!==i&&(r=`\\\\${a}\\${e.slice(i,o)}`,n=o)}}}else n=1;else p(i)&&58===e.charCodeAt(1)&&(r=e.slice(0,2),n=2,t>2&&d(e.charCodeAt(2))&&(o=!0,n=3));else if(d(i))return"\\";let a;return a=n<t?b(e.slice(n),!o,"\\",d):"",0!==a.length||o||(a="."),a.length>0&&d(e.charCodeAt(t-1))&&(a+="\\"),void 0===r?o?a.length>0?`\\${a}`:"\\":a:o?a.length>0?`${r}\\${a}`:`${r}\\`:r+a}(a)}(e,...t):function(e,...t){if(void 0===e)return".";e instanceof URL&&(e=u(e)),(t=e?[e,...t]:t).forEach(e=>o(e));const r=t.filter(e=>e.length>0).join("/");return""===r?".":function(e){e instanceof URL&&(e=u(e)),w(e);const t=f(e.charCodeAt(0)),r=f(e.charCodeAt(e.length-1));return 0!==(e=b(e,!t,"/",f)).length||t||(e="."),e.length>0&&r&&(e+="/"),t?`/${e}`:e}(r)}(e,...t)}function E(e){return n?function(e){o(e);const t={root:"",dir:"",base:"",ext:"",name:""},r=e.length;if(0===r)return t;let n=0,i=e.charCodeAt(0);if(r>1){if(d(i)){if(n=1,d(e.charCodeAt(1))){let t=2,o=t;for(;t<r&&!d(e.charCodeAt(t));++t);if(t<r&&t!==o){for(o=t;t<r&&d(e.charCodeAt(t));++t);if(t<r&&t!==o){for(o=t;t<r&&!d(e.charCodeAt(t));++t);t===r?n=t:t!==o&&(n=t+1)}}}}else if(p(i)&&58===e.charCodeAt(1)){if(n=2,!(r>2))return t.root=t.dir=e,t;if(d(e.charCodeAt(2))){if(3===r)return t.root=t.dir=e,t.base="\\",t;n=3}}}else if(d(i))return t.root=t.dir=e,t.base="\\",t;n>0&&(t.root=e.slice(0,n));let a=-1,s=n,c=-1,u=!0,l=e.length-1,f=0;for(;l>=n;--l)if(i=e.charCodeAt(l),d(i)){if(!u){s=l+1;break}}else-1===c&&(u=!1,c=l+1),46===i?-1===a?a=l:1!==f&&(f=1):-1!==a&&(f=-1);return-1===a||-1===c||0===f||1===f&&a===c-1&&a===s+1?-1!==c&&(t.base=t.name=e.slice(s,c)):(t.name=e.slice(s,a),t.base=e.slice(s,c),t.ext=e.slice(a,c)),t.base=t.base||"\\",t.dir=s>0&&s!==n?e.slice(0,s-1):t.root,t}(e):function(e){o(e);const t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;const r=f(e.charCodeAt(0));let n;r?(t.root="/",n=1):n=0;let i=-1,a=0,s=-1,c=!0,u=e.length-1,h=0;for(;u>=n;--u){const t=e.charCodeAt(u);if(f(t)){if(!c){a=u+1;break}}else-1===s&&(c=!1,s=u+1),46===t?-1===i?i=u:1!==h&&(h=1):-1!==i&&(h=-1)}return-1===i||-1===s||0===h||1===h&&i===s-1&&i===a+1?(-1!==s&&(t.base=t.name=0===a&&r?e.slice(1,s):e.slice(a,s)),t.base=t.base||"/"):(0===a&&r?(t.name=e.slice(1,i),t.base=e.slice(1,s)):(t.name=e.slice(a,i),t.base=e.slice(a,s)),t.ext=e.slice(i,s)),a>0?t.dir=l(e.slice(0,a-1),f):r&&(t.dir="/"),t}(e)}}};const t={};function r(n){const o=t[n];if(void 0!==o)return o.exports;const i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}(()=>{const e=Symbol("webpack queues"),t=Symbol("webpack exports"),n=Symbol("webpack error"),o=e=>{e?.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))};r.a=(r,i,a)=>{let s;a&&((s=[]).d=-1);const c=new Set,u=r.exports;let l,f,h;const d=new Promise((e,t)=>{h=t,f=e});d[t]=u,d[e]=e=>(s&&e(s),c.forEach(e),d.catch(e=>{})),r.exports=d,i(r=>{let i;l=(r=>r.map(r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){const i=[];i.d=0,r.then(e=>{a[t]=e,o(i)},e=>{a[n]=e,o(i)});const a={};return a[e]=e=>e(i),a}}const i={};return i[e]=e=>{},i[t]=r,i}))(r);const a=()=>l.map(e=>{if(e[n])throw e[n];return e[t]}),u=new Promise(t=>{i=()=>t(a),i.r=0;const r=e=>e!==s&&!c.has(e)&&(c.add(e),e&&!e.d&&(i.r++,e.push(i)));l.forEach(t=>t[e](r))});return i.r?u:a()},e=>(e?h(d[n]=e):f(u),o(s))),s?.d<0&&(s.d=0)}})(),r.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var o=t[n++],i=t[n++];r.o(e,o)?0===i&&n++:0===i?Object.defineProperty(e,o,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,o,{enumerable:!0,get:i})}else for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r(204)})();
|
|
1
|
+
(()=>{"use strict";var e={6204(e,t,r){r.a(e,async(e,t)=>{try{await r.e(35).then(()=>r(5035)),(await Promise.all([r.e(10),r.e(310),r.e(368),r.e(281)]).then(()=>r(1029)))._address_check,(await Promise.all([r.e(10),r.e(310),r.e(368),r.e(786)]).then(()=>r(4648)))._bytecode_creation_get,(await Promise.all([r.e(10),r.e(310),r.e(368),r.e(127)]).then(()=>r(3823)))._bytecode_runtime_get,(await Promise.all([r.e(10),r.e(310),r.e(368),r.e(195)]).then(()=>r(8035)))._contract_get,(await Promise.all([r.e(10),r.e(310),r.e(368),r.e(625)]).then(()=>r(3189)))._deployer_get,(await Promise.all([r.e(10),r.e(310),r.e(368),r.e(758)]).then(()=>r.t(5260,19)))._deployer_verify;const e=await Promise.all([r.e(10),r.e(310),r.e(368),r.e(526)]).then(()=>r(4292));e._contract_call_dynamic,e._contract_run,(await Promise.all([r.e(10),r.e(310),r.e(368),r.e(103)]).then(()=>r.t(727,19)))._contract_call_static,t()}catch(e){t(e)}},1)}};const t={};function r(o){const n=t[o];if(void 0!==n)return n.exports;const c=t[o]={id:o,loaded:!1,exports:{}};return e[o](c,c.exports,r),c.loaded=!0,c.exports}r.m=e,(()=>{const e=Symbol("webpack queues"),t=Symbol("webpack exports"),o=Symbol("webpack error"),n=e=>{e?.d<1&&(e.d=1,e.forEach(e=>e.r--),e.forEach(e=>e.r--?e.r++:e()))};r.a=(r,c,a)=>{let s;a&&((s=[]).d=-1);const i=new Set,l=r.exports;let u,d,p;const f=new Promise((e,t)=>{p=t,d=e});f[t]=l,f[e]=e=>(s&&e(s),i.forEach(e),f.catch(e=>{})),r.exports=f,c(r=>{let c;u=(r=>r.map(r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){const c=[];c.d=0,r.then(e=>{a[t]=e,n(c)},e=>{a[o]=e,n(c)});const a={};return a[e]=e=>e(c),a}}const c={};return c[e]=e=>{},c[t]=r,c}))(r);const a=()=>u.map(e=>{if(e[o])throw e[o];return e[t]}),l=new Promise(t=>{c=()=>t(a),c.r=0;const r=e=>e!==s&&!i.has(e)&&(i.add(e),e&&!e.d&&(c.r++,e.push(c)));u.forEach(t=>t[e](r))});return c.r?l:a()},e=>(e?p(f[o]=e):d(l),n(s))),s?.d<0&&(s.d=0)}})(),(()=>{const e=Object.getPrototypeOf;let t;r.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}const c=Object.create(null);r.r(c);const a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&n&&o;("object"==typeof s||"function"==typeof s)&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach(e=>a[e]=()=>o[e]);return a.default=()=>o,r.d(c,a),c}})(),r.d=(e,t)=>{if(Array.isArray(t))for(var o=0;o<t.length;){var n=t[o++],c=t[o++],a=0===c?{enumerable:!0,value:t[o++]}:{enumerable:!0,get:c};r.o(e,n)||Object.defineProperty(e,n,a)}else for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((t,o)=>(r.f[o](e,t),t),[])),r.u=e=>e+".evm-contracts-tools.js",r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="evm-contracts-tools:";r.l=(o,n,c,a)=>{if(e[o])return void e[o].push(n);let s,i;if(void 0!==c){const e=document.getElementsByTagName("script");for(var l=0;l<e.length;l++){const r=e[l];if(r.getAttribute("src")==o||r.getAttribute("data-webpack")==t+c){s=r;break}}}s||(i=!0,s=document.createElement("script"),s.charset="utf-8",r.nc&&s.setAttribute("nonce",r.nc),s.setAttribute("data-webpack",t+c),s.src=o),e[o]=[n];const u=(t,r)=>{s.onerror=s.onload=null,clearTimeout(d);const n=e[o];if(delete e[o],s.parentNode?.removeChild(s),n?.forEach(e=>e(r)),t)return t(r)},d=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),i&&document.head.appendChild(s)}})(),r.r=e=>{Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{let e;r.g.importScripts&&(e=r.g.location+"");const t=r.g.document;if(!e&&t&&("SCRIPT"===t.currentScript?.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){const r=t.getElementsByTagName("script");if(r.length){let t=r.length-1;for(;t>-1&&(!e||!/^https?:/.test(e));)e=r[t--].src}}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:|[?#].*$/g,"").replace(/\/[^/]+$/,"/"),r.p=e})(),(()=>{const e={792:0};r.f.j=(t,o)=>{let n=r.o(e,t)?e[t]:void 0;if(0!==n)if(n)o.push(n[2]);else{const c=new Promise((r,o)=>n=e[t]=[r,o]);o.push(n[2]=c);const a=new Error,s=o=>{if(r.o(e,t)&&(n=e[t],0!==n&&(e[t]=void 0),n)){const e=o&&("load"===o.type?"missing":o.type),r=o&&o.target&&o.target.src;a.message="Loading chunk "+t+" failed.\n("+e+": "+r+")",a.name="ChunkLoadError",a.type=e,a.request=r,a.event=o,n[1](a)}};r.l(r.p+r.u(t),s,"chunk-"+t,t)}};const t=(t,o)=>{let[n,c,a]=o;var s,i,l=0;if(n.some(t=>0!==e[t])){for(s in c)r.o(c,s)&&(r.m[s]=c[s]);a&&a(r)}for(t&&t(o);l<n.length;l++)i=n[l],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0},o=self.webpackChunkevm_contracts_tools=self.webpackChunkevm_contracts_tools||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),r(6204)})();
|