@startale/app-sdk 1.1.0 → 1.3.0
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/app-sdk.js +52759 -30691
- package/dist/app-sdk.js.map +1 -1
- package/dist/app-sdk.min.js +30 -11
- package/dist/app-sdk.min.js.map +1 -1
- package/dist/core/communicator/Communicator.d.ts +2 -1
- package/dist/core/communicator/Communicator.d.ts.map +1 -1
- package/dist/core/communicator/Communicator.js.map +1 -1
- package/dist/core/communicator/FarcasterProvider.d.ts +22 -0
- package/dist/core/communicator/FarcasterProvider.d.ts.map +1 -0
- package/dist/core/communicator/FarcasterProvider.js +95 -0
- package/dist/core/communicator/FarcasterProvider.js.map +1 -0
- package/dist/core/communicator/ICommunicator.d.ts +10 -0
- package/dist/core/communicator/ICommunicator.d.ts.map +1 -0
- package/dist/core/communicator/ICommunicator.js +2 -0
- package/dist/core/communicator/ICommunicator.js.map +1 -0
- package/dist/core/communicator/iframeUtils.d.ts +3 -0
- package/dist/core/communicator/iframeUtils.d.ts.map +1 -0
- package/dist/core/communicator/iframeUtils.js +7 -0
- package/dist/core/communicator/iframeUtils.js.map +1 -0
- package/dist/core/error/serialize.js +2 -2
- package/dist/core/error/serialize.js.map +1 -1
- package/dist/core/provider/interface.d.ts +4 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/interface/builder/core/BaseAccountProvider.d.ts +2 -1
- package/dist/interface/builder/core/BaseAccountProvider.d.ts.map +1 -1
- package/dist/interface/builder/core/BaseAccountProvider.js +7 -6
- package/dist/interface/builder/core/BaseAccountProvider.js.map +1 -1
- package/dist/interface/builder/core/createStartaleAccountSDK.d.ts.map +1 -1
- package/dist/interface/builder/core/createStartaleAccountSDK.js +13 -2
- package/dist/interface/builder/core/createStartaleAccountSDK.js.map +1 -1
- package/dist/interface/payment/utils/sdkManager.d.ts.map +1 -1
- package/dist/sign/app-sdk/Signer.d.ts +2 -2
- package/dist/sign/app-sdk/Signer.d.ts.map +1 -1
- package/package.json +10 -1
package/dist/app-sdk.min.js
CHANGED
|
@@ -1,15 +1,34 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).startaleAppSdk={})}(this,function(t){"use strict";const e="https://rpc.wallet.coinbase.com",n="@startale/app-sdk",r="1.1.0";function a(t,e){let n;try{n=t()}catch(t){return}const r={getItem:t=>{var e;const r=t=>null===t?null:JSON.parse(t,void 0),a=null!=(e=n.getItem(t))?e:null;return a instanceof Promise?a.then(r):r(a)},setItem:(t,e)=>n.setItem(t,JSON.stringify(e,void 0)),removeItem:t=>n.removeItem(t)};return r}const s=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then:t=>s(t)(n),catch(t){return this}}}catch(t){return{then(t){return this},catch:e=>s(e)(t)}}},i=(t,e)=>(n,r,i)=>{let o={storage:a(()=>localStorage),partialize:t=>t,version:0,merge:(t,e)=>({...e,...t}),...e},c=!1;const u=new Set,d=new Set;let l=o.storage;if(!l)return t((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...t)},r,i);const f=()=>{const t=o.partialize({...r()});return l.setItem(o.name,{state:t,version:o.version})},p=i.setState;i.setState=(t,e)=>{p(t,e),f()};const m=t((...t)=>{n(...t),f()},r,i);let h;i.getInitialState=()=>m;const b=()=>{var t,e;if(!l)return;c=!1,u.forEach(t=>{var e;return t(null!=(e=r())?e:m)});const a=(null==(e=o.onRehydrateStorage)?void 0:e.call(o,null!=(t=r())?t:m))||void 0;return s(l.getItem.bind(l))(o.name).then(t=>{if(t){if("number"!=typeof t.version||t.version===o.version)return[!1,t.state];if(o.migrate){const e=o.migrate(t.state,t.version);return e instanceof Promise?e.then(t=>[!0,t]):[!0,e]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(t=>{var e;const[a,s]=t;if(h=o.merge(s,null!=(e=r())?e:m),n(h,!0),a)return f()}).then(()=>{null==a||a(h,void 0),h=r(),c=!0,d.forEach(t=>t(h))}).catch(t=>{null==a||a(void 0,t)})};return i.persist={setOptions:t=>{o={...o,...t},t.storage&&(l=t.storage)},clearStorage:()=>{null==l||l.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>b(),hasHydrated:()=>c,onHydrate:t=>(u.add(t),()=>{u.delete(t)}),onFinishHydration:t=>(d.add(t),()=>{d.delete(t)})},o.skipHydration||b(),h||m},o=t=>{let e;const n=new Set,r=(t,r)=>{const a="function"==typeof t?t(e):t;if(!Object.is(a,e)){const t=e;e=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},e,a),n.forEach(n=>n(e,t))}},a=()=>e,s={setState:r,getState:a,getInitialState:()=>i,subscribe:t=>(n.add(t),()=>n.delete(t))},i=e=t(r,a,s);return s},c=t=>t?o(t):o,u=c(i((...t)=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},{chains:[]}),{keys:{}}),{account:{}}),{subAccount:void 0}),{spendPermissions:[]}),(()=>({config:{version:r}}))(...t)),{subAccountConfig:{}}),{userInfo:{}}),{name:"startale-app-sdk.store",storage:a(()=>localStorage),partialize:t=>({chains:t.chains,keys:t.keys,account:t.account,subAccount:t.subAccount,spendPermissions:t.spendPermissions,config:t.config,userInfo:t.userInfo})})),d={get:()=>u.getState().spendPermissions,set:t=>{u.setState({spendPermissions:t})},clear:()=>{u.setState({spendPermissions:[]})}},l={get:()=>u.getState().config,set:t=>{u.setState(e=>({config:Object.assign(Object.assign({},e.config),t)}))}},f={subAccounts:{get:()=>u.getState().subAccount,set:t=>{u.setState(e=>({subAccount:e.subAccount?Object.assign(Object.assign({},e.subAccount),t):Object.assign({address:t.address},t)}))},clear:()=>{u.setState({subAccount:void 0})}},subAccountsConfig:{get:()=>u.getState().subAccountConfig,set:t=>{u.setState(e=>({subAccountConfig:Object.assign(Object.assign({},e.subAccountConfig),t)}))},clear:()=>{u.setState({subAccountConfig:{}})}},spendPermissions:d,account:{get:()=>u.getState().account,set:t=>{u.setState(e=>({account:Object.assign(Object.assign({},e.account),t)}))},clear:()=>{u.setState({account:{}})}},chains:{get:()=>u.getState().chains,set:t=>{u.setState({chains:t})},clear:()=>{u.setState({chains:[]})}},keys:{get:t=>u.getState().keys[t],set:(t,e)=>{u.setState(n=>({keys:Object.assign(Object.assign({},n.keys),{[t]:e})}))},clear:()=>{u.setState({keys:{}})}},config:l,userInfo:{get:()=>u.getState().userInfo,set:t=>{u.setState(e=>({userInfo:t}))},clear:()=>{u.setState({userInfo:{}})}}},p=Object.assign(Object.assign({},u),f),m=()=>{var t,e,n;if("undefined"!=typeof window){const r=null!==(n=null!==(t=p.config.get().deviceId)&&void 0!==t?t:null===(e=window.crypto)||void 0===e?void 0:e.randomUUID())&&void 0!==n?n:"";if(window.ClientAnalytics){const{init:t,identify:e,PlatformName:n}=window.ClientAnalytics;t({isProd:!0,amplitudeApiKey:"c66737ad47ec354ced777935b0af822e",platform:n.web,projectName:"base_account_sdk",showDebugLogging:!1,version:"1.0.0",apiEndpoint:"https://cca-lite.coinbase.com"}),e({deviceId:r}),p.config.set({deviceId:r})}}},h=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"owner",type:"bytes"}],name:"AlreadyOwner",type:"error"},{inputs:[],name:"Initialized",type:"error"},{inputs:[{name:"owner",type:"bytes"}],name:"InvalidEthereumAddressOwner",type:"error"},{inputs:[{name:"key",type:"uint256"}],name:"InvalidNonceKey",type:"error"},{inputs:[{name:"owner",type:"bytes"}],name:"InvalidOwnerBytesLength",type:"error"},{inputs:[],name:"LastOwner",type:"error"},{inputs:[{name:"index",type:"uint256"}],name:"NoOwnerAtIndex",type:"error"},{inputs:[{name:"ownersRemaining",type:"uint256"}],name:"NotLastOwner",type:"error"},{inputs:[{name:"selector",type:"bytes4"}],name:"SelectorNotAllowed",type:"error"},{inputs:[],name:"Unauthorized",type:"error"},{inputs:[],name:"UnauthorizedCallContext",type:"error"},{inputs:[],name:"UpgradeFailed",type:"error"},{inputs:[{name:"index",type:"uint256"},{name:"expectedOwner",type:"bytes"},{name:"actualOwner",type:"bytes"}],name:"WrongOwnerAtIndex",type:"error"},{anonymous:!1,inputs:[{indexed:!0,name:"index",type:"uint256"},{indexed:!1,name:"owner",type:"bytes"}],name:"AddOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"index",type:"uint256"},{indexed:!1,name:"owner",type:"bytes"}],name:"RemoveOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"REPLAYABLE_NONCE_KEY",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"addOwnerAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],name:"addOwnerPublicKey",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"functionSelector",type:"bytes4"}],name:"canSkipChainIdValidation",outputs:[{name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"entryPoint",outputs:[{name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"executeBatch",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"calls",type:"bytes[]"}],name:"executeWithoutChainIdValidation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"getUserOpHashWithoutChainId",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"implementation",outputs:[{name:"$",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"owners",type:"bytes[]"}],name:"initialize",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"isOwnerAddress",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"bytes"}],name:"isOwnerBytes",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],name:"isOwnerPublicKey",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"result",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextOwnerIndex",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"index",type:"uint256"}],name:"ownerAtIndex",outputs:[{name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"ownerCount",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxiableUUID",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{name:"index",type:"uint256"},{name:"owner",type:"bytes"}],name:"removeLastOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"index",type:"uint256"},{name:"owner",type:"bytes"}],name:"removeOwnerAtIndex",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"removedOwnersCount",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"hash",type:"bytes32"}],name:"replaySafeHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{name:"newImplementation",type:"address"},{name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"},{name:"userOpHash",type:"bytes32"},{name:"missingAccountFunds",type:"uint256"}],name:"validateUserOp",outputs:[{name:"validationData",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],b=[{inputs:[{name:"implementation_",type:"address"}],stateMutability:"payable",type:"constructor"},{inputs:[],name:"OwnerRequired",type:"error"},{inputs:[{name:"owners",type:"bytes[]"},{name:"nonce",type:"uint256"}],name:"createAccount",outputs:[{name:"account",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{name:"owners",type:"bytes[]"},{name:"nonce",type:"uint256"}],name:"getAddress",outputs:[{name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"implementation",outputs:[{name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"initCodeHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],y={invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},g={userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902},v={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}},w="Unspecified error message.";function x(t,e=w){if(t&&Number.isInteger(t)){const e=t.toString();if(A(v,e))return v[e].message;if(k(t))return"Unspecified server error."}return e}function P(t,{shouldIncludeStack:e=!1}={}){const n={};if(t&&"object"==typeof t&&!Array.isArray(t)&&A(t,"code")&&function(t){if(!Number.isInteger(t))return!1;const e=t.toString();return!!v[e]||!!k(t)}(t.code)){const e=t;n.code=e.code,e.message&&"string"==typeof e.message?(n.message=e.message,A(e,"data")&&(n.data=e.data)):(n.message=x(n.code),n.data={originalError:I(t)})}else n.code=y.internal,n.message=E(t,"message")?t.message:w,n.data={originalError:I(t)};return e&&(n.stack=E(t,"stack")?t.stack:void 0),n}function k(t){return t>=-32099&&t<=-32e3}function I(t){return t&&"object"==typeof t&&!Array.isArray(t)?Object.assign({},t):t}function A(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function E(t,e){return"object"==typeof t&&null!==t&&e in t&&"string"==typeof t[e]}const O={parse:t=>T(y.parse,t),invalidRequest:t=>T(y.invalidRequest,t),invalidParams:t=>T(y.invalidParams,t),methodNotFound:t=>T(y.methodNotFound,t),internal:t=>T(y.internal,t),server:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return T(e,t)},invalidInput:t=>T(y.invalidInput,t),resourceNotFound:t=>T(y.resourceNotFound,t),resourceUnavailable:t=>T(y.resourceUnavailable,t),transactionRejected:t=>T(y.transactionRejected,t),methodNotSupported:t=>T(y.methodNotSupported,t),limitExceeded:t=>T(y.limitExceeded,t)},S={userRejectedRequest:t=>C(g.userRejectedRequest,t),unauthorized:t=>C(g.unauthorized,t),unsupportedMethod:t=>C(g.unsupportedMethod,t),disconnected:t=>C(g.disconnected,t),chainDisconnected:t=>C(g.chainDisconnected,t),unsupportedChain:t=>C(g.unsupportedChain,t),custom:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:e,message:n,data:r}=t;if(!n||"string"!=typeof n)throw new Error('"message" must be a nonempty string');return new j(e,n,r)}};function T(t,e){const[n,r]=B(e);return new N(t,n||x(t),r)}function C(t,e){const[n,r]=B(e);return new j(t,n||x(t),r)}function B(t){if(t){if("string"==typeof t)return[t];if("object"==typeof t&&!Array.isArray(t)){const{message:e,data:n}=t;if(e&&"string"!=typeof e)throw new Error("Must specify string message.");return[e||void 0,n]}}return[]}class N extends Error{constructor(t,e,n){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!e||"string"!=typeof e)throw new Error('"message" must be a nonempty string.');super(e),this.code=t,void 0!==n&&(this.data=n)}}class j extends N{constructor(t,e,n){if(!function(t){return Number.isInteger(t)&&t>=1e3&&t<=4999}(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,e,n)}}function U(t){return"object"==typeof t&&null!==t&&"code"in t&&"data"in t&&-32090===t.code&&"object"==typeof t.data&&null!==t.data&&"type"in t.data&&"INSUFFICIENT_FUNDS"===t.data.type}function M(t){return"object"==typeof t&&null!==t&&"details"in t}function R(t,e,n){if(null==t)throw null!=e?e:O.invalidParams({message:"value must be present",data:t})}function F(t,e){if(!Array.isArray(t))throw O.invalidParams({message:null!=e?e:"value must be an array",data:t})}const{checkCrossOriginOpenerPolicy:_,getCrossOriginOpenerPolicy:z}=(()=>{let t;return{getCrossOriginOpenerPolicy:()=>void 0===t?"undefined":t,checkCrossOriginOpenerPolicy:async()=>{if("undefined"!=typeof window)try{const e=`${window.location.origin}${window.location.pathname}`,n=await fetch(e,{method:"HEAD"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const r=n.headers.get("Cross-Origin-Opener-Policy");t=null!=r?r:"null","same-origin"===t&&console.error("Base Account SDK requires the Cross-Origin-Opener-Policy header to not be set to 'same-origin'. This is to ensure that the SDK can communicate with the Base Account app.\n\nPlease see https://docs.base.org/smart-wallet/quickstart#cross-origin-opener-policy for more information.")}catch(e){console.error("Error checking Cross-Origin-Opener-Policy:",e.message),t="error"}else t="non-browser-env"}}})();function D(t){if("function"!=typeof t)throw new Error("toAccount is not a function")}let L=class t extends Error{constructor(e,n={}){const r=n.cause instanceof t?n.cause.details:n.cause?.message?n.cause.message:n.details,a=n.cause instanceof t&&n.cause.docsPath||n.docsPath;super([e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...r?[`Details: ${r}`]:[],"Version: abitype@1.1.0"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=a,this.metaMessages=n.metaMessages,this.shortMessage=e}};function G(t,e){const n=t.exec(e);return n?.groups}const q=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,H=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,V=/^\(.+?\).*?$/,K=/^tuple(?<array>(\[(\d*)\])*)$/;function W(t){let e=t.type;if(K.test(t.type)&&"components"in t){e="(";const n=t.components.length;for(let r=0;r<n;r++){e+=W(t.components[r]),r<n-1&&(e+=", ")}const r=G(K,t.type);return e+=`)${r?.array??""}`,W({...t,type:e})}return"indexed"in t&&t.indexed&&(e=`${e} indexed`),t.name?`${e} ${t.name}`:e}function Z(t){let e="";const n=t.length;for(let r=0;r<n;r++){e+=W(t[r]),r!==n-1&&(e+=", ")}return e}const J=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;const Y=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;const Q=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;const X=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function $(t){return X.test(t)}function tt(t){return G(X,t)}const et=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;const nt=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;const rt=/^receive\(\) external payable$/;const at=new Set(["indexed"]),st=new Set(["calldata","memory","storage"]);let it=class extends L{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}},ot=class extends L{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}},ct=class extends L{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}},ut=class extends L{constructor({param:t,name:e}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${e}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}},dt=class extends L{constructor({param:t,type:e,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${e?` in "${e}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}},lt=class extends L{constructor({param:t,type:e,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${e?` in "${e}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}},ft=class extends L{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}},pt=class extends L{constructor({signature:t,type:e}){super(`Invalid ${e} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}},mt=class extends L{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}},ht=class extends L{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}},bt=class extends L{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}},yt=class extends L{constructor({current:t,depth:e}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${e>0?"opening":"closing"} parentheses.`],details:`Depth "${e}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}};const gt=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function vt(t,e={}){if(function(t){return Q.test(t)}(t))return function(t,e={}){const n=function(t){return G(Q,t)}(t);if(!n)throw new pt({signature:t,type:"function"});const r=It(n.parameters),a=[],s=r.length;for(let t=0;t<s;t++)a.push(kt(r[t],{modifiers:st,structs:e,type:"function"}));const i=[];if(n.returns){const t=It(n.returns),r=t.length;for(let n=0;n<r;n++)i.push(kt(t[n],{modifiers:st,structs:e,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:a,outputs:i}}(t,e);if(function(t){return Y.test(t)}(t))return function(t,e={}){const n=function(t){return G(Y,t)}(t);if(!n)throw new pt({signature:t,type:"event"});const r=It(n.parameters),a=[],s=r.length;for(let t=0;t<s;t++)a.push(kt(r[t],{modifiers:at,structs:e,type:"event"}));return{name:n.name,type:"event",inputs:a}}(t,e);if(function(t){return J.test(t)}(t))return function(t,e={}){const n=function(t){return G(J,t)}(t);if(!n)throw new pt({signature:t,type:"error"});const r=It(n.parameters),a=[],s=r.length;for(let t=0;t<s;t++)a.push(kt(r[t],{structs:e,type:"error"}));return{name:n.name,type:"error",inputs:a}}(t,e);if(function(t){return et.test(t)}(t))return function(t,e={}){const n=function(t){return G(et,t)}(t);if(!n)throw new pt({signature:t,type:"constructor"});const r=It(n.parameters),a=[],s=r.length;for(let t=0;t<s;t++)a.push(kt(r[t],{structs:e,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:a}}(t,e);if(function(t){return nt.test(t)}(t))return function(t){const e=function(t){return G(nt,t)}(t);if(!e)throw new pt({signature:t,type:"fallback"});return{type:"fallback",stateMutability:e.stateMutability??"nonpayable"}}(t);if(function(t){return rt.test(t)}(t))return{type:"receive",stateMutability:"payable"};throw new mt({signature:t})}const wt=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,xt=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Pt=/^u?int$/;function kt(t,e){const n=function(t,e,n){let r="";if(n)for(const t of Object.entries(n)){if(!t)continue;let e="";for(const n of t[1])e+=`[${n.type}${n.name?`:${n.name}`:""}]`;r+=`(${t[0]}{${e}})`}return e?`${e}:${t}${r}`:t}(t,e?.type,e?.structs);if(gt.has(n))return gt.get(n);const r=V.test(t),a=G(r?xt:wt,t);if(!a)throw new ct({param:t});if(a.name&&function(t){return"address"===t||"bool"===t||"function"===t||"string"===t||"tuple"===t||q.test(t)||H.test(t)||Et.test(t)}(a.name))throw new ut({param:t,name:a.name});const s=a.name?{name:a.name}:{},i="indexed"===a.modifier?{indexed:!0}:{},o=e?.structs??{};let c,u={};if(r){c="tuple";const t=It(a.type),e=[],n=t.length;for(let r=0;r<n;r++)e.push(kt(t[r],{structs:o}));u={components:e}}else if(a.type in o)c="tuple",u={components:o[a.type]};else if(Pt.test(a.type))c=`${a.type}256`;else if("address payable"===a.type)c="address";else if(c=a.type,"struct"!==e?.type&&!At(c))throw new ot({type:c});if(a.modifier){if(!e?.modifiers?.has?.(a.modifier))throw new dt({param:t,type:e?.type,modifier:a.modifier});if(st.has(a.modifier)&&!function(t,e){return e||"bytes"===t||"string"===t||"tuple"===t}(c,!!a.array))throw new lt({param:t,type:e?.type,modifier:a.modifier})}const d={type:`${c}${a.array??""}`,...s,...i,...u};return gt.set(n,d),d}function It(t,e=[],n="",r=0){const a=t.trim().length;for(let s=0;s<a;s++){const a=t[s],i=t.slice(s+1);switch(a){case",":return 0===r?It(i,[...e,n.trim()]):It(i,e,`${n}${a}`,r);case"(":return It(i,e,`${n}${a}`,r+1);case")":return It(i,e,`${n}${a}`,r-1);default:return It(i,e,`${n}${a}`,r)}}if(""===n)return e;if(0!==r)throw new yt({current:n,depth:r});return e.push(n.trim()),e}function At(t){return"address"===t||"bool"===t||"function"===t||"string"===t||q.test(t)||H.test(t)}const Et=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;const Ot=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function St(t,e,n=new Set){const r=[],a=t.length;for(let s=0;s<a;s++){const a=t[s];if(V.test(a.type))r.push(a);else{const t=G(Ot,a.type);if(!t?.type)throw new ft({abiParameter:a});const{array:s,type:i}=t;if(i in e){if(n.has(i))throw new bt({type:i});r.push({...a,type:`tuple${s??""}`,components:St(e[i]??[],e,new Set([...n,i]))})}else{if(!At(i))throw new it({type:i});r.push(a)}}}return r}function Tt(t){const e=function(t){const e={},n=t.length;for(let r=0;r<n;r++){const n=t[r];if(!$(n))continue;const a=tt(n);if(!a)throw new pt({signature:n,type:"struct"});const s=a.properties.split(";"),i=[],o=s.length;for(let t=0;t<o;t++){const e=s[t].trim();if(!e)continue;const n=kt(e,{type:"struct"});i.push(n)}if(!i.length)throw new ht({signature:n});e[a.name]=i}const r={},a=Object.entries(e),s=a.length;for(let t=0;t<s;t++){const[n,s]=a[t];r[n]=St(s,e)}return r}(t),n=[],r=t.length;for(let a=0;a<r;a++){const r=t[a];$(r)||n.push(vt(r,e))}return n}function Ct(t,e,n){const r=t[e.name];if("function"==typeof r)return r;const a=t[n];return"function"==typeof a?a:n=>e(t,n)}function Bt(t,{includeName:e=!1}={}){if("function"!==t.type&&"event"!==t.type&&"error"!==t.type)throw new ue(t.type);return`${t.name}(${Nt(t.inputs,{includeName:e})})`}function Nt(t,{includeName:e=!1}={}){return t?t.map(t=>function(t,{includeName:e}){if(t.type.startsWith("tuple"))return`(${Nt(t.components,{includeName:e})})${t.type.slice(5)}`;return t.type+(e&&t.name?` ${t.name}`:"")}(t,{includeName:e})).join(e?", ":","):""}function jt(t,{strict:e=!0}={}){return!!t&&("string"==typeof t&&(e?/^0x[0-9a-fA-F]*$/.test(t):t.startsWith("0x")))}function Ut(t){return jt(t,{strict:!1})?Math.ceil((t.length-2)/2):t.length}const Mt="2.38.4";let Rt=({docsBaseUrl:t,docsPath:e="",docsSlug:n})=>e?`${t??"https://viem.sh"}${e}${n?`#${n}`:""}`:void 0,Ft=`viem@${Mt}`,_t=class t extends Error{constructor(e,n={}){const r=n.cause instanceof t?n.cause.details:n.cause?.message?n.cause.message:n.details,a=n.cause instanceof t&&n.cause.docsPath||n.docsPath,s=Rt?.({...n,docsPath:a});super([e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...s?[`Docs: ${s}`]:[],...r?[`Details: ${r}`]:[],...Ft?[`Version: ${Ft}`]:[]].join("\n"),n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=a,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=e,this.version=Mt}walk(t){return zt(this,t)}};function zt(t,e){return e?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?zt(t.cause,e):e?null:t}class Dt extends _t{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join("\n"),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class Lt extends _t{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join("\n"),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class Gt extends _t{constructor({data:t,params:e,size:n}){super([`Data size of ${n} bytes is too small for given parameters.`].join("\n"),{metaMessages:[`Params: (${Nt(e,{includeName:!0})})`,`Data: ${t} (${n} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=e,this.size=n}}class qt extends _t{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class Ht extends _t{constructor({expectedLength:t,givenLength:e,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${t}`,`Given length: ${e}`].join("\n"),{name:"AbiEncodingArrayLengthMismatchError"})}}class Vt extends _t{constructor({expectedSize:t,value:e}){super(`Size of bytes "${e}" (bytes${Ut(e)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class Kt extends _t{constructor({expectedLength:t,givenLength:e}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${e}`].join("\n"),{name:"AbiEncodingLengthMismatchError"})}}class Wt extends _t{constructor(t,{docsPath:e}){super([`Arguments (\`args\`) were provided to "${t}", but "${t}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join("\n"),{docsPath:e,name:"AbiErrorInputsNotFoundError"})}}class Zt extends _t{constructor(t,{docsPath:e}={}){super([`Error ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join("\n"),{docsPath:e,name:"AbiErrorNotFoundError"})}}class Jt extends _t{constructor(t,{docsPath:e}){super([`Encoded error signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`].join("\n"),{docsPath:e,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class Yt extends _t{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t,name:"AbiEventSignatureEmptyTopicsError"})}}class Qt extends _t{constructor(t,{docsPath:e}){super([`Encoded event signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join("\n"),{docsPath:e,name:"AbiEventSignatureNotFoundError"})}}class Xt extends _t{constructor(t,{docsPath:e}={}){super([`Event ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join("\n"),{docsPath:e,name:"AbiEventNotFoundError"})}}class $t extends _t{constructor(t,{docsPath:e}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:e,name:"AbiFunctionNotFoundError"})}}class te extends _t{constructor(t,{docsPath:e}){super([`Function "${t}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:e,name:"AbiFunctionOutputsNotFoundError"})}}class ee extends _t{constructor(t,{docsPath:e}){super([`Encoded function signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join("\n"),{docsPath:e,name:"AbiFunctionSignatureNotFoundError"})}}class ne extends _t{constructor(t,e){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${Bt(t.abiItem)}\`, and`,`\`${e.type}\` in \`${Bt(e.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}let re=class extends _t{constructor({expectedSize:t,givenSize:e}){super(`Expected bytes${t}, got bytes${e}.`,{name:"BytesSizeMismatchError"})}};class ae extends _t{constructor({abiItem:t,data:e,params:n,size:r}){super([`Data size of ${r} bytes is too small for non-indexed event parameters.`].join("\n"),{metaMessages:[`Params: (${Nt(n,{includeName:!0})})`,`Data: ${e} (${r} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=e,this.params=n,this.size=r}}class se extends _t{constructor({abiItem:t,param:e}){super([`Expected a topic for indexed event parameter${e.name?` "${e.name}"`:""} on event "${Bt(t,{includeName:!0})}".`].join("\n"),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class ie extends _t{constructor(t,{docsPath:e}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:e,name:"InvalidAbiEncodingType"})}}class oe extends _t{constructor(t,{docsPath:e}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:e,name:"InvalidAbiDecodingType"})}}let ce=class extends _t{constructor(t){super([`Value "${t}" is not a valid array.`].join("\n"),{name:"InvalidArrayError"})}};class ue extends _t{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n"),{name:"InvalidDefinitionTypeError"})}}class de extends _t{constructor(t){super(`Type "${t}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}class le extends _t{constructor(t){super(`Filter type "${t}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}let fe=class extends _t{constructor({offset:t,position:e,size:n}){super(`Slice ${"start"===e?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}},pe=class extends _t{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${e}).`,{name:"SizeExceedsPaddingSizeError"})}};class me extends _t{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${e} ${n} long, but is ${t} ${n} long.`,{name:"InvalidBytesLengthError"})}}function he(t,{dir:e,size:n=32}={}){return"string"==typeof t?be(t,{dir:e,size:n}):function(t,{dir:e,size:n=32}={}){if(null===n)return t;if(t.length>n)throw new pe({size:t.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let a=0;a<n;a++){const s="right"===e;r[s?a:n-a-1]=t[s?a:t.length-a-1]}return r}(t,{dir:e,size:n})}function be(t,{dir:e,size:n=32}={}){if(null===n)return t;const r=t.replace("0x","");if(r.length>2*n)throw new pe({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r["right"===e?"padEnd":"padStart"](2*n,"0")}`}let ye=class extends _t{constructor({max:t,min:e,signed:n,size:r,value:a}){super(`Number "${a}" is not in safe ${r?`${8*r}-bit ${n?"signed":"unsigned"} `:""}integer range ${t?`(${e} to ${t})`:`(above ${e})`}`,{name:"IntegerOutOfRangeError"})}},ge=class extends _t{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}};class ve extends _t{constructor(t){super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}let we=class extends _t{constructor({givenSize:t,maxSize:e}){super(`Size cannot exceed ${e} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}};function xe(t,{dir:e="left"}={}){let n="string"==typeof t?t.replace("0x",""):t,r=0;for(let t=0;t<n.length-1&&"0"===n["left"===e?t:n.length-t-1].toString();t++)r++;return n="left"===e?n.slice(r):n.slice(0,n.length-r),"string"==typeof t?(1===n.length&&"right"===e&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}function Pe(t,{size:e}){if(Ut(t)>e)throw new we({givenSize:Ut(t),maxSize:e})}function ke(t,e={}){const{signed:n}=e;e.size&&Pe(t,{size:e.size});const r=BigInt(t);if(!n)return r;const a=(t.length-2)/2;return r<=(1n<<8n*BigInt(a)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*a,"f")}`)-1n}function Ie(t,e={}){return Number(ke(t,e))}function Ae(t,e={}){let n=Fe(t);return e.size&&(Pe(n,{size:e.size}),n=xe(n,{dir:"right"})),(new TextDecoder).decode(n)}const Ee=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function Oe(t,e={}){return"number"==typeof t||"bigint"==typeof t?Ce(t,e):"string"==typeof t?Ne(t,e):"boolean"==typeof t?Se(t,e):Te(t,e)}function Se(t,e={}){const n=`0x${Number(t)}`;return"number"==typeof e.size?(Pe(n,{size:e.size}),he(n,{size:e.size})):n}function Te(t,e={}){let n="";for(let e=0;e<t.length;e++)n+=Ee[t[e]];const r=`0x${n}`;return"number"==typeof e.size?(Pe(r,{size:e.size}),he(r,{dir:"right",size:e.size})):r}function Ce(t,e={}){const{signed:n,size:r}=e,a=BigInt(t);let s;r?s=n?(1n<<8n*BigInt(r)-1n)-1n:2n**(8n*BigInt(r))-1n:"number"==typeof t&&(s=BigInt(Number.MAX_SAFE_INTEGER));const i="bigint"==typeof s&&n?-s-1n:0;if(s&&a>s||a<i){const e="bigint"==typeof t?"n":"";throw new ye({max:s?`${s}${e}`:void 0,min:`${i}${e}`,signed:n,size:r,value:`${t}${e}`})}const o=`0x${(n&&a<0?(1n<<BigInt(8*r))+BigInt(a):a).toString(16)}`;return r?he(o,{size:r}):o}const Be=new TextEncoder;function Ne(t,e={}){return Te(Be.encode(t),e)}const je=new TextEncoder;function Ue(t,e={}){return"number"==typeof t||"bigint"==typeof t?function(t,e){const n=Ce(t,e);return Fe(n)}(t,e):"boolean"==typeof t?function(t,e={}){const n=new Uint8Array(1);if(n[0]=Number(t),"number"==typeof e.size)return Pe(n,{size:e.size}),he(n,{size:e.size});return n}(t,e):jt(t)?Fe(t,e):_e(t,e)}const Me={zero:48,nine:57,A:65,F:70,a:97,f:102};function Re(t){return t>=Me.zero&&t<=Me.nine?t-Me.zero:t>=Me.A&&t<=Me.F?t-(Me.A-10):t>=Me.a&&t<=Me.f?t-(Me.a-10):void 0}function Fe(t,e={}){let n=t;e.size&&(Pe(n,{size:e.size}),n=he(n,{dir:"right",size:e.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const a=r.length/2,s=new Uint8Array(a);for(let t=0,e=0;t<a;t++){const n=Re(r.charCodeAt(e++)),a=Re(r.charCodeAt(e++));if(void 0===n||void 0===a)throw new _t(`Invalid byte sequence ("${r[e-2]}${r[e-1]}" in "${r}").`);s[t]=16*n+a}return s}function _e(t,e={}){const n=je.encode(t);return"number"==typeof e.size?(Pe(n,{size:e.size}),he(n,{dir:"right",size:e.size})):n}const ze=BigInt(2**32-1),De=BigInt(32);function Le(t,e=!1){return e?{h:Number(t&ze),l:Number(t>>De&ze)}:{h:0|Number(t>>De&ze),l:0|Number(t&ze)}}function Ge(t,e=!1){const n=t.length;let r=new Uint32Array(n),a=new Uint32Array(n);for(let s=0;s<n;s++){const{h:n,l:i}=Le(t[s],e);[r[s],a[s]]=[n,i]}return[r,a]}const qe=(t,e,n)=>t>>>n,He=(t,e,n)=>t<<32-n|e>>>n,Ve=(t,e,n)=>t>>>n|e<<32-n,Ke=(t,e,n)=>t<<32-n|e>>>n,We=(t,e,n)=>t<<64-n|e>>>n-32,Ze=(t,e,n)=>t>>>n-32|e<<64-n;function Je(t,e,n,r){const a=(e>>>0)+(r>>>0);return{h:t+n+(a/2**32|0)|0,l:0|a}}const Ye=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0),Qe=(t,e,n,r)=>e+n+r+(t/2**32|0)|0,Xe=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0),$e=(t,e,n,r,a)=>e+n+r+a+(t/2**32|0)|0,tn=(t,e,n,r,a)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(a>>>0),en=(t,e,n,r,a,s)=>e+n+r+a+s+(t/2**32|0)|0,nn="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function rn(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function an(t,...e){if(!
|
|
2
|
-
/*!
|
|
3
|
-
function(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function sn(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function on(t,e){an(t);const n=e.outputLen;if(t.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function cn(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function un(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function dn(t,e){return t<<32-e|t>>>e}function ln(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}const fn=(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])()?t=>t:function(t){for(let e=0;e<t.length;e++)t[e]=ln(t[e]);return t};function pn(t){return"string"==typeof t&&(t=function(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))}(t)),an(t),t}class mn{}function hn(t){const e=e=>t().update(pn(e)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function bn(t=32){if(nn&&"function"==typeof nn.getRandomValues)return nn.getRandomValues(new Uint8Array(t));if(nn&&"function"==typeof nn.randomBytes)return Uint8Array.from(nn.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}const yn=BigInt(0),gn=BigInt(1),vn=BigInt(2),wn=BigInt(7),xn=BigInt(256),Pn=BigInt(113),kn=[],In=[],An=[];for(let t=0,e=gn,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],kn.push(2*(5*r+n)),In.push((t+1)*(t+2)/2%64);let a=yn;for(let t=0;t<7;t++)e=(e<<gn^(e>>wn)*Pn)%xn,e&vn&&(a^=gn<<(gn<<BigInt(t))-gn);An.push(a)}const En=Ge(An,!0),On=En[0],Sn=En[1],Tn=(t,e,n)=>n>32?((t,e,n)=>e<<n-32|t>>>64-n)(t,e,n):((t,e,n)=>t<<n|e>>>32-n)(t,e,n),Cn=(t,e,n)=>n>32?((t,e,n)=>t<<n-32|e>>>64-n)(t,e,n):((t,e,n)=>e<<n|t>>>32-n)(t,e,n);class Bn extends mn{constructor(t,e,n,r=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=e,this.outputLen=n,this.enableXOF=r,this.rounds=a,rn(n),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");var s;this.state=new Uint8Array(200),this.state32=(s=this.state,new Uint32Array(s.buffer,s.byteOffset,Math.floor(s.byteLength/4)))}clone(){return this._cloneInto()}keccak(){fn(this.state32),function(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let e=0;e<10;e++)n[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){const r=(e+8)%10,a=(e+2)%10,s=n[a],i=n[a+1],o=Tn(s,i,1)^n[r],c=Cn(s,i,1)^n[r+1];for(let n=0;n<50;n+=10)t[e+n]^=o,t[e+n+1]^=c}let e=t[2],a=t[3];for(let n=0;n<24;n++){const r=In[n],s=Tn(e,a,r),i=Cn(e,a,r),o=kn[n];e=t[o],a=t[o+1],t[o]=s,t[o+1]=i}for(let e=0;e<50;e+=10){for(let r=0;r<10;r++)n[r]=t[e+r];for(let r=0;r<10;r++)t[e+r]^=~n[(r+2)%10]&n[(r+4)%10]}t[0]^=On[r],t[1]^=Sn[r]}cn(n)}(this.state32,this.rounds),fn(this.state32),this.posOut=0,this.pos=0}update(t){sn(this),an(t=pn(t));const{blockLen:e,state:n}=this,r=t.length;for(let a=0;a<r;){const s=Math.min(e-this.pos,r-a);for(let e=0;e<s;e++)n[this.pos++]^=t[a++];this.pos===e&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:e,pos:n,blockLen:r}=this;t[n]^=e,128&e&&n===r-1&&this.keccak(),t[r-1]^=128,this.keccak()}writeInto(t){sn(this,!1),an(t),this.finish();const e=this.state,{blockLen:n}=this;for(let r=0,a=t.length;r<a;){this.posOut>=n&&this.keccak();const s=Math.min(n-this.posOut,a-r);t.set(e.subarray(this.posOut,this.posOut+s),r),this.posOut+=s,r+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return rn(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(on(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,cn(this.state)}_cloneInto(t){const{blockLen:e,suffix:n,outputLen:r,rounds:a,enableXOF:s}=this;return t||(t=new Bn(e,n,r,s,a)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=n,t.outputLen=r,t.enableXOF=s,t.destroyed=this.destroyed,t}}const Nn=(()=>{return t=1,e=136,n=32,hn(()=>new Bn(e,t,n));var t,e,n})();function jn(t,e){const n=e||"hex",r=Nn(jt(t,{strict:!1})?Ue(t):t);return"bytes"===n?r:Oe(r)}function Un(t){return jn(Ue(t))}const Mn=t=>{var e;return function(t){let e=!0,n="",r=0,a="",s=!1;for(let i=0;i<t.length;i++){const o=t[i];if(["(",")",","].includes(o)&&(e=!0),"("===o&&r++,")"===o&&r--,e)if(0!==r)" "!==o?(a+=o,n+=o):","!==t[i-1]&&","!==n&&",("!==n&&(n="",e=!1);else if(" "===o&&["event","function",""].includes(a))a="";else if(a+=o,")"===o){s=!0;break}}if(!s)throw new _t("Unable to normalize signature.");return a}("string"==typeof t?t:"function"===(e=t).type?`function ${e.name}(${Z(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${Z(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${Z(e.inputs)})`:"error"===e.type?`error ${e.name}(${Z(e.inputs)})`:"constructor"===e.type?`constructor(${Z(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback() external"+("payable"===e.stateMutability?" payable":""):"receive() external payable")};function Rn(t){return Un(Mn(t))}const Fn=Rn;let _n=class extends _t{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}},zn=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const e=super.get(t);return super.has(t)&&void 0!==e&&(this.delete(t),super.set(t,e)),e}set(t,e){if(super.set(t,e),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}};const Dn=new zn(8192);function Ln(t,e){if(Dn.has(`${t}.${e}`))return Dn.get(`${t}.${e}`);const n=t.substring(2).toLowerCase(),r=jn(_e(n),"bytes"),a=n.split("");for(let t=0;t<40;t+=2)r[t>>1]>>4>=8&&a[t]&&(a[t]=a[t].toUpperCase()),(15&r[t>>1])>=8&&a[t+1]&&(a[t+1]=a[t+1].toUpperCase());const s=`0x${a.join("")}`;return Dn.set(`${t}.${e}`,s),s}function Gn(t,e){if(!Vn(t,{strict:!1}))throw new _n({address:t});return Ln(t,e)}const qn=/^0x[a-fA-F0-9]{40}$/,Hn=new zn(8192);function Vn(t,e){const{strict:n=!0}=e??{},r=`${t}.${n}`;if(Hn.has(r))return Hn.get(r);const a=!(!qn.test(t)||t.toLowerCase()!==t&&n&&Ln(t)!==t);return Hn.set(r,a),a}function Kn(t){return"string"==typeof t[0]?Wn(t):function(t){let e=0;for(const n of t)e+=n.length;const n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(t)}function Wn(t){return`0x${t.reduce((t,e)=>t+e.replace("0x",""),"")}`}function Zn(t,e,n,{strict:r}={}){return jt(t,{strict:!1})?Xn(t,e,n,{strict:r}):Qn(t,e,n,{strict:r})}function Jn(t,e){if("number"==typeof e&&e>0&&e>Ut(t)-1)throw new fe({offset:e,position:"start",size:Ut(t)})}function Yn(t,e,n){if("number"==typeof e&&"number"==typeof n&&Ut(t)!==n-e)throw new fe({offset:n,position:"end",size:Ut(t)})}function Qn(t,e,n,{strict:r}={}){Jn(t,e);const a=t.slice(e,n);return r&&Yn(a,e,n),a}function Xn(t,e,n,{strict:r}={}){Jn(t,e);const a=`0x${t.replace("0x","").slice(2*(e??0),2*(n??t.length))}`;return r&&Yn(a,e,n),a}const $n=/^(.*)\[([0-9]*)\]$/,tr=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,er=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function nr(t,e){if(t.length!==e.length)throw new Kt({expectedLength:t.length,givenLength:e.length});const n=function({params:t,values:e}){const n=[];for(let r=0;r<t.length;r++)n.push(rr({param:t[r],value:e[r]}));return n}({params:t,values:e}),r=ar(n);return 0===r.length?"0x":r}function rr({param:t,value:e}){const n=sr(t.type);if(n){const[r,a]=n;return function(t,{length:e,param:n}){const r=null===e;if(!Array.isArray(t))throw new ce(t);if(!r&&t.length!==e)throw new Ht({expectedLength:e,givenLength:t.length,type:`${n.type}[${e}]`});let a=!1;const s=[];for(let e=0;e<t.length;e++){const r=rr({param:n,value:t[e]});r.dynamic&&(a=!0),s.push(r)}if(r||a){const t=ar(s);if(r){const e=Ce(s.length,{size:32});return{dynamic:!0,encoded:s.length>0?Kn([e,t]):e}}if(a)return{dynamic:!0,encoded:t}}return{dynamic:!1,encoded:Kn(s.map(({encoded:t})=>t))}}(e,{length:r,param:{...t,type:a}})}if("tuple"===t.type)return function(t,{param:e}){let n=!1;const r=[];for(let a=0;a<e.components.length;a++){const s=e.components[a],i=rr({param:s,value:t[Array.isArray(t)?a:s.name]});r.push(i),i.dynamic&&(n=!0)}return{dynamic:n,encoded:n?ar(r):Kn(r.map(({encoded:t})=>t))}}(e,{param:t});if("address"===t.type)return function(t){if(!Vn(t))throw new _n({address:t});return{dynamic:!1,encoded:be(t.toLowerCase())}}(e);if("bool"===t.type)return function(t){if("boolean"!=typeof t)throw new _t(`Invalid boolean value: "${t}" (type: ${typeof t}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:be(Se(t))}}(e);if(t.type.startsWith("uint")||t.type.startsWith("int")){const n=t.type.startsWith("int"),[,,r="256"]=er.exec(t.type)??[];return function(t,{signed:e,size:n=256}){if("number"==typeof n){const r=2n**(BigInt(n)-(e?1n:0n))-1n,a=e?-r-1n:0n;if(t>r||t<a)throw new ye({max:r.toString(),min:a.toString(),signed:e,size:n/8,value:t.toString()})}return{dynamic:!1,encoded:Ce(t,{size:32,signed:e})}}(e,{signed:n,size:Number(r)})}if(t.type.startsWith("bytes"))return function(t,{param:e}){const[,n]=e.type.split("bytes"),r=Ut(t);if(!n){let e=t;return r%32!=0&&(e=be(e,{dir:"right",size:32*Math.ceil((t.length-2)/2/32)})),{dynamic:!0,encoded:Kn([be(Ce(r,{size:32})),e])}}if(r!==Number.parseInt(n,10))throw new Vt({expectedSize:Number.parseInt(n,10),value:t});return{dynamic:!1,encoded:be(t,{dir:"right"})}}(e,{param:t});if("string"===t.type)return function(t){const e=Ne(t),n=Math.ceil(Ut(e)/32),r=[];for(let t=0;t<n;t++)r.push(be(Zn(e,32*t,32*(t+1)),{dir:"right"}));return{dynamic:!0,encoded:Kn([be(Ce(Ut(e),{size:32})),...r])}}(e);throw new ie(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function ar(t){let e=0;for(let n=0;n<t.length;n++){const{dynamic:r,encoded:a}=t[n];e+=r?32:Ut(a)}const n=[],r=[];let a=0;for(let s=0;s<t.length;s++){const{dynamic:i,encoded:o}=t[s];i?(n.push(Ce(e+a,{size:32})),r.push(o),a+=Ut(o)):n.push(o)}return Kn([...n,...r])}function sr(t){const e=t.match(/^(.*)\[(\d+)?\]$/);return e?[e[2]?Number(e[2]):null,e[1]]:void 0}const ir=t=>Zn(Rn(t),0,4);function or(t){const{abi:e,args:n=[],name:r}=t,a=jt(r,{strict:!1}),s=e.filter(t=>a?"function"===t.type?ir(t)===r:"event"===t.type&&Fn(t)===r:"name"in t&&t.name===r);if(0===s.length)return;if(1===s.length)return s[0];let i;for(const t of s){if(!("inputs"in t))continue;if(!n||0===n.length){if(!t.inputs||0===t.inputs.length)return t;continue}if(!t.inputs)continue;if(0===t.inputs.length)continue;if(t.inputs.length!==n.length)continue;const e=n.every((e,n)=>{const r="inputs"in t&&t.inputs[n];return!!r&&cr(e,r)});if(e){if(i&&"inputs"in i&&i.inputs){const e=ur(t.inputs,i.inputs,n);if(e)throw new ne({abiItem:t,type:e[0]},{abiItem:i,type:e[1]})}i=t}}return i||s[0]}function cr(t,e){const n=typeof t,r=e.type;switch(r){case"address":return Vn(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:return"tuple"===r&&"components"in e?Object.values(e.components).every((e,n)=>cr(Object.values(t)[n],e)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?"number"===n||"bigint"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?"string"===n||t instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)&&(Array.isArray(t)&&t.every(t=>cr(t,{...e,type:r.replace(/(\[[0-9]{0,}\])$/,"")})))}}function ur(t,e,n){for(const r in t){const a=t[r],s=e[r];if("tuple"===a.type&&"tuple"===s.type&&"components"in a&&"components"in s)return ur(a.components,s.components,n[r]);const i=[a.type,s.type];if((()=>!(!i.includes("address")||!i.includes("bytes20"))||(i.includes("address")&&i.includes("string")||!(!i.includes("address")||!i.includes("bytes")))&&Vn(n[r],{strict:!1}))())return i}}const dr="/docs/contract/encodeEventTopics";function lr(t){const{abi:e,eventName:n,args:r}=t;let a=e[0];if(n){const t=or({abi:e,name:n});if(!t)throw new Xt(n,{docsPath:dr});a=t}if("event"!==a.type)throw new Xt(void 0,{docsPath:dr});const s=Bt(a),i=Fn(s);let o=[];if(r&&"inputs"in a){const t=a.inputs?.filter(t=>"indexed"in t&&t.indexed),e=Array.isArray(r)?r:Object.values(r).length>0?t?.map(t=>r[t.name])??[]:[];e.length>0&&(o=t?.map((t,n)=>Array.isArray(e[n])?e[n].map((r,a)=>fr({param:t,value:e[n][a]})):void 0!==e[n]&&null!==e[n]?fr({param:t,value:e[n]}):null)??[])}return[i,...o]}function fr({param:t,value:e}){if("string"===t.type||"bytes"===t.type)return jn(Ue(e));if("tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))throw new le(t.type);return nr([t],[e])}function pr(t,{method:e}){const n={};return"fallback"===t.transport.type&&t.transport.onResponse?.(({method:t,response:r,status:a,transport:s})=>{"success"===a&&e===t&&(n[r]=s.request)}),e=>n[e]||t.request}async function mr(t,e){const{address:n,abi:r,args:a,eventName:s,fromBlock:i,strict:o,toBlock:c}=e,u=pr(t,{method:"eth_newFilter"}),d=s?lr({abi:r,args:a,eventName:s}):void 0,l=await t.request({method:"eth_newFilter",params:[{address:n,fromBlock:"bigint"==typeof i?Ce(i):i,toBlock:"bigint"==typeof c?Ce(c):c,topics:d}]});return{abi:r,args:a,eventName:s,id:l,request:u(l),strict:Boolean(o),type:"event"}}function hr(t){return"string"==typeof t?{address:t,type:"json-rpc"}:t}const br="/docs/contract/encodeFunctionData";function yr(t){const{args:e}=t,{abi:n,functionName:r}=1===t.abi.length&&t.functionName?.startsWith("0x")?t:function(t){const{abi:e,args:n,functionName:r}=t;let a=e[0];if(r){const t=or({abi:e,args:n,name:r});if(!t)throw new $t(r,{docsPath:br});a=t}if("function"!==a.type)throw new $t(void 0,{docsPath:br});return{abi:[a],functionName:ir(Bt(a))}}(t),a=n[0];return Wn([r,("inputs"in a&&a.inputs?nr(a.inputs,e??[]):void 0)??"0x"])}const gr={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},vr={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},wr={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};let xr=class extends _t{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},Pr=class extends _t{constructor({length:t,position:e}){super(`Position \`${e}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},kr=class extends _t{constructor({count:t,limit:e}){super(`Recursive read limit of \`${e}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};const Ir={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new kr({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(t){if(t<0||t>this.bytes.length-1)throw new Pr({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new xr({offset:t});const e=this.position-t;this.assertPosition(e),this.position=e},getReadCount(t){return this.positionReadCount.get(t||this.position)||0},incrementPosition(t){if(t<0)throw new xr({offset:t});const e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){const n=e??this.position;return this.assertPosition(n+t-1),this.bytes.subarray(n,n+t)},inspectUint8(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){const e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){const e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){const e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,255&t),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const t=this.inspectByte();return this.position++,t},readBytes(t,e){this.assertReadLimit(),this._touch();const n=this.inspectBytes(t);return this.position+=e??t,n},readUint8(){this.assertReadLimit(),this._touch();const t=this.inspectUint8();return this.position+=1,t},readUint16(){this.assertReadLimit(),this._touch();const t=this.inspectUint16();return this.position+=2,t},readUint24(){this.assertReadLimit(),this._touch();const t=this.inspectUint24();return this.position+=3,t},readUint32(){this.assertReadLimit(),this._touch();const t=this.inspectUint32();return this.position+=4,t},get remaining(){return this.bytes.length-this.position},setPosition(t){const e=this.position;return this.assertPosition(t),this.position=t,()=>this.position=e},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const t=this.getReadCount();this.positionReadCount.set(this.position,t+1),t>0&&this.recursiveReadCount++}};function Ar(t,{recursiveReadLimit:e=8192}={}){const n=Object.create(Ir);return n.bytes=t,n.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=e,n}function Er(t,e={}){void 0!==e.size&&Pe(t,{size:e.size});return ke(Te(t,e),e)}function Or(t,e={}){let n=t;if(void 0!==e.size&&(Pe(n,{size:e.size}),n=xe(n)),n.length>1||n[0]>1)throw new ge(n);return Boolean(n[0])}function Sr(t,e={}){void 0!==e.size&&Pe(t,{size:e.size});return Ie(Te(t,e),e)}function Tr(t,e){const n="string"==typeof e?Fe(e):e,r=Ar(n);if(0===Ut(n)&&t.length>0)throw new qt;if(Ut(e)&&Ut(e)<32)throw new Gt({data:"string"==typeof e?e:Te(e),params:t,size:Ut(e)});let a=0;const s=[];for(let e=0;e<t.length;++e){const n=t[e];r.setPosition(a);const[i,o]=Cr(r,n,{staticPosition:0});a+=o,s.push(i)}return s}function Cr(t,e,{staticPosition:n}){const r=sr(e.type);if(r){const[a,s]=r;return function(t,e,{length:n,staticPosition:r}){if(!n){const n=r+Sr(t.readBytes(Nr)),a=n+Br;t.setPosition(n);const s=Sr(t.readBytes(Br)),i=jr(e);let o=0;const c=[];for(let n=0;n<s;++n){t.setPosition(a+(i?32*n:o));const[r,s]=Cr(t,e,{staticPosition:a});o+=s,c.push(r)}return t.setPosition(r+32),[c,32]}if(jr(e)){const a=r+Sr(t.readBytes(Nr)),s=[];for(let r=0;r<n;++r){t.setPosition(a+32*r);const[n]=Cr(t,e,{staticPosition:a});s.push(n)}return t.setPosition(r+32),[s,32]}let a=0;const s=[];for(let i=0;i<n;++i){const[n,i]=Cr(t,e,{staticPosition:r+a});a+=i,s.push(n)}return[s,a]}(t,{...e,type:s},{length:a,staticPosition:n})}if("tuple"===e.type)return function(t,e,{staticPosition:n}){const r=0===e.components.length||e.components.some(({name:t})=>!t),a=r?[]:{};let s=0;if(jr(e)){const i=n+Sr(t.readBytes(Nr));for(let n=0;n<e.components.length;++n){const o=e.components[n];t.setPosition(i+s);const[c,u]=Cr(t,o,{staticPosition:i});s+=u,a[r?n:o?.name]=c}return t.setPosition(n+32),[a,32]}for(let i=0;i<e.components.length;++i){const o=e.components[i],[c,u]=Cr(t,o,{staticPosition:n});a[r?i:o?.name]=c,s+=u}return[a,s]}(t,e,{staticPosition:n});if("address"===e.type)return function(t){const e=t.readBytes(32);return[Ln(Te(Qn(e,-20))),32]}(t);if("bool"===e.type)return function(t){return[Or(t.readBytes(32),{size:32}),32]}(t);if(e.type.startsWith("bytes"))return function(t,e,{staticPosition:n}){const[r,a]=e.type.split("bytes");if(!a){const e=Sr(t.readBytes(32));t.setPosition(n+e);const r=Sr(t.readBytes(32));if(0===r)return t.setPosition(n+32),["0x",32];const a=t.readBytes(r);return t.setPosition(n+32),[Te(a),32]}const s=Te(t.readBytes(Number.parseInt(a,10),32));return[s,32]}(t,e,{staticPosition:n});if(e.type.startsWith("uint")||e.type.startsWith("int"))return function(t,e){const n=e.type.startsWith("int"),r=Number.parseInt(e.type.split("int")[1]||"256",10),a=t.readBytes(32);return[r>48?Er(a,{signed:n}):Sr(a,{signed:n}),32]}(t,e);if("string"===e.type)return function(t,{staticPosition:e}){const n=Sr(t.readBytes(32)),r=e+n;t.setPosition(r);const a=Sr(t.readBytes(32));if(0===a)return t.setPosition(e+32),["",32];const s=t.readBytes(a,32),i=function(t,e={}){let n=t;return void 0!==e.size&&(Pe(n,{size:e.size}),n=xe(n,{dir:"right"})),(new TextDecoder).decode(n)}(xe(s));return t.setPosition(e+32),[i,32]}(t,{staticPosition:n});throw new oe(e.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const Br=32,Nr=32;function jr(t){const{type:e}=t;if("string"===e)return!0;if("bytes"===e)return!0;if(e.endsWith("[]"))return!0;if("tuple"===e)return t.components?.some(jr);const n=sr(t.type);return!(!n||!jr({...t,type:n[1]}))}function Ur(t){const{abi:e,data:n}=t,r=Zn(n,0,4);if("0x"===r)throw new qt;const a=[...e||[],vr,wr].find(t=>"error"===t.type&&r===ir(Bt(t)));if(!a)throw new Jt(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:a,args:"inputs"in a&&a.inputs&&a.inputs.length>0?Tr(a.inputs,Zn(n,4)):void 0,errorName:a.name}}const Mr=(t,e,n)=>JSON.stringify(t,(t,e)=>"bigint"==typeof e?e.toString():e,n);function Rr({abiItem:t,args:e,includeFunctionName:n=!0,includeName:r=!1}){if("name"in t&&"inputs"in t&&t.inputs)return`${n?t.name:""}(${t.inputs.map((t,n)=>`${r&&t.name?`${t.name}: `:""}${"object"==typeof e[n]?Mr(e[n]):e[n]}`).join(", ")})`}const Fr={gwei:9,wei:18},_r={ether:-9,wei:9};function zr(t,e){let n=t.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(e,"0");let[a,s]=[n.slice(0,n.length-e),n.slice(n.length-e)];return s=s.replace(/(0+)$/,""),`${r?"-":""}${a||"0"}${s?`.${s}`:""}`}function Dr(t,e="wei"){return zr(t,Fr[e])}function Lr(t,e="wei"){return zr(t,_r[e])}class Gr extends _t{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class qr extends _t{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function Hr(t){return t.reduce((t,{slot:e,value:n})=>`${t} ${e}: ${n}\n`,"")}function Vr(t){const e=Object.entries(t).map(([t,e])=>void 0===e||!1===e?null:[t,e]).filter(Boolean),n=e.reduce((t,[e])=>Math.max(t,e.length),0);return e.map(([t,e])=>` ${`${t}:`.padEnd(n+1)} ${e}`).join("\n")}class Kr extends _t{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join("\n"),{name:"FeeConflictError"})}}class Wr extends _t{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class Zr extends _t{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Vr(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class Jr extends _t{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class Yr extends _t{constructor({blockHash:t,blockNumber:e,blockTag:n,hash:r,index:a}){let s="Transaction";n&&void 0!==a&&(s=`Transaction at block time "${n}" at index "${a}"`),t&&void 0!==a&&(s=`Transaction at block hash "${t}" at index "${a}"`),e&&void 0!==a&&(s=`Transaction at block number "${e}" at index "${a}"`),r&&(s=`Transaction with hash "${r}"`),super(`${s} could not be found.`,{name:"TransactionNotFoundError"})}}class Qr extends _t{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class Xr extends _t{constructor({receipt:t}){super(`Transaction with hash "${t.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}}class $r extends _t{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}class ta extends _t{constructor(t,{account:e,docsPath:n,chain:r,data:a,gas:s,gasPrice:i,maxFeePerGas:o,maxPriorityFeePerGas:c,nonce:u,to:d,value:l,stateOverride:f}){const p=e?hr(e):void 0;let m=Vr({from:p?.address,to:d,value:void 0!==l&&`${Dr(l)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:s,gasPrice:void 0!==i&&`${Lr(i)} gwei`,maxFeePerGas:void 0!==o&&`${Lr(o)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${Lr(c)} gwei`,nonce:u});f&&(m+=`\n${function(t){return t.reduce((t,{address:e,...n})=>{let r=`${t} ${e}:\n`;return n.nonce&&(r+=` nonce: ${n.nonce}\n`),n.balance&&(r+=` balance: ${n.balance}\n`),n.code&&(r+=` code: ${n.code}\n`),n.state&&(r+=" state:\n",r+=Hr(n.state)),n.stateDiff&&(r+=" stateDiff:\n",r+=Hr(n.stateDiff)),r}," State Override:\n").slice(0,-1)}(f)}`),super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",m].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class ea extends _t{constructor(t,{abi:e,args:n,contractAddress:r,docsPath:a,functionName:s,sender:i}){const o=or({abi:e,args:n,name:s}),c=o?Rr({abiItem:o,args:n,includeFunctionName:!1,includeName:!1}):void 0,u=Vr({address:r&&r,function:o?Bt(o,{includeName:!0}):void 0,args:c&&"()"!==c&&`${[...Array(s?.length??0).keys()].map(()=>" ").join("")}${c}`,sender:i});super(t.shortMessage||`An unknown error occurred while executing the contract function "${s}".`,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],u&&"Contract Call:",u].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=e,this.args=n,this.cause=t,this.contractAddress=r,this.functionName=s,this.sender=i}}class na extends _t{constructor({abi:t,data:e,functionName:n,message:r}){let a,s,i,o,c;if(e&&"0x"!==e)try{s=Ur({abi:t,data:e});const{abiItem:n,errorName:r,args:a}=s;if("Error"===r)o=a[0];else if("Panic"===r){const[t]=a;o=gr[t]}else{const t=n?Bt(n,{includeName:!0}):void 0,e=n&&a?Rr({abiItem:n,args:a,includeFunctionName:!1,includeName:!1}):void 0;i=[t?`Error: ${t}`:"",e&&"()"!==e?` ${[...Array(r?.length??0).keys()].map(()=>" ").join("")}${e}`:""]}}catch(t){a=t}else r&&(o=r);a instanceof Jt&&(c=a.signature,i=[`Unable to decode signature "${c}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${c}.`]),super(o&&"execution reverted"!==o||c?[`The contract function "${n}" reverted with the following ${c?"signature":"reason"}:`,o||c].join("\n"):`The contract function "${n}" reverted.`,{cause:a,metaMessages:i,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=s,this.raw=e,this.reason=o,this.signature=c}}class ra extends _t{constructor({functionName:t}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class aa extends _t{constructor({factory:t}){super("Deployment for counterfactual contract call failed"+(t?` for factory "${t}".`:""),{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class sa extends _t{constructor({data:t,message:e}){super(e||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}class ia extends _t{constructor({body:t,cause:e,details:n,headers:r,status:a,url:s}){super("HTTP request failed.",{cause:e,details:n,metaMessages:[a&&`Status: ${a}`,`URL: ${s}`,t&&`Request body: ${Mr(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=r,this.status=a,this.url=s}}class oa extends _t{constructor({body:t,error:e,url:n}){super("RPC Request failed.",{cause:e,details:e.message,metaMessages:[`URL: ${n}`,`Request body: ${Mr(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e.code,this.data=e.data}}class ca extends _t{constructor({body:t,url:e}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${e}`,`Request body: ${Mr(t)}`],name:"TimeoutError"})}}class ua extends _t{constructor(t,{code:e,docsPath:n,metaMessages:r,name:a,shortMessage:s}){super(s,{cause:t,docsPath:n,metaMessages:r||t?.metaMessages,name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||t.name,this.code=t instanceof oa?t.code:e??-1}}class da extends ua{constructor(t,e){super(t,e),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e.data}}class la extends ua{constructor(t){super(t,{code:la.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(la,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class fa extends ua{constructor(t){super(t,{code:fa.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(fa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class pa extends ua{constructor(t,{method:e}={}){super(t,{code:pa.code,name:"MethodNotFoundRpcError",shortMessage:`The method${e?` "${e}"`:""} does not exist / is not available.`})}}Object.defineProperty(pa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class ma extends ua{constructor(t){super(t,{code:ma.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join("\n")})}}Object.defineProperty(ma,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class ha extends ua{constructor(t){super(t,{code:ha.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(ha,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class ba extends ua{constructor(t){super(t,{code:ba.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join("\n")})}}Object.defineProperty(ba,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class ya extends ua{constructor(t){super(t,{code:ya.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(ya,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class ga extends ua{constructor(t){super(t,{code:ga.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(ga,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class va extends ua{constructor(t){super(t,{code:va.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(va,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class wa extends ua{constructor(t,{method:e}={}){super(t,{code:wa.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${e?` "${e}"`:""} is not supported.`})}}Object.defineProperty(wa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class xa extends ua{constructor(t){super(t,{code:xa.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(xa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class Pa extends ua{constructor(t){super(t,{code:Pa.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(Pa,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class ka extends da{constructor(t){super(t,{code:ka.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(ka,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class Ia extends da{constructor(t){super(t,{code:Ia.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(Ia,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class Aa extends da{constructor(t,{method:e}={}){super(t,{code:Aa.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${e?` " ${e}"`:""}.`})}}Object.defineProperty(Aa,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class Ea extends da{constructor(t){super(t,{code:Ea.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(Ea,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class Oa extends da{constructor(t){super(t,{code:Oa.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(Oa,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class Sa extends da{constructor(t){super(t,{code:Sa.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(Sa,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class Ta extends da{constructor(t){super(t,{code:Ta.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(Ta,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class Ca extends da{constructor(t){super(t,{code:Ca.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(Ca,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class Ba extends da{constructor(t){super(t,{code:Ba.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(Ba,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class Na extends da{constructor(t){super(t,{code:Na.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(Na,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class ja extends da{constructor(t){super(t,{code:ja.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(ja,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class Ua extends da{constructor(t){super(t,{code:Ua.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(Ua,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class Ma extends da{constructor(t){super(t,{code:Ma.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(Ma,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class Ra extends ua{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const Fa=3;function _a(t,{abi:e,address:n,args:r,docsPath:a,functionName:s,sender:i}){const o=t instanceof sa?t:t instanceof _t?t.walk(t=>"data"in t)||t.walk():{},{code:c,data:u,details:d,message:l,shortMessage:f}=o,p=t instanceof qt?new ra({functionName:s}):[Fa,ha.code].includes(c)&&(u||d||l||f)?new na({abi:e,data:"object"==typeof u?u.data:u,functionName:s,message:o instanceof oa?d:f??l}):t;return new ea(p,{abi:e,args:r,contractAddress:n,docsPath:a,functionName:s,sender:i})}function za(t){if(0===t||1===t)return t;if(27===t)return 0;if(28===t)return 1;throw new Error("Invalid yParityOrV value")}async function Da({hash:t,signature:e}){return n=await async function({hash:t,signature:e}){const n=jt(t)?t:Oe(t),{secp256k1:r}=await Promise.resolve().then(function(){return ep}),a=(()=>{if("object"==typeof e&&"r"in e&&"s"in e){const{r:t,s:n,v:a,yParity:s}=e,i=za(Number(s??a));return new r.Signature(ke(t),ke(n)).addRecoveryBit(i)}const t=jt(e)?e:Oe(e);if(65!==Ut(t))throw new Error("invalid signature length");const n=za(Ie(`0x${t.slice(130)}`));return r.Signature.fromCompact(t.substring(2,130)).addRecoveryBit(n)})();return`0x${a.recoverPublicKey(n.substring(2)).toHex(!1)}`}({hash:t,signature:e}),Ln(`0x${jn(`0x${n.substring(4)}`).substring(26)}`);var n}function La(t,e="hex"){const n=Ga(t),r=Ar(new Uint8Array(n.length));return n.encode(r),"hex"===e?Te(r.bytes):r.bytes}function Ga(t){return Array.isArray(t)?function(t){const e=t.reduce((t,e)=>t+e.length,0),n=qa(e);return{length:e<=55?1+e:1+n+e,encode(r){e<=55?r.pushByte(192+e):(r.pushByte(247+n),1===n?r.pushUint8(e):2===n?r.pushUint16(e):3===n?r.pushUint24(e):r.pushUint32(e));for(const{encode:e}of t)e(r)}}}(t.map(t=>Ga(t))):function(t){const e="string"==typeof t?Fe(t):t,n=qa(e.length),r=1===e.length&&e[0]<128?1:e.length<=55?1+e.length:1+n+e.length;return{length:r,encode(t){1===e.length&&e[0]<128?t.pushBytes(e):e.length<=55?(t.pushByte(128+e.length),t.pushBytes(e)):(t.pushByte(183+n),1===n?t.pushUint8(e.length):2===n?t.pushUint16(e.length):3===n?t.pushUint24(e.length):t.pushUint32(e.length),t.pushBytes(e))}}}(t)}function qa(t){if(t<256)return 1;if(t<65536)return 2;if(t<2**24)return 3;if(t<2**32)return 4;throw new _t("Length is too large.")}function Ha(t){const{chainId:e,nonce:n,to:r}=t,a=t.contractAddress??t.address,s=jn(Wn(["0x05",La([e?Ce(e):"0x",a,n?Ce(n):"0x"])]));return"bytes"===r?Fe(s):s}async function Va(t){const{authorization:e,signature:n}=t;return Da({hash:Ha(e),signature:n??e})}class Ka extends _t{constructor(t,{account:e,docsPath:n,chain:r,data:a,gas:s,gasPrice:i,maxFeePerGas:o,maxPriorityFeePerGas:c,nonce:u,to:d,value:l}){const f=Vr({from:e?.address,to:d,value:void 0!==l&&`${Dr(l)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:s,gasPrice:void 0!==i&&`${Lr(i)} gwei`,maxFeePerGas:void 0!==o&&`${Lr(o)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${Lr(c)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",f].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}let Wa=class extends _t{constructor({cause:t,message:e}={}){const n=e?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}};Object.defineProperty(Wa,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(Wa,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class Za extends _t{constructor({cause:t,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${Lr(e)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(Za,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class Ja extends _t{constructor({cause:t,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${Lr(e)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(Ja,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class Ya extends _t{constructor({cause:t,nonce:e}={}){super(`Nonce provided for the transaction ${e?`(${e}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(Ya,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Qa extends _t{constructor({cause:t,nonce:e}={}){super([`Nonce provided for the transaction ${e?`(${e}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(Qa,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Xa extends _t{constructor({cause:t,nonce:e}={}){super(`Nonce provided for the transaction ${e?`(${e}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(Xa,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class $a extends _t{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:t,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty($a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class ts extends _t{constructor({cause:t,gas:e}={}){super(`The amount of gas ${e?`(${e}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(ts,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class es extends _t{constructor({cause:t,gas:e}={}){super(`The amount of gas ${e?`(${e}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(es,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class ns extends _t{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(ns,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class rs extends _t{constructor({cause:t,maxPriorityFeePerGas:e,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${e?` = ${Lr(e)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${Lr(n)} gwei`:""}).`].join("\n"),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(rs,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class as extends _t{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function ss(t,e){const n=(t.details||"").toLowerCase(),r=t instanceof _t?t.walk(t=>t?.code===Wa.code):t;return r instanceof _t?new Wa({cause:t,message:r.details}):Wa.nodeMessage.test(n)?new Wa({cause:t,message:t.details}):Za.nodeMessage.test(n)?new Za({cause:t,maxFeePerGas:e?.maxFeePerGas}):Ja.nodeMessage.test(n)?new Ja({cause:t,maxFeePerGas:e?.maxFeePerGas}):Ya.nodeMessage.test(n)?new Ya({cause:t,nonce:e?.nonce}):Qa.nodeMessage.test(n)?new Qa({cause:t,nonce:e?.nonce}):Xa.nodeMessage.test(n)?new Xa({cause:t,nonce:e?.nonce}):$a.nodeMessage.test(n)?new $a({cause:t}):ts.nodeMessage.test(n)?new ts({cause:t,gas:e?.gas}):es.nodeMessage.test(n)?new es({cause:t,gas:e?.gas}):ns.nodeMessage.test(n)?new ns({cause:t}):rs.nodeMessage.test(n)?new rs({cause:t,maxFeePerGas:e?.maxFeePerGas,maxPriorityFeePerGas:e?.maxPriorityFeePerGas}):new as({cause:t})}function is(t,{format:e}){if(!e)return{};const n={};return function e(r){const a=Object.keys(r);for(const s of a)s in t&&(n[s]=t[s]),r[s]&&"object"==typeof r[s]&&!Array.isArray(r[s])&&e(r[s])}(e(t||{})),n}function os(t,e){return({exclude:n,format:r})=>({exclude:n,format:(t,a)=>{const s=e(t,a);if(n)for(const t of n)delete s[t];return{...s,...r(t,a)}},type:t})}const cs={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function us(t,e){const n={};return void 0!==t.authorizationList&&(n.authorizationList=t.authorizationList.map(t=>({address:t.address,r:t.r?Ce(BigInt(t.r)):t.r,s:t.s?Ce(BigInt(t.s)):t.s,chainId:Ce(t.chainId),nonce:Ce(t.nonce),...void 0!==t.yParity?{yParity:Ce(t.yParity)}:{},...void 0!==t.v&&void 0===t.yParity?{v:Ce(t.v)}:{}}))),void 0!==t.accessList&&(n.accessList=t.accessList),void 0!==t.blobVersionedHashes&&(n.blobVersionedHashes=t.blobVersionedHashes),void 0!==t.blobs&&("string"!=typeof t.blobs[0]?n.blobs=t.blobs.map(t=>Te(t)):n.blobs=t.blobs),void 0!==t.data&&(n.data=t.data),t.account&&(n.from=t.account.address),void 0!==t.from&&(n.from=t.from),void 0!==t.gas&&(n.gas=Ce(t.gas)),void 0!==t.gasPrice&&(n.gasPrice=Ce(t.gasPrice)),void 0!==t.maxFeePerBlobGas&&(n.maxFeePerBlobGas=Ce(t.maxFeePerBlobGas)),void 0!==t.maxFeePerGas&&(n.maxFeePerGas=Ce(t.maxFeePerGas)),void 0!==t.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=Ce(t.maxPriorityFeePerGas)),void 0!==t.nonce&&(n.nonce=Ce(t.nonce)),void 0!==t.to&&(n.to=t.to),void 0!==t.type&&(n.type=cs[t.type]),void 0!==t.value&&(n.value=Ce(t.value)),n}function ds(t){if(t&&0!==t.length)return t.reduce((t,{slot:e,value:n})=>{if(66!==e.length)throw new me({size:e.length,targetSize:66,type:"hex"});if(66!==n.length)throw new me({size:n.length,targetSize:66,type:"hex"});return t[e]=n,t},{})}function ls(t){const{balance:e,nonce:n,state:r,stateDiff:a,code:s}=t,i={};if(void 0!==s&&(i.code=s),void 0!==e&&(i.balance=Ce(e)),void 0!==n&&(i.nonce=Ce(n)),void 0!==r&&(i.state=ds(r)),void 0!==a){if(i.state)throw new qr;i.stateDiff=ds(a)}return i}function fs(t){if(!t)return;const e={};for(const{address:n,...r}of t){if(!Vn(n,{strict:!1}))throw new _n({address:n});if(e[n])throw new Gr({address:n});e[n]=ls(r)}return e}const ps=2n**256n-1n;function ms(t){const{account:e,gasPrice:n,maxFeePerGas:r,maxPriorityFeePerGas:a,to:s}=t,i=e?hr(e):void 0;if(i&&!Vn(i.address))throw new _n({address:i.address});if(s&&!Vn(s))throw new _n({address:s});if(void 0!==n&&(void 0!==r||void 0!==a))throw new Kr;if(r&&r>ps)throw new Za({maxFeePerGas:r});if(a&&r&&a>r)throw new rs({maxFeePerGas:r,maxPriorityFeePerGas:a})}class hs extends _t{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class bs extends _t{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class ys extends _t{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${Lr(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class gs extends _t{constructor({blockHash:t,blockNumber:e}){let n="Block";t&&(n=`Block at hash "${t}"`),e&&(n=`Block at number "${e}"`),super(`${n} could not be found.`,{name:"BlockNotFoundError"})}}const vs={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function ws(t,e){const n={...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,chainId:t.chainId?Ie(t.chainId):void 0,gas:t.gas?BigInt(t.gas):void 0,gasPrice:t.gasPrice?BigInt(t.gasPrice):void 0,maxFeePerBlobGas:t.maxFeePerBlobGas?BigInt(t.maxFeePerBlobGas):void 0,maxFeePerGas:t.maxFeePerGas?BigInt(t.maxFeePerGas):void 0,maxPriorityFeePerGas:t.maxPriorityFeePerGas?BigInt(t.maxPriorityFeePerGas):void 0,nonce:t.nonce?Ie(t.nonce):void 0,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,type:t.type?vs[t.type]:void 0,typeHex:t.type?t.type:void 0,value:t.value?BigInt(t.value):void 0,v:t.v?BigInt(t.v):void 0};return t.authorizationList&&(n.authorizationList=t.authorizationList.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))),n.yParity=(()=>{if(t.yParity)return Number(t.yParity);if("bigint"==typeof n.v){if(0n===n.v||27n===n.v)return 0;if(1n===n.v||28n===n.v)return 1;if(n.v>=35n)return n.v%2n==0n?1:0}})(),"legacy"===n.type&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),"eip2930"===n.type&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),"eip1559"===n.type&&delete n.maxFeePerBlobGas,n}const xs=os("transaction",ws);function Ps(t,e){const n=(t.transactions??[]).map(t=>"string"==typeof t?t:ws(t));return{...t,baseFeePerGas:t.baseFeePerGas?BigInt(t.baseFeePerGas):null,blobGasUsed:t.blobGasUsed?BigInt(t.blobGasUsed):void 0,difficulty:t.difficulty?BigInt(t.difficulty):void 0,excessBlobGas:t.excessBlobGas?BigInt(t.excessBlobGas):void 0,gasLimit:t.gasLimit?BigInt(t.gasLimit):void 0,gasUsed:t.gasUsed?BigInt(t.gasUsed):void 0,hash:t.hash?t.hash:null,logsBloom:t.logsBloom?t.logsBloom:null,nonce:t.nonce?t.nonce:null,number:t.number?BigInt(t.number):null,size:t.size?BigInt(t.size):void 0,timestamp:t.timestamp?BigInt(t.timestamp):void 0,transactions:n,totalDifficulty:t.totalDifficulty?BigInt(t.totalDifficulty):null}}const ks=os("block",Ps);async function Is(t,{blockHash:e,blockNumber:n,blockTag:r=t.experimental_blockTag??"latest",includeTransactions:a}={}){const s=a??!1,i=void 0!==n?Ce(n):void 0;let o=null;if(o=e?await t.request({method:"eth_getBlockByHash",params:[e,s]},{dedupe:!0}):await t.request({method:"eth_getBlockByNumber",params:[i||r,s]},{dedupe:Boolean(i)}),!o)throw new gs({blockHash:e,blockNumber:n});return(t.chain?.formatters?.block?.format||Ps)(o,"getBlock")}async function As(t){const e=await t.request({method:"eth_gasPrice"});return BigInt(e)}async function Es(t,e){const{block:n,chain:r=t.chain,request:a}=e||{};try{const e=r?.fees?.maxPriorityFeePerGas??r?.fees?.defaultPriorityFee;if("function"==typeof e){const r=n||await Ct(t,Is,"getBlock")({}),s=await e({block:r,client:t,request:a});if(null===s)throw new Error;return s}if(void 0!==e)return e;return ke(await t.request({method:"eth_maxPriorityFeePerGas"}))}catch{const[e,r]=await Promise.all([n?Promise.resolve(n):Ct(t,Is,"getBlock")({}),Ct(t,As,"getGasPrice")({})]);if("bigint"!=typeof e.baseFeePerGas)throw new bs;const a=r-e.baseFeePerGas;return a<0n?0n:a}}async function Os(t,e){return Ss(t,e)}async function Ss(t,e){const{block:n,chain:r=t.chain,request:a,type:s="eip1559"}=e||{},i=await(async()=>"function"==typeof r?.fees?.baseFeeMultiplier?r.fees.baseFeeMultiplier({block:n,client:t,request:a}):r?.fees?.baseFeeMultiplier??1.2)();if(i<1)throw new hs;const o=10**(i.toString().split(".")[1]?.length??0),c=t=>t*BigInt(Math.ceil(i*o))/BigInt(o),u=n||await Ct(t,Is,"getBlock")({});if("function"==typeof r?.fees?.estimateFeesPerGas){const e=await r.fees.estimateFeesPerGas({block:n,client:t,multiply:c,request:a,type:s});if(null!==e)return e}if("eip1559"===s){if("bigint"!=typeof u.baseFeePerGas)throw new bs;const e="bigint"==typeof a?.maxPriorityFeePerGas?a.maxPriorityFeePerGas:await Es(t,{block:u,chain:r,request:a}),n=c(u.baseFeePerGas);return{maxFeePerGas:a?.maxFeePerGas??n+e,maxPriorityFeePerGas:e}}return{gasPrice:a?.gasPrice??c(await Ct(t,As,"getGasPrice")({}))}}async function Ts(t,{address:e,blockTag:n="latest",blockNumber:r}){return Ie(await t.request({method:"eth_getTransactionCount",params:[e,"bigint"==typeof r?Ce(r):n]},{dedupe:Boolean(r)}))}function Cs(t){const{kzg:e}=t,n=t.to??("string"==typeof t.blobs[0]?"hex":"bytes"),r="string"==typeof t.blobs[0]?t.blobs.map(t=>Fe(t)):t.blobs,a=[];for(const t of r)a.push(Uint8Array.from(e.blobToKzgCommitment(t)));return"bytes"===n?a:a.map(t=>Te(t))}function Bs(t){const{kzg:e}=t,n=t.to??("string"==typeof t.blobs[0]?"hex":"bytes"),r="string"==typeof t.blobs[0]?t.blobs.map(t=>Fe(t)):t.blobs,a="string"==typeof t.commitments[0]?t.commitments.map(t=>Fe(t)):t.commitments,s=[];for(let t=0;t<r.length;t++){const n=r[t],i=a[t];s.push(Uint8Array.from(e.computeBlobKzgProof(n,i)))}return"bytes"===n?s:s.map(t=>Te(t))}function Ns(t,e,n){return t&e^~t&n}function js(t,e,n){return t&e^t&n^e&n}class Us extends mn{constructor(t,e,n,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=e,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(t),this.view=un(this.buffer)}update(t){sn(this),an(t=pn(t));const{view:e,buffer:n,blockLen:r}=this,a=t.length;for(let s=0;s<a;){const i=Math.min(r-this.pos,a-s);if(i===r){const e=un(t);for(;r<=a-s;s+=r)this.process(e,s);continue}n.set(t.subarray(s,s+i),this.pos),this.pos+=i,s+=i,this.pos===r&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){sn(this),on(t,this),this.finished=!0;const{buffer:e,view:n,blockLen:r,isLE:a}=this;let{pos:s}=this;e[s++]=128,cn(this.buffer.subarray(s)),this.padOffset>r-s&&(this.process(n,0),s=0);for(let t=s;t<r;t++)e[t]=0;!function(t,e,n,r){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,n,r);const a=BigInt(32),s=BigInt(4294967295),i=Number(n>>a&s),o=Number(n&s),c=r?4:0,u=r?0:4;t.setUint32(e+c,i,r),t.setUint32(e+u,o,r)}(n,r-8,BigInt(8*this.length),a),this.process(n,0);const i=un(t),o=this.outputLen;if(o%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=o/4,u=this.get();if(c>u.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t<c;t++)i.setUint32(4*t,u[t],a)}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const n=t.slice(0,e);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:e,buffer:n,length:r,finished:a,destroyed:s,pos:i}=this;return t.destroyed=s,t.finished=a,t.length=r,t.pos=i,r%e&&t.buffer.set(n),t}clone(){return this._cloneInto()}}const Ms=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Rs=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),Fs=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),_s=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),zs=new Uint32Array(64);class Ds extends Us{constructor(t=32){super(64,t,8,!1),this.A=0|Ms[0],this.B=0|Ms[1],this.C=0|Ms[2],this.D=0|Ms[3],this.E=0|Ms[4],this.F=0|Ms[5],this.G=0|Ms[6],this.H=0|Ms[7]}get(){const{A:t,B:e,C:n,D:r,E:a,F:s,G:i,H:o}=this;return[t,e,n,r,a,s,i,o]}set(t,e,n,r,a,s,i,o){this.A=0|t,this.B=0|e,this.C=0|n,this.D=0|r,this.E=0|a,this.F=0|s,this.G=0|i,this.H=0|o}process(t,e){for(let n=0;n<16;n++,e+=4)zs[n]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=zs[t-15],n=zs[t-2],r=dn(e,7)^dn(e,18)^e>>>3,a=dn(n,17)^dn(n,19)^n>>>10;zs[t]=a+zs[t-7]+r+zs[t-16]|0}let{A:n,B:r,C:a,D:s,E:i,F:o,G:c,H:u}=this;for(let t=0;t<64;t++){const e=u+(dn(i,6)^dn(i,11)^dn(i,25))+Ns(i,o,c)+_s[t]+zs[t]|0,d=(dn(n,2)^dn(n,13)^dn(n,22))+js(n,r,a)|0;u=c,c=o,o=i,i=s+e|0,s=a,a=r,r=n,n=e+d|0}n=n+this.A|0,r=r+this.B|0,a=a+this.C|0,s=s+this.D|0,i=i+this.E|0,o=o+this.F|0,c=c+this.G|0,u=u+this.H|0,this.set(n,r,a,s,i,o,c,u)}roundClean(){cn(zs)}destroy(){this.set(0,0,0,0,0,0,0,0),cn(this.buffer)}}const Ls=(()=>Ge(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))))(),Gs=(()=>Ls[0])(),qs=(()=>Ls[1])(),Hs=new Uint32Array(80),Vs=new Uint32Array(80);class Ks extends Us{constructor(t=64){super(128,t,16,!1),this.Ah=0|Fs[0],this.Al=0|Fs[1],this.Bh=0|Fs[2],this.Bl=0|Fs[3],this.Ch=0|Fs[4],this.Cl=0|Fs[5],this.Dh=0|Fs[6],this.Dl=0|Fs[7],this.Eh=0|Fs[8],this.El=0|Fs[9],this.Fh=0|Fs[10],this.Fl=0|Fs[11],this.Gh=0|Fs[12],this.Gl=0|Fs[13],this.Hh=0|Fs[14],this.Hl=0|Fs[15]}get(){const{Ah:t,Al:e,Bh:n,Bl:r,Ch:a,Cl:s,Dh:i,Dl:o,Eh:c,El:u,Fh:d,Fl:l,Gh:f,Gl:p,Hh:m,Hl:h}=this;return[t,e,n,r,a,s,i,o,c,u,d,l,f,p,m,h]}set(t,e,n,r,a,s,i,o,c,u,d,l,f,p,m,h){this.Ah=0|t,this.Al=0|e,this.Bh=0|n,this.Bl=0|r,this.Ch=0|a,this.Cl=0|s,this.Dh=0|i,this.Dl=0|o,this.Eh=0|c,this.El=0|u,this.Fh=0|d,this.Fl=0|l,this.Gh=0|f,this.Gl=0|p,this.Hh=0|m,this.Hl=0|h}process(t,e){for(let n=0;n<16;n++,e+=4)Hs[n]=t.getUint32(e),Vs[n]=t.getUint32(e+=4);for(let t=16;t<80;t++){const e=0|Hs[t-15],n=0|Vs[t-15],r=Ve(e,n,1)^Ve(e,n,8)^qe(e,0,7),a=Ke(e,n,1)^Ke(e,n,8)^He(e,n,7),s=0|Hs[t-2],i=0|Vs[t-2],o=Ve(s,i,19)^We(s,i,61)^qe(s,0,6),c=Ke(s,i,19)^Ze(s,i,61)^He(s,i,6),u=Xe(a,c,Vs[t-7],Vs[t-16]),d=$e(u,r,o,Hs[t-7],Hs[t-16]);Hs[t]=0|d,Vs[t]=0|u}let{Ah:n,Al:r,Bh:a,Bl:s,Ch:i,Cl:o,Dh:c,Dl:u,Eh:d,El:l,Fh:f,Fl:p,Gh:m,Gl:h,Hh:b,Hl:y}=this;for(let t=0;t<80;t++){const e=Ve(d,l,14)^Ve(d,l,18)^We(d,l,41),g=Ke(d,l,14)^Ke(d,l,18)^Ze(d,l,41),v=d&f^~d&m,w=tn(y,g,l&p^~l&h,qs[t],Vs[t]),x=en(w,b,e,v,Gs[t],Hs[t]),P=0|w,k=Ve(n,r,28)^We(n,r,34)^We(n,r,39),I=Ke(n,r,28)^Ze(n,r,34)^Ze(n,r,39),A=n&a^n&i^a&i,E=r&s^r&o^s&o;b=0|m,y=0|h,m=0|f,h=0|p,f=0|d,p=0|l,({h:d,l:l}=Je(0|c,0|u,0|x,0|P)),c=0|i,u=0|o,i=0|a,o=0|s,a=0|n,s=0|r;const O=Ye(P,I,E);n=Qe(O,x,k,A),r=0|O}({h:n,l:r}=Je(0|this.Ah,0|this.Al,0|n,0|r)),({h:a,l:s}=Je(0|this.Bh,0|this.Bl,0|a,0|s)),({h:i,l:o}=Je(0|this.Ch,0|this.Cl,0|i,0|o)),({h:c,l:u}=Je(0|this.Dh,0|this.Dl,0|c,0|u)),({h:d,l:l}=Je(0|this.Eh,0|this.El,0|d,0|l)),({h:f,l:p}=Je(0|this.Fh,0|this.Fl,0|f,0|p)),({h:m,l:h}=Je(0|this.Gh,0|this.Gl,0|m,0|h)),({h:b,l:y}=Je(0|this.Hh,0|this.Hl,0|b,0|y)),this.set(n,r,a,s,i,o,c,u,d,l,f,p,m,h,b,y)}roundClean(){cn(Hs,Vs)}destroy(){cn(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class Ws extends Ks{constructor(){super(48),this.Ah=0|Rs[0],this.Al=0|Rs[1],this.Bh=0|Rs[2],this.Bl=0|Rs[3],this.Ch=0|Rs[4],this.Cl=0|Rs[5],this.Dh=0|Rs[6],this.Dl=0|Rs[7],this.Eh=0|Rs[8],this.El=0|Rs[9],this.Fh=0|Rs[10],this.Fl=0|Rs[11],this.Gh=0|Rs[12],this.Gl=0|Rs[13],this.Hh=0|Rs[14],this.Hl=0|Rs[15]}}const Zs=hn(()=>new Ds),Js=hn(()=>new Ks),Ys=hn(()=>new Ws),Qs=Zs;function Xs(t){const{commitment:e,version:n=1}=t,r=t.to??("string"==typeof e?"hex":"bytes"),a=Qs(jt(s=e,{strict:!1})?Ue(s):s);var s;return a.set([n],0),"bytes"===r?a:Te(a)}function $s(t){const{commitments:e,version:n}=t,r=t.to??("string"==typeof e[0]?"hex":"bytes"),a=[];for(const t of e)a.push(Xs({commitment:t,to:r,version:n}));return a}const ti=4096,ei=131072,ni=761855;class ri extends _t{constructor({maxSize:t,size:e}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${e} bytes`],name:"BlobSizeTooLargeError"})}}class ai extends _t{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class si extends _t{constructor({hash:t,size:e}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${e}`],name:"InvalidVersionedHashSizeError"})}}class ii extends _t{constructor({hash:t,version:e}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:["Expected: 1",`Received: ${e}`],name:"InvalidVersionedHashVersionError"})}}function oi(t){const{data:e,kzg:n,to:r}=t,a=t.blobs??function(t){const e=t.to??("string"==typeof t.data?"hex":"bytes"),n="string"==typeof t.data?Fe(t.data):t.data,r=Ut(n);if(!r)throw new ai;if(r>ni)throw new ri({maxSize:ni,size:r});const a=[];let s=!0,i=0;for(;s;){const t=Ar(new Uint8Array(ei));let e=0;for(;e<ti;){const r=n.slice(i,i+31);if(t.pushByte(0),t.pushBytes(r),r.length<31){t.pushByte(128),s=!1;break}e++,i+=31}a.push(t)}return"bytes"===e?a.map(t=>t.bytes):a.map(t=>Te(t.bytes))}({data:e,to:r}),s=t.commitments??Cs({blobs:a,kzg:n,to:r}),i=t.proofs??Bs({blobs:a,commitments:s,kzg:n,to:r}),o=[];for(let t=0;t<a.length;t++)o.push({blob:a[t],commitment:s[t],proof:i[t]});return o}function ci(t){if(t.type)return t.type;if(void 0!==t.authorizationList)return"eip7702";if(void 0!==t.blobs||void 0!==t.blobVersionedHashes||void 0!==t.maxFeePerBlobGas||void 0!==t.sidecars)return"eip4844";if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)return"eip1559";if(void 0!==t.gasPrice)return void 0!==t.accessList?"eip2930":"legacy";throw new Zr({transaction:t})}async function ui(t){return Ie(await t.request({method:"eth_chainId"},{dedupe:!0}))}const di=["blobVersionedHashes","chainId","fees","gas","nonce","type"],li=new Map;async function fi(t,e){const{account:n=t.account,blobs:r,chain:a,gas:s,kzg:i,nonce:o,nonceManager:c,parameters:u=di,type:d}=e,l=n?hr(n):n,f={...e,...l?{from:l?.address}:{}};let p,m;async function h(){return p||(p=await Ct(t,Is,"getBlock")({blockTag:"latest"}),p)}async function b(){if(m)return m;if(a)return a.id;if(void 0!==e.chainId)return e.chainId;const n=await Ct(t,ui,"getChainId")({});return m=n,m}if(u.includes("nonce")&&void 0===o&&l)if(c){const e=await b();f.nonce=await c.consume({address:l.address,chainId:e,client:t})}else f.nonce=await Ct(t,Ts,"getTransactionCount")({address:l.address,blockTag:"pending"});if((u.includes("blobVersionedHashes")||u.includes("sidecars"))&&r&&i){const t=Cs({blobs:r,kzg:i});if(u.includes("blobVersionedHashes")){const e=$s({commitments:t,to:"hex"});f.blobVersionedHashes=e}if(u.includes("sidecars")){const e=oi({blobs:r,commitments:t,proofs:Bs({blobs:r,commitments:t,kzg:i}),to:"hex"});f.sidecars=e}}if(u.includes("chainId")&&(f.chainId=await b()),(u.includes("fees")||u.includes("type"))&&void 0===d)try{f.type=ci(f)}catch{let e=li.get(t.uid);if(void 0===e){const n=await h();e="bigint"==typeof n?.baseFeePerGas,li.set(t.uid,e)}f.type=e?"eip1559":"legacy"}if(u.includes("fees"))if("legacy"!==f.type&&"eip2930"!==f.type){if(void 0===f.maxFeePerGas||void 0===f.maxPriorityFeePerGas){const n=await h(),{maxFeePerGas:r,maxPriorityFeePerGas:s}=await Ss(t,{block:n,chain:a,request:f});if(void 0===e.maxPriorityFeePerGas&&e.maxFeePerGas&&e.maxFeePerGas<s)throw new ys({maxPriorityFeePerGas:s});f.maxPriorityFeePerGas=s,f.maxFeePerGas=r}}else{if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)throw new bs;if(void 0===e.gasPrice){const e=await h(),{gasPrice:n}=await Ss(t,{block:e,chain:a,request:f,type:"legacy"});f.gasPrice=n}}return u.includes("gas")&&void 0===s&&(f.gas=await Ct(t,pi,"estimateGas")({...f,account:l,prepare:"local"===l?.type?[]:["blobVersionedHashes"]})),ms(f),delete f.parameters,f}async function pi(t,e){const{account:n=t.account,prepare:r=!0}=e,a=n?hr(n):void 0,s=Array.isArray(r)?r:"local"!==a?.type?["blobVersionedHashes"]:void 0;try{const{accessList:n,authorizationList:i,blobs:o,blobVersionedHashes:c,blockNumber:u,blockTag:d,data:l,gas:f,gasPrice:p,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:b,nonce:y,value:g,stateOverride:v,...w}=r?await fi(t,{...e,parameters:s}):e,x=("bigint"==typeof u?Ce(u):void 0)||d,P=fs(v),k=await(async()=>w.to?w.to:i&&i.length>0?await Va({authorization:i[0]}).catch(()=>{throw new _t("`to` is required. Could not infer from `authorizationList`")}):void 0)();ms(e);const I=t.chain?.formatters?.transactionRequest?.format,A=(I||us)({...is(w,{format:I}),account:a,accessList:n,authorizationList:i,blobs:o,blobVersionedHashes:c,data:l,gas:f,gasPrice:p,maxFeePerBlobGas:m,maxFeePerGas:h,maxPriorityFeePerGas:b,nonce:y,to:k,value:g},"estimateGas");return BigInt(await t.request({method:"eth_estimateGas",params:P?[A,x??t.experimental_blockTag??"latest",P]:x?[A,x]:[A]}))}catch(n){throw function(t,{docsPath:e,...n}){const r=(()=>{const e=ss(t,n);return e instanceof as?t:e})();return new Ka(r,{docsPath:e,...n})}(n,{...e,account:a,chain:t.chain})}}function mi(t,e){if(!Vn(t,{strict:!1}))throw new _n({address:t});if(!Vn(e,{strict:!1}))throw new _n({address:e});return t.toLowerCase()===e.toLowerCase()}const hi="/docs/contract/decodeEventLog";function bi(t){const{abi:e,data:n,strict:r,topics:a}=t,s=r??!0,[i,...o]=a;if(!i)throw new Yt({docsPath:hi});const c=e.find(t=>"event"===t.type&&i===Fn(Bt(t)));if(!c||!("name"in c)||"event"!==c.type)throw new Qt(i,{docsPath:hi});const{name:u,inputs:d}=c,l=d?.some(t=>!("name"in t&&t.name)),f=l?[]:{},p=d.map((t,e)=>[t,e]).filter(([t])=>"indexed"in t&&t.indexed);for(let t=0;t<p.length;t++){const[e,n]=p[t],r=o[t];if(!r)throw new se({abiItem:c,param:e});f[l?n:e.name||n]=yi({param:e,value:r})}const m=d.filter(t=>!("indexed"in t&&t.indexed));if(m.length>0)if(n&&"0x"!==n)try{const t=Tr(m,n);if(t)if(l)for(let e=0;e<d.length;e++)f[e]=f[e]??t.shift();else for(let e=0;e<m.length;e++)f[m[e].name]=t[e]}catch(t){if(s){if(t instanceof Gt||t instanceof Pr)throw new ae({abiItem:c,data:n,params:m,size:Ut(n)});throw t}}else if(s)throw new ae({abiItem:c,data:"0x",params:m,size:0});return{eventName:u,args:Object.values(f).length>0?f:void 0}}function yi({param:t,value:e}){if("string"===t.type||"bytes"===t.type||"tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))return e;return(Tr([t],e)||[])[0]}function gi(t){const{abi:e,args:n,logs:r,strict:a=!0}=t,s=(()=>{if(t.eventName)return Array.isArray(t.eventName)?t.eventName:[t.eventName]})();return r.map(t=>{try{const r=e.find(e=>"event"===e.type&&t.topics[0]===Fn(e));if(!r)return null;const i=bi({...t,abi:[r],strict:a});return s&&!s.includes(i.eventName)?null:function(t){const{args:e,inputs:n,matchArgs:r}=t;if(!r)return!0;if(!e)return!1;function a(t,e,n){try{return"address"===t.type?mi(e,n):"string"===t.type||"bytes"===t.type?jn(Ue(e))===n:e===n}catch{return!1}}if(Array.isArray(e)&&Array.isArray(r))return r.every((t,r)=>{if(null==t)return!0;const s=n[r];if(!s)return!1;return(Array.isArray(t)?t:[t]).some(t=>a(s,t,e[r]))});return"object"==typeof e&&!Array.isArray(e)&&"object"==typeof r&&!Array.isArray(r)&&Object.entries(r).every(([t,r])=>{if(null==r)return!0;const s=n.find(e=>e.name===t);if(!s)return!1;return(Array.isArray(r)?r:[r]).some(n=>a(s,n,e[t]))})}({args:i.args,inputs:r.inputs,matchArgs:n})?{...i,...t}:null}catch(e){let n,r;if(e instanceof Qt)return null;if(e instanceof ae||e instanceof se){if(a)return null;n=e.abiItem.name,r=e.abiItem.inputs?.some(t=>!("name"in t&&t.name))}return{...t,args:r?[]:{},eventName:n}}}).filter(Boolean)}function vi(t,{args:e,eventName:n}={}){return{...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,logIndex:t.logIndex?Number(t.logIndex):null,transactionHash:t.transactionHash?t.transactionHash:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,...n?{args:e,eventName:n}:{}}}async function wi(t,{address:e,blockHash:n,fromBlock:r,toBlock:a,event:s,events:i,args:o,strict:c}={}){const u=c??!1,d=i??(s?[s]:void 0);let l,f=[];if(d){const t=d.flatMap(t=>lr({abi:[t],eventName:t.name,args:i?void 0:o}));f=[t],s&&(f=f[0])}l=n?await t.request({method:"eth_getLogs",params:[{address:e,topics:f,blockHash:n}]}):await t.request({method:"eth_getLogs",params:[{address:e,topics:f,fromBlock:"bigint"==typeof r?Ce(r):r,toBlock:"bigint"==typeof a?Ce(a):a}]});const p=l.map(t=>vi(t));return d?gi({abi:d,args:o,logs:p,strict:u}):p}async function xi(t,e){const{abi:n,address:r,args:a,blockHash:s,eventName:i,fromBlock:o,toBlock:c,strict:u}=e,d=i?or({abi:n,name:i}):void 0,l=d?void 0:n.filter(t=>"event"===t.type);return Ct(t,wi,"getLogs")({address:r,args:a,blockHash:s,event:d,events:l,fromBlock:o,toBlock:c,strict:u})}const Pi="/docs/contract/decodeFunctionResult";function ki(t){const{abi:e,args:n,functionName:r,data:a}=t;let s=e[0];if(r){const t=or({abi:e,args:n,name:r});if(!t)throw new $t(r,{docsPath:Pi});s=t}if("function"!==s.type)throw new $t(void 0,{docsPath:Pi});if(!s.outputs)throw new te(s.name,{docsPath:Pi});const i=Tr(s.outputs,a);return i&&i.length>1?i:i&&1===i.length?i[0]:void 0}
|
|
4
|
-
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ii=BigInt(0),Ai=BigInt(1);function Ei(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function Oi(t){if(!Ei(t))throw new Error("Uint8Array expected")}function Si(t,e){if("boolean"!=typeof e)throw new Error(t+" boolean expected, got "+e)}function Ti(t){const e=t.toString(16);return 1&e.length?"0"+e:e}function Ci(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);return""===t?Ii:BigInt("0x"+t)}const Bi="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,Ni=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function ji(t){if(Oi(t),Bi)return t.toHex();let e="";for(let n=0;n<t.length;n++)e+=Ni[t[n]];return e}const Ui=48,Mi=57,Ri=65,Fi=70,_i=97,zi=102;function Di(t){return t>=Ui&&t<=Mi?t-Ui:t>=Ri&&t<=Fi?t-(Ri-10):t>=_i&&t<=zi?t-(_i-10):void 0}function Li(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);if(Bi)return Uint8Array.fromHex(t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let e=0,a=0;e<n;e++,a+=2){const n=Di(t.charCodeAt(a)),s=Di(t.charCodeAt(a+1));if(void 0===n||void 0===s){const e=t[a]+t[a+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+a)}r[e]=16*n+s}return r}function Gi(t){return Ci(ji(t))}function qi(t){return Oi(t),Ci(ji(Uint8Array.from(t).reverse()))}function Hi(t,e){return Li(t.toString(16).padStart(2*e,"0"))}function Vi(t,e){return Hi(t,e).reverse()}function Ki(t,e,n){let r;if("string"==typeof e)try{r=Li(e)}catch(e){throw new Error(t+" must be hex string or Uint8Array, cause: "+e)}else{if(!Ei(e))throw new Error(t+" must be hex string or Uint8Array");r=Uint8Array.from(e)}const a=r.length;if("number"==typeof n&&a!==n)throw new Error(t+" of length "+n+" expected, got "+a);return r}function Wi(...t){let e=0;for(let n=0;n<t.length;n++){const r=t[n];Oi(r),e+=r.length}const n=new Uint8Array(e);for(let e=0,r=0;e<t.length;e++){const a=t[e];n.set(a,r),r+=a.length}return n}const Zi=t=>"bigint"==typeof t&&Ii<=t;function Ji(t,e,n){return Zi(t)&&Zi(e)&&Zi(n)&&e<=t&&t<n}function Yi(t,e,n,r){if(!Ji(e,n,r))throw new Error("expected valid "+t+": "+n+" <= n < "+r+", got "+e)}const Qi=t=>(Ai<<BigInt(t))-Ai,Xi=t=>new Uint8Array(t),$i=t=>Uint8Array.from(t);const to={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,stringOrUint8Array:t=>"string"==typeof t||Ei(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};function eo(t,e,n={}){const r=(e,n,r)=>{const a=to[n];if("function"!=typeof a)throw new Error("invalid validator function");const s=t[e];if(!(r&&void 0===s||a(s,t)))throw new Error("param "+String(e)+" is invalid. Expected "+n+", got "+s)};for(const[t,n]of Object.entries(e))r(t,n,!1);for(const[t,e]of Object.entries(n))r(t,e,!0);return t}function no(t){const e=new WeakMap;return(n,...r)=>{const a=e.get(n);if(void 0!==a)return a;const s=t(n,...r);return e.set(n,s),s}}let ro=class t extends Error{constructor(e,n={}){const r=(()=>{if(n.cause instanceof t){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&"details"in n.cause&&"string"==typeof n.cause.details?n.cause.details:n.cause?.message?n.cause.message:n.details})(),a=n.cause instanceof t&&n.cause.docsPath||n.docsPath,s=`${n.docsOrigin??"https://oxlib.sh"}${a??""}`,i=[e||"An error occurred.",...n.metaMessages?["",...n.metaMessages]:[],...r||a||n.version?["",r?`Details: ${r}`:void 0,a?`See: ${s}`:void 0,n.version?`Version: ${n.version}`:void 0]:[]].filter(t=>"string"==typeof t).join("\n");super(i,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=n.cause,this.details=r,this.docs=s,this.docsPath=a,this.shortMessage=e,this.version=n.version??"ox@0.1.1"}walk(t){return ao(this,t)}};function ao(t,e){return e?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?ao(t.cause,e):e?null:t}function so(t,e){if(Io(t)>e)throw new Uo({givenSize:Io(t),maxSize:e})}const io=48,oo=57,co=65,uo=70,lo=97,fo=102;function po(t){return t>=io&&t<=oo?t-io:t>=co&&t<=uo?t-(co-10):t>=lo&&t<=fo?t-(lo-10):void 0}function mo(t,e={}){const{dir:n="left"}=e;let r=t,a=0;for(let t=0;t<r.length-1&&"0"===r["left"===n?t:r.length-t-1].toString();t++)a++;return r="left"===n?r.slice(a):r.slice(0,r.length-a),r}function ho(t,e){if(Zo(t)>e)throw new ec({givenSize:Zo(t),maxSize:e})}function bo(t,e={}){const{dir:n,size:r=32}=e;if(0===r)return t;const a=t.replace("0x","");if(a.length>2*r)throw new rc({size:Math.ceil(a.length/2),targetSize:r,type:"Hex"});return`0x${a["right"===n?"padEnd":"padStart"](2*r,"0")}`}function yo(t,e,n){return JSON.stringify(t,(t,e)=>"bigint"==typeof e?e.toString()+"#__bigint":e,n)}const go=new TextDecoder,vo=new TextEncoder;function wo(t){return t instanceof Uint8Array?t:"string"==typeof t?Po(t):xo(t)}function xo(t){return t instanceof Uint8Array?t:new Uint8Array(t)}function Po(t,e={}){const{size:n}=e;let r=t;n&&(ho(t,n),r=Ko(t,n));let a=r.slice(2);a.length%2&&(a=`0${a}`);const s=a.length/2,i=new Uint8Array(s);for(let t=0,e=0;t<s;t++){const n=po(a.charCodeAt(e++)),r=po(a.charCodeAt(e++));if(void 0===n||void 0===r)throw new ro(`Invalid byte sequence ("${a[e-2]}${a[e-1]}" in "${a}").`);i[t]=n<<4|r}return i}function ko(t,e={}){const{size:n}=e,r=vo.encode(t);return"number"==typeof n?(so(r,n),function(t,e){return function(t,e={}){const{dir:n,size:r=32}=e;if(0===r)return t;if(t.length>r)throw new Ro({size:t.length,targetSize:r,type:"Bytes"});const a=new Uint8Array(r);for(let e=0;e<r;e++){const s="right"===n;a[s?e:r-e-1]=t[s?e:t.length-e-1]}return a}(t,{dir:"right",size:e})}(r,n)):r}function Io(t){return t.length}function Ao(t,e,n,r={}){const{strict:a}=r;!function(t,e){if("number"==typeof e&&e>0&&e>Io(t)-1)throw new Mo({offset:e,position:"start",size:Io(t)})}(t,e);const s=t.slice(e,n);return a&&function(t,e,n){if("number"==typeof e&&"number"==typeof n&&Io(t)!==n-e)throw new Mo({offset:n,position:"end",size:Io(t)})}(s,e,n),s}function Eo(t,e={}){const{size:n}=e;void 0!==n&&so(t,n);return Jo(Go(t,e),e)}function Oo(t,e={}){const{size:n}=e;let r=t;if(void 0!==n&&(so(r,n),r=Co(r)),r.length>1||r[0]>1)throw new No(r);return Boolean(r[0])}function So(t,e={}){const{size:n}=e;void 0!==n&&so(t,n);return Yo(Go(t,e),e)}function To(t,e={}){const{size:n}=e;let r=t;return void 0!==n&&(so(r,n),r=mo(r,{dir:"right"})),go.decode(r)}function Co(t){return mo(t,{dir:"left"})}function Bo(t){try{return function(t){if(!(t instanceof Uint8Array)){if(!t)throw new jo(t);if("object"!=typeof t)throw new jo(t);if(!("BYTES_PER_ELEMENT"in t))throw new jo(t);if(1!==t.BYTES_PER_ELEMENT||"Uint8Array"!==t.constructor.name)throw new jo(t)}}(t),!0}catch{return!1}}class No extends ro{constructor(t){super(`Bytes value \`${t}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}}class jo extends ro{constructor(t){super(`Value \`${"object"==typeof t?yo(t):t}\` of type \`${typeof t}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}let Uo=class extends ro{constructor({givenSize:t,maxSize:e}){super(`Size cannot exceed \`${e}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},Mo=class extends ro{constructor({offset:t,position:e,size:n}){super(`Slice ${"start"===e?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}},Ro=class extends ro{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}};const Fo=new TextEncoder,_o=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function zo(...t){return`0x${t.reduce((t,e)=>t+e.replace("0x",""),"")}`}function Do(t){return t instanceof Uint8Array?Go(t):Array.isArray(t)?Go(new Uint8Array(t)):t}function Lo(t,e={}){const n=`0x${Number(t)}`;return"number"==typeof e.size?(ho(n,e.size),Vo(n,e.size)):n}function Go(t,e={}){let n="";for(let e=0;e<t.length;e++)n+=_o[t[e]];const r=`0x${n}`;return"number"==typeof e.size?(ho(r,e.size),Ko(r,e.size)):r}function qo(t,e={}){const{signed:n,size:r}=e,a=BigInt(t);let s;r?s=n?(1n<<8n*BigInt(r)-1n)-1n:2n**(8n*BigInt(r))-1n:"number"==typeof t&&(s=BigInt(Number.MAX_SAFE_INTEGER));const i="bigint"==typeof s&&n?-s-1n:0;if(s&&a>s||a<i){const e="bigint"==typeof t?"n":"";throw new Xo({max:s?`${s}${e}`:void 0,min:`${i}${e}`,signed:n,size:r,value:`${t}${e}`})}const o=`0x${(n&&a<0?BigInt.asUintN(8*r,BigInt(a)):a).toString(16)}`;return r?Vo(o,r):o}function Ho(t,e={}){return Go(Fo.encode(t),e)}function Vo(t,e){return bo(t,{dir:"left",size:e})}function Ko(t,e){return bo(t,{dir:"right",size:e})}function Wo(t,e,n,r={}){const{strict:a}=r;!function(t,e){if("number"==typeof e&&e>0&&e>Zo(t)-1)throw new nc({offset:e,position:"start",size:Zo(t)})}(t,e);const s=`0x${t.replace("0x","").slice(2*(e??0),2*(n??t.length))}`;return a&&function(t,e,n){if("number"==typeof e&&"number"==typeof n&&Zo(t)!==n-e)throw new nc({offset:n,position:"end",size:Zo(t)})}(s,e,n),s}function Zo(t){return Math.ceil((t.length-2)/2)}function Jo(t,e={}){const{signed:n}=e;e.size&&ho(t,e.size);const r=BigInt(t);if(!n)return r;const a=(t.length-2)/2,s=(1n<<8n*BigInt(a))-1n;return r<=s>>1n?r:r-s-1n}function Yo(t,e={}){const{signed:n,size:r}=e;return Number(n||r?Jo(t,e):t)}function Qo(t,e={}){const{strict:n=!1}=e;try{return function(t,e={}){const{strict:n=!1}=e;if(!t)throw new $o(t);if("string"!=typeof t)throw new $o(t);if(n&&!/^0x[0-9a-fA-F]*$/.test(t))throw new tc(t);if(!t.startsWith("0x"))throw new tc(t)}(t,{strict:n}),!0}catch{return!1}}class Xo extends ro{constructor({max:t,min:e,signed:n,size:r,value:a}){super(`Number \`${a}\` is not in safe${r?` ${8*r}-bit`:""}${n?" signed":" unsigned"} integer range ${t?`(\`${e}\` to \`${t}\`)`:`(above \`${e}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}class $o extends ro{constructor(t){super(`Value \`${"object"==typeof t?yo(t):t}\` of type \`${typeof t}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class tc extends ro{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}class ec extends ro{constructor({givenSize:t,maxSize:e}){super(`Size cannot exceed \`${e}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class nc extends ro{constructor({offset:t,position:e,size:n}){super(`Slice ${"start"===e?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class rc extends ro{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}function ac(t){return{address:t.address,amount:qo(t.amount),index:qo(t.index),validatorIndex:qo(t.validatorIndex)}}function sc(t){return{..."bigint"==typeof t.baseFeePerGas&&{baseFeePerGas:qo(t.baseFeePerGas)},..."bigint"==typeof t.blobBaseFee&&{blobBaseFee:qo(t.blobBaseFee)},..."string"==typeof t.feeRecipient&&{feeRecipient:t.feeRecipient},..."bigint"==typeof t.gasLimit&&{gasLimit:qo(t.gasLimit)},..."bigint"==typeof t.number&&{number:qo(t.number)},..."bigint"==typeof t.prevRandao&&{prevRandao:qo(t.prevRandao)},..."bigint"==typeof t.time&&{time:qo(t.time)},...t.withdrawals&&{withdrawals:t.withdrawals.map(ac)}}}const ic=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],oc=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],cc=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],uc=[...cc,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],dc=[...cc,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],lc=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],fc=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],pc=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],mc=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],hc="0x82ad56cb",bc="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",yc="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",gc="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",vc="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033";class wc extends _t{constructor({blockNumber:t,chain:e,contract:n}){super(`Chain "${e.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...t&&n.blockCreated&&n.blockCreated>t?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${n.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class xc extends _t{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class Pc extends _t{constructor({chainId:t}){super("number"==typeof t?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}const kc="/docs/contract/encodeDeployData";function Ic(t){const{abi:e,args:n,bytecode:r}=t;if(!n||0===n.length)return r;const a=e.find(t=>"type"in t&&"constructor"===t.type);if(!a)throw new Dt({docsPath:kc});if(!("inputs"in a))throw new Lt({docsPath:kc});if(!a.inputs||0===a.inputs.length)throw new Lt({docsPath:kc});return Wn([r,nr(a.inputs,n)])}function Ac({blockNumber:t,chain:e,contract:n}){const r=e?.contracts?.[n];if(!r)throw new wc({chain:e,contract:{name:n}});if(t&&r.blockCreated&&r.blockCreated>t)throw new wc({blockNumber:t,chain:e,contract:{name:n,blockCreated:r.blockCreated}});return r.address}function Ec(t,{docsPath:e,...n}){const r=(()=>{const e=ss(t,n);return e instanceof as?t:e})();return new ta(r,{docsPath:e,...n})}function Oc(){let t=()=>{},e=()=>{};return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}}const Sc=new Map;function Tc({fn:t,id:e,shouldSplitBatch:n,wait:r=0,sort:a}){const s=async()=>{const e=o();i();const n=e.map(({args:t})=>t);0!==n.length&&t(n).then(t=>{a&&Array.isArray(t)&&t.sort(a);for(let n=0;n<e.length;n++){const{resolve:r}=e[n];r?.([t[n],t])}}).catch(t=>{for(let n=0;n<e.length;n++){const{reject:r}=e[n];r?.(t)}})},i=()=>Sc.delete(e),o=()=>Sc.get(e)||[],c=t=>Sc.set(e,[...o(),t]);return{flush:i,async schedule(t){const{promise:e,resolve:a,reject:i}=Oc(),u=n?.([...o().map(({args:t})=>t),t]);u&&s();return o().length>0?(c({args:t,resolve:a,reject:i}),e):(c({args:t,resolve:a,reject:i}),setTimeout(s,r),e)}}}async function Cc(t,e){const{account:n=t.account,authorizationList:r,batch:a=Boolean(t.batch?.multicall),blockNumber:s,blockTag:i=t.experimental_blockTag??"latest",accessList:o,blobs:c,blockOverrides:u,code:d,data:l,factory:f,factoryData:p,gas:m,gasPrice:h,maxFeePerBlobGas:b,maxFeePerGas:y,maxPriorityFeePerGas:g,nonce:v,to:w,value:x,stateOverride:P,...k}=e,I=n?hr(n):void 0;if(d&&(f||p))throw new _t("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(d&&w)throw new _t("Cannot provide both `code` & `to` as parameters.");const A=d&&l,E=f&&p&&w&&l,O=A||E,S=A?Bc({code:d,data:l}):E?function(t){const{data:e,factory:n,factoryData:r,to:a}=t;return Ic({abi:Tt(["constructor(address, bytes, address, bytes)"]),bytecode:yc,args:[a,e,n,r]})}({data:l,factory:f,factoryData:p,to:w}):l;try{ms(e);const n=("bigint"==typeof s?Ce(s):void 0)||i,d=u?sc(u):void 0,l=fs(P),f=t.chain?.formatters?.transactionRequest?.format,p=(f||us)({...is(k,{format:f}),accessList:o,account:I,authorizationList:r,blobs:c,data:S,gas:m,gasPrice:h,maxFeePerBlobGas:b,maxFeePerGas:y,maxPriorityFeePerGas:g,nonce:v,to:O?void 0:w,value:x},"call");if(a&&function({request:t}){const{data:e,to:n,...r}=t;return!!e&&(!e.startsWith(hc)&&(!!n&&!(Object.values(r).filter(t=>void 0!==t).length>0)))}({request:p})&&!l&&!d)try{return await async function(t,e){const{batchSize:n=1024,deployless:r=!1,wait:a=0}="object"==typeof t.batch?.multicall?t.batch.multicall:{},{blockNumber:s,blockTag:i=t.experimental_blockTag??"latest",data:o,to:c}=e,u=(()=>{if(r)return null;if(e.multicallAddress)return e.multicallAddress;if(t.chain)return Ac({blockNumber:s,chain:t.chain,contract:"multicall3"});throw new xc})(),d="bigint"==typeof s?Ce(s):void 0,l=d||i,{schedule:f}=Tc({id:`${t.uid}.${l}`,wait:a,shouldSplitBatch(t){const e=t.reduce((t,{data:e})=>t+(e.length-2),0);return e>2*n},fn:async e=>{const n=e.map(t=>({allowFailure:!0,callData:t.data,target:t.to})),r=yr({abi:ic,args:[n],functionName:"aggregate3"}),a=await t.request({method:"eth_call",params:[{...null===u?{data:Bc({code:vc,data:r})}:{to:u,data:r}},l]});return ki({abi:ic,args:[n],functionName:"aggregate3",data:a||"0x"})}}),[{returnData:p,success:m}]=await f({data:o,to:c});if(!m)throw new sa({data:p});return"0x"===p?{data:void 0}:{data:p}}(t,{...p,blockNumber:s,blockTag:i})}catch(t){if(!(t instanceof xc||t instanceof wc))throw t}const A=(()=>{const t=[p,n];return l&&d?[...t,l,d]:l?[...t,l]:d?[...t,{},d]:t})(),E=await t.request({method:"eth_call",params:A});return"0x"===E?{data:void 0}:{data:E}}catch(n){const r=function(t){if(!(t instanceof _t))return;const e=t.walk();return"object"==typeof e?.data?e.data?.data:e.data}(n),{offchainLookup:a,offchainLookupSignature:s}=await Promise.resolve().then(function(){return Yu});if(!1!==t.ccipRead&&r?.slice(0,10)===s&&w)return{data:await a(t,{data:r,to:w})};if(O&&"0x101bb98d"===r?.slice(0,10))throw new aa({factory:f});throw Ec(n,{...e,account:I,chain:t.chain})}}function Bc(t){const{code:e,data:n}=t;return Ic({abi:Tt(["constructor(bytes, bytes)"]),bytecode:bc,args:[e,n]})}async function Nc(t,e){const{abi:n,address:r,args:a,functionName:s,...i}=e,o=yr({abi:n,args:a,functionName:s});try{const{data:e}=await Ct(t,Cc,"call")({...i,data:o,to:r});return ki({abi:n,args:a,functionName:s,data:e||"0x"})}catch(t){throw _a(t,{abi:n,address:r,args:a,docsPath:"/docs/contract/readContract",functionName:s})}}const jc=new Map,Uc=new Map;let Mc=0;function Rc(t,e,n){const r=++Mc,a=()=>jc.get(t)||[],s=()=>{const e=a();if(!e.some(t=>t.id===r))return;const n=Uc.get(t);if(1===e.length&&n){const t=n();t instanceof Promise&&t.catch(()=>{})}(()=>{const e=a();jc.set(t,e.filter(t=>t.id!==r))})()},i=a();if(jc.set(t,[...i,{id:r,fns:e}]),i&&i.length>0)return s;const o={};for(const t in e)o[t]=(...e)=>{const n=a();if(0!==n.length)for(const r of n)r.fns[t]?.(...e)};const c=n(o);return"function"==typeof c&&Uc.set(t,c),s}async function Fc(t){return new Promise(e=>setTimeout(e,t))}function _c(t,{emitOnBegin:e,initialWaitTime:n,interval:r}){let a=!0;const s=()=>a=!1;return(async()=>{let i;e&&(i=await t({unpoll:s}));const o=await(n?.(i))??r;await Fc(o);const c=async()=>{a&&(await t({unpoll:s}),await Fc(r),c())};c()})(),s}const zc=new Map,Dc=new Map;async function Lc(t,{cacheKey:e,cacheTime:n=Number.POSITIVE_INFINITY}){const r=function(t){const e=(t,e)=>({clear:()=>e.delete(t),get:()=>e.get(t),set:n=>e.set(t,n)}),n=e(t,zc),r=e(t,Dc);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}(e),a=r.response.get();if(a&&n>0){if(Date.now()-a.created.getTime()<n)return a.data}let s=r.promise.get();s||(s=t(),r.promise.set(s));try{const t=await s;return r.response.set({created:new Date,data:t}),t}finally{r.promise.clear()}}async function Gc(t,{cacheTime:e=t.cacheTime}={}){const n=await Lc(()=>t.request({method:"eth_blockNumber"}),{cacheKey:(r=t.uid,`blockNumber.${r}`),cacheTime:e});var r;return BigInt(n)}async function qc(t,{filter:e}){const n="strict"in e&&e.strict,r=await e.request({method:"eth_getFilterChanges",params:[e.id]});if("string"==typeof r[0])return r;const a=r.map(t=>vi(t));return"abi"in e&&e.abi?gi({abi:e.abi,logs:a,strict:n}):a}async function Hc(t,{filter:e}){return e.request({method:"eth_uninstallFilter",params:[e.id]})}class Vc extends _t{constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join("\n"),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class Kc extends _t{constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}function Wc(t,{delay:e=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((a,s)=>{const i=async({count:o=0}={})=>{try{const e=await t();a(e)}catch(t){if(o<n&&await r({count:o,error:t}))return(async({error:t})=>{const n="function"==typeof e?e({count:o,error:t}):e;n&&await Fc(n),i({count:o+1})})({error:t});s(t)}};i()})}const Zc={"0x0":"reverted","0x1":"success"};function Jc(t,e){const n={...t,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,contractAddress:t.contractAddress?t.contractAddress:null,cumulativeGasUsed:t.cumulativeGasUsed?BigInt(t.cumulativeGasUsed):null,effectiveGasPrice:t.effectiveGasPrice?BigInt(t.effectiveGasPrice):null,gasUsed:t.gasUsed?BigInt(t.gasUsed):null,logs:t.logs?t.logs.map(t=>vi(t)):null,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Ie(t.transactionIndex):null,status:t.status?Zc[t.status]:null,type:t.type?vs[t.type]||t.type:null};return t.blobGasPrice&&(n.blobGasPrice=BigInt(t.blobGasPrice)),t.blobGasUsed&&(n.blobGasUsed=BigInt(t.blobGasUsed)),n}const Yc=os("transactionReceipt",Jc),Qc=Ce(0,{size:32});async function Xc(t,e){const{atomic:n=!1,chainId:r,receipts:a,version:s="2.0.0",...i}=await async function(e){if(e.endsWith("0x5792579257925792579257925792579257925792579257925792579257925792".slice(2))){const n=xe(Xn(e,-64,-32)),r=Xn(e,0,-64).slice(2).match(/.{1,64}/g),a=await Promise.all(r.map(e=>Qc.slice(2)!==e?t.request({method:"eth_getTransactionReceipt",params:[`0x${e}`]},{dedupe:!0}):void 0)),s=a.some(t=>null===t)?100:a.every(t=>"0x1"===t?.status)?200:a.every(t=>"0x0"===t?.status)?500:600;return{atomic:!1,chainId:Ie(n),receipts:a.filter(Boolean),status:s,version:"2.0.0"}}return t.request({method:"wallet_getCallsStatus",params:[e]})}(e.id),[o,c]=(()=>{const t=i.status;return t>=100&&t<200?["pending",t]:t>=200&&t<300?["success",t]:t>=300&&t<700?["failure",t]:"CONFIRMED"===t?["success",200]:"PENDING"===t?["pending",100]:[void 0,t]})();return{...i,atomic:n,chainId:r?Ie(r):void 0,receipts:a?.map(t=>({...t,blockNumber:ke(t.blockNumber),gasUsed:ke(t.gasUsed),status:Zc[t.status]}))??[],statusCode:c,status:o,version:s}}async function $c(t,e){const{id:n,pollingInterval:r=t.pollingInterval,status:a=({statusCode:t})=>200===t||t>=300,retryCount:s=4,retryDelay:i=({count:t})=>200*(1<<t),timeout:o=6e4,throwOnFailure:c=!1}=e,u=Mr(["waitForCallsStatus",t.uid,n]),{promise:d,resolve:l,reject:f}=Oc();let p;const m=Rc(u,{resolve:l,reject:f},e=>{const o=_c(async()=>{const r=t=>{clearTimeout(p),o(),t(),m()};try{const o=await Wc(async()=>{const e=await Ct(t,Xc,"getCallsStatus")({id:n});if(c&&"failure"===e.status)throw new Kc(e);return e},{retryCount:s,delay:i});if(!a(o))return;r(()=>e.resolve(o))}catch(t){r(()=>e.reject(t))}},{interval:r,emitOnBegin:!0});return o});return p=o?setTimeout(()=>{m(),clearTimeout(p),f(new tu({id:n}))},o):void 0,await d}class tu extends _t{constructor({id:t}){super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}let eu,nu=256;function ru(t=11){if(!eu||nu+t>512){eu="",nu=0;for(let t=0;t<256;t++)eu+=(256+256*Math.random()|0).toString(16).substring(1)}return eu.substring(nu,nu+++t)}function au(t){const{batch:e,chain:n,ccipRead:r,key:a="base",name:s="Base Client",type:i="base"}=t,o=t.experimental_blockTag??("number"==typeof n?.experimental_preconfirmationTime?"pending":void 0),c=n?.blockTime??12e3,u=Math.min(Math.max(Math.floor(c/2),500),4e3),d=t.pollingInterval??u,l=t.cacheTime??d,f=t.account?hr(t.account):void 0,{config:p,request:m,value:h}=t.transport({chain:n,pollingInterval:d}),b={account:f,batch:e,cacheTime:l,ccipRead:r,chain:n,key:a,name:s,pollingInterval:d,request:m,transport:{...p,...h},type:i,uid:ru(),...o?{experimental_blockTag:o}:{}};return Object.assign(b,{extend:function t(e){return n=>{const r=n(e);for(const t in b)delete r[t];const a={...e,...r};return Object.assign(a,{extend:t(a)})}}(b)})}function su(t){if(!(t instanceof _t))return!1;const e=t.walk(t=>t instanceof na);return e instanceof na&&("HttpError"===e.data?.errorName||("ResolverError"===e.data?.errorName||("ResolverNotContract"===e.data?.errorName||("ResolverNotFound"===e.data?.errorName||("ReverseAddressMismatch"===e.data?.errorName||"UnsupportedResolverProfile"===e.data?.errorName)))))}function iu(t){const{abi:e,data:n}=t,r=Zn(n,0,4),a=e.find(t=>"function"===t.type&&r===ir(Bt(t)));if(!a)throw new ee(r,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:a.name,args:"inputs"in a&&a.inputs&&a.inputs.length>0?Tr(a.inputs,Zn(n,4)):void 0}}const ou="/docs/contract/encodeErrorResult";function cu(t){const{abi:e,errorName:n,args:r}=t;let a=e[0];if(n){const t=or({abi:e,args:r,name:n});if(!t)throw new Zt(n,{docsPath:ou});a=t}if("error"!==a.type)throw new Zt(void 0,{docsPath:ou});const s=Bt(a),i=ir(s);let o="0x";if(r&&r.length>0){if(!a.inputs)throw new Wt(a.name,{docsPath:ou});o=nr(a.inputs,r)}return Wn([i,o])}const uu="/docs/contract/encodeFunctionResult";const du="x-batch-gateway:true";async function lu(t){const{data:e,ccipRequest:n}=t,{args:[r]}=iu({abi:oc,data:e}),a=[],s=[];return await Promise.all(r.map(async(t,e)=>{try{s[e]=t.urls.includes(du)?await lu({data:t.data,ccipRequest:n}):await n(t),a[e]=!1}catch(t){a[e]=!0,s[e]="HttpRequestError"===(r=t).name&&r.status?cu({abi:oc,errorName:"HttpError",args:[r.status,r.shortMessage]}):cu({abi:[vr],errorName:"Error",args:["shortMessage"in r?r.shortMessage:r.message]})}var r})),function(t){const{abi:e,functionName:n,result:r}=t;let a=e[0];if(n){const t=or({abi:e,name:n});if(!t)throw new $t(n,{docsPath:uu});a=t}if("function"!==a.type)throw new $t(void 0,{docsPath:uu});if(!a.outputs)throw new te(a.name,{docsPath:uu});const s=(()=>{if(0===a.outputs.length)return[];if(1===a.outputs.length)return[r];if(Array.isArray(r))return r;throw new ce(r)})();return nr(a.outputs,s)}({abi:oc,functionName:"query",result:[a,s]})}function fu(t){if(66!==t.length)return null;if(0!==t.indexOf("["))return null;if(65!==t.indexOf("]"))return null;const e=`0x${t.slice(1,65)}`;return jt(e)?e:null}function pu(t){let e=new Uint8Array(32).fill(0);if(!t)return Te(e);const n=t.split(".");for(let t=n.length-1;t>=0;t-=1){const r=fu(n[t]),a=r?Ue(r):jn(_e(n[t]),"bytes");e=jn(Kn([e,a]),"bytes")}return Te(e)}function mu(t){return`[${t.slice(2)}]`}function hu(t){const e=new Uint8Array(32).fill(0);return t?fu(t)||jn(_e(t)):Te(e)}function bu(t){const e=t.replace(/^\.|\.$/gm,"");if(0===e.length)return new Uint8Array(1);const n=new Uint8Array(_e(e).byteLength+2);let r=0;const a=e.split(".");for(let t=0;t<a.length;t++){let e=_e(a[t]);e.byteLength>255&&(e=_e(mu(hu(a[t])))),n[r]=e.length,n.set(e,r+1),r+=e.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}class yu extends _t{constructor({data:t}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`],name:"EnsAvatarInvalidMetadataError"})}}class gu extends _t{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}}class vu extends _t{constructor({uri:t}){super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class wu extends _t{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const xu=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,Pu=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,ku=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,Iu=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;function Au(t,e){return t?t.endsWith("/")?t.slice(0,-1):t:e}function Eu({uri:t,gatewayUrls:e}){const n=ku.test(t);if(n)return{uri:t,isOnChain:!0,isEncoded:n};const r=Au(e?.ipfs,"https://ipfs.io"),a=Au(e?.arweave,"https://arweave.net"),s=t.match(xu),{protocol:i,subpath:o,target:c,subtarget:u=""}=s?.groups||{},d="ipns:/"===i||"ipns/"===o,l="ipfs:/"===i||"ipfs/"===o||Pu.test(t);if(t.startsWith("http")&&!d&&!l){let n=t;return e?.arweave&&(n=t.replace(/https:\/\/arweave.net/g,e?.arweave)),{uri:n,isOnChain:!1,isEncoded:!1}}if((d||l)&&c)return{uri:`${r}/${d?"ipns":"ipfs"}/${c}${u}`,isOnChain:!1,isEncoded:!1};if("ar:/"===i&&c)return{uri:`${a}/${c}${u||""}`,isOnChain:!1,isEncoded:!1};let f=t.replace(Iu,"");if(f.startsWith("<svg")&&(f=`data:image/svg+xml;base64,${btoa(f)}`),f.startsWith("data:")||f.startsWith("{"))return{uri:f,isOnChain:!0,isEncoded:!1};throw new vu({uri:t})}function Ou(t){if("object"!=typeof t||!("image"in t)&&!("image_url"in t)&&!("image_data"in t))throw new yu({data:t});return t.image||t.image_url||t.image_data}async function Su({gatewayUrls:t,uri:e}){const{uri:n,isOnChain:r}=Eu({uri:e,gatewayUrls:t});if(r)return n;const a=await async function(t){try{const e=await fetch(t,{method:"HEAD"});if(200===e.status){const t=e.headers.get("content-type");return t?.startsWith("image/")}return!1}catch(e){return("object"!=typeof e||void 0===e.response)&&!!Object.hasOwn(globalThis,"Image")&&new Promise(e=>{const n=new Image;n.onload=()=>{e(!0)},n.onerror=()=>{e(!1)},n.src=t})}}(n);if(a)return n;throw new vu({uri:e})}async function Tu(t,{gatewayUrls:e,record:n}){return/eip155:/i.test(n)?async function(t,{gatewayUrls:e,record:n}){const r=function(t){let e=t;e.startsWith("did:nft:")&&(e=e.replace("did:nft:","").replace(/_/g,"/"));const[n,r,a]=e.split("/"),[s,i]=n.split(":"),[o,c]=r.split(":");if(!s||"eip155"!==s.toLowerCase())throw new gu({reason:"Only EIP-155 supported"});if(!i)throw new gu({reason:"Chain ID not found"});if(!c)throw new gu({reason:"Contract address not found"});if(!a)throw new gu({reason:"Token ID not found"});if(!o)throw new gu({reason:"ERC namespace not found"});return{chainID:Number.parseInt(i,10),namespace:o.toLowerCase(),contractAddress:c,tokenID:a}}(n),a=await async function(t,{nft:e}){if("erc721"===e.namespace)return Nc(t,{address:e.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(e.tokenID)]});if("erc1155"===e.namespace)return Nc(t,{address:e.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(e.tokenID)]});throw new wu({namespace:e.namespace})}(t,{nft:r}),{uri:s,isOnChain:i,isEncoded:o}=Eu({uri:a,gatewayUrls:e});if(i&&(s.includes("data:application/json;base64,")||s.startsWith("{"))){const t=o?atob(s.replace("data:application/json;base64,","")):s;return Su({uri:Ou(JSON.parse(t)),gatewayUrls:e})}let c=r.tokenID;"erc1155"===r.namespace&&(c=c.replace("0x","").padStart(64,"0"));return async function({gatewayUrls:t,uri:e}){try{const n=await fetch(e).then(t=>t.json());return await Su({gatewayUrls:t,uri:Ou(n)})}catch{throw new vu({uri:e})}}({gatewayUrls:e,uri:s.replace(/(?:0x)?{id}/,c)})}(t,{gatewayUrls:e,record:n}):Su({uri:n,gatewayUrls:e})}async function Cu(t,e){const{blockNumber:n,blockTag:r,key:a,name:s,gatewayUrls:i,strict:o}=e,{chain:c}=t,u=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return Ac({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})(),d=c?.ensTlds;if(d&&!d.some(t=>s.endsWith(t)))return null;try{const e={address:u,abi:uc,args:[Oe(bu(s)),yr({abi:lc,functionName:"text",args:[pu(s),a]}),i??[du]],functionName:"resolveWithGateways",blockNumber:n,blockTag:r},o=Ct(t,Nc,"readContract"),c=await o(e);if("0x"===c[0])return null;const d=ki({abi:lc,functionName:"text",data:c[0]});return""===d?null:d}catch(t){if(o)throw t;if(su(t))return null;throw t}}async function Bu(t,e){const{account:n=t.account,blockNumber:r,blockTag:a="latest",blobs:s,data:i,gas:o,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:l,to:f,value:p,...m}=e,h=n?hr(n):void 0;try{ms(e);const n=("bigint"==typeof r?Ce(r):void 0)||a,b=t.chain?.formatters?.transactionRequest?.format,y=(b||us)({...is(m,{format:b}),account:h,blobs:s,data:i,gas:o,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:l,to:f,value:p},"createAccessList"),g=await t.request({method:"eth_createAccessList",params:[y,n]});return{accessList:g.accessList,gasUsed:BigInt(g.gasUsed)}}catch(n){throw Ec(n,{...e,account:h,chain:t.chain})}}async function Nu(t,{address:e,args:n,event:r,events:a,fromBlock:s,strict:i,toBlock:o}={}){const c=a??(r?[r]:void 0),u=pr(t,{method:"eth_newFilter"});let d=[];if(c){const t=c.flatMap(t=>lr({abi:[t],eventName:t.name,args:n}));d=[t],r&&(d=d[0])}const l=await t.request({method:"eth_newFilter",params:[{address:e,fromBlock:"bigint"==typeof s?Ce(s):s,toBlock:"bigint"==typeof o?Ce(o):o,...d.length?{topics:d}:{}}]});return{abi:c,args:n,eventName:r?r.name:void 0,fromBlock:s,id:l,request:u(l),strict:Boolean(i),toBlock:o,type:"event"}}async function ju(t){const e=pr(t,{method:"eth_newPendingTransactionFilter"}),n=await t.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:e(n),type:"transaction"}}async function Uu(t,{address:e,blockNumber:n,blockTag:r="latest"}){const a=void 0!==n?Ce(n):void 0,s=await t.request({method:"eth_getCode",params:[e,a||r]},{dedupe:Boolean(a)});if("0x"!==s)return s}class Mu extends _t{constructor({address:t}){super(`No EIP-712 domain found on contract "${t}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${t}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}const Ru=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];async function Fu(t,{blockCount:e,blockNumber:n,blockTag:r="latest",rewardPercentiles:a}){const s="bigint"==typeof n?Ce(n):void 0;return function(t){return{baseFeePerGas:t.baseFeePerGas.map(t=>BigInt(t)),gasUsedRatio:t.gasUsedRatio,oldestBlock:BigInt(t.oldestBlock),reward:t.reward?.map(t=>t.map(t=>BigInt(t)))}}(await t.request({method:"eth_feeHistory",params:[Ce(e),s||r,a]},{dedupe:Boolean(s)}))}function _u(t,e,n=!1){if("address"===t){const t=e;if(!Vn(t))throw new _n({address:t});return he(t.toLowerCase(),{size:n?32:null})}if("string"===t)return Ne(e);if("bytes"===t)return e;if("bool"===t)return he(Se(e),{size:n?32:1});const r=t.match(er);if(r){const[t,a,s="256"]=r,i=Number.parseInt(s,10)/8;return Ce(e,{size:n?32:i,signed:"int"===a})}const a=t.match(tr);if(a){const[t,r]=a;if(Number.parseInt(r,10)!==(e.length-2)/2)throw new re({expectedSize:Number.parseInt(r,10),givenSize:(e.length-2)/2});return he(e,{dir:"right",size:n?32:null})}const s=t.match($n);if(s&&Array.isArray(e)){const[t,n]=s,r=[];for(let t=0;t<e.length;t++)r.push(_u(n,e[t],!0));return 0===r.length?"0x":Wn(r)}throw new de(t)}function zu(t){const{chainId:e,maxPriorityFeePerGas:n,maxFeePerGas:r,to:a}=t;if(e<=0)throw new Pc({chainId:e});if(a&&!Vn(a))throw new _n({address:a});if(r&&r>ps)throw new Za({maxFeePerGas:r});if(n&&r&&n>r)throw new rs({maxFeePerGas:r,maxPriorityFeePerGas:n})}function Du(t){if(!t||0===t.length)return[];const e=[];for(let n=0;n<t.length;n++){const{address:r,storageKeys:a}=t[n];for(let t=0;t<a.length;t++)if(a[t].length-2!=64)throw new Jr({storageKey:a[t]});if(!Vn(r,{strict:!1}))throw new _n({address:r});e.push([r,a])}return e}function Lu(t,e){const n=ci(t);return"eip1559"===n?function(t,e){const{chainId:n,gas:r,nonce:a,to:s,value:i,maxFeePerGas:o,maxPriorityFeePerGas:c,accessList:u,data:d}=t;zu(t);const l=Du(u),f=[Ce(n),a?Ce(a):"0x",c?Ce(c):"0x",o?Ce(o):"0x",r?Ce(r):"0x",s??"0x",i?Ce(i):"0x",d??"0x",l,...Gu(t,e)];return Wn(["0x02",La(f)])}(t,e):"eip2930"===n?function(t,e){const{chainId:n,gas:r,data:a,nonce:s,to:i,value:o,accessList:c,gasPrice:u}=t;!function(t){const{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:s}=t;if(e<=0)throw new Pc({chainId:e});if(s&&!Vn(s))throw new _n({address:s});if(n||a)throw new _t("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>ps)throw new Za({maxFeePerGas:r})}(t);const d=Du(c),l=[Ce(n),s?Ce(s):"0x",u?Ce(u):"0x",r?Ce(r):"0x",i??"0x",o?Ce(o):"0x",a??"0x",d,...Gu(t,e)];return Wn(["0x01",La(l)])}(t,e):"eip4844"===n?function(t,e){const{chainId:n,gas:r,nonce:a,to:s,value:i,maxFeePerBlobGas:o,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:d,data:l}=t;!function(t){const{blobVersionedHashes:e}=t;if(e){if(0===e.length)throw new ai;for(const t of e){const e=Ut(t),n=Ie(Zn(t,0,1));if(32!==e)throw new si({hash:t,size:e});if(1!==n)throw new ii({hash:t,version:n})}}zu(t)}(t);let f=t.blobVersionedHashes,p=t.sidecars;if(t.blobs&&(void 0===f||void 0===p)){const e="string"==typeof t.blobs[0]?t.blobs:t.blobs.map(t=>Te(t)),n=t.kzg,r=Cs({blobs:e,kzg:n});if(void 0===f&&(f=$s({commitments:r})),void 0===p){p=oi({blobs:e,commitments:r,proofs:Bs({blobs:e,commitments:r,kzg:n})})}}const m=Du(d),h=[Ce(n),a?Ce(a):"0x",u?Ce(u):"0x",c?Ce(c):"0x",r?Ce(r):"0x",s??"0x",i?Ce(i):"0x",l??"0x",m,o?Ce(o):"0x",f??[],...Gu(t,e)],b=[],y=[],g=[];if(p)for(let t=0;t<p.length;t++){const{blob:e,commitment:n,proof:r}=p[t];b.push(e),y.push(n),g.push(r)}return Wn(["0x03",La(p?[h,b,y,g]:h)])}(t,e):"eip7702"===n?function(t,e){const{authorizationList:n,chainId:r,gas:a,nonce:s,to:i,value:o,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:d,data:l}=t;!function(t){const{authorizationList:e}=t;if(e)for(const t of e){const{chainId:e}=t,n=t.address;if(!Vn(n))throw new _n({address:n});if(e<0)throw new Pc({chainId:e})}zu(t)}(t);const f=Du(d),p=function(t){if(!t||0===t.length)return[];const e=[];for(const n of t){const{chainId:t,nonce:r,...a}=n,s=n.address;e.push([t?Oe(t):"0x",s,r?Oe(r):"0x",...Gu({},a)])}return e}(n);return Wn(["0x04",La([Ce(r),s?Ce(s):"0x",u?Ce(u):"0x",c?Ce(c):"0x",a?Ce(a):"0x",i??"0x",o?Ce(o):"0x",l??"0x",f,p,...Gu(t,e)])])}(t,e):function(t,e){const{chainId:n=0,gas:r,data:a,nonce:s,to:i,value:o,gasPrice:c}=t;!function(t){const{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:s}=t;if(s&&!Vn(s))throw new _n({address:s});if(void 0!==e&&e<=0)throw new Pc({chainId:e});if(n||a)throw new _t("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>ps)throw new Za({maxFeePerGas:r})}(t);let u=[s?Ce(s):"0x",c?Ce(c):"0x",r?Ce(r):"0x",i??"0x",o?Ce(o):"0x",a??"0x"];if(e){const t=(()=>{if(e.v>=35n){return(e.v-35n)/2n>0?e.v:27n+(35n===e.v?0n:1n)}if(n>0)return BigInt(2*n)+BigInt(35n+e.v-27n);const t=27n+(27n===e.v?0n:1n);if(e.v!==t)throw new Wr({v:e.v});return t})(),r=xe(e.r),a=xe(e.s);u=[...u,Ce(t),"0x00"===r?"0x":r,"0x00"===a?"0x":a]}else n>0&&(u=[...u,Ce(n),"0x","0x"]);return La(u)}(t,e)}function Gu(t,e){const n=e??t,{v:r,yParity:a}=n;if(void 0===n.r)return[];if(void 0===n.s)return[];if(void 0===r&&void 0===a)return[];const s=xe(n.r),i=xe(n.s);return["number"==typeof a?a?Ce(1):"0x":0n===r?"0x":1n===r?Ce(1):27n===r?"0x":Ce(1),"0x00"===s?"0x":s,"0x00"===i?"0x":i]}const qu=new zn(8192);function Hu(t,e={}){return async(n,r={})=>{const{dedupe:a=!1,methods:s,retryDelay:i=150,retryCount:o=3,uid:c}={...e,...r},{method:u}=n;if(s?.exclude?.includes(u))throw new wa(new Error("method not supported"),{method:u});if(s?.include&&!s.include.includes(u))throw new wa(new Error("method not supported"),{method:u});return function(t,{enabled:e=!0,id:n}){if(!e||!n)return t();if(qu.get(n))return qu.get(n);const r=t().finally(()=>qu.delete(n));return qu.set(n,r),r}(()=>Wc(async()=>{try{return await t(n)}catch(t){const e=t;switch(e.code){case la.code:throw new la(e);case fa.code:throw new fa(e);case pa.code:throw new pa(e,{method:n.method});case ma.code:throw new ma(e);case ha.code:throw new ha(e);case ba.code:throw new ba(e);case ya.code:throw new ya(e);case ga.code:throw new ga(e);case va.code:throw new va(e);case wa.code:throw new wa(e,{method:n.method});case xa.code:throw new xa(e);case Pa.code:throw new Pa(e);case ka.code:throw new ka(e);case Ia.code:throw new Ia(e);case Aa.code:throw new Aa(e);case Ea.code:throw new Ea(e);case Oa.code:throw new Oa(e);case Sa.code:throw new Sa(e);case Ta.code:throw new Ta(e);case Ca.code:throw new Ca(e);case Ba.code:throw new Ba(e);case Na.code:throw new Na(e);case ja.code:throw new ja(e);case Ua.code:throw new Ua(e);case Ma.code:throw new Ma(e);case 5e3:throw new ka(e);default:if(t instanceof _t)throw t;throw new Ra(e)}}},{delay:({count:t,error:e})=>{if(e&&e instanceof ia){const t=e?.headers?.get("Retry-After");if(t?.match(/\d/))return 1e3*Number.parseInt(t,10)}return(1<<t)*i},retryCount:o,shouldRetry:({error:t})=>function(t){if("code"in t&&"number"==typeof t.code)return-1===t.code||(t.code===xa.code||t.code===ha.code);if(t instanceof ia&&t.status)return 403===t.status||(408===t.status||(413===t.status||(429===t.status||(500===t.status||(502===t.status||(503===t.status||504===t.status))))));return!0}(t)}),{enabled:a,id:a?Ne(`${c}.${Mr(n)}`):void 0})}}class Vu extends _t{constructor({callbackSelector:t,cause:e,data:n,extraData:r,sender:a,urls:s}){super(e.shortMessage||"An error occurred while fetching for an offchain result.",{cause:e,metaMessages:[...e.metaMessages||[],e.metaMessages?.length?"":[],"Offchain Gateway Call:",s&&[" Gateway URL(s):",...s.map(t=>` ${t}`)],` Sender: ${a}`,` Data: ${n}`,` Callback selector: ${t}`,` Extra data: ${r}`].flat(),name:"OffchainLookupError"})}}class Ku extends _t{constructor({result:t,url:e}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${e}`,`Response: ${Mr(t)}`],name:"OffchainLookupResponseMalformedError"})}}class Wu extends _t{constructor({sender:t,to:e}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${e}`,`OffchainLookup sender address: ${t}`],name:"OffchainLookupSenderMismatchError"})}}const Zu={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function Ju({data:t,sender:e,urls:n}){let r=new Error("An unknown error occurred.");for(let a=0;a<n.length;a++){const s=n[a],i=s.includes("{data}")?"GET":"POST",o="POST"===i?{data:t,sender:e}:void 0,c="POST"===i?{"Content-Type":"application/json"}:{};try{const n=await fetch(s.replace("{sender}",e.toLowerCase()).replace("{data}",t),{body:JSON.stringify(o),headers:c,method:i});let a;if(a=n.headers.get("Content-Type")?.startsWith("application/json")?(await n.json()).data:await n.text(),!n.ok){r=new ia({body:o,details:a?.error?Mr(a.error):n.statusText,headers:n.headers,status:n.status,url:s});continue}if(!jt(a)){r=new Ku({result:a,url:s});continue}return a}catch(t){r=new ia({body:o,details:t.message,url:s})}}throw r}var Yu=Object.freeze({__proto__:null,ccipRequest:Ju,offchainLookup:async function(t,{blockNumber:e,blockTag:n,data:r,to:a}){const{args:s}=Ur({data:r,abi:[Zu]}),[i,o,c,u,d]=s,{ccipRead:l}=t,f=l&&"function"==typeof l?.request?l.request:Ju;try{if(!mi(a,i))throw new Wu({sender:i,to:a});const r=o.includes(du)?await lu({data:c,ccipRequest:f}):await f({data:c,sender:i,urls:o}),{data:s}=await Cc(t,{blockNumber:e,blockTag:n,data:Kn([u,nr([{type:"bytes"},{type:"bytes"}],[r,d])]),to:a});return s}catch(t){throw new Vu({callbackSelector:u,cause:t,data:r,extraData:d,sender:i,urls:o})}},offchainLookupAbiItem:Zu,offchainLookupSignature:"0x556f1830"});function Qu(t){return{formatters:void 0,fees:void 0,serializers:void 0,...t}}function Xu(t){const{source:e}=t,n=new Map,r=new zn(8192),a=new Map,s=({address:t,chainId:e})=>`${t}.${e}`;return{async consume({address:t,chainId:n,client:a}){const i=s({address:t,chainId:n}),o=this.get({address:t,chainId:n,client:a});this.increment({address:t,chainId:n});const c=await o;return await e.set({address:t,chainId:n},c),r.set(i,c),c},async increment({address:t,chainId:e}){const r=s({address:t,chainId:e}),a=n.get(r)??0;n.set(r,a+1)},async get({address:t,chainId:i,client:o}){const c=s({address:t,chainId:i});let u=a.get(c);u||(u=(async()=>{try{const n=await e.get({address:t,chainId:i,client:o}),a=r.get(c)??0;return a>0&&n<=a?a+1:(r.delete(c),n)}finally{this.reset({address:t,chainId:i})}})(),a.set(c,u));return(n.get(c)??0)+await u},reset({address:t,chainId:e}){const r=s({address:t,chainId:e});n.delete(r),a.delete(r)}}}function $u(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const td=$u();function ed(t,e={}){return{async request(n){const{body:r,fetchFn:a=e.fetchFn??fetch,onRequest:s=e.onRequest,onResponse:i=e.onResponse,timeout:o=e.timeout??1e4}=n,c={...e.fetchOptions??{},...n.fetchOptions??{}},{headers:u,method:d,signal:l}=c;try{const e=await function(t,{errorInstance:e=new Error("timed out"),timeout:n,signal:r}){return new Promise((a,s)=>{(async()=>{let i;try{const e=new AbortController;n>0&&(i=setTimeout(()=>{r&&e.abort()},n)),a(await t({signal:e?.signal||null}))}catch(t){"AbortError"===t?.name&&s(e),s(t)}finally{clearTimeout(i)}})()})}(async({signal:e})=>{const n={...c,body:Array.isArray(r)?Mr(r.map(t=>({jsonrpc:"2.0",id:t.id??td.take(),...t}))):Mr({jsonrpc:"2.0",id:r.id??td.take(),...r}),headers:{"Content-Type":"application/json",...u},method:d||"POST",signal:l||(o>0?e:null)},i=new Request(t,n),f=await(s?.(i,n))??{...n,url:t};return await a(f.url??t,f)},{errorInstance:new ca({body:r,url:t}),timeout:o,signal:!0});let n;if(i&&await i(e),e.headers.get("Content-Type")?.startsWith("application/json"))n=await e.json();else{n=await e.text();try{n=JSON.parse(n||"{}")}catch(t){if(e.ok)throw t;n={error:n}}}if(!e.ok)throw new ia({body:r,details:Mr(n.error)||e.statusText,headers:e.headers,status:e.status,url:t});return n}catch(e){if(e instanceof ia)throw e;if(e instanceof ca)throw e;throw new ia({body:r,cause:e,url:t})}}}}function nd(t,e){return jn(function(t){const e="string"==typeof t?Ne(t):"string"==typeof t.raw?t.raw:Te(t.raw);return Kn([Ne(`Ethereum Signed Message:\n${Ut(e)}`),e])}(t),e)}class rd extends _t{constructor({domain:t}){super(`Invalid domain "${Mr(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class ad extends _t{constructor({primaryType:t,types:e}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(e))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class sd extends _t{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function id({domain:t}){return["string"==typeof t?.name&&{name:"name",type:"string"},t?.version&&{name:"version",type:"string"},("number"==typeof t?.chainId||"bigint"==typeof t?.chainId)&&{name:"chainId",type:"uint256"},t?.verifyingContract&&{name:"verifyingContract",type:"address"},t?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}function od(t){if("address"===t||"bool"===t||"string"===t||t.startsWith("bytes")||t.startsWith("uint")||t.startsWith("int"))throw new sd({type:t})}function cd(t){const{domain:e={},message:n,primaryType:r}=t,a={EIP712Domain:id({domain:e}),...t.types};!function(t){const{domain:e,message:n,primaryType:r,types:a}=t,s=(t,e)=>{for(const n of t){const{name:t,type:r}=n,i=e[t],o=r.match(er);if(o&&("number"==typeof i||"bigint"==typeof i)){const[t,e,n]=o;Ce(i,{signed:"int"===e,size:Number.parseInt(n,10)/8})}if("address"===r&&"string"==typeof i&&!Vn(i))throw new _n({address:i});const c=r.match(tr);if(c){const[t,e]=c;if(e&&Ut(i)!==Number.parseInt(e,10))throw new re({expectedSize:Number.parseInt(e,10),givenSize:Ut(i)})}const u=a[r];u&&(od(r),s(u,i))}};if(a.EIP712Domain&&e){if("object"!=typeof e)throw new rd({domain:e});s(a.EIP712Domain,e)}if("EIP712Domain"!==r){if(!a[r])throw new ad({primaryType:r,types:a});s(a[r],n)}}({domain:e,message:n,primaryType:r,types:a});const s=["0x1901"];return e&&s.push(function({domain:t,types:e}){return ud({data:t,primaryType:"EIP712Domain",types:e})}({domain:e,types:a})),"EIP712Domain"!==r&&s.push(ud({data:n,primaryType:r,types:a})),jn(Kn(s))}function ud({data:t,primaryType:e,types:n}){return jn(dd({data:t,primaryType:e,types:n}))}function dd({data:t,primaryType:e,types:n}){const r=[{type:"bytes32"}],a=[ld({primaryType:e,types:n})];for(const s of n[e]){const[e,i]=pd({types:n,name:s.name,type:s.type,value:t[s.name]});r.push(e),a.push(i)}return nr(r,a)}function ld({primaryType:t,types:e}){const n=Oe(function({primaryType:t,types:e}){let n="";const r=fd({primaryType:t,types:e});r.delete(t);const a=[t,...Array.from(r).sort()];for(const t of a)n+=`${t}(${e[t].map(({name:t,type:e})=>`${e} ${t}`).join(",")})`;return n}({primaryType:t,types:e}));return jn(n)}function fd({primaryType:t,types:e},n=new Set){const r=t.match(/^\w*/u),a=r?.[0];if(n.has(a)||void 0===e[a])return n;n.add(a);for(const t of e[a])fd({primaryType:t.type,types:e},n);return n}function pd({types:t,name:e,type:n,value:r}){if(void 0!==t[n])return[{type:"bytes32"},jn(dd({data:r,primaryType:n,types:t}))];if("bytes"===n){return[{type:"bytes32"},jn(r=`0x${(r.length%2?"0":"")+r.slice(2)}`)]}if("string"===n)return[{type:"bytes32"},jn(Oe(r))];if(n.lastIndexOf("]")===n.length-1){const a=n.slice(0,n.lastIndexOf("[")),s=r.map(n=>pd({name:e,type:a,types:t,value:n}));return[{type:"bytes32"},jn(nr(s.map(([t])=>t),s.map(([,t])=>t)))]}return[{type:n},r]}class md extends Error{constructor(t,e={}){const n=e.cause instanceof md?e.cause.details:e.cause?.message?e.cause.message:e.details,r=e.cause instanceof md&&e.cause.docsPath||e.docsPath;super([t||"An error occurred.","",...e.metaMessages?[...e.metaMessages,""]:[],...r?[`Docs: https://abitype.dev${r}`]:[],...n?[`Details: ${n}`]:[],"Version: abitype@1.1.1"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),e.cause&&(this.cause=e.cause),this.details=n,this.docsPath=r,this.metaMessages=e.metaMessages,this.shortMessage=t}}function hd(t,e){const n=t.exec(e);return n?.groups}const bd=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,yd=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,gd=/^\(.+?\).*?$/,vd=/^tuple(?<array>(\[(\d*)\])*)$/;function wd(t){let e=t.type;if(vd.test(t.type)&&"components"in t){e="(";const n=t.components.length;for(let r=0;r<n;r++){e+=wd(t.components[r]),r<n-1&&(e+=", ")}const r=hd(vd,t.type);return e+=`)${r?.array??""}`,wd({...t,type:e})}return"indexed"in t&&t.indexed&&(e=`${e} indexed`),t.name?`${e} ${t.name}`:e}function xd(t){let e="";const n=t.length;for(let r=0;r<n;r++){e+=wd(t[r]),r!==n-1&&(e+=", ")}return e}function Pd(t){return"function"===t.type?`function ${t.name}(${xd(t.inputs)})${t.stateMutability&&"nonpayable"!==t.stateMutability?` ${t.stateMutability}`:""}${t.outputs?.length?` returns (${xd(t.outputs)})`:""}`:"event"===t.type?`event ${t.name}(${xd(t.inputs)})`:"error"===t.type?`error ${t.name}(${xd(t.inputs)})`:"constructor"===t.type?`constructor(${xd(t.inputs)})${"payable"===t.stateMutability?" payable":""}`:"fallback"===t.type?"fallback() external"+("payable"===t.stateMutability?" payable":""):"receive() external payable"}const kd=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;const Id=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;const Ad=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;const Ed=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function Od(t){return Ed.test(t)}function Sd(t){return hd(Ed,t)}const Td=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;const Cd=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;const Bd=/^receive\(\) external payable$/;const Nd=new Set(["memory","indexed","storage","calldata"]),jd=new Set(["indexed"]),Ud=new Set(["calldata","memory","storage"]);class Md extends md{constructor({signature:t}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class Rd extends md{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class Fd extends md{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class _d extends md{constructor({params:t}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class zd extends md{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class Dd extends md{constructor({param:t,name:e}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${e}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class Ld extends md{constructor({param:t,type:e,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${e?` in "${e}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class Gd extends md{constructor({param:t,type:e,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${e?` in "${e}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class qd extends md{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class Hd extends md{constructor({signature:t,type:e}){super(`Invalid ${e} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class Vd extends md{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class Kd extends md{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class Wd extends md{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class Zd extends md{constructor({current:t,depth:e}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${e>0?"opening":"closing"} parentheses.`],details:`Depth "${e}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}const Jd=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function Yd(t,e={}){if(function(t){return Ad.test(t)}(t))return function(t,e={}){const n=function(t){return hd(Ad,t)}(t);if(!n)throw new Hd({signature:t,type:"function"});const r=el(n.parameters),a=[],s=r.length;for(let t=0;t<s;t++)a.push(tl(r[t],{modifiers:Ud,structs:e,type:"function"}));const i=[];if(n.returns){const t=el(n.returns),r=t.length;for(let n=0;n<r;n++)i.push(tl(t[n],{modifiers:Ud,structs:e,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:a,outputs:i}}(t,e);if(function(t){return Id.test(t)}(t))return function(t,e={}){const n=function(t){return hd(Id,t)}(t);if(!n)throw new Hd({signature:t,type:"event"});const r=el(n.parameters),a=[],s=r.length;for(let t=0;t<s;t++)a.push(tl(r[t],{modifiers:jd,structs:e,type:"event"}));return{name:n.name,type:"event",inputs:a}}(t,e);if(function(t){return kd.test(t)}(t))return function(t,e={}){const n=function(t){return hd(kd,t)}(t);if(!n)throw new Hd({signature:t,type:"error"});const r=el(n.parameters),a=[],s=r.length;for(let t=0;t<s;t++)a.push(tl(r[t],{structs:e,type:"error"}));return{name:n.name,type:"error",inputs:a}}(t,e);if(function(t){return Td.test(t)}(t))return function(t,e={}){const n=function(t){return hd(Td,t)}(t);if(!n)throw new Hd({signature:t,type:"constructor"});const r=el(n.parameters),a=[],s=r.length;for(let t=0;t<s;t++)a.push(tl(r[t],{structs:e,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:a}}(t,e);if(function(t){return Cd.test(t)}(t))return function(t){const e=function(t){return hd(Cd,t)}(t);if(!e)throw new Hd({signature:t,type:"fallback"});return{type:"fallback",stateMutability:e.stateMutability??"nonpayable"}}(t);if(function(t){return Bd.test(t)}(t))return{type:"receive",stateMutability:"payable"};throw new Vd({signature:t})}const Qd=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Xd=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,$d=/^u?int$/;function tl(t,e){const n=function(t,e,n){let r="";if(n)for(const t of Object.entries(n)){if(!t)continue;let e="";for(const n of t[1])e+=`[${n.type}${n.name?`:${n.name}`:""}]`;r+=`(${t[0]}{${e}})`}return e?`${e}:${t}${r}`:t}(t,e?.type,e?.structs);if(Jd.has(n))return Jd.get(n);const r=gd.test(t),a=hd(r?Xd:Qd,t);if(!a)throw new zd({param:t});if(a.name&&function(t){return"address"===t||"bool"===t||"function"===t||"string"===t||"tuple"===t||bd.test(t)||yd.test(t)||rl.test(t)}(a.name))throw new Dd({param:t,name:a.name});const s=a.name?{name:a.name}:{},i="indexed"===a.modifier?{indexed:!0}:{},o=e?.structs??{};let c,u={};if(r){c="tuple";const t=el(a.type),e=[],n=t.length;for(let r=0;r<n;r++)e.push(tl(t[r],{structs:o}));u={components:e}}else if(a.type in o)c="tuple",u={components:o[a.type]};else if($d.test(a.type))c=`${a.type}256`;else if("address payable"===a.type)c="address";else if(c=a.type,"struct"!==e?.type&&!nl(c))throw new Fd({type:c});if(a.modifier){if(!e?.modifiers?.has?.(a.modifier))throw new Ld({param:t,type:e?.type,modifier:a.modifier});if(Ud.has(a.modifier)&&!function(t,e){return e||"bytes"===t||"string"===t||"tuple"===t}(c,!!a.array))throw new Gd({param:t,type:e?.type,modifier:a.modifier})}const d={type:`${c}${a.array??""}`,...s,...i,...u};return Jd.set(n,d),d}function el(t,e=[],n="",r=0){const a=t.trim().length;for(let s=0;s<a;s++){const a=t[s],i=t.slice(s+1);switch(a){case",":return 0===r?el(i,[...e,n.trim()]):el(i,e,`${n}${a}`,r);case"(":return el(i,e,`${n}${a}`,r+1);case")":return el(i,e,`${n}${a}`,r-1);default:return el(i,e,`${n}${a}`,r)}}if(""===n)return e;if(0!==r)throw new Zd({current:n,depth:r});return e.push(n.trim()),e}function nl(t){return"address"===t||"bool"===t||"function"===t||"string"===t||bd.test(t)||yd.test(t)}const rl=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function al(t){const e={},n=t.length;for(let r=0;r<n;r++){const n=t[r];if(!Od(n))continue;const a=Sd(n);if(!a)throw new Hd({signature:n,type:"struct"});const s=a.properties.split(";"),i=[],o=s.length;for(let t=0;t<o;t++){const e=s[t].trim();if(!e)continue;const n=tl(e,{type:"struct"});i.push(n)}if(!i.length)throw new Kd({signature:n});e[a.name]=i}const r={},a=Object.entries(e),s=a.length;for(let t=0;t<s;t++){const[n,s]=a[t];r[n]=il(s,e)}return r}const sl=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function il(t,e,n=new Set){const r=[],a=t.length;for(let s=0;s<a;s++){const a=t[s];if(gd.test(a.type))r.push(a);else{const t=hd(sl,a.type);if(!t?.type)throw new qd({abiParameter:a});const{array:s,type:i}=t;if(i in e){if(n.has(i))throw new Wd({type:i});r.push({...a,type:`tuple${s??""}`,components:il(e[i]??[],e,new Set([...n,i]))})}else{if(!nl(i))throw new Rd({type:i});r.push(a)}}}return r}function ol(t){let e;if("string"==typeof t)e=Yd(t);else{const n=al(t),r=t.length;for(let a=0;a<r;a++){const r=t[a];if(!Od(r)){e=Yd(r,n);break}}}if(!e)throw new Md({signature:t});return e}function cl(t){const e=[];if("string"==typeof t){const n=el(t),r=n.length;for(let t=0;t<r;t++)e.push(tl(n[t],{modifiers:Nd}))}else{const n=al(t),r=t.length;for(let a=0;a<r;a++){const r=t[a];if(Od(r))continue;const s=el(r),i=s.length;for(let t=0;t<i;t++)e.push(tl(s[t],{modifiers:Nd,structs:n}))}}if(0===e.length)throw new _d({params:t});return e}class ul extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const e=super.get(t);return super.has(t)&&void 0!==e&&(this.delete(t),super.set(t,e)),e}set(t,e){if(super.set(t,e),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}}const dl={checksum:new ul(8192)}.checksum;function ll(t,e={}){const{as:n=("string"==typeof t?"Hex":"Bytes")}=e,r=Nn(wo(t));return"Bytes"===n?r:Go(r)}function fl(t,e={}){const{as:n=("string"==typeof t?"Hex":"Bytes")}=e,r=Qs(wo(t));return"Bytes"===n?r:Go(r)}function pl(t,e={}){const{compressed:n}=e,{prefix:r,x:a,y:s}=t;if(!1===n||"bigint"==typeof a&&"bigint"==typeof s){if(4!==r)throw new gl({prefix:r,cause:new wl})}else{if(!0!==n&&("bigint"!=typeof a||void 0!==s))throw new yl({publicKey:t});if(3!==r&&2!==r)throw new gl({prefix:r,cause:new vl})}}function ml(t){const e=(()=>{if(Qo(t))return hl(t);if(Bo(t))return function(t){return hl(Go(t))}(t);const{prefix:e,x:n,y:r}=t;return"bigint"==typeof n&&"bigint"==typeof r?{prefix:e??4,x:n,y:r}:{prefix:e,x:n}})();return pl(e),e}function hl(t){if(132!==t.length&&130!==t.length&&68!==t.length)throw new xl({publicKey:t});if(130===t.length){return{prefix:4,x:BigInt(Wo(t,0,32)),y:BigInt(Wo(t,32,64))}}if(132===t.length){return{prefix:Number(Wo(t,0,1)),x:BigInt(Wo(t,1,33)),y:BigInt(Wo(t,33,65))}}return{prefix:Number(Wo(t,0,1)),x:BigInt(Wo(t,1,33))}}function bl(t,e={}){pl(t);const{prefix:n,x:r,y:a}=t,{includePrefix:s=!0}=e;return zo(s?qo(n,{size:1}):"0x",qo(r,{size:32}),"bigint"==typeof a?qo(a,{size:32}):"0x")}class yl extends ro{constructor({publicKey:t}){super(`Value \`${yo(t)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}class gl extends ro{constructor({prefix:t,cause:e}){super(`Prefix "${t}" is invalid.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}class vl extends ro{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class wl extends ro{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}let xl=class extends ro{constructor({publicKey:t}){super(`Value \`${t}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${Zo(Do(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}};const Pl=/^0x[a-fA-F0-9]{40}$/;function kl(t,e={}){const{strict:n=!0}=e;if(!Pl.test(t))throw new El({address:t,cause:new Ol});if(n){if(t.toLowerCase()===t)return;if(Il(t)!==t)throw new El({address:t,cause:new Sl})}}function Il(t){if(dl.has(t))return dl.get(t);kl(t,{strict:!1});const e=t.substring(2).toLowerCase(),n=ll(ko(e),{as:"Bytes"}),r=e.split("");for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&r[t]&&(r[t]=r[t].toUpperCase()),(15&n[t>>1])>=8&&r[t+1]&&(r[t+1]=r[t+1].toUpperCase());const a=`0x${r.join("")}`;return dl.set(t,a),a}function Al(t,e={}){const{strict:n=!0}=e??{};try{return kl(t,{strict:n}),!0}catch{return!1}}class El extends ro{constructor({address:t,cause:e}){super(`Address "${t}" is invalid.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class Ol extends ro{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class Sl extends ro{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}const Tl=/^(.*)\[([0-9]*)\]$/,Cl=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Bl=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,Nl=2n**256n-1n;function jl(t,e,n){const{checksumAddress:r,staticPosition:a}=n,s=_l(e.type);if(s){const[n,i]=s;return function(t,e,n){const{checksumAddress:r,length:a,staticPosition:s}=n;if(!a){const n=s+So(t.readBytes(Ml)),a=n+Ul;t.setPosition(n);const i=So(t.readBytes(Ul)),o=zl(e);let c=0;const u=[];for(let n=0;n<i;++n){t.setPosition(a+(o?32*n:c));const[s,i]=jl(t,e,{checksumAddress:r,staticPosition:a});c+=i,u.push(s)}return t.setPosition(s+32),[u,32]}if(zl(e)){const n=s+So(t.readBytes(Ml)),i=[];for(let s=0;s<a;++s){t.setPosition(n+32*s);const[a]=jl(t,e,{checksumAddress:r,staticPosition:n});i.push(a)}return t.setPosition(s+32),[i,32]}let i=0;const o=[];for(let n=0;n<a;++n){const[n,a]=jl(t,e,{checksumAddress:r,staticPosition:s+i});i+=a,o.push(n)}return[o,i]}(t,{...e,type:i},{checksumAddress:r,length:n,staticPosition:a})}if("tuple"===e.type)return function(t,e,n){const{checksumAddress:r,staticPosition:a}=n,s=0===e.components.length||e.components.some(({name:t})=>!t),i=s?[]:{};let o=0;if(zl(e)){const n=a+So(t.readBytes(Ml));for(let a=0;a<e.components.length;++a){const c=e.components[a];t.setPosition(n+o);const[u,d]=jl(t,c,{checksumAddress:r,staticPosition:n});o+=d,i[s?a:c?.name]=u}return t.setPosition(a+32),[i,32]}for(let n=0;n<e.components.length;++n){const c=e.components[n],[u,d]=jl(t,c,{checksumAddress:r,staticPosition:a});i[s?n:c?.name]=u,o+=d}return[i,o]}(t,e,{checksumAddress:r,staticPosition:a});if("address"===e.type)return function(t,e={}){const{checksum:n=!1}=e,r=t.readBytes(32),a=t=>n?Il(t):t;return[a(Go(Ao(r,-20))),32]}(t,{checksum:r});if("bool"===e.type)return function(t){return[Oo(t.readBytes(32),{size:32}),32]}(t);if(e.type.startsWith("bytes"))return function(t,e,{staticPosition:n}){const[r,a]=e.type.split("bytes");if(!a){const e=So(t.readBytes(32));t.setPosition(n+e);const r=So(t.readBytes(32));if(0===r)return t.setPosition(n+32),["0x",32];const a=t.readBytes(r);return t.setPosition(n+32),[Go(a),32]}const s=Go(t.readBytes(Number.parseInt(a,10),32));return[s,32]}(t,e,{staticPosition:a});if(e.type.startsWith("uint")||e.type.startsWith("int"))return function(t,e){const n=e.type.startsWith("int"),r=Number.parseInt(e.type.split("int")[1]||"256",10),a=t.readBytes(32);return[r>48?Eo(a,{signed:n}):So(a,{signed:n}),32]}(t,e);if("string"===e.type)return function(t,{staticPosition:e}){const n=So(t.readBytes(32)),r=e+n;t.setPosition(r);const a=So(t.readBytes(32));if(0===a)return t.setPosition(e+32),["",32];const s=t.readBytes(a,32),i=To(Co(s));return t.setPosition(e+32),[i,32]}(t,{staticPosition:a});throw new tf(e.type)}const Ul=32,Ml=32;function Rl({checksumAddress:t=!1,parameter:e,value:n}){const r=e,a=_l(r.type);if(a){const[e,s]=a;return function(t,e){const{checksumAddress:n,length:r,parameter:a}=e,s=null===r;if(!Array.isArray(t))throw new $l(t);if(!s&&t.length!==r)throw new Yl({expectedLength:r,givenLength:t.length,type:`${a.type}[${r}]`});let i=!1;const o=[];for(let e=0;e<t.length;e++){const r=Rl({checksumAddress:n,parameter:a,value:t[e]});r.dynamic&&(i=!0),o.push(r)}if(s||i){const t=Fl(o);if(s){const e=qo(o.length,{size:32});return{dynamic:!0,encoded:o.length>0?zo(e,t):e}}if(i)return{dynamic:!0,encoded:t}}return{dynamic:!1,encoded:zo(...o.map(({encoded:t})=>t))}}(n,{checksumAddress:t,length:e,parameter:{...r,type:s}})}if("tuple"===r.type)return function(t,e){const{checksumAddress:n,parameter:r}=e;let a=!1;const s=[];for(let e=0;e<r.components.length;e++){const i=r.components[e],o=Rl({checksumAddress:n,parameter:i,value:t[Array.isArray(t)?e:i.name]});s.push(o),o.dynamic&&(a=!0)}return{dynamic:a,encoded:a?Fl(s):zo(...s.map(({encoded:t})=>t))}}(n,{checksumAddress:t,parameter:r});if("address"===r.type)return function(t,e){const{checksum:n=!1}=e;return kl(t,{strict:n}),{dynamic:!1,encoded:Vo(t.toLowerCase())}}(n,{checksum:t});if("bool"===r.type)return function(t){if("boolean"!=typeof t)throw new ro(`Invalid boolean value: "${t}" (type: ${typeof t}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Vo(Lo(t))}}(n);if(r.type.startsWith("uint")||r.type.startsWith("int")){const t=r.type.startsWith("int"),[,,e="256"]=Bl.exec(r.type)??[];return function(t,{signed:e,size:n}){if("number"==typeof n){const r=2n**(BigInt(n)-(e?1n:0n))-1n,a=e?-r-1n:0n;if(t>r||t<a)throw new Xo({max:r.toString(),min:a.toString(),signed:e,size:n/8,value:t.toString()})}return{dynamic:!1,encoded:qo(t,{size:32,signed:e})}}(n,{signed:t,size:Number(e)})}if(r.type.startsWith("bytes"))return function(t,{type:e}){const[,n]=e.split("bytes"),r=Zo(t);if(!n){let e=t;return r%32!=0&&(e=Ko(e,32*Math.ceil((t.length-2)/2/32))),{dynamic:!0,encoded:zo(Vo(qo(r,{size:32})),e)}}if(r!==Number.parseInt(n,10))throw new Ql({expectedSize:Number.parseInt(n,10),value:t});return{dynamic:!1,encoded:Ko(t)}}(n,{type:r.type});if("string"===r.type)return function(t){const e=Ho(t),n=Math.ceil(Zo(e)/32),r=[];for(let t=0;t<n;t++)r.push(Ko(Wo(e,32*t,32*(t+1))));return{dynamic:!0,encoded:zo(Ko(qo(Zo(e),{size:32})),...r)}}(n);throw new tf(r.type)}function Fl(t){let e=0;for(let n=0;n<t.length;n++){const{dynamic:r,encoded:a}=t[n];e+=r?32:Zo(a)}const n=[],r=[];let a=0;for(let s=0;s<t.length;s++){const{dynamic:i,encoded:o}=t[s];i?(n.push(qo(e+a,{size:32})),r.push(o),a+=Zo(o)):n.push(o)}return zo(...n,...r)}function _l(t){const e=t.match(/^(.*)\[(\d+)?\]$/);return e?[e[2]?Number(e[2]):null,e[1]]:void 0}function zl(t){const{type:e}=t;if("string"===e)return!0;if("bytes"===e)return!0;if(e.endsWith("[]"))return!0;if("tuple"===e)return t.components?.some(zl);const n=_l(t.type);return!(!n||!zl({...t,type:n[1]}))}const Dl={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new ql({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(t){if(t<0||t>this.bytes.length-1)throw new Gl({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new Ll({offset:t});const e=this.position-t;this.assertPosition(e),this.position=e},getReadCount(t){return this.positionReadCount.get(t||this.position)||0},incrementPosition(t){if(t<0)throw new Ll({offset:t});const e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){const n=e??this.position;return this.assertPosition(n+t-1),this.bytes.subarray(n,n+t)},inspectUint8(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){const e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){const e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){const e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,255&t),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const t=this.inspectByte();return this.position++,t},readBytes(t,e){this.assertReadLimit(),this._touch();const n=this.inspectBytes(t);return this.position+=e??t,n},readUint8(){this.assertReadLimit(),this._touch();const t=this.inspectUint8();return this.position+=1,t},readUint16(){this.assertReadLimit(),this._touch();const t=this.inspectUint16();return this.position+=2,t},readUint24(){this.assertReadLimit(),this._touch();const t=this.inspectUint24();return this.position+=3,t},readUint32(){this.assertReadLimit(),this._touch();const t=this.inspectUint32();return this.position+=4,t},get remaining(){return this.bytes.length-this.position},setPosition(t){const e=this.position;return this.assertPosition(t),this.position=t,()=>this.position=e},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const t=this.getReadCount();this.positionReadCount.set(this.position,t+1),t>0&&this.recursiveReadCount++}};class Ll extends ro{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class Gl extends ro{constructor({length:t,position:e}){super(`Position \`${e}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class ql extends ro{constructor({count:t,limit:e}){super(`Recursive read limit of \`${e}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function Hl(t,e,n={}){const{as:r="Array",checksumAddress:a=!1}=n,s="string"==typeof e?Po(e):e,i=function(t,{recursiveReadLimit:e=8192}={}){const n=Object.create(Dl);return n.bytes=t,n.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=e,n}(s);if(0===Io(s)&&t.length>0)throw new Jl;if(Io(s)&&Io(s)<32)throw new Zl({data:"string"==typeof e?e:Go(e),parameters:t,size:Io(s)});let o=0;const c="Array"===r?[]:{};for(let e=0;e<t.length;++e){const n=t[e];i.setPosition(o);const[s,u]=jl(i,n,{checksumAddress:a,staticPosition:0});o+=u,"Array"===r?c.push(s):c[n.name??e]=s}return c}function Vl(t,e,n){const{checksumAddress:r=!1}={};if(t.length!==e.length)throw new Xl({expectedLength:t.length,givenLength:e.length});const a=function({checksumAddress:t,parameters:e,values:n}){const r=[];for(let a=0;a<e.length;a++)r.push(Rl({checksumAddress:t,parameter:e[a],value:n[a]}));return r}({checksumAddress:r,parameters:t,values:e}),s=Fl(a);return 0===s.length?"0x":s}function Kl(t,e){if(t.length!==e.length)throw new Xl({expectedLength:t.length,givenLength:e.length});const n=[];for(let r=0;r<t.length;r++){const a=t[r],s=e[r];n.push(Kl.encode(a,s))}return zo(...n)}function Wl(t){return Array.isArray(t)&&"string"==typeof t[0]||"string"==typeof t?cl(t):t}!function(t){t.encode=function t(e,n,r=!1){if("address"===e){const t=n;return kl(t),Vo(t.toLowerCase(),r?32:0)}if("string"===e)return Ho(n);if("bytes"===e)return n;if("bool"===e)return Vo(Lo(n),r?32:1);const a=e.match(Bl);if(a){const[t,e,s="256"]=a,i=Number.parseInt(s,10)/8;return qo(n,{size:r?32:i,signed:"int"===e})}const s=e.match(Cl);if(s){const[t,e]=s;if(Number.parseInt(e,10)!==(n.length-2)/2)throw new Ql({expectedSize:Number.parseInt(e,10),value:n});return Ko(n,r?32:0)}const i=e.match(Tl);if(i&&Array.isArray(n)){const[e,r]=i,a=[];for(let e=0;e<n.length;e++)a.push(t(r,n[e],!0));return 0===a.length?"0x":zo(...a)}throw new tf(e)}}(Kl||(Kl={}));class Zl extends ro{constructor({data:t,parameters:e,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${xd(e)})`,`Data: ${t} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class Jl extends ro{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class Yl extends ro{constructor({expectedLength:t,givenLength:e,type:n}){super(`Array length mismatch for type \`${n}\`. Expected: \`${t}\`. Given: \`${e}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class Ql extends ro{constructor({expectedSize:t,value:e}){super(`Size of bytes "${e}" (bytes${Zo(e)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class Xl extends ro{constructor({expectedLength:t,givenLength:e}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${e}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class $l extends ro{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class tf extends ro{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}class ef extends mn{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,function(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.createHasher");rn(t.outputLen),rn(t.blockLen)}(t);const n=pn(e);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const r=this.blockLen,a=new Uint8Array(r);a.set(n.length>r?t.create().update(n).digest():n);for(let t=0;t<a.length;t++)a[t]^=54;this.iHash.update(a),this.oHash=t.create();for(let t=0;t<a.length;t++)a[t]^=106;this.oHash.update(a),cn(a)}update(t){return sn(this),this.iHash.update(t),this}digestInto(t){sn(this),an(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:e,iHash:n,finished:r,destroyed:a,blockLen:s,outputLen:i}=this;return t.finished=r,t.destroyed=a,t.blockLen=s,t.outputLen=i,t.oHash=e._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const nf=(t,e,n)=>new ef(t,e).update(n).digest();nf.create=(t,e)=>new ef(t,e);
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).startaleAppSdk={})}(this,function(t){"use strict";const e={invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},n={userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901,unsupportedChain:4902},r={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}},a="Unspecified error message.";function i(t,e=a){if(t&&Number.isInteger(t)){const e=t.toString();if(u(r,e))return r[e].message;if(o(t))return"Unspecified server error."}return e}function s(t,{shouldIncludeStack:n=!1}={}){const s={};if(t&&"object"==typeof t&&!Array.isArray(t)&&u(t,"code")&&function(t){if(!Number.isInteger(t))return!1;const e=t.toString();return!!r[e]||!!o(t)}(t.code)){const e=t;s.code=e.code,e.message&&"string"==typeof e.message?(s.message=e.message,u(e,"data")&&(s.data=e.data)):(s.message=i(s.code),s.data={originalError:c(t)})}else s.code=e.internal,s.message=d(t,"message")?t.message:a,s.data={originalError:c(t)};return n&&(s.stack=d(t,"stack")?t.stack:void 0),s}function o(t){return t>=-32099&&t<=-32e3}function c(t){return t&&"object"==typeof t&&!Array.isArray(t)?Object.assign({},t):t}function u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function d(t,e){return"object"==typeof t&&null!==t&&e in t&&"string"==typeof t[e]}const l={parse:t=>h(e.parse,t),invalidRequest:t=>h(e.invalidRequest,t),invalidParams:t=>h(e.invalidParams,t),methodNotFound:t=>h(e.methodNotFound,t),internal:t=>h(e.internal,t),server:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return h(e,t)},invalidInput:t=>h(e.invalidInput,t),resourceNotFound:t=>h(e.resourceNotFound,t),resourceUnavailable:t=>h(e.resourceUnavailable,t),transactionRejected:t=>h(e.transactionRejected,t),methodNotSupported:t=>h(e.methodNotSupported,t),limitExceeded:t=>h(e.limitExceeded,t)},f={userRejectedRequest:t=>p(n.userRejectedRequest,t),unauthorized:t=>p(n.unauthorized,t),unsupportedMethod:t=>p(n.unsupportedMethod,t),disconnected:t=>p(n.disconnected,t),chainDisconnected:t=>p(n.chainDisconnected,t),unsupportedChain:t=>p(n.unsupportedChain,t),custom:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:e,message:n,data:r}=t;if(!n||"string"!=typeof n)throw new Error('"message" must be a nonempty string');return new g(e,n,r)}};function h(t,e){const[n,r]=m(e);return new y(t,n||i(t),r)}function p(t,e){const[n,r]=m(e);return new g(t,n||i(t),r)}function m(t){if(t){if("string"==typeof t)return[t];if("object"==typeof t&&!Array.isArray(t)){const{message:e,data:n}=t;if(e&&"string"!=typeof e)throw new Error("Must specify string message.");return[e||void 0,n]}}return[]}class y extends Error{constructor(t,e,n){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!e||"string"!=typeof e)throw new Error('"message" must be a nonempty string.');super(e),this.code=t,void 0!==n&&(this.data=n)}}class g extends y{constructor(t,e,n){if(!function(t){return Number.isInteger(t)&&t>=1e3&&t<=4999}(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,e,n)}}function b(t){return"object"==typeof t&&null!==t&&"code"in t&&"data"in t&&-32090===t.code&&"object"==typeof t.data&&null!==t.data&&"type"in t.data&&"INSUFFICIENT_FUNDS"===t.data.type}function v(t){return"object"==typeof t&&null!==t&&"details"in t}var w="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function x(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function k(t){if(t.__esModule)return t;var e=t.default;if("function"==typeof e){var n=function t(){return this instanceof t?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})}),n}var A={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}function a(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function i(t,e,r,i,s){if("function"!=typeof r)throw new TypeError("The listener must be a function");var o=new a(r,i||t,s),c=n?n+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],o]:t._events[c].push(o):(t._events[c]=o,t._eventsCount++),t}function s(t,e){0===--t._eventsCount?t._events=new r:delete t._events[e]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),o.prototype.eventNames=function(){var t,r,a=[];if(0===this._eventsCount)return a;for(r in t=this._events)e.call(t,r)&&a.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(t)):a},o.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var a=0,i=r.length,s=new Array(i);a<i;a++)s[a]=r[a].fn;return s},o.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},o.prototype.emit=function(t,e,r,a,i,s){var o=n?n+t:t;if(!this._events[o])return!1;var c,u,d=this._events[o],l=arguments.length;if(d.fn){switch(d.once&&this.removeListener(t,d.fn,void 0,!0),l){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,e),!0;case 3:return d.fn.call(d.context,e,r),!0;case 4:return d.fn.call(d.context,e,r,a),!0;case 5:return d.fn.call(d.context,e,r,a,i),!0;case 6:return d.fn.call(d.context,e,r,a,i,s),!0}for(u=1,c=new Array(l-1);u<l;u++)c[u-1]=arguments[u];d.fn.apply(d.context,c)}else{var f,h=d.length;for(u=0;u<h;u++)switch(d[u].once&&this.removeListener(t,d[u].fn,void 0,!0),l){case 1:d[u].fn.call(d[u].context);break;case 2:d[u].fn.call(d[u].context,e);break;case 3:d[u].fn.call(d[u].context,e,r);break;case 4:d[u].fn.call(d[u].context,e,r,a);break;default:if(!c)for(f=1,c=new Array(l-1);f<l;f++)c[f-1]=arguments[f];d[u].fn.apply(d[u].context,c)}}return!0},o.prototype.on=function(t,e,n){return i(this,t,e,n,!1)},o.prototype.once=function(t,e,n){return i(this,t,e,n,!0)},o.prototype.removeListener=function(t,e,r,a){var i=n?n+t:t;if(!this._events[i])return this;if(!e)return s(this,i),this;var o=this._events[i];if(o.fn)o.fn!==e||a&&!o.once||r&&o.context!==r||s(this,i);else{for(var c=0,u=[],d=o.length;c<d;c++)(o[c].fn!==e||a&&!o[c].once||r&&o[c].context!==r)&&u.push(o[c]);u.length?this._events[i]=1===u.length?u[0]:u:s(this,i)}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&s(this,e)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,t.exports=o}(A);var I=x(A.exports);class E extends I{}let P=class extends Error{name="BaseError";cause;constructor(t,e={}){super(t,e.cause?{cause:e.cause}:void 0),this.cause=e.cause}};class S extends P{name="AddMiniApp.InvalidDomainManifest";constructor(){super("Invalid domain manifest")}}let _=class extends P{name="AddMiniApp.RejectedByUser";constructor(){super("Add miniapp rejected by user")}},O=class extends P{name="SignIn.RejectedByUser";constructor(){super("Sign in rejected by user")}};class T extends P{name="SignManifest.RejectedByUser";constructor(){super("Sign manifest rejected by user")}}class B extends P{name="SignManifest.InvalidDomain";constructor(){super("Invalid domain provided")}}class M extends P{name="SignManifest.GenericError";constructor(t="Manifest signing failed"){super(t)}}var C,N;!function(t){t.assertEqual=t=>{},t.assertIs=function(t){},t.assertNever=function(t){throw new Error},t.arrayToEnum=t=>{const e={};for(const n of t)e[n]=n;return e},t.getValidEnumValues=e=>{const n=t.objectKeys(e).filter(t=>"number"!=typeof e[e[t]]),r={};for(const t of n)r[t]=e[t];return t.objectValues(r)},t.objectValues=e=>t.objectKeys(e).map(function(t){return e[t]}),t.objectKeys="function"==typeof Object.keys?t=>Object.keys(t):t=>{const e=[];for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return e},t.find=(t,e)=>{for(const n of t)if(e(n))return n},t.isInteger="function"==typeof Number.isInteger?t=>Number.isInteger(t):t=>"number"==typeof t&&Number.isFinite(t)&&Math.floor(t)===t,t.joinValues=function(t,e=" | "){return t.map(t=>"string"==typeof t?`'${t}'`:t).join(e)},t.jsonStringifyReplacer=(t,e)=>"bigint"==typeof e?e.toString():e}(C||(C={})),function(t){t.mergeShapes=(t,e)=>({...t,...e})}(N||(N={}));const j=C.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),R=t=>{switch(typeof t){case"undefined":return j.undefined;case"string":return j.string;case"number":return Number.isNaN(t)?j.nan:j.number;case"boolean":return j.boolean;case"function":return j.function;case"bigint":return j.bigint;case"symbol":return j.symbol;case"object":return Array.isArray(t)?j.array:null===t?j.null:t.then&&"function"==typeof t.then&&t.catch&&"function"==typeof t.catch?j.promise:"undefined"!=typeof Map&&t instanceof Map?j.map:"undefined"!=typeof Set&&t instanceof Set?j.set:"undefined"!=typeof Date&&t instanceof Date?j.date:j.object;default:return j.unknown}},U=C.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class L extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=t=>{this.issues=[...this.issues,t]},this.addIssues=(t=[])=>{this.issues=[...this.issues,...t]};const e=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,e):this.__proto__=e,this.name="ZodError",this.issues=t}format(t){const e=t||function(t){return t.message},n={_errors:[]},r=t=>{for(const a of t.issues)if("invalid_union"===a.code)a.unionErrors.map(r);else if("invalid_return_type"===a.code)r(a.returnTypeError);else if("invalid_arguments"===a.code)r(a.argumentsError);else if(0===a.path.length)n._errors.push(e(a));else{let t=n,r=0;for(;r<a.path.length;){const n=a.path[r];r===a.path.length-1?(t[n]=t[n]||{_errors:[]},t[n]._errors.push(e(a))):t[n]=t[n]||{_errors:[]},t=t[n],r++}}};return r(this),n}static assert(t){if(!(t instanceof L))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,C.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(t=t=>t.message){const e={},n=[];for(const r of this.issues)if(r.path.length>0){const n=r.path[0];e[n]=e[n]||[],e[n].push(t(r))}else n.push(t(r));return{formErrors:n,fieldErrors:e}}get formErrors(){return this.flatten()}}L.create=t=>new L(t);const z=(t,e)=>{let n;switch(t.code){case U.invalid_type:n=t.received===j.undefined?"Required":`Expected ${t.expected}, received ${t.received}`;break;case U.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(t.expected,C.jsonStringifyReplacer)}`;break;case U.unrecognized_keys:n=`Unrecognized key(s) in object: ${C.joinValues(t.keys,", ")}`;break;case U.invalid_union:n="Invalid input";break;case U.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${C.joinValues(t.options)}`;break;case U.invalid_enum_value:n=`Invalid enum value. Expected ${C.joinValues(t.options)}, received '${t.received}'`;break;case U.invalid_arguments:n="Invalid function arguments";break;case U.invalid_return_type:n="Invalid function return type";break;case U.invalid_date:n="Invalid date";break;case U.invalid_string:"object"==typeof t.validation?"includes"in t.validation?(n=`Invalid input: must include "${t.validation.includes}"`,"number"==typeof t.validation.position&&(n=`${n} at one or more positions greater than or equal to ${t.validation.position}`)):"startsWith"in t.validation?n=`Invalid input: must start with "${t.validation.startsWith}"`:"endsWith"in t.validation?n=`Invalid input: must end with "${t.validation.endsWith}"`:C.assertNever(t.validation):n="regex"!==t.validation?`Invalid ${t.validation}`:"Invalid";break;case U.too_small:n="array"===t.type?`Array must contain ${t.exact?"exactly":t.inclusive?"at least":"more than"} ${t.minimum} element(s)`:"string"===t.type?`String must contain ${t.exact?"exactly":t.inclusive?"at least":"over"} ${t.minimum} character(s)`:"number"===t.type||"bigint"===t.type?`Number must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${t.minimum}`:"date"===t.type?`Date must be ${t.exact?"exactly equal to ":t.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(t.minimum))}`:"Invalid input";break;case U.too_big:n="array"===t.type?`Array must contain ${t.exact?"exactly":t.inclusive?"at most":"less than"} ${t.maximum} element(s)`:"string"===t.type?`String must contain ${t.exact?"exactly":t.inclusive?"at most":"under"} ${t.maximum} character(s)`:"number"===t.type?`Number must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:"bigint"===t.type?`BigInt must be ${t.exact?"exactly":t.inclusive?"less than or equal to":"less than"} ${t.maximum}`:"date"===t.type?`Date must be ${t.exact?"exactly":t.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(t.maximum))}`:"Invalid input";break;case U.custom:n="Invalid input";break;case U.invalid_intersection_types:n="Intersection results could not be merged";break;case U.not_multiple_of:n=`Number must be a multiple of ${t.multipleOf}`;break;case U.not_finite:n="Number must be finite";break;default:n=e.defaultError,C.assertNever(t)}return{message:n}};let F=z;function D(t,e){const n=F,r=(t=>{const{data:e,path:n,errorMaps:r,issueData:a}=t,i=[...n,...a.path||[]],s={...a,path:i};if(void 0!==a.message)return{...a,path:i,message:a.message};let o="";const c=r.filter(t=>!!t).slice().reverse();for(const t of c)o=t(s,{data:e,defaultError:o}).message;return{...a,path:i,message:o}})({issueData:e,data:t.data,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,n,n===z?void 0:z].filter(t=>!!t)});t.common.issues.push(r)}class q{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(t,e){const n=[];for(const r of e){if("aborted"===r.status)return G;"dirty"===r.status&&t.dirty(),n.push(r.value)}return{status:t.value,value:n}}static async mergeObjectAsync(t,e){const n=[];for(const t of e){const e=await t.key,r=await t.value;n.push({key:e,value:r})}return q.mergeObjectSync(t,n)}static mergeObjectSync(t,e){const n={};for(const r of e){const{key:e,value:a}=r;if("aborted"===e.status)return G;if("aborted"===a.status)return G;"dirty"===e.status&&t.dirty(),"dirty"===a.status&&t.dirty(),"__proto__"===e.value||void 0===a.value&&!r.alwaysSet||(n[e.value]=a.value)}return{status:t.value,value:n}}}const G=Object.freeze({status:"aborted"}),K=t=>({status:"dirty",value:t}),V=t=>({status:"valid",value:t}),Z=t=>"aborted"===t.status,H=t=>"dirty"===t.status,W=t=>"valid"===t.status,J=t=>"undefined"!=typeof Promise&&t instanceof Promise;var Y;!function(t){t.errToObj=t=>"string"==typeof t?{message:t}:t||{},t.toString=t=>"string"==typeof t?t:t?.message}(Y||(Y={}));class ${constructor(t,e,n,r){this._cachedPath=[],this.parent=t,this.data=e,this._path=n,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const Q=(t,e)=>{if(W(e))return{success:!0,data:e.value};if(!t.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const e=new L(t.common.issues);return this._error=e,this._error}}};function X(t){if(!t)return{};const{errorMap:e,invalid_type_error:n,required_error:r,description:a}=t;if(e&&(n||r))throw new Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');if(e)return{errorMap:e,description:a};return{errorMap:(e,a)=>{const{message:i}=t;return"invalid_enum_value"===e.code?{message:i??a.defaultError}:void 0===a.data?{message:i??r??a.defaultError}:"invalid_type"!==e.code?{message:a.defaultError}:{message:i??n??a.defaultError}},description:a}}class tt{get description(){return this._def.description}_getType(t){return R(t.data)}_getOrReturnCtx(t,e){return e||{common:t.parent.common,data:t.data,parsedType:R(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new q,ctx:{common:t.parent.common,data:t.data,parsedType:R(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const e=this._parse(t);if(J(e))throw new Error("Synchronous parse encountered promise.");return e}_parseAsync(t){const e=this._parse(t);return Promise.resolve(e)}parse(t,e){const n=this.safeParse(t,e);if(n.success)return n.data;throw n.error}safeParse(t,e){const n={common:{issues:[],async:e?.async??!1,contextualErrorMap:e?.errorMap},path:e?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:R(t)},r=this._parseSync({data:t,path:n.path,parent:n});return Q(n,r)}"~validate"(t){const e={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:R(t)};if(!this["~standard"].async)try{const n=this._parseSync({data:t,path:[],parent:e});return W(n)?{value:n.value}:{issues:e.common.issues}}catch(t){t?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),e.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:e}).then(t=>W(t)?{value:t.value}:{issues:e.common.issues})}async parseAsync(t,e){const n=await this.safeParseAsync(t,e);if(n.success)return n.data;throw n.error}async safeParseAsync(t,e){const n={common:{issues:[],contextualErrorMap:e?.errorMap,async:!0},path:e?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:R(t)},r=this._parse({data:t,path:n.path,parent:n}),a=await(J(r)?r:Promise.resolve(r));return Q(n,a)}refine(t,e){const n=t=>"string"==typeof e||void 0===e?{message:e}:"function"==typeof e?e(t):e;return this._refinement((e,r)=>{const a=t(e),i=()=>r.addIssue({code:U.custom,...n(e)});return"undefined"!=typeof Promise&&a instanceof Promise?a.then(t=>!!t||(i(),!1)):!!a||(i(),!1)})}refinement(t,e){return this._refinement((n,r)=>!!t(n)||(r.addIssue("function"==typeof e?e(n,r):e),!1))}_refinement(t){return new te({schema:this,typeName:ue.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:t=>this["~validate"](t)}}optional(){return ee.create(this,this._def)}nullable(){return ne.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ut.create(this)}promise(){return Xt.create(this,this._def)}or(t){return Ft.create([this,t],this._def)}and(t){return Kt.create(this,t,this._def)}transform(t){return new te({...X(this._def),schema:this,typeName:ue.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const e="function"==typeof t?t:()=>t;return new re({...X(this._def),innerType:this,defaultValue:e,typeName:ue.ZodDefault})}brand(){return new se({typeName:ue.ZodBranded,type:this,...X(this._def)})}catch(t){const e="function"==typeof t?t:()=>t;return new ae({...X(this._def),innerType:this,catchValue:e,typeName:ue.ZodCatch})}describe(t){return new(0,this.constructor)({...this._def,description:t})}pipe(t){return oe.create(this,t)}readonly(){return ce.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const et=/^c[^\s-]{8,}$/i,nt=/^[0-9a-z]+$/,rt=/^[0-9A-HJKMNP-TV-Z]{26}$/i,at=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,it=/^[a-z0-9_-]{21}$/i,st=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,ot=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,ct=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9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A-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pt=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,mt=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,yt="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",gt=new RegExp(`^${yt}$`);function bt(t){let e="[0-5]\\d";t.precision?e=`${e}\\.\\d{${t.precision}}`:null==t.precision&&(e=`${e}(\\.\\d+)?`);return`([01]\\d|2[0-3]):[0-5]\\d(:${e})${t.precision?"+":"?"}`}function vt(t){return new RegExp(`^${bt(t)}$`)}function wt(t){let e=`${yt}T${bt(t)}`;const n=[];return n.push(t.local?"Z?":"Z"),t.offset&&n.push("([+-]\\d{2}:?\\d{2})"),e=`${e}(${n.join("|")})`,new RegExp(`^${e}$`)}function xt(t,e){return!("v4"!==e&&e||!dt.test(t))||!("v6"!==e&&e||!ft.test(t))}function kt(t,e){if(!st.test(t))return!1;try{const[n]=t.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return"object"==typeof a&&null!==a&&((!("typ"in a)||"JWT"===a?.typ)&&(!!a.alg&&(!e||a.alg===e)))}catch{return!1}}function At(t,e){return!("v4"!==e&&e||!lt.test(t))||!("v6"!==e&&e||!ht.test(t))}class It extends tt{_parse(t){this._def.coerce&&(t.data=String(t.data));if(this._getType(t)!==j.string){const e=this._getOrReturnCtx(t);return D(e,{code:U.invalid_type,expected:j.string,received:e.parsedType}),G}const e=new q;let n;for(const r of this._def.checks)if("min"===r.kind)t.data.length<r.value&&(n=this._getOrReturnCtx(t,n),D(n,{code:U.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),e.dirty());else if("max"===r.kind)t.data.length>r.value&&(n=this._getOrReturnCtx(t,n),D(n,{code:U.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!1,message:r.message}),e.dirty());else if("length"===r.kind){const a=t.data.length>r.value,i=t.data.length<r.value;(a||i)&&(n=this._getOrReturnCtx(t,n),a?D(n,{code:U.too_big,maximum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}):i&&D(n,{code:U.too_small,minimum:r.value,type:"string",inclusive:!0,exact:!0,message:r.message}),e.dirty())}else if("email"===r.kind)ct.test(t.data)||(n=this._getOrReturnCtx(t,n),D(n,{validation:"email",code:U.invalid_string,message:r.message}),e.dirty());else if("emoji"===r.kind)ut||(ut=new RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),ut.test(t.data)||(n=this._getOrReturnCtx(t,n),D(n,{validation:"emoji",code:U.invalid_string,message:r.message}),e.dirty());else if("uuid"===r.kind)at.test(t.data)||(n=this._getOrReturnCtx(t,n),D(n,{validation:"uuid",code:U.invalid_string,message:r.message}),e.dirty());else if("nanoid"===r.kind)it.test(t.data)||(n=this._getOrReturnCtx(t,n),D(n,{validation:"nanoid",code:U.invalid_string,message:r.message}),e.dirty());else if("cuid"===r.kind)et.test(t.data)||(n=this._getOrReturnCtx(t,n),D(n,{validation:"cuid",code:U.invalid_string,message:r.message}),e.dirty());else if("cuid2"===r.kind)nt.test(t.data)||(n=this._getOrReturnCtx(t,n),D(n,{validation:"cuid2",code:U.invalid_string,message:r.message}),e.dirty());else if("ulid"===r.kind)rt.test(t.data)||(n=this._getOrReturnCtx(t,n),D(n,{validation:"ulid",code:U.invalid_string,message:r.message}),e.dirty());else if("url"===r.kind)try{new URL(t.data)}catch{n=this._getOrReturnCtx(t,n),D(n,{validation:"url",code:U.invalid_string,message:r.message}),e.dirty()}else if("regex"===r.kind){r.regex.lastIndex=0;r.regex.test(t.data)||(n=this._getOrReturnCtx(t,n),D(n,{validation:"regex",code:U.invalid_string,message:r.message}),e.dirty())}else if("trim"===r.kind)t.data=t.data.trim();else if("includes"===r.kind)t.data.includes(r.value,r.position)||(n=this._getOrReturnCtx(t,n),D(n,{code:U.invalid_string,validation:{includes:r.value,position:r.position},message:r.message}),e.dirty());else if("toLowerCase"===r.kind)t.data=t.data.toLowerCase();else if("toUpperCase"===r.kind)t.data=t.data.toUpperCase();else if("startsWith"===r.kind)t.data.startsWith(r.value)||(n=this._getOrReturnCtx(t,n),D(n,{code:U.invalid_string,validation:{startsWith:r.value},message:r.message}),e.dirty());else if("endsWith"===r.kind)t.data.endsWith(r.value)||(n=this._getOrReturnCtx(t,n),D(n,{code:U.invalid_string,validation:{endsWith:r.value},message:r.message}),e.dirty());else if("datetime"===r.kind){wt(r).test(t.data)||(n=this._getOrReturnCtx(t,n),D(n,{code:U.invalid_string,validation:"datetime",message:r.message}),e.dirty())}else if("date"===r.kind){gt.test(t.data)||(n=this._getOrReturnCtx(t,n),D(n,{code:U.invalid_string,validation:"date",message:r.message}),e.dirty())}else if("time"===r.kind){vt(r).test(t.data)||(n=this._getOrReturnCtx(t,n),D(n,{code:U.invalid_string,validation:"time",message:r.message}),e.dirty())}else"duration"===r.kind?ot.test(t.data)||(n=this._getOrReturnCtx(t,n),D(n,{validation:"duration",code:U.invalid_string,message:r.message}),e.dirty()):"ip"===r.kind?xt(t.data,r.version)||(n=this._getOrReturnCtx(t,n),D(n,{validation:"ip",code:U.invalid_string,message:r.message}),e.dirty()):"jwt"===r.kind?kt(t.data,r.alg)||(n=this._getOrReturnCtx(t,n),D(n,{validation:"jwt",code:U.invalid_string,message:r.message}),e.dirty()):"cidr"===r.kind?At(t.data,r.version)||(n=this._getOrReturnCtx(t,n),D(n,{validation:"cidr",code:U.invalid_string,message:r.message}),e.dirty()):"base64"===r.kind?pt.test(t.data)||(n=this._getOrReturnCtx(t,n),D(n,{validation:"base64",code:U.invalid_string,message:r.message}),e.dirty()):"base64url"===r.kind?mt.test(t.data)||(n=this._getOrReturnCtx(t,n),D(n,{validation:"base64url",code:U.invalid_string,message:r.message}),e.dirty()):C.assertNever(r);return{status:e.value,value:t.data}}_regex(t,e,n){return this.refinement(e=>t.test(e),{validation:e,code:U.invalid_string,...Y.errToObj(n)})}_addCheck(t){return new It({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Y.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Y.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Y.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Y.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Y.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Y.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Y.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Y.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Y.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Y.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Y.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Y.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Y.errToObj(t)})}datetime(t){return"string"==typeof t?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:void 0===t?.precision?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...Y.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return"string"==typeof t?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:void 0===t?.precision?null:t?.precision,...Y.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Y.errToObj(t)})}regex(t,e){return this._addCheck({kind:"regex",regex:t,...Y.errToObj(e)})}includes(t,e){return this._addCheck({kind:"includes",value:t,position:e?.position,...Y.errToObj(e?.message)})}startsWith(t,e){return this._addCheck({kind:"startsWith",value:t,...Y.errToObj(e)})}endsWith(t,e){return this._addCheck({kind:"endsWith",value:t,...Y.errToObj(e)})}min(t,e){return this._addCheck({kind:"min",value:t,...Y.errToObj(e)})}max(t,e){return this._addCheck({kind:"max",value:t,...Y.errToObj(e)})}length(t,e){return this._addCheck({kind:"length",value:t,...Y.errToObj(e)})}nonempty(t){return this.min(1,Y.errToObj(t))}trim(){return new It({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new It({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new It({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>"datetime"===t.kind)}get isDate(){return!!this._def.checks.find(t=>"date"===t.kind)}get isTime(){return!!this._def.checks.find(t=>"time"===t.kind)}get isDuration(){return!!this._def.checks.find(t=>"duration"===t.kind)}get isEmail(){return!!this._def.checks.find(t=>"email"===t.kind)}get isURL(){return!!this._def.checks.find(t=>"url"===t.kind)}get isEmoji(){return!!this._def.checks.find(t=>"emoji"===t.kind)}get isUUID(){return!!this._def.checks.find(t=>"uuid"===t.kind)}get isNANOID(){return!!this._def.checks.find(t=>"nanoid"===t.kind)}get isCUID(){return!!this._def.checks.find(t=>"cuid"===t.kind)}get isCUID2(){return!!this._def.checks.find(t=>"cuid2"===t.kind)}get isULID(){return!!this._def.checks.find(t=>"ulid"===t.kind)}get isIP(){return!!this._def.checks.find(t=>"ip"===t.kind)}get isCIDR(){return!!this._def.checks.find(t=>"cidr"===t.kind)}get isBase64(){return!!this._def.checks.find(t=>"base64"===t.kind)}get isBase64url(){return!!this._def.checks.find(t=>"base64url"===t.kind)}get minLength(){let t=null;for(const e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxLength(){let t=null;for(const e of this._def.checks)"max"===e.kind&&(null===t||e.value<t)&&(t=e.value);return t}}function Et(t,e){const n=(t.toString().split(".")[1]||"").length,r=(e.toString().split(".")[1]||"").length,a=n>r?n:r;return Number.parseInt(t.toFixed(a).replace(".",""))%Number.parseInt(e.toFixed(a).replace(".",""))/10**a}It.create=t=>new It({checks:[],typeName:ue.ZodString,coerce:t?.coerce??!1,...X(t)});class Pt extends tt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){this._def.coerce&&(t.data=Number(t.data));if(this._getType(t)!==j.number){const e=this._getOrReturnCtx(t);return D(e,{code:U.invalid_type,expected:j.number,received:e.parsedType}),G}let e;const n=new q;for(const r of this._def.checks)if("int"===r.kind)C.isInteger(t.data)||(e=this._getOrReturnCtx(t,e),D(e,{code:U.invalid_type,expected:"integer",received:"float",message:r.message}),n.dirty());else if("min"===r.kind){(r.inclusive?t.data<r.value:t.data<=r.value)&&(e=this._getOrReturnCtx(t,e),D(e,{code:U.too_small,minimum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else if("max"===r.kind){(r.inclusive?t.data>r.value:t.data>=r.value)&&(e=this._getOrReturnCtx(t,e),D(e,{code:U.too_big,maximum:r.value,type:"number",inclusive:r.inclusive,exact:!1,message:r.message}),n.dirty())}else"multipleOf"===r.kind?0!==Et(t.data,r.value)&&(e=this._getOrReturnCtx(t,e),D(e,{code:U.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):"finite"===r.kind?Number.isFinite(t.data)||(e=this._getOrReturnCtx(t,e),D(e,{code:U.not_finite,message:r.message}),n.dirty()):C.assertNever(r);return{status:n.value,value:t.data}}gte(t,e){return this.setLimit("min",t,!0,Y.toString(e))}gt(t,e){return this.setLimit("min",t,!1,Y.toString(e))}lte(t,e){return this.setLimit("max",t,!0,Y.toString(e))}lt(t,e){return this.setLimit("max",t,!1,Y.toString(e))}setLimit(t,e,n,r){return new Pt({...this._def,checks:[...this._def.checks,{kind:t,value:e,inclusive:n,message:Y.toString(r)}]})}_addCheck(t){return new Pt({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Y.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Y.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Y.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Y.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Y.toString(t)})}multipleOf(t,e){return this._addCheck({kind:"multipleOf",value:t,message:Y.toString(e)})}finite(t){return this._addCheck({kind:"finite",message:Y.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Y.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Y.toString(t)})}get minValue(){let t=null;for(const e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxValue(){let t=null;for(const e of this._def.checks)"max"===e.kind&&(null===t||e.value<t)&&(t=e.value);return t}get isInt(){return!!this._def.checks.find(t=>"int"===t.kind||"multipleOf"===t.kind&&C.isInteger(t.value))}get isFinite(){let t=null,e=null;for(const n of this._def.checks){if("finite"===n.kind||"int"===n.kind||"multipleOf"===n.kind)return!0;"min"===n.kind?(null===e||n.value>e)&&(e=n.value):"max"===n.kind&&(null===t||n.value<t)&&(t=n.value)}return Number.isFinite(e)&&Number.isFinite(t)}}Pt.create=t=>new Pt({checks:[],typeName:ue.ZodNumber,coerce:t?.coerce||!1,...X(t)});class St extends tt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==j.bigint)return this._getInvalidInput(t);let e;const n=new q;for(const r of this._def.checks)if("min"===r.kind){(r.inclusive?t.data<r.value:t.data<=r.value)&&(e=this._getOrReturnCtx(t,e),D(e,{code:U.too_small,type:"bigint",minimum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else if("max"===r.kind){(r.inclusive?t.data>r.value:t.data>=r.value)&&(e=this._getOrReturnCtx(t,e),D(e,{code:U.too_big,type:"bigint",maximum:r.value,inclusive:r.inclusive,message:r.message}),n.dirty())}else"multipleOf"===r.kind?t.data%r.value!==BigInt(0)&&(e=this._getOrReturnCtx(t,e),D(e,{code:U.not_multiple_of,multipleOf:r.value,message:r.message}),n.dirty()):C.assertNever(r);return{status:n.value,value:t.data}}_getInvalidInput(t){const e=this._getOrReturnCtx(t);return D(e,{code:U.invalid_type,expected:j.bigint,received:e.parsedType}),G}gte(t,e){return this.setLimit("min",t,!0,Y.toString(e))}gt(t,e){return this.setLimit("min",t,!1,Y.toString(e))}lte(t,e){return this.setLimit("max",t,!0,Y.toString(e))}lt(t,e){return this.setLimit("max",t,!1,Y.toString(e))}setLimit(t,e,n,r){return new St({...this._def,checks:[...this._def.checks,{kind:t,value:e,inclusive:n,message:Y.toString(r)}]})}_addCheck(t){return new St({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Y.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Y.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Y.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Y.toString(t)})}multipleOf(t,e){return this._addCheck({kind:"multipleOf",value:t,message:Y.toString(e)})}get minValue(){let t=null;for(const e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return t}get maxValue(){let t=null;for(const e of this._def.checks)"max"===e.kind&&(null===t||e.value<t)&&(t=e.value);return t}}St.create=t=>new St({checks:[],typeName:ue.ZodBigInt,coerce:t?.coerce??!1,...X(t)});class _t extends tt{_parse(t){this._def.coerce&&(t.data=Boolean(t.data));if(this._getType(t)!==j.boolean){const e=this._getOrReturnCtx(t);return D(e,{code:U.invalid_type,expected:j.boolean,received:e.parsedType}),G}return V(t.data)}}_t.create=t=>new _t({typeName:ue.ZodBoolean,coerce:t?.coerce||!1,...X(t)});class Ot extends tt{_parse(t){this._def.coerce&&(t.data=new Date(t.data));if(this._getType(t)!==j.date){const e=this._getOrReturnCtx(t);return D(e,{code:U.invalid_type,expected:j.date,received:e.parsedType}),G}if(Number.isNaN(t.data.getTime())){return D(this._getOrReturnCtx(t),{code:U.invalid_date}),G}const e=new q;let n;for(const r of this._def.checks)"min"===r.kind?t.data.getTime()<r.value&&(n=this._getOrReturnCtx(t,n),D(n,{code:U.too_small,message:r.message,inclusive:!0,exact:!1,minimum:r.value,type:"date"}),e.dirty()):"max"===r.kind?t.data.getTime()>r.value&&(n=this._getOrReturnCtx(t,n),D(n,{code:U.too_big,message:r.message,inclusive:!0,exact:!1,maximum:r.value,type:"date"}),e.dirty()):C.assertNever(r);return{status:e.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Ot({...this._def,checks:[...this._def.checks,t]})}min(t,e){return this._addCheck({kind:"min",value:t.getTime(),message:Y.toString(e)})}max(t,e){return this._addCheck({kind:"max",value:t.getTime(),message:Y.toString(e)})}get minDate(){let t=null;for(const e of this._def.checks)"min"===e.kind&&(null===t||e.value>t)&&(t=e.value);return null!=t?new Date(t):null}get maxDate(){let t=null;for(const e of this._def.checks)"max"===e.kind&&(null===t||e.value<t)&&(t=e.value);return null!=t?new Date(t):null}}Ot.create=t=>new Ot({checks:[],coerce:t?.coerce||!1,typeName:ue.ZodDate,...X(t)});class Tt extends tt{_parse(t){if(this._getType(t)!==j.symbol){const e=this._getOrReturnCtx(t);return D(e,{code:U.invalid_type,expected:j.symbol,received:e.parsedType}),G}return V(t.data)}}Tt.create=t=>new Tt({typeName:ue.ZodSymbol,...X(t)});class Bt extends tt{_parse(t){if(this._getType(t)!==j.undefined){const e=this._getOrReturnCtx(t);return D(e,{code:U.invalid_type,expected:j.undefined,received:e.parsedType}),G}return V(t.data)}}Bt.create=t=>new Bt({typeName:ue.ZodUndefined,...X(t)});class Mt extends tt{_parse(t){if(this._getType(t)!==j.null){const e=this._getOrReturnCtx(t);return D(e,{code:U.invalid_type,expected:j.null,received:e.parsedType}),G}return V(t.data)}}Mt.create=t=>new Mt({typeName:ue.ZodNull,...X(t)});class Ct extends tt{constructor(){super(...arguments),this._any=!0}_parse(t){return V(t.data)}}Ct.create=t=>new Ct({typeName:ue.ZodAny,...X(t)});class Nt extends tt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return V(t.data)}}Nt.create=t=>new Nt({typeName:ue.ZodUnknown,...X(t)});class jt extends tt{_parse(t){const e=this._getOrReturnCtx(t);return D(e,{code:U.invalid_type,expected:j.never,received:e.parsedType}),G}}jt.create=t=>new jt({typeName:ue.ZodNever,...X(t)});class Rt extends tt{_parse(t){if(this._getType(t)!==j.undefined){const e=this._getOrReturnCtx(t);return D(e,{code:U.invalid_type,expected:j.void,received:e.parsedType}),G}return V(t.data)}}Rt.create=t=>new Rt({typeName:ue.ZodVoid,...X(t)});class Ut extends tt{_parse(t){const{ctx:e,status:n}=this._processInputParams(t),r=this._def;if(e.parsedType!==j.array)return D(e,{code:U.invalid_type,expected:j.array,received:e.parsedType}),G;if(null!==r.exactLength){const t=e.data.length>r.exactLength.value,a=e.data.length<r.exactLength.value;(t||a)&&(D(e,{code:t?U.too_big:U.too_small,minimum:a?r.exactLength.value:void 0,maximum:t?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),n.dirty())}if(null!==r.minLength&&e.data.length<r.minLength.value&&(D(e,{code:U.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),n.dirty()),null!==r.maxLength&&e.data.length>r.maxLength.value&&(D(e,{code:U.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),n.dirty()),e.common.async)return Promise.all([...e.data].map((t,n)=>r.type._parseAsync(new $(e,t,e.path,n)))).then(t=>q.mergeArray(n,t));const a=[...e.data].map((t,n)=>r.type._parseSync(new $(e,t,e.path,n)));return q.mergeArray(n,a)}get element(){return this._def.type}min(t,e){return new Ut({...this._def,minLength:{value:t,message:Y.toString(e)}})}max(t,e){return new Ut({...this._def,maxLength:{value:t,message:Y.toString(e)}})}length(t,e){return new Ut({...this._def,exactLength:{value:t,message:Y.toString(e)}})}nonempty(t){return this.min(1,t)}}function Lt(t){if(t instanceof zt){const e={};for(const n in t.shape){const r=t.shape[n];e[n]=ee.create(Lt(r))}return new zt({...t._def,shape:()=>e})}return t instanceof Ut?new Ut({...t._def,type:Lt(t.element)}):t instanceof ee?ee.create(Lt(t.unwrap())):t instanceof ne?ne.create(Lt(t.unwrap())):t instanceof Vt?Vt.create(t.items.map(t=>Lt(t))):t}Ut.create=(t,e)=>new Ut({type:t,minLength:null,maxLength:null,exactLength:null,typeName:ue.ZodArray,...X(e)});class zt extends tt{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;const t=this._def.shape(),e=C.objectKeys(t);return this._cached={shape:t,keys:e},this._cached}_parse(t){if(this._getType(t)!==j.object){const e=this._getOrReturnCtx(t);return D(e,{code:U.invalid_type,expected:j.object,received:e.parsedType}),G}const{status:e,ctx:n}=this._processInputParams(t),{shape:r,keys:a}=this._getCached(),i=[];if(!(this._def.catchall instanceof jt&&"strip"===this._def.unknownKeys))for(const t in n.data)a.includes(t)||i.push(t);const s=[];for(const t of a){const e=r[t],a=n.data[t];s.push({key:{status:"valid",value:t},value:e._parse(new $(n,a,n.path,t)),alwaysSet:t in n.data})}if(this._def.catchall instanceof jt){const t=this._def.unknownKeys;if("passthrough"===t)for(const t of i)s.push({key:{status:"valid",value:t},value:{status:"valid",value:n.data[t]}});else if("strict"===t)i.length>0&&(D(n,{code:U.unrecognized_keys,keys:i}),e.dirty());else if("strip"!==t)throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const t=this._def.catchall;for(const e of i){const r=n.data[e];s.push({key:{status:"valid",value:e},value:t._parse(new $(n,r,n.path,e)),alwaysSet:e in n.data})}}return n.common.async?Promise.resolve().then(async()=>{const t=[];for(const e of s){const n=await e.key,r=await e.value;t.push({key:n,value:r,alwaysSet:e.alwaysSet})}return t}).then(t=>q.mergeObjectSync(e,t)):q.mergeObjectSync(e,s)}get shape(){return this._def.shape()}strict(t){return Y.errToObj,new zt({...this._def,unknownKeys:"strict",...void 0!==t?{errorMap:(e,n)=>{const r=this._def.errorMap?.(e,n).message??n.defaultError;return"unrecognized_keys"===e.code?{message:Y.errToObj(t).message??r}:{message:r}}}:{}})}strip(){return new zt({...this._def,unknownKeys:"strip"})}passthrough(){return new zt({...this._def,unknownKeys:"passthrough"})}extend(t){return new zt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new zt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:ue.ZodObject})}setKey(t,e){return this.augment({[t]:e})}catchall(t){return new zt({...this._def,catchall:t})}pick(t){const e={};for(const n of C.objectKeys(t))t[n]&&this.shape[n]&&(e[n]=this.shape[n]);return new zt({...this._def,shape:()=>e})}omit(t){const e={};for(const n of C.objectKeys(this.shape))t[n]||(e[n]=this.shape[n]);return new zt({...this._def,shape:()=>e})}deepPartial(){return Lt(this)}partial(t){const e={};for(const n of C.objectKeys(this.shape)){const r=this.shape[n];t&&!t[n]?e[n]=r:e[n]=r.optional()}return new zt({...this._def,shape:()=>e})}required(t){const e={};for(const n of C.objectKeys(this.shape))if(t&&!t[n])e[n]=this.shape[n];else{let t=this.shape[n];for(;t instanceof ee;)t=t._def.innerType;e[n]=t}return new zt({...this._def,shape:()=>e})}keyof(){return Yt(C.objectKeys(this.shape))}}zt.create=(t,e)=>new zt({shape:()=>t,unknownKeys:"strip",catchall:jt.create(),typeName:ue.ZodObject,...X(e)}),zt.strictCreate=(t,e)=>new zt({shape:()=>t,unknownKeys:"strict",catchall:jt.create(),typeName:ue.ZodObject,...X(e)}),zt.lazycreate=(t,e)=>new zt({shape:t,unknownKeys:"strip",catchall:jt.create(),typeName:ue.ZodObject,...X(e)});class Ft extends tt{_parse(t){const{ctx:e}=this._processInputParams(t),n=this._def.options;if(e.common.async)return Promise.all(n.map(async t=>{const n={...e,common:{...e.common,issues:[]},parent:null};return{result:await t._parseAsync({data:e.data,path:e.path,parent:n}),ctx:n}})).then(function(t){for(const e of t)if("valid"===e.result.status)return e.result;for(const n of t)if("dirty"===n.result.status)return e.common.issues.push(...n.ctx.common.issues),n.result;const n=t.map(t=>new L(t.ctx.common.issues));return D(e,{code:U.invalid_union,unionErrors:n}),G});{let t;const r=[];for(const a of n){const n={...e,common:{...e.common,issues:[]},parent:null},i=a._parseSync({data:e.data,path:e.path,parent:n});if("valid"===i.status)return i;"dirty"!==i.status||t||(t={result:i,ctx:n}),n.common.issues.length&&r.push(n.common.issues)}if(t)return e.common.issues.push(...t.ctx.common.issues),t.result;const a=r.map(t=>new L(t));return D(e,{code:U.invalid_union,unionErrors:a}),G}}get options(){return this._def.options}}Ft.create=(t,e)=>new Ft({options:t,typeName:ue.ZodUnion,...X(e)});const Dt=t=>t instanceof Wt?Dt(t.schema):t instanceof te?Dt(t.innerType()):t instanceof Jt?[t.value]:t instanceof $t?t.options:t instanceof Qt?C.objectValues(t.enum):t instanceof re?Dt(t._def.innerType):t instanceof Bt?[void 0]:t instanceof Mt?[null]:t instanceof ee?[void 0,...Dt(t.unwrap())]:t instanceof ne?[null,...Dt(t.unwrap())]:t instanceof se||t instanceof ce?Dt(t.unwrap()):t instanceof ae?Dt(t._def.innerType):[];class qt extends tt{_parse(t){const{ctx:e}=this._processInputParams(t);if(e.parsedType!==j.object)return D(e,{code:U.invalid_type,expected:j.object,received:e.parsedType}),G;const n=this.discriminator,r=e.data[n],a=this.optionsMap.get(r);return a?e.common.async?a._parseAsync({data:e.data,path:e.path,parent:e}):a._parseSync({data:e.data,path:e.path,parent:e}):(D(e,{code:U.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[n]}),G)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,e,n){const r=new Map;for(const n of e){const e=Dt(n.shape[t]);if(!e.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(const a of e){if(r.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);r.set(a,n)}}return new qt({typeName:ue.ZodDiscriminatedUnion,discriminator:t,options:e,optionsMap:r,...X(n)})}}function Gt(t,e){const n=R(t),r=R(e);if(t===e)return{valid:!0,data:t};if(n===j.object&&r===j.object){const n=C.objectKeys(e),r=C.objectKeys(t).filter(t=>-1!==n.indexOf(t)),a={...t,...e};for(const n of r){const r=Gt(t[n],e[n]);if(!r.valid)return{valid:!1};a[n]=r.data}return{valid:!0,data:a}}if(n===j.array&&r===j.array){if(t.length!==e.length)return{valid:!1};const n=[];for(let r=0;r<t.length;r++){const a=Gt(t[r],e[r]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}return n===j.date&&r===j.date&&+t===+e?{valid:!0,data:t}:{valid:!1}}class Kt extends tt{_parse(t){const{status:e,ctx:n}=this._processInputParams(t),r=(t,r)=>{if(Z(t)||Z(r))return G;const a=Gt(t.value,r.value);return a.valid?((H(t)||H(r))&&e.dirty(),{status:e.value,value:a.data}):(D(n,{code:U.invalid_intersection_types}),G)};return n.common.async?Promise.all([this._def.left._parseAsync({data:n.data,path:n.path,parent:n}),this._def.right._parseAsync({data:n.data,path:n.path,parent:n})]).then(([t,e])=>r(t,e)):r(this._def.left._parseSync({data:n.data,path:n.path,parent:n}),this._def.right._parseSync({data:n.data,path:n.path,parent:n}))}}Kt.create=(t,e,n)=>new Kt({left:t,right:e,typeName:ue.ZodIntersection,...X(n)});class Vt extends tt{_parse(t){const{status:e,ctx:n}=this._processInputParams(t);if(n.parsedType!==j.array)return D(n,{code:U.invalid_type,expected:j.array,received:n.parsedType}),G;if(n.data.length<this._def.items.length)return D(n,{code:U.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),G;!this._def.rest&&n.data.length>this._def.items.length&&(D(n,{code:U.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),e.dirty());const r=[...n.data].map((t,e)=>{const r=this._def.items[e]||this._def.rest;return r?r._parse(new $(n,t,n.path,e)):null}).filter(t=>!!t);return n.common.async?Promise.all(r).then(t=>q.mergeArray(e,t)):q.mergeArray(e,r)}get items(){return this._def.items}rest(t){return new Vt({...this._def,rest:t})}}Vt.create=(t,e)=>{if(!Array.isArray(t))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Vt({items:t,typeName:ue.ZodTuple,rest:null,...X(e)})};class Zt extends tt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:e,ctx:n}=this._processInputParams(t);if(n.parsedType!==j.map)return D(n,{code:U.invalid_type,expected:j.map,received:n.parsedType}),G;const r=this._def.keyType,a=this._def.valueType,i=[...n.data.entries()].map(([t,e],i)=>({key:r._parse(new $(n,t,n.path,[i,"key"])),value:a._parse(new $(n,e,n.path,[i,"value"]))}));if(n.common.async){const t=new Map;return Promise.resolve().then(async()=>{for(const n of i){const r=await n.key,a=await n.value;if("aborted"===r.status||"aborted"===a.status)return G;"dirty"!==r.status&&"dirty"!==a.status||e.dirty(),t.set(r.value,a.value)}return{status:e.value,value:t}})}{const t=new Map;for(const n of i){const r=n.key,a=n.value;if("aborted"===r.status||"aborted"===a.status)return G;"dirty"!==r.status&&"dirty"!==a.status||e.dirty(),t.set(r.value,a.value)}return{status:e.value,value:t}}}}Zt.create=(t,e,n)=>new Zt({valueType:e,keyType:t,typeName:ue.ZodMap,...X(n)});class Ht extends tt{_parse(t){const{status:e,ctx:n}=this._processInputParams(t);if(n.parsedType!==j.set)return D(n,{code:U.invalid_type,expected:j.set,received:n.parsedType}),G;const r=this._def;null!==r.minSize&&n.data.size<r.minSize.value&&(D(n,{code:U.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),e.dirty()),null!==r.maxSize&&n.data.size>r.maxSize.value&&(D(n,{code:U.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),e.dirty());const a=this._def.valueType;function i(t){const n=new Set;for(const r of t){if("aborted"===r.status)return G;"dirty"===r.status&&e.dirty(),n.add(r.value)}return{status:e.value,value:n}}const s=[...n.data.values()].map((t,e)=>a._parse(new $(n,t,n.path,e)));return n.common.async?Promise.all(s).then(t=>i(t)):i(s)}min(t,e){return new Ht({...this._def,minSize:{value:t,message:Y.toString(e)}})}max(t,e){return new Ht({...this._def,maxSize:{value:t,message:Y.toString(e)}})}size(t,e){return this.min(t,e).max(t,e)}nonempty(t){return this.min(1,t)}}Ht.create=(t,e)=>new Ht({valueType:t,minSize:null,maxSize:null,typeName:ue.ZodSet,...X(e)});class Wt extends tt{get schema(){return this._def.getter()}_parse(t){const{ctx:e}=this._processInputParams(t);return this._def.getter()._parse({data:e.data,path:e.path,parent:e})}}Wt.create=(t,e)=>new Wt({getter:t,typeName:ue.ZodLazy,...X(e)});class Jt extends tt{_parse(t){if(t.data!==this._def.value){const e=this._getOrReturnCtx(t);return D(e,{received:e.data,code:U.invalid_literal,expected:this._def.value}),G}return{status:"valid",value:t.data}}get value(){return this._def.value}}function Yt(t,e){return new $t({values:t,typeName:ue.ZodEnum,...X(e)})}Jt.create=(t,e)=>new Jt({value:t,typeName:ue.ZodLiteral,...X(e)});class $t extends tt{_parse(t){if("string"!=typeof t.data){const e=this._getOrReturnCtx(t),n=this._def.values;return D(e,{expected:C.joinValues(n),received:e.parsedType,code:U.invalid_type}),G}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const e=this._getOrReturnCtx(t),n=this._def.values;return D(e,{received:e.data,code:U.invalid_enum_value,options:n}),G}return V(t.data)}get options(){return this._def.values}get enum(){const t={};for(const e of this._def.values)t[e]=e;return t}get Values(){const t={};for(const e of this._def.values)t[e]=e;return t}get Enum(){const t={};for(const e of this._def.values)t[e]=e;return t}extract(t,e=this._def){return $t.create(t,{...this._def,...e})}exclude(t,e=this._def){return $t.create(this.options.filter(e=>!t.includes(e)),{...this._def,...e})}}$t.create=Yt;class Qt extends tt{_parse(t){const e=C.getValidEnumValues(this._def.values),n=this._getOrReturnCtx(t);if(n.parsedType!==j.string&&n.parsedType!==j.number){const t=C.objectValues(e);return D(n,{expected:C.joinValues(t),received:n.parsedType,code:U.invalid_type}),G}if(this._cache||(this._cache=new Set(C.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const t=C.objectValues(e);return D(n,{received:n.data,code:U.invalid_enum_value,options:t}),G}return V(t.data)}get enum(){return this._def.values}}Qt.create=(t,e)=>new Qt({values:t,typeName:ue.ZodNativeEnum,...X(e)});class Xt extends tt{unwrap(){return this._def.type}_parse(t){const{ctx:e}=this._processInputParams(t);if(e.parsedType!==j.promise&&!1===e.common.async)return D(e,{code:U.invalid_type,expected:j.promise,received:e.parsedType}),G;const n=e.parsedType===j.promise?e.data:Promise.resolve(e.data);return V(n.then(t=>this._def.type.parseAsync(t,{path:e.path,errorMap:e.common.contextualErrorMap})))}}Xt.create=(t,e)=>new Xt({type:t,typeName:ue.ZodPromise,...X(e)});class te extends tt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ue.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:e,ctx:n}=this._processInputParams(t),r=this._def.effect||null,a={addIssue:t=>{D(n,t),t.fatal?e.abort():e.dirty()},get path(){return n.path}};if(a.addIssue=a.addIssue.bind(a),"preprocess"===r.type){const t=r.transform(n.data,a);if(n.common.async)return Promise.resolve(t).then(async t=>{if("aborted"===e.value)return G;const r=await this._def.schema._parseAsync({data:t,path:n.path,parent:n});return"aborted"===r.status?G:"dirty"===r.status||"dirty"===e.value?K(r.value):r});{if("aborted"===e.value)return G;const r=this._def.schema._parseSync({data:t,path:n.path,parent:n});return"aborted"===r.status?G:"dirty"===r.status||"dirty"===e.value?K(r.value):r}}if("refinement"===r.type){const t=t=>{const e=r.refinement(t,a);if(n.common.async)return Promise.resolve(e);if(e instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return t};if(!1===n.common.async){const r=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===r.status?G:("dirty"===r.status&&e.dirty(),t(r.value),{status:e.value,value:r.value})}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(n=>"aborted"===n.status?G:("dirty"===n.status&&e.dirty(),t(n.value).then(()=>({status:e.value,value:n.value}))))}if("transform"===r.type){if(!1===n.common.async){const t=this._def.schema._parseSync({data:n.data,path:n.path,parent:n});if(!W(t))return G;const i=r.transform(t.value,a);if(i instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:e.value,value:i}}return this._def.schema._parseAsync({data:n.data,path:n.path,parent:n}).then(t=>W(t)?Promise.resolve(r.transform(t.value,a)).then(t=>({status:e.value,value:t})):G)}C.assertNever(r)}}te.create=(t,e,n)=>new te({schema:t,typeName:ue.ZodEffects,effect:e,...X(n)}),te.createWithPreprocess=(t,e,n)=>new te({schema:e,effect:{type:"preprocess",transform:t},typeName:ue.ZodEffects,...X(n)});class ee extends tt{_parse(t){return this._getType(t)===j.undefined?V(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ee.create=(t,e)=>new ee({innerType:t,typeName:ue.ZodOptional,...X(e)});class ne extends tt{_parse(t){return this._getType(t)===j.null?V(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}ne.create=(t,e)=>new ne({innerType:t,typeName:ue.ZodNullable,...X(e)});class re extends tt{_parse(t){const{ctx:e}=this._processInputParams(t);let n=e.data;return e.parsedType===j.undefined&&(n=this._def.defaultValue()),this._def.innerType._parse({data:n,path:e.path,parent:e})}removeDefault(){return this._def.innerType}}re.create=(t,e)=>new re({innerType:t,typeName:ue.ZodDefault,defaultValue:"function"==typeof e.default?e.default:()=>e.default,...X(e)});class ae extends tt{_parse(t){const{ctx:e}=this._processInputParams(t),n={...e,common:{...e.common,issues:[]}},r=this._def.innerType._parse({data:n.data,path:n.path,parent:{...n}});return J(r)?r.then(t=>({status:"valid",value:"valid"===t.status?t.value:this._def.catchValue({get error(){return new L(n.common.issues)},input:n.data})})):{status:"valid",value:"valid"===r.status?r.value:this._def.catchValue({get error(){return new L(n.common.issues)},input:n.data})}}removeCatch(){return this._def.innerType}}ae.create=(t,e)=>new ae({innerType:t,typeName:ue.ZodCatch,catchValue:"function"==typeof e.catch?e.catch:()=>e.catch,...X(e)});class ie extends tt{_parse(t){if(this._getType(t)!==j.nan){const e=this._getOrReturnCtx(t);return D(e,{code:U.invalid_type,expected:j.nan,received:e.parsedType}),G}return{status:"valid",value:t.data}}}ie.create=t=>new ie({typeName:ue.ZodNaN,...X(t)});class se extends tt{_parse(t){const{ctx:e}=this._processInputParams(t),n=e.data;return this._def.type._parse({data:n,path:e.path,parent:e})}unwrap(){return this._def.type}}class oe extends tt{_parse(t){const{status:e,ctx:n}=this._processInputParams(t);if(n.common.async){return(async()=>{const t=await this._def.in._parseAsync({data:n.data,path:n.path,parent:n});return"aborted"===t.status?G:"dirty"===t.status?(e.dirty(),K(t.value)):this._def.out._parseAsync({data:t.value,path:n.path,parent:n})})()}{const t=this._def.in._parseSync({data:n.data,path:n.path,parent:n});return"aborted"===t.status?G:"dirty"===t.status?(e.dirty(),{status:"dirty",value:t.value}):this._def.out._parseSync({data:t.value,path:n.path,parent:n})}}static create(t,e){return new oe({in:t,out:e,typeName:ue.ZodPipeline})}}class ce extends tt{_parse(t){const e=this._def.innerType._parse(t),n=t=>(W(t)&&(t.value=Object.freeze(t.value)),t);return J(e)?e.then(t=>n(t)):n(e)}unwrap(){return this._def.innerType}}var ue;ce.create=(t,e)=>new ce({innerType:t,typeName:ue.ZodReadonly,...X(e)}),function(t){t.ZodString="ZodString",t.ZodNumber="ZodNumber",t.ZodNaN="ZodNaN",t.ZodBigInt="ZodBigInt",t.ZodBoolean="ZodBoolean",t.ZodDate="ZodDate",t.ZodSymbol="ZodSymbol",t.ZodUndefined="ZodUndefined",t.ZodNull="ZodNull",t.ZodAny="ZodAny",t.ZodUnknown="ZodUnknown",t.ZodNever="ZodNever",t.ZodVoid="ZodVoid",t.ZodArray="ZodArray",t.ZodObject="ZodObject",t.ZodUnion="ZodUnion",t.ZodDiscriminatedUnion="ZodDiscriminatedUnion",t.ZodIntersection="ZodIntersection",t.ZodTuple="ZodTuple",t.ZodRecord="ZodRecord",t.ZodMap="ZodMap",t.ZodSet="ZodSet",t.ZodFunction="ZodFunction",t.ZodLazy="ZodLazy",t.ZodLiteral="ZodLiteral",t.ZodEnum="ZodEnum",t.ZodEffects="ZodEffects",t.ZodNativeEnum="ZodNativeEnum",t.ZodOptional="ZodOptional",t.ZodNullable="ZodNullable",t.ZodDefault="ZodDefault",t.ZodCatch="ZodCatch",t.ZodPromise="ZodPromise",t.ZodBranded="ZodBranded",t.ZodPipeline="ZodPipeline",t.ZodReadonly="ZodReadonly"}(ue||(ue={}));const de=It.create,le=Pt.create,fe=_t.create;jt.create;const he=Ut.create,pe=zt.create,me=Ft.create,ye=qt.create;Kt.create,Vt.create;const ge=Jt.create,be=$t.create;Xt.create,ee.create,ne.create;const ve=/[@#$%^&*+=/\\|~«»]/,we=/(!{2,}|\?{2,}|-{2,})/,xe=/[\u{1F300}-\u{1F9FF}]|[\u{2702}-\u{27B0}]|[\u{2600}-\u{26FF}]|[\u{2B00}-\u{2BFF}]/u,ke=({max:t,noSpaces:e}={})=>(e?de().max(t??Number.POSITIVE_INFINITY).regex(/^\S*$/,"Spaces are not allowed"):de().max(t??Number.POSITIVE_INFINITY)).refine(t=>!xe.test(t),{message:"Emojis and symbols are not allowed"}).refine(t=>!ve.test(t),{message:"Special characters (@, #, $, %, ^, &, *, +, =, /, \\, |, ~, «, ») are not allowed"}).refine(t=>!we.test(t),{message:"Repeated punctuations (!!, ??, --) are not allowed"}),Ae=de().url().startsWith("https://",{message:"Must be an https url"}).max(1024).refine(t=>!t.includes(" "),{message:"URL must not contain spaces"}).refine(t=>{try{const e=new URL(t).hostname;if("localhost"===e||e.endsWith(".localhost"))return!1;return!/^(\d{1,3}\.){3}\d{1,3}$/.test(e)&&(!e.startsWith("[")||!e.endsWith("]"))}catch{return!1}},{message:"URL must not use IP addresses or localhost"}),Ie=de().max(32),Ee=de().max(32),Pe=de().regex(/^[-a-z0-9]{3,8}:[-_a-zA-Z0-9]{1,32}\/(?:[-a-z0-9]{3,8}:[-.%a-zA-Z0-9]{1,128}(?:\/[-.%a-zA-Z0-9]{1,78})?|native)$/,{message:"Invalid CAIP-19 asset ID"}),Se=de().regex(/^#([0-9A-F]{3}|[0-9A-F]{6})$/i,{message:"Invalid hex color code. It should be in the format #RRGGBB or #RGB."}),_e=de().max(1024).regex(/^(?!.*\.\.)([a-zA-Z0-9]([a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,{message:"Must be a valid domain name (e.g., example.com, sub.example.com)"}).refine(t=>!t.includes("://"),{message:"Domain must not include protocol (http://, https://, etc.)"}).refine(t=>!t.includes("/"),{message:"Domain must not include path separators"}).refine(t=>!t.includes("@"),{message:"Domain must not include @ symbol"}).refine(t=>!t.includes(":"),{message:"Domain must not include port numbers"}),Oe=me([ge("1:1"),ge("3:2")]),Te=pe({header:de(),payload:de(),signature:de()});pe({fid:le(),type:ge("app_key"),key:de().startsWith("0x")});const Be=pe({type:ge("launch_frame"),name:Ie,url:Ae.optional(),splashImageUrl:Ae.optional(),splashBackgroundColor:Se.optional()}),Me=pe({type:ge("launch_miniapp"),name:Ie,url:Ae.optional(),splashImageUrl:Ae.optional(),splashBackgroundColor:Se.optional()}),Ce=pe({type:ge("view_token"),token:Pe}),Ne=pe({title:Ee,action:ye("type",[Me,Ce,Be])});pe({version:me([de(),le()]).transform(t=>String(t)).pipe(me([ge("next"),ge("1")])),imageUrl:Ae,aspectRatio:Oe.optional(),button:Ne});const je=pe({url:de(),token:de()});pe({notificationId:de().max(128),title:de().max(32),body:de().max(128),targetUrl:Ae,tokens:de().array().max(100)}),pe({result:pe({successfulTokens:he(de()),invalidTokens:he(de()),rateLimitedTokens:he(de())})});ye("event",[pe({event:ge("miniapp_added"),notificationDetails:je.optional()}),pe({event:ge("miniapp_removed")}),pe({event:ge("notifications_enabled"),notificationDetails:je.required()}),pe({event:ge("notifications_disabled")})]);const Re=be(["games","social","finance","utility","productivity","health-fitness","news-media","music","shopping","education","developer-tools","entertainment","art-creativity"]),Ue=me([ge("0.0.0"),ge("0.0.1"),ge("1"),ge("next")]),Le=ke({max:30}),ze=ke({max:170}),Fe=he(Ae).max(3),De=he(ke({max:20,noSpaces:!0})).max(5),qe=ke({max:30}),Ge=ke({max:30}),Ke=ke({max:100}),Ve=fe();function Ze(t){const e=new Set(t);return Array.from(e)}const He=he(be(["eip155:1","eip155:8453","eip155:42161","eip155:421614","eip155:84532","eip155:666666666","eip155:100","eip155:10","eip155:11155420","eip155:137","eip155:11155111","eip155:7777777","eip155:130","eip155:10143","eip155:42220","eip155:999","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"])).transform(Ze),We=he(be(["wallet.getEthereumProvider","wallet.getSolanaProvider","actions.ready","actions.openUrl","actions.close","actions.setPrimaryButton","actions.addMiniApp","actions.signIn","actions.viewCast","actions.viewProfile","actions.composeCast","actions.viewToken","actions.sendToken","actions.swapToken","actions.openMiniApp","actions.requestCameraAndMicrophoneAccess","experimental.signManifest","haptics.impactOccurred","haptics.notificationOccurred","haptics.selectionChanged","back"])).transform(Ze),Je=pe({version:Ue,name:Ie,iconUrl:Ae,homeUrl:Ae,imageUrl:Ae.optional(),buttonTitle:Ee.optional(),splashImageUrl:Ae.optional(),splashBackgroundColor:Se.optional(),webhookUrl:Ae.optional(),subtitle:Le.optional(),description:ze.optional(),screenshotUrls:Fe.optional(),primaryCategory:Re.optional(),tags:De.optional(),heroImageUrl:Ae.optional(),tagline:qe.optional(),ogTitle:Ge.optional(),ogDescription:Ke.optional(),ogImageUrl:Ae.optional(),noindex:Ve.optional(),requiredChains:He.optional(),requiredCapabilities:We.optional(),castShareUrl:Ae.optional(),canonicalDomain:_e.optional()}).refine(t=>{if(void 0===t.castShareUrl)return!0;try{const e=new URL(t.homeUrl).hostname;return e===new URL(t.castShareUrl).hostname}catch{return!1}},{message:"castShareUrl must have the same domain as homeUrl",path:["castShareUrl"]});pe({accountAssociation:Te,miniapp:Je.optional(),frame:Je.optional()}).refine(t=>!t.frame||!t.miniapp||JSON.stringify(t.frame)===JSON.stringify(t.miniapp),{message:'If both "frame" and "miniapp" are provided, they must be identical',path:["frame","miniapp"]}).transform(t=>({...t,frame:t.frame??t.miniapp}));for(var Ye={},$e={byteLength:function(t){var e=rn(t),n=e[0],r=e[1];return 3*(n+r)/4-r},toByteArray:function(t){var e,n,r=rn(t),a=r[0],i=r[1],s=new tn(function(t,e,n){return 3*(e+n)/4-n}(0,a,i)),o=0,c=i>0?a-4:a;for(n=0;n<c;n+=4)e=Xe[t.charCodeAt(n)]<<18|Xe[t.charCodeAt(n+1)]<<12|Xe[t.charCodeAt(n+2)]<<6|Xe[t.charCodeAt(n+3)],s[o++]=e>>16&255,s[o++]=e>>8&255,s[o++]=255&e;2===i&&(e=Xe[t.charCodeAt(n)]<<2|Xe[t.charCodeAt(n+1)]>>4,s[o++]=255&e);1===i&&(e=Xe[t.charCodeAt(n)]<<10|Xe[t.charCodeAt(n+1)]<<4|Xe[t.charCodeAt(n+2)]>>2,s[o++]=e>>8&255,s[o++]=255&e);return s},fromByteArray:function(t){for(var e,n=t.length,r=n%3,a=[],i=16383,s=0,o=n-r;s<o;s+=i)a.push(sn(t,s,s+i>o?o:s+i));1===r?(e=t[n-1],a.push(Qe[e>>2]+Qe[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],a.push(Qe[e>>10]+Qe[e>>4&63]+Qe[e<<2&63]+"="));return a.join("")}},Qe=[],Xe=[],tn="undefined"!=typeof Uint8Array?Uint8Array:Array,en="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nn=0;nn<64;++nn)Qe[nn]=en[nn],Xe[en.charCodeAt(nn)]=nn;function rn(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function an(t){return Qe[t>>18&63]+Qe[t>>12&63]+Qe[t>>6&63]+Qe[63&t]}function sn(t,e,n){for(var r,a=[],i=e;i<n;i+=3)r=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(255&t[i+2]),a.push(an(r));return a.join("")}Xe["-".charCodeAt(0)]=62,Xe["_".charCodeAt(0)]=63;var on={
|
|
2
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
3
|
+
read:function(t,e,n,r,a){var i,s,o=8*a-r-1,c=(1<<o)-1,u=c>>1,d=-7,l=n?a-1:0,f=n?-1:1,h=t[e+l];for(l+=f,i=h&(1<<-d)-1,h>>=-d,d+=o;d>0;i=256*i+t[e+l],l+=f,d-=8);for(s=i&(1<<-d)-1,i>>=-d,d+=r;d>0;s=256*s+t[e+l],l+=f,d-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),i-=u}return(h?-1:1)*s*Math.pow(2,i-r)},write:function(t,e,n,r,a,i){var s,o,c,u=8*i-a-1,d=(1<<u)-1,l=d>>1,f=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,s=d):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+l>=1?f/c:f*Math.pow(2,1-l))*c>=2&&(s++,c/=2),s+l>=d?(o=0,s=d):s+l>=1?(o=(e*c-1)*Math.pow(2,a),s+=l):(o=e*Math.pow(2,l-1)*Math.pow(2,a),s=0));a>=8;t[n+h]=255&o,h+=p,o/=256,a-=8);for(s=s<<a|o,u+=a;u>0;t[n+h]=255&s,h+=p,s/=256,u-=8);t[n+h-p]|=128*m}};
|
|
4
|
+
/*!
|
|
5
|
+
* The buffer module from node.js, for the browser.
|
|
6
|
+
*
|
|
7
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
8
|
+
* @license MIT
|
|
9
|
+
*/
|
|
10
|
+
!function(t){const e=$e,n=on,r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=function(t){+t!=t&&(t=0);return s.alloc(+t)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function i(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,s.prototype),e}function s(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return u(t)}return o(t,e,n)}function o(t,e,n){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|h(t,e);let r=i(n);const a=r.write(t,e);a!==n&&(r=r.slice(0,a));return r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(H(t,Uint8Array)){const e=new Uint8Array(t);return l(e.buffer,e.byteOffset,e.byteLength)}return d(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(H(t,ArrayBuffer)||t&&H(t.buffer,ArrayBuffer))return l(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(H(t,SharedArrayBuffer)||t&&H(t.buffer,SharedArrayBuffer)))return l(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return s.from(r,e,n);const a=function(t){if(s.isBuffer(t)){const e=0|f(t.length),n=i(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!=typeof t.length||W(t.length)?i(0):d(t);if("Buffer"===t.type&&Array.isArray(t.data))return d(t.data)}(t);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return s.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return c(t),i(t<0?0:0|f(t))}function d(t){const e=t.length<0?0:0|f(t.length),n=i(e);for(let r=0;r<e;r+=1)n[r]=255&t[r];return n}function l(t,e,n){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===e&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,e):new Uint8Array(t,e,n),Object.setPrototypeOf(r,s.prototype),r}function f(t){if(t>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function h(t,e){if(s.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||H(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let a=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return K(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(t).length;default:if(a)return r?-1:K(t).length;e=(""+e).toLowerCase(),a=!0}}function p(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return _(this,e,n);case"utf8":case"utf-8":return I(this,e,n);case"ascii":return P(this,e,n);case"latin1":case"binary":return S(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,a){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),W(n=+n)&&(n=a?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(a)return-1;n=t.length-1}else if(n<0){if(!a)return-1;n=0}if("string"==typeof e&&(e=s.from(e,r)),s.isBuffer(e))return 0===e.length?-1:g(t,e,n,r,a);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):g(t,[e],n,r,a);throw new TypeError("val must be string, number or Buffer")}function g(t,e,n,r,a){let i,s=1,o=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,o/=2,c/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(a){let r=-1;for(i=n;i<o;i++)if(u(t,i)===u(e,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===c)return r*s}else-1!==r&&(i-=i-r),r=-1}else for(n+c>o&&(n=o-c),i=n;i>=0;i--){let n=!0;for(let r=0;r<c;r++)if(u(t,i+r)!==u(e,r)){n=!1;break}if(n)return i}return-1}function b(t,e,n,r){n=Number(n)||0;const a=t.length-n;r?(r=Number(r))>a&&(r=a):r=a;const i=e.length;let s;for(r>i/2&&(r=i/2),s=0;s<r;++s){const r=parseInt(e.substr(2*s,2),16);if(W(r))return s;t[n+s]=r}return s}function v(t,e,n,r){return Z(K(e,t.length-n),t,n,r)}function w(t,e,n,r){return Z(function(t){const e=[];for(let n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function x(t,e,n,r){return Z(V(e),t,n,r)}function k(t,e,n,r){return Z(function(t,e){let n,r,a;const i=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,a=n%256,i.push(a),i.push(r);return i}(e,t.length-n),t,n,r)}function A(t,n,r){return 0===n&&r===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(n,r))}function I(t,e,n){n=Math.min(t.length,n);const r=[];let a=e;for(;a<n;){const e=t[a];let i=null,s=e>239?4:e>223?3:e>191?2:1;if(a+s<=n){let n,r,o,c;switch(s){case 1:e<128&&(i=e);break;case 2:n=t[a+1],128==(192&n)&&(c=(31&e)<<6|63&n,c>127&&(i=c));break;case 3:n=t[a+1],r=t[a+2],128==(192&n)&&128==(192&r)&&(c=(15&e)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:n=t[a+1],r=t[a+2],o=t[a+3],128==(192&n)&&128==(192&r)&&128==(192&o)&&(c=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&o,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),a+=s}return function(t){const e=t.length;if(e<=E)return String.fromCharCode.apply(String,t);let n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=E));return n}(r)}t.kMaxLength=a,s.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),s.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(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(t,e,n){return o(t,e,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(t,e,n){return function(t,e,n){return c(t),t<=0?i(t):void 0!==e?"string"==typeof n?i(t).fill(e,n):i(t).fill(e):i(t)}(t,e,n)},s.allocUnsafe=function(t){return u(t)},s.allocUnsafeSlow=function(t){return u(t)},s.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==s.prototype},s.compare=function(t,e){if(H(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),H(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(t)||!s.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let a=0,i=Math.min(n,r);a<i;++a)if(t[a]!==e[a]){n=t[a],r=e[a];break}return n<r?-1:r<n?1:0},s.isEncoding=function(t){switch(String(t).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}},s.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s.alloc(0);let n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;const r=s.allocUnsafe(e);let a=0;for(n=0;n<t.length;++n){let e=t[n];if(H(e,Uint8Array))a+e.length>r.length?(s.isBuffer(e)||(e=s.from(e)),e.copy(r,a)):Uint8Array.prototype.set.call(r,e,a);else{if(!s.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,a)}a+=e.length}return r},s.byteLength=h,s.prototype._isBuffer=!0,s.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)m(this,e,e+1);return this},s.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},s.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},s.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?I(this,0,t):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(t){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===s.compare(this,t)},s.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(t,e,n,r,a){if(H(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),e<0||n>t.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&e>=n)return 0;if(r>=a)return-1;if(e>=n)return 1;if(this===t)return 0;let i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(e>>>=0);const c=Math.min(i,o),u=this.slice(r,a),d=t.slice(e,n);for(let t=0;t<c;++t)if(u[t]!==d[t]){i=u[t],o=d[t];break}return i<o?-1:o<i?1:0},s.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},s.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},s.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},s.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const a=this.length-e;if((void 0===n||n>a)&&(n=a),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return v(this,t,e,n);case"ascii":case"latin1":case"binary":return w(this,t,e,n);case"base64":return x(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const E=4096;function P(t,e,n){let r="";n=Math.min(t.length,n);for(let a=e;a<n;++a)r+=String.fromCharCode(127&t[a]);return r}function S(t,e,n){let r="";n=Math.min(t.length,n);for(let a=e;a<n;++a)r+=String.fromCharCode(t[a]);return r}function _(t,e,n){const r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);let a="";for(let r=e;r<n;++r)a+=J[t[r]];return a}function O(t,e,n){const r=t.slice(e,n);let a="";for(let t=0;t<r.length-1;t+=2)a+=String.fromCharCode(r[t]+256*r[t+1]);return a}function T(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function B(t,e,n,r,a,i){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function M(t,e,n,r,a){F(e,r,a,t,n,7);let i=Number(e&BigInt(4294967295));t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i,i>>=8,t[n++]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,s>>=8,t[n++]=s,n}function C(t,e,n,r,a){F(e,r,a,t,n,7);let i=Number(e&BigInt(4294967295));t[n+7]=i,i>>=8,t[n+6]=i,i>>=8,t[n+5]=i,i>>=8,t[n+4]=i;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=s,s>>=8,t[n+2]=s,s>>=8,t[n+1]=s,s>>=8,t[n]=s,n+8}function N(t,e,n,r,a,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function j(t,e,r,a,i){return e=+e,r>>>=0,i||N(t,0,r,4),n.write(t,e,r,a,23,4),r+4}function R(t,e,r,a,i){return e=+e,r>>>=0,i||N(t,0,r,8),n.write(t,e,r,a,52,8),r+8}s.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);const r=this.subarray(t,e);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUintLE=s.prototype.readUIntLE=function(t,e,n){t>>>=0,e>>>=0,n||T(t,e,this.length);let r=this[t],a=1,i=0;for(;++i<e&&(a*=256);)r+=this[t+i]*a;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(t,e,n){t>>>=0,e>>>=0,n||T(t,e,this.length);let r=this[t+--e],a=1;for(;e>0&&(a*=256);)r+=this[t+--e]*a;return r},s.prototype.readUint8=s.prototype.readUInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),this[t]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readBigUInt64LE=Y(function(t){D(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||q(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,a=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(a)<<BigInt(32))}),s.prototype.readBigUInt64BE=Y(function(t){D(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||q(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],a=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<<BigInt(32))+BigInt(a)}),s.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||T(t,e,this.length);let r=this[t],a=1,i=0;for(;++i<e&&(a*=256);)r+=this[t+i]*a;return a*=128,r>=a&&(r-=Math.pow(2,8*e)),r},s.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||T(t,e,this.length);let r=e,a=1,i=this[t+--r];for(;r>0&&(a*=256);)i+=this[t+--r]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*e)),i},s.prototype.readInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){t>>>=0,e||T(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(t,e){t>>>=0,e||T(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readBigInt64LE=Y(function(t){D(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||q(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)}),s.prototype.readBigInt64BE=Y(function(t){D(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||q(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+n)}),s.prototype.readFloatLE=function(t,e){return t>>>=0,e||T(t,4,this.length),n.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return t>>>=0,e||T(t,4,this.length),n.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return t>>>=0,e||T(t,8,this.length),n.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return t>>>=0,e||T(t,8,this.length),n.read(this,t,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){B(this,t,e,n,Math.pow(2,8*n)-1,0)}let a=1,i=0;for(this[e]=255&t;++i<n&&(a*=256);)this[e+i]=t/a&255;return e+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){B(this,t,e,n,Math.pow(2,8*n)-1,0)}let a=n-1,i=1;for(this[e+a]=255&t;--a>=0&&(i*=256);)this[e+a]=t/i&255;return e+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,1,255,0),this[e]=255&t,e+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeBigUInt64LE=Y(function(t,e=0){return M(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Y(function(t,e=0){return C(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);B(this,t,e,n,r-1,-r)}let a=0,i=1,s=0;for(this[e]=255&t;++a<n&&(i*=256);)t<0&&0===s&&0!==this[e+a-1]&&(s=1),this[e+a]=(t/i|0)-s&255;return e+n},s.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);B(this,t,e,n,r-1,-r)}let a=n-1,i=1,s=0;for(this[e+a]=255&t;--a>=0&&(i*=256);)t<0&&0===s&&0!==this[e+a+1]&&(s=1),this[e+a]=(t/i|0)-s&255;return e+n},s.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},s.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},s.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},s.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||B(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},s.prototype.writeBigInt64LE=Y(function(t,e=0){return M(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Y(function(t,e=0){return C(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeFloatLE=function(t,e,n){return j(this,t,e,!0,n)},s.prototype.writeFloatBE=function(t,e,n){return j(this,t,e,!1,n)},s.prototype.writeDoubleLE=function(t,e,n){return R(this,t,e,!0,n)},s.prototype.writeDoubleBE=function(t,e,n){return R(this,t,e,!1,n)},s.prototype.copy=function(t,e,n,r){if(!s.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);const a=r-n;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,n,r):Uint8Array.prototype.set.call(t,this.subarray(n,r),e),a},s.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){const e=t.charCodeAt(0);("utf8"===r&&e<128||"latin1"===r)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;let a;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{const i=s.isBuffer(t)?t:s.from(t,r),o=i.length;if(0===o)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(a=0;a<n-e;++a)this[a+e]=i[a%o]}return this};const U={};function L(t,e,n){U[t]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function z(t){let e="",n=t.length;const r="-"===t[0]?1:0;for(;n>=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function F(t,e,n,r,a,i){if(t>n||t<e){const n="bigint"==typeof e?"n":"";let r;throw r=0===e||e===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}`,new U.ERR_OUT_OF_RANGE("value",r,t)}!function(t,e,n){D(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||q(e,t.length-(n+1))}(r,a,i)}function D(t,e){if("number"!=typeof t)throw new U.ERR_INVALID_ARG_TYPE(e,"number",t)}function q(t,e,n){if(Math.floor(t)!==t)throw D(t,n),new U.ERR_OUT_OF_RANGE("offset","an integer",t);if(e<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,t)}L("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),L("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),L("ERR_OUT_OF_RANGE",function(t,e,n){let r=`The value of "${t}" is out of range.`,a=n;return Number.isInteger(n)&&Math.abs(n)>2**32?a=z(String(n)):"bigint"==typeof n&&(a=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(a=z(a)),a+="n"),r+=` It must be ${e}. Received ${a}`,r},RangeError);const G=/[^+/0-9A-Za-z-_]/g;function K(t,e){let n;e=e||1/0;const r=t.length;let a=null;const i=[];for(let s=0;s<r;++s){if(n=t.charCodeAt(s),n>55295&&n<57344){if(!a){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(e-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function V(t){return e.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Z(t,e,n,r){let a;for(a=0;a<r&&!(a+n>=e.length||a>=t.length);++a)e[a+n]=t[a];return a}function H(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function W(t){return t!=t}const J=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let a=0;a<16;++a)e[r+a]=t[n]+t[a]}return e}();function Y(t){return"undefined"==typeof BigInt?$:t}function $(){throw new Error("BigInt not supported")}}(Ye);const cn="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;
|
|
11
|
+
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */function un(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("positive integer expected, got "+t)}function dn(t,...e){if(!function(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error("Uint8Array expected of length "+e+", got length="+t.length)}function ln(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function fn(t,e){dn(t);const n=e.outputLen;if(t.length<n)throw new Error("digestInto() expects output buffer of length at least "+n)}function hn(...t){for(let e=0;e<t.length;e++)t[e].fill(0)}function pn(t){return new DataView(t.buffer,t.byteOffset,t.byteLength)}function mn(t,e){return t<<32-e|t>>>e}function yn(t){return t<<24&4278190080|t<<8&16711680|t>>>8&65280|t>>>24&255}const gn=(()=>68===new Uint8Array(new Uint32Array([287454020]).buffer)[0])()?t=>t:function(t){for(let e=0;e<t.length;e++)t[e]=yn(t[e]);return t};function bn(t){return"string"==typeof t&&(t=function(t){if("string"!=typeof t)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(t))}(t)),dn(t),t}let vn=class{};function wn(t){const e=e=>t().update(bn(e)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}function xn(t=32){if(cn&&"function"==typeof cn.getRandomValues)return cn.getRandomValues(new Uint8Array(t));if(cn&&"function"==typeof cn.randomBytes)return Uint8Array.from(cn.randomBytes(t));throw new Error("crypto.getRandomValues must be defined")}function kn(t,e,n){return t&e^~t&n}function An(t,e,n){return t&e^t&n^e&n}let In=class extends vn{constructor(t,e,n,r){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=t,this.outputLen=e,this.padOffset=n,this.isLE=r,this.buffer=new Uint8Array(t),this.view=pn(this.buffer)}update(t){ln(this),dn(t=bn(t));const{view:e,buffer:n,blockLen:r}=this,a=t.length;for(let i=0;i<a;){const s=Math.min(r-this.pos,a-i);if(s===r){const e=pn(t);for(;r<=a-i;i+=r)this.process(e,i);continue}n.set(t.subarray(i,i+s),this.pos),this.pos+=s,i+=s,this.pos===r&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){ln(this),fn(t,this),this.finished=!0;const{buffer:e,view:n,blockLen:r,isLE:a}=this;let{pos:i}=this;e[i++]=128,hn(this.buffer.subarray(i)),this.padOffset>r-i&&(this.process(n,0),i=0);for(let t=i;t<r;t++)e[t]=0;!function(t,e,n,r){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,n,r);const a=BigInt(32),i=BigInt(4294967295),s=Number(n>>a&i),o=Number(n&i),c=r?4:0,u=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+u,o,r)}(n,r-8,BigInt(8*this.length),a),this.process(n,0);const s=pn(t),o=this.outputLen;if(o%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=o/4,u=this.get();if(c>u.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t<c;t++)s.setUint32(4*t,u[t],a)}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const n=t.slice(0,e);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:e,buffer:n,length:r,finished:a,destroyed:i,pos:s}=this;return t.destroyed=i,t.finished=a,t.length=r,t.pos=s,r%e&&t.buffer.set(n),t}clone(){return this._cloneInto()}};const En=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Pn=Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),Sn=Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]),_n=BigInt(2**32-1),On=BigInt(32);function Tn(t,e=!1){return e?{h:Number(t&_n),l:Number(t>>On&_n)}:{h:0|Number(t>>On&_n),l:0|Number(t&_n)}}function Bn(t,e=!1){const n=t.length;let r=new Uint32Array(n),a=new Uint32Array(n);for(let i=0;i<n;i++){const{h:n,l:s}=Tn(t[i],e);[r[i],a[i]]=[n,s]}return[r,a]}const Mn=(t,e,n)=>t>>>n,Cn=(t,e,n)=>t<<32-n|e>>>n,Nn=(t,e,n)=>t>>>n|e<<32-n,jn=(t,e,n)=>t<<32-n|e>>>n,Rn=(t,e,n)=>t<<64-n|e>>>n-32,Un=(t,e,n)=>t>>>n-32|e<<64-n;function Ln(t,e,n,r){const a=(e>>>0)+(r>>>0);return{h:t+n+(a/2**32|0)|0,l:0|a}}const zn=(t,e,n)=>(t>>>0)+(e>>>0)+(n>>>0),Fn=(t,e,n,r)=>e+n+r+(t/2**32|0)|0,Dn=(t,e,n,r)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0),qn=(t,e,n,r,a)=>e+n+r+a+(t/2**32|0)|0,Gn=(t,e,n,r,a)=>(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(a>>>0),Kn=(t,e,n,r,a,i)=>e+n+r+a+i+(t/2**32|0)|0,Vn=Uint32Array.from([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Zn=new Uint32Array(64);let Hn=class extends In{constructor(t=32){super(64,t,8,!1),this.A=0|En[0],this.B=0|En[1],this.C=0|En[2],this.D=0|En[3],this.E=0|En[4],this.F=0|En[5],this.G=0|En[6],this.H=0|En[7]}get(){const{A:t,B:e,C:n,D:r,E:a,F:i,G:s,H:o}=this;return[t,e,n,r,a,i,s,o]}set(t,e,n,r,a,i,s,o){this.A=0|t,this.B=0|e,this.C=0|n,this.D=0|r,this.E=0|a,this.F=0|i,this.G=0|s,this.H=0|o}process(t,e){for(let n=0;n<16;n++,e+=4)Zn[n]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=Zn[t-15],n=Zn[t-2],r=mn(e,7)^mn(e,18)^e>>>3,a=mn(n,17)^mn(n,19)^n>>>10;Zn[t]=a+Zn[t-7]+r+Zn[t-16]|0}let{A:n,B:r,C:a,D:i,E:s,F:o,G:c,H:u}=this;for(let t=0;t<64;t++){const e=u+(mn(s,6)^mn(s,11)^mn(s,25))+kn(s,o,c)+Vn[t]+Zn[t]|0,d=(mn(n,2)^mn(n,13)^mn(n,22))+An(n,r,a)|0;u=c,c=o,o=s,s=i+e|0,i=a,a=r,r=n,n=e+d|0}n=n+this.A|0,r=r+this.B|0,a=a+this.C|0,i=i+this.D|0,s=s+this.E|0,o=o+this.F|0,c=c+this.G|0,u=u+this.H|0,this.set(n,r,a,i,s,o,c,u)}roundClean(){hn(Zn)}destroy(){this.set(0,0,0,0,0,0,0,0),hn(this.buffer)}};const Wn=(()=>Bn(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(t=>BigInt(t))))(),Jn=(()=>Wn[0])(),Yn=(()=>Wn[1])(),$n=new Uint32Array(80),Qn=new Uint32Array(80);class Xn extends In{constructor(t=64){super(128,t,16,!1),this.Ah=0|Sn[0],this.Al=0|Sn[1],this.Bh=0|Sn[2],this.Bl=0|Sn[3],this.Ch=0|Sn[4],this.Cl=0|Sn[5],this.Dh=0|Sn[6],this.Dl=0|Sn[7],this.Eh=0|Sn[8],this.El=0|Sn[9],this.Fh=0|Sn[10],this.Fl=0|Sn[11],this.Gh=0|Sn[12],this.Gl=0|Sn[13],this.Hh=0|Sn[14],this.Hl=0|Sn[15]}get(){const{Ah:t,Al:e,Bh:n,Bl:r,Ch:a,Cl:i,Dh:s,Dl:o,Eh:c,El:u,Fh:d,Fl:l,Gh:f,Gl:h,Hh:p,Hl:m}=this;return[t,e,n,r,a,i,s,o,c,u,d,l,f,h,p,m]}set(t,e,n,r,a,i,s,o,c,u,d,l,f,h,p,m){this.Ah=0|t,this.Al=0|e,this.Bh=0|n,this.Bl=0|r,this.Ch=0|a,this.Cl=0|i,this.Dh=0|s,this.Dl=0|o,this.Eh=0|c,this.El=0|u,this.Fh=0|d,this.Fl=0|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h,0|this.El,0|d,0|l)),({h:f,l:h}=Ln(0|this.Fh,0|this.Fl,0|f,0|h)),({h:p,l:m}=Ln(0|this.Gh,0|this.Gl,0|p,0|m)),({h:y,l:g}=Ln(0|this.Hh,0|this.Hl,0|y,0|g)),this.set(n,r,a,i,s,o,c,u,d,l,f,h,p,m,y,g)}roundClean(){hn($n,Qn)}destroy(){hn(this.buffer),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}class tr extends Xn{constructor(){super(48),this.Ah=0|Pn[0],this.Al=0|Pn[1],this.Bh=0|Pn[2],this.Bl=0|Pn[3],this.Ch=0|Pn[4],this.Cl=0|Pn[5],this.Dh=0|Pn[6],this.Dl=0|Pn[7],this.Eh=0|Pn[8],this.El=0|Pn[9],this.Fh=0|Pn[10],this.Fl=0|Pn[11],this.Gh=0|Pn[12],this.Gl=0|Pn[13],this.Hh=0|Pn[14],this.Hl=0|Pn[15]}}const er=wn(()=>new Hn),nr=wn(()=>new Xn),rr=wn(()=>new tr),ar=BigInt(0),ir=BigInt(1);function sr(t){return t instanceof Uint8Array||ArrayBuffer.isView(t)&&"Uint8Array"===t.constructor.name}function or(t){if(!sr(t))throw new Error("Uint8Array expected")}function cr(t,e){if("boolean"!=typeof e)throw new Error(t+" boolean expected, got "+e)}function ur(t){const e=t.toString(16);return 1&e.length?"0"+e:e}function dr(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);return""===t?ar:BigInt("0x"+t)}const lr="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,fr=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function hr(t){if(or(t),lr)return t.toHex();let e="";for(let n=0;n<t.length;n++)e+=fr[t[n]];return e}const pr=48,mr=57,yr=65,gr=70,br=97,vr=102;function wr(t){return t>=pr&&t<=mr?t-pr:t>=yr&&t<=gr?t-(yr-10):t>=br&&t<=vr?t-(br-10):void 0}function xr(t){if("string"!=typeof t)throw new Error("hex string expected, got "+typeof t);if(lr)return Uint8Array.fromHex(t);const e=t.length,n=e/2;if(e%2)throw new Error("hex string expected, got unpadded hex of length "+e);const r=new Uint8Array(n);for(let e=0,a=0;e<n;e++,a+=2){const n=wr(t.charCodeAt(a)),i=wr(t.charCodeAt(a+1));if(void 0===n||void 0===i){const e=t[a]+t[a+1];throw new Error('hex string expected, got non-hex character "'+e+'" at index '+a)}r[e]=16*n+i}return r}function kr(t){return dr(hr(t))}function Ar(t){return or(t),dr(hr(Uint8Array.from(t).reverse()))}function Ir(t,e){return xr(t.toString(16).padStart(2*e,"0"))}function Er(t,e){return Ir(t,e).reverse()}function Pr(t,e,n){let r;if("string"==typeof e)try{r=xr(e)}catch(e){throw new Error(t+" must be hex string or Uint8Array, cause: "+e)}else{if(!sr(e))throw new Error(t+" must be hex string or Uint8Array");r=Uint8Array.from(e)}const a=r.length;if("number"==typeof n&&a!==n)throw new Error(t+" of length "+n+" expected, got "+a);return r}function Sr(...t){let e=0;for(let n=0;n<t.length;n++){const r=t[n];or(r),e+=r.length}const n=new Uint8Array(e);for(let e=0,r=0;e<t.length;e++){const a=t[e];n.set(a,r),r+=a.length}return n}const _r=t=>"bigint"==typeof t&&ar<=t;function Or(t,e,n){return _r(t)&&_r(e)&&_r(n)&&e<=t&&t<n}function Tr(t,e,n,r){if(!Or(e,n,r))throw new Error("expected valid "+t+": "+n+" <= n < "+r+", got "+e)}const Br=t=>(ir<<BigInt(t))-ir,Mr=t=>new Uint8Array(t),Cr=t=>Uint8Array.from(t);const Nr={bigint:t=>"bigint"==typeof t,function:t=>"function"==typeof t,boolean:t=>"boolean"==typeof t,string:t=>"string"==typeof t,stringOrUint8Array:t=>"string"==typeof t||sr(t),isSafeInteger:t=>Number.isSafeInteger(t),array:t=>Array.isArray(t),field:(t,e)=>e.Fp.isValid(t),hash:t=>"function"==typeof t&&Number.isSafeInteger(t.outputLen)};function jr(t,e,n={}){const r=(e,n,r)=>{const a=Nr[n];if("function"!=typeof a)throw new Error("invalid validator function");const i=t[e];if(!(r&&void 0===i||a(i,t)))throw new Error("param "+String(e)+" is invalid. Expected "+n+", got "+i)};for(const[t,n]of Object.entries(e))r(t,n,!1);for(const[t,e]of Object.entries(n))r(t,e,!0);return t}function Rr(t){const e=new WeakMap;return(n,...r)=>{const a=e.get(n);if(void 0!==a)return a;const i=t(n,...r);return e.set(n,i),i}}
|
|
12
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Ur=BigInt(0),Lr=BigInt(1),zr=BigInt(2),Fr=BigInt(3),Dr=BigInt(4),qr=BigInt(5),Gr=BigInt(8);function Kr(t,e){const n=t%e;return n>=Ur?n:e+n}function Vr(t,e,n){let r=t;for(;e-- >Ur;)r*=r,r%=n;return r}function Zr(t,e){if(t===Ur)throw new Error("invert: expected non-zero number");if(e<=Ur)throw new Error("invert: expected positive modulus, got "+e);let n=Kr(t,e),r=e,a=Ur,i=Lr;for(;n!==Ur;){const t=r%n,e=a-i*(r/n);r=n,n=t,a=i,i=e}if(r!==Lr)throw new Error("invert: does not exist");return Kr(a,e)}function Hr(t,e){const n=(t.ORDER+Lr)/Dr,r=t.pow(e,n);if(!t.eql(t.sqr(r),e))throw new Error("Cannot find square root");return r}function Wr(t,e){const n=(t.ORDER-qr)/Gr,r=t.mul(e,zr),a=t.pow(r,n),i=t.mul(e,a),s=t.mul(t.mul(i,zr),a),o=t.mul(i,t.sub(s,t.ONE));if(!t.eql(t.sqr(o),e))throw new Error("Cannot find square root");return o}function Jr(t){return t%Dr===Fr?Hr:t%Gr===qr?Wr:function(t){if(t<BigInt(3))throw new Error("sqrt is not defined for small field");let e=t-Lr,n=0;for(;e%zr===Ur;)e/=zr,n++;let r=zr;const a=ta(t);for(;1===Qr(a,r);)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return Hr;let i=a.pow(r,e);const s=(e+Lr)/zr;return function(t,r){if(t.is0(r))return r;if(1!==Qr(t,r))throw new Error("Cannot find square root");let a=n,o=t.mul(t.ONE,i),c=t.pow(r,e),u=t.pow(r,s);for(;!t.eql(c,t.ONE);){if(t.is0(c))return t.ZERO;let e=1,n=t.sqr(c);for(;!t.eql(n,t.ONE);)if(e++,n=t.sqr(n),e===a)throw new Error("Cannot find square root");const r=Lr<<BigInt(a-e-1),i=t.pow(o,r);a=e,o=t.sqr(i),c=t.mul(c,o),u=t.mul(u,i)}return u}}(t)}const Yr=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function $r(t,e,n=!1){const r=new Array(e.length).fill(n?t.ZERO:void 0),a=e.reduce((e,n,a)=>t.is0(n)?e:(r[a]=e,t.mul(e,n)),t.ONE),i=t.inv(a);return e.reduceRight((e,n,a)=>t.is0(n)?e:(r[a]=t.mul(e,r[a]),t.mul(e,n)),i),r}function Qr(t,e){const n=(t.ORDER-Lr)/zr,r=t.pow(e,n),a=t.eql(r,t.ONE),i=t.eql(r,t.ZERO),s=t.eql(r,t.neg(t.ONE));if(!a&&!i&&!s)throw new Error("invalid Legendre symbol result");return a?1:i?0:-1}function Xr(t,e){void 0!==e&&un(e);const n=void 0!==e?e:t.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function ta(t,e,n=!1,r={}){if(t<=Ur)throw new Error("invalid field: expected ORDER > 0, got "+t);const{nBitLength:a,nByteLength:i}=Xr(t,e);if(i>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let s;const o=Object.freeze({ORDER:t,isLE:n,BITS:a,BYTES:i,MASK:Br(a),ZERO:Ur,ONE:Lr,create:e=>Kr(e,t),isValid:e=>{if("bigint"!=typeof e)throw new Error("invalid field element: expected bigint, got "+typeof e);return Ur<=e&&e<t},is0:t=>t===Ur,isOdd:t=>(t&Lr)===Lr,neg:e=>Kr(-e,t),eql:(t,e)=>t===e,sqr:e=>Kr(e*e,t),add:(e,n)=>Kr(e+n,t),sub:(e,n)=>Kr(e-n,t),mul:(e,n)=>Kr(e*n,t),pow:(t,e)=>function(t,e,n){if(n<Ur)throw new Error("invalid exponent, negatives unsupported");if(n===Ur)return t.ONE;if(n===Lr)return e;let r=t.ONE,a=e;for(;n>Ur;)n&Lr&&(r=t.mul(r,a)),a=t.sqr(a),n>>=Lr;return r}(o,t,e),div:(e,n)=>Kr(e*Zr(n,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>Zr(e,t),sqrt:r.sqrt||(e=>(s||(s=Jr(t)),s(o,e))),toBytes:t=>n?Er(t,i):Ir(t,i),fromBytes:t=>{if(t.length!==i)throw new Error("Field.fromBytes: expected "+i+" bytes, got "+t.length);return n?Ar(t):kr(t)},invertBatch:t=>$r(o,t),cmov:(t,e,n)=>n?e:t});return Object.freeze(o)}function ea(t){if("bigint"!=typeof t)throw new Error("field order must be bigint");const e=t.toString(2).length;return Math.ceil(e/8)}function na(t){const e=ea(t);return e+Math.ceil(e/2)}
|
|
5
13
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
6
|
-
const
|
|
14
|
+
const ra=BigInt(0),aa=BigInt(1);function ia(t,e){const n=e.negate();return t?n:e}function sa(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+t)}function oa(t,e){sa(t,e);const n=2**t;return{windows:Math.ceil(e/t)+1,windowSize:2**(t-1),mask:Br(t),maxNumber:n,shiftBy:BigInt(t)}}function ca(t,e,n){const{windowSize:r,mask:a,maxNumber:i,shiftBy:s}=n;let o=Number(t&a),c=t>>s;o>r&&(o-=i,c+=aa);const u=e*r;return{nextN:c,offset:u+Math.abs(o)-1,isZero:0===o,isNeg:o<0,isNegF:e%2!=0,offsetF:u}}const ua=new WeakMap,da=new WeakMap;function la(t){return da.get(t)||1}function fa(t,e){return{constTimeNegate:ia,hasPrecomputes:t=>1!==la(t),unsafeLadder(e,n,r=t.ZERO){let a=e;for(;n>ra;)n&aa&&(r=r.add(a)),a=a.double(),n>>=aa;return r},precomputeWindow(t,n){const{windows:r,windowSize:a}=oa(n,e),i=[];let s=t,o=s;for(let t=0;t<r;t++){o=s,i.push(o);for(let t=1;t<a;t++)o=o.add(s),i.push(o);s=o.double()}return i},wNAF(n,r,a){let i=t.ZERO,s=t.BASE;const o=oa(n,e);for(let t=0;t<o.windows;t++){const{nextN:e,offset:n,isZero:c,isNeg:u,isNegF:d,offsetF:l}=ca(a,t,o);a=e,c?s=s.add(ia(d,r[l])):i=i.add(ia(u,r[n]))}return{p:i,f:s}},wNAFUnsafe(n,r,a,i=t.ZERO){const s=oa(n,e);for(let t=0;t<s.windows&&a!==ra;t++){const{nextN:e,offset:n,isZero:o,isNeg:c}=ca(a,t,s);if(a=e,!o){const t=r[n];i=i.add(c?t.negate():t)}}return i},getPrecomputes(t,e,n){let r=ua.get(e);return r||(r=this.precomputeWindow(e,t),1!==t&&ua.set(e,n(r))),r},wNAFCached(t,e,n){const r=la(t);return this.wNAF(r,this.getPrecomputes(r,t,n),e)},wNAFCachedUnsafe(t,e,n,r){const a=la(t);return 1===a?this.unsafeLadder(t,e,r):this.wNAFUnsafe(a,this.getPrecomputes(a,t,n),e,r)},setWindowSize(t,n){sa(n,e),da.set(t,n),ua.delete(t)}}}function ha(t,e,n,r){!function(t,e){if(!Array.isArray(t))throw new Error("array expected");t.forEach((t,n)=>{if(!(t instanceof e))throw new Error("invalid point at index "+n)})}(n,t),function(t,e){if(!Array.isArray(t))throw new Error("array of scalars expected");t.forEach((t,n)=>{if(!e.isValid(t))throw new Error("invalid scalar at index "+n)})}(r,e);const a=n.length,i=r.length;if(a!==i)throw new Error("arrays of points and scalars must have equal length");const s=t.ZERO,o=function(t){let e;for(e=0;t>ar;t>>=ir,e+=1);return e}(BigInt(a));let c=1;o>12?c=o-3:o>4?c=o-2:o>0&&(c=2);const u=Br(c),d=new Array(Number(u)+1).fill(s);let l=s;for(let t=Math.floor((e.BITS-1)/c)*c;t>=0;t-=c){d.fill(s);for(let e=0;e<i;e++){const a=r[e],i=Number(a>>BigInt(t)&u);d[i]=d[i].add(n[e])}let e=s;for(let t=d.length-1,n=s;t>0;t--)n=n.add(d[t]),e=e.add(n);if(l=l.add(e),0!==t)for(let t=0;t<c;t++)l=l.double()}return l}function pa(t){return jr(t.Fp,Yr.reduce((t,e)=>(t[e]="function",t),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),jr(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...Xr(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}
|
|
15
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ma=BigInt(0),ya=BigInt(1),ga=BigInt(2),ba=BigInt(8),va={zip215:!0};function wa(t){const e=function(t){const e=pa(t);return jr(t,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...e})}(t),{Fp:n,n:r,prehash:a,hash:i,randomBytes:s,nByteLength:o,h:c}=e,u=ga<<BigInt(8*o)-ya,d=n.create,l=ta(e.n,e.nBitLength);if(!function(t,r){const a=n.sqr(t),i=n.sqr(r),s=n.add(n.mul(e.a,a),i),o=n.add(n.ONE,n.mul(e.d,n.mul(a,i)));return n.eql(s,o)}(e.Gx,e.Gy))throw new Error("bad curve params: generator point");const f=e.uvRatio||((t,e)=>{try{return{isValid:!0,value:n.sqrt(t*n.inv(e))}}catch(t){return{isValid:!1,value:ma}}}),h=e.adjustScalarBytes||(t=>t),p=e.domain||((t,e,n)=>{if(cr("phflag",n),e.length||n)throw new Error("Contexts/pre-hash are not supported");return t});function m(t,e,n=!1){Tr("coordinate "+t,e,n?ya:ma,u)}function y(t){if(!(t instanceof v))throw new Error("ExtendedPoint expected")}const g=Rr((t,e)=>{const{ex:r,ey:a,ez:i}=t,s=t.is0();null==e&&(e=s?ba:n.inv(i));const o=d(r*e),c=d(a*e),u=d(i*e);if(s)return{x:ma,y:ya};if(u!==ya)throw new Error("invZ was invalid");return{x:o,y:c}}),b=Rr(t=>{const{a:n,d:r}=e;if(t.is0())throw new Error("bad point: ZERO");const{ex:a,ey:i,ez:s,et:o}=t,c=d(a*a),u=d(i*i),l=d(s*s),f=d(l*l),h=d(c*n);if(d(l*d(h+u))!==d(f+d(r*d(c*u))))throw new Error("bad point: equation left != right (1)");if(d(a*i)!==d(s*o))throw new Error("bad point: equation left != right (2)");return!0});class v{constructor(t,e,n,r){m("x",t),m("y",e),m("z",n,!0),m("t",r),this.ex=t,this.ey=e,this.ez=n,this.et=r,Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(t){if(t instanceof v)throw new Error("extended point not allowed");const{x:e,y:n}=t||{};return m("x",e),m("y",n),new v(e,n,ya,d(e*n))}static normalizeZ(t){const e=$r(n,t.map(t=>t.ez));return t.map((t,n)=>t.toAffine(e[n])).map(v.fromAffine)}static msm(t,e){return ha(v,l,t,e)}_setWindowSize(t){k.setWindowSize(this,t)}assertValidity(){b(this)}equals(t){y(t);const{ex:e,ey:n,ez:r}=this,{ex:a,ey:i,ez:s}=t,o=d(e*s),c=d(a*r),u=d(n*s),l=d(i*r);return o===c&&u===l}is0(){return this.equals(v.ZERO)}negate(){return new v(d(-this.ex),this.ey,this.ez,d(-this.et))}double(){const{a:t}=e,{ex:n,ey:r,ez:a}=this,i=d(n*n),s=d(r*r),o=d(ga*d(a*a)),c=d(t*i),u=n+r,l=d(d(u*u)-i-s),f=c+s,h=f-o,p=c-s,m=d(l*h),y=d(f*p),g=d(l*p),b=d(h*f);return new v(m,y,b,g)}add(t){y(t);const{a:n,d:r}=e,{ex:a,ey:i,ez:s,et:o}=this,{ex:c,ey:u,ez:l,et:f}=t,h=d(a*c),p=d(i*u),m=d(o*r*f),g=d(s*l),b=d((a+i)*(c+u)-h-p),w=g-m,x=g+m,k=d(p-n*h),A=d(b*w),I=d(x*k),E=d(b*k),P=d(w*x);return new v(A,I,P,E)}subtract(t){return this.add(t.negate())}wNAF(t){return k.wNAFCached(this,t,v.normalizeZ)}multiply(t){const e=t;Tr("scalar",e,ya,r);const{p:n,f:a}=this.wNAF(e);return v.normalizeZ([n,a])[0]}multiplyUnsafe(t,e=v.ZERO){const n=t;return Tr("scalar",n,ma,r),n===ma?x:this.is0()||n===ya?this:k.wNAFCachedUnsafe(this,n,v.normalizeZ,e)}isSmallOrder(){return this.multiplyUnsafe(c).is0()}isTorsionFree(){return k.unsafeLadder(this,r).is0()}toAffine(t){return g(this,t)}clearCofactor(){const{h:t}=e;return t===ya?this:this.multiplyUnsafe(t)}static fromHex(t,r=!1){const{d:a,a:i}=e,s=n.BYTES;t=Pr("pointHex",t,s),cr("zip215",r);const o=t.slice(),c=t[s-1];o[s-1]=-129&c;const l=Ar(o),h=r?u:n.ORDER;Tr("pointHex.y",l,ma,h);const p=d(l*l),m=d(p-ya),y=d(a*p-i);let{isValid:g,value:b}=f(m,y);if(!g)throw new Error("Point.fromHex: invalid y coordinate");const w=(b&ya)===ya,x=!!(128&c);if(!r&&b===ma&&x)throw new Error("Point.fromHex: x=0 and x_0=1");return x!==w&&(b=d(-b)),v.fromAffine({x:b,y:l})}static fromPrivateKey(t){const{scalar:e}=E(t);return w.multiply(e)}toRawBytes(){const{x:t,y:e}=this.toAffine(),r=Er(e,n.BYTES);return r[r.length-1]|=t&ya?128:0,r}toHex(){return hr(this.toRawBytes())}}v.BASE=new v(e.Gx,e.Gy,ya,d(e.Gx*e.Gy)),v.ZERO=new v(ma,ya,ya,ma);const{BASE:w,ZERO:x}=v,k=fa(v,8*o);function A(t){return Kr(t,r)}function I(t){return A(Ar(t))}function E(t){const e=n.BYTES;t=Pr("private key",t,e);const r=Pr("hashed private key",i(t),2*e),a=h(r.slice(0,e));return{head:a,prefix:r.slice(e,2*e),scalar:I(a)}}function P(t){const{head:e,prefix:n,scalar:r}=E(t),a=w.multiply(r),i=a.toRawBytes();return{head:e,prefix:n,scalar:r,point:a,pointBytes:i}}function S(t=Uint8Array.of(),...e){const n=Sr(...e);return I(i(p(n,Pr("context",t),!!a)))}const _=va;w._setWindowSize(8);return{CURVE:e,getPublicKey:function(t){return P(t).pointBytes},sign:function(t,e,i={}){t=Pr("message",t),a&&(t=a(t));const{prefix:s,scalar:o,pointBytes:c}=P(e),u=S(i.context,s,t),d=w.multiply(u).toRawBytes(),l=A(u+S(i.context,d,c,t)*o);return Tr("signature.s",l,ma,r),Pr("result",Sr(d,Er(l,n.BYTES)),2*n.BYTES)},verify:function(t,e,r,i=_){const{context:s,zip215:o}=i,c=n.BYTES;t=Pr("signature",t,2*c),e=Pr("message",e),r=Pr("publicKey",r,c),void 0!==o&&cr("zip215",o),a&&(e=a(e));const u=Ar(t.slice(c,2*c));let d,l,f;try{d=v.fromHex(r,o),l=v.fromHex(t.slice(0,c),o),f=w.multiplyUnsafe(u)}catch(t){return!1}if(!o&&d.isSmallOrder())return!1;const h=S(s,l.toRawBytes(),d.toRawBytes(),e);return l.add(d.multiplyUnsafe(h)).subtract(f).clearCofactor().equals(v.ZERO)},ExtendedPoint:v,utils:{getExtendedPublicKey:P,randomPrivateKey:()=>s(n.BYTES),precompute:(t=8,e=v.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)}}}
|
|
16
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const xa=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),ka=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const Aa=BigInt(1),Ia=BigInt(2);BigInt(3);const Ea=BigInt(5),Pa=BigInt(8);function Sa(t){return t[0]&=248,t[31]&=127,t[31]|=64,t}function _a(t,e){const n=xa,r=Kr(e*e*e,n),a=function(t){const e=BigInt(10),n=BigInt(20),r=BigInt(40),a=BigInt(80),i=xa,s=t*t%i*t%i,o=Vr(s,Ia,i)*s%i,c=Vr(o,Aa,i)*t%i,u=Vr(c,Ea,i)*c%i,d=Vr(u,e,i)*u%i,l=Vr(d,n,i)*d%i,f=Vr(l,r,i)*l%i,h=Vr(f,a,i)*f%i,p=Vr(h,a,i)*f%i,m=Vr(p,e,i)*u%i;return{pow_p_5_8:Vr(m,Ia,i)*t%i,b2:s}}(t*Kr(r*r*e,n)).pow_p_5_8;let i=Kr(t*r*a,n);const s=Kr(e*i*i,n),o=i,c=Kr(i*ka,n),u=s===t,d=s===Kr(-t,n),l=s===Kr(-t*ka,n);return u&&(i=o),(d||l)&&(i=c),(Kr(i,n)&Lr)===Lr&&(i=Kr(-i,n)),{isValid:u||d,value:i}}const Oa=(()=>ta(xa,void 0,!0))(),Ta=(()=>({a:Oa.create(BigInt(-1)),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:Oa,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:Pa,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:nr,randomBytes:xn,adjustScalarBytes:Sa,uvRatio:_a}))(),Ba=(()=>wa(Ta))();var Ma={exports:{}},Ca=k(Object.freeze({__proto__:null,default:{}}));!function(t){!function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function a(t,e,n){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var i;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{i="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:Ca.Buffer}catch(t){}function s(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function o(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function c(t,e,r,a){for(var i=0,s=0,o=Math.min(t.length,r),c=e;c<o;c++){var u=t.charCodeAt(c)-48;i*=a,s=u>=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&s<a,"Invalid character"),i+=s}return i}function u(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)>0?t:e},a.min=function(t,e){return t.cmp(e)<0?t:e},a.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var a=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(a++,this.negative=1),a<t.length&&(16===e?this._parseHex(t,a,r):(this._parseBase(t,e,a),"le"===r&&this._initArray(this.toArray(),e,r)))},a.prototype._initNumber=function(t,e,r){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(n(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),e,r)},a.prototype._initArray=function(t,e,r){if(n("number"==typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var a=0;a<this.length;a++)this.words[a]=0;var i,s,o=0;if("be"===r)for(a=t.length-1,i=0;a>=0;a-=3)s=t[a]|t[a-1]<<8|t[a-2]<<16,this.words[i]|=s<<o&67108863,this.words[i+1]=s>>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);else if("le"===r)for(a=0,i=0;a<t.length;a+=3)s=t[a]|t[a+1]<<8|t[a+2]<<16,this.words[i]|=s<<o&67108863,this.words[i+1]=s>>>26-o&67108863,(o+=24)>=26&&(o-=26,i++);return this._strip()},a.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var a,i=0,s=0;if("be"===n)for(r=t.length-1;r>=e;r-=2)a=o(t,e,r)<<i,this.words[s]|=67108863&a,i>=18?(i-=18,s+=1,this.words[s]|=a>>>26):i+=8;else for(r=(t.length-e)%2==0?e+1:e;r<t.length;r+=2)a=o(t,e,r)<<i,this.words[s]|=67108863&a,i>=18?(i-=18,s+=1,this.words[s]|=a>>>26):i+=8;this._strip()},a.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,a=1;a<=67108863;a*=e)r++;r--,a=a/e|0;for(var i=t.length-n,s=i%r,o=Math.min(i,i-s)+n,u=0,d=n;d<o;d+=r)u=c(t,d,d+r,e),this.imuln(a),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==s){var l=1;for(u=c(t,d,t.length,e),d=0;d<s;d++)l*=e;this.imuln(l),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},a.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype._move=function(t){u(t,this)},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},a.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=d}catch(t){a.prototype.inspect=d}else a.prototype.inspect=d;function d(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var a=0,i=0,s=0;s<this.length;s++){var o=this.words[s],c=(16777215&(o<<a|i)).toString(16);i=o>>>24-a&16777215,(a+=2)>=26&&(a-=26,s--),r=0!==i||s!==this.length-1?l[6-c.length]+c+r:c+r}for(0!==i&&(r=i.toString(16)+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var u=f[t],d=h[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(d).toString(t);r=(p=p.idivn(d)).isZero()?m+r:l[u-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%e!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16,2)},i&&(a.prototype.toBuffer=function(t,e){return this.toArrayLike(i,t,e)}),a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var a=0|t.words[0],i=0|e.words[0],s=a*i,o=67108863&s,c=s/67108864|0;n.words[0]=o;for(var u=1;u<r;u++){for(var d=c>>>26,l=67108863&c,f=Math.min(u,e.length-1),h=Math.max(0,u-t.length+1);h<=f;h++){var p=u-h|0;d+=(s=(a=0|t.words[p])*(i=0|e.words[h])+l)/67108864|0,l=67108863&s}n.words[u]=0|l,c=0|d}return 0!==c?n.words[u]=0|c:n.length--,n._strip()}a.prototype.toArrayLike=function(t,e,r){this._strip();var a=this.byteLength(),i=r||Math.max(1,a);n(a<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0");var s=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,i);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,a),s},a.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,a=0,i=0;a<this.length;a++){var s=this.words[a]<<i|r;t[n++]=255&s,n<t.length&&(t[n++]=s>>8&255),n<t.length&&(t[n++]=s>>16&255),6===i?(n<t.length&&(t[n++]=s>>24&255),r=0,i=0):(r=s>>>24,i+=2)}if(n<t.length)for(t[n++]=r;n<t.length;)t[n++]=0},a.prototype._toArrayLikeBE=function(t,e){for(var n=t.length-1,r=0,a=0,i=0;a<this.length;a++){var s=this.words[a]<<i|r;t[n--]=255&s,n>=0&&(t[n--]=s>>8&255),n>=0&&(t[n--]=s>>16&255),6===i?(n>=0&&(t[n--]=s>>24&255),r=0,i=0):(r=s>>>24,i+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 8191&e||(n+=13,e>>>=13),127&e||(n+=7,e>>>=7),15&e||(n+=4,e>>>=4),3&e||(n+=2,e>>>=2),1&e||n++,n},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},a.prototype.ior=function(t){return n(0===(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this._strip()},a.prototype.iand=function(t){return n(0===(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;r<n.length;r++)this.words[r]=e.words[r]^n.words[r];if(this!==e)for(;r<e.length;r++)this.words[r]=e.words[r];return this.length=e.length,this._strip()},a.prototype.ixor=function(t){return n(0===(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var a=0;a<e;a++)this.words[a]=67108863&~this.words[a];return r>0&&(this.words[a]=~this.words[a]&67108863>>26-r),this._strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,a=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<<a:this.words[r]&~(1<<a),this._strip()},a.prototype.iadd=function(t){var e,n,r;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,r=t):(n=t,r=this);for(var a=0,i=0;i<r.length;i++)e=(0|n.words[i])+(0|r.words[i])+a,this.words[i]=67108863&e,a=e>>>26;for(;0!==a&&i<n.length;i++)e=(0|n.words[i])+a,this.words[i]=67108863&e,a=e>>>26;if(this.length=n.length,0!==a)this.words[this.length]=a,this.length++;else if(n!==this)for(;i<n.length;i++)this.words[i]=n.words[i];return this},a.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,a=this.cmp(t);if(0===a)return this.negative=0,this.length=1,this.words[0]=0,this;a>0?(n=this,r=t):(n=t,r=this);for(var i=0,s=0;s<r.length;s++)i=(e=(0|n.words[s])-(0|r.words[s])+i)>>26,this.words[s]=67108863&e;for(;0!==i&&s<n.length;s++)i=(e=(0|n.words[s])+i)>>26,this.words[s]=67108863&e;if(0===i&&s<n.length&&n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this.length=Math.max(this.length,s),n!==this&&(this.negative=1),this._strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,n){var r,a,i,s=t.words,o=e.words,c=n.words,u=0,d=0|s[0],l=8191&d,f=d>>>13,h=0|s[1],p=8191&h,m=h>>>13,y=0|s[2],g=8191&y,b=y>>>13,v=0|s[3],w=8191&v,x=v>>>13,k=0|s[4],A=8191&k,I=k>>>13,E=0|s[5],P=8191&E,S=E>>>13,_=0|s[6],O=8191&_,T=_>>>13,B=0|s[7],M=8191&B,C=B>>>13,N=0|s[8],j=8191&N,R=N>>>13,U=0|s[9],L=8191&U,z=U>>>13,F=0|o[0],D=8191&F,q=F>>>13,G=0|o[1],K=8191&G,V=G>>>13,Z=0|o[2],H=8191&Z,W=Z>>>13,J=0|o[3],Y=8191&J,$=J>>>13,Q=0|o[4],X=8191&Q,tt=Q>>>13,et=0|o[5],nt=8191&et,rt=et>>>13,at=0|o[6],it=8191&at,st=at>>>13,ot=0|o[7],ct=8191&ot,ut=ot>>>13,dt=0|o[8],lt=8191&dt,ft=dt>>>13,ht=0|o[9],pt=8191&ht,mt=ht>>>13;n.negative=t.negative^e.negative,n.length=19;var yt=(u+(r=Math.imul(l,D))|0)+((8191&(a=(a=Math.imul(l,q))+Math.imul(f,D)|0))<<13)|0;u=((i=Math.imul(f,q))+(a>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(p,D),a=(a=Math.imul(p,q))+Math.imul(m,D)|0,i=Math.imul(m,q);var gt=(u+(r=r+Math.imul(l,K)|0)|0)+((8191&(a=(a=a+Math.imul(l,V)|0)+Math.imul(f,K)|0))<<13)|0;u=((i=i+Math.imul(f,V)|0)+(a>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,D),a=(a=Math.imul(g,q))+Math.imul(b,D)|0,i=Math.imul(b,q),r=r+Math.imul(p,K)|0,a=(a=a+Math.imul(p,V)|0)+Math.imul(m,K)|0,i=i+Math.imul(m,V)|0;var bt=(u+(r=r+Math.imul(l,H)|0)|0)+((8191&(a=(a=a+Math.imul(l,W)|0)+Math.imul(f,H)|0))<<13)|0;u=((i=i+Math.imul(f,W)|0)+(a>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(w,D),a=(a=Math.imul(w,q))+Math.imul(x,D)|0,i=Math.imul(x,q),r=r+Math.imul(g,K)|0,a=(a=a+Math.imul(g,V)|0)+Math.imul(b,K)|0,i=i+Math.imul(b,V)|0,r=r+Math.imul(p,H)|0,a=(a=a+Math.imul(p,W)|0)+Math.imul(m,H)|0,i=i+Math.imul(m,W)|0;var vt=(u+(r=r+Math.imul(l,Y)|0)|0)+((8191&(a=(a=a+Math.imul(l,$)|0)+Math.imul(f,Y)|0))<<13)|0;u=((i=i+Math.imul(f,$)|0)+(a>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(A,D),a=(a=Math.imul(A,q))+Math.imul(I,D)|0,i=Math.imul(I,q),r=r+Math.imul(w,K)|0,a=(a=a+Math.imul(w,V)|0)+Math.imul(x,K)|0,i=i+Math.imul(x,V)|0,r=r+Math.imul(g,H)|0,a=(a=a+Math.imul(g,W)|0)+Math.imul(b,H)|0,i=i+Math.imul(b,W)|0,r=r+Math.imul(p,Y)|0,a=(a=a+Math.imul(p,$)|0)+Math.imul(m,Y)|0,i=i+Math.imul(m,$)|0;var wt=(u+(r=r+Math.imul(l,X)|0)|0)+((8191&(a=(a=a+Math.imul(l,tt)|0)+Math.imul(f,X)|0))<<13)|0;u=((i=i+Math.imul(f,tt)|0)+(a>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(P,D),a=(a=Math.imul(P,q))+Math.imul(S,D)|0,i=Math.imul(S,q),r=r+Math.imul(A,K)|0,a=(a=a+Math.imul(A,V)|0)+Math.imul(I,K)|0,i=i+Math.imul(I,V)|0,r=r+Math.imul(w,H)|0,a=(a=a+Math.imul(w,W)|0)+Math.imul(x,H)|0,i=i+Math.imul(x,W)|0,r=r+Math.imul(g,Y)|0,a=(a=a+Math.imul(g,$)|0)+Math.imul(b,Y)|0,i=i+Math.imul(b,$)|0,r=r+Math.imul(p,X)|0,a=(a=a+Math.imul(p,tt)|0)+Math.imul(m,X)|0,i=i+Math.imul(m,tt)|0;var xt=(u+(r=r+Math.imul(l,nt)|0)|0)+((8191&(a=(a=a+Math.imul(l,rt)|0)+Math.imul(f,nt)|0))<<13)|0;u=((i=i+Math.imul(f,rt)|0)+(a>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(O,D),a=(a=Math.imul(O,q))+Math.imul(T,D)|0,i=Math.imul(T,q),r=r+Math.imul(P,K)|0,a=(a=a+Math.imul(P,V)|0)+Math.imul(S,K)|0,i=i+Math.imul(S,V)|0,r=r+Math.imul(A,H)|0,a=(a=a+Math.imul(A,W)|0)+Math.imul(I,H)|0,i=i+Math.imul(I,W)|0,r=r+Math.imul(w,Y)|0,a=(a=a+Math.imul(w,$)|0)+Math.imul(x,Y)|0,i=i+Math.imul(x,$)|0,r=r+Math.imul(g,X)|0,a=(a=a+Math.imul(g,tt)|0)+Math.imul(b,X)|0,i=i+Math.imul(b,tt)|0,r=r+Math.imul(p,nt)|0,a=(a=a+Math.imul(p,rt)|0)+Math.imul(m,nt)|0,i=i+Math.imul(m,rt)|0;var kt=(u+(r=r+Math.imul(l,it)|0)|0)+((8191&(a=(a=a+Math.imul(l,st)|0)+Math.imul(f,it)|0))<<13)|0;u=((i=i+Math.imul(f,st)|0)+(a>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(M,D),a=(a=Math.imul(M,q))+Math.imul(C,D)|0,i=Math.imul(C,q),r=r+Math.imul(O,K)|0,a=(a=a+Math.imul(O,V)|0)+Math.imul(T,K)|0,i=i+Math.imul(T,V)|0,r=r+Math.imul(P,H)|0,a=(a=a+Math.imul(P,W)|0)+Math.imul(S,H)|0,i=i+Math.imul(S,W)|0,r=r+Math.imul(A,Y)|0,a=(a=a+Math.imul(A,$)|0)+Math.imul(I,Y)|0,i=i+Math.imul(I,$)|0,r=r+Math.imul(w,X)|0,a=(a=a+Math.imul(w,tt)|0)+Math.imul(x,X)|0,i=i+Math.imul(x,tt)|0,r=r+Math.imul(g,nt)|0,a=(a=a+Math.imul(g,rt)|0)+Math.imul(b,nt)|0,i=i+Math.imul(b,rt)|0,r=r+Math.imul(p,it)|0,a=(a=a+Math.imul(p,st)|0)+Math.imul(m,it)|0,i=i+Math.imul(m,st)|0;var At=(u+(r=r+Math.imul(l,ct)|0)|0)+((8191&(a=(a=a+Math.imul(l,ut)|0)+Math.imul(f,ct)|0))<<13)|0;u=((i=i+Math.imul(f,ut)|0)+(a>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(j,D),a=(a=Math.imul(j,q))+Math.imul(R,D)|0,i=Math.imul(R,q),r=r+Math.imul(M,K)|0,a=(a=a+Math.imul(M,V)|0)+Math.imul(C,K)|0,i=i+Math.imul(C,V)|0,r=r+Math.imul(O,H)|0,a=(a=a+Math.imul(O,W)|0)+Math.imul(T,H)|0,i=i+Math.imul(T,W)|0,r=r+Math.imul(P,Y)|0,a=(a=a+Math.imul(P,$)|0)+Math.imul(S,Y)|0,i=i+Math.imul(S,$)|0,r=r+Math.imul(A,X)|0,a=(a=a+Math.imul(A,tt)|0)+Math.imul(I,X)|0,i=i+Math.imul(I,tt)|0,r=r+Math.imul(w,nt)|0,a=(a=a+Math.imul(w,rt)|0)+Math.imul(x,nt)|0,i=i+Math.imul(x,rt)|0,r=r+Math.imul(g,it)|0,a=(a=a+Math.imul(g,st)|0)+Math.imul(b,it)|0,i=i+Math.imul(b,st)|0,r=r+Math.imul(p,ct)|0,a=(a=a+Math.imul(p,ut)|0)+Math.imul(m,ct)|0,i=i+Math.imul(m,ut)|0;var It=(u+(r=r+Math.imul(l,lt)|0)|0)+((8191&(a=(a=a+Math.imul(l,ft)|0)+Math.imul(f,lt)|0))<<13)|0;u=((i=i+Math.imul(f,ft)|0)+(a>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(L,D),a=(a=Math.imul(L,q))+Math.imul(z,D)|0,i=Math.imul(z,q),r=r+Math.imul(j,K)|0,a=(a=a+Math.imul(j,V)|0)+Math.imul(R,K)|0,i=i+Math.imul(R,V)|0,r=r+Math.imul(M,H)|0,a=(a=a+Math.imul(M,W)|0)+Math.imul(C,H)|0,i=i+Math.imul(C,W)|0,r=r+Math.imul(O,Y)|0,a=(a=a+Math.imul(O,$)|0)+Math.imul(T,Y)|0,i=i+Math.imul(T,$)|0,r=r+Math.imul(P,X)|0,a=(a=a+Math.imul(P,tt)|0)+Math.imul(S,X)|0,i=i+Math.imul(S,tt)|0,r=r+Math.imul(A,nt)|0,a=(a=a+Math.imul(A,rt)|0)+Math.imul(I,nt)|0,i=i+Math.imul(I,rt)|0,r=r+Math.imul(w,it)|0,a=(a=a+Math.imul(w,st)|0)+Math.imul(x,it)|0,i=i+Math.imul(x,st)|0,r=r+Math.imul(g,ct)|0,a=(a=a+Math.imul(g,ut)|0)+Math.imul(b,ct)|0,i=i+Math.imul(b,ut)|0,r=r+Math.imul(p,lt)|0,a=(a=a+Math.imul(p,ft)|0)+Math.imul(m,lt)|0,i=i+Math.imul(m,ft)|0;var Et=(u+(r=r+Math.imul(l,pt)|0)|0)+((8191&(a=(a=a+Math.imul(l,mt)|0)+Math.imul(f,pt)|0))<<13)|0;u=((i=i+Math.imul(f,mt)|0)+(a>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(L,K),a=(a=Math.imul(L,V))+Math.imul(z,K)|0,i=Math.imul(z,V),r=r+Math.imul(j,H)|0,a=(a=a+Math.imul(j,W)|0)+Math.imul(R,H)|0,i=i+Math.imul(R,W)|0,r=r+Math.imul(M,Y)|0,a=(a=a+Math.imul(M,$)|0)+Math.imul(C,Y)|0,i=i+Math.imul(C,$)|0,r=r+Math.imul(O,X)|0,a=(a=a+Math.imul(O,tt)|0)+Math.imul(T,X)|0,i=i+Math.imul(T,tt)|0,r=r+Math.imul(P,nt)|0,a=(a=a+Math.imul(P,rt)|0)+Math.imul(S,nt)|0,i=i+Math.imul(S,rt)|0,r=r+Math.imul(A,it)|0,a=(a=a+Math.imul(A,st)|0)+Math.imul(I,it)|0,i=i+Math.imul(I,st)|0,r=r+Math.imul(w,ct)|0,a=(a=a+Math.imul(w,ut)|0)+Math.imul(x,ct)|0,i=i+Math.imul(x,ut)|0,r=r+Math.imul(g,lt)|0,a=(a=a+Math.imul(g,ft)|0)+Math.imul(b,lt)|0,i=i+Math.imul(b,ft)|0;var Pt=(u+(r=r+Math.imul(p,pt)|0)|0)+((8191&(a=(a=a+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;u=((i=i+Math.imul(m,mt)|0)+(a>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,r=Math.imul(L,H),a=(a=Math.imul(L,W))+Math.imul(z,H)|0,i=Math.imul(z,W),r=r+Math.imul(j,Y)|0,a=(a=a+Math.imul(j,$)|0)+Math.imul(R,Y)|0,i=i+Math.imul(R,$)|0,r=r+Math.imul(M,X)|0,a=(a=a+Math.imul(M,tt)|0)+Math.imul(C,X)|0,i=i+Math.imul(C,tt)|0,r=r+Math.imul(O,nt)|0,a=(a=a+Math.imul(O,rt)|0)+Math.imul(T,nt)|0,i=i+Math.imul(T,rt)|0,r=r+Math.imul(P,it)|0,a=(a=a+Math.imul(P,st)|0)+Math.imul(S,it)|0,i=i+Math.imul(S,st)|0,r=r+Math.imul(A,ct)|0,a=(a=a+Math.imul(A,ut)|0)+Math.imul(I,ct)|0,i=i+Math.imul(I,ut)|0,r=r+Math.imul(w,lt)|0,a=(a=a+Math.imul(w,ft)|0)+Math.imul(x,lt)|0,i=i+Math.imul(x,ft)|0;var St=(u+(r=r+Math.imul(g,pt)|0)|0)+((8191&(a=(a=a+Math.imul(g,mt)|0)+Math.imul(b,pt)|0))<<13)|0;u=((i=i+Math.imul(b,mt)|0)+(a>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(L,Y),a=(a=Math.imul(L,$))+Math.imul(z,Y)|0,i=Math.imul(z,$),r=r+Math.imul(j,X)|0,a=(a=a+Math.imul(j,tt)|0)+Math.imul(R,X)|0,i=i+Math.imul(R,tt)|0,r=r+Math.imul(M,nt)|0,a=(a=a+Math.imul(M,rt)|0)+Math.imul(C,nt)|0,i=i+Math.imul(C,rt)|0,r=r+Math.imul(O,it)|0,a=(a=a+Math.imul(O,st)|0)+Math.imul(T,it)|0,i=i+Math.imul(T,st)|0,r=r+Math.imul(P,ct)|0,a=(a=a+Math.imul(P,ut)|0)+Math.imul(S,ct)|0,i=i+Math.imul(S,ut)|0,r=r+Math.imul(A,lt)|0,a=(a=a+Math.imul(A,ft)|0)+Math.imul(I,lt)|0,i=i+Math.imul(I,ft)|0;var _t=(u+(r=r+Math.imul(w,pt)|0)|0)+((8191&(a=(a=a+Math.imul(w,mt)|0)+Math.imul(x,pt)|0))<<13)|0;u=((i=i+Math.imul(x,mt)|0)+(a>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(L,X),a=(a=Math.imul(L,tt))+Math.imul(z,X)|0,i=Math.imul(z,tt),r=r+Math.imul(j,nt)|0,a=(a=a+Math.imul(j,rt)|0)+Math.imul(R,nt)|0,i=i+Math.imul(R,rt)|0,r=r+Math.imul(M,it)|0,a=(a=a+Math.imul(M,st)|0)+Math.imul(C,it)|0,i=i+Math.imul(C,st)|0,r=r+Math.imul(O,ct)|0,a=(a=a+Math.imul(O,ut)|0)+Math.imul(T,ct)|0,i=i+Math.imul(T,ut)|0,r=r+Math.imul(P,lt)|0,a=(a=a+Math.imul(P,ft)|0)+Math.imul(S,lt)|0,i=i+Math.imul(S,ft)|0;var Ot=(u+(r=r+Math.imul(A,pt)|0)|0)+((8191&(a=(a=a+Math.imul(A,mt)|0)+Math.imul(I,pt)|0))<<13)|0;u=((i=i+Math.imul(I,mt)|0)+(a>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul(L,nt),a=(a=Math.imul(L,rt))+Math.imul(z,nt)|0,i=Math.imul(z,rt),r=r+Math.imul(j,it)|0,a=(a=a+Math.imul(j,st)|0)+Math.imul(R,it)|0,i=i+Math.imul(R,st)|0,r=r+Math.imul(M,ct)|0,a=(a=a+Math.imul(M,ut)|0)+Math.imul(C,ct)|0,i=i+Math.imul(C,ut)|0,r=r+Math.imul(O,lt)|0,a=(a=a+Math.imul(O,ft)|0)+Math.imul(T,lt)|0,i=i+Math.imul(T,ft)|0;var Tt=(u+(r=r+Math.imul(P,pt)|0)|0)+((8191&(a=(a=a+Math.imul(P,mt)|0)+Math.imul(S,pt)|0))<<13)|0;u=((i=i+Math.imul(S,mt)|0)+(a>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(L,it),a=(a=Math.imul(L,st))+Math.imul(z,it)|0,i=Math.imul(z,st),r=r+Math.imul(j,ct)|0,a=(a=a+Math.imul(j,ut)|0)+Math.imul(R,ct)|0,i=i+Math.imul(R,ut)|0,r=r+Math.imul(M,lt)|0,a=(a=a+Math.imul(M,ft)|0)+Math.imul(C,lt)|0,i=i+Math.imul(C,ft)|0;var Bt=(u+(r=r+Math.imul(O,pt)|0)|0)+((8191&(a=(a=a+Math.imul(O,mt)|0)+Math.imul(T,pt)|0))<<13)|0;u=((i=i+Math.imul(T,mt)|0)+(a>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,r=Math.imul(L,ct),a=(a=Math.imul(L,ut))+Math.imul(z,ct)|0,i=Math.imul(z,ut),r=r+Math.imul(j,lt)|0,a=(a=a+Math.imul(j,ft)|0)+Math.imul(R,lt)|0,i=i+Math.imul(R,ft)|0;var Mt=(u+(r=r+Math.imul(M,pt)|0)|0)+((8191&(a=(a=a+Math.imul(M,mt)|0)+Math.imul(C,pt)|0))<<13)|0;u=((i=i+Math.imul(C,mt)|0)+(a>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,lt),a=(a=Math.imul(L,ft))+Math.imul(z,lt)|0,i=Math.imul(z,ft);var Ct=(u+(r=r+Math.imul(j,pt)|0)|0)+((8191&(a=(a=a+Math.imul(j,mt)|0)+Math.imul(R,pt)|0))<<13)|0;u=((i=i+Math.imul(R,mt)|0)+(a>>>13)|0)+(Ct>>>26)|0,Ct&=67108863;var Nt=(u+(r=Math.imul(L,pt))|0)+((8191&(a=(a=Math.imul(L,mt))+Math.imul(z,pt)|0))<<13)|0;return u=((i=Math.imul(z,mt))+(a>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,c[0]=yt,c[1]=gt,c[2]=bt,c[3]=vt,c[4]=wt,c[5]=xt,c[6]=kt,c[7]=At,c[8]=It,c[9]=Et,c[10]=Pt,c[11]=St,c[12]=_t,c[13]=Ot,c[14]=Tt,c[15]=Bt,c[16]=Mt,c[17]=Ct,c[18]=Nt,0!==u&&(c[19]=u,n.length++),n};function y(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,a=0,i=0;i<n.length-1;i++){var s=a;a=0;for(var o=67108863&r,c=Math.min(i,e.length-1),u=Math.max(0,i-t.length+1);u<=c;u++){var d=i-u,l=(0|t.words[d])*(0|e.words[u]),f=67108863&l;o=67108863&(f=f+o|0),a+=(s=(s=s+(l/67108864|0)|0)+(f>>>26)|0)>>>26,s&=67108863}n.words[i]=o,r=s,s=a}return 0!==r?n.words[i]=r:n.length--,n._strip()}function g(t,e,n){return y(t,e,n)}Math.imul||(m=p),a.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?y(this,t,e):g(this,t,e)},a.prototype.mul=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},a.prototype.mulf=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),g(this,t,e)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,a=0;a<this.length;a++){var i=(0|this.words[a])*t,s=(67108863&i)+(67108863&r);r>>=26,r+=i/67108864|0,r+=s>>>26,this.words[a]=67108863&s}return 0!==r&&(this.words[a]=r,this.length++),this.length=0===t?1:this.length,e?this.ineg():this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var r=n/26|0,a=n%26;e[n]=t.words[r]>>>a&1}return e}(t);if(0===e.length)return new a(1);for(var n=this,r=0;r<e.length&&0===e[r];r++,n=n.sqr());if(++r<e.length)for(var i=n.sqr();r<e.length;r++,i=i.sqr())0!==e[r]&&(n=n.mul(i));return n},a.prototype.iushln=function(t){n("number"==typeof t&&t>=0);var e,r=t%26,a=(t-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var s=0;for(e=0;e<this.length;e++){var o=this.words[e]&i,c=(0|this.words[e])-o<<r;this.words[e]=c|s,s=o>>>26-r}s&&(this.words[e]=s,this.length++)}if(0!==a){for(e=this.length-1;e>=0;e--)this.words[e+a]=this.words[e];for(e=0;e<a;e++)this.words[e]=0;this.length+=a}return this._strip()},a.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,e,r){var a;n("number"==typeof t&&t>=0),a=e?(e-e%26)/26:0;var i=t%26,s=Math.min((t-i)/26,this.length),o=67108863^67108863>>>i<<i,c=r;if(a-=s,a=Math.max(0,a),c){for(var u=0;u<s;u++)c.words[u]=this.words[u];c.length=s}if(0===s);else if(this.length>s)for(this.length-=s,u=0;u<this.length;u++)this.words[u]=this.words[u+s];else this.words[0]=0,this.length=1;var d=0;for(u=this.length-1;u>=0&&(0!==d||u>=a);u--){var l=0|this.words[u];this.words[u]=d<<26-i|l>>>i,d=l&o}return c&&0!==d&&(c.words[c.length++]=d),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,a=1<<e;return!(this.length<=r)&&!!(this.words[r]&a)},a.prototype.imaskn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var a=67108863^67108863>>>e<<e;this.words[this.length-1]&=a}return 0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return n("number"==typeof t),n(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,e,r){var a,i,s=t.length+r;this._expand(s);var o=0;for(a=0;a<t.length;a++){i=(0|this.words[a+r])+o;var c=(0|t.words[a])*e;o=((i-=67108863&c)>>26)-(c/67108864|0),this.words[a+r]=67108863&i}for(;a<this.length-r;a++)o=(i=(0|this.words[a+r])+o)>>26,this.words[a+r]=67108863&i;if(0===o)return this._strip();for(n(-1===o),o=0,a=0;a<this.length;a++)o=(i=-(0|this.words[a])+o)>>26,this.words[a]=67108863&i;return this.negative=1,this._strip()},a.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,s=0|i.words[i.length-1];0!==(n=26-this._countBits(s))&&(i=i.ushln(n),r.iushln(n),s=0|i.words[i.length-1]);var o,c=r.length-i.length;if("mod"!==e){(o=new a(null)).length=c+1,o.words=new Array(o.length);for(var u=0;u<o.length;u++)o.words[u]=0}var d=r.clone()._ishlnsubmul(i,1,c);0===d.negative&&(r=d,o&&(o.words[c]=1));for(var l=c-1;l>=0;l--){var f=67108864*(0|r.words[i.length+l])+(0|r.words[i.length+l-1]);for(f=Math.min(f/s|0,67108863),r._ishlnsubmul(i,f,l);0!==r.negative;)f--,r.negative=0,r._ishlnsubmul(i,1,l),r.isZero()||(r.negative^=1);o&&(o.words[l]=f)}return o&&o._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:o||null,mod:r}},a.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(o=this.neg().divmod(t,e),"mod"!==e&&(i=o.div.neg()),"div"!==e&&(s=o.mod.neg(),r&&0!==s.negative&&s.iadd(t)),{div:i,mod:s}):0===this.negative&&0!==t.negative?(o=this.divmod(t.neg(),e),"mod"!==e&&(i=o.div.neg()),{div:i,mod:o.mod}):0!==(this.negative&t.negative)?(o=this.neg().divmod(t.neg(),e),"div"!==e&&(s=o.mod.neg(),r&&0!==s.negative&&s.isub(t)),{div:o.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new a(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,s,o},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),a=t.andln(1),i=n.cmp(r);return i<0||1===a&&0===i?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,a=0,i=this.length-1;i>=0;i--)a=(r*a+(0|this.words[i]))%t;return e?-a:a},a.prototype.modn=function(t){return this.modrn(t)},a.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,a=this.length-1;a>=0;a--){var i=(0|this.words[a])+67108864*r;this.words[a]=i/t|0,r=i%t}return this._strip(),e?this.ineg():this},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),s=new a(0),o=new a(0),c=new a(1),u=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++u;for(var d=r.clone(),l=e.clone();!e.isZero();){for(var f=0,h=1;0===(e.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(e.iushrn(f);f-- >0;)(i.isOdd()||s.isOdd())&&(i.iadd(d),s.isub(l)),i.iushrn(1),s.iushrn(1);for(var p=0,m=1;0===(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||c.isOdd())&&(o.iadd(d),c.isub(l)),o.iushrn(1),c.iushrn(1);e.cmp(r)>=0?(e.isub(r),i.isub(o),s.isub(c)):(r.isub(e),o.isub(i),c.isub(s))}return{a:o,b:c,gcd:r.iushln(u)}},a.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,s=new a(1),o=new a(0),c=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var u=0,d=1;0===(e.words[0]&d)&&u<26;++u,d<<=1);if(u>0)for(e.iushrn(u);u-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var l=0,f=1;0===(r.words[0]&f)&&l<26;++l,f<<=1);if(l>0)for(r.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(c),o.iushrn(1);e.cmp(r)>=0?(e.isub(r),s.isub(o)):(r.isub(e),o.isub(s))}return(i=0===e.cmpn(1)?s:o).cmpn(0)<0&&i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var a=e.cmp(n);if(a<0){var i=e;e=n,n=i}else if(0===a||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return!(1&this.words[0])},a.prototype.isOdd=function(){return!(1&~this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,a=1<<e;if(this.length<=r)return this._expand(r+1),this.words[r]|=a,this;for(var i=a,s=r;0!==i&&s<this.length;s++){var o=0|this.words[s];i=(o+=i)>>>26,o&=67108863,this.words[s]=o}return 0!==i&&(this.words[s]=i,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var a=0|this.words[0];e=a===t?0:a<t?-1:1}return 0!==this.negative?0|-e:e},a.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},a.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],a=0|t.words[n];if(r!==a){r<a?e=-1:r>a&&(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new I(t)},a.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function A(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function I(t){if("string"==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){I.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},r(w,v),w.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),a=0;a<r;a++)e.words[a]=t.words[a];if(e.length=r,t.length<=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=i&n,a=10;a<t.length;a++){var s=0|t.words[a];t.words[a-10]=(s&n)<<4|i>>>22,i=s}i>>>=22,t.words[a-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var r=0|t.words[n];e+=977*r,t.words[n]=67108863&e,e=64*r+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},r(x,v),r(k,v),r(A,v),A.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var r=19*(0|t.words[n])+e,a=67108863&r;r>>>=26,t.words[n]=a,e=r}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new x;else if("p192"===t)e=new k;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new A}return b[t]=e,e},I.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},I.prototype._verify2=function(t,e){n(0===(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},I.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},I.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},I.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},I.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},I.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},I.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},I.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},I.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},I.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},I.prototype.isqr=function(t){return this.imul(t,t.clone())},I.prototype.sqr=function(t){return this.mul(t,t)},I.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),s=0;!i.isZero()&&0===i.andln(1);)s++,i.iushrn(1);n(!i.isZero());var o=new a(1).toRed(this),c=o.redNeg(),u=this.m.subn(1).iushrn(1),d=this.m.bitLength();for(d=new a(2*d*d).toRed(this);0!==this.pow(d,u).cmp(c);)d.redIAdd(c);for(var l=this.pow(d,i),f=this.pow(t,i.addn(1).iushrn(1)),h=this.pow(t,i),p=s;0!==h.cmp(o);){for(var m=h,y=0;0!==m.cmp(o);y++)m=m.redSqr();n(y<p);var g=this.pow(l,new a(1).iushln(p-y-1));f=f.redMul(g),l=g.redSqr(),h=h.redMul(l),p=y}return f},I.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},I.prototype.pow=function(t,e){if(e.isZero())return new a(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new a(1).toRed(this),n[1]=t;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],t);var i=n[0],s=0,o=0,c=e.bitLength()%26;for(0===c&&(c=26),r=e.length-1;r>=0;r--){for(var u=e.words[r],d=c-1;d>=0;d--){var l=u>>d&1;i!==n[0]&&(i=this.sqr(i)),0!==l||0!==s?(s<<=1,s|=l,(4===++o||0===r&&0===d)&&(i=this.mul(i,n[s]),o=0,s=0)):o=0}c=26}return i},I.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},I.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new E(t)},r(E,I),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),a=n.isub(r).iushrn(this.shift),i=a;return a.cmp(this.m)>=0?i=a.isub(this.m):a.cmpn(0)<0&&(i=a.iadd(this.m)),i._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):i.cmpn(0)<0&&(s=i.iadd(this.m)),s._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,w)}(Ma);var Na=Ma.exports,ja=x(Na),Ra={exports:{}};
|
|
17
|
+
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
18
|
+
!function(t,e){var n=Ye,r=n.Buffer;function a(t,e){for(var n in t)e[n]=t[n]}function i(t,e,n){return r(t,e,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(a(n,e),e.Buffer=i),i.prototype=Object.create(r.prototype),a(r,i),i.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,n)},i.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var a=r(t);return void 0!==e?"string"==typeof n?a.fill(e,n):a.fill(e):a.fill(0),a},i.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},i.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}}(Ra,Ra.exports);var Ua=Ra.exports.Buffer;var La=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n<e.length;n++)e[n]=255;for(var r=0;r<t.length;r++){var a=t.charAt(r),i=a.charCodeAt(0);if(255!==e[i])throw new TypeError(a+" is ambiguous");e[i]=r}var s=t.length,o=t.charAt(0),c=Math.log(s)/Math.log(256),u=Math.log(256)/Math.log(s);function d(t){if("string"!=typeof t)throw new TypeError("Expected String");if(0===t.length)return Ua.alloc(0);for(var n=0,r=0,a=0;t[n]===o;)r++,n++;for(var i=(t.length-n)*c+1>>>0,u=new Uint8Array(i);n<t.length;){var d=t.charCodeAt(n);if(d>255)return;var l=e[d];if(255===l)return;for(var f=0,h=i-1;(0!==l||f<a)&&-1!==h;h--,f++)l+=s*u[h]>>>0,u[h]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");a=f,n++}for(var p=i-a;p!==i&&0===u[p];)p++;var m=Ua.allocUnsafe(r+(i-p));m.fill(0,0,r);for(var y=r;p!==i;)m[y++]=u[p++];return m}return{encode:function(e){if((Array.isArray(e)||e instanceof Uint8Array)&&(e=Ua.from(e)),!Ua.isBuffer(e))throw new TypeError("Expected Buffer");if(0===e.length)return"";for(var n=0,r=0,a=0,i=e.length;a!==i&&0===e[a];)a++,n++;for(var c=(i-a)*u+1>>>0,d=new Uint8Array(c);a!==i;){for(var l=e[a],f=0,h=c-1;(0!==l||f<r)&&-1!==h;h--,f++)l+=256*d[h]>>>0,d[h]=l%s>>>0,l=l/s>>>0;if(0!==l)throw new Error("Non-zero carry");r=f,a++}for(var p=c-r;p!==c&&0===d[p];)p++;for(var m=o.repeat(n);p<c;++p)m+=t.charAt(d[p]);return m},decodeUnsafe:d,decode:function(t){var e=d(t);if(e)return e;throw new Error("Non-base"+s+" character")}}},za=La("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),Fa=x(za);function Da(t,...e){if(!function(t){return t instanceof Uint8Array||null!=t&&"object"==typeof t&&"Uint8Array"===t.constructor.name}(t))throw new Error("Uint8Array expected");if(e.length>0&&!e.includes(t.length))throw new Error(`Uint8Array expected of length ${e}, not of length=${t.length}`)}function qa(t,e=!0){if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}
|
|
19
|
+
/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
20
|
+
const Ga=t=>new DataView(t.buffer,t.byteOffset,t.byteLength),Ka=(t,e)=>t<<32-e|t>>>e;function Va(t){return"string"==typeof t&&(t=function(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got "+typeof t);return new Uint8Array((new TextEncoder).encode(t))}(t)),Da(t),t}new Uint8Array(new Uint32Array([287454020]).buffer)[0];class Za{clone(){return this._cloneInto()}}function Ha(t){const e=e=>t().update(Va(e)).digest(),n=t();return e.outputLen=n.outputLen,e.blockLen=n.blockLen,e.create=()=>t(),e}const Wa=(t,e,n)=>t&e^~t&n,Ja=(t,e,n)=>t&e^t&n^e&n;class Ya extends Za{constructor(t,e,n,r){super(),this.blockLen=t,this.outputLen=e,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=Ga(this.buffer)}update(t){qa(this);const{view:e,buffer:n,blockLen:r}=this,a=(t=Va(t)).length;for(let i=0;i<a;){const s=Math.min(r-this.pos,a-i);if(s===r){const e=Ga(t);for(;r<=a-i;i+=r)this.process(e,i);continue}n.set(t.subarray(i,i+s),this.pos),this.pos+=s,i+=s,this.pos===r&&(this.process(e,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){qa(this),function(t,e){Da(t);const n=e.outputLen;if(t.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}(t,this),this.finished=!0;const{buffer:e,view:n,blockLen:r,isLE:a}=this;let{pos:i}=this;e[i++]=128,this.buffer.subarray(i).fill(0),this.padOffset>r-i&&(this.process(n,0),i=0);for(let t=i;t<r;t++)e[t]=0;!function(t,e,n,r){if("function"==typeof t.setBigUint64)return t.setBigUint64(e,n,r);const a=BigInt(32),i=BigInt(4294967295),s=Number(n>>a&i),o=Number(n&i),c=r?4:0,u=r?0:4;t.setUint32(e+c,s,r),t.setUint32(e+u,o,r)}(n,r-8,BigInt(8*this.length),a),this.process(n,0);const s=Ga(t),o=this.outputLen;if(o%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const c=o/4,u=this.get();if(c>u.length)throw new Error("_sha2: outputLen bigger than state");for(let t=0;t<c;t++)s.setUint32(4*t,u[t],a)}digest(){const{buffer:t,outputLen:e}=this;this.digestInto(t);const n=t.slice(0,e);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:e,buffer:n,length:r,finished:a,destroyed:i,pos:s}=this;return t.length=r,t.pos=s,t.finished=a,t.destroyed=i,r%e&&t.buffer.set(n),t}}const $a=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),Qa=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),Xa=new Uint32Array(64);class ti extends Ya{constructor(){super(64,32,8,!1),this.A=0|Qa[0],this.B=0|Qa[1],this.C=0|Qa[2],this.D=0|Qa[3],this.E=0|Qa[4],this.F=0|Qa[5],this.G=0|Qa[6],this.H=0|Qa[7]}get(){const{A:t,B:e,C:n,D:r,E:a,F:i,G:s,H:o}=this;return[t,e,n,r,a,i,s,o]}set(t,e,n,r,a,i,s,o){this.A=0|t,this.B=0|e,this.C=0|n,this.D=0|r,this.E=0|a,this.F=0|i,this.G=0|s,this.H=0|o}process(t,e){for(let n=0;n<16;n++,e+=4)Xa[n]=t.getUint32(e,!1);for(let t=16;t<64;t++){const e=Xa[t-15],n=Xa[t-2],r=Ka(e,7)^Ka(e,18)^e>>>3,a=Ka(n,17)^Ka(n,19)^n>>>10;Xa[t]=a+Xa[t-7]+r+Xa[t-16]|0}let{A:n,B:r,C:a,D:i,E:s,F:o,G:c,H:u}=this;for(let t=0;t<64;t++){const e=u+(Ka(s,6)^Ka(s,11)^Ka(s,25))+Wa(s,o,c)+$a[t]+Xa[t]|0,d=(Ka(n,2)^Ka(n,13)^Ka(n,22))+Ja(n,r,a)|0;u=c,c=o,o=s,s=i+e|0,i=a,a=r,r=n,n=e+d|0}n=n+this.A|0,r=r+this.B|0,a=a+this.C|0,i=i+this.D|0,s=s+this.E|0,o=o+this.F|0,c=c+this.G|0,u=u+this.H|0,this.set(n,r,a,i,s,o,c,u)}roundClean(){Xa.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const ei=Ha(()=>new ti);var ni={};function ri(t,e,n){return e<=t&&t<=n}function ai(t){if(void 0===t)return{};if(t===Object(t))return t;throw TypeError("Could not convert argument to dictionary")}function ii(t){this.tokens=[].slice.call(t)}ii.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.unshift(e.pop());else this.tokens.unshift(t)},push:function(t){if(Array.isArray(t))for(var e=t;e.length;)this.tokens.push(e.shift());else this.tokens.push(t)}};var si=-1;function oi(t,e){if(t)throw TypeError("Decoder error");return e||65533}var ci="utf-8";function ui(t,e){if(!(this instanceof ui))return new ui(t,e);if((t=void 0!==t?String(t).toLowerCase():ci)!==ci)throw new Error("Encoding not supported. Only utf-8 is supported");e=ai(e),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(e.fatal),this._ignoreBOM=Boolean(e.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function di(t,e){if(!(this instanceof di))return new di(t,e);if((t=void 0!==t?String(t).toLowerCase():ci)!==ci)throw new Error("Encoding not supported. Only utf-8 is supported");e=ai(e),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(e.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function li(t){var e=t.fatal,n=0,r=0,a=0,i=128,s=191;this.handler=function(t,o){if(-1===o&&0!==a)return a=0,oi(e);if(-1===o)return si;if(0===a){if(ri(o,0,127))return o;if(ri(o,194,223))a=1,n=o-192;else if(ri(o,224,239))224===o&&(i=160),237===o&&(s=159),a=2,n=o-224;else{if(!ri(o,240,244))return oi(e);240===o&&(i=144),244===o&&(s=143),a=3,n=o-240}return n<<=6*a,null}if(!ri(o,i,s))return n=a=r=0,i=128,s=191,t.prepend(o),oi(e);if(i=128,s=191,n+=o-128<<6*(a-(r+=1)),r!==a)return null;var c=n;return n=a=r=0,c}}function fi(t){t.fatal,this.handler=function(t,e){if(-1===e)return si;if(ri(e,0,127))return e;var n,r;ri(e,128,2047)?(n=1,r=192):ri(e,2048,65535)?(n=2,r=224):ri(e,65536,1114111)&&(n=3,r=240);for(var a=[(e>>6*n)+r];n>0;){var i=e>>6*(n-1);a.push(128|63&i),n-=1}return a}}ui.prototype={decode:function(t,e){var n;n="object"==typeof t&&t instanceof ArrayBuffer?new Uint8Array(t):"object"==typeof t&&"buffer"in t&&t.buffer instanceof ArrayBuffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(0),e=ai(e),this._streaming||(this._decoder=new li({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(e.stream);for(var r,a=new ii(n),i=[];!a.endOfStream()&&(r=this._decoder.handler(a,a.read()))!==si;)null!==r&&(Array.isArray(r)?i.push.apply(i,r):i.push(r));if(!this._streaming){do{if((r=this._decoder.handler(a,a.read()))===si)break;null!==r&&(Array.isArray(r)?i.push.apply(i,r):i.push(r))}while(!a.endOfStream());this._decoder=null}return i.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===i[0]?(this._BOMseen=!0,i.shift()):this._BOMseen=!0)),function(t){for(var e="",n=0;n<t.length;++n){var r=t[n];r<=65535?e+=String.fromCharCode(r):(r-=65536,e+=String.fromCharCode(55296+(r>>10),56320+(1023&r)))}return e}(i)}},di.prototype={encode:function(t,e){t=t?String(t):"",e=ai(e),this._streaming||(this._encoder=new fi(this._options)),this._streaming=Boolean(e.stream);for(var n,r=[],a=new ii(function(t){for(var e=String(t),n=e.length,r=0,a=[];r<n;){var i=e.charCodeAt(r);if(i<55296||i>57343)a.push(i);else if(56320<=i&&i<=57343)a.push(65533);else if(55296<=i&&i<=56319)if(r===n-1)a.push(65533);else{var s=t.charCodeAt(r+1);if(56320<=s&&s<=57343){var o=1023&i,c=1023&s;a.push(65536+(o<<10)+c),r+=1}else a.push(65533)}r+=1}return a}(t));!a.endOfStream()&&(n=this._encoder.handler(a,a.read()))!==si;)Array.isArray(n)?r.push.apply(r,n):r.push(n);if(!this._streaming){for(;(n=this._encoder.handler(a,a.read()))!==si;)Array.isArray(n)?r.push.apply(r,n):r.push(n);this._encoder=null}return new Uint8Array(r)}};var hi=k(Object.freeze({__proto__:null,TextDecoder:ui,TextEncoder:di})),pi=w&&w.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),mi=w&&w.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),yi=w&&w.__decorate||function(t,e,n,r){var a,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(s=(i<3?a(s):i>3?a(e,n,s):a(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s},gi=w&&w.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.hasOwnProperty.call(t,n)&&pi(e,t,n);return mi(e,t),e},bi=w&&w.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ni,"__esModule",{value:!0});var vi=ni.deserializeUnchecked=ji=ni.deserialize=Mi=ni.serialize=ni.BinaryReader=ni.BinaryWriter=ni.BorshError=ni.baseDecode=ni.baseEncode=void 0;const wi=bi(Na),xi=bi(za),ki=gi(hi),Ai=new("function"!=typeof TextDecoder?ki.TextDecoder:TextDecoder)("utf-8",{fatal:!0});ni.baseEncode=function(t){return"string"==typeof t&&(t=Buffer.from(t,"utf8")),xi.default.encode(Buffer.from(t))},ni.baseDecode=function(t){return Buffer.from(xi.default.decode(t))};const Ii=1024;class Ei extends Error{constructor(t){super(t),this.fieldPath=[],this.originalMessage=t}addToFieldPath(t){this.fieldPath.splice(0,0,t),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}ni.BorshError=Ei;class Pi{constructor(){this.buf=Buffer.alloc(Ii),this.length=0}maybeResize(){this.buf.length<16+this.length&&(this.buf=Buffer.concat([this.buf,Buffer.alloc(Ii)]))}writeU8(t){this.maybeResize(),this.buf.writeUInt8(t,this.length),this.length+=1}writeU16(t){this.maybeResize(),this.buf.writeUInt16LE(t,this.length),this.length+=2}writeU32(t){this.maybeResize(),this.buf.writeUInt32LE(t,this.length),this.length+=4}writeU64(t){this.maybeResize(),this.writeBuffer(Buffer.from(new wi.default(t).toArray("le",8)))}writeU128(t){this.maybeResize(),this.writeBuffer(Buffer.from(new wi.default(t).toArray("le",16)))}writeU256(t){this.maybeResize(),this.writeBuffer(Buffer.from(new wi.default(t).toArray("le",32)))}writeU512(t){this.maybeResize(),this.writeBuffer(Buffer.from(new wi.default(t).toArray("le",64)))}writeBuffer(t){this.buf=Buffer.concat([Buffer.from(this.buf.subarray(0,this.length)),t,Buffer.alloc(Ii)]),this.length+=t.length}writeString(t){this.maybeResize();const e=Buffer.from(t,"utf8");this.writeU32(e.length),this.writeBuffer(e)}writeFixedArray(t){this.writeBuffer(Buffer.from(t))}writeArray(t,e){this.maybeResize(),this.writeU32(t.length);for(const n of t)this.maybeResize(),e(n)}toArray(){return this.buf.subarray(0,this.length)}}function Si(t,e,n){const r=n.value;n.value=function(...t){try{return r.apply(this,t)}catch(t){if(t instanceof RangeError){const e=t.code;if(["ERR_BUFFER_OUT_OF_BOUNDS","ERR_OUT_OF_RANGE"].indexOf(e)>=0)throw new Ei("Reached the end of buffer when deserializing")}throw t}}}ni.BinaryWriter=Pi;class _i{constructor(t){this.buf=t,this.offset=0}readU8(){const t=this.buf.readUInt8(this.offset);return this.offset+=1,t}readU16(){const t=this.buf.readUInt16LE(this.offset);return this.offset+=2,t}readU32(){const t=this.buf.readUInt32LE(this.offset);return this.offset+=4,t}readU64(){const t=this.readBuffer(8);return new wi.default(t,"le")}readU128(){const t=this.readBuffer(16);return new wi.default(t,"le")}readU256(){const t=this.readBuffer(32);return new wi.default(t,"le")}readU512(){const t=this.readBuffer(64);return new wi.default(t,"le")}readBuffer(t){if(this.offset+t>this.buf.length)throw new Ei(`Expected buffer length ${t} isn't within bounds`);const e=this.buf.slice(this.offset,this.offset+t);return this.offset+=t,e}readString(){const t=this.readU32(),e=this.readBuffer(t);try{return Ai.decode(e)}catch(t){throw new Ei(`Error decoding UTF-8 string: ${t}`)}}readFixedArray(t){return new Uint8Array(this.readBuffer(t))}readArray(t){const e=this.readU32(),n=Array();for(let r=0;r<e;++r)n.push(t());return n}}function Oi(t){return t.charAt(0).toUpperCase()+t.slice(1)}function Ti(t,e,n,r,a){try{if("string"==typeof r)a[`write${Oi(r)}`](n);else if(r instanceof Array)if("number"==typeof r[0]){if(n.length!==r[0])throw new Ei(`Expecting byte array of length ${r[0]}, but got ${n.length} bytes`);a.writeFixedArray(n)}else if(2===r.length&&"number"==typeof r[1]){if(n.length!==r[1])throw new Ei(`Expecting byte array of length ${r[1]}, but got ${n.length} bytes`);for(let e=0;e<r[1];e++)Ti(t,null,n[e],r[0],a)}else a.writeArray(n,n=>{Ti(t,e,n,r[0],a)});else if(void 0!==r.kind)switch(r.kind){case"option":null==n?a.writeU8(0):(a.writeU8(1),Ti(t,e,n,r.type,a));break;case"map":a.writeU32(n.size),n.forEach((n,i)=>{Ti(t,e,i,r.key,a),Ti(t,e,n,r.value,a)});break;default:throw new Ei(`FieldType ${r} unrecognized`)}else Bi(t,n,a)}catch(t){throw t instanceof Ei&&t.addToFieldPath(e),t}}function Bi(t,e,n){if("function"==typeof e.borshSerialize)return void e.borshSerialize(n);const r=t.get(e.constructor);if(!r)throw new Ei(`Class ${e.constructor.name} is missing in schema`);if("struct"===r.kind)r.fields.map(([r,a])=>{Ti(t,r,e[r],a,n)});else{if("enum"!==r.kind)throw new Ei(`Unexpected schema kind: ${r.kind} for ${e.constructor.name}`);{const a=e[r.field];for(let i=0;i<r.values.length;++i){const[s,o]=r.values[i];if(s===a){n.writeU8(i),Ti(t,s,e[s],o,n);break}}}}}yi([Si],_i.prototype,"readU8",null),yi([Si],_i.prototype,"readU16",null),yi([Si],_i.prototype,"readU32",null),yi([Si],_i.prototype,"readU64",null),yi([Si],_i.prototype,"readU128",null),yi([Si],_i.prototype,"readU256",null),yi([Si],_i.prototype,"readU512",null),yi([Si],_i.prototype,"readString",null),yi([Si],_i.prototype,"readFixedArray",null),yi([Si],_i.prototype,"readArray",null),ni.BinaryReader=_i;var Mi=ni.serialize=function(t,e,n=Pi){const r=new n;return Bi(t,e,r),r.toArray()};function Ci(t,e,n,r){try{if("string"==typeof n)return r[`read${Oi(n)}`]();if(n instanceof Array){if("number"==typeof n[0])return r.readFixedArray(n[0]);if("number"==typeof n[1]){const e=[];for(let a=0;a<n[1];a++)e.push(Ci(t,null,n[0],r));return e}return r.readArray(()=>Ci(t,e,n[0],r))}if("option"===n.kind){return r.readU8()?Ci(t,e,n.type,r):void 0}if("map"===n.kind){let a=new Map;const i=r.readU32();for(let s=0;s<i;s++){const i=Ci(t,e,n.key,r),s=Ci(t,e,n.value,r);a.set(i,s)}return a}return Ni(t,n,r)}catch(t){throw t instanceof Ei&&t.addToFieldPath(e),t}}function Ni(t,e,n){if("function"==typeof e.borshDeserialize)return e.borshDeserialize(n);const r=t.get(e);if(!r)throw new Ei(`Class ${e.name} is missing in schema`);if("struct"===r.kind){const r={};for(const[a,i]of t.get(e).fields)r[a]=Ci(t,a,i,n);return new e(r)}if("enum"===r.kind){const a=n.readU8();if(a>=r.values.length)throw new Ei(`Enum index: ${a} is out of range`);const[i,s]=r.values[a],o=Ci(t,i,s,n);return new e({[i]:o})}throw new Ei(`Unexpected schema kind: ${r.kind} for ${e.constructor.name}`)}var ji=ni.deserialize=function(t,e,n,r=_i){const a=new r(n),i=Ni(t,e,a);if(a.offset<n.length)throw new Ei(`Unexpected ${n.length-a.offset} bytes after deserialized data`);return i};vi=ni.deserializeUnchecked=function(t,e,n,r=_i){return Ni(t,e,new r(n))};var Ri={};Object.defineProperty(Ri,"__esModule",{value:!0}),Ri.s16=Ri.s8=Ri.nu64be=Ri.u48be=Ri.u40be=Ri.u32be=Ri.u24be=Ri.u16be=Is=Ri.nu64=Ri.u48=Ri.u40=As=Ri.u32=Ri.u24=ks=Ri.u16=xs=Ri.u8=ws=Ri.offset=Ri.greedy=Ri.Constant=Ri.UTF8=Ri.CString=Ri.Blob=Ri.Boolean=Ri.BitField=Ri.BitStructure=Ri.VariantLayout=Ri.Union=Ri.UnionLayoutDiscriminator=Ri.UnionDiscriminator=Ri.Structure=Ri.Sequence=Ri.DoubleBE=Ri.Double=Ri.FloatBE=Ri.Float=Ri.NearInt64BE=Ri.NearInt64=Ri.NearUInt64BE=Ri.NearUInt64=Ri.IntBE=Ri.Int=Ri.UIntBE=Ri.UInt=Ri.OffsetLayout=Ri.GreedyCount=Ri.ExternalLayout=Ri.bindConstructorLayout=Ri.nameWithProperty=Ri.Layout=Ri.uint8ArrayToBuffer=Ri.checkUint8Array=void 0,Ri.constant=Ri.utf8=Ri.cstr=_s=Ri.blob=Ri.unionLayoutDiscriminator=Ri.union=Ss=Ri.seq=Ri.bits=Ps=Ri.struct=Ri.f64be=Ri.f64=Ri.f32be=Ri.f32=Ri.ns64be=Ri.s48be=Ri.s40be=Ri.s32be=Ri.s24be=Ri.s16be=Es=Ri.ns64=Ri.s48=Ri.s40=Ri.s32=Ri.s24=void 0;const Ui=Ye;function Li(t){if(!(t instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function zi(t){return Li(t),Ui.Buffer.from(t.buffer,t.byteOffset,t.length)}Ri.checkUint8Array=Li,Ri.uint8ArrayToBuffer=zi;class Fi{constructor(t,e){if(!Number.isInteger(t))throw new TypeError("span must be an integer");this.span=t,this.property=e}makeDestinationObject(){return{}}getSpan(t,e){if(0>this.span)throw new RangeError("indeterminate span");return this.span}replicate(t){const e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e}fromArray(t){}}function Di(t,e){return e.property?t+"["+e.property+"]":t}Ri.Layout=Fi,Ri.nameWithProperty=Di,Ri.bindConstructorLayout=function(t,e){if("function"!=typeof t)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(t,"layout_"))throw new Error("Class is already bound to a layout");if(!(e&&e instanceof Fi))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(e,"boundConstructor_"))throw new Error("layout is already bound to a constructor");t.layout_=e,e.boundConstructor_=t,e.makeDestinationObject=()=>new t,Object.defineProperty(t.prototype,"encode",{value(t,n){return e.encode(this,t,n)},writable:!0}),Object.defineProperty(t,"decode",{value:(t,n)=>e.decode(t,n),writable:!0})};class qi extends Fi{isCount(){throw new Error("ExternalLayout is abstract")}}Ri.ExternalLayout=qi;class Gi extends qi{constructor(t=1,e){if(!Number.isInteger(t)||0>=t)throw new TypeError("elementSpan must be a (positive) integer");super(-1,e),this.elementSpan=t}isCount(){return!0}decode(t,e=0){Li(t);const n=t.length-e;return Math.floor(n/this.elementSpan)}encode(t,e,n){return 0}}Ri.GreedyCount=Gi;class Ki extends qi{constructor(t,e=0,n){if(!(t instanceof Fi))throw new TypeError("layout must be a Layout");if(!Number.isInteger(e))throw new TypeError("offset must be integer or undefined");super(t.span,n||t.property),this.layout=t,this.offset=e}isCount(){return this.layout instanceof Vi||this.layout instanceof Zi}decode(t,e=0){return this.layout.decode(t,e+this.offset)}encode(t,e,n=0){return this.layout.encode(t,e,n+this.offset)}}Ri.OffsetLayout=Ki;class Vi extends Fi{constructor(t,e){if(super(t,e),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,e=0){return zi(t).readUIntLE(e,this.span)}encode(t,e,n=0){return zi(e).writeUIntLE(t,n,this.span),this.span}}Ri.UInt=Vi;class Zi extends Fi{constructor(t,e){if(super(t,e),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,e=0){return zi(t).readUIntBE(e,this.span)}encode(t,e,n=0){return zi(e).writeUIntBE(t,n,this.span),this.span}}Ri.UIntBE=Zi;class Hi extends Fi{constructor(t,e){if(super(t,e),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,e=0){return zi(t).readIntLE(e,this.span)}encode(t,e,n=0){return zi(e).writeIntLE(t,n,this.span),this.span}}Ri.Int=Hi;class Wi extends Fi{constructor(t,e){if(super(t,e),6<this.span)throw new RangeError("span must not exceed 6 bytes")}decode(t,e=0){return zi(t).readIntBE(e,this.span)}encode(t,e,n=0){return zi(e).writeIntBE(t,n,this.span),this.span}}Ri.IntBE=Wi;const Ji=Math.pow(2,32);function Yi(t){const e=Math.floor(t/Ji);return{hi32:e,lo32:t-e*Ji}}function $i(t,e){return t*Ji+e}class Qi extends Fi{constructor(t){super(8,t)}decode(t,e=0){const n=zi(t),r=n.readUInt32LE(e);return $i(n.readUInt32LE(e+4),r)}encode(t,e,n=0){const r=Yi(t),a=zi(e);return a.writeUInt32LE(r.lo32,n),a.writeUInt32LE(r.hi32,n+4),8}}Ri.NearUInt64=Qi;class Xi extends Fi{constructor(t){super(8,t)}decode(t,e=0){const n=zi(t);return $i(n.readUInt32BE(e),n.readUInt32BE(e+4))}encode(t,e,n=0){const r=Yi(t),a=zi(e);return a.writeUInt32BE(r.hi32,n),a.writeUInt32BE(r.lo32,n+4),8}}Ri.NearUInt64BE=Xi;class ts extends Fi{constructor(t){super(8,t)}decode(t,e=0){const n=zi(t),r=n.readUInt32LE(e);return $i(n.readInt32LE(e+4),r)}encode(t,e,n=0){const r=Yi(t),a=zi(e);return a.writeUInt32LE(r.lo32,n),a.writeInt32LE(r.hi32,n+4),8}}Ri.NearInt64=ts;class es extends Fi{constructor(t){super(8,t)}decode(t,e=0){const n=zi(t);return $i(n.readInt32BE(e),n.readUInt32BE(e+4))}encode(t,e,n=0){const r=Yi(t),a=zi(e);return a.writeInt32BE(r.hi32,n),a.writeUInt32BE(r.lo32,n+4),8}}Ri.NearInt64BE=es;class ns extends Fi{constructor(t){super(4,t)}decode(t,e=0){return zi(t).readFloatLE(e)}encode(t,e,n=0){return zi(e).writeFloatLE(t,n),4}}Ri.Float=ns;class rs extends Fi{constructor(t){super(4,t)}decode(t,e=0){return zi(t).readFloatBE(e)}encode(t,e,n=0){return zi(e).writeFloatBE(t,n),4}}Ri.FloatBE=rs;class as extends Fi{constructor(t){super(8,t)}decode(t,e=0){return zi(t).readDoubleLE(e)}encode(t,e,n=0){return zi(e).writeDoubleLE(t,n),8}}Ri.Double=as;class is extends Fi{constructor(t){super(8,t)}decode(t,e=0){return zi(t).readDoubleBE(e)}encode(t,e,n=0){return zi(e).writeDoubleBE(t,n),8}}Ri.DoubleBE=is;class ss extends Fi{constructor(t,e,n){if(!(t instanceof Fi))throw new TypeError("elementLayout must be a Layout");if(!(e instanceof qi&&e.isCount()||Number.isInteger(e)&&0<=e))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");let r=-1;!(e instanceof qi)&&0<t.span&&(r=e*t.span),super(r,n),this.elementLayout=t,this.count=e}getSpan(t,e=0){if(0<=this.span)return this.span;let n=0,r=this.count;if(r instanceof qi&&(r=r.decode(t,e)),0<this.elementLayout.span)n=r*this.elementLayout.span;else{let a=0;for(;a<r;)n+=this.elementLayout.getSpan(t,e+n),++a}return n}decode(t,e=0){const n=[];let r=0,a=this.count;for(a instanceof qi&&(a=a.decode(t,e));r<a;)n.push(this.elementLayout.decode(t,e)),e+=this.elementLayout.getSpan(t,e),r+=1;return n}encode(t,e,n=0){const r=this.elementLayout,a=t.reduce((t,a)=>t+r.encode(a,e,n+t),0);return this.count instanceof qi&&this.count.encode(t.length,e,n),a}}Ri.Sequence=ss;class os extends Fi{constructor(t,e,n){if(!Array.isArray(t)||!t.reduce((t,e)=>t&&e instanceof Fi,!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof e&&void 0===n&&(n=e,e=void 0);for(const e of t)if(0>e.span&&void 0===e.property)throw new Error("fields cannot contain unnamed variable-length layout");let r=-1;try{r=t.reduce((t,e)=>t+e.getSpan(),0)}catch(t){}super(r,e),this.fields=t,this.decodePrefixes=!!n}getSpan(t,e=0){if(0<=this.span)return this.span;let n=0;try{n=this.fields.reduce((n,r)=>{const a=r.getSpan(t,e);return e+=a,n+a},0)}catch(t){throw new RangeError("indeterminate span")}return n}decode(t,e=0){Li(t);const n=this.makeDestinationObject();for(const r of this.fields)if(void 0!==r.property&&(n[r.property]=r.decode(t,e)),e+=r.getSpan(t,e),this.decodePrefixes&&t.length===e)break;return n}encode(t,e,n=0){const r=n;let a=0,i=0;for(const r of this.fields){let s=r.span;if(i=0<s?s:0,void 0!==r.property){const a=t[r.property];void 0!==a&&(i=r.encode(a,e,n),0>s&&(s=r.getSpan(e,n)))}a=n,n+=s}return a+i-r}fromArray(t){const e=this.makeDestinationObject();for(const n of this.fields)void 0!==n.property&&0<t.length&&(e[n.property]=t.shift());return e}layoutFor(t){if("string"!=typeof t)throw new TypeError("property must be string");for(const e of this.fields)if(e.property===t)return e}offsetOf(t){if("string"!=typeof t)throw new TypeError("property must be string");let e=0;for(const n of this.fields){if(n.property===t)return e;0>n.span?e=-1:0<=e&&(e+=n.span)}}}Ri.Structure=os;class cs{constructor(t){this.property=t}decode(t,e){throw new Error("UnionDiscriminator is abstract")}encode(t,e,n){throw new Error("UnionDiscriminator is abstract")}}Ri.UnionDiscriminator=cs;class us extends cs{constructor(t,e){if(!(t instanceof qi&&t.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");super(e||t.property||"variant"),this.layout=t}decode(t,e){return this.layout.decode(t,e)}encode(t,e,n){return this.layout.encode(t,e,n)}}Ri.UnionLayoutDiscriminator=us;class ds extends Fi{constructor(t,e,n){let r;if(t instanceof Vi||t instanceof Zi)r=new us(new Ki(t));else if(t instanceof qi&&t.isCount())r=new us(t);else{if(!(t instanceof cs))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");r=t}if(void 0===e&&(e=null),!(null===e||e instanceof Fi))throw new TypeError("defaultLayout must be null or a Layout");if(null!==e){if(0>e.span)throw new Error("defaultLayout must have constant span");void 0===e.property&&(e=e.replicate("content"))}let a=-1;e&&(a=e.span,0<=a&&(t instanceof Vi||t instanceof Zi)&&(a+=r.layout.span)),super(a,n),this.discriminator=r,this.usesPrefixDiscriminator=t instanceof Vi||t instanceof Zi,this.defaultLayout=e,this.registry={};let i=this.defaultGetSourceVariant.bind(this);this.getSourceVariant=function(t){return i(t)},this.configGetSourceVariant=function(t){i=t.bind(this)}}getSpan(t,e=0){if(0<=this.span)return this.span;const n=this.getVariant(t,e);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(t,e)}defaultGetSourceVariant(t){if(Object.prototype.hasOwnProperty.call(t,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(t,this.defaultLayout.property))return;const e=this.registry[t[this.discriminator.property]];if(e&&(!e.layout||e.property&&Object.prototype.hasOwnProperty.call(t,e.property)))return e}else for(const e in this.registry){const n=this.registry[e];if(n.property&&Object.prototype.hasOwnProperty.call(t,n.property))return n}throw new Error("unable to infer src variant")}decode(t,e=0){let n;const r=this.discriminator,a=r.decode(t,e),i=this.registry[a];if(void 0===i){const i=this.defaultLayout;let s=0;this.usesPrefixDiscriminator&&(s=r.layout.span),n=this.makeDestinationObject(),n[r.property]=a,n[i.property]=i.decode(t,e+s)}else n=i.decode(t,e);return n}encode(t,e,n=0){const r=this.getSourceVariant(t);if(void 0===r){const r=this.discriminator,a=this.defaultLayout;let i=0;return this.usesPrefixDiscriminator&&(i=r.layout.span),r.encode(t[r.property],e,n),i+a.encode(t[a.property],e,n+i)}return r.encode(t,e,n)}addVariant(t,e,n){const r=new ls(this,t,e,n);return this.registry[t]=r,r}getVariant(t,e=0){let n;return n=t instanceof Uint8Array?this.discriminator.decode(t,e):t,this.registry[n]}}Ri.Union=ds;class ls extends Fi{constructor(t,e,n,r){if(!(t instanceof ds))throw new TypeError("union must be a Union");if(!Number.isInteger(e)||0>e)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof n&&void 0===r&&(r=n,n=null),n){if(!(n instanceof Fi))throw new TypeError("layout must be a Layout");if(null!==t.defaultLayout&&0<=n.span&&n.span>t.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof r)throw new TypeError("variant must have a String property")}let a=t.span;0>t.span&&(a=n?n.span:0,0<=a&&t.usesPrefixDiscriminator&&(a+=t.discriminator.layout.span)),super(a,r),this.union=t,this.variant=e,this.layout=n||null}getSpan(t,e=0){if(0<=this.span)return this.span;let n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);let r=0;return this.layout&&(r=this.layout.getSpan(t,e+n)),n+r}decode(t,e=0){const n=this.makeDestinationObject();if(this!==this.union.getVariant(t,e))throw new Error("variant mismatch");let r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(t,e+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}encode(t,e,n=0){let r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(t,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,e,n);let a=r;if(this.layout&&(this.layout.encode(t[this.property],e,n+r),a+=this.layout.getSpan(e,n+r),0<=this.union.span&&a>this.union.span))throw new Error("encoded variant overruns containing union");return a}fromArray(t){if(this.layout)return this.layout.fromArray(t)}}function fs(t){return 0>t&&(t+=4294967296),t}Ri.VariantLayout=ls;class hs extends Fi{constructor(t,e,n){if(!(t instanceof Vi||t instanceof Zi))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof e&&void 0===n&&(n=e,e=!1),4<t.span)throw new RangeError("word cannot exceed 32 bits");super(t.span,n),this.word=t,this.msb=!!e,this.fields=[];let r=0;this._packedSetValue=function(t){return r=fs(t),this},this._packedGetValue=function(){return r}}decode(t,e=0){const n=this.makeDestinationObject(),r=this.word.decode(t,e);this._packedSetValue(r);for(const e of this.fields)void 0!==e.property&&(n[e.property]=e.decode(t));return n}encode(t,e,n=0){const r=this.word.decode(e,n);this._packedSetValue(r);for(const e of this.fields)if(void 0!==e.property){const n=t[e.property];void 0!==n&&e.encode(n)}return this.word.encode(this._packedGetValue(),e,n)}addField(t,e){const n=new ps(this,t,e);return this.fields.push(n),n}addBoolean(t){const e=new ms(this,t);return this.fields.push(e),e}fieldFor(t){if("string"!=typeof t)throw new TypeError("property must be string");for(const e of this.fields)if(e.property===t)return e}}Ri.BitStructure=hs;class ps{constructor(t,e,n){if(!(t instanceof hs))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(e)||0>=e)throw new TypeError("bits must be positive integer");const r=8*t.span,a=t.fields.reduce((t,e)=>t+e.bits,0);if(e+a>r)throw new Error("bits too long for span remainder ("+(r-a)+" of "+r+" remain)");this.container=t,this.bits=e,this.valueMask=(1<<e)-1,32===e&&(this.valueMask=4294967295),this.start=a,this.container.msb&&(this.start=r-a-e),this.wordMask=fs(this.valueMask<<this.start),this.property=n}decode(t,e){return fs(this.container._packedGetValue()&this.wordMask)>>>this.start}encode(t){if("number"!=typeof t||!Number.isInteger(t)||t!==fs(t&this.valueMask))throw new TypeError(Di("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);const e=this.container._packedGetValue(),n=fs(t<<this.start);this.container._packedSetValue(fs(e&~this.wordMask)|n)}}Ri.BitField=ps;let ms=class extends ps{constructor(t,e){super(t,1,e)}decode(t,e){return!!super.decode(t,e)}encode(t){"boolean"==typeof t&&(t=+t),super.encode(t)}};Ri.Boolean=ms;class ys extends Fi{constructor(t,e){if(!(t instanceof qi&&t.isCount()||Number.isInteger(t)&&0<=t))throw new TypeError("length must be positive integer or an unsigned integer ExternalLayout");let n=-1;t instanceof qi||(n=t),super(n,e),this.length=t}getSpan(t,e){let n=this.span;return 0>n&&(n=this.length.decode(t,e)),n}decode(t,e=0){let n=this.span;return 0>n&&(n=this.length.decode(t,e)),zi(t).slice(e,e+n)}encode(t,e,n){let r=this.length;if(this.length instanceof qi&&(r=t.length),!(t instanceof Uint8Array&&r===t.length))throw new TypeError(Di("Blob.encode",this)+" requires (length "+r+") Uint8Array as src");if(n+r>e.length)throw new RangeError("encoding overruns Uint8Array");const a=zi(t);return zi(e).write(a.toString("hex"),n,r,"hex"),this.length instanceof qi&&this.length.encode(r,e,n),r}}Ri.Blob=ys;class gs extends Fi{constructor(t){super(-1,t)}getSpan(t,e=0){Li(t);let n=e;for(;n<t.length&&0!==t[n];)n+=1;return 1+n-e}decode(t,e=0){const n=this.getSpan(t,e);return zi(t).slice(e,e+n-1).toString("utf-8")}encode(t,e,n=0){"string"!=typeof t&&(t=String(t));const r=Ui.Buffer.from(t,"utf8"),a=r.length;if(n+a>e.length)throw new RangeError("encoding overruns Buffer");const i=zi(e);return r.copy(i,n),i[n+a]=0,a+1}}Ri.CString=gs;class bs extends Fi{constructor(t,e){if("string"==typeof t&&void 0===e&&(e=t,t=void 0),void 0===t)t=-1;else if(!Number.isInteger(t))throw new TypeError("maxSpan must be an integer");super(-1,e),this.maxSpan=t}getSpan(t,e=0){return Li(t),t.length-e}decode(t,e=0){const n=this.getSpan(t,e);if(0<=this.maxSpan&&this.maxSpan<n)throw new RangeError("text length exceeds maxSpan");return zi(t).slice(e,e+n).toString("utf-8")}encode(t,e,n=0){"string"!=typeof t&&(t=String(t));const r=Ui.Buffer.from(t,"utf8"),a=r.length;if(0<=this.maxSpan&&this.maxSpan<a)throw new RangeError("text length exceeds maxSpan");if(n+a>e.length)throw new RangeError("encoding overruns Buffer");return r.copy(zi(e),n),a}}Ri.UTF8=bs;class vs extends Fi{constructor(t,e){super(0,e),this.value=t}decode(t,e){return this.value}encode(t,e,n){return 0}}Ri.Constant=vs,Ri.greedy=(t,e)=>new Gi(t,e);var ws=Ri.offset=(t,e,n)=>new Ki(t,e,n),xs=Ri.u8=t=>new Vi(1,t),ks=Ri.u16=t=>new Vi(2,t);Ri.u24=t=>new Vi(3,t);var As=Ri.u32=t=>new Vi(4,t);Ri.u40=t=>new Vi(5,t),Ri.u48=t=>new Vi(6,t);var Is=Ri.nu64=t=>new Qi(t);Ri.u16be=t=>new Zi(2,t),Ri.u24be=t=>new Zi(3,t),Ri.u32be=t=>new Zi(4,t),Ri.u40be=t=>new Zi(5,t),Ri.u48be=t=>new Zi(6,t),Ri.nu64be=t=>new Xi(t),Ri.s8=t=>new Hi(1,t),Ri.s16=t=>new Hi(2,t),Ri.s24=t=>new Hi(3,t),Ri.s32=t=>new Hi(4,t),Ri.s40=t=>new Hi(5,t),Ri.s48=t=>new Hi(6,t);var Es=Ri.ns64=t=>new ts(t);Ri.s16be=t=>new Wi(2,t),Ri.s24be=t=>new Wi(3,t),Ri.s32be=t=>new Wi(4,t),Ri.s40be=t=>new Wi(5,t),Ri.s48be=t=>new Wi(6,t),Ri.ns64be=t=>new es(t),Ri.f32=t=>new ns(t),Ri.f32be=t=>new rs(t),Ri.f64=t=>new as(t),Ri.f64be=t=>new is(t);var Ps=Ri.struct=(t,e,n)=>new os(t,e,n);Ri.bits=(t,e,n)=>new hs(t,e,n);var Ss=Ri.seq=(t,e,n)=>new ss(t,e,n);Ri.union=(t,e,n)=>new ds(t,e,n),Ri.unionLayoutDiscriminator=(t,e)=>new us(t,e);var _s=Ri.blob=(t,e)=>new ys(t,e);Ri.cstr=t=>new gs(t),Ri.utf8=(t,e)=>new bs(t,e),Ri.constant=(t,e)=>new vs(t,e);function Os(t){if(Array.isArray(t)){return"%5B"+t.map(Os).join("%2C%20")+"%5D"}return"bigint"==typeof t?`${t}n`:encodeURIComponent(String(null!=t&&null===Object.getPrototypeOf(t)?{...t}:t))}function Ts([t,e]){return`${t}=${Os(e)}`}function Bs(t,e={}){{let n=`Solana error #${t}; Decode this error by running \`npx @solana/errors decode -- ${t}`;return Object.keys(e).length&&(n+=` '${function(t){const e=Object.entries(t).map(Ts).join("&");return btoa(e)}(e)}'`),`${n}\``}}var Ms=class extends Error{cause=this.cause;context;constructor(...[t,e]){let n,r;if(e){const{cause:t,...a}=e;t&&(r={cause:t}),Object.keys(a).length>0&&(n=a)}super(Bs(t,n),r),this.context={__code:t,...n},this.name="SolanaError"}};function Cs(t){return"fixedSize"in t&&"number"==typeof t.fixedSize}function Ns(t){return 1!==t?.endian}function js(t){return function(t){return Object.freeze({...t,encode:e=>{const n=new Uint8Array(function(t,e){return"fixedSize"in e?e.fixedSize:e.getSizeFromValue(t)}(e,t));return t.write(e,n,0),n}})}({fixedSize:t.size,write(e,n,r){t.range&&function(t,e,n,r){if(r<e||r>n)throw new Ms(8078011,{codecDescription:t,max:n,min:e,value:r})}(t.name,t.range[0],t.range[1],e);const a=new ArrayBuffer(t.size);return t.set(new DataView(a),e,Ns(t.config)),n.set(new Uint8Array(a),r),r+t.size}})}function Rs(t){return function(t){return Object.freeze({...t,decode:(e,n=0)=>t.read(e,n)[0]})}({fixedSize:t.size,read(e,n=0){!function(t,e,n=0){if(e.length-n<=0)throw new Ms(8078e3,{codecDescription:t})}(t.name,e,n),function(t,e,n,r=0){const a=n.length-r;if(a<e)throw new Ms(8078001,{bytesLength:a,codecDescription:t,expected:e})}(t.name,t.size,e,n);const r=new DataView(function(t,e,n){const r=t.byteOffset+(e??0),a=n??t.byteLength;return t.buffer.slice(r,r+a)}(e,n,t.size));return[t.get(r,Ns(t.config)),n+t.size]}})}var Us=(t={})=>function(t,e){if(Cs(t)!==Cs(e))throw new Ms(8078004);if(Cs(t)&&Cs(e)&&t.fixedSize!==e.fixedSize)throw new Ms(8078005,{decoderFixedSize:e.fixedSize,encoderFixedSize:t.fixedSize});if(!Cs(t)&&!Cs(e)&&t.maxSize!==e.maxSize)throw new Ms(8078006,{decoderMaxSize:e.maxSize,encoderMaxSize:t.maxSize});return{...e,...t,decode:e.decode,encode:t.encode,read:e.read,write:t.write}}(((t={})=>js({config:t,name:"u64",range:[0n,BigInt("0xffffffffffffffff")],set:(t,e,n)=>t.setBigUint64(0,BigInt(e),n),size:8}))(t),((t={})=>Rs({config:t,get:(t,e)=>t.getBigUint64(0,e),name:"u64",size:8}))(t));class Ls extends TypeError{constructor(t,e){let n;const{message:r,explanation:a,...i}=t,{path:s}=t,o=0===s.length?r:`At path: ${s.join(".")} -- ${r}`;super(a??o),null!=a&&(this.cause=o),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>n??(n=[t,...e()])}}function zs(t){return"object"==typeof t&&null!=t}function Fs(t){return zs(t)&&!Array.isArray(t)}function Ds(t){return"symbol"==typeof t?t.toString():"string"==typeof t?JSON.stringify(t):`${t}`}function qs(t,e,n,r){if(!0===t)return;!1===t?t={}:"string"==typeof t&&(t={message:t});const{path:a,branch:i}=e,{type:s}=n,{refinement:o,message:c=`Expected a value of type \`${s}\`${o?` with refinement \`${o}\``:""}, but received: \`${Ds(r)}\``}=t;return{value:r,type:s,refinement:o,key:a[a.length-1],path:a,branch:i,...t,message:c}}function*Gs(t,e,n,r){(function(t){return zs(t)&&"function"==typeof t[Symbol.iterator]})(t)||(t=[t]);for(const a of t){const t=qs(a,e,n,r);t&&(yield t)}}function*Ks(t,e,n={}){const{path:r=[],branch:a=[t],coerce:i=!1,mask:s=!1}=n,o={path:r,branch:a,mask:s};i&&(t=e.coercer(t,o));let c="valid";for(const r of e.validator(t,o))r.explanation=n.message,c="not_valid",yield[r,void 0];for(let[u,d,l]of e.entries(t,o)){const e=Ks(d,l,{path:void 0===u?r:[...r,u],branch:void 0===u?a:[...a,d],coerce:i,mask:s,message:n.message});for(const n of e)n[0]?(c=null!=n[0].refinement?"not_refined":"not_valid",yield[n[0],void 0]):i&&(d=n[1],void 0===u?t=d:t instanceof Map?t.set(u,d):t instanceof Set?t.add(d):zs(t)&&(void 0!==d||u in t)&&(t[u]=d))}if("not_valid"!==c)for(const r of e.refiner(t,o))r.explanation=n.message,c="not_refined",yield[r,void 0];"valid"===c&&(yield[void 0,t])}let Vs=class{constructor(t){const{type:e,schema:n,validator:r,refiner:a,coercer:i=t=>t,entries:s=function*(){}}=t;this.type=e,this.schema=n,this.entries=s,this.coercer=i,this.validator=r?(t,e)=>Gs(r(t,e),e,this,t):()=>[],this.refiner=a?(t,e)=>Gs(a(t,e),e,this,t):()=>[]}assert(t,e){return function(t,e,n){const r=Ws(t,e,{message:n});if(r[0])throw r[0]}(t,this,e)}create(t,e){return Zs(t,this,e)}is(t){return Hs(t,this)}mask(t,e){return function(t,e,n){const r=Ws(t,e,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}(t,this,e)}validate(t,e={}){return Ws(t,this,e)}};function Zs(t,e,n){const r=Ws(t,e,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}function Hs(t,e){return!Ws(t,e)[0]}function Ws(t,e,n={}){const r=Ks(t,e,n),a=function(t){const{done:e,value:n}=t.next();return e?void 0:n}(r);if(a[0]){const t=new Ls(a[0],function*(){for(const t of r)t[0]&&(yield t[0])});return[t,void 0]}return[void 0,a[1]]}function Js(t,e){return new Vs({type:t,schema:null,validator:e})}function Ys(t){return new Vs({type:"array",schema:t,*entries(e){if(t&&Array.isArray(e))for(const[n,r]of e.entries())yield[n,r,t]},coercer:t=>Array.isArray(t)?t.slice():t,validator:t=>Array.isArray(t)||`Expected an array value, but received: ${Ds(t)}`})}function $s(){return Js("boolean",t=>"boolean"==typeof t)}function Qs(t){return Js("instance",e=>e instanceof t||`Expected a \`${t.name}\` instance, but received: ${Ds(e)}`)}function Xs(t){const e=Ds(t),n=typeof t;return new Vs({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?t:null,validator:n=>n===t||`Expected the literal \`${e}\`, but received: ${Ds(n)}`})}function to(t){return new Vs({...t,validator:(e,n)=>null===e||t.validator(e,n),refiner:(e,n)=>null===e||t.refiner(e,n)})}function eo(){return Js("number",t=>"number"==typeof t&&!isNaN(t)||`Expected a number, but received: ${Ds(t)}`)}function no(t){return new Vs({...t,validator:(e,n)=>void 0===e||t.validator(e,n),refiner:(e,n)=>void 0===e||t.refiner(e,n)})}function ro(t,e){return new Vs({type:"record",schema:null,*entries(n){if(zs(n))for(const r in n){const a=n[r];yield[r,r,t],yield[r,a,e]}},validator:t=>Fs(t)||`Expected an object, but received: ${Ds(t)}`,coercer:t=>Fs(t)?{...t}:t})}function ao(){return Js("string",t=>"string"==typeof t||`Expected a string, but received: ${Ds(t)}`)}function io(t){const e=Js("never",()=>!1);return new Vs({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){const r=Math.max(t.length,n.length);for(let a=0;a<r;a++)yield[a,n[a],t[a]||e]}},validator:t=>Array.isArray(t)||`Expected an array, but received: ${Ds(t)}`,coercer:t=>Array.isArray(t)?t.slice():t})}function so(t){const e=Object.keys(t);return new Vs({type:"type",schema:t,*entries(n){if(zs(n))for(const r of e)yield[r,n[r],t[r]]},validator:t=>Fs(t)||`Expected an object, but received: ${Ds(t)}`,coercer:t=>Fs(t)?{...t}:t})}function oo(t){const e=t.map(t=>t.type).join(" | ");return new Vs({type:"union",schema:null,coercer(e,n){for(const r of t){const[t,a]=r.validate(e,{coerce:!0,mask:n.mask});if(!t)return a}return e},validator(n,r){const a=[];for(const e of t){const[...t]=Ks(n,e,r),[i]=t;if(!i[0])return[];for(const[e]of t)e&&a.push(e)}return[`Expected the value to satisfy a union of \`${e}\`, but received: ${Ds(n)}`,...a]}})}function co(){return Js("unknown",()=>!0)}function uo(t,e,n){return new Vs({...t,coercer:(r,a)=>Hs(r,e)?t.coercer(n(r,a),a):t.coercer(r,a)})}var lo,fo=new Uint8Array(16);function ho(){if(!lo&&!(lo="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return lo(fo)}var po=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function mo(t){return"string"==typeof t&&po.test(t)}for(var yo,go,bo=[],vo=0;vo<256;++vo)bo.push((vo+256).toString(16).substr(1));function wo(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(bo[t[e+0]]+bo[t[e+1]]+bo[t[e+2]]+bo[t[e+3]]+"-"+bo[t[e+4]]+bo[t[e+5]]+"-"+bo[t[e+6]]+bo[t[e+7]]+"-"+bo[t[e+8]]+bo[t[e+9]]+"-"+bo[t[e+10]]+bo[t[e+11]]+bo[t[e+12]]+bo[t[e+13]]+bo[t[e+14]]+bo[t[e+15]]).toLowerCase();if(!mo(n))throw TypeError("Stringified UUID is invalid");return n}var xo=0,ko=0;function Ao(t){if(!mo(t))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n}function Io(t,e,n){function r(t,r,a,i){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],n=0;n<t.length;++n)e.push(t.charCodeAt(n));return e}(t)),"string"==typeof r&&(r=Ao(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+t.length);if(s.set(r),s.set(t,r.length),(s=n(s))[6]=15&s[6]|e,s[8]=63&s[8]|128,a){i=i||0;for(var o=0;o<16;++o)a[i+o]=s[o];return a}return wo(s)}try{r.name=t}catch(t){}return r.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",r.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",r}function Eo(t){return 14+(t+64>>>9<<4)+1}function Po(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function So(t,e,n,r,a,i){return Po((s=Po(Po(e,t),Po(r,i)))<<(o=a)|s>>>32-o,n);var s,o}function _o(t,e,n,r,a,i,s){return So(e&n|~e&r,t,e,a,i,s)}function Oo(t,e,n,r,a,i,s){return So(e&r|n&~r,t,e,a,i,s)}function To(t,e,n,r,a,i,s){return So(e^n^r,t,e,a,i,s)}function Bo(t,e,n,r,a,i,s){return So(n^(e|~r),t,e,a,i,s)}var Mo=Io("v3",48,function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var n=0;n<e.length;++n)t[n]=e.charCodeAt(n)}return function(t){for(var e=[],n=32*t.length,r="0123456789abcdef",a=0;a<n;a+=8){var i=t[a>>5]>>>a%32&255,s=parseInt(r.charAt(i>>>4&15)+r.charAt(15&i),16);e.push(s)}return e}(function(t,e){t[e>>5]|=128<<e%32,t[Eo(e)-1]=e;for(var n=1732584193,r=-271733879,a=-1732584194,i=271733878,s=0;s<t.length;s+=16){var o=n,c=r,u=a,d=i;n=_o(n,r,a,i,t[s],7,-680876936),i=_o(i,n,r,a,t[s+1],12,-389564586),a=_o(a,i,n,r,t[s+2],17,606105819),r=_o(r,a,i,n,t[s+3],22,-1044525330),n=_o(n,r,a,i,t[s+4],7,-176418897),i=_o(i,n,r,a,t[s+5],12,1200080426),a=_o(a,i,n,r,t[s+6],17,-1473231341),r=_o(r,a,i,n,t[s+7],22,-45705983),n=_o(n,r,a,i,t[s+8],7,1770035416),i=_o(i,n,r,a,t[s+9],12,-1958414417),a=_o(a,i,n,r,t[s+10],17,-42063),r=_o(r,a,i,n,t[s+11],22,-1990404162),n=_o(n,r,a,i,t[s+12],7,1804603682),i=_o(i,n,r,a,t[s+13],12,-40341101),a=_o(a,i,n,r,t[s+14],17,-1502002290),n=Oo(n,r=_o(r,a,i,n,t[s+15],22,1236535329),a,i,t[s+1],5,-165796510),i=Oo(i,n,r,a,t[s+6],9,-1069501632),a=Oo(a,i,n,r,t[s+11],14,643717713),r=Oo(r,a,i,n,t[s],20,-373897302),n=Oo(n,r,a,i,t[s+5],5,-701558691),i=Oo(i,n,r,a,t[s+10],9,38016083),a=Oo(a,i,n,r,t[s+15],14,-660478335),r=Oo(r,a,i,n,t[s+4],20,-405537848),n=Oo(n,r,a,i,t[s+9],5,568446438),i=Oo(i,n,r,a,t[s+14],9,-1019803690),a=Oo(a,i,n,r,t[s+3],14,-187363961),r=Oo(r,a,i,n,t[s+8],20,1163531501),n=Oo(n,r,a,i,t[s+13],5,-1444681467),i=Oo(i,n,r,a,t[s+2],9,-51403784),a=Oo(a,i,n,r,t[s+7],14,1735328473),n=To(n,r=Oo(r,a,i,n,t[s+12],20,-1926607734),a,i,t[s+5],4,-378558),i=To(i,n,r,a,t[s+8],11,-2022574463),a=To(a,i,n,r,t[s+11],16,1839030562),r=To(r,a,i,n,t[s+14],23,-35309556),n=To(n,r,a,i,t[s+1],4,-1530992060),i=To(i,n,r,a,t[s+4],11,1272893353),a=To(a,i,n,r,t[s+7],16,-155497632),r=To(r,a,i,n,t[s+10],23,-1094730640),n=To(n,r,a,i,t[s+13],4,681279174),i=To(i,n,r,a,t[s],11,-358537222),a=To(a,i,n,r,t[s+3],16,-722521979),r=To(r,a,i,n,t[s+6],23,76029189),n=To(n,r,a,i,t[s+9],4,-640364487),i=To(i,n,r,a,t[s+12],11,-421815835),a=To(a,i,n,r,t[s+15],16,530742520),n=Bo(n,r=To(r,a,i,n,t[s+2],23,-995338651),a,i,t[s],6,-198630844),i=Bo(i,n,r,a,t[s+7],10,1126891415),a=Bo(a,i,n,r,t[s+14],15,-1416354905),r=Bo(r,a,i,n,t[s+5],21,-57434055),n=Bo(n,r,a,i,t[s+12],6,1700485571),i=Bo(i,n,r,a,t[s+3],10,-1894986606),a=Bo(a,i,n,r,t[s+10],15,-1051523),r=Bo(r,a,i,n,t[s+1],21,-2054922799),n=Bo(n,r,a,i,t[s+8],6,1873313359),i=Bo(i,n,r,a,t[s+15],10,-30611744),a=Bo(a,i,n,r,t[s+6],15,-1560198380),r=Bo(r,a,i,n,t[s+13],21,1309151649),n=Bo(n,r,a,i,t[s+4],6,-145523070),i=Bo(i,n,r,a,t[s+11],10,-1120210379),a=Bo(a,i,n,r,t[s+2],15,718787259),r=Bo(r,a,i,n,t[s+9],21,-343485551),n=Po(n,o),r=Po(r,c),a=Po(a,u),i=Po(i,d)}return[n,r,a,i]}(function(t){if(0===t.length)return[];for(var e=8*t.length,n=new Uint32Array(Eo(e)),r=0;r<e;r+=8)n[r>>5]|=(255&t[r/8])<<r%32;return n}(t),8*t.length))});function Co(t,e,n,r){switch(t){case 0:return e&n^~e&r;case 1:case 3:return e^n^r;case 2:return e&n^e&r^n&r}}function No(t,e){return t<<e|t>>>32-e}var jo=Io("v5",80,function(t){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var r=unescape(encodeURIComponent(t));t=[];for(var a=0;a<r.length;++a)t.push(r.charCodeAt(a))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var i=t.length/4+2,s=Math.ceil(i/16),o=new Array(s),c=0;c<s;++c){for(var u=new Uint32Array(16),d=0;d<16;++d)u[d]=t[64*c+4*d]<<24|t[64*c+4*d+1]<<16|t[64*c+4*d+2]<<8|t[64*c+4*d+3];o[c]=u}o[s-1][14]=8*(t.length-1)/Math.pow(2,32),o[s-1][14]=Math.floor(o[s-1][14]),o[s-1][15]=8*(t.length-1)&4294967295;for(var l=0;l<s;++l){for(var f=new Uint32Array(80),h=0;h<16;++h)f[h]=o[l][h];for(var p=16;p<80;++p)f[p]=No(f[p-3]^f[p-8]^f[p-14]^f[p-16],1);for(var m=n[0],y=n[1],g=n[2],b=n[3],v=n[4],w=0;w<80;++w){var x=Math.floor(w/20),k=No(m,5)+Co(x,y,g,b)+v+e[x]+f[w]>>>0;v=b,b=g,g=No(y,30)>>>0,y=m,m=k}n[0]=n[0]+m>>>0,n[1]=n[1]+y>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+b>>>0,n[4]=n[4]+v>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]});var Ro=Object.freeze({__proto__:null,NIL:"00000000-0000-0000-0000-000000000000",parse:Ao,stringify:wo,v1:function(t,e,n){var r=e&&n||0,a=e||new Array(16),i=(t=t||{}).node||yo,s=void 0!==t.clockseq?t.clockseq:go;if(null==i||null==s){var o=t.random||(t.rng||ho)();null==i&&(i=yo=[1|o[0],o[1],o[2],o[3],o[4],o[5]]),null==s&&(s=go=16383&(o[6]<<8|o[7]))}var c=void 0!==t.msecs?t.msecs:Date.now(),u=void 0!==t.nsecs?t.nsecs:ko+1,d=c-xo+(u-ko)/1e4;if(d<0&&void 0===t.clockseq&&(s=s+1&16383),(d<0||c>xo)&&void 0===t.nsecs&&(u=0),u>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");xo=c,ko=u,go=s;var l=(1e4*(268435455&(c+=122192928e5))+u)%4294967296;a[r++]=l>>>24&255,a[r++]=l>>>16&255,a[r++]=l>>>8&255,a[r++]=255&l;var f=c/4294967296*1e4&268435455;a[r++]=f>>>8&255,a[r++]=255&f,a[r++]=f>>>24&15|16,a[r++]=f>>>16&255,a[r++]=s>>>8|128,a[r++]=255&s;for(var h=0;h<6;++h)a[r+h]=i[h];return e||wo(a)},v3:Mo,v4:function(t,e,n){var r=(t=t||{}).random||(t.rng||ho)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var a=0;a<16;++a)e[n+a]=r[a];return e}return wo(r)},v5:jo,validate:mo,version:function(t){if(!mo(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)}}),Uo=k(Ro);const Lo=Uo.v4;var zo=function(t,e,n,r){if("string"!=typeof t)throw new TypeError(t+" must be a string");const a="number"==typeof(r=r||{}).version?r.version:2;if(1!==a&&2!==a)throw new TypeError(a+" must be 1 or 2");const i={method:t};if(2===a&&(i.jsonrpc="2.0"),e){if("object"!=typeof e&&!Array.isArray(e))throw new TypeError(e+" must be an object, array or omitted");i.params=e}if(void 0===n){const t="function"==typeof r.generator?r.generator:function(){return Lo()};i.id=t(i,r)}else 2===a&&null===n?r.notificationIdNull&&(i.id=null):i.id=n;return i};const Fo=Uo.v4,Do=zo,qo=function(t,e){if(!(this instanceof qo))return new qo(t,e);e||(e={}),this.options={reviver:void 0!==e.reviver?e.reviver:null,replacer:void 0!==e.replacer?e.replacer:null,generator:void 0!==e.generator?e.generator:function(){return Fo()},version:void 0!==e.version?e.version:2,notificationIdNull:"boolean"==typeof e.notificationIdNull&&e.notificationIdNull},this.callServer=t};qo.prototype.request=function(t,e,n,r){const a=this;let i=null;const s=Array.isArray(t)&&"function"==typeof e;if(1===this.options.version&&s)throw new TypeError("JSON-RPC 1.0 does not support batching");if(s||!s&&t&&"object"==typeof t&&"function"==typeof e)r=e,i=t;else{"function"==typeof n&&(r=n,n=void 0);const a="function"==typeof r;try{i=Do(t,e,n,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(t){if(a)return void r(t);throw t}if(!a)return i}let o;try{o=JSON.stringify(i,this.options.replacer)}catch(t){return void r(t)}return this.callServer(o,function(t,e){a._parseResponse(t,e,r)}),i},qo.prototype._parseResponse=function(t,e,n){if(t)return void n(t);if(!e)return void n();let r;try{r=JSON.parse(e,this.options.reviver)}catch(t){return void n(t)}if(3!==n.length)n(null,r);else{if(Array.isArray(r)){const t=function(t){return void 0!==t.error},e=function(e){return!t(e)};return void n(null,r.filter(t),r.filter(e))}n(null,r.error,r.result)}};class Go extends vn{constructor(t,e){super(),this.finished=!1,this.destroyed=!1,function(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.createHasher");un(t.outputLen),un(t.blockLen)}(t);const n=bn(e);if(this.iHash=t.create(),"function"!=typeof this.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const r=this.blockLen,a=new Uint8Array(r);a.set(n.length>r?t.create().update(n).digest():n);for(let t=0;t<a.length;t++)a[t]^=54;this.iHash.update(a),this.oHash=t.create();for(let t=0;t<a.length;t++)a[t]^=106;this.oHash.update(a),hn(a)}update(t){return ln(this),this.iHash.update(t),this}digestInto(t){ln(this),dn(t,this.outputLen),this.finished=!0,this.iHash.digestInto(t),this.oHash.update(t),this.oHash.digestInto(t),this.destroy()}digest(){const t=new Uint8Array(this.oHash.outputLen);return this.digestInto(t),t}_cloneInto(t){t||(t=Object.create(Object.getPrototypeOf(this),{}));const{oHash:e,iHash:n,finished:r,destroyed:a,blockLen:i,outputLen:s}=this;return t.finished=r,t.destroyed=a,t.blockLen=i,t.outputLen=s,t.oHash=e._cloneInto(t.oHash),t.iHash=n._cloneInto(t.iHash),t}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const Ko=(t,e,n)=>new Go(t,e).update(n).digest();
|
|
7
21
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
8
|
-
const If=BigInt(0),Af=BigInt(1);function Ef(t,e){const n=e.negate();return t?n:e}function Of(t,e){if(!Number.isSafeInteger(t)||t<=0||t>e)throw new Error("invalid window size, expected [1.."+e+"], got W="+t)}function Sf(t,e){Of(t,e);const n=2**t;return{windows:Math.ceil(e/t)+1,windowSize:2**(t-1),mask:Qi(t),maxNumber:n,shiftBy:BigInt(t)}}function Tf(t,e,n){const{windowSize:r,mask:a,maxNumber:s,shiftBy:i}=n;let o=Number(t&a),c=t>>i;o>r&&(o-=s,c+=Af);const u=e*r;return{nextN:c,offset:u+Math.abs(o)-1,isZero:0===o,isNeg:o<0,isNegF:e%2!=0,offsetF:u}}const Cf=new WeakMap,Bf=new WeakMap;function Nf(t){return Bf.get(t)||1}function jf(t,e,n,r){!function(t,e){if(!Array.isArray(t))throw new Error("array expected");t.forEach((t,n)=>{if(!(t instanceof e))throw new Error("invalid point at index "+n)})}(n,t),function(t,e){if(!Array.isArray(t))throw new Error("array of scalars expected");t.forEach((t,n)=>{if(!e.isValid(t))throw new Error("invalid scalar at index "+n)})}(r,e);const a=n.length,s=r.length;if(a!==s)throw new Error("arrays of points and scalars must have equal length");const i=t.ZERO,o=function(t){let e;for(e=0;t>Ii;t>>=Ai,e+=1);return e}(BigInt(a));let c=1;o>12?c=o-3:o>4?c=o-2:o>0&&(c=2);const u=Qi(c),d=new Array(Number(u)+1).fill(i);let l=i;for(let t=Math.floor((e.BITS-1)/c)*c;t>=0;t-=c){d.fill(i);for(let e=0;e<s;e++){const a=r[e],s=Number(a>>BigInt(t)&u);d[s]=d[s].add(n[e])}let e=i;for(let t=d.length-1,n=i;t>0;t--)n=n.add(d[t]),e=e.add(n);if(l=l.add(e),0!==t)for(let t=0;t<c;t++)l=l.double()}return l}function Uf(t){return eo(t.Fp,yf.reduce((t,e)=>(t[e]="function",t),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),eo(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...wf(t.n,t.nBitLength),...t,p:t.Fp.ORDER})}
|
|
9
|
-
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Mf(t){void 0!==t.lowS&&Si("lowS",t.lowS),void 0!==t.prehash&&Si("prehash",t.prehash)}class Rf extends Error{constructor(t=""){super(t)}}const Ff={Err:Rf,_tlv:{encode:(t,e)=>{const{Err:n}=Ff;if(t<0||t>256)throw new n("tlv.encode: wrong tag");if(1&e.length)throw new n("tlv.encode: unpadded data");const r=e.length/2,a=Ti(r);if(a.length/2&128)throw new n("tlv.encode: long form length too big");const s=r>127?Ti(a.length/2|128):"";return Ti(t)+s+a+e},decode(t,e){const{Err:n}=Ff;let r=0;if(t<0||t>256)throw new n("tlv.encode: wrong tag");if(e.length<2||e[r++]!==t)throw new n("tlv.decode: wrong tlv");const a=e[r++];let s=0;if(!!(128&a)){const t=127&a;if(!t)throw new n("tlv.decode(long): indefinite length not supported");if(t>4)throw new n("tlv.decode(long): byte length is too big");const i=e.subarray(r,r+t);if(i.length!==t)throw new n("tlv.decode: length bytes not complete");if(0===i[0])throw new n("tlv.decode(long): zero leftmost byte");for(const t of i)s=s<<8|t;if(r+=t,s<128)throw new n("tlv.decode(long): not minimal encoding")}else s=a;const i=e.subarray(r,r+s);if(i.length!==s)throw new n("tlv.decode: wrong value length");return{v:i,l:e.subarray(r+s)}}},_int:{encode(t){const{Err:e}=Ff;if(t<zf)throw new e("integer: negative integers are not allowed");let n=Ti(t);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new e("unexpected DER parsing assertion: unpadded hex");return n},decode(t){const{Err:e}=Ff;if(128&t[0])throw new e("invalid signature integer: negative");if(0===t[0]&&!(128&t[1]))throw new e("invalid signature integer: unnecessary leading zero");return Gi(t)}},toSig(t){const{Err:e,_int:n,_tlv:r}=Ff,a=Ki("signature",t),{v:s,l:i}=r.decode(48,a);if(i.length)throw new e("invalid signature: left bytes after parsing");const{v:o,l:c}=r.decode(2,s),{v:u,l:d}=r.decode(2,c);if(d.length)throw new e("invalid signature: left bytes after parsing");return{r:n.decode(o),s:n.decode(u)}},hexFromSig(t){const{_tlv:e,_int:n}=Ff,r=e.encode(2,n.encode(t.r))+e.encode(2,n.encode(t.s));return e.encode(48,r)}};function _f(t,e){return ji(Hi(t,e))}const zf=BigInt(0),Df=BigInt(1);BigInt(2);const Lf=BigInt(3),Gf=BigInt(4);function qf(t){const e=function(t){const e=Uf(t);eo(e,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:n,Fp:r,a:a}=e;if(n){if(!r.eql(a,r.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...e})}(t),{Fp:n}=e,r=xf(e.n,e.nBitLength),a=e.toBytes||((t,e,r)=>{const a=e.toAffine();return Wi(Uint8Array.from([4]),n.toBytes(a.x),n.toBytes(a.y))}),s=e.fromBytes||(t=>{const e=t.subarray(1);return{x:n.fromBytes(e.subarray(0,n.BYTES)),y:n.fromBytes(e.subarray(n.BYTES,2*n.BYTES))}});function i(t){const{a:r,b:a}=e,s=n.sqr(t),i=n.mul(s,t);return n.add(n.add(i,n.mul(t,r)),a)}function o(t,e){const r=n.sqr(e),a=i(t);return n.eql(r,a)}if(!o(e.Gx,e.Gy))throw new Error("bad curve params: generator point");const c=n.mul(n.pow(e.a,Lf),Gf),u=n.mul(n.sqr(e.b),BigInt(27));if(n.is0(n.add(c,u)))throw new Error("bad curve params: a or b");function d(t){const{allowedPrivateKeyLengths:n,nByteLength:r,wrapPrivateKey:a,n:s}=e;if(n&&"bigint"!=typeof t){if(Ei(t)&&(t=ji(t)),"string"!=typeof t||!n.includes(t.length))throw new Error("invalid private key");t=t.padStart(2*r,"0")}let i;try{i="bigint"==typeof t?t:Gi(Ki("private key",t,r))}catch(e){throw new Error("invalid private key, expected hex or "+r+" bytes, got "+typeof t)}return a&&(i=lf(i,s)),Yi("private key",i,Df,s),i}function l(t){if(!(t instanceof m))throw new Error("ProjectivePoint expected")}const f=no((t,e)=>{const{px:r,py:a,pz:s}=t;if(n.eql(s,n.ONE))return{x:r,y:a};const i=t.is0();null==e&&(e=i?n.ONE:n.inv(s));const o=n.mul(r,e),c=n.mul(a,e),u=n.mul(s,e);if(i)return{x:n.ZERO,y:n.ZERO};if(!n.eql(u,n.ONE))throw new Error("invZ was invalid");return{x:o,y:c}}),p=no(t=>{if(t.is0()){if(e.allowInfinityPoint&&!n.is0(t.py))return;throw new Error("bad point: ZERO")}const{x:r,y:a}=t.toAffine();if(!n.isValid(r)||!n.isValid(a))throw new Error("bad point: x or y not FE");if(!o(r,a))throw new Error("bad point: equation left != right");if(!t.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class m{constructor(t,e,r){if(null==t||!n.isValid(t))throw new Error("x required");if(null==e||!n.isValid(e)||n.is0(e))throw new Error("y required");if(null==r||!n.isValid(r))throw new Error("z required");this.px=t,this.py=e,this.pz=r,Object.freeze(this)}static fromAffine(t){const{x:e,y:r}=t||{};if(!t||!n.isValid(e)||!n.isValid(r))throw new Error("invalid affine point");if(t instanceof m)throw new Error("projective point not allowed");const a=t=>n.eql(t,n.ZERO);return a(e)&&a(r)?m.ZERO:new m(e,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(t){const e=gf(n,t.map(t=>t.pz));return t.map((t,n)=>t.toAffine(e[n])).map(m.fromAffine)}static fromHex(t){const e=m.fromAffine(s(Ki("pointHex",t)));return e.assertValidity(),e}static fromPrivateKey(t){return m.BASE.multiply(d(t))}static msm(t,e){return jf(m,r,t,e)}_setWindowSize(t){y.setWindowSize(this,t)}assertValidity(){p(this)}hasEvenY(){const{y:t}=this.toAffine();if(n.isOdd)return!n.isOdd(t);throw new Error("Field doesn't support isOdd")}equals(t){l(t);const{px:e,py:r,pz:a}=this,{px:s,py:i,pz:o}=t,c=n.eql(n.mul(e,o),n.mul(s,a)),u=n.eql(n.mul(r,o),n.mul(i,a));return c&&u}negate(){return new m(this.px,n.neg(this.py),this.pz)}double(){const{a:t,b:r}=e,a=n.mul(r,Lf),{px:s,py:i,pz:o}=this;let c=n.ZERO,u=n.ZERO,d=n.ZERO,l=n.mul(s,s),f=n.mul(i,i),p=n.mul(o,o),h=n.mul(s,i);return h=n.add(h,h),d=n.mul(s,o),d=n.add(d,d),c=n.mul(t,d),u=n.mul(a,p),u=n.add(c,u),c=n.sub(f,u),u=n.add(f,u),u=n.mul(c,u),c=n.mul(h,c),d=n.mul(a,d),p=n.mul(t,p),h=n.sub(l,p),h=n.mul(t,h),h=n.add(h,d),d=n.add(l,l),l=n.add(d,l),l=n.add(l,p),l=n.mul(l,h),u=n.add(u,l),p=n.mul(i,o),p=n.add(p,p),l=n.mul(p,h),c=n.sub(c,l),d=n.mul(p,f),d=n.add(d,d),d=n.add(d,d),new m(c,u,d)}add(t){l(t);const{px:r,py:a,pz:s}=this,{px:i,py:o,pz:c}=t;let u=n.ZERO,d=n.ZERO,f=n.ZERO;const p=e.a,h=n.mul(e.b,Lf);let b=n.mul(r,i),y=n.mul(a,o),g=n.mul(s,c),v=n.add(r,a),w=n.add(i,o);v=n.mul(v,w),w=n.add(b,y),v=n.sub(v,w),w=n.add(r,s);let x=n.add(i,c);return w=n.mul(w,x),x=n.add(b,g),w=n.sub(w,x),x=n.add(a,s),u=n.add(o,c),x=n.mul(x,u),u=n.add(y,g),x=n.sub(x,u),f=n.mul(p,w),u=n.mul(h,g),f=n.add(u,f),u=n.sub(y,f),f=n.add(y,f),d=n.mul(u,f),y=n.add(b,b),y=n.add(y,b),g=n.mul(p,g),w=n.mul(h,w),y=n.add(y,g),g=n.sub(b,g),g=n.mul(p,g),w=n.add(w,g),b=n.mul(y,w),d=n.add(d,b),b=n.mul(x,w),u=n.mul(v,u),u=n.sub(u,b),b=n.mul(v,y),f=n.mul(x,f),f=n.add(f,b),new m(u,d,f)}subtract(t){return this.add(t.negate())}is0(){return this.equals(m.ZERO)}wNAF(t){return y.wNAFCached(this,t,m.normalizeZ)}multiplyUnsafe(t){const{endo:r,n:a}=e;Yi("scalar",t,zf,a);const s=m.ZERO;if(t===zf)return s;if(this.is0()||t===Df)return this;if(!r||y.hasPrecomputes(this))return y.wNAFCachedUnsafe(this,t,m.normalizeZ);let{k1neg:i,k1:o,k2neg:c,k2:u}=r.splitScalar(t),d=s,l=s,f=this;for(;o>zf||u>zf;)o&Df&&(d=d.add(f)),u&Df&&(l=l.add(f)),f=f.double(),o>>=Df,u>>=Df;return i&&(d=d.negate()),c&&(l=l.negate()),l=new m(n.mul(l.px,r.beta),l.py,l.pz),d.add(l)}multiply(t){const{endo:r,n:a}=e;let s,i;if(Yi("scalar",t,Df,a),r){const{k1neg:e,k1:a,k2neg:o,k2:c}=r.splitScalar(t);let{p:u,f:d}=this.wNAF(a),{p:l,f:f}=this.wNAF(c);u=y.constTimeNegate(e,u),l=y.constTimeNegate(o,l),l=new m(n.mul(l.px,r.beta),l.py,l.pz),s=u.add(l),i=d.add(f)}else{const{p:e,f:n}=this.wNAF(t);s=e,i=n}return m.normalizeZ([s,i])[0]}multiplyAndAddUnsafe(t,e,n){const r=m.BASE,a=(t,e)=>e!==zf&&e!==Df&&t.equals(r)?t.multiply(e):t.multiplyUnsafe(e),s=a(this,e).add(a(t,n));return s.is0()?void 0:s}toAffine(t){return f(this,t)}isTorsionFree(){const{h:t,isTorsionFree:n}=e;if(t===Df)return!0;if(n)return n(m,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:t,clearCofactor:n}=e;return t===Df?this:n?n(m,this):this.multiplyUnsafe(e.h)}toRawBytes(t=!0){return Si("isCompressed",t),this.assertValidity(),a(m,this,t)}toHex(t=!0){return Si("isCompressed",t),ji(this.toRawBytes(t))}}m.BASE=new m(e.Gx,e.Gy,n.ONE),m.ZERO=new m(n.ZERO,n.ONE,n.ZERO);const{endo:h,nBitLength:b}=e,y=function(t,e){return{constTimeNegate:Ef,hasPrecomputes:t=>1!==Nf(t),unsafeLadder(e,n,r=t.ZERO){let a=e;for(;n>If;)n&Af&&(r=r.add(a)),a=a.double(),n>>=Af;return r},precomputeWindow(t,n){const{windows:r,windowSize:a}=Sf(n,e),s=[];let i=t,o=i;for(let t=0;t<r;t++){o=i,s.push(o);for(let t=1;t<a;t++)o=o.add(i),s.push(o);i=o.double()}return s},wNAF(n,r,a){let s=t.ZERO,i=t.BASE;const o=Sf(n,e);for(let t=0;t<o.windows;t++){const{nextN:e,offset:n,isZero:c,isNeg:u,isNegF:d,offsetF:l}=Tf(a,t,o);a=e,c?i=i.add(Ef(d,r[l])):s=s.add(Ef(u,r[n]))}return{p:s,f:i}},wNAFUnsafe(n,r,a,s=t.ZERO){const i=Sf(n,e);for(let t=0;t<i.windows&&a!==If;t++){const{nextN:e,offset:n,isZero:o,isNeg:c}=Tf(a,t,i);if(a=e,!o){const t=r[n];s=s.add(c?t.negate():t)}}return s},getPrecomputes(t,e,n){let r=Cf.get(e);return r||(r=this.precomputeWindow(e,t),1!==t&&Cf.set(e,n(r))),r},wNAFCached(t,e,n){const r=Nf(t);return this.wNAF(r,this.getPrecomputes(r,t,n),e)},wNAFCachedUnsafe(t,e,n,r){const a=Nf(t);return 1===a?this.unsafeLadder(t,e,r):this.wNAFUnsafe(a,this.getPrecomputes(a,t,n),e,r)},setWindowSize(t,n){Of(n,e),Bf.set(t,n),Cf.delete(t)}}}(m,h?Math.ceil(b/2):b);return{CURVE:e,ProjectivePoint:m,normPrivateKeyToScalar:d,weierstrassEquation:i,isWithinCurveOrder:function(t){return Ji(t,Df,e.n)}}}function Hf(t){const e=function(t){const e=Uf(t);return eo(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}(t),{Fp:n,n:r,nByteLength:a,nBitLength:s}=e,i=n.BYTES+1,o=2*n.BYTES+1;function c(t){return lf(t,r)}function u(t){return pf(t,r)}const{ProjectivePoint:d,normPrivateKeyToScalar:l,weierstrassEquation:f,isWithinCurveOrder:p}=qf({...e,toBytes(t,e,r){const a=e.toAffine(),s=n.toBytes(a.x),i=Wi;return Si("isCompressed",r),r?i(Uint8Array.from([e.hasEvenY()?2:3]),s):i(Uint8Array.from([4]),s,n.toBytes(a.y))},fromBytes(t){const e=t.length,r=t[0],a=t.subarray(1);if(e!==i||2!==r&&3!==r){if(e===o&&4===r){return{x:n.fromBytes(a.subarray(0,n.BYTES)),y:n.fromBytes(a.subarray(n.BYTES,2*n.BYTES))}}throw new Error("invalid Point, expected length of "+i+", or uncompressed "+o+", got "+e)}{const t=Gi(a);if(!Ji(t,Df,n.ORDER))throw new Error("Point is not on curve");const e=f(t);let s;try{s=n.sqrt(e)}catch(t){const e=t instanceof Error?": "+t.message:"";throw new Error("Point is not on curve"+e)}return!(1&~r)!==((s&Df)===Df)&&(s=n.neg(s)),{x:t,y:s}}}});function m(t){return t>r>>Df}const h=(t,e,n)=>Gi(t.slice(e,n));class b{constructor(t,e,n){Yi("r",t,Df,r),Yi("s",e,Df,r),this.r=t,this.s=e,null!=n&&(this.recovery=n),Object.freeze(this)}static fromCompact(t){const e=a;return t=Ki("compactSignature",t,2*e),new b(h(t,0,e),h(t,e,2*e))}static fromDER(t){const{r:e,s:n}=Ff.toSig(Ki("DER",t));return new b(e,n)}assertValidity(){}addRecoveryBit(t){return new b(this.r,this.s,t)}recoverPublicKey(t){const{r:r,s:a,recovery:s}=this,i=w(Ki("msgHash",t));if(null==s||![0,1,2,3].includes(s))throw new Error("recovery id invalid");const o=2===s||3===s?r+e.n:r;if(o>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=1&s?"03":"02",f=d.fromHex(l+_f(o,n.BYTES)),p=u(o),m=c(-i*p),h=c(a*p),b=d.BASE.multiplyAndAddUnsafe(f,m,h);if(!b)throw new Error("point at infinify");return b.assertValidity(),b}hasHighS(){return m(this.s)}normalizeS(){return this.hasHighS()?new b(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return Li(this.toDERHex())}toDERHex(){return Ff.hexFromSig(this)}toCompactRawBytes(){return Li(this.toCompactHex())}toCompactHex(){const t=a;return _f(this.r,t)+_f(this.s,t)}}const y={isValidPrivateKey(t){try{return l(t),!0}catch(t){return!1}},normPrivateKeyToScalar:l,randomPrivateKey:()=>{const t=kf(e.n);return function(t,e,n=!1){const r=t.length,a=Pf(e),s=kf(e);if(r<16||r<s||r>1024)throw new Error("expected "+s+"-1024 bytes of input, got "+r);const i=lf(n?qi(t):Gi(t),e-af)+af;return n?Vi(i,a):Hi(i,a)}(e.randomBytes(t),e.n)},precompute:(t=8,e=d.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)};function g(t){if("bigint"==typeof t)return!1;if(t instanceof d)return!0;const r=Ki("key",t).length,s=n.BYTES,i=s+1,o=2*s+1;return e.allowedPrivateKeyLengths||a===i?void 0:r===i||r===o}const v=e.bits2int||function(t){if(t.length>8192)throw new Error("input is too large");const e=Gi(t),n=8*t.length-s;return n>0?e>>BigInt(n):e},w=e.bits2int_modN||function(t){return c(v(t))},x=Qi(s);function P(t){return Yi("num < 2^"+s,t,zf,x),Hi(t,a)}function k(t,r,a=I){if(["recovered","canonical"].some(t=>t in a))throw new Error("sign() legacy options not supported");const{hash:s,randomBytes:i}=e;let{lowS:o,prehash:f,extraEntropy:h}=a;null==o&&(o=!0),t=Ki("msgHash",t),Mf(a),f&&(t=Ki("prehashed msgHash",s(t)));const y=w(t),g=l(r),x=[P(g),P(y)];if(null!=h&&!1!==h){const t=!0===h?i(n.BYTES):h;x.push(Ki("extraEntropy",t))}const k=Wi(...x),A=y;return{seed:k,k2sig:function(t){const e=v(t);if(!p(e))return;const n=u(e),r=d.BASE.multiply(e).toAffine(),a=c(r.x);if(a===zf)return;const s=c(n*c(A+a*g));if(s===zf)return;let i=(r.x===a?0:2)|Number(r.y&Df),l=s;return o&&m(s)&&(l=function(t){return m(t)?c(-t):t}(s),i^=1),new b(a,l,i)}}}const I={lowS:e.lowS,prehash:!1},A={lowS:e.lowS,prehash:!1};return d.BASE._setWindowSize(8),{CURVE:e,getPublicKey:function(t,e=!0){return d.fromPrivateKey(t).toRawBytes(e)},getSharedSecret:function(t,e,n=!0){if(!0===g(t))throw new Error("first arg must be private key");if(!1===g(e))throw new Error("second arg must be public key");return d.fromHex(e).multiply(l(t)).toRawBytes(n)},sign:function(t,n,r=I){const{seed:a,k2sig:s}=k(t,n,r),i=e,o=function(t,e,n){if("number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof e||e<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");let r=Xi(t),a=Xi(t),s=0;const i=()=>{r.fill(1),a.fill(0),s=0},o=(...t)=>n(a,r,...t),c=(t=Xi(0))=>{a=o($i([0]),t),r=o(),0!==t.length&&(a=o($i([1]),t),r=o())},u=()=>{if(s++>=1e3)throw new Error("drbg: tried 1000 values");let t=0;const n=[];for(;t<e;){r=o();const e=r.slice();n.push(e),t+=r.length}return Wi(...n)};return(t,e)=>{let n;for(i(),c(t);!(n=e(u()));)c();return i(),n}}(i.hash.outputLen,i.nByteLength,i.hmac);return o(a,s)},verify:function(t,n,r,a=A){const s=t;n=Ki("msgHash",n),r=Ki("publicKey",r);const{lowS:i,prehash:o,format:l}=a;if(Mf(a),"strict"in a)throw new Error("options.strict was renamed to lowS");if(void 0!==l&&"compact"!==l&&"der"!==l)throw new Error("format must be compact or der");const f="string"==typeof s||Ei(s),p=!f&&!l&&"object"==typeof s&&null!==s&&"bigint"==typeof s.r&&"bigint"==typeof s.s;if(!f&&!p)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let m,h;try{if(p&&(m=new b(s.r,s.s)),f){try{"compact"!==l&&(m=b.fromDER(s))}catch(t){if(!(t instanceof Ff.Err))throw t}m||"der"===l||(m=b.fromCompact(s))}h=d.fromHex(r)}catch(t){return!1}if(!m)return!1;if(i&&m.hasHighS())return!1;o&&(n=e.hash(n));const{r:y,s:g}=m,v=w(n),x=u(g),P=c(v*x),k=c(y*x),I=d.BASE.multiplyAndAddUnsafe(h,P,k)?.toAffine();return!!I&&c(I.x)===y},ProjectivePoint:d,Signature:b,utils:y}}
|
|
10
|
-
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function Vf(t){return{hash:t,hmac:(e,...n)=>nf(t,e,function(...t){let e=0;for(let n=0;n<t.length;n++){const r=t[n];an(r),e+=r.length}const n=new Uint8Array(e);for(let e=0,r=0;e<t.length;e++){const a=t[e];n.set(a,r),r+=a.length}return n}(...n)),randomBytes:bn}}function Kf(t,e){const n=e=>Hf({...t,...Vf(e)});return{...n(e),create:n}}
|
|
11
|
-
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const Wf=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),Zf=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),Jf=BigInt(0),Yf=BigInt(1),Qf=BigInt(2),Xf=(t,e)=>(t+e/Qf)/e;const $f=xf(Wf,void 0,void 0,{sqrt:function(t){const e=Wf,n=BigInt(3),r=BigInt(6),a=BigInt(11),s=BigInt(22),i=BigInt(23),o=BigInt(44),c=BigInt(88),u=t*t*t%e,d=u*u*t%e,l=ff(d,n,e)*d%e,f=ff(l,n,e)*d%e,p=ff(f,Qf,e)*u%e,m=ff(p,a,e)*p%e,h=ff(m,s,e)*m%e,b=ff(h,o,e)*h%e,y=ff(b,c,e)*b%e,g=ff(y,o,e)*h%e,v=ff(g,n,e)*d%e,w=ff(v,i,e)*m%e,x=ff(w,r,e)*u%e,P=ff(x,Qf,e);if(!$f.eql($f.sqr(P),t))throw new Error("Cannot find square root");return P}}),tp=Kf({a:Jf,b:BigInt(7),Fp:$f,n:Zf,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=Zf,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-Yf*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),s=n,i=BigInt("0x100000000000000000000000000000000"),o=Xf(s*t,e),c=Xf(-r*t,e);let u=lf(t-o*n-c*a,e),d=lf(-o*r-c*s,e);const l=u>i,f=d>i;if(l&&(u=e-u),f&&(d=e-d),u>i||d>i)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:l,k1:u,k2neg:f,k2:d}}}},Zs);var ep=Object.freeze({__proto__:null,secp256k1:tp});function np(t,e={}){const{recovered:n}=e;if(void 0===t.r)throw new cp({signature:t});if(void 0===t.s)throw new cp({signature:t});if(n&&void 0===t.yParity)throw new cp({signature:t});if(t.r<0n||t.r>Nl)throw new up({value:t.r});if(t.s<0n||t.s>Nl)throw new dp({value:t.s});if("number"==typeof t.yParity&&0!==t.yParity&&1!==t.yParity)throw new lp({value:t.yParity})}function rp(t){if(130!==t.length&&132!==t.length)throw new op({signature:t});const e=BigInt(Wo(t,0,32)),n=BigInt(Wo(t,32,64)),r=(()=>{const e=Number(`0x${t.slice(130)}`);if(!Number.isNaN(e))try{return ip(e)}catch{throw new lp({value:e})}})();return void 0===r?{r:e,s:n}:{r:e,s:n,yParity:r}}function ap(t){if(void 0!==t.r&&void 0!==t.s)return function(t){const e="string"==typeof t?rp(t):t instanceof Uint8Array?function(t){return rp(Go(t))}(t):"string"==typeof t.r?function(t){const e=(()=>{const e=t.v?Number(t.v):void 0;let n=t.yParity?Number(t.yParity):void 0;if("number"==typeof e&&"number"!=typeof n&&(n=ip(e)),"number"!=typeof n)throw new lp({value:t.yParity});return n})();return{r:BigInt(t.r),s:BigInt(t.s),yParity:e}}(t):t.v?function(t){return{r:t.r,s:t.s,yParity:ip(t.v)}}(t):{r:t.r,s:t.s,...void 0!==t.yParity?{yParity:t.yParity}:{}};return np(e),e}(t)}function sp(t){np(t);const e=t.r,n=t.s;return zo(qo(e,{size:32}),qo(n,{size:32}),"number"==typeof t.yParity?qo(function(t){if(0===t)return 27;if(1===t)return 28;throw new lp({value:t})}(t.yParity),{size:1}):"0x")}function ip(t){if(0===t||27===t)return 0;if(1===t||28===t)return 1;if(t>=35)return t%2==0?1:0;throw new fp({value:t})}class op extends ro{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${Zo(Do(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class cp extends ro{constructor({signature:t}){super(`Signature \`${yo(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class up extends ro{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class dp extends ro{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class lp extends ro{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class fp extends ro{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}function pp(t,e={}){return"string"==typeof t.chainId?function(t){const{address:e,chainId:n,nonce:r}=t,a=ap(t);return{address:e,chainId:Number(n),nonce:BigInt(r),...a}}(t):{...t,...e.signature}}const mp=Wl("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function hp(t){if("string"==typeof t){if("0x8010801080108010801080108010801080108010801080108010801080108010"!==Wo(t,-32))throw new bp(t)}else np(t.authorization)}let bp=class extends ro{constructor(t){super(`Value \`${t}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}};function yp(t){const{address:e,data:n,signature:r,to:a="hex"}=t,s=Wn([nr([{type:"address"},{type:"bytes"},{type:"bytes"}],[e,n,r]),"0x6492649264926492649264926492649264926492649264926492649264926492"]);return"hex"===a?s:Fe(s)}class gp extends _t{constructor({value:t}){super(`Number \`${t}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}async function vp(t,{address:e,blockNumber:n,blockTag:r,storageKeys:a}){const s=r??"latest",i=void 0!==n?Ce(n):void 0;return function(t){return{...t,balance:t.balance?BigInt(t.balance):void 0,nonce:t.nonce?Ie(t.nonce):void 0,storageProof:t.storageProof?(e=t.storageProof,e.map(t=>({...t,value:BigInt(t.value)}))):void 0};var e}(await t.request({method:"eth_getProof",params:[e,a,i||s]}))}async function wp(t,{blockHash:e,blockNumber:n,blockTag:r,hash:a,index:s}){const i=r||"latest",o=void 0!==n?Ce(n):void 0;let c=null;if(c=a?await t.request({method:"eth_getTransactionByHash",params:[a]},{dedupe:!0}):e?await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[e,Ce(s)]},{dedupe:!0}):await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[o||i,Ce(s)]},{dedupe:Boolean(o)}),!c)throw new Yr({blockHash:e,blockNumber:n,blockTag:i,hash:a,index:s});return(t.chain?.formatters?.transaction?.format||ws)(c,"getTransaction")}async function xp(t,{hash:e}){const n=await t.request({method:"eth_getTransactionReceipt",params:[e]},{dedupe:!0});if(!n)throw new Qr({hash:e});return(t.chain?.formatters?.transactionReceipt?.format||Jc)(n,"getTransactionReceipt")}async function Pp(t,e){const{blockNumber:n,blockTag:r=t.experimental_blockTag??"latest",blocks:a,returnFullTransactions:s,traceTransfers:i,validation:o}=e;try{const e=[];for(const t of a){const n=t.blockOverrides?sc(t.blockOverrides):void 0,r=t.calls.map(t=>{const e=t,n=e.account?hr(e.account):void 0,r=e.abi?yr(e):e.data,a={...e,account:n,data:e.dataSuffix?Kn([r||"0x",e.dataSuffix]):r,from:e.from??n?.address};return ms(a),us(a)}),a=t.stateOverrides?fs(t.stateOverrides):void 0;e.push({blockOverrides:n,calls:r,stateOverrides:a})}const c=("bigint"==typeof n?Ce(n):void 0)||r;return(await t.request({method:"eth_simulateV1",params:[{blockStateCalls:e,returnFullTransactions:s,traceTransfers:i,validation:o},c]})).map((t,e)=>({...Ps(t),calls:t.calls.map((t,n)=>{const{abi:r,args:s,functionName:i,to:o}=a[e].calls[n],c=t.error?.data??t.returnData,u=BigInt(t.gasUsed),d=t.logs?.map(t=>vi(t)),l="0x1"===t.status?"success":"failure",f=r&&"success"===l&&"0x"!==c?ki({abi:r,data:c,functionName:i}):null,p=(()=>{if("success"===l)return;let e;return"0x"===t.error?.data?e=new qt:t.error&&(e=new sa(t.error)),e?_a(e,{abi:r??[],address:o??"0x",args:s,functionName:i??"<unknown>"}):void 0})();return{data:c,gasUsed:u,logs:d,status:l,..."success"===l?{result:f}:{error:p}}})}))}catch(t){const e=t,n=ss(e,{});if(n instanceof as)throw e;throw n}}function kp(t){let e=!0,n="",r=0,a="",s=!1;for(let i=0;i<t.length;i++){const o=t[i];if(["(",")",","].includes(o)&&(e=!0),"("===o&&r++,")"===o&&r--,e)if(0!==r)" "!==o?(a+=o,n+=o):","!==t[i-1]&&","!==n&&",("!==n&&(n="",e=!1);else if(" "===o&&["event","function","error",""].includes(a))a="";else if(a+=o,")"===o){s=!0;break}}if(!s)throw new ro("Unable to normalize signature.");return a}function Ip(t,e){const n=typeof t,r=e.type;switch(r){case"address":return Al(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:return"tuple"===r&&"components"in e?Object.values(e.components).every((e,n)=>Ip(Object.values(t)[n],e)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?"number"===n||"bigint"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?"string"===n||t instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)&&(Array.isArray(t)&&t.every(t=>Ip(t,{...e,type:r.replace(/(\[[0-9]{0,}\])$/,"")})))}}function Ap(t,e,n){for(const r in t){const a=t[r],s=e[r];if("tuple"===a.type&&"tuple"===s.type&&"components"in a&&"components"in s)return Ap(a.components,s.components,n[r]);const i=[a.type,s.type];if((()=>!(!i.includes("address")||!i.includes("bytes20"))||(i.includes("address")&&i.includes("string")||!(!i.includes("address")||!i.includes("bytes")))&&Al(n[r],{strict:!1}))())return i}}function Ep(t,e={}){const{prepare:n=!0}=e,r=Array.isArray(t)||"string"==typeof t?ol(t):t;return{...r,...n?{hash:Tp(r)}:{}}}function Op(t,e,n){const{args:r=[],prepare:a=!0}=n??{},s=Qo(e,{strict:!1}),i=t.filter(t=>s?"function"===t.type||"error"===t.type?Sp(t)===Wo(e,0,4):"event"===t.type&&Tp(t)===e:"name"in t&&t.name===e);if(0===i.length)throw new Bp({name:e});if(1===i.length)return{...i[0],...a?{hash:Tp(i[0])}:{}};let o;for(const t of i){if(!("inputs"in t))continue;if(!r||0===r.length){if(!t.inputs||0===t.inputs.length)return{...t,...a?{hash:Tp(t)}:{}};continue}if(!t.inputs)continue;if(0===t.inputs.length)continue;if(t.inputs.length!==r.length)continue;const e=r.every((e,n)=>{const r="inputs"in t&&t.inputs[n];return!!r&&Ip(e,r)});if(e){if(o&&"inputs"in o&&o.inputs){const e=Ap(t.inputs,o.inputs,r);if(e)throw new Cp({abiItem:t,type:e[0]},{abiItem:o,type:e[1]})}o=t}}const c=(()=>{if(o)return o;const[t,...e]=i;return{...t,overloads:e}})();if(!c)throw new Bp({name:e});return{...c,...a?{hash:Tp(c)}:{}}}function Sp(...t){const e=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return Op(e,n)}return t[0]})();return Wo(Tp(e),0,4)}function Tp(...t){const e=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return Op(e,n)}return t[0]})();return"string"!=typeof e&&"hash"in e&&e.hash?e.hash:ll(Ho(function(...t){const e=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return Op(e,n)}return t[0]})();return kp("string"==typeof e?e:Pd(e))}(e)))}class Cp extends ro{constructor(t,e){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${kp(Pd(t.abiItem))}\`, and`,`\`${e.type}\` in \`${kp(Pd(e.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class Bp extends ro{constructor({name:t,data:e,type:n="item"}){super(`ABI ${n}${t?` with name "${t}"`:e?` with data "${e}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}function Np(t){const e=t.find(t=>"constructor"===t.type);if(!e)throw new Bp({name:"constructor"});return e}function jp(...t){const[e,n=[]]=(()=>{if(Array.isArray(t[0])){const[e,n,r]=t;return[Mp(e,n,{args:r}),r]}const[e,n]=t;return[e,n]})(),{overloads:r}=e,a=r?Mp([e,...r],e.name,{args:n}):e,s=Sp(a);const i=n.length>0?Vl(a.inputs,n):void 0;return i?zo(s,i):s}function Up(t,e={}){return Ep(t,e)}function Mp(t,e,n){const r=Op(t,e,n);if("function"!==r.type)throw new Bp({name:e,type:"function"});return r}const Rp="0x0000000000000000000000000000000000000000";async function Fp(t,e){const{blockNumber:n,blockTag:r,calls:a,stateOverrides:s,traceAssetChanges:i,traceTransfers:o,validation:c}=e,u=e.account?hr(e.account):void 0;if(i&&!u)throw new _t("`account` is required when `traceAssetChanges` is true");const d=u?function(...t){const[e,n]=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return[Np(e),n]}return t})(),{bytecode:r,args:a}=n;return zo(r,e.inputs?.length&&a?.length?Vl(e.inputs,a):"0x")}(Ep("constructor(bytes, bytes)"),{bytecode:bc,args:["0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033",jp(Up("function getBalance(address)"),[u.address])]}):void 0;const l=i?await Promise.all(e.calls.map(async e=>{if(!e.data&&!e.abi)return;const{accessList:n}=await Bu(t,{account:u.address,...e,data:e.abi?yr(e):e.data});return n.map(({address:t,storageKeys:e})=>e.length>0?t:null)})).then(t=>t.flat().filter(Boolean)):[],f=await Pp(t,{blockNumber:n,blockTag:r,blocks:[...i?[{calls:[{data:d}],stateOverrides:s},{calls:l.map((t,e)=>({abi:[Up("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[u.address],to:t,from:Rp,nonce:e})),stateOverrides:[{address:Rp,nonce:0}]}]:[],{calls:[...a,{}].map(t=>({...t,from:u?.address})),stateOverrides:s},...i?[{calls:[{data:d}]},{calls:l.map((t,e)=>({abi:[Up("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[u.address],to:t,from:Rp,nonce:e})),stateOverrides:[{address:Rp,nonce:0}]},{calls:l.map((t,e)=>({to:t,abi:[Up("function decimals() returns (uint256)")],functionName:"decimals",from:Rp,nonce:e})),stateOverrides:[{address:Rp,nonce:0}]},{calls:l.map((t,e)=>({to:t,abi:[Up("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:Rp,nonce:e})),stateOverrides:[{address:Rp,nonce:0}]},{calls:l.map((t,e)=>({to:t,abi:[Up("function symbol() returns (string)")],functionName:"symbol",from:Rp,nonce:e})),stateOverrides:[{address:Rp,nonce:0}]}]:[]],traceTransfers:o,validation:c}),p=i?f[2]:f[0],[m,h,,b,y,g,v,w]=i?f:[],{calls:x,...P}=p,k=x.slice(0,-1)??[],I=[...m?.calls??[],...h?.calls??[]].map(t=>"success"===t.status?ke(t.data):null),A=[...b?.calls??[],...y?.calls??[]].map(t=>"success"===t.status?ke(t.data):null),E=(g?.calls??[]).map(t=>"success"===t.status?t.result:null),O=(w?.calls??[]).map(t=>"success"===t.status?t.result:null),S=(v?.calls??[]).map(t=>"success"===t.status?t.result:null),T=[];for(const[t,e]of A.entries()){const n=I[t];if("bigint"!=typeof e)continue;if("bigint"!=typeof n)continue;const r=E[t-1],a=O[t-1],s=S[t-1],i=(()=>0===t?{address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",decimals:18,symbol:"ETH"}:{address:l[t-1],decimals:s||r?Number(r??1):void 0,symbol:a??void 0})();T.some(t=>t.token.address===i.address)||T.push({token:i,value:{pre:n,post:e,diff:e-n}})}return{assetChanges:T,block:P,results:k}}const _p="0x6492649264926492649264926492649264926492649264926492649264926492";function zp(t){try{return function(t){if(Wo(t,-32)!==_p)throw new Dp(t)}(t),!0}catch{return!1}}class Dp extends ro{constructor(t){super(`Value \`${t}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}async function Lp(t,e){const{address:n,hash:r,erc6492VerifierAddress:a=e.universalSignatureVerifierAddress??t.chain?.contracts?.erc6492Verifier?.address,multicallAddress:s=e.multicallAddress??t.chain?.contracts?.multicall3?.address}=e,i=(()=>{const t=e.signature;return jt(t)?t:"object"==typeof t&&"r"in t&&"s"in t?function({r:t,s:e,to:n="hex",v:r,yParity:a}){const s=(()=>{if(0===a||1===a)return a;if(r&&(27n===r||28n===r||r>=35n))return r%2n==0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),i=`0x${new tp.Signature(ke(t),ke(e)).toCompactHex()}${0===s?"1b":"1c"}`;return"hex"===n?i:Fe(i)}(t):Te(t)})();try{return function(t){try{return hp(t),!0}catch{return!1}}(i)?await async function(t,e){const{address:n,blockNumber:r,blockTag:a,hash:s,multicallAddress:i}=e,{authorization:o,data:c,signature:u,to:d}=function(t){hp(t);const e=Yo(Wo(t,-64,-32)),n=Wo(t,-e-64,-64),r=Wo(t,0,-e-64),[a,s,i]=Hl(mp,n);return{authorization:pp({address:a.delegation,chainId:Number(a.chainId),nonce:a.nonce,yParity:a.yParity,r:a.r,s:a.s}),signature:r,...i&&"0x"!==i?{data:i,to:s}:{}}}(e.signature),l=await Uu(t,{address:n,blockNumber:r,blockTag:a});if(l===Wn(["0xef0100",o.address]))return await async function(t,e){const{address:n,blockNumber:r,blockTag:a,hash:s,signature:i}=e,o=await Ct(t,Nc,"readContract")({address:n,abi:pc,args:[s,i],blockNumber:r,blockTag:a,functionName:"isValidSignature"}).catch(t=>{if(t instanceof ea)throw new Gp;throw t});if(o.startsWith("0x1626ba7e"))return!0;throw new Gp}(t,{address:n,blockNumber:r,blockTag:a,hash:s,signature:u});const f={address:o.address,chainId:Number(o.chainId),nonce:Number(o.nonce),r:Ce(o.r,{size:32}),s:Ce(o.s,{size:32}),yParity:o.yParity},p=await async function({address:t,authorization:e,signature:n}){return mi(Gn(t),await Va({authorization:e,signature:n}))}({address:n,authorization:f});if(!p)throw new Gp;const m=await Ct(t,Nc,"readContract")({...i?{address:i}:{code:vc},authorizationList:[f],abi:ic,blockNumber:r,blockTag:"pending",functionName:"aggregate3",args:[[...c?[{allowFailure:!0,target:d??n,callData:c}]:[],{allowFailure:!0,target:n,callData:yr({abi:pc,functionName:"isValidSignature",args:[s,u]})}]]}),h=m[m.length-1]?.returnData;if(h?.startsWith("0x1626ba7e"))return!0;throw new Gp}(t,{...e,multicallAddress:s,signature:i}):await async function(t,e){const{address:n,factory:r,factoryData:a,hash:s,signature:i,verifierAddress:o,...c}=e,u=await(async()=>r||a?zp(i)?i:function(t){const{data:e,signature:n,to:r}=t;return zo(Vl(Wl("address, bytes, bytes"),[r,e,n]),_p)}({data:a,signature:i,to:r}):i)(),d=o?{to:o,data:yr({abi:mc,functionName:"isValidSig",args:[n,s,u]}),...c}:{data:Ic({abi:mc,args:[n,s,u],bytecode:gc}),...c},{data:l}=await Ct(t,Cc,"call")(d).catch(t=>{if(t instanceof ta)throw new Gp;throw t});if(function(t,e={}){let n=t;if(e.size&&(Pe(n,{size:e.size}),n=xe(n)),"0x00"===xe(n))return!1;if("0x01"===xe(n))return!0;throw new ve(n)}(l??"0x0"))return!0;throw new Gp}(t,{...e,verifierAddress:a,signature:i})}catch(t){try{if(mi(Gn(n),await Da({hash:r,signature:i})))return!0}catch{}if(t instanceof Gp)return!1;throw t}}class Gp extends Error{}function qp(t,{emitOnBegin:e=!1,emitMissed:n=!1,onBlockNumber:r,onError:a,poll:s,pollingInterval:i=t.pollingInterval}){let o;return(void 0!==s?s:"webSocket"!==t.transport.type&&"ipc"!==t.transport.type&&("fallback"!==t.transport.type||"webSocket"!==t.transport.transports[0].config.type&&"ipc"!==t.transport.transports[0].config.type))?Rc(Mr(["watchBlockNumber",t.uid,e,n,i]),{onBlockNumber:r,onError:a},r=>_c(async()=>{try{const e=await Ct(t,Gc,"getBlockNumber")({cacheTime:0});if(void 0!==o){if(e===o)return;if(e-o>1&&n)for(let t=o+1n;t<e;t++)r.onBlockNumber(t,o),o=t}(void 0===o||e>o)&&(r.onBlockNumber(e,o),o=e)}catch(t){r.onError?.(t)}},{emitOnBegin:e,interval:i})):Rc(Mr(["watchBlockNumber",t.uid,e,n]),{onBlockNumber:r,onError:a},e=>{let n=!0,r=()=>n=!1;return(async()=>{try{const a=(()=>{if("fallback"===t.transport.type){const e=t.transport.transports.find(t=>"webSocket"===t.config.type||"ipc"===t.config.type);return e?e.value:t.transport}return t.transport})(),{unsubscribe:s}=await a.subscribe({params:["newHeads"],onData(t){if(!n)return;const r=ke(t.result?.number);e.onBlockNumber(r,o),o=r},onError(t){e.onError?.(t)}});r=s,n||r()}catch(t){a?.(t)}})(),()=>r()})}const Hp=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,Vp=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;async function Kp(t,e){const{address:n,domain:r,message:a,nonce:s,scheme:i,signature:o,time:c=new Date,...u}=e,d=function(t){const{scheme:e,statement:n,...r}=t.match(Hp)?.groups??{},{chainId:a,expirationTime:s,issuedAt:i,notBefore:o,requestId:c,...u}=t.match(Vp)?.groups??{},d=t.split("Resources:")[1]?.split("\n- ").slice(1);return{...r,...u,...a?{chainId:Number(a)}:{},...s?{expirationTime:new Date(s)}:{},...i?{issuedAt:new Date(i)}:{},...o?{notBefore:new Date(o)}:{},...c?{requestId:c}:{},...d?{resources:d}:{},...e?{scheme:e}:{},...n?{statement:n}:{}}}(a);if(!d.address)return!1;const l=function(t){const{address:e,domain:n,message:r,nonce:a,scheme:s,time:i=new Date}=t;if(n&&r.domain!==n)return!1;if(a&&r.nonce!==a)return!1;if(s&&r.scheme!==s)return!1;if(r.expirationTime&&i>=r.expirationTime)return!1;if(r.notBefore&&i<r.notBefore)return!1;try{if(!r.address)return!1;if(!Vn(r.address,{strict:!1}))return!1;if(e&&!mi(r.address,e))return!1}catch{return!1}return!0}({address:n,domain:r,message:d,nonce:s,scheme:i,time:c});if(!l)return!1;const f=nd(a);return Lp(t,{address:d.address,hash:f,signature:o,...u})}function Wp(t){return{call:e=>Cc(t,e),createAccessList:e=>Bu(t,e),createBlockFilter:()=>async function(t){const e=pr(t,{method:"eth_newBlockFilter"}),n=await t.request({method:"eth_newBlockFilter"});return{id:n,request:e(n),type:"block"}}(t),createContractEventFilter:e=>mr(t,e),createEventFilter:e=>Nu(t,e),createPendingTransactionFilter:()=>ju(t),estimateContractGas:e=>async function(t,e){const{abi:n,address:r,args:a,functionName:s,dataSuffix:i,...o}=e,c=yr({abi:n,args:a,functionName:s});try{return await Ct(t,pi,"estimateGas")({data:`${c}${i?i.replace("0x",""):""}`,to:r,...o})}catch(t){const e=o.account?hr(o.account):void 0;throw _a(t,{abi:n,address:r,args:a,docsPath:"/docs/contract/estimateContractGas",functionName:s,sender:e?.address})}}(t,e),estimateGas:e=>pi(t,e),getBalance:e=>async function(t,{address:e,blockNumber:n,blockTag:r=t.experimental_blockTag??"latest"}){const a="bigint"==typeof n?Ce(n):void 0,s=await t.request({method:"eth_getBalance",params:[e,a||r]});return BigInt(s)}(t,e),getBlobBaseFee:()=>async function(t){const e=await t.request({method:"eth_blobBaseFee"});return BigInt(e)}(t),getBlock:e=>Is(t,e),getBlockNumber:e=>Gc(t,e),getBlockTransactionCount:e=>async function(t,{blockHash:e,blockNumber:n,blockTag:r="latest"}={}){const a=void 0!==n?Ce(n):void 0;let s;return s=e?await t.request({method:"eth_getBlockTransactionCountByHash",params:[e]},{dedupe:!0}):await t.request({method:"eth_getBlockTransactionCountByNumber",params:[a||r]},{dedupe:Boolean(a)}),Ie(s)}(t,e),getBytecode:e=>Uu(t,e),getChainId:()=>ui(t),getCode:e=>Uu(t,e),getContractEvents:e=>xi(t,e),getEip712Domain:e=>async function(t,e){const{address:n,factory:r,factoryData:a}=e;try{const[e,s,i,o,c,u,d]=await Ct(t,Nc,"readContract")({abi:Ru,address:n,functionName:"eip712Domain",factory:r,factoryData:a});return{domain:{name:s,version:i,chainId:Number(o),verifyingContract:c,salt:u},extensions:d,fields:e}}catch(t){const e=t;if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new Mu({address:n});throw e}}(t,e),getEnsAddress:e=>async function(t,e){const{blockNumber:n,blockTag:r,coinType:a,name:s,gatewayUrls:i,strict:o}=e,{chain:c}=t,u=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return Ac({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})(),d=c?.ensTlds;if(d&&!d.some(t=>s.endsWith(t)))return null;const l=null!=a?[pu(s),BigInt(a)]:[pu(s)];try{const e=yr({abi:fc,functionName:"addr",args:l}),a={address:u,abi:uc,functionName:"resolveWithGateways",args:[Oe(bu(s)),e,i??[du]],blockNumber:n,blockTag:r},o=Ct(t,Nc,"readContract"),c=await o(a);if("0x"===c[0])return null;const d=ki({abi:fc,args:l,functionName:"addr",data:c[0]});return"0x"===d||"0x00"===xe(d)?null:d}catch(t){if(o)throw t;if(su(t))return null;throw t}}(t,e),getEnsAvatar:e=>async function(t,{blockNumber:e,blockTag:n,assetGatewayUrls:r,name:a,gatewayUrls:s,strict:i,universalResolverAddress:o}){const c=await Ct(t,Cu,"getEnsText")({blockNumber:e,blockTag:n,key:"avatar",name:a,universalResolverAddress:o,gatewayUrls:s,strict:i});if(!c)return null;try{return await Tu(t,{record:c,gatewayUrls:r})}catch{return null}}(t,e),getEnsName:e=>async function(t,e){const{address:n,blockNumber:r,blockTag:a,coinType:s=60n,gatewayUrls:i,strict:o}=e,{chain:c}=t,u=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return Ac({blockNumber:r,chain:c,contract:"ensUniversalResolver"})})();try{const e={address:u,abi:dc,args:[n,s,i??[du]],functionName:"reverseWithGateways",blockNumber:r,blockTag:a},o=Ct(t,Nc,"readContract"),[c]=await o(e);return c||null}catch(t){if(o)throw t;if(su(t))return null;throw t}}(t,e),getEnsResolver:e=>async function(t,e){const{blockNumber:n,blockTag:r,name:a}=e,{chain:s}=t,i=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!s)throw new Error("client chain not configured. universalResolverAddress is required.");return Ac({blockNumber:n,chain:s,contract:"ensUniversalResolver"})})(),o=s?.ensTlds;if(o&&!o.some(t=>a.endsWith(t)))throw new Error(`${a} is not a valid ENS TLD (${o?.join(", ")}) for chain "${s.name}" (id: ${s.id}).`);const[c]=await Ct(t,Nc,"readContract")({address:i,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[Oe(bu(a))],blockNumber:n,blockTag:r});return c}(t,e),getEnsText:e=>Cu(t,e),getFeeHistory:e=>Fu(t,e),estimateFeesPerGas:e=>Os(t,e),getFilterChanges:t=>qc(0,t),getFilterLogs:t=>async function(t,{filter:e}){const n=e.strict??!1,r=(await e.request({method:"eth_getFilterLogs",params:[e.id]})).map(t=>vi(t));return e.abi?gi({abi:e.abi,logs:r,strict:n}):r}(0,t),getGasPrice:()=>As(t),getLogs:e=>wi(t,e),getProof:e=>vp(t,e),estimateMaxPriorityFeePerGas:e=>async function(t,e){return Es(t,e)}(t,e),getStorageAt:e=>async function(t,{address:e,blockNumber:n,blockTag:r="latest",slot:a}){const s=void 0!==n?Ce(n):void 0;return await t.request({method:"eth_getStorageAt",params:[e,a,s||r]})}(t,e),getTransaction:e=>wp(t,e),getTransactionConfirmations:e=>async function(t,{hash:e,transactionReceipt:n}){const[r,a]=await Promise.all([Ct(t,Gc,"getBlockNumber")({}),e?Ct(t,wp,"getTransaction")({hash:e}):void 0]),s=n?.blockNumber||a?.blockNumber;return s?r-s+1n:0n}(t,e),getTransactionCount:e=>Ts(t,e),getTransactionReceipt:e=>xp(t,e),multicall:e=>async function(t,e){const{account:n,authorizationList:r,allowFailure:a=!0,blockNumber:s,blockOverrides:i,blockTag:o,stateOverride:c}=e,u=e.contracts,{batchSize:d=e.batchSize??1024,deployless:l=e.deployless??!1}="object"==typeof t.batch?.multicall?t.batch.multicall:{},f=(()=>{if(e.multicallAddress)return e.multicallAddress;if(l)return null;if(t.chain)return Ac({blockNumber:s,chain:t.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),p=[[]];let m=0,h=0;for(let t=0;t<u.length;t++){const{abi:e,address:r,args:s,functionName:i}=u[t];try{const t=yr({abi:e,args:s,functionName:i});h+=(t.length-2)/2,d>0&&h>d&&p[m].length>0&&(m++,h=(t.length-2)/2,p[m]=[]),p[m]=[...p[m],{allowFailure:!0,callData:t,target:r}]}catch(t){const o=_a(t,{abi:e,address:r,args:s,docsPath:"/docs/contract/multicall",functionName:i,sender:n});if(!a)throw o;p[m]=[...p[m],{allowFailure:!0,callData:"0x",target:r}]}}const b=await Promise.allSettled(p.map(e=>Ct(t,Nc,"readContract")({...null===f?{code:vc}:{address:f},abi:ic,account:n,args:[e],authorizationList:r,blockNumber:s,blockOverrides:i,blockTag:o,functionName:"aggregate3",stateOverride:c}))),y=[];for(let t=0;t<b.length;t++){const e=b[t];if("rejected"===e.status){if(!a)throw e.reason;for(let n=0;n<p[t].length;n++)y.push({status:"failure",error:e.reason,result:void 0});continue}const n=e.value;for(let e=0;e<n.length;e++){const{returnData:r,success:s}=n[e],{callData:i}=p[t][e],{abi:o,address:c,functionName:d,args:l}=u[y.length];try{if("0x"===i)throw new qt;if(!s)throw new sa({data:r});const t=ki({abi:o,args:l,data:r,functionName:d});y.push(a?{result:t,status:"success"}:t)}catch(t){const e=_a(t,{abi:o,address:c,args:l,docsPath:"/docs/contract/multicall",functionName:d});if(!a)throw e;y.push({error:e,result:void 0,status:"failure"})}}}if(y.length!==u.length)throw new _t("multicall results mismatch");return y}(t,e),prepareTransactionRequest:e=>fi(t,e),readContract:e=>Nc(t,e),sendRawTransaction:e=>async function(t,{serializedTransaction:e}){return t.request({method:"eth_sendRawTransaction",params:[e]},{retryCount:0})}(t,e),sendRawTransactionSync:e=>async function(t,{serializedTransaction:e,throwOnReceiptRevert:n,timeout:r}){const a=await t.request({method:"eth_sendRawTransactionSync",params:r?[e,Ce(r)]:[e]},{retryCount:0}),s=(t.chain?.formatters?.transactionReceipt?.format||Jc)(a);if("reverted"===s.status&&n)throw new Xr({receipt:s});return s}(t,e),simulate:e=>Pp(t,e),simulateBlocks:e=>Pp(t,e),simulateCalls:e=>Fp(t,e),simulateContract:e=>async function(t,e){const{abi:n,address:r,args:a,dataSuffix:s,functionName:i,...o}=e,c=o.account?hr(o.account):t.account,u=yr({abi:n,args:a,functionName:i});try{const{data:d}=await Ct(t,Cc,"call")({batch:!1,data:`${u}${s?s.replace("0x",""):""}`,to:r,...o,account:c});return{result:ki({abi:n,args:a,functionName:i,data:d||"0x"}),request:{abi:n.filter(t=>"name"in t&&t.name===e.functionName),address:r,args:a,dataSuffix:s,functionName:i,...o,account:c}}}catch(t){throw _a(t,{abi:n,address:r,args:a,docsPath:"/docs/contract/simulateContract",functionName:i,sender:c?.address})}}(t,e),verifyHash:e=>Lp(t,e),verifyMessage:e=>async function(t,{address:e,message:n,factory:r,factoryData:a,signature:s,...i}){return Lp(t,{address:e,factory:r,factoryData:a,hash:nd(n),signature:s,...i})}(t,e),verifySiweMessage:e=>Kp(t,e),verifyTypedData:e=>async function(t,e){const{address:n,factory:r,factoryData:a,signature:s,message:i,primaryType:o,types:c,domain:u,...d}=e;return Lp(t,{address:n,factory:r,factoryData:a,hash:cd({message:i,primaryType:o,types:c,domain:u}),signature:s,...d})}(t,e),uninstallFilter:t=>Hc(0,t),waitForTransactionReceipt:e=>async function(t,e){const{checkReplacement:n=!0,confirmations:r=1,hash:a,onReplaced:s,retryCount:i=6,retryDelay:o=({count:t})=>200*(1<<t),timeout:c=18e4}=e,u=Mr(["waitForTransactionReceipt",t.uid,a]),d=e.pollingInterval?e.pollingInterval:t.chain?.experimental_preconfirmationTime?t.chain.experimental_preconfirmationTime:t.pollingInterval;let l,f,p,m,h,b=!1;const{promise:y,resolve:g,reject:v}=Oc(),w=c?setTimeout(()=>{h?.(),m?.(),v(new $r({hash:a}))},c):void 0;return m=Rc(u,{onReplaced:s,resolve:g,reject:v},async e=>{if(p=await Ct(t,xp,"getTransactionReceipt")({hash:a}).catch(()=>{}),p&&r<=1)return clearTimeout(w),e.resolve(p),void m?.();h=Ct(t,qp,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:d,async onBlockNumber(s){const c=t=>{clearTimeout(w),h?.(),t(),m?.()};let u=s;if(!b)try{if(p){if(r>1&&(!p.blockNumber||u-p.blockNumber+1n<r))return;return void c(()=>e.resolve(p))}if(n&&!l&&(b=!0,await Wc(async()=>{l=await Ct(t,wp,"getTransaction")({hash:a}),l.blockNumber&&(u=l.blockNumber)},{delay:o,retryCount:i}),b=!1),p=await Ct(t,xp,"getTransactionReceipt")({hash:a}),r>1&&(!p.blockNumber||u-p.blockNumber+1n<r))return;c(()=>e.resolve(p))}catch(n){if(n instanceof Yr||n instanceof Qr){if(!l)return void(b=!1);try{f=l,b=!0;const n=await Wc(()=>Ct(t,Is,"getBlock")({blockNumber:u,includeTransactions:!0}),{delay:o,retryCount:i,shouldRetry:({error:t})=>t instanceof gs});b=!1;const a=n.transactions.find(({from:t,nonce:e})=>t===f.from&&e===f.nonce);if(!a)return;if(p=await Ct(t,xp,"getTransactionReceipt")({hash:a.hash}),r>1&&(!p.blockNumber||u-p.blockNumber+1n<r))return;let s="replaced";a.to===f.to&&a.value===f.value&&a.input===f.input?s="repriced":a.from===a.to&&0n===a.value&&(s="cancelled"),c(()=>{e.onReplaced?.({reason:s,replacedTransaction:f,transaction:a,transactionReceipt:p}),e.resolve(p)})}catch(t){c(()=>e.reject(t))}}else c(()=>e.reject(n))}}})}),y}(t,e),watchBlocks:e=>function(t,{blockTag:e=t.experimental_blockTag??"latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:a,onError:s,includeTransactions:i,poll:o,pollingInterval:c=t.pollingInterval}){const u=void 0!==o?o:"webSocket"!==t.transport.type&&"ipc"!==t.transport.type&&("fallback"!==t.transport.type||"webSocket"!==t.transport.transports[0].config.type&&"ipc"!==t.transport.transports[0].config.type),d=i??!1;let l;return u?Rc(Mr(["watchBlocks",t.uid,e,n,r,d,c]),{onBlock:a,onError:s},a=>_c(async()=>{try{const r=await Ct(t,Is,"getBlock")({blockTag:e,includeTransactions:d});if(null!==r.number&&null!=l?.number){if(r.number===l.number)return;if(r.number-l.number>1&&n)for(let e=l?.number+1n;e<r.number;e++){const n=await Ct(t,Is,"getBlock")({blockNumber:e,includeTransactions:d});a.onBlock(n,l),l=n}}(null==l?.number||"pending"===e&&null==r?.number||null!==r.number&&r.number>l.number)&&(a.onBlock(r,l),l=r)}catch(t){a.onError?.(t)}},{emitOnBegin:r,interval:c})):(()=>{let n=!0,i=!0,o=()=>n=!1;return(async()=>{try{r&&Ct(t,Is,"getBlock")({blockTag:e,includeTransactions:d}).then(t=>{n&&i&&(a(t,void 0),i=!1)}).catch(s);const c=(()=>{if("fallback"===t.transport.type){const e=t.transport.transports.find(t=>"webSocket"===t.config.type||"ipc"===t.config.type);return e?e.value:t.transport}return t.transport})(),{unsubscribe:u}=await c.subscribe({params:["newHeads"],async onData(e){if(!n)return;const r=await Ct(t,Is,"getBlock")({blockNumber:e.result?.number,includeTransactions:d}).catch(()=>{});n&&(a(r,l),i=!1,l=r)},onError(t){s?.(t)}});o=u,n||o()}catch(t){s?.(t)}})(),()=>o()})()}(t,e),watchBlockNumber:e=>qp(t,e),watchContractEvent:e=>function(t,e){const{abi:n,address:r,args:a,batch:s=!0,eventName:i,fromBlock:o,onError:c,onLogs:u,poll:d,pollingInterval:l=t.pollingInterval,strict:f}=e;return(void 0!==d?d:"bigint"==typeof o||"webSocket"!==t.transport.type&&"ipc"!==t.transport.type&&("fallback"!==t.transport.type||"webSocket"!==t.transport.transports[0].config.type&&"ipc"!==t.transport.transports[0].config.type))?(()=>{const e=f??!1;return Rc(Mr(["watchContractEvent",r,a,s,t.uid,i,l,e,o]),{onLogs:u,onError:c},c=>{let u,d;void 0!==o&&(u=o-1n);let f=!1;const p=_c(async()=>{if(f)try{let o;if(d)o=await Ct(t,qc,"getFilterChanges")({filter:d});else{const s=await Ct(t,Gc,"getBlockNumber")({});o=u&&u<s?await Ct(t,xi,"getContractEvents")({abi:n,address:r,args:a,eventName:i,fromBlock:u+1n,toBlock:s,strict:e}):[],u=s}if(0===o.length)return;if(s)c.onLogs(o);else for(const t of o)c.onLogs([t])}catch(t){d&&t instanceof ba&&(f=!1),c.onError?.(t)}else{try{d=await Ct(t,mr,"createContractEventFilter")({abi:n,address:r,args:a,eventName:i,strict:e,fromBlock:o})}catch{}f=!0}},{emitOnBegin:!0,interval:l});return async()=>{d&&await Ct(t,Hc,"uninstallFilter")({filter:d}),p()}})})():(()=>{const e=f??!1,o=Mr(["watchContractEvent",r,a,s,t.uid,i,l,e]);let d=!0,p=()=>d=!1;return Rc(o,{onLogs:u,onError:c},e=>((async()=>{try{const s=(()=>{if("fallback"===t.transport.type){const e=t.transport.transports.find(t=>"webSocket"===t.config.type||"ipc"===t.config.type);return e?e.value:t.transport}return t.transport})(),o=i?lr({abi:n,eventName:i,args:a}):[],{unsubscribe:c}=await s.subscribe({params:["logs",{address:r,topics:o}],onData(t){if(!d)return;const r=t.result;try{const{eventName:t,args:a}=bi({abi:n,data:r.data,topics:r.topics,strict:f}),s=vi(r,{args:a,eventName:t});e.onLogs([s])}catch(t){let n,a;if(t instanceof ae||t instanceof se){if(f)return;n=t.abiItem.name,a=t.abiItem.inputs?.some(t=>!("name"in t&&t.name))}const s=vi(r,{args:a?[]:{},eventName:n});e.onLogs([s])}},onError(t){e.onError?.(t)}});p=c,d||p()}catch(t){c?.(t)}})(),()=>p()))})()}(t,e),watchEvent:e=>function(t,{address:e,args:n,batch:r=!0,event:a,events:s,fromBlock:i,onError:o,onLogs:c,poll:u,pollingInterval:d=t.pollingInterval,strict:l}){const f=void 0!==u?u:"bigint"==typeof i||"webSocket"!==t.transport.type&&"ipc"!==t.transport.type&&("fallback"!==t.transport.type||"webSocket"!==t.transport.transports[0].config.type&&"ipc"!==t.transport.transports[0].config.type),p=l??!1;return f?Rc(Mr(["watchEvent",e,n,r,t.uid,a,d,i]),{onLogs:c,onError:o},o=>{let c,u;void 0!==i&&(c=i-1n);let l=!1;const f=_c(async()=>{if(l)try{let i;if(u)i=await Ct(t,qc,"getFilterChanges")({filter:u});else{const r=await Ct(t,Gc,"getBlockNumber")({});i=c&&c!==r?await Ct(t,wi,"getLogs")({address:e,args:n,event:a,events:s,fromBlock:c+1n,toBlock:r}):[],c=r}if(0===i.length)return;if(r)o.onLogs(i);else for(const t of i)o.onLogs([t])}catch(t){u&&t instanceof ba&&(l=!1),o.onError?.(t)}else{try{u=await Ct(t,Nu,"createEventFilter")({address:e,args:n,event:a,events:s,strict:p,fromBlock:i})}catch{}l=!0}},{emitOnBegin:!0,interval:d});return async()=>{u&&await Ct(t,Hc,"uninstallFilter")({filter:u}),f()}}):(()=>{let r=!0,i=()=>r=!1;return(async()=>{try{const u=(()=>{if("fallback"===t.transport.type){const e=t.transport.transports.find(t=>"webSocket"===t.config.type||"ipc"===t.config.type);return e?e.value:t.transport}return t.transport})(),d=s??(a?[a]:void 0);let f=[];if(d){const t=d.flatMap(t=>lr({abi:[t],eventName:t.name,args:n}));f=[t],a&&(f=f[0])}const{unsubscribe:m}=await u.subscribe({params:["logs",{address:e,topics:f}],onData(t){if(!r)return;const e=t.result;try{const{eventName:t,args:n}=bi({abi:d??[],data:e.data,topics:e.topics,strict:p}),r=vi(e,{args:n,eventName:t});c([r])}catch(t){let n,r;if(t instanceof ae||t instanceof se){if(l)return;n=t.abiItem.name,r=t.abiItem.inputs?.some(t=>!("name"in t&&t.name))}const a=vi(e,{args:r?[]:{},eventName:n});c([a])}},onError(t){o?.(t)}});i=m,r||i()}catch(t){o?.(t)}})(),()=>i()})()}(t,e),watchPendingTransactions:e=>function(t,{batch:e=!0,onError:n,onTransactions:r,poll:a,pollingInterval:s=t.pollingInterval}){return(void 0!==a?a:"webSocket"!==t.transport.type&&"ipc"!==t.transport.type)?Rc(Mr(["watchPendingTransactions",t.uid,e,s]),{onTransactions:r,onError:n},n=>{let r;const a=_c(async()=>{try{if(!r)try{return void(r=await Ct(t,ju,"createPendingTransactionFilter")({}))}catch(t){throw a(),t}const s=await Ct(t,qc,"getFilterChanges")({filter:r});if(0===s.length)return;if(e)n.onTransactions(s);else for(const t of s)n.onTransactions([t])}catch(t){n.onError?.(t)}},{emitOnBegin:!0,interval:s});return async()=>{r&&await Ct(t,Hc,"uninstallFilter")({filter:r}),a()}}):(()=>{let e=!0,a=()=>e=!1;return(async()=>{try{const{unsubscribe:s}=await t.transport.subscribe({params:["newPendingTransactions"],onData(t){if(!e)return;const n=t.result;r([n])},onError(t){n?.(t)}});a=s,e||a()}catch(t){n?.(t)}})(),()=>a()})()}(t,e)}}class Zp extends _t{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function Jp(t,e={}){const{batch:n,fetchFn:r,fetchOptions:a,key:s="http",methods:i,name:o="HTTP JSON-RPC",onFetchRequest:c,onFetchResponse:u,retryDelay:d,raw:l}=e;return({chain:f,retryCount:p,timeout:m})=>{const{batchSize:h=1e3,wait:b=0}="object"==typeof n?n:{},y=e.retryCount??p,g=m??e.timeout??1e4,v=t||f?.rpcUrls.default.http[0];if(!v)throw new Zp;const w=ed(v,{fetchFn:r,fetchOptions:a,onRequest:c,onResponse:u,timeout:g});return function({key:t,methods:e,name:n,request:r,retryCount:a=3,retryDelay:s=150,timeout:i,type:o},c){return{config:{key:t,methods:e,name:n,request:r,retryCount:a,retryDelay:s,timeout:i,type:o},request:Hu(r,{methods:e,retryCount:a,retryDelay:s,uid:ru()}),value:c}}({key:s,methods:i,name:o,async request({method:t,params:e}){const r={method:t,params:e},{schedule:a}=Tc({id:v,wait:b,shouldSplitBatch:t=>t.length>h,fn:t=>w.request({body:t}),sort:(t,e)=>t.id-e.id}),[{error:s,result:i}]=await(async t=>n?a(t):[await w.request({body:t})])(r);if(l)return{error:s,result:i};if(s)throw new oa({body:r,error:s,url:v});return i},retryCount:y,retryDelay:d,timeout:g,type:"http"},{fetchOptions:a,url:v})}}function Yp(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]])}return n}var Qp,Xp,$p;function tm(t,e,a){var s,i,o;window.ClientAnalytics&&(null===(s=window.ClientAnalytics)||void 0===s||s.logEvent(t,Object.assign(Object.assign({},e),{sdkVersion:r,sdkName:n,appName:null!==(o=null===(i=p.config.get().metadata)||void 0===i?void 0:i.appName)&&void 0!==o?o:"",appOrigin:window.location.origin}),a))}"function"==typeof SuppressedError&&SuppressedError,function(t){t.unknown="unknown",t.banner="banner",t.button="button",t.card="card",t.chart="chart",t.content_script="content_script",t.dropdown="dropdown",t.link="link",t.page="page",t.modal="modal",t.table="table",t.search_bar="search_bar",t.service_worker="service_worker",t.text="text",t.text_input="text_input",t.tray="tray",t.checkbox="checkbox",t.icon="icon"}(Qp||(Qp={})),function(t){t.unknown="unknown",t.blur="blur",t.click="click",t.change="change",t.dismiss="dismiss",t.focus="focus",t.hover="hover",t.select="select",t.measurement="measurement",t.move="move",t.process="process",t.render="render",t.scroll="scroll",t.view="view",t.search="search",t.keyPress="keyPress",t.error="error"}(Xp||(Xp={})),function(t){t.low="low",t.high="high"}($p||($p={}));const em=({dialogContext:t})=>{tm(`dialog.${t}.shown`,{action:Xp.render,componentType:Qp.modal,dialogContext:t},$p.high)},nm=({dialogContext:t})=>{tm(`dialog.${t}.dismissed`,{action:Xp.dismiss,componentType:Qp.modal,dialogContext:t},$p.high)},rm=({dialogContext:t,dialogAction:e})=>{tm(`dialog.${t}.action_clicked`,{action:Xp.click,componentType:Qp.button,dialogContext:t,dialogAction:e},$p.high)},am="BaseSans-Regular";var sm,im,om,cm,um,dm,lm,fm,pm,mm,hm={},bm=[],ym=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,gm=Array.isArray;function vm(t,e){for(var n in e)t[n]=e[n];return t}function wm(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function xm(t,e,n){var r,a,s,i={};for(s in e)"key"==s?r=e[s]:"ref"==s?a=e[s]:i[s]=e[s];if(arguments.length>2&&(i.children=arguments.length>3?sm.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===i[s]&&(i[s]=t.defaultProps[s]);return Pm(t,i,r,a,null)}function Pm(t,e,n,r,a){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++om:a,__i:-1,__u:0};return null==a&&null!=im.vnode&&im.vnode(s),s}function km(t){return t.children}function Im(t,e){this.props=t,this.context=e}function Am(t,e){if(null==e)return t.__?Am(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?Am(t):null}function Em(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return Em(t)}}function Om(t){(!t.__d&&(t.__d=!0)&&cm.push(t)&&!Sm.__r++||um!==im.debounceRendering)&&((um=im.debounceRendering)||dm)(Sm)}function Sm(){var t,e,n,r,a,s,i,o;for(cm.sort(lm);t=cm.shift();)t.__d&&(e=cm.length,r=void 0,s=(a=(n=t).__v).__e,i=[],o=[],n.__P&&((r=vm({},a)).__v=a.__v+1,im.vnode&&im.vnode(r),Rm(n.__P,r,a,n.__n,n.__P.namespaceURI,32&a.__u?[s]:null,i,null==s?Am(a):s,!!(32&a.__u),o),r.__v=a.__v,r.__.__k[r.__i]=r,Fm(i,r,o),r.__e!=s&&Em(r)),cm.length>e&&cm.sort(lm));Sm.__r=0}function Tm(t,e,n,r,a,s,i,o,c,u,d){var l,f,p,m,h,b=r&&r.__k||bm,y=e.length;for(n.__d=c,Cm(n,e,b),c=n.__d,l=0;l<y;l++)null!=(p=n.__k[l])&&(f=-1===p.__i?hm:b[p.__i]||hm,p.__i=l,Rm(t,p,f,a,s,i,o,c,u,d),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&zm(f.ref,null,p),d.push(p.ref,p.__c||m,p)),null==h&&null!=m&&(h=m),65536&p.__u||f.__k===p.__k?c=Bm(p,c,t):"function"==typeof p.type&&void 0!==p.__d?c=p.__d:m&&(c=m.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=c,n.__e=h}function Cm(t,e,n){var r,a,s,i,o,c=e.length,u=n.length,d=u,l=0;for(t.__k=[],r=0;r<c;r++)null!=(a=e[r])&&"boolean"!=typeof a&&"function"!=typeof a?(i=r+l,(a=t.__k[r]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?Pm(null,a,null,null,null):gm(a)?Pm(km,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?Pm(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=t,a.__b=t.__b+1,s=null,-1!==(o=a.__i=Nm(a,n,i,d))&&(d--,(s=n[o])&&(s.__u|=131072)),null==s||null===s.__v?(-1==o&&l--,"function"!=typeof a.type&&(a.__u|=65536)):o!==i&&(o==i-1?l--:o==i+1?l++:(o>i?l--:l++,a.__u|=65536))):a=t.__k[r]=null;if(d)for(r=0;r<u;r++)null!=(s=n[r])&&!(131072&s.__u)&&(s.__e==t.__d&&(t.__d=Am(s)),Dm(s,s))}function Bm(t,e,n){var r,a;if("function"==typeof t.type){for(r=t.__k,a=0;r&&a<r.length;a++)r[a]&&(r[a].__=t,e=Bm(r[a],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=Am(t)),n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function Nm(t,e,n,r){var a=t.key,s=t.type,i=n-1,o=n+1,c=e[n];if(null===c||c&&a==c.key&&s===c.type&&!(131072&c.__u))return n;if(r>(null==c||131072&c.__u?0:1))for(;i>=0||o<e.length;){if(i>=0){if((c=e[i])&&!(131072&c.__u)&&a==c.key&&s===c.type)return i;i--}if(o<e.length){if((c=e[o])&&!(131072&c.__u)&&a==c.key&&s===c.type)return o;o++}}return-1}function jm(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||ym.test(e)?n:n+"px"}function Um(t,e,n,r,a){var s;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||jm(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||jm(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])s=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||"onFocusOut"===e||"onFocusIn"===e?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+s]=n,n?r?n.u=r.u:(n.u=fm,t.addEventListener(e,s?mm:pm,s)):t.removeEventListener(e,s?mm:pm,s);else{if("http://www.w3.org/2000/svg"==a)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function Mm(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=fm++;else if(e.t<n.u)return;return n(im.event?im.event(e):e)}}}function Rm(t,e,n,r,a,s,i,o,c,u){var d,l,f,p,m,h,b,y,g,v,w,x,P,k,I,A,E=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(c=!!(32&n.__u),s=[o=e.__e=n.__e]),(d=im.__b)&&d(e);t:if("function"==typeof E)try{if(y=e.props,g="prototype"in E&&E.prototype.render,v=(d=E.contextType)&&r[d.__c],w=d?v?v.props.value:d.__:r,n.__c?b=(l=e.__c=n.__c).__=l.__E:(g?e.__c=l=new E(y,w):(e.__c=l=new Im(y,w),l.constructor=E,l.render=Lm),v&&v.sub(l),l.props=y,l.state||(l.state={}),l.context=w,l.__n=r,f=l.__d=!0,l.__h=[],l._sb=[]),g&&null==l.__s&&(l.__s=l.state),g&&null!=E.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=vm({},l.__s)),vm(l.__s,E.getDerivedStateFromProps(y,l.__s))),p=l.props,m=l.state,l.__v=e,f)g&&null==E.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),g&&null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(g&&null==E.getDerivedStateFromProps&&y!==p&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(y,w),!l.__e&&(null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(y,l.__s,w)||e.__v===n.__v)){for(e.__v!==n.__v&&(l.props=y,l.state=l.__s,l.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(t){t&&(t.__=e)}),x=0;x<l._sb.length;x++)l.__h.push(l._sb[x]);l._sb=[],l.__h.length&&i.push(l);break t}null!=l.componentWillUpdate&&l.componentWillUpdate(y,l.__s,w),g&&null!=l.componentDidUpdate&&l.__h.push(function(){l.componentDidUpdate(p,m,h)})}if(l.context=w,l.props=y,l.__P=t,l.__e=!1,P=im.__r,k=0,g){for(l.state=l.__s,l.__d=!1,P&&P(e),d=l.render(l.props,l.state,l.context),I=0;I<l._sb.length;I++)l.__h.push(l._sb[I]);l._sb=[]}else do{l.__d=!1,P&&P(e),d=l.render(l.props,l.state,l.context),l.state=l.__s}while(l.__d&&++k<25);l.state=l.__s,null!=l.getChildContext&&(r=vm(vm({},r),l.getChildContext())),g&&!f&&null!=l.getSnapshotBeforeUpdate&&(h=l.getSnapshotBeforeUpdate(p,m)),Tm(t,gm(A=null!=d&&d.type===km&&null==d.key?d.props.children:d)?A:[A],e,n,r,a,s,i,o,c,u),l.base=e.__e,e.__u&=-161,l.__h.length&&i.push(l),b&&(l.__E=l.__=null)}catch(t){if(e.__v=null,c||null!=s){for(e.__u|=c?160:32;o&&8===o.nodeType&&o.nextSibling;)o=o.nextSibling;s[s.indexOf(o)]=null,e.__e=o}else e.__e=n.__e,e.__k=n.__k;im.__e(t,e,n)}else null==s&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=_m(n.__e,e,n,r,a,s,i,c,u);(d=im.diffed)&&d(e)}function Fm(t,e,n){e.__d=void 0;for(var r=0;r<n.length;r++)zm(n[r],n[++r],n[++r]);im.__c&&im.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(t){im.__e(t,e.__v)}})}function _m(t,e,n,r,a,s,i,o,c){var u,d,l,f,p,m,h,b=n.props,y=e.props,g=e.type;if("svg"===g?a="http://www.w3.org/2000/svg":"math"===g?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=s)for(u=0;u<s.length;u++)if((p=s[u])&&"setAttribute"in p==!!g&&(g?p.localName===g:3===p.nodeType)){t=p,s[u]=null;break}if(null==t){if(null===g)return document.createTextNode(y);t=document.createElementNS(a,g,y.is&&y),o&&(im.__m&&im.__m(e,s),o=!1),s=null}if(null===g)b===y||o&&t.data===y||(t.data=y);else{if(s=s&&sm.call(t.childNodes),b=n.props||hm,!o&&null!=s)for(b={},u=0;u<t.attributes.length;u++)b[(p=t.attributes[u]).name]=p.value;for(u in b)if(p=b[u],"children"==u);else if("dangerouslySetInnerHTML"==u)l=p;else if(!(u in y)){if("value"==u&&"defaultValue"in y||"checked"==u&&"defaultChecked"in y)continue;Um(t,u,null,p,a)}for(u in y)p=y[u],"children"==u?f=p:"dangerouslySetInnerHTML"==u?d=p:"value"==u?m=p:"checked"==u?h=p:o&&"function"!=typeof p||b[u]===p||Um(t,u,p,b[u],a);if(d)o||l&&(d.__html===l.__html||d.__html===t.innerHTML)||(t.innerHTML=d.__html),e.__k=[];else if(l&&(t.innerHTML=""),Tm(t,gm(f)?f:[f],e,n,r,"foreignObject"===g?"http://www.w3.org/1999/xhtml":a,s,i,s?s[0]:n.__k&&Am(n,0),o,c),null!=s)for(u=s.length;u--;)wm(s[u]);o||(u="value","progress"===g&&null==m?t.removeAttribute("value"):void 0!==m&&(m!==t[u]||"progress"===g&&!m||"option"===g&&m!==b[u])&&Um(t,u,m,b[u],a),u="checked",void 0!==h&&h!==t[u]&&Um(t,u,h,b[u],a))}return t}function zm(t,e,n){try{if("function"==typeof t){var r="function"==typeof t.__u;r&&t.__u(),r&&null==e||(t.__u=t(e))}else t.current=e}catch(t){im.__e(t,n)}}function Dm(t,e,n){var r,a;if(im.unmount&&im.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||zm(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){im.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(a=0;a<r.length;a++)r[a]&&Dm(r[a],e,n||"function"!=typeof t.type);n||wm(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function Lm(t,e,n){return this.constructor(t,n)}function Gm(t,e,n){var r,a,s;im.__&&im.__(t,e),r=!1?null:e.__k,a=[],s=[],Rm(e,t=e.__k=xm(km,null,[t]),r||hm,hm,e.namespaceURI,r?null:e.firstChild?sm.call(e.childNodes):null,a,r?r.__e:e.firstChild,false,s),Fm(a,t,s)}sm=bm.slice,im={__e:function(t,e,n,r){for(var a,s,i;e=e.__;)if((a=e.__c)&&!a.__)try{if((s=a.constructor)&&null!=s.getDerivedStateFromError&&(a.setState(s.getDerivedStateFromError(t)),i=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(t,r||{}),i=a.__d),i)return a.__E=a}catch(e){t=e}throw t}},om=0,Im.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=vm({},this.state),"function"==typeof t&&(t=t(vm({},n),this.props)),t&&vm(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),Om(this))},Im.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),Om(this))},Im.prototype.render=km,cm=[],dm="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,lm=function(t,e){return t.__v.__b-e.__v.__b},Sm.__r=0,fm=0,pm=Mm(!1),mm=Mm(!0);var qm=0;function Hm(t,e,n,r,a,s){e||(e={});var i,o,c=e;"ref"in e&&(i=e.ref,delete e.ref);var u={type:t,props:c,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--qm,__i:-1,__u:0,__source:a,__self:s};if("function"==typeof t&&(i=t.defaultProps))for(o in i)void 0===c[o]&&(c[o]=i[o]);return im.vnode&&im.vnode(u),u}function Vm(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=Vm(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function Km(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=Vm(t))&&(r&&(r+=" "),r+=e);return r}const Wm=({fill:t})=>Hm("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Hm("path",{d:"M0 2.014C0 1.58105 0 1.36457 0.0815779 1.19805C0.159686 1.03861 0.288611 0.909686 0.448049 0.831578C0.61457 0.75 0.831047 0.75 1.264 0.75H14.736C15.169 0.75 15.3854 0.75 15.552 0.831578C15.7114 0.909686 15.8403 1.03861 15.9184 1.19805C16 1.36457 16 1.58105 16 2.014V15.486C16 15.919 16 16.1354 15.9184 16.302C15.8403 16.4614 15.7114 16.5903 15.552 16.6684C15.3854 16.75 15.169 16.75 14.736 16.75H1.264C0.831047 16.75 0.61457 16.75 0.448049 16.6684C0.288611 16.5903 0.159686 16.4614 0.0815779 16.302C0 16.1354 0 15.919 0 15.486V2.014Z",fill:"blue"===t?"#0000FF":"#FFF"})});var Zm,Jm,Ym,Qm,Xm=0,$m=[],th=im,eh=th.__b,nh=th.__r,rh=th.diffed,ah=th.__c,sh=th.unmount,ih=th.__;function oh(t,e){th.__h&&th.__h(Jm,t,Xm||e),Xm=0;var n=Jm.__H||(Jm.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function ch(t){return Xm=1,function(t,e){var n=oh(Zm++,2);if(n.t=t,!n.__c&&(n.__=[bh(void 0,e),function(t){var e=n.__N?n.__N[0]:n.__[0],r=n.t(e,t);e!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=Jm,!Jm.u)){var r=function(t,e,r){if(!n.__c.__H)return!0;var s=n.__c.__H.__.filter(function(t){return!!t.__c});if(s.every(function(t){return!t.__N}))return!a||a.call(this,t,e,r);var i=!1;return s.forEach(function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(i=!0)}}),!(!i&&n.__c.props===t)&&(!a||a.call(this,t,e,r))};Jm.u=!0;var a=Jm.shouldComponentUpdate,s=Jm.componentWillUpdate;Jm.componentWillUpdate=function(t,e,n){if(this.__e){var i=a;a=void 0,r(t,e,n),a=i}s&&s.call(this,t,e,n)},Jm.shouldComponentUpdate=r}return n.__N||n.__}(bh,t)}function uh(t,e){var n=oh(Zm++,3);!th.__s&&hh(n.__H,e)&&(n.__=t,n.i=e,Jm.__H.__h.push(n))}function dh(){for(var t;t=$m.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(ph),t.__H.__h.forEach(mh),t.__H.__h=[]}catch(e){t.__H.__h=[],th.__e(e,t.__v)}}th.__b=function(t){Jm=null,eh&&eh(t)},th.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),ih&&ih(t,e)},th.__r=function(t){nh&&nh(t),Zm=0;var e=(Jm=t.__c).__H;e&&(Ym===Jm?(e.__h=[],Jm.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.i=t.__N=void 0})):(e.__h.forEach(ph),e.__h.forEach(mh),e.__h=[],Zm=0)),Ym=Jm},th.diffed=function(t){rh&&rh(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==$m.push(e)&&Qm===th.requestAnimationFrame||((Qm=th.requestAnimationFrame)||fh)(dh)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.i=void 0})),Ym=Jm=null},th.__c=function(t,e){e.some(function(t){try{t.__h.forEach(ph),t.__h=t.__h.filter(function(t){return!t.__||mh(t)})}catch(n){e.some(function(t){t.__h&&(t.__h=[])}),e=[],th.__e(n,t.__v)}}),ah&&ah(t,e)},th.unmount=function(t){sh&&sh(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(t){try{ph(t)}catch(t){e=t}}),n.__H=void 0,e&&th.__e(e,n.__v))};var lh="function"==typeof requestAnimationFrame;function fh(t){var e,n=function(){clearTimeout(r),lh&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);lh&&(e=requestAnimationFrame(n))}function ph(t){var e=Jm,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),Jm=e}function mh(t){var e=Jm;t.__c=t.__(),Jm=e}function hh(t,e){return!t||t.length!==e.length||e.some(function(e,n){return e!==t[n]})}function bh(t,e){return"function"==typeof e?e(t):e}function yh(){return window.innerWidth<=600&&window.innerHeight>window.innerWidth}const gh=()=>{const[t,e]=ch(!1);return uh(()=>{const t=()=>{e(yh())};return t(),window.addEventListener("resize",t),window.addEventListener("orientationchange",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}},[]),t?Hm("div",{class:"-base-acc-sdk-dialog-handle-bar"}):null};class vh{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null}attach(t){this.root=document.createElement("div"),this.root.className="-base-acc-sdk-dialog-root",t.appendChild(this.root),this.render()}presentItem(t){const e=this.nextItemKey++;this.items.set(e,t),this.render()}clear(){this.items.clear(),this.root&&Gm(null,this.root)}render(){this.root&&Gm(Hm("div",{children:Hm(wh,{children:Array.from(this.items.entries()).map(([t,e])=>xm(xh,Object.assign({},e,{key:t,handleClose:()=>{var t;this.clear(),null===(t=e.onClose)||void 0===t||t.call(e)}})))})}),this.root)}}const wh=t=>{const[e,n]=ch(0),[r,a]=ch(!1),[s,i]=ch(0);return Hm("div",{class:Km("-base-acc-sdk-dialog-container"),children:[Hm("style",{children:'.-base-acc-sdk-css-reset{-webkit-font-smoothing:antialiased;pointer-events:auto !important}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-container{position:fixed;top:0;left:0;width:100%;height:100%;z-index:2147483647}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-container *{user-select:none;box-sizing:border-box}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;padding:20px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-backdrop{align-items:flex-end;justify-content:stretch;padding:0}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog{position:relative;z-index:2147483648}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog{width:100%}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04);width:380px;max-height:90vh;overflow:hidden;transform:scale(0.95);opacity:0;transition:all .2s ease-in-out}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{touch-action:pan-y;user-select:none}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:scale(0.9);opacity:0}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:translateY(100%)}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:scale(1);opacity:1}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:translateY(0)}}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{width:100%;max-width:100%;border-radius:20px 20px 0 0;box-shadow:0 -10px 25px rgba(0,0,0,.15);max-height:80vh;transform:translateY(0)}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:translateY(100%);opacity:1}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:translateY(0);opacity:1}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 0 20px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header{padding:16px 20px 12px 20px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-icon-and-title{display:flex;align-items:center;gap:8px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-icon-and-title-title{font-family:"BaseSans-Regular",sans-serif;font-size:14px;font-weight:400;color:#5b616e}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-cblogo{width:32px;height:32px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;cursor:pointer;border-radius:6px;transition:background-color .2s}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close:hover{background-color:#f5f7f8}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close-icon{width:14px;height:14px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close-icon{display:none}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content{padding:20px 20px 16px 20px;font-family:"BaseSans-Regular",sans-serif}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content{padding:8px 20px 12px 20px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content-title{font-size:20px;font-weight:600;line-height:28px;color:#0a0b0d;margin-bottom:10px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content-message{font-size:16px;font-weight:400;line-height:24px;color:#5b616e;margin-bottom:0}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-actions{display:flex;padding:16px 20px 20px 20px;flex-direction:column}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-actions{padding:16px 20px calc(20px + env(safe-area-inset-bottom)) 20px;gap:6px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button{font-family:"BaseSans-Regular",sans-serif;font-size:16px;font-weight:500;line-height:24px;border:none;border-radius:12px;padding:16px 24px;cursor:pointer;transition:all .2s ease-in-out;width:100%;margin:4px 0}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button:disabled{opacity:.5;cursor:not-allowed}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary{background-color:#0a0b0d;color:#fff}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary:hover:not(:disabled){background-color:#1c1e20}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary:active:not(:disabled){background-color:#2a2d31}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary{background-color:#eef0f3;color:#0a0b0d}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary:hover:not(:disabled){background-color:#e1e4e8}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary:active:not(:disabled){background-color:#d4d8dd}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-handle-bar{position:absolute;top:-16px;left:50%;transform:translateX(-50%);width:64px;height:4px;background-color:#d1d5db;border-radius:2px;opacity:0;animation:handleBarFadeIn .2s ease-in-out .2s forwards}@keyframes handleBarFadeIn{from{opacity:0}to{opacity:1}}'}),Hm("div",{class:"-base-acc-sdk-dialog-backdrop",onTouchStart:t=>{if(!yh())return;const e=t.touches[0];i(e.clientY),a(!0)},onTouchMove:t=>{if(!r)return;const e=t.touches[0].clientY-s;e>0&&(n(e),t.preventDefault())},onTouchEnd:()=>{if(r)if(a(!1),e>100){const t=document.querySelector(".-base-acc-sdk-dialog-instance-header-close");t&&t.click()}else n(0)},children:Hm("div",{class:"-base-acc-sdk-dialog",style:{transform:`translateY(${e}px)`,transition:r?"none":"transform 0.2s ease-out"},children:[Hm(gh,{}),t.children]})})]})},xh=({title:t,message:e,actionItems:n,handleClose:r})=>{const[a,s]=ch(!0),[i,o]=ch(!0),[c,u]=ch(null);uh(()=>{const t=window.setTimeout(()=>{s(!1)},1);return()=>{window.clearTimeout(t)}},[]),uh(()=>{(async()=>{var t;const e=null===(t=p.account.get().accounts)||void 0===t?void 0:t[0];if(e){const t=await async function(t){return function(t,e=4){return`${t.slice(0,2+e)}...${t.slice(-e)}`}(t)}(e);u(t)}o(!1)})()},[]);const d=function(t,e){var n=oh(Zm++,7);return hh(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}(()=>c?`Signed in as ${c}`:"Base Account",[c]),l=!i;return Hm("div",{class:Km("-base-acc-sdk-dialog-instance",a&&"-base-acc-sdk-dialog-instance-hidden"),children:[Hm("div",{class:"-base-acc-sdk-dialog-instance-header",children:[Hm("div",{class:"-base-acc-sdk-dialog-instance-header-icon-and-title",children:[Hm(Wm,{fill:"blue"}),l&&Hm("div",{class:"-base-acc-sdk-dialog-instance-header-icon-and-title-title",children:d})]}),Hm("div",{class:"-base-acc-sdk-dialog-instance-header-close",onClick:r,children:Hm("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzIDFMMSAxM20wLTEyTDEzIDEzIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+",class:"-base-acc-sdk-dialog-instance-header-close-icon"})})]}),Hm("div",{class:"-base-acc-sdk-dialog-instance-content",children:[Hm("div",{class:"-base-acc-sdk-dialog-instance-content-title",children:t}),Hm("div",{class:"-base-acc-sdk-dialog-instance-content-message",children:e})]}),n&&n.length>0&&Hm("div",{class:"-base-acc-sdk-dialog-instance-actions",children:n.map((t,e)=>Hm("button",{class:Km("-base-acc-sdk-dialog-instance-button","primary"===t.variant&&"-base-acc-sdk-dialog-instance-button-primary","secondary"===t.variant&&"-base-acc-sdk-dialog-instance-button-secondary"),onClick:t.onClick,children:t.text},e))})]})};let Ph=null;function kh(){if(!Ph){const t=document.createElement("div");t.className="-base-acc-sdk-css-reset",document.body.appendChild(t),Ph=new vh,Ph.attach(t)}return function(){if(document.head.querySelector(`style[base-sdk-font="${am}"]`))return;const t=document.createElement("style");t.setAttribute("base-sdk-font",am),t.textContent='\n@font-face {\n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SycJnKNhUUqOPNeC2PX6ployg2P53yvWtdRW18JNkgT08wtzVXM2OBXqyg9VnhwPGOw07JshDKrapPfl/JZ9U1UQv8muyogzfjq3zcXfBk5dUaandemo1Lpu+gfxRS0quGhm0MTixgxyGUTXdZZIb8fSeJ5iIbyL6xxlDU1z1Ondoq5WK/TiBmGFViZDOT9TXHjq9J/1n/df9F/2X2XX2eLqMYT6Bda7m7tPU7tesjePu86yzG/3v77fxWK6k+sviyhq2vJhA9bGk3/X5eN/AAAA")\n format("woff2");\n font-weight: normal;\n font-style: normal;\n font-display: swap;\n}\n',document.head.appendChild(t)}(),Ph}const Ih="{app} wants to continue in Base Account",Ah="This action requires your permission to open a new window.";function Eh(t){const e=(window.innerWidth-420)/2+window.screenX,a=(window.innerHeight-700)/2+window.screenY;function s(){const n=`wallet_${crypto.randomUUID()}`,r=window.open(t,n,`width=420, height=700, left=${e}, top=${a}`);return null==r||r.focus(),r||null}!function(t){const e={sdkName:n,sdkVersion:r,origin:window.location.origin,coop:z()};for(const[n,r]of Object.entries(e))t.searchParams.has(n)||t.searchParams.append(n,r.toString())}(t);const i=s();return i?Promise.resolve(i):function(t){var e,n;const r=null!==(n=null===(e=p.config.get().metadata)||void 0===e?void 0:e.appName)&&void 0!==n?n:"App",a=kh();return new Promise((e,n)=>{em({dialogContext:"popup_blocked"}),a.presentItem({title:Ih.replace("{app}",r),message:Ah,onClose:()=>{rm({dialogContext:"popup_blocked",dialogAction:"cancel"}),n(O.internal("Popup window was blocked"))},actionItems:[{text:"Try again",variant:"primary",onClick:()=>{rm({dialogContext:"popup_blocked",dialogAction:"confirm"});const r=t();r?e(r):n(O.internal("Popup window was blocked")),a.clear()}},{text:"Cancel",variant:"secondary",onClick:()=>{rm({dialogContext:"popup_blocked",dialogAction:"cancel"}),n(O.internal("Popup window was blocked")),a.clear()}}]})})}(s)}class Oh{constructor({url:t="https://app.startale.com",metadata:e,preference:a}){this.popup=null,this.listeners=new Map,this.postMessage=async t=>{(await this.waitForPopupLoaded()).postMessage(t,this.url.origin)},this.postRequestAndWaitForResponse=async t=>{const e=this.onMessage(({requestId:e})=>e===t.id);return this.postMessage(t),await e},this.onMessage=async t=>new Promise((e,n)=>{const r=n=>{if(n.origin!==this.url.origin)return;const a=n.data;t(a)&&(e(a),window.removeEventListener("message",r),this.listeners.delete(r))};window.addEventListener("message",r),this.listeners.set(r,{reject:n})}),this.disconnect=()=>{var t;(t=this.popup)&&!t.closed&&t.close(),this.popup=null,this.listeners.forEach(({reject:t},e)=>{t(S.userRejectedRequest("Request rejected")),window.removeEventListener("message",e)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?(this.popup.focus(),this.popup):(tm("communicator.popup_setup.started",{action:Xp.unknown,componentType:Qp.unknown},$p.high),this.popup=await Eh(this.url),this.onMessage(({event:t})=>"PopupUnload"===t).then(()=>{this.disconnect(),tm("communicator.popup_unload.received",{action:Xp.unknown,componentType:Qp.unknown},$p.high)}).catch(()=>{}),this.onMessage(({event:t})=>"PopupLoaded"===t).then(t=>{this.postMessage({requestId:t.id,data:{version:r,sdkName:n,metadata:this.metadata,preference:this.preference,location:window.location.toString()}})}).then(()=>{if(!this.popup)throw O.internal();return tm("communicator.popup_setup.completed",{action:Xp.unknown,componentType:Qp.unknown},$p.high),this.popup})),this.url=new URL(t),this.metadata=e,this.preference=a}}function Sh(t){const e=P(function(t){var e;if("string"==typeof t)return{message:t,code:y.internal};if(n=t,void 0!==n.errorMessage){const n=t.errorMessage,r=null!==(e=t.errorCode)&&void 0!==e?e:n.match(/(denied|rejected)/i)?g.userRejectedRequest:void 0;return Object.assign(Object.assign({},t),{message:n,code:r,data:{method:t.method}})}var n;return t}(t),{shouldIncludeStack:!0}),n=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");return n.searchParams.set("version",r),n.searchParams.set("code",e.code.toString()),n.searchParams.set("message",e.message),Object.assign(Object.assign({},e),{docUrl:n.href})}function Th(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ch={exports:{}};!function(t){var e=Object.prototype.hasOwnProperty,n="~";function r(){}function a(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function s(t,e,r,s,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var o=new a(r,s||t,i),c=n?n+e:e;return t._events[c]?t._events[c].fn?t._events[c]=[t._events[c],o]:t._events[c].push(o):(t._events[c]=o,t._eventsCount++),t}function i(t,e){0===--t._eventsCount?t._events=new r:delete t._events[e]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),o.prototype.eventNames=function(){var t,r,a=[];if(0===this._eventsCount)return a;for(r in t=this._events)e.call(t,r)&&a.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(t)):a},o.prototype.listeners=function(t){var e=n?n+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var a=0,s=r.length,i=new Array(s);a<s;a++)i[a]=r[a].fn;return i},o.prototype.listenerCount=function(t){var e=n?n+t:t,r=this._events[e];return r?r.fn?1:r.length:0},o.prototype.emit=function(t,e,r,a,s,i){var o=n?n+t:t;if(!this._events[o])return!1;var c,u,d=this._events[o],l=arguments.length;if(d.fn){switch(d.once&&this.removeListener(t,d.fn,void 0,!0),l){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,e),!0;case 3:return d.fn.call(d.context,e,r),!0;case 4:return d.fn.call(d.context,e,r,a),!0;case 5:return d.fn.call(d.context,e,r,a,s),!0;case 6:return d.fn.call(d.context,e,r,a,s,i),!0}for(u=1,c=new Array(l-1);u<l;u++)c[u-1]=arguments[u];d.fn.apply(d.context,c)}else{var f,p=d.length;for(u=0;u<p;u++)switch(d[u].once&&this.removeListener(t,d[u].fn,void 0,!0),l){case 1:d[u].fn.call(d[u].context);break;case 2:d[u].fn.call(d[u].context,e);break;case 3:d[u].fn.call(d[u].context,e,r);break;case 4:d[u].fn.call(d[u].context,e,r,a);break;default:if(!c)for(f=1,c=new Array(l-1);f<l;f++)c[f-1]=arguments[f];d[u].fn.apply(d[u].context,c)}}return!0},o.prototype.on=function(t,e,n){return s(this,t,e,n,!1)},o.prototype.once=function(t,e,n){return s(this,t,e,n,!0)},o.prototype.removeListener=function(t,e,r,a){var s=n?n+t:t;if(!this._events[s])return this;if(!e)return i(this,s),this;var o=this._events[s];if(o.fn)o.fn!==e||a&&!o.once||r&&o.context!==r||i(this,s);else{for(var c=0,u=[],d=o.length;c<d;c++)(o[c].fn!==e||a&&!o[c].once||r&&o[c].context!==r)&&u.push(o[c]);u.length?this._events[s]=1===u.length?u[0]:u:i(this,s)}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=n?n+t:t,this._events[e]&&i(this,e)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,t.exports=o}(Ch);var Bh=Th(Ch.exports);class Nh extends Bh{}const jh=t=>"message"in t&&"string"==typeof t.message?t.message:"";const Uh=t=>t;function Mh(t){return Math.floor(t)}const Rh=/^[0-9]*$/,Fh=/^[a-f0-9]*$/;function _h(t){return Uh(`0x${BigInt(t).toString(16)}`)}function zh(t){return(e=t).startsWith("0x")||e.startsWith("0X")?t.slice(2):t;var e}function Dh(t,e=!1){if("string"==typeof t){const n=zh(t).toLowerCase();if(Fh.test(n))return Uh(e?`0x${n}`:n)}throw O.invalidParams(`"${String(t)}" is not a hexadecimal string`)}function Lh(t){if("number"==typeof t&&Number.isInteger(t))return Mh(t);if("string"==typeof t){if(Rh.test(t))return Mh(Number(t));if(function(t){if("string"!=typeof t)return!1;const e=zh(t).toLowerCase();return Fh.test(e)}(t))return Mh(Number(BigInt(function(t,e=!1){let n=Dh(t,!1);return n.length%2==1&&(n=Uh(`0${n}`)),e?Uh(`0x${n}`):n}(t,!0))))}throw O.invalidParams(`Not an integer: ${String(t)}`)}const Gh=new TextDecoder,qh=Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((t,e)=>[e,t.charCodeAt(0)]));function Hh(t,e={}){return function(t,e={}){const{pad:n=!0,url:r=!1}=e,a=new Uint8Array(4*Math.ceil(t.length/3));for(let e=0,n=0;n<t.length;e+=4,n+=3){const r=(t[n]<<16)+(t[n+1]<<8)+(0|t[n+2]);a[e]=qh[r>>18],a[e+1]=qh[r>>12&63],a[e+2]=qh[r>>6&63],a[e+3]=qh[63&r]}const s=t.length%3,i=4*Math.floor(t.length/3)+(s&&s+1);let o=Gh.decode(new Uint8Array(a.buffer,0,i));return n&&1===s&&(o+="=="),n&&2===s&&(o+="="),r&&(o=o.replaceAll("+","-").replaceAll("/","_")),o}(Po(t),e)}
|
|
12
|
-
|
|
22
|
+
function Vo(t){void 0!==t.lowS&&cr("lowS",t.lowS),void 0!==t.prehash&&cr("prehash",t.prehash)}Ko.create=(t,e)=>new Go(t,e);class Zo extends Error{constructor(t=""){super(t)}}const Ho={Err:Zo,_tlv:{encode:(t,e)=>{const{Err:n}=Ho;if(t<0||t>256)throw new n("tlv.encode: wrong tag");if(1&e.length)throw new n("tlv.encode: unpadded data");const r=e.length/2,a=ur(r);if(a.length/2&128)throw new n("tlv.encode: long form length too big");const i=r>127?ur(a.length/2|128):"";return ur(t)+i+a+e},decode(t,e){const{Err:n}=Ho;let r=0;if(t<0||t>256)throw new n("tlv.encode: wrong tag");if(e.length<2||e[r++]!==t)throw new n("tlv.decode: wrong tlv");const a=e[r++];let i=0;if(!!(128&a)){const t=127&a;if(!t)throw new n("tlv.decode(long): indefinite length not supported");if(t>4)throw new n("tlv.decode(long): byte length is too big");const s=e.subarray(r,r+t);if(s.length!==t)throw new n("tlv.decode: length bytes not complete");if(0===s[0])throw new n("tlv.decode(long): zero leftmost byte");for(const t of s)i=i<<8|t;if(r+=t,i<128)throw new n("tlv.decode(long): not minimal encoding")}else i=a;const s=e.subarray(r,r+i);if(s.length!==i)throw new n("tlv.decode: wrong value length");return{v:s,l:e.subarray(r+i)}}},_int:{encode(t){const{Err:e}=Ho;if(t<Jo)throw new e("integer: negative integers are not allowed");let n=ur(t);if(8&Number.parseInt(n[0],16)&&(n="00"+n),1&n.length)throw new e("unexpected DER parsing assertion: unpadded hex");return n},decode(t){const{Err:e}=Ho;if(128&t[0])throw new e("invalid signature integer: negative");if(0===t[0]&&!(128&t[1]))throw new e("invalid signature integer: unnecessary leading zero");return kr(t)}},toSig(t){const{Err:e,_int:n,_tlv:r}=Ho,a=Pr("signature",t),{v:i,l:s}=r.decode(48,a);if(s.length)throw new e("invalid signature: left bytes after parsing");const{v:o,l:c}=r.decode(2,i),{v:u,l:d}=r.decode(2,c);if(d.length)throw new e("invalid signature: left bytes after parsing");return{r:n.decode(o),s:n.decode(u)}},hexFromSig(t){const{_tlv:e,_int:n}=Ho,r=e.encode(2,n.encode(t.r))+e.encode(2,n.encode(t.s));return e.encode(48,r)}};function Wo(t,e){return hr(Ir(t,e))}const Jo=BigInt(0),Yo=BigInt(1);BigInt(2);const $o=BigInt(3),Qo=BigInt(4);function Xo(t){const e=function(t){const e=pa(t);jr(e,{a:"field",b:"field"},{allowInfinityPoint:"boolean",allowedPrivateKeyLengths:"array",clearCofactor:"function",fromBytes:"function",isTorsionFree:"function",toBytes:"function",wrapPrivateKey:"boolean"});const{endo:n,Fp:r,a:a}=e;if(n){if(!r.eql(a,r.ZERO))throw new Error("invalid endo: CURVE.a must be 0");if("object"!=typeof n||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error('invalid endo: expected "beta": bigint and "splitScalar": function')}return Object.freeze({...e})}(t),{Fp:n}=e,r=ta(e.n,e.nBitLength),a=e.toBytes||((t,e,r)=>{const a=e.toAffine();return Sr(Uint8Array.from([4]),n.toBytes(a.x),n.toBytes(a.y))}),i=e.fromBytes||(t=>{const e=t.subarray(1);return{x:n.fromBytes(e.subarray(0,n.BYTES)),y:n.fromBytes(e.subarray(n.BYTES,2*n.BYTES))}});function s(t){const{a:r,b:a}=e,i=n.sqr(t),s=n.mul(i,t);return n.add(n.add(s,n.mul(t,r)),a)}function o(t,e){const r=n.sqr(e),a=s(t);return n.eql(r,a)}if(!o(e.Gx,e.Gy))throw new Error("bad curve params: generator point");const c=n.mul(n.pow(e.a,$o),Qo),u=n.mul(n.sqr(e.b),BigInt(27));if(n.is0(n.add(c,u)))throw new Error("bad curve params: a or b");function d(t){const{allowedPrivateKeyLengths:n,nByteLength:r,wrapPrivateKey:a,n:i}=e;if(n&&"bigint"!=typeof t){if(sr(t)&&(t=hr(t)),"string"!=typeof t||!n.includes(t.length))throw new Error("invalid private key");t=t.padStart(2*r,"0")}let s;try{s="bigint"==typeof t?t:kr(Pr("private key",t,r))}catch(e){throw new Error("invalid private key, expected hex or "+r+" bytes, got "+typeof t)}return a&&(s=Kr(s,i)),Tr("private key",s,Yo,i),s}function l(t){if(!(t instanceof p))throw new Error("ProjectivePoint expected")}const f=Rr((t,e)=>{const{px:r,py:a,pz:i}=t;if(n.eql(i,n.ONE))return{x:r,y:a};const s=t.is0();null==e&&(e=s?n.ONE:n.inv(i));const o=n.mul(r,e),c=n.mul(a,e),u=n.mul(i,e);if(s)return{x:n.ZERO,y:n.ZERO};if(!n.eql(u,n.ONE))throw new Error("invZ was invalid");return{x:o,y:c}}),h=Rr(t=>{if(t.is0()){if(e.allowInfinityPoint&&!n.is0(t.py))return;throw new Error("bad point: ZERO")}const{x:r,y:a}=t.toAffine();if(!n.isValid(r)||!n.isValid(a))throw new Error("bad point: x or y not FE");if(!o(r,a))throw new Error("bad point: equation left != right");if(!t.isTorsionFree())throw new Error("bad point: not in prime-order subgroup");return!0});class p{constructor(t,e,r){if(null==t||!n.isValid(t))throw new Error("x required");if(null==e||!n.isValid(e)||n.is0(e))throw new Error("y required");if(null==r||!n.isValid(r))throw new Error("z required");this.px=t,this.py=e,this.pz=r,Object.freeze(this)}static fromAffine(t){const{x:e,y:r}=t||{};if(!t||!n.isValid(e)||!n.isValid(r))throw new Error("invalid affine point");if(t instanceof p)throw new Error("projective point not allowed");const a=t=>n.eql(t,n.ZERO);return a(e)&&a(r)?p.ZERO:new p(e,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(t){const e=$r(n,t.map(t=>t.pz));return t.map((t,n)=>t.toAffine(e[n])).map(p.fromAffine)}static fromHex(t){const e=p.fromAffine(i(Pr("pointHex",t)));return e.assertValidity(),e}static fromPrivateKey(t){return p.BASE.multiply(d(t))}static msm(t,e){return ha(p,r,t,e)}_setWindowSize(t){g.setWindowSize(this,t)}assertValidity(){h(this)}hasEvenY(){const{y:t}=this.toAffine();if(n.isOdd)return!n.isOdd(t);throw new Error("Field doesn't support isOdd")}equals(t){l(t);const{px:e,py:r,pz:a}=this,{px:i,py:s,pz:o}=t,c=n.eql(n.mul(e,o),n.mul(i,a)),u=n.eql(n.mul(r,o),n.mul(s,a));return c&&u}negate(){return new p(this.px,n.neg(this.py),this.pz)}double(){const{a:t,b:r}=e,a=n.mul(r,$o),{px:i,py:s,pz:o}=this;let c=n.ZERO,u=n.ZERO,d=n.ZERO,l=n.mul(i,i),f=n.mul(s,s),h=n.mul(o,o),m=n.mul(i,s);return m=n.add(m,m),d=n.mul(i,o),d=n.add(d,d),c=n.mul(t,d),u=n.mul(a,h),u=n.add(c,u),c=n.sub(f,u),u=n.add(f,u),u=n.mul(c,u),c=n.mul(m,c),d=n.mul(a,d),h=n.mul(t,h),m=n.sub(l,h),m=n.mul(t,m),m=n.add(m,d),d=n.add(l,l),l=n.add(d,l),l=n.add(l,h),l=n.mul(l,m),u=n.add(u,l),h=n.mul(s,o),h=n.add(h,h),l=n.mul(h,m),c=n.sub(c,l),d=n.mul(h,f),d=n.add(d,d),d=n.add(d,d),new p(c,u,d)}add(t){l(t);const{px:r,py:a,pz:i}=this,{px:s,py:o,pz:c}=t;let u=n.ZERO,d=n.ZERO,f=n.ZERO;const h=e.a,m=n.mul(e.b,$o);let y=n.mul(r,s),g=n.mul(a,o),b=n.mul(i,c),v=n.add(r,a),w=n.add(s,o);v=n.mul(v,w),w=n.add(y,g),v=n.sub(v,w),w=n.add(r,i);let x=n.add(s,c);return w=n.mul(w,x),x=n.add(y,b),w=n.sub(w,x),x=n.add(a,i),u=n.add(o,c),x=n.mul(x,u),u=n.add(g,b),x=n.sub(x,u),f=n.mul(h,w),u=n.mul(m,b),f=n.add(u,f),u=n.sub(g,f),f=n.add(g,f),d=n.mul(u,f),g=n.add(y,y),g=n.add(g,y),b=n.mul(h,b),w=n.mul(m,w),g=n.add(g,b),b=n.sub(y,b),b=n.mul(h,b),w=n.add(w,b),y=n.mul(g,w),d=n.add(d,y),y=n.mul(x,w),u=n.mul(v,u),u=n.sub(u,y),y=n.mul(v,g),f=n.mul(x,f),f=n.add(f,y),new p(u,d,f)}subtract(t){return this.add(t.negate())}is0(){return this.equals(p.ZERO)}wNAF(t){return g.wNAFCached(this,t,p.normalizeZ)}multiplyUnsafe(t){const{endo:r,n:a}=e;Tr("scalar",t,Jo,a);const i=p.ZERO;if(t===Jo)return i;if(this.is0()||t===Yo)return this;if(!r||g.hasPrecomputes(this))return g.wNAFCachedUnsafe(this,t,p.normalizeZ);let{k1neg:s,k1:o,k2neg:c,k2:u}=r.splitScalar(t),d=i,l=i,f=this;for(;o>Jo||u>Jo;)o&Yo&&(d=d.add(f)),u&Yo&&(l=l.add(f)),f=f.double(),o>>=Yo,u>>=Yo;return s&&(d=d.negate()),c&&(l=l.negate()),l=new p(n.mul(l.px,r.beta),l.py,l.pz),d.add(l)}multiply(t){const{endo:r,n:a}=e;let i,s;if(Tr("scalar",t,Yo,a),r){const{k1neg:e,k1:a,k2neg:o,k2:c}=r.splitScalar(t);let{p:u,f:d}=this.wNAF(a),{p:l,f:f}=this.wNAF(c);u=g.constTimeNegate(e,u),l=g.constTimeNegate(o,l),l=new p(n.mul(l.px,r.beta),l.py,l.pz),i=u.add(l),s=d.add(f)}else{const{p:e,f:n}=this.wNAF(t);i=e,s=n}return p.normalizeZ([i,s])[0]}multiplyAndAddUnsafe(t,e,n){const r=p.BASE,a=(t,e)=>e!==Jo&&e!==Yo&&t.equals(r)?t.multiply(e):t.multiplyUnsafe(e),i=a(this,e).add(a(t,n));return i.is0()?void 0:i}toAffine(t){return f(this,t)}isTorsionFree(){const{h:t,isTorsionFree:n}=e;if(t===Yo)return!0;if(n)return n(p,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:t,clearCofactor:n}=e;return t===Yo?this:n?n(p,this):this.multiplyUnsafe(e.h)}toRawBytes(t=!0){return cr("isCompressed",t),this.assertValidity(),a(p,this,t)}toHex(t=!0){return cr("isCompressed",t),hr(this.toRawBytes(t))}}p.BASE=new p(e.Gx,e.Gy,n.ONE),p.ZERO=new p(n.ZERO,n.ONE,n.ZERO);const{endo:m,nBitLength:y}=e,g=fa(p,m?Math.ceil(y/2):y);return{CURVE:e,ProjectivePoint:p,normPrivateKeyToScalar:d,weierstrassEquation:s,isWithinCurveOrder:function(t){return Or(t,Yo,e.n)}}}function tc(t){const e=function(t){const e=pa(t);return jr(e,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...e})}(t),{Fp:n,n:r,nByteLength:a,nBitLength:i}=e,s=n.BYTES+1,o=2*n.BYTES+1;function c(t){return Kr(t,r)}function u(t){return Zr(t,r)}const{ProjectivePoint:d,normPrivateKeyToScalar:l,weierstrassEquation:f,isWithinCurveOrder:h}=Xo({...e,toBytes(t,e,r){const a=e.toAffine(),i=n.toBytes(a.x),s=Sr;return cr("isCompressed",r),r?s(Uint8Array.from([e.hasEvenY()?2:3]),i):s(Uint8Array.from([4]),i,n.toBytes(a.y))},fromBytes(t){const e=t.length,r=t[0],a=t.subarray(1);if(e!==s||2!==r&&3!==r){if(e===o&&4===r){return{x:n.fromBytes(a.subarray(0,n.BYTES)),y:n.fromBytes(a.subarray(n.BYTES,2*n.BYTES))}}throw new Error("invalid Point, expected length of "+s+", or uncompressed "+o+", got "+e)}{const t=kr(a);if(!Or(t,Yo,n.ORDER))throw new Error("Point is not on curve");const e=f(t);let i;try{i=n.sqrt(e)}catch(t){const e=t instanceof Error?": "+t.message:"";throw new Error("Point is not on curve"+e)}return!(1&~r)!==((i&Yo)===Yo)&&(i=n.neg(i)),{x:t,y:i}}}});function p(t){return t>r>>Yo}const m=(t,e,n)=>kr(t.slice(e,n));class y{constructor(t,e,n){Tr("r",t,Yo,r),Tr("s",e,Yo,r),this.r=t,this.s=e,null!=n&&(this.recovery=n),Object.freeze(this)}static fromCompact(t){const e=a;return t=Pr("compactSignature",t,2*e),new y(m(t,0,e),m(t,e,2*e))}static fromDER(t){const{r:e,s:n}=Ho.toSig(Pr("DER",t));return new y(e,n)}assertValidity(){}addRecoveryBit(t){return new y(this.r,this.s,t)}recoverPublicKey(t){const{r:r,s:a,recovery:i}=this,s=w(Pr("msgHash",t));if(null==i||![0,1,2,3].includes(i))throw new Error("recovery id invalid");const o=2===i||3===i?r+e.n:r;if(o>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const l=1&i?"03":"02",f=d.fromHex(l+Wo(o,n.BYTES)),h=u(o),p=c(-s*h),m=c(a*h),y=d.BASE.multiplyAndAddUnsafe(f,p,m);if(!y)throw new Error("point at infinify");return y.assertValidity(),y}hasHighS(){return p(this.s)}normalizeS(){return this.hasHighS()?new y(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return xr(this.toDERHex())}toDERHex(){return Ho.hexFromSig(this)}toCompactRawBytes(){return xr(this.toCompactHex())}toCompactHex(){const t=a;return Wo(this.r,t)+Wo(this.s,t)}}const g={isValidPrivateKey(t){try{return l(t),!0}catch(t){return!1}},normPrivateKeyToScalar:l,randomPrivateKey:()=>{const t=na(e.n);return function(t,e,n=!1){const r=t.length,a=ea(e),i=na(e);if(r<16||r<i||r>1024)throw new Error("expected "+i+"-1024 bytes of input, got "+r);const s=Kr(n?Ar(t):kr(t),e-Lr)+Lr;return n?Er(s,a):Ir(s,a)}(e.randomBytes(t),e.n)},precompute:(t=8,e=d.BASE)=>(e._setWindowSize(t),e.multiply(BigInt(3)),e)};function b(t){if("bigint"==typeof t)return!1;if(t instanceof d)return!0;const r=Pr("key",t).length,i=n.BYTES,s=i+1,o=2*i+1;return e.allowedPrivateKeyLengths||a===s?void 0:r===s||r===o}const v=e.bits2int||function(t){if(t.length>8192)throw new Error("input is too large");const e=kr(t),n=8*t.length-i;return n>0?e>>BigInt(n):e},w=e.bits2int_modN||function(t){return c(v(t))},x=Br(i);function k(t){return Tr("num < 2^"+i,t,Jo,x),Ir(t,a)}function A(t,r,a=I){if(["recovered","canonical"].some(t=>t in a))throw new Error("sign() legacy options not supported");const{hash:i,randomBytes:s}=e;let{lowS:o,prehash:f,extraEntropy:m}=a;null==o&&(o=!0),t=Pr("msgHash",t),Vo(a),f&&(t=Pr("prehashed msgHash",i(t)));const g=w(t),b=l(r),x=[k(b),k(g)];if(null!=m&&!1!==m){const t=!0===m?s(n.BYTES):m;x.push(Pr("extraEntropy",t))}const A=Sr(...x),E=g;return{seed:A,k2sig:function(t){const e=v(t);if(!h(e))return;const n=u(e),r=d.BASE.multiply(e).toAffine(),a=c(r.x);if(a===Jo)return;const i=c(n*c(E+a*b));if(i===Jo)return;let s=(r.x===a?0:2)|Number(r.y&Yo),l=i;return o&&p(i)&&(l=function(t){return p(t)?c(-t):t}(i),s^=1),new y(a,l,s)}}}const I={lowS:e.lowS,prehash:!1},E={lowS:e.lowS,prehash:!1};return d.BASE._setWindowSize(8),{CURVE:e,getPublicKey:function(t,e=!0){return d.fromPrivateKey(t).toRawBytes(e)},getSharedSecret:function(t,e,n=!0){if(!0===b(t))throw new Error("first arg must be private key");if(!1===b(e))throw new Error("second arg must be public key");return d.fromHex(e).multiply(l(t)).toRawBytes(n)},sign:function(t,n,r=I){const{seed:a,k2sig:i}=A(t,n,r),s=e,o=function(t,e,n){if("number"!=typeof t||t<2)throw new Error("hashLen must be a number");if("number"!=typeof e||e<2)throw new Error("qByteLen must be a number");if("function"!=typeof n)throw new Error("hmacFn must be a function");let r=Mr(t),a=Mr(t),i=0;const s=()=>{r.fill(1),a.fill(0),i=0},o=(...t)=>n(a,r,...t),c=(t=Mr(0))=>{a=o(Cr([0]),t),r=o(),0!==t.length&&(a=o(Cr([1]),t),r=o())},u=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let t=0;const n=[];for(;t<e;){r=o();const e=r.slice();n.push(e),t+=r.length}return Sr(...n)};return(t,e)=>{let n;for(s(),c(t);!(n=e(u()));)c();return s(),n}}(s.hash.outputLen,s.nByteLength,s.hmac);return o(a,i)},verify:function(t,n,r,a=E){const i=t;n=Pr("msgHash",n),r=Pr("publicKey",r);const{lowS:s,prehash:o,format:l}=a;if(Vo(a),"strict"in a)throw new Error("options.strict was renamed to lowS");if(void 0!==l&&"compact"!==l&&"der"!==l)throw new Error("format must be compact or der");const f="string"==typeof i||sr(i),h=!f&&!l&&"object"==typeof i&&null!==i&&"bigint"==typeof i.r&&"bigint"==typeof i.s;if(!f&&!h)throw new Error("invalid signature, expected Uint8Array, hex string or Signature instance");let p,m;try{if(h&&(p=new y(i.r,i.s)),f){try{"compact"!==l&&(p=y.fromDER(i))}catch(t){if(!(t instanceof Ho.Err))throw t}p||"der"===l||(p=y.fromCompact(i))}m=d.fromHex(r)}catch(t){return!1}if(!p)return!1;if(s&&p.hasHighS())return!1;o&&(n=e.hash(n));const{r:g,s:b}=p,v=w(n),x=u(b),k=c(v*x),A=c(g*x),I=d.BASE.multiplyAndAddUnsafe(m,k,A)?.toAffine();return!!I&&c(I.x)===g},ProjectivePoint:d,Signature:y,utils:g}}
|
|
23
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */function ec(t){return{hash:t,hmac:(e,...n)=>Ko(t,e,function(...t){let e=0;for(let n=0;n<t.length;n++){const r=t[n];dn(r),e+=r.length}const n=new Uint8Array(e);for(let e=0,r=0;e<t.length;e++){const a=t[e];n.set(a,r),r+=a.length}return n}(...n)),randomBytes:xn}}function nc(t,e){const n=e=>tc({...t,...ec(e)});return{...n(e),create:n}}
|
|
24
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const rc=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),ac=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),ic=BigInt(0),sc=BigInt(1),oc=BigInt(2),cc=(t,e)=>(t+e/oc)/e;const uc=ta(rc,void 0,void 0,{sqrt:function(t){const e=rc,n=BigInt(3),r=BigInt(6),a=BigInt(11),i=BigInt(22),s=BigInt(23),o=BigInt(44),c=BigInt(88),u=t*t*t%e,d=u*u*t%e,l=Vr(d,n,e)*d%e,f=Vr(l,n,e)*d%e,h=Vr(f,oc,e)*u%e,p=Vr(h,a,e)*h%e,m=Vr(p,i,e)*p%e,y=Vr(m,o,e)*m%e,g=Vr(y,c,e)*y%e,b=Vr(g,o,e)*m%e,v=Vr(b,n,e)*d%e,w=Vr(v,s,e)*p%e,x=Vr(w,r,e)*u%e,k=Vr(x,oc,e);if(!uc.eql(uc.sqr(k),t))throw new Error("Cannot find square root");return k}}),dc=nc({a:ic,b:BigInt(7),Fp:uc,n:ac,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:t=>{const e=ac,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-sc*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=n,s=BigInt("0x100000000000000000000000000000000"),o=cc(i*t,e),c=cc(-r*t,e);let u=Kr(t-o*n-c*a,e),d=Kr(-o*r-c*i,e);const l=u>s,f=d>s;if(l&&(u=e-u),f&&(d=e-d),u>s||d>s)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:l,k1:u,k2neg:f,k2:d}}}},er);var lc=Object.freeze({__proto__:null,secp256k1:dc});function fc(t){try{return Ba.ExtendedPoint.fromHex(t),!0}catch{return!1}}const hc=(t,e)=>Ba.sign(t,e.slice(0,32)),pc=Ba.verify,mc=t=>Ye.Buffer.isBuffer(t)?t:t instanceof Uint8Array?Ye.Buffer.from(t.buffer,t.byteOffset,t.byteLength):Ye.Buffer.from(t);class yc{constructor(t){Object.assign(this,t)}encode(){return Ye.Buffer.from(Mi(gc,this))}static decode(t){return ji(gc,this,t)}static decodeUnchecked(t){return vi(gc,this,t)}}const gc=new Map;var bc;const vc=32;let wc=1;class xc extends yc{constructor(t){if(super({}),this._bn=void 0,function(t){return void 0!==t._bn}(t))this._bn=t._bn;else{if("string"==typeof t){const e=Fa.decode(t);if(e.length!=vc)throw new Error("Invalid public key input");this._bn=new ja(e)}else this._bn=new ja(t);if(this._bn.byteLength()>vc)throw new Error("Invalid public key input")}}static unique(){const t=new xc(wc);return wc+=1,new xc(t.toBuffer())}equals(t){return this._bn.eq(t._bn)}toBase58(){return Fa.encode(this.toBytes())}toJSON(){return this.toBase58()}toBytes(){const t=this.toBuffer();return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}toBuffer(){const t=this._bn.toArrayLike(Ye.Buffer);if(t.length===vc)return t;const e=Ye.Buffer.alloc(32);return t.copy(e,32-t.length),e}get[Symbol.toStringTag](){return`PublicKey(${this.toString()})`}toString(){return this.toBase58()}static async createWithSeed(t,e,n){const r=Ye.Buffer.concat([t.toBuffer(),Ye.Buffer.from(e),n.toBuffer()]),a=ei(r);return new xc(a)}static createProgramAddressSync(t,e){let n=Ye.Buffer.alloc(0);t.forEach(function(t){if(t.length>32)throw new TypeError("Max seed length exceeded");n=Ye.Buffer.concat([n,mc(t)])}),n=Ye.Buffer.concat([n,e.toBuffer(),Ye.Buffer.from("ProgramDerivedAddress")]);const r=ei(n);if(fc(r))throw new Error("Invalid seeds, address must fall off the curve");return new xc(r)}static async createProgramAddress(t,e){return this.createProgramAddressSync(t,e)}static findProgramAddressSync(t,e){let n,r=255;for(;0!=r;){try{const a=t.concat(Ye.Buffer.from([r]));n=this.createProgramAddressSync(a,e)}catch(t){if(t instanceof TypeError)throw t;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}static async findProgramAddress(t,e){return this.findProgramAddressSync(t,e)}static isOnCurve(t){return fc(new xc(t).toBytes())}}bc=xc,xc.default=new bc("11111111111111111111111111111111"),gc.set(xc,{kind:"struct",fields:[["_bn","u256"]]}),new xc("BPFLoader1111111111111111111111111111111111");const kc=1232;class Ac{constructor(t,e){this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=t,this.accountKeysFromLookups=e}keySegments(){const t=[this.staticAccountKeys];return this.accountKeysFromLookups&&(t.push(this.accountKeysFromLookups.writable),t.push(this.accountKeysFromLookups.readonly)),t}get(t){for(const e of this.keySegments()){if(t<e.length)return e[t];t-=e.length}}get length(){return this.keySegments().flat().length}compileInstructions(t){if(this.length>256)throw new Error("Account index overflow encountered during compilation");const e=new Map;this.keySegments().flat().forEach((t,n)=>{e.set(t.toBase58(),n)});const n=t=>{const n=e.get(t.toBase58());if(void 0===n)throw new Error("Encountered an unknown instruction account key during compilation");return n};return t.map(t=>({programIdIndex:n(t.programId),accountKeyIndexes:t.keys.map(t=>n(t.pubkey)),data:t.data}))}}const Ic=(t="publicKey")=>_s(32,t),Ec=(t="signature")=>_s(64,t),Pc=(t="string")=>{const e=Ps([As("length"),As("lengthPadding"),_s(ws(As(),-8),"chars")],t),n=e.decode.bind(e),r=e.encode.bind(e),a=e;return a.decode=(t,e)=>n(t,e).chars.toString(),a.encode=(t,e,n)=>{const a={chars:Ye.Buffer.from(t,"utf8")};return r(a,e,n)},a.alloc=t=>As().span+As().span+Ye.Buffer.from(t,"utf8").length,a};function Sc(t){let e=0,n=0;for(;;){let r=t.shift();if(e|=(127&r)<<7*n,n+=1,!(128&r))break}return e}function _c(t,e){let n=e;for(;;){let e=127&n;if(n>>=7,0==n){t.push(e);break}e|=128,t.push(e)}}function Oc(t,e){if(!t)throw new Error(e||"Assertion failed")}class Tc{constructor(t,e){this.payer=void 0,this.keyMetaMap=void 0,this.payer=t,this.keyMetaMap=e}static compile(t,e){const n=new Map,r=t=>{const e=t.toBase58();let r=n.get(e);return void 0===r&&(r={isSigner:!1,isWritable:!1,isInvoked:!1},n.set(e,r)),r},a=r(e);a.isSigner=!0,a.isWritable=!0;for(const e of t){r(e.programId).isInvoked=!0;for(const t of e.keys){const e=r(t.pubkey);e.isSigner||=t.isSigner,e.isWritable||=t.isWritable}}return new Tc(e,n)}getMessageComponents(){const t=[...this.keyMetaMap.entries()];Oc(t.length<=256,"Max static account keys length exceeded");const e=t.filter(([,t])=>t.isSigner&&t.isWritable),n=t.filter(([,t])=>t.isSigner&&!t.isWritable),r=t.filter(([,t])=>!t.isSigner&&t.isWritable),a=t.filter(([,t])=>!t.isSigner&&!t.isWritable),i={numRequiredSignatures:e.length+n.length,numReadonlySignedAccounts:n.length,numReadonlyUnsignedAccounts:a.length};{Oc(e.length>0,"Expected at least one writable signer key");const[t]=e[0];Oc(t===this.payer.toBase58(),"Expected first writable signer key to be the fee payer")}return[i,[...e.map(([t])=>new xc(t)),...n.map(([t])=>new xc(t)),...r.map(([t])=>new xc(t)),...a.map(([t])=>new xc(t))]]}extractTableLookup(t){const[e,n]=this.drainKeysFoundInLookupTable(t.state.addresses,t=>!t.isSigner&&!t.isInvoked&&t.isWritable),[r,a]=this.drainKeysFoundInLookupTable(t.state.addresses,t=>!t.isSigner&&!t.isInvoked&&!t.isWritable);if(0!==e.length||0!==r.length)return[{accountKey:t.key,writableIndexes:e,readonlyIndexes:r},{writable:n,readonly:a}]}drainKeysFoundInLookupTable(t,e){const n=new Array,r=new Array;for(const[a,i]of this.keyMetaMap.entries())if(e(i)){const e=new xc(a),i=t.findIndex(t=>t.equals(e));i>=0&&(Oc(i<256,"Max lookup table index exceeded"),n.push(i),r.push(e),this.keyMetaMap.delete(a))}return[n,r]}}const Bc="Reached end of buffer unexpectedly";function Mc(t){if(0===t.length)throw new Error(Bc);return t.shift()}function Cc(t,...e){const[n]=e;if(2===e.length?n+(e[1]??0)>t.length:n>=t.length)throw new Error(Bc);return t.splice(...e)}class Nc{constructor(t){this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=t.header,this.accountKeys=t.accountKeys.map(t=>new xc(t)),this.recentBlockhash=t.recentBlockhash,this.instructions=t.instructions,this.instructions.forEach(t=>this.indexToProgramIds.set(t.programIdIndex,this.accountKeys[t.programIdIndex]))}get version(){return"legacy"}get staticAccountKeys(){return this.accountKeys}get compiledInstructions(){return this.instructions.map(t=>({programIdIndex:t.programIdIndex,accountKeyIndexes:t.accounts,data:Fa.decode(t.data)}))}get addressTableLookups(){return[]}getAccountKeys(){return new Ac(this.staticAccountKeys)}static compile(t){const e=Tc.compile(t.instructions,t.payerKey),[n,r]=e.getMessageComponents(),a=new Ac(r).compileInstructions(t.instructions).map(t=>({programIdIndex:t.programIdIndex,accounts:t.accountKeyIndexes,data:Fa.encode(t.data)}));return new Nc({header:n,accountKeys:r,recentBlockhash:t.recentBlockhash,instructions:a})}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const e=this.header.numRequiredSignatures;if(t>=this.header.numRequiredSignatures){return t-e<this.accountKeys.length-e-this.header.numReadonlyUnsignedAccounts}return t<e-this.header.numReadonlySignedAccounts}isProgramId(t){return this.indexToProgramIds.has(t)}programIds(){return[...this.indexToProgramIds.values()]}nonProgramIds(){return this.accountKeys.filter((t,e)=>!this.isProgramId(e))}serialize(){const t=this.accountKeys.length;let e=[];_c(e,t);const n=this.instructions.map(t=>{const{accounts:e,programIdIndex:n}=t,r=Array.from(Fa.decode(t.data));let a=[];_c(a,e.length);let i=[];return _c(i,r.length),{programIdIndex:n,keyIndicesCount:Ye.Buffer.from(a),keyIndices:e,dataLength:Ye.Buffer.from(i),data:r}});let r=[];_c(r,n.length);let a=Ye.Buffer.alloc(kc);Ye.Buffer.from(r).copy(a);let i=r.length;n.forEach(t=>{const e=Ps([xs("programIdIndex"),_s(t.keyIndicesCount.length,"keyIndicesCount"),Ss(xs("keyIndex"),t.keyIndices.length,"keyIndices"),_s(t.dataLength.length,"dataLength"),Ss(xs("userdatum"),t.data.length,"data")]).encode(t,a,i);i+=e}),a=a.slice(0,i);const s=Ps([_s(1,"numRequiredSignatures"),_s(1,"numReadonlySignedAccounts"),_s(1,"numReadonlyUnsignedAccounts"),_s(e.length,"keyCount"),Ss(Ic("key"),t,"keys"),Ic("recentBlockhash")]),o={numRequiredSignatures:Ye.Buffer.from([this.header.numRequiredSignatures]),numReadonlySignedAccounts:Ye.Buffer.from([this.header.numReadonlySignedAccounts]),numReadonlyUnsignedAccounts:Ye.Buffer.from([this.header.numReadonlyUnsignedAccounts]),keyCount:Ye.Buffer.from(e),keys:this.accountKeys.map(t=>mc(t.toBytes())),recentBlockhash:Fa.decode(this.recentBlockhash)};let c=Ye.Buffer.alloc(2048);const u=s.encode(o,c);return a.copy(c,u),c.slice(0,u+a.length)}static from(t){let e=[...t];const n=Mc(e);if(n!==(127&n))throw new Error("Versioned messages must be deserialized with VersionedMessage.deserialize()");const r=Mc(e),a=Mc(e),i=Sc(e);let s=[];for(let t=0;t<i;t++){const t=Cc(e,0,vc);s.push(new xc(Ye.Buffer.from(t)))}const o=Cc(e,0,vc),c=Sc(e);let u=[];for(let t=0;t<c;t++){const t=Mc(e),n=Cc(e,0,Sc(e)),r=Cc(e,0,Sc(e)),a=Fa.encode(Ye.Buffer.from(r));u.push({programIdIndex:t,accounts:n,data:a})}const d={header:{numRequiredSignatures:n,numReadonlySignedAccounts:r,numReadonlyUnsignedAccounts:a},recentBlockhash:Fa.encode(Ye.Buffer.from(o)),accountKeys:s,instructions:u};return new Nc(d)}}class jc{constructor(t){this.header=void 0,this.staticAccountKeys=void 0,this.recentBlockhash=void 0,this.compiledInstructions=void 0,this.addressTableLookups=void 0,this.header=t.header,this.staticAccountKeys=t.staticAccountKeys,this.recentBlockhash=t.recentBlockhash,this.compiledInstructions=t.compiledInstructions,this.addressTableLookups=t.addressTableLookups}get version(){return 0}get numAccountKeysFromLookups(){let t=0;for(const e of this.addressTableLookups)t+=e.readonlyIndexes.length+e.writableIndexes.length;return t}getAccountKeys(t){let e;if(t&&"accountKeysFromLookups"in t&&t.accountKeysFromLookups){if(this.numAccountKeysFromLookups!=t.accountKeysFromLookups.writable.length+t.accountKeysFromLookups.readonly.length)throw new Error("Failed to get account keys because of a mismatch in the number of account keys from lookups");e=t.accountKeysFromLookups}else if(t&&"addressLookupTableAccounts"in t&&t.addressLookupTableAccounts)e=this.resolveAddressTableLookups(t.addressLookupTableAccounts);else if(this.addressTableLookups.length>0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new Ac(this.staticAccountKeys,e)}isAccountSigner(t){return t<this.header.numRequiredSignatures}isAccountWritable(t){const e=this.header.numRequiredSignatures,n=this.staticAccountKeys.length;if(t>=n){const e=t-n,r=this.addressTableLookups.reduce((t,e)=>t+e.writableIndexes.length,0);return e<r}if(t>=this.header.numRequiredSignatures){return t-e<n-e-this.header.numReadonlyUnsignedAccounts}return t<e-this.header.numReadonlySignedAccounts}resolveAddressTableLookups(t){const e={writable:[],readonly:[]};for(const n of this.addressTableLookups){const r=t.find(t=>t.key.equals(n.accountKey));if(!r)throw new Error(`Failed to find address lookup table account for table key ${n.accountKey.toBase58()}`);for(const t of n.writableIndexes){if(!(t<r.state.addresses.length))throw new Error(`Failed to find address for index ${t} in address lookup table ${n.accountKey.toBase58()}`);e.writable.push(r.state.addresses[t])}for(const t of n.readonlyIndexes){if(!(t<r.state.addresses.length))throw new Error(`Failed to find address for index ${t} in address lookup table ${n.accountKey.toBase58()}`);e.readonly.push(r.state.addresses[t])}}return e}static compile(t){const e=Tc.compile(t.instructions,t.payerKey),n=new Array,r={writable:new Array,readonly:new Array},a=t.addressLookupTableAccounts||[];for(const t of a){const a=e.extractTableLookup(t);if(void 0!==a){const[t,{writable:e,readonly:i}]=a;n.push(t),r.writable.push(...e),r.readonly.push(...i)}}const[i,s]=e.getMessageComponents(),o=new Ac(s,r).compileInstructions(t.instructions);return new jc({header:i,staticAccountKeys:s,recentBlockhash:t.recentBlockhash,compiledInstructions:o,addressTableLookups:n})}serialize(){const t=Array();_c(t,this.staticAccountKeys.length);const e=this.serializeInstructions(),n=Array();_c(n,this.compiledInstructions.length);const r=this.serializeAddressTableLookups(),a=Array();_c(a,this.addressTableLookups.length);const i=Ps([xs("prefix"),Ps([xs("numRequiredSignatures"),xs("numReadonlySignedAccounts"),xs("numReadonlyUnsignedAccounts")],"header"),_s(t.length,"staticAccountKeysLength"),Ss(Ic(),this.staticAccountKeys.length,"staticAccountKeys"),Ic("recentBlockhash"),_s(n.length,"instructionsLength"),_s(e.length,"serializedInstructions"),_s(a.length,"addressTableLookupsLength"),_s(r.length,"serializedAddressTableLookups")]),s=new Uint8Array(kc),o=i.encode({prefix:128,header:this.header,staticAccountKeysLength:new Uint8Array(t),staticAccountKeys:this.staticAccountKeys.map(t=>t.toBytes()),recentBlockhash:Fa.decode(this.recentBlockhash),instructionsLength:new Uint8Array(n),serializedInstructions:e,addressTableLookupsLength:new Uint8Array(a),serializedAddressTableLookups:r},s);return s.slice(0,o)}serializeInstructions(){let t=0;const e=new Uint8Array(kc);for(const n of this.compiledInstructions){const r=Array();_c(r,n.accountKeyIndexes.length);const a=Array();_c(a,n.data.length);t+=Ps([xs("programIdIndex"),_s(r.length,"encodedAccountKeyIndexesLength"),Ss(xs(),n.accountKeyIndexes.length,"accountKeyIndexes"),_s(a.length,"encodedDataLength"),_s(n.data.length,"data")]).encode({programIdIndex:n.programIdIndex,encodedAccountKeyIndexesLength:new Uint8Array(r),accountKeyIndexes:n.accountKeyIndexes,encodedDataLength:new Uint8Array(a),data:n.data},e,t)}return e.slice(0,t)}serializeAddressTableLookups(){let t=0;const e=new Uint8Array(kc);for(const n of this.addressTableLookups){const r=Array();_c(r,n.writableIndexes.length);const a=Array();_c(a,n.readonlyIndexes.length);t+=Ps([Ic("accountKey"),_s(r.length,"encodedWritableIndexesLength"),Ss(xs(),n.writableIndexes.length,"writableIndexes"),_s(a.length,"encodedReadonlyIndexesLength"),Ss(xs(),n.readonlyIndexes.length,"readonlyIndexes")]).encode({accountKey:n.accountKey.toBytes(),encodedWritableIndexesLength:new Uint8Array(r),writableIndexes:n.writableIndexes,encodedReadonlyIndexesLength:new Uint8Array(a),readonlyIndexes:n.readonlyIndexes},e,t)}return e.slice(0,t)}static deserialize(t){let e=[...t];const n=Mc(e),r=127&n;Oc(n!==r,"Expected versioned message but received legacy message");Oc(0===r,`Expected versioned message with version 0 but found version ${r}`);const a={numRequiredSignatures:Mc(e),numReadonlySignedAccounts:Mc(e),numReadonlyUnsignedAccounts:Mc(e)},i=[],s=Sc(e);for(let t=0;t<s;t++)i.push(new xc(Cc(e,0,vc)));const o=Fa.encode(Cc(e,0,vc)),c=Sc(e),u=[];for(let t=0;t<c;t++){const t=Mc(e),n=Cc(e,0,Sc(e)),r=Sc(e),a=new Uint8Array(Cc(e,0,r));u.push({programIdIndex:t,accountKeyIndexes:n,data:a})}const d=Sc(e),l=[];for(let t=0;t<d;t++){const t=new xc(Cc(e,0,vc)),n=Cc(e,0,Sc(e)),r=Cc(e,0,Sc(e));l.push({accountKey:t,writableIndexes:n,readonlyIndexes:r})}return new jc({header:a,staticAccountKeys:i,recentBlockhash:o,compiledInstructions:u,addressTableLookups:l})}}const Rc={deserializeMessageVersion(t){const e=t[0],n=127&e;return n===e?"legacy":n},deserialize:t=>{const e=Rc.deserializeMessageVersion(t);if("legacy"===e)return Nc.from(t);if(0===e)return jc.deserialize(t);throw new Error(`Transaction message version ${e} deserialization is not supported`)}},Uc=Ye.Buffer.alloc(64).fill(0);class Lc{constructor(t){this.keys=void 0,this.programId=void 0,this.data=Ye.Buffer.alloc(0),this.programId=t.programId,this.keys=t.keys,t.data&&(this.data=t.data)}toJSON(){return{keys:this.keys.map(({pubkey:t,isSigner:e,isWritable:n})=>({pubkey:t.toJSON(),isSigner:e,isWritable:n})),programId:this.programId.toJSON(),data:[...this.data]}}}class zc{get signature(){return this.signatures.length>0?this.signatures[0].signature:null}constructor(t){if(this.signatures=[],this.feePayer=void 0,this.instructions=[],this.recentBlockhash=void 0,this.lastValidBlockHeight=void 0,this.nonceInfo=void 0,this.minNonceContextSlot=void 0,this._message=void 0,this._json=void 0,t)if(t.feePayer&&(this.feePayer=t.feePayer),t.signatures&&(this.signatures=t.signatures),Object.prototype.hasOwnProperty.call(t,"nonceInfo")){const{minContextSlot:e,nonceInfo:n}=t;this.minNonceContextSlot=e,this.nonceInfo=n}else if(Object.prototype.hasOwnProperty.call(t,"lastValidBlockHeight")){const{blockhash:e,lastValidBlockHeight:n}=t;this.recentBlockhash=e,this.lastValidBlockHeight=n}else{const{recentBlockhash:e,nonceInfo:n}=t;n&&(this.nonceInfo=n),this.recentBlockhash=e}}toJSON(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map(t=>t.toJSON()),signers:this.signatures.map(({publicKey:t})=>t.toJSON())}}add(...t){if(0===t.length)throw new Error("No instructions");return t.forEach(t=>{"instructions"in t?this.instructions=this.instructions.concat(t.instructions):"data"in t&&"programId"in t&&"keys"in t?this.instructions.push(t):this.instructions.push(new Lc(t))}),this}compileMessage(){if(this._message&&JSON.stringify(this.toJSON())===JSON.stringify(this._json))return this._message;let t,e,n;if(this.nonceInfo?(t=this.nonceInfo.nonce,e=this.instructions[0]!=this.nonceInfo.nonceInstruction?[this.nonceInfo.nonceInstruction,...this.instructions]:this.instructions):(t=this.recentBlockhash,e=this.instructions),!t)throw new Error("Transaction recentBlockhash required");if(e.length<1&&console.warn("No instructions provided"),this.feePayer)n=this.feePayer;else{if(!(this.signatures.length>0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");n=this.signatures[0].publicKey}for(let t=0;t<e.length;t++)if(void 0===e[t].programId)throw new Error(`Transaction instruction index ${t} has undefined program id`);const r=[],a=[];e.forEach(t=>{t.keys.forEach(t=>{a.push({...t})});const e=t.programId.toString();r.includes(e)||r.push(e)}),r.forEach(t=>{a.push({pubkey:new xc(t),isSigner:!1,isWritable:!1})});const i=[];a.forEach(t=>{const e=t.pubkey.toString(),n=i.findIndex(t=>t.pubkey.toString()===e);n>-1?(i[n].isWritable=i[n].isWritable||t.isWritable,i[n].isSigner=i[n].isSigner||t.isSigner):i.push(t)}),i.sort(function(t,e){if(t.isSigner!==e.isSigner)return t.isSigner?-1:1;if(t.isWritable!==e.isWritable)return t.isWritable?-1:1;return t.pubkey.toBase58().localeCompare(e.pubkey.toBase58(),"en",{localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"})});const s=i.findIndex(t=>t.pubkey.equals(n));if(s>-1){const[t]=i.splice(s,1);t.isSigner=!0,t.isWritable=!0,i.unshift(t)}else i.unshift({pubkey:n,isSigner:!0,isWritable:!0});for(const t of this.signatures){const e=i.findIndex(e=>e.pubkey.equals(t.publicKey));if(!(e>-1))throw new Error(`unknown signer: ${t.publicKey.toString()}`);i[e].isSigner||(i[e].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))}let o=0,c=0,u=0;const d=[],l=[];i.forEach(({pubkey:t,isSigner:e,isWritable:n})=>{e?(d.push(t.toString()),o+=1,n||(c+=1)):(l.push(t.toString()),n||(u+=1))});const f=d.concat(l),h=e.map(t=>{const{data:e,programId:n}=t;return{programIdIndex:f.indexOf(n.toString()),accounts:t.keys.map(t=>f.indexOf(t.pubkey.toString())),data:Fa.encode(e)}});return h.forEach(t=>{Oc(t.programIdIndex>=0),t.accounts.forEach(t=>Oc(t>=0))}),new Nc({header:{numRequiredSignatures:o,numReadonlySignedAccounts:c,numReadonlyUnsignedAccounts:u},accountKeys:f,recentBlockhash:t,instructions:h})}_compile(){const t=this.compileMessage(),e=t.accountKeys.slice(0,t.header.numRequiredSignatures);if(this.signatures.length===e.length){const n=this.signatures.every((t,n)=>e[n].equals(t.publicKey));if(n)return t}return this.signatures=e.map(t=>({signature:null,publicKey:t})),t}serializeMessage(){return this._compile().serialize()}async getEstimatedFee(t){return(await t.getFeeForMessage(this.compileMessage())).value}setSigners(...t){if(0===t.length)throw new Error("No signers");const e=new Set;this.signatures=t.filter(t=>{const n=t.toString();return!e.has(n)&&(e.add(n),!0)}).map(t=>({signature:null,publicKey:t}))}sign(...t){if(0===t.length)throw new Error("No signers");const e=new Set,n=[];for(const r of t){const t=r.publicKey.toString();e.has(t)||(e.add(t),n.push(r))}this.signatures=n.map(t=>({signature:null,publicKey:t.publicKey}));const r=this._compile();this._partialSign(r,...n)}partialSign(...t){if(0===t.length)throw new Error("No signers");const e=new Set,n=[];for(const r of t){const t=r.publicKey.toString();e.has(t)||(e.add(t),n.push(r))}const r=this._compile();this._partialSign(r,...n)}_partialSign(t,...e){const n=t.serialize();e.forEach(t=>{const e=hc(n,t.secretKey);this._addSignature(t.publicKey,mc(e))})}addSignature(t,e){this._compile(),this._addSignature(t,e)}_addSignature(t,e){Oc(64===e.length);const n=this.signatures.findIndex(e=>t.equals(e.publicKey));if(n<0)throw new Error(`unknown signer: ${t.toString()}`);this.signatures[n].signature=Ye.Buffer.from(e)}verifySignatures(t=!0){return!this._getMessageSignednessErrors(this.serializeMessage(),t)}_getMessageSignednessErrors(t,e){const n={};for(const{signature:r,publicKey:a}of this.signatures)null===r?e&&(n.missing||=[]).push(a):pc(r,t,a.toBytes())||(n.invalid||=[]).push(a);return n.invalid||n.missing?n:void 0}serialize(t){const{requireAllSignatures:e,verifySignatures:n}=Object.assign({requireAllSignatures:!0,verifySignatures:!0},t),r=this.serializeMessage();if(n){const t=this._getMessageSignednessErrors(r,e);if(t){let e="Signature verification failed.";throw t.invalid&&(e+=`\nInvalid signature for public key${1===t.invalid.length?"":"(s)"} [\`${t.invalid.map(t=>t.toBase58()).join("`, `")}\`].`),t.missing&&(e+=`\nMissing signature for public key${1===t.missing.length?"":"(s)"} [\`${t.missing.map(t=>t.toBase58()).join("`, `")}\`].`),new Error(e)}}return this._serialize(r)}_serialize(t){const{signatures:e}=this,n=[];_c(n,e.length);const r=n.length+64*e.length+t.length,a=Ye.Buffer.alloc(r);return Oc(e.length<256),Ye.Buffer.from(n).copy(a,0),e.forEach(({signature:t},e)=>{null!==t&&(Oc(64===t.length,"signature has invalid length"),Ye.Buffer.from(t).copy(a,n.length+64*e))}),t.copy(a,n.length+64*e.length),Oc(a.length<=kc,`Transaction too large: ${a.length} > 1232`),a}get keys(){return Oc(1===this.instructions.length),this.instructions[0].keys.map(t=>t.pubkey)}get programId(){return Oc(1===this.instructions.length),this.instructions[0].programId}get data(){return Oc(1===this.instructions.length),this.instructions[0].data}static from(t){let e=[...t];const n=Sc(e);let r=[];for(let t=0;t<n;t++){const t=Cc(e,0,64);r.push(Fa.encode(Ye.Buffer.from(t)))}return zc.populate(Nc.from(e),r)}static populate(t,e=[]){const n=new zc;return n.recentBlockhash=t.recentBlockhash,t.header.numRequiredSignatures>0&&(n.feePayer=t.accountKeys[0]),e.forEach((e,r)=>{const a={signature:e==Fa.encode(Uc)?null:Fa.decode(e),publicKey:t.accountKeys[r]};n.signatures.push(a)}),t.instructions.forEach(e=>{const r=e.accounts.map(e=>{const r=t.accountKeys[e];return{pubkey:r,isSigner:n.signatures.some(t=>t.publicKey.toString()===r.toString())||t.isAccountSigner(e),isWritable:t.isAccountWritable(e)}});n.instructions.push(new Lc({keys:r,programId:t.accountKeys[e.programIdIndex],data:Fa.decode(e.data)}))}),n._message=t,n._json=n.toJSON(),n}}class Fc{get version(){return this.message.version}constructor(t,e){if(this.signatures=void 0,this.message=void 0,void 0!==e)Oc(e.length===t.header.numRequiredSignatures,"Expected signatures length to be equal to the number of required signatures"),this.signatures=e;else{const e=[];for(let n=0;n<t.header.numRequiredSignatures;n++)e.push(new Uint8Array(64));this.signatures=e}this.message=t}serialize(){const t=this.message.serialize(),e=Array();_c(e,this.signatures.length);const n=Ps([_s(e.length,"encodedSignaturesLength"),Ss(Ec(),this.signatures.length,"signatures"),_s(t.length,"serializedMessage")]),r=new Uint8Array(2048),a=n.encode({encodedSignaturesLength:new Uint8Array(e),signatures:this.signatures,serializedMessage:t},r);return r.slice(0,a)}static deserialize(t){let e=[...t];const n=[],r=Sc(e);for(let t=0;t<r;t++)n.push(new Uint8Array(Cc(e,0,64)));const a=Rc.deserialize(new Uint8Array(e));return new Fc(a,n)}sign(t){const e=this.message.serialize(),n=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures);for(const r of t){const t=n.findIndex(t=>t.equals(r.publicKey));Oc(t>=0,`Cannot sign with non signer key ${r.publicKey.toBase58()}`),this.signatures[t]=hc(e,r.secretKey)}}addSignature(t,e){Oc(64===e.byteLength,"Signature must be 64 bytes long");const n=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex(e=>e.equals(t));Oc(n>=0,`Can not add signature; \`${t.toBase58()}\` is not required to sign this transaction`),this.signatures[n]=e}}new xc("SysvarC1ock11111111111111111111111111111111"),new xc("SysvarEpochSchedu1e111111111111111111111111"),new xc("Sysvar1nstructions1111111111111111111111111"),new xc("SysvarRecentB1ockHashes11111111111111111111"),new xc("SysvarRent111111111111111111111111111111111"),new xc("SysvarRewards111111111111111111111111111111"),new xc("SysvarS1otHashes111111111111111111111111111"),new xc("SysvarS1otHistory11111111111111111111111111"),new xc("SysvarStakeHistory1111111111111111111111111");const Dc=Is("lamportsPerSignature");function qc(t){const e=_s(8,t),n=e.decode.bind(e),r=e.encode.bind(e),a=e,i=Us();return a.decode=(t,e)=>{const r=n(t,e);return i.decode(r)},a.encode=(t,e,n)=>{const a=i.encode(t);return r(a,e,n)},a}Ps([As("version"),As("state"),Ic("authorizedPubkey"),Ic("nonce"),Ps([Dc],"feeCalculator")]).span,Object.freeze({Create:{index:0,layout:Ps([As("instruction"),Es("lamports"),Es("space"),Ic("programId")])},Assign:{index:1,layout:Ps([As("instruction"),Ic("programId")])},Transfer:{index:2,layout:Ps([As("instruction"),qc("lamports")])},CreateWithSeed:{index:3,layout:Ps([As("instruction"),Ic("base"),Pc("seed"),Es("lamports"),Es("space"),Ic("programId")])},AdvanceNonceAccount:{index:4,layout:Ps([As("instruction")])},WithdrawNonceAccount:{index:5,layout:Ps([As("instruction"),Es("lamports")])},InitializeNonceAccount:{index:6,layout:Ps([As("instruction"),Ic("authorized")])},AuthorizeNonceAccount:{index:7,layout:Ps([As("instruction"),Ic("authorized")])},Allocate:{index:8,layout:Ps([As("instruction"),Es("space")])},AllocateWithSeed:{index:9,layout:Ps([As("instruction"),Ic("base"),Pc("seed"),Es("space"),Ic("programId")])},AssignWithSeed:{index:10,layout:Ps([As("instruction"),Ic("base"),Pc("seed"),Ic("programId")])},TransferWithSeed:{index:11,layout:Ps([As("instruction"),qc("lamports"),Pc("seed"),Ic("programId")])},UpgradeNonceAccount:{index:12,layout:Ps([As("instruction")])}}),new xc("11111111111111111111111111111111"),new xc("BPFLoader2111111111111111111111111111111111"),Ps([As("typeIndex"),qc("deactivationSlot"),Is("lastExtendedSlot"),xs("lastExtendedStartIndex"),xs(),Ss(Ic(),ws(xs(),-1),"authority")]);const Gc=uo(Qs(xc),ao(),t=>new xc(t)),Kc=io([ao(),Xs("base64")]),Vc=uo(Qs(Ye.Buffer),Kc,t=>Ye.Buffer.from(t[0],"base64"));function Zc(t){return oo([so({jsonrpc:Xs("2.0"),id:ao(),result:t}),so({jsonrpc:Xs("2.0"),id:ao(),error:so({code:co(),message:ao(),data:no(Js("any",()=>!0))})})])}const Hc=Zc(co());function Wc(t){return uo(Zc(t),Hc,e=>"error"in e?e:{...e,result:Zs(e.result,t)})}function Jc(t){return Wc(so({context:so({slot:eo()}),value:t}))}function Yc(t){return so({context:so({slot:eo()}),value:t})}const $c=so({foundation:eo(),foundationTerm:eo(),initial:eo(),taper:eo(),terminal:eo()});Wc(Ys(to(so({epoch:eo(),effectiveSlot:eo(),amount:eo(),postBalance:eo(),commission:no(to(eo()))}))));const Qc=Ys(so({slot:eo(),prioritizationFee:eo()})),Xc=so({total:eo(),validator:eo(),foundation:eo(),epoch:eo()}),tu=so({epoch:eo(),slotIndex:eo(),slotsInEpoch:eo(),absoluteSlot:eo(),blockHeight:no(eo()),transactionCount:no(eo())}),eu=so({slotsPerEpoch:eo(),leaderScheduleSlotOffset:eo(),warmup:$s(),firstNormalEpoch:eo(),firstNormalSlot:eo()}),nu=ro(ao(),Ys(eo())),ru=to(oo([so({}),ao()])),au=so({err:ru}),iu=Xs("receivedSignature");so({"solana-core":ao(),"feature-set":no(eo())});const su=so({program:ao(),programId:Gc,parsed:co()}),ou=so({programId:Gc,accounts:Ys(Gc),data:ao()});Jc(so({err:to(oo([so({}),ao()])),logs:to(Ys(ao())),accounts:no(to(Ys(to(so({executable:$s(),owner:ao(),lamports:eo(),data:Ys(ao()),rentEpoch:no(eo())}))))),unitsConsumed:no(eo()),returnData:no(to(so({programId:ao(),data:io([ao(),Xs("base64")])}))),innerInstructions:no(to(Ys(so({index:eo(),instructions:Ys(oo([su,ou]))}))))})),Jc(so({byIdentity:ro(ao(),Ys(eo())),range:so({firstSlot:eo(),lastSlot:eo()})})),Wc($c),Wc(Xc),Wc(Qc),Wc(tu),Wc(eu),Wc(nu),Wc(eo()),Jc(so({total:eo(),circulating:eo(),nonCirculating:eo(),nonCirculatingAccounts:Ys(Gc)}));const cu=so({amount:ao(),uiAmount:to(eo()),decimals:eo(),uiAmountString:no(ao())});Jc(Ys(so({address:Gc,amount:ao(),uiAmount:to(eo()),decimals:eo(),uiAmountString:no(ao())}))),Jc(Ys(so({pubkey:Gc,account:so({executable:$s(),owner:Gc,lamports:eo(),data:Vc,rentEpoch:eo()})})));const uu=so({program:ao(),parsed:co(),space:eo()});Jc(Ys(so({pubkey:Gc,account:so({executable:$s(),owner:Gc,lamports:eo(),data:uu,rentEpoch:eo()})}))),Jc(Ys(so({lamports:eo(),address:Gc})));const du=so({executable:$s(),owner:Gc,lamports:eo(),data:Vc,rentEpoch:eo()});so({pubkey:Gc,account:du});const lu=uo(oo([Qs(Ye.Buffer),uu]),oo([Kc,uu]),t=>Array.isArray(t)?Zs(t,Vc):t),fu=so({executable:$s(),owner:Gc,lamports:eo(),data:lu,rentEpoch:eo()});so({pubkey:Gc,account:fu}),so({state:oo([Xs("active"),Xs("inactive"),Xs("activating"),Xs("deactivating")]),active:eo(),inactive:eo()}),Wc(Ys(so({signature:ao(),slot:eo(),err:ru,memo:to(ao()),blockTime:no(to(eo()))}))),Wc(Ys(so({signature:ao(),slot:eo(),err:ru,memo:to(ao()),blockTime:no(to(eo()))}))),so({subscription:eo(),result:Yc(du)});const hu=so({pubkey:Gc,account:du});so({subscription:eo(),result:Yc(hu)});const pu=so({parent:eo(),slot:eo(),root:eo()});so({subscription:eo(),result:pu});const mu=oo([so({type:oo([Xs("firstShredReceived"),Xs("completed"),Xs("optimisticConfirmation"),Xs("root")]),slot:eo(),timestamp:eo()}),so({type:Xs("createdBank"),parent:eo(),slot:eo(),timestamp:eo()}),so({type:Xs("frozen"),slot:eo(),timestamp:eo(),stats:so({numTransactionEntries:eo(),numSuccessfulTransactions:eo(),numFailedTransactions:eo(),maxTransactionsPerEntry:eo()})}),so({type:Xs("dead"),slot:eo(),timestamp:eo(),err:ao()})]);so({subscription:eo(),result:mu}),so({subscription:eo(),result:Yc(oo([au,iu]))}),so({subscription:eo(),result:eo()}),so({pubkey:ao(),gossip:to(ao()),tpu:to(ao()),rpc:to(ao()),version:to(ao())});const yu=so({votePubkey:ao(),nodePubkey:ao(),activatedStake:eo(),epochVoteAccount:$s(),epochCredits:Ys(io([eo(),eo(),eo()])),commission:eo(),lastVote:eo(),rootSlot:to(eo())});Wc(so({current:Ys(yu),delinquent:Ys(yu)}));const gu=oo([Xs("processed"),Xs("confirmed"),Xs("finalized")]),bu=so({slot:eo(),confirmations:to(eo()),err:ru,confirmationStatus:no(gu)});Jc(Ys(to(bu))),Wc(eo());const vu=so({accountKey:Gc,writableIndexes:Ys(eo()),readonlyIndexes:Ys(eo())}),wu=so({signatures:Ys(ao()),message:so({accountKeys:Ys(ao()),header:so({numRequiredSignatures:eo(),numReadonlySignedAccounts:eo(),numReadonlyUnsignedAccounts:eo()}),instructions:Ys(so({accounts:Ys(eo()),data:ao(),programIdIndex:eo()})),recentBlockhash:ao(),addressTableLookups:no(Ys(vu))})}),xu=so({pubkey:Gc,signer:$s(),writable:$s(),source:no(oo([Xs("transaction"),Xs("lookupTable")]))}),ku=so({accountKeys:Ys(xu),signatures:Ys(ao())}),Au=so({parsed:co(),program:ao(),programId:Gc}),Iu=so({accounts:Ys(Gc),data:ao(),programId:Gc}),Eu=uo(oo([Iu,Au]),oo([so({parsed:co(),program:ao(),programId:ao()}),so({accounts:Ys(ao()),data:ao(),programId:ao()})]),t=>Zs(t,"accounts"in t?Iu:Au)),Pu=so({signatures:Ys(ao()),message:so({accountKeys:Ys(xu),instructions:Ys(Eu),recentBlockhash:ao(),addressTableLookups:no(to(Ys(vu)))})}),Su=so({accountIndex:eo(),mint:ao(),owner:no(ao()),programId:no(ao()),uiTokenAmount:cu}),_u=so({writable:Ys(Gc),readonly:Ys(Gc)}),Ou=so({err:ru,fee:eo(),innerInstructions:no(to(Ys(so({index:eo(),instructions:Ys(so({accounts:Ys(eo()),data:ao(),programIdIndex:eo()}))})))),preBalances:Ys(eo()),postBalances:Ys(eo()),logMessages:no(to(Ys(ao()))),preTokenBalances:no(to(Ys(Su))),postTokenBalances:no(to(Ys(Su))),loadedAddresses:no(_u),computeUnitsConsumed:no(eo()),costUnits:no(eo())}),Tu=so({err:ru,fee:eo(),innerInstructions:no(to(Ys(so({index:eo(),instructions:Ys(Eu)})))),preBalances:Ys(eo()),postBalances:Ys(eo()),logMessages:no(to(Ys(ao()))),preTokenBalances:no(to(Ys(Su))),postTokenBalances:no(to(Ys(Su))),loadedAddresses:no(_u),computeUnitsConsumed:no(eo()),costUnits:no(eo())}),Bu=oo([Xs(0),Xs("legacy")]),Mu=so({pubkey:ao(),lamports:eo(),postBalance:to(eo()),rewardType:to(ao()),commission:no(to(eo()))});Wc(to(so({blockhash:ao(),previousBlockhash:ao(),parentSlot:eo(),transactions:Ys(so({transaction:wu,meta:to(Ou),version:no(Bu)})),rewards:no(Ys(Mu)),blockTime:to(eo()),blockHeight:to(eo())}))),Wc(to(so({blockhash:ao(),previousBlockhash:ao(),parentSlot:eo(),rewards:no(Ys(Mu)),blockTime:to(eo()),blockHeight:to(eo())}))),Wc(to(so({blockhash:ao(),previousBlockhash:ao(),parentSlot:eo(),transactions:Ys(so({transaction:ku,meta:to(Ou),version:no(Bu)})),rewards:no(Ys(Mu)),blockTime:to(eo()),blockHeight:to(eo())}))),Wc(to(so({blockhash:ao(),previousBlockhash:ao(),parentSlot:eo(),transactions:Ys(so({transaction:Pu,meta:to(Tu),version:no(Bu)})),rewards:no(Ys(Mu)),blockTime:to(eo()),blockHeight:to(eo())}))),Wc(to(so({blockhash:ao(),previousBlockhash:ao(),parentSlot:eo(),transactions:Ys(so({transaction:ku,meta:to(Tu),version:no(Bu)})),rewards:no(Ys(Mu)),blockTime:to(eo()),blockHeight:to(eo())}))),Wc(to(so({blockhash:ao(),previousBlockhash:ao(),parentSlot:eo(),rewards:no(Ys(Mu)),blockTime:to(eo()),blockHeight:to(eo())}))),Wc(to(so({blockhash:ao(),previousBlockhash:ao(),parentSlot:eo(),transactions:Ys(so({transaction:wu,meta:to(Ou)})),rewards:no(Ys(Mu)),blockTime:to(eo())}))),Wc(to(so({blockhash:ao(),previousBlockhash:ao(),parentSlot:eo(),signatures:Ys(ao()),blockTime:to(eo())}))),Wc(to(so({slot:eo(),meta:to(Ou),blockTime:no(to(eo())),transaction:wu,version:no(Bu)}))),Wc(to(so({slot:eo(),transaction:Pu,meta:to(Tu),blockTime:no(to(eo())),version:no(Bu)}))),Jc(so({blockhash:ao(),lastValidBlockHeight:eo()})),Jc($s());Wc(Ys(so({slot:eo(),numTransactions:eo(),numSlots:eo(),samplePeriodSecs:eo()}))),Jc(to(so({feeCalculator:so({lamportsPerSignature:eo()})}))),Wc(ao()),Wc(ao());const Cu=so({err:ru,logs:Ys(ao()),signature:ao()});var Nu;so({result:Yc(Cu),subscription:eo()}),Object.freeze({CreateLookupTable:{index:0,layout:Ps([As("instruction"),qc("recentSlot"),xs("bumpSeed")])},FreezeLookupTable:{index:1,layout:Ps([As("instruction")])},ExtendLookupTable:{index:2,layout:Ps([As("instruction"),qc(),Ss(Ic(),ws(As(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:Ps([As("instruction")])},CloseLookupTable:{index:4,layout:Ps([As("instruction")])}}),new xc("AddressLookupTab1e1111111111111111111111111"),Object.freeze({RequestUnits:{index:0,layout:Ps([xs("instruction"),As("units"),As("additionalFee")])},RequestHeapFrame:{index:1,layout:Ps([xs("instruction"),As("bytes")])},SetComputeUnitLimit:{index:2,layout:Ps([xs("instruction"),As("units")])},SetComputeUnitPrice:{index:3,layout:Ps([xs("instruction"),qc("microLamports")])}}),new xc("ComputeBudget111111111111111111111111111111"),Ps([xs("numSignatures"),xs("padding"),ks("signatureOffset"),ks("signatureInstructionIndex"),ks("publicKeyOffset"),ks("publicKeyInstructionIndex"),ks("messageDataOffset"),ks("messageDataSize"),ks("messageInstructionIndex")]),new xc("Ed25519SigVerify111111111111111111111111111"),dc.utils.isValidPrivateKey,dc.getPublicKey,Ps([xs("numSignatures"),ks("signatureOffset"),xs("signatureInstructionIndex"),ks("ethAddressOffset"),xs("ethAddressInstructionIndex"),ks("messageDataOffset"),ks("messageDataSize"),xs("messageInstructionIndex"),_s(20,"ethAddress"),_s(64,"signature"),xs("recoveryId")]),new xc("KeccakSecp256k11111111111111111111111111111"),new xc("StakeConfig11111111111111111111111111111111");class ju{constructor(t,e,n){this.unixTimestamp=void 0,this.epoch=void 0,this.custodian=void 0,this.unixTimestamp=t,this.epoch=e,this.custodian=n}}Nu=ju,ju.default=new Nu(0,0,xc.default),Object.freeze({Initialize:{index:0,layout:Ps([As("instruction"),((t="authorized")=>Ps([Ic("staker"),Ic("withdrawer")],t))(),((t="lockup")=>Ps([Es("unixTimestamp"),Es("epoch"),Ic("custodian")],t))()])},Authorize:{index:1,layout:Ps([As("instruction"),Ic("newAuthorized"),As("stakeAuthorizationType")])},Delegate:{index:2,layout:Ps([As("instruction")])},Split:{index:3,layout:Ps([As("instruction"),Es("lamports")])},Withdraw:{index:4,layout:Ps([As("instruction"),Es("lamports")])},Deactivate:{index:5,layout:Ps([As("instruction")])},Merge:{index:7,layout:Ps([As("instruction")])},AuthorizeWithSeed:{index:8,layout:Ps([As("instruction"),Ic("newAuthorized"),As("stakeAuthorizationType"),Pc("authoritySeed"),Ic("authorityOwner")])}}),new xc("Stake11111111111111111111111111111111111111"),Object.freeze({InitializeAccount:{index:0,layout:Ps([As("instruction"),((t="voteInit")=>Ps([Ic("nodePubkey"),Ic("authorizedVoter"),Ic("authorizedWithdrawer"),xs("commission")],t))()])},Authorize:{index:1,layout:Ps([As("instruction"),Ic("newAuthorized"),As("voteAuthorizationType")])},Withdraw:{index:3,layout:Ps([As("instruction"),Es("lamports")])},UpdateValidatorIdentity:{index:4,layout:Ps([As("instruction")])},AuthorizeWithSeed:{index:10,layout:Ps([As("instruction"),((t="voteAuthorizeWithSeedArgs")=>Ps([As("voteAuthorizationType"),Ic("currentAuthorityDerivedKeyOwnerPubkey"),Pc("currentAuthorityDerivedKeySeed"),Ic("newAuthorized")],t))()])}}),new xc("Vote111111111111111111111111111111111111111"),new xc("Va1idator1nfo111111111111111111111111111111"),so({name:ao(),website:no(ao()),details:no(ao()),iconUrl:no(ao()),keybaseUsername:no(ao())}),new xc("Vote111111111111111111111111111111111111111"),Ps([Ic("nodePubkey"),Ic("authorizedWithdrawer"),xs("commission"),Is(),Ss(Ps([Is("slot"),As("confirmationCount")]),ws(As(),-8),"votes"),xs("rootSlotValid"),Is("rootSlot"),Is(),Ss(Ps([Is("epoch"),Ic("authorizedVoter")]),ws(As(),-8),"authorizedVoters"),Ps([Ss(Ps([Ic("authorizedPubkey"),Is("epochOfLastAuthorizedSwitch"),Is("targetEpoch")]),32,"buf"),Is("idx"),xs("isEmpty")],"priorVoters"),Is(),Ss(Ps([Is("epoch"),Is("credits"),Is("prevCredits")]),ws(As(),-8),"epochCredits"),Ps([Is("slot"),Is("timestamp")],"lastTimestamp")]);function Ru(t){return Buffer.from(t.serialize({verifySignatures:!1})).toString("base64")}function Uu(t){const e=Buffer.from(t,"base64");return"legacy"===Rc.deserializeMessageVersion(e)?Fc.deserialize(e):zc.from(e)}let Lu=class t extends Error{constructor(e,n={}){const r=(()=>{if(n.cause instanceof t){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&"details"in n.cause&&"string"==typeof n.cause.details?n.cause.details:n.cause?.message?n.cause.message:n.details})(),a=n.cause instanceof t&&n.cause.docsPath||n.docsPath,i=`${n.docsOrigin??"https://oxlib.sh"}${a??""}`,s=[e||"An error occurred.",...n.metaMessages?["",...n.metaMessages]:[],...r||a||n.version?["",r?`Details: ${r}`:void 0,a?`See: ${i}`:void 0,n.version?`Version: ${n.version}`:void 0]:[]].filter(t=>"string"==typeof t).join("\n");super(s,n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.cause=n.cause,this.details=r,this.docs=i,this.docsPath=a,this.shortMessage=e,this.version=n.version??"ox@0.1.1"}walk(t){return zu(this,t)}};function zu(t,e){return e?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?zu(t.cause,e):e?null:t}function Fu(t,e={}){const{raw:n=!1}=e,r=t;if(n)return t;if(r.error)throw Du(r.error);return r.result}function Du(t){const e=t;if(e instanceof Error&&!("code"in e))return new Xu({cause:e,data:e,message:e.message,stack:e.stack});const{code:n}=e;return n===Xu.code?new Xu(e):n===Gu.code?new Gu(e):n===Qu.code?new Qu(e):n===Yu.code?new Yu(e):n===Wu.code?new Wu(e):n===$u.code?new $u(e):n===Hu.code?new Hu(e):n===td.code?new td(e):n===Ku.code?new Ku(e):n===Vu.code?new Vu(e):n===Zu.code?new Zu(e):n===Ju.code?new Ju(e):new Xu({cause:e instanceof Error?e:void 0,data:e,message:e.message,stack:e instanceof Error?e.stack:void 0})}let qu=class extends Error{constructor(t){const{cause:e,code:n,message:r,data:a,stack:i}=t;super(r,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcResponse.BaseError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"stack",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e,this.code=n,this.data=a,this.stack=i??""}},Gu=class t extends qu{constructor(e={}){super({code:t.code,data:e.data,message:e.message??"Missing or invalid parameters."}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcResponse.InvalidInputError"})}};Object.defineProperty(Gu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class Ku extends qu{constructor(t={}){super({code:Ku.code,data:t.data,message:t.message??"Requested resource not found."}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcResponse.ResourceNotFoundError"})}}Object.defineProperty(Ku,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Vu extends qu{constructor(t={}){super({code:Vu.code,data:t.data,message:t.message??"Requested resource not available."}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcResponse.ResourceUnavailableError"})}}Object.defineProperty(Vu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class Zu extends qu{constructor(t={}){super({code:Zu.code,data:t.data,message:t.message??"Transaction creation failed."}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcResponse.TransactionRejectedError"})}}Object.defineProperty(Zu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class Hu extends qu{constructor(t={}){super({code:Hu.code,data:t.data,message:t.message??"Method is not implemented."}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcResponse.MethodNotSupportedError"})}}Object.defineProperty(Hu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class Wu extends qu{constructor(t={}){super({code:Wu.code,data:t.data,message:t.message??"Rate limit exceeded."}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcResponse.LimitExceededError"})}}Object.defineProperty(Wu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class Ju extends qu{constructor(t={}){super({code:Ju.code,data:t.data,message:t.message??"JSON-RPC version not supported."}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcResponse.VersionNotSupportedError"})}}Object.defineProperty(Ju,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Yu extends qu{constructor(t={}){super({code:Yu.code,data:t.data,message:t.message??"Input is not a valid JSON-RPC request."}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcResponse.InvalidRequestError"})}}Object.defineProperty(Yu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class $u extends qu{constructor(t={}){super({code:$u.code,data:t.data,message:t.message??"Method does not exist."}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcResponse.MethodNotFoundError"})}}Object.defineProperty($u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Qu extends qu{constructor(t={}){super({code:Qu.code,data:t.data,message:t.message??"Invalid method parameters."}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcResponse.InvalidParamsError"})}}Object.defineProperty(Qu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Xu extends qu{constructor(t={}){super({cause:t.cause,code:Xu.code,data:t.data,message:t.message??"Internal JSON-RPC error.",stack:t.stack}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcResponse.InternalError"})}}Object.defineProperty(Xu,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class td extends qu{constructor(t={}){super({code:td.code,data:t.data,message:t.message??"Failed to parse JSON-RPC response."}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcResponse.ParseError"})}}Object.defineProperty(td,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});let ed=class extends Error{constructor(t,e){super(e),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t,this.details=e}},nd=class extends ed{constructor({message:t="The user rejected the request."}={}){super(4001,t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Provider.UserRejectedRequestError"})}};Object.defineProperty(nd,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class rd extends ed{constructor({message:t="The requested method and/or account has not been authorized by the user."}={}){super(4100,t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Provider.UnauthorizedError"})}}Object.defineProperty(rd,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class ad extends ed{constructor({message:t="The provider does not support the requested method."}={}){super(4200,t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Provider.UnsupportedMethodError"})}}Object.defineProperty(ad,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class id extends ed{constructor({message:t="The provider is disconnected from all chains."}={}){super(4900,t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Provider.DisconnectedError"})}}Object.defineProperty(id,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});let sd=class extends ed{constructor({message:t="The provider is not connected to the requested chain."}={}){super(4901,t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Provider.ChainDisconnectedError"})}};Object.defineProperty(sd,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});let od=class extends ed{constructor({message:t="An error occurred when attempting to switch chain."}={}){super(4902,t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Provider.SwitchChainError"})}};Object.defineProperty(od,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});let cd=class extends ed{constructor({message:t="This Wallet does not support a capability that was not marked as optional."}={}){super(5700,t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Provider.UnsupportedNonOptionalCapabilityError"})}};Object.defineProperty(cd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});let ud=class extends ed{constructor({message:t="This Wallet does not support the requested chain ID."}={}){super(5710,t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Provider.UnsupportedChainIdError"})}};Object.defineProperty(ud,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});let dd=class extends ed{constructor({message:t="There is already a bundle submitted with this ID."}={}){super(5720,t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Provider.DuplicateIdError"})}};Object.defineProperty(dd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});let ld=class extends ed{constructor({message:t="This bundle id is unknown / has not been submitted."}={}){super(5730,t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Provider.UnknownBundleIdError"})}};Object.defineProperty(ld,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});let fd=class extends ed{constructor({message:t="The call bundle is too large for the Wallet to process."}={}){super(5740,t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Provider.BundleTooLargeError"})}};Object.defineProperty(fd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});let hd=class extends ed{constructor({message:t="The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."}={}){super(5750,t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Provider.AtomicReadyWalletRejectedUpgradeError"})}};Object.defineProperty(hd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});let pd=class extends ed{constructor({message:t="The wallet does not support atomic execution but the request requires it."}={}){super(5760,t),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Provider.AtomicityNotSupportedError"})}};Object.defineProperty(pd,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class md extends Lu{constructor(){super("`provider` is undefined."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Provider.IsUndefinedError"})}}
|
|
25
|
+
/**
|
|
26
|
+
* @license
|
|
27
|
+
* Copyright 2019 Google LLC
|
|
28
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
29
|
+
*/
|
|
30
|
+
const yd=Symbol("Comlink.proxy"),gd=Symbol("Comlink.endpoint"),bd=Symbol("Comlink.releaseProxy"),vd=Symbol("Comlink.finalizer"),wd=Symbol("Comlink.thrown"),xd=t=>"object"==typeof t&&null!==t||"function"==typeof t,kd=new Map([["proxy",{canHandle:t=>xd(t)&&t[yd],serialize(t){const{port1:e,port2:n}=new MessageChannel;return Ad(t,e),[n,[n]]},deserialize:t=>(t.start(),Ed(t))}],["throw",{canHandle:t=>xd(t)&&wd in t,serialize({value:t}){let e;return e=t instanceof Error?{isError:!0,value:{message:t.message,name:t.name,stack:t.stack}}:{isError:!1,value:t},[e,[]]},deserialize(t){if(t.isError)throw Object.assign(new Error(t.value.message),t.value);throw t.value}}]]);function Ad(t,e=globalThis,n=["*"]){e.addEventListener("message",function r(a){if(!a||!a.data)return;if(!function(t,e){for(const n of t){if(e===n||"*"===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}return!1}(n,a.origin))return void console.warn(`Invalid origin '${a.origin}' for comlink proxy`);const{id:i,type:s,path:o}=Object.assign({path:[]},a.data),c=(a.data.argumentList||[]).map(Nd);let u;try{const e=o.slice(0,-1).reduce((t,e)=>t[e],t),n=o.reduce((t,e)=>t[e],t);switch(s){case"GET":u=n;break;case"SET":e[o.slice(-1)[0]]=Nd(a.data.value),u=!0;break;case"APPLY":u=n.apply(e,c);break;case"CONSTRUCT":u=function(t){return Object.assign(t,{[yd]:!0})}(new n(...c));break;case"ENDPOINT":{const{port1:e,port2:n}=new MessageChannel;Ad(t,n),u=function(t,e){return Md.set(t,e),t}(e,[e])}break;case"RELEASE":u=void 0;break;default:return}}catch(t){u={value:t,[wd]:0}}Promise.resolve(u).catch(t=>({value:t,[wd]:0})).then(n=>{const[a,o]=Cd(n);e.postMessage(Object.assign(Object.assign({},a),{id:i}),o),"RELEASE"===s&&(e.removeEventListener("message",r),Id(e),vd in t&&"function"==typeof t[vd]&&t[vd]())}).catch(t=>{const[n,r]=Cd({value:new TypeError("Unserializable return value"),[wd]:0});e.postMessage(Object.assign(Object.assign({},n),{id:i}),r)})}),e.start&&e.start()}function Id(t){(function(t){return"MessagePort"===t.constructor.name})(t)&&t.close()}function Ed(t,e){const n=new Map;return t.addEventListener("message",function(t){const{data:e}=t;if(!e||!e.id)return;const r=n.get(e.id);if(r)try{r(e)}finally{n.delete(e.id)}}),Td(t,n,[],e)}function Pd(t){if(t)throw new Error("Proxy has been released and is not useable")}function Sd(t){return jd(t,new Map,{type:"RELEASE"}).then(()=>{Id(t)})}const _d=new WeakMap,Od="FinalizationRegistry"in globalThis&&new FinalizationRegistry(t=>{const e=(_d.get(t)||0)-1;_d.set(t,e),0===e&&Sd(t)});function Td(t,e,n=[],r=function(){}){let a=!1;const i=new Proxy(r,{get(r,s){if(Pd(a),s===bd)return()=>{!function(t){Od&&Od.unregister(t)}(i),Sd(t),e.clear(),a=!0};if("then"===s){if(0===n.length)return{then:()=>i};const r=jd(t,e,{type:"GET",path:n.map(t=>t.toString())}).then(Nd);return r.then.bind(r)}return Td(t,e,[...n,s])},set(r,i,s){Pd(a);const[o,c]=Cd(s);return jd(t,e,{type:"SET",path:[...n,i].map(t=>t.toString()),value:o},c).then(Nd)},apply(r,i,s){Pd(a);const o=n[n.length-1];if(o===gd)return jd(t,e,{type:"ENDPOINT"}).then(Nd);if("bind"===o)return Td(t,e,n.slice(0,-1));const[c,u]=Bd(s);return jd(t,e,{type:"APPLY",path:n.map(t=>t.toString()),argumentList:c},u).then(Nd)},construct(r,i){Pd(a);const[s,o]=Bd(i);return jd(t,e,{type:"CONSTRUCT",path:n.map(t=>t.toString()),argumentList:s},o).then(Nd)}});return function(t,e){const n=(_d.get(e)||0)+1;_d.set(e,n),Od&&Od.register(t,e,t)}(i,t),i}function Bd(t){const e=t.map(Cd);return[e.map(t=>t[0]),(n=e.map(t=>t[1]),Array.prototype.concat.apply([],n))];var n}const Md=new WeakMap;function Cd(t){for(const[e,n]of kd)if(n.canHandle(t)){const[r,a]=n.serialize(t);return[{type:"HANDLER",name:e,value:r},a]}return[{type:"RAW",value:t},Md.get(t)||[]]}function Nd(t){switch(t.type){case"HANDLER":return kd.get(t.name).deserialize(t.value);case"RAW":return t.value}}function jd(t,e,n,r){return new Promise(a=>{const i=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");e.set(i,a),t.start&&t.start(),t.postMessage(Object.assign({id:i},n),r)})}const Rd={postMessage:t=>{window.ReactNativeWebView.postMessage(JSON.stringify(t))},addEventListener:(t,e,...n)=>{document.addEventListener("FarcasterFrameCallback",e,...n)},removeEventListener:(t,e)=>{document.removeEventListener("FarcasterFrameCallback",e)}},Ud="undefined"==typeof window?{postMessage(){},addEventListener:()=>{},removeEventListener:()=>{}}:window?.ReactNativeWebView?Rd:function(t,e=globalThis,n="*"){return{postMessage:(e,r)=>t.postMessage(e,n,r),addEventListener:e.addEventListener.bind(e),removeEventListener:e.removeEventListener.bind(e)}}(window?.parent??window),Ld=Ed(Ud),zd=function(){const t=new I;return{get eventNames(){return t.eventNames.bind(t)},get listenerCount(){return t.listenerCount.bind(t)},get listeners(){return t.listeners.bind(t)},addListener:t.addListener.bind(t),emit:t.emit.bind(t),off:t.off.bind(t),on:t.on.bind(t),once:t.once.bind(t),removeAllListeners:t.removeAllListeners.bind(t),removeListener:t.removeListener.bind(t)}}(),Fd=function(t={}){let e=t.id??0;return{prepare:t=>function(t){return{...t,jsonrpc:"2.0"}}({id:e++,...t}),get id(){return e}}}();const Dd=function(t){if(!t)throw new md;return{...t,async request(e){try{const n=await t.request(e);return n&&"object"==typeof n&&"jsonrpc"in n?Fu(n):n}catch(t){throw function(t){const e=Du(t);if(e instanceof Xu){if(!e.data)return e;const{code:t}=e.data;if(t===id.code)return new id(e);if(t===sd.code)return new sd(e);if(t===nd.code)return new nd(e);if(t===rd.code)return new rd(e);if(t===ad.code)return new ad(e);if(t===od.code)return new od(e);if(t===hd.code)return new hd(e);if(t===pd.code)return new pd(e);if(t===fd.code)return new fd(e);if(t===ld.code)return new ld(e);if(t===dd.code)return new dd(e);if(t===ud.code)return new ud(e);if(t===cd.code)return new cd(e)}return e}(t)}}}}({...zd,async request(t){const e=Fd.prepare(t);try{const t=await Ld.ethProviderRequestV2(e).then(t=>Fu(t,{request:e,raw:!0}));if(t.error)throw function({code:t,details:e}){switch(t){case 4001:return new nd;case 4100:return new rd;case 4200:return new ad;case 4900:return new id;case 4901:return new sd;default:return new ed(t,e??"Unknown provider RPC error")}}(t.error);return t.result}catch(t){if(t instanceof Error&&t.message.match(/cannot read property 'apply'/i))return await Ld.ethProviderRequest(e);if(t instanceof ed||t instanceof qu)throw t;throw new Xu({message:t instanceof Error?t.message:void 0})}}});function qd(t){const e=new CustomEvent("eip6963:announceProvider",{detail:Object.freeze(t)});window.dispatchEvent(e);const n=()=>window.dispatchEvent(e);return window.addEventListener("eip6963:requestProvider",n),()=>window.removeEventListener("eip6963:requestProvider",n)}"undefined"!=typeof document&&(document.addEventListener("eip6963:requestProvider",()=>{Ld.eip6963RequestProvider()}),document.addEventListener("FarcasterFrameEthProviderEvent",t=>{if(t instanceof MessageEvent){const e=t.data;zd.emit(e.event,...e.params)}}),document.addEventListener("FarcasterFrameEvent",t=>{if(t instanceof MessageEvent){const e=t.data;"eip6963:announceProvider"===e.event&&qd({info:e.info,provider:Dd})}})),"undefined"!=typeof window&&(window.addEventListener("eip6963:requestProvider",()=>{Ld.eip6963RequestProvider()}),window.addEventListener("message",t=>{if(t instanceof MessageEvent&&"frameEthProviderEvent"===t.data.type){const e=t.data;zd.emit(e.event,...e.params)}}),window.addEventListener("message",t=>{if(t instanceof MessageEvent&&"frameEvent"===t.data.type){const e=t.data.event;"eip6963:announceProvider"===e.event&&qd({info:e.info,provider:Dd})}})),new TextEncoder;const Gd=new TextDecoder,Kd=t=>{let e=t;e instanceof Uint8Array&&(e=Gd.decode(e)),e=e.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return(t=>{const e=atob(t),n=new Uint8Array(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return n})(e)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}};class Vd extends Error{constructor(t,e){super(t,e),this.code="ERR_JOSE_GENERIC",this.name=this.constructor.name,Error.captureStackTrace?.(this,this.constructor)}}Vd.code="ERR_JOSE_GENERIC";(class extends Vd{constructor(t,e,n="unspecified",r="unspecified"){super(t,{cause:{claim:n,reason:r,payload:e}}),this.code="ERR_JWT_CLAIM_VALIDATION_FAILED",this.claim=n,this.reason=r,this.payload=e}}).code="ERR_JWT_CLAIM_VALIDATION_FAILED";(class extends Vd{constructor(t,e,n="unspecified",r="unspecified"){super(t,{cause:{claim:n,reason:r,payload:e}}),this.code="ERR_JWT_EXPIRED",this.claim=n,this.reason=r,this.payload=e}}).code="ERR_JWT_EXPIRED";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JOSE_ALG_NOT_ALLOWED"}}).code="ERR_JOSE_ALG_NOT_ALLOWED";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JOSE_NOT_SUPPORTED"}}).code="ERR_JOSE_NOT_SUPPORTED";(class extends Vd{constructor(t="decryption operation failed",e){super(t,e),this.code="ERR_JWE_DECRYPTION_FAILED"}}).code="ERR_JWE_DECRYPTION_FAILED";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JWE_INVALID"}}).code="ERR_JWE_INVALID";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JWS_INVALID"}}).code="ERR_JWS_INVALID";class Zd extends Vd{constructor(){super(...arguments),this.code="ERR_JWT_INVALID"}}Zd.code="ERR_JWT_INVALID";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JWK_INVALID"}}).code="ERR_JWK_INVALID";(class extends Vd{constructor(){super(...arguments),this.code="ERR_JWKS_INVALID"}}).code="ERR_JWKS_INVALID";(class extends Vd{constructor(t="no applicable key found in the JSON Web Key Set",e){super(t,e),this.code="ERR_JWKS_NO_MATCHING_KEY"}}).code="ERR_JWKS_NO_MATCHING_KEY";(class extends Vd{constructor(t="multiple matching keys found in the JSON Web Key Set",e){super(t,e),this.code="ERR_JWKS_MULTIPLE_MATCHING_KEYS"}}).code="ERR_JWKS_MULTIPLE_MATCHING_KEYS";(class extends Vd{constructor(t="request timed out",e){super(t,e),this.code="ERR_JWKS_TIMEOUT"}}).code="ERR_JWKS_TIMEOUT";function Hd(t){if("string"!=typeof t)throw new Zd("JWTs must use Compact JWS serialization, JWT must be a string");const{1:e,length:n}=t.split(".");if(5===n)throw new Zd("Only JWTs using Compact JWS serialization can be decoded");if(3!==n)throw new Zd("Invalid JWT");if(!e)throw new Zd("JWTs must contain a payload");let r,a;try{r=Kd(e)}catch{throw new Zd("Failed to base64url decode the payload")}try{a=JSON.parse(Gd.decode(r))}catch{throw new Zd("Failed to parse the decoded payload as JSON")}if(!function(t){if("object"!=typeof(e=t)||null===e||"[object Object]"!==Object.prototype.toString.call(t))return!1;var e;if(null===Object.getPrototypeOf(t))return!0;let n=t;for(;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(t)===n}(a))throw new Zd("Invalid JWT Claims Set");return a}(class extends Vd{constructor(t="signature verification failed",e){super(t,e),this.code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED"}}).code="ERR_JWS_SIGNATURE_VERIFICATION_FAILED";let Wd=class t extends Error{constructor(e,n={}){const r=(()=>{if(n.cause instanceof t){if(n.cause.details)return n.cause.details;if(n.cause.shortMessage)return n.cause.shortMessage}return n.cause&&"details"in n.cause&&"string"==typeof n.cause.details?n.cause.details:n.cause?.message?n.cause.message:n.details})(),a=[e||"An error occurred.",...n.metaMessages?["",...n.metaMessages]:[],...r?["",r?`Details: ${r}`:void 0]:[]].filter(t=>"string"==typeof t).join("\n");super(a,n.cause?{cause:n.cause}:void 0),this.name="BaseError",this.cause=n.cause,this.details=r,this.shortMessage=e}};class Jd extends Wd{constructor({status:t}){super(`Request failed with status ${t}`),this.name="RequestFailedError"}}class Yd extends Wd{constructor(t){super(t),this.name="InvalidToken"}}function $d(t={}){const e=function(t={}){return{origin:t.origin??"https://auth.farcaster.xyz"}}(t);return{generateNonce:()=>async function({origin:t}){const e=await fetch(`${t}/nonce`,{method:"POST"});if(!e.ok)throw new Jd({status:e.status});return await e.json()}(e),verifySiwf:t=>async function({origin:t},e){const n=await fetch(`${t}/verify-siwf`,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)});if(!n.ok)throw new Jd({status:n.status});const r=await n.json();if(!1===r.valid)throw new Yd(r.message??"unknown");return{token:r.token}}(e,t)}}function Qd(t,e){if(Ul(t)>e)throw new Hl({givenSize:Ul(t),maxSize:e})}const Xd=48,tl=57,el=65,nl=70,rl=97,al=102;function il(t){return t>=Xd&&t<=tl?t-Xd:t>=el&&t<=nl?t-(el-10):t>=rl&&t<=al?t-(rl-10):void 0}function sl(t,e={}){const{dir:n="left"}=e;let r=t,a=0;for(let t=0;t<r.length-1&&"0"===r["left"===n?t:r.length-t-1].toString();t++)a++;return r="left"===n?r.slice(a):r.slice(0,r.length-a),r}function ol(t,e){if(xl(t)>e)throw new _l({givenSize:xl(t),maxSize:e})}function cl(t,e={}){const{dir:n,size:r=32}=e;if(0===r)return t;const a=t.replace("0x","");if(a.length>2*r)throw new Tl({size:Math.ceil(a.length/2),targetSize:r,type:"Hex"});return`0x${a["right"===n?"padEnd":"padStart"](2*r,"0")}`}function ul(t,e,n){return JSON.stringify(t,(t,e)=>"bigint"==typeof e?e.toString()+"#__bigint":e,n)}const dl=new TextEncoder,ll=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function fl(...t){return`0x${t.reduce((t,e)=>t+e.replace("0x",""),"")}`}function hl(t){return t instanceof Uint8Array?ml(t):Array.isArray(t)?ml(new Uint8Array(t)):t}function pl(t,e={}){const n=`0x${Number(t)}`;return"number"==typeof e.size?(ol(n,e.size),bl(n,e.size)):n}function ml(t,e={}){let n="";for(let e=0;e<t.length;e++)n+=ll[t[e]];const r=`0x${n}`;return"number"==typeof e.size?(ol(r,e.size),vl(r,e.size)):r}function yl(t,e={}){const{signed:n,size:r}=e,a=BigInt(t);let i;r?i=n?(1n<<8n*BigInt(r)-1n)-1n:2n**(8n*BigInt(r))-1n:"number"==typeof t&&(i=BigInt(Number.MAX_SAFE_INTEGER));const s="bigint"==typeof i&&n?-i-1n:0;if(i&&a>i||a<s){const e="bigint"==typeof t?"n":"";throw new El({max:i?`${i}${e}`:void 0,min:`${s}${e}`,signed:n,size:r,value:`${t}${e}`})}const o=`0x${(n&&a<0?BigInt.asUintN(8*r,BigInt(a)):a).toString(16)}`;return r?bl(o,r):o}function gl(t,e={}){return ml(dl.encode(t),e)}function bl(t,e){return cl(t,{dir:"left",size:e})}function vl(t,e){return cl(t,{dir:"right",size:e})}function wl(t,e,n,r={}){const{strict:a}=r;!function(t,e){if("number"==typeof e&&e>0&&e>xl(t)-1)throw new Ol({offset:e,position:"start",size:xl(t)})}(t,e);const i=`0x${t.replace("0x","").slice(2*(e??0),2*(n??t.length))}`;return a&&function(t,e,n){if("number"==typeof e&&"number"==typeof n&&xl(t)!==n-e)throw new Ol({offset:n,position:"end",size:xl(t)})}(i,e,n),i}function xl(t){return Math.ceil((t.length-2)/2)}function kl(t,e={}){const{signed:n}=e;e.size&&ol(t,e.size);const r=BigInt(t);if(!n)return r;const a=(t.length-2)/2,i=(1n<<8n*BigInt(a))-1n;return r<=i>>1n?r:r-i-1n}function Al(t,e={}){const{signed:n,size:r}=e;return Number(n||r?kl(t,e):t)}function Il(t,e={}){const{strict:n=!1}=e;try{return function(t,e={}){const{strict:n=!1}=e;if(!t)throw new Pl(t);if("string"!=typeof t)throw new Pl(t);if(n&&!/^0x[0-9a-fA-F]*$/.test(t))throw new Sl(t);if(!t.startsWith("0x"))throw new Sl(t)}(t,{strict:n}),!0}catch{return!1}}let El=class extends Lu{constructor({max:t,min:e,signed:n,size:r,value:a}){super(`Number \`${a}\` is not in safe${r?` ${8*r}-bit`:""}${n?" signed":" unsigned"} integer range ${t?`(\`${e}\` to \`${t}\`)`:`(above \`${e}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}};class Pl extends Lu{constructor(t){super(`Value \`${"object"==typeof t?ul(t):t}\` of type \`${typeof t}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class Sl extends Lu{constructor(t){super(`Value \`${t}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}let _l=class extends Lu{constructor({givenSize:t,maxSize:e}){super(`Size cannot exceed \`${e}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}},Ol=class extends Lu{constructor({offset:t,position:e,size:n}){super(`Slice ${"start"===e?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}},Tl=class extends Lu{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}};const Bl=new TextDecoder,Ml=new TextEncoder;function Cl(t){return t instanceof Uint8Array?t:"string"==typeof t?jl(t):Nl(t)}function Nl(t){return t instanceof Uint8Array?t:new Uint8Array(t)}function jl(t,e={}){const{size:n}=e;let r=t;n&&(ol(t,n),r=vl(t,n));let a=r.slice(2);a.length%2&&(a=`0${a}`);const i=a.length/2,s=new Uint8Array(i);for(let t=0,e=0;t<i;t++){const n=il(a.charCodeAt(e++)),r=il(a.charCodeAt(e++));if(void 0===n||void 0===r)throw new Lu(`Invalid byte sequence ("${a[e-2]}${a[e-1]}" in "${a}").`);s[t]=n<<4|r}return s}function Rl(t,e={}){const{size:n}=e,r=Ml.encode(t);return"number"==typeof n?(Qd(r,n),function(t,e){return function(t,e={}){const{dir:n,size:r=32}=e;if(0===r)return t;if(t.length>r)throw new Jl({size:t.length,targetSize:r,type:"Bytes"});const a=new Uint8Array(r);for(let e=0;e<r;e++){const i="right"===n;a[i?e:r-e-1]=t[i?e:t.length-e-1]}return a}(t,{dir:"right",size:e})}(r,n)):r}function Ul(t){return t.length}function Ll(t,e,n,r={}){const{strict:a}=r;!function(t,e){if("number"==typeof e&&e>0&&e>Ul(t)-1)throw new Wl({offset:e,position:"start",size:Ul(t)})}(t,e);const i=t.slice(e,n);return a&&function(t,e,n){if("number"==typeof e&&"number"==typeof n&&Ul(t)!==n-e)throw new Wl({offset:n,position:"end",size:Ul(t)})}(i,e,n),i}function zl(t,e={}){const{size:n}=e;void 0!==n&&Qd(t,n);return kl(ml(t,e),e)}function Fl(t,e={}){const{size:n}=e;let r=t;if(void 0!==n&&(Qd(r,n),r=Gl(r)),r.length>1||r[0]>1)throw new Vl(r);return Boolean(r[0])}function Dl(t,e={}){const{size:n}=e;void 0!==n&&Qd(t,n);return Al(ml(t,e),e)}function ql(t,e={}){const{size:n}=e;let r=t;return void 0!==n&&(Qd(r,n),r=sl(r,{dir:"right"})),Bl.decode(r)}function Gl(t){return sl(t,{dir:"left"})}function Kl(t){try{return function(t){if(!(t instanceof Uint8Array)){if(!t)throw new Zl(t);if("object"!=typeof t)throw new Zl(t);if(!("BYTES_PER_ELEMENT"in t))throw new Zl(t);if(1!==t.BYTES_PER_ELEMENT||"Uint8Array"!==t.constructor.name)throw new Zl(t)}}(t),!0}catch{return!1}}let Vl=class extends Lu{constructor(t){super(`Bytes value \`${t}\` is not a valid boolean.`,{metaMessages:["The bytes array must contain a single byte of either a `0` or `1` value."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesBooleanError"})}};class Zl extends Lu{constructor(t){super(`Value \`${"object"==typeof t?ul(t):t}\` of type \`${typeof t}\` is an invalid Bytes value.`,{metaMessages:["Bytes values must be of type `Bytes`."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.InvalidBytesTypeError"})}}let Hl=class extends Lu{constructor({givenSize:t,maxSize:e}){super(`Size cannot exceed \`${e}\` bytes. Given size: \`${t}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}},Wl=class extends Lu{constructor({offset:t,position:e,size:n}){super(`Slice ${"start"===e?"starting":"ending"} at offset \`${t}\` is out-of-bounds (size: \`${n}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SliceOffsetOutOfBoundsError"})}},Jl=class extends Lu{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\`${t}\`) exceeds padding size (\`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}},Yl=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const e=super.get(t);return super.has(t)&&void 0!==e&&(this.delete(t),super.set(t,e)),e}set(t,e){if(super.set(t,e),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}};const $l={checksum:new Yl(8192)}.checksum,Ql=BigInt(0),Xl=BigInt(1),tf=BigInt(2),ef=BigInt(7),nf=BigInt(256),rf=BigInt(113),af=[],sf=[],of=[];for(let t=0,e=Xl,n=1,r=0;t<24;t++){[n,r]=[r,(2*n+3*r)%5],af.push(2*(5*r+n)),sf.push((t+1)*(t+2)/2%64);let a=Ql;for(let t=0;t<7;t++)e=(e<<Xl^(e>>ef)*rf)%nf,e&tf&&(a^=Xl<<(Xl<<BigInt(t))-Xl);of.push(a)}const cf=Bn(of,!0),uf=cf[0],df=cf[1],lf=(t,e,n)=>n>32?((t,e,n)=>e<<n-32|t>>>64-n)(t,e,n):((t,e,n)=>t<<n|e>>>32-n)(t,e,n),ff=(t,e,n)=>n>32?((t,e,n)=>t<<n-32|e>>>64-n)(t,e,n):((t,e,n)=>e<<n|t>>>32-n)(t,e,n);class hf extends vn{constructor(t,e,n,r=!1,a=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=t,this.suffix=e,this.outputLen=n,this.enableXOF=r,this.rounds=a,un(n),!(0<t&&t<200))throw new Error("only keccak-f1600 function is supported");var i;this.state=new Uint8Array(200),this.state32=(i=this.state,new Uint32Array(i.buffer,i.byteOffset,Math.floor(i.byteLength/4)))}clone(){return this._cloneInto()}keccak(){gn(this.state32),function(t,e=24){const n=new Uint32Array(10);for(let r=24-e;r<24;r++){for(let e=0;e<10;e++)n[e]=t[e]^t[e+10]^t[e+20]^t[e+30]^t[e+40];for(let e=0;e<10;e+=2){const r=(e+8)%10,a=(e+2)%10,i=n[a],s=n[a+1],o=lf(i,s,1)^n[r],c=ff(i,s,1)^n[r+1];for(let n=0;n<50;n+=10)t[e+n]^=o,t[e+n+1]^=c}let e=t[2],a=t[3];for(let n=0;n<24;n++){const r=sf[n],i=lf(e,a,r),s=ff(e,a,r),o=af[n];e=t[o],a=t[o+1],t[o]=i,t[o+1]=s}for(let e=0;e<50;e+=10){for(let r=0;r<10;r++)n[r]=t[e+r];for(let r=0;r<10;r++)t[e+r]^=~n[(r+2)%10]&n[(r+4)%10]}t[0]^=uf[r],t[1]^=df[r]}hn(n)}(this.state32,this.rounds),gn(this.state32),this.posOut=0,this.pos=0}update(t){ln(this),dn(t=bn(t));const{blockLen:e,state:n}=this,r=t.length;for(let a=0;a<r;){const i=Math.min(e-this.pos,r-a);for(let e=0;e<i;e++)n[this.pos++]^=t[a++];this.pos===e&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:t,suffix:e,pos:n,blockLen:r}=this;t[n]^=e,128&e&&n===r-1&&this.keccak(),t[r-1]^=128,this.keccak()}writeInto(t){ln(this,!1),dn(t),this.finish();const e=this.state,{blockLen:n}=this;for(let r=0,a=t.length;r<a;){this.posOut>=n&&this.keccak();const i=Math.min(n-this.posOut,a-r);t.set(e.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return un(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(fn(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,hn(this.state)}_cloneInto(t){const{blockLen:e,suffix:n,outputLen:r,rounds:a,enableXOF:i}=this;return t||(t=new hf(e,n,r,i,a)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=a,t.suffix=n,t.outputLen=r,t.enableXOF=i,t.destroyed=this.destroyed,t}}const pf=(()=>{return t=1,e=136,n=32,wn(()=>new hf(e,t,n));var t,e,n})(),mf=er;function yf(t,e={}){const{as:n=("string"==typeof t?"Hex":"Bytes")}=e,r=pf(Cl(t));return"Bytes"===n?r:ml(r)}function gf(t,e={}){const{as:n=("string"==typeof t?"Hex":"Bytes")}=e,r=mf(Cl(t));return"Bytes"===n?r:ml(r)}function bf(t,e={}){const{compressed:n}=e,{prefix:r,x:a,y:i}=t;if(!1===n||"bigint"==typeof a&&"bigint"==typeof i){if(4!==r)throw new Af({prefix:r,cause:new Ef})}else{if(!0!==n&&("bigint"!=typeof a||void 0!==i))throw new kf({publicKey:t});if(3!==r&&2!==r)throw new Af({prefix:r,cause:new If})}}function vf(t){const e=(()=>{if(Il(t))return wf(t);if(Kl(t))return function(t){return wf(ml(t))}(t);const{prefix:e,x:n,y:r}=t;return"bigint"==typeof n&&"bigint"==typeof r?{prefix:e??4,x:n,y:r}:{prefix:e,x:n}})();return bf(e),e}function wf(t){if(132!==t.length&&130!==t.length&&68!==t.length)throw new Pf({publicKey:t});if(130===t.length){return{prefix:4,x:BigInt(wl(t,0,32)),y:BigInt(wl(t,32,64))}}if(132===t.length){return{prefix:Number(wl(t,0,1)),x:BigInt(wl(t,1,33)),y:BigInt(wl(t,33,65))}}return{prefix:Number(wl(t,0,1)),x:BigInt(wl(t,1,33))}}function xf(t,e={}){bf(t);const{prefix:n,x:r,y:a}=t,{includePrefix:i=!0}=e;return fl(i?yl(n,{size:1}):"0x",yl(r,{size:32}),"bigint"==typeof a?yl(a,{size:32}):"0x")}class kf extends Lu{constructor({publicKey:t}){super(`Value \`${ul(t)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}class Af extends Lu{constructor({prefix:t,cause:e}){super(`Prefix "${t}" is invalid.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}class If extends Lu{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class Ef extends Lu{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}let Pf=class extends Lu{constructor({publicKey:t}){super(`Value \`${t}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${xl(hl(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}};const Sf=/^0x[a-fA-F0-9]{40}$/;function _f(t,e={}){const{strict:n=!0}=e;if(!Sf.test(t))throw new Bf({address:t,cause:new Mf});if(n){if(t.toLowerCase()===t)return;if(Of(t)!==t)throw new Bf({address:t,cause:new Cf})}}function Of(t){if($l.has(t))return $l.get(t);_f(t,{strict:!1});const e=t.substring(2).toLowerCase(),n=yf(Rl(e),{as:"Bytes"}),r=e.split("");for(let t=0;t<40;t+=2)n[t>>1]>>4>=8&&r[t]&&(r[t]=r[t].toUpperCase()),(15&n[t>>1])>=8&&r[t+1]&&(r[t+1]=r[t+1].toUpperCase());const a=`0x${r.join("")}`;return $l.set(t,a),a}function Tf(t,e={}){const{strict:n=!0}=e??{};try{return _f(t,{strict:n}),!0}catch{return!1}}let Bf=class extends Lu{constructor({address:t,cause:e}){super(`Address "${t}" is invalid.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}};class Mf extends Lu{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class Cf extends Lu{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}const Nf=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,jf=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;const Rf=(()=>{let t,e;async function n(e){const n=$d({origin:e.quickAuthServerOrigin}),{nonce:r}=await n.generateNonce(),a=await Ld.signIn({nonce:r,acceptAuthAddress:!0});if(a.result){const e=function(t){const{scheme:e,statement:n,...r}=t.match(Nf)?.groups??{},{chainId:a,expirationTime:i,issuedAt:s,notBefore:o,requestId:c,...u}=t.match(jf)?.groups??{},d=t.split("Resources:")[1]?.split("\n- ").slice(1);return{...r,...u,...a?{chainId:Number(a)}:{},...i?{expirationTime:new Date(i)}:{},...s?{issuedAt:new Date(s)}:{},...o?{notBefore:new Date(o)}:{},...c?{requestId:c}:{},...d?{resources:d}:{},...e?{scheme:e}:{},...n?{statement:n}:{}}}(a.result.message);if(!e.domain)throw new Error("Missing domain on SIWE message");const r=await n.verifySiwf({domain:e.domain,message:a.result.message,signature:a.result.signature});return t={token:r.token,payload:(i=r.token,Hd(i))},r}var i;if("rejected_by_user"===a.error.type)throw new O;throw new Error("Unreachable")}return{get token(){if(t&&new Date(1e3*t.payload.exp)>new Date(Date.now()+15e3))return t.token},async getToken(r={}){const a=r.force??!1;return t&&!a&&new Date(1e3*t.payload.exp)>new Date(Date.now()+15e3)?{token:t.token}:(e||(e=n(r)),e.finally(()=>{e=void 0}),e)},async fetch(t,e){const{token:n}=await this.getToken(),r=new Headers(e?.headers);return r.set("Authorization",`Bearer ${n}`),fetch(t,{...e,headers:r})}}})();const Uf=function(){const t=new I;return{get eventNames(){return t.eventNames.bind(t)},get listenerCount(){return t.listenerCount.bind(t)},get listeners(){return t.listeners.bind(t)},addListener:t.addListener.bind(t),emit:t.emit.bind(t),off:t.off.bind(t),on:t.on.bind(t),once:t.once.bind(t),removeAllListeners:t.removeAllListeners.bind(t),removeListener:t.removeListener.bind(t)}}(),{solanaProviderRequest:Lf}=Ld;let zf;var Ff,Df;async function qf(){let t;try{t=await Ld.getCapabilities()}catch{}if(t?.includes("wallet.getSolanaProvider"))return zf}Lf&&(Df=Lf,zf={request:Ff=async t=>{if("connect"===t.method)return await Df(t);if("signMessage"===t.method)return await Df(t);if("signAndSendTransaction"===t.method){const{transaction:e}=t.params,n={transaction:Ru(e)};return await Df({method:"signAndSendTransaction",params:n})}if("signTransaction"===t.method){const{transaction:e}=t.params,n={transaction:Ru(e)},{signedTransaction:r}=await Df({method:"signTransaction",params:n});return{signedTransaction:Uu(r)}}},signMessage:t=>Ff({method:"signMessage",params:{message:t}}),signTransaction:t=>Ff({method:"signTransaction",params:{transaction:t}}),signAndSendTransaction:t=>Ff({method:"signAndSendTransaction",params:t})});let Gf=null;const Kf=async()=>{const t=await Ld.addFrame();if(t.result)return t.result;if("invalid_domain_manifest"===t.error.type)throw new S;if("rejected_by_user"===t.error.type)throw new _;throw new Error("Unreachable")},Vf={...Uf,getCapabilities:Ld.getCapabilities,getChains:Ld.getChains,isInMiniApp:async function(t=1e3){if(!0===Gf)return!0;if("undefined"==typeof window)return!1;if(!window.ReactNativeWebView&&window===window.parent)return!1;const e=await Promise.race([Ld.context.then(t=>!!t),new Promise(e=>{setTimeout(()=>e(!1),t)})]).catch(()=>!1);return e&&(Gf=!0),e},context:Ld.context,back:(({miniAppHost:t,emitter:e})=>{let n,r=null;return{visible:!1,get onback(){return r},set onback(t){r&&e.removeListener("backNavigationTriggered",r),r=t,t&&e.addListener("backNavigationTriggered",t)},async show(){await t.updateBackState({visible:!0}),this.visible=!0},async hide(){await t.updateBackState({visible:!1}),this.visible=!1},async enableWebNavigation(){n=function({emitter:t,back:e}){const n=function(){if("undefined"!=typeof window&&void 0!==window.navigation)return window.navigation}();if(n)return function({emitter:t,back:e,navigation:n}){function r(){n.canGoBack?e.show():e.hide()}function a(){e.visible&&n.canGoBack&&n.back()}return n.addEventListener("navigatesuccess",r),t.addListener("backNavigationTriggered",a),()=>{n.removeEventListener("navigatesuccess",r),t.removeListener("backNavigationTriggered",a)}}({emitter:t,back:e,navigation:n});if("undefined"!=typeof window)return function({emitter:t,back:e,window:n}){function r(){e.visible&&n.history.back()}return e.show(),t.addListener("backNavigationTriggered",r),()=>{t.removeListener("backNavigationTriggered",r)}}({emitter:t,back:e,window:window})}({back:this,emitter:e})},async disableWebNavigation(){n?.(),n=void 0}}})({miniAppHost:Ld,emitter:Uf}),quickAuth:Rf,actions:{setPrimaryButton:Ld.setPrimaryButton.bind(Ld),ready:async(t={})=>await Ld.ready(t),close:Ld.close.bind(Ld),viewCast:Ld.viewCast.bind(Ld),viewProfile:Ld.viewProfile.bind(Ld),openMiniApp:Ld.openMiniApp.bind(Ld),signIn:async t=>{const e=await Ld.signIn({...t,acceptAuthAddress:t.acceptAuthAddress??!0});if(e.result)return e.result;if("rejected_by_user"===e.error.type)throw new O;throw new Error("Unreachable")},openUrl:t=>{const e="string"==typeof t?t:t.url;return Ld.openUrl(e.trim())},addFrame:Kf,addMiniApp:Kf,composeCast:(t={})=>Ld.composeCast(t),viewToken:Ld.viewToken.bind(Ld),sendToken:Ld.sendToken.bind(Ld),swapToken:Ld.swapToken.bind(Ld),requestCameraAndMicrophoneAccess:Ld.requestCameraAndMicrophoneAccess.bind(Ld)},experimental:{getSolanaProvider:qf,signManifest:async t=>{const e=await Ld.signManifest(t);if(e.result)return e.result;if("rejected_by_user"===e.error.type)throw new T;if("invalid_domain"===e.error.type)throw new B;if("generic_error"===e.error.type)throw new M(e.error.message);throw new Error("Unreachable")},quickAuth:t=>Rf.getToken(t)},wallet:{ethProvider:Dd,getEthereumProvider:async function(){try{const t=await Ld.getCapabilities();if(!t.includes("wallet.getEthereumProvider")&&!t.includes("wallet.getEvmProvider"))return;return Dd}catch{return Dd}},getSolanaProvider:qf},haptics:{impactOccurred:Ld.impactOccurred.bind(Ld),notificationOccurred:Ld.notificationOccurred.bind(Ld),selectionChanged:Ld.selectionChanged.bind(Ld)}};"undefined"!=typeof document&&document.addEventListener("FarcasterFrameEvent",t=>{if(t instanceof MessageEvent){const e=t.data;"primary_button_clicked"===e.event?Uf.emit("primaryButtonClicked"):"miniapp_added"===e.event?Uf.emit("miniAppAdded",{notificationDetails:e.notificationDetails}):"miniapp_add_rejected"===e.event?Uf.emit("miniAppAddRejected",{reason:e.reason}):"miniapp_removed"===e.event?Uf.emit("miniAppRemoved"):"notifications_enabled"===e.event?Uf.emit("notificationsEnabled",{notificationDetails:e.notificationDetails}):"notifications_disabled"===e.event?Uf.emit("notificationsDisabled"):"back_navigation_triggered"===e.event&&Uf.emit("backNavigationTriggered")}}),"undefined"!=typeof window&&window.addEventListener("message",t=>{if(t instanceof MessageEvent&&"frameEvent"===t.data.type){const e=t.data.event;"primary_button_clicked"===e.event?Uf.emit("primaryButtonClicked"):"miniapp_added"===e.event?Uf.emit("miniAppAdded",{notificationDetails:e.notificationDetails}):"miniapp_add_rejected"===e.event?Uf.emit("miniAppAddRejected",{reason:e.reason}):"miniapp_removed"===e.event?Uf.emit("miniAppRemoved"):"notifications_enabled"===e.event?Uf.emit("notificationsEnabled",{notificationDetails:e.notificationDetails}):"notifications_disabled"===e.event?Uf.emit("notificationsDisabled"):"back_navigation_triggered"===e.event&&Uf.emit("backNavigationTriggered")}});const Zf=["accountsChanged","chainChanged","connect","disconnect"];class Hf extends E{constructor(){super(...arguments),this.farcasterProvider=null,this.initPromise=null,this.eventForwarders=new Map}async init(){if(!this.farcasterProvider)return this.initPromise||(this.initPromise=(async()=>{try{Vf.actions.ready();const r=await(t=Vf.wallet.getEthereumProvider(),e=5e3,n="FarcasterProvider init timed out — host may not be ready",new Promise((r,a)=>{const i=setTimeout(()=>a(new Error(n)),e);t.then(t=>{clearTimeout(i),r(t)},t=>{clearTimeout(i),a(t)})}));this.farcasterProvider=r;for(const t of Zf){const e=(...e)=>{this.emit(t,...e)};this.eventForwarders.set(t,e),this.farcasterProvider.on(t,e)}}catch(t){throw this.initPromise=null,t}var t,e,n})()),this.initPromise}async request(t){return await this.init(),"wallet_connect"===t.method?this.handleWalletConnect(t):this.farcasterProvider.request(t)}async handleWalletConnect(t){var e;const n=await this.farcasterProvider.request({method:"eth_requestAccounts"}),r=await this.farcasterProvider.request({method:"eth_chainId"}),a=t.params,i=null===(e=null==a?void 0:a[0])||void 0===e?void 0:e.chainIds;return{accounts:n.map(t=>({address:t})),chainIds:[r,...(null!=i?i:[]).filter(t=>t!==String(r))]}}async disconnect(){if(this.farcasterProvider){for(const[t,e]of this.eventForwarders)this.farcasterProvider.removeListener(t,e);this.eventForwarders.clear()}this.farcasterProvider=null,this.initPromise=null,this.emit("disconnect",f.disconnected("User initiated disconnection"))}async close(){Vf.actions.close()}}function Wf(){return"undefined"!=typeof window&&window.parent!==window}const Jf="https://rpc.wallet.coinbase.com",Yf="@startale/app-sdk",$f="1.3.0";function Qf(t,e){let n;try{n=t()}catch(t){return}const r={getItem:t=>{var e;const r=t=>null===t?null:JSON.parse(t,void 0),a=null!=(e=n.getItem(t))?e:null;return a instanceof Promise?a.then(r):r(a)},setItem:(t,e)=>n.setItem(t,JSON.stringify(e,void 0)),removeItem:t=>n.removeItem(t)};return r}const Xf=t=>e=>{try{const n=t(e);return n instanceof Promise?n:{then:t=>Xf(t)(n),catch(t){return this}}}catch(t){return{then(t){return this},catch:e=>Xf(e)(t)}}},th=(t,e)=>(n,r,a)=>{let i={storage:Qf(()=>localStorage),partialize:t=>t,version:0,merge:(t,e)=>({...e,...t}),...e},s=!1;const o=new Set,c=new Set;let u=i.storage;if(!u)return t((...t)=>{console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...t)},r,a);const d=()=>{const t=i.partialize({...r()});return u.setItem(i.name,{state:t,version:i.version})},l=a.setState;a.setState=(t,e)=>{l(t,e),d()};const f=t((...t)=>{n(...t),d()},r,a);let h;a.getInitialState=()=>f;const p=()=>{var t,e;if(!u)return;s=!1,o.forEach(t=>{var e;return t(null!=(e=r())?e:f)});const a=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,null!=(t=r())?t:f))||void 0;return Xf(u.getItem.bind(u))(i.name).then(t=>{if(t){if("number"!=typeof t.version||t.version===i.version)return[!1,t.state];if(i.migrate){const e=i.migrate(t.state,t.version);return e instanceof Promise?e.then(t=>[!0,t]):[!0,e]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(t=>{var e;const[a,s]=t;if(h=i.merge(s,null!=(e=r())?e:f),n(h,!0),a)return d()}).then(()=>{null==a||a(h,void 0),h=r(),s=!0,c.forEach(t=>t(h))}).catch(t=>{null==a||a(void 0,t)})};return a.persist={setOptions:t=>{i={...i,...t},t.storage&&(u=t.storage)},clearStorage:()=>{null==u||u.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>p(),hasHydrated:()=>s,onHydrate:t=>(o.add(t),()=>{o.delete(t)}),onFinishHydration:t=>(c.add(t),()=>{c.delete(t)})},i.skipHydration||p(),h||f},eh=t=>{let e;const n=new Set,r=(t,r)=>{const a="function"==typeof t?t(e):t;if(!Object.is(a,e)){const t=e;e=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},e,a),n.forEach(n=>n(e,t))}},a=()=>e,i={setState:r,getState:a,getInitialState:()=>s,subscribe:t=>(n.add(t),()=>n.delete(t))},s=e=t(r,a,i);return i},nh=t=>t?eh(t):eh,rh=nh(th((...t)=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},{chains:[]}),{keys:{}}),{account:{}}),{subAccount:void 0}),{spendPermissions:[]}),(()=>({config:{version:$f}}))(...t)),{subAccountConfig:{}}),{userInfo:{}}),{name:"startale-app-sdk.store",storage:Qf(()=>localStorage),partialize:t=>({chains:t.chains,keys:t.keys,account:t.account,subAccount:t.subAccount,spendPermissions:t.spendPermissions,config:t.config,userInfo:t.userInfo})})),ah={get:()=>rh.getState().spendPermissions,set:t=>{rh.setState({spendPermissions:t})},clear:()=>{rh.setState({spendPermissions:[]})}},ih={get:()=>rh.getState().config,set:t=>{rh.setState(e=>({config:Object.assign(Object.assign({},e.config),t)}))}},sh={subAccounts:{get:()=>rh.getState().subAccount,set:t=>{rh.setState(e=>({subAccount:e.subAccount?Object.assign(Object.assign({},e.subAccount),t):Object.assign({address:t.address},t)}))},clear:()=>{rh.setState({subAccount:void 0})}},subAccountsConfig:{get:()=>rh.getState().subAccountConfig,set:t=>{rh.setState(e=>({subAccountConfig:Object.assign(Object.assign({},e.subAccountConfig),t)}))},clear:()=>{rh.setState({subAccountConfig:{}})}},spendPermissions:ah,account:{get:()=>rh.getState().account,set:t=>{rh.setState(e=>({account:Object.assign(Object.assign({},e.account),t)}))},clear:()=>{rh.setState({account:{}})}},chains:{get:()=>rh.getState().chains,set:t=>{rh.setState({chains:t})},clear:()=>{rh.setState({chains:[]})}},keys:{get:t=>rh.getState().keys[t],set:(t,e)=>{rh.setState(n=>({keys:Object.assign(Object.assign({},n.keys),{[t]:e})}))},clear:()=>{rh.setState({keys:{}})}},config:ih,userInfo:{get:()=>rh.getState().userInfo,set:t=>{rh.setState(e=>({userInfo:t}))},clear:()=>{rh.setState({userInfo:{}})}}},oh=Object.assign(Object.assign({},rh),sh),ch=()=>{var t,e,n;if("undefined"!=typeof window){const r=null!==(n=null!==(t=oh.config.get().deviceId)&&void 0!==t?t:null===(e=window.crypto)||void 0===e?void 0:e.randomUUID())&&void 0!==n?n:"";if(window.ClientAnalytics){const{init:t,identify:e,PlatformName:n}=window.ClientAnalytics;t({isProd:!0,amplitudeApiKey:"c66737ad47ec354ced777935b0af822e",platform:n.web,projectName:"base_account_sdk",showDebugLogging:!1,version:"1.0.0",apiEndpoint:"https://cca-lite.coinbase.com"}),e({deviceId:r}),oh.config.set({deviceId:r})}}},uh=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"owner",type:"bytes"}],name:"AlreadyOwner",type:"error"},{inputs:[],name:"Initialized",type:"error"},{inputs:[{name:"owner",type:"bytes"}],name:"InvalidEthereumAddressOwner",type:"error"},{inputs:[{name:"key",type:"uint256"}],name:"InvalidNonceKey",type:"error"},{inputs:[{name:"owner",type:"bytes"}],name:"InvalidOwnerBytesLength",type:"error"},{inputs:[],name:"LastOwner",type:"error"},{inputs:[{name:"index",type:"uint256"}],name:"NoOwnerAtIndex",type:"error"},{inputs:[{name:"ownersRemaining",type:"uint256"}],name:"NotLastOwner",type:"error"},{inputs:[{name:"selector",type:"bytes4"}],name:"SelectorNotAllowed",type:"error"},{inputs:[],name:"Unauthorized",type:"error"},{inputs:[],name:"UnauthorizedCallContext",type:"error"},{inputs:[],name:"UpgradeFailed",type:"error"},{inputs:[{name:"index",type:"uint256"},{name:"expectedOwner",type:"bytes"},{name:"actualOwner",type:"bytes"}],name:"WrongOwnerAtIndex",type:"error"},{anonymous:!1,inputs:[{indexed:!0,name:"index",type:"uint256"},{indexed:!1,name:"owner",type:"bytes"}],name:"AddOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"index",type:"uint256"},{indexed:!1,name:"owner",type:"bytes"}],name:"RemoveOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"REPLAYABLE_NONCE_KEY",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"addOwnerAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],name:"addOwnerPublicKey",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"functionSelector",type:"bytes4"}],name:"canSkipChainIdValidation",outputs:[{name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"entryPoint",outputs:[{name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"executeBatch",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"calls",type:"bytes[]"}],name:"executeWithoutChainIdValidation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"getUserOpHashWithoutChainId",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"implementation",outputs:[{name:"$",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"owners",type:"bytes[]"}],name:"initialize",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"isOwnerAddress",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"bytes"}],name:"isOwnerBytes",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],name:"isOwnerPublicKey",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"result",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextOwnerIndex",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"index",type:"uint256"}],name:"ownerAtIndex",outputs:[{name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"ownerCount",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxiableUUID",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{name:"index",type:"uint256"},{name:"owner",type:"bytes"}],name:"removeLastOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"index",type:"uint256"},{name:"owner",type:"bytes"}],name:"removeOwnerAtIndex",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"removedOwnersCount",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"hash",type:"bytes32"}],name:"replaySafeHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{name:"newImplementation",type:"address"},{name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"},{name:"userOpHash",type:"bytes32"},{name:"missingAccountFunds",type:"uint256"}],name:"validateUserOp",outputs:[{name:"validationData",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],dh=[{inputs:[{name:"implementation_",type:"address"}],stateMutability:"payable",type:"constructor"},{inputs:[],name:"OwnerRequired",type:"error"},{inputs:[{name:"owners",type:"bytes[]"},{name:"nonce",type:"uint256"}],name:"createAccount",outputs:[{name:"account",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{name:"owners",type:"bytes[]"},{name:"nonce",type:"uint256"}],name:"getAddress",outputs:[{name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"implementation",outputs:[{name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"initCodeHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"}];function lh(t,e,n){if(null==t)throw null!=e?e:l.invalidParams({message:"value must be present",data:t})}function fh(t,e){if(!Array.isArray(t))throw l.invalidParams({message:null!=e?e:"value must be an array",data:t})}const{checkCrossOriginOpenerPolicy:hh,getCrossOriginOpenerPolicy:ph}=(()=>{let t;return{getCrossOriginOpenerPolicy:()=>void 0===t?"undefined":t,checkCrossOriginOpenerPolicy:async()=>{if("undefined"!=typeof window)try{const e=`${window.location.origin}${window.location.pathname}`,n=await fetch(e,{method:"HEAD"});if(!n.ok)throw new Error(`HTTP error! status: ${n.status}`);const r=n.headers.get("Cross-Origin-Opener-Policy");t=null!=r?r:"null","same-origin"===t&&console.error("Base Account SDK requires the Cross-Origin-Opener-Policy header to not be set to 'same-origin'. This is to ensure that the SDK can communicate with the Base Account app.\n\nPlease see https://docs.base.org/smart-wallet/quickstart#cross-origin-opener-policy for more information.")}catch(e){console.error("Error checking Cross-Origin-Opener-Policy:",e.message),t="error"}else t="non-browser-env"}}})();function mh(t){if("function"!=typeof t)throw new Error("toAccount is not a function")}let yh=class t extends Error{constructor(e,n={}){const r=n.cause instanceof t?n.cause.details:n.cause?.message?n.cause.message:n.details,a=n.cause instanceof t&&n.cause.docsPath||n.docsPath;super([e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...r?[`Details: ${r}`]:[],"Version: abitype@1.1.0"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=a,this.metaMessages=n.metaMessages,this.shortMessage=e}};function gh(t,e){const n=t.exec(e);return n?.groups}const bh=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,vh=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,wh=/^\(.+?\).*?$/,xh=/^tuple(?<array>(\[(\d*)\])*)$/;function kh(t){let e=t.type;if(xh.test(t.type)&&"components"in t){e="(";const n=t.components.length;for(let r=0;r<n;r++){e+=kh(t.components[r]),r<n-1&&(e+=", ")}const r=gh(xh,t.type);return e+=`)${r?.array??""}`,kh({...t,type:e})}return"indexed"in t&&t.indexed&&(e=`${e} indexed`),t.name?`${e} ${t.name}`:e}function Ah(t){let e="";const n=t.length;for(let r=0;r<n;r++){e+=kh(t[r]),r!==n-1&&(e+=", ")}return e}const Ih=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;const Eh=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;const Ph=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;const Sh=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function _h(t){return Sh.test(t)}function Oh(t){return gh(Sh,t)}const Th=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;const Bh=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;const Mh=/^receive\(\) external payable$/;const Ch=new Set(["indexed"]),Nh=new Set(["calldata","memory","storage"]);let jh=class extends yh{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}},Rh=class extends yh{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}},Uh=class extends yh{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}},Lh=class extends yh{constructor({param:t,name:e}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${e}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}},zh=class extends yh{constructor({param:t,type:e,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${e?` in "${e}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}},Fh=class extends yh{constructor({param:t,type:e,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${e?` in "${e}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}},Dh=class extends yh{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}},qh=class extends yh{constructor({signature:t,type:e}){super(`Invalid ${e} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}},Gh=class extends yh{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}},Kh=class extends yh{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}},Vh=class extends yh{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}},Zh=class extends yh{constructor({current:t,depth:e}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${e>0?"opening":"closing"} parentheses.`],details:`Depth "${e}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}};const Hh=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function Wh(t,e={}){if(function(t){return Ph.test(t)}(t))return function(t,e={}){const n=function(t){return gh(Ph,t)}(t);if(!n)throw new qh({signature:t,type:"function"});const r=Xh(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(Qh(r[t],{modifiers:Nh,structs:e,type:"function"}));const s=[];if(n.returns){const t=Xh(n.returns),r=t.length;for(let n=0;n<r;n++)s.push(Qh(t[n],{modifiers:Nh,structs:e,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:a,outputs:s}}(t,e);if(function(t){return Eh.test(t)}(t))return function(t,e={}){const n=function(t){return gh(Eh,t)}(t);if(!n)throw new qh({signature:t,type:"event"});const r=Xh(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(Qh(r[t],{modifiers:Ch,structs:e,type:"event"}));return{name:n.name,type:"event",inputs:a}}(t,e);if(function(t){return Ih.test(t)}(t))return function(t,e={}){const n=function(t){return gh(Ih,t)}(t);if(!n)throw new qh({signature:t,type:"error"});const r=Xh(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(Qh(r[t],{structs:e,type:"error"}));return{name:n.name,type:"error",inputs:a}}(t,e);if(function(t){return Th.test(t)}(t))return function(t,e={}){const n=function(t){return gh(Th,t)}(t);if(!n)throw new qh({signature:t,type:"constructor"});const r=Xh(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(Qh(r[t],{structs:e,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:a}}(t,e);if(function(t){return Bh.test(t)}(t))return function(t){const e=function(t){return gh(Bh,t)}(t);if(!e)throw new qh({signature:t,type:"fallback"});return{type:"fallback",stateMutability:e.stateMutability??"nonpayable"}}(t);if(function(t){return Mh.test(t)}(t))return{type:"receive",stateMutability:"payable"};throw new Gh({signature:t})}const Jh=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Yh=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,$h=/^u?int$/;function Qh(t,e){const n=function(t,e,n){let r="";if(n)for(const t of Object.entries(n)){if(!t)continue;let e="";for(const n of t[1])e+=`[${n.type}${n.name?`:${n.name}`:""}]`;r+=`(${t[0]}{${e}})`}return e?`${e}:${t}${r}`:t}(t,e?.type,e?.structs);if(Hh.has(n))return Hh.get(n);const r=wh.test(t),a=gh(r?Yh:Jh,t);if(!a)throw new Uh({param:t});if(a.name&&function(t){return"address"===t||"bool"===t||"function"===t||"string"===t||"tuple"===t||bh.test(t)||vh.test(t)||ep.test(t)}(a.name))throw new Lh({param:t,name:a.name});const i=a.name?{name:a.name}:{},s="indexed"===a.modifier?{indexed:!0}:{},o=e?.structs??{};let c,u={};if(r){c="tuple";const t=Xh(a.type),e=[],n=t.length;for(let r=0;r<n;r++)e.push(Qh(t[r],{structs:o}));u={components:e}}else if(a.type in o)c="tuple",u={components:o[a.type]};else if($h.test(a.type))c=`${a.type}256`;else if("address payable"===a.type)c="address";else if(c=a.type,"struct"!==e?.type&&!tp(c))throw new Rh({type:c});if(a.modifier){if(!e?.modifiers?.has?.(a.modifier))throw new zh({param:t,type:e?.type,modifier:a.modifier});if(Nh.has(a.modifier)&&!function(t,e){return e||"bytes"===t||"string"===t||"tuple"===t}(c,!!a.array))throw new Fh({param:t,type:e?.type,modifier:a.modifier})}const d={type:`${c}${a.array??""}`,...i,...s,...u};return Hh.set(n,d),d}function Xh(t,e=[],n="",r=0){const a=t.trim().length;for(let i=0;i<a;i++){const a=t[i],s=t.slice(i+1);switch(a){case",":return 0===r?Xh(s,[...e,n.trim()]):Xh(s,e,`${n}${a}`,r);case"(":return Xh(s,e,`${n}${a}`,r+1);case")":return Xh(s,e,`${n}${a}`,r-1);default:return Xh(s,e,`${n}${a}`,r)}}if(""===n)return e;if(0!==r)throw new Zh({current:n,depth:r});return e.push(n.trim()),e}function tp(t){return"address"===t||"bool"===t||"function"===t||"string"===t||bh.test(t)||vh.test(t)}const ep=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;const np=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function rp(t,e,n=new Set){const r=[],a=t.length;for(let i=0;i<a;i++){const a=t[i];if(wh.test(a.type))r.push(a);else{const t=gh(np,a.type);if(!t?.type)throw new Dh({abiParameter:a});const{array:i,type:s}=t;if(s in e){if(n.has(s))throw new Vh({type:s});r.push({...a,type:`tuple${i??""}`,components:rp(e[s]??[],e,new Set([...n,s]))})}else{if(!tp(s))throw new jh({type:s});r.push(a)}}}return r}function ap(t){const e=function(t){const e={},n=t.length;for(let r=0;r<n;r++){const n=t[r];if(!_h(n))continue;const a=Oh(n);if(!a)throw new qh({signature:n,type:"struct"});const i=a.properties.split(";"),s=[],o=i.length;for(let t=0;t<o;t++){const e=i[t].trim();if(!e)continue;const n=Qh(e,{type:"struct"});s.push(n)}if(!s.length)throw new Kh({signature:n});e[a.name]=s}const r={},a=Object.entries(e),i=a.length;for(let t=0;t<i;t++){const[n,i]=a[t];r[n]=rp(i,e)}return r}(t),n=[],r=t.length;for(let a=0;a<r;a++){const r=t[a];_h(r)||n.push(Wh(r,e))}return n}function ip(t,e,n){const r=t[e.name];if("function"==typeof r)return r;const a=t[n];return"function"==typeof a?a:n=>e(t,n)}function sp(t,{includeName:e=!1}={}){if("function"!==t.type&&"event"!==t.type&&"error"!==t.type)throw new Lp(t.type);return`${t.name}(${op(t.inputs,{includeName:e})})`}function op(t,{includeName:e=!1}={}){return t?t.map(t=>function(t,{includeName:e}){if(t.type.startsWith("tuple"))return`(${op(t.components,{includeName:e})})${t.type.slice(5)}`;return t.type+(e&&t.name?` ${t.name}`:"")}(t,{includeName:e})).join(e?", ":","):""}function cp(t,{strict:e=!0}={}){return!!t&&("string"==typeof t&&(e?/^0x[0-9a-fA-F]*$/.test(t):t.startsWith("0x")))}function up(t){return cp(t,{strict:!1})?Math.ceil((t.length-2)/2):t.length}const dp="2.38.4";let lp=({docsBaseUrl:t,docsPath:e="",docsSlug:n})=>e?`${t??"https://viem.sh"}${e}${n?`#${n}`:""}`:void 0,fp=`viem@${dp}`,hp=class t extends Error{constructor(e,n={}){const r=n.cause instanceof t?n.cause.details:n.cause?.message?n.cause.message:n.details,a=n.cause instanceof t&&n.cause.docsPath||n.docsPath,i=lp?.({...n,docsPath:a});super([e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: ${i}`]:[],...r?[`Details: ${r}`]:[],...fp?[`Version: ${fp}`]:[]].join("\n"),n.cause?{cause:n.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=r,this.docsPath=a,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=e,this.version=dp}walk(t){return pp(this,t)}};function pp(t,e){return e?.(t)?t:t&&"object"==typeof t&&"cause"in t&&void 0!==t.cause?pp(t.cause,e):e?null:t}class mp extends hp{constructor({docsPath:t}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join("\n"),{docsPath:t,name:"AbiConstructorNotFoundError"})}}class yp extends hp{constructor({docsPath:t}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join("\n"),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}}class gp extends hp{constructor({data:t,params:e,size:n}){super([`Data size of ${n} bytes is too small for given parameters.`].join("\n"),{metaMessages:[`Params: (${op(e,{includeName:!0})})`,`Data: ${t} (${n} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t,this.params=e,this.size=n}}class bp extends hp{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class vp extends hp{constructor({expectedLength:t,givenLength:e,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${t}`,`Given length: ${e}`].join("\n"),{name:"AbiEncodingArrayLengthMismatchError"})}}class wp extends hp{constructor({expectedSize:t,value:e}){super(`Size of bytes "${e}" (bytes${up(e)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class xp extends hp{constructor({expectedLength:t,givenLength:e}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${e}`].join("\n"),{name:"AbiEncodingLengthMismatchError"})}}class kp extends hp{constructor(t,{docsPath:e}){super([`Arguments (\`args\`) were provided to "${t}", but "${t}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join("\n"),{docsPath:e,name:"AbiErrorInputsNotFoundError"})}}class Ap extends hp{constructor(t,{docsPath:e}={}){super([`Error ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join("\n"),{docsPath:e,name:"AbiErrorNotFoundError"})}}class Ip extends hp{constructor(t,{docsPath:e}){super([`Encoded error signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${t}.`].join("\n"),{docsPath:e,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}}class Ep extends hp{constructor({docsPath:t}){super("Cannot extract event signature from empty topics.",{docsPath:t,name:"AbiEventSignatureEmptyTopicsError"})}}class Pp extends hp{constructor(t,{docsPath:e}){super([`Encoded event signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join("\n"),{docsPath:e,name:"AbiEventSignatureNotFoundError"})}}class Sp extends hp{constructor(t,{docsPath:e}={}){super([`Event ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join("\n"),{docsPath:e,name:"AbiEventNotFoundError"})}}class _p extends hp{constructor(t,{docsPath:e}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:e,name:"AbiFunctionNotFoundError"})}}class Op extends hp{constructor(t,{docsPath:e}){super([`Function "${t}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:e,name:"AbiFunctionOutputsNotFoundError"})}}class Tp extends hp{constructor(t,{docsPath:e}){super([`Encoded function signature "${t}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${t}.`].join("\n"),{docsPath:e,name:"AbiFunctionSignatureNotFoundError"})}}class Bp extends hp{constructor(t,e){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${sp(t.abiItem)}\`, and`,`\`${e.type}\` in \`${sp(e.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}let Mp=class extends hp{constructor({expectedSize:t,givenSize:e}){super(`Expected bytes${t}, got bytes${e}.`,{name:"BytesSizeMismatchError"})}};class Cp extends hp{constructor({abiItem:t,data:e,params:n,size:r}){super([`Data size of ${r} bytes is too small for non-indexed event parameters.`].join("\n"),{metaMessages:[`Params: (${op(n,{includeName:!0})})`,`Data: ${e} (${r} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t,this.data=e,this.params=n,this.size=r}}class Np extends hp{constructor({abiItem:t,param:e}){super([`Expected a topic for indexed event parameter${e.name?` "${e.name}"`:""} on event "${sp(t,{includeName:!0})}".`].join("\n"),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class jp extends hp{constructor(t,{docsPath:e}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:e,name:"InvalidAbiEncodingType"})}}class Rp extends hp{constructor(t,{docsPath:e}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:e,name:"InvalidAbiDecodingType"})}}let Up=class extends hp{constructor(t){super([`Value "${t}" is not a valid array.`].join("\n"),{name:"InvalidArrayError"})}};class Lp extends hp{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n"),{name:"InvalidDefinitionTypeError"})}}class zp extends hp{constructor(t){super(`Type "${t}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}class Fp extends hp{constructor(t){super(`Filter type "${t}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}class Dp extends hp{constructor({offset:t,position:e,size:n}){super(`Slice ${"start"===e?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${n}).`,{name:"SliceOffsetOutOfBoundsError"})}}class qp extends hp{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${t}) exceeds padding size (${e}).`,{name:"SizeExceedsPaddingSizeError"})}}class Gp extends hp{constructor({size:t,targetSize:e,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${e} ${n} long, but is ${t} ${n} long.`,{name:"InvalidBytesLengthError"})}}function Kp(t,{dir:e,size:n=32}={}){return"string"==typeof t?Vp(t,{dir:e,size:n}):function(t,{dir:e,size:n=32}={}){if(null===n)return t;if(t.length>n)throw new qp({size:t.length,targetSize:n,type:"bytes"});const r=new Uint8Array(n);for(let a=0;a<n;a++){const i="right"===e;r[i?a:n-a-1]=t[i?a:t.length-a-1]}return r}(t,{dir:e,size:n})}function Vp(t,{dir:e,size:n=32}={}){if(null===n)return t;const r=t.replace("0x","");if(r.length>2*n)throw new qp({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r["right"===e?"padEnd":"padStart"](2*n,"0")}`}class Zp extends hp{constructor({max:t,min:e,signed:n,size:r,value:a}){super(`Number "${a}" is not in safe ${r?`${8*r}-bit ${n?"signed":"unsigned"} `:""}integer range ${t?`(${e} to ${t})`:`(above ${e})`}`,{name:"IntegerOutOfRangeError"})}}class Hp extends hp{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class Wp extends hp{constructor(t){super(`Hex value "${t}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class Jp extends hp{constructor({givenSize:t,maxSize:e}){super(`Size cannot exceed ${e} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}}function Yp(t,{dir:e="left"}={}){let n="string"==typeof t?t.replace("0x",""):t,r=0;for(let t=0;t<n.length-1&&"0"===n["left"===e?t:n.length-t-1].toString();t++)r++;return n="left"===e?n.slice(r):n.slice(0,n.length-r),"string"==typeof t?(1===n.length&&"right"===e&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}function $p(t,{size:e}){if(up(t)>e)throw new Jp({givenSize:up(t),maxSize:e})}function Qp(t,e={}){const{signed:n}=e;e.size&&$p(t,{size:e.size});const r=BigInt(t);if(!n)return r;const a=(t.length-2)/2;return r<=(1n<<8n*BigInt(a)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*a,"f")}`)-1n}function Xp(t,e={}){return Number(Qp(t,e))}function tm(t,e={}){let n=fm(t);return e.size&&($p(n,{size:e.size}),n=Yp(n,{dir:"right"})),(new TextDecoder).decode(n)}const em=Array.from({length:256},(t,e)=>e.toString(16).padStart(2,"0"));function nm(t,e={}){return"number"==typeof t||"bigint"==typeof t?im(t,e):"string"==typeof t?om(t,e):"boolean"==typeof t?rm(t,e):am(t,e)}function rm(t,e={}){const n=`0x${Number(t)}`;return"number"==typeof e.size?($p(n,{size:e.size}),Kp(n,{size:e.size})):n}function am(t,e={}){let n="";for(let e=0;e<t.length;e++)n+=em[t[e]];const r=`0x${n}`;return"number"==typeof e.size?($p(r,{size:e.size}),Kp(r,{dir:"right",size:e.size})):r}function im(t,e={}){const{signed:n,size:r}=e,a=BigInt(t);let i;r?i=n?(1n<<8n*BigInt(r)-1n)-1n:2n**(8n*BigInt(r))-1n:"number"==typeof t&&(i=BigInt(Number.MAX_SAFE_INTEGER));const s="bigint"==typeof i&&n?-i-1n:0;if(i&&a>i||a<s){const e="bigint"==typeof t?"n":"";throw new Zp({max:i?`${i}${e}`:void 0,min:`${s}${e}`,signed:n,size:r,value:`${t}${e}`})}const o=`0x${(n&&a<0?(1n<<BigInt(8*r))+BigInt(a):a).toString(16)}`;return r?Kp(o,{size:r}):o}const sm=new TextEncoder;function om(t,e={}){return am(sm.encode(t),e)}const cm=new TextEncoder;function um(t,e={}){return"number"==typeof t||"bigint"==typeof t?function(t,e){const n=im(t,e);return fm(n)}(t,e):"boolean"==typeof t?function(t,e={}){const n=new Uint8Array(1);if(n[0]=Number(t),"number"==typeof e.size)return $p(n,{size:e.size}),Kp(n,{size:e.size});return n}(t,e):cp(t)?fm(t,e):hm(t,e)}const dm={zero:48,nine:57,A:65,F:70,a:97,f:102};function lm(t){return t>=dm.zero&&t<=dm.nine?t-dm.zero:t>=dm.A&&t<=dm.F?t-(dm.A-10):t>=dm.a&&t<=dm.f?t-(dm.a-10):void 0}function fm(t,e={}){let n=t;e.size&&($p(n,{size:e.size}),n=Kp(n,{dir:"right",size:e.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);const a=r.length/2,i=new Uint8Array(a);for(let t=0,e=0;t<a;t++){const n=lm(r.charCodeAt(e++)),a=lm(r.charCodeAt(e++));if(void 0===n||void 0===a)throw new hp(`Invalid byte sequence ("${r[e-2]}${r[e-1]}" in "${r}").`);i[t]=16*n+a}return i}function hm(t,e={}){const n=cm.encode(t);return"number"==typeof e.size?($p(n,{size:e.size}),Kp(n,{dir:"right",size:e.size})):n}function pm(t,e){const n=e||"hex",r=pf(cp(t,{strict:!1})?um(t):t);return"bytes"===n?r:nm(r)}function mm(t){return pm(um(t))}const ym=t=>{var e;return function(t){let e=!0,n="",r=0,a="",i=!1;for(let s=0;s<t.length;s++){const o=t[s];if(["(",")",","].includes(o)&&(e=!0),"("===o&&r++,")"===o&&r--,e)if(0!==r)" "!==o?(a+=o,n+=o):","!==t[s-1]&&","!==n&&",("!==n&&(n="",e=!1);else if(" "===o&&["event","function",""].includes(a))a="";else if(a+=o,")"===o){i=!0;break}}if(!i)throw new hp("Unable to normalize signature.");return a}("string"==typeof t?t:"function"===(e=t).type?`function ${e.name}(${Ah(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${Ah(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${Ah(e.inputs)})`:"error"===e.type?`error ${e.name}(${Ah(e.inputs)})`:"constructor"===e.type?`constructor(${Ah(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?"fallback() external"+("payable"===e.stateMutability?" payable":""):"receive() external payable")};function gm(t){return mm(ym(t))}const bm=gm;class vm extends hp{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}class wm extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const e=super.get(t);return super.has(t)&&void 0!==e&&(this.delete(t),super.set(t,e)),e}set(t,e){if(super.set(t,e),this.maxSize&&this.size>this.maxSize){const t=this.keys().next().value;t&&this.delete(t)}return this}}const xm=new wm(8192);function km(t,e){if(xm.has(`${t}.${e}`))return xm.get(`${t}.${e}`);const n=t.substring(2).toLowerCase(),r=pm(hm(n),"bytes"),a=n.split("");for(let t=0;t<40;t+=2)r[t>>1]>>4>=8&&a[t]&&(a[t]=a[t].toUpperCase()),(15&r[t>>1])>=8&&a[t+1]&&(a[t+1]=a[t+1].toUpperCase());const i=`0x${a.join("")}`;return xm.set(`${t}.${e}`,i),i}function Am(t,e){if(!Pm(t,{strict:!1}))throw new vm({address:t});return km(t,e)}const Im=/^0x[a-fA-F0-9]{40}$/,Em=new wm(8192);function Pm(t,e){const{strict:n=!0}=e??{},r=`${t}.${n}`;if(Em.has(r))return Em.get(r);const a=!(!Im.test(t)||t.toLowerCase()!==t&&n&&km(t)!==t);return Em.set(r,a),a}function Sm(t){return"string"==typeof t[0]?_m(t):function(t){let e=0;for(const n of t)e+=n.length;const n=new Uint8Array(e);let r=0;for(const e of t)n.set(e,r),r+=e.length;return n}(t)}function _m(t){return`0x${t.reduce((t,e)=>t+e.replace("0x",""),"")}`}function Om(t,e,n,{strict:r}={}){return cp(t,{strict:!1})?Cm(t,e,n,{strict:r}):Mm(t,e,n,{strict:r})}function Tm(t,e){if("number"==typeof e&&e>0&&e>up(t)-1)throw new Dp({offset:e,position:"start",size:up(t)})}function Bm(t,e,n){if("number"==typeof e&&"number"==typeof n&&up(t)!==n-e)throw new Dp({offset:n,position:"end",size:up(t)})}function Mm(t,e,n,{strict:r}={}){Tm(t,e);const a=t.slice(e,n);return r&&Bm(a,e,n),a}function Cm(t,e,n,{strict:r}={}){Tm(t,e);const a=`0x${t.replace("0x","").slice(2*(e??0),2*(n??t.length))}`;return r&&Bm(a,e,n),a}const Nm=/^(.*)\[([0-9]*)\]$/,jm=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Rm=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;function Um(t,e){if(t.length!==e.length)throw new xp({expectedLength:t.length,givenLength:e.length});const n=function({params:t,values:e}){const n=[];for(let r=0;r<t.length;r++)n.push(Lm({param:t[r],value:e[r]}));return n}({params:t,values:e}),r=zm(n);return 0===r.length?"0x":r}function Lm({param:t,value:e}){const n=Fm(t.type);if(n){const[r,a]=n;return function(t,{length:e,param:n}){const r=null===e;if(!Array.isArray(t))throw new Up(t);if(!r&&t.length!==e)throw new vp({expectedLength:e,givenLength:t.length,type:`${n.type}[${e}]`});let a=!1;const i=[];for(let e=0;e<t.length;e++){const r=Lm({param:n,value:t[e]});r.dynamic&&(a=!0),i.push(r)}if(r||a){const t=zm(i);if(r){const e=im(i.length,{size:32});return{dynamic:!0,encoded:i.length>0?Sm([e,t]):e}}if(a)return{dynamic:!0,encoded:t}}return{dynamic:!1,encoded:Sm(i.map(({encoded:t})=>t))}}(e,{length:r,param:{...t,type:a}})}if("tuple"===t.type)return function(t,{param:e}){let n=!1;const r=[];for(let a=0;a<e.components.length;a++){const i=e.components[a],s=Lm({param:i,value:t[Array.isArray(t)?a:i.name]});r.push(s),s.dynamic&&(n=!0)}return{dynamic:n,encoded:n?zm(r):Sm(r.map(({encoded:t})=>t))}}(e,{param:t});if("address"===t.type)return function(t){if(!Pm(t))throw new vm({address:t});return{dynamic:!1,encoded:Vp(t.toLowerCase())}}(e);if("bool"===t.type)return function(t){if("boolean"!=typeof t)throw new hp(`Invalid boolean value: "${t}" (type: ${typeof t}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:Vp(rm(t))}}(e);if(t.type.startsWith("uint")||t.type.startsWith("int")){const n=t.type.startsWith("int"),[,,r="256"]=Rm.exec(t.type)??[];return function(t,{signed:e,size:n=256}){if("number"==typeof n){const r=2n**(BigInt(n)-(e?1n:0n))-1n,a=e?-r-1n:0n;if(t>r||t<a)throw new Zp({max:r.toString(),min:a.toString(),signed:e,size:n/8,value:t.toString()})}return{dynamic:!1,encoded:im(t,{size:32,signed:e})}}(e,{signed:n,size:Number(r)})}if(t.type.startsWith("bytes"))return function(t,{param:e}){const[,n]=e.type.split("bytes"),r=up(t);if(!n){let e=t;return r%32!=0&&(e=Vp(e,{dir:"right",size:32*Math.ceil((t.length-2)/2/32)})),{dynamic:!0,encoded:Sm([Vp(im(r,{size:32})),e])}}if(r!==Number.parseInt(n,10))throw new wp({expectedSize:Number.parseInt(n,10),value:t});return{dynamic:!1,encoded:Vp(t,{dir:"right"})}}(e,{param:t});if("string"===t.type)return function(t){const e=om(t),n=Math.ceil(up(e)/32),r=[];for(let t=0;t<n;t++)r.push(Vp(Om(e,32*t,32*(t+1)),{dir:"right"}));return{dynamic:!0,encoded:Sm([Vp(im(up(e),{size:32})),...r])}}(e);throw new jp(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function zm(t){let e=0;for(let n=0;n<t.length;n++){const{dynamic:r,encoded:a}=t[n];e+=r?32:up(a)}const n=[],r=[];let a=0;for(let i=0;i<t.length;i++){const{dynamic:s,encoded:o}=t[i];s?(n.push(im(e+a,{size:32})),r.push(o),a+=up(o)):n.push(o)}return Sm([...n,...r])}function Fm(t){const e=t.match(/^(.*)\[(\d+)?\]$/);return e?[e[2]?Number(e[2]):null,e[1]]:void 0}const Dm=t=>Om(gm(t),0,4);function qm(t){const{abi:e,args:n=[],name:r}=t,a=cp(r,{strict:!1}),i=e.filter(t=>a?"function"===t.type?Dm(t)===r:"event"===t.type&&bm(t)===r:"name"in t&&t.name===r);if(0===i.length)return;if(1===i.length)return i[0];let s;for(const t of i){if(!("inputs"in t))continue;if(!n||0===n.length){if(!t.inputs||0===t.inputs.length)return t;continue}if(!t.inputs)continue;if(0===t.inputs.length)continue;if(t.inputs.length!==n.length)continue;const e=n.every((e,n)=>{const r="inputs"in t&&t.inputs[n];return!!r&&Gm(e,r)});if(e){if(s&&"inputs"in s&&s.inputs){const e=Km(t.inputs,s.inputs,n);if(e)throw new Bp({abiItem:t,type:e[0]},{abiItem:s,type:e[1]})}s=t}}return s||i[0]}function Gm(t,e){const n=typeof t,r=e.type;switch(r){case"address":return Pm(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:return"tuple"===r&&"components"in e?Object.values(e.components).every((e,n)=>Gm(Object.values(t)[n],e)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?"number"===n||"bigint"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?"string"===n||t instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)&&(Array.isArray(t)&&t.every(t=>Gm(t,{...e,type:r.replace(/(\[[0-9]{0,}\])$/,"")})))}}function Km(t,e,n){for(const r in t){const a=t[r],i=e[r];if("tuple"===a.type&&"tuple"===i.type&&"components"in a&&"components"in i)return Km(a.components,i.components,n[r]);const s=[a.type,i.type];if((()=>!(!s.includes("address")||!s.includes("bytes20"))||(s.includes("address")&&s.includes("string")||!(!s.includes("address")||!s.includes("bytes")))&&Pm(n[r],{strict:!1}))())return s}}const Vm="/docs/contract/encodeEventTopics";function Zm(t){const{abi:e,eventName:n,args:r}=t;let a=e[0];if(n){const t=qm({abi:e,name:n});if(!t)throw new Sp(n,{docsPath:Vm});a=t}if("event"!==a.type)throw new Sp(void 0,{docsPath:Vm});const i=sp(a),s=bm(i);let o=[];if(r&&"inputs"in a){const t=a.inputs?.filter(t=>"indexed"in t&&t.indexed),e=Array.isArray(r)?r:Object.values(r).length>0?t?.map(t=>r[t.name])??[]:[];e.length>0&&(o=t?.map((t,n)=>Array.isArray(e[n])?e[n].map((r,a)=>Hm({param:t,value:e[n][a]})):void 0!==e[n]&&null!==e[n]?Hm({param:t,value:e[n]}):null)??[])}return[s,...o]}function Hm({param:t,value:e}){if("string"===t.type||"bytes"===t.type)return pm(um(e));if("tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))throw new Fp(t.type);return Um([t],[e])}function Wm(t,{method:e}){const n={};return"fallback"===t.transport.type&&t.transport.onResponse?.(({method:t,response:r,status:a,transport:i})=>{"success"===a&&e===t&&(n[r]=i.request)}),e=>n[e]||t.request}async function Jm(t,e){const{address:n,abi:r,args:a,eventName:i,fromBlock:s,strict:o,toBlock:c}=e,u=Wm(t,{method:"eth_newFilter"}),d=i?Zm({abi:r,args:a,eventName:i}):void 0,l=await t.request({method:"eth_newFilter",params:[{address:n,fromBlock:"bigint"==typeof s?im(s):s,toBlock:"bigint"==typeof c?im(c):c,topics:d}]});return{abi:r,args:a,eventName:i,id:l,request:u(l),strict:Boolean(o),type:"event"}}function Ym(t){return"string"==typeof t?{address:t,type:"json-rpc"}:t}const $m="/docs/contract/encodeFunctionData";function Qm(t){const{args:e}=t,{abi:n,functionName:r}=1===t.abi.length&&t.functionName?.startsWith("0x")?t:function(t){const{abi:e,args:n,functionName:r}=t;let a=e[0];if(r){const t=qm({abi:e,args:n,name:r});if(!t)throw new _p(r,{docsPath:$m});a=t}if("function"!==a.type)throw new _p(void 0,{docsPath:$m});return{abi:[a],functionName:Dm(sp(a))}}(t),a=n[0];return _m([r,("inputs"in a&&a.inputs?Um(a.inputs,e??[]):void 0)??"0x"])}const Xm={1:"An `assert` condition failed.",17:"Arithmetic operation resulted in underflow or overflow.",18:"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).",33:"Attempted to convert to an invalid type.",34:"Attempted to access a storage byte array that is incorrectly encoded.",49:"Performed `.pop()` on an empty array",50:"Array index is out of bounds.",65:"Allocated too much memory or created an array which is too large.",81:"Attempted to call a zero-initialized variable of internal function type."},ty={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},ey={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};let ny=class extends hp{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},ry=class extends hp{constructor({length:t,position:e}){super(`Position \`${e}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},ay=class extends hp{constructor({count:t,limit:e}){super(`Recursive read limit of \`${e}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};const iy={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new ay({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(t){if(t<0||t>this.bytes.length-1)throw new ry({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new ny({offset:t});const e=this.position-t;this.assertPosition(e),this.position=e},getReadCount(t){return this.positionReadCount.get(t||this.position)||0},incrementPosition(t){if(t<0)throw new ny({offset:t});const e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){const n=e??this.position;return this.assertPosition(n+t-1),this.bytes.subarray(n,n+t)},inspectUint8(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){const e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){const e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){const e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,255&t),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const t=this.inspectByte();return this.position++,t},readBytes(t,e){this.assertReadLimit(),this._touch();const n=this.inspectBytes(t);return this.position+=e??t,n},readUint8(){this.assertReadLimit(),this._touch();const t=this.inspectUint8();return this.position+=1,t},readUint16(){this.assertReadLimit(),this._touch();const t=this.inspectUint16();return this.position+=2,t},readUint24(){this.assertReadLimit(),this._touch();const t=this.inspectUint24();return this.position+=3,t},readUint32(){this.assertReadLimit(),this._touch();const t=this.inspectUint32();return this.position+=4,t},get remaining(){return this.bytes.length-this.position},setPosition(t){const e=this.position;return this.assertPosition(t),this.position=t,()=>this.position=e},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const t=this.getReadCount();this.positionReadCount.set(this.position,t+1),t>0&&this.recursiveReadCount++}};function sy(t,{recursiveReadLimit:e=8192}={}){const n=Object.create(iy);return n.bytes=t,n.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=e,n}function oy(t,e={}){void 0!==e.size&&$p(t,{size:e.size});return Qp(am(t,e),e)}function cy(t,e={}){let n=t;if(void 0!==e.size&&($p(n,{size:e.size}),n=Yp(n)),n.length>1||n[0]>1)throw new Hp(n);return Boolean(n[0])}function uy(t,e={}){void 0!==e.size&&$p(t,{size:e.size});return Xp(am(t,e),e)}function dy(t,e){const n="string"==typeof e?fm(e):e,r=sy(n);if(0===up(n)&&t.length>0)throw new bp;if(up(e)&&up(e)<32)throw new gp({data:"string"==typeof e?e:am(e),params:t,size:up(e)});let a=0;const i=[];for(let e=0;e<t.length;++e){const n=t[e];r.setPosition(a);const[s,o]=ly(r,n,{staticPosition:0});a+=o,i.push(s)}return i}function ly(t,e,{staticPosition:n}){const r=Fm(e.type);if(r){const[a,i]=r;return function(t,e,{length:n,staticPosition:r}){if(!n){const n=r+uy(t.readBytes(hy)),a=n+fy;t.setPosition(n);const i=uy(t.readBytes(fy)),s=py(e);let o=0;const c=[];for(let n=0;n<i;++n){t.setPosition(a+(s?32*n:o));const[r,i]=ly(t,e,{staticPosition:a});o+=i,c.push(r)}return t.setPosition(r+32),[c,32]}if(py(e)){const a=r+uy(t.readBytes(hy)),i=[];for(let r=0;r<n;++r){t.setPosition(a+32*r);const[n]=ly(t,e,{staticPosition:a});i.push(n)}return t.setPosition(r+32),[i,32]}let a=0;const i=[];for(let s=0;s<n;++s){const[n,s]=ly(t,e,{staticPosition:r+a});a+=s,i.push(n)}return[i,a]}(t,{...e,type:i},{length:a,staticPosition:n})}if("tuple"===e.type)return function(t,e,{staticPosition:n}){const r=0===e.components.length||e.components.some(({name:t})=>!t),a=r?[]:{};let i=0;if(py(e)){const s=n+uy(t.readBytes(hy));for(let n=0;n<e.components.length;++n){const o=e.components[n];t.setPosition(s+i);const[c,u]=ly(t,o,{staticPosition:s});i+=u,a[r?n:o?.name]=c}return t.setPosition(n+32),[a,32]}for(let s=0;s<e.components.length;++s){const o=e.components[s],[c,u]=ly(t,o,{staticPosition:n});a[r?s:o?.name]=c,i+=u}return[a,i]}(t,e,{staticPosition:n});if("address"===e.type)return function(t){const e=t.readBytes(32);return[km(am(Mm(e,-20))),32]}(t);if("bool"===e.type)return function(t){return[cy(t.readBytes(32),{size:32}),32]}(t);if(e.type.startsWith("bytes"))return function(t,e,{staticPosition:n}){const[r,a]=e.type.split("bytes");if(!a){const e=uy(t.readBytes(32));t.setPosition(n+e);const r=uy(t.readBytes(32));if(0===r)return t.setPosition(n+32),["0x",32];const a=t.readBytes(r);return t.setPosition(n+32),[am(a),32]}const i=am(t.readBytes(Number.parseInt(a,10),32));return[i,32]}(t,e,{staticPosition:n});if(e.type.startsWith("uint")||e.type.startsWith("int"))return function(t,e){const n=e.type.startsWith("int"),r=Number.parseInt(e.type.split("int")[1]||"256",10),a=t.readBytes(32);return[r>48?oy(a,{signed:n}):uy(a,{signed:n}),32]}(t,e);if("string"===e.type)return function(t,{staticPosition:e}){const n=uy(t.readBytes(32)),r=e+n;t.setPosition(r);const a=uy(t.readBytes(32));if(0===a)return t.setPosition(e+32),["",32];const i=t.readBytes(a,32),s=function(t,e={}){let n=t;return void 0!==e.size&&($p(n,{size:e.size}),n=Yp(n,{dir:"right"})),(new TextDecoder).decode(n)}(Yp(i));return t.setPosition(e+32),[s,32]}(t,{staticPosition:n});throw new Rp(e.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const fy=32,hy=32;function py(t){const{type:e}=t;if("string"===e)return!0;if("bytes"===e)return!0;if(e.endsWith("[]"))return!0;if("tuple"===e)return t.components?.some(py);const n=Fm(t.type);return!(!n||!py({...t,type:n[1]}))}function my(t){const{abi:e,data:n}=t,r=Om(n,0,4);if("0x"===r)throw new bp;const a=[...e||[],ty,ey].find(t=>"error"===t.type&&r===Dm(sp(t)));if(!a)throw new Ip(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:a,args:"inputs"in a&&a.inputs&&a.inputs.length>0?dy(a.inputs,Om(n,4)):void 0,errorName:a.name}}const yy=(t,e,n)=>JSON.stringify(t,(t,e)=>"bigint"==typeof e?e.toString():e,n);function gy({abiItem:t,args:e,includeFunctionName:n=!0,includeName:r=!1}){if("name"in t&&"inputs"in t&&t.inputs)return`${n?t.name:""}(${t.inputs.map((t,n)=>`${r&&t.name?`${t.name}: `:""}${"object"==typeof e[n]?yy(e[n]):e[n]}`).join(", ")})`}const by={gwei:9,wei:18},vy={ether:-9,wei:9};function wy(t,e){let n=t.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(e,"0");let[a,i]=[n.slice(0,n.length-e),n.slice(n.length-e)];return i=i.replace(/(0+)$/,""),`${r?"-":""}${a||"0"}${i?`.${i}`:""}`}function xy(t,e="wei"){return wy(t,by[e])}function ky(t,e="wei"){return wy(t,vy[e])}class Ay extends hp{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}}class Iy extends hp{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function Ey(t){return t.reduce((t,{slot:e,value:n})=>`${t} ${e}: ${n}\n`,"")}function Py(t){const e=Object.entries(t).map(([t,e])=>void 0===e||!1===e?null:[t,e]).filter(Boolean),n=e.reduce((t,[e])=>Math.max(t,e.length),0);return e.map(([t,e])=>` ${`${t}:`.padEnd(n+1)} ${e}`).join("\n")}class Sy extends hp{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join("\n"),{name:"FeeConflictError"})}}class _y extends hp{constructor({v:t}){super(`Invalid \`v\` value "${t}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class Oy extends hp{constructor({transaction:t}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",Py(t),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class Ty extends hp{constructor({storageKey:t}){super(`Size for storage key "${t}" is invalid. Expected 32 bytes. Got ${Math.floor((t.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class By extends hp{constructor({blockHash:t,blockNumber:e,blockTag:n,hash:r,index:a}){let i="Transaction";n&&void 0!==a&&(i=`Transaction at block time "${n}" at index "${a}"`),t&&void 0!==a&&(i=`Transaction at block hash "${t}" at index "${a}"`),e&&void 0!==a&&(i=`Transaction at block number "${e}" at index "${a}"`),r&&(i=`Transaction with hash "${r}"`),super(`${i} could not be found.`,{name:"TransactionNotFoundError"})}}class My extends hp{constructor({hash:t}){super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class Cy extends hp{constructor({receipt:t}){super(`Transaction with hash "${t.transactionHash}" reverted.`,{metaMessages:['The receipt marked the transaction as "reverted". This could mean that the function on the contract you are trying to call threw an error.'," ","You can attempt to extract the revert reason by:","- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract","- using the `call` Action with raw `data`"],name:"TransactionReceiptRevertedError"}),Object.defineProperty(this,"receipt",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=t}}class Ny extends hp{constructor({hash:t}){super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}class jy extends hp{constructor(t,{account:e,docsPath:n,chain:r,data:a,gas:i,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:c,nonce:u,to:d,value:l,stateOverride:f}){const h=e?Ym(e):void 0;let p=Py({from:h?.address,to:d,value:void 0!==l&&`${xy(l)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:i,gasPrice:void 0!==s&&`${ky(s)} gwei`,maxFeePerGas:void 0!==o&&`${ky(o)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${ky(c)} gwei`,nonce:u});f&&(p+=`\n${function(t){return t.reduce((t,{address:e,...n})=>{let r=`${t} ${e}:\n`;return n.nonce&&(r+=` nonce: ${n.nonce}\n`),n.balance&&(r+=` balance: ${n.balance}\n`),n.code&&(r+=` code: ${n.code}\n`),n.state&&(r+=" state:\n",r+=Ey(n.state)),n.stateDiff&&(r+=" stateDiff:\n",r+=Ey(n.stateDiff)),r}," State Override:\n").slice(0,-1)}(f)}`),super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",p].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class Ry extends hp{constructor(t,{abi:e,args:n,contractAddress:r,docsPath:a,functionName:i,sender:s}){const o=qm({abi:e,args:n,name:i}),c=o?gy({abiItem:o,args:n,includeFunctionName:!1,includeName:!1}):void 0,u=Py({address:r&&r,function:o?sp(o,{includeName:!0}):void 0,args:c&&"()"!==c&&`${[...Array(i?.length??0).keys()].map(()=>" ").join("")}${c}`,sender:s});super(t.shortMessage||`An unknown error occurred while executing the contract function "${i}".`,{cause:t,docsPath:a,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],u&&"Contract Call:",u].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=e,this.args=n,this.cause=t,this.contractAddress=r,this.functionName=i,this.sender=s}}class Uy extends hp{constructor({abi:t,data:e,functionName:n,message:r}){let a,i,s,o,c;if(e&&"0x"!==e)try{i=my({abi:t,data:e});const{abiItem:n,errorName:r,args:a}=i;if("Error"===r)o=a[0];else if("Panic"===r){const[t]=a;o=Xm[t]}else{const t=n?sp(n,{includeName:!0}):void 0,e=n&&a?gy({abiItem:n,args:a,includeFunctionName:!1,includeName:!1}):void 0;s=[t?`Error: ${t}`:"",e&&"()"!==e?` ${[...Array(r?.length??0).keys()].map(()=>" ").join("")}${e}`:""]}}catch(t){a=t}else r&&(o=r);a instanceof Ip&&(c=a.signature,s=[`Unable to decode signature "${c}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${c}.`]),super(o&&"execution reverted"!==o||c?[`The contract function "${n}" reverted with the following ${c?"signature":"reason"}:`,o||c].join("\n"):`The contract function "${n}" reverted.`,{cause:a,metaMessages:s,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=i,this.raw=e,this.reason=o,this.signature=c}}class Ly extends hp{constructor({functionName:t}){super(`The contract function "${t}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${t}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class zy extends hp{constructor({factory:t}){super("Deployment for counterfactual contract call failed"+(t?` for factory "${t}".`:""),{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class Fy extends hp{constructor({data:t,message:e}){super(e||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}class Dy extends hp{constructor({body:t,cause:e,details:n,headers:r,status:a,url:i}){super("HTTP request failed.",{cause:e,details:n,metaMessages:[a&&`Status: ${a}`,`URL: ${i}`,t&&`Request body: ${yy(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=r,this.status=a,this.url=i}}class qy extends hp{constructor({body:t,error:e,url:n}){super("RPC Request failed.",{cause:e,details:e.message,metaMessages:[`URL: ${n}`,`Request body: ${yy(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e.code,this.data=e.data}}class Gy extends hp{constructor({body:t,url:e}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${e}`,`Request body: ${yy(t)}`],name:"TimeoutError"})}}class Ky extends hp{constructor(t,{code:e,docsPath:n,metaMessages:r,name:a,shortMessage:i}){super(i,{cause:t,docsPath:n,metaMessages:r||t?.metaMessages,name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||t.name,this.code=t instanceof qy?t.code:e??-1}}class Vy extends Ky{constructor(t,e){super(t,e),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e.data}}class Zy extends Ky{constructor(t){super(t,{code:Zy.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(Zy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class Hy extends Ky{constructor(t){super(t,{code:Hy.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(Hy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class Wy extends Ky{constructor(t,{method:e}={}){super(t,{code:Wy.code,name:"MethodNotFoundRpcError",shortMessage:`The method${e?` "${e}"`:""} does not exist / is not available.`})}}Object.defineProperty(Wy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Jy extends Ky{constructor(t){super(t,{code:Jy.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join("\n")})}}Object.defineProperty(Jy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Yy extends Ky{constructor(t){super(t,{code:Yy.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(Yy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class $y extends Ky{constructor(t){super(t,{code:$y.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join("\n")})}}Object.defineProperty($y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class Qy extends Ky{constructor(t){super(t,{code:Qy.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(Qy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Xy extends Ky{constructor(t){super(t,{code:Xy.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(Xy,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class tg extends Ky{constructor(t){super(t,{code:tg.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(tg,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class eg extends Ky{constructor(t,{method:e}={}){super(t,{code:eg.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${e?` "${e}"`:""} is not supported.`})}}Object.defineProperty(eg,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class ng extends Ky{constructor(t){super(t,{code:ng.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(ng,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class rg extends Ky{constructor(t){super(t,{code:rg.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(rg,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class ag extends Vy{constructor(t){super(t,{code:ag.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(ag,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class ig extends Vy{constructor(t){super(t,{code:ig.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(ig,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class sg extends Vy{constructor(t,{method:e}={}){super(t,{code:sg.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${e?` " ${e}"`:""}.`})}}Object.defineProperty(sg,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class og extends Vy{constructor(t){super(t,{code:og.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(og,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class cg extends Vy{constructor(t){super(t,{code:cg.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(cg,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class ug extends Vy{constructor(t){super(t,{code:ug.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(ug,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class dg extends Vy{constructor(t){super(t,{code:dg.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(dg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class lg extends Vy{constructor(t){super(t,{code:lg.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(lg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class fg extends Vy{constructor(t){super(t,{code:fg.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(fg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class hg extends Vy{constructor(t){super(t,{code:hg.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(hg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class pg extends Vy{constructor(t){super(t,{code:pg.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(pg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class mg extends Vy{constructor(t){super(t,{code:mg.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(mg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class yg extends Vy{constructor(t){super(t,{code:yg.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(yg,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class gg extends Ky{constructor(t){super(t,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}const bg=3;function vg(t,{abi:e,address:n,args:r,docsPath:a,functionName:i,sender:s}){const o=t instanceof Fy?t:t instanceof hp?t.walk(t=>"data"in t)||t.walk():{},{code:c,data:u,details:d,message:l,shortMessage:f}=o,h=t instanceof bp?new Ly({functionName:i}):[bg,Yy.code].includes(c)&&(u||d||l||f)?new Uy({abi:e,data:"object"==typeof u?u.data:u,functionName:i,message:o instanceof qy?d:f??l}):t;return new Ry(h,{abi:e,args:r,contractAddress:n,docsPath:a,functionName:i,sender:s})}function wg(t){if(0===t||1===t)return t;if(27===t)return 0;if(28===t)return 1;throw new Error("Invalid yParityOrV value")}async function xg({hash:t,signature:e}){return function(t){return km(`0x${pm(`0x${t.substring(4)}`).substring(26)}`)}(await async function({hash:t,signature:e}){const n=cp(t)?t:nm(t),{secp256k1:r}=await Promise.resolve().then(function(){return lc}),a=(()=>{if("object"==typeof e&&"r"in e&&"s"in e){const{r:t,s:n,v:a,yParity:i}=e,s=wg(Number(i??a));return new r.Signature(Qp(t),Qp(n)).addRecoveryBit(s)}const t=cp(e)?e:nm(e);if(65!==up(t))throw new Error("invalid signature length");const n=wg(Xp(`0x${t.slice(130)}`));return r.Signature.fromCompact(t.substring(2,130)).addRecoveryBit(n)})();return`0x${a.recoverPublicKey(n.substring(2)).toHex(!1)}`}({hash:t,signature:e}))}function kg(t,e="hex"){const n=Ag(t),r=sy(new Uint8Array(n.length));return n.encode(r),"hex"===e?am(r.bytes):r.bytes}function Ag(t){return Array.isArray(t)?function(t){const e=t.reduce((t,e)=>t+e.length,0),n=Ig(e);return{length:e<=55?1+e:1+n+e,encode(r){e<=55?r.pushByte(192+e):(r.pushByte(247+n),1===n?r.pushUint8(e):2===n?r.pushUint16(e):3===n?r.pushUint24(e):r.pushUint32(e));for(const{encode:e}of t)e(r)}}}(t.map(t=>Ag(t))):function(t){const e="string"==typeof t?fm(t):t,n=Ig(e.length),r=1===e.length&&e[0]<128?1:e.length<=55?1+e.length:1+n+e.length;return{length:r,encode(t){1===e.length&&e[0]<128?t.pushBytes(e):e.length<=55?(t.pushByte(128+e.length),t.pushBytes(e)):(t.pushByte(183+n),1===n?t.pushUint8(e.length):2===n?t.pushUint16(e.length):3===n?t.pushUint24(e.length):t.pushUint32(e.length),t.pushBytes(e))}}}(t)}function Ig(t){if(t<256)return 1;if(t<65536)return 2;if(t<2**24)return 3;if(t<2**32)return 4;throw new hp("Length is too large.")}function Eg(t){const{chainId:e,nonce:n,to:r}=t,a=t.contractAddress??t.address,i=pm(_m(["0x05",kg([e?im(e):"0x",a,n?im(n):"0x"])]));return"bytes"===r?fm(i):i}async function Pg(t){const{authorization:e,signature:n}=t;return xg({hash:Eg(e),signature:n??e})}class Sg extends hp{constructor(t,{account:e,docsPath:n,chain:r,data:a,gas:i,gasPrice:s,maxFeePerGas:o,maxPriorityFeePerGas:c,nonce:u,to:d,value:l}){const f=Py({from:e?.address,to:d,value:void 0!==l&&`${xy(l)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:i,gasPrice:void 0!==s&&`${ky(s)} gwei`,maxFeePerGas:void 0!==o&&`${ky(o)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${ky(c)} gwei`,nonce:u});super(t.shortMessage,{cause:t,docsPath:n,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Estimate Gas Arguments:",f].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}let _g=class extends hp{constructor({cause:t,message:e}={}){const n=e?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${n?`with reason: ${n}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}};Object.defineProperty(_g,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(_g,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class Og extends hp{constructor({cause:t,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${ky(e)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}}Object.defineProperty(Og,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class Tg extends hp{constructor({cause:t,maxFeePerGas:e}={}){super(`The fee cap (\`maxFeePerGas\`${e?` = ${ky(e)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}}Object.defineProperty(Tg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class Bg extends hp{constructor({cause:t,nonce:e}={}){super(`Nonce provided for the transaction ${e?`(${e}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}}Object.defineProperty(Bg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class Mg extends hp{constructor({cause:t,nonce:e}={}){super([`Nonce provided for the transaction ${e?`(${e}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:t,name:"NonceTooLowError"})}}Object.defineProperty(Mg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Cg extends hp{constructor({cause:t,nonce:e}={}){super(`Nonce provided for the transaction ${e?`(${e}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}}Object.defineProperty(Cg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class Ng extends hp{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:t,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(Ng,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class jg extends hp{constructor({cause:t,gas:e}={}){super(`The amount of gas ${e?`(${e}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(jg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class Rg extends hp{constructor({cause:t,gas:e}={}){super(`The amount of gas ${e?`(${e}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(Rg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class Ug extends hp{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(Ug,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class Lg extends hp{constructor({cause:t,maxPriorityFeePerGas:e,maxFeePerGas:n}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${e?` = ${ky(e)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${ky(n)} gwei`:""}).`].join("\n"),{cause:t,name:"TipAboveFeeCapError"})}}Object.defineProperty(Lg,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class zg extends hp{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t,name:"UnknownNodeError"})}}function Fg(t,e){const n=(t.details||"").toLowerCase(),r=t instanceof hp?t.walk(t=>t?.code===_g.code):t;return r instanceof hp?new _g({cause:t,message:r.details}):_g.nodeMessage.test(n)?new _g({cause:t,message:t.details}):Og.nodeMessage.test(n)?new Og({cause:t,maxFeePerGas:e?.maxFeePerGas}):Tg.nodeMessage.test(n)?new Tg({cause:t,maxFeePerGas:e?.maxFeePerGas}):Bg.nodeMessage.test(n)?new Bg({cause:t,nonce:e?.nonce}):Mg.nodeMessage.test(n)?new Mg({cause:t,nonce:e?.nonce}):Cg.nodeMessage.test(n)?new Cg({cause:t,nonce:e?.nonce}):Ng.nodeMessage.test(n)?new Ng({cause:t}):jg.nodeMessage.test(n)?new jg({cause:t,gas:e?.gas}):Rg.nodeMessage.test(n)?new Rg({cause:t,gas:e?.gas}):Ug.nodeMessage.test(n)?new Ug({cause:t}):Lg.nodeMessage.test(n)?new Lg({cause:t,maxFeePerGas:e?.maxFeePerGas,maxPriorityFeePerGas:e?.maxPriorityFeePerGas}):new zg({cause:t})}function Dg(t,{format:e}){if(!e)return{};const n={};return function e(r){const a=Object.keys(r);for(const i of a)i in t&&(n[i]=t[i]),r[i]&&"object"==typeof r[i]&&!Array.isArray(r[i])&&e(r[i])}(e(t||{})),n}function qg(t,e){return({exclude:n,format:r})=>({exclude:n,format:(t,a)=>{const i=e(t,a);if(n)for(const t of n)delete i[t];return{...i,...r(t,a)}},type:t})}const Gg={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function Kg(t,e){const n={};return void 0!==t.authorizationList&&(n.authorizationList=t.authorizationList.map(t=>({address:t.address,r:t.r?im(BigInt(t.r)):t.r,s:t.s?im(BigInt(t.s)):t.s,chainId:im(t.chainId),nonce:im(t.nonce),...void 0!==t.yParity?{yParity:im(t.yParity)}:{},...void 0!==t.v&&void 0===t.yParity?{v:im(t.v)}:{}}))),void 0!==t.accessList&&(n.accessList=t.accessList),void 0!==t.blobVersionedHashes&&(n.blobVersionedHashes=t.blobVersionedHashes),void 0!==t.blobs&&("string"!=typeof t.blobs[0]?n.blobs=t.blobs.map(t=>am(t)):n.blobs=t.blobs),void 0!==t.data&&(n.data=t.data),t.account&&(n.from=t.account.address),void 0!==t.from&&(n.from=t.from),void 0!==t.gas&&(n.gas=im(t.gas)),void 0!==t.gasPrice&&(n.gasPrice=im(t.gasPrice)),void 0!==t.maxFeePerBlobGas&&(n.maxFeePerBlobGas=im(t.maxFeePerBlobGas)),void 0!==t.maxFeePerGas&&(n.maxFeePerGas=im(t.maxFeePerGas)),void 0!==t.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=im(t.maxPriorityFeePerGas)),void 0!==t.nonce&&(n.nonce=im(t.nonce)),void 0!==t.to&&(n.to=t.to),void 0!==t.type&&(n.type=Gg[t.type]),void 0!==t.value&&(n.value=im(t.value)),n}function Vg(t){if(t&&0!==t.length)return t.reduce((t,{slot:e,value:n})=>{if(66!==e.length)throw new Gp({size:e.length,targetSize:66,type:"hex"});if(66!==n.length)throw new Gp({size:n.length,targetSize:66,type:"hex"});return t[e]=n,t},{})}function Zg(t){const{balance:e,nonce:n,state:r,stateDiff:a,code:i}=t,s={};if(void 0!==i&&(s.code=i),void 0!==e&&(s.balance=im(e)),void 0!==n&&(s.nonce=im(n)),void 0!==r&&(s.state=Vg(r)),void 0!==a){if(s.state)throw new Iy;s.stateDiff=Vg(a)}return s}function Hg(t){if(!t)return;const e={};for(const{address:n,...r}of t){if(!Pm(n,{strict:!1}))throw new vm({address:n});if(e[n])throw new Ay({address:n});e[n]=Zg(r)}return e}const Wg=2n**256n-1n;function Jg(t){const{account:e,gasPrice:n,maxFeePerGas:r,maxPriorityFeePerGas:a,to:i}=t,s=e?Ym(e):void 0;if(s&&!Pm(s.address))throw new vm({address:s.address});if(i&&!Pm(i))throw new vm({address:i});if(void 0!==n&&(void 0!==r||void 0!==a))throw new Sy;if(r&&r>Wg)throw new Og({maxFeePerGas:r});if(a&&r&&a>r)throw new Lg({maxFeePerGas:r,maxPriorityFeePerGas:a})}class Yg extends hp{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class $g extends hp{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class Qg extends hp{constructor({maxPriorityFeePerGas:t}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${ky(t)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}class Xg extends hp{constructor({blockHash:t,blockNumber:e}){let n="Block";t&&(n=`Block at hash "${t}"`),e&&(n=`Block at number "${e}"`),super(`${n} could not be found.`,{name:"BlockNotFoundError"})}}const tb={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function eb(t,e){const n={...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,chainId:t.chainId?Xp(t.chainId):void 0,gas:t.gas?BigInt(t.gas):void 0,gasPrice:t.gasPrice?BigInt(t.gasPrice):void 0,maxFeePerBlobGas:t.maxFeePerBlobGas?BigInt(t.maxFeePerBlobGas):void 0,maxFeePerGas:t.maxFeePerGas?BigInt(t.maxFeePerGas):void 0,maxPriorityFeePerGas:t.maxPriorityFeePerGas?BigInt(t.maxPriorityFeePerGas):void 0,nonce:t.nonce?Xp(t.nonce):void 0,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,type:t.type?tb[t.type]:void 0,typeHex:t.type?t.type:void 0,value:t.value?BigInt(t.value):void 0,v:t.v?BigInt(t.v):void 0};return t.authorizationList&&(n.authorizationList=t.authorizationList.map(t=>({address:t.address,chainId:Number(t.chainId),nonce:Number(t.nonce),r:t.r,s:t.s,yParity:Number(t.yParity)}))),n.yParity=(()=>{if(t.yParity)return Number(t.yParity);if("bigint"==typeof n.v){if(0n===n.v||27n===n.v)return 0;if(1n===n.v||28n===n.v)return 1;if(n.v>=35n)return n.v%2n==0n?1:0}})(),"legacy"===n.type&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),"eip2930"===n.type&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),"eip1559"===n.type&&delete n.maxFeePerBlobGas,n}const nb=qg("transaction",eb);function rb(t,e){const n=(t.transactions??[]).map(t=>"string"==typeof t?t:eb(t));return{...t,baseFeePerGas:t.baseFeePerGas?BigInt(t.baseFeePerGas):null,blobGasUsed:t.blobGasUsed?BigInt(t.blobGasUsed):void 0,difficulty:t.difficulty?BigInt(t.difficulty):void 0,excessBlobGas:t.excessBlobGas?BigInt(t.excessBlobGas):void 0,gasLimit:t.gasLimit?BigInt(t.gasLimit):void 0,gasUsed:t.gasUsed?BigInt(t.gasUsed):void 0,hash:t.hash?t.hash:null,logsBloom:t.logsBloom?t.logsBloom:null,nonce:t.nonce?t.nonce:null,number:t.number?BigInt(t.number):null,size:t.size?BigInt(t.size):void 0,timestamp:t.timestamp?BigInt(t.timestamp):void 0,transactions:n,totalDifficulty:t.totalDifficulty?BigInt(t.totalDifficulty):null}}const ab=qg("block",rb);async function ib(t,{blockHash:e,blockNumber:n,blockTag:r=t.experimental_blockTag??"latest",includeTransactions:a}={}){const i=a??!1,s=void 0!==n?im(n):void 0;let o=null;if(o=e?await t.request({method:"eth_getBlockByHash",params:[e,i]},{dedupe:!0}):await t.request({method:"eth_getBlockByNumber",params:[s||r,i]},{dedupe:Boolean(s)}),!o)throw new Xg({blockHash:e,blockNumber:n});return(t.chain?.formatters?.block?.format||rb)(o,"getBlock")}async function sb(t){const e=await t.request({method:"eth_gasPrice"});return BigInt(e)}async function ob(t,e){const{block:n,chain:r=t.chain,request:a}=e||{};try{const e=r?.fees?.maxPriorityFeePerGas??r?.fees?.defaultPriorityFee;if("function"==typeof e){const r=n||await ip(t,ib,"getBlock")({}),i=await e({block:r,client:t,request:a});if(null===i)throw new Error;return i}if(void 0!==e)return e;return Qp(await t.request({method:"eth_maxPriorityFeePerGas"}))}catch{const[e,r]=await Promise.all([n?Promise.resolve(n):ip(t,ib,"getBlock")({}),ip(t,sb,"getGasPrice")({})]);if("bigint"!=typeof e.baseFeePerGas)throw new $g;const a=r-e.baseFeePerGas;return a<0n?0n:a}}async function cb(t,e){return ub(t,e)}async function ub(t,e){const{block:n,chain:r=t.chain,request:a,type:i="eip1559"}=e||{},s=await(async()=>"function"==typeof r?.fees?.baseFeeMultiplier?r.fees.baseFeeMultiplier({block:n,client:t,request:a}):r?.fees?.baseFeeMultiplier??1.2)();if(s<1)throw new Yg;const o=10**(s.toString().split(".")[1]?.length??0),c=t=>t*BigInt(Math.ceil(s*o))/BigInt(o),u=n||await ip(t,ib,"getBlock")({});if("function"==typeof r?.fees?.estimateFeesPerGas){const e=await r.fees.estimateFeesPerGas({block:n,client:t,multiply:c,request:a,type:i});if(null!==e)return e}if("eip1559"===i){if("bigint"!=typeof u.baseFeePerGas)throw new $g;const e="bigint"==typeof a?.maxPriorityFeePerGas?a.maxPriorityFeePerGas:await ob(t,{block:u,chain:r,request:a}),n=c(u.baseFeePerGas);return{maxFeePerGas:a?.maxFeePerGas??n+e,maxPriorityFeePerGas:e}}return{gasPrice:a?.gasPrice??c(await ip(t,sb,"getGasPrice")({}))}}async function db(t,{address:e,blockTag:n="latest",blockNumber:r}){return Xp(await t.request({method:"eth_getTransactionCount",params:[e,"bigint"==typeof r?im(r):n]},{dedupe:Boolean(r)}))}function lb(t){const{kzg:e}=t,n=t.to??("string"==typeof t.blobs[0]?"hex":"bytes"),r="string"==typeof t.blobs[0]?t.blobs.map(t=>fm(t)):t.blobs,a=[];for(const t of r)a.push(Uint8Array.from(e.blobToKzgCommitment(t)));return"bytes"===n?a:a.map(t=>am(t))}function fb(t){const{kzg:e}=t,n=t.to??("string"==typeof t.blobs[0]?"hex":"bytes"),r="string"==typeof t.blobs[0]?t.blobs.map(t=>fm(t)):t.blobs,a="string"==typeof t.commitments[0]?t.commitments.map(t=>fm(t)):t.commitments,i=[];for(let t=0;t<r.length;t++){const n=r[t],s=a[t];i.push(Uint8Array.from(e.computeBlobKzgProof(n,s)))}return"bytes"===n?i:i.map(t=>am(t))}function hb(t){const{commitment:e,version:n=1}=t,r=t.to??("string"==typeof e?"hex":"bytes"),a=mf(cp(i=e,{strict:!1})?um(i):i);var i;return a.set([n],0),"bytes"===r?a:am(a)}function pb(t){const{commitments:e,version:n}=t,r=t.to??("string"==typeof e[0]?"hex":"bytes"),a=[];for(const t of e)a.push(hb({commitment:t,to:r,version:n}));return a}const mb=4096,yb=131072,gb=761855;class bb extends hp{constructor({maxSize:t,size:e}){super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${e} bytes`],name:"BlobSizeTooLargeError"})}}class vb extends hp{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class wb extends hp{constructor({hash:t,size:e}){super(`Versioned hash "${t}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${e}`],name:"InvalidVersionedHashSizeError"})}}class xb extends hp{constructor({hash:t,version:e}){super(`Versioned hash "${t}" version is invalid.`,{metaMessages:["Expected: 1",`Received: ${e}`],name:"InvalidVersionedHashVersionError"})}}function kb(t){const{data:e,kzg:n,to:r}=t,a=t.blobs??function(t){const e=t.to??("string"==typeof t.data?"hex":"bytes"),n="string"==typeof t.data?fm(t.data):t.data,r=up(n);if(!r)throw new vb;if(r>gb)throw new bb({maxSize:gb,size:r});const a=[];let i=!0,s=0;for(;i;){const t=sy(new Uint8Array(yb));let e=0;for(;e<mb;){const r=n.slice(s,s+31);if(t.pushByte(0),t.pushBytes(r),r.length<31){t.pushByte(128),i=!1;break}e++,s+=31}a.push(t)}return"bytes"===e?a.map(t=>t.bytes):a.map(t=>am(t.bytes))}({data:e,to:r}),i=t.commitments??lb({blobs:a,kzg:n,to:r}),s=t.proofs??fb({blobs:a,commitments:i,kzg:n,to:r}),o=[];for(let t=0;t<a.length;t++)o.push({blob:a[t],commitment:i[t],proof:s[t]});return o}function Ab(t){if(t.type)return t.type;if(void 0!==t.authorizationList)return"eip7702";if(void 0!==t.blobs||void 0!==t.blobVersionedHashes||void 0!==t.maxFeePerBlobGas||void 0!==t.sidecars)return"eip4844";if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)return"eip1559";if(void 0!==t.gasPrice)return void 0!==t.accessList?"eip2930":"legacy";throw new Oy({transaction:t})}async function Ib(t){return Xp(await t.request({method:"eth_chainId"},{dedupe:!0}))}const Eb=["blobVersionedHashes","chainId","fees","gas","nonce","type"],Pb=new Map;async function Sb(t,e){const{account:n=t.account,blobs:r,chain:a,gas:i,kzg:s,nonce:o,nonceManager:c,parameters:u=Eb,type:d}=e,l=n?Ym(n):n,f={...e,...l?{from:l?.address}:{}};let h,p;async function m(){return h||(h=await ip(t,ib,"getBlock")({blockTag:"latest"}),h)}async function y(){if(p)return p;if(a)return a.id;if(void 0!==e.chainId)return e.chainId;const n=await ip(t,Ib,"getChainId")({});return p=n,p}if(u.includes("nonce")&&void 0===o&&l)if(c){const e=await y();f.nonce=await c.consume({address:l.address,chainId:e,client:t})}else f.nonce=await ip(t,db,"getTransactionCount")({address:l.address,blockTag:"pending"});if((u.includes("blobVersionedHashes")||u.includes("sidecars"))&&r&&s){const t=lb({blobs:r,kzg:s});if(u.includes("blobVersionedHashes")){const e=pb({commitments:t,to:"hex"});f.blobVersionedHashes=e}if(u.includes("sidecars")){const e=kb({blobs:r,commitments:t,proofs:fb({blobs:r,commitments:t,kzg:s}),to:"hex"});f.sidecars=e}}if(u.includes("chainId")&&(f.chainId=await y()),(u.includes("fees")||u.includes("type"))&&void 0===d)try{f.type=Ab(f)}catch{let e=Pb.get(t.uid);if(void 0===e){const n=await m();e="bigint"==typeof n?.baseFeePerGas,Pb.set(t.uid,e)}f.type=e?"eip1559":"legacy"}if(u.includes("fees"))if("legacy"!==f.type&&"eip2930"!==f.type){if(void 0===f.maxFeePerGas||void 0===f.maxPriorityFeePerGas){const n=await m(),{maxFeePerGas:r,maxPriorityFeePerGas:i}=await ub(t,{block:n,chain:a,request:f});if(void 0===e.maxPriorityFeePerGas&&e.maxFeePerGas&&e.maxFeePerGas<i)throw new Qg({maxPriorityFeePerGas:i});f.maxPriorityFeePerGas=i,f.maxFeePerGas=r}}else{if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)throw new $g;if(void 0===e.gasPrice){const e=await m(),{gasPrice:n}=await ub(t,{block:e,chain:a,request:f,type:"legacy"});f.gasPrice=n}}return u.includes("gas")&&void 0===i&&(f.gas=await ip(t,_b,"estimateGas")({...f,account:l,prepare:"local"===l?.type?[]:["blobVersionedHashes"]})),Jg(f),delete f.parameters,f}async function _b(t,e){const{account:n=t.account,prepare:r=!0}=e,a=n?Ym(n):void 0,i=Array.isArray(r)?r:"local"!==a?.type?["blobVersionedHashes"]:void 0;try{const{accessList:n,authorizationList:s,blobs:o,blobVersionedHashes:c,blockNumber:u,blockTag:d,data:l,gas:f,gasPrice:h,maxFeePerBlobGas:p,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:g,value:b,stateOverride:v,...w}=r?await Sb(t,{...e,parameters:i}):e,x=("bigint"==typeof u?im(u):void 0)||d,k=Hg(v),A=await(async()=>w.to?w.to:s&&s.length>0?await Pg({authorization:s[0]}).catch(()=>{throw new hp("`to` is required. Could not infer from `authorizationList`")}):void 0)();Jg(e);const I=t.chain?.formatters?.transactionRequest?.format,E=(I||Kg)({...Dg(w,{format:I}),account:a,accessList:n,authorizationList:s,blobs:o,blobVersionedHashes:c,data:l,gas:f,gasPrice:h,maxFeePerBlobGas:p,maxFeePerGas:m,maxPriorityFeePerGas:y,nonce:g,to:A,value:b},"estimateGas");return BigInt(await t.request({method:"eth_estimateGas",params:k?[E,x??t.experimental_blockTag??"latest",k]:x?[E,x]:[E]}))}catch(n){throw function(t,{docsPath:e,...n}){const r=(()=>{const e=Fg(t,n);return e instanceof zg?t:e})();return new Sg(r,{docsPath:e,...n})}(n,{...e,account:a,chain:t.chain})}}function Ob(t,e){if(!Pm(t,{strict:!1}))throw new vm({address:t});if(!Pm(e,{strict:!1}))throw new vm({address:e});return t.toLowerCase()===e.toLowerCase()}const Tb="/docs/contract/decodeEventLog";function Bb(t){const{abi:e,data:n,strict:r,topics:a}=t,i=r??!0,[s,...o]=a;if(!s)throw new Ep({docsPath:Tb});const c=e.find(t=>"event"===t.type&&s===bm(sp(t)));if(!c||!("name"in c)||"event"!==c.type)throw new Pp(s,{docsPath:Tb});const{name:u,inputs:d}=c,l=d?.some(t=>!("name"in t&&t.name)),f=l?[]:{},h=d.map((t,e)=>[t,e]).filter(([t])=>"indexed"in t&&t.indexed);for(let t=0;t<h.length;t++){const[e,n]=h[t],r=o[t];if(!r)throw new Np({abiItem:c,param:e});f[l?n:e.name||n]=Mb({param:e,value:r})}const p=d.filter(t=>!("indexed"in t&&t.indexed));if(p.length>0)if(n&&"0x"!==n)try{const t=dy(p,n);if(t)if(l)for(let e=0;e<d.length;e++)f[e]=f[e]??t.shift();else for(let e=0;e<p.length;e++)f[p[e].name]=t[e]}catch(t){if(i){if(t instanceof gp||t instanceof ry)throw new Cp({abiItem:c,data:n,params:p,size:up(n)});throw t}}else if(i)throw new Cp({abiItem:c,data:"0x",params:p,size:0});return{eventName:u,args:Object.values(f).length>0?f:void 0}}function Mb({param:t,value:e}){if("string"===t.type||"bytes"===t.type||"tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))return e;return(dy([t],e)||[])[0]}function Cb(t){const{abi:e,args:n,logs:r,strict:a=!0}=t,i=(()=>{if(t.eventName)return Array.isArray(t.eventName)?t.eventName:[t.eventName]})();return r.map(t=>{try{const r=e.find(e=>"event"===e.type&&t.topics[0]===bm(e));if(!r)return null;const s=Bb({...t,abi:[r],strict:a});return i&&!i.includes(s.eventName)?null:function(t){const{args:e,inputs:n,matchArgs:r}=t;if(!r)return!0;if(!e)return!1;function a(t,e,n){try{return"address"===t.type?Ob(e,n):"string"===t.type||"bytes"===t.type?pm(um(e))===n:e===n}catch{return!1}}if(Array.isArray(e)&&Array.isArray(r))return r.every((t,r)=>{if(null==t)return!0;const i=n[r];if(!i)return!1;return(Array.isArray(t)?t:[t]).some(t=>a(i,t,e[r]))});return"object"==typeof e&&!Array.isArray(e)&&"object"==typeof r&&!Array.isArray(r)&&Object.entries(r).every(([t,r])=>{if(null==r)return!0;const i=n.find(e=>e.name===t);if(!i)return!1;return(Array.isArray(r)?r:[r]).some(n=>a(i,n,e[t]))})}({args:s.args,inputs:r.inputs,matchArgs:n})?{...s,...t}:null}catch(e){let n,r;if(e instanceof Pp)return null;if(e instanceof Cp||e instanceof Np){if(a)return null;n=e.abiItem.name,r=e.abiItem.inputs?.some(t=>!("name"in t&&t.name))}return{...t,args:r?[]:{},eventName:n}}}).filter(Boolean)}function Nb(t,{args:e,eventName:n}={}){return{...t,blockHash:t.blockHash?t.blockHash:null,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,logIndex:t.logIndex?Number(t.logIndex):null,transactionHash:t.transactionHash?t.transactionHash:null,transactionIndex:t.transactionIndex?Number(t.transactionIndex):null,...n?{args:e,eventName:n}:{}}}async function jb(t,{address:e,blockHash:n,fromBlock:r,toBlock:a,event:i,events:s,args:o,strict:c}={}){const u=c??!1,d=s??(i?[i]:void 0);let l,f=[];if(d){const t=d.flatMap(t=>Zm({abi:[t],eventName:t.name,args:s?void 0:o}));f=[t],i&&(f=f[0])}l=n?await t.request({method:"eth_getLogs",params:[{address:e,topics:f,blockHash:n}]}):await t.request({method:"eth_getLogs",params:[{address:e,topics:f,fromBlock:"bigint"==typeof r?im(r):r,toBlock:"bigint"==typeof a?im(a):a}]});const h=l.map(t=>Nb(t));return d?Cb({abi:d,args:o,logs:h,strict:u}):h}async function Rb(t,e){const{abi:n,address:r,args:a,blockHash:i,eventName:s,fromBlock:o,toBlock:c,strict:u}=e,d=s?qm({abi:n,name:s}):void 0,l=d?void 0:n.filter(t=>"event"===t.type);return ip(t,jb,"getLogs")({address:r,args:a,blockHash:i,event:d,events:l,fromBlock:o,toBlock:c,strict:u})}const Ub="/docs/contract/decodeFunctionResult";function Lb(t){const{abi:e,args:n,functionName:r,data:a}=t;let i=e[0];if(r){const t=qm({abi:e,args:n,name:r});if(!t)throw new _p(r,{docsPath:Ub});i=t}if("function"!==i.type)throw new _p(void 0,{docsPath:Ub});if(!i.outputs)throw new Op(i.name,{docsPath:Ub});const s=dy(i.outputs,a);return s&&s.length>1?s:s&&1===s.length?s[0]:void 0}function zb(t){return{address:t.address,amount:yl(t.amount),index:yl(t.index),validatorIndex:yl(t.validatorIndex)}}function Fb(t){return{..."bigint"==typeof t.baseFeePerGas&&{baseFeePerGas:yl(t.baseFeePerGas)},..."bigint"==typeof t.blobBaseFee&&{blobBaseFee:yl(t.blobBaseFee)},..."string"==typeof t.feeRecipient&&{feeRecipient:t.feeRecipient},..."bigint"==typeof t.gasLimit&&{gasLimit:yl(t.gasLimit)},..."bigint"==typeof t.number&&{number:yl(t.number)},..."bigint"==typeof t.prevRandao&&{prevRandao:yl(t.prevRandao)},..."bigint"==typeof t.time&&{time:yl(t.time)},...t.withdrawals&&{withdrawals:t.withdrawals.map(zb)}}}const Db=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getCurrentBlockTimestamp",outputs:[{internalType:"uint256",name:"timestamp",type:"uint256"}],stateMutability:"view",type:"function"}],qb=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],Gb=[{inputs:[{name:"dns",type:"bytes"}],name:"DNSDecodingFailed",type:"error"},{inputs:[{name:"ens",type:"string"}],name:"DNSEncodingFailed",type:"error"},{inputs:[],name:"EmptyAddress",type:"error"},{inputs:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"HttpError",type:"error"},{inputs:[],name:"InvalidBatchGatewayResponse",type:"error"},{inputs:[{name:"errorData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{name:"name",type:"bytes"},{name:"resolver",type:"address"}],name:"ResolverNotContract",type:"error"},{inputs:[{name:"name",type:"bytes"}],name:"ResolverNotFound",type:"error"},{inputs:[{name:"primary",type:"string"},{name:"primaryAddress",type:"bytes"}],name:"ReverseAddressMismatch",type:"error"},{inputs:[{internalType:"bytes4",name:"selector",type:"bytes4"}],name:"UnsupportedResolverProfile",type:"error"}],Kb=[...Gb,{name:"resolveWithGateways",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],Vb=[...Gb,{name:"reverseWithGateways",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"uint256",name:"coinType"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolver"},{type:"address",name:"reverseResolver"}]}],Zb=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],Hb=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],Wb=[{name:"isValidSignature",type:"function",stateMutability:"view",inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],outputs:[{name:"",type:"bytes4"}]}],Jb=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}],Yb="0x82ad56cb",$b="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",Qb="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",Xb="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572",tv="0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033";class ev extends hp{constructor({blockNumber:t,chain:e,contract:n}){super(`Chain "${e.name}" does not support contract "${n.name}".`,{metaMessages:["This could be due to any of the following:",...t&&n.blockCreated&&n.blockCreated>t?[`- The contract "${n.name}" was not deployed until block ${n.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${n.name}" configured.`]],name:"ChainDoesNotSupportContract"})}}class nv extends hp{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class rv extends hp{constructor({chainId:t}){super("number"==typeof t?`Chain ID "${t}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}const av="/docs/contract/encodeDeployData";function iv(t){const{abi:e,args:n,bytecode:r}=t;if(!n||0===n.length)return r;const a=e.find(t=>"type"in t&&"constructor"===t.type);if(!a)throw new mp({docsPath:av});if(!("inputs"in a))throw new yp({docsPath:av});if(!a.inputs||0===a.inputs.length)throw new yp({docsPath:av});return _m([r,Um(a.inputs,n)])}function sv({blockNumber:t,chain:e,contract:n}){const r=e?.contracts?.[n];if(!r)throw new ev({chain:e,contract:{name:n}});if(t&&r.blockCreated&&r.blockCreated>t)throw new ev({blockNumber:t,chain:e,contract:{name:n,blockCreated:r.blockCreated}});return r.address}function ov(t,{docsPath:e,...n}){const r=(()=>{const e=Fg(t,n);return e instanceof zg?t:e})();return new jy(r,{docsPath:e,...n})}function cv(){let t=()=>{},e=()=>{};return{promise:new Promise((n,r)=>{t=n,e=r}),resolve:t,reject:e}}const uv=new Map;function dv({fn:t,id:e,shouldSplitBatch:n,wait:r=0,sort:a}){const i=async()=>{const e=o();s();const n=e.map(({args:t})=>t);0!==n.length&&t(n).then(t=>{a&&Array.isArray(t)&&t.sort(a);for(let n=0;n<e.length;n++){const{resolve:r}=e[n];r?.([t[n],t])}}).catch(t=>{for(let n=0;n<e.length;n++){const{reject:r}=e[n];r?.(t)}})},s=()=>uv.delete(e),o=()=>uv.get(e)||[],c=t=>uv.set(e,[...o(),t]);return{flush:s,async schedule(t){const{promise:e,resolve:a,reject:s}=cv(),u=n?.([...o().map(({args:t})=>t),t]);u&&i();return o().length>0?(c({args:t,resolve:a,reject:s}),e):(c({args:t,resolve:a,reject:s}),setTimeout(i,r),e)}}}async function lv(t,e){const{account:n=t.account,authorizationList:r,batch:a=Boolean(t.batch?.multicall),blockNumber:i,blockTag:s=t.experimental_blockTag??"latest",accessList:o,blobs:c,blockOverrides:u,code:d,data:l,factory:f,factoryData:h,gas:p,gasPrice:m,maxFeePerBlobGas:y,maxFeePerGas:g,maxPriorityFeePerGas:b,nonce:v,to:w,value:x,stateOverride:k,...A}=e,I=n?Ym(n):void 0;if(d&&(f||h))throw new hp("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(d&&w)throw new hp("Cannot provide both `code` & `to` as parameters.");const E=d&&l,P=f&&h&&w&&l,S=E||P,_=E?fv({code:d,data:l}):P?function(t){const{data:e,factory:n,factoryData:r,to:a}=t;return iv({abi:ap(["constructor(address, bytes, address, bytes)"]),bytecode:Qb,args:[a,e,n,r]})}({data:l,factory:f,factoryData:h,to:w}):l;try{Jg(e);const n=("bigint"==typeof i?im(i):void 0)||s,d=u?Fb(u):void 0,l=Hg(k),f=t.chain?.formatters?.transactionRequest?.format,h=(f||Kg)({...Dg(A,{format:f}),accessList:o,account:I,authorizationList:r,blobs:c,data:_,gas:p,gasPrice:m,maxFeePerBlobGas:y,maxFeePerGas:g,maxPriorityFeePerGas:b,nonce:v,to:S?void 0:w,value:x},"call");if(a&&function({request:t}){const{data:e,to:n,...r}=t;return!!e&&(!e.startsWith(Yb)&&(!!n&&!(Object.values(r).filter(t=>void 0!==t).length>0)))}({request:h})&&!l&&!d)try{return await async function(t,e){const{batchSize:n=1024,deployless:r=!1,wait:a=0}="object"==typeof t.batch?.multicall?t.batch.multicall:{},{blockNumber:i,blockTag:s=t.experimental_blockTag??"latest",data:o,to:c}=e,u=(()=>{if(r)return null;if(e.multicallAddress)return e.multicallAddress;if(t.chain)return sv({blockNumber:i,chain:t.chain,contract:"multicall3"});throw new nv})(),d="bigint"==typeof i?im(i):void 0,l=d||s,{schedule:f}=dv({id:`${t.uid}.${l}`,wait:a,shouldSplitBatch(t){const e=t.reduce((t,{data:e})=>t+(e.length-2),0);return e>2*n},fn:async e=>{const n=e.map(t=>({allowFailure:!0,callData:t.data,target:t.to})),r=Qm({abi:Db,args:[n],functionName:"aggregate3"}),a=await t.request({method:"eth_call",params:[{...null===u?{data:fv({code:tv,data:r})}:{to:u,data:r}},l]});return Lb({abi:Db,args:[n],functionName:"aggregate3",data:a||"0x"})}}),[{returnData:h,success:p}]=await f({data:o,to:c});if(!p)throw new Fy({data:h});return"0x"===h?{data:void 0}:{data:h}}(t,{...h,blockNumber:i,blockTag:s})}catch(t){if(!(t instanceof nv||t instanceof ev))throw t}const E=(()=>{const t=[h,n];return l&&d?[...t,l,d]:l?[...t,l]:d?[...t,{},d]:t})(),P=await t.request({method:"eth_call",params:E});return"0x"===P?{data:void 0}:{data:P}}catch(n){const r=function(t){if(!(t instanceof hp))return;const e=t.walk();return"object"==typeof e?.data?e.data?.data:e.data}(n),{offchainLookup:a,offchainLookupSignature:i}=await Promise.resolve().then(function(){return Bw});if(!1!==t.ccipRead&&r?.slice(0,10)===i&&w)return{data:await a(t,{data:r,to:w})};if(S&&"0x101bb98d"===r?.slice(0,10))throw new zy({factory:f});throw ov(n,{...e,account:I,chain:t.chain})}}function fv(t){const{code:e,data:n}=t;return iv({abi:ap(["constructor(bytes, bytes)"]),bytecode:$b,args:[e,n]})}async function hv(t,e){const{abi:n,address:r,args:a,functionName:i,...s}=e,o=Qm({abi:n,args:a,functionName:i});try{const{data:e}=await ip(t,lv,"call")({...s,data:o,to:r});return Lb({abi:n,args:a,functionName:i,data:e||"0x"})}catch(t){throw vg(t,{abi:n,address:r,args:a,docsPath:"/docs/contract/readContract",functionName:i})}}const pv=new Map,mv=new Map;let yv=0;function gv(t,e,n){const r=++yv,a=()=>pv.get(t)||[],i=()=>{const e=a();if(!e.some(t=>t.id===r))return;const n=mv.get(t);if(1===e.length&&n){const t=n();t instanceof Promise&&t.catch(()=>{})}(()=>{const e=a();pv.set(t,e.filter(t=>t.id!==r))})()},s=a();if(pv.set(t,[...s,{id:r,fns:e}]),s&&s.length>0)return i;const o={};for(const t in e)o[t]=(...e)=>{const n=a();if(0!==n.length)for(const r of n)r.fns[t]?.(...e)};const c=n(o);return"function"==typeof c&&mv.set(t,c),i}async function bv(t){return new Promise(e=>setTimeout(e,t))}function vv(t,{emitOnBegin:e,initialWaitTime:n,interval:r}){let a=!0;const i=()=>a=!1;return(async()=>{let s;e&&(s=await t({unpoll:i}));const o=await(n?.(s))??r;await bv(o);const c=async()=>{a&&(await t({unpoll:i}),await bv(r),c())};c()})(),i}const wv=new Map,xv=new Map;async function kv(t,{cacheKey:e,cacheTime:n=Number.POSITIVE_INFINITY}){const r=function(t){const e=(t,e)=>({clear:()=>e.delete(t),get:()=>e.get(t),set:n=>e.set(t,n)}),n=e(t,wv),r=e(t,xv);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}(e),a=r.response.get();if(a&&n>0){if(Date.now()-a.created.getTime()<n)return a.data}let i=r.promise.get();i||(i=t(),r.promise.set(i));try{const t=await i;return r.response.set({created:new Date,data:t}),t}finally{r.promise.clear()}}async function Av(t,{cacheTime:e=t.cacheTime}={}){const n=await kv(()=>t.request({method:"eth_blockNumber"}),{cacheKey:(r=t.uid,`blockNumber.${r}`),cacheTime:e});var r;return BigInt(n)}async function Iv(t,{filter:e}){const n="strict"in e&&e.strict,r=await e.request({method:"eth_getFilterChanges",params:[e.id]});if("string"==typeof r[0])return r;const a=r.map(t=>Nb(t));return"abi"in e&&e.abi?Cb({abi:e.abi,logs:a,strict:n}):a}async function Ev(t,{filter:e}){return e.request({method:"eth_uninstallFilter",params:[e.id]})}class Pv extends hp{constructor({docsPath:t}={}){super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the Client."].join("\n"),{docsPath:t,docsSlug:"account",name:"AccountNotFoundError"})}}class Sv extends hp{constructor(t){super(`Call bundle failed with status: ${t.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=t}}function _v(t,{delay:e=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((a,i)=>{const s=async({count:o=0}={})=>{try{const e=await t();a(e)}catch(t){if(o<n&&await r({count:o,error:t}))return(async({error:t})=>{const n="function"==typeof e?e({count:o,error:t}):e;n&&await bv(n),s({count:o+1})})({error:t});i(t)}};s()})}const Ov={"0x0":"reverted","0x1":"success"};function Tv(t,e){const n={...t,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,contractAddress:t.contractAddress?t.contractAddress:null,cumulativeGasUsed:t.cumulativeGasUsed?BigInt(t.cumulativeGasUsed):null,effectiveGasPrice:t.effectiveGasPrice?BigInt(t.effectiveGasPrice):null,gasUsed:t.gasUsed?BigInt(t.gasUsed):null,logs:t.logs?t.logs.map(t=>Nb(t)):null,to:t.to?t.to:null,transactionIndex:t.transactionIndex?Xp(t.transactionIndex):null,status:t.status?Ov[t.status]:null,type:t.type?tb[t.type]||t.type:null};return t.blobGasPrice&&(n.blobGasPrice=BigInt(t.blobGasPrice)),t.blobGasUsed&&(n.blobGasUsed=BigInt(t.blobGasUsed)),n}const Bv=qg("transactionReceipt",Tv),Mv=im(0,{size:32});async function Cv(t,e){const{atomic:n=!1,chainId:r,receipts:a,version:i="2.0.0",...s}=await async function(e){if(e.endsWith("0x5792579257925792579257925792579257925792579257925792579257925792".slice(2))){const n=Yp(Cm(e,-64,-32)),r=Cm(e,0,-64).slice(2).match(/.{1,64}/g),a=await Promise.all(r.map(e=>Mv.slice(2)!==e?t.request({method:"eth_getTransactionReceipt",params:[`0x${e}`]},{dedupe:!0}):void 0)),i=a.some(t=>null===t)?100:a.every(t=>"0x1"===t?.status)?200:a.every(t=>"0x0"===t?.status)?500:600;return{atomic:!1,chainId:Xp(n),receipts:a.filter(Boolean),status:i,version:"2.0.0"}}return t.request({method:"wallet_getCallsStatus",params:[e]})}(e.id),[o,c]=(()=>{const t=s.status;return t>=100&&t<200?["pending",t]:t>=200&&t<300?["success",t]:t>=300&&t<700?["failure",t]:"CONFIRMED"===t?["success",200]:"PENDING"===t?["pending",100]:[void 0,t]})();return{...s,atomic:n,chainId:r?Xp(r):void 0,receipts:a?.map(t=>({...t,blockNumber:Qp(t.blockNumber),gasUsed:Qp(t.gasUsed),status:Ov[t.status]}))??[],statusCode:c,status:o,version:i}}async function Nv(t,e){const{id:n,pollingInterval:r=t.pollingInterval,status:a=({statusCode:t})=>200===t||t>=300,retryCount:i=4,retryDelay:s=({count:t})=>200*(1<<t),timeout:o=6e4,throwOnFailure:c=!1}=e,u=yy(["waitForCallsStatus",t.uid,n]),{promise:d,resolve:l,reject:f}=cv();let h;const p=gv(u,{resolve:l,reject:f},e=>{const o=vv(async()=>{const r=t=>{clearTimeout(h),o(),t(),p()};try{const o=await _v(async()=>{const e=await ip(t,Cv,"getCallsStatus")({id:n});if(c&&"failure"===e.status)throw new Sv(e);return e},{retryCount:i,delay:s});if(!a(o))return;r(()=>e.resolve(o))}catch(t){r(()=>e.reject(t))}},{interval:r,emitOnBegin:!0});return o});return h=o?setTimeout(()=>{p(),clearTimeout(h),f(new jv({id:n}))},o):void 0,await d}class jv extends hp{constructor({id:t}){super(`Timed out while waiting for call bundle with id "${t}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}let Rv,Uv=256;function Lv(t=11){if(!Rv||Uv+t>512){Rv="",Uv=0;for(let t=0;t<256;t++)Rv+=(256+256*Math.random()|0).toString(16).substring(1)}return Rv.substring(Uv,Uv+++t)}function zv(t){const{batch:e,chain:n,ccipRead:r,key:a="base",name:i="Base Client",type:s="base"}=t,o=t.experimental_blockTag??("number"==typeof n?.experimental_preconfirmationTime?"pending":void 0),c=n?.blockTime??12e3,u=Math.min(Math.max(Math.floor(c/2),500),4e3),d=t.pollingInterval??u,l=t.cacheTime??d,f=t.account?Ym(t.account):void 0,{config:h,request:p,value:m}=t.transport({chain:n,pollingInterval:d}),y={account:f,batch:e,cacheTime:l,ccipRead:r,chain:n,key:a,name:i,pollingInterval:d,request:p,transport:{...h,...m},type:s,uid:Lv(),...o?{experimental_blockTag:o}:{}};return Object.assign(y,{extend:function t(e){return n=>{const r=n(e);for(const t in y)delete r[t];const a={...e,...r};return Object.assign(a,{extend:t(a)})}}(y)})}function Fv(t){if(!(t instanceof hp))return!1;const e=t.walk(t=>t instanceof Uy);return e instanceof Uy&&("HttpError"===e.data?.errorName||("ResolverError"===e.data?.errorName||("ResolverNotContract"===e.data?.errorName||("ResolverNotFound"===e.data?.errorName||("ReverseAddressMismatch"===e.data?.errorName||"UnsupportedResolverProfile"===e.data?.errorName)))))}function Dv(t){const{abi:e,data:n}=t,r=Om(n,0,4),a=e.find(t=>"function"===t.type&&r===Dm(sp(t)));if(!a)throw new Tp(r,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:a.name,args:"inputs"in a&&a.inputs&&a.inputs.length>0?dy(a.inputs,Om(n,4)):void 0}}const qv="/docs/contract/encodeErrorResult";function Gv(t){const{abi:e,errorName:n,args:r}=t;let a=e[0];if(n){const t=qm({abi:e,args:r,name:n});if(!t)throw new Ap(n,{docsPath:qv});a=t}if("error"!==a.type)throw new Ap(void 0,{docsPath:qv});const i=sp(a),s=Dm(i);let o="0x";if(r&&r.length>0){if(!a.inputs)throw new kp(a.name,{docsPath:qv});o=Um(a.inputs,r)}return _m([s,o])}const Kv="/docs/contract/encodeFunctionResult";const Vv="x-batch-gateway:true";async function Zv(t){const{data:e,ccipRequest:n}=t,{args:[r]}=Dv({abi:qb,data:e}),a=[],i=[];return await Promise.all(r.map(async(t,e)=>{try{i[e]=t.urls.includes(Vv)?await Zv({data:t.data,ccipRequest:n}):await n(t),a[e]=!1}catch(t){a[e]=!0,i[e]="HttpRequestError"===(r=t).name&&r.status?Gv({abi:qb,errorName:"HttpError",args:[r.status,r.shortMessage]}):Gv({abi:[ty],errorName:"Error",args:["shortMessage"in r?r.shortMessage:r.message]})}var r})),function(t){const{abi:e,functionName:n,result:r}=t;let a=e[0];if(n){const t=qm({abi:e,name:n});if(!t)throw new _p(n,{docsPath:Kv});a=t}if("function"!==a.type)throw new _p(void 0,{docsPath:Kv});if(!a.outputs)throw new Op(a.name,{docsPath:Kv});const i=(()=>{if(0===a.outputs.length)return[];if(1===a.outputs.length)return[r];if(Array.isArray(r))return r;throw new Up(r)})();return Um(a.outputs,i)}({abi:qb,functionName:"query",result:[a,i]})}function Hv(t){if(66!==t.length)return null;if(0!==t.indexOf("["))return null;if(65!==t.indexOf("]"))return null;const e=`0x${t.slice(1,65)}`;return cp(e)?e:null}function Wv(t){let e=new Uint8Array(32).fill(0);if(!t)return am(e);const n=t.split(".");for(let t=n.length-1;t>=0;t-=1){const r=Hv(n[t]),a=r?um(r):pm(hm(n[t]),"bytes");e=pm(Sm([e,a]),"bytes")}return am(e)}function Jv(t){return`[${t.slice(2)}]`}function Yv(t){const e=new Uint8Array(32).fill(0);return t?Hv(t)||pm(hm(t)):am(e)}function $v(t){const e=t.replace(/^\.|\.$/gm,"");if(0===e.length)return new Uint8Array(1);const n=new Uint8Array(hm(e).byteLength+2);let r=0;const a=e.split(".");for(let t=0;t<a.length;t++){let e=hm(a[t]);e.byteLength>255&&(e=hm(Jv(Yv(a[t])))),n[r]=e.length,n.set(e,r+1),r+=e.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}class Qv extends hp{constructor({data:t}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`],name:"EnsAvatarInvalidMetadataError"})}}class Xv extends hp{constructor({reason:t}){super(`ENS NFT avatar URI is invalid. ${t}`,{name:"EnsAvatarInvalidNftUriError"})}}class tw extends hp{constructor({uri:t}){super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class ew extends hp{constructor({namespace:t}){super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}const nw=/(?<protocol>https?:\/\/[^/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,rw=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,aw=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,iw=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;function sw(t,e){return t?t.endsWith("/")?t.slice(0,-1):t:e}function ow({uri:t,gatewayUrls:e}){const n=aw.test(t);if(n)return{uri:t,isOnChain:!0,isEncoded:n};const r=sw(e?.ipfs,"https://ipfs.io"),a=sw(e?.arweave,"https://arweave.net"),i=t.match(nw),{protocol:s,subpath:o,target:c,subtarget:u=""}=i?.groups||{},d="ipns:/"===s||"ipns/"===o,l="ipfs:/"===s||"ipfs/"===o||rw.test(t);if(t.startsWith("http")&&!d&&!l){let n=t;return e?.arweave&&(n=t.replace(/https:\/\/arweave.net/g,e?.arweave)),{uri:n,isOnChain:!1,isEncoded:!1}}if((d||l)&&c)return{uri:`${r}/${d?"ipns":"ipfs"}/${c}${u}`,isOnChain:!1,isEncoded:!1};if("ar:/"===s&&c)return{uri:`${a}/${c}${u||""}`,isOnChain:!1,isEncoded:!1};let f=t.replace(iw,"");if(f.startsWith("<svg")&&(f=`data:image/svg+xml;base64,${btoa(f)}`),f.startsWith("data:")||f.startsWith("{"))return{uri:f,isOnChain:!0,isEncoded:!1};throw new tw({uri:t})}function cw(t){if("object"!=typeof t||!("image"in t)&&!("image_url"in t)&&!("image_data"in t))throw new Qv({data:t});return t.image||t.image_url||t.image_data}async function uw({gatewayUrls:t,uri:e}){const{uri:n,isOnChain:r}=ow({uri:e,gatewayUrls:t});if(r)return n;const a=await async function(t){try{const e=await fetch(t,{method:"HEAD"});if(200===e.status){const t=e.headers.get("content-type");return t?.startsWith("image/")}return!1}catch(e){return("object"!=typeof e||void 0===e.response)&&!!Object.hasOwn(globalThis,"Image")&&new Promise(e=>{const n=new Image;n.onload=()=>{e(!0)},n.onerror=()=>{e(!1)},n.src=t})}}(n);if(a)return n;throw new tw({uri:e})}async function dw(t,{gatewayUrls:e,record:n}){return/eip155:/i.test(n)?async function(t,{gatewayUrls:e,record:n}){const r=function(t){let e=t;e.startsWith("did:nft:")&&(e=e.replace("did:nft:","").replace(/_/g,"/"));const[n,r,a]=e.split("/"),[i,s]=n.split(":"),[o,c]=r.split(":");if(!i||"eip155"!==i.toLowerCase())throw new Xv({reason:"Only EIP-155 supported"});if(!s)throw new Xv({reason:"Chain ID not found"});if(!c)throw new Xv({reason:"Contract address not found"});if(!a)throw new Xv({reason:"Token ID not found"});if(!o)throw new Xv({reason:"ERC namespace not found"});return{chainID:Number.parseInt(s,10),namespace:o.toLowerCase(),contractAddress:c,tokenID:a}}(n),a=await async function(t,{nft:e}){if("erc721"===e.namespace)return hv(t,{address:e.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(e.tokenID)]});if("erc1155"===e.namespace)return hv(t,{address:e.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(e.tokenID)]});throw new ew({namespace:e.namespace})}(t,{nft:r}),{uri:i,isOnChain:s,isEncoded:o}=ow({uri:a,gatewayUrls:e});if(s&&(i.includes("data:application/json;base64,")||i.startsWith("{"))){const t=o?atob(i.replace("data:application/json;base64,","")):i;return uw({uri:cw(JSON.parse(t)),gatewayUrls:e})}let c=r.tokenID;"erc1155"===r.namespace&&(c=c.replace("0x","").padStart(64,"0"));return async function({gatewayUrls:t,uri:e}){try{const n=await fetch(e).then(t=>t.json());return await uw({gatewayUrls:t,uri:cw(n)})}catch{throw new tw({uri:e})}}({gatewayUrls:e,uri:i.replace(/(?:0x)?{id}/,c)})}(t,{gatewayUrls:e,record:n}):uw({uri:n,gatewayUrls:e})}async function lw(t,e){const{blockNumber:n,blockTag:r,key:a,name:i,gatewayUrls:s,strict:o}=e,{chain:c}=t,u=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return sv({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})(),d=c?.ensTlds;if(d&&!d.some(t=>i.endsWith(t)))return null;try{const e={address:u,abi:Kb,args:[nm($v(i)),Qm({abi:Zb,functionName:"text",args:[Wv(i),a]}),s??[Vv]],functionName:"resolveWithGateways",blockNumber:n,blockTag:r},o=ip(t,hv,"readContract"),c=await o(e);if("0x"===c[0])return null;const d=Lb({abi:Zb,functionName:"text",data:c[0]});return""===d?null:d}catch(t){if(o)throw t;if(Fv(t))return null;throw t}}async function fw(t,e){const{account:n=t.account,blockNumber:r,blockTag:a="latest",blobs:i,data:s,gas:o,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:l,to:f,value:h,...p}=e,m=n?Ym(n):void 0;try{Jg(e);const n=("bigint"==typeof r?im(r):void 0)||a,y=t.chain?.formatters?.transactionRequest?.format,g=(y||Kg)({...Dg(p,{format:y}),account:m,blobs:i,data:s,gas:o,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:d,maxPriorityFeePerGas:l,to:f,value:h},"createAccessList"),b=await t.request({method:"eth_createAccessList",params:[g,n]});return{accessList:b.accessList,gasUsed:BigInt(b.gasUsed)}}catch(n){throw ov(n,{...e,account:m,chain:t.chain})}}async function hw(t,{address:e,args:n,event:r,events:a,fromBlock:i,strict:s,toBlock:o}={}){const c=a??(r?[r]:void 0),u=Wm(t,{method:"eth_newFilter"});let d=[];if(c){const t=c.flatMap(t=>Zm({abi:[t],eventName:t.name,args:n}));d=[t],r&&(d=d[0])}const l=await t.request({method:"eth_newFilter",params:[{address:e,fromBlock:"bigint"==typeof i?im(i):i,toBlock:"bigint"==typeof o?im(o):o,...d.length?{topics:d}:{}}]});return{abi:c,args:n,eventName:r?r.name:void 0,fromBlock:i,id:l,request:u(l),strict:Boolean(s),toBlock:o,type:"event"}}async function pw(t){const e=Wm(t,{method:"eth_newPendingTransactionFilter"}),n=await t.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:e(n),type:"transaction"}}async function mw(t,{address:e,blockNumber:n,blockTag:r="latest"}){const a=void 0!==n?im(n):void 0,i=await t.request({method:"eth_getCode",params:[e,a||r]},{dedupe:Boolean(a)});if("0x"!==i)return i}class yw extends hp{constructor({address:t}){super(`No EIP-712 domain found on contract "${t}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${t}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}const gw=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];async function bw(t,{blockCount:e,blockNumber:n,blockTag:r="latest",rewardPercentiles:a}){const i="bigint"==typeof n?im(n):void 0;return function(t){return{baseFeePerGas:t.baseFeePerGas.map(t=>BigInt(t)),gasUsedRatio:t.gasUsedRatio,oldestBlock:BigInt(t.oldestBlock),reward:t.reward?.map(t=>t.map(t=>BigInt(t)))}}(await t.request({method:"eth_feeHistory",params:[im(e),i||r,a]},{dedupe:Boolean(i)}))}function vw(t,e,n=!1){if("address"===t){const t=e;if(!Pm(t))throw new vm({address:t});return Kp(t.toLowerCase(),{size:n?32:null})}if("string"===t)return om(e);if("bytes"===t)return e;if("bool"===t)return Kp(rm(e),{size:n?32:1});const r=t.match(Rm);if(r){const[t,a,i="256"]=r,s=Number.parseInt(i,10)/8;return im(e,{size:n?32:s,signed:"int"===a})}const a=t.match(jm);if(a){const[t,r]=a;if(Number.parseInt(r,10)!==(e.length-2)/2)throw new Mp({expectedSize:Number.parseInt(r,10),givenSize:(e.length-2)/2});return Kp(e,{dir:"right",size:n?32:null})}const i=t.match(Nm);if(i&&Array.isArray(e)){const[t,n]=i,r=[];for(let t=0;t<e.length;t++)r.push(vw(n,e[t],!0));return 0===r.length?"0x":_m(r)}throw new zp(t)}function ww(t){const{chainId:e,maxPriorityFeePerGas:n,maxFeePerGas:r,to:a}=t;if(e<=0)throw new rv({chainId:e});if(a&&!Pm(a))throw new vm({address:a});if(r&&r>Wg)throw new Og({maxFeePerGas:r});if(n&&r&&n>r)throw new Lg({maxFeePerGas:r,maxPriorityFeePerGas:n})}function xw(t){if(!t||0===t.length)return[];const e=[];for(let n=0;n<t.length;n++){const{address:r,storageKeys:a}=t[n];for(let t=0;t<a.length;t++)if(a[t].length-2!=64)throw new Ty({storageKey:a[t]});if(!Pm(r,{strict:!1}))throw new vm({address:r});e.push([r,a])}return e}function kw(t,e){const n=Ab(t);return"eip1559"===n?function(t,e){const{chainId:n,gas:r,nonce:a,to:i,value:s,maxFeePerGas:o,maxPriorityFeePerGas:c,accessList:u,data:d}=t;ww(t);const l=xw(u),f=[im(n),a?im(a):"0x",c?im(c):"0x",o?im(o):"0x",r?im(r):"0x",i??"0x",s?im(s):"0x",d??"0x",l,...Aw(t,e)];return _m(["0x02",kg(f)])}(t,e):"eip2930"===n?function(t,e){const{chainId:n,gas:r,data:a,nonce:i,to:s,value:o,accessList:c,gasPrice:u}=t;!function(t){const{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:i}=t;if(e<=0)throw new rv({chainId:e});if(i&&!Pm(i))throw new vm({address:i});if(n||a)throw new hp("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(r&&r>Wg)throw new Og({maxFeePerGas:r})}(t);const d=xw(c),l=[im(n),i?im(i):"0x",u?im(u):"0x",r?im(r):"0x",s??"0x",o?im(o):"0x",a??"0x",d,...Aw(t,e)];return _m(["0x01",kg(l)])}(t,e):"eip4844"===n?function(t,e){const{chainId:n,gas:r,nonce:a,to:i,value:s,maxFeePerBlobGas:o,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:d,data:l}=t;!function(t){const{blobVersionedHashes:e}=t;if(e){if(0===e.length)throw new vb;for(const t of e){const e=up(t),n=Xp(Om(t,0,1));if(32!==e)throw new wb({hash:t,size:e});if(1!==n)throw new xb({hash:t,version:n})}}ww(t)}(t);let f=t.blobVersionedHashes,h=t.sidecars;if(t.blobs&&(void 0===f||void 0===h)){const e="string"==typeof t.blobs[0]?t.blobs:t.blobs.map(t=>am(t)),n=t.kzg,r=lb({blobs:e,kzg:n});if(void 0===f&&(f=pb({commitments:r})),void 0===h){h=kb({blobs:e,commitments:r,proofs:fb({blobs:e,commitments:r,kzg:n})})}}const p=xw(d),m=[im(n),a?im(a):"0x",u?im(u):"0x",c?im(c):"0x",r?im(r):"0x",i??"0x",s?im(s):"0x",l??"0x",p,o?im(o):"0x",f??[],...Aw(t,e)],y=[],g=[],b=[];if(h)for(let t=0;t<h.length;t++){const{blob:e,commitment:n,proof:r}=h[t];y.push(e),g.push(n),b.push(r)}return _m(["0x03",kg(h?[m,y,g,b]:m)])}(t,e):"eip7702"===n?function(t,e){const{authorizationList:n,chainId:r,gas:a,nonce:i,to:s,value:o,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:d,data:l}=t;!function(t){const{authorizationList:e}=t;if(e)for(const t of e){const{chainId:e}=t,n=t.address;if(!Pm(n))throw new vm({address:n});if(e<0)throw new rv({chainId:e})}ww(t)}(t);const f=xw(d),h=function(t){if(!t||0===t.length)return[];const e=[];for(const n of t){const{chainId:t,nonce:r,...a}=n,i=n.address;e.push([t?nm(t):"0x",i,r?nm(r):"0x",...Aw({},a)])}return e}(n);return _m(["0x04",kg([im(r),i?im(i):"0x",u?im(u):"0x",c?im(c):"0x",a?im(a):"0x",s??"0x",o?im(o):"0x",l??"0x",f,h,...Aw(t,e)])])}(t,e):function(t,e){const{chainId:n=0,gas:r,data:a,nonce:i,to:s,value:o,gasPrice:c}=t;!function(t){const{chainId:e,maxPriorityFeePerGas:n,gasPrice:r,maxFeePerGas:a,to:i}=t;if(i&&!Pm(i))throw new vm({address:i});if(void 0!==e&&e<=0)throw new rv({chainId:e});if(n||a)throw new hp("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(r&&r>Wg)throw new Og({maxFeePerGas:r})}(t);let u=[i?im(i):"0x",c?im(c):"0x",r?im(r):"0x",s??"0x",o?im(o):"0x",a??"0x"];if(e){const t=(()=>{if(e.v>=35n){return(e.v-35n)/2n>0?e.v:27n+(35n===e.v?0n:1n)}if(n>0)return BigInt(2*n)+BigInt(35n+e.v-27n);const t=27n+(27n===e.v?0n:1n);if(e.v!==t)throw new _y({v:e.v});return t})(),r=Yp(e.r),a=Yp(e.s);u=[...u,im(t),"0x00"===r?"0x":r,"0x00"===a?"0x":a]}else n>0&&(u=[...u,im(n),"0x","0x"]);return kg(u)}(t,e)}function Aw(t,e){const n=e??t,{v:r,yParity:a}=n;if(void 0===n.r)return[];if(void 0===n.s)return[];if(void 0===r&&void 0===a)return[];const i=Yp(n.r),s=Yp(n.s);return["number"==typeof a?a?im(1):"0x":0n===r?"0x":1n===r?im(1):27n===r?"0x":im(1),"0x00"===i?"0x":i,"0x00"===s?"0x":s]}const Iw=new wm(8192);function Ew(t,e={}){return async(n,r={})=>{const{dedupe:a=!1,methods:i,retryDelay:s=150,retryCount:o=3,uid:c}={...e,...r},{method:u}=n;if(i?.exclude?.includes(u))throw new eg(new Error("method not supported"),{method:u});if(i?.include&&!i.include.includes(u))throw new eg(new Error("method not supported"),{method:u});return function(t,{enabled:e=!0,id:n}){if(!e||!n)return t();if(Iw.get(n))return Iw.get(n);const r=t().finally(()=>Iw.delete(n));return Iw.set(n,r),r}(()=>_v(async()=>{try{return await t(n)}catch(t){const e=t;switch(e.code){case Zy.code:throw new Zy(e);case Hy.code:throw new Hy(e);case Wy.code:throw new Wy(e,{method:n.method});case Jy.code:throw new Jy(e);case Yy.code:throw new Yy(e);case $y.code:throw new $y(e);case Qy.code:throw new Qy(e);case Xy.code:throw new Xy(e);case tg.code:throw new tg(e);case eg.code:throw new eg(e,{method:n.method});case ng.code:throw new ng(e);case rg.code:throw new rg(e);case ag.code:throw new ag(e);case ig.code:throw new ig(e);case sg.code:throw new sg(e);case og.code:throw new og(e);case cg.code:throw new cg(e);case ug.code:throw new ug(e);case dg.code:throw new dg(e);case lg.code:throw new lg(e);case fg.code:throw new fg(e);case hg.code:throw new hg(e);case pg.code:throw new pg(e);case mg.code:throw new mg(e);case yg.code:throw new yg(e);case 5e3:throw new ag(e);default:if(t instanceof hp)throw t;throw new gg(e)}}},{delay:({count:t,error:e})=>{if(e&&e instanceof Dy){const t=e?.headers?.get("Retry-After");if(t?.match(/\d/))return 1e3*Number.parseInt(t,10)}return(1<<t)*s},retryCount:o,shouldRetry:({error:t})=>function(t){if("code"in t&&"number"==typeof t.code)return-1===t.code||(t.code===ng.code||t.code===Yy.code);if(t instanceof Dy&&t.status)return 403===t.status||(408===t.status||(413===t.status||(429===t.status||(500===t.status||(502===t.status||(503===t.status||504===t.status))))));return!0}(t)}),{enabled:a,id:a?om(`${c}.${yy(n)}`):void 0})}}class Pw extends hp{constructor({callbackSelector:t,cause:e,data:n,extraData:r,sender:a,urls:i}){super(e.shortMessage||"An error occurred while fetching for an offchain result.",{cause:e,metaMessages:[...e.metaMessages||[],e.metaMessages?.length?"":[],"Offchain Gateway Call:",i&&[" Gateway URL(s):",...i.map(t=>` ${t}`)],` Sender: ${a}`,` Data: ${n}`,` Callback selector: ${t}`,` Extra data: ${r}`].flat(),name:"OffchainLookupError"})}}class Sw extends hp{constructor({result:t,url:e}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${e}`,`Response: ${yy(t)}`],name:"OffchainLookupResponseMalformedError"})}}class _w extends hp{constructor({sender:t,to:e}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${e}`,`OffchainLookup sender address: ${t}`],name:"OffchainLookupSenderMismatchError"})}}const Ow={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function Tw({data:t,sender:e,urls:n}){let r=new Error("An unknown error occurred.");for(let a=0;a<n.length;a++){const i=n[a],s=i.includes("{data}")?"GET":"POST",o="POST"===s?{data:t,sender:e}:void 0,c="POST"===s?{"Content-Type":"application/json"}:{};try{const n=await fetch(i.replace("{sender}",e.toLowerCase()).replace("{data}",t),{body:JSON.stringify(o),headers:c,method:s});let a;if(a=n.headers.get("Content-Type")?.startsWith("application/json")?(await n.json()).data:await n.text(),!n.ok){r=new Dy({body:o,details:a?.error?yy(a.error):n.statusText,headers:n.headers,status:n.status,url:i});continue}if(!cp(a)){r=new Sw({result:a,url:i});continue}return a}catch(t){r=new Dy({body:o,details:t.message,url:i})}}throw r}var Bw=Object.freeze({__proto__:null,ccipRequest:Tw,offchainLookup:async function(t,{blockNumber:e,blockTag:n,data:r,to:a}){const{args:i}=my({data:r,abi:[Ow]}),[s,o,c,u,d]=i,{ccipRead:l}=t,f=l&&"function"==typeof l?.request?l.request:Tw;try{if(!Ob(a,s))throw new _w({sender:s,to:a});const r=o.includes(Vv)?await Zv({data:c,ccipRequest:f}):await f({data:c,sender:s,urls:o}),{data:i}=await lv(t,{blockNumber:e,blockTag:n,data:Sm([u,Um([{type:"bytes"},{type:"bytes"}],[r,d])]),to:a});return i}catch(t){throw new Pw({callbackSelector:u,cause:t,data:r,extraData:d,sender:s,urls:o})}},offchainLookupAbiItem:Ow,offchainLookupSignature:"0x556f1830"});function Mw(t){return{formatters:void 0,fees:void 0,serializers:void 0,...t}}function Cw(t){const{source:e}=t,n=new Map,r=new wm(8192),a=new Map,i=({address:t,chainId:e})=>`${t}.${e}`;return{async consume({address:t,chainId:n,client:a}){const s=i({address:t,chainId:n}),o=this.get({address:t,chainId:n,client:a});this.increment({address:t,chainId:n});const c=await o;return await e.set({address:t,chainId:n},c),r.set(s,c),c},async increment({address:t,chainId:e}){const r=i({address:t,chainId:e}),a=n.get(r)??0;n.set(r,a+1)},async get({address:t,chainId:s,client:o}){const c=i({address:t,chainId:s});let u=a.get(c);u||(u=(async()=>{try{const n=await e.get({address:t,chainId:s,client:o}),a=r.get(c)??0;return a>0&&n<=a?a+1:(r.delete(c),n)}finally{this.reset({address:t,chainId:s})}})(),a.set(c,u));return(n.get(c)??0)+await u},reset({address:t,chainId:e}){const r=i({address:t,chainId:e});n.delete(r),a.delete(r)}}}function Nw(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const jw=Nw();function Rw(t,e={}){return{async request(n){const{body:r,fetchFn:a=e.fetchFn??fetch,onRequest:i=e.onRequest,onResponse:s=e.onResponse,timeout:o=e.timeout??1e4}=n,c={...e.fetchOptions??{},...n.fetchOptions??{}},{headers:u,method:d,signal:l}=c;try{const e=await function(t,{errorInstance:e=new Error("timed out"),timeout:n,signal:r}){return new Promise((a,i)=>{(async()=>{let s;try{const e=new AbortController;n>0&&(s=setTimeout(()=>{r&&e.abort()},n)),a(await t({signal:e?.signal||null}))}catch(t){"AbortError"===t?.name&&i(e),i(t)}finally{clearTimeout(s)}})()})}(async({signal:e})=>{const n={...c,body:Array.isArray(r)?yy(r.map(t=>({jsonrpc:"2.0",id:t.id??jw.take(),...t}))):yy({jsonrpc:"2.0",id:r.id??jw.take(),...r}),headers:{"Content-Type":"application/json",...u},method:d||"POST",signal:l||(o>0?e:null)},s=new Request(t,n),f=await(i?.(s,n))??{...n,url:t};return await a(f.url??t,f)},{errorInstance:new Gy({body:r,url:t}),timeout:o,signal:!0});let n;if(s&&await s(e),e.headers.get("Content-Type")?.startsWith("application/json"))n=await e.json();else{n=await e.text();try{n=JSON.parse(n||"{}")}catch(t){if(e.ok)throw t;n={error:n}}}if(!e.ok)throw new Dy({body:r,details:yy(n.error)||e.statusText,headers:e.headers,status:e.status,url:t});return n}catch(e){if(e instanceof Dy)throw e;if(e instanceof Gy)throw e;throw new Dy({body:r,cause:e,url:t})}}}}function Uw(t,e){return pm(function(t){const e="string"==typeof t?om(t):"string"==typeof t.raw?t.raw:am(t.raw);return Sm([om(`Ethereum Signed Message:\n${up(e)}`),e])}(t),e)}class Lw extends hp{constructor({domain:t}){super(`Invalid domain "${yy(t)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class zw extends hp{constructor({primaryType:t,types:e}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(e))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class Fw extends hp{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}function Dw({domain:t}){return["string"==typeof t?.name&&{name:"name",type:"string"},t?.version&&{name:"version",type:"string"},("number"==typeof t?.chainId||"bigint"==typeof t?.chainId)&&{name:"chainId",type:"uint256"},t?.verifyingContract&&{name:"verifyingContract",type:"address"},t?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}function qw(t){if("address"===t||"bool"===t||"string"===t||t.startsWith("bytes")||t.startsWith("uint")||t.startsWith("int"))throw new Fw({type:t})}function Gw(t){const{domain:e={},message:n,primaryType:r}=t,a={EIP712Domain:Dw({domain:e}),...t.types};!function(t){const{domain:e,message:n,primaryType:r,types:a}=t,i=(t,e)=>{for(const n of t){const{name:t,type:r}=n,s=e[t],o=r.match(Rm);if(o&&("number"==typeof s||"bigint"==typeof s)){const[t,e,n]=o;im(s,{signed:"int"===e,size:Number.parseInt(n,10)/8})}if("address"===r&&"string"==typeof s&&!Pm(s))throw new vm({address:s});const c=r.match(jm);if(c){const[t,e]=c;if(e&&up(s)!==Number.parseInt(e,10))throw new Mp({expectedSize:Number.parseInt(e,10),givenSize:up(s)})}const u=a[r];u&&(qw(r),i(u,s))}};if(a.EIP712Domain&&e){if("object"!=typeof e)throw new Lw({domain:e});i(a.EIP712Domain,e)}if("EIP712Domain"!==r){if(!a[r])throw new zw({primaryType:r,types:a});i(a[r],n)}}({domain:e,message:n,primaryType:r,types:a});const i=["0x1901"];return e&&i.push(function({domain:t,types:e}){return Kw({data:t,primaryType:"EIP712Domain",types:e})}({domain:e,types:a})),"EIP712Domain"!==r&&i.push(Kw({data:n,primaryType:r,types:a})),pm(Sm(i))}function Kw({data:t,primaryType:e,types:n}){return pm(Vw({data:t,primaryType:e,types:n}))}function Vw({data:t,primaryType:e,types:n}){const r=[{type:"bytes32"}],a=[Zw({primaryType:e,types:n})];for(const i of n[e]){const[e,s]=Ww({types:n,name:i.name,type:i.type,value:t[i.name]});r.push(e),a.push(s)}return Um(r,a)}function Zw({primaryType:t,types:e}){const n=nm(function({primaryType:t,types:e}){let n="";const r=Hw({primaryType:t,types:e});r.delete(t);const a=[t,...Array.from(r).sort()];for(const t of a)n+=`${t}(${e[t].map(({name:t,type:e})=>`${e} ${t}`).join(",")})`;return n}({primaryType:t,types:e}));return pm(n)}function Hw({primaryType:t,types:e},n=new Set){const r=t.match(/^\w*/u),a=r?.[0];if(n.has(a)||void 0===e[a])return n;n.add(a);for(const t of e[a])Hw({primaryType:t.type,types:e},n);return n}function Ww({types:t,name:e,type:n,value:r}){if(void 0!==t[n])return[{type:"bytes32"},pm(Vw({data:r,primaryType:n,types:t}))];if("bytes"===n){return[{type:"bytes32"},pm(r=`0x${(r.length%2?"0":"")+r.slice(2)}`)]}if("string"===n)return[{type:"bytes32"},pm(nm(r))];if(n.lastIndexOf("]")===n.length-1){const a=n.slice(0,n.lastIndexOf("[")),i=r.map(n=>Ww({name:e,type:a,types:t,value:n}));return[{type:"bytes32"},pm(Um(i.map(([t])=>t),i.map(([,t])=>t)))]}return[{type:n},r]}class Jw extends Error{constructor(t,e={}){const n=e.cause instanceof Jw?e.cause.details:e.cause?.message?e.cause.message:e.details,r=e.cause instanceof Jw&&e.cause.docsPath||e.docsPath;super([t||"An error occurred.","",...e.metaMessages?[...e.metaMessages,""]:[],...r?[`Docs: https://abitype.dev${r}`]:[],...n?[`Details: ${n}`]:[],"Version: abitype@1.1.1"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),e.cause&&(this.cause=e.cause),this.details=n,this.docsPath=r,this.metaMessages=e.metaMessages,this.shortMessage=t}}function Yw(t,e){const n=t.exec(e);return n?.groups}const $w=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Qw=/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,Xw=/^\(.+?\).*?$/,tx=/^tuple(?<array>(\[(\d*)\])*)$/;function ex(t){let e=t.type;if(tx.test(t.type)&&"components"in t){e="(";const n=t.components.length;for(let r=0;r<n;r++){e+=ex(t.components[r]),r<n-1&&(e+=", ")}const r=Yw(tx,t.type);return e+=`)${r?.array??""}`,ex({...t,type:e})}return"indexed"in t&&t.indexed&&(e=`${e} indexed`),t.name?`${e} ${t.name}`:e}function nx(t){let e="";const n=t.length;for(let r=0;r<n;r++){e+=ex(t[r]),r!==n-1&&(e+=", ")}return e}function rx(t){return"function"===t.type?`function ${t.name}(${nx(t.inputs)})${t.stateMutability&&"nonpayable"!==t.stateMutability?` ${t.stateMutability}`:""}${t.outputs?.length?` returns (${nx(t.outputs)})`:""}`:"event"===t.type?`event ${t.name}(${nx(t.inputs)})`:"error"===t.type?`error ${t.name}(${nx(t.inputs)})`:"constructor"===t.type?`constructor(${nx(t.inputs)})${"payable"===t.stateMutability?" payable":""}`:"fallback"===t.type?"fallback() external"+("payable"===t.stateMutability?" payable":""):"receive() external payable"}const ax=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;const ix=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;const sx=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;const ox=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function cx(t){return ox.test(t)}function ux(t){return Yw(ox,t)}const dx=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;const lx=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;const fx=/^receive\(\) external payable$/;const hx=new Set(["memory","indexed","storage","calldata"]),px=new Set(["indexed"]),mx=new Set(["calldata","memory","storage"]);class yx extends Jw{constructor({signature:t}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class gx extends Jw{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class bx extends Jw{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}class vx extends Jw{constructor({params:t}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(t,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}class wx extends Jw{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class xx extends Jw{constructor({param:t,name:e}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${e}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class kx extends Jw{constructor({param:t,type:e,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${e?` in "${e}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class Ax extends Jw{constructor({param:t,type:e,modifier:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${n}" not allowed${e?` in "${e}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class Ix extends Jw{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class Ex extends Jw{constructor({signature:t,type:e}){super(`Invalid ${e} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class Px extends Jw{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class Sx extends Jw{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}class _x extends Jw{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}class Ox extends Jw{constructor({current:t,depth:e}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${e>0?"opening":"closing"} parentheses.`],details:`Depth "${e}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}const Tx=new Map([["address",{type:"address"}],["bool",{type:"bool"}],["bytes",{type:"bytes"}],["bytes32",{type:"bytes32"}],["int",{type:"int256"}],["int256",{type:"int256"}],["string",{type:"string"}],["uint",{type:"uint256"}],["uint8",{type:"uint8"}],["uint16",{type:"uint16"}],["uint24",{type:"uint24"}],["uint32",{type:"uint32"}],["uint64",{type:"uint64"}],["uint96",{type:"uint96"}],["uint112",{type:"uint112"}],["uint160",{type:"uint160"}],["uint192",{type:"uint192"}],["uint256",{type:"uint256"}],["address owner",{type:"address",name:"owner"}],["address to",{type:"address",name:"to"}],["bool approved",{type:"bool",name:"approved"}],["bytes _data",{type:"bytes",name:"_data"}],["bytes data",{type:"bytes",name:"data"}],["bytes signature",{type:"bytes",name:"signature"}],["bytes32 hash",{type:"bytes32",name:"hash"}],["bytes32 r",{type:"bytes32",name:"r"}],["bytes32 root",{type:"bytes32",name:"root"}],["bytes32 s",{type:"bytes32",name:"s"}],["string name",{type:"string",name:"name"}],["string symbol",{type:"string",name:"symbol"}],["string tokenURI",{type:"string",name:"tokenURI"}],["uint tokenId",{type:"uint256",name:"tokenId"}],["uint8 v",{type:"uint8",name:"v"}],["uint256 balance",{type:"uint256",name:"balance"}],["uint256 tokenId",{type:"uint256",name:"tokenId"}],["uint256 value",{type:"uint256",name:"value"}],["event:address indexed from",{type:"address",name:"from",indexed:!0}],["event:address indexed to",{type:"address",name:"to",indexed:!0}],["event:uint indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}],["event:uint256 indexed tokenId",{type:"uint256",name:"tokenId",indexed:!0}]]);function Bx(t,e={}){if(function(t){return sx.test(t)}(t))return function(t,e={}){const n=function(t){return Yw(sx,t)}(t);if(!n)throw new Ex({signature:t,type:"function"});const r=Rx(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(jx(r[t],{modifiers:mx,structs:e,type:"function"}));const s=[];if(n.returns){const t=Rx(n.returns),r=t.length;for(let n=0;n<r;n++)s.push(jx(t[n],{modifiers:mx,structs:e,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:a,outputs:s}}(t,e);if(function(t){return ix.test(t)}(t))return function(t,e={}){const n=function(t){return Yw(ix,t)}(t);if(!n)throw new Ex({signature:t,type:"event"});const r=Rx(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(jx(r[t],{modifiers:px,structs:e,type:"event"}));return{name:n.name,type:"event",inputs:a}}(t,e);if(function(t){return ax.test(t)}(t))return function(t,e={}){const n=function(t){return Yw(ax,t)}(t);if(!n)throw new Ex({signature:t,type:"error"});const r=Rx(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(jx(r[t],{structs:e,type:"error"}));return{name:n.name,type:"error",inputs:a}}(t,e);if(function(t){return dx.test(t)}(t))return function(t,e={}){const n=function(t){return Yw(dx,t)}(t);if(!n)throw new Ex({signature:t,type:"constructor"});const r=Rx(n.parameters),a=[],i=r.length;for(let t=0;t<i;t++)a.push(jx(r[t],{structs:e,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:a}}(t,e);if(function(t){return lx.test(t)}(t))return function(t){const e=function(t){return Yw(lx,t)}(t);if(!e)throw new Ex({signature:t,type:"fallback"});return{type:"fallback",stateMutability:e.stateMutability??"nonpayable"}}(t);if(function(t){return fx.test(t)}(t))return{type:"receive",stateMutability:"payable"};throw new Px({signature:t})}const Mx=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Cx=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Nx=/^u?int$/;function jx(t,e){const n=function(t,e,n){let r="";if(n)for(const t of Object.entries(n)){if(!t)continue;let e="";for(const n of t[1])e+=`[${n.type}${n.name?`:${n.name}`:""}]`;r+=`(${t[0]}{${e}})`}return e?`${e}:${t}${r}`:t}(t,e?.type,e?.structs);if(Tx.has(n))return Tx.get(n);const r=Xw.test(t),a=Yw(r?Cx:Mx,t);if(!a)throw new wx({param:t});if(a.name&&function(t){return"address"===t||"bool"===t||"function"===t||"string"===t||"tuple"===t||$w.test(t)||Qw.test(t)||Lx.test(t)}(a.name))throw new xx({param:t,name:a.name});const i=a.name?{name:a.name}:{},s="indexed"===a.modifier?{indexed:!0}:{},o=e?.structs??{};let c,u={};if(r){c="tuple";const t=Rx(a.type),e=[],n=t.length;for(let r=0;r<n;r++)e.push(jx(t[r],{structs:o}));u={components:e}}else if(a.type in o)c="tuple",u={components:o[a.type]};else if(Nx.test(a.type))c=`${a.type}256`;else if("address payable"===a.type)c="address";else if(c=a.type,"struct"!==e?.type&&!Ux(c))throw new bx({type:c});if(a.modifier){if(!e?.modifiers?.has?.(a.modifier))throw new kx({param:t,type:e?.type,modifier:a.modifier});if(mx.has(a.modifier)&&!function(t,e){return e||"bytes"===t||"string"===t||"tuple"===t}(c,!!a.array))throw new Ax({param:t,type:e?.type,modifier:a.modifier})}const d={type:`${c}${a.array??""}`,...i,...s,...u};return Tx.set(n,d),d}function Rx(t,e=[],n="",r=0){const a=t.trim().length;for(let i=0;i<a;i++){const a=t[i],s=t.slice(i+1);switch(a){case",":return 0===r?Rx(s,[...e,n.trim()]):Rx(s,e,`${n}${a}`,r);case"(":return Rx(s,e,`${n}${a}`,r+1);case")":return Rx(s,e,`${n}${a}`,r-1);default:return Rx(s,e,`${n}${a}`,r)}}if(""===n)return e;if(0!==r)throw new Ox({current:n,depth:r});return e.push(n.trim()),e}function Ux(t){return"address"===t||"bool"===t||"function"===t||"string"===t||$w.test(t)||Qw.test(t)}const Lx=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function zx(t){const e={},n=t.length;for(let r=0;r<n;r++){const n=t[r];if(!cx(n))continue;const a=ux(n);if(!a)throw new Ex({signature:n,type:"struct"});const i=a.properties.split(";"),s=[],o=i.length;for(let t=0;t<o;t++){const e=i[t].trim();if(!e)continue;const n=jx(e,{type:"struct"});s.push(n)}if(!s.length)throw new Sx({signature:n});e[a.name]=s}const r={},a=Object.entries(e),i=a.length;for(let t=0;t<i;t++){const[n,i]=a[t];r[n]=Dx(i,e)}return r}const Fx=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function Dx(t,e,n=new Set){const r=[],a=t.length;for(let i=0;i<a;i++){const a=t[i];if(Xw.test(a.type))r.push(a);else{const t=Yw(Fx,a.type);if(!t?.type)throw new Ix({abiParameter:a});const{array:i,type:s}=t;if(s in e){if(n.has(s))throw new _x({type:s});r.push({...a,type:`tuple${i??""}`,components:Dx(e[s]??[],e,new Set([...n,s]))})}else{if(!Ux(s))throw new gx({type:s});r.push(a)}}}return r}function qx(t){let e;if("string"==typeof t)e=Bx(t);else{const n=zx(t),r=t.length;for(let a=0;a<r;a++){const r=t[a];if(!cx(r)){e=Bx(r,n);break}}}if(!e)throw new yx({signature:t});return e}function Gx(t){const e=[];if("string"==typeof t){const n=Rx(t),r=n.length;for(let t=0;t<r;t++)e.push(jx(n[t],{modifiers:hx}))}else{const n=zx(t),r=t.length;for(let a=0;a<r;a++){const r=t[a];if(cx(r))continue;const i=Rx(r),s=i.length;for(let t=0;t<s;t++)e.push(jx(i[t],{modifiers:hx,structs:n}))}}if(0===e.length)throw new vx({params:t});return e}const Kx=/^(.*)\[([0-9]*)\]$/,Vx=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Zx=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,Hx=2n**256n-1n;function Wx(t,e,n){const{checksumAddress:r,staticPosition:a}=n,i=Xx(e.type);if(i){const[n,s]=i;return function(t,e,n){const{checksumAddress:r,length:a,staticPosition:i}=n;if(!a){const n=i+Dl(t.readBytes(Yx)),a=n+Jx;t.setPosition(n);const s=Dl(t.readBytes(Jx)),o=tk(e);let c=0;const u=[];for(let n=0;n<s;++n){t.setPosition(a+(o?32*n:c));const[i,s]=Wx(t,e,{checksumAddress:r,staticPosition:a});c+=s,u.push(i)}return t.setPosition(i+32),[u,32]}if(tk(e)){const n=i+Dl(t.readBytes(Yx)),s=[];for(let i=0;i<a;++i){t.setPosition(n+32*i);const[a]=Wx(t,e,{checksumAddress:r,staticPosition:n});s.push(a)}return t.setPosition(i+32),[s,32]}let s=0;const o=[];for(let n=0;n<a;++n){const[n,a]=Wx(t,e,{checksumAddress:r,staticPosition:i+s});s+=a,o.push(n)}return[o,s]}(t,{...e,type:s},{checksumAddress:r,length:n,staticPosition:a})}if("tuple"===e.type)return function(t,e,n){const{checksumAddress:r,staticPosition:a}=n,i=0===e.components.length||e.components.some(({name:t})=>!t),s=i?[]:{};let o=0;if(tk(e)){const n=a+Dl(t.readBytes(Yx));for(let a=0;a<e.components.length;++a){const c=e.components[a];t.setPosition(n+o);const[u,d]=Wx(t,c,{checksumAddress:r,staticPosition:n});o+=d,s[i?a:c?.name]=u}return t.setPosition(a+32),[s,32]}for(let n=0;n<e.components.length;++n){const c=e.components[n],[u,d]=Wx(t,c,{checksumAddress:r,staticPosition:a});s[i?n:c?.name]=u,o+=d}return[s,o]}(t,e,{checksumAddress:r,staticPosition:a});if("address"===e.type)return function(t,e={}){const{checksum:n=!1}=e,r=t.readBytes(32),a=t=>n?Of(t):t;return[a(ml(Ll(r,-20))),32]}(t,{checksum:r});if("bool"===e.type)return function(t){return[Fl(t.readBytes(32),{size:32}),32]}(t);if(e.type.startsWith("bytes"))return function(t,e,{staticPosition:n}){const[r,a]=e.type.split("bytes");if(!a){const e=Dl(t.readBytes(32));t.setPosition(n+e);const r=Dl(t.readBytes(32));if(0===r)return t.setPosition(n+32),["0x",32];const a=t.readBytes(r);return t.setPosition(n+32),[ml(a),32]}const i=ml(t.readBytes(Number.parseInt(a,10),32));return[i,32]}(t,e,{staticPosition:a});if(e.type.startsWith("uint")||e.type.startsWith("int"))return function(t,e){const n=e.type.startsWith("int"),r=Number.parseInt(e.type.split("int")[1]||"256",10),a=t.readBytes(32);return[r>48?zl(a,{signed:n}):Dl(a,{signed:n}),32]}(t,e);if("string"===e.type)return function(t,{staticPosition:e}){const n=Dl(t.readBytes(32)),r=e+n;t.setPosition(r);const a=Dl(t.readBytes(32));if(0===a)return t.setPosition(e+32),["",32];const i=t.readBytes(a,32),s=ql(Gl(i));return t.setPosition(e+32),[s,32]}(t,{staticPosition:a});throw new mk(e.type)}const Jx=32,Yx=32;function $x({checksumAddress:t=!1,parameter:e,value:n}){const r=e,a=Xx(r.type);if(a){const[e,i]=a;return function(t,e){const{checksumAddress:n,length:r,parameter:a}=e,i=null===r;if(!Array.isArray(t))throw new pk(t);if(!i&&t.length!==r)throw new lk({expectedLength:r,givenLength:t.length,type:`${a.type}[${r}]`});let s=!1;const o=[];for(let e=0;e<t.length;e++){const r=$x({checksumAddress:n,parameter:a,value:t[e]});r.dynamic&&(s=!0),o.push(r)}if(i||s){const t=Qx(o);if(i){const e=yl(o.length,{size:32});return{dynamic:!0,encoded:o.length>0?fl(e,t):e}}if(s)return{dynamic:!0,encoded:t}}return{dynamic:!1,encoded:fl(...o.map(({encoded:t})=>t))}}(n,{checksumAddress:t,length:e,parameter:{...r,type:i}})}if("tuple"===r.type)return function(t,e){const{checksumAddress:n,parameter:r}=e;let a=!1;const i=[];for(let e=0;e<r.components.length;e++){const s=r.components[e],o=$x({checksumAddress:n,parameter:s,value:t[Array.isArray(t)?e:s.name]});i.push(o),o.dynamic&&(a=!0)}return{dynamic:a,encoded:a?Qx(i):fl(...i.map(({encoded:t})=>t))}}(n,{checksumAddress:t,parameter:r});if("address"===r.type)return function(t,e){const{checksum:n=!1}=e;return _f(t,{strict:n}),{dynamic:!1,encoded:bl(t.toLowerCase())}}(n,{checksum:t});if("bool"===r.type)return function(t){if("boolean"!=typeof t)throw new Lu(`Invalid boolean value: "${t}" (type: ${typeof t}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:bl(pl(t))}}(n);if(r.type.startsWith("uint")||r.type.startsWith("int")){const t=r.type.startsWith("int"),[,,e="256"]=Zx.exec(r.type)??[];return function(t,{signed:e,size:n}){if("number"==typeof n){const r=2n**(BigInt(n)-(e?1n:0n))-1n,a=e?-r-1n:0n;if(t>r||t<a)throw new El({max:r.toString(),min:a.toString(),signed:e,size:n/8,value:t.toString()})}return{dynamic:!1,encoded:yl(t,{size:32,signed:e})}}(n,{signed:t,size:Number(e)})}if(r.type.startsWith("bytes"))return function(t,{type:e}){const[,n]=e.split("bytes"),r=xl(t);if(!n){let e=t;return r%32!=0&&(e=vl(e,32*Math.ceil((t.length-2)/2/32))),{dynamic:!0,encoded:fl(bl(yl(r,{size:32})),e)}}if(r!==Number.parseInt(n,10))throw new fk({expectedSize:Number.parseInt(n,10),value:t});return{dynamic:!1,encoded:vl(t)}}(n,{type:r.type});if("string"===r.type)return function(t){const e=gl(t),n=Math.ceil(xl(e)/32),r=[];for(let t=0;t<n;t++)r.push(vl(wl(e,32*t,32*(t+1))));return{dynamic:!0,encoded:fl(vl(yl(xl(e),{size:32})),...r)}}(n);throw new mk(r.type)}function Qx(t){let e=0;for(let n=0;n<t.length;n++){const{dynamic:r,encoded:a}=t[n];e+=r?32:xl(a)}const n=[],r=[];let a=0;for(let i=0;i<t.length;i++){const{dynamic:s,encoded:o}=t[i];s?(n.push(yl(e+a,{size:32})),r.push(o),a+=xl(o)):n.push(o)}return fl(...n,...r)}function Xx(t){const e=t.match(/^(.*)\[(\d+)?\]$/);return e?[e[2]?Number(e[2]):null,e[1]]:void 0}function tk(t){const{type:e}=t;if("string"===e)return!0;if("bytes"===e)return!0;if(e.endsWith("[]"))return!0;if("tuple"===e)return t.components?.some(tk);const n=Xx(t.type);return!(!n||!tk({...t,type:n[1]}))}const ek={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new ak({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(t){if(t<0||t>this.bytes.length-1)throw new rk({length:this.bytes.length,position:t})},decrementPosition(t){if(t<0)throw new nk({offset:t});const e=this.position-t;this.assertPosition(e),this.position=e},getReadCount(t){return this.positionReadCount.get(t||this.position)||0},incrementPosition(t){if(t<0)throw new nk({offset:t});const e=this.position+t;this.assertPosition(e),this.position=e},inspectByte(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectBytes(t,e){const n=e??this.position;return this.assertPosition(n+t-1),this.bytes.subarray(n,n+t)},inspectUint8(t){const e=t??this.position;return this.assertPosition(e),this.bytes[e]},inspectUint16(t){const e=t??this.position;return this.assertPosition(e+1),this.dataView.getUint16(e)},inspectUint24(t){const e=t??this.position;return this.assertPosition(e+2),(this.dataView.getUint16(e)<<8)+this.dataView.getUint8(e+2)},inspectUint32(t){const e=t??this.position;return this.assertPosition(e+3),this.dataView.getUint32(e)},pushByte(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushBytes(t){this.assertPosition(this.position+t.length-1),this.bytes.set(t,this.position),this.position+=t.length},pushUint8(t){this.assertPosition(this.position),this.bytes[this.position]=t,this.position++},pushUint16(t){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,t),this.position+=2},pushUint24(t){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,t>>8),this.dataView.setUint8(this.position+2,255&t),this.position+=3},pushUint32(t){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,t),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const t=this.inspectByte();return this.position++,t},readBytes(t,e){this.assertReadLimit(),this._touch();const n=this.inspectBytes(t);return this.position+=e??t,n},readUint8(){this.assertReadLimit(),this._touch();const t=this.inspectUint8();return this.position+=1,t},readUint16(){this.assertReadLimit(),this._touch();const t=this.inspectUint16();return this.position+=2,t},readUint24(){this.assertReadLimit(),this._touch();const t=this.inspectUint24();return this.position+=3,t},readUint32(){this.assertReadLimit(),this._touch();const t=this.inspectUint32();return this.position+=4,t},get remaining(){return this.bytes.length-this.position},setPosition(t){const e=this.position;return this.assertPosition(t),this.position=t,()=>this.position=e},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const t=this.getReadCount();this.positionReadCount.set(this.position,t+1),t>0&&this.recursiveReadCount++}};class nk extends Lu{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class rk extends Lu{constructor({length:t,position:e}){super(`Position \`${e}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class ak extends Lu{constructor({count:t,limit:e}){super(`Recursive read limit of \`${e}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}function ik(t,e,n={}){const{as:r="Array",checksumAddress:a=!1}=n,i="string"==typeof e?jl(e):e,s=function(t,{recursiveReadLimit:e=8192}={}){const n=Object.create(ek);return n.bytes=t,n.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=e,n}(i);if(0===Ul(i)&&t.length>0)throw new dk;if(Ul(i)&&Ul(i)<32)throw new uk({data:"string"==typeof e?e:ml(e),parameters:t,size:Ul(i)});let o=0;const c="Array"===r?[]:{};for(let e=0;e<t.length;++e){const n=t[e];s.setPosition(o);const[i,u]=Wx(s,n,{checksumAddress:a,staticPosition:0});o+=u,"Array"===r?c.push(i):c[n.name??e]=i}return c}function sk(t,e,n){const{checksumAddress:r=!1}={};if(t.length!==e.length)throw new hk({expectedLength:t.length,givenLength:e.length});const a=function({checksumAddress:t,parameters:e,values:n}){const r=[];for(let a=0;a<e.length;a++)r.push($x({checksumAddress:t,parameter:e[a],value:n[a]}));return r}({checksumAddress:r,parameters:t,values:e}),i=Qx(a);return 0===i.length?"0x":i}function ok(t,e){if(t.length!==e.length)throw new hk({expectedLength:t.length,givenLength:e.length});const n=[];for(let r=0;r<t.length;r++){const a=t[r],i=e[r];n.push(ok.encode(a,i))}return fl(...n)}function ck(t){return Array.isArray(t)&&"string"==typeof t[0]||"string"==typeof t?Gx(t):t}!function(t){t.encode=function t(e,n,r=!1){if("address"===e){const t=n;return _f(t),bl(t.toLowerCase(),r?32:0)}if("string"===e)return gl(n);if("bytes"===e)return n;if("bool"===e)return bl(pl(n),r?32:1);const a=e.match(Zx);if(a){const[t,e,i="256"]=a,s=Number.parseInt(i,10)/8;return yl(n,{size:r?32:s,signed:"int"===e})}const i=e.match(Vx);if(i){const[t,e]=i;if(Number.parseInt(e,10)!==(n.length-2)/2)throw new fk({expectedSize:Number.parseInt(e,10),value:n});return vl(n,r?32:0)}const s=e.match(Kx);if(s&&Array.isArray(n)){const[e,r]=s,a=[];for(let e=0;e<n.length;e++)a.push(t(r,n[e],!0));return 0===a.length?"0x":fl(...a)}throw new mk(e)}}(ok||(ok={}));class uk extends Lu{constructor({data:t,parameters:e,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${nx(e)})`,`Data: ${t} (${n} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class dk extends Lu{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class lk extends Lu{constructor({expectedLength:t,givenLength:e,type:n}){super(`Array length mismatch for type \`${n}\`. Expected: \`${t}\`. Given: \`${e}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class fk extends Lu{constructor({expectedSize:t,value:e}){super(`Size of bytes "${e}" (bytes${xl(e)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class hk extends Lu{constructor({expectedLength:t,givenLength:e}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${e}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class pk extends Lu{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class mk extends Lu{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}function yk(t,e={}){const{recovered:n}=e;if(void 0===t.r)throw new kk({signature:t});if(void 0===t.s)throw new kk({signature:t});if(n&&void 0===t.yParity)throw new kk({signature:t});if(t.r<0n||t.r>Hx)throw new Ak({value:t.r});if(t.s<0n||t.s>Hx)throw new Ik({value:t.s});if("number"==typeof t.yParity&&0!==t.yParity&&1!==t.yParity)throw new Ek({value:t.yParity})}function gk(t){if(130!==t.length&&132!==t.length)throw new xk({signature:t});const e=BigInt(wl(t,0,32)),n=BigInt(wl(t,32,64)),r=(()=>{const e=Number(`0x${t.slice(130)}`);if(!Number.isNaN(e))try{return wk(e)}catch{throw new Ek({value:e})}})();return void 0===r?{r:e,s:n}:{r:e,s:n,yParity:r}}function bk(t){if(void 0!==t.r&&void 0!==t.s)return function(t){const e="string"==typeof t?gk(t):t instanceof Uint8Array?function(t){return gk(ml(t))}(t):"string"==typeof t.r?function(t){const e=(()=>{const e=t.v?Number(t.v):void 0;let n=t.yParity?Number(t.yParity):void 0;if("number"==typeof e&&"number"!=typeof n&&(n=wk(e)),"number"!=typeof n)throw new Ek({value:t.yParity});return n})();return{r:BigInt(t.r),s:BigInt(t.s),yParity:e}}(t):t.v?function(t){return{r:t.r,s:t.s,yParity:wk(t.v)}}(t):{r:t.r,s:t.s,...void 0!==t.yParity?{yParity:t.yParity}:{}};return yk(e),e}(t)}function vk(t){yk(t);const e=t.r,n=t.s;return fl(yl(e,{size:32}),yl(n,{size:32}),"number"==typeof t.yParity?yl(function(t){if(0===t)return 27;if(1===t)return 28;throw new Ek({value:t})}(t.yParity),{size:1}):"0x")}function wk(t){if(0===t||27===t)return 0;if(1===t||28===t)return 1;if(t>=35)return t%2==0?1:0;throw new Pk({value:t})}class xk extends Lu{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${xl(hl(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class kk extends Lu{constructor({signature:t}){super(`Signature \`${ul(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class Ak extends Lu{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class Ik extends Lu{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class Ek extends Lu{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class Pk extends Lu{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}function Sk(t,e={}){return"string"==typeof t.chainId?function(t){const{address:e,chainId:n,nonce:r}=t,a=bk(t);return{address:e,chainId:Number(n),nonce:BigInt(r),...a}}(t):{...t,...e.signature}}const _k=ck("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function Ok(t){if("string"==typeof t){if("0x8010801080108010801080108010801080108010801080108010801080108010"!==wl(t,-32))throw new Tk(t)}else yk(t.authorization)}let Tk=class extends Lu{constructor(t){super(`Value \`${t}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}};function Bk(t){const{address:e,data:n,signature:r,to:a="hex"}=t,i=_m([Um([{type:"address"},{type:"bytes"},{type:"bytes"}],[e,n,r]),"0x6492649264926492649264926492649264926492649264926492649264926492"]);return"hex"===a?i:fm(i)}class Mk extends hp{constructor({value:t}){super(`Number \`${t}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}async function Ck(t,{address:e,blockNumber:n,blockTag:r,storageKeys:a}){const i=r??"latest",s=void 0!==n?im(n):void 0;return function(t){return{...t,balance:t.balance?BigInt(t.balance):void 0,nonce:t.nonce?Xp(t.nonce):void 0,storageProof:t.storageProof?(e=t.storageProof,e.map(t=>({...t,value:BigInt(t.value)}))):void 0};var e}(await t.request({method:"eth_getProof",params:[e,a,s||i]}))}async function Nk(t,{blockHash:e,blockNumber:n,blockTag:r,hash:a,index:i}){const s=r||"latest",o=void 0!==n?im(n):void 0;let c=null;if(c=a?await t.request({method:"eth_getTransactionByHash",params:[a]},{dedupe:!0}):e?await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[e,im(i)]},{dedupe:!0}):await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[o||s,im(i)]},{dedupe:Boolean(o)}),!c)throw new By({blockHash:e,blockNumber:n,blockTag:s,hash:a,index:i});return(t.chain?.formatters?.transaction?.format||eb)(c,"getTransaction")}async function jk(t,{hash:e}){const n=await t.request({method:"eth_getTransactionReceipt",params:[e]},{dedupe:!0});if(!n)throw new My({hash:e});return(t.chain?.formatters?.transactionReceipt?.format||Tv)(n,"getTransactionReceipt")}async function Rk(t,e){const{blockNumber:n,blockTag:r=t.experimental_blockTag??"latest",blocks:a,returnFullTransactions:i,traceTransfers:s,validation:o}=e;try{const e=[];for(const t of a){const n=t.blockOverrides?Fb(t.blockOverrides):void 0,r=t.calls.map(t=>{const e=t,n=e.account?Ym(e.account):void 0,r=e.abi?Qm(e):e.data,a={...e,account:n,data:e.dataSuffix?Sm([r||"0x",e.dataSuffix]):r,from:e.from??n?.address};return Jg(a),Kg(a)}),a=t.stateOverrides?Hg(t.stateOverrides):void 0;e.push({blockOverrides:n,calls:r,stateOverrides:a})}const c=("bigint"==typeof n?im(n):void 0)||r;return(await t.request({method:"eth_simulateV1",params:[{blockStateCalls:e,returnFullTransactions:i,traceTransfers:s,validation:o},c]})).map((t,e)=>({...rb(t),calls:t.calls.map((t,n)=>{const{abi:r,args:i,functionName:s,to:o}=a[e].calls[n],c=t.error?.data??t.returnData,u=BigInt(t.gasUsed),d=t.logs?.map(t=>Nb(t)),l="0x1"===t.status?"success":"failure",f=r&&"success"===l&&"0x"!==c?Lb({abi:r,data:c,functionName:s}):null,h=(()=>{if("success"===l)return;let e;return"0x"===t.error?.data?e=new bp:t.error&&(e=new Fy(t.error)),e?vg(e,{abi:r??[],address:o??"0x",args:i,functionName:s??"<unknown>"}):void 0})();return{data:c,gasUsed:u,logs:d,status:l,..."success"===l?{result:f}:{error:h}}})}))}catch(t){const e=t,n=Fg(e,{});if(n instanceof zg)throw e;throw n}}function Uk(t){let e=!0,n="",r=0,a="",i=!1;for(let s=0;s<t.length;s++){const o=t[s];if(["(",")",","].includes(o)&&(e=!0),"("===o&&r++,")"===o&&r--,e)if(0!==r)" "!==o?(a+=o,n+=o):","!==t[s-1]&&","!==n&&",("!==n&&(n="",e=!1);else if(" "===o&&["event","function","error",""].includes(a))a="";else if(a+=o,")"===o){i=!0;break}}if(!i)throw new Lu("Unable to normalize signature.");return a}function Lk(t,e){const n=typeof t,r=e.type;switch(r){case"address":return Tf(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:return"tuple"===r&&"components"in e?Object.values(e.components).every((e,n)=>Lk(Object.values(t)[n],e)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?"number"===n||"bigint"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?"string"===n||t instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)&&(Array.isArray(t)&&t.every(t=>Lk(t,{...e,type:r.replace(/(\[[0-9]{0,}\])$/,"")})))}}function zk(t,e,n){for(const r in t){const a=t[r],i=e[r];if("tuple"===a.type&&"tuple"===i.type&&"components"in a&&"components"in i)return zk(a.components,i.components,n[r]);const s=[a.type,i.type];if((()=>!(!s.includes("address")||!s.includes("bytes20"))||(s.includes("address")&&s.includes("string")||!(!s.includes("address")||!s.includes("bytes")))&&Tf(n[r],{strict:!1}))())return s}}function Fk(t,e={}){const{prepare:n=!0}=e,r=Array.isArray(t)||"string"==typeof t?qx(t):t;return{...r,...n?{hash:Gk(r)}:{}}}function Dk(t,e,n){const{args:r=[],prepare:a=!0}=n??{},i=Il(e,{strict:!1}),s=t.filter(t=>i?"function"===t.type||"error"===t.type?qk(t)===wl(e,0,4):"event"===t.type&&Gk(t)===e:"name"in t&&t.name===e);if(0===s.length)throw new Vk({name:e});if(1===s.length)return{...s[0],...a?{hash:Gk(s[0])}:{}};let o;for(const t of s){if(!("inputs"in t))continue;if(!r||0===r.length){if(!t.inputs||0===t.inputs.length)return{...t,...a?{hash:Gk(t)}:{}};continue}if(!t.inputs)continue;if(0===t.inputs.length)continue;if(t.inputs.length!==r.length)continue;const e=r.every((e,n)=>{const r="inputs"in t&&t.inputs[n];return!!r&&Lk(e,r)});if(e){if(o&&"inputs"in o&&o.inputs){const e=zk(t.inputs,o.inputs,r);if(e)throw new Kk({abiItem:t,type:e[0]},{abiItem:o,type:e[1]})}o=t}}const c=(()=>{if(o)return o;const[t,...e]=s;return{...t,overloads:e}})();if(!c)throw new Vk({name:e});return{...c,...a?{hash:Gk(c)}:{}}}function qk(...t){const e=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return Dk(e,n)}return t[0]})();return wl(Gk(e),0,4)}function Gk(...t){const e=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return Dk(e,n)}return t[0]})();return"string"!=typeof e&&"hash"in e&&e.hash?e.hash:yf(gl(function(...t){const e=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return Dk(e,n)}return t[0]})();return Uk("string"==typeof e?e:rx(e))}(e)))}class Kk extends Lu{constructor(t,e){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${Uk(rx(t.abiItem))}\`, and`,`\`${e.type}\` in \`${Uk(rx(e.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class Vk extends Lu{constructor({name:t,data:e,type:n="item"}){super(`ABI ${n}${t?` with name "${t}"`:e?` with data "${e}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}function Zk(t){const e=t.find(t=>"constructor"===t.type);if(!e)throw new Vk({name:"constructor"});return e}function Hk(...t){const[e,n=[]]=(()=>{if(Array.isArray(t[0])){const[e,n,r]=t;return[Jk(e,n,{args:r}),r]}const[e,n]=t;return[e,n]})(),{overloads:r}=e,a=r?Jk([e,...r],e.name,{args:n}):e,i=qk(a);const s=n.length>0?sk(a.inputs,n):void 0;return s?fl(i,s):i}function Wk(t,e={}){return Fk(t,e)}function Jk(t,e,n){const r=Dk(t,e,n);if("function"!==r.type)throw new Vk({name:e,type:"function"});return r}const Yk="0x0000000000000000000000000000000000000000";async function $k(t,e){const{blockNumber:n,blockTag:r,calls:a,stateOverrides:i,traceAssetChanges:s,traceTransfers:o,validation:c}=e,u=e.account?Ym(e.account):void 0;if(s&&!u)throw new hp("`account` is required when `traceAssetChanges` is true");const d=u?function(...t){const[e,n]=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return[Zk(e),n]}return t})(),{bytecode:r,args:a}=n;return fl(r,e.inputs?.length&&a?.length?sk(e.inputs,a):"0x")}(Fk("constructor(bytes, bytes)"),{bytecode:$b,args:["0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033",Hk(Wk("function getBalance(address)"),[u.address])]}):void 0;const l=s?await Promise.all(e.calls.map(async e=>{if(!e.data&&!e.abi)return;const{accessList:n}=await fw(t,{account:u.address,...e,data:e.abi?Qm(e):e.data});return n.map(({address:t,storageKeys:e})=>e.length>0?t:null)})).then(t=>t.flat().filter(Boolean)):[],f=await Rk(t,{blockNumber:n,blockTag:r,blocks:[...s?[{calls:[{data:d}],stateOverrides:i},{calls:l.map((t,e)=>({abi:[Wk("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[u.address],to:t,from:Yk,nonce:e})),stateOverrides:[{address:Yk,nonce:0}]}]:[],{calls:[...a,{}].map(t=>({...t,from:u?.address})),stateOverrides:i},...s?[{calls:[{data:d}]},{calls:l.map((t,e)=>({abi:[Wk("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[u.address],to:t,from:Yk,nonce:e})),stateOverrides:[{address:Yk,nonce:0}]},{calls:l.map((t,e)=>({to:t,abi:[Wk("function decimals() returns (uint256)")],functionName:"decimals",from:Yk,nonce:e})),stateOverrides:[{address:Yk,nonce:0}]},{calls:l.map((t,e)=>({to:t,abi:[Wk("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:Yk,nonce:e})),stateOverrides:[{address:Yk,nonce:0}]},{calls:l.map((t,e)=>({to:t,abi:[Wk("function symbol() returns (string)")],functionName:"symbol",from:Yk,nonce:e})),stateOverrides:[{address:Yk,nonce:0}]}]:[]],traceTransfers:o,validation:c}),h=s?f[2]:f[0],[p,m,,y,g,b,v,w]=s?f:[],{calls:x,...k}=h,A=x.slice(0,-1)??[],I=[...p?.calls??[],...m?.calls??[]].map(t=>"success"===t.status?Qp(t.data):null),E=[...y?.calls??[],...g?.calls??[]].map(t=>"success"===t.status?Qp(t.data):null),P=(b?.calls??[]).map(t=>"success"===t.status?t.result:null),S=(w?.calls??[]).map(t=>"success"===t.status?t.result:null),_=(v?.calls??[]).map(t=>"success"===t.status?t.result:null),O=[];for(const[t,e]of E.entries()){const n=I[t];if("bigint"!=typeof e)continue;if("bigint"!=typeof n)continue;const r=P[t-1],a=S[t-1],i=_[t-1],s=(()=>0===t?{address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",decimals:18,symbol:"ETH"}:{address:l[t-1],decimals:i||r?Number(r??1):void 0,symbol:a??void 0})();O.some(t=>t.token.address===s.address)||O.push({token:s,value:{pre:n,post:e,diff:e-n}})}return{assetChanges:O,block:k,results:A}}const Qk="0x6492649264926492649264926492649264926492649264926492649264926492";function Xk(t){try{return function(t){if(wl(t,-32)!==Qk)throw new tA(t)}(t),!0}catch{return!1}}class tA extends Lu{constructor(t){super(`Value \`${t}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}}async function eA(t,e){const{address:n,hash:r,erc6492VerifierAddress:a=e.universalSignatureVerifierAddress??t.chain?.contracts?.erc6492Verifier?.address,multicallAddress:i=e.multicallAddress??t.chain?.contracts?.multicall3?.address}=e,s=(()=>{const t=e.signature;return cp(t)?t:"object"==typeof t&&"r"in t&&"s"in t?function({r:t,s:e,to:n="hex",v:r,yParity:a}){const i=(()=>{if(0===a||1===a)return a;if(r&&(27n===r||28n===r||r>=35n))return r%2n==0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),s=`0x${new dc.Signature(Qp(t),Qp(e)).toCompactHex()}${0===i?"1b":"1c"}`;return"hex"===n?s:fm(s)}(t):am(t)})();try{return function(t){try{return Ok(t),!0}catch{return!1}}(s)?await async function(t,e){const{address:n,blockNumber:r,blockTag:a,hash:i,multicallAddress:s}=e,{authorization:o,data:c,signature:u,to:d}=function(t){Ok(t);const e=Al(wl(t,-64,-32)),n=wl(t,-e-64,-64),r=wl(t,0,-e-64),[a,i,s]=ik(_k,n);return{authorization:Sk({address:a.delegation,chainId:Number(a.chainId),nonce:a.nonce,yParity:a.yParity,r:a.r,s:a.s}),signature:r,...s&&"0x"!==s?{data:s,to:i}:{}}}(e.signature),l=await mw(t,{address:n,blockNumber:r,blockTag:a});if(l===_m(["0xef0100",o.address]))return await async function(t,e){const{address:n,blockNumber:r,blockTag:a,hash:i,signature:s}=e,o=await ip(t,hv,"readContract")({address:n,abi:Wb,args:[i,s],blockNumber:r,blockTag:a,functionName:"isValidSignature"}).catch(t=>{if(t instanceof Ry)throw new nA;throw t});if(o.startsWith("0x1626ba7e"))return!0;throw new nA}(t,{address:n,blockNumber:r,blockTag:a,hash:i,signature:u});const f={address:o.address,chainId:Number(o.chainId),nonce:Number(o.nonce),r:im(o.r,{size:32}),s:im(o.s,{size:32}),yParity:o.yParity},h=await async function({address:t,authorization:e,signature:n}){return Ob(Am(t),await Pg({authorization:e,signature:n}))}({address:n,authorization:f});if(!h)throw new nA;const p=await ip(t,hv,"readContract")({...s?{address:s}:{code:tv},authorizationList:[f],abi:Db,blockNumber:r,blockTag:"pending",functionName:"aggregate3",args:[[...c?[{allowFailure:!0,target:d??n,callData:c}]:[],{allowFailure:!0,target:n,callData:Qm({abi:Wb,functionName:"isValidSignature",args:[i,u]})}]]}),m=p[p.length-1]?.returnData;if(m?.startsWith("0x1626ba7e"))return!0;throw new nA}(t,{...e,multicallAddress:i,signature:s}):await async function(t,e){const{address:n,factory:r,factoryData:a,hash:i,signature:s,verifierAddress:o,...c}=e,u=await(async()=>r||a?Xk(s)?s:function(t){const{data:e,signature:n,to:r}=t;return fl(sk(ck("address, bytes, bytes"),[r,e,n]),Qk)}({data:a,signature:s,to:r}):s)(),d=o?{to:o,data:Qm({abi:Jb,functionName:"isValidSig",args:[n,i,u]}),...c}:{data:iv({abi:Jb,args:[n,i,u],bytecode:Xb}),...c},{data:l}=await ip(t,lv,"call")(d).catch(t=>{if(t instanceof jy)throw new nA;throw t});if(function(t,e={}){let n=t;if(e.size&&($p(n,{size:e.size}),n=Yp(n)),"0x00"===Yp(n))return!1;if("0x01"===Yp(n))return!0;throw new Wp(n)}(l??"0x0"))return!0;throw new nA}(t,{...e,verifierAddress:a,signature:s})}catch(t){try{if(Ob(Am(n),await xg({hash:r,signature:s})))return!0}catch{}if(t instanceof nA)return!1;throw t}}class nA extends Error{}function rA(t,{emitOnBegin:e=!1,emitMissed:n=!1,onBlockNumber:r,onError:a,poll:i,pollingInterval:s=t.pollingInterval}){let o;return(void 0!==i?i:"webSocket"!==t.transport.type&&"ipc"!==t.transport.type&&("fallback"!==t.transport.type||"webSocket"!==t.transport.transports[0].config.type&&"ipc"!==t.transport.transports[0].config.type))?gv(yy(["watchBlockNumber",t.uid,e,n,s]),{onBlockNumber:r,onError:a},r=>vv(async()=>{try{const e=await ip(t,Av,"getBlockNumber")({cacheTime:0});if(void 0!==o){if(e===o)return;if(e-o>1&&n)for(let t=o+1n;t<e;t++)r.onBlockNumber(t,o),o=t}(void 0===o||e>o)&&(r.onBlockNumber(e,o),o=e)}catch(t){r.onError?.(t)}},{emitOnBegin:e,interval:s})):gv(yy(["watchBlockNumber",t.uid,e,n]),{onBlockNumber:r,onError:a},e=>{let n=!0,r=()=>n=!1;return(async()=>{try{const a=(()=>{if("fallback"===t.transport.type){const e=t.transport.transports.find(t=>"webSocket"===t.config.type||"ipc"===t.config.type);return e?e.value:t.transport}return t.transport})(),{unsubscribe:i}=await a.subscribe({params:["newHeads"],onData(t){if(!n)return;const r=Qp(t.result?.number);e.onBlockNumber(r,o),o=r},onError(t){e.onError?.(t)}});r=i,n||r()}catch(t){a?.(t)}})(),()=>r()})}const aA=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,iA=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;async function sA(t,e){const{address:n,domain:r,message:a,nonce:i,scheme:s,signature:o,time:c=new Date,...u}=e,d=function(t){const{scheme:e,statement:n,...r}=t.match(aA)?.groups??{},{chainId:a,expirationTime:i,issuedAt:s,notBefore:o,requestId:c,...u}=t.match(iA)?.groups??{},d=t.split("Resources:")[1]?.split("\n- ").slice(1);return{...r,...u,...a?{chainId:Number(a)}:{},...i?{expirationTime:new Date(i)}:{},...s?{issuedAt:new Date(s)}:{},...o?{notBefore:new Date(o)}:{},...c?{requestId:c}:{},...d?{resources:d}:{},...e?{scheme:e}:{},...n?{statement:n}:{}}}(a);if(!d.address)return!1;const l=function(t){const{address:e,domain:n,message:r,nonce:a,scheme:i,time:s=new Date}=t;if(n&&r.domain!==n)return!1;if(a&&r.nonce!==a)return!1;if(i&&r.scheme!==i)return!1;if(r.expirationTime&&s>=r.expirationTime)return!1;if(r.notBefore&&s<r.notBefore)return!1;try{if(!r.address)return!1;if(!Pm(r.address,{strict:!1}))return!1;if(e&&!Ob(r.address,e))return!1}catch{return!1}return!0}({address:n,domain:r,message:d,nonce:i,scheme:s,time:c});if(!l)return!1;const f=Uw(a);return eA(t,{address:d.address,hash:f,signature:o,...u})}function oA(t){return{call:e=>lv(t,e),createAccessList:e=>fw(t,e),createBlockFilter:()=>async function(t){const e=Wm(t,{method:"eth_newBlockFilter"}),n=await t.request({method:"eth_newBlockFilter"});return{id:n,request:e(n),type:"block"}}(t),createContractEventFilter:e=>Jm(t,e),createEventFilter:e=>hw(t,e),createPendingTransactionFilter:()=>pw(t),estimateContractGas:e=>async function(t,e){const{abi:n,address:r,args:a,functionName:i,dataSuffix:s,...o}=e,c=Qm({abi:n,args:a,functionName:i});try{return await ip(t,_b,"estimateGas")({data:`${c}${s?s.replace("0x",""):""}`,to:r,...o})}catch(t){const e=o.account?Ym(o.account):void 0;throw vg(t,{abi:n,address:r,args:a,docsPath:"/docs/contract/estimateContractGas",functionName:i,sender:e?.address})}}(t,e),estimateGas:e=>_b(t,e),getBalance:e=>async function(t,{address:e,blockNumber:n,blockTag:r=t.experimental_blockTag??"latest"}){const a="bigint"==typeof n?im(n):void 0,i=await t.request({method:"eth_getBalance",params:[e,a||r]});return BigInt(i)}(t,e),getBlobBaseFee:()=>async function(t){const e=await t.request({method:"eth_blobBaseFee"});return BigInt(e)}(t),getBlock:e=>ib(t,e),getBlockNumber:e=>Av(t,e),getBlockTransactionCount:e=>async function(t,{blockHash:e,blockNumber:n,blockTag:r="latest"}={}){const a=void 0!==n?im(n):void 0;let i;return i=e?await t.request({method:"eth_getBlockTransactionCountByHash",params:[e]},{dedupe:!0}):await t.request({method:"eth_getBlockTransactionCountByNumber",params:[a||r]},{dedupe:Boolean(a)}),Xp(i)}(t,e),getBytecode:e=>mw(t,e),getChainId:()=>Ib(t),getCode:e=>mw(t,e),getContractEvents:e=>Rb(t,e),getEip712Domain:e=>async function(t,e){const{address:n,factory:r,factoryData:a}=e;try{const[e,i,s,o,c,u,d]=await ip(t,hv,"readContract")({abi:gw,address:n,functionName:"eip712Domain",factory:r,factoryData:a});return{domain:{name:i,version:s,chainId:Number(o),verifyingContract:c,salt:u},extensions:d,fields:e}}catch(t){const e=t;if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new yw({address:n});throw e}}(t,e),getEnsAddress:e=>async function(t,e){const{blockNumber:n,blockTag:r,coinType:a,name:i,gatewayUrls:s,strict:o}=e,{chain:c}=t,u=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return sv({blockNumber:n,chain:c,contract:"ensUniversalResolver"})})(),d=c?.ensTlds;if(d&&!d.some(t=>i.endsWith(t)))return null;const l=null!=a?[Wv(i),BigInt(a)]:[Wv(i)];try{const e=Qm({abi:Hb,functionName:"addr",args:l}),a={address:u,abi:Kb,functionName:"resolveWithGateways",args:[nm($v(i)),e,s??[Vv]],blockNumber:n,blockTag:r},o=ip(t,hv,"readContract"),c=await o(a);if("0x"===c[0])return null;const d=Lb({abi:Hb,args:l,functionName:"addr",data:c[0]});return"0x"===d||"0x00"===Yp(d)?null:d}catch(t){if(o)throw t;if(Fv(t))return null;throw t}}(t,e),getEnsAvatar:e=>async function(t,{blockNumber:e,blockTag:n,assetGatewayUrls:r,name:a,gatewayUrls:i,strict:s,universalResolverAddress:o}){const c=await ip(t,lw,"getEnsText")({blockNumber:e,blockTag:n,key:"avatar",name:a,universalResolverAddress:o,gatewayUrls:i,strict:s});if(!c)return null;try{return await dw(t,{record:c,gatewayUrls:r})}catch{return null}}(t,e),getEnsName:e=>async function(t,e){const{address:n,blockNumber:r,blockTag:a,coinType:i=60n,gatewayUrls:s,strict:o}=e,{chain:c}=t,u=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!c)throw new Error("client chain not configured. universalResolverAddress is required.");return sv({blockNumber:r,chain:c,contract:"ensUniversalResolver"})})();try{const e={address:u,abi:Vb,args:[n,i,s??[Vv]],functionName:"reverseWithGateways",blockNumber:r,blockTag:a},o=ip(t,hv,"readContract"),[c]=await o(e);return c||null}catch(t){if(o)throw t;if(Fv(t))return null;throw t}}(t,e),getEnsResolver:e=>async function(t,e){const{blockNumber:n,blockTag:r,name:a}=e,{chain:i}=t,s=(()=>{if(e.universalResolverAddress)return e.universalResolverAddress;if(!i)throw new Error("client chain not configured. universalResolverAddress is required.");return sv({blockNumber:n,chain:i,contract:"ensUniversalResolver"})})(),o=i?.ensTlds;if(o&&!o.some(t=>a.endsWith(t)))throw new Error(`${a} is not a valid ENS TLD (${o?.join(", ")}) for chain "${i.name}" (id: ${i.id}).`);const[c]=await ip(t,hv,"readContract")({address:s,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"},{type:"uint256"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[nm($v(a))],blockNumber:n,blockTag:r});return c}(t,e),getEnsText:e=>lw(t,e),getFeeHistory:e=>bw(t,e),estimateFeesPerGas:e=>cb(t,e),getFilterChanges:t=>Iv(0,t),getFilterLogs:t=>async function(t,{filter:e}){const n=e.strict??!1,r=(await e.request({method:"eth_getFilterLogs",params:[e.id]})).map(t=>Nb(t));return e.abi?Cb({abi:e.abi,logs:r,strict:n}):r}(0,t),getGasPrice:()=>sb(t),getLogs:e=>jb(t,e),getProof:e=>Ck(t,e),estimateMaxPriorityFeePerGas:e=>async function(t,e){return ob(t,e)}(t,e),getStorageAt:e=>async function(t,{address:e,blockNumber:n,blockTag:r="latest",slot:a}){const i=void 0!==n?im(n):void 0;return await t.request({method:"eth_getStorageAt",params:[e,a,i||r]})}(t,e),getTransaction:e=>Nk(t,e),getTransactionConfirmations:e=>async function(t,{hash:e,transactionReceipt:n}){const[r,a]=await Promise.all([ip(t,Av,"getBlockNumber")({}),e?ip(t,Nk,"getTransaction")({hash:e}):void 0]),i=n?.blockNumber||a?.blockNumber;return i?r-i+1n:0n}(t,e),getTransactionCount:e=>db(t,e),getTransactionReceipt:e=>jk(t,e),multicall:e=>async function(t,e){const{account:n,authorizationList:r,allowFailure:a=!0,blockNumber:i,blockOverrides:s,blockTag:o,stateOverride:c}=e,u=e.contracts,{batchSize:d=e.batchSize??1024,deployless:l=e.deployless??!1}="object"==typeof t.batch?.multicall?t.batch.multicall:{},f=(()=>{if(e.multicallAddress)return e.multicallAddress;if(l)return null;if(t.chain)return sv({blockNumber:i,chain:t.chain,contract:"multicall3"});throw new Error("client chain not configured. multicallAddress is required.")})(),h=[[]];let p=0,m=0;for(let t=0;t<u.length;t++){const{abi:e,address:r,args:i,functionName:s}=u[t];try{const t=Qm({abi:e,args:i,functionName:s});m+=(t.length-2)/2,d>0&&m>d&&h[p].length>0&&(p++,m=(t.length-2)/2,h[p]=[]),h[p]=[...h[p],{allowFailure:!0,callData:t,target:r}]}catch(t){const o=vg(t,{abi:e,address:r,args:i,docsPath:"/docs/contract/multicall",functionName:s,sender:n});if(!a)throw o;h[p]=[...h[p],{allowFailure:!0,callData:"0x",target:r}]}}const y=await Promise.allSettled(h.map(e=>ip(t,hv,"readContract")({...null===f?{code:tv}:{address:f},abi:Db,account:n,args:[e],authorizationList:r,blockNumber:i,blockOverrides:s,blockTag:o,functionName:"aggregate3",stateOverride:c}))),g=[];for(let t=0;t<y.length;t++){const e=y[t];if("rejected"===e.status){if(!a)throw e.reason;for(let n=0;n<h[t].length;n++)g.push({status:"failure",error:e.reason,result:void 0});continue}const n=e.value;for(let e=0;e<n.length;e++){const{returnData:r,success:i}=n[e],{callData:s}=h[t][e],{abi:o,address:c,functionName:d,args:l}=u[g.length];try{if("0x"===s)throw new bp;if(!i)throw new Fy({data:r});const t=Lb({abi:o,args:l,data:r,functionName:d});g.push(a?{result:t,status:"success"}:t)}catch(t){const e=vg(t,{abi:o,address:c,args:l,docsPath:"/docs/contract/multicall",functionName:d});if(!a)throw e;g.push({error:e,result:void 0,status:"failure"})}}}if(g.length!==u.length)throw new hp("multicall results mismatch");return g}(t,e),prepareTransactionRequest:e=>Sb(t,e),readContract:e=>hv(t,e),sendRawTransaction:e=>async function(t,{serializedTransaction:e}){return t.request({method:"eth_sendRawTransaction",params:[e]},{retryCount:0})}(t,e),sendRawTransactionSync:e=>async function(t,{serializedTransaction:e,throwOnReceiptRevert:n,timeout:r}){const a=await t.request({method:"eth_sendRawTransactionSync",params:r?[e,im(r)]:[e]},{retryCount:0}),i=(t.chain?.formatters?.transactionReceipt?.format||Tv)(a);if("reverted"===i.status&&n)throw new Cy({receipt:i});return i}(t,e),simulate:e=>Rk(t,e),simulateBlocks:e=>Rk(t,e),simulateCalls:e=>$k(t,e),simulateContract:e=>async function(t,e){const{abi:n,address:r,args:a,dataSuffix:i,functionName:s,...o}=e,c=o.account?Ym(o.account):t.account,u=Qm({abi:n,args:a,functionName:s});try{const{data:d}=await ip(t,lv,"call")({batch:!1,data:`${u}${i?i.replace("0x",""):""}`,to:r,...o,account:c});return{result:Lb({abi:n,args:a,functionName:s,data:d||"0x"}),request:{abi:n.filter(t=>"name"in t&&t.name===e.functionName),address:r,args:a,dataSuffix:i,functionName:s,...o,account:c}}}catch(t){throw vg(t,{abi:n,address:r,args:a,docsPath:"/docs/contract/simulateContract",functionName:s,sender:c?.address})}}(t,e),verifyHash:e=>eA(t,e),verifyMessage:e=>async function(t,{address:e,message:n,factory:r,factoryData:a,signature:i,...s}){return eA(t,{address:e,factory:r,factoryData:a,hash:Uw(n),signature:i,...s})}(t,e),verifySiweMessage:e=>sA(t,e),verifyTypedData:e=>async function(t,e){const{address:n,factory:r,factoryData:a,signature:i,message:s,primaryType:o,types:c,domain:u,...d}=e;return eA(t,{address:n,factory:r,factoryData:a,hash:Gw({message:s,primaryType:o,types:c,domain:u}),signature:i,...d})}(t,e),uninstallFilter:t=>Ev(0,t),waitForTransactionReceipt:e=>async function(t,e){const{checkReplacement:n=!0,confirmations:r=1,hash:a,onReplaced:i,retryCount:s=6,retryDelay:o=({count:t})=>200*(1<<t),timeout:c=18e4}=e,u=yy(["waitForTransactionReceipt",t.uid,a]),d=e.pollingInterval?e.pollingInterval:t.chain?.experimental_preconfirmationTime?t.chain.experimental_preconfirmationTime:t.pollingInterval;let l,f,h,p,m,y=!1;const{promise:g,resolve:b,reject:v}=cv(),w=c?setTimeout(()=>{m?.(),p?.(),v(new Ny({hash:a}))},c):void 0;return p=gv(u,{onReplaced:i,resolve:b,reject:v},async e=>{if(h=await ip(t,jk,"getTransactionReceipt")({hash:a}).catch(()=>{}),h&&r<=1)return clearTimeout(w),e.resolve(h),void p?.();m=ip(t,rA,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:d,async onBlockNumber(i){const c=t=>{clearTimeout(w),m?.(),t(),p?.()};let u=i;if(!y)try{if(h){if(r>1&&(!h.blockNumber||u-h.blockNumber+1n<r))return;return void c(()=>e.resolve(h))}if(n&&!l&&(y=!0,await _v(async()=>{l=await ip(t,Nk,"getTransaction")({hash:a}),l.blockNumber&&(u=l.blockNumber)},{delay:o,retryCount:s}),y=!1),h=await ip(t,jk,"getTransactionReceipt")({hash:a}),r>1&&(!h.blockNumber||u-h.blockNumber+1n<r))return;c(()=>e.resolve(h))}catch(n){if(n instanceof By||n instanceof My){if(!l)return void(y=!1);try{f=l,y=!0;const n=await _v(()=>ip(t,ib,"getBlock")({blockNumber:u,includeTransactions:!0}),{delay:o,retryCount:s,shouldRetry:({error:t})=>t instanceof Xg});y=!1;const a=n.transactions.find(({from:t,nonce:e})=>t===f.from&&e===f.nonce);if(!a)return;if(h=await ip(t,jk,"getTransactionReceipt")({hash:a.hash}),r>1&&(!h.blockNumber||u-h.blockNumber+1n<r))return;let i="replaced";a.to===f.to&&a.value===f.value&&a.input===f.input?i="repriced":a.from===a.to&&0n===a.value&&(i="cancelled"),c(()=>{e.onReplaced?.({reason:i,replacedTransaction:f,transaction:a,transactionReceipt:h}),e.resolve(h)})}catch(t){c(()=>e.reject(t))}}else c(()=>e.reject(n))}}})}),g}(t,e),watchBlocks:e=>function(t,{blockTag:e=t.experimental_blockTag??"latest",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:a,onError:i,includeTransactions:s,poll:o,pollingInterval:c=t.pollingInterval}){const u=void 0!==o?o:"webSocket"!==t.transport.type&&"ipc"!==t.transport.type&&("fallback"!==t.transport.type||"webSocket"!==t.transport.transports[0].config.type&&"ipc"!==t.transport.transports[0].config.type),d=s??!1;let l;return u?gv(yy(["watchBlocks",t.uid,e,n,r,d,c]),{onBlock:a,onError:i},a=>vv(async()=>{try{const r=await ip(t,ib,"getBlock")({blockTag:e,includeTransactions:d});if(null!==r.number&&null!=l?.number){if(r.number===l.number)return;if(r.number-l.number>1&&n)for(let e=l?.number+1n;e<r.number;e++){const n=await ip(t,ib,"getBlock")({blockNumber:e,includeTransactions:d});a.onBlock(n,l),l=n}}(null==l?.number||"pending"===e&&null==r?.number||null!==r.number&&r.number>l.number)&&(a.onBlock(r,l),l=r)}catch(t){a.onError?.(t)}},{emitOnBegin:r,interval:c})):(()=>{let n=!0,s=!0,o=()=>n=!1;return(async()=>{try{r&&ip(t,ib,"getBlock")({blockTag:e,includeTransactions:d}).then(t=>{n&&s&&(a(t,void 0),s=!1)}).catch(i);const c=(()=>{if("fallback"===t.transport.type){const e=t.transport.transports.find(t=>"webSocket"===t.config.type||"ipc"===t.config.type);return e?e.value:t.transport}return t.transport})(),{unsubscribe:u}=await c.subscribe({params:["newHeads"],async onData(e){if(!n)return;const r=await ip(t,ib,"getBlock")({blockNumber:e.result?.number,includeTransactions:d}).catch(()=>{});n&&(a(r,l),s=!1,l=r)},onError(t){i?.(t)}});o=u,n||o()}catch(t){i?.(t)}})(),()=>o()})()}(t,e),watchBlockNumber:e=>rA(t,e),watchContractEvent:e=>function(t,e){const{abi:n,address:r,args:a,batch:i=!0,eventName:s,fromBlock:o,onError:c,onLogs:u,poll:d,pollingInterval:l=t.pollingInterval,strict:f}=e;return(void 0!==d?d:"bigint"==typeof o||"webSocket"!==t.transport.type&&"ipc"!==t.transport.type&&("fallback"!==t.transport.type||"webSocket"!==t.transport.transports[0].config.type&&"ipc"!==t.transport.transports[0].config.type))?(()=>{const e=f??!1;return gv(yy(["watchContractEvent",r,a,i,t.uid,s,l,e,o]),{onLogs:u,onError:c},c=>{let u,d;void 0!==o&&(u=o-1n);let f=!1;const h=vv(async()=>{if(f)try{let o;if(d)o=await ip(t,Iv,"getFilterChanges")({filter:d});else{const i=await ip(t,Av,"getBlockNumber")({});o=u&&u<i?await ip(t,Rb,"getContractEvents")({abi:n,address:r,args:a,eventName:s,fromBlock:u+1n,toBlock:i,strict:e}):[],u=i}if(0===o.length)return;if(i)c.onLogs(o);else for(const t of o)c.onLogs([t])}catch(t){d&&t instanceof $y&&(f=!1),c.onError?.(t)}else{try{d=await ip(t,Jm,"createContractEventFilter")({abi:n,address:r,args:a,eventName:s,strict:e,fromBlock:o})}catch{}f=!0}},{emitOnBegin:!0,interval:l});return async()=>{d&&await ip(t,Ev,"uninstallFilter")({filter:d}),h()}})})():(()=>{const e=f??!1,o=yy(["watchContractEvent",r,a,i,t.uid,s,l,e]);let d=!0,h=()=>d=!1;return gv(o,{onLogs:u,onError:c},e=>((async()=>{try{const i=(()=>{if("fallback"===t.transport.type){const e=t.transport.transports.find(t=>"webSocket"===t.config.type||"ipc"===t.config.type);return e?e.value:t.transport}return t.transport})(),o=s?Zm({abi:n,eventName:s,args:a}):[],{unsubscribe:c}=await i.subscribe({params:["logs",{address:r,topics:o}],onData(t){if(!d)return;const r=t.result;try{const{eventName:t,args:a}=Bb({abi:n,data:r.data,topics:r.topics,strict:f}),i=Nb(r,{args:a,eventName:t});e.onLogs([i])}catch(t){let n,a;if(t instanceof Cp||t instanceof Np){if(f)return;n=t.abiItem.name,a=t.abiItem.inputs?.some(t=>!("name"in t&&t.name))}const i=Nb(r,{args:a?[]:{},eventName:n});e.onLogs([i])}},onError(t){e.onError?.(t)}});h=c,d||h()}catch(t){c?.(t)}})(),()=>h()))})()}(t,e),watchEvent:e=>function(t,{address:e,args:n,batch:r=!0,event:a,events:i,fromBlock:s,onError:o,onLogs:c,poll:u,pollingInterval:d=t.pollingInterval,strict:l}){const f=void 0!==u?u:"bigint"==typeof s||"webSocket"!==t.transport.type&&"ipc"!==t.transport.type&&("fallback"!==t.transport.type||"webSocket"!==t.transport.transports[0].config.type&&"ipc"!==t.transport.transports[0].config.type),h=l??!1;return f?gv(yy(["watchEvent",e,n,r,t.uid,a,d,s]),{onLogs:c,onError:o},o=>{let c,u;void 0!==s&&(c=s-1n);let l=!1;const f=vv(async()=>{if(l)try{let s;if(u)s=await ip(t,Iv,"getFilterChanges")({filter:u});else{const r=await ip(t,Av,"getBlockNumber")({});s=c&&c!==r?await ip(t,jb,"getLogs")({address:e,args:n,event:a,events:i,fromBlock:c+1n,toBlock:r}):[],c=r}if(0===s.length)return;if(r)o.onLogs(s);else for(const t of s)o.onLogs([t])}catch(t){u&&t instanceof $y&&(l=!1),o.onError?.(t)}else{try{u=await ip(t,hw,"createEventFilter")({address:e,args:n,event:a,events:i,strict:h,fromBlock:s})}catch{}l=!0}},{emitOnBegin:!0,interval:d});return async()=>{u&&await ip(t,Ev,"uninstallFilter")({filter:u}),f()}}):(()=>{let r=!0,s=()=>r=!1;return(async()=>{try{const u=(()=>{if("fallback"===t.transport.type){const e=t.transport.transports.find(t=>"webSocket"===t.config.type||"ipc"===t.config.type);return e?e.value:t.transport}return t.transport})(),d=i??(a?[a]:void 0);let f=[];if(d){const t=d.flatMap(t=>Zm({abi:[t],eventName:t.name,args:n}));f=[t],a&&(f=f[0])}const{unsubscribe:p}=await u.subscribe({params:["logs",{address:e,topics:f}],onData(t){if(!r)return;const e=t.result;try{const{eventName:t,args:n}=Bb({abi:d??[],data:e.data,topics:e.topics,strict:h}),r=Nb(e,{args:n,eventName:t});c([r])}catch(t){let n,r;if(t instanceof Cp||t instanceof Np){if(l)return;n=t.abiItem.name,r=t.abiItem.inputs?.some(t=>!("name"in t&&t.name))}const a=Nb(e,{args:r?[]:{},eventName:n});c([a])}},onError(t){o?.(t)}});s=p,r||s()}catch(t){o?.(t)}})(),()=>s()})()}(t,e),watchPendingTransactions:e=>function(t,{batch:e=!0,onError:n,onTransactions:r,poll:a,pollingInterval:i=t.pollingInterval}){return(void 0!==a?a:"webSocket"!==t.transport.type&&"ipc"!==t.transport.type)?gv(yy(["watchPendingTransactions",t.uid,e,i]),{onTransactions:r,onError:n},n=>{let r;const a=vv(async()=>{try{if(!r)try{return void(r=await ip(t,pw,"createPendingTransactionFilter")({}))}catch(t){throw a(),t}const i=await ip(t,Iv,"getFilterChanges")({filter:r});if(0===i.length)return;if(e)n.onTransactions(i);else for(const t of i)n.onTransactions([t])}catch(t){n.onError?.(t)}},{emitOnBegin:!0,interval:i});return async()=>{r&&await ip(t,Ev,"uninstallFilter")({filter:r}),a()}}):(()=>{let e=!0,a=()=>e=!1;return(async()=>{try{const{unsubscribe:i}=await t.transport.subscribe({params:["newPendingTransactions"],onData(t){if(!e)return;const n=t.result;r([n])},onError(t){n?.(t)}});a=i,e||a()}catch(t){n?.(t)}})(),()=>a()})()}(t,e)}}class cA extends hp{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}function uA(t,e={}){const{batch:n,fetchFn:r,fetchOptions:a,key:i="http",methods:s,name:o="HTTP JSON-RPC",onFetchRequest:c,onFetchResponse:u,retryDelay:d,raw:l}=e;return({chain:f,retryCount:h,timeout:p})=>{const{batchSize:m=1e3,wait:y=0}="object"==typeof n?n:{},g=e.retryCount??h,b=p??e.timeout??1e4,v=t||f?.rpcUrls.default.http[0];if(!v)throw new cA;const w=Rw(v,{fetchFn:r,fetchOptions:a,onRequest:c,onResponse:u,timeout:b});return function({key:t,methods:e,name:n,request:r,retryCount:a=3,retryDelay:i=150,timeout:s,type:o},c){return{config:{key:t,methods:e,name:n,request:r,retryCount:a,retryDelay:i,timeout:s,type:o},request:Ew(r,{methods:e,retryCount:a,retryDelay:i,uid:Lv()}),value:c}}({key:i,methods:s,name:o,async request({method:t,params:e}){const r={method:t,params:e},{schedule:a}=dv({id:v,wait:y,shouldSplitBatch:t=>t.length>m,fn:t=>w.request({body:t}),sort:(t,e)=>t.id-e.id}),[{error:i,result:s}]=await(async t=>n?a(t):[await w.request({body:t})])(r);if(l)return{error:i,result:s};if(i)throw new qy({body:r,error:i,url:v});return s},retryCount:g,retryDelay:d,timeout:b,type:"http"},{fetchOptions:a,url:v})}}function dA(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]])}return n}var lA,fA,hA;function pA(t,e,n){var r,a,i;window.ClientAnalytics&&(null===(r=window.ClientAnalytics)||void 0===r||r.logEvent(t,Object.assign(Object.assign({},e),{sdkVersion:$f,sdkName:Yf,appName:null!==(i=null===(a=oh.config.get().metadata)||void 0===a?void 0:a.appName)&&void 0!==i?i:"",appOrigin:window.location.origin}),n))}"function"==typeof SuppressedError&&SuppressedError,function(t){t.unknown="unknown",t.banner="banner",t.button="button",t.card="card",t.chart="chart",t.content_script="content_script",t.dropdown="dropdown",t.link="link",t.page="page",t.modal="modal",t.table="table",t.search_bar="search_bar",t.service_worker="service_worker",t.text="text",t.text_input="text_input",t.tray="tray",t.checkbox="checkbox",t.icon="icon"}(lA||(lA={})),function(t){t.unknown="unknown",t.blur="blur",t.click="click",t.change="change",t.dismiss="dismiss",t.focus="focus",t.hover="hover",t.select="select",t.measurement="measurement",t.move="move",t.process="process",t.render="render",t.scroll="scroll",t.view="view",t.search="search",t.keyPress="keyPress",t.error="error"}(fA||(fA={})),function(t){t.low="low",t.high="high"}(hA||(hA={}));const mA=({dialogContext:t})=>{pA(`dialog.${t}.shown`,{action:fA.render,componentType:lA.modal,dialogContext:t},hA.high)},yA=({dialogContext:t})=>{pA(`dialog.${t}.dismissed`,{action:fA.dismiss,componentType:lA.modal,dialogContext:t},hA.high)},gA=({dialogContext:t,dialogAction:e})=>{pA(`dialog.${t}.action_clicked`,{action:fA.click,componentType:lA.button,dialogContext:t,dialogAction:e},hA.high)},bA="BaseSans-Regular";var vA,wA,xA,kA,AA,IA,EA,PA,SA,_A,OA={},TA=[],BA=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,MA=Array.isArray;function CA(t,e){for(var n in e)t[n]=e[n];return t}function NA(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function jA(t,e,n){var r,a,i,s={};for(i in e)"key"==i?r=e[i]:"ref"==i?a=e[i]:s[i]=e[i];if(arguments.length>2&&(s.children=arguments.length>3?vA.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(i in t.defaultProps)void 0===s[i]&&(s[i]=t.defaultProps[i]);return RA(t,s,r,a,null)}function RA(t,e,n,r,a){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++xA:a,__i:-1,__u:0};return null==a&&null!=wA.vnode&&wA.vnode(i),i}function UA(t){return t.children}function LA(t,e){this.props=t,this.context=e}function zA(t,e){if(null==e)return t.__?zA(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?zA(t):null}function FA(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return FA(t)}}function DA(t){(!t.__d&&(t.__d=!0)&&kA.push(t)&&!qA.__r++||AA!==wA.debounceRendering)&&((AA=wA.debounceRendering)||IA)(qA)}function qA(){var t,e,n,r,a,i,s,o;for(kA.sort(EA);t=kA.shift();)t.__d&&(e=kA.length,r=void 0,i=(a=(n=t).__v).__e,s=[],o=[],n.__P&&((r=CA({},a)).__v=a.__v+1,wA.vnode&&wA.vnode(r),YA(n.__P,r,a,n.__n,n.__P.namespaceURI,32&a.__u?[i]:null,s,null==i?zA(a):i,!!(32&a.__u),o),r.__v=a.__v,r.__.__k[r.__i]=r,$A(s,r,o),r.__e!=i&&FA(r)),kA.length>e&&kA.sort(EA));qA.__r=0}function GA(t,e,n,r,a,i,s,o,c,u,d){var l,f,h,p,m,y=r&&r.__k||TA,g=e.length;for(n.__d=c,KA(n,e,y),c=n.__d,l=0;l<g;l++)null!=(h=n.__k[l])&&(f=-1===h.__i?OA:y[h.__i]||OA,h.__i=l,YA(t,h,f,a,i,s,o,c,u,d),p=h.__e,h.ref&&f.ref!=h.ref&&(f.ref&&XA(f.ref,null,h),d.push(h.ref,h.__c||p,h)),null==m&&null!=p&&(m=p),65536&h.__u||f.__k===h.__k?c=VA(h,c,t):"function"==typeof h.type&&void 0!==h.__d?c=h.__d:p&&(c=p.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=c,n.__e=m}function KA(t,e,n){var r,a,i,s,o,c=e.length,u=n.length,d=u,l=0;for(t.__k=[],r=0;r<c;r++)null!=(a=e[r])&&"boolean"!=typeof a&&"function"!=typeof a?(s=r+l,(a=t.__k[r]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?RA(null,a,null,null,null):MA(a)?RA(UA,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?RA(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=t,a.__b=t.__b+1,i=null,-1!==(o=a.__i=ZA(a,n,s,d))&&(d--,(i=n[o])&&(i.__u|=131072)),null==i||null===i.__v?(-1==o&&l--,"function"!=typeof a.type&&(a.__u|=65536)):o!==s&&(o==s-1?l--:o==s+1?l++:(o>s?l--:l++,a.__u|=65536))):a=t.__k[r]=null;if(d)for(r=0;r<u;r++)null!=(i=n[r])&&!(131072&i.__u)&&(i.__e==t.__d&&(t.__d=zA(i)),tI(i,i))}function VA(t,e,n){var r,a;if("function"==typeof t.type){for(r=t.__k,a=0;r&&a<r.length;a++)r[a]&&(r[a].__=t,e=VA(r[a],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=zA(t)),n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function ZA(t,e,n,r){var a=t.key,i=t.type,s=n-1,o=n+1,c=e[n];if(null===c||c&&a==c.key&&i===c.type&&!(131072&c.__u))return n;if(r>(null==c||131072&c.__u?0:1))for(;s>=0||o<e.length;){if(s>=0){if((c=e[s])&&!(131072&c.__u)&&a==c.key&&i===c.type)return s;s--}if(o<e.length){if((c=e[o])&&!(131072&c.__u)&&a==c.key&&i===c.type)return o;o++}}return-1}function HA(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||BA.test(e)?n:n+"px"}function WA(t,e,n,r,a){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||HA(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||HA(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||"onFocusOut"===e||"onFocusIn"===e?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r?n.u=r.u:(n.u=PA,t.addEventListener(e,i?_A:SA,i)):t.removeEventListener(e,i?_A:SA,i);else{if("http://www.w3.org/2000/svg"==a)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function JA(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=PA++;else if(e.t<n.u)return;return n(wA.event?wA.event(e):e)}}}function YA(t,e,n,r,a,i,s,o,c,u){var d,l,f,h,p,m,y,g,b,v,w,x,k,A,I,E,P=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(c=!!(32&n.__u),i=[o=e.__e=n.__e]),(d=wA.__b)&&d(e);t:if("function"==typeof P)try{if(g=e.props,b="prototype"in P&&P.prototype.render,v=(d=P.contextType)&&r[d.__c],w=d?v?v.props.value:d.__:r,n.__c?y=(l=e.__c=n.__c).__=l.__E:(b?e.__c=l=new P(g,w):(e.__c=l=new LA(g,w),l.constructor=P,l.render=eI),v&&v.sub(l),l.props=g,l.state||(l.state={}),l.context=w,l.__n=r,f=l.__d=!0,l.__h=[],l._sb=[]),b&&null==l.__s&&(l.__s=l.state),b&&null!=P.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=CA({},l.__s)),CA(l.__s,P.getDerivedStateFromProps(g,l.__s))),h=l.props,p=l.state,l.__v=e,f)b&&null==P.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),b&&null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(b&&null==P.getDerivedStateFromProps&&g!==h&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(g,w),!l.__e&&(null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(g,l.__s,w)||e.__v===n.__v)){for(e.__v!==n.__v&&(l.props=g,l.state=l.__s,l.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.some(function(t){t&&(t.__=e)}),x=0;x<l._sb.length;x++)l.__h.push(l._sb[x]);l._sb=[],l.__h.length&&s.push(l);break t}null!=l.componentWillUpdate&&l.componentWillUpdate(g,l.__s,w),b&&null!=l.componentDidUpdate&&l.__h.push(function(){l.componentDidUpdate(h,p,m)})}if(l.context=w,l.props=g,l.__P=t,l.__e=!1,k=wA.__r,A=0,b){for(l.state=l.__s,l.__d=!1,k&&k(e),d=l.render(l.props,l.state,l.context),I=0;I<l._sb.length;I++)l.__h.push(l._sb[I]);l._sb=[]}else do{l.__d=!1,k&&k(e),d=l.render(l.props,l.state,l.context),l.state=l.__s}while(l.__d&&++A<25);l.state=l.__s,null!=l.getChildContext&&(r=CA(CA({},r),l.getChildContext())),b&&!f&&null!=l.getSnapshotBeforeUpdate&&(m=l.getSnapshotBeforeUpdate(h,p)),GA(t,MA(E=null!=d&&d.type===UA&&null==d.key?d.props.children:d)?E:[E],e,n,r,a,i,s,o,c,u),l.base=e.__e,e.__u&=-161,l.__h.length&&s.push(l),y&&(l.__E=l.__=null)}catch(t){if(e.__v=null,c||null!=i){for(e.__u|=c?160:32;o&&8===o.nodeType&&o.nextSibling;)o=o.nextSibling;i[i.indexOf(o)]=null,e.__e=o}else e.__e=n.__e,e.__k=n.__k;wA.__e(t,e,n)}else null==i&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=QA(n.__e,e,n,r,a,i,s,c,u);(d=wA.diffed)&&d(e)}function $A(t,e,n){e.__d=void 0;for(var r=0;r<n.length;r++)XA(n[r],n[++r],n[++r]);wA.__c&&wA.__c(e,t),t.some(function(e){try{t=e.__h,e.__h=[],t.some(function(t){t.call(e)})}catch(t){wA.__e(t,e.__v)}})}function QA(t,e,n,r,a,i,s,o,c){var u,d,l,f,h,p,m,y=n.props,g=e.props,b=e.type;if("svg"===b?a="http://www.w3.org/2000/svg":"math"===b?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=i)for(u=0;u<i.length;u++)if((h=i[u])&&"setAttribute"in h==!!b&&(b?h.localName===b:3===h.nodeType)){t=h,i[u]=null;break}if(null==t){if(null===b)return document.createTextNode(g);t=document.createElementNS(a,b,g.is&&g),o&&(wA.__m&&wA.__m(e,i),o=!1),i=null}if(null===b)y===g||o&&t.data===g||(t.data=g);else{if(i=i&&vA.call(t.childNodes),y=n.props||OA,!o&&null!=i)for(y={},u=0;u<t.attributes.length;u++)y[(h=t.attributes[u]).name]=h.value;for(u in y)if(h=y[u],"children"==u);else if("dangerouslySetInnerHTML"==u)l=h;else if(!(u in g)){if("value"==u&&"defaultValue"in g||"checked"==u&&"defaultChecked"in g)continue;WA(t,u,null,h,a)}for(u in g)h=g[u],"children"==u?f=h:"dangerouslySetInnerHTML"==u?d=h:"value"==u?p=h:"checked"==u?m=h:o&&"function"!=typeof h||y[u]===h||WA(t,u,h,y[u],a);if(d)o||l&&(d.__html===l.__html||d.__html===t.innerHTML)||(t.innerHTML=d.__html),e.__k=[];else if(l&&(t.innerHTML=""),GA(t,MA(f)?f:[f],e,n,r,"foreignObject"===b?"http://www.w3.org/1999/xhtml":a,i,s,i?i[0]:n.__k&&zA(n,0),o,c),null!=i)for(u=i.length;u--;)NA(i[u]);o||(u="value","progress"===b&&null==p?t.removeAttribute("value"):void 0!==p&&(p!==t[u]||"progress"===b&&!p||"option"===b&&p!==y[u])&&WA(t,u,p,y[u],a),u="checked",void 0!==m&&m!==t[u]&&WA(t,u,m,y[u],a))}return t}function XA(t,e,n){try{if("function"==typeof t){var r="function"==typeof t.__u;r&&t.__u(),r&&null==e||(t.__u=t(e))}else t.current=e}catch(t){wA.__e(t,n)}}function tI(t,e,n){var r,a;if(wA.unmount&&wA.unmount(t),(r=t.ref)&&(r.current&&r.current!==t.__e||XA(r,null,e)),null!=(r=t.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(t){wA.__e(t,e)}r.base=r.__P=null}if(r=t.__k)for(a=0;a<r.length;a++)r[a]&&tI(r[a],e,n||"function"!=typeof t.type);n||NA(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function eI(t,e,n){return this.constructor(t,n)}function nI(t,e,n){var r,a,i;wA.__&&wA.__(t,e),r=!1?null:e.__k,a=[],i=[],YA(e,t=e.__k=jA(UA,null,[t]),r||OA,OA,e.namespaceURI,r?null:e.firstChild?vA.call(e.childNodes):null,a,r?r.__e:e.firstChild,false,i),$A(a,t,i)}vA=TA.slice,wA={__e:function(t,e,n,r){for(var a,i,s;e=e.__;)if((a=e.__c)&&!a.__)try{if((i=a.constructor)&&null!=i.getDerivedStateFromError&&(a.setState(i.getDerivedStateFromError(t)),s=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(t,r||{}),s=a.__d),s)return a.__E=a}catch(e){t=e}throw t}},xA=0,LA.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=CA({},this.state),"function"==typeof t&&(t=t(CA({},n),this.props)),t&&CA(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),DA(this))},LA.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),DA(this))},LA.prototype.render=UA,kA=[],IA="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,EA=function(t,e){return t.__v.__b-e.__v.__b},qA.__r=0,PA=0,SA=JA(!1),_A=JA(!0);var rI=0;function aI(t,e,n,r,a,i){e||(e={});var s,o,c=e;"ref"in e&&(s=e.ref,delete e.ref);var u={type:t,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--rI,__i:-1,__u:0,__source:a,__self:i};if("function"==typeof t&&(s=t.defaultProps))for(o in s)void 0===c[o]&&(c[o]=s[o]);return wA.vnode&&wA.vnode(u),u}function iI(t){var e,n,r="";if("string"==typeof t||"number"==typeof t)r+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(n=iI(t[e]))&&(r&&(r+=" "),r+=n);else for(e in t)t[e]&&(r&&(r+=" "),r+=e);return r}function sI(){for(var t,e,n=0,r="";n<arguments.length;)(t=arguments[n++])&&(e=iI(t))&&(r&&(r+=" "),r+=e);return r}const oI=({fill:t})=>aI("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:aI("path",{d:"M0 2.014C0 1.58105 0 1.36457 0.0815779 1.19805C0.159686 1.03861 0.288611 0.909686 0.448049 0.831578C0.61457 0.75 0.831047 0.75 1.264 0.75H14.736C15.169 0.75 15.3854 0.75 15.552 0.831578C15.7114 0.909686 15.8403 1.03861 15.9184 1.19805C16 1.36457 16 1.58105 16 2.014V15.486C16 15.919 16 16.1354 15.9184 16.302C15.8403 16.4614 15.7114 16.5903 15.552 16.6684C15.3854 16.75 15.169 16.75 14.736 16.75H1.264C0.831047 16.75 0.61457 16.75 0.448049 16.6684C0.288611 16.5903 0.159686 16.4614 0.0815779 16.302C0 16.1354 0 15.919 0 15.486V2.014Z",fill:"blue"===t?"#0000FF":"#FFF"})});var cI,uI,dI,lI,fI=0,hI=[],pI=wA,mI=pI.__b,yI=pI.__r,gI=pI.diffed,bI=pI.__c,vI=pI.unmount,wI=pI.__;function xI(t,e){pI.__h&&pI.__h(uI,t,fI||e),fI=0;var n=uI.__H||(uI.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function kI(t){return fI=1,function(t,e){var n=xI(cI++,2);if(n.t=t,!n.__c&&(n.__=[TI(void 0,e),function(t){var e=n.__N?n.__N[0]:n.__[0],r=n.t(e,t);e!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=uI,!uI.u)){var r=function(t,e,r){if(!n.__c.__H)return!0;var i=n.__c.__H.__.filter(function(t){return!!t.__c});if(i.every(function(t){return!t.__N}))return!a||a.call(this,t,e,r);var s=!1;return i.forEach(function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(s=!0)}}),!(!s&&n.__c.props===t)&&(!a||a.call(this,t,e,r))};uI.u=!0;var a=uI.shouldComponentUpdate,i=uI.componentWillUpdate;uI.componentWillUpdate=function(t,e,n){if(this.__e){var s=a;a=void 0,r(t,e,n),a=s}i&&i.call(this,t,e,n)},uI.shouldComponentUpdate=r}return n.__N||n.__}(TI,t)}function AI(t,e){var n=xI(cI++,3);!pI.__s&&OI(n.__H,e)&&(n.__=t,n.i=e,uI.__H.__h.push(n))}function II(){for(var t;t=hI.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(SI),t.__H.__h.forEach(_I),t.__H.__h=[]}catch(e){t.__H.__h=[],pI.__e(e,t.__v)}}pI.__b=function(t){uI=null,mI&&mI(t)},pI.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),wI&&wI(t,e)},pI.__r=function(t){yI&&yI(t),cI=0;var e=(uI=t.__c).__H;e&&(dI===uI?(e.__h=[],uI.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.i=t.__N=void 0})):(e.__h.forEach(SI),e.__h.forEach(_I),e.__h=[],cI=0)),dI=uI},pI.diffed=function(t){gI&&gI(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==hI.push(e)&&lI===pI.requestAnimationFrame||((lI=pI.requestAnimationFrame)||PI)(II)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.i=void 0})),dI=uI=null},pI.__c=function(t,e){e.some(function(t){try{t.__h.forEach(SI),t.__h=t.__h.filter(function(t){return!t.__||_I(t)})}catch(n){e.some(function(t){t.__h&&(t.__h=[])}),e=[],pI.__e(n,t.__v)}}),bI&&bI(t,e)},pI.unmount=function(t){vI&&vI(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(t){try{SI(t)}catch(t){e=t}}),n.__H=void 0,e&&pI.__e(e,n.__v))};var EI="function"==typeof requestAnimationFrame;function PI(t){var e,n=function(){clearTimeout(r),EI&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);EI&&(e=requestAnimationFrame(n))}function SI(t){var e=uI,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),uI=e}function _I(t){var e=uI;t.__c=t.__(),uI=e}function OI(t,e){return!t||t.length!==e.length||e.some(function(e,n){return e!==t[n]})}function TI(t,e){return"function"==typeof e?e(t):e}function BI(){return window.innerWidth<=600&&window.innerHeight>window.innerWidth}const MI=()=>{const[t,e]=kI(!1);return AI(()=>{const t=()=>{e(BI())};return t(),window.addEventListener("resize",t),window.addEventListener("orientationchange",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}},[]),t?aI("div",{class:"-base-acc-sdk-dialog-handle-bar"}):null};class CI{constructor(){this.items=new Map,this.nextItemKey=0,this.root=null}attach(t){this.root=document.createElement("div"),this.root.className="-base-acc-sdk-dialog-root",t.appendChild(this.root),this.render()}presentItem(t){const e=this.nextItemKey++;this.items.set(e,t),this.render()}clear(){this.items.clear(),this.root&&nI(null,this.root)}render(){this.root&&nI(aI("div",{children:aI(NI,{children:Array.from(this.items.entries()).map(([t,e])=>jA(jI,Object.assign({},e,{key:t,handleClose:()=>{var t;this.clear(),null===(t=e.onClose)||void 0===t||t.call(e)}})))})}),this.root)}}const NI=t=>{const[e,n]=kI(0),[r,a]=kI(!1),[i,s]=kI(0);return aI("div",{class:sI("-base-acc-sdk-dialog-container"),children:[aI("style",{children:'.-base-acc-sdk-css-reset{-webkit-font-smoothing:antialiased;pointer-events:auto !important}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-container{position:fixed;top:0;left:0;width:100%;height:100%;z-index:2147483647}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-container *{user-select:none;box-sizing:border-box}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;padding:20px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-backdrop{align-items:flex-end;justify-content:stretch;padding:0}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog{position:relative;z-index:2147483648}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog{width:100%}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{background:#fff;border-radius:12px;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04);width:380px;max-height:90vh;overflow:hidden;transform:scale(0.95);opacity:0;transition:all .2s ease-in-out}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{touch-action:pan-y;user-select:none}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:scale(0.9);opacity:0}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:translateY(100%)}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:scale(1);opacity:1}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:translateY(0)}}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance{width:100%;max-width:100%;border-radius:20px 20px 0 0;box-shadow:0 -10px 25px rgba(0,0,0,.15);max-height:80vh;transform:translateY(0)}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-hidden{transform:translateY(100%);opacity:1}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance:not(.-base-acc-sdk-dialog-instance-hidden){transform:translateY(0);opacity:1}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px 0 20px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header{padding:16px 20px 12px 20px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-icon-and-title{display:flex;align-items:center;gap:8px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-icon-and-title-title{font-family:"BaseSans-Regular",sans-serif;font-size:14px;font-weight:400;color:#5b616e}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-cblogo{width:32px;height:32px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close{display:flex;align-items:center;justify-content:center;width:32px;height:32px;cursor:pointer;border-radius:6px;transition:background-color .2s}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close:hover{background-color:#f5f7f8}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close-icon{width:14px;height:14px}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-header-close-icon{display:none}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content{padding:20px 20px 16px 20px;font-family:"BaseSans-Regular",sans-serif}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content{padding:8px 20px 12px 20px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content-title{font-size:20px;font-weight:600;line-height:28px;color:#0a0b0d;margin-bottom:10px}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-content-message{font-size:16px;font-weight:400;line-height:24px;color:#5b616e;margin-bottom:0}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-actions{display:flex;padding:16px 20px 20px 20px;flex-direction:column}@media(max-width: 600px)and (orientation: portrait){.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-actions{padding:16px 20px calc(20px + env(safe-area-inset-bottom)) 20px;gap:6px}}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button{font-family:"BaseSans-Regular",sans-serif;font-size:16px;font-weight:500;line-height:24px;border:none;border-radius:12px;padding:16px 24px;cursor:pointer;transition:all .2s ease-in-out;width:100%;margin:4px 0}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button:disabled{opacity:.5;cursor:not-allowed}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary{background-color:#0a0b0d;color:#fff}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary:hover:not(:disabled){background-color:#1c1e20}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-primary:active:not(:disabled){background-color:#2a2d31}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary{background-color:#eef0f3;color:#0a0b0d}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary:hover:not(:disabled){background-color:#e1e4e8}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-instance-button-secondary:active:not(:disabled){background-color:#d4d8dd}.-base-acc-sdk-css-reset .-base-acc-sdk-dialog-handle-bar{position:absolute;top:-16px;left:50%;transform:translateX(-50%);width:64px;height:4px;background-color:#d1d5db;border-radius:2px;opacity:0;animation:handleBarFadeIn .2s ease-in-out .2s forwards}@keyframes handleBarFadeIn{from{opacity:0}to{opacity:1}}'}),aI("div",{class:"-base-acc-sdk-dialog-backdrop",onTouchStart:t=>{if(!BI())return;const e=t.touches[0];s(e.clientY),a(!0)},onTouchMove:t=>{if(!r)return;const e=t.touches[0].clientY-i;e>0&&(n(e),t.preventDefault())},onTouchEnd:()=>{if(r)if(a(!1),e>100){const t=document.querySelector(".-base-acc-sdk-dialog-instance-header-close");t&&t.click()}else n(0)},children:aI("div",{class:"-base-acc-sdk-dialog",style:{transform:`translateY(${e}px)`,transition:r?"none":"transform 0.2s ease-out"},children:[aI(MI,{}),t.children]})})]})},jI=({title:t,message:e,actionItems:n,handleClose:r})=>{const[a,i]=kI(!0),[s,o]=kI(!0),[c,u]=kI(null);AI(()=>{const t=window.setTimeout(()=>{i(!1)},1);return()=>{window.clearTimeout(t)}},[]),AI(()=>{(async()=>{var t;const e=null===(t=oh.account.get().accounts)||void 0===t?void 0:t[0];if(e){const t=await async function(t){return function(t,e=4){return`${t.slice(0,2+e)}...${t.slice(-e)}`}(t)}(e);u(t)}o(!1)})()},[]);const d=function(t,e){var n=xI(cI++,7);return OI(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}(()=>c?`Signed in as ${c}`:"Base Account",[c]),l=!s;return aI("div",{class:sI("-base-acc-sdk-dialog-instance",a&&"-base-acc-sdk-dialog-instance-hidden"),children:[aI("div",{class:"-base-acc-sdk-dialog-instance-header",children:[aI("div",{class:"-base-acc-sdk-dialog-instance-header-icon-and-title",children:[aI(oI,{fill:"blue"}),l&&aI("div",{class:"-base-acc-sdk-dialog-instance-header-icon-and-title-title",children:d})]}),aI("div",{class:"-base-acc-sdk-dialog-instance-header-close",onClick:r,children:aI("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEzIDFMMSAxM20wLTEyTDEzIDEzIiBzdHJva2U9IiM5Q0EzQUYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+",class:"-base-acc-sdk-dialog-instance-header-close-icon"})})]}),aI("div",{class:"-base-acc-sdk-dialog-instance-content",children:[aI("div",{class:"-base-acc-sdk-dialog-instance-content-title",children:t}),aI("div",{class:"-base-acc-sdk-dialog-instance-content-message",children:e})]}),n&&n.length>0&&aI("div",{class:"-base-acc-sdk-dialog-instance-actions",children:n.map((t,e)=>aI("button",{class:sI("-base-acc-sdk-dialog-instance-button","primary"===t.variant&&"-base-acc-sdk-dialog-instance-button-primary","secondary"===t.variant&&"-base-acc-sdk-dialog-instance-button-secondary"),onClick:t.onClick,children:t.text},e))})]})};let RI=null;function UI(){if(!RI){const t=document.createElement("div");t.className="-base-acc-sdk-css-reset",document.body.appendChild(t),RI=new CI,RI.attach(t)}return function(){if(document.head.querySelector(`style[base-sdk-font="${bA}"]`))return;const t=document.createElement("style");t.setAttribute("base-sdk-font",bA),t.textContent='\n@font-face {\n font-family: "BaseSans-Regular";\n src: url("data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAJigAA8AAAACCywAAJg8AAEAAAAAAAAAAA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8muyogzfjq3zcXfBk5dUaandemo1Lpu+gfxRS0quGhm0MTixgxyGUTXdZZIb8fSeJ5iIbyL6xxlDU1z1Ondoq5WK/TiBmGFViZDOT9TXHjq9J/1n/df9F/2X2XX2eLqMYT6Bda7m7tPU7tesjePu86yzG/3v77fxWK6k+sviyhq2vJhA9bGk3/X5eN/AAAA")\n format("woff2");\n font-weight: normal;\n font-style: normal;\n font-display: swap;\n}\n',document.head.appendChild(t)}(),RI}const LI="{app} wants to continue in Base Account",zI="This action requires your permission to open a new window.";function FI(t){const e=(window.innerWidth-420)/2+window.screenX,n=(window.innerHeight-700)/2+window.screenY;function r(){const r=`wallet_${crypto.randomUUID()}`,a=window.open(t,r,`width=420, height=700, left=${e}, top=${n}`);return null==a||a.focus(),a||null}!function(t){const e={sdkName:Yf,sdkVersion:$f,origin:window.location.origin,coop:ph()};for(const[n,r]of Object.entries(e))t.searchParams.has(n)||t.searchParams.append(n,r.toString())}(t);const a=r();return a?Promise.resolve(a):function(t){var e,n;const r=null!==(n=null===(e=oh.config.get().metadata)||void 0===e?void 0:e.appName)&&void 0!==n?n:"App",a=UI();return new Promise((e,n)=>{mA({dialogContext:"popup_blocked"}),a.presentItem({title:LI.replace("{app}",r),message:zI,onClose:()=>{gA({dialogContext:"popup_blocked",dialogAction:"cancel"}),n(l.internal("Popup window was blocked"))},actionItems:[{text:"Try again",variant:"primary",onClick:()=>{gA({dialogContext:"popup_blocked",dialogAction:"confirm"});const r=t();r?e(r):n(l.internal("Popup window was blocked")),a.clear()}},{text:"Cancel",variant:"secondary",onClick:()=>{gA({dialogContext:"popup_blocked",dialogAction:"cancel"}),n(l.internal("Popup window was blocked")),a.clear()}}]})})}(r)}class DI{constructor({url:t="https://app.startale.com",metadata:e,preference:n}){this.popup=null,this.listeners=new Map,this.postMessage=async t=>{(await this.waitForPopupLoaded()).postMessage(t,this.url.origin)},this.postRequestAndWaitForResponse=async t=>{const e=this.onMessage(({requestId:e})=>e===t.id);return this.postMessage(t),await e},this.onMessage=async t=>new Promise((e,n)=>{const r=n=>{if(n.origin!==this.url.origin)return;const a=n.data;t(a)&&(e(a),window.removeEventListener("message",r),this.listeners.delete(r))};window.addEventListener("message",r),this.listeners.set(r,{reject:n})}),this.disconnect=()=>{var t;(t=this.popup)&&!t.closed&&t.close(),this.popup=null,this.listeners.forEach(({reject:t},e)=>{t(f.userRejectedRequest("Request rejected")),window.removeEventListener("message",e)}),this.listeners.clear()},this.waitForPopupLoaded=async()=>this.popup&&!this.popup.closed?(this.popup.focus(),this.popup):(pA("communicator.popup_setup.started",{action:fA.unknown,componentType:lA.unknown},hA.high),this.popup=await FI(this.url),this.onMessage(({event:t})=>"PopupUnload"===t).then(()=>{this.disconnect(),pA("communicator.popup_unload.received",{action:fA.unknown,componentType:lA.unknown},hA.high)}).catch(()=>{}),this.onMessage(({event:t})=>"PopupLoaded"===t).then(t=>{this.postMessage({requestId:t.id,data:{version:$f,sdkName:Yf,metadata:this.metadata,preference:this.preference,location:window.location.toString()}})}).then(()=>{if(!this.popup)throw l.internal();return pA("communicator.popup_setup.completed",{action:fA.unknown,componentType:lA.unknown},hA.high),this.popup})),this.url=new URL(t),this.metadata=e,this.preference=n}}function qI(t){const r=s(function(t){var r;if("string"==typeof t)return{message:t,code:e.internal};if(a=t,void 0!==a.errorMessage){const e=t.errorMessage,a=null!==(r=t.errorCode)&&void 0!==r?r:e.match(/(denied|rejected)/i)?n.userRejectedRequest:void 0;return Object.assign(Object.assign({},t),{message:e,code:a,data:{method:t.method}})}var a;return t}(t),{shouldIncludeStack:!0}),a=new URL("https://docs.startale.com/");return a.searchParams.set("version",$f),a.searchParams.set("code",r.code.toString()),a.searchParams.set("message",r.message),Object.assign(Object.assign({},r),{docUrl:""})}const GI=t=>"message"in t&&"string"==typeof t.message?t.message:"";const KI=t=>t;function VI(t){return Math.floor(t)}const ZI=/^[0-9]*$/,HI=/^[a-f0-9]*$/;function WI(t){return KI(`0x${BigInt(t).toString(16)}`)}function JI(t){return(e=t).startsWith("0x")||e.startsWith("0X")?t.slice(2):t;var e}function YI(t,e=!1){if("string"==typeof t){const n=JI(t).toLowerCase();if(HI.test(n))return KI(e?`0x${n}`:n)}throw l.invalidParams(`"${String(t)}" is not a hexadecimal string`)}function $I(t){if("number"==typeof t&&Number.isInteger(t))return VI(t);if("string"==typeof t){if(ZI.test(t))return VI(Number(t));if(function(t){if("string"!=typeof t)return!1;const e=JI(t).toLowerCase();return HI.test(e)}(t))return VI(Number(BigInt(function(t,e=!1){let n=YI(t,!1);return n.length%2==1&&(n=KI(`0${n}`)),e?KI(`0x${n}`):n}(t,!0))))}throw l.invalidParams(`Not an integer: ${String(t)}`)}const QI=new TextDecoder,XI=Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((t,e)=>[e,t.charCodeAt(0)]));function tE(t,e={}){return function(t,e={}){const{pad:n=!0,url:r=!1}=e,a=new Uint8Array(4*Math.ceil(t.length/3));for(let e=0,n=0;n<t.length;e+=4,n+=3){const r=(t[n]<<16)+(t[n+1]<<8)+(0|t[n+2]);a[e]=XI[r>>18],a[e+1]=XI[r>>12&63],a[e+2]=XI[r>>6&63],a[e+3]=XI[63&r]}const i=t.length%3,s=4*Math.floor(t.length/3)+(i&&i+1);let o=QI.decode(new Uint8Array(a.buffer,0,s));return n&&1===i&&(o+="=="),n&&2===i&&(o+="="),r&&(o=o.replaceAll("+","-").replaceAll("/","_")),o}(jl(t),e)}
|
|
31
|
+
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((t,e)=>[t.charCodeAt(0),e]));const eE=ta(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")),nE=nc({a:eE.create(BigInt("-3")),b:BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"),Fp:eE,n:BigInt("0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551"),Gx:BigInt("0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296"),Gy:BigInt("0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"),h:BigInt(1),lowS:!1},er),rE=ta(BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff"));nc({a:rE.create(BigInt("-3")),b:BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef"),Fp:rE,n:BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973"),Gx:BigInt("0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7"),Gy:BigInt("0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f"),h:BigInt(1),lowS:!1},rr);const aE=ta(BigInt("0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"));nc({a:aE.create(BigInt("-3")),b:BigInt("0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00"),Fp:aE,n:BigInt("0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409"),Gx:BigInt("0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66"),Gy:BigInt("0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650"),h:BigInt(1),lowS:!1,allowedPrivateKeyLengths:[130,131,132]},nr);
|
|
13
32
|
/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
|
|
14
|
-
const Jh=Kh;function Yh(t){const{challenge:e,crossOrigin:n,extraClientData:r,flag:a,origin:s,rpId:i,signCount:o,userVerification:c="required"}=t,u=function(t={}){const{flag:e=5,rpId:n=window.location.hostname,signCount:r=0}=t;return zo(fl(Ho(n)),qo(e,{size:1}),qo(r,{size:4}))}({flag:a,rpId:i,signCount:o}),d=function(t){const{challenge:e,crossOrigin:n=!1,extraClientData:r,origin:a=window.location.origin}=t;return JSON.stringify({type:"webauthn.get",challenge:Hh(e,{url:!0,pad:!1}),origin:a,crossOrigin:n,...r})}({challenge:e,crossOrigin:n,extraClientData:r,origin:s}),l=fl(Ho(d)),f=d.indexOf('"challenge"'),p=d.indexOf('"type"');return{metadata:{authenticatorData:u,clientDataJSON:d,challengeIndex:f,typeIndex:p,userVerificationRequired:"required"===c},payload:zo(u,l)}}Uint8Array.from([105,171,180,181,160,222,75,198,42,42,32,31,141,37,186,233]);const Qh=[{inputs:[{name:"preOpGas",type:"uint256"},{name:"paid",type:"uint256"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"targetSuccess",type:"bool"},{name:"targetResult",type:"bytes"}],name:"ExecutionResult",type:"error"},{inputs:[{name:"opIndex",type:"uint256"},{name:"reason",type:"string"}],name:"FailedOp",type:"error"},{inputs:[{name:"sender",type:"address"}],name:"SenderAddressResult",type:"error"},{inputs:[{name:"aggregator",type:"address"}],name:"SignatureValidationFailed",type:"error"},{inputs:[{components:[{name:"preOpGas",type:"uint256"},{name:"prefund",type:"uint256"},{name:"sigFailed",type:"bool"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"paymasterContext",type:"bytes"}],name:"returnInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"senderInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"factoryInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"paymasterInfo",type:"tuple"}],name:"ValidationResult",type:"error"},{inputs:[{components:[{name:"preOpGas",type:"uint256"},{name:"prefund",type:"uint256"},{name:"sigFailed",type:"bool"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"paymasterContext",type:"bytes"}],name:"returnInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"senderInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"factoryInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"paymasterInfo",type:"tuple"},{components:[{name:"aggregator",type:"address"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"stakeInfo",type:"tuple"}],name:"aggregatorInfo",type:"tuple"}],name:"ValidationResultWithAggregation",type:"error"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"factory",type:"address"},{indexed:!1,name:"paymaster",type:"address"}],name:"AccountDeployed",type:"event"},{anonymous:!1,inputs:[],name:"BeforeExecution",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalDeposit",type:"uint256"}],name:"Deposited",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"aggregator",type:"address"}],name:"SignatureAggregatorChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalStaked",type:"uint256"},{indexed:!1,name:"unstakeDelaySec",type:"uint256"}],name:"StakeLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawTime",type:"uint256"}],name:"StakeUnlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"StakeWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"paymaster",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"success",type:"bool"},{indexed:!1,name:"actualGasCost",type:"uint256"},{indexed:!1,name:"actualGasUsed",type:"uint256"}],name:"UserOperationEvent",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"revertReason",type:"bytes"}],name:"UserOperationRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[],name:"SIG_VALIDATION_FAILED",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"initCode",type:"bytes"},{name:"sender",type:"address"},{name:"paymasterAndData",type:"bytes"}],name:"_validateSenderAndPaymaster",outputs:[],stateMutability:"view",type:"function"},{inputs:[{name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"depositTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"",type:"address"}],name:"deposits",outputs:[{name:"deposit",type:"uint112"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"getDepositInfo",outputs:[{components:[{name:"deposit",type:"uint112"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],name:"info",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{name:"sender",type:"address"},{name:"key",type:"uint192"}],name:"getNonce",outputs:[{name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"initCode",type:"bytes"}],name:"getSenderAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"getUserOpHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOps",type:"tuple[]"},{name:"aggregator",type:"address"},{name:"signature",type:"bytes"}],name:"opsPerAggregator",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleAggregatedOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"ops",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"key",type:"uint192"}],name:"incrementNonce",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"callData",type:"bytes"},{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"paymaster",type:"address"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"}],name:"mUserOp",type:"tuple"},{name:"userOpHash",type:"bytes32"},{name:"prefund",type:"uint256"},{name:"contextOffset",type:"uint256"},{name:"preOpGas",type:"uint256"}],name:"opInfo",type:"tuple"},{name:"context",type:"bytes"}],name:"innerHandleOp",outputs:[{name:"actualGasCost",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"",type:"address"},{name:"",type:"uint192"}],name:"nonceSequenceNumber",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"op",type:"tuple"},{name:"target",type:"address"},{name:"targetCallData",type:"bytes"}],name:"simulateHandleOp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"simulateValidation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"},{name:"withdrawAmount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];function Xh(t){const{authorization:e,factory:n,factoryData:r}=t;if("0x7702"===n||"0x7702000000000000000000000000000000000000"===n){if(!e)return"0x7702000000000000000000000000000000000000";return Kn([e.address,r??"0x"])}return n?Kn([n,r??"0x"]):"0x"}function $h(t){const{callGasLimit:e,callData:n,maxPriorityFeePerGas:r,maxFeePerGas:a,paymaster:s,paymasterData:i,paymasterPostOpGasLimit:o,paymasterVerificationGasLimit:c,sender:u,signature:d="0x",verificationGasLimit:l}=t;return{accountGasLimits:Kn([he(Ce(l||0n),{size:16}),he(Ce(e||0n),{size:16})]),callData:n,initCode:Xh(t),gasFees:Kn([he(Ce(r||0n),{size:16}),he(Ce(a||0n),{size:16})]),nonce:t.nonce??0n,paymasterAndData:s?Kn([s,he(Ce(c||0n),{size:16}),he(Ce(o||0n),{size:16}),i||"0x"]):"0x",preVerificationGas:t.preVerificationGas??0n,sender:u,signature:d}}const tb={PackedUserOperation:[{type:"address",name:"sender"},{type:"uint256",name:"nonce"},{type:"bytes",name:"initCode"},{type:"bytes",name:"callData"},{type:"bytes32",name:"accountGasLimits"},{type:"uint256",name:"preVerificationGas"},{type:"bytes32",name:"gasFees"},{type:"bytes",name:"paymasterAndData"}]};function eb(t){const{chainId:e,entryPointAddress:n,entryPointVersion:r}=t,a=t.userOperation,{authorization:s,callData:i="0x",callGasLimit:o,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:d,paymasterAndData:l="0x",preVerificationGas:f,sender:p,verificationGasLimit:m}=a;if("0.8"===r)return cd(function(t){const{chainId:e,entryPointAddress:n,userOperation:r}=t,a=$h(r);return{types:tb,primaryType:"PackedUserOperation",domain:{name:"ERC4337",version:"1",chainId:e,verifyingContract:n},message:a}}({chainId:e,entryPointAddress:n,userOperation:a}));const h=(()=>{if("0.6"===r){const t=a.initCode?.slice(0,42),e=a.initCode?.slice(42),n=Xh({authorization:s,factory:t,factoryData:e});return nr([{type:"address"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"bytes32"}],[p,d,jn(n),jn(i),o,m,f,c,u,jn(l)])}if("0.7"===r){const t=$h(a);return nr([{type:"address"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"},{type:"bytes32"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"}],[t.sender,t.nonce,jn(t.initCode),jn(t.callData),t.accountGasLimits,t.preVerificationGas,t.gasFees,jn(t.paymasterAndData)])}throw new Error(`entryPointVersion "${r}" not supported.`)})();return jn(nr([{type:"bytes32"},{type:"address"},{type:"uint256"}],[jn(h),n,BigInt(e)]))}class nb extends _t{constructor({cause:t}){super("Smart Account is not deployed.",{cause:t,metaMessages:["This could arise when:","- No `factory`/`factoryData` or `initCode` properties are provided for Smart Account deployment.","- An incorrect `sender` address is provided."],name:"AccountNotDeployedError"})}}Object.defineProperty(nb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa20/});class rb extends _t{constructor({cause:t,data:e,message:n}={}){const r=n?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}Object.defineProperty(rb,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32521}),Object.defineProperty(rb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class ab extends _t{constructor({cause:t}){super("Failed to send funds to beneficiary.",{cause:t,name:"FailedToSendToBeneficiaryError"})}}Object.defineProperty(ab,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa91/});class sb extends _t{constructor({cause:t}){super("Gas value overflowed.",{cause:t,metaMessages:["This could arise when:","- one of the gas values exceeded 2**120 (uint120)"].filter(Boolean),name:"GasValuesOverflowError"})}}Object.defineProperty(sb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa94/});class ib extends _t{constructor({cause:t}){super("The `handleOps` function was called by the Bundler with a gas limit too low.",{cause:t,name:"HandleOpsOutOfGasError"})}}Object.defineProperty(ib,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa95/});class ob extends _t{constructor({cause:t,factory:e,factoryData:n,initCode:r}){super("Failed to simulate deployment for Smart Account.",{cause:t,metaMessages:["This could arise when:","- Invalid `factory`/`factoryData` or `initCode` properties are present","- Smart Account deployment execution ran out of gas (low `verificationGasLimit` value)","- Smart Account deployment execution reverted with an error\n",e&&`factory: ${e}`,n&&`factoryData: ${n}`,r&&`initCode: ${r}`].filter(Boolean),name:"InitCodeFailedError"})}}Object.defineProperty(ob,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa13/});class cb extends _t{constructor({cause:t,factory:e,factoryData:n,initCode:r}){super("Smart Account initialization implementation did not create an account.",{cause:t,metaMessages:["This could arise when:","- `factory`/`factoryData` or `initCode` properties are invalid","- Smart Account initialization implementation is incorrect\n",e&&`factory: ${e}`,n&&`factoryData: ${n}`,r&&`initCode: ${r}`].filter(Boolean),name:"InitCodeMustCreateSenderError"})}}Object.defineProperty(cb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa15/});class ub extends _t{constructor({cause:t,factory:e,factoryData:n,initCode:r,sender:a}){super("Smart Account initialization implementation does not return the expected sender.",{cause:t,metaMessages:["This could arise when:","Smart Account initialization implementation does not return a sender address\n",e&&`factory: ${e}`,n&&`factoryData: ${n}`,r&&`initCode: ${r}`,a&&`sender: ${a}`].filter(Boolean),name:"InitCodeMustReturnSenderError"})}}Object.defineProperty(ub,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa14/});class db extends _t{constructor({cause:t}){super("Smart Account does not have sufficient funds to execute the User Operation.",{cause:t,metaMessages:["This could arise when:","- the Smart Account does not have sufficient funds to cover the required prefund, or","- a Paymaster was not provided"].filter(Boolean),name:"InsufficientPrefundError"})}}Object.defineProperty(db,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa21/});class lb extends _t{constructor({cause:t}){super("Bundler attempted to call an invalid function on the EntryPoint.",{cause:t,name:"InternalCallOnlyError"})}}Object.defineProperty(lb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa92/});class fb extends _t{constructor({cause:t}){super("Bundler used an invalid aggregator for handling aggregated User Operations.",{cause:t,name:"InvalidAggregatorError"})}}Object.defineProperty(fb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa96/});class pb extends _t{constructor({cause:t,nonce:e}){super("Invalid Smart Account nonce used for User Operation.",{cause:t,metaMessages:[e&&`nonce: ${e}`].filter(Boolean),name:"InvalidAccountNonceError"})}}Object.defineProperty(pb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa25/});class mb extends _t{constructor({cause:t}){super("Bundler has not set a beneficiary address.",{cause:t,name:"InvalidBeneficiaryError"})}}Object.defineProperty(mb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa90/});class hb extends _t{constructor({cause:t}){super("Invalid fields set on User Operation.",{cause:t,name:"InvalidFieldsError"})}}Object.defineProperty(hb,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class bb extends _t{constructor({cause:t,paymasterAndData:e}){super("Paymaster properties provided are invalid.",{cause:t,metaMessages:["This could arise when:","- the `paymasterAndData` property is of an incorrect length\n",e&&`paymasterAndData: ${e}`].filter(Boolean),name:"InvalidPaymasterAndDataError"})}}Object.defineProperty(bb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa93/});class yb extends _t{constructor({cause:t}){super("Paymaster deposit for the User Operation is too low.",{cause:t,metaMessages:["This could arise when:","- the Paymaster has deposited less than the expected amount via the `deposit` function"].filter(Boolean),name:"PaymasterDepositTooLowError"})}}Object.defineProperty(yb,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32508}),Object.defineProperty(yb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa31/});class gb extends _t{constructor({cause:t}){super("The `validatePaymasterUserOp` function on the Paymaster reverted.",{cause:t,name:"PaymasterFunctionRevertedError"})}}Object.defineProperty(gb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa33/});class vb extends _t{constructor({cause:t}){super("The Paymaster contract has not been deployed.",{cause:t,name:"PaymasterNotDeployedError"})}}Object.defineProperty(vb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa30/});class wb extends _t{constructor({cause:t}){super("UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.",{cause:t,name:"PaymasterRateLimitError"})}}Object.defineProperty(wb,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32504});class xb extends _t{constructor({cause:t}){super("UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.",{cause:t,name:"PaymasterStakeTooLowError"})}}Object.defineProperty(xb,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32505});class Pb extends _t{constructor({cause:t}){super("Paymaster `postOp` function reverted.",{cause:t,name:"PaymasterPostOpFunctionRevertedError"})}}Object.defineProperty(Pb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa50/});class kb extends _t{constructor({cause:t,factory:e,factoryData:n,initCode:r}){super("Smart Account has already been deployed.",{cause:t,metaMessages:["Remove the following properties and try again:",e&&"`factory`",n&&"`factoryData`",r&&"`initCode`"].filter(Boolean),name:"SenderAlreadyConstructedError"})}}Object.defineProperty(kb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa10/});class Ib extends _t{constructor({cause:t}){super("UserOperation rejected because account signature check failed (or paymaster signature, if the paymaster uses its data as signature).",{cause:t,name:"SignatureCheckFailedError"})}}Object.defineProperty(Ib,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32507});class Ab extends _t{constructor({cause:t}){super("The `validateUserOp` function on the Smart Account reverted.",{cause:t,name:"SmartAccountFunctionRevertedError"})}}Object.defineProperty(Ab,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa23/});class Eb extends _t{constructor({cause:t}){super("UserOperation rejected because account specified unsupported signature aggregator.",{cause:t,name:"UnsupportedSignatureAggregatorError"})}}Object.defineProperty(Eb,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32506});class Ob extends _t{constructor({cause:t}){super("User Operation expired.",{cause:t,metaMessages:["This could arise when:","- the `validAfter` or `validUntil` values returned from `validateUserOp` on the Smart Account are not satisfied"].filter(Boolean),name:"UserOperationExpiredError"})}}Object.defineProperty(Ob,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa22/});class Sb extends _t{constructor({cause:t}){super("Paymaster for User Operation expired.",{cause:t,metaMessages:["This could arise when:","- the `validAfter` or `validUntil` values returned from `validatePaymasterUserOp` on the Paymaster are not satisfied"].filter(Boolean),name:"UserOperationPaymasterExpiredError"})}}Object.defineProperty(Sb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa32/});class Tb extends _t{constructor({cause:t}){super("Signature provided for the User Operation is invalid.",{cause:t,metaMessages:["This could arise when:","- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Smart Account"].filter(Boolean),name:"UserOperationSignatureError"})}}Object.defineProperty(Tb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa24/});class Cb extends _t{constructor({cause:t}){super("Signature provided for the User Operation is invalid.",{cause:t,metaMessages:["This could arise when:","- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Paymaster"].filter(Boolean),name:"UserOperationPaymasterSignatureError"})}}Object.defineProperty(Cb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa34/});class Bb extends _t{constructor({cause:t}){super("User Operation rejected by EntryPoint's `simulateValidation` during account creation or validation.",{cause:t,name:"UserOperationRejectedByEntryPointError"})}}Object.defineProperty(Bb,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32500});class Nb extends _t{constructor({cause:t}){super("User Operation rejected by Paymaster's `validatePaymasterUserOp`.",{cause:t,name:"UserOperationRejectedByPaymasterError"})}}Object.defineProperty(Nb,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32501});class jb extends _t{constructor({cause:t}){super("User Operation rejected with op code validation error.",{cause:t,name:"UserOperationRejectedByOpCodeError"})}}Object.defineProperty(jb,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32502});class Ub extends _t{constructor({cause:t}){super("UserOperation out of time-range: either wallet or paymaster returned a time-range, and it is already expired (or will expire soon).",{cause:t,name:"UserOperationOutOfTimeRangeError"})}}Object.defineProperty(Ub,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32503});class Mb extends _t{constructor({cause:t}){super(`An error occurred while executing user operation: ${t?.shortMessage}`,{cause:t,name:"UnknownBundlerError"})}}class Rb extends _t{constructor({cause:t}){super("User Operation verification gas limit exceeded.",{cause:t,metaMessages:["This could arise when:","- the gas used for verification exceeded the `verificationGasLimit`"].filter(Boolean),name:"VerificationGasLimitExceededError"})}}Object.defineProperty(Rb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa40/});class Fb extends _t{constructor({cause:t}){super("User Operation verification gas limit is too low.",{cause:t,metaMessages:["This could arise when:","- the `verificationGasLimit` is too low to verify the User Operation"].filter(Boolean),name:"VerificationGasLimitTooLowError"})}}Object.defineProperty(Fb,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa41/});class _b extends _t{constructor(t,{callData:e,callGasLimit:n,docsPath:r,factory:a,factoryData:s,initCode:i,maxFeePerGas:o,maxPriorityFeePerGas:c,nonce:u,paymaster:d,paymasterAndData:l,paymasterData:f,paymasterPostOpGasLimit:p,paymasterVerificationGasLimit:m,preVerificationGas:h,sender:b,signature:y,verificationGasLimit:g}){const v=Vr({callData:e,callGasLimit:n,factory:a,factoryData:s,initCode:i,maxFeePerGas:void 0!==o&&`${Lr(o)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${Lr(c)} gwei`,nonce:u,paymaster:d,paymasterAndData:l,paymasterData:f,paymasterPostOpGasLimit:p,paymasterVerificationGasLimit:m,preVerificationGas:h,sender:b,signature:y,verificationGasLimit:g});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",v].filter(Boolean),name:"UserOperationExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class zb extends _t{constructor({hash:t}){super(`User Operation receipt with hash "${t}" could not be found. The User Operation may not have been processed yet.`,{name:"UserOperationReceiptNotFoundError"})}}class Db extends _t{constructor({hash:t}){super(`User Operation with hash "${t}" could not be found.`,{name:"UserOperationNotFoundError"})}}class Lb extends _t{constructor({hash:t}){super(`Timed out while waiting for User Operation with hash "${t}" to be confirmed.`,{name:"WaitForUserOperationReceiptTimeoutError"})}}const Gb=[rb,hb,yb,wb,xb,Ib,Eb,Ub,Bb,Nb,jb];function qb(t,{calls:e,docsPath:n,...r}){const a=(()=>{const n=function(t,e){const n=(t.details||"").toLowerCase();if(nb.message.test(n))return new nb({cause:t});if(ab.message.test(n))return new ab({cause:t});if(sb.message.test(n))return new sb({cause:t});if(ib.message.test(n))return new ib({cause:t});if(ob.message.test(n))return new ob({cause:t,factory:e.factory,factoryData:e.factoryData,initCode:e.initCode});if(cb.message.test(n))return new cb({cause:t,factory:e.factory,factoryData:e.factoryData,initCode:e.initCode});if(ub.message.test(n))return new ub({cause:t,factory:e.factory,factoryData:e.factoryData,initCode:e.initCode,sender:e.sender});if(db.message.test(n))return new db({cause:t});if(lb.message.test(n))return new lb({cause:t});if(pb.message.test(n))return new pb({cause:t,nonce:e.nonce});if(fb.message.test(n))return new fb({cause:t});if(mb.message.test(n))return new mb({cause:t});if(bb.message.test(n))return new bb({cause:t});if(yb.message.test(n))return new yb({cause:t});if(gb.message.test(n))return new gb({cause:t});if(vb.message.test(n))return new vb({cause:t});if(Pb.message.test(n))return new Pb({cause:t});if(Ab.message.test(n))return new Ab({cause:t});if(kb.message.test(n))return new kb({cause:t,factory:e.factory,factoryData:e.factoryData,initCode:e.initCode});if(Ob.message.test(n))return new Ob({cause:t});if(Sb.message.test(n))return new Sb({cause:t});if(Cb.message.test(n))return new Cb({cause:t});if(Tb.message.test(n))return new Tb({cause:t});if(Rb.message.test(n))return new Rb({cause:t});if(Fb.message.test(n))return new Fb({cause:t});const r=t.walk(t=>Gb.some(e=>e.code===t.code));if(r){if(r.code===rb.code)return new rb({cause:t,data:r.data,message:r.details});if(r.code===hb.code)return new hb({cause:t});if(r.code===yb.code)return new yb({cause:t});if(r.code===wb.code)return new wb({cause:t});if(r.code===xb.code)return new xb({cause:t});if(r.code===Ib.code)return new Ib({cause:t});if(r.code===Eb.code)return new Eb({cause:t});if(r.code===Ub.code)return new Ub({cause:t});if(r.code===Bb.code)return new Bb({cause:t});if(r.code===Nb.code)return new Nb({cause:t});if(r.code===jb.code)return new jb({cause:t})}return new Mb({cause:t})}(t,r);if(e&&n instanceof rb){const t=function(t){let e;return t.walk(t=>{const n=t;if("string"==typeof n.data||"string"==typeof n.data?.revertData||!(n instanceof _t)&&"string"==typeof n.message){const t=(n.data?.revertData||n.data||n.message).match?.(/(0x[A-Za-z0-9]*)/);if(t)return e=t[1],!0}return!1}),e}(n),r=e?.filter(t=>t.abi);if(t&&r.length>0)return function(t){const{calls:e,revertData:n}=t,{abi:r,functionName:a,args:s,to:i}=(()=>{const t=e?.filter(t=>Boolean(t.abi));if(1===t.length)return t[0];const r=t.filter(t=>{try{return Boolean(Ur({abi:t.abi,data:n}))}catch{return!1}});return 1===r.length?r[0]:{abi:[],functionName:t.reduce((t,e)=>`${t?`${t} | `:""}${e.functionName}`,""),args:void 0,to:void 0}})(),o="0x"===n?new ra({functionName:a}):new na({abi:r,data:n,functionName:a});return new ea(o,{abi:r,args:s,contractAddress:i,functionName:a})}({calls:r,revertData:t})}return n})();return new _b(a,{docsPath:n,...r})}function Hb(t){const e={};var n;return void 0!==t.callData&&(e.callData=t.callData),void 0!==t.callGasLimit&&(e.callGasLimit=Ce(t.callGasLimit)),void 0!==t.factory&&(e.factory=t.factory),void 0!==t.factoryData&&(e.factoryData=t.factoryData),void 0!==t.initCode&&(e.initCode=t.initCode),void 0!==t.maxFeePerGas&&(e.maxFeePerGas=Ce(t.maxFeePerGas)),void 0!==t.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=Ce(t.maxPriorityFeePerGas)),void 0!==t.nonce&&(e.nonce=Ce(t.nonce)),void 0!==t.paymaster&&(e.paymaster=t.paymaster),void 0!==t.paymasterAndData&&(e.paymasterAndData=t.paymasterAndData||"0x"),void 0!==t.paymasterData&&(e.paymasterData=t.paymasterData),void 0!==t.paymasterPostOpGasLimit&&(e.paymasterPostOpGasLimit=Ce(t.paymasterPostOpGasLimit)),void 0!==t.paymasterVerificationGasLimit&&(e.paymasterVerificationGasLimit=Ce(t.paymasterVerificationGasLimit)),void 0!==t.preVerificationGas&&(e.preVerificationGas=Ce(t.preVerificationGas)),void 0!==t.sender&&(e.sender=t.sender),void 0!==t.signature&&(e.signature=t.signature),void 0!==t.verificationGasLimit&&(e.verificationGasLimit=Ce(t.verificationGasLimit)),void 0!==t.authorization&&(e.eip7702Auth={address:(n=t.authorization).address,chainId:Ce(n.chainId),nonce:Ce(n.nonce),r:n.r?Ce(BigInt(n.r),{size:32}):he("0x",{size:32}),s:n.s?Ce(BigInt(n.s),{size:32}):he("0x",{size:32}),yParity:n.yParity?Ce(n.yParity,{size:1}):he("0x",{size:32})}),e}async function Vb(t,e){const{chainId:n,entryPointAddress:r,context:a,...s}=e,i=Hb(s),{paymasterPostOpGasLimit:o,paymasterVerificationGasLimit:c,...u}=await t.request({method:"pm_getPaymasterData",params:[{...i,callGasLimit:i.callGasLimit??"0x0",verificationGasLimit:i.verificationGasLimit??"0x0",preVerificationGas:i.preVerificationGas??"0x0"},r,Ce(n),a]});return{...u,...o&&{paymasterPostOpGasLimit:ke(o)},...c&&{paymasterVerificationGasLimit:ke(c)}}}async function Kb(t,e){const{chainId:n,entryPointAddress:r,context:a,...s}=e,i=Hb(s),{paymasterPostOpGasLimit:o,paymasterVerificationGasLimit:c,...u}=await t.request({method:"pm_getPaymasterStubData",params:[{...i,callGasLimit:i.callGasLimit??"0x0",verificationGasLimit:i.verificationGasLimit??"0x0",preVerificationGas:i.preVerificationGas??"0x0"},r,Ce(n),a]});return{...u,...o&&{paymasterPostOpGasLimit:ke(o)},...c&&{paymasterVerificationGasLimit:ke(c)}}}const Wb=["factory","fees","gas","paymaster","nonce","signature","authorization"];async function Zb(t,e){const n=e,{account:r=t.account,parameters:a=Wb,stateOverride:s}=n;if(!r)throw new Vc;const i=hr(r),o=t,c=n.paymaster??o?.paymaster,u="string"==typeof c?c:void 0,{getPaymasterStubData:d,getPaymasterData:l}=(()=>{if(!0===c)return{getPaymasterStubData:t=>Ct(o,Kb,"getPaymasterStubData")(t),getPaymasterData:t=>Ct(o,Vb,"getPaymasterData")(t)};if("object"==typeof c){const{getPaymasterStubData:t,getPaymasterData:e}=c;return{getPaymasterStubData:e&&t?t:e,getPaymasterData:e&&t?e:void 0}}return{getPaymasterStubData:void 0,getPaymasterData:void 0}})(),f=n.paymasterContext?n.paymasterContext:o?.paymasterContext;let p={...n,paymaster:u,sender:i.address};const[m,h,b,y,g]=await Promise.all([(async()=>n.calls?i.encodeCalls(n.calls.map(t=>{const e=t;return e.abi?{data:yr(e),to:e.to,value:e.value}:e})):n.callData)(),(async()=>{if(!a.includes("factory"))return;if(n.initCode)return{initCode:n.initCode};if(n.factory&&n.factoryData)return{factory:n.factory,factoryData:n.factoryData};const{factory:t,factoryData:e}=await i.getFactoryArgs();return"0.6"===i.entryPoint.version?{initCode:t&&e?Kn([t,e]):void 0}:{factory:t,factoryData:e}})(),(async()=>{if(a.includes("fees")){if("bigint"==typeof n.maxFeePerGas&&"bigint"==typeof n.maxPriorityFeePerGas)return p;if(o?.userOperation?.estimateFeesPerGas){const t=await o.userOperation.estimateFeesPerGas({account:i,bundlerClient:o,userOperation:p});return{...p,...t}}try{const e=o.client??t,r=await Ct(e,Os,"estimateFeesPerGas")({chain:e.chain,type:"eip1559"});return{maxFeePerGas:"bigint"==typeof n.maxFeePerGas?n.maxFeePerGas:BigInt(2n*r.maxFeePerGas),maxPriorityFeePerGas:"bigint"==typeof n.maxPriorityFeePerGas?n.maxPriorityFeePerGas:BigInt(2n*r.maxPriorityFeePerGas)}}catch{return}}})(),(async()=>{if(a.includes("nonce"))return"bigint"==typeof n.nonce?n.nonce:i.getNonce()})(),(async()=>{if(a.includes("authorization")){if("object"==typeof n.authorization)return n.authorization;if(i.authorization&&!await i.isDeployed()){const t=await async function(t,e){const{account:n=t.account,chainId:r,nonce:a}=e;if(!n)throw new Vc({docsPath:"/docs/eip7702/prepareAuthorization"});const s=hr(n),i=(()=>{if(e.executor)return"self"===e.executor?e.executor:hr(e.executor)})(),o={address:e.contractAddress??e.address,chainId:r,nonce:a};return void 0===o.chainId&&(o.chainId=t.chain?.id??await Ct(t,ui,"getChainId")({})),void 0===o.nonce&&(o.nonce=await Ct(t,Ts,"getTransactionCount")({address:s.address,blockTag:"pending"}),("self"===i||i?.address&&mi(i.address,s.address))&&(o.nonce+=1)),o}(i.client,i.authorization);return{...t,r:"0xfffffffffffffffffffffffffffffff000000000000000000000000000000000",s:"0x7aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",yParity:1}}}})()]);let v;async function w(){if(v)return v;if(t.chain)return t.chain.id;const e=await Ct(t,ui,"getChainId")({});return v=e,v}void 0!==m&&(p.callData=m),void 0!==h&&(p={...p,...h}),void 0!==b&&(p={...p,...b}),void 0!==y&&(p.nonce=y),void 0!==g&&(p.authorization=g),a.includes("signature")&&(void 0!==n.signature?p.signature=n.signature:p.signature=await i.getStubSignature(p)),"0.6"!==i.entryPoint.version||p.initCode||(p.initCode="0x");let x=!1;if(a.includes("paymaster")&&d&&!u&&!n.paymasterAndData){const{isFinal:t=!1,sponsor:e,...n}=await d({chainId:await w(),entryPointAddress:i.entryPoint.address,context:f,...p});x=t,p={...p,...n}}if("0.6"!==i.entryPoint.version||p.paymasterAndData||(p.paymasterAndData="0x"),a.includes("gas")){if(i.userOperation?.estimateGas){const t=await i.userOperation.estimateGas(p);p={...p,...t}}if(void 0===p.callGasLimit||void 0===p.preVerificationGas||void 0===p.verificationGasLimit||p.paymaster&&void 0===p.paymasterPostOpGasLimit||p.paymaster&&void 0===p.paymasterVerificationGasLimit){const t=await Ct(o,Jb,"estimateUserOperationGas")({account:i,callGasLimit:0n,preVerificationGas:0n,verificationGasLimit:0n,stateOverride:s,...p.paymaster?{paymasterPostOpGasLimit:0n,paymasterVerificationGasLimit:0n}:{},...p});p={...p,callGasLimit:p.callGasLimit??t.callGasLimit,preVerificationGas:p.preVerificationGas??t.preVerificationGas,verificationGasLimit:p.verificationGasLimit??t.verificationGasLimit,paymasterPostOpGasLimit:p.paymasterPostOpGasLimit??t.paymasterPostOpGasLimit,paymasterVerificationGasLimit:p.paymasterVerificationGasLimit??t.paymasterVerificationGasLimit}}}if(a.includes("paymaster")&&l&&!u&&!n.paymasterAndData&&!x){const t=await l({chainId:await w(),entryPointAddress:i.entryPoint.address,context:f,...p});p={...p,...t}}return delete p.calls,delete p.parameters,delete p.paymasterContext,"string"!=typeof p.paymaster&&delete p.paymaster,p}async function Jb(t,e){const{account:n=t.account,entryPointAddress:r,stateOverride:a}=e;if(!n&&!e.sender)throw new Vc;const s=n?hr(n):void 0,i=fs(a),o=s?await Ct(t,Zb,"prepareUserOperation")({...e,parameters:["authorization","factory","nonce","paymaster","signature"]}):e;try{const e=[Hb(o),r??s?.entryPoint?.address];return function(t){const e={};return t.callGasLimit&&(e.callGasLimit=BigInt(t.callGasLimit)),t.preVerificationGas&&(e.preVerificationGas=BigInt(t.preVerificationGas)),t.verificationGasLimit&&(e.verificationGasLimit=BigInt(t.verificationGasLimit)),t.paymasterPostOpGasLimit&&(e.paymasterPostOpGasLimit=BigInt(t.paymasterPostOpGasLimit)),t.paymasterVerificationGasLimit&&(e.paymasterVerificationGasLimit=BigInt(t.paymasterVerificationGasLimit)),e}(await t.request({method:"eth_estimateUserOperationGas",params:i?[...e,i]:[...e]}))}catch(t){const n=e.calls;throw qb(t,{...o,...n?{calls:n}:{}})}}function Yb(t){const e={...t};return t.callGasLimit&&(e.callGasLimit=BigInt(t.callGasLimit)),t.maxFeePerGas&&(e.maxFeePerGas=BigInt(t.maxFeePerGas)),t.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=BigInt(t.maxPriorityFeePerGas)),t.nonce&&(e.nonce=BigInt(t.nonce)),t.paymasterPostOpGasLimit&&(e.paymasterPostOpGasLimit=BigInt(t.paymasterPostOpGasLimit)),t.paymasterVerificationGasLimit&&(e.paymasterVerificationGasLimit=BigInt(t.paymasterVerificationGasLimit)),t.preVerificationGas&&(e.preVerificationGas=BigInt(t.preVerificationGas)),t.verificationGasLimit&&(e.verificationGasLimit=BigInt(t.verificationGasLimit)),e}async function Qb(t,{hash:e}){const n=await t.request({method:"eth_getUserOperationReceipt",params:[e]},{dedupe:!0});if(!n)throw new zb({hash:e});return function(t){const e={...t};return t.actualGasCost&&(e.actualGasCost=BigInt(t.actualGasCost)),t.actualGasUsed&&(e.actualGasUsed=BigInt(t.actualGasUsed)),t.logs&&(e.logs=t.logs.map(t=>vi(t))),t.receipt&&(e.receipt=Jc(e.receipt)),e}(n)}function Xb(t){return{estimateUserOperationGas:e=>Jb(t,e),getChainId:()=>ui(t),getSupportedEntryPoints:()=>function(t){return t.request({method:"eth_supportedEntryPoints"})}(t),getUserOperation:e=>async function(t,{hash:e}){const n=await t.request({method:"eth_getUserOperationByHash",params:[e]},{dedupe:!0});if(!n)throw new Db({hash:e});const{blockHash:r,blockNumber:a,entryPoint:s,transactionHash:i,userOperation:o}=n;return{blockHash:r,blockNumber:BigInt(a),entryPoint:s,transactionHash:i,userOperation:Yb(o)}}(t,e),getUserOperationReceipt:e=>Qb(t,e),prepareUserOperation:e=>Zb(t,e),sendUserOperation:e=>async function(t,e){const{account:n=t.account,entryPointAddress:r}=e;if(!n&&!e.sender)throw new Vc;const a=n?hr(n):void 0,s=a?await Ct(t,Zb,"prepareUserOperation")(e):e,i=e.signature||await(a?.signUserOperation?.(s)),o=Hb({...s,signature:i});try{return await t.request({method:"eth_sendUserOperation",params:[o,r??a?.entryPoint?.address]},{retryCount:0})}catch(t){const n=e.calls;throw qb(t,{...s,...n?{calls:n}:{},signature:i})}}(t,e),waitForUserOperationReceipt:e=>function(t,e){const{hash:n,pollingInterval:r=t.pollingInterval,retryCount:a,timeout:s=12e4}=e;let i=0;const o=Mr(["waitForUserOperationReceipt",t.uid,n]);return new Promise((e,c)=>{const u=Rc(o,{resolve:e,reject:c},e=>{const o=t=>{c(),t(),u()},c=_c(async()=>{a&&i>=a&&o(()=>e.reject(new Lb({hash:n})));try{const r=await Ct(t,Qb,"getUserOperationReceipt")({hash:n});o(()=>e.resolve(r))}catch(t){const n=t;"UserOperationReceiptNotFoundError"!==n.name&&o(()=>e.reject(n))}i++},{emitOnBegin:!0,interval:r});return s&&setTimeout(()=>o(()=>e.reject(new Lb({hash:n}))),s),c})})}(t,e)}}const $b={transaction:function(t,e){return function(t){return"deposit"===t.type||void 0!==t.sourceHash}(t)?function(t){!function(t){const{from:e,to:n}=t;if(e&&!Vn(e))throw new _n({address:e});if(n&&!Vn(n))throw new _n({address:n})}(t);const{sourceHash:e,data:n,from:r,gas:a,isSystemTx:s,mint:i,to:o,value:c}=t,u=[e,r,o??"0x",i?Oe(i):"0x",c?Oe(c):"0x",a?Oe(a):"0x",s?"0x1":"0x",n??"0x"];return Wn(["0x7e",La(u)])}(t):Lu(t,e)}};const ty={blockTime:2e3,contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:{block:ks({format(t){const e=t.transactions?.map(t=>{if("string"==typeof t)return t;const e=ws(t);return"0x7e"===e.typeHex&&(e.isSystemTx=t.isSystemTx,e.mint=t.mint?ke(t.mint):void 0,e.sourceHash=t.sourceHash,e.type="deposit"),e});return{transactions:e,stateRoot:t.stateRoot}}}),transaction:xs({format(t){const e={};return"0x7e"===t.type&&(e.isSystemTx=t.isSystemTx,e.mint=t.mint?ke(t.mint):void 0,e.sourceHash=t.sourceHash,e.type="deposit"),e}}),transactionReceipt:Yc({format:t=>({l1GasPrice:t.l1GasPrice?ke(t.l1GasPrice):null,l1GasUsed:t.l1GasUsed?ke(t.l1GasUsed):null,l1Fee:t.l1Fee?ke(t.l1Fee):null,l1FeeScalar:t.l1FeeScalar?Number(t.l1FeeScalar):null})})},serializers:$b},ey=1,ny=Qu({...ty,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...ty.contracts,disputeGameFactory:{[ey]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[ey]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[ey]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[ey]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:1}),ry=11155111,ay=Qu({...ty,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...ty.contracts,disputeGameFactory:{[ry]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[ry]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[ry]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[ry]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:ry}),sy=c(()=>({})),iy=[{id:ny.id,rpcUrl:ny.rpcUrls.default.http[0],nativeCurrency:{name:ny.nativeCurrency.name,symbol:ny.nativeCurrency.symbol,decimal:ny.nativeCurrency.decimals}},{id:ay.id,rpcUrl:ay.rpcUrls.default.http[0],nativeCurrency:{name:ay.nativeCurrency.name,symbol:ay.nativeCurrency.symbol,decimal:ay.nativeCurrency.decimals}}];function oy(t){t.forEach(t=>{var e,n,r,a,s,i,o,c;let u=t.rpcUrl;if(!u){const e=iy.find(e=>e.id===t.id);e&&(u=e.rpcUrl)}if(!u)return;const d=function(t){const{key:e="public",name:n="Public Client"}=t;return au({...t,key:e,name:n,type:"publicClient"}).extend(Wp)}({chain:Qu({id:t.id,rpcUrls:{default:{http:[u]}},name:null!==(n=null===(e=t.nativeCurrency)||void 0===e?void 0:e.name)&&void 0!==n?n:"",nativeCurrency:{name:null!==(a=null===(r=t.nativeCurrency)||void 0===r?void 0:r.name)&&void 0!==a?a:"",symbol:null!==(i=null===(s=t.nativeCurrency)||void 0===s?void 0:s.symbol)&&void 0!==i?i:"",decimals:null!==(c=null===(o=t.nativeCurrency)||void 0===o?void 0:o.decimal)&&void 0!==c?c:18}}),transport:Jp(u)}),l=function(t){const{client:e,key:n="bundler",name:r="Bundler Client",paymaster:a,paymasterContext:s,transport:i,userOperation:o}=t;return Object.assign(au({...t,chain:t.chain??e?.chain,key:n,name:r,transport:i,type:"bundlerClient"}),{client:e,paymaster:a,paymasterContext:s,userOperation:o}).extend(Xb)}({client:d,transport:Jp(u)});sy.setState(e=>Object.assign(Object.assign({},e),{[t.id]:{client:d,bundlerClient:l}}))})}function cy(t){var e;return null===(e=sy.getState()[t])||void 0===e?void 0:e.client}const uy=c(()=>({correlationIds:new Map})),dy=t=>uy.getState().correlationIds.get(t),ly=(t,e)=>{uy.setState(n=>{const r=new Map(n.correlationIds);return r.set(t,e),{correlationIds:r}})},fy=t=>{uy.setState(e=>{const n=new Map(e.correlationIds);return n.delete(t),{correlationIds:n}})},py=()=>{uy.setState({correlationIds:new Map})};function my(t){if("object"!=typeof t||null===t)throw O.internal("sub account info is not an object");if(!("address"in t))throw O.internal("sub account is invalid");if("address"in t&&"string"==typeof t.address&&!Vn(t.address))throw O.internal("sub account address is invalid");if("factory"in t&&"string"==typeof t.factory&&!Vn(t.factory))throw O.internal("sub account factory address is invalid");if("factoryData"in t&&"string"==typeof t.factoryData&&!jt(t.factoryData))throw O.internal("sub account factory data is invalid")}function hy(t){switch(t){case"public":return"spki";case"private":return"pkcs8"}}async function by(t,e){const n=hy(t),r=await crypto.subtle.exportKey(n,e);return a=new Uint8Array(r),[...a].map(t=>t.toString(16).padStart(2,"0")).join("");var a}async function yy(t,e){const n=hy(t),r=function(t){return new Uint8Array(t.match(/.{1,2}/g).map(t=>Number.parseInt(t,16)))}(e).buffer;return await crypto.subtle.importKey(n,r,{name:"ECDH",namedCurve:"P-256"},!0,"private"===t?["deriveKey"]:[])}async function gy(t,e){return async function(t,e){const n=crypto.getRandomValues(new Uint8Array(12));return{iv:n,cipherText:await crypto.subtle.encrypt({name:"AES-GCM",iv:n.buffer},t,(new TextEncoder).encode(e))}}(e,JSON.stringify(t,(t,e)=>{if(!(e instanceof Error))return e;const n=e;return Object.assign(Object.assign({},n.code?{code:n.code}:{}),{message:n.message})}))}async function vy(t,e){return JSON.parse(await async function(t,{iv:e,cipherText:n}){const r=await crypto.subtle.decrypt({name:"AES-GCM",iv:e.buffer},t,n);return(new TextDecoder).decode(r)}(e,t))}async function wy(t,e){const a=Object.assign(Object.assign({},t),{jsonrpc:"2.0",id:crypto.randomUUID()}),s=await window.fetch(e,{method:"POST",body:JSON.stringify(a),mode:"cors",headers:{"Content-Type":"application/json","X-Cbw-Sdk-Version":r,"X-Cbw-Sdk-Platform":n}}),{result:i,error:o}=await s.json();if(o)throw o;return i}function xy(t){return new Promise((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)})}function Py(t,e){const n=indexedDB.open(t);n.onupgradeneeded=()=>n.result.createObjectStore(e);const r=xy(n);return(t,n)=>r.then(r=>n(r.transaction(e,t).objectStore(e)))}let ky;function Iy(){return ky||(ky=Py("keyval-store","keyval")),ky}const Ay="activeId",Ey=function(t,e){const n="undefined"!=typeof indexedDB?Py(t,e):void 0;return{getItem:async t=>{const e=await function(t,e=Iy()){return e("readonly",e=>xy(e.get(t)))}(t,n);return e||null},removeItem:async t=>function(t,e=Iy()){return e("readwrite",e=>(e.delete(t),xy(e.transaction)))}(t,n),setItem:async(t,e)=>function(t,e,n=Iy()){return n("readwrite",n=>(n.put(e,t),xy(n.transaction)))}(t,e,n)}}("base-acc-sdk","keys");async function Oy(){const t=await async function(t={}){const{extractable:e=!1}=t,n=await globalThis.crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},e,["sign","verify"]),r=await globalThis.crypto.subtle.exportKey("raw",n.publicKey),a=ml(new Uint8Array(r));return{privateKey:n.privateKey,publicKey:a}}({extractable:!1}),e=Wo(bl(t.publicKey),1);return await Ey.setItem(e,t),await Ey.setItem(Ay,e),t}async function Sy(){const t=await Ey.getItem(Ay);if(!t)return null;const e=await Ey.getItem(t);return e||null}async function Ty(){const t=await async function(){const t=await Sy();if(!t){const t=await Oy(),e=Wo(bl(t.publicKey),1);return await Ey.setItem(e,t),await Ey.setItem(Ay,e),t}return t}(),e=Wo(bl(t.publicKey),1),n=async e=>{const{payload:n,metadata:r}=Yh({challenge:e,origin:"https://app.startale.com",userVerification:"preferred"}),a=await async function(t){const{payload:e,privateKey:n}=t,r=await globalThis.crypto.subtle.sign({name:"ECDSA",hash:"SHA-256"},n,wo(e)),a=xo(new Uint8Array(r)),s=Eo(Ao(a,0,32));let i=Eo(Ao(a,32,64));return i>Jh.CURVE.n/2n&&(i=Jh.CURVE.n-i),{r:s,s:i}}({payload:n,privateKey:t.privateKey});return{signature:sp(a),raw:{},webauthn:r}};return{id:e,publicKey:e,sign:async({hash:t})=>n(t),signMessage:async({message:t})=>n(nd(t)),signTypedData:async t=>n(cd(t)),type:"webAuthn"}}async function Cy(){return{account:await Ty()}}const By={storageKey:"ownPrivateKey",keyType:"private"},Ny={storageKey:"ownPublicKey",keyType:"public"},jy={storageKey:"peerPublicKey",keyType:"public"};class Uy{constructor(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(t){this.sharedSecret=null,this.peerPublicKey=t,await this.storeKey(jy,t),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,p.keys.clear()}async generateKeyPair(){const t=await async function(){return crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!0,["deriveKey"])}();this.ownPrivateKey=t.privateKey,this.ownPublicKey=t.publicKey,await this.storeKey(By,t.privateKey),await this.storeKey(Ny,t.publicKey)}async loadKeysIfNeeded(){if(null===this.ownPrivateKey&&(this.ownPrivateKey=await this.loadKey(By)),null===this.ownPublicKey&&(this.ownPublicKey=await this.loadKey(Ny)),null!==this.ownPrivateKey&&null!==this.ownPublicKey||await this.generateKeyPair(),null===this.peerPublicKey&&(this.peerPublicKey=await this.loadKey(jy)),null===this.sharedSecret){if(null===this.ownPrivateKey||null===this.peerPublicKey)return;this.sharedSecret=await async function(t,e){return crypto.subtle.deriveKey({name:"ECDH",public:e},t,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}(this.ownPrivateKey,this.peerPublicKey)}}async loadKey(t){const e=p.keys.get(t.storageKey);return e?yy(t.keyType,e):null}async storeKey(t,e){const n=await by(t.keyType,e);p.keys.set(t.storageKey,n)}}function My(t,e){if("object"==typeof t&&null!==t)return e.split(/[.[\]]+/).filter(Boolean).reduce((t,e)=>{if("object"==typeof t&&null!==t)return t[e]},t)}function Ry(t){var e;if(!t||!Array.isArray(t)||!(null===(e=t[0])||void 0===e?void 0:e.chainId))throw O.invalidParams();if("string"!=typeof t[0].chainId&&"number"!=typeof t[0].chainId)throw O.invalidParams()}function Fy(t,e){const n=Object.assign({},t);if(e&&t.method.startsWith("wallet_")){let t=My(n,"params.0.capabilities");if(void 0===t&&(t={}),"object"!=typeof t)throw O.invalidParams();t=Object.assign(Object.assign({},e),t),n.params&&Array.isArray(n.params)&&(n.params[0]=Object.assign(Object.assign({},n.params[0]),{capabilities:t}))}return n}async function _y(){var t;const e=null!==(t=p.subAccountsConfig.get())&&void 0!==t?t:{},n={};if(e.enableAutoSubAccounts){const{account:t}=e.toOwnerAccount?await e.toOwnerAccount():await Cy();if(!t)throw S.unauthorized("No owner account found");n.addSubAccount={account:{type:"create",keys:[{type:t.address?"address":"webauthn-p256",publicKey:t.address||t.publicKey}]}}}p.subAccountsConfig.set({capabilities:n})}async function zy({client:t,id:e}){var n;const r=await $c(t,{id:e});if("success"===r.status)return null===(n=r.receipts)||void 0===n?void 0:n[0].transactionHash;throw O.internal("failed to send transaction")}function Dy({calls:t,from:e,chainId:n,capabilities:r}){const a=l.get().paymasterOptions;let s={method:"wallet_sendCalls",params:[{version:"1.0",calls:t,chainId:Ce(n),from:e,atomicRequired:!0,capabilities:r}]};return(null==a?void 0:a[n])&&(s=Fy(s,{paymasterService:{url:null==a?void 0:a[n].url,id:null==a?void 0:a[n].id}})),s}function Ly({attribution:t,dappOrigin:e}){if(t)return"auto"in t&&t.auto&&e?Zn(jn(Oe(e)),0,16):"dataSuffix"in t?t.dataSuffix:void 0}function Gy(t,e){var n;if(!Array.isArray(null==t?void 0:t.params))return!1;const r=null===(n=t.params[0])||void 0===n?void 0:n.capabilities;return!(!r||"object"!=typeof r)&&e in r}function qy(t,e){const n=t.filter(t=>t!==e);return[e,...n]}function Hy(t,e){const n=t.filter(t=>t!==e);return[...n,e]}function Vy(t){const e=btoa(String.fromCharCode(...new Uint8Array(t)));return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Ky({webauthn:t,signature:e,id:n}){const r=rp(e);return{id:n,rawId:Vy(_e(n)),response:{authenticatorData:Vy(Fe(t.authenticatorData)),clientDataJSON:Vy(_e(t.clientDataJSON)),signature:Vy(Wy(r.r,r.s))},type:JSON.parse(t.clientDataJSON).type}}function Wy(t,e){const n=Fe(xe(Ce(t))),r=Fe(xe(Ce(e))),a=n.length,s=r.length,i=a+s+4,o=new Uint8Array(i+2);return o[0]=48,o[1]=i,o[2]=2,o[3]=a,o.set(n,4),o[a+4]=2,o[a+5]=s,o.set(r,a+6),o}async function Zy(t){const{owner:e,ownerIndex:n,address:r,client:a,factoryData:s}=t,i={abi:Qh,address:"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",version:"0.6"},o={abi:b,address:"0xba5ed110efdba3d005bfc882d75358acbbb85842"};return async function(t){const{extend:e,nonceKeyManager:n=Xu({source:{get:()=>Date.now(),set(){}}}),...r}=t;let a=!1;const s=await t.getAddress();return{...e,...r,address:s,async getFactoryArgs(){return"isDeployed"in this&&await this.isDeployed()?{factory:void 0,factoryData:void 0}:t.getFactoryArgs()},async getNonce(e){const r=e?.key??BigInt(await n.consume({address:s,chainId:t.client.chain.id,client:t.client}));return t.getNonce?await t.getNonce({...e,key:r}):await Nc(t.client,{abi:Tt(["function getNonce(address, uint192) pure returns (uint256)"]),address:t.entryPoint.address,functionName:"getNonce",args:[s,r]})},async isDeployed(){if(a)return!0;const e=await Ct(t.client,Uu,"getCode")({address:s});return a=Boolean(e),a},...t.sign?{async sign(e){const[{factory:n,factoryData:r},a]=await Promise.all([this.getFactoryArgs(),t.sign(e)]);return n&&r?yp({address:n,data:r,signature:a}):a}}:{},async signMessage(e){const[{factory:n,factoryData:r},a]=await Promise.all([this.getFactoryArgs(),t.signMessage(e)]);return n&&r&&"0x7702"!==n?yp({address:n,data:r,signature:a}):a},async signTypedData(e){const[{factory:n,factoryData:r},a]=await Promise.all([this.getFactoryArgs(),t.signTypedData(e)]);return n&&r&&"0x7702"!==n?yp({address:n,data:r,signature:a}):a},type:"smart"}}({client:a,entryPoint:i,extend:{abi:h,factory:o},async decodeCalls(t){const e=iu({abi:h,data:t});if("execute"===e.functionName)return[{to:e.args[0],value:e.args[1],data:e.args[2]}];if("executeBatch"===e.functionName)return e.args[0].map(t=>({to:t.target,value:t.value,data:t.data}));throw new _t(`unable to decode calls for "${e.functionName}"`)},async encodeCalls(t){var e,n;return 1===t.length?yr({abi:h,functionName:"execute",args:[t[0].to,null!==(e=t[0].value)&&void 0!==e?e:BigInt(0),null!==(n=t[0].data)&&void 0!==n?n:"0x"]}):yr({abi:h,functionName:"executeBatch",args:[t.map(t=>{var e,n;return{data:null!==(e=t.data)&&void 0!==e?e:"0x",target:t.to,value:null!==(n=t.value)&&void 0!==n?n:BigInt(0)}})]})},getAddress:async()=>r,getFactoryArgs:async()=>({factory:o.address,factoryData:s}),getStubSignature:async()=>"webAuthn"===e.type?"0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000170000000000000000000000000000000000000000000000000000000000000001949fc7c88032b9fcb5f6efc7a7b8c63668eae9871b765e23123bb473ff57aa831a7c0d9276168ebcc29f2875a0239cffdf2a9cd1c2007c5c77c071db9264df1d000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97630500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008a7b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a2273496a396e6164474850596759334b7156384f7a4a666c726275504b474f716d59576f4d57516869467773222c226f726967696e223a2268747470733a2f2f7369676e2e636f696e626173652e636f6d222c2263726f73734f726967696e223a66616c73657d00000000000000000000000000000000000000000000":Qy({ownerIndex:n,signature:"0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c"}),async sign(t){const r=Yy({address:await this.getAddress(),chainId:a.chain.id,hash:t.hash}),s=await Jy({hash:r,owner:e});return Qy({ownerIndex:n,signature:s})},async signMessage(t){const{message:r}=t,s=Yy({address:await this.getAddress(),chainId:a.chain.id,hash:nd(r)}),i=await Jy({hash:s,owner:e});return Qy({ownerIndex:n,signature:i})},async signTypedData(t){const{domain:r,types:s,primaryType:i,message:o}=t,c=Yy({address:await this.getAddress(),chainId:a.chain.id,hash:cd({domain:r,message:o,primaryType:i,types:s})}),u=await Jy({hash:c,owner:e});return Qy({ownerIndex:n,signature:u})},async signUserOperation(t){const{chainId:r=a.chain.id}=t,s=Yp(t,["chainId"]),o=await this.getAddress(),c=eb({chainId:r,entryPointAddress:i.address,entryPointVersion:i.version,userOperation:Object.assign(Object.assign({},s),{sender:o})}),u=await Jy({hash:c,owner:e});return Qy({ownerIndex:n,signature:u})},userOperation:{async estimateGas(t){var n;if("webAuthn"===e.type)return{verificationGasLimit:BigInt(Math.max(Number(null!==(n=t.verificationGasLimit)&&void 0!==n?n:BigInt(0)),8e5))}}}})}async function Jy({hash:t,owner:e}){if("webAuthn"===e.type){const{signature:n,webauthn:r}=await e.sign({hash:t});return function({webauthn:t,signature:e}){const{r:n,s:r}=rp(e);return nr([{components:[{name:"authenticatorData",type:"bytes"},{name:"clientDataJSON",type:"bytes"},{name:"challengeIndex",type:"uint256"},{name:"typeIndex",type:"uint256"},{name:"r",type:"uint256"},{name:"s",type:"uint256"}],type:"tuple"}],[{authenticatorData:t.authenticatorData,clientDataJSON:Ne(t.clientDataJSON),challengeIndex:BigInt(t.challengeIndex),typeIndex:BigInt(t.typeIndex),r:n,s:r}])}({signature:n,webauthn:r})}if(e.sign)return e.sign({hash:t});throw new _t("`owner` does not support raw sign.")}function Yy({address:t,chainId:e,hash:n}){return cd({domain:{chainId:e,name:"Coinbase Smart Wallet",verifyingContract:t,version:"1"},types:{CoinbaseSmartWalletMessage:[{name:"hash",type:"bytes32"}]},primaryType:"CoinbaseSmartWalletMessage",message:{hash:n}})}function Qy(t){const{ownerIndex:e=0}=t,n=(()=>{if(65!==Ut(t.signature))return t.signature;const e=function(t){const{r:e,s:n}=tp.Signature.fromCompact(t.slice(2,130)),r=Number(`0x${t.slice(130)}`),[a,s]=(()=>{if(0===r||1===r)return[void 0,r];if(27===r)return[BigInt(r),0];if(28===r)return[BigInt(r),1];throw new Error("Invalid yParityOrV value")})();return void 0!==a?{r:Ce(e,{size:32}),s:Ce(n,{size:32}),v:a,yParity:s}:{r:Ce(e,{size:32}),s:Ce(n,{size:32}),yParity:s}}(t.signature);return function(t,e){if(t.length!==e.length)throw new Kt({expectedLength:t.length,givenLength:e.length});const n=[];for(let r=0;r<t.length;r++){const a=t[r],s=e[r];n.push(_u(a,s))}return Wn(n)}(["bytes32","bytes32","uint8"],[e.r,e.s,0===e.yParity?27:28])})();return nr([{components:[{name:"ownerIndex",type:"uint8"},{name:"signatureData",type:"bytes"}],type:"tuple"}],[{ownerIndex:e,signatureData:n}])}async function Xy({address:t,client:e,factory:n,factoryData:r,owner:a,ownerIndex:s,parentAddress:i,attribution:o}){var c;const u={address:t,factory:n,factoryData:r},d=null===(c=e.chain)||void 0===c?void 0:c.id;if(!d)throw O.internal("chainId not found");const l=await Zy({owner:a,ownerIndex:null!=s?s:1,address:t,client:e,factoryData:r}),f=async t=>{var n,r,s,c,p,m;try{switch(t.method){case"wallet_addSubAccount":return u;case"eth_accounts":return[u.address];case"eth_coinbase":return u.address;case"net_version":return d.toString();case"eth_chainId":return Ce(d);case"eth_sendTransaction":{F(t.params);const a=t.params[0];R(a.to,O.invalidParams("to is required"));const i={to:a.to,data:Dh(null!==(n=a.data)&&void 0!==n?n:"0x",!0),value:Dh(null!==(r=a.value)&&void 0!==r?r:"0x",!0),from:null!==(s=a.from)&&void 0!==s?s:u.address},o=Dy({calls:[i],chainId:d,from:i.from}),c=await f(o);return zy({client:e,id:c})}case"wallet_sendCalls":{F(t.params);const e=My(t.params[0],"chainId");if(!e)throw O.invalidParams("chainId is required");if(!jt(e))throw O.invalidParams("chainId must be a hex encoded integer");if(!t.params[0])throw O.invalidParams("params are required");if(!("calls"in t.params[0]))throw O.invalidParams("calls are required");let n={method:"wallet_prepareCalls",params:[{version:"1.0",calls:t.params[0].calls,chainId:e,from:u.address,capabilities:"capabilities"in t.params[0]?t.params[0].capabilities:{}}]};i&&(n=Fy(n,{funding:[{type:"spendPermission",data:{autoApply:!0,sources:[i],preference:"PREFER_DIRECT_BALANCE"}}]}));let r=await f(n);const s=await(null===(p=(c=a).sign)||void 0===p?void 0:p.call(c,{hash:Ae(r.signatureRequest.hash)}));let o;if(!s)throw O.internal("signature not found");o=jt(s)?{type:"secp256k1",data:{address:a.address,signature:s}}:{type:"webauthn",data:{signature:JSON.stringify(Ky(Object.assign({id:null!==(m=a.id)&&void 0!==m?m:"1"},s))),publicKey:a.publicKey}};return(await f({method:"wallet_sendPreparedCalls",params:[{version:"1.0",type:r.type,data:r.userOp,chainId:r.chainId,signature:o}]}))[0]}case"wallet_sendPreparedCalls":{F(t.params);const n=My(t.params[0],"chainId");if(!n)throw O.invalidParams("chainId is required");if(!jt(n))throw O.invalidParams("chainId must be a hex encoded integer");return await e.request({method:"wallet_sendPreparedCalls",params:t.params})}case"wallet_prepareCalls":{F(t.params);const n=My(t.params[0],"chainId");if(!n)throw O.invalidParams("chainId is required");if(!jt(n))throw O.invalidParams("chainId must be a hex encoded integer");if(!t.params[0])throw O.invalidParams("params are required");if(!My(t.params[0],"calls"))throw O.invalidParams("calls are required");const r=t.params[0];o&&r.capabilities&&!("attribution"in r.capabilities)&&(r.capabilities.attribution=o);return await e.request({method:"wallet_prepareCalls",params:[Object.assign(Object.assign({},t.params[0]),{chainId:n})]})}case"personal_sign":{if(F(t.params),!jt(t.params[0]))throw O.invalidParams("message must be a hex encoded string");const e=Ae(t.params[0]);return l.signMessage({message:e})}case"eth_signTypedData_v4":{F(t.params);const e="string"==typeof t.params[1]?JSON.parse(t.params[1]):t.params[1];return l.signTypedData(e)}default:throw O.methodNotSupported()}}catch(t){if(M(t)){const e=function(t){try{const e=JSON.parse(t.details);return new N(e.code,e.message,e.data)}catch(t){return null}}(t);if(e)throw e}throw t}};return{request:f}}async function $y({address:t,client:e,publicKey:n,factory:r,factoryData:a}){if(!await Uu(e,{address:t})&&r&&a){const t=iu({abi:b,data:a});if("createAccount"!==t.functionName)throw O.internal("unknown factory function");const[e]=t.args;return e.findIndex(t=>t.toLowerCase()===tg(n).toLowerCase())}const s=await Nc(e,{address:t,abi:h,functionName:"ownerCount"});for(let r=Number(s)-1;r>=0;r--){const a=await Nc(e,{address:t,abi:h,functionName:"ownerAtIndex",args:[BigInt(r)]}),s=tg(n);if(a.toLowerCase()===s.toLowerCase())return r}return-1}function tg(t){return Vn(t)?he(t):t}async function eg({ownerAccount:t,globalAccountRequest:e,chainId:n}){var r,a;const s=p.account.get(),i=p.subAccounts.get(),o=null===(r=s.accounts)||void 0===r?void 0:r.find(t=>t.toLowerCase()!==(null==i?void 0:i.address.toLowerCase()));R(o,S.unauthorized("no global account")),R(null===(a=s.chain)||void 0===a?void 0:a.id,S.unauthorized("no chain id")),R(null==i?void 0:i.address,S.unauthorized("no sub account"));const c=[];if("local"===t.type&&t.address&&c.push({to:i.address,data:yr({abi:h,functionName:"addOwnerAddress",args:[t.address]}),value:Oe(0)}),t.publicKey){const[e,n]=Tr([{type:"bytes32"},{type:"bytes32"}],t.publicKey);c.push({to:i.address,data:yr({abi:h,functionName:"addOwnerPublicKey",args:[e,n]}),value:Oe(0)})}const u={method:"wallet_sendCalls",params:[{version:"1",calls:c,chainId:Ce(n),from:o}]},d=await async function(){var t,e;const n=null!==(e=null===(t=p.config.get().metadata)||void 0===t?void 0:t.appName)&&void 0!==e?e:"App",r=kh();return new Promise(t=>{em({dialogContext:"sub_account_add_owner"}),r.presentItem({title:`Re-authorize ${n}`,message:`${n} has lost access to your account. Please sign at the next step to re-authorize ${n}`,onClose:()=>{nm({dialogContext:"sub_account_add_owner"}),t("cancel")},actionItems:[{text:"Continue",variant:"primary",onClick:()=>{rm({dialogContext:"sub_account_add_owner",dialogAction:"confirm"}),r.clear(),t("authenticate")}},{text:"Not now",variant:"secondary",onClick:()=>{rm({dialogContext:"sub_account_add_owner",dialogAction:"cancel"}),r.clear(),t("cancel")}}]})})}();if("cancel"===d)throw S.unauthorized("user cancelled");const l=await e(u),f=cy(s.chain.id);R(f,O.internal(`client not found for chainId ${s.chain.id}`));if("success"!==(await $c(f,{id:l})).status)throw O.internal("add owner call failed");const m=await $y({address:i.address,publicKey:"local"===t.type&&t.address?t.address:t.publicKey,client:f});if(-1===m)throw O.internal("failed to find owner index");return m}async function ng({request:t,globalAccountAddress:e,subAccountAddress:n,client:r,globalAccountRequest:a,chainId:s,prependCalls:i}){var o;let c;if("wallet_sendCalls"===t.method&&("object"==typeof(u=t.params)&&null!==u&&Array.isArray(u)&&u.length>0&&"object"==typeof u[0]&&null!==u[0]&&"calls"in u[0]))c=t.params[0];else{if("eth_sendTransaction"!==t.method||!function(t){return Array.isArray(t)&&1===t.length&&"object"==typeof t[0]&&null!==t[0]&&"to"in t[0]}(t.params))throw new Error(`Could not get original call from ${t.method} request`);c=Dy({calls:[t.params[0]],chainId:s,from:t.params[0].from}).params[0]}var u;const l=yr({abi:h,functionName:"executeBatch",args:[c.calls.map(t=>{var e,n;return{target:t.to,value:ke(null!==(e=t.value)&&void 0!==e?e:"0x0"),data:null!==(n=t.data)&&void 0!==n?n:"0x"}})]}),f=[...null!=i?i:[],{data:l,to:n,value:"0x0"}],p=Fy({method:"wallet_sendCalls",params:[Object.assign(Object.assign({},c),{calls:f,from:e,version:"2.0.0",atomicRequired:!0})]},{spendPermissions:{request:{spender:n}}}),m=await a(p);let b=m.id;return(null===(o=m.capabilities)||void 0===o?void 0:o.spendPermissions)&&d.set(m.capabilities.spendPermissions.permissions),"eth_sendTransaction"===t.method?zy({client:r,id:b}):m}async function rg({globalAccountAddress:t,subAccountAddress:e,client:n,request:r,globalAccountRequest:a}){var s;const i=null===(s=n.chain)||void 0===s?void 0:s.id;R(i,O.internal("invalid chainId"));try{await async function(){const t=kh();return await new Promise((e,n)=>{em({dialogContext:"sub_account_insufficient_balance"}),t.presentItem({title:"Insufficient spend permission",message:"Your spend permission's remaining balance cannot cover this transaction. Please use your primary account to complete this transaction.",onClose:()=>{nm({dialogContext:"sub_account_insufficient_balance"}),t.clear(),n(new Error("User cancelled funding"))},actionItems:[{text:"Use primary account",variant:"primary",onClick:()=>{rm({dialogContext:"sub_account_insufficient_balance",dialogAction:"continue_in_popup"}),t.clear(),e("continue_popup")}},{text:"Cancel",variant:"secondary",onClick:()=>{rm({dialogContext:"sub_account_insufficient_balance",dialogAction:"cancel"}),t.clear(),n(new Error("User cancelled funding"))}}]})})}()}catch(t){throw S.userRejectedRequest({message:"User cancelled funding"})}return await ng({request:r,globalAccountAddress:t,subAccountAddress:e,client:n,globalAccountRequest:a,chainId:i})}class ag{constructor(t){var e,n,r,a;this.communicator=t.communicator,this.callback=t.callback,this.keyManager=new Uy;const{account:s,chains:i}=p.getState();this.accounts=null!==(e=s.accounts)&&void 0!==e?e:[],this.chain=null!==(n=s.chain)&&void 0!==n?n:{id:null!==(a=null===(r=t.metadata.appChainIds)||void 0===r?void 0:r[0])&&void 0!==a?a:1},oy(null!=i?i:iy)}get isConnected(){return this.accounts.length>0}async handshake(t){var e,n,r;const a=dy(t);(({method:t,correlationId:e})=>{var n;tm("scw_signer.handshake.started",{action:Xp.unknown,componentType:Qp.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=p.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},$p.high)})({method:t.method,correlationId:a});try{await(null===(n=(e=this.communicator).waitForPopupLoaded)||void 0===n?void 0:n.call(e));const s=await this.createRequestMessage({handshake:{method:t.method,params:null!==(r=t.params)&&void 0!==r?r:[]}},a),i=await this.communicator.postRequestAndWaitForResponse(s);if("failure"in i.content)throw i.content.failure;const o=await yy("public",i.sender);await this.keyManager.setPeerPublicKey(o);const c=await this.decryptResponseMessage(i);this.handleResponse(t,c),(({method:t,correlationId:e})=>{var n;tm("scw_signer.handshake.completed",{action:Xp.unknown,componentType:Qp.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=p.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},$p.high)})({method:t.method,correlationId:a})}catch(e){throw(({method:t,correlationId:e,errorMessage:n})=>{var r;tm("scw_signer.handshake.error",{action:Xp.error,componentType:Qp.unknown,method:t,correlationId:e,errorMessage:n,enableAutoSubAccounts:null===(r=p.subAccountsConfig.get())||void 0===r?void 0:r.enableAutoSubAccounts},$p.high)})({method:t.method,correlationId:a,errorMessage:jh(e)}),e}}async request(t){const e=dy(t);(({method:t,correlationId:e})=>{var n;tm("scw_signer.request.started",{action:Xp.unknown,componentType:Qp.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=p.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},$p.high)})({method:t.method,correlationId:e});try{const n=await this._request(t);return(({method:t,correlationId:e})=>{var n;tm("scw_signer.request.completed",{action:Xp.unknown,componentType:Qp.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=p.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},$p.high)})({method:t.method,correlationId:e}),n}catch(n){throw(({method:t,correlationId:e,errorMessage:n})=>{var r;tm("scw_signer.request.error",{action:Xp.error,componentType:Qp.unknown,method:t,correlationId:e,errorMessage:n,enableAutoSubAccounts:null===(r=p.subAccountsConfig.get())||void 0===r?void 0:r.enableAutoSubAccounts},$p.high)})({method:t.method,correlationId:e,errorMessage:jh(n)}),n}}async _request(t){var n,r,a,s,i,o,c,u,d,l;if(0===this.accounts.length)switch(t.method){case"wallet_switchEthereumChain":return Ry(t.params),void(this.chain.id=Number(t.params[0].chainId));case"wallet_connect":{await(null===(r=(n=this.communicator).waitForPopupLoaded)||void 0===r?void 0:r.call(n)),await _y();let e={};Gy(t,"addSubAccount")&&(e=null!==(s=null===(a=p.subAccountsConfig.get())||void 0===a?void 0:a.capabilities)&&void 0!==s?s:{});const i=Fy(t,e);return this.sendRequestToPopup(i)}case"wallet_sendCalls":case"wallet_sign":return this.sendRequestToPopup(t);default:throw S.unauthorized()}if(this.shouldRequestUseSubAccountSigner(t)){const e=dy(t);(({method:t,correlationId:e})=>{var n;tm("scw_sub_account.request.started",{action:Xp.unknown,componentType:Qp.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=p.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},$p.high)})({method:t.method,correlationId:e});try{const n=await this.sendRequestToSubAccountSigner(t);return(({method:t,correlationId:e})=>{var n;tm("scw_sub_account.request.completed",{action:Xp.unknown,componentType:Qp.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=p.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},$p.high)})({method:t.method,correlationId:e}),n}catch(n){throw(({method:t,correlationId:e,errorMessage:n})=>{var r;tm("scw_sub_account.request.error",{action:Xp.error,componentType:Qp.unknown,method:t,correlationId:e,errorMessage:n,enableAutoSubAccounts:null===(r=p.subAccountsConfig.get())||void 0===r?void 0:r.enableAutoSubAccounts},$p.high)})({method:t.method,correlationId:e,errorMessage:jh(n)}),n}}switch(t.method){case"eth_requestAccounts":case"eth_accounts":{const t=p.subAccounts.get(),e=p.subAccountsConfig.get();return(null==t?void 0:t.address)&&(this.accounts=(null==e?void 0:e.enableAutoSubAccounts)?qy(this.accounts,t.address):Hy(this.accounts,t.address)),null===(i=this.callback)||void 0===i||i.call(this,"connect",{chainId:Ce(this.chain.id)}),this.accounts}case"eth_coinbase":return this.accounts[0];case"net_version":return this.chain.id;case"eth_chainId":return Ce(this.chain.id);case"wallet_getCapabilities":return this.handleGetCapabilitiesRequest(t);case"wallet_getUserInfo":return this.handleGetUserInfoRequest(t);case"wallet_switchEthereumChain":return this.handleSwitchChainRequest(t);case"eth_ecRecover":case"personal_sign":case"wallet_sign":case"personal_ecRecover":case"eth_signTransaction":case"eth_sendTransaction":case"eth_signTypedData_v1":case"eth_signTypedData_v3":case"eth_signTypedData_v4":case"eth_signTypedData":case"wallet_addEthereumChain":case"wallet_watchAsset":case"wallet_sendCalls":case"wallet_showCallsStatus":case"wallet_grantPermissions":return this.sendRequestToPopup(t);case"wallet_connect":{if(!Gy(t,"signInWithEthereum")){const t=await async function(){const t=p.spendPermissions.get(),e=p.subAccounts.get(),n=p.account.get().accounts;if(!n)return null;const r=null==n?void 0:n.map(n=>({address:n,capabilities:{subAccounts:e?[e]:void 0,spendPermissions:t.length>0?{permissions:t}:void 0}}));return{accounts:r}}();if(t)return t}await(null===(c=(o=this.communicator).waitForPopupLoaded)||void 0===c?void 0:c.call(o)),await _y();const e=p.subAccountsConfig.get(),n=Fy(t,null!==(u=null==e?void 0:e.capabilities)&&void 0!==u?u:{}),r=await this.sendRequestToPopup(n);return null===(d=this.callback)||void 0===d||d.call(this,"connect",{chainId:Ce(this.chain.id)}),r}case"wallet_getSubAccounts":{const e=p.subAccounts.get();if(null==e?void 0:e.address)return{subAccounts:[e]};if(!this.chain.rpcUrl)throw O.internal("No RPC URL set for chain");const n=await wy(t,this.chain.rpcUrl);if(F(n.subAccounts,"subAccounts"),n.subAccounts.length>0){my(n.subAccounts[0]);const t=n.subAccounts[0];p.subAccounts.set({address:t.address,factory:t.factory,factoryData:t.factoryData})}return n}case"wallet_addSubAccount":return this.addSubAccount(t);case"coinbase_fetchPermissions":{!function(t){if("coinbase_fetchPermissions"!==t.method||void 0!==t.params){if("coinbase_fetchPermissions"!==t.method||!Array.isArray(t.params)||1!==t.params.length||"object"!=typeof t.params[0])throw O.invalidParams();if("string"!=typeof t.params[0].account||!t.params[0].chainId.startsWith("0x"))throw O.invalidParams("FetchPermissions - Invalid params: params[0].account must be a hex string");if("string"!=typeof t.params[0].chainId||!t.params[0].chainId.startsWith("0x"))throw O.invalidParams("FetchPermissions - Invalid params: params[0].chainId must be a hex string");if("string"!=typeof t.params[0].spender||!t.params[0].spender.startsWith("0x"))throw O.invalidParams("FetchPermissions - Invalid params: params[0].spender must be a hex string")}}(t);const n=function(t){var e,n,r;if(void 0!==t.params)return t;const a=null===(e=p.getState().account.accounts)||void 0===e?void 0:e[0],s=null===(n=p.getState().account.chain)||void 0===n?void 0:n.id,i=null===(r=p.getState().subAccount)||void 0===r?void 0:r.address;if(!a||!i||!s)throw O.invalidParams("FetchPermissions - one or more of account, sub account, or chain id is missing, connect to sub account via wallet_connect first");return{method:"coinbase_fetchPermissions",params:[{account:a,chainId:Ce(s),spender:i}]}}(t),r=await wy(n,e),a=Ie(null===(l=n.params)||void 0===l?void 0:l[0].chainId);return p.spendPermissions.set(r.permissions.map(t=>Object.assign(Object.assign({},t),{chainId:a}))),r}default:if(!this.chain.rpcUrl)throw O.internal("No RPC URL set for chain");return wy(t,this.chain.rpcUrl)}}async sendRequestToPopup(t){var e,n;await(null===(n=(e=this.communicator).waitForPopupLoaded)||void 0===n?void 0:n.call(e));const r=function(t,e){if("wallet_sendCalls"!==t.method)return t;const n=l.get().paymasterOptions,r=null==n?void 0:n[e];return r?Fy(t,{paymasterService:{url:r.url,id:r.id}}):t}(t,this.chain.id),a=await this.sendEncryptedRequest(r),s=await this.decryptResponseMessage(a);return this.handleResponse(r,s)}async handleResponse(t,e){var n,r,a,s,i;const o=e.result;if("error"in o)throw o.error;switch(t.method){case"eth_requestAccounts":{const t=o.value;this.accounts=t,p.account.set({accounts:t,chain:this.chain}),null===(n=this.callback)||void 0===n||n.call(this,"accountsChanged",t);break}case"wallet_connect":{const t=o.value,e=t.accounts.map(t=>t.address);this.accounts=e,p.account.set({accounts:e});const n=t.userInfo;p.userInfo.set(n);const i=t.accounts.at(0),c=null==i?void 0:i.capabilities;if(null==c?void 0:c.subAccounts){const t=null==c?void 0:c.subAccounts;F(t,"subAccounts"),my(t[0]),p.subAccounts.set({address:t[0].address,factory:t[0].factory,factoryData:t[0].factoryData})}let u=[this.accounts[0]];const d=p.subAccounts.get(),l=p.subAccountsConfig.get();(null==d?void 0:d.address)&&(this.accounts=(null==l?void 0:l.enableAutoSubAccounts)?qy(this.accounts,d.address):Hy(this.accounts,d.address));const f=null===(a=null===(r=null==t?void 0:t.accounts)||void 0===r?void 0:r[0].capabilities)||void 0===a?void 0:a.spendPermissions;f&&"permissions"in f&&p.spendPermissions.set(null==f?void 0:f.permissions),null===(s=this.callback)||void 0===s||s.call(this,"accountsChanged",u);break}case"wallet_addSubAccount":{my(o.value);const t=o.value;p.subAccounts.set(t);const e=p.subAccountsConfig.get();this.accounts=(null==e?void 0:e.enableAutoSubAccounts)?qy(this.accounts,t.address):Hy(this.accounts,t.address),null===(i=this.callback)||void 0===i||i.call(this,"accountsChanged",this.accounts);break}}return o.value}async cleanup(){var t,e;const n=p.config.get().metadata;await this.keyManager.clear(),p.account.clear(),p.subAccounts.clear(),p.spendPermissions.clear(),p.chains.clear(),this.accounts=[],this.chain={id:null!==(e=null===(t=null==n?void 0:n.appChainIds)||void 0===t?void 0:t[0])&&void 0!==e?e:1}}async handleSwitchChainRequest(t){Ry(t.params);const e=Lh(t.params[0].chainId);if(this.updateChain(e))return null;const n=await this.sendRequestToPopup(t);return null===n&&this.updateChain(e),n}async handleGetCapabilitiesRequest(t){!function(t){if(!t||!Array.isArray(t)||1!==t.length&&2!==t.length)throw O.invalidParams();if("string"!=typeof t[0]||!Vn(t[0]))throw O.invalidParams();if(2===t.length){if(!Array.isArray(t[1]))throw O.invalidParams();for(const e of t[1])if("string"!=typeof e||!e.startsWith("0x"))throw O.invalidParams()}}(t.params);const e=t.params[0],n=t.params[1];if(!this.accounts.some(t=>mi(t,e)))throw S.unauthorized("no active account found when getting capabilities");const r=p.getState().account.capabilities;if(!r)return{};if(!n||0===n.length)return r;const a=new Set(n.map(t=>Ie(t)));return Object.fromEntries(Object.entries(r).filter(([t])=>{try{const e=Ie(t);return a.has(e)}catch(t){return!1}}))}async handleGetUserInfoRequest(t){const e=p.getState().userInfo;if(!e)throw S.unauthorized("No user info found");return e}async sendEncryptedRequest(t){const e=await this.keyManager.getSharedSecret();if(!e)throw S.unauthorized("No shared secret found when encrypting request");const n=await gy({action:t,chainId:this.chain.id},e),r=dy(t),a=await this.createRequestMessage({encrypted:n},r);return this.communicator.postRequestAndWaitForResponse(a)}async createRequestMessage(t,e){const n=await by("public",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),correlationId:e,sender:n,content:t,timestamp:new Date}}async decryptResponseMessage(t){var e,n,r;const a=t.content;if("failure"in a)throw a.failure;const s=await this.keyManager.getSharedSecret();if(!s)throw S.unauthorized("Invalid session: no shared secret found when decrypting response");const i=await vy(a.encrypted,s),o=null===(e=i.data)||void 0===e?void 0:e.chains;if(o){const t=null===(n=i.data)||void 0===n?void 0:n.nativeCurrencies,e=Object.entries(o).map(([e,n])=>{const r=null==t?void 0:t[Number(e)];return Object.assign({id:Number(e),rpcUrl:n},r?{nativeCurrency:r}:{})});p.chains.set(e),this.updateChain(this.chain.id,e),oy(e)}const c=null===(r=i.data)||void 0===r?void 0:r.capabilities;return c&&p.account.set({capabilities:c}),i}updateChain(t,e){var n;const r=p.getState(),a=null!=e?e:r.chains,s=null==a?void 0:a.find(e=>e.id===t);return!!s&&(s!==this.chain&&(this.chain=s,p.account.set({chain:s}),null===(n=this.callback)||void 0===n||n.call(this,"chainChanged",_h(s.id))),!0)}async addSubAccount(t){var e,n,r,a;const s=p.getState().subAccount,i=p.subAccountsConfig.get();if(null==s?void 0:s.address)return this.accounts=(null==i?void 0:i.enableAutoSubAccounts)?qy(this.accounts,s.address):Hy(this.accounts,s.address),null===(e=this.callback)||void 0===e||e.call(this,"accountsChanged",this.accounts),s;if(await(null===(r=(n=this.communicator).waitForPopupLoaded)||void 0===r?void 0:r.call(n)),Array.isArray(t.params)&&t.params.length>0&&t.params[0].account&&"create"===t.params[0].account.type){let e;if(t.params[0].account.keys&&t.params[0].account.keys.length>0)e=t.params[0].account.keys;else{const t=null!==(a=p.subAccountsConfig.get())&&void 0!==a?a:{},{account:n}=t.toOwnerAccount?await t.toOwnerAccount():await Cy();if(!n)throw S.unauthorized("could not get subaccount owner account when adding sub account");e=[{type:n.address?"address":"webauthn-p256",publicKey:n.address||n.publicKey}]}t.params[0].account.keys=e}const o=await this.sendRequestToPopup(t);return my(o),o}shouldRequestUseSubAccountSigner(t){return!1}async sendRequestToSubAccountSigner(t){var e;const n=p.subAccounts.get(),r=p.subAccountsConfig.get(),a=p.config.get();R(null==n?void 0:n.address,S.unauthorized("no active sub account when sending request to sub account signer"));const s=(null==r?void 0:r.toOwnerAccount)?await r.toOwnerAccount():await Cy();R(null==s?void 0:s.account,S.unauthorized("no active sub account owner when sending request to sub account signer"));const i=function(t){var e;if(!Array.isArray(t.params))return null;switch(t.method){case"personal_sign":return t.params[1];case"eth_signTypedData_v4":return t.params[0];case"eth_signTransaction":case"eth_sendTransaction":case"wallet_sendCalls":return null===(e=t.params[0])||void 0===e?void 0:e.from;default:return null}}(t);void 0===i&&(t=function(t,e){if(!Array.isArray(t.params))throw O.invalidParams();const n=[...t.params];switch(t.method){case"eth_signTransaction":case"eth_sendTransaction":case"wallet_sendCalls":n[0].from=e;break;case"eth_signTypedData_v4":n[0]=e;break;case"personal_sign":n[1]=e}return Object.assign(Object.assign({},t),{params:n})}(t,n.address));const o=cy(this.chain.id);R(o,O.internal(`client not found for chainId ${this.chain.id} when sending request to sub account signer`));const c=this.accounts.find(t=>t.toLowerCase()!==n.address.toLowerCase());R(c,S.unauthorized("no global account found when sending request to sub account signer"));const u=Ly({attribution:null===(e=a.preference)||void 0===e?void 0:e.attribution,dappOrigin:window.location.origin});if(["eth_sendTransaction","wallet_sendCalls"].includes(t.method)){const e=p.subAccountsConfig.get();if(!1!==(null==e?void 0:e.unstable_enableAutoSpendPermissions)){if(0===d.get().length){return await ng({request:t,globalAccountAddress:c,subAccountAddress:n.address,client:o,globalAccountRequest:this.sendRequestToPopup.bind(this),chainId:this.chain.id})}}}const l="local"===s.account.type?s.account.address:s.account.publicKey;let f=await $y({address:n.address,factory:n.factory,factoryData:n.factoryData,publicKey:l,client:o});if(-1===f){const e=dy(t);(({method:t,correlationId:e})=>{var n;tm("scw_sub_account.add_owner.started",{action:Xp.unknown,componentType:Qp.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=p.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},$p.high)})({method:t.method,correlationId:e});try{f=await eg({ownerAccount:s.account,globalAccountRequest:this.sendRequestToPopup.bind(this),chainId:this.chain.id}),(({method:t,correlationId:e})=>{var n;tm("scw_sub_account.add_owner.completed",{action:Xp.unknown,componentType:Qp.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=p.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},$p.high)})({method:t.method,correlationId:e})}catch(n){return(({method:t,correlationId:e,errorMessage:n})=>{var r;tm("scw_sub_account.add_owner.error",{action:Xp.error,componentType:Qp.unknown,method:t,correlationId:e,errorMessage:n,enableAutoSubAccounts:null===(r=p.subAccountsConfig.get())||void 0===r?void 0:r.enableAutoSubAccounts},$p.high)})({method:t.method,correlationId:e,errorMessage:jh(n)}),S.unauthorized("failed to add sub account owner when sending request to sub account signer")}}const{request:m}=await Xy({address:n.address,owner:s.account,client:o,factory:n.factory,factoryData:n.factoryData,parentAddress:c,attribution:u?{suffix:u}:void 0,ownerIndex:f});try{return await m(t)}catch(e){const r=p.subAccountsConfig.get();if(!1===(null==r?void 0:r.unstable_enableAutoSpendPermissions))throw e;let a;if(M(e))a=JSON.parse(e.details);else{if(!U(e))throw e;a=e}if(!U(a)||!a.data)throw e;if(!a.data)throw e;const s=dy(t);(({method:t,correlationId:e})=>{var n;tm("scw_sub_account.insufficient_balance.error_handling.started",{action:Xp.unknown,componentType:Qp.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=p.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},$p.high)})({method:t.method,correlationId:s});try{const e=await rg({errorData:a.data,globalAccountAddress:c,subAccountAddress:n.address,client:o,request:t,globalAccountRequest:this.request.bind(this)});return(({method:t,correlationId:e})=>{var n;tm("scw_sub_account.insufficient_balance.error_handling.completed",{action:Xp.unknown,componentType:Qp.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=p.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},$p.high)})({method:t.method,correlationId:s}),e}catch(n){throw console.error(n),(({method:t,correlationId:e,errorMessage:n})=>{var r;tm("scw_sub_account.insufficient_balance.error_handling.error",{action:Xp.error,componentType:Qp.unknown,method:t,correlationId:e,errorMessage:n,enableAutoSubAccounts:null===(r=p.subAccountsConfig.get())||void 0===r?void 0:r.enableAutoSubAccounts},$p.high)})({method:t.method,correlationId:s,errorMessage:jh(n)}),e}}}}class sg extends Nh{constructor(t){var{metadata:e}=t,n=t.preference,{walletUrl:r}=n,a=Yp(n,["walletUrl"]);super(),this.isBaseAccount=!0,this.communicator=new Oh({url:r,metadata:e,preference:a}),this.signer=new ag({metadata:e,communicator:this.communicator,callback:this.emit.bind(this)})}async request(t){const e=crypto.randomUUID();ly(t,e),(({method:t,correlationId:e})=>{tm("provider.request.started",{action:Xp.unknown,componentType:Qp.unknown,method:t,signerType:"app-sdk",correlationId:e},$p.high)})({method:t.method,correlationId:e});try{const n=await this._request(t);return(({method:t,correlationId:e})=>{tm("provider.request.responded",{action:Xp.unknown,componentType:Qp.unknown,method:t,signerType:"app-sdk",correlationId:e},$p.high)})({method:t.method,correlationId:e}),n}catch(n){throw(({method:t,correlationId:e,errorMessage:n})=>{tm("provider.request.error",{action:Xp.error,componentType:Qp.unknown,method:t,signerType:"app-sdk",correlationId:e,errorMessage:n},$p.high)})({method:t.method,correlationId:e,errorMessage:jh(n)}),n}finally{fy(t)}}async _request(t){var n,r;try{if(function(t){if(!t||"object"!=typeof t||Array.isArray(t))throw O.invalidParams({message:"Expected a single, non-array, object argument.",data:t});const{method:e,params:n}=t;if("string"!=typeof e||0===e.length)throw O.invalidParams({message:"'args.method' must be a non-empty string.",data:t});if(void 0!==n&&!Array.isArray(n)&&("object"!=typeof n||null===n))throw O.invalidParams({message:"'args.params' must be an object or array if provided.",data:t});switch(e){case"eth_sign":case"eth_signTypedData_v2":case"eth_subscribe":case"eth_unsubscribe":throw S.unsupportedMethod()}}(t),!this.signer.isConnected)switch(t.method){case"eth_requestAccounts":await this.signer.handshake({method:"handshake"}),await _y(),await this.signer.request({method:"wallet_connect",params:[Object.assign({version:"1",capabilities:Object.assign({},null!==(r=null===(n=p.subAccountsConfig.get())||void 0===n?void 0:n.capabilities)&&void 0!==r?r:{})},t.params)]});break;case"wallet_connect":await this.signer.handshake({method:"handshake"});return await this.signer.request(t);case"wallet_sendCalls":case"wallet_sign":try{await this.signer.handshake({method:"handshake"});return await this.signer.request(t)}finally{await this.signer.cleanup()}case"wallet_getCallsStatus":return await wy(t,e);case"eth_accounts":return[];case"net_version":return 1;case"eth_chainId":return _h(1);default:throw S.unauthorized("Must call 'eth_requestAccounts' before other methods")}return await this.signer.request(t)}catch(t){const{code:e}=t;return e===g.unauthorized&&await this.disconnect(),Promise.reject(Sh(t))}}async disconnect(){await this.signer.cleanup(),py(),this.emit("disconnect",S.disconnected("User initiated disconnection"))}}function ig(t){var e,n,r,a,s,i;const o={metadata:{appName:t.appName||"App",appLogoUrl:t.appLogoUrl||"",appChainIds:t.appChainIds||[]},preference:null!==(e=t.preference)&&void 0!==e?e:{},paymasterOptions:t.paymasterOptions};(null===(n=t.subAccounts)||void 0===n?void 0:n.toOwnerAccount)&&D(t.subAccounts.toOwnerAccount),p.subAccountsConfig.set({toOwnerAccount:null===(r=t.subAccounts)||void 0===r?void 0:r.toOwnerAccount,enableAutoSubAccounts:null===(a=t.subAccounts)||void 0===a?void 0:a.enableAutoSubAccounts,unstable_enableAutoSpendPermissions:null===(i=null===(s=t.subAccounts)||void 0===s?void 0:s.unstable_enableAutoSpendPermissions)||void 0===i||i}),p.config.set(o),p.persist.rehydrate(),_(),function(t){if(t){if(t.attribution&&void 0!==t.attribution.auto&&void 0!==t.attribution.dataSuffix)throw new Error("Attribution cannot contain both auto and dataSuffix properties");if(t.telemetry&&"boolean"!=typeof t.telemetry)throw new Error("Telemetry must be a boolean")}}(o.preference),!1!==o.preference.telemetry&&new Promise((t,e)=>{if(window.ClientAnalytics)return t();try{const e=document.createElement("script");e.textContent="!(function (e, t) {\n\t'object' == typeof exports && 'object' == typeof module\n\t\t? (module.exports = t())\n\t\t: 'function' == typeof define && define.amd\n\t\t\t? define([], t)\n\t\t\t: 'object' == typeof exports\n\t\t\t\t? (exports.ClientAnalytics = t())\n\t\t\t\t: (e.ClientAnalytics = t())\n})(this, function () {\n\treturn (() => {\n\t\tvar e = {\n\t\t\t\t792: (e) => {\n\t\t\t\t\tvar t = {\n\t\t\t\t\t\tutf8: {\n\t\t\t\t\t\t\tstringToBytes: function (e) {\n\t\t\t\t\t\t\t\treturn t.bin.stringToBytes(\n\t\t\t\t\t\t\t\t\tunescape(encodeURIComponent(e)),\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbytesToString: function (e) {\n\t\t\t\t\t\t\t\treturn decodeURIComponent(\n\t\t\t\t\t\t\t\t\tescape(t.bin.bytesToString(e)),\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tbin: {\n\t\t\t\t\t\t\tstringToBytes: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = [], n = 0; n < e.length; n++)\n\t\t\t\t\t\t\t\t\tt.push(255 & e.charCodeAt(n))\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbytesToString: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = [], n = 0; n < e.length; n++)\n\t\t\t\t\t\t\t\t\tt.push(String.fromCharCode(e[n]))\n\t\t\t\t\t\t\t\treturn t.join('')\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t}\n\t\t\t\t\te.exports = t\n\t\t\t\t},\n\t\t\t\t562: (e) => {\n\t\t\t\t\tvar t, n\n\t\t\t\t\t;(t =\n\t\t\t\t\t\t'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'),\n\t\t\t\t\t\t(n = {\n\t\t\t\t\t\t\trotl: function (e, t) {\n\t\t\t\t\t\t\t\treturn (e << t) | (e >>> (32 - t))\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\trotr: function (e, t) {\n\t\t\t\t\t\t\t\treturn (e << (32 - t)) | (e >>> t)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tendian: function (e) {\n\t\t\t\t\t\t\t\tif (e.constructor == Number)\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t(16711935 & n.rotl(e, 8)) |\n\t\t\t\t\t\t\t\t\t\t(4278255360 & n.rotl(e, 24))\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\tfor (var t = 0; t < e.length; t++) e[t] = n.endian(e[t])\n\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\trandomBytes: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = []; e > 0; e--)\n\t\t\t\t\t\t\t\t\tt.push(Math.floor(256 * Math.random()))\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbytesToWords: function (e) {\n\t\t\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\t\t\tvar t = [], n = 0, r = 0;\n\t\t\t\t\t\t\t\t\tn < e.length;\n\t\t\t\t\t\t\t\t\tn++, r += 8\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\tt[r >>> 5] |= e[n] << (24 - (r % 32))\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\twordsToBytes: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = [], n = 0; n < 32 * e.length; n += 8)\n\t\t\t\t\t\t\t\t\tt.push((e[n >>> 5] >>> (24 - (n % 32))) & 255)\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbytesToHex: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = [], n = 0; n < e.length; n++)\n\t\t\t\t\t\t\t\t\tt.push((e[n] >>> 4).toString(16)),\n\t\t\t\t\t\t\t\t\t\tt.push((15 & e[n]).toString(16))\n\t\t\t\t\t\t\t\treturn t.join('')\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\thexToBytes: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = [], n = 0; n < e.length; n += 2)\n\t\t\t\t\t\t\t\t\tt.push(parseInt(e.substr(n, 2), 16))\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbytesToBase64: function (e) {\n\t\t\t\t\t\t\t\tfor (var n = [], r = 0; r < e.length; r += 3)\n\t\t\t\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\t\t\t\tvar i = (e[r] << 16) | (e[r + 1] << 8) | e[r + 2],\n\t\t\t\t\t\t\t\t\t\t\ta = 0;\n\t\t\t\t\t\t\t\t\t\ta < 4;\n\t\t\t\t\t\t\t\t\t\ta++\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t8 * r + 6 * a <= 8 * e.length\n\t\t\t\t\t\t\t\t\t\t\t? n.push(t.charAt((i >>> (6 * (3 - a))) & 63))\n\t\t\t\t\t\t\t\t\t\t\t: n.push('=')\n\t\t\t\t\t\t\t\treturn n.join('')\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbase64ToBytes: function (e) {\n\t\t\t\t\t\t\t\te = e.replace(/[^A-Z0-9+\\/]/gi, '')\n\t\t\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\t\t\tvar n = [], r = 0, i = 0;\n\t\t\t\t\t\t\t\t\tr < e.length;\n\t\t\t\t\t\t\t\t\ti = ++r % 4\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t0 != i &&\n\t\t\t\t\t\t\t\t\t\tn.push(\n\t\t\t\t\t\t\t\t\t\t\t((t.indexOf(e.charAt(r - 1)) &\n\t\t\t\t\t\t\t\t\t\t\t\t(Math.pow(2, -2 * i + 8) - 1)) <<\n\t\t\t\t\t\t\t\t\t\t\t\t(2 * i)) |\n\t\t\t\t\t\t\t\t\t\t\t\t(t.indexOf(e.charAt(r)) >>> (6 - 2 * i)),\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\treturn n\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(e.exports = n)\n\t\t\t\t},\n\t\t\t\t335: (e) => {\n\t\t\t\t\tfunction t(e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t!!e.constructor &&\n\t\t\t\t\t\t\t'function' == typeof e.constructor.isBuffer &&\n\t\t\t\t\t\t\te.constructor.isBuffer(e)\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t\te.exports = function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\tnull != e &&\n\t\t\t\t\t\t\t(t(e) ||\n\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t'function' == typeof e.readFloatLE &&\n\t\t\t\t\t\t\t\t\t\t'function' == typeof e.slice &&\n\t\t\t\t\t\t\t\t\t\tt(e.slice(0, 0))\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t})(e) ||\n\t\t\t\t\t\t\t\t!!e._isBuffer)\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t762: (e, t, n) => {\n\t\t\t\t\tvar r, i, a, o, s\n\t\t\t\t\t;(r = n(562)),\n\t\t\t\t\t\t(i = n(792).utf8),\n\t\t\t\t\t\t(a = n(335)),\n\t\t\t\t\t\t(o = n(792).bin),\n\t\t\t\t\t\t((s = function (e, t) {\n\t\t\t\t\t\t\te.constructor == String\n\t\t\t\t\t\t\t\t? (e =\n\t\t\t\t\t\t\t\t\t\tt && 'binary' === t.encoding\n\t\t\t\t\t\t\t\t\t\t\t? o.stringToBytes(e)\n\t\t\t\t\t\t\t\t\t\t\t: i.stringToBytes(e))\n\t\t\t\t\t\t\t\t: a(e)\n\t\t\t\t\t\t\t\t\t? (e = Array.prototype.slice.call(e, 0))\n\t\t\t\t\t\t\t\t\t: Array.isArray(e) ||\n\t\t\t\t\t\t\t\t\t\te.constructor === Uint8Array ||\n\t\t\t\t\t\t\t\t\t\t(e = e.toString())\n\t\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\t\tvar n = r.bytesToWords(e),\n\t\t\t\t\t\t\t\t\tc = 8 * e.length,\n\t\t\t\t\t\t\t\t\tu = 1732584193,\n\t\t\t\t\t\t\t\t\tl = -271733879,\n\t\t\t\t\t\t\t\t\td = -1732584194,\n\t\t\t\t\t\t\t\t\tp = 271733878,\n\t\t\t\t\t\t\t\t\tm = 0;\n\t\t\t\t\t\t\t\tm < n.length;\n\t\t\t\t\t\t\t\tm++\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\tn[m] =\n\t\t\t\t\t\t\t\t\t(16711935 & ((n[m] << 8) | (n[m] >>> 24))) |\n\t\t\t\t\t\t\t\t\t(4278255360 & ((n[m] << 24) | (n[m] >>> 8)))\n\t\t\t\t\t\t\t;(n[c >>> 5] |= 128 << (c % 32)),\n\t\t\t\t\t\t\t\t(n[14 + (((c + 64) >>> 9) << 4)] = c)\n\t\t\t\t\t\t\tvar f = s._ff,\n\t\t\t\t\t\t\t\tv = s._gg,\n\t\t\t\t\t\t\t\tg = s._hh,\n\t\t\t\t\t\t\t\tb = s._ii\n\t\t\t\t\t\t\tfor (m = 0; m < n.length; m += 16) {\n\t\t\t\t\t\t\t\tvar h = u,\n\t\t\t\t\t\t\t\t\tw = l,\n\t\t\t\t\t\t\t\t\ty = d,\n\t\t\t\t\t\t\t\t\tT = p\n\t\t\t\t\t\t\t\t;(u = f(u, l, d, p, n[m + 0], 7, -680876936)),\n\t\t\t\t\t\t\t\t\t(p = f(p, u, l, d, n[m + 1], 12, -389564586)),\n\t\t\t\t\t\t\t\t\t(d = f(d, p, u, l, n[m + 2], 17, 606105819)),\n\t\t\t\t\t\t\t\t\t(l = f(l, d, p, u, n[m + 3], 22, -1044525330)),\n\t\t\t\t\t\t\t\t\t(u = f(u, l, d, p, n[m + 4], 7, -176418897)),\n\t\t\t\t\t\t\t\t\t(p = f(p, u, l, d, n[m + 5], 12, 1200080426)),\n\t\t\t\t\t\t\t\t\t(d = f(d, p, u, l, n[m + 6], 17, -1473231341)),\n\t\t\t\t\t\t\t\t\t(l = f(l, d, p, u, n[m + 7], 22, -45705983)),\n\t\t\t\t\t\t\t\t\t(u = f(u, l, d, p, n[m + 8], 7, 1770035416)),\n\t\t\t\t\t\t\t\t\t(p = f(p, u, l, d, n[m + 9], 12, -1958414417)),\n\t\t\t\t\t\t\t\t\t(d = f(d, p, u, l, n[m + 10], 17, -42063)),\n\t\t\t\t\t\t\t\t\t(l = f(l, d, p, u, n[m + 11], 22, -1990404162)),\n\t\t\t\t\t\t\t\t\t(u = f(u, l, d, p, n[m + 12], 7, 1804603682)),\n\t\t\t\t\t\t\t\t\t(p = f(p, u, l, d, n[m + 13], 12, -40341101)),\n\t\t\t\t\t\t\t\t\t(d = f(d, p, u, l, n[m + 14], 17, -1502002290)),\n\t\t\t\t\t\t\t\t\t(u = v(\n\t\t\t\t\t\t\t\t\t\tu,\n\t\t\t\t\t\t\t\t\t\t(l = f(l, d, p, u, n[m + 15], 22, 1236535329)),\n\t\t\t\t\t\t\t\t\t\td,\n\t\t\t\t\t\t\t\t\t\tp,\n\t\t\t\t\t\t\t\t\t\tn[m + 1],\n\t\t\t\t\t\t\t\t\t\t5,\n\t\t\t\t\t\t\t\t\t\t-165796510,\n\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t(p = v(p, u, l, d, n[m + 6], 9, -1069501632)),\n\t\t\t\t\t\t\t\t\t(d = v(d, p, u, l, n[m + 11], 14, 643717713)),\n\t\t\t\t\t\t\t\t\t(l = v(l, d, p, u, n[m + 0], 20, -373897302)),\n\t\t\t\t\t\t\t\t\t(u = v(u, l, d, p, n[m + 5], 5, -701558691)),\n\t\t\t\t\t\t\t\t\t(p = v(p, u, l, d, n[m + 10], 9, 38016083)),\n\t\t\t\t\t\t\t\t\t(d = v(d, p, u, l, n[m + 15], 14, -660478335)),\n\t\t\t\t\t\t\t\t\t(l = v(l, d, p, u, n[m + 4], 20, -405537848)),\n\t\t\t\t\t\t\t\t\t(u = v(u, l, d, p, n[m + 9], 5, 568446438)),\n\t\t\t\t\t\t\t\t\t(p = v(p, u, l, d, n[m + 14], 9, -1019803690)),\n\t\t\t\t\t\t\t\t\t(d = v(d, p, u, l, n[m + 3], 14, -187363961)),\n\t\t\t\t\t\t\t\t\t(l = v(l, d, p, u, n[m + 8], 20, 1163531501)),\n\t\t\t\t\t\t\t\t\t(u = v(u, l, d, p, n[m + 13], 5, -1444681467)),\n\t\t\t\t\t\t\t\t\t(p = v(p, u, l, d, n[m + 2], 9, -51403784)),\n\t\t\t\t\t\t\t\t\t(d = v(d, p, u, l, n[m + 7], 14, 1735328473)),\n\t\t\t\t\t\t\t\t\t(u = g(\n\t\t\t\t\t\t\t\t\t\tu,\n\t\t\t\t\t\t\t\t\t\t(l = v(l, d, p, u, n[m + 12], 20, -1926607734)),\n\t\t\t\t\t\t\t\t\t\td,\n\t\t\t\t\t\t\t\t\t\tp,\n\t\t\t\t\t\t\t\t\t\tn[m + 5],\n\t\t\t\t\t\t\t\t\t\t4,\n\t\t\t\t\t\t\t\t\t\t-378558,\n\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t(p = g(p, u, l, d, n[m + 8], 11, -2022574463)),\n\t\t\t\t\t\t\t\t\t(d = g(d, p, u, l, n[m + 11], 16, 1839030562)),\n\t\t\t\t\t\t\t\t\t(l = g(l, d, p, u, n[m + 14], 23, -35309556)),\n\t\t\t\t\t\t\t\t\t(u = g(u, l, d, p, n[m + 1], 4, -1530992060)),\n\t\t\t\t\t\t\t\t\t(p = g(p, u, l, d, n[m + 4], 11, 1272893353)),\n\t\t\t\t\t\t\t\t\t(d = g(d, p, u, l, n[m + 7], 16, -155497632)),\n\t\t\t\t\t\t\t\t\t(l = g(l, d, p, u, n[m + 10], 23, -1094730640)),\n\t\t\t\t\t\t\t\t\t(u = g(u, l, d, p, n[m + 13], 4, 681279174)),\n\t\t\t\t\t\t\t\t\t(p = g(p, u, l, d, n[m + 0], 11, -358537222)),\n\t\t\t\t\t\t\t\t\t(d = g(d, p, u, l, n[m + 3], 16, -722521979)),\n\t\t\t\t\t\t\t\t\t(l = g(l, d, p, u, n[m + 6], 23, 76029189)),\n\t\t\t\t\t\t\t\t\t(u = g(u, l, d, p, n[m + 9], 4, -640364487)),\n\t\t\t\t\t\t\t\t\t(p = g(p, u, l, d, n[m + 12], 11, -421815835)),\n\t\t\t\t\t\t\t\t\t(d = g(d, p, u, l, n[m + 15], 16, 530742520)),\n\t\t\t\t\t\t\t\t\t(u = b(\n\t\t\t\t\t\t\t\t\t\tu,\n\t\t\t\t\t\t\t\t\t\t(l = g(l, d, p, u, n[m + 2], 23, -995338651)),\n\t\t\t\t\t\t\t\t\t\td,\n\t\t\t\t\t\t\t\t\t\tp,\n\t\t\t\t\t\t\t\t\t\tn[m + 0],\n\t\t\t\t\t\t\t\t\t\t6,\n\t\t\t\t\t\t\t\t\t\t-198630844,\n\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t(p = b(p, u, l, d, n[m + 7], 10, 1126891415)),\n\t\t\t\t\t\t\t\t\t(d = b(d, p, u, l, n[m + 14], 15, -1416354905)),\n\t\t\t\t\t\t\t\t\t(l = b(l, d, p, u, n[m + 5], 21, -57434055)),\n\t\t\t\t\t\t\t\t\t(u = b(u, l, d, p, n[m + 12], 6, 1700485571)),\n\t\t\t\t\t\t\t\t\t(p = b(p, u, l, d, n[m + 3], 10, -1894986606)),\n\t\t\t\t\t\t\t\t\t(d = b(d, p, u, l, n[m + 10], 15, -1051523)),\n\t\t\t\t\t\t\t\t\t(l = b(l, d, p, u, n[m + 1], 21, -2054922799)),\n\t\t\t\t\t\t\t\t\t(u = b(u, l, d, p, n[m + 8], 6, 1873313359)),\n\t\t\t\t\t\t\t\t\t(p = b(p, u, l, d, n[m + 15], 10, -30611744)),\n\t\t\t\t\t\t\t\t\t(d = b(d, p, u, l, n[m + 6], 15, -1560198380)),\n\t\t\t\t\t\t\t\t\t(l = b(l, d, p, u, n[m + 13], 21, 1309151649)),\n\t\t\t\t\t\t\t\t\t(u = b(u, l, d, p, n[m + 4], 6, -145523070)),\n\t\t\t\t\t\t\t\t\t(p = b(p, u, l, d, n[m + 11], 10, -1120210379)),\n\t\t\t\t\t\t\t\t\t(d = b(d, p, u, l, n[m + 2], 15, 718787259)),\n\t\t\t\t\t\t\t\t\t(l = b(l, d, p, u, n[m + 9], 21, -343485551)),\n\t\t\t\t\t\t\t\t\t(u = (u + h) >>> 0),\n\t\t\t\t\t\t\t\t\t(l = (l + w) >>> 0),\n\t\t\t\t\t\t\t\t\t(d = (d + y) >>> 0),\n\t\t\t\t\t\t\t\t\t(p = (p + T) >>> 0)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn r.endian([u, l, d, p])\n\t\t\t\t\t\t})._ff = function (e, t, n, r, i, a, o) {\n\t\t\t\t\t\t\tvar s = e + ((t & n) | (~t & r)) + (i >>> 0) + o\n\t\t\t\t\t\t\treturn ((s << a) | (s >>> (32 - a))) + t\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(s._gg = function (e, t, n, r, i, a, o) {\n\t\t\t\t\t\t\tvar s = e + ((t & r) | (n & ~r)) + (i >>> 0) + o\n\t\t\t\t\t\t\treturn ((s << a) | (s >>> (32 - a))) + t\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(s._hh = function (e, t, n, r, i, a, o) {\n\t\t\t\t\t\t\tvar s = e + (t ^ n ^ r) + (i >>> 0) + o\n\t\t\t\t\t\t\treturn ((s << a) | (s >>> (32 - a))) + t\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(s._ii = function (e, t, n, r, i, a, o) {\n\t\t\t\t\t\t\tvar s = e + (n ^ (t | ~r)) + (i >>> 0) + o\n\t\t\t\t\t\t\treturn ((s << a) | (s >>> (32 - a))) + t\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(s._blocksize = 16),\n\t\t\t\t\t\t(s._digestsize = 16),\n\t\t\t\t\t\t(e.exports = function (e, t) {\n\t\t\t\t\t\t\tif (null == e) throw new Error('Illegal argument ' + e)\n\t\t\t\t\t\t\tvar n = r.wordsToBytes(s(e, t))\n\t\t\t\t\t\t\treturn t && t.asBytes\n\t\t\t\t\t\t\t\t? n\n\t\t\t\t\t\t\t\t: t && t.asString\n\t\t\t\t\t\t\t\t\t? o.bytesToString(n)\n\t\t\t\t\t\t\t\t\t: r.bytesToHex(n)\n\t\t\t\t\t\t})\n\t\t\t\t},\n\t\t\t\t2: (e, t, n) => {\n\t\t\t\t\t'use strict'\n\t\t\t\t\tn.r(t),\n\t\t\t\t\t\tn.d(t, {\n\t\t\t\t\t\t\tPerfume: () => ze,\n\t\t\t\t\t\t\tincrementUjNavigation: () => Le,\n\t\t\t\t\t\t\tmarkStep: () => Re,\n\t\t\t\t\t\t\tmarkStepOnce: () => qe,\n\t\t\t\t\t\t})\n\t\t\t\t\tvar r,\n\t\t\t\t\t\ti,\n\t\t\t\t\t\ta = {\n\t\t\t\t\t\t\tisResourceTiming: !1,\n\t\t\t\t\t\t\tisElementTiming: !1,\n\t\t\t\t\t\t\tmaxTime: 3e4,\n\t\t\t\t\t\t\treportOptions: {},\n\t\t\t\t\t\t\tenableNavigationTracking: !0,\n\t\t\t\t\t\t},\n\t\t\t\t\t\to = window,\n\t\t\t\t\t\ts = o.console,\n\t\t\t\t\t\tc = o.navigator,\n\t\t\t\t\t\tu = o.performance,\n\t\t\t\t\t\tl = function () {\n\t\t\t\t\t\t\treturn c.deviceMemory\n\t\t\t\t\t\t},\n\t\t\t\t\t\td = function () {\n\t\t\t\t\t\t\treturn c.hardwareConcurrency\n\t\t\t\t\t\t},\n\t\t\t\t\t\tp = 'mark.',\n\t\t\t\t\t\tm = function () {\n\t\t\t\t\t\t\treturn u && !!u.getEntriesByType && !!u.now && !!u.mark\n\t\t\t\t\t\t},\n\t\t\t\t\t\tf = '4g',\n\t\t\t\t\t\tv = !1,\n\t\t\t\t\t\tg = {},\n\t\t\t\t\t\tb = { value: 0 },\n\t\t\t\t\t\th = {\n\t\t\t\t\t\t\tvalue: {\n\t\t\t\t\t\t\t\tbeacon: 0,\n\t\t\t\t\t\t\t\tcss: 0,\n\t\t\t\t\t\t\t\tfetch: 0,\n\t\t\t\t\t\t\t\timg: 0,\n\t\t\t\t\t\t\t\tother: 0,\n\t\t\t\t\t\t\t\tscript: 0,\n\t\t\t\t\t\t\t\ttotal: 0,\n\t\t\t\t\t\t\t\txmlhttprequest: 0,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tw = { value: 0 },\n\t\t\t\t\t\ty = { value: 0 },\n\t\t\t\t\t\tT = {},\n\t\t\t\t\t\tk = { isHidden: !1, didChange: !1 },\n\t\t\t\t\t\t_ = function () {\n\t\t\t\t\t\t\t;(k.isHidden = !1),\n\t\t\t\t\t\t\t\tdocument.hidden &&\n\t\t\t\t\t\t\t\t\t((k.isHidden = document.hidden), (k.didChange = !0))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tS = function (e, t) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tvar n = new PerformanceObserver(function (e) {\n\t\t\t\t\t\t\t\t\tt(e.getEntries())\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\treturn n.observe({ type: e, buffered: !0 }), n\n\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\ts.warn('Perfume.js:', e)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn null\n\t\t\t\t\t\t},\n\t\t\t\t\t\tE = function () {\n\t\t\t\t\t\t\treturn !!(d() && d() <= 4) || !!(l() && l() <= 4)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tx = function (e, t) {\n\t\t\t\t\t\t\tswitch (e) {\n\t\t\t\t\t\t\t\tcase 'slow-2g':\n\t\t\t\t\t\t\t\tcase '2g':\n\t\t\t\t\t\t\t\tcase '3g':\n\t\t\t\t\t\t\t\t\treturn !0\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn E() || t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tO = function (e) {\n\t\t\t\t\t\t\treturn parseFloat(e.toFixed(4))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tj = function (e) {\n\t\t\t\t\t\t\treturn 'number' != typeof e\n\t\t\t\t\t\t\t\t? null\n\t\t\t\t\t\t\t\t: O(e / Math.pow(1024, 2))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tN = function (e, t, n, r, i) {\n\t\t\t\t\t\t\tvar s,\n\t\t\t\t\t\t\t\tu = function () {\n\t\t\t\t\t\t\t\t\ta.analyticsTracker &&\n\t\t\t\t\t\t\t\t\t\t((k.isHidden && !['CLS', 'INP'].includes(e)) ||\n\t\t\t\t\t\t\t\t\t\t\ta.analyticsTracker({\n\t\t\t\t\t\t\t\t\t\t\t\tattribution: r,\n\t\t\t\t\t\t\t\t\t\t\t\tmetricName: e,\n\t\t\t\t\t\t\t\t\t\t\t\tdata: t,\n\t\t\t\t\t\t\t\t\t\t\t\tnavigatorInformation: c\n\t\t\t\t\t\t\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdeviceMemory: l() || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thardwareConcurrency: d() || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tserviceWorkerStatus:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'serviceWorker' in c\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? c.serviceWorker.controller\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? 'controlled'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 'supported'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 'unsupported',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisLowEndDevice: E(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisLowEndExperience: x(f, v),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t: {},\n\t\t\t\t\t\t\t\t\t\t\t\trating: n,\n\t\t\t\t\t\t\t\t\t\t\t\tnavigationType: i,\n\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t;['CLS', 'INP'].includes(e)\n\t\t\t\t\t\t\t\t? u()\n\t\t\t\t\t\t\t\t: ((s = u),\n\t\t\t\t\t\t\t\t\t'requestIdleCallback' in o\n\t\t\t\t\t\t\t\t\t\t? o.requestIdleCallback(s, { timeout: 3e3 })\n\t\t\t\t\t\t\t\t\t\t: s())\n\t\t\t\t\t\t},\n\t\t\t\t\t\tI = function (e) {\n\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\tif (!('self' !== e.name || e.startTime < b.value)) {\n\t\t\t\t\t\t\t\t\tvar t = e.duration - 50\n\t\t\t\t\t\t\t\t\tt > 0 && ((w.value += t), (y.value += t))\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t;(e.instant = 'instant'),\n\t\t\t\t\t\t\t(e.quick = 'quick'),\n\t\t\t\t\t\t\t(e.moderate = 'moderate'),\n\t\t\t\t\t\t\t(e.slow = 'slow'),\n\t\t\t\t\t\t\t(e.unavoidable = 'unavoidable')\n\t\t\t\t\t})(r || (r = {}))\n\t\t\t\t\tvar P,\n\t\t\t\t\t\tM,\n\t\t\t\t\t\tB,\n\t\t\t\t\t\tC,\n\t\t\t\t\t\tD,\n\t\t\t\t\t\tA =\n\t\t\t\t\t\t\t(((i = {})[r.instant] = {\n\t\t\t\t\t\t\t\tvitalsThresholds: [100, 200],\n\t\t\t\t\t\t\t\tmaxOutlierThreshold: 1e4,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t(i[r.quick] = {\n\t\t\t\t\t\t\t\tvitalsThresholds: [200, 500],\n\t\t\t\t\t\t\t\tmaxOutlierThreshold: 1e4,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t(i[r.moderate] = {\n\t\t\t\t\t\t\t\tvitalsThresholds: [500, 1e3],\n\t\t\t\t\t\t\t\tmaxOutlierThreshold: 1e4,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t(i[r.slow] = {\n\t\t\t\t\t\t\t\tvitalsThresholds: [1e3, 2e3],\n\t\t\t\t\t\t\t\tmaxOutlierThreshold: 1e4,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t(i[r.unavoidable] = {\n\t\t\t\t\t\t\t\tvitalsThresholds: [2e3, 5e3],\n\t\t\t\t\t\t\t\tmaxOutlierThreshold: 2e4,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\ti),\n\t\t\t\t\t\tL = { RT: [100, 200], TBT: [200, 600], NTBT: [200, 600] },\n\t\t\t\t\t\tU = function (e, t) {\n\t\t\t\t\t\t\treturn L[e]\n\t\t\t\t\t\t\t\t? t <= L[e][0]\n\t\t\t\t\t\t\t\t\t? 'good'\n\t\t\t\t\t\t\t\t\t: t <= L[e][1]\n\t\t\t\t\t\t\t\t\t\t? 'needsImprovement'\n\t\t\t\t\t\t\t\t\t\t: 'poor'\n\t\t\t\t\t\t\t\t: null\n\t\t\t\t\t\t},\n\t\t\t\t\t\tR = function (e, t, n) {\n\t\t\t\t\t\t\tObject.keys(t).forEach(function (e) {\n\t\t\t\t\t\t\t\t'number' == typeof t[e] && (t[e] = O(t[e]))\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\tN(e, t, null, n || {})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tq = function (e) {\n\t\t\t\t\t\t\tvar t = e.attribution,\n\t\t\t\t\t\t\t\tn = e.name,\n\t\t\t\t\t\t\t\tr = e.rating,\n\t\t\t\t\t\t\t\ti = e.value,\n\t\t\t\t\t\t\t\to = e.navigationType\n\t\t\t\t\t\t\t'FCP' === n && (b.value = i),\n\t\t\t\t\t\t\t\t['FCP', 'LCP'].includes(n) &&\n\t\t\t\t\t\t\t\t\t!T[0] &&\n\t\t\t\t\t\t\t\t\t(T[0] = S('longtask', I)),\n\t\t\t\t\t\t\t\t'FID' === n &&\n\t\t\t\t\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\t\t\t\t\tk.didChange ||\n\t\t\t\t\t\t\t\t\t\t\t(q({\n\t\t\t\t\t\t\t\t\t\t\t\tattribution: t,\n\t\t\t\t\t\t\t\t\t\t\t\tname: 'TBT',\n\t\t\t\t\t\t\t\t\t\t\t\trating: U('TBT', w.value),\n\t\t\t\t\t\t\t\t\t\t\t\tvalue: w.value,\n\t\t\t\t\t\t\t\t\t\t\t\tnavigationType: o,\n\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tR('dataConsumption', h.value))\n\t\t\t\t\t\t\t\t\t}, 1e4)\n\t\t\t\t\t\t\tvar s = O(i)\n\t\t\t\t\t\t\ts <= a.maxTime && s >= 0 && N(n, s, r, t, o)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tF = function () {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\twindow.performance &&\n\t\t\t\t\t\t\t\tperformance.getEntriesByType &&\n\t\t\t\t\t\t\t\tperformance.getEntriesByType('navigation')[0]\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tz = function (e) {\n\t\t\t\t\t\t\tif ('loading' === document.readyState) return 'loading'\n\t\t\t\t\t\t\tvar t = F()\n\t\t\t\t\t\t\tif (t) {\n\t\t\t\t\t\t\t\tif (e < t.domInteractive) return 'loading'\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t0 === t.domContentLoadedEventStart ||\n\t\t\t\t\t\t\t\t\te < t.domContentLoadedEventStart\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\treturn 'dom-interactive'\n\t\t\t\t\t\t\t\tif (0 === t.domComplete || e < t.domComplete)\n\t\t\t\t\t\t\t\t\treturn 'dom-content-loaded'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn 'complete'\n\t\t\t\t\t\t},\n\t\t\t\t\t\tK = function (e) {\n\t\t\t\t\t\t\tvar t = e.nodeName\n\t\t\t\t\t\t\treturn 1 === e.nodeType\n\t\t\t\t\t\t\t\t? t.toLowerCase()\n\t\t\t\t\t\t\t\t: t.toUpperCase().replace(/^#/, '')\n\t\t\t\t\t\t},\n\t\t\t\t\t\t$ = function (e, t) {\n\t\t\t\t\t\t\tvar n = ''\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tfor (; e && 9 !== e.nodeType; ) {\n\t\t\t\t\t\t\t\t\tvar r = e,\n\t\t\t\t\t\t\t\t\t\ti = r.id\n\t\t\t\t\t\t\t\t\t\t\t? '#' + r.id\n\t\t\t\t\t\t\t\t\t\t\t: K(r) +\n\t\t\t\t\t\t\t\t\t\t\t\t(r.className && r.className.length\n\t\t\t\t\t\t\t\t\t\t\t\t\t? '.' + r.className.replace(/\\s+/g, '.')\n\t\t\t\t\t\t\t\t\t\t\t\t\t: '')\n\t\t\t\t\t\t\t\t\tif (n.length + i.length > (t || 100) - 1)\n\t\t\t\t\t\t\t\t\t\treturn n || i\n\t\t\t\t\t\t\t\t\tif (((n = n ? i + '>' + n : i), r.id)) break\n\t\t\t\t\t\t\t\t\te = r.parentNode\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t\t\treturn n\n\t\t\t\t\t\t},\n\t\t\t\t\t\tQ = -1,\n\t\t\t\t\t\tW = function () {\n\t\t\t\t\t\t\treturn Q\n\t\t\t\t\t\t},\n\t\t\t\t\t\tH = function (e) {\n\t\t\t\t\t\t\taddEventListener(\n\t\t\t\t\t\t\t\t'pageshow',\n\t\t\t\t\t\t\t\tfunction (t) {\n\t\t\t\t\t\t\t\t\tt.persisted && ((Q = t.timeStamp), e(t))\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t!0,\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tV = function () {\n\t\t\t\t\t\t\tvar e = F()\n\t\t\t\t\t\t\treturn (e && e.activationStart) || 0\n\t\t\t\t\t\t},\n\t\t\t\t\t\tJ = function (e, t) {\n\t\t\t\t\t\t\tvar n = F(),\n\t\t\t\t\t\t\t\tr = 'navigate'\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\tW() >= 0\n\t\t\t\t\t\t\t\t\t? (r = 'back-forward-cache')\n\t\t\t\t\t\t\t\t\t: n &&\n\t\t\t\t\t\t\t\t\t\t(r =\n\t\t\t\t\t\t\t\t\t\t\tdocument.prerendering || V() > 0\n\t\t\t\t\t\t\t\t\t\t\t\t? 'prerender'\n\t\t\t\t\t\t\t\t\t\t\t\t: document.wasDiscarded\n\t\t\t\t\t\t\t\t\t\t\t\t\t? 'restore'\n\t\t\t\t\t\t\t\t\t\t\t\t\t: n.type.replace(/_/g, '-')),\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: e,\n\t\t\t\t\t\t\t\t\tvalue: void 0 === t ? -1 : t,\n\t\t\t\t\t\t\t\t\trating: 'good',\n\t\t\t\t\t\t\t\t\tdelta: 0,\n\t\t\t\t\t\t\t\t\tentries: [],\n\t\t\t\t\t\t\t\t\tid: 'v3-'\n\t\t\t\t\t\t\t\t\t\t.concat(Date.now(), '-')\n\t\t\t\t\t\t\t\t\t\t.concat(\n\t\t\t\t\t\t\t\t\t\t\tMath.floor(8999999999999 * Math.random()) +\n\t\t\t\t\t\t\t\t\t\t\t\t1e12,\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\tnavigationType: r,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tX = function (e, t, n) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\tPerformanceObserver.supportedEntryTypes.includes(e)\n\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\tvar r = new PerformanceObserver(function (e) {\n\t\t\t\t\t\t\t\t\t\tPromise.resolve().then(function () {\n\t\t\t\t\t\t\t\t\t\t\tt(e.getEntries())\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\tr.observe(\n\t\t\t\t\t\t\t\t\t\t\tObject.assign(\n\t\t\t\t\t\t\t\t\t\t\t\t{ type: e, buffered: !0 },\n\t\t\t\t\t\t\t\t\t\t\t\tn || {},\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\tr\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tG = function (e, t) {\n\t\t\t\t\t\t\tvar n = function n(r) {\n\t\t\t\t\t\t\t\t;('pagehide' !== r.type &&\n\t\t\t\t\t\t\t\t\t'hidden' !== document.visibilityState) ||\n\t\t\t\t\t\t\t\t\t(e(r),\n\t\t\t\t\t\t\t\t\tt &&\n\t\t\t\t\t\t\t\t\t\t(removeEventListener('visibilitychange', n, !0),\n\t\t\t\t\t\t\t\t\t\tremoveEventListener('pagehide', n, !0)))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taddEventListener('visibilitychange', n, !0),\n\t\t\t\t\t\t\t\taddEventListener('pagehide', n, !0)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tZ = function (e, t, n, r) {\n\t\t\t\t\t\t\tvar i, a\n\t\t\t\t\t\t\treturn function (o) {\n\t\t\t\t\t\t\t\tt.value >= 0 &&\n\t\t\t\t\t\t\t\t\t(o || r) &&\n\t\t\t\t\t\t\t\t\t((a = t.value - (i || 0)) || void 0 === i) &&\n\t\t\t\t\t\t\t\t\t((i = t.value),\n\t\t\t\t\t\t\t\t\t(t.delta = a),\n\t\t\t\t\t\t\t\t\t(t.rating = (function (e, t) {\n\t\t\t\t\t\t\t\t\t\treturn e > t[1]\n\t\t\t\t\t\t\t\t\t\t\t? 'poor'\n\t\t\t\t\t\t\t\t\t\t\t: e > t[0]\n\t\t\t\t\t\t\t\t\t\t\t\t? 'needs-improvement'\n\t\t\t\t\t\t\t\t\t\t\t\t: 'good'\n\t\t\t\t\t\t\t\t\t})(t.value, n)),\n\t\t\t\t\t\t\t\t\te(t))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tY = function (e) {\n\t\t\t\t\t\t\trequestAnimationFrame(function () {\n\t\t\t\t\t\t\t\treturn requestAnimationFrame(function () {\n\t\t\t\t\t\t\t\t\treturn e()\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tee = function (e) {\n\t\t\t\t\t\t\tdocument.prerendering\n\t\t\t\t\t\t\t\t? addEventListener(\n\t\t\t\t\t\t\t\t\t\t'prerenderingchange',\n\t\t\t\t\t\t\t\t\t\tfunction () {\n\t\t\t\t\t\t\t\t\t\t\treturn e()\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t!0,\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t: e()\n\t\t\t\t\t\t},\n\t\t\t\t\t\tte = -1,\n\t\t\t\t\t\tne = function () {\n\t\t\t\t\t\t\treturn 'hidden' !== document.visibilityState ||\n\t\t\t\t\t\t\t\tdocument.prerendering\n\t\t\t\t\t\t\t\t? 1 / 0\n\t\t\t\t\t\t\t\t: 0\n\t\t\t\t\t\t},\n\t\t\t\t\t\tre = function (e) {\n\t\t\t\t\t\t\t'hidden' === document.visibilityState &&\n\t\t\t\t\t\t\t\tte > -1 &&\n\t\t\t\t\t\t\t\t((te = 'visibilitychange' === e.type ? e.timeStamp : 0),\n\t\t\t\t\t\t\t\tae())\n\t\t\t\t\t\t},\n\t\t\t\t\t\tie = function () {\n\t\t\t\t\t\t\taddEventListener('visibilitychange', re, !0),\n\t\t\t\t\t\t\t\taddEventListener('prerenderingchange', re, !0)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tae = function () {\n\t\t\t\t\t\t\tremoveEventListener('visibilitychange', re, !0),\n\t\t\t\t\t\t\t\tremoveEventListener('prerenderingchange', re, !0)\n\t\t\t\t\t\t},\n\t\t\t\t\t\toe = function () {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\tte < 0 &&\n\t\t\t\t\t\t\t\t\t((te = ne()),\n\t\t\t\t\t\t\t\t\tie(),\n\t\t\t\t\t\t\t\t\tH(function () {\n\t\t\t\t\t\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\t\t\t\t\t\t;(te = ne()), ie()\n\t\t\t\t\t\t\t\t\t\t}, 0)\n\t\t\t\t\t\t\t\t\t})),\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tget firstHiddenTime() {\n\t\t\t\t\t\t\t\t\t\treturn te\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tse = function (e, t) {\n\t\t\t\t\t\t\t;(t = t || {}),\n\t\t\t\t\t\t\t\tee(function () {\n\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\tr = [1800, 3e3],\n\t\t\t\t\t\t\t\t\t\ti = oe(),\n\t\t\t\t\t\t\t\t\t\ta = J('FCP'),\n\t\t\t\t\t\t\t\t\t\to = X('paint', function (e) {\n\t\t\t\t\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t'first-contentful-paint' === e.name &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t(o.disconnect(),\n\t\t\t\t\t\t\t\t\t\t\t\t\te.startTime < i.firstHiddenTime &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t((a.value = Math.max(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.startTime - V(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ta.entries.push(e),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(!0)))\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\to &&\n\t\t\t\t\t\t\t\t\t\t((n = Z(e, a, r, t.reportAllChanges)),\n\t\t\t\t\t\t\t\t\t\tH(function (i) {\n\t\t\t\t\t\t\t\t\t\t\t;(a = J('FCP')),\n\t\t\t\t\t\t\t\t\t\t\t\t(n = Z(e, a, r, t.reportAllChanges)),\n\t\t\t\t\t\t\t\t\t\t\t\tY(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t;(a.value =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tperformance.now() - i.timeStamp),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(!0)\n\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tce = { passive: !0, capture: !0 },\n\t\t\t\t\t\tue = new Date(),\n\t\t\t\t\t\tle = function (e, t) {\n\t\t\t\t\t\t\tP ||\n\t\t\t\t\t\t\t\t((P = t),\n\t\t\t\t\t\t\t\t(M = e),\n\t\t\t\t\t\t\t\t(B = new Date()),\n\t\t\t\t\t\t\t\tme(removeEventListener),\n\t\t\t\t\t\t\t\tde())\n\t\t\t\t\t\t},\n\t\t\t\t\t\tde = function () {\n\t\t\t\t\t\t\tif (M >= 0 && M < B - ue) {\n\t\t\t\t\t\t\t\tvar e = {\n\t\t\t\t\t\t\t\t\tentryType: 'first-input',\n\t\t\t\t\t\t\t\t\tname: P.type,\n\t\t\t\t\t\t\t\t\ttarget: P.target,\n\t\t\t\t\t\t\t\t\tcancelable: P.cancelable,\n\t\t\t\t\t\t\t\t\tstartTime: P.timeStamp,\n\t\t\t\t\t\t\t\t\tprocessingStart: P.timeStamp + M,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tC.forEach(function (t) {\n\t\t\t\t\t\t\t\t\tt(e)\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(C = [])\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tpe = function (e) {\n\t\t\t\t\t\t\tif (e.cancelable) {\n\t\t\t\t\t\t\t\tvar t =\n\t\t\t\t\t\t\t\t\t(e.timeStamp > 1e12\n\t\t\t\t\t\t\t\t\t\t? new Date()\n\t\t\t\t\t\t\t\t\t\t: performance.now()) - e.timeStamp\n\t\t\t\t\t\t\t\t'pointerdown' == e.type\n\t\t\t\t\t\t\t\t\t? (function (e, t) {\n\t\t\t\t\t\t\t\t\t\t\tvar n = function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\tle(e, t), i()\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\tr = function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\ti()\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\ti = function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\tremoveEventListener('pointerup', n, ce),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tremoveEventListener(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'pointercancel',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tce,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\taddEventListener('pointerup', n, ce),\n\t\t\t\t\t\t\t\t\t\t\t\taddEventListener('pointercancel', r, ce)\n\t\t\t\t\t\t\t\t\t\t})(t, e)\n\t\t\t\t\t\t\t\t\t: le(t, e)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tme = function (e) {\n\t\t\t\t\t\t\t;[\n\t\t\t\t\t\t\t\t'mousedown',\n\t\t\t\t\t\t\t\t'keydown',\n\t\t\t\t\t\t\t\t'touchstart',\n\t\t\t\t\t\t\t\t'pointerdown',\n\t\t\t\t\t\t\t].forEach(function (t) {\n\t\t\t\t\t\t\t\treturn e(t, pe, ce)\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfe = 0,\n\t\t\t\t\t\tve = 1 / 0,\n\t\t\t\t\t\tge = 0,\n\t\t\t\t\t\tbe = function (e) {\n\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\te.interactionId &&\n\t\t\t\t\t\t\t\t\t((ve = Math.min(ve, e.interactionId)),\n\t\t\t\t\t\t\t\t\t(ge = Math.max(ge, e.interactionId)),\n\t\t\t\t\t\t\t\t\t(fe = ge ? (ge - ve) / 7 + 1 : 0))\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\the = function () {\n\t\t\t\t\t\t\treturn D ? fe : performance.interactionCount || 0\n\t\t\t\t\t\t},\n\t\t\t\t\t\twe = 0,\n\t\t\t\t\t\tye = function () {\n\t\t\t\t\t\t\treturn he() - we\n\t\t\t\t\t\t},\n\t\t\t\t\t\tTe = [],\n\t\t\t\t\t\tke = {},\n\t\t\t\t\t\t_e = function (e) {\n\t\t\t\t\t\t\tvar t = Te[Te.length - 1],\n\t\t\t\t\t\t\t\tn = ke[e.interactionId]\n\t\t\t\t\t\t\tif (n || Te.length < 10 || e.duration > t.latency) {\n\t\t\t\t\t\t\t\tif (n)\n\t\t\t\t\t\t\t\t\tn.entries.push(e),\n\t\t\t\t\t\t\t\t\t\t(n.latency = Math.max(n.latency, e.duration))\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tvar r = {\n\t\t\t\t\t\t\t\t\t\tid: e.interactionId,\n\t\t\t\t\t\t\t\t\t\tlatency: e.duration,\n\t\t\t\t\t\t\t\t\t\tentries: [e],\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t;(ke[r.id] = r), Te.push(r)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tTe.sort(function (e, t) {\n\t\t\t\t\t\t\t\t\treturn t.latency - e.latency\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\tTe.splice(10).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\tdelete ke[e.id]\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tSe = {},\n\t\t\t\t\t\tEe = function e(t) {\n\t\t\t\t\t\t\tdocument.prerendering\n\t\t\t\t\t\t\t\t? ee(function () {\n\t\t\t\t\t\t\t\t\t\treturn e(t)\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t: 'complete' !== document.readyState\n\t\t\t\t\t\t\t\t\t? addEventListener(\n\t\t\t\t\t\t\t\t\t\t\t'load',\n\t\t\t\t\t\t\t\t\t\t\tfunction () {\n\t\t\t\t\t\t\t\t\t\t\t\treturn e(t)\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t!0,\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t: setTimeout(t, 0)\n\t\t\t\t\t\t},\n\t\t\t\t\t\txe = function (e, t) {\n\t\t\t\t\t\t\tt = t || {}\n\t\t\t\t\t\t\tvar n = [800, 1800],\n\t\t\t\t\t\t\t\tr = J('TTFB'),\n\t\t\t\t\t\t\t\ti = Z(e, r, n, t.reportAllChanges)\n\t\t\t\t\t\t\tEe(function () {\n\t\t\t\t\t\t\t\tvar a = F()\n\t\t\t\t\t\t\t\tif (a) {\n\t\t\t\t\t\t\t\t\tvar o = a.responseStart\n\t\t\t\t\t\t\t\t\tif (o <= 0 || o > performance.now()) return\n\t\t\t\t\t\t\t\t\t;(r.value = Math.max(o - V(), 0)),\n\t\t\t\t\t\t\t\t\t\t(r.entries = [a]),\n\t\t\t\t\t\t\t\t\t\ti(!0),\n\t\t\t\t\t\t\t\t\t\tH(function () {\n\t\t\t\t\t\t\t\t\t\t\t;(r = J('TTFB', 0)),\n\t\t\t\t\t\t\t\t\t\t\t\t(i = Z(e, r, n, t.reportAllChanges))(!0)\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tOe = function (e) {\n\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\te.identifier &&\n\t\t\t\t\t\t\t\t\tq({\n\t\t\t\t\t\t\t\t\t\tattribution: { identifier: e.identifier },\n\t\t\t\t\t\t\t\t\t\tname: 'ET',\n\t\t\t\t\t\t\t\t\t\trating: null,\n\t\t\t\t\t\t\t\t\t\tvalue: e.startTime,\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tje = function (e) {\n\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t(a.isResourceTiming && R('resourceTiming', e),\n\t\t\t\t\t\t\t\t\te.decodedBodySize && e.initiatorType)\n\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\tvar t = e.decodedBodySize / 1e3\n\t\t\t\t\t\t\t\t\t;(h.value[e.initiatorType] += t),\n\t\t\t\t\t\t\t\t\t\t(h.value.total += t)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tNe = function () {\n\t\t\t\t\t\t\t!(function (e, t) {\n\t\t\t\t\t\t\t\txe(function (e) {\n\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\tif (e.entries.length) {\n\t\t\t\t\t\t\t\t\t\t\tvar t = e.entries[0],\n\t\t\t\t\t\t\t\t\t\t\t\tn = t.activationStart || 0,\n\t\t\t\t\t\t\t\t\t\t\t\tr = Math.max(t.domainLookupStart - n, 0),\n\t\t\t\t\t\t\t\t\t\t\t\ti = Math.max(t.connectStart - n, 0),\n\t\t\t\t\t\t\t\t\t\t\t\ta = Math.max(t.requestStart - n, 0)\n\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\twaitingTime: r,\n\t\t\t\t\t\t\t\t\t\t\t\tdnsTime: i - r,\n\t\t\t\t\t\t\t\t\t\t\t\tconnectionTime: a - i,\n\t\t\t\t\t\t\t\t\t\t\t\trequestTime: e.value - a,\n\t\t\t\t\t\t\t\t\t\t\t\tnavigationEntry: t,\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\twaitingTime: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tdnsTime: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tconnectionTime: 0,\n\t\t\t\t\t\t\t\t\t\t\t\trequestTime: 0,\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\te.value > 0 && q(e)\n\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t}, t)\n\t\t\t\t\t\t\t})(0, a.reportOptions.ttfb),\n\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\t!(function (e, t) {\n\t\t\t\t\t\t\t\t\t\t;(t = t || {}),\n\t\t\t\t\t\t\t\t\t\t\tee(function () {\n\t\t\t\t\t\t\t\t\t\t\t\tvar e,\n\t\t\t\t\t\t\t\t\t\t\t\t\tn = [0.1, 0.25],\n\t\t\t\t\t\t\t\t\t\t\t\t\tr = J('CLS'),\n\t\t\t\t\t\t\t\t\t\t\t\t\ti = -1,\n\t\t\t\t\t\t\t\t\t\t\t\t\ta = 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\to = [],\n\t\t\t\t\t\t\t\t\t\t\t\t\ts = function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ti > -1 &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.entries.length) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar t = e.entries.reduce(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction (e, t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn e &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.value > t.value\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.sources &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.sources.length\n\t\t\t\t\t\t\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largestShiftValue:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.value,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlargestShiftSource:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlargestShiftEntry:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tloadState: z(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.startTime,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.attribution = {}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tq(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\tc = function (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.forEach(function (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!t.hadRecentInput) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar n = o[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti = o[o.length - 1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.startTime - i.startTime <\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t1e3 &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.startTime - n.startTime < 5e3\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? ((a += t.value), o.push(t))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: ((a = t.value), (o = [t])),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta > r.value &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((r.value = a),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(r.entries = o),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\tu = X('layout-shift', c)\n\t\t\t\t\t\t\t\t\t\t\t\tu &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t((e = Z(s, r, n, t.reportAllChanges)),\n\t\t\t\t\t\t\t\t\t\t\t\t\tse(function (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(i = t.value),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr.value < 0 && ((r.value = 0), e())\n\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\tG(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tc(u.takeRecords()), e(!0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\tH(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(a = 0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(i = -1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(r = J('CLS', 0)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(e = Z(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.reportAllChanges,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tY(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn e()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})(0, t)\n\t\t\t\t\t\t\t\t})(0, a.reportOptions.cls),\n\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\tse(function (e) {\n\t\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tif (e.entries.length) {\n\t\t\t\t\t\t\t\t\t\t\t\tvar t = F(),\n\t\t\t\t\t\t\t\t\t\t\t\t\tn = e.entries[e.entries.length - 1]\n\t\t\t\t\t\t\t\t\t\t\t\tif (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar r = t.activationStart || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ti = Math.max(0, t.responseStart - r)\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn void (e.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttimeToFirstByte: i,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfirstByteToFCP: e.value - i,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tloadState: z(e.entries[0].startTime),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnavigationEntry: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfcpEntry: n,\n\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\ttimeToFirstByte: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tfirstByteToFCP: e.value,\n\t\t\t\t\t\t\t\t\t\t\t\tloadState: z(W()),\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\tq(e)\n\t\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t}, t)\n\t\t\t\t\t\t\t\t})(0, a.reportOptions.fcp),\n\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\t!(function (e, t) {\n\t\t\t\t\t\t\t\t\t\t;(t = t || {}),\n\t\t\t\t\t\t\t\t\t\t\tee(function () {\n\t\t\t\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\t\t\t\tr = [100, 300],\n\t\t\t\t\t\t\t\t\t\t\t\t\ti = oe(),\n\t\t\t\t\t\t\t\t\t\t\t\t\ta = J('FID'),\n\t\t\t\t\t\t\t\t\t\t\t\t\to = function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.startTime < i.firstHiddenTime &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((a.value =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.processingStart -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.startTime),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta.entries.push(e),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(!0))\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\ts = function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.forEach(o)\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\tc = X('first-input', s)\n\t\t\t\t\t\t\t\t\t\t\t\t;(n = Z(e, a, r, t.reportAllChanges)),\n\t\t\t\t\t\t\t\t\t\t\t\t\tc &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tG(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts(c.takeRecords()), c.disconnect()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}, !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\tc &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tH(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(a = J('FID')),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(n = Z(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.reportAllChanges,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(C = []),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(M = -1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(P = null),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tme(addEventListener),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(i = o),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tC.push(i),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tde()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})(function (e) {\n\t\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tvar t = e.entries[0]\n\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\teventTarget: $(t.target),\n\t\t\t\t\t\t\t\t\t\t\t\teventType: t.name,\n\t\t\t\t\t\t\t\t\t\t\t\teventTime: t.startTime,\n\t\t\t\t\t\t\t\t\t\t\t\teventEntry: t,\n\t\t\t\t\t\t\t\t\t\t\t\tloadState: z(t.startTime),\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\tq(e)\n\t\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t}, t)\n\t\t\t\t\t\t\t\t})(0, a.reportOptions.fid),\n\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\t!(function (e, t) {\n\t\t\t\t\t\t\t\t\t\t;(t = t || {}),\n\t\t\t\t\t\t\t\t\t\t\tee(function () {\n\t\t\t\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\t\t\t\tr = [2500, 4e3],\n\t\t\t\t\t\t\t\t\t\t\t\t\ti = oe(),\n\t\t\t\t\t\t\t\t\t\t\t\t\ta = J('LCP'),\n\t\t\t\t\t\t\t\t\t\t\t\t\to = function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar t = e[e.length - 1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar r = Math.max(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.startTime - V(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr < i.firstHiddenTime &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((a.value = r),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(a.entries = [t]),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\ts = X('largest-contentful-paint', o)\n\t\t\t\t\t\t\t\t\t\t\t\tif (s) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tn = Z(e, a, r, t.reportAllChanges)\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar c = function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSe[a.id] ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(o(s.takeRecords()),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts.disconnect(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Se[a.id] = !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(!0))\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t;['keydown', 'click'].forEach(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taddEventListener(e, c, {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonce: !0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcapture: !0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tG(c, !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tH(function (i) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(a = J('LCP')),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(n = Z(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.reportAllChanges,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tY(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(a.value =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tperformance.now() -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti.timeStamp),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Se[a.id] = !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(!0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})(function (e) {\n\t\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tif (e.entries.length) {\n\t\t\t\t\t\t\t\t\t\t\t\tvar t = F()\n\t\t\t\t\t\t\t\t\t\t\t\tif (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar n = t.activationStart || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tr = e.entries[e.entries.length - 1],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ti =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr.url &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tperformance\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEntriesByType('resource')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.filter(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn e.name === r.url\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ta = Math.max(0, t.responseStart - n),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\to = Math.max(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? (i.requestStart ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti.startTime) - n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ts = Math.max(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti ? i.responseEnd - n : 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tc = Math.max(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr ? r.startTime - n : 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tu = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telement: $(r.element),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttimeToFirstByte: a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tresourceLoadDelay: o - a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tresourceLoadTime: s - o,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telementRenderDelay: c - s,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnavigationEntry: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlcpEntry: r,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tr.url && (u.url = r.url),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ti && (u.lcpResourceEntry = i),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvoid (e.attribution = u)\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\ttimeToFirstByte: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tresourceLoadDelay: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tresourceLoadTime: 0,\n\t\t\t\t\t\t\t\t\t\t\t\telementRenderDelay: e.value,\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\tq(e)\n\t\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t}, t)\n\t\t\t\t\t\t\t\t})(0, a.reportOptions.lcp),\n\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\t!(function (e, t) {\n\t\t\t\t\t\t\t\t\t\t;(t = t || {}),\n\t\t\t\t\t\t\t\t\t\t\tee(function () {\n\t\t\t\t\t\t\t\t\t\t\t\tvar n = [200, 500]\n\t\t\t\t\t\t\t\t\t\t\t\t'interactionCount' in performance ||\n\t\t\t\t\t\t\t\t\t\t\t\t\tD ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t(D = X('event', be, {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: 'event',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbuffered: !0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdurationThreshold: 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t\t\t\tvar r,\n\t\t\t\t\t\t\t\t\t\t\t\t\ti = J('INP'),\n\t\t\t\t\t\t\t\t\t\t\t\t\ta = function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.interactionId && _e(e),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'first-input' === e.entryType &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t!Te.some(function (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn t.entries.some(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.duration ===\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.duration &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.startTime ===\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.startTime\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}) &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t_e(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((t = Math.min(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTe.length - 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMath.floor(ye() / 50),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTe[t])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tn &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn.latency !== i.value &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((i.value = n.latency),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(i.entries = n.entries),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr())\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\to = X('event', a, {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdurationThreshold:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.durationThreshold || 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t;(r = Z(e, i, n, t.reportAllChanges)),\n\t\t\t\t\t\t\t\t\t\t\t\t\to &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(o.observe({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: 'first-input',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbuffered: !0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tG(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta(o.takeRecords()),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti.value < 0 &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tye() > 0 &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((i.value = 0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(i.entries = [])),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr(!0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tH(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(Te = []),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(we = he()),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(i = J('INP')),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(r = Z(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.reportAllChanges,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})(function (t) {\n\t\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tif (e.entries.length) {\n\t\t\t\t\t\t\t\t\t\t\t\tvar t = e.entries.sort(function (e, t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.duration - e.duration ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.processingEnd -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.processingStart -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(e.processingEnd -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.processingStart)\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t})[0]\n\t\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\t\teventTarget: $(t.target),\n\t\t\t\t\t\t\t\t\t\t\t\t\teventType: t.name,\n\t\t\t\t\t\t\t\t\t\t\t\t\teventTime: t.startTime,\n\t\t\t\t\t\t\t\t\t\t\t\t\teventEntry: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\tloadState: z(t.startTime),\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t} else e.attribution = {}\n\t\t\t\t\t\t\t\t\t\t})(t),\n\t\t\t\t\t\t\t\t\t\t\te(t)\n\t\t\t\t\t\t\t\t\t}, t)\n\t\t\t\t\t\t\t\t})(function (e) {\n\t\t\t\t\t\t\t\t\treturn q(e)\n\t\t\t\t\t\t\t\t}, a.reportOptions.inp),\n\t\t\t\t\t\t\t\ta.isResourceTiming && S('resource', je),\n\t\t\t\t\t\t\t\ta.isElementTiming && S('element', Oe)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tIe = function (e) {\n\t\t\t\t\t\t\tvar t = 'usageDetails' in e ? e.usageDetails : {}\n\t\t\t\t\t\t\tR('storageEstimate', {\n\t\t\t\t\t\t\t\tquota: j(e.quota),\n\t\t\t\t\t\t\t\tusage: j(e.usage),\n\t\t\t\t\t\t\t\tcaches: j(t.caches),\n\t\t\t\t\t\t\t\tindexedDB: j(t.indexedDB),\n\t\t\t\t\t\t\t\tserviceWorker: j(t.serviceWorkerRegistrations),\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tPe = {\n\t\t\t\t\t\t\tfinalMarkToStepsMap: {},\n\t\t\t\t\t\t\tstartMarkToStepsMap: {},\n\t\t\t\t\t\t\tactive: {},\n\t\t\t\t\t\t\tnavigationSteps: {},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tMe = function (e) {\n\t\t\t\t\t\t\tdelete Pe.active[e]\n\t\t\t\t\t\t},\n\t\t\t\t\t\tBe = function () {\n\t\t\t\t\t\t\treturn Pe.navigationSteps\n\t\t\t\t\t\t},\n\t\t\t\t\t\tCe = function (e) {\n\t\t\t\t\t\t\tvar t\n\t\t\t\t\t\t\treturn null !== (t = Be()[e]) && void 0 !== t ? t : {}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tDe = function (e, t, n) {\n\t\t\t\t\t\t\tvar r = 'step.' + e,\n\t\t\t\t\t\t\t\ti = u.getEntriesByName(p + t).length > 0\n\t\t\t\t\t\t\tif (u.getEntriesByName(p + n).length > 0 && a.steps) {\n\t\t\t\t\t\t\t\tvar o = A[a.steps[e].threshold],\n\t\t\t\t\t\t\t\t\ts = o.maxOutlierThreshold,\n\t\t\t\t\t\t\t\t\tc = o.vitalsThresholds\n\t\t\t\t\t\t\t\tif (i) {\n\t\t\t\t\t\t\t\t\tvar l = u.measure(r, p + t, p + n),\n\t\t\t\t\t\t\t\t\t\td = l.duration\n\t\t\t\t\t\t\t\t\tif (d <= s) {\n\t\t\t\t\t\t\t\t\t\tvar m = (function (e, t) {\n\t\t\t\t\t\t\t\t\t\t\treturn e <= t[0]\n\t\t\t\t\t\t\t\t\t\t\t\t? 'good'\n\t\t\t\t\t\t\t\t\t\t\t\t: e <= t[1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t? 'needsImprovement'\n\t\t\t\t\t\t\t\t\t\t\t\t\t: 'poor'\n\t\t\t\t\t\t\t\t\t\t})(d, c)\n\t\t\t\t\t\t\t\t\t\td >= 0 &&\n\t\t\t\t\t\t\t\t\t\t\t(N(\n\t\t\t\t\t\t\t\t\t\t\t\t'userJourneyStep',\n\t\t\t\t\t\t\t\t\t\t\t\td,\n\t\t\t\t\t\t\t\t\t\t\t\tm,\n\t\t\t\t\t\t\t\t\t\t\t\t{ stepName: e },\n\t\t\t\t\t\t\t\t\t\t\t\tvoid 0,\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\tu.measure(\n\t\t\t\t\t\t\t\t\t\t\t\t'step.'.concat(e, '_vitals_').concat(m),\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tstart: l.startTime + l.duration,\n\t\t\t\t\t\t\t\t\t\t\t\t\tend: l.startTime + l.duration,\n\t\t\t\t\t\t\t\t\t\t\t\t\tdetail: {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: 'stepVital',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tduration: d,\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t))\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tAe = function () {\n\t\t\t\t\t\t\tvar e = Be(),\n\t\t\t\t\t\t\t\tt = Pe.startMarkToStepsMap,\n\t\t\t\t\t\t\t\tn = Object.keys(e).length\n\t\t\t\t\t\t\tif (0 === n) return {}\n\t\t\t\t\t\t\tvar r = {},\n\t\t\t\t\t\t\t\ti = n - 1,\n\t\t\t\t\t\t\t\ta = Ce(i)\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t(Object.keys(a).forEach(function (e) {\n\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\ti = null !== (n = t[e]) && void 0 !== n ? n : []\n\t\t\t\t\t\t\t\t\tObject.keys(i).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\tr[e] = !0\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\tn > 1)\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tvar o = Ce(i - 1)\n\t\t\t\t\t\t\t\tObject.keys(o).forEach(function (e) {\n\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\ti = null !== (n = t[e]) && void 0 !== n ? n : []\n\t\t\t\t\t\t\t\t\tObject.keys(i).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\tr[e] = !0\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn r\n\t\t\t\t\t\t},\n\t\t\t\t\t\tLe = function () {\n\t\t\t\t\t\t\tvar e,\n\t\t\t\t\t\t\t\tt = Object.keys(Pe.navigationSteps).length\n\t\t\t\t\t\t\tPe.navigationSteps[t] = {}\n\t\t\t\t\t\t\tvar n = Ae()\n\t\t\t\t\t\t\tnull === (e = a.onMarkStep) ||\n\t\t\t\t\t\t\t\tvoid 0 === e ||\n\t\t\t\t\t\t\t\te.call(a, '', Object.keys(n))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tUe = function (e) {\n\t\t\t\t\t\t\tvar t, n, r, i, o, s, c\n\t\t\t\t\t\t\tif (Pe.finalMarkToStepsMap[e]) {\n\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\tvar t = Pe.navigationSteps,\n\t\t\t\t\t\t\t\t\t\tn = Pe.finalMarkToStepsMap,\n\t\t\t\t\t\t\t\t\t\tr = Object.keys(t).length\n\t\t\t\t\t\t\t\t\tif (0 !== r) {\n\t\t\t\t\t\t\t\t\t\tvar i = r - 1,\n\t\t\t\t\t\t\t\t\t\t\ta = Ce(i)\n\t\t\t\t\t\t\t\t\t\tif (a && n[e]) {\n\t\t\t\t\t\t\t\t\t\t\tvar o = n[e]\n\t\t\t\t\t\t\t\t\t\t\to &&\n\t\t\t\t\t\t\t\t\t\t\t\tObject.keys(o).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (a[e]) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar n = Ce(i) || {}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(n[e] = !1), (t[i] = n)\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (r > 1) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar o = i - 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts = Ce(o)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ts[e] && ((s[e] = !1), (t[o] = s))\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\tvar u = Pe.finalMarkToStepsMap[e]\n\t\t\t\t\t\t\t\tObject.keys(u).forEach(function (t) {\n\t\t\t\t\t\t\t\t\tvar n = u[t]\n\t\t\t\t\t\t\t\t\tn.forEach(Me),\n\t\t\t\t\t\t\t\t\t\tPromise.all(\n\t\t\t\t\t\t\t\t\t\t\tn.map(function (n) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn (function (e, t, n, r) {\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn new (n || (n = Promise))(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction (e, t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction i(e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to(r.next(e))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction a(e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to(r.throw(e))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction o(t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.done\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? e(t.value)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: ((r = t.value),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr instanceof n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: new n(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te(r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})).then(i, a)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(r = r.apply(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tundefined,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)).next(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t})(0, 0, void 0, function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (function (e, t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel: 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsent: function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (1 & i[0]) throw i[1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn i[1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttrys: [],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tops: [],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(a = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnext: s(0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthrow: s(1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn: s(2),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'function' == typeof Symbol &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(a[Symbol.iterator] =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn this\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction s(a) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn function (s) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (function (a) {\n\t\t\t\t\t\t\t\t\t\t\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t\t\t\t\t\t\t\t\t\t\t\t\t? a[1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: void 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdone: !0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})([a, s])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t})(this, function (r) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch (r.label) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn [4, De(n, t, e)]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn r.sent(), [2]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t).catch(function () {})\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t(r = e),\n\t\t\t\t\t\t\t\t\t(i = Pe.navigationSteps),\n\t\t\t\t\t\t\t\t\t(o = Object.keys(i).length),\n\t\t\t\t\t\t\t\t\t((c = Ce((s = (o > 0 ? o : 1) - 1)) || [])[r] = !0),\n\t\t\t\t\t\t\t\t\t(i[s] = c),\n\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\tvar t,\n\t\t\t\t\t\t\t\t\t\t\tn =\n\t\t\t\t\t\t\t\t\t\t\t\tnull !== (t = Pe.startMarkToStepsMap[e]) &&\n\t\t\t\t\t\t\t\t\t\t\t\tvoid 0 !== t\n\t\t\t\t\t\t\t\t\t\t\t\t\t? t\n\t\t\t\t\t\t\t\t\t\t\t\t\t: []\n\t\t\t\t\t\t\t\t\t\tObject.keys(n).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tPe.active[e] || (Pe.active[e] = !0)\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\tif (a.enableNavigationTracking) {\n\t\t\t\t\t\t\t\tvar l = Ae()\n\t\t\t\t\t\t\t\tnull === (t = a.onMarkStep) ||\n\t\t\t\t\t\t\t\t\tvoid 0 === t ||\n\t\t\t\t\t\t\t\t\tt.call(a, e, Object.keys(l))\n\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\tnull === (n = a.onMarkStep) ||\n\t\t\t\t\t\t\t\t\tvoid 0 === n ||\n\t\t\t\t\t\t\t\t\tn.call(a, e, Object.keys(Pe.active))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tRe = function (e) {\n\t\t\t\t\t\t\tu.mark(p + e), Ue(e)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tqe = function (e) {\n\t\t\t\t\t\t\t0 === u.getEntriesByName(p + e).length &&\n\t\t\t\t\t\t\t\t(u.mark(p + e), Ue(e))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tFe = 0,\n\t\t\t\t\t\tze = (function () {\n\t\t\t\t\t\t\tfunction e(e) {\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t(void 0 === e && (e = {}),\n\t\t\t\t\t\t\t\t\t(this.v = '9.0.0-rc.3'),\n\t\t\t\t\t\t\t\t\t(a.analyticsTracker = e.analyticsTracker),\n\t\t\t\t\t\t\t\t\t(a.isResourceTiming = !!e.resourceTiming),\n\t\t\t\t\t\t\t\t\t(a.isElementTiming = !!e.elementTiming),\n\t\t\t\t\t\t\t\t\t(a.maxTime = e.maxMeasureTime || a.maxTime),\n\t\t\t\t\t\t\t\t\t(a.reportOptions =\n\t\t\t\t\t\t\t\t\t\te.reportOptions || a.reportOptions),\n\t\t\t\t\t\t\t\t\t(a.steps = e.steps),\n\t\t\t\t\t\t\t\t\t(a.onMarkStep = e.onMarkStep),\n\t\t\t\t\t\t\t\t\t(a.enableNavigationTracking =\n\t\t\t\t\t\t\t\t\t\te.enableNavigationTracking),\n\t\t\t\t\t\t\t\t\tm())\n\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t'PerformanceObserver' in o && Ne(),\n\t\t\t\t\t\t\t\t\t\tvoid 0 !== document.hidden &&\n\t\t\t\t\t\t\t\t\t\t\tdocument.addEventListener(\n\t\t\t\t\t\t\t\t\t\t\t\t'visibilitychange',\n\t\t\t\t\t\t\t\t\t\t\t\t_,\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\tvar t = (function () {\n\t\t\t\t\t\t\t\t\t\tif (!m()) return {}\n\t\t\t\t\t\t\t\t\t\tvar e = u.getEntriesByType('navigation')[0]\n\t\t\t\t\t\t\t\t\t\tif (!e) return {}\n\t\t\t\t\t\t\t\t\t\tvar t = e.responseStart,\n\t\t\t\t\t\t\t\t\t\t\tn = e.responseEnd\n\t\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t\tfetchTime: n - e.fetchStart,\n\t\t\t\t\t\t\t\t\t\t\tworkerTime:\n\t\t\t\t\t\t\t\t\t\t\t\te.workerStart > 0 ? n - e.workerStart : 0,\n\t\t\t\t\t\t\t\t\t\t\ttotalTime: n - e.requestStart,\n\t\t\t\t\t\t\t\t\t\t\tdownloadTime: n - t,\n\t\t\t\t\t\t\t\t\t\t\ttimeToFirstByte: t - e.requestStart,\n\t\t\t\t\t\t\t\t\t\t\theaderSize:\n\t\t\t\t\t\t\t\t\t\t\t\te.transferSize - e.encodedBodySize || 0,\n\t\t\t\t\t\t\t\t\t\t\tdnsLookupTime:\n\t\t\t\t\t\t\t\t\t\t\t\te.domainLookupEnd - e.domainLookupStart,\n\t\t\t\t\t\t\t\t\t\t\tredirectTime: e.redirectEnd - e.redirectStart,\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t})()\n\t\t\t\t\t\t\t\t\tR('navigationTiming', t),\n\t\t\t\t\t\t\t\t\t\tt.redirectTime &&\n\t\t\t\t\t\t\t\t\t\t\tq({\n\t\t\t\t\t\t\t\t\t\t\t\tattribution: {},\n\t\t\t\t\t\t\t\t\t\t\t\tname: 'RT',\n\t\t\t\t\t\t\t\t\t\t\t\trating: U('RT', t.redirectTime),\n\t\t\t\t\t\t\t\t\t\t\t\tvalue: t.redirectTime,\n\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\tR(\n\t\t\t\t\t\t\t\t\t\t\t'networkInformation',\n\t\t\t\t\t\t\t\t\t\t\t(function () {\n\t\t\t\t\t\t\t\t\t\t\t\tif ('connection' in c) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar e = c.connection\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn 'object' != typeof e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? {}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: ((f = e.effectiveType),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(v = !!e.saveData),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdownlink: e.downlink,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\teffectiveType: e.effectiveType,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trtt: e.rtt,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsaveData: !!e.saveData,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\treturn {}\n\t\t\t\t\t\t\t\t\t\t\t})(),\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\tc &&\n\t\t\t\t\t\t\t\t\t\t\tc.storage &&\n\t\t\t\t\t\t\t\t\t\t\t'function' == typeof c.storage.estimate &&\n\t\t\t\t\t\t\t\t\t\t\tc.storage.estimate().then(Ie),\n\t\t\t\t\t\t\t\t\t\ta.steps &&\n\t\t\t\t\t\t\t\t\t\t\ta.steps &&\n\t\t\t\t\t\t\t\t\t\t\t((Pe.startMarkToStepsMap = {}),\n\t\t\t\t\t\t\t\t\t\t\t(Pe.finalMarkToStepsMap = {}),\n\t\t\t\t\t\t\t\t\t\t\t(Pe.active = {}),\n\t\t\t\t\t\t\t\t\t\t\t(Pe.navigationSteps = {}),\n\t\t\t\t\t\t\t\t\t\t\tObject.entries(a.steps).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\tvar t,\n\t\t\t\t\t\t\t\t\t\t\t\t\tn,\n\t\t\t\t\t\t\t\t\t\t\t\t\tr = e[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\ti = e[1].marks,\n\t\t\t\t\t\t\t\t\t\t\t\t\ta = i[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\to = i[1],\n\t\t\t\t\t\t\t\t\t\t\t\t\ts =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull !==\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(n = Pe.startMarkToStepsMap[a]) &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvoid 0 !== n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: {}\n\t\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\t\t((s[r] = !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t(Pe.startMarkToStepsMap[a] = s),\n\t\t\t\t\t\t\t\t\t\t\t\t\tPe.finalMarkToStepsMap[o])\n\t\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar c =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tPe.finalMarkToStepsMap[o][a] || []\n\t\t\t\t\t\t\t\t\t\t\t\t\tc.push(r),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Pe.finalMarkToStepsMap[o][a] = c)\n\t\t\t\t\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\t\t\t\t\tPe.finalMarkToStepsMap[o] =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(((t = {})[a] = [r]), t)\n\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t(e.prototype.start = function (e) {\n\t\t\t\t\t\t\t\t\tm() &&\n\t\t\t\t\t\t\t\t\t\t!g[e] &&\n\t\t\t\t\t\t\t\t\t\t((g[e] = !0), u.mark('mark_'.concat(e, '_start')))\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t(e.prototype.end = function (e, t, n) {\n\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t(void 0 === t && (t = {}),\n\t\t\t\t\t\t\t\t\t\tvoid 0 === n && (n = !0),\n\t\t\t\t\t\t\t\t\t\tm() && g[e])\n\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\tu.mark('mark_'.concat(e, '_end')), delete g[e]\n\t\t\t\t\t\t\t\t\t\tvar r = (function (e) {\n\t\t\t\t\t\t\t\t\t\t\tu.measure(\n\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t'mark_'.concat(e, '_start'),\n\t\t\t\t\t\t\t\t\t\t\t\t'mark_'.concat(e, '_end'),\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\tvar t = u.getEntriesByName(e).pop()\n\t\t\t\t\t\t\t\t\t\t\treturn t && 'measure' === t.entryType\n\t\t\t\t\t\t\t\t\t\t\t\t? t.duration\n\t\t\t\t\t\t\t\t\t\t\t\t: -1\n\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t\tn && R(e, O(r), t)\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t(e.prototype.endPaint = function (e, t) {\n\t\t\t\t\t\t\t\t\tvar n = this\n\t\t\t\t\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\t\t\t\t\tn.end(e, t)\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t(e.prototype.clear = function (e) {\n\t\t\t\t\t\t\t\t\tdelete g[e],\n\t\t\t\t\t\t\t\t\t\tu.clearMarks &&\n\t\t\t\t\t\t\t\t\t\t\t(u.clearMarks('mark_'.concat(e, '_start')),\n\t\t\t\t\t\t\t\t\t\t\tu.clearMarks('mark_'.concat(e, '_end')))\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t(e.prototype.markNTBT = function () {\n\t\t\t\t\t\t\t\t\tvar e = this\n\t\t\t\t\t\t\t\t\tthis.start('ntbt'),\n\t\t\t\t\t\t\t\t\t\t(y.value = 0),\n\t\t\t\t\t\t\t\t\t\tclearTimeout(Fe),\n\t\t\t\t\t\t\t\t\t\t(Fe = setTimeout(function () {\n\t\t\t\t\t\t\t\t\t\t\te.end('ntbt', {}, !1),\n\t\t\t\t\t\t\t\t\t\t\t\tq({\n\t\t\t\t\t\t\t\t\t\t\t\t\tattribution: {},\n\t\t\t\t\t\t\t\t\t\t\t\t\tname: 'NTBT',\n\t\t\t\t\t\t\t\t\t\t\t\t\trating: U('NTBT', y.value),\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: y.value,\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t(y.value = 0)\n\t\t\t\t\t\t\t\t\t\t}, 2e3))\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\te\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t})()\n\t\t\t\t},\n\t\t\t\t426: (e, t) => {\n\t\t\t\t\t'use strict'\n\t\t\t\t\tSymbol.for('react.element'),\n\t\t\t\t\t\tSymbol.for('react.portal'),\n\t\t\t\t\t\tSymbol.for('react.fragment'),\n\t\t\t\t\t\tSymbol.for('react.strict_mode'),\n\t\t\t\t\t\tSymbol.for('react.profiler'),\n\t\t\t\t\t\tSymbol.for('react.provider'),\n\t\t\t\t\t\tSymbol.for('react.context'),\n\t\t\t\t\t\tSymbol.for('react.forward_ref'),\n\t\t\t\t\t\tSymbol.for('react.suspense'),\n\t\t\t\t\t\tSymbol.for('react.memo'),\n\t\t\t\t\t\tSymbol.for('react.lazy'),\n\t\t\t\t\t\tSymbol.iterator\n\t\t\t\t\tvar n = {\n\t\t\t\t\t\t\tisMounted: function () {\n\t\t\t\t\t\t\t\treturn !1\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tenqueueForceUpdate: function () {},\n\t\t\t\t\t\t\tenqueueReplaceState: function () {},\n\t\t\t\t\t\t\tenqueueSetState: function () {},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tr = Object.assign,\n\t\t\t\t\t\ti = {}\n\t\t\t\t\tfunction a(e, t, r) {\n\t\t\t\t\t\t;(this.props = e),\n\t\t\t\t\t\t\t(this.context = t),\n\t\t\t\t\t\t\t(this.refs = i),\n\t\t\t\t\t\t\t(this.updater = r || n)\n\t\t\t\t\t}\n\t\t\t\t\tfunction o() {}\n\t\t\t\t\tfunction s(e, t, r) {\n\t\t\t\t\t\t;(this.props = e),\n\t\t\t\t\t\t\t(this.context = t),\n\t\t\t\t\t\t\t(this.refs = i),\n\t\t\t\t\t\t\t(this.updater = r || n)\n\t\t\t\t\t}\n\t\t\t\t\t;(a.prototype.isReactComponent = {}),\n\t\t\t\t\t\t(a.prototype.setState = function (e, t) {\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t'object' != typeof e &&\n\t\t\t\t\t\t\t\t'function' != typeof e &&\n\t\t\t\t\t\t\t\tnull != e\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\tthrow Error(\n\t\t\t\t\t\t\t\t\t'setState(...): takes an object of state variables to update or a function which returns an object of state variables.',\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\tthis.updater.enqueueSetState(this, e, t, 'setState')\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(a.prototype.forceUpdate = function (e) {\n\t\t\t\t\t\t\tthis.updater.enqueueForceUpdate(this, e, 'forceUpdate')\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(o.prototype = a.prototype)\n\t\t\t\t\tvar c = (s.prototype = new o())\n\t\t\t\t\t;(c.constructor = s),\n\t\t\t\t\t\tr(c, a.prototype),\n\t\t\t\t\t\t(c.isPureReactComponent = !0)\n\t\t\t\t\tArray.isArray, Object.prototype.hasOwnProperty\n\t\t\t\t\tvar u = { current: null }\n\t\t\t\t\t;(t.useCallback = function (e, t) {\n\t\t\t\t\t\treturn u.current.useCallback(e, t)\n\t\t\t\t\t}),\n\t\t\t\t\t\t(t.useEffect = function (e, t) {\n\t\t\t\t\t\t\treturn u.current.useEffect(e, t)\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(t.useRef = function (e) {\n\t\t\t\t\t\t\treturn u.current.useRef(e)\n\t\t\t\t\t\t})\n\t\t\t\t},\n\t\t\t\t784: (e, t, n) => {\n\t\t\t\t\t'use strict'\n\t\t\t\t\te.exports = n(426)\n\t\t\t\t},\n\t\t\t\t353: function (e, t, n) {\n\t\t\t\t\tvar r\n\t\t\t\t\t!(function (i, a) {\n\t\t\t\t\t\t'use strict'\n\t\t\t\t\t\tvar o = 'function',\n\t\t\t\t\t\t\ts = 'undefined',\n\t\t\t\t\t\t\tc = 'object',\n\t\t\t\t\t\t\tu = 'string',\n\t\t\t\t\t\t\tl = 'major',\n\t\t\t\t\t\t\td = 'model',\n\t\t\t\t\t\t\tp = 'name',\n\t\t\t\t\t\t\tm = 'type',\n\t\t\t\t\t\t\tf = 'vendor',\n\t\t\t\t\t\t\tv = 'version',\n\t\t\t\t\t\t\tg = 'architecture',\n\t\t\t\t\t\t\tb = 'console',\n\t\t\t\t\t\t\th = 'mobile',\n\t\t\t\t\t\t\tw = 'tablet',\n\t\t\t\t\t\t\ty = 'smarttv',\n\t\t\t\t\t\t\tT = 'wearable',\n\t\t\t\t\t\t\tk = 'embedded',\n\t\t\t\t\t\t\t_ = 'Amazon',\n\t\t\t\t\t\t\tS = 'Apple',\n\t\t\t\t\t\t\tE = 'ASUS',\n\t\t\t\t\t\t\tx = 'BlackBerry',\n\t\t\t\t\t\t\tO = 'Browser',\n\t\t\t\t\t\t\tj = 'Chrome',\n\t\t\t\t\t\t\tN = 'Firefox',\n\t\t\t\t\t\t\tI = 'Google',\n\t\t\t\t\t\t\tP = 'Huawei',\n\t\t\t\t\t\t\tM = 'LG',\n\t\t\t\t\t\t\tB = 'Microsoft',\n\t\t\t\t\t\t\tC = 'Motorola',\n\t\t\t\t\t\t\tD = 'Opera',\n\t\t\t\t\t\t\tA = 'Samsung',\n\t\t\t\t\t\t\tL = 'Sharp',\n\t\t\t\t\t\t\tU = 'Sony',\n\t\t\t\t\t\t\tR = 'Xiaomi',\n\t\t\t\t\t\t\tq = 'Zebra',\n\t\t\t\t\t\t\tF = 'Facebook',\n\t\t\t\t\t\t\tz = 'Chromium OS',\n\t\t\t\t\t\t\tK = 'Mac OS',\n\t\t\t\t\t\t\t$ = function (e) {\n\t\t\t\t\t\t\t\tfor (var t = {}, n = 0; n < e.length; n++)\n\t\t\t\t\t\t\t\t\tt[e[n].toUpperCase()] = e[n]\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tQ = function (e, t) {\n\t\t\t\t\t\t\t\treturn typeof e === u && -1 !== W(t).indexOf(W(e))\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tW = function (e) {\n\t\t\t\t\t\t\t\treturn e.toLowerCase()\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tH = function (e, t) {\n\t\t\t\t\t\t\t\tif (typeof e === u)\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t(e = e.replace(/^\\s\\s*/, '')),\n\t\t\t\t\t\t\t\t\t\ttypeof t === s ? e : e.substring(0, 350)\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tV = function (e, t) {\n\t\t\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\t\t\tvar n, r, i, s, u, l, d = 0;\n\t\t\t\t\t\t\t\t\td < t.length && !u;\n\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\tvar p = t[d],\n\t\t\t\t\t\t\t\t\t\tm = t[d + 1]\n\t\t\t\t\t\t\t\t\tfor (n = r = 0; n < p.length && !u && p[n]; )\n\t\t\t\t\t\t\t\t\t\tif ((u = p[n++].exec(e)))\n\t\t\t\t\t\t\t\t\t\t\tfor (i = 0; i < m.length; i++)\n\t\t\t\t\t\t\t\t\t\t\t\t(l = u[++r]),\n\t\t\t\t\t\t\t\t\t\t\t\t\ttypeof (s = m[i]) === c && s.length > 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? 2 === s.length\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? typeof s[1] == o\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? (this[s[0]] = s[1].call(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tl,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: (this[s[0]] = s[1])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 3 === s.length\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? typeof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t\t\t\t\td += 2\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tJ = function (e, t) {\n\t\t\t\t\t\t\t\tfor (var n in t)\n\t\t\t\t\t\t\t\t\tif (typeof t[n] === c && t[n].length > 0) {\n\t\t\t\t\t\t\t\t\t\tfor (var r = 0; r < t[n].length; r++)\n\t\t\t\t\t\t\t\t\t\t\tif (Q(t[n][r], e)) return '?' === n ? a : n\n\t\t\t\t\t\t\t\t\t} else if (Q(t[n], e)) return '?' === n ? a : n\n\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tX = {\n\t\t\t\t\t\t\t\tME: '4.90',\n\t\t\t\t\t\t\t\t'NT 3.11': 'NT3.51',\n\t\t\t\t\t\t\t\t'NT 4.0': 'NT4.0',\n\t\t\t\t\t\t\t\t2e3: 'NT 5.0',\n\t\t\t\t\t\t\t\tXP: ['NT 5.1', 'NT 5.2'],\n\t\t\t\t\t\t\t\tVista: 'NT 6.0',\n\t\t\t\t\t\t\t\t7: 'NT 6.1',\n\t\t\t\t\t\t\t\t8: 'NT 6.2',\n\t\t\t\t\t\t\t\t8.1: 'NT 6.3',\n\t\t\t\t\t\t\t\t10: ['NT 6.4', 'NT 10.0'],\n\t\t\t\t\t\t\t\tRT: 'ARM',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tG = {\n\t\t\t\t\t\t\t\tbrowser: [\n\t\t\t\t\t\t\t\t\t[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Chrome']],\n\t\t\t\t\t\t\t\t\t[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Edge']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(opera mini)\\/([-\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/opios[\\/ ]+([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, D + ' Mini']],\n\t\t\t\t\t\t\t\t\t[/\\bopr\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, D]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(kindle)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(avant |iemobile|slim)(?:browser)?[\\/ ]?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(ba?idubrowser)[\\/ ]?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(?:ms|\\()(ie) ([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\\/([-\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(heytap|ovi)browser\\/([\\d\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(weibo)__([\\d\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, 'UC' + O]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/microm.+\\bqbcore\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\bqbcore\\/([\\w\\.]+).+microm/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, 'WeChat(Win) Desktop']],\n\t\t\t\t\t\t\t\t\t[/micromessenger\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'WeChat']],\n\t\t\t\t\t\t\t\t\t[/konqueror\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Konqueror']],\n\t\t\t\t\t\t\t\t\t[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'IE']],\n\t\t\t\t\t\t\t\t\t[/ya(?:search)?browser\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Yandex']],\n\t\t\t\t\t\t\t\t\t[/(avast|avg)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[[p, /(.+)/, '$1 Secure ' + O], v],\n\t\t\t\t\t\t\t\t\t[/\\bfocus\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, N + ' Focus']],\n\t\t\t\t\t\t\t\t\t[/\\bopt\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, D + ' Touch']],\n\t\t\t\t\t\t\t\t\t[/coc_coc\\w+\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Coc Coc']],\n\t\t\t\t\t\t\t\t\t[/dolfin\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Dolphin']],\n\t\t\t\t\t\t\t\t\t[/coast\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, D + ' Coast']],\n\t\t\t\t\t\t\t\t\t[/miuibrowser\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'MIUI ' + O]],\n\t\t\t\t\t\t\t\t\t[/fxios\\/([-\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, N]],\n\t\t\t\t\t\t\t\t\t[/\\bqihu|(qi?ho?o?|360)browser/i],\n\t\t\t\t\t\t\t\t\t[[p, '360 ' + O]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(oculus|samsung|sailfish|huawei)browser\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[[p, /(.+)/, '$1 ' + O], v],\n\t\t\t\t\t\t\t\t\t[/(comodo_dragon)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[[p, /_/g, ' '], v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(electron)\\/([\\w\\.]+) safari/i,\n\t\t\t\t\t\t\t\t\t\t/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,\n\t\t\t\t\t\t\t\t\t\t/m?(qqbrowser|baiduboxapp|2345Explorer)[\\/ ]?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(metasr)[\\/ ]?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(lbbrowser)/i,\n\t\t\t\t\t\t\t\t\t\t/\\[(linkedin)app\\]/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[[p, F], v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(kakao(?:talk|story))[\\/ ]([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(naver)\\(.*?(\\d+\\.[\\w\\.]+).*\\)/i,\n\t\t\t\t\t\t\t\t\t\t/safari (line)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(line)\\/([\\w\\.]+)\\/iab/i,\n\t\t\t\t\t\t\t\t\t\t/(chromium|instagram)[\\/ ]([-\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'GSA']],\n\t\t\t\t\t\t\t\t\t[/musical_ly(?:.+app_?version\\/|_)([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'TikTok']],\n\t\t\t\t\t\t\t\t\t[/headlesschrome(?:\\/([\\w\\.]+)| )/i],\n\t\t\t\t\t\t\t\t\t[v, [p, j + ' Headless']],\n\t\t\t\t\t\t\t\t\t[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[[p, j + ' WebView'], v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Android ' + O]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Mobile Safari']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, p],\n\t\t\t\t\t\t\t\t\t[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\tp,\n\t\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t\tv,\n\t\t\t\t\t\t\t\t\t\t\tJ,\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t'1.0': '/8',\n\t\t\t\t\t\t\t\t\t\t\t\t1.2: '/1',\n\t\t\t\t\t\t\t\t\t\t\t\t1.3: '/3',\n\t\t\t\t\t\t\t\t\t\t\t\t'2.0': '/412',\n\t\t\t\t\t\t\t\t\t\t\t\t'2.0.2': '/416',\n\t\t\t\t\t\t\t\t\t\t\t\t'2.0.3': '/417',\n\t\t\t\t\t\t\t\t\t\t\t\t'2.0.4': '/419',\n\t\t\t\t\t\t\t\t\t\t\t\t'?': '/',\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/(webkit|khtml)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[[p, 'Netscape'], v],\n\t\t\t\t\t\t\t\t\t[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],\n\t\t\t\t\t\t\t\t\t[v, [p, N + ' Reality']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/ekiohf.+(flow)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(swiftfox)/i,\n\t\t\t\t\t\t\t\t\t\t/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,\n\t\t\t\t\t\t\t\t\t\t/(firefox)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i,\n\t\t\t\t\t\t\t\t\t\t/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(links) \\(([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/panasonic;(viera)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/(cobalt)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[p, [v, /master.|lts./, '']],\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tcpu: [\n\t\t\t\t\t\t\t\t\t[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],\n\t\t\t\t\t\t\t\t\t[[g, 'amd64']],\n\t\t\t\t\t\t\t\t\t[/(ia32(?=;))/i],\n\t\t\t\t\t\t\t\t\t[[g, W]],\n\t\t\t\t\t\t\t\t\t[/((?:i[346]|x)86)[;\\)]/i],\n\t\t\t\t\t\t\t\t\t[[g, 'ia32']],\n\t\t\t\t\t\t\t\t\t[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],\n\t\t\t\t\t\t\t\t\t[[g, 'arm64']],\n\t\t\t\t\t\t\t\t\t[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],\n\t\t\t\t\t\t\t\t\t[[g, 'armhf']],\n\t\t\t\t\t\t\t\t\t[/windows (ce|mobile); ppc;/i],\n\t\t\t\t\t\t\t\t\t[[g, 'arm']],\n\t\t\t\t\t\t\t\t\t[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],\n\t\t\t\t\t\t\t\t\t[[g, /ower/, '', W]],\n\t\t\t\t\t\t\t\t\t[/(sun4\\w)[;\\)]/i],\n\t\t\t\t\t\t\t\t\t[[g, 'sparc']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[[g, W]],\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tdevice: [\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\b(sch-i[89]0\\d|shw-m380s|sm-[ptx]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus 10)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, A], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\b((?:s[cgp]h|gt|sm)-\\w+|sc[g-]?[\\d]+a?|galaxy nexus)/i,\n\t\t\t\t\t\t\t\t\t\t/samsung[- ]([-\\w]+)/i,\n\t\t\t\t\t\t\t\t\t\t/sec-(sgh\\w+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, A], [m, h]],\n\t\t\t\t\t\t\t\t\t[/(?:\\/|\\()(ip(?:hone|od)[\\w, ]*)(?:\\/|;)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, S], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\((ipad);[-\\w\\),; ]+apple/i,\n\t\t\t\t\t\t\t\t\t\t/applecoremedia\\/[\\w\\.]+ \\((ipad)/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, S], [m, w]],\n\t\t\t\t\t\t\t\t\t[/(macintosh);/i],\n\t\t\t\t\t\t\t\t\t[d, [f, S]],\n\t\t\t\t\t\t\t\t\t[/\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, L], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, P], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(?:huawei|honor)([-\\w ]+)[;\\)]/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(nexus 6p|\\w{2,4}e?-[atu]?[ln][\\dx][012359c][adn]?)\\b(?!.+d\\/s)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, P], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\b(poco[\\w ]+)(?: bui|\\))/i,\n\t\t\t\t\t\t\t\t\t\t/\\b; (\\w+) build\\/hm\\1/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(hm[-_ ]?note?[_ ]?(?:\\d\\w)?) bui/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(redmi[\\-_ ]?(?:note|k)?[\\w_ ]+)(?: bui|\\))/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(mi[-_ ]?(?:a\\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\\d?\\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\\))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, /_/g, ' '],\n\t\t\t\t\t\t\t\t\t\t[f, R],\n\t\t\t\t\t\t\t\t\t\t[m, h],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/\\b(mi[-_ ]?(?:pad)(?:[\\w_ ]+))(?: bui|\\))/i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, /_/g, ' '],\n\t\t\t\t\t\t\t\t\t\t[f, R],\n\t\t\t\t\t\t\t\t\t\t[m, w],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/; (\\w+) bui.+ oppo/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, 'OPPO'], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/vivo (\\w+)(?: bui|\\))/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Vivo'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(rmx[12]\\d{3})(?: bui|;|\\))/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Realme'], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,\n\t\t\t\t\t\t\t\t\t\t/\\bmot(?:orola)?[- ](\\w*)/i,\n\t\t\t\t\t\t\t\t\t\t/((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, C], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],\n\t\t\t\t\t\t\t\t\t[d, [f, C], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, M], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,\n\t\t\t\t\t\t\t\t\t\t/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\blg-?([\\d\\w]+) bui/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, M], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(ideatab[-\\w ]+)/i,\n\t\t\t\t\t\t\t\t\t\t/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Lenovo'], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(?:maemo|nokia).*(n900|lumia \\d+)/i,\n\t\t\t\t\t\t\t\t\t\t/nokia[-_ ]?([-\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, /_/g, ' '],\n\t\t\t\t\t\t\t\t\t\t[f, 'Nokia'],\n\t\t\t\t\t\t\t\t\t\t[m, h],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/(pixel c)\\b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, I], [m, w]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],\n\t\t\t\t\t\t\t\t\t[d, [f, I], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/droid.+ (a?\\d[0-2]{2}so|[c-g]\\d{4}|so[-gl]\\w+|xq-a\\w[4-7][12])(?= bui|\\).+chrome\\/(?![1-6]{0,1}\\d\\.))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, U], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/sony tablet [ps]/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(?:sony)?sgp\\w+(?: bui|\\))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, 'Xperia Tablet'],\n\t\t\t\t\t\t\t\t\t\t[f, U],\n\t\t\t\t\t\t\t\t\t\t[m, w],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/ (kb2005|in20[12]5|be20[12][59])\\b/i,\n\t\t\t\t\t\t\t\t\t\t/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, 'OnePlus'], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(alexa)webm/i,\n\t\t\t\t\t\t\t\t\t\t/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\))/i,\n\t\t\t\t\t\t\t\t\t\t/(kf[a-z]+)( bui|\\)).+silk\\//i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, _], [m, w]],\n\t\t\t\t\t\t\t\t\t[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, /(.+)/g, 'Fire Phone $1'],\n\t\t\t\t\t\t\t\t\t\t[f, _],\n\t\t\t\t\t\t\t\t\t\t[m, h],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/(playbook);[-\\w\\),; ]+(rim)/i],\n\t\t\t\t\t\t\t\t\t[d, f, [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b((?:bb[a-f]|st[hv])100-\\d)/i, /\\(bb10; (\\w+)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, x], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, E], [m, w]],\n\t\t\t\t\t\t\t\t\t[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, E], [m, h]],\n\t\t\t\t\t\t\t\t\t[/(nexus 9)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'HTC'], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,\n\t\t\t\t\t\t\t\t\t\t/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,\n\t\t\t\t\t\t\t\t\t\t/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\.))|sony(?!-bra))[-_ ]?([-\\w]*)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[f, [d, /_/g, ' '], [m, h]],\n\t\t\t\t\t\t\t\t\t[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Acer'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (m[1-5] note) bui/i, /\\bmz-([-\\w]{2,})/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Meizu'], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\w]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(hp) ([\\w ]+\\w)/i,\n\t\t\t\t\t\t\t\t\t\t/(asus)-?(\\w+)/i,\n\t\t\t\t\t\t\t\t\t\t/(microsoft); (lumia[\\w ]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(lenovo)[-_ ]?([-\\w]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(jolla)/i,\n\t\t\t\t\t\t\t\t\t\t/(oppo) ?([\\w ]+) bui/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[f, d, [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(kobo)\\s(ereader|touch)/i,\n\t\t\t\t\t\t\t\t\t\t/(archos) (gamepad2?)/i,\n\t\t\t\t\t\t\t\t\t\t/(hp).+(touchpad(?!.+tablet)|tablet)/i,\n\t\t\t\t\t\t\t\t\t\t/(kindle)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(nook)[\\w ]+build\\/(\\w+)/i,\n\t\t\t\t\t\t\t\t\t\t/(dell) (strea[kpr\\d ]*[\\dko])/i,\n\t\t\t\t\t\t\t\t\t\t/(le[- ]+pan)[- ]+(\\w{1,9}) bui/i,\n\t\t\t\t\t\t\t\t\t\t/(trinity)[- ]*(t\\d{3}) bui/i,\n\t\t\t\t\t\t\t\t\t\t/(gigaset)[- ]+(q\\w{1,9}) bui/i,\n\t\t\t\t\t\t\t\t\t\t/(vodafone) ([\\w ]+)(?:\\)| bui)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[f, d, [m, w]],\n\t\t\t\t\t\t\t\t\t[/(surface duo)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, B], [m, w]],\n\t\t\t\t\t\t\t\t\t[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Fairphone'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/(u304aa)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'AT&T'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\bsie-(\\w*)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Siemens'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(rct\\w+) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'RCA'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(venue[\\d ]{2,7}) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Dell'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(q(?:mv|ta)\\w+) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Verizon'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Barnes & Noble'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(tm\\d{3}\\w+) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'NuVision'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(k88) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'ZTE'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(nx\\d{3}j) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'ZTE'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(gen\\d{3}) b.+49h/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Swiss'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(zur\\d{3}) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Swiss'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b((zeki)?tb.*\\b) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Zeki'], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\b([yr]\\d{2}) b/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[[f, 'Dragon Touch'], d, [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(ns-?\\w{0,9}) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Insignia'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b((nxa|next)-?\\w{0,9}) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'NextBook'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],\n\t\t\t\t\t\t\t\t\t[[f, 'Voice'], d, [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(lvtel\\-)?(v1[12]) b/i],\n\t\t\t\t\t\t\t\t\t[[f, 'LvTel'], d, [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(ph-1) /i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Essential'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(v(100md|700na|7011|917g).*\\b) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Envizen'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(trio[-\\w\\. ]+) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'MachSpeed'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\btu_(1491) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Rotor'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/(shield[\\w ]+) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Nvidia'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/(sprint) (\\w+)/i],\n\t\t\t\t\t\t\t\t\t[f, d, [m, h]],\n\t\t\t\t\t\t\t\t\t[/(kin\\.[onetw]{3})/i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, /\\./g, ' '],\n\t\t\t\t\t\t\t\t\t\t[f, B],\n\t\t\t\t\t\t\t\t\t\t[m, h],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, q], [m, w]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, q], [m, h]],\n\t\t\t\t\t\t\t\t\t[/smart-tv.+(samsung)/i],\n\t\t\t\t\t\t\t\t\t[f, [m, y]],\n\t\t\t\t\t\t\t\t\t[/hbbtv.+maple;(\\d+)/i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, /^/, 'SmartTV'],\n\t\t\t\t\t\t\t\t\t\t[f, A],\n\t\t\t\t\t\t\t\t\t\t[m, y],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[f, M],\n\t\t\t\t\t\t\t\t\t\t[m, y],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/(apple) ?tv/i],\n\t\t\t\t\t\t\t\t\t[f, [d, S + ' TV'], [m, y]],\n\t\t\t\t\t\t\t\t\t[/crkey/i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, j + 'cast'],\n\t\t\t\t\t\t\t\t\t\t[f, I],\n\t\t\t\t\t\t\t\t\t\t[m, y],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/droid.+aft(\\w)( bui|\\))/i],\n\t\t\t\t\t\t\t\t\t[d, [f, _], [m, y]],\n\t\t\t\t\t\t\t\t\t[/\\(dtv[\\);].+(aquos)/i, /(aquos-tv[\\w ]+)\\)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, L], [m, y]],\n\t\t\t\t\t\t\t\t\t[/(bravia[\\w ]+)( bui|\\))/i],\n\t\t\t\t\t\t\t\t\t[d, [f, U], [m, y]],\n\t\t\t\t\t\t\t\t\t[/(mitv-\\w{5}) bui/i],\n\t\t\t\t\t\t\t\t\t[d, [f, R], [m, y]],\n\t\t\t\t\t\t\t\t\t[/Hbbtv.*(technisat) (.*);/i],\n\t\t\t\t\t\t\t\t\t[f, d, [m, y]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w\\+ ]*; *([\\w\\d][^;]*);([^;]*)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[f, H],\n\t\t\t\t\t\t\t\t\t\t[d, H],\n\t\t\t\t\t\t\t\t\t\t[m, y],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],\n\t\t\t\t\t\t\t\t\t[[m, y]],\n\t\t\t\t\t\t\t\t\t[/(ouya)/i, /(nintendo) ([wids3utch]+)/i],\n\t\t\t\t\t\t\t\t\t[f, d, [m, b]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (shield) bui/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Nvidia'], [m, b]],\n\t\t\t\t\t\t\t\t\t[/(playstation [345portablevi]+)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, U], [m, b]],\n\t\t\t\t\t\t\t\t\t[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],\n\t\t\t\t\t\t\t\t\t[d, [f, B], [m, b]],\n\t\t\t\t\t\t\t\t\t[/((pebble))app/i],\n\t\t\t\t\t\t\t\t\t[f, d, [m, T]],\n\t\t\t\t\t\t\t\t\t[/(watch)(?: ?os[,\\/]|\\d,\\d\\/)[\\d\\.]+/i],\n\t\t\t\t\t\t\t\t\t[d, [f, S], [m, T]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (glass) \\d/i],\n\t\t\t\t\t\t\t\t\t[d, [f, I], [m, T]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (wt63?0{2,3})\\)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, q], [m, T]],\n\t\t\t\t\t\t\t\t\t[/(quest( 2| pro)?)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, F], [m, T]],\n\t\t\t\t\t\t\t\t\t[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[f, [m, k]],\n\t\t\t\t\t\t\t\t\t[/(aeobc)\\b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, _], [m, k]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/droid .+?; ([^;]+?)(?: bui|\\) applew).+? mobile safari/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],\n\t\t\t\t\t\t\t\t\t[[m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[[m, h]],\n\t\t\t\t\t\t\t\t\t[/(android[-\\w\\. ]{0,9});.+buil/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Generic']],\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tengine: [\n\t\t\t\t\t\t\t\t\t[/windows.+ edge\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'EdgeHTML']],\n\t\t\t\t\t\t\t\t\t[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Blink']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(presto)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/ekioh(flow)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(icab)[\\/ ]([23]\\.[\\d\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(libweb)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],\n\t\t\t\t\t\t\t\t\t[v, p],\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tos: [\n\t\t\t\t\t\t\t\t\t[/microsoft (windows) (vista|xp)/i],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(windows) nt 6\\.2; (arm)/i,\n\t\t\t\t\t\t\t\t\t\t/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(windows)[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, [v, J, X]],\n\t\t\t\t\t\t\t\t\t[/(win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[p, 'Windows'],\n\t\t\t\t\t\t\t\t\t\t[v, J, X],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,\n\t\t\t\t\t\t\t\t\t\t/ios;fbsv\\/([\\d\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/cfnetwork\\/.+darwin/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[v, /_/g, '.'],\n\t\t\t\t\t\t\t\t\t\t[p, 'iOS'],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(mac os x) ?([\\w\\. ]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(macintosh|mac_powerpc\\b)(?!.+haiku)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[p, K],\n\t\t\t\t\t\t\t\t\t\t[v, /_/g, '.'],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],\n\t\t\t\t\t\t\t\t\t[v, p],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(blackberry)\\w*\\/([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\((series40);/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/\\(bb(10);/i],\n\t\t\t\t\t\t\t\t\t[v, [p, x]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Symbian']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, N + ' OS']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/web0s;.+rt(tv)/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, 'webOS']],\n\t\t\t\t\t\t\t\t\t[/watch(?: ?os[,\\/]|\\d,\\d\\/)([\\d\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'watchOS']],\n\t\t\t\t\t\t\t\t\t[/crkey\\/([\\d\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, j + 'cast']],\n\t\t\t\t\t\t\t\t\t[/(cros) [\\w]+(?:\\)| ([\\w\\.]+)\\b)/i],\n\t\t\t\t\t\t\t\t\t[[p, z], v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/panasonic;(viera)/i,\n\t\t\t\t\t\t\t\t\t\t/(netrange)mmh/i,\n\t\t\t\t\t\t\t\t\t\t/(nettv)\\/(\\d+\\.[\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(nintendo|playstation) ([wids345portablevuch]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(xbox); +xbox ([^\\);]+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(mint)[\\/\\(\\) ]?(\\w*)/i,\n\t\t\t\t\t\t\t\t\t\t/(mageia|vectorlinux)[; ]/i,\n\t\t\t\t\t\t\t\t\t\t/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\/ ]?(?!chrom|package)([-\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(hurd|linux) ?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(gnu) ?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(haiku) (\\w+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/(sunos) ?([\\w\\.\\d]*)/i],\n\t\t\t\t\t\t\t\t\t[[p, 'Solaris'], v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,\n\t\t\t\t\t\t\t\t\t\t/(unix) ?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tZ = function (e, t) {\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t(typeof e === c && ((t = e), (e = a)),\n\t\t\t\t\t\t\t\t\t!(this instanceof Z))\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\treturn new Z(e, t).getResult()\n\t\t\t\t\t\t\t\tvar n = typeof i !== s && i.navigator ? i.navigator : a,\n\t\t\t\t\t\t\t\t\tr = e || (n && n.userAgent ? n.userAgent : ''),\n\t\t\t\t\t\t\t\t\tb = n && n.userAgentData ? n.userAgentData : a,\n\t\t\t\t\t\t\t\t\ty = t\n\t\t\t\t\t\t\t\t\t\t? (function (e, t) {\n\t\t\t\t\t\t\t\t\t\t\t\tvar n = {}\n\t\t\t\t\t\t\t\t\t\t\t\tfor (var r in e)\n\t\t\t\t\t\t\t\t\t\t\t\t\tt[r] && t[r].length % 2 == 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? (n[r] = t[r].concat(e[r]))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: (n[r] = e[r])\n\t\t\t\t\t\t\t\t\t\t\t\treturn n\n\t\t\t\t\t\t\t\t\t\t\t})(G, t)\n\t\t\t\t\t\t\t\t\t\t: G,\n\t\t\t\t\t\t\t\t\tT = n && n.userAgent == r\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t(this.getBrowser = function () {\n\t\t\t\t\t\t\t\t\t\tvar e,\n\t\t\t\t\t\t\t\t\t\t\tt = {}\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t(t[p] = a),\n\t\t\t\t\t\t\t\t\t\t\t(t[v] = a),\n\t\t\t\t\t\t\t\t\t\t\tV.call(t, r, y.browser),\n\t\t\t\t\t\t\t\t\t\t\t(t[l] =\n\t\t\t\t\t\t\t\t\t\t\t\ttypeof (e = t[v]) === u\n\t\t\t\t\t\t\t\t\t\t\t\t\t? e.replace(/[^\\d\\.]/g, '').split('.')[0]\n\t\t\t\t\t\t\t\t\t\t\t\t\t: a),\n\t\t\t\t\t\t\t\t\t\t\tT &&\n\t\t\t\t\t\t\t\t\t\t\t\tn &&\n\t\t\t\t\t\t\t\t\t\t\t\tn.brave &&\n\t\t\t\t\t\t\t\t\t\t\t\ttypeof n.brave.isBrave == o &&\n\t\t\t\t\t\t\t\t\t\t\t\t(t[p] = 'Brave'),\n\t\t\t\t\t\t\t\t\t\t\tt\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getCPU = function () {\n\t\t\t\t\t\t\t\t\t\tvar e = {}\n\t\t\t\t\t\t\t\t\t\treturn (e[g] = a), V.call(e, r, y.cpu), e\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getDevice = function () {\n\t\t\t\t\t\t\t\t\t\tvar e = {}\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t(e[f] = a),\n\t\t\t\t\t\t\t\t\t\t\t(e[d] = a),\n\t\t\t\t\t\t\t\t\t\t\t(e[m] = a),\n\t\t\t\t\t\t\t\t\t\t\tV.call(e, r, y.device),\n\t\t\t\t\t\t\t\t\t\t\tT && !e[m] && b && b.mobile && (e[m] = h),\n\t\t\t\t\t\t\t\t\t\t\tT &&\n\t\t\t\t\t\t\t\t\t\t\t\t'Macintosh' == e[d] &&\n\t\t\t\t\t\t\t\t\t\t\t\tn &&\n\t\t\t\t\t\t\t\t\t\t\t\ttypeof n.standalone !== s &&\n\t\t\t\t\t\t\t\t\t\t\t\tn.maxTouchPoints &&\n\t\t\t\t\t\t\t\t\t\t\t\tn.maxTouchPoints > 2 &&\n\t\t\t\t\t\t\t\t\t\t\t\t((e[d] = 'iPad'), (e[m] = w)),\n\t\t\t\t\t\t\t\t\t\t\te\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getEngine = function () {\n\t\t\t\t\t\t\t\t\t\tvar e = {}\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t(e[p] = a),\n\t\t\t\t\t\t\t\t\t\t\t(e[v] = a),\n\t\t\t\t\t\t\t\t\t\t\tV.call(e, r, y.engine),\n\t\t\t\t\t\t\t\t\t\t\te\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getOS = function () {\n\t\t\t\t\t\t\t\t\t\tvar e = {}\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t(e[p] = a),\n\t\t\t\t\t\t\t\t\t\t\t(e[v] = a),\n\t\t\t\t\t\t\t\t\t\t\tV.call(e, r, y.os),\n\t\t\t\t\t\t\t\t\t\t\tT &&\n\t\t\t\t\t\t\t\t\t\t\t\t!e[p] &&\n\t\t\t\t\t\t\t\t\t\t\t\tb &&\n\t\t\t\t\t\t\t\t\t\t\t\t'Unknown' != b.platform &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[p] = b.platform\n\t\t\t\t\t\t\t\t\t\t\t\t\t.replace(/chrome os/i, z)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.replace(/macos/i, K)),\n\t\t\t\t\t\t\t\t\t\t\te\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getResult = function () {\n\t\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t\tua: this.getUA(),\n\t\t\t\t\t\t\t\t\t\t\tbrowser: this.getBrowser(),\n\t\t\t\t\t\t\t\t\t\t\tengine: this.getEngine(),\n\t\t\t\t\t\t\t\t\t\t\tos: this.getOS(),\n\t\t\t\t\t\t\t\t\t\t\tdevice: this.getDevice(),\n\t\t\t\t\t\t\t\t\t\t\tcpu: this.getCPU(),\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getUA = function () {\n\t\t\t\t\t\t\t\t\t\treturn r\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.setUA = function (e) {\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t(r =\n\t\t\t\t\t\t\t\t\t\t\t\ttypeof e === u && e.length > 350\n\t\t\t\t\t\t\t\t\t\t\t\t\t? H(e, 350)\n\t\t\t\t\t\t\t\t\t\t\t\t\t: e),\n\t\t\t\t\t\t\t\t\t\t\tthis\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\tthis.setUA(r),\n\t\t\t\t\t\t\t\t\tthis\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t;(Z.VERSION = '1.0.35'),\n\t\t\t\t\t\t\t(Z.BROWSER = $([p, v, l])),\n\t\t\t\t\t\t\t(Z.CPU = $([g])),\n\t\t\t\t\t\t\t(Z.DEVICE = $([d, f, m, b, h, y, w, T, k])),\n\t\t\t\t\t\t\t(Z.ENGINE = Z.OS = $([p, v])),\n\t\t\t\t\t\t\ttypeof t !== s\n\t\t\t\t\t\t\t\t? (e.exports && (t = e.exports = Z), (t.UAParser = Z))\n\t\t\t\t\t\t\t\t: n.amdO\n\t\t\t\t\t\t\t\t\t? (r = function () {\n\t\t\t\t\t\t\t\t\t\t\treturn Z\n\t\t\t\t\t\t\t\t\t\t}.call(t, n, t, e)) === a || (e.exports = r)\n\t\t\t\t\t\t\t\t\t: typeof i !== s && (i.UAParser = Z)\n\t\t\t\t\t\tvar Y = typeof i !== s && (i.jQuery || i.Zepto)\n\t\t\t\t\t\tif (Y && !Y.ua) {\n\t\t\t\t\t\t\tvar ee = new Z()\n\t\t\t\t\t\t\t;(Y.ua = ee.getResult()),\n\t\t\t\t\t\t\t\t(Y.ua.get = function () {\n\t\t\t\t\t\t\t\t\treturn ee.getUA()\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t(Y.ua.set = function (e) {\n\t\t\t\t\t\t\t\t\tee.setUA(e)\n\t\t\t\t\t\t\t\t\tvar t = ee.getResult()\n\t\t\t\t\t\t\t\t\tfor (var n in t) Y.ua[n] = t[n]\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t})('object' == typeof window ? window : this)\n\t\t\t\t},\n\t\t\t},\n\t\t\tt = {}\n\t\tfunction n(r) {\n\t\t\tvar i = t[r]\n\t\t\tif (void 0 !== i) return i.exports\n\t\t\tvar a = (t[r] = { exports: {} })\n\t\t\treturn e[r].call(a.exports, a, a.exports, n), a.exports\n\t\t}\n\t\t;(n.amdO = {}),\n\t\t\t(n.n = (e) => {\n\t\t\t\tvar t = e && e.__esModule ? () => e.default : () => e\n\t\t\t\treturn n.d(t, { a: t }), t\n\t\t\t}),\n\t\t\t(n.d = (e, t) => {\n\t\t\t\tfor (var r in t)\n\t\t\t\t\tn.o(t, r) &&\n\t\t\t\t\t\t!n.o(e, r) &&\n\t\t\t\t\t\tObject.defineProperty(e, r, { enumerable: !0, get: t[r] })\n\t\t\t}),\n\t\t\t(n.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)),\n\t\t\t(n.r = (e) => {\n\t\t\t\t'undefined' != typeof Symbol &&\n\t\t\t\t\tSymbol.toStringTag &&\n\t\t\t\t\tObject.defineProperty(e, Symbol.toStringTag, {\n\t\t\t\t\t\tvalue: 'Module',\n\t\t\t\t\t}),\n\t\t\t\t\tObject.defineProperty(e, '__esModule', { value: !0 })\n\t\t\t})\n\t\tvar r = {}\n\t\treturn (\n\t\t\t(() => {\n\t\t\t\t'use strict'\n\t\t\t\tn.r(r),\n\t\t\t\t\tn.d(r, {\n\t\t\t\t\t\tActionType: () => f,\n\t\t\t\t\t\tAmplitudePlatformName: () => g,\n\t\t\t\t\t\tAnalyticsEventImportance: () => l,\n\t\t\t\t\t\tAnalyticsQueries: () => e,\n\t\t\t\t\t\tAuthStatus: () => b,\n\t\t\t\t\t\tComponentType: () => m,\n\t\t\t\t\t\tIThresholdTier: () => Jt,\n\t\t\t\t\t\tMetricType: () => d,\n\t\t\t\t\t\tPlatformName: () => v,\n\t\t\t\t\t\tSessionActions: () => h,\n\t\t\t\t\t\tSessionAutomatedEvents: () => w,\n\t\t\t\t\t\tSessionRank: () => y,\n\t\t\t\t\t\tSubjectType: () => p,\n\t\t\t\t\t\tUserTypeCommerce: () => c,\n\t\t\t\t\t\tUserTypeInsto: () => i,\n\t\t\t\t\t\tUserTypeRetail: () => t,\n\t\t\t\t\t\tUserTypeRetailBusinessBanking: () => s,\n\t\t\t\t\t\tUserTypeRetailEmployeeInternal: () => a,\n\t\t\t\t\t\tUserTypeRetailEmployeePersonal: () => o,\n\t\t\t\t\t\tUserTypeWallet: () => u,\n\t\t\t\t\t\tautomatedEvents: () => xn,\n\t\t\t\t\t\tautomatedMappingConfig: () => In,\n\t\t\t\t\t\tclearMarkEntry: () => Vn,\n\t\t\t\t\t\tclearPerformanceMarkEntries: () => Xn,\n\t\t\t\t\t\tconfig: () => A,\n\t\t\t\t\t\tcreateEventConfig: () => On,\n\t\t\t\t\t\tcreateNewSpan: () => Ln,\n\t\t\t\t\t\tcreateNewTrace: () => Un,\n\t\t\t\t\t\tdevice: () => W,\n\t\t\t\t\t\tendPerfMark: () => Jn,\n\t\t\t\t\t\texposeExperiment: () => wn,\n\t\t\t\t\t\tflushQueue: () => or,\n\t\t\t\t\t\tgenerateUUID: () => V,\n\t\t\t\t\t\tgetAnalyticsHeaders: () => sr,\n\t\t\t\t\t\tgetReferrerData: () => le,\n\t\t\t\t\t\tgetTracingHeaders: () => An,\n\t\t\t\t\t\tgetTracingId: () => Dn,\n\t\t\t\t\t\tgetUrlHostname: () => pe,\n\t\t\t\t\t\tgetUrlParams: () => me,\n\t\t\t\t\t\tgetUrlPathname: () => fe,\n\t\t\t\t\t\tgetUserContext: () => ar,\n\t\t\t\t\t\tidentify: () => Tn,\n\t\t\t\t\t\tidentifyFlow: () => xe,\n\t\t\t\t\t\tidentity: () => H,\n\t\t\t\t\t\tidentityFlow: () => Se,\n\t\t\t\t\t\tincrementUjNavigation: () => an,\n\t\t\t\t\t\tinit: () => yn,\n\t\t\t\t\t\tinitNextJsTrackPageview: () => _n,\n\t\t\t\t\t\tinitTrackPageview: () => kn,\n\t\t\t\t\t\tisEventKeyFormatValid: () => we,\n\t\t\t\t\t\tisSessionEnded: () => pt,\n\t\t\t\t\t\tlocation: () => re,\n\t\t\t\t\t\tlogEvent: () => $t,\n\t\t\t\t\t\tlogMetric: () => Ht,\n\t\t\t\t\t\tlogPageView: () => on,\n\t\t\t\t\t\tlogTrace: () => Rn,\n\t\t\t\t\t\tmarkNTBT: () => tn,\n\t\t\t\t\t\tmarkStep: () => nn,\n\t\t\t\t\t\tmarkStepOnce: () => rn,\n\t\t\t\t\t\tonVisibilityChange: () => ln,\n\t\t\t\t\t\toptIn: () => En,\n\t\t\t\t\t\toptOut: () => Sn,\n\t\t\t\t\t\tperfMark: () => Wn,\n\t\t\t\t\t\tpersistentData: () => oe,\n\t\t\t\t\t\tpostMessage: () => K,\n\t\t\t\t\t\trecordSessionDuration: () => pn,\n\t\t\t\t\t\tremoveFromIdentifyFlow: () => Ee,\n\t\t\t\t\t\tsavePersistentData: () => st,\n\t\t\t\t\t\tsendScheduledEvents: () => Bt,\n\t\t\t\t\t\tsetBreadcrumbs: () => ie,\n\t\t\t\t\t\tsetConfig: () => U,\n\t\t\t\t\t\tsetLocation: () => ae,\n\t\t\t\t\t\tsetPagePath: () => ve,\n\t\t\t\t\t\tsetPageview: () => Kt,\n\t\t\t\t\t\tsetPersistentData: () => se,\n\t\t\t\t\t\tsetSessionStart: () => dt,\n\t\t\t\t\t\tsetTime: () => Ue,\n\t\t\t\t\t\tstartPerfMark: () => Hn,\n\t\t\t\t\t\ttimeStone: () => Le,\n\t\t\t\t\t\tuseEventLogger: () => Yn,\n\t\t\t\t\t\tuseLogEventOnMount: () => tr,\n\t\t\t\t\t\tusePerformanceMarks: () => rr,\n\t\t\t\t\t})\n\t\t\t\tlet e = (function (e) {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(e.fbclid = 'fbclid'),\n\t\t\t\t\t\t(e.gclid = 'gclid'),\n\t\t\t\t\t\t(e.msclkid = 'msclkid'),\n\t\t\t\t\t\t(e.ptclid = 'ptclid'),\n\t\t\t\t\t\t(e.ttclid = 'ttclid'),\n\t\t\t\t\t\t(e.utm_source = 'utm_source'),\n\t\t\t\t\t\t(e.utm_medium = 'utm_medium'),\n\t\t\t\t\t\t(e.utm_campaign = 'utm_campaign'),\n\t\t\t\t\t\t(e.utm_term = 'utm_term'),\n\t\t\t\t\t\t(e.utm_content = 'utm_content'),\n\t\t\t\t\t\te\n\t\t\t\t\t)\n\t\t\t\t})({})\n\t\t\t\tconst t = 0,\n\t\t\t\t\ti = 1,\n\t\t\t\t\ta = 2,\n\t\t\t\t\to = 3,\n\t\t\t\t\ts = 4,\n\t\t\t\t\tc = 5,\n\t\t\t\t\tu = 6\n\t\t\t\tlet l = (function (e) {\n\t\t\t\t\t\treturn (e.low = 'low'), (e.high = 'high'), e\n\t\t\t\t\t})({}),\n\t\t\t\t\td = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.count = 'count'),\n\t\t\t\t\t\t\t(e.rate = 'rate'),\n\t\t\t\t\t\t\t(e.gauge = 'gauge'),\n\t\t\t\t\t\t\t(e.distribution = 'distribution'),\n\t\t\t\t\t\t\t(e.histogram = 'histogram'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tp = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.commerce_merchant = 'commerce_merchant'),\n\t\t\t\t\t\t\t(e.device = 'device'),\n\t\t\t\t\t\t\t(e.edp_fingerprint_id = 'edp_fingerprint_id'),\n\t\t\t\t\t\t\t(e.nft_user = 'nft_user'),\n\t\t\t\t\t\t\t(e.user = 'user'),\n\t\t\t\t\t\t\t(e.wallet_user = 'wallet_user'),\n\t\t\t\t\t\t\t(e.uuid = 'user_uuid'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tm = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.unknown = 'unknown'),\n\t\t\t\t\t\t\t(e.banner = 'banner'),\n\t\t\t\t\t\t\t(e.button = 'button'),\n\t\t\t\t\t\t\t(e.card = 'card'),\n\t\t\t\t\t\t\t(e.chart = 'chart'),\n\t\t\t\t\t\t\t(e.content_script = 'content_script'),\n\t\t\t\t\t\t\t(e.dropdown = 'dropdown'),\n\t\t\t\t\t\t\t(e.link = 'link'),\n\t\t\t\t\t\t\t(e.page = 'page'),\n\t\t\t\t\t\t\t(e.modal = 'modal'),\n\t\t\t\t\t\t\t(e.table = 'table'),\n\t\t\t\t\t\t\t(e.search_bar = 'search_bar'),\n\t\t\t\t\t\t\t(e.service_worker = 'service_worker'),\n\t\t\t\t\t\t\t(e.text = 'text'),\n\t\t\t\t\t\t\t(e.text_input = 'text_input'),\n\t\t\t\t\t\t\t(e.tray = 'tray'),\n\t\t\t\t\t\t\t(e.checkbox = 'checkbox'),\n\t\t\t\t\t\t\t(e.icon = 'icon'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tf = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.unknown = 'unknown'),\n\t\t\t\t\t\t\t(e.blur = 'blur'),\n\t\t\t\t\t\t\t(e.click = 'click'),\n\t\t\t\t\t\t\t(e.change = 'change'),\n\t\t\t\t\t\t\t(e.dismiss = 'dismiss'),\n\t\t\t\t\t\t\t(e.focus = 'focus'),\n\t\t\t\t\t\t\t(e.hover = 'hover'),\n\t\t\t\t\t\t\t(e.select = 'select'),\n\t\t\t\t\t\t\t(e.measurement = 'measurement'),\n\t\t\t\t\t\t\t(e.move = 'move'),\n\t\t\t\t\t\t\t(e.process = 'process'),\n\t\t\t\t\t\t\t(e.render = 'render'),\n\t\t\t\t\t\t\t(e.scroll = 'scroll'),\n\t\t\t\t\t\t\t(e.view = 'view'),\n\t\t\t\t\t\t\t(e.search = 'search'),\n\t\t\t\t\t\t\t(e.keyPress = 'keyPress'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tv = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.unknown = 'unknown'),\n\t\t\t\t\t\t\t(e.web = 'web'),\n\t\t\t\t\t\t\t(e.android = 'android'),\n\t\t\t\t\t\t\t(e.ios = 'ios'),\n\t\t\t\t\t\t\t(e.mobile_web = 'mobile_web'),\n\t\t\t\t\t\t\t(e.tablet_web = 'tablet_web'),\n\t\t\t\t\t\t\t(e.server = 'server'),\n\t\t\t\t\t\t\t(e.windows = 'windows'),\n\t\t\t\t\t\t\t(e.macos = 'macos'),\n\t\t\t\t\t\t\t(e.extension = 'extension'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tg = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.web = 'Web'),\n\t\t\t\t\t\t\t(e.ios = 'iOS'),\n\t\t\t\t\t\t\t(e.android = 'Android'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tb = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e[(e.notLoggedIn = 0)] = 'notLoggedIn'),\n\t\t\t\t\t\t\t(e[(e.loggedIn = 1)] = 'loggedIn'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\th = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.ac = 'ac'),\n\t\t\t\t\t\t\t(e.af = 'af'),\n\t\t\t\t\t\t\t(e.ah = 'ah'),\n\t\t\t\t\t\t\t(e.al = 'al'),\n\t\t\t\t\t\t\t(e.am = 'am'),\n\t\t\t\t\t\t\t(e.ar = 'ar'),\n\t\t\t\t\t\t\t(e.as = 'as'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tw = (function (e) {\n\t\t\t\t\t\treturn (e.pv = 'pv'), e\n\t\t\t\t\t})({}),\n\t\t\t\t\ty = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.xs = 'xs'),\n\t\t\t\t\t\t\t(e.s = 's'),\n\t\t\t\t\t\t\t(e.m = 'm'),\n\t\t\t\t\t\t\t(e.l = 'l'),\n\t\t\t\t\t\t\t(e.xl = 'xl'),\n\t\t\t\t\t\t\t(e.xxl = 'xxl'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({})\n\t\t\t\tconst T = 'https://analytics-service-dev.cbhq.net',\n\t\t\t\t\tk = 3e5,\n\t\t\t\t\t_ = 5e3,\n\t\t\t\t\tS = 'analytics-db',\n\t\t\t\t\tE = 'experiment-exposure-db',\n\t\t\t\t\tx = 'Analytics SDK:',\n\t\t\t\t\tO = Object.values(e),\n\t\t\t\t\tj = 'pageview',\n\t\t\t\t\tN = 'session_duration',\n\t\t\t\t\tI = {\n\t\t\t\t\t\tnavigationTiming: { eventName: 'perf_navigation_timing' },\n\t\t\t\t\t\tredirectTime: { eventName: 'perf_redirect_time' },\n\t\t\t\t\t\tRT: { eventName: 'perf_redirect_time' },\n\t\t\t\t\t\tTTFB: { eventName: 'perf_time_to_first_byte' },\n\t\t\t\t\t\tnetworkInformation: { eventName: 'perf_network_information' },\n\t\t\t\t\t\tstorageEstimate: { eventName: 'perf_storage_estimate' },\n\t\t\t\t\t\tFCP: { eventName: 'perf_first_contentful_paint' },\n\t\t\t\t\t\tFID: { eventName: 'perf_first_input_delay' },\n\t\t\t\t\t\tLCP: { eventName: 'perf_largest_contentful_paint' },\n\t\t\t\t\t\tCLS: { eventName: 'perf_cumulative_layout_shift' },\n\t\t\t\t\t\tTBT: { eventName: 'perf_total_blocking_time' },\n\t\t\t\t\t\tNTBT: { eventName: 'perf_navigation_total_blocking_time' },\n\t\t\t\t\t\tINP: { eventName: 'perf_interact_to_next_paint' },\n\t\t\t\t\t\tET: { eventName: 'perf_element_timing' },\n\t\t\t\t\t\tuserJourneyStep: { eventName: 'perf_user_journey_step' },\n\t\t\t\t\t},\n\t\t\t\t\tP = '1',\n\t\t\t\t\tM = 'web'\n\t\t\t\tfunction B() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(B = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tB.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst C = /^(https?:\\/\\/)/\n\t\t\t\tfunction D(e) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\teventsEndpoint: e + '/amp',\n\t\t\t\t\t\tmetricsEndPoint: e + '/metrics',\n\t\t\t\t\t\texposureEndpoint: e + '/track-exposures',\n\t\t\t\t\t\ttracesEndpoint: e + '/traces',\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tconst A = B(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tauthCookie: 'logged_in',\n\t\t\t\t\t\t\tamplitudeApiKey: '',\n\t\t\t\t\t\t\tbatchEventsPeriod: _,\n\t\t\t\t\t\t\tbatchEventsThreshold: 30,\n\t\t\t\t\t\t\tbatchMetricsPeriod: _,\n\t\t\t\t\t\t\tbatchMetricsThreshold: 30,\n\t\t\t\t\t\t\tbatchTracesPeriod: _,\n\t\t\t\t\t\t\tbatchTracesThreshold: 30,\n\t\t\t\t\t\t\theaders: {},\n\t\t\t\t\t\t\tinteractionManager: null,\n\t\t\t\t\t\t\tisAlwaysAuthed: !1,\n\t\t\t\t\t\t\tisProd: !1,\n\t\t\t\t\t\t\tisInternalApplication: !1,\n\t\t\t\t\t\t\tonError: (e, t) => {\n\t\t\t\t\t\t\t\tconsole.error(x, e, t)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tplatform: v.unknown,\n\t\t\t\t\t\t\tprojectName: '',\n\t\t\t\t\t\t\tricTimeoutScheduleEvent: 1e3,\n\t\t\t\t\t\t\tricTimeoutSetDevice: 500,\n\t\t\t\t\t\t\tshowDebugLogging: !1,\n\t\t\t\t\t\t\ttrackUserId: !1,\n\t\t\t\t\t\t\tversion: null,\n\t\t\t\t\t\t\tapiEndpoint: T,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tD(T),\n\t\t\t\t\t\t{ steps: {} },\n\t\t\t\t\t),\n\t\t\t\t\tL = [].reduce(\n\t\t\t\t\t\t(e, t) => (n) => e(t(n)),\n\t\t\t\t\t\t(e) => {\n\t\t\t\t\t\t\tif (!e.isProd)\n\t\t\t\t\t\t\t\treturn e.isInternalApplication\n\t\t\t\t\t\t\t\t\t? ((e.apiEndpoint =\n\t\t\t\t\t\t\t\t\t\t\t'https://analytics-service-internal-dev.cbhq.net'),\n\t\t\t\t\t\t\t\t\t\tB({}, e, D(e.apiEndpoint)))\n\t\t\t\t\t\t\t\t\t: e\n\t\t\t\t\t\t\tconst t = ((e) =>\n\t\t\t\t\t\t\t\te.apiEndpoint\n\t\t\t\t\t\t\t\t\t? C.test(e.apiEndpoint)\n\t\t\t\t\t\t\t\t\t\t? e.apiEndpoint\n\t\t\t\t\t\t\t\t\t\t: `https://${e.apiEndpoint}`\n\t\t\t\t\t\t\t\t\t: e.isInternalApplication\n\t\t\t\t\t\t\t\t\t\t? 'https://analytics-service-internal.cbhq.net'\n\t\t\t\t\t\t\t\t\t\t: 'https://as.coinbase.com')(e)\n\t\t\t\t\t\t\treturn B({}, e, { apiEndpoint: t }, D(t))\n\t\t\t\t\t\t},\n\t\t\t\t\t),\n\t\t\t\t\tU = (e) => {\n\t\t\t\t\t\tconst {\n\t\t\t\t\t\t\t\tbatchEventsThreshold: t,\n\t\t\t\t\t\t\t\tbatchMetricsThreshold: n,\n\t\t\t\t\t\t\t\tbatchTracesThreshold: r,\n\t\t\t\t\t\t\t} = e,\n\t\t\t\t\t\t\ti = [t, n, r]\n\t\t\t\t\t\tfor (const e of i)\n\t\t\t\t\t\t\tif ((e || 0) > 30) {\n\t\t\t\t\t\t\t\tconsole.warn(\n\t\t\t\t\t\t\t\t\t'You are setting the threshhold for the batch limit to be greater than 30. This may cause request overload.',\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tObject.assign(A, L(e))\n\t\t\t\t\t},\n\t\t\t\t\tR = [v.web, v.mobile_web, v.tablet_web]\n\t\t\t\tfunction q() {\n\t\t\t\t\treturn 'android' === A.platform\n\t\t\t\t}\n\t\t\t\tfunction F() {\n\t\t\t\t\treturn 'ios' === A.platform\n\t\t\t\t}\n\t\t\t\tfunction z() {\n\t\t\t\t\treturn R.includes(A.platform)\n\t\t\t\t}\n\t\t\t\tfunction K(e) {\n\t\t\t\t\tif (\n\t\t\t\t\t\tz() &&\n\t\t\t\t\t\tnavigator &&\n\t\t\t\t\t\t'serviceWorker' in navigator &&\n\t\t\t\t\t\tnavigator.serviceWorker.controller\n\t\t\t\t\t)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tnavigator.serviceWorker.controller.postMessage(e)\n\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\te instanceof Error && A.onError(e)\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tvar $ = n(353),\n\t\t\t\t\tQ = n.n($)\n\t\t\t\tconst W = {\n\t\t\t\t\t\tamplitudeOSName: null,\n\t\t\t\t\t\tamplitudeOSVersion: null,\n\t\t\t\t\t\tamplitudeDeviceModel: null,\n\t\t\t\t\t\tamplitudePlatform: null,\n\t\t\t\t\t\tbrowserName: null,\n\t\t\t\t\t\tbrowserMajor: null,\n\t\t\t\t\t\tosName: null,\n\t\t\t\t\t\tuserAgent: null,\n\t\t\t\t\t\twidth: null,\n\t\t\t\t\t\theight: null,\n\t\t\t\t\t},\n\t\t\t\t\tH = {\n\t\t\t\t\t\tcountryCode: null,\n\t\t\t\t\t\tdeviceId: null,\n\t\t\t\t\t\tdevice_os: null,\n\t\t\t\t\t\tisOptOut: !1,\n\t\t\t\t\t\tlanguageCode: null,\n\t\t\t\t\t\tlocale: null,\n\t\t\t\t\t\tjwt: null,\n\t\t\t\t\t\tsession_lcc_id: null,\n\t\t\t\t\t\tuserAgent: null,\n\t\t\t\t\t\tuserId: null,\n\t\t\t\t\t},\n\t\t\t\t\tV = (e) =>\n\t\t\t\t\t\te\n\t\t\t\t\t\t\t? (e ^ ((16 * Math.random()) >> (e / 4))).toString(16)\n\t\t\t\t\t\t\t: '10000000-1000-4000-8000-100000000000'.replace(\n\t\t\t\t\t\t\t\t\t/[018]/g,\n\t\t\t\t\t\t\t\t\tV,\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\tJ = () => A.isAlwaysAuthed || !!H.userId,\n\t\t\t\t\tX = () => {\n\t\t\t\t\t\tconst e = {}\n\t\t\t\t\t\treturn H.countryCode && (e.country_code = H.countryCode), e\n\t\t\t\t\t},\n\t\t\t\t\tG = () => {\n\t\t\t\t\t\tconst { platform: e } = A\n\t\t\t\t\t\tif (e === v.web)\n\t\t\t\t\t\t\tswitch (!0) {\n\t\t\t\t\t\t\t\tcase window.matchMedia('(max-width: 560px)').matches:\n\t\t\t\t\t\t\t\t\treturn v.mobile_web\n\t\t\t\t\t\t\t\tcase window.matchMedia(\n\t\t\t\t\t\t\t\t\t'(max-width: 1024px, min-width: 561px)',\n\t\t\t\t\t\t\t\t).matches:\n\t\t\t\t\t\t\t\t\treturn v.tablet_web\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\treturn e\n\t\t\t\t\t},\n\t\t\t\t\tZ = () => {\n\t\t\t\t\t\tvar e, t, n, r, i\n\t\t\t\t\t\tz()\n\t\t\t\t\t\t\t? ('requestIdleCallback' in window\n\t\t\t\t\t\t\t\t\t? window.requestIdleCallback(ne, {\n\t\t\t\t\t\t\t\t\t\t\ttimeout: A.ricTimeoutSetDevice,\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t: ne(),\n\t\t\t\t\t\t\t\t(W.amplitudePlatform = g.web),\n\t\t\t\t\t\t\t\t(W.userAgent =\n\t\t\t\t\t\t\t\t\t(null == (e = window) || null == (e = e.navigator)\n\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t: e.userAgent) || null),\n\t\t\t\t\t\t\t\tee({\n\t\t\t\t\t\t\t\t\theight:\n\t\t\t\t\t\t\t\t\t\tnull !=\n\t\t\t\t\t\t\t\t\t\t(t =\n\t\t\t\t\t\t\t\t\t\t\tnull == (n = window) ? void 0 : n.innerHeight)\n\t\t\t\t\t\t\t\t\t\t\t? t\n\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\twidth:\n\t\t\t\t\t\t\t\t\t\tnull !=\n\t\t\t\t\t\t\t\t\t\t(r = null == (i = window) ? void 0 : i.innerWidth)\n\t\t\t\t\t\t\t\t\t\t\t? r\n\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t: F()\n\t\t\t\t\t\t\t\t? ((W.amplitudePlatform = g.ios),\n\t\t\t\t\t\t\t\t\t(W.userAgent = H.userAgent),\n\t\t\t\t\t\t\t\t\tW.userAgent && ne())\n\t\t\t\t\t\t\t\t: q() &&\n\t\t\t\t\t\t\t\t\t((W.userAgent = H.userAgent),\n\t\t\t\t\t\t\t\t\t(W.amplitudePlatform = g.android),\n\t\t\t\t\t\t\t\t\tW.userAgent && ne())\n\t\t\t\t\t},\n\t\t\t\t\tY = (e) => {\n\t\t\t\t\t\tObject.assign(H, e),\n\t\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\t\tK({\n\t\t\t\t\t\t\t\t\tidentity: {\n\t\t\t\t\t\t\t\t\t\tisAuthed: !!H.userId,\n\t\t\t\t\t\t\t\t\t\tlocale: H.locale || null,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t},\n\t\t\t\t\tee = (e) => {\n\t\t\t\t\t\t;(W.height = e.height), (W.width = e.width)\n\t\t\t\t\t},\n\t\t\t\t\tte = () => {\n\t\t\t\t\t\tU({ platform: G() }),\n\t\t\t\t\t\t\tz() && K({ config: { platform: A.platform } })\n\t\t\t\t\t},\n\t\t\t\t\tne = () => {\n\t\t\t\t\t\tvar e\n\t\t\t\t\t\tperformance.mark && performance.mark('ua_parser_start')\n\t\t\t\t\t\tconst t = new (Q())(\n\t\t\t\t\t\t\tnull != (e = W.userAgent) ? e : '',\n\t\t\t\t\t\t).getResult()\n\t\t\t\t\t\t;(W.browserName = t.browser.name || null),\n\t\t\t\t\t\t\t(W.browserMajor = t.browser.major || null),\n\t\t\t\t\t\t\t(W.osName = t.os.name || null),\n\t\t\t\t\t\t\t(W.amplitudeOSName = W.browserName),\n\t\t\t\t\t\t\t(W.amplitudeOSVersion = W.browserMajor),\n\t\t\t\t\t\t\t(W.amplitudeDeviceModel = W.osName),\n\t\t\t\t\t\t\tK({\n\t\t\t\t\t\t\t\tdevice: {\n\t\t\t\t\t\t\t\t\tbrowserName: W.browserName,\n\t\t\t\t\t\t\t\t\tosName: W.osName,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tperformance.mark &&\n\t\t\t\t\t\t\t\t(performance.mark('ua_parser_end'),\n\t\t\t\t\t\t\t\tperformance.measure(\n\t\t\t\t\t\t\t\t\t'ua_parser',\n\t\t\t\t\t\t\t\t\t'ua_parser_start',\n\t\t\t\t\t\t\t\t\t'ua_parser_end',\n\t\t\t\t\t\t\t\t))\n\t\t\t\t\t},\n\t\t\t\t\tre = {\n\t\t\t\t\t\tbreadcrumbs: [],\n\t\t\t\t\t\tinitialUAAData: {},\n\t\t\t\t\t\tpageKey: '',\n\t\t\t\t\t\tpageKeyRegex: {},\n\t\t\t\t\t\tpagePath: '',\n\t\t\t\t\t\tprevPageKey: '',\n\t\t\t\t\t\tprevPagePath: '',\n\t\t\t\t\t}\n\t\t\t\tfunction ie(e) {\n\t\t\t\t\tObject.assign(re, { breadcrumbs: e })\n\t\t\t\t}\n\t\t\t\tfunction ae(e) {\n\t\t\t\t\tObject.assign(re, e)\n\t\t\t\t}\n\t\t\t\tconst oe = {\n\t\t\t\t\teventId: 0,\n\t\t\t\t\tsequenceNumber: 0,\n\t\t\t\t\tsessionId: 0,\n\t\t\t\t\tlastEventTime: 0,\n\t\t\t\t\tsessionStart: 0,\n\t\t\t\t\tsessionUUID: null,\n\t\t\t\t\tuserId: null,\n\t\t\t\t\tac: 0,\n\t\t\t\t\taf: 0,\n\t\t\t\t\tah: 0,\n\t\t\t\t\tal: 0,\n\t\t\t\t\tam: 0,\n\t\t\t\t\tar: 0,\n\t\t\t\t\tas: 0,\n\t\t\t\t\tpv: 0,\n\t\t\t\t}\n\t\t\t\tfunction se(e) {\n\t\t\t\t\tObject.assign(oe, e)\n\t\t\t\t}\n\t\t\t\tfunction ce() {\n\t\t\t\t\tvar e, t\n\t\t\t\t\treturn null != (e = null == (t = document) ? void 0 : t.referrer)\n\t\t\t\t\t\t? e\n\t\t\t\t\t\t: ''\n\t\t\t\t}\n\t\t\t\tfunction ue() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(ue = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tue.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst le = () => {\n\t\t\t\t\t\tconst e = ce()\n\t\t\t\t\t\tif (!e) return {}\n\t\t\t\t\t\tconst t = new URL(e)\n\t\t\t\t\t\treturn t.hostname === pe()\n\t\t\t\t\t\t\t? {}\n\t\t\t\t\t\t\t: { referrer: e, referring_domain: t.hostname }\n\t\t\t\t\t},\n\t\t\t\t\tde = () => {\n\t\t\t\t\t\tconst e = new URLSearchParams(me()),\n\t\t\t\t\t\t\tt = {}\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\tO.forEach((n) => {\n\t\t\t\t\t\t\t\te.has(n) && (t[n] = (e.get(n) || '').toLowerCase())\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tt\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tpe = () => {\n\t\t\t\t\t\tvar e\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(null == (e = window) || null == (e = e.location)\n\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t: e.hostname) || ''\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tme = () => {\n\t\t\t\t\t\tvar e\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(null == (e = window) || null == (e = e.location)\n\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t: e.search) || ''\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tfe = () => {\n\t\t\t\t\t\tvar e\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(null == (e = window) || null == (e = e.location)\n\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t: e.pathname) || ''\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tve = () => {\n\t\t\t\t\t\tconst e = A.overrideWindowLocation ? re.pagePath : fe() + me()\n\t\t\t\t\t\te &&\n\t\t\t\t\t\t\te !== re.pagePath &&\n\t\t\t\t\t\t\t(e !== re.pagePath && ge(),\n\t\t\t\t\t\t\t(re.pagePath = e),\n\t\t\t\t\t\t\tre.pageKeyRegex &&\n\t\t\t\t\t\t\t\tObject.keys(re.pageKeyRegex).some((e) => {\n\t\t\t\t\t\t\t\t\tif (re.pageKeyRegex[e].test(re.pagePath))\n\t\t\t\t\t\t\t\t\t\treturn (re.pageKey = e), !0\n\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t},\n\t\t\t\t\tge = () => {\n\t\t\t\t\t\tif (z()) {\n\t\t\t\t\t\t\tconst e = ce()\n\t\t\t\t\t\t\tif (!re.prevPagePath && e) {\n\t\t\t\t\t\t\t\tconst t = new URL(e)\n\t\t\t\t\t\t\t\tif (t.hostname === pe())\n\t\t\t\t\t\t\t\t\treturn void (re.prevPagePath = t.pathname)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t;(re.prevPagePath = re.pagePath),\n\t\t\t\t\t\t\t(re.prevPageKey = re.pageKey)\n\t\t\t\t\t},\n\t\t\t\t\tbe = (e) => {\n\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\tObject.assign(\n\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\tz()\n\t\t\t\t\t\t\t\t\t? (Object.keys(re.initialUAAData).length > 0 ||\n\t\t\t\t\t\t\t\t\t\t\t(new URLSearchParams(me()),\n\t\t\t\t\t\t\t\t\t\t\t(re.initialUAAData = ue(\n\t\t\t\t\t\t\t\t\t\t\t\t{},\n\t\t\t\t\t\t\t\t\t\t\t\t(() => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tconst e = {}\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tO.forEach((t) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\toe[t] && (e[t] = oe[t])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t})(),\n\t\t\t\t\t\t\t\t\t\t\t\tde(),\n\t\t\t\t\t\t\t\t\t\t\t\tle(),\n\t\t\t\t\t\t\t\t\t\t\t))),\n\t\t\t\t\t\t\t\t\t\tre.initialUAAData)\n\t\t\t\t\t\t\t\t\t: re.initialUAAData,\n\t\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\the = /^[a-zd]+(_[a-zd]+)*$/\n\t\t\t\tfunction we(e) {\n\t\t\t\t\treturn he.test(e)\n\t\t\t\t}\n\t\t\t\tfunction ye() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(ye = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tye.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst Te = [\n\t\t\t\t\t\t'action',\n\t\t\t\t\t\t'component_type',\n\t\t\t\t\t\t'component_name',\n\t\t\t\t\t\t'context',\n\t\t\t\t\t\t'logging_id',\n\t\t\t\t\t],\n\t\t\t\t\tke = ['num_non_hardware_accounts', 'ujs'],\n\t\t\t\t\t_e = 'ujs_',\n\t\t\t\t\tSe = {}\n\t\t\t\tfunction Ee(e) {\n\t\t\t\t\te.forEach((e) => {\n\t\t\t\t\t\tke.includes(e) && delete Se[e]\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tfunction xe(e) {\n\t\t\t\t\tvar t\n\t\t\t\t\tconst n = Object.entries(e).reduce((e, t) => {\n\t\t\t\t\t\tconst [n, r] = t\n\t\t\t\t\t\treturn !Te.includes(n) && ke.includes(n)\n\t\t\t\t\t\t\t? we(n)\n\t\t\t\t\t\t\t\t? ye({}, e, { [n]: r })\n\t\t\t\t\t\t\t\t: (A.onError(\n\t\t\t\t\t\t\t\t\t\tnew Error(\n\t\t\t\t\t\t\t\t\t\t\t'IdentityFlow property names must have snake case format',\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t{ [n]: r },\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\te)\n\t\t\t\t\t\t\t: e\n\t\t\t\t\t}, {})\n\t\t\t\t\tnull != (t = n.ujs) &&\n\t\t\t\t\t\tt.length &&\n\t\t\t\t\t\t(n.ujs = n.ujs.map((e) => `${_e}${e}`)),\n\t\t\t\t\t\tObject.assign(Se, n)\n\t\t\t\t}\n\t\t\t\tfunction Oe() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\tA.platform !== v.unknown ||\n\t\t\t\t\t\t(A.onError(new Error('SDK platform not initialized')), !1)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst je = {\n\t\t\t\t\teventsQueue: [],\n\t\t\t\t\teventsScheduled: !1,\n\t\t\t\t\tmetricsQueue: [],\n\t\t\t\t\tmetricsScheduled: !1,\n\t\t\t\t\ttracesQueue: [],\n\t\t\t\t\ttracesScheduled: !1,\n\t\t\t\t}\n\t\t\t\tfunction Ne(e) {\n\t\t\t\t\tObject.assign(je, e)\n\t\t\t\t}\n\t\t\t\tconst Ie = {\n\t\t\t\t\t\tac: 0,\n\t\t\t\t\t\taf: 0,\n\t\t\t\t\t\tah: 0,\n\t\t\t\t\t\tal: 0,\n\t\t\t\t\t\tam: 0,\n\t\t\t\t\t\tar: 0,\n\t\t\t\t\t\tas: 0,\n\t\t\t\t\t\tpv: 0,\n\t\t\t\t\t\tsqs: 0,\n\t\t\t\t\t},\n\t\t\t\t\tPe = { ac: 20, af: 5, ah: 1, al: 1, am: 0, ar: 10, as: 20 },\n\t\t\t\t\tMe = { pv: 25 },\n\t\t\t\t\tBe = { xs: 0, s: 1, m: 1, l: 2, xl: 2, xxl: 2 },\n\t\t\t\t\tCe = (e) =>\n\t\t\t\t\t\te < 15\n\t\t\t\t\t\t\t? y.xs\n\t\t\t\t\t\t\t: e < 60\n\t\t\t\t\t\t\t\t? y.s\n\t\t\t\t\t\t\t\t: e < 240\n\t\t\t\t\t\t\t\t\t? y.m\n\t\t\t\t\t\t\t\t\t: e < 960\n\t\t\t\t\t\t\t\t\t\t? y.l\n\t\t\t\t\t\t\t\t\t\t: e < 3840\n\t\t\t\t\t\t\t\t\t\t\t? y.xl\n\t\t\t\t\t\t\t\t\t\t\t: y.xxl,\n\t\t\t\t\tDe = (e) => {\n\t\t\t\t\t\tObject.assign(Ie, e)\n\t\t\t\t\t}\n\t\t\t\tfunction Ae() {\n\t\t\t\t\treturn new Date().getTime()\n\t\t\t\t}\n\t\t\t\tconst Le = {\n\t\t\t\t\ttimeStart: Ae(),\n\t\t\t\t\ttimeOnPagePath: 0,\n\t\t\t\t\ttimeOnPageKey: 0,\n\t\t\t\t\tprevTimeOnPagePath: 0,\n\t\t\t\t\tprevTimeOnPageKey: 0,\n\t\t\t\t\tsessionDuration: 0,\n\t\t\t\t\tsessionEnd: 0,\n\t\t\t\t\tsessionStart: 0,\n\t\t\t\t\tprevSessionDuration: 0,\n\t\t\t\t}\n\t\t\t\tfunction Ue(e) {\n\t\t\t\t\tObject.assign(Le, e)\n\t\t\t\t}\n\t\t\t\tconst Re = (e, t) => t.some((t) => e instanceof t)\n\t\t\t\tlet qe, Fe\n\t\t\t\tconst ze = new WeakMap(),\n\t\t\t\t\tKe = new WeakMap(),\n\t\t\t\t\t$e = new WeakMap(),\n\t\t\t\t\tQe = new WeakMap(),\n\t\t\t\t\tWe = new WeakMap()\n\t\t\t\tlet He = {\n\t\t\t\t\tget(e, t, n) {\n\t\t\t\t\t\tif (e instanceof IDBTransaction) {\n\t\t\t\t\t\t\tif ('done' === t) return Ke.get(e)\n\t\t\t\t\t\t\tif ('objectStoreNames' === t)\n\t\t\t\t\t\t\t\treturn e.objectStoreNames || $e.get(e)\n\t\t\t\t\t\t\tif ('store' === t)\n\t\t\t\t\t\t\t\treturn n.objectStoreNames[1]\n\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t: n.objectStore(n.objectStoreNames[0])\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn Je(e[t])\n\t\t\t\t\t},\n\t\t\t\t\tset: (e, t, n) => ((e[t] = n), !0),\n\t\t\t\t\thas: (e, t) =>\n\t\t\t\t\t\t(e instanceof IDBTransaction &&\n\t\t\t\t\t\t\t('done' === t || 'store' === t)) ||\n\t\t\t\t\t\tt in e,\n\t\t\t\t}\n\t\t\t\tfunction Ve(e) {\n\t\t\t\t\treturn 'function' == typeof e\n\t\t\t\t\t\t? (t = e) !== IDBDatabase.prototype.transaction ||\n\t\t\t\t\t\t\t'objectStoreNames' in IDBTransaction.prototype\n\t\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\t\tFe ||\n\t\t\t\t\t\t\t\t\t(Fe = [\n\t\t\t\t\t\t\t\t\t\tIDBCursor.prototype.advance,\n\t\t\t\t\t\t\t\t\t\tIDBCursor.prototype.continue,\n\t\t\t\t\t\t\t\t\t\tIDBCursor.prototype.continuePrimaryKey,\n\t\t\t\t\t\t\t\t\t])\n\t\t\t\t\t\t\t\t).includes(t)\n\t\t\t\t\t\t\t\t? function (...e) {\n\t\t\t\t\t\t\t\t\t\treturn t.apply(Xe(this), e), Je(ze.get(this))\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t: function (...e) {\n\t\t\t\t\t\t\t\t\t\treturn Je(t.apply(Xe(this), e))\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t: function (e, ...n) {\n\t\t\t\t\t\t\t\t\tconst r = t.call(Xe(this), e, ...n)\n\t\t\t\t\t\t\t\t\treturn $e.set(r, e.sort ? e.sort() : [e]), Je(r)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: (e instanceof IDBTransaction &&\n\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\tif (Ke.has(e)) return\n\t\t\t\t\t\t\t\t\tconst t = new Promise((t, n) => {\n\t\t\t\t\t\t\t\t\t\tconst r = () => {\n\t\t\t\t\t\t\t\t\t\t\t\te.removeEventListener('complete', i),\n\t\t\t\t\t\t\t\t\t\t\t\t\te.removeEventListener('error', a),\n\t\t\t\t\t\t\t\t\t\t\t\t\te.removeEventListener('abort', a)\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\ti = () => {\n\t\t\t\t\t\t\t\t\t\t\t\tt(), r()\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\ta = () => {\n\t\t\t\t\t\t\t\t\t\t\t\tn(\n\t\t\t\t\t\t\t\t\t\t\t\t\te.error ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew DOMException(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'AbortError',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'AbortError',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\tr()\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\te.addEventListener('complete', i),\n\t\t\t\t\t\t\t\t\t\t\te.addEventListener('error', a),\n\t\t\t\t\t\t\t\t\t\t\te.addEventListener('abort', a)\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\tKe.set(e, t)\n\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\tRe(\n\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\tqe ||\n\t\t\t\t\t\t\t\t\t(qe = [\n\t\t\t\t\t\t\t\t\t\tIDBDatabase,\n\t\t\t\t\t\t\t\t\t\tIDBObjectStore,\n\t\t\t\t\t\t\t\t\t\tIDBIndex,\n\t\t\t\t\t\t\t\t\t\tIDBCursor,\n\t\t\t\t\t\t\t\t\t\tIDBTransaction,\n\t\t\t\t\t\t\t\t\t]),\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t? new Proxy(e, He)\n\t\t\t\t\t\t\t\t: e)\n\t\t\t\t\tvar t\n\t\t\t\t}\n\t\t\t\tfunction Je(e) {\n\t\t\t\t\tif (e instanceof IDBRequest)\n\t\t\t\t\t\treturn (function (e) {\n\t\t\t\t\t\t\tconst t = new Promise((t, n) => {\n\t\t\t\t\t\t\t\tconst r = () => {\n\t\t\t\t\t\t\t\t\t\te.removeEventListener('success', i),\n\t\t\t\t\t\t\t\t\t\t\te.removeEventListener('error', a)\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ti = () => {\n\t\t\t\t\t\t\t\t\t\tt(Je(e.result)), r()\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ta = () => {\n\t\t\t\t\t\t\t\t\t\tn(e.error), r()\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\te.addEventListener('success', i),\n\t\t\t\t\t\t\t\t\te.addEventListener('error', a)\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\tt\n\t\t\t\t\t\t\t\t\t.then((t) => {\n\t\t\t\t\t\t\t\t\t\tt instanceof IDBCursor && ze.set(t, e)\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t.catch(() => {}),\n\t\t\t\t\t\t\t\tWe.set(t, e),\n\t\t\t\t\t\t\t\tt\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t})(e)\n\t\t\t\t\tif (Qe.has(e)) return Qe.get(e)\n\t\t\t\t\tconst t = Ve(e)\n\t\t\t\t\treturn t !== e && (Qe.set(e, t), We.set(t, e)), t\n\t\t\t\t}\n\t\t\t\tconst Xe = (e) => We.get(e),\n\t\t\t\t\tGe = ['get', 'getKey', 'getAll', 'getAllKeys', 'count'],\n\t\t\t\t\tZe = ['put', 'add', 'delete', 'clear'],\n\t\t\t\t\tYe = new Map()\n\t\t\t\tfunction et(e, t) {\n\t\t\t\t\tif (\n\t\t\t\t\t\t!(e instanceof IDBDatabase) ||\n\t\t\t\t\t\tt in e ||\n\t\t\t\t\t\t'string' != typeof t\n\t\t\t\t\t)\n\t\t\t\t\t\treturn\n\t\t\t\t\tif (Ye.get(t)) return Ye.get(t)\n\t\t\t\t\tconst n = t.replace(/FromIndex$/, ''),\n\t\t\t\t\t\tr = t !== n,\n\t\t\t\t\t\ti = Ze.includes(n)\n\t\t\t\t\tif (\n\t\t\t\t\t\t!(n in (r ? IDBIndex : IDBObjectStore).prototype) ||\n\t\t\t\t\t\t(!i && !Ge.includes(n))\n\t\t\t\t\t)\n\t\t\t\t\t\treturn\n\t\t\t\t\tconst a = async function (e, ...t) {\n\t\t\t\t\t\tconst a = this.transaction(e, i ? 'readwrite' : 'readonly')\n\t\t\t\t\t\tlet o = a.store\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\tr && (o = o.index(t.shift())),\n\t\t\t\t\t\t\t(await Promise.all([o[n](...t), i && a.done]))[0]\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t\treturn Ye.set(t, a), a\n\t\t\t\t}\n\t\t\t\tvar tt\n\t\t\t\t;(tt = He),\n\t\t\t\t\t(He = {\n\t\t\t\t\t\t...tt,\n\t\t\t\t\t\tget: (e, t, n) => et(e, t) || tt.get(e, t, n),\n\t\t\t\t\t\thas: (e, t) => !!et(e, t) || tt.has(e, t),\n\t\t\t\t\t})\n\t\t\t\tconst nt = { isReady: !1, idbKeyval: null }\n\t\t\t\tfunction rt(e) {\n\t\t\t\t\tObject.assign(nt, e)\n\t\t\t\t}\n\t\t\t\tconst it = {},\n\t\t\t\t\tat = async (e) => {\n\t\t\t\t\t\tif (!nt.idbKeyval) return Promise.resolve(null)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\treturn await nt.idbKeyval.get(e)\n\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\tA.onError(new Error('IndexedDB:Get:InternalError')),\n\t\t\t\t\t\t\t\tPromise.resolve(null)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tot = async (e, t) => {\n\t\t\t\t\t\tif (nt.idbKeyval)\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tawait nt.idbKeyval.set(e, t)\n\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\tA.onError(new Error('IndexedDB:Set:InternalError'))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tst = () => {\n\t\t\t\t\t\t'server' !== A.platform &&\n\t\t\t\t\t\t\t(se({\n\t\t\t\t\t\t\t\tsessionStart: Le.sessionStart,\n\t\t\t\t\t\t\t\tac: Ie.ac,\n\t\t\t\t\t\t\t\taf: Ie.af,\n\t\t\t\t\t\t\t\tah: Ie.ah,\n\t\t\t\t\t\t\t\tal: Ie.al,\n\t\t\t\t\t\t\t\tam: Ie.am,\n\t\t\t\t\t\t\t\tar: Ie.ar,\n\t\t\t\t\t\t\t\tas: Ie.as,\n\t\t\t\t\t\t\t\tpv: Ie.pv,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tH.userId && se({ userId: H.userId }),\n\t\t\t\t\t\t\tot(S, oe))\n\t\t\t\t\t},\n\t\t\t\t\tct = 'rgb(5,177,105)',\n\t\t\t\t\tut = (e) => {\n\t\t\t\t\t\tconst { metricName: t, data: n } = e,\n\t\t\t\t\t\t\tr = e.importance || l.low\n\t\t\t\t\t\tif (!A.showDebugLogging || !console) return\n\t\t\t\t\t\tconst i = `%c ${x}`,\n\t\t\t\t\t\t\ta = `color:${ct};font-size:11px;`,\n\t\t\t\t\t\t\to = `Importance: ${r}`\n\t\t\t\t\t\tconsole.group(i, a, t, o),\n\t\t\t\t\t\t\tn.forEach((e) => {\n\t\t\t\t\t\t\t\te.event_type\n\t\t\t\t\t\t\t\t\t? console.log(e.event_type, e)\n\t\t\t\t\t\t\t\t\t: console.log(e)\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tconsole.groupEnd()\n\t\t\t\t\t},\n\t\t\t\t\tlt = (e) => {\n\t\t\t\t\t\tconst { metricName: t, data: n } = e,\n\t\t\t\t\t\t\tr = e.importance || l.low\n\t\t\t\t\t\tif (!A.showDebugLogging || !console) return\n\t\t\t\t\t\tconst i = `color:${ct};font-size:11px;`,\n\t\t\t\t\t\t\ta = `%c ${x}`,\n\t\t\t\t\t\t\to = `Importance: ${r}`\n\t\t\t\t\t\tconsole.log(a, i, t, n, o)\n\t\t\t\t\t},\n\t\t\t\t\tdt = () => {\n\t\t\t\t\t\tconst e = Ae()\n\t\t\t\t\t\t;(oe.sessionId &&\n\t\t\t\t\t\t\toe.lastEventTime &&\n\t\t\t\t\t\t\toe.sessionUUID &&\n\t\t\t\t\t\t\t!pt(e)) ||\n\t\t\t\t\t\t\t((oe.sessionId = e),\n\t\t\t\t\t\t\t(oe.sessionUUID = V()),\n\t\t\t\t\t\t\tUe({ sessionStart: e }),\n\t\t\t\t\t\t\tlt({\n\t\t\t\t\t\t\t\tmetricName: 'Started new session:',\n\t\t\t\t\t\t\t\tdata: { persistentData: oe, timeStone: Le },\n\t\t\t\t\t\t\t})),\n\t\t\t\t\t\t\t(oe.lastEventTime = e)\n\t\t\t\t\t},\n\t\t\t\t\tpt = (e) => e - oe.lastEventTime > 18e5\n\t\t\t\tfunction mt() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(mt = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tmt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst ft = (e) => {\n\t\t\t\t\t\tvar t\n\t\t\t\t\t\t;((e) => {\n\t\t\t\t\t\t\tswitch (e.action) {\n\t\t\t\t\t\t\t\tcase f.click:\n\t\t\t\t\t\t\t\t\tIe.ac += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.focus:\n\t\t\t\t\t\t\t\t\tIe.af += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.hover:\n\t\t\t\t\t\t\t\t\tIe.ah += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.move:\n\t\t\t\t\t\t\t\t\tIe.am += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.scroll:\n\t\t\t\t\t\t\t\t\tIe.al += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.search:\n\t\t\t\t\t\t\t\t\tIe.ar += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.select:\n\t\t\t\t\t\t\t\t\tIe.as += 1\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})((t = e)),\n\t\t\t\t\t\t\tt.event_type !== j\n\t\t\t\t\t\t\t\t? t.event_type === N &&\n\t\t\t\t\t\t\t\t\t(((e) => {\n\t\t\t\t\t\t\t\t\t\tif (!e.session_rank) return\n\t\t\t\t\t\t\t\t\t\tconst t = e.session_rank\n\t\t\t\t\t\t\t\t\t\tObject.values(h).forEach((e) => {\n\t\t\t\t\t\t\t\t\t\t\tIe.sqs += Ie[e] * Pe[e]\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tObject.values(w).forEach((e) => {\n\t\t\t\t\t\t\t\t\t\t\t\tIe.sqs += Ie[e] * Me[e]\n\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t(Ie.sqs *= Be[t])\n\t\t\t\t\t\t\t\t\t})(t),\n\t\t\t\t\t\t\t\t\tObject.assign(t, Ie),\n\t\t\t\t\t\t\t\t\tDe({\n\t\t\t\t\t\t\t\t\t\tac: 0,\n\t\t\t\t\t\t\t\t\t\taf: 0,\n\t\t\t\t\t\t\t\t\t\tah: 0,\n\t\t\t\t\t\t\t\t\t\tal: 0,\n\t\t\t\t\t\t\t\t\t\tam: 0,\n\t\t\t\t\t\t\t\t\t\tar: 0,\n\t\t\t\t\t\t\t\t\t\tas: 0,\n\t\t\t\t\t\t\t\t\t\tpv: 0,\n\t\t\t\t\t\t\t\t\t\tsqs: 0,\n\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t: (Ie.pv += 1)\n\t\t\t\t\t\tconst n = e.event_type\n\t\t\t\t\t\tdelete e.event_type\n\t\t\t\t\t\tconst r = e.deviceId ? e.deviceId : null,\n\t\t\t\t\t\t\ti = e.timestamp\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\tdelete e.timestamp,\n\t\t\t\t\t\t\tse({ eventId: oe.eventId + 1 }),\n\t\t\t\t\t\t\tse({ sequenceNumber: oe.sequenceNumber + 1 }),\n\t\t\t\t\t\t\tdt(),\n\t\t\t\t\t\t\tst(),\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdevice_id: H.deviceId || r || null,\n\t\t\t\t\t\t\t\tuser_id: H.userId,\n\t\t\t\t\t\t\t\ttimestamp: i,\n\t\t\t\t\t\t\t\tevent_id: oe.eventId,\n\t\t\t\t\t\t\t\tsession_id: oe.sessionId || -1,\n\t\t\t\t\t\t\t\tevent_type: n,\n\t\t\t\t\t\t\t\tversion_name: A.version || null,\n\t\t\t\t\t\t\t\tplatform: W.amplitudePlatform,\n\t\t\t\t\t\t\t\tos_name: W.amplitudeOSName,\n\t\t\t\t\t\t\t\tos_version: W.amplitudeOSVersion,\n\t\t\t\t\t\t\t\tdevice_model: W.amplitudeDeviceModel,\n\t\t\t\t\t\t\t\tlanguage: H.languageCode,\n\t\t\t\t\t\t\t\tevent_properties: mt({}, e, {\n\t\t\t\t\t\t\t\t\tsession_uuid: oe.sessionUUID,\n\t\t\t\t\t\t\t\t\theight: W.height,\n\t\t\t\t\t\t\t\t\twidth: W.width,\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\tuser_properties: X(),\n\t\t\t\t\t\t\t\tuuid: V(),\n\t\t\t\t\t\t\t\tlibrary: {\n\t\t\t\t\t\t\t\t\tname: '@cbhq/client-analytics',\n\t\t\t\t\t\t\t\t\tversion: '10.6.0',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tsequence_number: oe.sequenceNumber,\n\t\t\t\t\t\t\t\tuser_agent: W.userAgent || H.userAgent,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tvt = (e) => e.map((e) => ft(e))\n\t\t\t\tfunction gt() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(gt = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tgt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst bt = (e) =>\n\t\t\t\t\t\te.map((e) =>\n\t\t\t\t\t\t\t((e) => {\n\t\t\t\t\t\t\t\tconst t = e.tags || {},\n\t\t\t\t\t\t\t\t\tn = gt(\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tauthed: J() ? 'true' : 'false',\n\t\t\t\t\t\t\t\t\t\t\tplatform: A.platform,\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tt,\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tproject_name: A.projectName,\n\t\t\t\t\t\t\t\t\t\t\tversion_name: A.version || null,\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\tmetric_name: e.metricName,\n\t\t\t\t\t\t\t\t\tpage_path: e.pagePath || null,\n\t\t\t\t\t\t\t\t\tvalue: e.value,\n\t\t\t\t\t\t\t\t\ttags: n,\n\t\t\t\t\t\t\t\t\ttype: e.metricType,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t),\n\t\t\t\t\tht = (e) =>\n\t\t\t\t\t\t0 !== je.metricsQueue.length &&\n\t\t\t\t\t\t(je.metricsQueue.length >= A.batchMetricsThreshold ||\n\t\t\t\t\t\t\t(je.metricsScheduled ||\n\t\t\t\t\t\t\t\t((je.metricsScheduled = !0),\n\t\t\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\t\t\t;(je.metricsScheduled = !1),\n\t\t\t\t\t\t\t\t\t\te(bt(je.metricsQueue)),\n\t\t\t\t\t\t\t\t\t\t(je.metricsQueue = [])\n\t\t\t\t\t\t\t\t}, A.batchMetricsPeriod)),\n\t\t\t\t\t\t\t!1)),\n\t\t\t\t\twt = (e) =>\n\t\t\t\t\t\t0 !== je.tracesQueue.length &&\n\t\t\t\t\t\t(je.tracesQueue.length >= A.batchTracesThreshold ||\n\t\t\t\t\t\t\t(je.tracesScheduled ||\n\t\t\t\t\t\t\t\t((je.tracesScheduled = !0),\n\t\t\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\t\t\t;(je.tracesScheduled = !1),\n\t\t\t\t\t\t\t\t\t\te(je.tracesQueue),\n\t\t\t\t\t\t\t\t\t\t(je.tracesQueue = [])\n\t\t\t\t\t\t\t\t}, A.batchTracesPeriod)),\n\t\t\t\t\t\t\t!1)),\n\t\t\t\t\tyt = (e) => {\n\t\t\t\t\t\tvar t\n\t\t\t\t\t\tz() && null != (t = window) && t.requestIdleCallback\n\t\t\t\t\t\t\t? window.requestIdleCallback(e, {\n\t\t\t\t\t\t\t\t\ttimeout: A.ricTimeoutScheduleEvent,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t: (q() || F()) && A.interactionManager\n\t\t\t\t\t\t\t\t? A.interactionManager.runAfterInteractions(e)\n\t\t\t\t\t\t\t\t: e()\n\t\t\t\t\t}\n\t\t\t\tfunction Tt() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Tt = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tTt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst kt = 'application/x-www-form-urlencoded; charset=UTF-8',\n\t\t\t\t\t_t = (e) => {\n\t\t\t\t\t\tconst {\n\t\t\t\t\t\t\t\tdata: t,\n\t\t\t\t\t\t\t\timportance: n,\n\t\t\t\t\t\t\t\tisJSON: r,\n\t\t\t\t\t\t\t\tonError: i,\n\t\t\t\t\t\t\t\turl: a,\n\t\t\t\t\t\t\t} = e,\n\t\t\t\t\t\t\to = r ? 'application/json' : kt,\n\t\t\t\t\t\t\ts = n || l.low,\n\t\t\t\t\t\t\tc = r\n\t\t\t\t\t\t\t\t? JSON.stringify(t)\n\t\t\t\t\t\t\t\t: new URLSearchParams(t).toString()\n\t\t\t\t\t\tfunction u() {\n\t\t\t\t\t\t\tconst e = new XMLHttpRequest()\n\t\t\t\t\t\t\te.open('POST', a, !0),\n\t\t\t\t\t\t\t\tObject.keys(A.headers || {}).forEach((t) => {\n\t\t\t\t\t\t\t\t\te.setRequestHeader(t, A.headers[t])\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\te.setRequestHeader('Content-Type', kt),\n\t\t\t\t\t\t\t\tH.jwt &&\n\t\t\t\t\t\t\t\t\te.setRequestHeader(\n\t\t\t\t\t\t\t\t\t\t'authorization',\n\t\t\t\t\t\t\t\t\t\t`Bearer ${H.jwt}`,\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\te.send(c)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t!z() ||\n\t\t\t\t\t\t\tr ||\n\t\t\t\t\t\t\t!('sendBeacon' in navigator) ||\n\t\t\t\t\t\t\ts !== l.low ||\n\t\t\t\t\t\t\t(A.headers && 0 !== Object.keys(A.headers).length)\n\t\t\t\t\t\t)\n\t\t\t\t\t\t\tif (z() && !r) u()\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tconst e = Tt({}, A.headers, { 'Content-Type': o })\n\t\t\t\t\t\t\t\tH.jwt && (e.Authorization = `Bearer ${H.jwt}`),\n\t\t\t\t\t\t\t\t\tfetch(a, {\n\t\t\t\t\t\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\t\t\t\t\t\tmode: 'no-cors',\n\t\t\t\t\t\t\t\t\t\theaders: e,\n\t\t\t\t\t\t\t\t\t\tbody: c,\n\t\t\t\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\t\t\t\ti(e, { context: 'AnalyticsSDKApiError' })\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tconst e = new Blob([c], { type: kt })\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tnavigator.sendBeacon.bind(navigator)(a, e) || u()\n\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\tconsole.error(e), u()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tvar St = n(762),\n\t\t\t\t\tEt = n.n(St)\n\t\t\t\tconst xt = (e, t, n) => {\n\t\t\t\t\tconst r = e || ''\n\t\t\t\t\treturn Et()('2' + r + t + n)\n\t\t\t\t}\n\t\t\t\tfunction Ot() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Ot = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tOt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tclass jt extends Error {\n\t\t\t\t\tconstructor(e) {\n\t\t\t\t\t\tsuper(e),\n\t\t\t\t\t\t\t(this.name = 'CircularJsonReference'),\n\t\t\t\t\t\t\t(this.message = e),\n\t\t\t\t\t\t\t'function' == typeof Error.captureStackTrace\n\t\t\t\t\t\t\t\t? Error.captureStackTrace(this, this.constructor)\n\t\t\t\t\t\t\t\t: (this.stack = new Error(e).stack)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tclass Nt extends jt {\n\t\t\t\t\tconstructor(...e) {\n\t\t\t\t\t\tsuper(...e), (this.name = 'DomReferenceInAnalyticsEvent')\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction It() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(It = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tIt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst Pt = (e, t = l.low) => {\n\t\t\t\t\t\tvar n\n\t\t\t\t\t\te && je.eventsQueue.push(e),\n\t\t\t\t\t\t\tnt.isReady &&\n\t\t\t\t\t\t\t\t(!A.trackUserId || H.userId\n\t\t\t\t\t\t\t\t\t? (t === l.high ||\n\t\t\t\t\t\t\t\t\t\t\t((n = Mt),\n\t\t\t\t\t\t\t\t\t\t\t0 !== je.eventsQueue.length &&\n\t\t\t\t\t\t\t\t\t\t\t\t(je.eventsQueue.length >=\n\t\t\t\t\t\t\t\t\t\t\t\t\tA.batchEventsThreshold ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t(je.eventsScheduled ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t((je.eventsScheduled = !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(je.eventsScheduled = !1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(vt(je.eventsQueue)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(je.eventsQueue = [])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}, A.batchEventsPeriod)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t0)))) &&\n\t\t\t\t\t\t\t\t\t\tBt()\n\t\t\t\t\t\t\t\t\t: je.eventsQueue.length > 10 &&\n\t\t\t\t\t\t\t\t\t\t((A.trackUserId = !1),\n\t\t\t\t\t\t\t\t\t\tA.onError(\n\t\t\t\t\t\t\t\t\t\t\tnew Error('userId not set in Logged-in'),\n\t\t\t\t\t\t\t\t\t\t)))\n\t\t\t\t\t},\n\t\t\t\t\tMt = (e, t = l.low) => {\n\t\t\t\t\t\tif (H.isOptOut || 0 === e.length) return\n\t\t\t\t\t\tlet n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tn = JSON.stringify(e)\n\t\t\t\t\t\t} catch (t) {\n\t\t\t\t\t\t\tconst r = e.map((e) => e.event_type).join(', '),\n\t\t\t\t\t\t\t\t[i, a] = ((e) => {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tconst n = []\n\t\t\t\t\t\t\t\t\t\tfor (const r of e) {\n\t\t\t\t\t\t\t\t\t\t\tconst e = Ot({}, r)\n\t\t\t\t\t\t\t\t\t\t\tr.event_properties &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e.event_properties = Ot(\n\t\t\t\t\t\t\t\t\t\t\t\t\t{},\n\t\t\t\t\t\t\t\t\t\t\t\t\te.event_properties,\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcurrentTarget: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttarget: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trelatedTarget: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t_dispatchInstances: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t_targetInst: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tview:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((t = r.event_properties.view),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'string',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'number',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'boolean',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t].includes(typeof t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? r.event_properties.view\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: null),\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\tn.push(e)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\treturn [!0, JSON.stringify(n)]\n\t\t\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\t\t\treturn [!1, '']\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tvar t\n\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\tif (!i)\n\t\t\t\t\t\t\t\treturn void A.onError(\n\t\t\t\t\t\t\t\t\tnew jt(t instanceof Error ? t.message : 'unknown'),\n\t\t\t\t\t\t\t\t\t{ listEventType: r },\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t;(n = a),\n\t\t\t\t\t\t\t\tA.onError(new Nt('Found DOM element reference'), {\n\t\t\t\t\t\t\t\t\tlistEventType: r,\n\t\t\t\t\t\t\t\t\tstringifiedEventData: n,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst r = Ae().toString(),\n\t\t\t\t\t\t\ti = It(\n\t\t\t\t\t\t\t\t{},\n\t\t\t\t\t\t\t\t{ e: n, v: '2', upload_time: r },\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tclient: A.amplitudeApiKey,\n\t\t\t\t\t\t\t\t\tchecksum: xt(A.amplitudeApiKey, n, r),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t_t({\n\t\t\t\t\t\t\turl: A.eventsEndpoint,\n\t\t\t\t\t\t\tdata: i,\n\t\t\t\t\t\t\timportance: t,\n\t\t\t\t\t\t\tonError: A.onError,\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tut({ metricName: 'Batch Events', data: e, importance: t })\n\t\t\t\t\t},\n\t\t\t\t\tBt = () => {\n\t\t\t\t\t\tMt(vt(je.eventsQueue)), Ne({ eventsQueue: [] })\n\t\t\t\t\t}\n\t\t\t\tfunction Ct() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Ct = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tCt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst Dt = Object.values(f),\n\t\t\t\t\tAt = Object.values(m),\n\t\t\t\t\tLt = (e) => (Dt.includes(e) ? e : f.unknown),\n\t\t\t\t\tUt = (e) => (At.includes(e) ? e : m.unknown),\n\t\t\t\t\tRt = (e, t, n) => {\n\t\t\t\t\t\tconst r = {\n\t\t\t\t\t\t\tauth: J() ? b.loggedIn : b.notLoggedIn,\n\t\t\t\t\t\t\taction: Lt(e),\n\t\t\t\t\t\t\tcomponent_type: Ut(t),\n\t\t\t\t\t\t\tlogging_id: n,\n\t\t\t\t\t\t\tplatform: A.platform,\n\t\t\t\t\t\t\tproject_name: A.projectName,\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t'number' == typeof H.userTypeEnum &&\n\t\t\t\t\t\t\t\t(r.user_type_enum = H.userTypeEnum),\n\t\t\t\t\t\t\tr\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tqt = (e) => {\n\t\t\t\t\t\tconst t = Ae()\n\t\t\t\t\t\tif (!e)\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\tA.onError(new Error('missing logData')),\n\t\t\t\t\t\t\t\tCt({}, Rt(f.unknown, m.unknown), {\n\t\t\t\t\t\t\t\t\tlocale: H.locale,\n\t\t\t\t\t\t\t\t\tsession_lcc_id: H.session_lcc_id,\n\t\t\t\t\t\t\t\t\ttimestamp: t,\n\t\t\t\t\t\t\t\t\ttime_start: Le.timeStart,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\tconst n = Ct(\n\t\t\t\t\t\t\t{},\n\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\tRt(e.action, e.componentType, e.loggingId),\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tlocale: H.locale,\n\t\t\t\t\t\t\t\tsession_lcc_id: H.session_lcc_id,\n\t\t\t\t\t\t\t\ttimestamp: t,\n\t\t\t\t\t\t\t\ttime_start: Le.timeStart,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t)\n\t\t\t\t\t\treturn delete n.componentType, delete n.loggingId, n\n\t\t\t\t\t},\n\t\t\t\t\tFt = { blacklistRegex: [], isEnabled: !1 }\n\t\t\t\tfunction zt() {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tpage_key: re.pageKey,\n\t\t\t\t\t\tpage_path: re.pagePath,\n\t\t\t\t\t\tprev_page_key: re.prevPageKey,\n\t\t\t\t\t\tprev_page_path: re.prevPagePath,\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction Kt(e) {\n\t\t\t\t\tObject.assign(Ft, e)\n\t\t\t\t}\n\t\t\t\tfunction $t(e, t, n = l.low) {\n\t\t\t\t\tif (H.isOptOut) return\n\t\t\t\t\tif (!Oe()) return\n\t\t\t\t\tconst r = qt(t)\n\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\tFt.isEnabled && (ve(), Object.assign(e, zt()))\n\t\t\t\t\t})(r),\n\t\t\t\t\t\tbe(r),\n\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\tObject.keys(Se).length > 0 && Object.assign(e, Se)\n\t\t\t\t\t\t})(r),\n\t\t\t\t\t\t(r.has_double_fired = !1),\n\t\t\t\t\t\t(r.event_type = e),\n\t\t\t\t\t\tn === l.high\n\t\t\t\t\t\t\t? Pt(r, n)\n\t\t\t\t\t\t\t: yt(() => {\n\t\t\t\t\t\t\t\t\tPt(r)\n\t\t\t\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tfunction Qt(e, t = !1) {\n\t\t\t\t\tt\n\t\t\t\t\t\t? _t({\n\t\t\t\t\t\t\t\turl: A.metricsEndPoint,\n\t\t\t\t\t\t\t\tdata: { metrics: e },\n\t\t\t\t\t\t\t\tisJSON: !0,\n\t\t\t\t\t\t\t\tonError: A.onError,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: yt(() => {\n\t\t\t\t\t\t\t\t_t({\n\t\t\t\t\t\t\t\t\turl: A.metricsEndPoint,\n\t\t\t\t\t\t\t\t\tdata: { metrics: e },\n\t\t\t\t\t\t\t\t\tisJSON: !0,\n\t\t\t\t\t\t\t\t\tonError: A.onError,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tut({ metricName: 'Batch Metrics', data: e })\n\t\t\t\t}\n\t\t\t\tfunction Wt() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Wt = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tWt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction Ht(e) {\n\t\t\t\t\tif (!Oe()) return\n\t\t\t\t\tv.server !== A.platform &&\n\t\t\t\t\t\t!e.pagePath &&\n\t\t\t\t\t\tre.pagePath &&\n\t\t\t\t\t\t(e.pagePath = re.pagePath)\n\t\t\t\t\tconst t = Object.keys(Se).length ? Wt({}, e.tags, Se) : e.tags\n\t\t\t\t\tt && Object.assign(e, { tags: t }),\n\t\t\t\t\t\tje.metricsQueue.push(e),\n\t\t\t\t\t\tht(Qt) && (Qt(bt(je.metricsQueue)), (je.metricsQueue = []))\n\t\t\t\t}\n\t\t\t\tfunction Vt() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Vt = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tVt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tlet Jt = (function (e) {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(e.instant = 'instant'),\n\t\t\t\t\t\t(e.quick = 'quick'),\n\t\t\t\t\t\t(e.moderate = 'moderate'),\n\t\t\t\t\t\t(e.slow = 'slow'),\n\t\t\t\t\t\t(e.unavoidable = 'unavoidable'),\n\t\t\t\t\t\te\n\t\t\t\t\t)\n\t\t\t\t})({})\n\t\t\t\tfunction Xt(e) {\n\t\t\t\t\treturn e.toLowerCase()\n\t\t\t\t}\n\t\t\t\tlet Gt = {}\n\t\t\t\tconst Zt = (e, t) => {\n\t\t\t\t\tnull != A && A.onMarkStep && A.onMarkStep(e, t), xe({ ujs: t })\n\t\t\t\t}\n\t\t\t\tlet Yt\n\t\t\t\tconst en = {\n\t\t\t\t\t\tPerfume: () => {},\n\t\t\t\t\t\tmarkStep: (e) => {},\n\t\t\t\t\t\tmarkStepOnce: (e) => {},\n\t\t\t\t\t\tincrementUjNavigation: () => {},\n\t\t\t\t\t},\n\t\t\t\t\ttn = () => {\n\t\t\t\t\t\tz() && Yt && Yt.markNTBT && Yt.markNTBT()\n\t\t\t\t\t},\n\t\t\t\t\tnn = (e) => {\n\t\t\t\t\t\tz() && Yt && en.markStep && en.markStep(e)\n\t\t\t\t\t},\n\t\t\t\t\trn = (e) => {\n\t\t\t\t\t\tz() && Yt && en.markStepOnce && en.markStepOnce(e)\n\t\t\t\t\t},\n\t\t\t\t\tan = () => {\n\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\tYt &&\n\t\t\t\t\t\t\ten.incrementUjNavigation &&\n\t\t\t\t\t\t\ten.incrementUjNavigation()\n\t\t\t\t\t}\n\t\t\t\tfunction on(e = { callMarkNTBT: !0 }) {\n\t\t\t\t\t'unknown' !== A.platform &&\n\t\t\t\t\t\t(Ft.blacklistRegex.some((e) => e.test(fe())) ||\n\t\t\t\t\t\t\t($t(j, { action: f.render, componentType: m.page }),\n\t\t\t\t\t\t\te.callMarkNTBT && tn()))\n\t\t\t\t}\n\t\t\t\tlet sn = !1,\n\t\t\t\t\tcn = !1\n\t\t\t\tconst un = (e) => {\n\t\t\t\t\t\tsn = !e.persisted\n\t\t\t\t\t},\n\t\t\t\t\tln = (e, t = 'hidden', n = !1) => {\n\t\t\t\t\t\tcn ||\n\t\t\t\t\t\t\t(addEventListener('pagehide', un),\n\t\t\t\t\t\t\taddEventListener('beforeunload', () => {}),\n\t\t\t\t\t\t\t(cn = !0)),\n\t\t\t\t\t\t\taddEventListener(\n\t\t\t\t\t\t\t\t'visibilitychange',\n\t\t\t\t\t\t\t\t({ timeStamp: n }) => {\n\t\t\t\t\t\t\t\t\tdocument.visibilityState === t &&\n\t\t\t\t\t\t\t\t\t\te({ timeStamp: n, isUnloading: sn })\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{ capture: !0, once: n },\n\t\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tdn = 36e3\n\t\t\t\tfunction pn() {\n\t\t\t\t\tconst e = pt(Ae())\n\t\t\t\t\tif (\n\t\t\t\t\t\t(e &&\n\t\t\t\t\t\t\t(O.forEach((e) => {\n\t\t\t\t\t\t\t\toe[e] && delete oe[e]\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tst()),\n\t\t\t\t\t\t!oe.lastEventTime || !Le.sessionStart || !e)\n\t\t\t\t\t)\n\t\t\t\t\t\treturn\n\t\t\t\t\tconst t = Math.round((oe.lastEventTime - Le.sessionStart) / 1e3)\n\t\t\t\t\tif (t < 1 || t > dn) return\n\t\t\t\t\tconst n = Ce(t)\n\t\t\t\t\t$t(N, {\n\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\tsession_duration: t,\n\t\t\t\t\t\tsession_end: oe.lastEventTime,\n\t\t\t\t\t\tsession_start: Le.sessionStart,\n\t\t\t\t\t\tsession_rank: n,\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tfunction mn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(mn = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tmn.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst fn = [],\n\t\t\t\t\tvn = [],\n\t\t\t\t\tgn = () => {\n\t\t\t\t\t\tconst e = fn.shift()\n\t\t\t\t\t\te && e()\n\t\t\t\t\t},\n\t\t\t\t\tbn = () => {\n\t\t\t\t\t\tconst e = vn.shift()\n\t\t\t\t\t\te && e()\n\t\t\t\t\t}\n\t\t\t\tlet hn = {}\n\t\t\t\tfunction wn(e) {\n\t\t\t\t\tconst t = (function (e) {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\ttest_name: e.testName,\n\t\t\t\t\t\t\tgroup_name: e.group,\n\t\t\t\t\t\t\tsubject_id: e.subjectId,\n\t\t\t\t\t\t\texposed_at: Ae(),\n\t\t\t\t\t\t\tsubject_type: e.subjectType,\n\t\t\t\t\t\t\tplatform: A.platform,\n\t\t\t\t\t\t}\n\t\t\t\t\t})(e)\n\t\t\t\t\t;(hn[e.testName] = hn[e.testName] || 0),\n\t\t\t\t\t\thn[e.testName] + k > Ae()\n\t\t\t\t\t\t\t? lt({\n\t\t\t\t\t\t\t\t\tmetricName: `Event: exposeExperiment ${e.testName} not sent`,\n\t\t\t\t\t\t\t\t\tdata: t,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t: ((hn[e.testName] = Ae()),\n\t\t\t\t\t\t\t\tot(E, hn),\n\t\t\t\t\t\t\t\tlt({\n\t\t\t\t\t\t\t\t\tmetricName: `Event: exposeExperiment ${e.testName} sent`,\n\t\t\t\t\t\t\t\t\tdata: t,\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t_t({\n\t\t\t\t\t\t\t\t\turl: A.exposureEndpoint,\n\t\t\t\t\t\t\t\t\tdata: [t],\n\t\t\t\t\t\t\t\t\tonError: (t, n) => {\n\t\t\t\t\t\t\t\t\t\t;(hn[e.testName] = 0), ot(E, hn), A.onError(t, n)\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tisJSON: !0,\n\t\t\t\t\t\t\t\t\timportance: l.high,\n\t\t\t\t\t\t\t\t}))\n\t\t\t\t}\n\t\t\t\tconst yn = (e) => {\n\t\t\t\t\t\tvar t, r, i\n\t\t\t\t\t\tU(e),\n\t\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\t\t(H.languageCode =\n\t\t\t\t\t\t\t\t\t(null == (t = navigator)\n\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t: t.languages[0]) ||\n\t\t\t\t\t\t\t\t\t(null == (r = navigator) ? void 0 : r.language) ||\n\t\t\t\t\t\t\t\t\t''),\n\t\t\t\t\t\t\tte(),\n\t\t\t\t\t\t\t(() => {\n\t\t\t\t\t\t\t\tvar e\n\t\t\t\t\t\t\t\tif (z() && null != (e = window) && e.indexedDB) {\n\t\t\t\t\t\t\t\t\tconst e = (function (\n\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\tt,\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tblocked: n,\n\t\t\t\t\t\t\t\t\t\t\tupgrade: r,\n\t\t\t\t\t\t\t\t\t\t\tblocking: i,\n\t\t\t\t\t\t\t\t\t\t\tterminated: a,\n\t\t\t\t\t\t\t\t\t\t} = {},\n\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\tconst o = indexedDB.open(e, t),\n\t\t\t\t\t\t\t\t\t\t\ts = Je(o)\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\tr &&\n\t\t\t\t\t\t\t\t\t\t\t\to.addEventListener('upgradeneeded', (e) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tr(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tJe(o.result),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.oldVersion,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.newVersion,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tJe(o.transaction),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tn &&\n\t\t\t\t\t\t\t\t\t\t\t\to.addEventListener('blocked', (e) =>\n\t\t\t\t\t\t\t\t\t\t\t\t\tn(e.oldVersion, e.newVersion, e),\n\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\ts\n\t\t\t\t\t\t\t\t\t\t\t\t.then((e) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.addEventListener('close', () =>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ti &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.addEventListener(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'versionchange',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(e) =>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.oldVersion,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.newVersion,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t.catch(() => {}),\n\t\t\t\t\t\t\t\t\t\t\ts\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t})('keyval-store', 1, {\n\t\t\t\t\t\t\t\t\t\tupgrade(e) {\n\t\t\t\t\t\t\t\t\t\t\te.createObjectStore('keyval')\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\trt({\n\t\t\t\t\t\t\t\t\t\tidbKeyval: {\n\t\t\t\t\t\t\t\t\t\t\tget: async (t) => (await e).get('keyval', t),\n\t\t\t\t\t\t\t\t\t\t\tset: async (t, n) =>\n\t\t\t\t\t\t\t\t\t\t\t\t(await e).put('keyval', n, t),\n\t\t\t\t\t\t\t\t\t\t\tdelete: async (t) =>\n\t\t\t\t\t\t\t\t\t\t\t\t(await e).delete('keyval', t),\n\t\t\t\t\t\t\t\t\t\t\tkeys: async () =>\n\t\t\t\t\t\t\t\t\t\t\t\t(await e).getAllKeys('keyval'),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\trt({\n\t\t\t\t\t\t\t\t\t\tidbKeyval: {\n\t\t\t\t\t\t\t\t\t\t\tget: async (e) =>\n\t\t\t\t\t\t\t\t\t\t\t\tnew Promise((t) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tt(it[e])\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tset: async (e, t) =>\n\t\t\t\t\t\t\t\t\t\t\t\tnew Promise((n) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t;(it[e] = t), n(e)\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tdelete: async (e) =>\n\t\t\t\t\t\t\t\t\t\t\t\tnew Promise(() => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tdelete it[e]\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tkeys: async () =>\n\t\t\t\t\t\t\t\t\t\t\t\tnew Promise((e) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\te(Object.keys(it))\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})(),\n\t\t\t\t\t\t\tlt({\n\t\t\t\t\t\t\t\tmetricName: 'Initialized Analytics:',\n\t\t\t\t\t\t\t\tdata: { deviceId: H.deviceId },\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tfn.push(() => {\n\t\t\t\t\t\t\t\tPt()\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t(async () => {\n\t\t\t\t\t\t\t\tconst e = await at(S)\n\t\t\t\t\t\t\t\trt({ isReady: !0 }),\n\t\t\t\t\t\t\t\t\tgn(),\n\t\t\t\t\t\t\t\t\te &&\n\t\t\t\t\t\t\t\t\t\t(bn(),\n\t\t\t\t\t\t\t\t\t\tse({\n\t\t\t\t\t\t\t\t\t\t\teventId: e.eventId || oe.eventId,\n\t\t\t\t\t\t\t\t\t\t\tsequenceNumber:\n\t\t\t\t\t\t\t\t\t\t\t\te.sequenceNumber || oe.sequenceNumber,\n\t\t\t\t\t\t\t\t\t\t\tsessionId: e.sessionId || oe.sessionId,\n\t\t\t\t\t\t\t\t\t\t\tlastEventTime:\n\t\t\t\t\t\t\t\t\t\t\t\te.lastEventTime || oe.lastEventTime,\n\t\t\t\t\t\t\t\t\t\t\tsessionUUID: e.sessionUUID || oe.sessionUUID,\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tse(\n\t\t\t\t\t\t\t\t\t\t\t\tmn(\n\t\t\t\t\t\t\t\t\t\t\t\t\t{},\n\t\t\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst t = {}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tO.forEach((n) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te[n] && (t[n] = e[n])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t\t\t\tde(),\n\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\tUe({\n\t\t\t\t\t\t\t\t\t\t\tsessionStart:\n\t\t\t\t\t\t\t\t\t\t\t\te.sessionStart || oe.sessionStart,\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\tDe({\n\t\t\t\t\t\t\t\t\t\t\tac: e.ac || Ie.ac,\n\t\t\t\t\t\t\t\t\t\t\taf: e.af || Ie.af,\n\t\t\t\t\t\t\t\t\t\t\tah: e.ah || Ie.ah,\n\t\t\t\t\t\t\t\t\t\t\tal: e.al || Ie.al,\n\t\t\t\t\t\t\t\t\t\t\tam: e.am || Ie.am,\n\t\t\t\t\t\t\t\t\t\t\tar: e.ar || Ie.ar,\n\t\t\t\t\t\t\t\t\t\t\tas: e.as || Ie.as,\n\t\t\t\t\t\t\t\t\t\t\tpv: e.pv || Ie.pv,\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\tA.trackUserId &&\n\t\t\t\t\t\t\t\t\t\t\tY({ userId: e.userId || H.userId }),\n\t\t\t\t\t\t\t\t\t\tpn(),\n\t\t\t\t\t\t\t\t\t\tlt({\n\t\t\t\t\t\t\t\t\t\t\tmetricName: 'Initialized Analytics IndexedDB:',\n\t\t\t\t\t\t\t\t\t\t\tdata: e,\n\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t})(),\n\t\t\t\t\t\t\t(async function () {\n\t\t\t\t\t\t\t\tat(E)\n\t\t\t\t\t\t\t\t\t.then((e) => {\n\t\t\t\t\t\t\t\t\t\thn = null != e ? e : {}\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t.catch((e) => {\n\t\t\t\t\t\t\t\t\t\te instanceof Error && A.onError(e)\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})(),\n\t\t\t\t\t\t\tZ(),\n\t\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\t\t(ln(() => {\n\t\t\t\t\t\t\t\t\tse({ lastEventTime: Ae() }), st(), Bt()\n\t\t\t\t\t\t\t\t}, 'hidden'),\n\t\t\t\t\t\t\t\tln(() => {\n\t\t\t\t\t\t\t\t\tpn()\n\t\t\t\t\t\t\t\t}, 'visible')),\n\t\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\t\t((i = () => {\n\t\t\t\t\t\t\t\t\tvar e, t, n, r\n\t\t\t\t\t\t\t\t\tte(),\n\t\t\t\t\t\t\t\t\t\tee({\n\t\t\t\t\t\t\t\t\t\t\twidth:\n\t\t\t\t\t\t\t\t\t\t\t\tnull !=\n\t\t\t\t\t\t\t\t\t\t\t\t(e =\n\t\t\t\t\t\t\t\t\t\t\t\t\tnull == (t = window)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: t.innerWidth)\n\t\t\t\t\t\t\t\t\t\t\t\t\t? e\n\t\t\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\t\t\theight:\n\t\t\t\t\t\t\t\t\t\t\t\tnull !=\n\t\t\t\t\t\t\t\t\t\t\t\t(n =\n\t\t\t\t\t\t\t\t\t\t\t\t\tnull == (r = window)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: r.innerHeight)\n\t\t\t\t\t\t\t\t\t\t\t\t\t? n\n\t\t\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\taddEventListener('resize', () => {\n\t\t\t\t\t\t\t\t\trequestAnimationFrame(() => {\n\t\t\t\t\t\t\t\t\t\ti()\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t})),\n\t\t\t\t\t\t\t(() => {\n\t\t\t\t\t\t\t\tif (z())\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tconst e = n(2)\n\t\t\t\t\t\t\t\t\t\t;(en.markStep = e.markStep),\n\t\t\t\t\t\t\t\t\t\t\t(en.markStepOnce = e.markStepOnce),\n\t\t\t\t\t\t\t\t\t\t\t(en.incrementUjNavigation =\n\t\t\t\t\t\t\t\t\t\t\t\te.incrementUjNavigation),\n\t\t\t\t\t\t\t\t\t\t\t(Yt = new e.Perfume({\n\t\t\t\t\t\t\t\t\t\t\t\tanalyticsTracker: (e) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tconst {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tattribution: n,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: r,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnavigatorInformation: i,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trating: a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} = e,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\to = I[r],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ts =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: n.category) || null\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (!o && !s) return\n\t\t\t\t\t\t\t\t\t\t\t\t\tconst c =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: i.deviceMemory) || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tu =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: i.hardwareConcurrency) || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tl =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: i.isLowEndDevice) || !1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tp =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: i.isLowEndExperience) || !1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tv =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: i.serviceWorkerStatus) ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'unsupported',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tg = Vt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdeviceMemory: c,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thardwareConcurrency: u,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisLowEndDevice: l,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisLowEndExperience: p,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tserviceWorkerStatus: v,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGt,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tb = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tis_low_end_device: l,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tis_low_end_experience: p,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpage_key: re.pageKey || '',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsave_data: t.saveData || !1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tservice_worker: v,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tis_perf_metric: !0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tif ('navigationTiming' === r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tt &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'number' ==\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttypeof t.redirectTime &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.redirectTime.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.histogram,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t.redirectTime || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\telse if ('TTFB' === r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tduration: t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvitalsScore: a || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: I.TTFB.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.histogram,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: Vt({}, b),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `perf_web_vitals_ttfb_${a}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.count,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\telse if ('networkInformation' === r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull != t &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.effectiveType &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((Gt = t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$t(o.eventName, {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnetworkInformationDownlink:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.downlink,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnetworkInformationEffectiveType:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.effectiveType,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnetworkInformationRtt: t.rtt,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnetworkInformationSaveData:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.saveData,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnavigatorDeviceMemory: c,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnavigatorHardwareConcurrency: u,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t\t\t\t\telse if ('storageEstimate' === r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'perf_storage_estimate_caches',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.histogram,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t.caches,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'perf_storage_estimate_indexed_db',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.histogram,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t.indexedDB,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\telse if ('CLS' === r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tscore: 100 * t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvitalsScore: a || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `perf_web_vitals_cls_${a}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.count,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\telse if ('FID' === r) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst e =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: n.performanceEntry) ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr = parseInt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: e.processingStart) || '',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tduration: t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tprocessingStart:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull != e &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.processingStart\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstartTime:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull != e && e.startTime\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? parseInt(e.startTime)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvitalsScore: a || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `perf_web_vitals_fidVitals_${a}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.count,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'userJourneyStep' === r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? ($t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'perf_user_journey_step',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tduration: t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trating:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull != a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstep_name:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: n.stepName) ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `user_journey_step.${A.projectName}.${A.platform}.${(null == n ? void 0 : n.stepName) || ''}_vitals_${a}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.count,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `user_journey_step.${A.projectName}.${A.platform}.${(null == n ? void 0 : n.stepName) || ''}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.distribution,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: I[r] &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t($t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tduration: t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvitalsScore: a || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Ht({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `perf_web_vitals_${Xt(r)}_${a}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.count,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'LCP' === r &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `perf_web_vitals_${Xt(r)}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\td.distribution,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})))\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\tmaxMeasureTime: 3e4,\n\t\t\t\t\t\t\t\t\t\t\t\tsteps: A.steps,\n\t\t\t\t\t\t\t\t\t\t\t\tonMarkStep: Zt,\n\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\t\t\te instanceof Error && A.onError(e)\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})()\n\t\t\t\t\t},\n\t\t\t\t\tTn = (e) => {\n\t\t\t\t\t\tY(e),\n\t\t\t\t\t\t\te.userAgent && Z(),\n\t\t\t\t\t\t\tlt({\n\t\t\t\t\t\t\t\tmetricName: 'Identify:',\n\t\t\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\t\t\tcountryCode: H.countryCode,\n\t\t\t\t\t\t\t\t\tdeviceId: H.deviceId,\n\t\t\t\t\t\t\t\t\tuserId: H.userId,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t})\n\t\t\t\t\t},\n\t\t\t\t\tkn = ({\n\t\t\t\t\t\tblacklistRegex: e,\n\t\t\t\t\t\tpageKeyRegex: t,\n\t\t\t\t\t\tbrowserHistory: n,\n\t\t\t\t\t}) => {\n\t\t\t\t\t\tKt({ blacklistRegex: e || [], isEnabled: !0 }),\n\t\t\t\t\t\t\tae({ pageKeyRegex: t }),\n\t\t\t\t\t\t\ton({ callMarkNTBT: !1 }),\n\t\t\t\t\t\t\tn.listen(() => {\n\t\t\t\t\t\t\t\ton()\n\t\t\t\t\t\t\t})\n\t\t\t\t\t},\n\t\t\t\t\t_n = ({\n\t\t\t\t\t\tblacklistRegex: e,\n\t\t\t\t\t\tpageKeyRegex: t,\n\t\t\t\t\t\tnextJsRouter: n,\n\t\t\t\t\t}) => {\n\t\t\t\t\t\tKt({ blacklistRegex: e || [], isEnabled: !0 }),\n\t\t\t\t\t\t\tae({ pageKeyRegex: t }),\n\t\t\t\t\t\t\ton({ callMarkNTBT: !1 }),\n\t\t\t\t\t\t\tn.events.on('routeChangeComplete', () => {\n\t\t\t\t\t\t\t\ton()\n\t\t\t\t\t\t\t})\n\t\t\t\t\t},\n\t\t\t\t\tSn = () => {\n\t\t\t\t\t\tY({ isOptOut: !0 }), ot(S, {})\n\t\t\t\t\t},\n\t\t\t\t\tEn = () => {\n\t\t\t\t\t\tY({ isOptOut: !1 })\n\t\t\t\t\t},\n\t\t\t\t\txn = {\n\t\t\t\t\t\tButton: {\n\t\t\t\t\t\t\tlabel: 'cb_button',\n\t\t\t\t\t\t\tuuid: 'e921a074-40e6-4371-8700-134d5cd633e6',\n\t\t\t\t\t\t\tcomponentType: m.button,\n\t\t\t\t\t\t},\n\t\t\t\t\t}\n\t\t\t\tfunction On(e, t, n) {\n\t\t\t\t\treturn { componentName: e, actions: t, data: n }\n\t\t\t\t}\n\t\t\t\tfunction jn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(jn = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tjn.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction Nn(e, t, n) {\n\t\t\t\t\tconst { componentName: r, data: i } = n\n\t\t\t\t\t$t(\n\t\t\t\t\t\te.label,\n\t\t\t\t\t\tjn(\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcomponentType: e.componentType,\n\t\t\t\t\t\t\t\taction: t,\n\t\t\t\t\t\t\t\tloggingId: e.uuid,\n\t\t\t\t\t\t\t\tcomponent_name: r,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\ti,\n\t\t\t\t\t\t),\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst In = {\n\t\t\t\t\tactionMapping: { onPress: f.click, onHover: f.hover },\n\t\t\t\t\thandlers: {\n\t\t\t\t\t\tButton: {\n\t\t\t\t\t\t\t[f.click]: (e) => Nn(xn.Button, f.click, e),\n\t\t\t\t\t\t\t[f.hover]: (e) => Nn(xn.Button, f.hover, e),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t\tfunction Pn(e, t = !1) {\n\t\t\t\t\tt\n\t\t\t\t\t\t? _t({\n\t\t\t\t\t\t\t\turl: A.tracesEndpoint,\n\t\t\t\t\t\t\t\tdata: { traces: e },\n\t\t\t\t\t\t\t\tisJSON: !0,\n\t\t\t\t\t\t\t\tonError: A.onError,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: yt(() => {\n\t\t\t\t\t\t\t\t_t({\n\t\t\t\t\t\t\t\t\turl: A.tracesEndpoint,\n\t\t\t\t\t\t\t\t\tdata: { traces: e },\n\t\t\t\t\t\t\t\t\tisJSON: !0,\n\t\t\t\t\t\t\t\t\tonError: A.onError,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tut({ metricName: 'Batch Traces', data: e })\n\t\t\t\t}\n\t\t\t\tfunction Mn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Mn = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tMn.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst Bn = 1e6\n\t\t\t\tfunction Cn(e) {\n\t\t\t\t\treturn e * Bn\n\t\t\t\t}\n\t\t\t\tfunction Dn(\n\t\t\t\t\te = (function () {\n\t\t\t\t\t\tvar e\n\t\t\t\t\t\treturn null == (e = window) ? void 0 : e.crypto\n\t\t\t\t\t})(),\n\t\t\t\t) {\n\t\t\t\t\tconst t = new Uint32Array(2)\n\t\t\t\t\treturn (\n\t\t\t\t\t\tnull == e || e.getRandomValues(t),\n\t\t\t\t\t\t((BigInt(t[0]) << BigInt(32)) + BigInt(t[1])).toString()\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction An(e, t) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t'x-datadog-origin': 'rum',\n\t\t\t\t\t\t'x-datadog-parent-id': t,\n\t\t\t\t\t\t'x-datadog-sampling-priority': '1',\n\t\t\t\t\t\t'x-datadog-trace-id': e,\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction Ln(e) {\n\t\t\t\t\tvar t\n\t\t\t\t\tconst {\n\t\t\t\t\t\tname: n,\n\t\t\t\t\t\ttraceId: r,\n\t\t\t\t\t\tspanId: i,\n\t\t\t\t\t\tstart: a,\n\t\t\t\t\t\tduration: o,\n\t\t\t\t\t\tresource: s,\n\t\t\t\t\t\tmeta: c,\n\t\t\t\t\t} = e\n\t\t\t\t\treturn {\n\t\t\t\t\t\tduration: o ? Cn(o) : 0,\n\t\t\t\t\t\tname: n,\n\t\t\t\t\t\tresource: s,\n\t\t\t\t\t\tservice: A.projectName,\n\t\t\t\t\t\tspan_id: null != i ? i : Dn(),\n\t\t\t\t\t\tstart: a ? Cn(a) : 0,\n\t\t\t\t\t\ttrace_id: null != r ? r : Dn(),\n\t\t\t\t\t\tparent_id: P,\n\t\t\t\t\t\ttype: M,\n\t\t\t\t\t\tmeta: Mn(\n\t\t\t\t\t\t\t{ platform: A.platform },\n\t\t\t\t\t\t\tre.pageKey ? { page_key: re.pageKey } : {},\n\t\t\t\t\t\t\tnull != (t = Se.ujs) && t.length\n\t\t\t\t\t\t\t\t? { last_ujs: Se.ujs[Se.ujs.length - 1] }\n\t\t\t\t\t\t\t\t: {},\n\t\t\t\t\t\t\tnull != c ? c : {},\n\t\t\t\t\t\t),\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction Un(e) {\n\t\t\t\t\treturn [Ln(e)]\n\t\t\t\t}\n\t\t\t\tfunction Rn(e, t) {\n\t\t\t\t\tOe() &&\n\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\treturn e.length > 0\n\t\t\t\t\t\t})(e) &&\n\t\t\t\t\t\t(t &&\n\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\te.forEach((e) =>\n\t\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\t\tconst n = Mn({}, e.meta, t.meta),\n\t\t\t\t\t\t\t\t\t\t\tr = {\n\t\t\t\t\t\t\t\t\t\t\t\tstart: t.start ? Cn(t.start) : e.start,\n\t\t\t\t\t\t\t\t\t\t\t\tduration: t.duration\n\t\t\t\t\t\t\t\t\t\t\t\t\t? Cn(t.duration)\n\t\t\t\t\t\t\t\t\t\t\t\t\t: e.duration,\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tObject.assign(e, t, Mn({ meta: n }, r))\n\t\t\t\t\t\t\t\t\t})(e, t),\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t})(e, t),\n\t\t\t\t\t\tje.tracesQueue.push(e),\n\t\t\t\t\t\twt(Pn) && (Pn(je.tracesQueue), (je.tracesQueue = [])))\n\t\t\t\t}\n\t\t\t\tfunction qn(e) {\n\t\t\t\t\tvar t = (function (e, t) {\n\t\t\t\t\t\tif ('object' != typeof e || null === e) return e\n\t\t\t\t\t\tvar n = e[Symbol.toPrimitive]\n\t\t\t\t\t\tif (void 0 !== n) {\n\t\t\t\t\t\t\tvar r = n.call(e, 'string')\n\t\t\t\t\t\t\tif ('object' != typeof r) return r\n\t\t\t\t\t\t\tthrow new TypeError(\n\t\t\t\t\t\t\t\t'@@toPrimitive must return a primitive value.',\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn String(e)\n\t\t\t\t\t})(e)\n\t\t\t\t\treturn 'symbol' == typeof t ? t : String(t)\n\t\t\t\t}\n\t\t\t\tfunction Fn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Fn = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tFn.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction zn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\tvoid 0 !== typeof window &&\n\t\t\t\t\t\t'performance' in window &&\n\t\t\t\t\t\t'mark' in performance &&\n\t\t\t\t\t\t'getEntriesByName' in performance\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction Kn(e, t) {\n\t\t\t\t\treturn `perf_${e}${null != t && t.label ? `_${t.label}` : ''}`\n\t\t\t\t}\n\t\t\t\tfunction $n(e, t, n) {\n\t\t\t\t\treturn `${Kn(e, n)}__${t}`\n\t\t\t\t}\n\t\t\t\tlet Qn = {}\n\t\t\t\tfunction Wn(e, t, n) {\n\t\t\t\t\tif (!zn()) return\n\t\t\t\t\tconst r = $n(e, t, n)\n\t\t\t\t\tif ((performance.mark(r), 'end' === t)) {\n\t\t\t\t\t\tconst t = Kn(e, n)\n\t\t\t\t\t\t!(function (e, t, n) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tperformance.measure(e, t, n)\n\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\tA.onError(e)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})(t, $n(e, 'start', n), r)\n\t\t\t\t\t\tconst i = performance.getEntriesByName(t).pop()\n\t\t\t\t\t\ti &&\n\t\t\t\t\t\t\tHt(\n\t\t\t\t\t\t\t\tFn(\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tmetricName: e,\n\t\t\t\t\t\t\t\t\t\tmetricType: d.distribution,\n\t\t\t\t\t\t\t\t\t\tvalue: i.duration,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tnull != n && n.tags ? { tags: n.tags } : {},\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction Hn(e, t) {\n\t\t\t\t\tif (!zn()) return\n\t\t\t\t\tconst n = $n(e, 'start', t)\n\t\t\t\t\tQn[n] || (Wn(e, 'start', t), (Qn[n] = !0))\n\t\t\t\t}\n\t\t\t\tfunction Vn(e, t) {\n\t\t\t\t\tconst n = $n(e, 'start', t),\n\t\t\t\t\t\tr = (function (e, t) {\n\t\t\t\t\t\t\tif (null == e) return {}\n\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\ti = {},\n\t\t\t\t\t\t\t\ta = Object.keys(e)\n\t\t\t\t\t\t\tfor (r = 0; r < a.length; r++)\n\t\t\t\t\t\t\t\t(n = a[r]), t.indexOf(n) >= 0 || (i[n] = e[n])\n\t\t\t\t\t\t\treturn i\n\t\t\t\t\t\t})(Qn, [n].map(qn))\n\t\t\t\t\tQn = r\n\t\t\t\t}\n\t\t\t\tfunction Jn(e, t) {\n\t\t\t\t\tif (!zn()) return\n\t\t\t\t\tconst n = $n(e, 'start', t)\n\t\t\t\t\tQn[n] && (Wn(e, 'end', t), Vn(e, t))\n\t\t\t\t}\n\t\t\t\tfunction Xn() {\n\t\t\t\t\tzn() && (performance.clearMarks(), (Qn = {}))\n\t\t\t\t}\n\t\t\t\tvar Gn = n(784)\n\t\t\t\tfunction Zn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Zn = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tZn.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction Yn(e, t, n = l.low) {\n\t\t\t\t\tconst r = (0, Gn.useRef)(t)\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(0, Gn.useEffect)(() => {\n\t\t\t\t\t\t\tr.current = t\n\t\t\t\t\t\t}, [t]),\n\t\t\t\t\t\t(0, Gn.useCallback)(\n\t\t\t\t\t\t\t(t) => {\n\t\t\t\t\t\t\t\t$t(e, Zn({}, r.current, t), n)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t[e, n],\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction er() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(er = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\ter.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction tr(e, t, n = l.low) {\n\t\t\t\t\t;(0, Gn.useEffect)(() => {\n\t\t\t\t\t\tconst r = er({}, t, { action: f.render })\n\t\t\t\t\t\t$t(e, r, n)\n\t\t\t\t\t}, [])\n\t\t\t\t}\n\t\t\t\tfunction nr() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(nr = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tnr.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst rr = function (e, t) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tmarkStartPerf: (0, Gn.useCallback)(() => Hn(e, t), [e, t]),\n\t\t\t\t\t\tmarkEndPerf: (0, Gn.useCallback)(\n\t\t\t\t\t\t\t(n) => Jn(e, nr({}, t, n)),\n\t\t\t\t\t\t\t[e, t],\n\t\t\t\t\t\t),\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction ir() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(ir = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tir.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction ar() {\n\t\t\t\t\treturn Object.entries(\n\t\t\t\t\t\tir({}, Se, zt(), {\n\t\t\t\t\t\t\tsessionUUID: oe.sessionUUID,\n\t\t\t\t\t\t\tuserId: oe.userId,\n\t\t\t\t\t\t}),\n\t\t\t\t\t).reduce((e, t) => {\n\t\t\t\t\t\treturn null != (n = t[1]) && '' !== n\n\t\t\t\t\t\t\t? ir({}, e, { [t[0]]: t[1] })\n\t\t\t\t\t\t\t: e\n\t\t\t\t\t\tvar n\n\t\t\t\t\t}, {})\n\t\t\t\t}\n\t\t\t\tasync function or() {\n\t\t\t\t\treturn new Promise((e) => {\n\t\t\t\t\t\tMt(vt(je.eventsQueue)),\n\t\t\t\t\t\t\tQt(bt(je.metricsQueue), !0),\n\t\t\t\t\t\t\tPn(je.tracesQueue, !0),\n\t\t\t\t\t\t\tNe({ eventsQueue: [], metricsQueue: [], tracesQueue: [] }),\n\t\t\t\t\t\t\te()\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tfunction sr() {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t'X-CB-Device-ID': H.deviceId || 'unknown',\n\t\t\t\t\t\t'X-CB-Is-Logged-In': H.userId ? 'true' : 'false',\n\t\t\t\t\t\t'X-CB-Pagekey': re.pageKey || 'unknown',\n\t\t\t\t\t\t'X-CB-UJS':\n\t\t\t\t\t\t\t((e = Se.ujs),\n\t\t\t\t\t\t\tvoid 0 === e || 0 === e.length ? '' : e.join(',')),\n\t\t\t\t\t\t'X-CB-Platform': A.platform || 'unknown',\n\t\t\t\t\t\t'X-CB-Project-Name': A.projectName || 'unknown',\n\t\t\t\t\t\t'X-CB-Session-UUID': oe.sessionUUID || 'unknown',\n\t\t\t\t\t\t'X-CB-Version-Name': A.version\n\t\t\t\t\t\t\t? String(A.version)\n\t\t\t\t\t\t\t: 'unknown',\n\t\t\t\t\t}\n\t\t\t\t\tvar e\n\t\t\t\t}\n\t\t\t})(),\n\t\t\tr\n\t\t)\n\t})()\n})\n",e.type="text/javascript",document.head.appendChild(e),m(),document.head.removeChild(e),t()}catch(t){console.error("Failed to execute inlined telemetry script"),e()}});let c=null;const u={getProvider:()=>{var t;return c||(c=null!==(t=function(){var t,e;const n=null!==(e=null===(t=window.top)||void 0===t?void 0:t.ethereum)&&void 0!==e?e:window.ethereum;return(null==n?void 0:n.isCoinbaseBrowser)?n:null}())&&void 0!==t?t:new sg(o)),c},subAccount:{async create(t){var e;return await(null===(e=u.getProvider())||void 0===e?void 0:e.request({method:"wallet_addSubAccount",params:[{version:"1",account:t}]}))},async get(){var t,e;const n=p.subAccounts.get();if(null==n?void 0:n.address)return n;const r=null===(e=(await(null===(t=u.getProvider())||void 0===t?void 0:t.request({method:"wallet_connect",params:[{version:"1",capabilities:{}}]}))).accounts[0].capabilities)||void 0===e?void 0:e.subAccounts;return Array.isArray(r)?r[0]:null},addOwner:async({address:t,publicKey:e,chainId:n})=>{var r,a;const s=p.subAccounts.get(),i=p.account.get();R(i,new Error("account does not exist")),R(null==s?void 0:s.address,new Error("subaccount does not exist"));const o=[];if(e){const[t,n]=Tr([{type:"bytes32"},{type:"bytes32"}],e);o.push({to:s.address,data:yr({abi:h,functionName:"addOwnerPublicKey",args:[t,n]}),value:Oe(0)})}return t&&o.push({to:s.address,data:yr({abi:h,functionName:"addOwnerAddress",args:[t]}),value:Oe(0)}),await(null===(r=u.getProvider())||void 0===r?void 0:r.request({method:"wallet_sendCalls",params:[{calls:o,chainId:Oe(n),from:null===(a=i.accounts)||void 0===a?void 0:a[0],version:"1"}]}))},setToOwnerAccount(t){D(t),p.subAccountsConfig.set({toOwnerAccount:t})}}};return u}const og={USDC:{decimals:6,addresses:{base:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",baseSepolia:"0x036CbD53842c5426634e7929541eC2318f3dCF7e"}}},cg={base:8453,baseSepolia:84532},ug=[{name:"transfer",type:"function",stateMutability:"nonpayable",inputs:[{name:"to",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{name:"Transfer",type:"event",anonymous:!1,inputs:[{name:"from",type:"address",indexed:!0},{name:"to",type:"address",indexed:!0},{name:"value",type:"uint256",indexed:!1}]}],dg=({testnet:t,status:e,correlationId:n})=>{tm("payment.status_check.completed",{action:Xp.process,componentType:Qp.unknown,method:"getPaymentStatus",correlationId:n,signerType:"app-sdk",testnet:t,status:e},$p.low)},lg=({testnet:t,correlationId:e,errorMessage:n})=>{tm("payment.status_check.error",{action:Xp.error,componentType:Qp.unknown,method:"getPaymentStatus",correlationId:e,errorMessage:n,signerType:"app-sdk",testnet:t},$p.low)};async function fg(t){var e;const{id:n,testnet:r=!1,telemetry:a=!0}=t,s=crypto.randomUUID();a&&(({testnet:t,correlationId:e})=>{tm("payment.status_check.started",{action:Xp.process,componentType:Qp.unknown,method:"getPaymentStatus",correlationId:e,signerType:"app-sdk",testnet:t},$p.low)})({testnet:r,correlationId:s});try{const t=r?"https://api.developer.coinbase.com/rpc/v1/base-sepolia/S-fOd2n2Oi4fl4e1Crm83XeDXZ7tkg8O":"https://api.developer.coinbase.com/rpc/v1/base/S-fOd2n2Oi4fl4e1Crm83XeDXZ7tkg8O",i=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"eth_getUserOperationReceipt",params:[n]})}).then(t=>t.json());if(i.error){console.error("[getPaymentStatus] RPC error:",i.error);const t=i.error.message||"Network error";throw a&&lg({testnet:r,correlationId:s,errorMessage:t}),new Error(`RPC error: ${t}`)}if(!i.result){const e=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:2,method:"eth_getUserOperationByHash",params:[n]})}).then(t=>t.json());if(e.result){a&&dg({testnet:r,status:"pending",correlationId:s});return{status:"pending",id:n,message:"Your payment is being processed. This usually takes a few seconds.",sender:e.result.sender}}a&&dg({testnet:r,status:"not_found",correlationId:s});return{status:"not_found",id:n,message:"Payment not found. Please check your transaction ID."}}const{success:o,receipt:c,reason:u}=i.result;if(o){let t,o;if(null==c?void 0:c.logs){const n=r?"baseSepolia":"base",a=og.USDC.addresses[n].toLowerCase(),s=i.result.sender?Gn(i.result.sender):void 0,u=[];for(let t=0;t<c.logs.length;t++){const n=c.logs[t],r=null===(e=n.address)||void 0===e?void 0:e.toLowerCase();if(r===a)try{const e=bi({abi:ug,data:n.data,topics:n.topics});if("Transfer"===e.eventName&&e.args){const n=e.args;if(n.value&&n.to&&n.from){const e=zr(n.value,6);u.push({from:n.from,to:n.to,value:n.value,formattedAmount:e,logIndex:t})}}}catch(t){}}if(u.length>0&&s){const e=u.filter(t=>{try{return mi(t.from,s)}catch(t){return!1}});if(0===e.length)throw new Error(`Unable to find USDC transfer from sender wallet ${i.result.sender}. Found ${u.length} USDC transfer(s) but none originated from the sender wallet.`);if(e.length>1){const t=e.map(t=>`${t.formattedAmount} USDC to ${t.to}`).join(", ");throw new Error(`Found multiple USDC transfers from sender wallet ${i.result.sender}: ${t}. Expected exactly one transfer.`)}t=e[0].formattedAmount,o=e[0].to}}a&&dg({testnet:r,status:"completed",correlationId:s});return{status:"completed",id:n,message:"Payment completed successfully",sender:i.result.sender,amount:t,recipient:o}}let d="Payment could not be completed";u&&(d=u.toLowerCase().includes("insufficient")?"Insufficient USDC balance":u),a&&dg({testnet:r,status:"failed",correlationId:s});return{status:"failed",id:n,message:"Payment failed",sender:i.result.sender,reason:d}}catch(t){console.error("[getPaymentStatus] Error checking status:",t);const e=t instanceof Error?t.message:"Connection error";throw a&&lg({testnet:r,correlationId:s,errorMessage:e}),t}}async function pg(t,e,n,r=!0){const a=function(t,e,n=!0){return ig({appName:"undefined"!=typeof window?window.location.origin:"Base Pay SDK",appChainIds:[t],preference:{telemetry:n,walletUrl:e}})}(cg[e?"baseSepolia":"base"],n,r),s=a.getProvider();try{const e=await async function(t,e){var n;const r=t.getProvider(),a=await r.request({method:"wallet_sendCalls",params:[e]});let s,i;if("string"==typeof a&&a.length>=66)s=a.slice(0,66);else{if("object"!=typeof a||null===a)throw new Error("Unexpected response format from wallet_sendCalls: expected string with length > 66 or object with id, got "+typeof a);{const t=a;if(!("string"==typeof t.id&&t.id.length>=66))throw new Error(`Could not extract transaction hash from object response. Available fields: ${Object.keys(t).join(", ")}`);s=t.id.slice(0,66),(null===(n=t.capabilities)||void 0===n?void 0:n.dataCallback)&&(i=t.capabilities.dataCallback)}}return{transactionHash:s,payerInfoResponses:i}}(a,t);return e}finally{await s.disconnect()}}function mg(t,e){const n=function(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new gp({value:t});let[n,r="0"]=t.split(".");const a=n.startsWith("-");if(a&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),0===e)1===Math.round(Number(`.${r}`))&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>e){const[t,a,s]=[r.slice(0,e-1),r.slice(e-1,e),r.slice(e)],i=Math.round(Number(`${a}.${s}`));r=i>9?`${BigInt(t)+BigInt(1)}0`.padStart(t.length+1,"0"):`${t}${i}`,r.length>e&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,e)}else r=r.padEnd(e,"0");return BigInt(`${a?"-":""}${n}${r}`)}(e,og.USDC.decimals);return yr({abi:ug,functionName:"transfer",args:[t,n]})}function hg(t,e,n,r){return function(t,e,n){const r=e?"baseSepolia":"base",a=cg[r],s={to:og.USDC.addresses[r],data:t,value:"0x0"},i={};return n&&n.requests.length>0&&(i.dataCallback=Object.assign({requests:n.requests.map(t=>{var e;return{type:t.type,optional:null!==(e=t.optional)&&void 0!==e&&e}})},n.callbackURL&&{callbackURL:n.callbackURL})),{version:"2.0.0",chainId:a,calls:[s],capabilities:i}}(mg(t,e),n,r)}async function bg(t){var e;const{amount:n,to:r,testnet:a=!1,payerInfo:s,walletUrl:i,telemetry:o=!0}=t,c=crypto.randomUUID();o&&(({amount:t,testnet:e,correlationId:n})=>{tm("payment.pay.started",{action:Xp.process,componentType:Qp.unknown,method:"pay",correlationId:n,signerType:"app-sdk",amount:t,testnet:e},$p.high)})({amount:n,testnet:a,correlationId:c});try{!function(t,e){if("string"!=typeof t)throw new Error("Invalid amount: must be a string");const n=parseFloat(t);if(isNaN(n))throw new Error("Invalid amount: must be a valid number");if(n<=0)throw new Error("Invalid amount: must be greater than 0");const r=t.indexOf(".");if(-1!==r&&t.length-r-1>e)throw new Error(`Invalid amount: pay only supports up to ${e} decimal places`)}(n,6);const t=function(t){if(!t)throw new Error("Invalid address: address is required");try{return Gn(t)}catch(t){throw new Error("Invalid address: must be a valid Ethereum address")}}(r),e=hg(t,n,a,s),u=await pg(e,a,i,o);return o&&(({amount:t,testnet:e,correlationId:n})=>{tm("payment.pay.completed",{action:Xp.process,componentType:Qp.unknown,method:"pay",correlationId:n,signerType:"app-sdk",amount:t,testnet:e},$p.high)})({amount:n,testnet:a,correlationId:c}),{success:!0,id:u.transactionHash,amount:n,to:t,payerInfoResponses:u.payerInfoResponses}}catch(t){let r="Unknown error occurred";if(t instanceof Error)r=t.message;else if("string"==typeof t)r=t;else if(t&&"object"==typeof t){const n=t;"string"==typeof(null==n?void 0:n.message)?r=n.message:"string"==typeof(null===(e=null==n?void 0:n.error)||void 0===e?void 0:e.message)?r=n.error.message:"string"==typeof(null==n?void 0:n.reason)&&(r=n.reason)}throw o&&(({amount:t,testnet:e,correlationId:n,errorMessage:r})=>{tm("payment.pay.error",{action:Xp.error,componentType:Qp.unknown,method:"pay",correlationId:n,signerType:"app-sdk",amount:t,testnet:e,errorMessage:r},$p.high)})({amount:n,testnet:a,correlationId:c,errorMessage:r}),t}}const yg={pay:bg,getPaymentStatus:fg,constants:{CHAIN_IDS:cg,TOKENS:og},types:{}};"undefined"!=typeof window&&(window.base=yg,window.createStartaleAccountSDK=ig),t.CHAIN_IDS=cg,t.TOKENS=og,t.base=yg,t.createStartaleAccountSDK=ig,t.getCryptoKeyAccount=Cy,t.getPaymentStatus=fg,t.pay=bg,t.removeCryptoKey=async function(){const t=await Sy();t&&(await Ey.removeItem(Wo(bl(t.publicKey),1)),await Ey.removeItem(Ay))}});
|
|
33
|
+
const iE=nE;function sE(t){const{challenge:e,crossOrigin:n,extraClientData:r,flag:a,origin:i,rpId:s,signCount:o,userVerification:c="required"}=t,u=function(t={}){const{flag:e=5,rpId:n=window.location.hostname,signCount:r=0}=t;return fl(gf(gl(n)),yl(e,{size:1}),yl(r,{size:4}))}({flag:a,rpId:s,signCount:o}),d=function(t){const{challenge:e,crossOrigin:n=!1,extraClientData:r,origin:a=window.location.origin}=t;return JSON.stringify({type:"webauthn.get",challenge:tE(e,{url:!0,pad:!1}),origin:a,crossOrigin:n,...r})}({challenge:e,crossOrigin:n,extraClientData:r,origin:i}),l=gf(gl(d)),f=d.indexOf('"challenge"'),h=d.indexOf('"type"');return{metadata:{authenticatorData:u,clientDataJSON:d,challengeIndex:f,typeIndex:h,userVerificationRequired:"required"===c},payload:fl(u,l)}}Uint8Array.from([105,171,180,181,160,222,75,198,42,42,32,31,141,37,186,233]);const oE=[{inputs:[{name:"preOpGas",type:"uint256"},{name:"paid",type:"uint256"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"targetSuccess",type:"bool"},{name:"targetResult",type:"bytes"}],name:"ExecutionResult",type:"error"},{inputs:[{name:"opIndex",type:"uint256"},{name:"reason",type:"string"}],name:"FailedOp",type:"error"},{inputs:[{name:"sender",type:"address"}],name:"SenderAddressResult",type:"error"},{inputs:[{name:"aggregator",type:"address"}],name:"SignatureValidationFailed",type:"error"},{inputs:[{components:[{name:"preOpGas",type:"uint256"},{name:"prefund",type:"uint256"},{name:"sigFailed",type:"bool"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"paymasterContext",type:"bytes"}],name:"returnInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"senderInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"factoryInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"paymasterInfo",type:"tuple"}],name:"ValidationResult",type:"error"},{inputs:[{components:[{name:"preOpGas",type:"uint256"},{name:"prefund",type:"uint256"},{name:"sigFailed",type:"bool"},{name:"validAfter",type:"uint48"},{name:"validUntil",type:"uint48"},{name:"paymasterContext",type:"bytes"}],name:"returnInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"senderInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"factoryInfo",type:"tuple"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"paymasterInfo",type:"tuple"},{components:[{name:"aggregator",type:"address"},{components:[{name:"stake",type:"uint256"},{name:"unstakeDelaySec",type:"uint256"}],name:"stakeInfo",type:"tuple"}],name:"aggregatorInfo",type:"tuple"}],name:"ValidationResultWithAggregation",type:"error"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"factory",type:"address"},{indexed:!1,name:"paymaster",type:"address"}],name:"AccountDeployed",type:"event"},{anonymous:!1,inputs:[],name:"BeforeExecution",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalDeposit",type:"uint256"}],name:"Deposited",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"aggregator",type:"address"}],name:"SignatureAggregatorChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalStaked",type:"uint256"},{indexed:!1,name:"unstakeDelaySec",type:"uint256"}],name:"StakeLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawTime",type:"uint256"}],name:"StakeUnlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"StakeWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"paymaster",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"success",type:"bool"},{indexed:!1,name:"actualGasCost",type:"uint256"},{indexed:!1,name:"actualGasUsed",type:"uint256"}],name:"UserOperationEvent",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"revertReason",type:"bytes"}],name:"UserOperationRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[],name:"SIG_VALIDATION_FAILED",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"initCode",type:"bytes"},{name:"sender",type:"address"},{name:"paymasterAndData",type:"bytes"}],name:"_validateSenderAndPaymaster",outputs:[],stateMutability:"view",type:"function"},{inputs:[{name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"depositTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"",type:"address"}],name:"deposits",outputs:[{name:"deposit",type:"uint112"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"getDepositInfo",outputs:[{components:[{name:"deposit",type:"uint112"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],name:"info",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{name:"sender",type:"address"},{name:"key",type:"uint192"}],name:"getNonce",outputs:[{name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"initCode",type:"bytes"}],name:"getSenderAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"getUserOpHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOps",type:"tuple[]"},{name:"aggregator",type:"address"},{name:"signature",type:"bytes"}],name:"opsPerAggregator",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleAggregatedOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"ops",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"key",type:"uint192"}],name:"incrementNonce",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"callData",type:"bytes"},{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"paymaster",type:"address"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"}],name:"mUserOp",type:"tuple"},{name:"userOpHash",type:"bytes32"},{name:"prefund",type:"uint256"},{name:"contextOffset",type:"uint256"},{name:"preOpGas",type:"uint256"}],name:"opInfo",type:"tuple"},{name:"context",type:"bytes"}],name:"innerHandleOp",outputs:[{name:"actualGasCost",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"",type:"address"},{name:"",type:"uint192"}],name:"nonceSequenceNumber",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"op",type:"tuple"},{name:"target",type:"address"},{name:"targetCallData",type:"bytes"}],name:"simulateHandleOp",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"simulateValidation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"},{name:"withdrawAmount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];function cE(t){const{authorization:e,factory:n,factoryData:r}=t;if("0x7702"===n||"0x7702000000000000000000000000000000000000"===n){if(!e)return"0x7702000000000000000000000000000000000000";return Sm([e.address,r??"0x"])}return n?Sm([n,r??"0x"]):"0x"}function uE(t){const{callGasLimit:e,callData:n,maxPriorityFeePerGas:r,maxFeePerGas:a,paymaster:i,paymasterData:s,paymasterPostOpGasLimit:o,paymasterVerificationGasLimit:c,sender:u,signature:d="0x",verificationGasLimit:l}=t;return{accountGasLimits:Sm([Kp(im(l||0n),{size:16}),Kp(im(e||0n),{size:16})]),callData:n,initCode:cE(t),gasFees:Sm([Kp(im(r||0n),{size:16}),Kp(im(a||0n),{size:16})]),nonce:t.nonce??0n,paymasterAndData:i?Sm([i,Kp(im(c||0n),{size:16}),Kp(im(o||0n),{size:16}),s||"0x"]):"0x",preVerificationGas:t.preVerificationGas??0n,sender:u,signature:d}}const dE={PackedUserOperation:[{type:"address",name:"sender"},{type:"uint256",name:"nonce"},{type:"bytes",name:"initCode"},{type:"bytes",name:"callData"},{type:"bytes32",name:"accountGasLimits"},{type:"uint256",name:"preVerificationGas"},{type:"bytes32",name:"gasFees"},{type:"bytes",name:"paymasterAndData"}]};function lE(t){const{chainId:e,entryPointAddress:n,entryPointVersion:r}=t,a=t.userOperation,{authorization:i,callData:s="0x",callGasLimit:o,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:d,paymasterAndData:l="0x",preVerificationGas:f,sender:h,verificationGasLimit:p}=a;if("0.8"===r)return Gw(function(t){const{chainId:e,entryPointAddress:n,userOperation:r}=t,a=uE(r);return{types:dE,primaryType:"PackedUserOperation",domain:{name:"ERC4337",version:"1",chainId:e,verifyingContract:n},message:a}}({chainId:e,entryPointAddress:n,userOperation:a}));const m=(()=>{if("0.6"===r){const t=a.initCode?.slice(0,42),e=a.initCode?.slice(42),n=cE({authorization:i,factory:t,factoryData:e});return Um([{type:"address"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"uint256"},{type:"bytes32"}],[h,d,pm(n),pm(s),o,p,f,c,u,pm(l)])}if("0.7"===r){const t=uE(a);return Um([{type:"address"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"},{type:"bytes32"},{type:"uint256"},{type:"bytes32"},{type:"bytes32"}],[t.sender,t.nonce,pm(t.initCode),pm(t.callData),t.accountGasLimits,t.preVerificationGas,t.gasFees,pm(t.paymasterAndData)])}throw new Error(`entryPointVersion "${r}" not supported.`)})();return pm(Um([{type:"bytes32"},{type:"address"},{type:"uint256"}],[pm(m),n,BigInt(e)]))}class fE extends hp{constructor({cause:t}){super("Smart Account is not deployed.",{cause:t,metaMessages:["This could arise when:","- No `factory`/`factoryData` or `initCode` properties are provided for Smart Account deployment.","- An incorrect `sender` address is provided."],name:"AccountNotDeployedError"})}}Object.defineProperty(fE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa20/});class hE extends hp{constructor({cause:t,data:e,message:n}={}){const r=n?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}Object.defineProperty(hE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32521}),Object.defineProperty(hE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class pE extends hp{constructor({cause:t}){super("Failed to send funds to beneficiary.",{cause:t,name:"FailedToSendToBeneficiaryError"})}}Object.defineProperty(pE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa91/});class mE extends hp{constructor({cause:t}){super("Gas value overflowed.",{cause:t,metaMessages:["This could arise when:","- one of the gas values exceeded 2**120 (uint120)"].filter(Boolean),name:"GasValuesOverflowError"})}}Object.defineProperty(mE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa94/});class yE extends hp{constructor({cause:t}){super("The `handleOps` function was called by the Bundler with a gas limit too low.",{cause:t,name:"HandleOpsOutOfGasError"})}}Object.defineProperty(yE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa95/});class gE extends hp{constructor({cause:t,factory:e,factoryData:n,initCode:r}){super("Failed to simulate deployment for Smart Account.",{cause:t,metaMessages:["This could arise when:","- Invalid `factory`/`factoryData` or `initCode` properties are present","- Smart Account deployment execution ran out of gas (low `verificationGasLimit` value)","- Smart Account deployment execution reverted with an error\n",e&&`factory: ${e}`,n&&`factoryData: ${n}`,r&&`initCode: ${r}`].filter(Boolean),name:"InitCodeFailedError"})}}Object.defineProperty(gE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa13/});class bE extends hp{constructor({cause:t,factory:e,factoryData:n,initCode:r}){super("Smart Account initialization implementation did not create an account.",{cause:t,metaMessages:["This could arise when:","- `factory`/`factoryData` or `initCode` properties are invalid","- Smart Account initialization implementation is incorrect\n",e&&`factory: ${e}`,n&&`factoryData: ${n}`,r&&`initCode: ${r}`].filter(Boolean),name:"InitCodeMustCreateSenderError"})}}Object.defineProperty(bE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa15/});class vE extends hp{constructor({cause:t,factory:e,factoryData:n,initCode:r,sender:a}){super("Smart Account initialization implementation does not return the expected sender.",{cause:t,metaMessages:["This could arise when:","Smart Account initialization implementation does not return a sender address\n",e&&`factory: ${e}`,n&&`factoryData: ${n}`,r&&`initCode: ${r}`,a&&`sender: ${a}`].filter(Boolean),name:"InitCodeMustReturnSenderError"})}}Object.defineProperty(vE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa14/});class wE extends hp{constructor({cause:t}){super("Smart Account does not have sufficient funds to execute the User Operation.",{cause:t,metaMessages:["This could arise when:","- the Smart Account does not have sufficient funds to cover the required prefund, or","- a Paymaster was not provided"].filter(Boolean),name:"InsufficientPrefundError"})}}Object.defineProperty(wE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa21/});class xE extends hp{constructor({cause:t}){super("Bundler attempted to call an invalid function on the EntryPoint.",{cause:t,name:"InternalCallOnlyError"})}}Object.defineProperty(xE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa92/});class kE extends hp{constructor({cause:t}){super("Bundler used an invalid aggregator for handling aggregated User Operations.",{cause:t,name:"InvalidAggregatorError"})}}Object.defineProperty(kE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa96/});class AE extends hp{constructor({cause:t,nonce:e}){super("Invalid Smart Account nonce used for User Operation.",{cause:t,metaMessages:[e&&`nonce: ${e}`].filter(Boolean),name:"InvalidAccountNonceError"})}}Object.defineProperty(AE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa25/});class IE extends hp{constructor({cause:t}){super("Bundler has not set a beneficiary address.",{cause:t,name:"InvalidBeneficiaryError"})}}Object.defineProperty(IE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa90/});class EE extends hp{constructor({cause:t}){super("Invalid fields set on User Operation.",{cause:t,name:"InvalidFieldsError"})}}Object.defineProperty(EE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class PE extends hp{constructor({cause:t,paymasterAndData:e}){super("Paymaster properties provided are invalid.",{cause:t,metaMessages:["This could arise when:","- the `paymasterAndData` property is of an incorrect length\n",e&&`paymasterAndData: ${e}`].filter(Boolean),name:"InvalidPaymasterAndDataError"})}}Object.defineProperty(PE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa93/});class SE extends hp{constructor({cause:t}){super("Paymaster deposit for the User Operation is too low.",{cause:t,metaMessages:["This could arise when:","- the Paymaster has deposited less than the expected amount via the `deposit` function"].filter(Boolean),name:"PaymasterDepositTooLowError"})}}Object.defineProperty(SE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32508}),Object.defineProperty(SE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa31/});class _E extends hp{constructor({cause:t}){super("The `validatePaymasterUserOp` function on the Paymaster reverted.",{cause:t,name:"PaymasterFunctionRevertedError"})}}Object.defineProperty(_E,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa33/});class OE extends hp{constructor({cause:t}){super("The Paymaster contract has not been deployed.",{cause:t,name:"PaymasterNotDeployedError"})}}Object.defineProperty(OE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa30/});class TE extends hp{constructor({cause:t}){super("UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.",{cause:t,name:"PaymasterRateLimitError"})}}Object.defineProperty(TE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32504});class BE extends hp{constructor({cause:t}){super("UserOperation rejected because paymaster (or signature aggregator) is throttled/banned.",{cause:t,name:"PaymasterStakeTooLowError"})}}Object.defineProperty(BE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32505});class ME extends hp{constructor({cause:t}){super("Paymaster `postOp` function reverted.",{cause:t,name:"PaymasterPostOpFunctionRevertedError"})}}Object.defineProperty(ME,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa50/});class CE extends hp{constructor({cause:t,factory:e,factoryData:n,initCode:r}){super("Smart Account has already been deployed.",{cause:t,metaMessages:["Remove the following properties and try again:",e&&"`factory`",n&&"`factoryData`",r&&"`initCode`"].filter(Boolean),name:"SenderAlreadyConstructedError"})}}Object.defineProperty(CE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa10/});class NE extends hp{constructor({cause:t}){super("UserOperation rejected because account signature check failed (or paymaster signature, if the paymaster uses its data as signature).",{cause:t,name:"SignatureCheckFailedError"})}}Object.defineProperty(NE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32507});class jE extends hp{constructor({cause:t}){super("The `validateUserOp` function on the Smart Account reverted.",{cause:t,name:"SmartAccountFunctionRevertedError"})}}Object.defineProperty(jE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa23/});class RE extends hp{constructor({cause:t}){super("UserOperation rejected because account specified unsupported signature aggregator.",{cause:t,name:"UnsupportedSignatureAggregatorError"})}}Object.defineProperty(RE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32506});class UE extends hp{constructor({cause:t}){super("User Operation expired.",{cause:t,metaMessages:["This could arise when:","- the `validAfter` or `validUntil` values returned from `validateUserOp` on the Smart Account are not satisfied"].filter(Boolean),name:"UserOperationExpiredError"})}}Object.defineProperty(UE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa22/});class LE extends hp{constructor({cause:t}){super("Paymaster for User Operation expired.",{cause:t,metaMessages:["This could arise when:","- the `validAfter` or `validUntil` values returned from `validatePaymasterUserOp` on the Paymaster are not satisfied"].filter(Boolean),name:"UserOperationPaymasterExpiredError"})}}Object.defineProperty(LE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa32/});class zE extends hp{constructor({cause:t}){super("Signature provided for the User Operation is invalid.",{cause:t,metaMessages:["This could arise when:","- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Smart Account"].filter(Boolean),name:"UserOperationSignatureError"})}}Object.defineProperty(zE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa24/});class FE extends hp{constructor({cause:t}){super("Signature provided for the User Operation is invalid.",{cause:t,metaMessages:["This could arise when:","- the `signature` for the User Operation is incorrectly computed, and unable to be verified by the Paymaster"].filter(Boolean),name:"UserOperationPaymasterSignatureError"})}}Object.defineProperty(FE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa34/});class DE extends hp{constructor({cause:t}){super("User Operation rejected by EntryPoint's `simulateValidation` during account creation or validation.",{cause:t,name:"UserOperationRejectedByEntryPointError"})}}Object.defineProperty(DE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32500});class qE extends hp{constructor({cause:t}){super("User Operation rejected by Paymaster's `validatePaymasterUserOp`.",{cause:t,name:"UserOperationRejectedByPaymasterError"})}}Object.defineProperty(qE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32501});class GE extends hp{constructor({cause:t}){super("User Operation rejected with op code validation error.",{cause:t,name:"UserOperationRejectedByOpCodeError"})}}Object.defineProperty(GE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32502});class KE extends hp{constructor({cause:t}){super("UserOperation out of time-range: either wallet or paymaster returned a time-range, and it is already expired (or will expire soon).",{cause:t,name:"UserOperationOutOfTimeRangeError"})}}Object.defineProperty(KE,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32503});class VE extends hp{constructor({cause:t}){super(`An error occurred while executing user operation: ${t?.shortMessage}`,{cause:t,name:"UnknownBundlerError"})}}class ZE extends hp{constructor({cause:t}){super("User Operation verification gas limit exceeded.",{cause:t,metaMessages:["This could arise when:","- the gas used for verification exceeded the `verificationGasLimit`"].filter(Boolean),name:"VerificationGasLimitExceededError"})}}Object.defineProperty(ZE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa40/});class HE extends hp{constructor({cause:t}){super("User Operation verification gas limit is too low.",{cause:t,metaMessages:["This could arise when:","- the `verificationGasLimit` is too low to verify the User Operation"].filter(Boolean),name:"VerificationGasLimitTooLowError"})}}Object.defineProperty(HE,"message",{enumerable:!0,configurable:!0,writable:!0,value:/aa41/});class WE extends hp{constructor(t,{callData:e,callGasLimit:n,docsPath:r,factory:a,factoryData:i,initCode:s,maxFeePerGas:o,maxPriorityFeePerGas:c,nonce:u,paymaster:d,paymasterAndData:l,paymasterData:f,paymasterPostOpGasLimit:h,paymasterVerificationGasLimit:p,preVerificationGas:m,sender:y,signature:g,verificationGasLimit:b}){const v=Py({callData:e,callGasLimit:n,factory:a,factoryData:i,initCode:s,maxFeePerGas:void 0!==o&&`${ky(o)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${ky(c)} gwei`,nonce:u,paymaster:d,paymasterAndData:l,paymasterData:f,paymasterPostOpGasLimit:h,paymasterVerificationGasLimit:p,preVerificationGas:m,sender:y,signature:g,verificationGasLimit:b});super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Request Arguments:",v].filter(Boolean),name:"UserOperationExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class JE extends hp{constructor({hash:t}){super(`User Operation receipt with hash "${t}" could not be found. The User Operation may not have been processed yet.`,{name:"UserOperationReceiptNotFoundError"})}}class YE extends hp{constructor({hash:t}){super(`User Operation with hash "${t}" could not be found.`,{name:"UserOperationNotFoundError"})}}class $E extends hp{constructor({hash:t}){super(`Timed out while waiting for User Operation with hash "${t}" to be confirmed.`,{name:"WaitForUserOperationReceiptTimeoutError"})}}const QE=[hE,EE,SE,TE,BE,NE,RE,KE,DE,qE,GE];function XE(t,{calls:e,docsPath:n,...r}){const a=(()=>{const n=function(t,e){const n=(t.details||"").toLowerCase();if(fE.message.test(n))return new fE({cause:t});if(pE.message.test(n))return new pE({cause:t});if(mE.message.test(n))return new mE({cause:t});if(yE.message.test(n))return new yE({cause:t});if(gE.message.test(n))return new gE({cause:t,factory:e.factory,factoryData:e.factoryData,initCode:e.initCode});if(bE.message.test(n))return new bE({cause:t,factory:e.factory,factoryData:e.factoryData,initCode:e.initCode});if(vE.message.test(n))return new vE({cause:t,factory:e.factory,factoryData:e.factoryData,initCode:e.initCode,sender:e.sender});if(wE.message.test(n))return new wE({cause:t});if(xE.message.test(n))return new xE({cause:t});if(AE.message.test(n))return new AE({cause:t,nonce:e.nonce});if(kE.message.test(n))return new kE({cause:t});if(IE.message.test(n))return new IE({cause:t});if(PE.message.test(n))return new PE({cause:t});if(SE.message.test(n))return new SE({cause:t});if(_E.message.test(n))return new _E({cause:t});if(OE.message.test(n))return new OE({cause:t});if(ME.message.test(n))return new ME({cause:t});if(jE.message.test(n))return new jE({cause:t});if(CE.message.test(n))return new CE({cause:t,factory:e.factory,factoryData:e.factoryData,initCode:e.initCode});if(UE.message.test(n))return new UE({cause:t});if(LE.message.test(n))return new LE({cause:t});if(FE.message.test(n))return new FE({cause:t});if(zE.message.test(n))return new zE({cause:t});if(ZE.message.test(n))return new ZE({cause:t});if(HE.message.test(n))return new HE({cause:t});const r=t.walk(t=>QE.some(e=>e.code===t.code));if(r){if(r.code===hE.code)return new hE({cause:t,data:r.data,message:r.details});if(r.code===EE.code)return new EE({cause:t});if(r.code===SE.code)return new SE({cause:t});if(r.code===TE.code)return new TE({cause:t});if(r.code===BE.code)return new BE({cause:t});if(r.code===NE.code)return new NE({cause:t});if(r.code===RE.code)return new RE({cause:t});if(r.code===KE.code)return new KE({cause:t});if(r.code===DE.code)return new DE({cause:t});if(r.code===qE.code)return new qE({cause:t});if(r.code===GE.code)return new GE({cause:t})}return new VE({cause:t})}(t,r);if(e&&n instanceof hE){const t=function(t){let e;return t.walk(t=>{const n=t;if("string"==typeof n.data||"string"==typeof n.data?.revertData||!(n instanceof hp)&&"string"==typeof n.message){const t=(n.data?.revertData||n.data||n.message).match?.(/(0x[A-Za-z0-9]*)/);if(t)return e=t[1],!0}return!1}),e}(n),r=e?.filter(t=>t.abi);if(t&&r.length>0)return function(t){const{calls:e,revertData:n}=t,{abi:r,functionName:a,args:i,to:s}=(()=>{const t=e?.filter(t=>Boolean(t.abi));if(1===t.length)return t[0];const r=t.filter(t=>{try{return Boolean(my({abi:t.abi,data:n}))}catch{return!1}});return 1===r.length?r[0]:{abi:[],functionName:t.reduce((t,e)=>`${t?`${t} | `:""}${e.functionName}`,""),args:void 0,to:void 0}})(),o="0x"===n?new Ly({functionName:a}):new Uy({abi:r,data:n,functionName:a});return new Ry(o,{abi:r,args:i,contractAddress:s,functionName:a})}({calls:r,revertData:t})}return n})();return new WE(a,{docsPath:n,...r})}function tP(t){const e={};var n;return void 0!==t.callData&&(e.callData=t.callData),void 0!==t.callGasLimit&&(e.callGasLimit=im(t.callGasLimit)),void 0!==t.factory&&(e.factory=t.factory),void 0!==t.factoryData&&(e.factoryData=t.factoryData),void 0!==t.initCode&&(e.initCode=t.initCode),void 0!==t.maxFeePerGas&&(e.maxFeePerGas=im(t.maxFeePerGas)),void 0!==t.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=im(t.maxPriorityFeePerGas)),void 0!==t.nonce&&(e.nonce=im(t.nonce)),void 0!==t.paymaster&&(e.paymaster=t.paymaster),void 0!==t.paymasterAndData&&(e.paymasterAndData=t.paymasterAndData||"0x"),void 0!==t.paymasterData&&(e.paymasterData=t.paymasterData),void 0!==t.paymasterPostOpGasLimit&&(e.paymasterPostOpGasLimit=im(t.paymasterPostOpGasLimit)),void 0!==t.paymasterVerificationGasLimit&&(e.paymasterVerificationGasLimit=im(t.paymasterVerificationGasLimit)),void 0!==t.preVerificationGas&&(e.preVerificationGas=im(t.preVerificationGas)),void 0!==t.sender&&(e.sender=t.sender),void 0!==t.signature&&(e.signature=t.signature),void 0!==t.verificationGasLimit&&(e.verificationGasLimit=im(t.verificationGasLimit)),void 0!==t.authorization&&(e.eip7702Auth={address:(n=t.authorization).address,chainId:im(n.chainId),nonce:im(n.nonce),r:n.r?im(BigInt(n.r),{size:32}):Kp("0x",{size:32}),s:n.s?im(BigInt(n.s),{size:32}):Kp("0x",{size:32}),yParity:n.yParity?im(n.yParity,{size:1}):Kp("0x",{size:32})}),e}async function eP(t,e){const{chainId:n,entryPointAddress:r,context:a,...i}=e,s=tP(i),{paymasterPostOpGasLimit:o,paymasterVerificationGasLimit:c,...u}=await t.request({method:"pm_getPaymasterData",params:[{...s,callGasLimit:s.callGasLimit??"0x0",verificationGasLimit:s.verificationGasLimit??"0x0",preVerificationGas:s.preVerificationGas??"0x0"},r,im(n),a]});return{...u,...o&&{paymasterPostOpGasLimit:Qp(o)},...c&&{paymasterVerificationGasLimit:Qp(c)}}}async function nP(t,e){const{chainId:n,entryPointAddress:r,context:a,...i}=e,s=tP(i),{paymasterPostOpGasLimit:o,paymasterVerificationGasLimit:c,...u}=await t.request({method:"pm_getPaymasterStubData",params:[{...s,callGasLimit:s.callGasLimit??"0x0",verificationGasLimit:s.verificationGasLimit??"0x0",preVerificationGas:s.preVerificationGas??"0x0"},r,im(n),a]});return{...u,...o&&{paymasterPostOpGasLimit:Qp(o)},...c&&{paymasterVerificationGasLimit:Qp(c)}}}const rP=["factory","fees","gas","paymaster","nonce","signature","authorization"];async function aP(t,e){const n=e,{account:r=t.account,parameters:a=rP,stateOverride:i}=n;if(!r)throw new Pv;const s=Ym(r),o=t,c=n.paymaster??o?.paymaster,u="string"==typeof c?c:void 0,{getPaymasterStubData:d,getPaymasterData:l}=(()=>{if(!0===c)return{getPaymasterStubData:t=>ip(o,nP,"getPaymasterStubData")(t),getPaymasterData:t=>ip(o,eP,"getPaymasterData")(t)};if("object"==typeof c){const{getPaymasterStubData:t,getPaymasterData:e}=c;return{getPaymasterStubData:e&&t?t:e,getPaymasterData:e&&t?e:void 0}}return{getPaymasterStubData:void 0,getPaymasterData:void 0}})(),f=n.paymasterContext?n.paymasterContext:o?.paymasterContext;let h={...n,paymaster:u,sender:s.address};const[p,m,y,g,b]=await Promise.all([(async()=>n.calls?s.encodeCalls(n.calls.map(t=>{const e=t;return e.abi?{data:Qm(e),to:e.to,value:e.value}:e})):n.callData)(),(async()=>{if(!a.includes("factory"))return;if(n.initCode)return{initCode:n.initCode};if(n.factory&&n.factoryData)return{factory:n.factory,factoryData:n.factoryData};const{factory:t,factoryData:e}=await s.getFactoryArgs();return"0.6"===s.entryPoint.version?{initCode:t&&e?Sm([t,e]):void 0}:{factory:t,factoryData:e}})(),(async()=>{if(a.includes("fees")){if("bigint"==typeof n.maxFeePerGas&&"bigint"==typeof n.maxPriorityFeePerGas)return h;if(o?.userOperation?.estimateFeesPerGas){const t=await o.userOperation.estimateFeesPerGas({account:s,bundlerClient:o,userOperation:h});return{...h,...t}}try{const e=o.client??t,r=await ip(e,cb,"estimateFeesPerGas")({chain:e.chain,type:"eip1559"});return{maxFeePerGas:"bigint"==typeof n.maxFeePerGas?n.maxFeePerGas:BigInt(2n*r.maxFeePerGas),maxPriorityFeePerGas:"bigint"==typeof n.maxPriorityFeePerGas?n.maxPriorityFeePerGas:BigInt(2n*r.maxPriorityFeePerGas)}}catch{return}}})(),(async()=>{if(a.includes("nonce"))return"bigint"==typeof n.nonce?n.nonce:s.getNonce()})(),(async()=>{if(a.includes("authorization")){if("object"==typeof n.authorization)return n.authorization;if(s.authorization&&!await s.isDeployed()){const t=await async function(t,e){const{account:n=t.account,chainId:r,nonce:a}=e;if(!n)throw new Pv({docsPath:"/docs/eip7702/prepareAuthorization"});const i=Ym(n),s=(()=>{if(e.executor)return"self"===e.executor?e.executor:Ym(e.executor)})(),o={address:e.contractAddress??e.address,chainId:r,nonce:a};return void 0===o.chainId&&(o.chainId=t.chain?.id??await ip(t,Ib,"getChainId")({})),void 0===o.nonce&&(o.nonce=await ip(t,db,"getTransactionCount")({address:i.address,blockTag:"pending"}),("self"===s||s?.address&&Ob(s.address,i.address))&&(o.nonce+=1)),o}(s.client,s.authorization);return{...t,r:"0xfffffffffffffffffffffffffffffff000000000000000000000000000000000",s:"0x7aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",yParity:1}}}})()]);let v;async function w(){if(v)return v;if(t.chain)return t.chain.id;const e=await ip(t,Ib,"getChainId")({});return v=e,v}void 0!==p&&(h.callData=p),void 0!==m&&(h={...h,...m}),void 0!==y&&(h={...h,...y}),void 0!==g&&(h.nonce=g),void 0!==b&&(h.authorization=b),a.includes("signature")&&(void 0!==n.signature?h.signature=n.signature:h.signature=await s.getStubSignature(h)),"0.6"!==s.entryPoint.version||h.initCode||(h.initCode="0x");let x=!1;if(a.includes("paymaster")&&d&&!u&&!n.paymasterAndData){const{isFinal:t=!1,sponsor:e,...n}=await d({chainId:await w(),entryPointAddress:s.entryPoint.address,context:f,...h});x=t,h={...h,...n}}if("0.6"!==s.entryPoint.version||h.paymasterAndData||(h.paymasterAndData="0x"),a.includes("gas")){if(s.userOperation?.estimateGas){const t=await s.userOperation.estimateGas(h);h={...h,...t}}if(void 0===h.callGasLimit||void 0===h.preVerificationGas||void 0===h.verificationGasLimit||h.paymaster&&void 0===h.paymasterPostOpGasLimit||h.paymaster&&void 0===h.paymasterVerificationGasLimit){const t=await ip(o,iP,"estimateUserOperationGas")({account:s,callGasLimit:0n,preVerificationGas:0n,verificationGasLimit:0n,stateOverride:i,...h.paymaster?{paymasterPostOpGasLimit:0n,paymasterVerificationGasLimit:0n}:{},...h});h={...h,callGasLimit:h.callGasLimit??t.callGasLimit,preVerificationGas:h.preVerificationGas??t.preVerificationGas,verificationGasLimit:h.verificationGasLimit??t.verificationGasLimit,paymasterPostOpGasLimit:h.paymasterPostOpGasLimit??t.paymasterPostOpGasLimit,paymasterVerificationGasLimit:h.paymasterVerificationGasLimit??t.paymasterVerificationGasLimit}}}if(a.includes("paymaster")&&l&&!u&&!n.paymasterAndData&&!x){const t=await l({chainId:await w(),entryPointAddress:s.entryPoint.address,context:f,...h});h={...h,...t}}return delete h.calls,delete h.parameters,delete h.paymasterContext,"string"!=typeof h.paymaster&&delete h.paymaster,h}async function iP(t,e){const{account:n=t.account,entryPointAddress:r,stateOverride:a}=e;if(!n&&!e.sender)throw new Pv;const i=n?Ym(n):void 0,s=Hg(a),o=i?await ip(t,aP,"prepareUserOperation")({...e,parameters:["authorization","factory","nonce","paymaster","signature"]}):e;try{const e=[tP(o),r??i?.entryPoint?.address];return function(t){const e={};return t.callGasLimit&&(e.callGasLimit=BigInt(t.callGasLimit)),t.preVerificationGas&&(e.preVerificationGas=BigInt(t.preVerificationGas)),t.verificationGasLimit&&(e.verificationGasLimit=BigInt(t.verificationGasLimit)),t.paymasterPostOpGasLimit&&(e.paymasterPostOpGasLimit=BigInt(t.paymasterPostOpGasLimit)),t.paymasterVerificationGasLimit&&(e.paymasterVerificationGasLimit=BigInt(t.paymasterVerificationGasLimit)),e}(await t.request({method:"eth_estimateUserOperationGas",params:s?[...e,s]:[...e]}))}catch(t){const n=e.calls;throw XE(t,{...o,...n?{calls:n}:{}})}}function sP(t){const e={...t};return t.callGasLimit&&(e.callGasLimit=BigInt(t.callGasLimit)),t.maxFeePerGas&&(e.maxFeePerGas=BigInt(t.maxFeePerGas)),t.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=BigInt(t.maxPriorityFeePerGas)),t.nonce&&(e.nonce=BigInt(t.nonce)),t.paymasterPostOpGasLimit&&(e.paymasterPostOpGasLimit=BigInt(t.paymasterPostOpGasLimit)),t.paymasterVerificationGasLimit&&(e.paymasterVerificationGasLimit=BigInt(t.paymasterVerificationGasLimit)),t.preVerificationGas&&(e.preVerificationGas=BigInt(t.preVerificationGas)),t.verificationGasLimit&&(e.verificationGasLimit=BigInt(t.verificationGasLimit)),e}async function oP(t,{hash:e}){const n=await t.request({method:"eth_getUserOperationReceipt",params:[e]},{dedupe:!0});if(!n)throw new JE({hash:e});return function(t){const e={...t};return t.actualGasCost&&(e.actualGasCost=BigInt(t.actualGasCost)),t.actualGasUsed&&(e.actualGasUsed=BigInt(t.actualGasUsed)),t.logs&&(e.logs=t.logs.map(t=>Nb(t))),t.receipt&&(e.receipt=Tv(e.receipt)),e}(n)}function cP(t){return{estimateUserOperationGas:e=>iP(t,e),getChainId:()=>Ib(t),getSupportedEntryPoints:()=>function(t){return t.request({method:"eth_supportedEntryPoints"})}(t),getUserOperation:e=>async function(t,{hash:e}){const n=await t.request({method:"eth_getUserOperationByHash",params:[e]},{dedupe:!0});if(!n)throw new YE({hash:e});const{blockHash:r,blockNumber:a,entryPoint:i,transactionHash:s,userOperation:o}=n;return{blockHash:r,blockNumber:BigInt(a),entryPoint:i,transactionHash:s,userOperation:sP(o)}}(t,e),getUserOperationReceipt:e=>oP(t,e),prepareUserOperation:e=>aP(t,e),sendUserOperation:e=>async function(t,e){const{account:n=t.account,entryPointAddress:r}=e;if(!n&&!e.sender)throw new Pv;const a=n?Ym(n):void 0,i=a?await ip(t,aP,"prepareUserOperation")(e):e,s=e.signature||await(a?.signUserOperation?.(i)),o=tP({...i,signature:s});try{return await t.request({method:"eth_sendUserOperation",params:[o,r??a?.entryPoint?.address]},{retryCount:0})}catch(t){const n=e.calls;throw XE(t,{...i,...n?{calls:n}:{},signature:s})}}(t,e),waitForUserOperationReceipt:e=>function(t,e){const{hash:n,pollingInterval:r=t.pollingInterval,retryCount:a,timeout:i=12e4}=e;let s=0;const o=yy(["waitForUserOperationReceipt",t.uid,n]);return new Promise((e,c)=>{const u=gv(o,{resolve:e,reject:c},e=>{const o=t=>{c(),t(),u()},c=vv(async()=>{a&&s>=a&&o(()=>e.reject(new $E({hash:n})));try{const r=await ip(t,oP,"getUserOperationReceipt")({hash:n});o(()=>e.resolve(r))}catch(t){const n=t;"UserOperationReceiptNotFoundError"!==n.name&&o(()=>e.reject(n))}s++},{emitOnBegin:!0,interval:r});return i&&setTimeout(()=>o(()=>e.reject(new $E({hash:n}))),i),c})})}(t,e)}}const uP={transaction:function(t,e){return function(t){return"deposit"===t.type||void 0!==t.sourceHash}(t)?function(t){!function(t){const{from:e,to:n}=t;if(e&&!Pm(e))throw new vm({address:e});if(n&&!Pm(n))throw new vm({address:n})}(t);const{sourceHash:e,data:n,from:r,gas:a,isSystemTx:i,mint:s,to:o,value:c}=t,u=[e,r,o??"0x",s?nm(s):"0x",c?nm(c):"0x",a?nm(a):"0x",i?"0x1":"0x",n??"0x"];return _m(["0x7e",kg(u)])}(t):kw(t,e)}};const dP={blockTime:2e3,contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:{block:ab({format(t){const e=t.transactions?.map(t=>{if("string"==typeof t)return t;const e=eb(t);return"0x7e"===e.typeHex&&(e.isSystemTx=t.isSystemTx,e.mint=t.mint?Qp(t.mint):void 0,e.sourceHash=t.sourceHash,e.type="deposit"),e});return{transactions:e,stateRoot:t.stateRoot}}}),transaction:nb({format(t){const e={};return"0x7e"===t.type&&(e.isSystemTx=t.isSystemTx,e.mint=t.mint?Qp(t.mint):void 0,e.sourceHash=t.sourceHash,e.type="deposit"),e}}),transactionReceipt:Bv({format:t=>({l1GasPrice:t.l1GasPrice?Qp(t.l1GasPrice):null,l1GasUsed:t.l1GasUsed?Qp(t.l1GasUsed):null,l1Fee:t.l1Fee?Qp(t.l1Fee):null,l1FeeScalar:t.l1FeeScalar?Number(t.l1FeeScalar):null})})},serializers:uP},lP=1,fP=Mw({...dP,id:8453,name:"Base",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://mainnet.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://basescan.org",apiUrl:"https://api.basescan.org/api"}},contracts:{...dP.contracts,disputeGameFactory:{[lP]:{address:"0x43edB88C4B80fDD2AdFF2412A7BebF9dF42cB40e"}},l2OutputOracle:{[lP]:{address:"0x56315b90c40730925ec5485cf004d835058518A0"}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:5022},portal:{[lP]:{address:"0x49048044D57e1C92A77f79988d21Fa8fAF74E97e",blockCreated:17482143}},l1StandardBridge:{[lP]:{address:"0x3154Cf16ccdb4C6d922629664174b904d80F2C35",blockCreated:17482143}}},sourceId:1}),hP=11155111,pP=Mw({...dP,id:84532,network:"base-sepolia",name:"Base Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia.base.org"]}},blockExplorers:{default:{name:"Basescan",url:"https://sepolia.basescan.org",apiUrl:"https://api-sepolia.basescan.org/api"}},contracts:{...dP.contracts,disputeGameFactory:{[hP]:{address:"0xd6E6dBf4F7EA0ac412fD8b65ED297e64BB7a06E1"}},l2OutputOracle:{[hP]:{address:"0x84457ca9D0163FbC4bbfe4Dfbb20ba46e48DF254"}},portal:{[hP]:{address:"0x49f53e41452c74589e85ca1677426ba426459e85",blockCreated:4446677}},l1StandardBridge:{[hP]:{address:"0xfd0Bf71F60660E2f608ed56e1659C450eB113120",blockCreated:4446677}},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:1059647}},testnet:!0,sourceId:hP}),mP=nh(()=>({})),yP=[{id:fP.id,rpcUrl:fP.rpcUrls.default.http[0],nativeCurrency:{name:fP.nativeCurrency.name,symbol:fP.nativeCurrency.symbol,decimal:fP.nativeCurrency.decimals}},{id:pP.id,rpcUrl:pP.rpcUrls.default.http[0],nativeCurrency:{name:pP.nativeCurrency.name,symbol:pP.nativeCurrency.symbol,decimal:pP.nativeCurrency.decimals}}];function gP(t){t.forEach(t=>{var e,n,r,a,i,s,o,c;let u=t.rpcUrl;if(!u){const e=yP.find(e=>e.id===t.id);e&&(u=e.rpcUrl)}if(!u)return;const d=function(t){const{key:e="public",name:n="Public Client"}=t;return zv({...t,key:e,name:n,type:"publicClient"}).extend(oA)}({chain:Mw({id:t.id,rpcUrls:{default:{http:[u]}},name:null!==(n=null===(e=t.nativeCurrency)||void 0===e?void 0:e.name)&&void 0!==n?n:"",nativeCurrency:{name:null!==(a=null===(r=t.nativeCurrency)||void 0===r?void 0:r.name)&&void 0!==a?a:"",symbol:null!==(s=null===(i=t.nativeCurrency)||void 0===i?void 0:i.symbol)&&void 0!==s?s:"",decimals:null!==(c=null===(o=t.nativeCurrency)||void 0===o?void 0:o.decimal)&&void 0!==c?c:18}}),transport:uA(u)}),l=function(t){const{client:e,key:n="bundler",name:r="Bundler Client",paymaster:a,paymasterContext:i,transport:s,userOperation:o}=t;return Object.assign(zv({...t,chain:t.chain??e?.chain,key:n,name:r,transport:s,type:"bundlerClient"}),{client:e,paymaster:a,paymasterContext:i,userOperation:o}).extend(cP)}({client:d,transport:uA(u)});mP.setState(e=>Object.assign(Object.assign({},e),{[t.id]:{client:d,bundlerClient:l}}))})}function bP(t){var e;return null===(e=mP.getState()[t])||void 0===e?void 0:e.client}const vP=nh(()=>({correlationIds:new Map})),wP=t=>vP.getState().correlationIds.get(t),xP=(t,e)=>{vP.setState(n=>{const r=new Map(n.correlationIds);return r.set(t,e),{correlationIds:r}})},kP=t=>{vP.setState(e=>{const n=new Map(e.correlationIds);return n.delete(t),{correlationIds:n}})},AP=()=>{vP.setState({correlationIds:new Map})};function IP(t){if("object"!=typeof t||null===t)throw l.internal("sub account info is not an object");if(!("address"in t))throw l.internal("sub account is invalid");if("address"in t&&"string"==typeof t.address&&!Pm(t.address))throw l.internal("sub account address is invalid");if("factory"in t&&"string"==typeof t.factory&&!Pm(t.factory))throw l.internal("sub account factory address is invalid");if("factoryData"in t&&"string"==typeof t.factoryData&&!cp(t.factoryData))throw l.internal("sub account factory data is invalid")}function EP(t){switch(t){case"public":return"spki";case"private":return"pkcs8"}}async function PP(t,e){const n=EP(t),r=await crypto.subtle.exportKey(n,e);return a=new Uint8Array(r),[...a].map(t=>t.toString(16).padStart(2,"0")).join("");var a}async function SP(t,e){const n=EP(t),r=function(t){return new Uint8Array(t.match(/.{1,2}/g).map(t=>Number.parseInt(t,16)))}(e).buffer;return await crypto.subtle.importKey(n,r,{name:"ECDH",namedCurve:"P-256"},!0,"private"===t?["deriveKey"]:[])}async function _P(t,e){return async function(t,e){const n=crypto.getRandomValues(new Uint8Array(12));return{iv:n,cipherText:await crypto.subtle.encrypt({name:"AES-GCM",iv:n.buffer},t,(new TextEncoder).encode(e))}}(e,JSON.stringify(t,(t,e)=>{if(!(e instanceof Error))return e;const n=e;return Object.assign(Object.assign({},n.code?{code:n.code}:{}),{message:n.message})}))}async function OP(t,e){return JSON.parse(await async function(t,{iv:e,cipherText:n}){const r=await crypto.subtle.decrypt({name:"AES-GCM",iv:e.buffer},t,n);return(new TextDecoder).decode(r)}(e,t))}async function TP(t,e){const n=Object.assign(Object.assign({},t),{jsonrpc:"2.0",id:crypto.randomUUID()}),r=await window.fetch(e,{method:"POST",body:JSON.stringify(n),mode:"cors",headers:{"Content-Type":"application/json","X-Cbw-Sdk-Version":$f,"X-Cbw-Sdk-Platform":Yf}}),{result:a,error:i}=await r.json();if(i)throw i;return a}function BP(t){return new Promise((e,n)=>{t.oncomplete=t.onsuccess=()=>e(t.result),t.onabort=t.onerror=()=>n(t.error)})}function MP(t,e){const n=indexedDB.open(t);n.onupgradeneeded=()=>n.result.createObjectStore(e);const r=BP(n);return(t,n)=>r.then(r=>n(r.transaction(e,t).objectStore(e)))}let CP;function NP(){return CP||(CP=MP("keyval-store","keyval")),CP}const jP="activeId",RP=function(t,e){const n="undefined"!=typeof indexedDB?MP(t,e):void 0;return{getItem:async t=>{const e=await function(t,e=NP()){return e("readonly",e=>BP(e.get(t)))}(t,n);return e||null},removeItem:async t=>function(t,e=NP()){return e("readwrite",e=>(e.delete(t),BP(e.transaction)))}(t,n),setItem:async(t,e)=>function(t,e,n=NP()){return n("readwrite",n=>(n.put(e,t),BP(n.transaction)))}(t,e,n)}}("base-acc-sdk","keys");async function UP(){const t=await async function(t={}){const{extractable:e=!1}=t,n=await globalThis.crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},e,["sign","verify"]),r=await globalThis.crypto.subtle.exportKey("raw",n.publicKey),a=vf(new Uint8Array(r));return{privateKey:n.privateKey,publicKey:a}}({extractable:!1}),e=wl(xf(t.publicKey),1);return await RP.setItem(e,t),await RP.setItem(jP,e),t}async function LP(){const t=await RP.getItem(jP);if(!t)return null;const e=await RP.getItem(t);return e||null}async function zP(){const t=await async function(){const t=await LP();if(!t){const t=await UP(),e=wl(xf(t.publicKey),1);return await RP.setItem(e,t),await RP.setItem(jP,e),t}return t}(),e=wl(xf(t.publicKey),1),n=async e=>{const{payload:n,metadata:r}=sE({challenge:e,origin:"https://app.startale.com",userVerification:"preferred"}),a=await async function(t){const{payload:e,privateKey:n}=t,r=await globalThis.crypto.subtle.sign({name:"ECDSA",hash:"SHA-256"},n,Cl(e)),a=Nl(new Uint8Array(r)),i=zl(Ll(a,0,32));let s=zl(Ll(a,32,64));return s>iE.CURVE.n/2n&&(s=iE.CURVE.n-s),{r:i,s:s}}({payload:n,privateKey:t.privateKey});return{signature:vk(a),raw:{},webauthn:r}};return{id:e,publicKey:e,sign:async({hash:t})=>n(t),signMessage:async({message:t})=>n(Uw(t)),signTypedData:async t=>n(Gw(t)),type:"webAuthn"}}async function FP(){return{account:await zP()}}const DP={storageKey:"ownPrivateKey",keyType:"private"},qP={storageKey:"ownPublicKey",keyType:"public"},GP={storageKey:"peerPublicKey",keyType:"public"};class KP{constructor(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null}async getOwnPublicKey(){return await this.loadKeysIfNeeded(),this.ownPublicKey}async getSharedSecret(){return await this.loadKeysIfNeeded(),this.sharedSecret}async setPeerPublicKey(t){this.sharedSecret=null,this.peerPublicKey=t,await this.storeKey(GP,t),await this.loadKeysIfNeeded()}async clear(){this.ownPrivateKey=null,this.ownPublicKey=null,this.peerPublicKey=null,this.sharedSecret=null,oh.keys.clear()}async generateKeyPair(){const t=await async function(){return crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!0,["deriveKey"])}();this.ownPrivateKey=t.privateKey,this.ownPublicKey=t.publicKey,await this.storeKey(DP,t.privateKey),await this.storeKey(qP,t.publicKey)}async loadKeysIfNeeded(){if(null===this.ownPrivateKey&&(this.ownPrivateKey=await this.loadKey(DP)),null===this.ownPublicKey&&(this.ownPublicKey=await this.loadKey(qP)),null!==this.ownPrivateKey&&null!==this.ownPublicKey||await this.generateKeyPair(),null===this.peerPublicKey&&(this.peerPublicKey=await this.loadKey(GP)),null===this.sharedSecret){if(null===this.ownPrivateKey||null===this.peerPublicKey)return;this.sharedSecret=await async function(t,e){return crypto.subtle.deriveKey({name:"ECDH",public:e},t,{name:"AES-GCM",length:256},!1,["encrypt","decrypt"])}(this.ownPrivateKey,this.peerPublicKey)}}async loadKey(t){const e=oh.keys.get(t.storageKey);return e?SP(t.keyType,e):null}async storeKey(t,e){const n=await PP(t.keyType,e);oh.keys.set(t.storageKey,n)}}function VP(t,e){if("object"==typeof t&&null!==t)return e.split(/[.[\]]+/).filter(Boolean).reduce((t,e)=>{if("object"==typeof t&&null!==t)return t[e]},t)}function ZP(t){var e;if(!t||!Array.isArray(t)||!(null===(e=t[0])||void 0===e?void 0:e.chainId))throw l.invalidParams();if("string"!=typeof t[0].chainId&&"number"!=typeof t[0].chainId)throw l.invalidParams()}function HP(t,e){const n=Object.assign({},t);if(e&&t.method.startsWith("wallet_")){let t=VP(n,"params.0.capabilities");if(void 0===t&&(t={}),"object"!=typeof t)throw l.invalidParams();t=Object.assign(Object.assign({},e),t),n.params&&Array.isArray(n.params)&&(n.params[0]=Object.assign(Object.assign({},n.params[0]),{capabilities:t}))}return n}async function WP(){var t;const e=null!==(t=oh.subAccountsConfig.get())&&void 0!==t?t:{},n={};if(e.enableAutoSubAccounts){const{account:t}=e.toOwnerAccount?await e.toOwnerAccount():await FP();if(!t)throw f.unauthorized("No owner account found");n.addSubAccount={account:{type:"create",keys:[{type:t.address?"address":"webauthn-p256",publicKey:t.address||t.publicKey}]}}}oh.subAccountsConfig.set({capabilities:n})}async function JP({client:t,id:e}){var n;const r=await Nv(t,{id:e});if("success"===r.status)return null===(n=r.receipts)||void 0===n?void 0:n[0].transactionHash;throw l.internal("failed to send transaction")}function YP({calls:t,from:e,chainId:n,capabilities:r}){const a=ih.get().paymasterOptions;let i={method:"wallet_sendCalls",params:[{version:"1.0",calls:t,chainId:im(n),from:e,atomicRequired:!0,capabilities:r}]};return(null==a?void 0:a[n])&&(i=HP(i,{paymasterService:{url:null==a?void 0:a[n].url,id:null==a?void 0:a[n].id}})),i}function $P({attribution:t,dappOrigin:e}){if(t)return"auto"in t&&t.auto&&e?Om(pm(nm(e)),0,16):"dataSuffix"in t?t.dataSuffix:void 0}function QP(t,e){var n;if(!Array.isArray(null==t?void 0:t.params))return!1;const r=null===(n=t.params[0])||void 0===n?void 0:n.capabilities;return!(!r||"object"!=typeof r)&&e in r}function XP(t,e){const n=t.filter(t=>t!==e);return[e,...n]}function tS(t,e){const n=t.filter(t=>t!==e);return[...n,e]}function eS(t){const e=btoa(String.fromCharCode(...new Uint8Array(t)));return e.replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function nS({webauthn:t,signature:e,id:n}){const r=gk(e);return{id:n,rawId:eS(hm(n)),response:{authenticatorData:eS(fm(t.authenticatorData)),clientDataJSON:eS(hm(t.clientDataJSON)),signature:eS(rS(r.r,r.s))},type:JSON.parse(t.clientDataJSON).type}}function rS(t,e){const n=fm(Yp(im(t))),r=fm(Yp(im(e))),a=n.length,i=r.length,s=a+i+4,o=new Uint8Array(s+2);return o[0]=48,o[1]=s,o[2]=2,o[3]=a,o.set(n,4),o[a+4]=2,o[a+5]=i,o.set(r,a+6),o}async function aS(t){const{owner:e,ownerIndex:n,address:r,client:a,factoryData:i}=t,s={abi:oE,address:"0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",version:"0.6"},o={abi:dh,address:"0xba5ed110efdba3d005bfc882d75358acbbb85842"};return async function(t){const{extend:e,nonceKeyManager:n=Cw({source:{get:()=>Date.now(),set(){}}}),...r}=t;let a=!1;const i=await t.getAddress();return{...e,...r,address:i,async getFactoryArgs(){return"isDeployed"in this&&await this.isDeployed()?{factory:void 0,factoryData:void 0}:t.getFactoryArgs()},async getNonce(e){const r=e?.key??BigInt(await n.consume({address:i,chainId:t.client.chain.id,client:t.client}));return t.getNonce?await t.getNonce({...e,key:r}):await hv(t.client,{abi:ap(["function getNonce(address, uint192) pure returns (uint256)"]),address:t.entryPoint.address,functionName:"getNonce",args:[i,r]})},async isDeployed(){if(a)return!0;const e=await ip(t.client,mw,"getCode")({address:i});return a=Boolean(e),a},...t.sign?{async sign(e){const[{factory:n,factoryData:r},a]=await Promise.all([this.getFactoryArgs(),t.sign(e)]);return n&&r?Bk({address:n,data:r,signature:a}):a}}:{},async signMessage(e){const[{factory:n,factoryData:r},a]=await Promise.all([this.getFactoryArgs(),t.signMessage(e)]);return n&&r&&"0x7702"!==n?Bk({address:n,data:r,signature:a}):a},async signTypedData(e){const[{factory:n,factoryData:r},a]=await Promise.all([this.getFactoryArgs(),t.signTypedData(e)]);return n&&r&&"0x7702"!==n?Bk({address:n,data:r,signature:a}):a},type:"smart"}}({client:a,entryPoint:s,extend:{abi:uh,factory:o},async decodeCalls(t){const e=Dv({abi:uh,data:t});if("execute"===e.functionName)return[{to:e.args[0],value:e.args[1],data:e.args[2]}];if("executeBatch"===e.functionName)return e.args[0].map(t=>({to:t.target,value:t.value,data:t.data}));throw new hp(`unable to decode calls for "${e.functionName}"`)},async encodeCalls(t){var e,n;return 1===t.length?Qm({abi:uh,functionName:"execute",args:[t[0].to,null!==(e=t[0].value)&&void 0!==e?e:BigInt(0),null!==(n=t[0].data)&&void 0!==n?n:"0x"]}):Qm({abi:uh,functionName:"executeBatch",args:[t.map(t=>{var e,n;return{data:null!==(e=t.data)&&void 0!==e?e:"0x",target:t.to,value:null!==(n=t.value)&&void 0!==n?n:BigInt(0)}})]})},getAddress:async()=>r,getFactoryArgs:async()=>({factory:o.address,factoryData:i}),getStubSignature:async()=>"webAuthn"===e.type?"0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000170000000000000000000000000000000000000000000000000000000000000001949fc7c88032b9fcb5f6efc7a7b8c63668eae9871b765e23123bb473ff57aa831a7c0d9276168ebcc29f2875a0239cffdf2a9cd1c2007c5c77c071db9264df1d000000000000000000000000000000000000000000000000000000000000002549960de5880e8c687434170f6476605b8fe4aeb9a28632c7995cf3ba831d97630500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008a7b2274797065223a22776562617574686e2e676574222c226368616c6c656e6765223a2273496a396e6164474850596759334b7156384f7a4a666c726275504b474f716d59576f4d57516869467773222c226f726967696e223a2268747470733a2f2f7369676e2e636f696e626173652e636f6d222c2263726f73734f726967696e223a66616c73657d00000000000000000000000000000000000000000000":oS({ownerIndex:n,signature:"0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c"}),async sign(t){const r=sS({address:await this.getAddress(),chainId:a.chain.id,hash:t.hash}),i=await iS({hash:r,owner:e});return oS({ownerIndex:n,signature:i})},async signMessage(t){const{message:r}=t,i=sS({address:await this.getAddress(),chainId:a.chain.id,hash:Uw(r)}),s=await iS({hash:i,owner:e});return oS({ownerIndex:n,signature:s})},async signTypedData(t){const{domain:r,types:i,primaryType:s,message:o}=t,c=sS({address:await this.getAddress(),chainId:a.chain.id,hash:Gw({domain:r,message:o,primaryType:s,types:i})}),u=await iS({hash:c,owner:e});return oS({ownerIndex:n,signature:u})},async signUserOperation(t){const{chainId:r=a.chain.id}=t,i=dA(t,["chainId"]),o=await this.getAddress(),c=lE({chainId:r,entryPointAddress:s.address,entryPointVersion:s.version,userOperation:Object.assign(Object.assign({},i),{sender:o})}),u=await iS({hash:c,owner:e});return oS({ownerIndex:n,signature:u})},userOperation:{async estimateGas(t){var n;if("webAuthn"===e.type)return{verificationGasLimit:BigInt(Math.max(Number(null!==(n=t.verificationGasLimit)&&void 0!==n?n:BigInt(0)),8e5))}}}})}async function iS({hash:t,owner:e}){if("webAuthn"===e.type){const{signature:n,webauthn:r}=await e.sign({hash:t});return function({webauthn:t,signature:e}){const{r:n,s:r}=gk(e);return Um([{components:[{name:"authenticatorData",type:"bytes"},{name:"clientDataJSON",type:"bytes"},{name:"challengeIndex",type:"uint256"},{name:"typeIndex",type:"uint256"},{name:"r",type:"uint256"},{name:"s",type:"uint256"}],type:"tuple"}],[{authenticatorData:t.authenticatorData,clientDataJSON:om(t.clientDataJSON),challengeIndex:BigInt(t.challengeIndex),typeIndex:BigInt(t.typeIndex),r:n,s:r}])}({signature:n,webauthn:r})}if(e.sign)return e.sign({hash:t});throw new hp("`owner` does not support raw sign.")}function sS({address:t,chainId:e,hash:n}){return Gw({domain:{chainId:e,name:"Coinbase Smart Wallet",verifyingContract:t,version:"1"},types:{CoinbaseSmartWalletMessage:[{name:"hash",type:"bytes32"}]},primaryType:"CoinbaseSmartWalletMessage",message:{hash:n}})}function oS(t){const{ownerIndex:e=0}=t,n=(()=>{if(65!==up(t.signature))return t.signature;const e=function(t){const{r:e,s:n}=dc.Signature.fromCompact(t.slice(2,130)),r=Number(`0x${t.slice(130)}`),[a,i]=(()=>{if(0===r||1===r)return[void 0,r];if(27===r)return[BigInt(r),0];if(28===r)return[BigInt(r),1];throw new Error("Invalid yParityOrV value")})();return void 0!==a?{r:im(e,{size:32}),s:im(n,{size:32}),v:a,yParity:i}:{r:im(e,{size:32}),s:im(n,{size:32}),yParity:i}}(t.signature);return function(t,e){if(t.length!==e.length)throw new xp({expectedLength:t.length,givenLength:e.length});const n=[];for(let r=0;r<t.length;r++){const a=t[r],i=e[r];n.push(vw(a,i))}return _m(n)}(["bytes32","bytes32","uint8"],[e.r,e.s,0===e.yParity?27:28])})();return Um([{components:[{name:"ownerIndex",type:"uint8"},{name:"signatureData",type:"bytes"}],type:"tuple"}],[{ownerIndex:e,signatureData:n}])}async function cS({address:t,client:e,factory:n,factoryData:r,owner:a,ownerIndex:i,parentAddress:s,attribution:o}){var c;const u={address:t,factory:n,factoryData:r},d=null===(c=e.chain)||void 0===c?void 0:c.id;if(!d)throw l.internal("chainId not found");const f=await aS({owner:a,ownerIndex:null!=i?i:1,address:t,client:e,factoryData:r}),h=async t=>{var n,r,i,c,p,m;try{switch(t.method){case"wallet_addSubAccount":return u;case"eth_accounts":return[u.address];case"eth_coinbase":return u.address;case"net_version":return d.toString();case"eth_chainId":return im(d);case"eth_sendTransaction":{fh(t.params);const a=t.params[0];lh(a.to,l.invalidParams("to is required"));const s={to:a.to,data:YI(null!==(n=a.data)&&void 0!==n?n:"0x",!0),value:YI(null!==(r=a.value)&&void 0!==r?r:"0x",!0),from:null!==(i=a.from)&&void 0!==i?i:u.address},o=YP({calls:[s],chainId:d,from:s.from}),c=await h(o);return JP({client:e,id:c})}case"wallet_sendCalls":{fh(t.params);const e=VP(t.params[0],"chainId");if(!e)throw l.invalidParams("chainId is required");if(!cp(e))throw l.invalidParams("chainId must be a hex encoded integer");if(!t.params[0])throw l.invalidParams("params are required");if(!("calls"in t.params[0]))throw l.invalidParams("calls are required");let n={method:"wallet_prepareCalls",params:[{version:"1.0",calls:t.params[0].calls,chainId:e,from:u.address,capabilities:"capabilities"in t.params[0]?t.params[0].capabilities:{}}]};s&&(n=HP(n,{funding:[{type:"spendPermission",data:{autoApply:!0,sources:[s],preference:"PREFER_DIRECT_BALANCE"}}]}));let r=await h(n);const i=await(null===(p=(c=a).sign)||void 0===p?void 0:p.call(c,{hash:tm(r.signatureRequest.hash)}));let o;if(!i)throw l.internal("signature not found");o=cp(i)?{type:"secp256k1",data:{address:a.address,signature:i}}:{type:"webauthn",data:{signature:JSON.stringify(nS(Object.assign({id:null!==(m=a.id)&&void 0!==m?m:"1"},i))),publicKey:a.publicKey}};return(await h({method:"wallet_sendPreparedCalls",params:[{version:"1.0",type:r.type,data:r.userOp,chainId:r.chainId,signature:o}]}))[0]}case"wallet_sendPreparedCalls":{fh(t.params);const n=VP(t.params[0],"chainId");if(!n)throw l.invalidParams("chainId is required");if(!cp(n))throw l.invalidParams("chainId must be a hex encoded integer");return await e.request({method:"wallet_sendPreparedCalls",params:t.params})}case"wallet_prepareCalls":{fh(t.params);const n=VP(t.params[0],"chainId");if(!n)throw l.invalidParams("chainId is required");if(!cp(n))throw l.invalidParams("chainId must be a hex encoded integer");if(!t.params[0])throw l.invalidParams("params are required");if(!VP(t.params[0],"calls"))throw l.invalidParams("calls are required");const r=t.params[0];o&&r.capabilities&&!("attribution"in r.capabilities)&&(r.capabilities.attribution=o);return await e.request({method:"wallet_prepareCalls",params:[Object.assign(Object.assign({},t.params[0]),{chainId:n})]})}case"personal_sign":{if(fh(t.params),!cp(t.params[0]))throw l.invalidParams("message must be a hex encoded string");const e=tm(t.params[0]);return f.signMessage({message:e})}case"eth_signTypedData_v4":{fh(t.params);const e="string"==typeof t.params[1]?JSON.parse(t.params[1]):t.params[1];return f.signTypedData(e)}default:throw l.methodNotSupported()}}catch(t){if(v(t)){const e=function(t){try{const e=JSON.parse(t.details);return new y(e.code,e.message,e.data)}catch(t){return null}}(t);if(e)throw e}throw t}};return{request:h}}async function uS({address:t,client:e,publicKey:n,factory:r,factoryData:a}){if(!await mw(e,{address:t})&&r&&a){const t=Dv({abi:dh,data:a});if("createAccount"!==t.functionName)throw l.internal("unknown factory function");const[e]=t.args;return e.findIndex(t=>t.toLowerCase()===dS(n).toLowerCase())}const i=await hv(e,{address:t,abi:uh,functionName:"ownerCount"});for(let r=Number(i)-1;r>=0;r--){const a=await hv(e,{address:t,abi:uh,functionName:"ownerAtIndex",args:[BigInt(r)]}),i=dS(n);if(a.toLowerCase()===i.toLowerCase())return r}return-1}function dS(t){return Pm(t)?Kp(t):t}async function lS({ownerAccount:t,globalAccountRequest:e,chainId:n}){var r,a;const i=oh.account.get(),s=oh.subAccounts.get(),o=null===(r=i.accounts)||void 0===r?void 0:r.find(t=>t.toLowerCase()!==(null==s?void 0:s.address.toLowerCase()));lh(o,f.unauthorized("no global account")),lh(null===(a=i.chain)||void 0===a?void 0:a.id,f.unauthorized("no chain id")),lh(null==s?void 0:s.address,f.unauthorized("no sub account"));const c=[];if("local"===t.type&&t.address&&c.push({to:s.address,data:Qm({abi:uh,functionName:"addOwnerAddress",args:[t.address]}),value:nm(0)}),t.publicKey){const[e,n]=dy([{type:"bytes32"},{type:"bytes32"}],t.publicKey);c.push({to:s.address,data:Qm({abi:uh,functionName:"addOwnerPublicKey",args:[e,n]}),value:nm(0)})}const u={method:"wallet_sendCalls",params:[{version:"1",calls:c,chainId:im(n),from:o}]},d=await async function(){var t,e;const n=null!==(e=null===(t=oh.config.get().metadata)||void 0===t?void 0:t.appName)&&void 0!==e?e:"App",r=UI();return new Promise(t=>{mA({dialogContext:"sub_account_add_owner"}),r.presentItem({title:`Re-authorize ${n}`,message:`${n} has lost access to your account. Please sign at the next step to re-authorize ${n}`,onClose:()=>{yA({dialogContext:"sub_account_add_owner"}),t("cancel")},actionItems:[{text:"Continue",variant:"primary",onClick:()=>{gA({dialogContext:"sub_account_add_owner",dialogAction:"confirm"}),r.clear(),t("authenticate")}},{text:"Not now",variant:"secondary",onClick:()=>{gA({dialogContext:"sub_account_add_owner",dialogAction:"cancel"}),r.clear(),t("cancel")}}]})})}();if("cancel"===d)throw f.unauthorized("user cancelled");const h=await e(u),p=bP(i.chain.id);lh(p,l.internal(`client not found for chainId ${i.chain.id}`));if("success"!==(await Nv(p,{id:h})).status)throw l.internal("add owner call failed");const m=await uS({address:s.address,publicKey:"local"===t.type&&t.address?t.address:t.publicKey,client:p});if(-1===m)throw l.internal("failed to find owner index");return m}async function fS({request:t,globalAccountAddress:e,subAccountAddress:n,client:r,globalAccountRequest:a,chainId:i,prependCalls:s}){var o;let c;if("wallet_sendCalls"===t.method&&("object"==typeof(u=t.params)&&null!==u&&Array.isArray(u)&&u.length>0&&"object"==typeof u[0]&&null!==u[0]&&"calls"in u[0]))c=t.params[0];else{if("eth_sendTransaction"!==t.method||!function(t){return Array.isArray(t)&&1===t.length&&"object"==typeof t[0]&&null!==t[0]&&"to"in t[0]}(t.params))throw new Error(`Could not get original call from ${t.method} request`);c=YP({calls:[t.params[0]],chainId:i,from:t.params[0].from}).params[0]}var u;const d=Qm({abi:uh,functionName:"executeBatch",args:[c.calls.map(t=>{var e,n;return{target:t.to,value:Qp(null!==(e=t.value)&&void 0!==e?e:"0x0"),data:null!==(n=t.data)&&void 0!==n?n:"0x"}})]}),l=[...null!=s?s:[],{data:d,to:n,value:"0x0"}],f=HP({method:"wallet_sendCalls",params:[Object.assign(Object.assign({},c),{calls:l,from:e,version:"2.0.0",atomicRequired:!0})]},{spendPermissions:{request:{spender:n}}}),h=await a(f);let p=h.id;return(null===(o=h.capabilities)||void 0===o?void 0:o.spendPermissions)&&ah.set(h.capabilities.spendPermissions.permissions),"eth_sendTransaction"===t.method?JP({client:r,id:p}):h}async function hS({globalAccountAddress:t,subAccountAddress:e,client:n,request:r,globalAccountRequest:a}){var i;const s=null===(i=n.chain)||void 0===i?void 0:i.id;lh(s,l.internal("invalid chainId"));try{await async function(){const t=UI();return await new Promise((e,n)=>{mA({dialogContext:"sub_account_insufficient_balance"}),t.presentItem({title:"Insufficient spend permission",message:"Your spend permission's remaining balance cannot cover this transaction. Please use your primary account to complete this transaction.",onClose:()=>{yA({dialogContext:"sub_account_insufficient_balance"}),t.clear(),n(new Error("User cancelled funding"))},actionItems:[{text:"Use primary account",variant:"primary",onClick:()=>{gA({dialogContext:"sub_account_insufficient_balance",dialogAction:"continue_in_popup"}),t.clear(),e("continue_popup")}},{text:"Cancel",variant:"secondary",onClick:()=>{gA({dialogContext:"sub_account_insufficient_balance",dialogAction:"cancel"}),t.clear(),n(new Error("User cancelled funding"))}}]})})}()}catch(t){throw f.userRejectedRequest({message:"User cancelled funding"})}return await fS({request:r,globalAccountAddress:t,subAccountAddress:e,client:n,globalAccountRequest:a,chainId:s})}class pS{constructor(t){var e,n,r,a;this.communicator=t.communicator,this.callback=t.callback,this.keyManager=new KP;const{account:i,chains:s}=oh.getState();this.accounts=null!==(e=i.accounts)&&void 0!==e?e:[],this.chain=null!==(n=i.chain)&&void 0!==n?n:{id:null!==(a=null===(r=t.metadata.appChainIds)||void 0===r?void 0:r[0])&&void 0!==a?a:1},gP(null!=s?s:yP)}get isConnected(){return this.accounts.length>0}async handshake(t){var e,n,r;const a=wP(t);(({method:t,correlationId:e})=>{var n;pA("scw_signer.handshake.started",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:a});try{await(null===(n=(e=this.communicator).waitForPopupLoaded)||void 0===n?void 0:n.call(e));const i=await this.createRequestMessage({handshake:{method:t.method,params:null!==(r=t.params)&&void 0!==r?r:[]}},a),s=await this.communicator.postRequestAndWaitForResponse(i);if("failure"in s.content)throw s.content.failure;const o=await SP("public",s.sender);await this.keyManager.setPeerPublicKey(o);const c=await this.decryptResponseMessage(s);this.handleResponse(t,c),(({method:t,correlationId:e})=>{var n;pA("scw_signer.handshake.completed",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:a})}catch(e){throw(({method:t,correlationId:e,errorMessage:n})=>{var r;pA("scw_signer.handshake.error",{action:fA.error,componentType:lA.unknown,method:t,correlationId:e,errorMessage:n,enableAutoSubAccounts:null===(r=oh.subAccountsConfig.get())||void 0===r?void 0:r.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:a,errorMessage:GI(e)}),e}}async request(t){const e=wP(t);(({method:t,correlationId:e})=>{var n;pA("scw_signer.request.started",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e});try{const n=await this._request(t);return(({method:t,correlationId:e})=>{var n;pA("scw_signer.request.completed",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e}),n}catch(n){throw(({method:t,correlationId:e,errorMessage:n})=>{var r;pA("scw_signer.request.error",{action:fA.error,componentType:lA.unknown,method:t,correlationId:e,errorMessage:n,enableAutoSubAccounts:null===(r=oh.subAccountsConfig.get())||void 0===r?void 0:r.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e,errorMessage:GI(n)}),n}}async _request(t){var e,n,r,a,i,s,o,c,u,d;if(0===this.accounts.length)switch(t.method){case"wallet_switchEthereumChain":return ZP(t.params),void(this.chain.id=Number(t.params[0].chainId));case"wallet_connect":{await(null===(n=(e=this.communicator).waitForPopupLoaded)||void 0===n?void 0:n.call(e)),await WP();let i={};QP(t,"addSubAccount")&&(i=null!==(a=null===(r=oh.subAccountsConfig.get())||void 0===r?void 0:r.capabilities)&&void 0!==a?a:{});const s=HP(t,i);return this.sendRequestToPopup(s)}case"wallet_sendCalls":case"wallet_sign":return this.sendRequestToPopup(t);default:throw f.unauthorized()}if(this.shouldRequestUseSubAccountSigner(t)){const e=wP(t);(({method:t,correlationId:e})=>{var n;pA("scw_sub_account.request.started",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e});try{const n=await this.sendRequestToSubAccountSigner(t);return(({method:t,correlationId:e})=>{var n;pA("scw_sub_account.request.completed",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e}),n}catch(n){throw(({method:t,correlationId:e,errorMessage:n})=>{var r;pA("scw_sub_account.request.error",{action:fA.error,componentType:lA.unknown,method:t,correlationId:e,errorMessage:n,enableAutoSubAccounts:null===(r=oh.subAccountsConfig.get())||void 0===r?void 0:r.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e,errorMessage:GI(n)}),n}}switch(t.method){case"eth_requestAccounts":case"eth_accounts":{const t=oh.subAccounts.get(),e=oh.subAccountsConfig.get();return(null==t?void 0:t.address)&&(this.accounts=(null==e?void 0:e.enableAutoSubAccounts)?XP(this.accounts,t.address):tS(this.accounts,t.address)),null===(i=this.callback)||void 0===i||i.call(this,"connect",{chainId:im(this.chain.id)}),this.accounts}case"eth_coinbase":return this.accounts[0];case"net_version":return this.chain.id;case"eth_chainId":return im(this.chain.id);case"wallet_getCapabilities":return this.handleGetCapabilitiesRequest(t);case"wallet_getUserInfo":return this.handleGetUserInfoRequest(t);case"wallet_switchEthereumChain":return this.handleSwitchChainRequest(t);case"eth_ecRecover":case"personal_sign":case"wallet_sign":case"personal_ecRecover":case"eth_signTransaction":case"eth_sendTransaction":case"eth_signTypedData_v1":case"eth_signTypedData_v3":case"eth_signTypedData_v4":case"eth_signTypedData":case"wallet_addEthereumChain":case"wallet_watchAsset":case"wallet_sendCalls":case"wallet_showCallsStatus":case"wallet_grantPermissions":return this.sendRequestToPopup(t);case"wallet_connect":{if(!QP(t,"signInWithEthereum")){const t=await async function(){const t=oh.spendPermissions.get(),e=oh.subAccounts.get(),n=oh.account.get().accounts;if(!n)return null;const r=null==n?void 0:n.map(n=>({address:n,capabilities:{subAccounts:e?[e]:void 0,spendPermissions:t.length>0?{permissions:t}:void 0}}));return{accounts:r}}();if(t)return t}await(null===(o=(s=this.communicator).waitForPopupLoaded)||void 0===o?void 0:o.call(s)),await WP();const e=oh.subAccountsConfig.get(),n=HP(t,null!==(c=null==e?void 0:e.capabilities)&&void 0!==c?c:{}),r=await this.sendRequestToPopup(n);return null===(u=this.callback)||void 0===u||u.call(this,"connect",{chainId:im(this.chain.id)}),r}case"wallet_getSubAccounts":{const e=oh.subAccounts.get();if(null==e?void 0:e.address)return{subAccounts:[e]};if(!this.chain.rpcUrl)throw l.internal("No RPC URL set for chain");const n=await TP(t,this.chain.rpcUrl);if(fh(n.subAccounts,"subAccounts"),n.subAccounts.length>0){IP(n.subAccounts[0]);const t=n.subAccounts[0];oh.subAccounts.set({address:t.address,factory:t.factory,factoryData:t.factoryData})}return n}case"wallet_addSubAccount":return this.addSubAccount(t);case"coinbase_fetchPermissions":{!function(t){if("coinbase_fetchPermissions"!==t.method||void 0!==t.params){if("coinbase_fetchPermissions"!==t.method||!Array.isArray(t.params)||1!==t.params.length||"object"!=typeof t.params[0])throw l.invalidParams();if("string"!=typeof t.params[0].account||!t.params[0].chainId.startsWith("0x"))throw l.invalidParams("FetchPermissions - Invalid params: params[0].account must be a hex string");if("string"!=typeof t.params[0].chainId||!t.params[0].chainId.startsWith("0x"))throw l.invalidParams("FetchPermissions - Invalid params: params[0].chainId must be a hex string");if("string"!=typeof t.params[0].spender||!t.params[0].spender.startsWith("0x"))throw l.invalidParams("FetchPermissions - Invalid params: params[0].spender must be a hex string")}}(t);const e=function(t){var e,n,r;if(void 0!==t.params)return t;const a=null===(e=oh.getState().account.accounts)||void 0===e?void 0:e[0],i=null===(n=oh.getState().account.chain)||void 0===n?void 0:n.id,s=null===(r=oh.getState().subAccount)||void 0===r?void 0:r.address;if(!a||!s||!i)throw l.invalidParams("FetchPermissions - one or more of account, sub account, or chain id is missing, connect to sub account via wallet_connect first");return{method:"coinbase_fetchPermissions",params:[{account:a,chainId:im(i),spender:s}]}}(t),n=await TP(e,Jf),r=Xp(null===(d=e.params)||void 0===d?void 0:d[0].chainId);return oh.spendPermissions.set(n.permissions.map(t=>Object.assign(Object.assign({},t),{chainId:r}))),n}default:if(!this.chain.rpcUrl)throw l.internal("No RPC URL set for chain");return TP(t,this.chain.rpcUrl)}}async sendRequestToPopup(t){var e,n;await(null===(n=(e=this.communicator).waitForPopupLoaded)||void 0===n?void 0:n.call(e));const r=function(t,e){if("wallet_sendCalls"!==t.method)return t;const n=ih.get().paymasterOptions,r=null==n?void 0:n[e];return r?HP(t,{paymasterService:{url:r.url,id:r.id}}):t}(t,this.chain.id),a=await this.sendEncryptedRequest(r),i=await this.decryptResponseMessage(a);return this.handleResponse(r,i)}async handleResponse(t,e){var n,r,a,i,s;const o=e.result;if("error"in o)throw o.error;switch(t.method){case"eth_requestAccounts":{const t=o.value;this.accounts=t,oh.account.set({accounts:t,chain:this.chain}),null===(n=this.callback)||void 0===n||n.call(this,"accountsChanged",t);break}case"wallet_connect":{const t=o.value,e=t.accounts.map(t=>t.address);this.accounts=e,oh.account.set({accounts:e});const n=t.userInfo;oh.userInfo.set(n);const s=t.accounts.at(0),c=null==s?void 0:s.capabilities;if(null==c?void 0:c.subAccounts){const t=null==c?void 0:c.subAccounts;fh(t,"subAccounts"),IP(t[0]),oh.subAccounts.set({address:t[0].address,factory:t[0].factory,factoryData:t[0].factoryData})}let u=[this.accounts[0]];const d=oh.subAccounts.get(),l=oh.subAccountsConfig.get();(null==d?void 0:d.address)&&(this.accounts=(null==l?void 0:l.enableAutoSubAccounts)?XP(this.accounts,d.address):tS(this.accounts,d.address));const f=null===(a=null===(r=null==t?void 0:t.accounts)||void 0===r?void 0:r[0].capabilities)||void 0===a?void 0:a.spendPermissions;f&&"permissions"in f&&oh.spendPermissions.set(null==f?void 0:f.permissions),null===(i=this.callback)||void 0===i||i.call(this,"accountsChanged",u);break}case"wallet_addSubAccount":{IP(o.value);const t=o.value;oh.subAccounts.set(t);const e=oh.subAccountsConfig.get();this.accounts=(null==e?void 0:e.enableAutoSubAccounts)?XP(this.accounts,t.address):tS(this.accounts,t.address),null===(s=this.callback)||void 0===s||s.call(this,"accountsChanged",this.accounts);break}}return o.value}async cleanup(){var t,e;const n=oh.config.get().metadata;await this.keyManager.clear(),oh.account.clear(),oh.subAccounts.clear(),oh.spendPermissions.clear(),oh.chains.clear(),this.accounts=[],this.chain={id:null!==(e=null===(t=null==n?void 0:n.appChainIds)||void 0===t?void 0:t[0])&&void 0!==e?e:1}}async handleSwitchChainRequest(t){ZP(t.params);const e=$I(t.params[0].chainId);if(this.updateChain(e))return null;const n=await this.sendRequestToPopup(t);return null===n&&this.updateChain(e),n}async handleGetCapabilitiesRequest(t){!function(t){if(!t||!Array.isArray(t)||1!==t.length&&2!==t.length)throw l.invalidParams();if("string"!=typeof t[0]||!Pm(t[0]))throw l.invalidParams();if(2===t.length){if(!Array.isArray(t[1]))throw l.invalidParams();for(const e of t[1])if("string"!=typeof e||!e.startsWith("0x"))throw l.invalidParams()}}(t.params);const e=t.params[0],n=t.params[1];if(!this.accounts.some(t=>Ob(t,e)))throw f.unauthorized("no active account found when getting capabilities");const r=oh.getState().account.capabilities;if(!r)return{};if(!n||0===n.length)return r;const a=new Set(n.map(t=>Xp(t)));return Object.fromEntries(Object.entries(r).filter(([t])=>{try{const e=Xp(t);return a.has(e)}catch(t){return!1}}))}async handleGetUserInfoRequest(t){const e=oh.getState().userInfo;if(!e)throw f.unauthorized("No user info found");return e}async sendEncryptedRequest(t){const e=await this.keyManager.getSharedSecret();if(!e)throw f.unauthorized("No shared secret found when encrypting request");const n=await _P({action:t,chainId:this.chain.id},e),r=wP(t),a=await this.createRequestMessage({encrypted:n},r);return this.communicator.postRequestAndWaitForResponse(a)}async createRequestMessage(t,e){const n=await PP("public",await this.keyManager.getOwnPublicKey());return{id:crypto.randomUUID(),correlationId:e,sender:n,content:t,timestamp:new Date}}async decryptResponseMessage(t){var e,n,r;const a=t.content;if("failure"in a)throw a.failure;const i=await this.keyManager.getSharedSecret();if(!i)throw f.unauthorized("Invalid session: no shared secret found when decrypting response");const s=await OP(a.encrypted,i),o=null===(e=s.data)||void 0===e?void 0:e.chains;if(o){const t=null===(n=s.data)||void 0===n?void 0:n.nativeCurrencies,e=Object.entries(o).map(([e,n])=>{const r=null==t?void 0:t[Number(e)];return Object.assign({id:Number(e),rpcUrl:n},r?{nativeCurrency:r}:{})});oh.chains.set(e),this.updateChain(this.chain.id,e),gP(e)}const c=null===(r=s.data)||void 0===r?void 0:r.capabilities;return c&&oh.account.set({capabilities:c}),s}updateChain(t,e){var n;const r=oh.getState(),a=null!=e?e:r.chains,i=null==a?void 0:a.find(e=>e.id===t);return!!i&&(i!==this.chain&&(this.chain=i,oh.account.set({chain:i}),null===(n=this.callback)||void 0===n||n.call(this,"chainChanged",WI(i.id))),!0)}async addSubAccount(t){var e,n,r,a;const i=oh.getState().subAccount,s=oh.subAccountsConfig.get();if(null==i?void 0:i.address)return this.accounts=(null==s?void 0:s.enableAutoSubAccounts)?XP(this.accounts,i.address):tS(this.accounts,i.address),null===(e=this.callback)||void 0===e||e.call(this,"accountsChanged",this.accounts),i;if(await(null===(r=(n=this.communicator).waitForPopupLoaded)||void 0===r?void 0:r.call(n)),Array.isArray(t.params)&&t.params.length>0&&t.params[0].account&&"create"===t.params[0].account.type){let e;if(t.params[0].account.keys&&t.params[0].account.keys.length>0)e=t.params[0].account.keys;else{const t=null!==(a=oh.subAccountsConfig.get())&&void 0!==a?a:{},{account:n}=t.toOwnerAccount?await t.toOwnerAccount():await FP();if(!n)throw f.unauthorized("could not get subaccount owner account when adding sub account");e=[{type:n.address?"address":"webauthn-p256",publicKey:n.address||n.publicKey}]}t.params[0].account.keys=e}const o=await this.sendRequestToPopup(t);return IP(o),o}shouldRequestUseSubAccountSigner(t){return!1}async sendRequestToSubAccountSigner(t){var e;const n=oh.subAccounts.get(),r=oh.subAccountsConfig.get(),a=oh.config.get();lh(null==n?void 0:n.address,f.unauthorized("no active sub account when sending request to sub account signer"));const i=(null==r?void 0:r.toOwnerAccount)?await r.toOwnerAccount():await FP();lh(null==i?void 0:i.account,f.unauthorized("no active sub account owner when sending request to sub account signer"));const s=function(t){var e;if(!Array.isArray(t.params))return null;switch(t.method){case"personal_sign":return t.params[1];case"eth_signTypedData_v4":return t.params[0];case"eth_signTransaction":case"eth_sendTransaction":case"wallet_sendCalls":return null===(e=t.params[0])||void 0===e?void 0:e.from;default:return null}}(t);void 0===s&&(t=function(t,e){if(!Array.isArray(t.params))throw l.invalidParams();const n=[...t.params];switch(t.method){case"eth_signTransaction":case"eth_sendTransaction":case"wallet_sendCalls":n[0].from=e;break;case"eth_signTypedData_v4":n[0]=e;break;case"personal_sign":n[1]=e}return Object.assign(Object.assign({},t),{params:n})}(t,n.address));const o=bP(this.chain.id);lh(o,l.internal(`client not found for chainId ${this.chain.id} when sending request to sub account signer`));const c=this.accounts.find(t=>t.toLowerCase()!==n.address.toLowerCase());lh(c,f.unauthorized("no global account found when sending request to sub account signer"));const u=$P({attribution:null===(e=a.preference)||void 0===e?void 0:e.attribution,dappOrigin:window.location.origin});if(["eth_sendTransaction","wallet_sendCalls"].includes(t.method)){const e=oh.subAccountsConfig.get();if(!1!==(null==e?void 0:e.unstable_enableAutoSpendPermissions)){if(0===ah.get().length){return await fS({request:t,globalAccountAddress:c,subAccountAddress:n.address,client:o,globalAccountRequest:this.sendRequestToPopup.bind(this),chainId:this.chain.id})}}}const d="local"===i.account.type?i.account.address:i.account.publicKey;let h=await uS({address:n.address,factory:n.factory,factoryData:n.factoryData,publicKey:d,client:o});if(-1===h){const e=wP(t);(({method:t,correlationId:e})=>{var n;pA("scw_sub_account.add_owner.started",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e});try{h=await lS({ownerAccount:i.account,globalAccountRequest:this.sendRequestToPopup.bind(this),chainId:this.chain.id}),(({method:t,correlationId:e})=>{var n;pA("scw_sub_account.add_owner.completed",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e})}catch(n){return(({method:t,correlationId:e,errorMessage:n})=>{var r;pA("scw_sub_account.add_owner.error",{action:fA.error,componentType:lA.unknown,method:t,correlationId:e,errorMessage:n,enableAutoSubAccounts:null===(r=oh.subAccountsConfig.get())||void 0===r?void 0:r.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:e,errorMessage:GI(n)}),f.unauthorized("failed to add sub account owner when sending request to sub account signer")}}const{request:p}=await cS({address:n.address,owner:i.account,client:o,factory:n.factory,factoryData:n.factoryData,parentAddress:c,attribution:u?{suffix:u}:void 0,ownerIndex:h});try{return await p(t)}catch(e){const r=oh.subAccountsConfig.get();if(!1===(null==r?void 0:r.unstable_enableAutoSpendPermissions))throw e;let a;if(v(e))a=JSON.parse(e.details);else{if(!b(e))throw e;a=e}if(!b(a)||!a.data)throw e;if(!a.data)throw e;const i=wP(t);(({method:t,correlationId:e})=>{var n;pA("scw_sub_account.insufficient_balance.error_handling.started",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:i});try{const e=await hS({errorData:a.data,globalAccountAddress:c,subAccountAddress:n.address,client:o,request:t,globalAccountRequest:this.request.bind(this)});return(({method:t,correlationId:e})=>{var n;pA("scw_sub_account.insufficient_balance.error_handling.completed",{action:fA.unknown,componentType:lA.unknown,method:t,correlationId:e,enableAutoSubAccounts:null===(n=oh.subAccountsConfig.get())||void 0===n?void 0:n.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:i}),e}catch(n){throw console.error(n),(({method:t,correlationId:e,errorMessage:n})=>{var r;pA("scw_sub_account.insufficient_balance.error_handling.error",{action:fA.error,componentType:lA.unknown,method:t,correlationId:e,errorMessage:n,enableAutoSubAccounts:null===(r=oh.subAccountsConfig.get())||void 0===r?void 0:r.enableAutoSubAccounts},hA.high)})({method:t.method,correlationId:i,errorMessage:GI(n)}),e}}}}class mS extends E{constructor(t,e){var{metadata:n}=t,r=t.preference,{walletUrl:a}=r,i=dA(r,["walletUrl"]);super(),this.isBaseAccount=!0,this.communicator=null!=e?e:new DI({url:a,metadata:n,preference:i}),this.signer=new pS({metadata:n,communicator:this.communicator,callback:this.emit.bind(this)})}async request(t){const e=crypto.randomUUID();xP(t,e),(({method:t,correlationId:e})=>{pA("provider.request.started",{action:fA.unknown,componentType:lA.unknown,method:t,signerType:"app-sdk",correlationId:e},hA.high)})({method:t.method,correlationId:e});try{const n=await this._request(t);return(({method:t,correlationId:e})=>{pA("provider.request.responded",{action:fA.unknown,componentType:lA.unknown,method:t,signerType:"app-sdk",correlationId:e},hA.high)})({method:t.method,correlationId:e}),n}catch(n){throw(({method:t,correlationId:e,errorMessage:n})=>{pA("provider.request.error",{action:fA.error,componentType:lA.unknown,method:t,signerType:"app-sdk",correlationId:e,errorMessage:n},hA.high)})({method:t.method,correlationId:e,errorMessage:GI(n)}),n}finally{kP(t)}}async _request(t){var e,r;try{if(function(t){if(!t||"object"!=typeof t||Array.isArray(t))throw l.invalidParams({message:"Expected a single, non-array, object argument.",data:t});const{method:e,params:n}=t;if("string"!=typeof e||0===e.length)throw l.invalidParams({message:"'args.method' must be a non-empty string.",data:t});if(void 0!==n&&!Array.isArray(n)&&("object"!=typeof n||null===n))throw l.invalidParams({message:"'args.params' must be an object or array if provided.",data:t});switch(e){case"eth_sign":case"eth_signTypedData_v2":case"eth_subscribe":case"eth_unsubscribe":throw f.unsupportedMethod()}}(t),!this.signer.isConnected)switch(t.method){case"eth_requestAccounts":await this.signer.handshake({method:"handshake"}),await WP(),await this.signer.request({method:"wallet_connect",params:[Object.assign({version:"1",capabilities:Object.assign({},null!==(r=null===(e=oh.subAccountsConfig.get())||void 0===e?void 0:e.capabilities)&&void 0!==r?r:{})},t.params)]});break;case"wallet_connect":await this.signer.handshake({method:"handshake"});return await this.signer.request(t);case"wallet_sendCalls":case"wallet_sign":try{await this.signer.handshake({method:"handshake"});return await this.signer.request(t)}finally{await this.signer.cleanup()}case"wallet_getCallsStatus":return await TP(t,Jf);case"eth_accounts":return[];case"net_version":return 1;case"eth_chainId":return WI(1);default:throw f.unauthorized("Must call 'eth_requestAccounts' before other methods")}return await this.signer.request(t)}catch(t){const{code:e}=t;return e===n.unauthorized&&await this.disconnect(),Promise.reject(qI(t))}}async disconnect(){await this.signer.cleanup(),AP(),this.emit("disconnect",f.disconnected("User initiated disconnection"))}}function yS(t){var e,n,r,a,i,s;const o={metadata:{appName:t.appName||"App",appLogoUrl:t.appLogoUrl||"",appChainIds:t.appChainIds||[]},preference:null!==(e=t.preference)&&void 0!==e?e:{},paymasterOptions:t.paymasterOptions};(null===(n=t.subAccounts)||void 0===n?void 0:n.toOwnerAccount)&&mh(t.subAccounts.toOwnerAccount),oh.subAccountsConfig.set({toOwnerAccount:null===(r=t.subAccounts)||void 0===r?void 0:r.toOwnerAccount,enableAutoSubAccounts:null===(a=t.subAccounts)||void 0===a?void 0:a.enableAutoSubAccounts,unstable_enableAutoSpendPermissions:null===(s=null===(i=t.subAccounts)||void 0===i?void 0:i.unstable_enableAutoSpendPermissions)||void 0===s||s}),oh.config.set(o),oh.persist.rehydrate();const c=Wf();c||hh(),function(t){if(t){if(t.attribution&&void 0!==t.attribution.auto&&void 0!==t.attribution.dataSuffix)throw new Error("Attribution cannot contain both auto and dataSuffix properties");if(t.telemetry&&"boolean"!=typeof t.telemetry)throw new Error("Telemetry must be a boolean")}}(o.preference),!1!==o.preference.telemetry&&new Promise((t,e)=>{if(window.ClientAnalytics)return t();try{const e=document.createElement("script");e.textContent="!(function (e, t) {\n\t'object' == typeof exports && 'object' == typeof module\n\t\t? (module.exports = t())\n\t\t: 'function' == typeof define && define.amd\n\t\t\t? define([], t)\n\t\t\t: 'object' == typeof exports\n\t\t\t\t? (exports.ClientAnalytics = t())\n\t\t\t\t: (e.ClientAnalytics = t())\n})(this, function () {\n\treturn (() => {\n\t\tvar e = {\n\t\t\t\t792: (e) => {\n\t\t\t\t\tvar t = {\n\t\t\t\t\t\tutf8: {\n\t\t\t\t\t\t\tstringToBytes: function (e) {\n\t\t\t\t\t\t\t\treturn t.bin.stringToBytes(\n\t\t\t\t\t\t\t\t\tunescape(encodeURIComponent(e)),\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbytesToString: function (e) {\n\t\t\t\t\t\t\t\treturn decodeURIComponent(\n\t\t\t\t\t\t\t\t\tescape(t.bin.bytesToString(e)),\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tbin: {\n\t\t\t\t\t\t\tstringToBytes: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = [], n = 0; n < e.length; n++)\n\t\t\t\t\t\t\t\t\tt.push(255 & e.charCodeAt(n))\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbytesToString: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = [], n = 0; n < e.length; n++)\n\t\t\t\t\t\t\t\t\tt.push(String.fromCharCode(e[n]))\n\t\t\t\t\t\t\t\treturn t.join('')\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t}\n\t\t\t\t\te.exports = t\n\t\t\t\t},\n\t\t\t\t562: (e) => {\n\t\t\t\t\tvar t, n\n\t\t\t\t\t;(t =\n\t\t\t\t\t\t'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'),\n\t\t\t\t\t\t(n = {\n\t\t\t\t\t\t\trotl: function (e, t) {\n\t\t\t\t\t\t\t\treturn (e << t) | (e >>> (32 - t))\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\trotr: function (e, t) {\n\t\t\t\t\t\t\t\treturn (e << (32 - t)) | (e >>> t)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tendian: function (e) {\n\t\t\t\t\t\t\t\tif (e.constructor == Number)\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t(16711935 & n.rotl(e, 8)) |\n\t\t\t\t\t\t\t\t\t\t(4278255360 & n.rotl(e, 24))\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\tfor (var t = 0; t < e.length; t++) e[t] = n.endian(e[t])\n\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\trandomBytes: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = []; e > 0; e--)\n\t\t\t\t\t\t\t\t\tt.push(Math.floor(256 * Math.random()))\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbytesToWords: function (e) {\n\t\t\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\t\t\tvar t = [], n = 0, r = 0;\n\t\t\t\t\t\t\t\t\tn < e.length;\n\t\t\t\t\t\t\t\t\tn++, r += 8\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\tt[r >>> 5] |= e[n] << (24 - (r % 32))\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\twordsToBytes: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = [], n = 0; n < 32 * e.length; n += 8)\n\t\t\t\t\t\t\t\t\tt.push((e[n >>> 5] >>> (24 - (n % 32))) & 255)\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbytesToHex: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = [], n = 0; n < e.length; n++)\n\t\t\t\t\t\t\t\t\tt.push((e[n] >>> 4).toString(16)),\n\t\t\t\t\t\t\t\t\t\tt.push((15 & e[n]).toString(16))\n\t\t\t\t\t\t\t\treturn t.join('')\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\thexToBytes: function (e) {\n\t\t\t\t\t\t\t\tfor (var t = [], n = 0; n < e.length; n += 2)\n\t\t\t\t\t\t\t\t\tt.push(parseInt(e.substr(n, 2), 16))\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbytesToBase64: function (e) {\n\t\t\t\t\t\t\t\tfor (var n = [], r = 0; r < e.length; r += 3)\n\t\t\t\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\t\t\t\tvar i = (e[r] << 16) | (e[r + 1] << 8) | e[r + 2],\n\t\t\t\t\t\t\t\t\t\t\ta = 0;\n\t\t\t\t\t\t\t\t\t\ta < 4;\n\t\t\t\t\t\t\t\t\t\ta++\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t8 * r + 6 * a <= 8 * e.length\n\t\t\t\t\t\t\t\t\t\t\t? n.push(t.charAt((i >>> (6 * (3 - a))) & 63))\n\t\t\t\t\t\t\t\t\t\t\t: n.push('=')\n\t\t\t\t\t\t\t\treturn n.join('')\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tbase64ToBytes: function (e) {\n\t\t\t\t\t\t\t\te = e.replace(/[^A-Z0-9+\\/]/gi, '')\n\t\t\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\t\t\tvar n = [], r = 0, i = 0;\n\t\t\t\t\t\t\t\t\tr < e.length;\n\t\t\t\t\t\t\t\t\ti = ++r % 4\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t0 != i &&\n\t\t\t\t\t\t\t\t\t\tn.push(\n\t\t\t\t\t\t\t\t\t\t\t((t.indexOf(e.charAt(r - 1)) &\n\t\t\t\t\t\t\t\t\t\t\t\t(Math.pow(2, -2 * i + 8) - 1)) <<\n\t\t\t\t\t\t\t\t\t\t\t\t(2 * i)) |\n\t\t\t\t\t\t\t\t\t\t\t\t(t.indexOf(e.charAt(r)) >>> (6 - 2 * i)),\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\treturn n\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(e.exports = n)\n\t\t\t\t},\n\t\t\t\t335: (e) => {\n\t\t\t\t\tfunction t(e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t!!e.constructor &&\n\t\t\t\t\t\t\t'function' == typeof e.constructor.isBuffer &&\n\t\t\t\t\t\t\te.constructor.isBuffer(e)\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t\te.exports = function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\tnull != e &&\n\t\t\t\t\t\t\t(t(e) ||\n\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t'function' == typeof e.readFloatLE &&\n\t\t\t\t\t\t\t\t\t\t'function' == typeof e.slice &&\n\t\t\t\t\t\t\t\t\t\tt(e.slice(0, 0))\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t})(e) ||\n\t\t\t\t\t\t\t\t!!e._isBuffer)\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\t762: (e, t, n) => {\n\t\t\t\t\tvar r, i, a, o, s\n\t\t\t\t\t;(r = n(562)),\n\t\t\t\t\t\t(i = n(792).utf8),\n\t\t\t\t\t\t(a = n(335)),\n\t\t\t\t\t\t(o = n(792).bin),\n\t\t\t\t\t\t((s = function (e, t) {\n\t\t\t\t\t\t\te.constructor == String\n\t\t\t\t\t\t\t\t? (e =\n\t\t\t\t\t\t\t\t\t\tt && 'binary' === t.encoding\n\t\t\t\t\t\t\t\t\t\t\t? o.stringToBytes(e)\n\t\t\t\t\t\t\t\t\t\t\t: i.stringToBytes(e))\n\t\t\t\t\t\t\t\t: a(e)\n\t\t\t\t\t\t\t\t\t? (e = Array.prototype.slice.call(e, 0))\n\t\t\t\t\t\t\t\t\t: Array.isArray(e) ||\n\t\t\t\t\t\t\t\t\t\te.constructor === Uint8Array ||\n\t\t\t\t\t\t\t\t\t\t(e = e.toString())\n\t\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\t\tvar n = r.bytesToWords(e),\n\t\t\t\t\t\t\t\t\tc = 8 * e.length,\n\t\t\t\t\t\t\t\t\tu = 1732584193,\n\t\t\t\t\t\t\t\t\tl = -271733879,\n\t\t\t\t\t\t\t\t\td = -1732584194,\n\t\t\t\t\t\t\t\t\tp = 271733878,\n\t\t\t\t\t\t\t\t\tm = 0;\n\t\t\t\t\t\t\t\tm < n.length;\n\t\t\t\t\t\t\t\tm++\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\tn[m] =\n\t\t\t\t\t\t\t\t\t(16711935 & ((n[m] << 8) | (n[m] >>> 24))) |\n\t\t\t\t\t\t\t\t\t(4278255360 & ((n[m] << 24) | (n[m] >>> 8)))\n\t\t\t\t\t\t\t;(n[c >>> 5] |= 128 << (c % 32)),\n\t\t\t\t\t\t\t\t(n[14 + (((c + 64) >>> 9) << 4)] = c)\n\t\t\t\t\t\t\tvar f = s._ff,\n\t\t\t\t\t\t\t\tv = s._gg,\n\t\t\t\t\t\t\t\tg = s._hh,\n\t\t\t\t\t\t\t\tb = s._ii\n\t\t\t\t\t\t\tfor (m = 0; m < n.length; m += 16) {\n\t\t\t\t\t\t\t\tvar h = u,\n\t\t\t\t\t\t\t\t\tw = l,\n\t\t\t\t\t\t\t\t\ty = d,\n\t\t\t\t\t\t\t\t\tT = p\n\t\t\t\t\t\t\t\t;(u = f(u, l, d, p, n[m + 0], 7, -680876936)),\n\t\t\t\t\t\t\t\t\t(p = f(p, u, l, d, n[m + 1], 12, -389564586)),\n\t\t\t\t\t\t\t\t\t(d = f(d, p, u, l, n[m + 2], 17, 606105819)),\n\t\t\t\t\t\t\t\t\t(l = f(l, d, p, u, n[m + 3], 22, -1044525330)),\n\t\t\t\t\t\t\t\t\t(u = f(u, l, d, p, n[m + 4], 7, -176418897)),\n\t\t\t\t\t\t\t\t\t(p = f(p, u, l, d, n[m + 5], 12, 1200080426)),\n\t\t\t\t\t\t\t\t\t(d = f(d, p, u, l, n[m + 6], 17, -1473231341)),\n\t\t\t\t\t\t\t\t\t(l = f(l, d, p, u, n[m + 7], 22, -45705983)),\n\t\t\t\t\t\t\t\t\t(u = f(u, l, d, p, n[m + 8], 7, 1770035416)),\n\t\t\t\t\t\t\t\t\t(p = f(p, u, l, d, n[m + 9], 12, -1958414417)),\n\t\t\t\t\t\t\t\t\t(d = f(d, p, u, l, n[m + 10], 17, -42063)),\n\t\t\t\t\t\t\t\t\t(l = f(l, d, p, u, n[m + 11], 22, -1990404162)),\n\t\t\t\t\t\t\t\t\t(u = f(u, l, d, p, n[m + 12], 7, 1804603682)),\n\t\t\t\t\t\t\t\t\t(p = f(p, u, l, d, n[m + 13], 12, -40341101)),\n\t\t\t\t\t\t\t\t\t(d = f(d, p, u, l, n[m + 14], 17, -1502002290)),\n\t\t\t\t\t\t\t\t\t(u = v(\n\t\t\t\t\t\t\t\t\t\tu,\n\t\t\t\t\t\t\t\t\t\t(l = f(l, d, p, u, n[m + 15], 22, 1236535329)),\n\t\t\t\t\t\t\t\t\t\td,\n\t\t\t\t\t\t\t\t\t\tp,\n\t\t\t\t\t\t\t\t\t\tn[m + 1],\n\t\t\t\t\t\t\t\t\t\t5,\n\t\t\t\t\t\t\t\t\t\t-165796510,\n\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t(p = v(p, u, l, d, n[m + 6], 9, -1069501632)),\n\t\t\t\t\t\t\t\t\t(d = v(d, p, u, l, n[m + 11], 14, 643717713)),\n\t\t\t\t\t\t\t\t\t(l = v(l, d, p, u, n[m + 0], 20, -373897302)),\n\t\t\t\t\t\t\t\t\t(u = v(u, l, d, p, n[m + 5], 5, -701558691)),\n\t\t\t\t\t\t\t\t\t(p = v(p, u, l, d, n[m + 10], 9, 38016083)),\n\t\t\t\t\t\t\t\t\t(d = v(d, p, u, l, n[m + 15], 14, -660478335)),\n\t\t\t\t\t\t\t\t\t(l = v(l, d, p, u, n[m + 4], 20, -405537848)),\n\t\t\t\t\t\t\t\t\t(u = v(u, l, d, p, n[m + 9], 5, 568446438)),\n\t\t\t\t\t\t\t\t\t(p = v(p, u, l, d, n[m + 14], 9, -1019803690)),\n\t\t\t\t\t\t\t\t\t(d = v(d, p, u, l, n[m + 3], 14, -187363961)),\n\t\t\t\t\t\t\t\t\t(l = v(l, d, p, u, n[m + 8], 20, 1163531501)),\n\t\t\t\t\t\t\t\t\t(u = v(u, l, d, p, n[m + 13], 5, -1444681467)),\n\t\t\t\t\t\t\t\t\t(p = v(p, u, l, d, n[m + 2], 9, -51403784)),\n\t\t\t\t\t\t\t\t\t(d = v(d, p, u, l, n[m + 7], 14, 1735328473)),\n\t\t\t\t\t\t\t\t\t(u = g(\n\t\t\t\t\t\t\t\t\t\tu,\n\t\t\t\t\t\t\t\t\t\t(l = v(l, d, p, u, n[m + 12], 20, -1926607734)),\n\t\t\t\t\t\t\t\t\t\td,\n\t\t\t\t\t\t\t\t\t\tp,\n\t\t\t\t\t\t\t\t\t\tn[m + 5],\n\t\t\t\t\t\t\t\t\t\t4,\n\t\t\t\t\t\t\t\t\t\t-378558,\n\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t(p = g(p, u, l, d, n[m + 8], 11, -2022574463)),\n\t\t\t\t\t\t\t\t\t(d = g(d, p, u, l, n[m + 11], 16, 1839030562)),\n\t\t\t\t\t\t\t\t\t(l = g(l, d, p, u, n[m + 14], 23, -35309556)),\n\t\t\t\t\t\t\t\t\t(u = g(u, l, d, p, n[m + 1], 4, -1530992060)),\n\t\t\t\t\t\t\t\t\t(p = g(p, u, l, d, n[m + 4], 11, 1272893353)),\n\t\t\t\t\t\t\t\t\t(d = g(d, p, u, l, n[m + 7], 16, -155497632)),\n\t\t\t\t\t\t\t\t\t(l = g(l, d, p, u, n[m + 10], 23, -1094730640)),\n\t\t\t\t\t\t\t\t\t(u = g(u, l, d, p, n[m + 13], 4, 681279174)),\n\t\t\t\t\t\t\t\t\t(p = g(p, u, l, d, n[m + 0], 11, -358537222)),\n\t\t\t\t\t\t\t\t\t(d = g(d, p, u, l, n[m + 3], 16, -722521979)),\n\t\t\t\t\t\t\t\t\t(l = g(l, d, p, u, n[m + 6], 23, 76029189)),\n\t\t\t\t\t\t\t\t\t(u = g(u, l, d, p, n[m + 9], 4, -640364487)),\n\t\t\t\t\t\t\t\t\t(p = g(p, u, l, d, n[m + 12], 11, -421815835)),\n\t\t\t\t\t\t\t\t\t(d = g(d, p, u, l, n[m + 15], 16, 530742520)),\n\t\t\t\t\t\t\t\t\t(u = b(\n\t\t\t\t\t\t\t\t\t\tu,\n\t\t\t\t\t\t\t\t\t\t(l = g(l, d, p, u, n[m + 2], 23, -995338651)),\n\t\t\t\t\t\t\t\t\t\td,\n\t\t\t\t\t\t\t\t\t\tp,\n\t\t\t\t\t\t\t\t\t\tn[m + 0],\n\t\t\t\t\t\t\t\t\t\t6,\n\t\t\t\t\t\t\t\t\t\t-198630844,\n\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t(p = b(p, u, l, d, n[m + 7], 10, 1126891415)),\n\t\t\t\t\t\t\t\t\t(d = b(d, p, u, l, n[m + 14], 15, -1416354905)),\n\t\t\t\t\t\t\t\t\t(l = b(l, d, p, u, n[m + 5], 21, -57434055)),\n\t\t\t\t\t\t\t\t\t(u = b(u, l, d, p, n[m + 12], 6, 1700485571)),\n\t\t\t\t\t\t\t\t\t(p = b(p, u, l, d, n[m + 3], 10, -1894986606)),\n\t\t\t\t\t\t\t\t\t(d = b(d, p, u, l, n[m + 10], 15, -1051523)),\n\t\t\t\t\t\t\t\t\t(l = b(l, d, p, u, n[m + 1], 21, -2054922799)),\n\t\t\t\t\t\t\t\t\t(u = b(u, l, d, p, n[m + 8], 6, 1873313359)),\n\t\t\t\t\t\t\t\t\t(p = b(p, u, l, d, n[m + 15], 10, -30611744)),\n\t\t\t\t\t\t\t\t\t(d = b(d, p, u, l, n[m + 6], 15, -1560198380)),\n\t\t\t\t\t\t\t\t\t(l = b(l, d, p, u, n[m + 13], 21, 1309151649)),\n\t\t\t\t\t\t\t\t\t(u = b(u, l, d, p, n[m + 4], 6, -145523070)),\n\t\t\t\t\t\t\t\t\t(p = b(p, u, l, d, n[m + 11], 10, -1120210379)),\n\t\t\t\t\t\t\t\t\t(d = b(d, p, u, l, n[m + 2], 15, 718787259)),\n\t\t\t\t\t\t\t\t\t(l = b(l, d, p, u, n[m + 9], 21, -343485551)),\n\t\t\t\t\t\t\t\t\t(u = (u + h) >>> 0),\n\t\t\t\t\t\t\t\t\t(l = (l + w) >>> 0),\n\t\t\t\t\t\t\t\t\t(d = (d + y) >>> 0),\n\t\t\t\t\t\t\t\t\t(p = (p + T) >>> 0)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn r.endian([u, l, d, p])\n\t\t\t\t\t\t})._ff = function (e, t, n, r, i, a, o) {\n\t\t\t\t\t\t\tvar s = e + ((t & n) | (~t & r)) + (i >>> 0) + o\n\t\t\t\t\t\t\treturn ((s << a) | (s >>> (32 - a))) + t\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(s._gg = function (e, t, n, r, i, a, o) {\n\t\t\t\t\t\t\tvar s = e + ((t & r) | (n & ~r)) + (i >>> 0) + o\n\t\t\t\t\t\t\treturn ((s << a) | (s >>> (32 - a))) + t\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(s._hh = function (e, t, n, r, i, a, o) {\n\t\t\t\t\t\t\tvar s = e + (t ^ n ^ r) + (i >>> 0) + o\n\t\t\t\t\t\t\treturn ((s << a) | (s >>> (32 - a))) + t\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(s._ii = function (e, t, n, r, i, a, o) {\n\t\t\t\t\t\t\tvar s = e + (n ^ (t | ~r)) + (i >>> 0) + o\n\t\t\t\t\t\t\treturn ((s << a) | (s >>> (32 - a))) + t\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(s._blocksize = 16),\n\t\t\t\t\t\t(s._digestsize = 16),\n\t\t\t\t\t\t(e.exports = function (e, t) {\n\t\t\t\t\t\t\tif (null == e) throw new Error('Illegal argument ' + e)\n\t\t\t\t\t\t\tvar n = r.wordsToBytes(s(e, t))\n\t\t\t\t\t\t\treturn t && t.asBytes\n\t\t\t\t\t\t\t\t? n\n\t\t\t\t\t\t\t\t: t && t.asString\n\t\t\t\t\t\t\t\t\t? o.bytesToString(n)\n\t\t\t\t\t\t\t\t\t: r.bytesToHex(n)\n\t\t\t\t\t\t})\n\t\t\t\t},\n\t\t\t\t2: (e, t, n) => {\n\t\t\t\t\t'use strict'\n\t\t\t\t\tn.r(t),\n\t\t\t\t\t\tn.d(t, {\n\t\t\t\t\t\t\tPerfume: () => ze,\n\t\t\t\t\t\t\tincrementUjNavigation: () => Le,\n\t\t\t\t\t\t\tmarkStep: () => Re,\n\t\t\t\t\t\t\tmarkStepOnce: () => qe,\n\t\t\t\t\t\t})\n\t\t\t\t\tvar r,\n\t\t\t\t\t\ti,\n\t\t\t\t\t\ta = {\n\t\t\t\t\t\t\tisResourceTiming: !1,\n\t\t\t\t\t\t\tisElementTiming: !1,\n\t\t\t\t\t\t\tmaxTime: 3e4,\n\t\t\t\t\t\t\treportOptions: {},\n\t\t\t\t\t\t\tenableNavigationTracking: !0,\n\t\t\t\t\t\t},\n\t\t\t\t\t\to = window,\n\t\t\t\t\t\ts = o.console,\n\t\t\t\t\t\tc = o.navigator,\n\t\t\t\t\t\tu = o.performance,\n\t\t\t\t\t\tl = function () {\n\t\t\t\t\t\t\treturn c.deviceMemory\n\t\t\t\t\t\t},\n\t\t\t\t\t\td = function () {\n\t\t\t\t\t\t\treturn c.hardwareConcurrency\n\t\t\t\t\t\t},\n\t\t\t\t\t\tp = 'mark.',\n\t\t\t\t\t\tm = function () {\n\t\t\t\t\t\t\treturn u && !!u.getEntriesByType && !!u.now && !!u.mark\n\t\t\t\t\t\t},\n\t\t\t\t\t\tf = '4g',\n\t\t\t\t\t\tv = !1,\n\t\t\t\t\t\tg = {},\n\t\t\t\t\t\tb = { value: 0 },\n\t\t\t\t\t\th = {\n\t\t\t\t\t\t\tvalue: {\n\t\t\t\t\t\t\t\tbeacon: 0,\n\t\t\t\t\t\t\t\tcss: 0,\n\t\t\t\t\t\t\t\tfetch: 0,\n\t\t\t\t\t\t\t\timg: 0,\n\t\t\t\t\t\t\t\tother: 0,\n\t\t\t\t\t\t\t\tscript: 0,\n\t\t\t\t\t\t\t\ttotal: 0,\n\t\t\t\t\t\t\t\txmlhttprequest: 0,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tw = { value: 0 },\n\t\t\t\t\t\ty = { value: 0 },\n\t\t\t\t\t\tT = {},\n\t\t\t\t\t\tk = { isHidden: !1, didChange: !1 },\n\t\t\t\t\t\t_ = function () {\n\t\t\t\t\t\t\t;(k.isHidden = !1),\n\t\t\t\t\t\t\t\tdocument.hidden &&\n\t\t\t\t\t\t\t\t\t((k.isHidden = document.hidden), (k.didChange = !0))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tS = function (e, t) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tvar n = new PerformanceObserver(function (e) {\n\t\t\t\t\t\t\t\t\tt(e.getEntries())\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\treturn n.observe({ type: e, buffered: !0 }), n\n\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\ts.warn('Perfume.js:', e)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn null\n\t\t\t\t\t\t},\n\t\t\t\t\t\tE = function () {\n\t\t\t\t\t\t\treturn !!(d() && d() <= 4) || !!(l() && l() <= 4)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tx = function (e, t) {\n\t\t\t\t\t\t\tswitch (e) {\n\t\t\t\t\t\t\t\tcase 'slow-2g':\n\t\t\t\t\t\t\t\tcase '2g':\n\t\t\t\t\t\t\t\tcase '3g':\n\t\t\t\t\t\t\t\t\treturn !0\n\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\treturn E() || t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tO = function (e) {\n\t\t\t\t\t\t\treturn parseFloat(e.toFixed(4))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tj = function (e) {\n\t\t\t\t\t\t\treturn 'number' != typeof e\n\t\t\t\t\t\t\t\t? null\n\t\t\t\t\t\t\t\t: O(e / Math.pow(1024, 2))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tN = function (e, t, n, r, i) {\n\t\t\t\t\t\t\tvar s,\n\t\t\t\t\t\t\t\tu = function () {\n\t\t\t\t\t\t\t\t\ta.analyticsTracker &&\n\t\t\t\t\t\t\t\t\t\t((k.isHidden && !['CLS', 'INP'].includes(e)) ||\n\t\t\t\t\t\t\t\t\t\t\ta.analyticsTracker({\n\t\t\t\t\t\t\t\t\t\t\t\tattribution: r,\n\t\t\t\t\t\t\t\t\t\t\t\tmetricName: e,\n\t\t\t\t\t\t\t\t\t\t\t\tdata: t,\n\t\t\t\t\t\t\t\t\t\t\t\tnavigatorInformation: c\n\t\t\t\t\t\t\t\t\t\t\t\t\t? {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdeviceMemory: l() || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thardwareConcurrency: d() || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tserviceWorkerStatus:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'serviceWorker' in c\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? c.serviceWorker.controller\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? 'controlled'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 'supported'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 'unsupported',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisLowEndDevice: E(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisLowEndExperience: x(f, v),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t: {},\n\t\t\t\t\t\t\t\t\t\t\t\trating: n,\n\t\t\t\t\t\t\t\t\t\t\t\tnavigationType: i,\n\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t;['CLS', 'INP'].includes(e)\n\t\t\t\t\t\t\t\t? u()\n\t\t\t\t\t\t\t\t: ((s = u),\n\t\t\t\t\t\t\t\t\t'requestIdleCallback' in o\n\t\t\t\t\t\t\t\t\t\t? o.requestIdleCallback(s, { timeout: 3e3 })\n\t\t\t\t\t\t\t\t\t\t: s())\n\t\t\t\t\t\t},\n\t\t\t\t\t\tI = function (e) {\n\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\tif (!('self' !== e.name || e.startTime < b.value)) {\n\t\t\t\t\t\t\t\t\tvar t = e.duration - 50\n\t\t\t\t\t\t\t\t\tt > 0 && ((w.value += t), (y.value += t))\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t;(e.instant = 'instant'),\n\t\t\t\t\t\t\t(e.quick = 'quick'),\n\t\t\t\t\t\t\t(e.moderate = 'moderate'),\n\t\t\t\t\t\t\t(e.slow = 'slow'),\n\t\t\t\t\t\t\t(e.unavoidable = 'unavoidable')\n\t\t\t\t\t})(r || (r = {}))\n\t\t\t\t\tvar P,\n\t\t\t\t\t\tM,\n\t\t\t\t\t\tB,\n\t\t\t\t\t\tC,\n\t\t\t\t\t\tD,\n\t\t\t\t\t\tA =\n\t\t\t\t\t\t\t(((i = {})[r.instant] = {\n\t\t\t\t\t\t\t\tvitalsThresholds: [100, 200],\n\t\t\t\t\t\t\t\tmaxOutlierThreshold: 1e4,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t(i[r.quick] = {\n\t\t\t\t\t\t\t\tvitalsThresholds: [200, 500],\n\t\t\t\t\t\t\t\tmaxOutlierThreshold: 1e4,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t(i[r.moderate] = {\n\t\t\t\t\t\t\t\tvitalsThresholds: [500, 1e3],\n\t\t\t\t\t\t\t\tmaxOutlierThreshold: 1e4,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t(i[r.slow] = {\n\t\t\t\t\t\t\t\tvitalsThresholds: [1e3, 2e3],\n\t\t\t\t\t\t\t\tmaxOutlierThreshold: 1e4,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t(i[r.unavoidable] = {\n\t\t\t\t\t\t\t\tvitalsThresholds: [2e3, 5e3],\n\t\t\t\t\t\t\t\tmaxOutlierThreshold: 2e4,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\ti),\n\t\t\t\t\t\tL = { RT: [100, 200], TBT: [200, 600], NTBT: [200, 600] },\n\t\t\t\t\t\tU = function (e, t) {\n\t\t\t\t\t\t\treturn L[e]\n\t\t\t\t\t\t\t\t? t <= L[e][0]\n\t\t\t\t\t\t\t\t\t? 'good'\n\t\t\t\t\t\t\t\t\t: t <= L[e][1]\n\t\t\t\t\t\t\t\t\t\t? 'needsImprovement'\n\t\t\t\t\t\t\t\t\t\t: 'poor'\n\t\t\t\t\t\t\t\t: null\n\t\t\t\t\t\t},\n\t\t\t\t\t\tR = function (e, t, n) {\n\t\t\t\t\t\t\tObject.keys(t).forEach(function (e) {\n\t\t\t\t\t\t\t\t'number' == typeof t[e] && (t[e] = O(t[e]))\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\tN(e, t, null, n || {})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tq = function (e) {\n\t\t\t\t\t\t\tvar t = e.attribution,\n\t\t\t\t\t\t\t\tn = e.name,\n\t\t\t\t\t\t\t\tr = e.rating,\n\t\t\t\t\t\t\t\ti = e.value,\n\t\t\t\t\t\t\t\to = e.navigationType\n\t\t\t\t\t\t\t'FCP' === n && (b.value = i),\n\t\t\t\t\t\t\t\t['FCP', 'LCP'].includes(n) &&\n\t\t\t\t\t\t\t\t\t!T[0] &&\n\t\t\t\t\t\t\t\t\t(T[0] = S('longtask', I)),\n\t\t\t\t\t\t\t\t'FID' === n &&\n\t\t\t\t\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\t\t\t\t\tk.didChange ||\n\t\t\t\t\t\t\t\t\t\t\t(q({\n\t\t\t\t\t\t\t\t\t\t\t\tattribution: t,\n\t\t\t\t\t\t\t\t\t\t\t\tname: 'TBT',\n\t\t\t\t\t\t\t\t\t\t\t\trating: U('TBT', w.value),\n\t\t\t\t\t\t\t\t\t\t\t\tvalue: w.value,\n\t\t\t\t\t\t\t\t\t\t\t\tnavigationType: o,\n\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tR('dataConsumption', h.value))\n\t\t\t\t\t\t\t\t\t}, 1e4)\n\t\t\t\t\t\t\tvar s = O(i)\n\t\t\t\t\t\t\ts <= a.maxTime && s >= 0 && N(n, s, r, t, o)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tF = function () {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\twindow.performance &&\n\t\t\t\t\t\t\t\tperformance.getEntriesByType &&\n\t\t\t\t\t\t\t\tperformance.getEntriesByType('navigation')[0]\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tz = function (e) {\n\t\t\t\t\t\t\tif ('loading' === document.readyState) return 'loading'\n\t\t\t\t\t\t\tvar t = F()\n\t\t\t\t\t\t\tif (t) {\n\t\t\t\t\t\t\t\tif (e < t.domInteractive) return 'loading'\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t0 === t.domContentLoadedEventStart ||\n\t\t\t\t\t\t\t\t\te < t.domContentLoadedEventStart\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\treturn 'dom-interactive'\n\t\t\t\t\t\t\t\tif (0 === t.domComplete || e < t.domComplete)\n\t\t\t\t\t\t\t\t\treturn 'dom-content-loaded'\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn 'complete'\n\t\t\t\t\t\t},\n\t\t\t\t\t\tK = function (e) {\n\t\t\t\t\t\t\tvar t = e.nodeName\n\t\t\t\t\t\t\treturn 1 === e.nodeType\n\t\t\t\t\t\t\t\t? t.toLowerCase()\n\t\t\t\t\t\t\t\t: t.toUpperCase().replace(/^#/, '')\n\t\t\t\t\t\t},\n\t\t\t\t\t\t$ = function (e, t) {\n\t\t\t\t\t\t\tvar n = ''\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tfor (; e && 9 !== e.nodeType; ) {\n\t\t\t\t\t\t\t\t\tvar r = e,\n\t\t\t\t\t\t\t\t\t\ti = r.id\n\t\t\t\t\t\t\t\t\t\t\t? '#' + r.id\n\t\t\t\t\t\t\t\t\t\t\t: K(r) +\n\t\t\t\t\t\t\t\t\t\t\t\t(r.className && r.className.length\n\t\t\t\t\t\t\t\t\t\t\t\t\t? '.' + r.className.replace(/\\s+/g, '.')\n\t\t\t\t\t\t\t\t\t\t\t\t\t: '')\n\t\t\t\t\t\t\t\t\tif (n.length + i.length > (t || 100) - 1)\n\t\t\t\t\t\t\t\t\t\treturn n || i\n\t\t\t\t\t\t\t\t\tif (((n = n ? i + '>' + n : i), r.id)) break\n\t\t\t\t\t\t\t\t\te = r.parentNode\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t\t\treturn n\n\t\t\t\t\t\t},\n\t\t\t\t\t\tQ = -1,\n\t\t\t\t\t\tW = function () {\n\t\t\t\t\t\t\treturn Q\n\t\t\t\t\t\t},\n\t\t\t\t\t\tH = function (e) {\n\t\t\t\t\t\t\taddEventListener(\n\t\t\t\t\t\t\t\t'pageshow',\n\t\t\t\t\t\t\t\tfunction (t) {\n\t\t\t\t\t\t\t\t\tt.persisted && ((Q = t.timeStamp), e(t))\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t!0,\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tV = function () {\n\t\t\t\t\t\t\tvar e = F()\n\t\t\t\t\t\t\treturn (e && e.activationStart) || 0\n\t\t\t\t\t\t},\n\t\t\t\t\t\tJ = function (e, t) {\n\t\t\t\t\t\t\tvar n = F(),\n\t\t\t\t\t\t\t\tr = 'navigate'\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\tW() >= 0\n\t\t\t\t\t\t\t\t\t? (r = 'back-forward-cache')\n\t\t\t\t\t\t\t\t\t: n &&\n\t\t\t\t\t\t\t\t\t\t(r =\n\t\t\t\t\t\t\t\t\t\t\tdocument.prerendering || V() > 0\n\t\t\t\t\t\t\t\t\t\t\t\t? 'prerender'\n\t\t\t\t\t\t\t\t\t\t\t\t: document.wasDiscarded\n\t\t\t\t\t\t\t\t\t\t\t\t\t? 'restore'\n\t\t\t\t\t\t\t\t\t\t\t\t\t: n.type.replace(/_/g, '-')),\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tname: e,\n\t\t\t\t\t\t\t\t\tvalue: void 0 === t ? -1 : t,\n\t\t\t\t\t\t\t\t\trating: 'good',\n\t\t\t\t\t\t\t\t\tdelta: 0,\n\t\t\t\t\t\t\t\t\tentries: [],\n\t\t\t\t\t\t\t\t\tid: 'v3-'\n\t\t\t\t\t\t\t\t\t\t.concat(Date.now(), '-')\n\t\t\t\t\t\t\t\t\t\t.concat(\n\t\t\t\t\t\t\t\t\t\t\tMath.floor(8999999999999 * Math.random()) +\n\t\t\t\t\t\t\t\t\t\t\t\t1e12,\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\tnavigationType: r,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tX = function (e, t, n) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\tPerformanceObserver.supportedEntryTypes.includes(e)\n\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\tvar r = new PerformanceObserver(function (e) {\n\t\t\t\t\t\t\t\t\t\tPromise.resolve().then(function () {\n\t\t\t\t\t\t\t\t\t\t\tt(e.getEntries())\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\tr.observe(\n\t\t\t\t\t\t\t\t\t\t\tObject.assign(\n\t\t\t\t\t\t\t\t\t\t\t\t{ type: e, buffered: !0 },\n\t\t\t\t\t\t\t\t\t\t\t\tn || {},\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\tr\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tG = function (e, t) {\n\t\t\t\t\t\t\tvar n = function n(r) {\n\t\t\t\t\t\t\t\t;('pagehide' !== r.type &&\n\t\t\t\t\t\t\t\t\t'hidden' !== document.visibilityState) ||\n\t\t\t\t\t\t\t\t\t(e(r),\n\t\t\t\t\t\t\t\t\tt &&\n\t\t\t\t\t\t\t\t\t\t(removeEventListener('visibilitychange', n, !0),\n\t\t\t\t\t\t\t\t\t\tremoveEventListener('pagehide', n, !0)))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\taddEventListener('visibilitychange', n, !0),\n\t\t\t\t\t\t\t\taddEventListener('pagehide', n, !0)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tZ = function (e, t, n, r) {\n\t\t\t\t\t\t\tvar i, a\n\t\t\t\t\t\t\treturn function (o) {\n\t\t\t\t\t\t\t\tt.value >= 0 &&\n\t\t\t\t\t\t\t\t\t(o || r) &&\n\t\t\t\t\t\t\t\t\t((a = t.value - (i || 0)) || void 0 === i) &&\n\t\t\t\t\t\t\t\t\t((i = t.value),\n\t\t\t\t\t\t\t\t\t(t.delta = a),\n\t\t\t\t\t\t\t\t\t(t.rating = (function (e, t) {\n\t\t\t\t\t\t\t\t\t\treturn e > t[1]\n\t\t\t\t\t\t\t\t\t\t\t? 'poor'\n\t\t\t\t\t\t\t\t\t\t\t: e > t[0]\n\t\t\t\t\t\t\t\t\t\t\t\t? 'needs-improvement'\n\t\t\t\t\t\t\t\t\t\t\t\t: 'good'\n\t\t\t\t\t\t\t\t\t})(t.value, n)),\n\t\t\t\t\t\t\t\t\te(t))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tY = function (e) {\n\t\t\t\t\t\t\trequestAnimationFrame(function () {\n\t\t\t\t\t\t\t\treturn requestAnimationFrame(function () {\n\t\t\t\t\t\t\t\t\treturn e()\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tee = function (e) {\n\t\t\t\t\t\t\tdocument.prerendering\n\t\t\t\t\t\t\t\t? addEventListener(\n\t\t\t\t\t\t\t\t\t\t'prerenderingchange',\n\t\t\t\t\t\t\t\t\t\tfunction () {\n\t\t\t\t\t\t\t\t\t\t\treturn e()\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t!0,\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t: e()\n\t\t\t\t\t\t},\n\t\t\t\t\t\tte = -1,\n\t\t\t\t\t\tne = function () {\n\t\t\t\t\t\t\treturn 'hidden' !== document.visibilityState ||\n\t\t\t\t\t\t\t\tdocument.prerendering\n\t\t\t\t\t\t\t\t? 1 / 0\n\t\t\t\t\t\t\t\t: 0\n\t\t\t\t\t\t},\n\t\t\t\t\t\tre = function (e) {\n\t\t\t\t\t\t\t'hidden' === document.visibilityState &&\n\t\t\t\t\t\t\t\tte > -1 &&\n\t\t\t\t\t\t\t\t((te = 'visibilitychange' === e.type ? e.timeStamp : 0),\n\t\t\t\t\t\t\t\tae())\n\t\t\t\t\t\t},\n\t\t\t\t\t\tie = function () {\n\t\t\t\t\t\t\taddEventListener('visibilitychange', re, !0),\n\t\t\t\t\t\t\t\taddEventListener('prerenderingchange', re, !0)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tae = function () {\n\t\t\t\t\t\t\tremoveEventListener('visibilitychange', re, !0),\n\t\t\t\t\t\t\t\tremoveEventListener('prerenderingchange', re, !0)\n\t\t\t\t\t\t},\n\t\t\t\t\t\toe = function () {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\tte < 0 &&\n\t\t\t\t\t\t\t\t\t((te = ne()),\n\t\t\t\t\t\t\t\t\tie(),\n\t\t\t\t\t\t\t\t\tH(function () {\n\t\t\t\t\t\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\t\t\t\t\t\t;(te = ne()), ie()\n\t\t\t\t\t\t\t\t\t\t}, 0)\n\t\t\t\t\t\t\t\t\t})),\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tget firstHiddenTime() {\n\t\t\t\t\t\t\t\t\t\treturn te\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tse = function (e, t) {\n\t\t\t\t\t\t\t;(t = t || {}),\n\t\t\t\t\t\t\t\tee(function () {\n\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\tr = [1800, 3e3],\n\t\t\t\t\t\t\t\t\t\ti = oe(),\n\t\t\t\t\t\t\t\t\t\ta = J('FCP'),\n\t\t\t\t\t\t\t\t\t\to = X('paint', function (e) {\n\t\t\t\t\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t'first-contentful-paint' === e.name &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t(o.disconnect(),\n\t\t\t\t\t\t\t\t\t\t\t\t\te.startTime < i.firstHiddenTime &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t((a.value = Math.max(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.startTime - V(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ta.entries.push(e),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(!0)))\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\to &&\n\t\t\t\t\t\t\t\t\t\t((n = Z(e, a, r, t.reportAllChanges)),\n\t\t\t\t\t\t\t\t\t\tH(function (i) {\n\t\t\t\t\t\t\t\t\t\t\t;(a = J('FCP')),\n\t\t\t\t\t\t\t\t\t\t\t\t(n = Z(e, a, r, t.reportAllChanges)),\n\t\t\t\t\t\t\t\t\t\t\t\tY(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t;(a.value =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tperformance.now() - i.timeStamp),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(!0)\n\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tce = { passive: !0, capture: !0 },\n\t\t\t\t\t\tue = new Date(),\n\t\t\t\t\t\tle = function (e, t) {\n\t\t\t\t\t\t\tP ||\n\t\t\t\t\t\t\t\t((P = t),\n\t\t\t\t\t\t\t\t(M = e),\n\t\t\t\t\t\t\t\t(B = new Date()),\n\t\t\t\t\t\t\t\tme(removeEventListener),\n\t\t\t\t\t\t\t\tde())\n\t\t\t\t\t\t},\n\t\t\t\t\t\tde = function () {\n\t\t\t\t\t\t\tif (M >= 0 && M < B - ue) {\n\t\t\t\t\t\t\t\tvar e = {\n\t\t\t\t\t\t\t\t\tentryType: 'first-input',\n\t\t\t\t\t\t\t\t\tname: P.type,\n\t\t\t\t\t\t\t\t\ttarget: P.target,\n\t\t\t\t\t\t\t\t\tcancelable: P.cancelable,\n\t\t\t\t\t\t\t\t\tstartTime: P.timeStamp,\n\t\t\t\t\t\t\t\t\tprocessingStart: P.timeStamp + M,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tC.forEach(function (t) {\n\t\t\t\t\t\t\t\t\tt(e)\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(C = [])\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tpe = function (e) {\n\t\t\t\t\t\t\tif (e.cancelable) {\n\t\t\t\t\t\t\t\tvar t =\n\t\t\t\t\t\t\t\t\t(e.timeStamp > 1e12\n\t\t\t\t\t\t\t\t\t\t? new Date()\n\t\t\t\t\t\t\t\t\t\t: performance.now()) - e.timeStamp\n\t\t\t\t\t\t\t\t'pointerdown' == e.type\n\t\t\t\t\t\t\t\t\t? (function (e, t) {\n\t\t\t\t\t\t\t\t\t\t\tvar n = function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\tle(e, t), i()\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\tr = function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\ti()\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\ti = function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\tremoveEventListener('pointerup', n, ce),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tremoveEventListener(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'pointercancel',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tce,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\taddEventListener('pointerup', n, ce),\n\t\t\t\t\t\t\t\t\t\t\t\taddEventListener('pointercancel', r, ce)\n\t\t\t\t\t\t\t\t\t\t})(t, e)\n\t\t\t\t\t\t\t\t\t: le(t, e)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tme = function (e) {\n\t\t\t\t\t\t\t;[\n\t\t\t\t\t\t\t\t'mousedown',\n\t\t\t\t\t\t\t\t'keydown',\n\t\t\t\t\t\t\t\t'touchstart',\n\t\t\t\t\t\t\t\t'pointerdown',\n\t\t\t\t\t\t\t].forEach(function (t) {\n\t\t\t\t\t\t\t\treturn e(t, pe, ce)\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tfe = 0,\n\t\t\t\t\t\tve = 1 / 0,\n\t\t\t\t\t\tge = 0,\n\t\t\t\t\t\tbe = function (e) {\n\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\te.interactionId &&\n\t\t\t\t\t\t\t\t\t((ve = Math.min(ve, e.interactionId)),\n\t\t\t\t\t\t\t\t\t(ge = Math.max(ge, e.interactionId)),\n\t\t\t\t\t\t\t\t\t(fe = ge ? (ge - ve) / 7 + 1 : 0))\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\the = function () {\n\t\t\t\t\t\t\treturn D ? fe : performance.interactionCount || 0\n\t\t\t\t\t\t},\n\t\t\t\t\t\twe = 0,\n\t\t\t\t\t\tye = function () {\n\t\t\t\t\t\t\treturn he() - we\n\t\t\t\t\t\t},\n\t\t\t\t\t\tTe = [],\n\t\t\t\t\t\tke = {},\n\t\t\t\t\t\t_e = function (e) {\n\t\t\t\t\t\t\tvar t = Te[Te.length - 1],\n\t\t\t\t\t\t\t\tn = ke[e.interactionId]\n\t\t\t\t\t\t\tif (n || Te.length < 10 || e.duration > t.latency) {\n\t\t\t\t\t\t\t\tif (n)\n\t\t\t\t\t\t\t\t\tn.entries.push(e),\n\t\t\t\t\t\t\t\t\t\t(n.latency = Math.max(n.latency, e.duration))\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tvar r = {\n\t\t\t\t\t\t\t\t\t\tid: e.interactionId,\n\t\t\t\t\t\t\t\t\t\tlatency: e.duration,\n\t\t\t\t\t\t\t\t\t\tentries: [e],\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t;(ke[r.id] = r), Te.push(r)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tTe.sort(function (e, t) {\n\t\t\t\t\t\t\t\t\treturn t.latency - e.latency\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\tTe.splice(10).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\tdelete ke[e.id]\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tSe = {},\n\t\t\t\t\t\tEe = function e(t) {\n\t\t\t\t\t\t\tdocument.prerendering\n\t\t\t\t\t\t\t\t? ee(function () {\n\t\t\t\t\t\t\t\t\t\treturn e(t)\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t: 'complete' !== document.readyState\n\t\t\t\t\t\t\t\t\t? addEventListener(\n\t\t\t\t\t\t\t\t\t\t\t'load',\n\t\t\t\t\t\t\t\t\t\t\tfunction () {\n\t\t\t\t\t\t\t\t\t\t\t\treturn e(t)\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t!0,\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t: setTimeout(t, 0)\n\t\t\t\t\t\t},\n\t\t\t\t\t\txe = function (e, t) {\n\t\t\t\t\t\t\tt = t || {}\n\t\t\t\t\t\t\tvar n = [800, 1800],\n\t\t\t\t\t\t\t\tr = J('TTFB'),\n\t\t\t\t\t\t\t\ti = Z(e, r, n, t.reportAllChanges)\n\t\t\t\t\t\t\tEe(function () {\n\t\t\t\t\t\t\t\tvar a = F()\n\t\t\t\t\t\t\t\tif (a) {\n\t\t\t\t\t\t\t\t\tvar o = a.responseStart\n\t\t\t\t\t\t\t\t\tif (o <= 0 || o > performance.now()) return\n\t\t\t\t\t\t\t\t\t;(r.value = Math.max(o - V(), 0)),\n\t\t\t\t\t\t\t\t\t\t(r.entries = [a]),\n\t\t\t\t\t\t\t\t\t\ti(!0),\n\t\t\t\t\t\t\t\t\t\tH(function () {\n\t\t\t\t\t\t\t\t\t\t\t;(r = J('TTFB', 0)),\n\t\t\t\t\t\t\t\t\t\t\t\t(i = Z(e, r, n, t.reportAllChanges))(!0)\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tOe = function (e) {\n\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\te.identifier &&\n\t\t\t\t\t\t\t\t\tq({\n\t\t\t\t\t\t\t\t\t\tattribution: { identifier: e.identifier },\n\t\t\t\t\t\t\t\t\t\tname: 'ET',\n\t\t\t\t\t\t\t\t\t\trating: null,\n\t\t\t\t\t\t\t\t\t\tvalue: e.startTime,\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tje = function (e) {\n\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t(a.isResourceTiming && R('resourceTiming', e),\n\t\t\t\t\t\t\t\t\te.decodedBodySize && e.initiatorType)\n\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\tvar t = e.decodedBodySize / 1e3\n\t\t\t\t\t\t\t\t\t;(h.value[e.initiatorType] += t),\n\t\t\t\t\t\t\t\t\t\t(h.value.total += t)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tNe = function () {\n\t\t\t\t\t\t\t!(function (e, t) {\n\t\t\t\t\t\t\t\txe(function (e) {\n\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\tif (e.entries.length) {\n\t\t\t\t\t\t\t\t\t\t\tvar t = e.entries[0],\n\t\t\t\t\t\t\t\t\t\t\t\tn = t.activationStart || 0,\n\t\t\t\t\t\t\t\t\t\t\t\tr = Math.max(t.domainLookupStart - n, 0),\n\t\t\t\t\t\t\t\t\t\t\t\ti = Math.max(t.connectStart - n, 0),\n\t\t\t\t\t\t\t\t\t\t\t\ta = Math.max(t.requestStart - n, 0)\n\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\twaitingTime: r,\n\t\t\t\t\t\t\t\t\t\t\t\tdnsTime: i - r,\n\t\t\t\t\t\t\t\t\t\t\t\tconnectionTime: a - i,\n\t\t\t\t\t\t\t\t\t\t\t\trequestTime: e.value - a,\n\t\t\t\t\t\t\t\t\t\t\t\tnavigationEntry: t,\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\twaitingTime: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tdnsTime: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tconnectionTime: 0,\n\t\t\t\t\t\t\t\t\t\t\t\trequestTime: 0,\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\te.value > 0 && q(e)\n\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t}, t)\n\t\t\t\t\t\t\t})(0, a.reportOptions.ttfb),\n\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\t!(function (e, t) {\n\t\t\t\t\t\t\t\t\t\t;(t = t || {}),\n\t\t\t\t\t\t\t\t\t\t\tee(function () {\n\t\t\t\t\t\t\t\t\t\t\t\tvar e,\n\t\t\t\t\t\t\t\t\t\t\t\t\tn = [0.1, 0.25],\n\t\t\t\t\t\t\t\t\t\t\t\t\tr = J('CLS'),\n\t\t\t\t\t\t\t\t\t\t\t\t\ti = -1,\n\t\t\t\t\t\t\t\t\t\t\t\t\ta = 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\to = [],\n\t\t\t\t\t\t\t\t\t\t\t\t\ts = function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ti > -1 &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.entries.length) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar t = e.entries.reduce(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction (e, t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn e &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.value > t.value\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.sources &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.sources.length\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar n =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(r =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.sources).find(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.node &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t1 ===\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.node\n\t\t\t\t\t\t\t\t\t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\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.attribution = {}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tq(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\tc = function (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.forEach(function (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!t.hadRecentInput) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar n = o[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti = o[o.length - 1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.startTime - i.startTime <\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t1e3 &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.startTime - n.startTime < 5e3\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? ((a += t.value), o.push(t))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: ((a = t.value), (o = [t])),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta > r.value &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((r.value = a),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(r.entries = o),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\tu = X('layout-shift', c)\n\t\t\t\t\t\t\t\t\t\t\t\tu &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t((e = Z(s, r, n, t.reportAllChanges)),\n\t\t\t\t\t\t\t\t\t\t\t\t\tse(function (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(i = t.value),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr.value < 0 && ((r.value = 0), e())\n\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\tG(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tc(u.takeRecords()), e(!0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\tH(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(a = 0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(i = -1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(r = J('CLS', 0)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(e = Z(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.reportAllChanges,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tY(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn e()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})(0, t)\n\t\t\t\t\t\t\t\t})(0, a.reportOptions.cls),\n\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\tse(function (e) {\n\t\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tif (e.entries.length) {\n\t\t\t\t\t\t\t\t\t\t\t\tvar t = F(),\n\t\t\t\t\t\t\t\t\t\t\t\t\tn = e.entries[e.entries.length - 1]\n\t\t\t\t\t\t\t\t\t\t\t\tif (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar r = t.activationStart || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ti = Math.max(0, t.responseStart - r)\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn void (e.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttimeToFirstByte: i,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfirstByteToFCP: e.value - i,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tloadState: z(e.entries[0].startTime),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnavigationEntry: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfcpEntry: n,\n\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\ttimeToFirstByte: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tfirstByteToFCP: e.value,\n\t\t\t\t\t\t\t\t\t\t\t\tloadState: z(W()),\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\tq(e)\n\t\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t}, t)\n\t\t\t\t\t\t\t\t})(0, a.reportOptions.fcp),\n\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\t!(function (e, t) {\n\t\t\t\t\t\t\t\t\t\t;(t = t || {}),\n\t\t\t\t\t\t\t\t\t\t\tee(function () {\n\t\t\t\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\t\t\t\tr = [100, 300],\n\t\t\t\t\t\t\t\t\t\t\t\t\ti = oe(),\n\t\t\t\t\t\t\t\t\t\t\t\t\ta = J('FID'),\n\t\t\t\t\t\t\t\t\t\t\t\t\to = function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.startTime < i.firstHiddenTime &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((a.value =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.processingStart -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.startTime),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta.entries.push(e),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(!0))\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\ts = function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.forEach(o)\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\tc = X('first-input', s)\n\t\t\t\t\t\t\t\t\t\t\t\t;(n = Z(e, a, r, t.reportAllChanges)),\n\t\t\t\t\t\t\t\t\t\t\t\t\tc &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tG(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts(c.takeRecords()), c.disconnect()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}, !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\tc &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tH(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(a = J('FID')),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(n = Z(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.reportAllChanges,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(C = []),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(M = -1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(P = null),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tme(addEventListener),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(i = o),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tC.push(i),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tde()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})(function (e) {\n\t\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tvar t = e.entries[0]\n\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\teventTarget: $(t.target),\n\t\t\t\t\t\t\t\t\t\t\t\teventType: t.name,\n\t\t\t\t\t\t\t\t\t\t\t\teventTime: t.startTime,\n\t\t\t\t\t\t\t\t\t\t\t\teventEntry: t,\n\t\t\t\t\t\t\t\t\t\t\t\tloadState: z(t.startTime),\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\tq(e)\n\t\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t}, t)\n\t\t\t\t\t\t\t\t})(0, a.reportOptions.fid),\n\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\t!(function (e, t) {\n\t\t\t\t\t\t\t\t\t\t;(t = t || {}),\n\t\t\t\t\t\t\t\t\t\t\tee(function () {\n\t\t\t\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\t\t\t\tr = [2500, 4e3],\n\t\t\t\t\t\t\t\t\t\t\t\t\ti = oe(),\n\t\t\t\t\t\t\t\t\t\t\t\t\ta = J('LCP'),\n\t\t\t\t\t\t\t\t\t\t\t\t\to = function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar t = e[e.length - 1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar r = Math.max(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.startTime - V(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr < i.firstHiddenTime &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((a.value = r),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(a.entries = [t]),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\ts = X('largest-contentful-paint', o)\n\t\t\t\t\t\t\t\t\t\t\t\tif (s) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tn = Z(e, a, r, t.reportAllChanges)\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar c = function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSe[a.id] ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(o(s.takeRecords()),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts.disconnect(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Se[a.id] = !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(!0))\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t;['keydown', 'click'].forEach(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taddEventListener(e, c, {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tonce: !0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcapture: !0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tG(c, !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tH(function (i) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(a = J('LCP')),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(n = Z(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.reportAllChanges,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tY(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(a.value =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tperformance.now() -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti.timeStamp),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Se[a.id] = !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(!0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})(function (e) {\n\t\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tif (e.entries.length) {\n\t\t\t\t\t\t\t\t\t\t\t\tvar t = F()\n\t\t\t\t\t\t\t\t\t\t\t\tif (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar n = t.activationStart || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tr = e.entries[e.entries.length - 1],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ti =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr.url &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tperformance\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEntriesByType('resource')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.filter(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn e.name === r.url\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ta = Math.max(0, t.responseStart - n),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\to = Math.max(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? (i.requestStart ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti.startTime) - n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ts = Math.max(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti ? i.responseEnd - n : 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tc = Math.max(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr ? r.startTime - n : 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tu = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telement: $(r.element),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttimeToFirstByte: a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tresourceLoadDelay: o - a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tresourceLoadTime: s - o,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\telementRenderDelay: c - s,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnavigationEntry: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlcpEntry: r,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tr.url && (u.url = r.url),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ti && (u.lcpResourceEntry = i),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvoid (e.attribution = u)\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\ttimeToFirstByte: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tresourceLoadDelay: 0,\n\t\t\t\t\t\t\t\t\t\t\t\tresourceLoadTime: 0,\n\t\t\t\t\t\t\t\t\t\t\t\telementRenderDelay: e.value,\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\tq(e)\n\t\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t}, t)\n\t\t\t\t\t\t\t\t})(0, a.reportOptions.lcp),\n\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\t!(function (e, t) {\n\t\t\t\t\t\t\t\t\t\t;(t = t || {}),\n\t\t\t\t\t\t\t\t\t\t\tee(function () {\n\t\t\t\t\t\t\t\t\t\t\t\tvar n = [200, 500]\n\t\t\t\t\t\t\t\t\t\t\t\t'interactionCount' in performance ||\n\t\t\t\t\t\t\t\t\t\t\t\t\tD ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t(D = X('event', be, {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: 'event',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbuffered: !0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdurationThreshold: 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t\t\t\tvar r,\n\t\t\t\t\t\t\t\t\t\t\t\t\ti = J('INP'),\n\t\t\t\t\t\t\t\t\t\t\t\t\ta = function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.interactionId && _e(e),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'first-input' === e.entryType &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t!Te.some(function (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn t.entries.some(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction (t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.duration ===\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.duration &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.startTime ===\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.startTime\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}) &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t_e(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((t = Math.min(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTe.length - 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMath.floor(ye() / 50),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTe[t])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tn &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn.latency !== i.value &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((i.value = n.latency),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(i.entries = n.entries),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr())\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\to = X('event', a, {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tdurationThreshold:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.durationThreshold || 40,\n\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t;(r = Z(e, i, n, t.reportAllChanges)),\n\t\t\t\t\t\t\t\t\t\t\t\t\to &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(o.observe({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: 'first-input',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tbuffered: !0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tG(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta(o.takeRecords()),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti.value < 0 &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tye() > 0 &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((i.value = 0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(i.entries = [])),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr(!0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tH(function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(Te = []),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(we = he()),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(i = J('INP')),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(r = Z(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.reportAllChanges,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})(function (t) {\n\t\t\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tif (e.entries.length) {\n\t\t\t\t\t\t\t\t\t\t\t\tvar t = e.entries.sort(function (e, t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.duration - e.duration ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.processingEnd -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.processingStart -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(e.processingEnd -\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.processingStart)\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t})[0]\n\t\t\t\t\t\t\t\t\t\t\t\te.attribution = {\n\t\t\t\t\t\t\t\t\t\t\t\t\teventTarget: $(t.target),\n\t\t\t\t\t\t\t\t\t\t\t\t\teventType: t.name,\n\t\t\t\t\t\t\t\t\t\t\t\t\teventTime: t.startTime,\n\t\t\t\t\t\t\t\t\t\t\t\t\teventEntry: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\tloadState: z(t.startTime),\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t} else e.attribution = {}\n\t\t\t\t\t\t\t\t\t\t})(t),\n\t\t\t\t\t\t\t\t\t\t\te(t)\n\t\t\t\t\t\t\t\t\t}, t)\n\t\t\t\t\t\t\t\t})(function (e) {\n\t\t\t\t\t\t\t\t\treturn q(e)\n\t\t\t\t\t\t\t\t}, a.reportOptions.inp),\n\t\t\t\t\t\t\t\ta.isResourceTiming && S('resource', je),\n\t\t\t\t\t\t\t\ta.isElementTiming && S('element', Oe)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tIe = function (e) {\n\t\t\t\t\t\t\tvar t = 'usageDetails' in e ? e.usageDetails : {}\n\t\t\t\t\t\t\tR('storageEstimate', {\n\t\t\t\t\t\t\t\tquota: j(e.quota),\n\t\t\t\t\t\t\t\tusage: j(e.usage),\n\t\t\t\t\t\t\t\tcaches: j(t.caches),\n\t\t\t\t\t\t\t\tindexedDB: j(t.indexedDB),\n\t\t\t\t\t\t\t\tserviceWorker: j(t.serviceWorkerRegistrations),\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t},\n\t\t\t\t\t\tPe = {\n\t\t\t\t\t\t\tfinalMarkToStepsMap: {},\n\t\t\t\t\t\t\tstartMarkToStepsMap: {},\n\t\t\t\t\t\t\tactive: {},\n\t\t\t\t\t\t\tnavigationSteps: {},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tMe = function (e) {\n\t\t\t\t\t\t\tdelete Pe.active[e]\n\t\t\t\t\t\t},\n\t\t\t\t\t\tBe = function () {\n\t\t\t\t\t\t\treturn Pe.navigationSteps\n\t\t\t\t\t\t},\n\t\t\t\t\t\tCe = function (e) {\n\t\t\t\t\t\t\tvar t\n\t\t\t\t\t\t\treturn null !== (t = Be()[e]) && void 0 !== t ? t : {}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tDe = function (e, t, n) {\n\t\t\t\t\t\t\tvar r = 'step.' + e,\n\t\t\t\t\t\t\t\ti = u.getEntriesByName(p + t).length > 0\n\t\t\t\t\t\t\tif (u.getEntriesByName(p + n).length > 0 && a.steps) {\n\t\t\t\t\t\t\t\tvar o = A[a.steps[e].threshold],\n\t\t\t\t\t\t\t\t\ts = o.maxOutlierThreshold,\n\t\t\t\t\t\t\t\t\tc = o.vitalsThresholds\n\t\t\t\t\t\t\t\tif (i) {\n\t\t\t\t\t\t\t\t\tvar l = u.measure(r, p + t, p + n),\n\t\t\t\t\t\t\t\t\t\td = l.duration\n\t\t\t\t\t\t\t\t\tif (d <= s) {\n\t\t\t\t\t\t\t\t\t\tvar m = (function (e, t) {\n\t\t\t\t\t\t\t\t\t\t\treturn e <= t[0]\n\t\t\t\t\t\t\t\t\t\t\t\t? 'good'\n\t\t\t\t\t\t\t\t\t\t\t\t: e <= t[1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t? 'needsImprovement'\n\t\t\t\t\t\t\t\t\t\t\t\t\t: 'poor'\n\t\t\t\t\t\t\t\t\t\t})(d, c)\n\t\t\t\t\t\t\t\t\t\td >= 0 &&\n\t\t\t\t\t\t\t\t\t\t\t(N(\n\t\t\t\t\t\t\t\t\t\t\t\t'userJourneyStep',\n\t\t\t\t\t\t\t\t\t\t\t\td,\n\t\t\t\t\t\t\t\t\t\t\t\tm,\n\t\t\t\t\t\t\t\t\t\t\t\t{ stepName: e },\n\t\t\t\t\t\t\t\t\t\t\t\tvoid 0,\n\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\tu.measure(\n\t\t\t\t\t\t\t\t\t\t\t\t'step.'.concat(e, '_vitals_').concat(m),\n\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\tstart: l.startTime + l.duration,\n\t\t\t\t\t\t\t\t\t\t\t\t\tend: l.startTime + l.duration,\n\t\t\t\t\t\t\t\t\t\t\t\t\tdetail: {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttype: 'stepVital',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tduration: d,\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t))\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tAe = function () {\n\t\t\t\t\t\t\tvar e = Be(),\n\t\t\t\t\t\t\t\tt = Pe.startMarkToStepsMap,\n\t\t\t\t\t\t\t\tn = Object.keys(e).length\n\t\t\t\t\t\t\tif (0 === n) return {}\n\t\t\t\t\t\t\tvar r = {},\n\t\t\t\t\t\t\t\ti = n - 1,\n\t\t\t\t\t\t\t\ta = Ce(i)\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t(Object.keys(a).forEach(function (e) {\n\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\ti = null !== (n = t[e]) && void 0 !== n ? n : []\n\t\t\t\t\t\t\t\t\tObject.keys(i).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\tr[e] = !0\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\tn > 1)\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\tvar o = Ce(i - 1)\n\t\t\t\t\t\t\t\tObject.keys(o).forEach(function (e) {\n\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\ti = null !== (n = t[e]) && void 0 !== n ? n : []\n\t\t\t\t\t\t\t\t\tObject.keys(i).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\tr[e] = !0\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn r\n\t\t\t\t\t\t},\n\t\t\t\t\t\tLe = function () {\n\t\t\t\t\t\t\tvar e,\n\t\t\t\t\t\t\t\tt = Object.keys(Pe.navigationSteps).length\n\t\t\t\t\t\t\tPe.navigationSteps[t] = {}\n\t\t\t\t\t\t\tvar n = Ae()\n\t\t\t\t\t\t\tnull === (e = a.onMarkStep) ||\n\t\t\t\t\t\t\t\tvoid 0 === e ||\n\t\t\t\t\t\t\t\te.call(a, '', Object.keys(n))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tUe = function (e) {\n\t\t\t\t\t\t\tvar t, n, r, i, o, s, c\n\t\t\t\t\t\t\tif (Pe.finalMarkToStepsMap[e]) {\n\t\t\t\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\t\t\t\tvar t = Pe.navigationSteps,\n\t\t\t\t\t\t\t\t\t\tn = Pe.finalMarkToStepsMap,\n\t\t\t\t\t\t\t\t\t\tr = Object.keys(t).length\n\t\t\t\t\t\t\t\t\tif (0 !== r) {\n\t\t\t\t\t\t\t\t\t\tvar i = r - 1,\n\t\t\t\t\t\t\t\t\t\t\ta = Ce(i)\n\t\t\t\t\t\t\t\t\t\tif (a && n[e]) {\n\t\t\t\t\t\t\t\t\t\t\tvar o = n[e]\n\t\t\t\t\t\t\t\t\t\t\to &&\n\t\t\t\t\t\t\t\t\t\t\t\tObject.keys(o).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (a[e]) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar n = Ce(i) || {}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(n[e] = !1), (t[i] = n)\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (r > 1) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar o = i - 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts = Ce(o)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ts[e] && ((s[e] = !1), (t[o] = s))\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\tvar u = Pe.finalMarkToStepsMap[e]\n\t\t\t\t\t\t\t\tObject.keys(u).forEach(function (t) {\n\t\t\t\t\t\t\t\t\tvar n = u[t]\n\t\t\t\t\t\t\t\t\tn.forEach(Me),\n\t\t\t\t\t\t\t\t\t\tPromise.all(\n\t\t\t\t\t\t\t\t\t\t\tn.map(function (n) {\n\t\t\t\t\t\t\t\t\t\t\t\treturn (function (e, t, n, r) {\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn new (n || (n = Promise))(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction (e, t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction i(e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to(r.next(e))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction a(e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to(r.throw(e))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt(e)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction o(t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.done\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? e(t.value)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: ((r = t.value),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr instanceof n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: new n(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te(r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})).then(i, a)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(r = r.apply(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tundefined,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)).next(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t})(0, 0, void 0, function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (function (e, t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel: 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsent: function () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (1 & i[0]) throw i[1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn i[1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttrys: [],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tops: [],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(a = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnext: s(0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthrow: s(1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn: s(2),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'function' == typeof Symbol &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(a[Symbol.iterator] =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction () {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn this\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tfunction s(a) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn function (s) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (function (a) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (n)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthrow new TypeError(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'Generator is already executing.',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (; o; )\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((n = 1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(i =\n\t\t\t\t\t\t\t\t\t\t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t\to.ops.pop(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to.trys.pop()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta = t.call(e, o)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(a = [6, e]), (r = 0)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn = i = 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (5 & a[0]) throw a[1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: a[0]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? a[1]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: void 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdone: !0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})([a, s])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t})(this, function (r) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tswitch (r.label) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn [4, De(n, t, e)]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn r.sent(), [2]\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t).catch(function () {})\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t(r = e),\n\t\t\t\t\t\t\t\t\t(i = Pe.navigationSteps),\n\t\t\t\t\t\t\t\t\t(o = Object.keys(i).length),\n\t\t\t\t\t\t\t\t\t((c = Ce((s = (o > 0 ? o : 1) - 1)) || [])[r] = !0),\n\t\t\t\t\t\t\t\t\t(i[s] = c),\n\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\tvar t,\n\t\t\t\t\t\t\t\t\t\t\tn =\n\t\t\t\t\t\t\t\t\t\t\t\tnull !== (t = Pe.startMarkToStepsMap[e]) &&\n\t\t\t\t\t\t\t\t\t\t\t\tvoid 0 !== t\n\t\t\t\t\t\t\t\t\t\t\t\t\t? t\n\t\t\t\t\t\t\t\t\t\t\t\t\t: []\n\t\t\t\t\t\t\t\t\t\tObject.keys(n).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tPe.active[e] || (Pe.active[e] = !0)\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\tif (a.enableNavigationTracking) {\n\t\t\t\t\t\t\t\tvar l = Ae()\n\t\t\t\t\t\t\t\tnull === (t = a.onMarkStep) ||\n\t\t\t\t\t\t\t\t\tvoid 0 === t ||\n\t\t\t\t\t\t\t\t\tt.call(a, e, Object.keys(l))\n\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\tnull === (n = a.onMarkStep) ||\n\t\t\t\t\t\t\t\t\tvoid 0 === n ||\n\t\t\t\t\t\t\t\t\tn.call(a, e, Object.keys(Pe.active))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tRe = function (e) {\n\t\t\t\t\t\t\tu.mark(p + e), Ue(e)\n\t\t\t\t\t\t},\n\t\t\t\t\t\tqe = function (e) {\n\t\t\t\t\t\t\t0 === u.getEntriesByName(p + e).length &&\n\t\t\t\t\t\t\t\t(u.mark(p + e), Ue(e))\n\t\t\t\t\t\t},\n\t\t\t\t\t\tFe = 0,\n\t\t\t\t\t\tze = (function () {\n\t\t\t\t\t\t\tfunction e(e) {\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t(void 0 === e && (e = {}),\n\t\t\t\t\t\t\t\t\t(this.v = '9.0.0-rc.3'),\n\t\t\t\t\t\t\t\t\t(a.analyticsTracker = e.analyticsTracker),\n\t\t\t\t\t\t\t\t\t(a.isResourceTiming = !!e.resourceTiming),\n\t\t\t\t\t\t\t\t\t(a.isElementTiming = !!e.elementTiming),\n\t\t\t\t\t\t\t\t\t(a.maxTime = e.maxMeasureTime || a.maxTime),\n\t\t\t\t\t\t\t\t\t(a.reportOptions =\n\t\t\t\t\t\t\t\t\t\te.reportOptions || a.reportOptions),\n\t\t\t\t\t\t\t\t\t(a.steps = e.steps),\n\t\t\t\t\t\t\t\t\t(a.onMarkStep = e.onMarkStep),\n\t\t\t\t\t\t\t\t\t(a.enableNavigationTracking =\n\t\t\t\t\t\t\t\t\t\te.enableNavigationTracking),\n\t\t\t\t\t\t\t\t\tm())\n\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t'PerformanceObserver' in o && Ne(),\n\t\t\t\t\t\t\t\t\t\tvoid 0 !== document.hidden &&\n\t\t\t\t\t\t\t\t\t\t\tdocument.addEventListener(\n\t\t\t\t\t\t\t\t\t\t\t\t'visibilitychange',\n\t\t\t\t\t\t\t\t\t\t\t\t_,\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\tvar t = (function () {\n\t\t\t\t\t\t\t\t\t\tif (!m()) return {}\n\t\t\t\t\t\t\t\t\t\tvar e = u.getEntriesByType('navigation')[0]\n\t\t\t\t\t\t\t\t\t\tif (!e) return {}\n\t\t\t\t\t\t\t\t\t\tvar t = e.responseStart,\n\t\t\t\t\t\t\t\t\t\t\tn = e.responseEnd\n\t\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t\tfetchTime: n - e.fetchStart,\n\t\t\t\t\t\t\t\t\t\t\tworkerTime:\n\t\t\t\t\t\t\t\t\t\t\t\te.workerStart > 0 ? n - e.workerStart : 0,\n\t\t\t\t\t\t\t\t\t\t\ttotalTime: n - e.requestStart,\n\t\t\t\t\t\t\t\t\t\t\tdownloadTime: n - t,\n\t\t\t\t\t\t\t\t\t\t\ttimeToFirstByte: t - e.requestStart,\n\t\t\t\t\t\t\t\t\t\t\theaderSize:\n\t\t\t\t\t\t\t\t\t\t\t\te.transferSize - e.encodedBodySize || 0,\n\t\t\t\t\t\t\t\t\t\t\tdnsLookupTime:\n\t\t\t\t\t\t\t\t\t\t\t\te.domainLookupEnd - e.domainLookupStart,\n\t\t\t\t\t\t\t\t\t\t\tredirectTime: e.redirectEnd - e.redirectStart,\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t})()\n\t\t\t\t\t\t\t\t\tR('navigationTiming', t),\n\t\t\t\t\t\t\t\t\t\tt.redirectTime &&\n\t\t\t\t\t\t\t\t\t\t\tq({\n\t\t\t\t\t\t\t\t\t\t\t\tattribution: {},\n\t\t\t\t\t\t\t\t\t\t\t\tname: 'RT',\n\t\t\t\t\t\t\t\t\t\t\t\trating: U('RT', t.redirectTime),\n\t\t\t\t\t\t\t\t\t\t\t\tvalue: t.redirectTime,\n\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\tR(\n\t\t\t\t\t\t\t\t\t\t\t'networkInformation',\n\t\t\t\t\t\t\t\t\t\t\t(function () {\n\t\t\t\t\t\t\t\t\t\t\t\tif ('connection' in c) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar e = c.connection\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn 'object' != typeof e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? {}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: ((f = e.effectiveType),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(v = !!e.saveData),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdownlink: e.downlink,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\teffectiveType: e.effectiveType,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trtt: e.rtt,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsaveData: !!e.saveData,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\treturn {}\n\t\t\t\t\t\t\t\t\t\t\t})(),\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\tc &&\n\t\t\t\t\t\t\t\t\t\t\tc.storage &&\n\t\t\t\t\t\t\t\t\t\t\t'function' == typeof c.storage.estimate &&\n\t\t\t\t\t\t\t\t\t\t\tc.storage.estimate().then(Ie),\n\t\t\t\t\t\t\t\t\t\ta.steps &&\n\t\t\t\t\t\t\t\t\t\t\ta.steps &&\n\t\t\t\t\t\t\t\t\t\t\t((Pe.startMarkToStepsMap = {}),\n\t\t\t\t\t\t\t\t\t\t\t(Pe.finalMarkToStepsMap = {}),\n\t\t\t\t\t\t\t\t\t\t\t(Pe.active = {}),\n\t\t\t\t\t\t\t\t\t\t\t(Pe.navigationSteps = {}),\n\t\t\t\t\t\t\t\t\t\t\tObject.entries(a.steps).forEach(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\tvar t,\n\t\t\t\t\t\t\t\t\t\t\t\t\tn,\n\t\t\t\t\t\t\t\t\t\t\t\t\tr = e[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\ti = e[1].marks,\n\t\t\t\t\t\t\t\t\t\t\t\t\ta = i[0],\n\t\t\t\t\t\t\t\t\t\t\t\t\to = i[1],\n\t\t\t\t\t\t\t\t\t\t\t\t\ts =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull !==\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(n = Pe.startMarkToStepsMap[a]) &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tvoid 0 !== n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: {}\n\t\t\t\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t\t\t\t((s[r] = !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t(Pe.startMarkToStepsMap[a] = s),\n\t\t\t\t\t\t\t\t\t\t\t\t\tPe.finalMarkToStepsMap[o])\n\t\t\t\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tvar c =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tPe.finalMarkToStepsMap[o][a] || []\n\t\t\t\t\t\t\t\t\t\t\t\t\tc.push(r),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Pe.finalMarkToStepsMap[o][a] = c)\n\t\t\t\t\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\t\t\t\t\tPe.finalMarkToStepsMap[o] =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t(((t = {})[a] = [r]), t)\n\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t(e.prototype.start = function (e) {\n\t\t\t\t\t\t\t\t\tm() &&\n\t\t\t\t\t\t\t\t\t\t!g[e] &&\n\t\t\t\t\t\t\t\t\t\t((g[e] = !0), u.mark('mark_'.concat(e, '_start')))\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t(e.prototype.end = function (e, t, n) {\n\t\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t\t(void 0 === t && (t = {}),\n\t\t\t\t\t\t\t\t\t\tvoid 0 === n && (n = !0),\n\t\t\t\t\t\t\t\t\t\tm() && g[e])\n\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\tu.mark('mark_'.concat(e, '_end')), delete g[e]\n\t\t\t\t\t\t\t\t\t\tvar r = (function (e) {\n\t\t\t\t\t\t\t\t\t\t\tu.measure(\n\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t'mark_'.concat(e, '_start'),\n\t\t\t\t\t\t\t\t\t\t\t\t'mark_'.concat(e, '_end'),\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\tvar t = u.getEntriesByName(e).pop()\n\t\t\t\t\t\t\t\t\t\t\treturn t && 'measure' === t.entryType\n\t\t\t\t\t\t\t\t\t\t\t\t? t.duration\n\t\t\t\t\t\t\t\t\t\t\t\t: -1\n\t\t\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\t\t\t\tn && R(e, O(r), t)\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t(e.prototype.endPaint = function (e, t) {\n\t\t\t\t\t\t\t\t\tvar n = this\n\t\t\t\t\t\t\t\t\tsetTimeout(function () {\n\t\t\t\t\t\t\t\t\t\tn.end(e, t)\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t(e.prototype.clear = function (e) {\n\t\t\t\t\t\t\t\t\tdelete g[e],\n\t\t\t\t\t\t\t\t\t\tu.clearMarks &&\n\t\t\t\t\t\t\t\t\t\t\t(u.clearMarks('mark_'.concat(e, '_start')),\n\t\t\t\t\t\t\t\t\t\t\tu.clearMarks('mark_'.concat(e, '_end')))\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t(e.prototype.markNTBT = function () {\n\t\t\t\t\t\t\t\t\tvar e = this\n\t\t\t\t\t\t\t\t\tthis.start('ntbt'),\n\t\t\t\t\t\t\t\t\t\t(y.value = 0),\n\t\t\t\t\t\t\t\t\t\tclearTimeout(Fe),\n\t\t\t\t\t\t\t\t\t\t(Fe = setTimeout(function () {\n\t\t\t\t\t\t\t\t\t\t\te.end('ntbt', {}, !1),\n\t\t\t\t\t\t\t\t\t\t\t\tq({\n\t\t\t\t\t\t\t\t\t\t\t\t\tattribution: {},\n\t\t\t\t\t\t\t\t\t\t\t\t\tname: 'NTBT',\n\t\t\t\t\t\t\t\t\t\t\t\t\trating: U('NTBT', y.value),\n\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: y.value,\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t(y.value = 0)\n\t\t\t\t\t\t\t\t\t\t}, 2e3))\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\te\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t})()\n\t\t\t\t},\n\t\t\t\t426: (e, t) => {\n\t\t\t\t\t'use strict'\n\t\t\t\t\tSymbol.for('react.element'),\n\t\t\t\t\t\tSymbol.for('react.portal'),\n\t\t\t\t\t\tSymbol.for('react.fragment'),\n\t\t\t\t\t\tSymbol.for('react.strict_mode'),\n\t\t\t\t\t\tSymbol.for('react.profiler'),\n\t\t\t\t\t\tSymbol.for('react.provider'),\n\t\t\t\t\t\tSymbol.for('react.context'),\n\t\t\t\t\t\tSymbol.for('react.forward_ref'),\n\t\t\t\t\t\tSymbol.for('react.suspense'),\n\t\t\t\t\t\tSymbol.for('react.memo'),\n\t\t\t\t\t\tSymbol.for('react.lazy'),\n\t\t\t\t\t\tSymbol.iterator\n\t\t\t\t\tvar n = {\n\t\t\t\t\t\t\tisMounted: function () {\n\t\t\t\t\t\t\t\treturn !1\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tenqueueForceUpdate: function () {},\n\t\t\t\t\t\t\tenqueueReplaceState: function () {},\n\t\t\t\t\t\t\tenqueueSetState: function () {},\n\t\t\t\t\t\t},\n\t\t\t\t\t\tr = Object.assign,\n\t\t\t\t\t\ti = {}\n\t\t\t\t\tfunction a(e, t, r) {\n\t\t\t\t\t\t;(this.props = e),\n\t\t\t\t\t\t\t(this.context = t),\n\t\t\t\t\t\t\t(this.refs = i),\n\t\t\t\t\t\t\t(this.updater = r || n)\n\t\t\t\t\t}\n\t\t\t\t\tfunction o() {}\n\t\t\t\t\tfunction s(e, t, r) {\n\t\t\t\t\t\t;(this.props = e),\n\t\t\t\t\t\t\t(this.context = t),\n\t\t\t\t\t\t\t(this.refs = i),\n\t\t\t\t\t\t\t(this.updater = r || n)\n\t\t\t\t\t}\n\t\t\t\t\t;(a.prototype.isReactComponent = {}),\n\t\t\t\t\t\t(a.prototype.setState = function (e, t) {\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t'object' != typeof e &&\n\t\t\t\t\t\t\t\t'function' != typeof e &&\n\t\t\t\t\t\t\t\tnull != e\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\tthrow Error(\n\t\t\t\t\t\t\t\t\t'setState(...): takes an object of state variables to update or a function which returns an object of state variables.',\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\tthis.updater.enqueueSetState(this, e, t, 'setState')\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(a.prototype.forceUpdate = function (e) {\n\t\t\t\t\t\t\tthis.updater.enqueueForceUpdate(this, e, 'forceUpdate')\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(o.prototype = a.prototype)\n\t\t\t\t\tvar c = (s.prototype = new o())\n\t\t\t\t\t;(c.constructor = s),\n\t\t\t\t\t\tr(c, a.prototype),\n\t\t\t\t\t\t(c.isPureReactComponent = !0)\n\t\t\t\t\tArray.isArray, Object.prototype.hasOwnProperty\n\t\t\t\t\tvar u = { current: null }\n\t\t\t\t\t;(t.useCallback = function (e, t) {\n\t\t\t\t\t\treturn u.current.useCallback(e, t)\n\t\t\t\t\t}),\n\t\t\t\t\t\t(t.useEffect = function (e, t) {\n\t\t\t\t\t\t\treturn u.current.useEffect(e, t)\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t(t.useRef = function (e) {\n\t\t\t\t\t\t\treturn u.current.useRef(e)\n\t\t\t\t\t\t})\n\t\t\t\t},\n\t\t\t\t784: (e, t, n) => {\n\t\t\t\t\t'use strict'\n\t\t\t\t\te.exports = n(426)\n\t\t\t\t},\n\t\t\t\t353: function (e, t, n) {\n\t\t\t\t\tvar r\n\t\t\t\t\t!(function (i, a) {\n\t\t\t\t\t\t'use strict'\n\t\t\t\t\t\tvar o = 'function',\n\t\t\t\t\t\t\ts = 'undefined',\n\t\t\t\t\t\t\tc = 'object',\n\t\t\t\t\t\t\tu = 'string',\n\t\t\t\t\t\t\tl = 'major',\n\t\t\t\t\t\t\td = 'model',\n\t\t\t\t\t\t\tp = 'name',\n\t\t\t\t\t\t\tm = 'type',\n\t\t\t\t\t\t\tf = 'vendor',\n\t\t\t\t\t\t\tv = 'version',\n\t\t\t\t\t\t\tg = 'architecture',\n\t\t\t\t\t\t\tb = 'console',\n\t\t\t\t\t\t\th = 'mobile',\n\t\t\t\t\t\t\tw = 'tablet',\n\t\t\t\t\t\t\ty = 'smarttv',\n\t\t\t\t\t\t\tT = 'wearable',\n\t\t\t\t\t\t\tk = 'embedded',\n\t\t\t\t\t\t\t_ = 'Amazon',\n\t\t\t\t\t\t\tS = 'Apple',\n\t\t\t\t\t\t\tE = 'ASUS',\n\t\t\t\t\t\t\tx = 'BlackBerry',\n\t\t\t\t\t\t\tO = 'Browser',\n\t\t\t\t\t\t\tj = 'Chrome',\n\t\t\t\t\t\t\tN = 'Firefox',\n\t\t\t\t\t\t\tI = 'Google',\n\t\t\t\t\t\t\tP = 'Huawei',\n\t\t\t\t\t\t\tM = 'LG',\n\t\t\t\t\t\t\tB = 'Microsoft',\n\t\t\t\t\t\t\tC = 'Motorola',\n\t\t\t\t\t\t\tD = 'Opera',\n\t\t\t\t\t\t\tA = 'Samsung',\n\t\t\t\t\t\t\tL = 'Sharp',\n\t\t\t\t\t\t\tU = 'Sony',\n\t\t\t\t\t\t\tR = 'Xiaomi',\n\t\t\t\t\t\t\tq = 'Zebra',\n\t\t\t\t\t\t\tF = 'Facebook',\n\t\t\t\t\t\t\tz = 'Chromium OS',\n\t\t\t\t\t\t\tK = 'Mac OS',\n\t\t\t\t\t\t\t$ = function (e) {\n\t\t\t\t\t\t\t\tfor (var t = {}, n = 0; n < e.length; n++)\n\t\t\t\t\t\t\t\t\tt[e[n].toUpperCase()] = e[n]\n\t\t\t\t\t\t\t\treturn t\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tQ = function (e, t) {\n\t\t\t\t\t\t\t\treturn typeof e === u && -1 !== W(t).indexOf(W(e))\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tW = function (e) {\n\t\t\t\t\t\t\t\treturn e.toLowerCase()\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tH = function (e, t) {\n\t\t\t\t\t\t\t\tif (typeof e === u)\n\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t(e = e.replace(/^\\s\\s*/, '')),\n\t\t\t\t\t\t\t\t\t\ttypeof t === s ? e : e.substring(0, 350)\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tV = function (e, t) {\n\t\t\t\t\t\t\t\tfor (\n\t\t\t\t\t\t\t\t\tvar n, r, i, s, u, l, d = 0;\n\t\t\t\t\t\t\t\t\td < t.length && !u;\n\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\tvar p = t[d],\n\t\t\t\t\t\t\t\t\t\tm = t[d + 1]\n\t\t\t\t\t\t\t\t\tfor (n = r = 0; n < p.length && !u && p[n]; )\n\t\t\t\t\t\t\t\t\t\tif ((u = p[n++].exec(e)))\n\t\t\t\t\t\t\t\t\t\t\tfor (i = 0; i < m.length; i++)\n\t\t\t\t\t\t\t\t\t\t\t\t(l = u[++r]),\n\t\t\t\t\t\t\t\t\t\t\t\t\ttypeof (s = m[i]) === c && s.length > 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? 2 === s.length\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? typeof s[1] == o\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? (this[s[0]] = s[1].call(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tl,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: (this[s[0]] = s[1])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 3 === s.length\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? typeof s[1] !== o ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(s[1].exec && s[1].test)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? (this[s[0]] = l\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? l.replace(s[1], s[2])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: a)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: (this[s[0]] = l\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? s[1].call(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tl,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts[2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: a)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: 4 === s.length &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(this[s[0]] = l\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? s[3].call(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tthis,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tl.replace(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts[1],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ts[2],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: a)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: (this[s] = l || a)\n\t\t\t\t\t\t\t\t\td += 2\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tJ = function (e, t) {\n\t\t\t\t\t\t\t\tfor (var n in t)\n\t\t\t\t\t\t\t\t\tif (typeof t[n] === c && t[n].length > 0) {\n\t\t\t\t\t\t\t\t\t\tfor (var r = 0; r < t[n].length; r++)\n\t\t\t\t\t\t\t\t\t\t\tif (Q(t[n][r], e)) return '?' === n ? a : n\n\t\t\t\t\t\t\t\t\t} else if (Q(t[n], e)) return '?' === n ? a : n\n\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tX = {\n\t\t\t\t\t\t\t\tME: '4.90',\n\t\t\t\t\t\t\t\t'NT 3.11': 'NT3.51',\n\t\t\t\t\t\t\t\t'NT 4.0': 'NT4.0',\n\t\t\t\t\t\t\t\t2e3: 'NT 5.0',\n\t\t\t\t\t\t\t\tXP: ['NT 5.1', 'NT 5.2'],\n\t\t\t\t\t\t\t\tVista: 'NT 6.0',\n\t\t\t\t\t\t\t\t7: 'NT 6.1',\n\t\t\t\t\t\t\t\t8: 'NT 6.2',\n\t\t\t\t\t\t\t\t8.1: 'NT 6.3',\n\t\t\t\t\t\t\t\t10: ['NT 6.4', 'NT 10.0'],\n\t\t\t\t\t\t\t\tRT: 'ARM',\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tG = {\n\t\t\t\t\t\t\t\tbrowser: [\n\t\t\t\t\t\t\t\t\t[/\\b(?:crmo|crios)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Chrome']],\n\t\t\t\t\t\t\t\t\t[/edg(?:e|ios|a)?\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Edge']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(opera mini)\\/([-\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(opera [mobiletab]{3,6})\\b.+version\\/([-\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(opera)(?:.+version\\/|[\\/ ]+)([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/opios[\\/ ]+([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, D + ' Mini']],\n\t\t\t\t\t\t\t\t\t[/\\bopr\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, D]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(kindle)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(lunascape|maxthon|netfront|jasmine|blazer)[\\/ ]?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(avant |iemobile|slim)(?:browser)?[\\/ ]?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(ba?idubrowser)[\\/ ]?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(?:ms|\\()(ie) ([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\\/([-\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(heytap|ovi)browser\\/([\\d\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(weibo)__([\\d\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(?:\\buc? ?browser|(?:juc.+)ucweb)[\\/ ]?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, 'UC' + O]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/microm.+\\bqbcore\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\bqbcore\\/([\\w\\.]+).+microm/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, 'WeChat(Win) Desktop']],\n\t\t\t\t\t\t\t\t\t[/micromessenger\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'WeChat']],\n\t\t\t\t\t\t\t\t\t[/konqueror\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Konqueror']],\n\t\t\t\t\t\t\t\t\t[/trident.+rv[: ]([\\w\\.]{1,9})\\b.+like gecko/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'IE']],\n\t\t\t\t\t\t\t\t\t[/ya(?:search)?browser\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Yandex']],\n\t\t\t\t\t\t\t\t\t[/(avast|avg)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[[p, /(.+)/, '$1 Secure ' + O], v],\n\t\t\t\t\t\t\t\t\t[/\\bfocus\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, N + ' Focus']],\n\t\t\t\t\t\t\t\t\t[/\\bopt\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, D + ' Touch']],\n\t\t\t\t\t\t\t\t\t[/coc_coc\\w+\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Coc Coc']],\n\t\t\t\t\t\t\t\t\t[/dolfin\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Dolphin']],\n\t\t\t\t\t\t\t\t\t[/coast\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, D + ' Coast']],\n\t\t\t\t\t\t\t\t\t[/miuibrowser\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'MIUI ' + O]],\n\t\t\t\t\t\t\t\t\t[/fxios\\/([-\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, N]],\n\t\t\t\t\t\t\t\t\t[/\\bqihu|(qi?ho?o?|360)browser/i],\n\t\t\t\t\t\t\t\t\t[[p, '360 ' + O]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(oculus|samsung|sailfish|huawei)browser\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[[p, /(.+)/, '$1 ' + O], v],\n\t\t\t\t\t\t\t\t\t[/(comodo_dragon)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[[p, /_/g, ' '], v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(electron)\\/([\\w\\.]+) safari/i,\n\t\t\t\t\t\t\t\t\t\t/(tesla)(?: qtcarbrowser|\\/(20\\d\\d\\.[-\\w\\.]+))/i,\n\t\t\t\t\t\t\t\t\t\t/m?(qqbrowser|baiduboxapp|2345Explorer)[\\/ ]?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(metasr)[\\/ ]?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(lbbrowser)/i,\n\t\t\t\t\t\t\t\t\t\t/\\[(linkedin)app\\]/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/((?:fban\\/fbios|fb_iab\\/fb4a)(?!.+fbav)|;fbav\\/([\\w\\.]+);)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[[p, F], v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(kakao(?:talk|story))[\\/ ]([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(naver)\\(.*?(\\d+\\.[\\w\\.]+).*\\)/i,\n\t\t\t\t\t\t\t\t\t\t/safari (line)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(line)\\/([\\w\\.]+)\\/iab/i,\n\t\t\t\t\t\t\t\t\t\t/(chromium|instagram)[\\/ ]([-\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/\\bgsa\\/([\\w\\.]+) .*safari\\//i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'GSA']],\n\t\t\t\t\t\t\t\t\t[/musical_ly(?:.+app_?version\\/|_)([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'TikTok']],\n\t\t\t\t\t\t\t\t\t[/headlesschrome(?:\\/([\\w\\.]+)| )/i],\n\t\t\t\t\t\t\t\t\t[v, [p, j + ' Headless']],\n\t\t\t\t\t\t\t\t\t[/ wv\\).+(chrome)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[[p, j + ' WebView'], v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/droid.+ version\\/([\\w\\.]+)\\b.+(?:mobile safari|safari)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Android ' + O]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\\/v?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/version\\/([\\w\\.\\,]+) .*mobile\\/\\w+ (safari)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Mobile Safari']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/version\\/([\\w(\\.|\\,)]+) .*(mobile ?safari|safari)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, p],\n\t\t\t\t\t\t\t\t\t[/webkit.+?(mobile ?safari|safari)(\\/[\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\tp,\n\t\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t\tv,\n\t\t\t\t\t\t\t\t\t\t\tJ,\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t'1.0': '/8',\n\t\t\t\t\t\t\t\t\t\t\t\t1.2: '/1',\n\t\t\t\t\t\t\t\t\t\t\t\t1.3: '/3',\n\t\t\t\t\t\t\t\t\t\t\t\t'2.0': '/412',\n\t\t\t\t\t\t\t\t\t\t\t\t'2.0.2': '/416',\n\t\t\t\t\t\t\t\t\t\t\t\t'2.0.3': '/417',\n\t\t\t\t\t\t\t\t\t\t\t\t'2.0.4': '/419',\n\t\t\t\t\t\t\t\t\t\t\t\t'?': '/',\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/(webkit|khtml)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/(navigator|netscape\\d?)\\/([-\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[[p, 'Netscape'], v],\n\t\t\t\t\t\t\t\t\t[/mobile vr; rv:([\\w\\.]+)\\).+firefox/i],\n\t\t\t\t\t\t\t\t\t[v, [p, N + ' Reality']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/ekiohf.+(flow)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(swiftfox)/i,\n\t\t\t\t\t\t\t\t\t\t/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\\/ ]?([\\w\\.\\+]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\\/([-\\w\\.]+)$/i,\n\t\t\t\t\t\t\t\t\t\t/(firefox)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(mozilla)\\/([\\w\\.]+) .+rv\\:.+gecko\\/\\d+/i,\n\t\t\t\t\t\t\t\t\t\t/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\\. ]?browser)[-\\/ ]?v?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(links) \\(([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/panasonic;(viera)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/(cobalt)\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[p, [v, /master.|lts./, '']],\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tcpu: [\n\t\t\t\t\t\t\t\t\t[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\\)]/i],\n\t\t\t\t\t\t\t\t\t[[g, 'amd64']],\n\t\t\t\t\t\t\t\t\t[/(ia32(?=;))/i],\n\t\t\t\t\t\t\t\t\t[[g, W]],\n\t\t\t\t\t\t\t\t\t[/((?:i[346]|x)86)[;\\)]/i],\n\t\t\t\t\t\t\t\t\t[[g, 'ia32']],\n\t\t\t\t\t\t\t\t\t[/\\b(aarch64|arm(v?8e?l?|_?64))\\b/i],\n\t\t\t\t\t\t\t\t\t[[g, 'arm64']],\n\t\t\t\t\t\t\t\t\t[/\\b(arm(?:v[67])?ht?n?[fl]p?)\\b/i],\n\t\t\t\t\t\t\t\t\t[[g, 'armhf']],\n\t\t\t\t\t\t\t\t\t[/windows (ce|mobile); ppc;/i],\n\t\t\t\t\t\t\t\t\t[[g, 'arm']],\n\t\t\t\t\t\t\t\t\t[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\\))/i],\n\t\t\t\t\t\t\t\t\t[[g, /ower/, '', W]],\n\t\t\t\t\t\t\t\t\t[/(sun4\\w)[;\\)]/i],\n\t\t\t\t\t\t\t\t\t[[g, 'sparc']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/((?:avr32|ia64(?=;))|68k(?=\\))|\\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\\b|pa-risc)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[[g, W]],\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tdevice: [\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\b(sch-i[89]0\\d|shw-m380s|sm-[ptx]\\w{2,4}|gt-[pn]\\d{2,4}|sgh-t8[56]9|nexus 10)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, A], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\b((?:s[cgp]h|gt|sm)-\\w+|sc[g-]?[\\d]+a?|galaxy nexus)/i,\n\t\t\t\t\t\t\t\t\t\t/samsung[- ]([-\\w]+)/i,\n\t\t\t\t\t\t\t\t\t\t/sec-(sgh\\w+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, A], [m, h]],\n\t\t\t\t\t\t\t\t\t[/(?:\\/|\\()(ip(?:hone|od)[\\w, ]*)(?:\\/|;)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, S], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\((ipad);[-\\w\\),; ]+apple/i,\n\t\t\t\t\t\t\t\t\t\t/applecoremedia\\/[\\w\\.]+ \\((ipad)/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(ipad)\\d\\d?,\\d\\d?[;\\]].+ios/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, S], [m, w]],\n\t\t\t\t\t\t\t\t\t[/(macintosh);/i],\n\t\t\t\t\t\t\t\t\t[d, [f, S]],\n\t\t\t\t\t\t\t\t\t[/\\b(sh-?[altvz]?\\d\\d[a-ekm]?)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, L], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\\d{2})\\b(?!.+d\\/s)/i,\n\t\t\t\t\t\t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t\t\t\t\t\t\t\t\t\t/\\b(cph[12]\\d{3}|p(?:af|c[al]|d\\w|e[ar])[mt]\\d0|x9007|a101op)\\b/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, 'OPPO'], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/vivo (\\w+)(?: bui|\\))/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(v[12]\\d{3}\\w?[at])(?: bui|;)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Vivo'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(rmx[12]\\d{3})(?: bui|;|\\))/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Realme'], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\\b[\\w ]+build\\//i,\n\t\t\t\t\t\t\t\t\t\t/\\bmot(?:orola)?[- ](\\w*)/i,\n\t\t\t\t\t\t\t\t\t\t/((?:moto[\\w\\(\\) ]+|xt\\d{3,4}|nexus 6)(?= bui|\\)))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, C], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(mz60\\d|xoom[2 ]{0,2}) build\\//i],\n\t\t\t\t\t\t\t\t\t[d, [f, C], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/((?=lg)?[vl]k\\-?\\d{3}) bui| 3\\.[-\\w; ]{10}lg?-([06cv9]{3,4})/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, M], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(lm(?:-?f100[nv]?|-[\\w\\.]+)(?= bui|\\))|nexus [45])/i,\n\t\t\t\t\t\t\t\t\t\t/\\blg[-e;\\/ ]+((?!browser|netcast|android tv)\\w+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\blg-?([\\d\\w]+) bui/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, M], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(ideatab[-\\w ]+)/i,\n\t\t\t\t\t\t\t\t\t\t/lenovo ?(s[56]000[-\\w]+|tab(?:[\\w ]+)|yt[-\\d\\w]{6}|tb[-\\d\\w]{6})/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Lenovo'], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(?:maemo|nokia).*(n900|lumia \\d+)/i,\n\t\t\t\t\t\t\t\t\t\t/nokia[-_ ]?([-\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, /_/g, ' '],\n\t\t\t\t\t\t\t\t\t\t[f, 'Nokia'],\n\t\t\t\t\t\t\t\t\t\t[m, h],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/(pixel c)\\b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, I], [m, w]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (pixel[\\daxl ]{0,6})(?: bui|\\))/i],\n\t\t\t\t\t\t\t\t\t[d, [f, I], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/droid.+ (a?\\d[0-2]{2}so|[c-g]\\d{4}|so[-gl]\\w+|xq-a\\w[4-7][12])(?= bui|\\).+chrome\\/(?![1-6]{0,1}\\d\\.))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, U], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/sony tablet [ps]/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(?:sony)?sgp\\w+(?: bui|\\))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, 'Xperia Tablet'],\n\t\t\t\t\t\t\t\t\t\t[f, U],\n\t\t\t\t\t\t\t\t\t\t[m, w],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/ (kb2005|in20[12]5|be20[12][59])\\b/i,\n\t\t\t\t\t\t\t\t\t\t/(?:one)?(?:plus)? (a\\d0\\d\\d)(?: b|\\))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, 'OnePlus'], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(alexa)webm/i,\n\t\t\t\t\t\t\t\t\t\t/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\\))/i,\n\t\t\t\t\t\t\t\t\t\t/(kf[a-z]+)( bui|\\)).+silk\\//i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, _], [m, w]],\n\t\t\t\t\t\t\t\t\t[/((?:sd|kf)[0349hijorstuw]+)( bui|\\)).+silk\\//i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, /(.+)/g, 'Fire Phone $1'],\n\t\t\t\t\t\t\t\t\t\t[f, _],\n\t\t\t\t\t\t\t\t\t\t[m, h],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/(playbook);[-\\w\\),; ]+(rim)/i],\n\t\t\t\t\t\t\t\t\t[d, f, [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b((?:bb[a-f]|st[hv])100-\\d)/i, /\\(bb10; (\\w+)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, x], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(?:\\b|asus_)(transfo[prime ]{4,10} \\w+|eeepc|slider \\w+|nexus 7|padfone|p00[cj])/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, E], [m, w]],\n\t\t\t\t\t\t\t\t\t[/ (z[bes]6[027][012][km][ls]|zenfone \\d\\w?)\\b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, E], [m, h]],\n\t\t\t\t\t\t\t\t\t[/(nexus 9)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'HTC'], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(htc)[-;_ ]{1,2}([\\w ]+(?=\\)| bui)|\\w+)/i,\n\t\t\t\t\t\t\t\t\t\t/(zte)[- ]([\\w ]+?)(?: bui|\\/|\\))/i,\n\t\t\t\t\t\t\t\t\t\t/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\\.))|sony(?!-bra))[-_ ]?([-\\w]*)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[f, [d, /_/g, ' '], [m, h]],\n\t\t\t\t\t\t\t\t\t[/droid.+; ([ab][1-7]-?[0178a]\\d\\d?)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Acer'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (m[1-5] note) bui/i, /\\bmz-([-\\w]{2,})/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Meizu'], [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(blackberry|benq|palm(?=\\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\\w]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(hp) ([\\w ]+\\w)/i,\n\t\t\t\t\t\t\t\t\t\t/(asus)-?(\\w+)/i,\n\t\t\t\t\t\t\t\t\t\t/(microsoft); (lumia[\\w ]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(lenovo)[-_ ]?([-\\w]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(jolla)/i,\n\t\t\t\t\t\t\t\t\t\t/(oppo) ?([\\w ]+) bui/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[f, d, [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(kobo)\\s(ereader|touch)/i,\n\t\t\t\t\t\t\t\t\t\t/(archos) (gamepad2?)/i,\n\t\t\t\t\t\t\t\t\t\t/(hp).+(touchpad(?!.+tablet)|tablet)/i,\n\t\t\t\t\t\t\t\t\t\t/(kindle)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(nook)[\\w ]+build\\/(\\w+)/i,\n\t\t\t\t\t\t\t\t\t\t/(dell) (strea[kpr\\d ]*[\\dko])/i,\n\t\t\t\t\t\t\t\t\t\t/(le[- ]+pan)[- ]+(\\w{1,9}) bui/i,\n\t\t\t\t\t\t\t\t\t\t/(trinity)[- ]*(t\\d{3}) bui/i,\n\t\t\t\t\t\t\t\t\t\t/(gigaset)[- ]+(q\\w{1,9}) bui/i,\n\t\t\t\t\t\t\t\t\t\t/(vodafone) ([\\w ]+)(?:\\)| bui)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[f, d, [m, w]],\n\t\t\t\t\t\t\t\t\t[/(surface duo)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, B], [m, w]],\n\t\t\t\t\t\t\t\t\t[/droid [\\d\\.]+; (fp\\du?)(?: b|\\))/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Fairphone'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/(u304aa)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'AT&T'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\bsie-(\\w*)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Siemens'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(rct\\w+) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'RCA'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(venue[\\d ]{2,7}) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Dell'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(q(?:mv|ta)\\w+) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Verizon'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(?:barnes[& ]+noble |bn[rt])([\\w\\+ ]*) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Barnes & Noble'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(tm\\d{3}\\w+) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'NuVision'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(k88) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'ZTE'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(nx\\d{3}j) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'ZTE'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(gen\\d{3}) b.+49h/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Swiss'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(zur\\d{3}) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Swiss'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b((zeki)?tb.*\\b) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Zeki'], [m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\b([yr]\\d{2}) b/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(dragon[- ]+touch |dt)(\\w{5}) b/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[[f, 'Dragon Touch'], d, [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(ns-?\\w{0,9}) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Insignia'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b((nxa|next)-?\\w{0,9}) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'NextBook'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(xtreme\\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],\n\t\t\t\t\t\t\t\t\t[[f, 'Voice'], d, [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(lvtel\\-)?(v1[12]) b/i],\n\t\t\t\t\t\t\t\t\t[[f, 'LvTel'], d, [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(ph-1) /i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Essential'], [m, h]],\n\t\t\t\t\t\t\t\t\t[/\\b(v(100md|700na|7011|917g).*\\b) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Envizen'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b(trio[-\\w\\. ]+) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'MachSpeed'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\btu_(1491) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Rotor'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/(shield[\\w ]+) b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Nvidia'], [m, w]],\n\t\t\t\t\t\t\t\t\t[/(sprint) (\\w+)/i],\n\t\t\t\t\t\t\t\t\t[f, d, [m, h]],\n\t\t\t\t\t\t\t\t\t[/(kin\\.[onetw]{3})/i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, /\\./g, ' '],\n\t\t\t\t\t\t\t\t\t\t[f, B],\n\t\t\t\t\t\t\t\t\t\t[m, h],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\\)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [f, q], [m, w]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (ec30|ps20|tc[2-8]\\d[kx])\\)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, q], [m, h]],\n\t\t\t\t\t\t\t\t\t[/smart-tv.+(samsung)/i],\n\t\t\t\t\t\t\t\t\t[f, [m, y]],\n\t\t\t\t\t\t\t\t\t[/hbbtv.+maple;(\\d+)/i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, /^/, 'SmartTV'],\n\t\t\t\t\t\t\t\t\t\t[f, A],\n\t\t\t\t\t\t\t\t\t\t[m, y],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(nux; netcast.+smarttv|lg (netcast\\.tv-201\\d|android tv))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[f, M],\n\t\t\t\t\t\t\t\t\t\t[m, y],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/(apple) ?tv/i],\n\t\t\t\t\t\t\t\t\t[f, [d, S + ' TV'], [m, y]],\n\t\t\t\t\t\t\t\t\t[/crkey/i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[d, j + 'cast'],\n\t\t\t\t\t\t\t\t\t\t[f, I],\n\t\t\t\t\t\t\t\t\t\t[m, y],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/droid.+aft(\\w)( bui|\\))/i],\n\t\t\t\t\t\t\t\t\t[d, [f, _], [m, y]],\n\t\t\t\t\t\t\t\t\t[/\\(dtv[\\);].+(aquos)/i, /(aquos-tv[\\w ]+)\\)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, L], [m, y]],\n\t\t\t\t\t\t\t\t\t[/(bravia[\\w ]+)( bui|\\))/i],\n\t\t\t\t\t\t\t\t\t[d, [f, U], [m, y]],\n\t\t\t\t\t\t\t\t\t[/(mitv-\\w{5}) bui/i],\n\t\t\t\t\t\t\t\t\t[d, [f, R], [m, y]],\n\t\t\t\t\t\t\t\t\t[/Hbbtv.*(technisat) (.*);/i],\n\t\t\t\t\t\t\t\t\t[f, d, [m, y]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/\\b(roku)[\\dx]*[\\)\\/]((?:dvp-)?[\\d\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/hbbtv\\/\\d+\\.\\d+\\.\\d+ +\\([\\w\\+ ]*; *([\\w\\d][^;]*);([^;]*)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[f, H],\n\t\t\t\t\t\t\t\t\t\t[d, H],\n\t\t\t\t\t\t\t\t\t\t[m, y],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/\\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\\b/i],\n\t\t\t\t\t\t\t\t\t[[m, y]],\n\t\t\t\t\t\t\t\t\t[/(ouya)/i, /(nintendo) ([wids3utch]+)/i],\n\t\t\t\t\t\t\t\t\t[f, d, [m, b]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (shield) bui/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Nvidia'], [m, b]],\n\t\t\t\t\t\t\t\t\t[/(playstation [345portablevi]+)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, U], [m, b]],\n\t\t\t\t\t\t\t\t\t[/\\b(xbox(?: one)?(?!; xbox))[\\); ]/i],\n\t\t\t\t\t\t\t\t\t[d, [f, B], [m, b]],\n\t\t\t\t\t\t\t\t\t[/((pebble))app/i],\n\t\t\t\t\t\t\t\t\t[f, d, [m, T]],\n\t\t\t\t\t\t\t\t\t[/(watch)(?: ?os[,\\/]|\\d,\\d\\/)[\\d\\.]+/i],\n\t\t\t\t\t\t\t\t\t[d, [f, S], [m, T]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (glass) \\d/i],\n\t\t\t\t\t\t\t\t\t[d, [f, I], [m, T]],\n\t\t\t\t\t\t\t\t\t[/droid.+; (wt63?0{2,3})\\)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, q], [m, T]],\n\t\t\t\t\t\t\t\t\t[/(quest( 2| pro)?)/i],\n\t\t\t\t\t\t\t\t\t[d, [f, F], [m, T]],\n\t\t\t\t\t\t\t\t\t[/(tesla)(?: qtcarbrowser|\\/[-\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[f, [m, k]],\n\t\t\t\t\t\t\t\t\t[/(aeobc)\\b/i],\n\t\t\t\t\t\t\t\t\t[d, [f, _], [m, k]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/droid .+?; ([^;]+?)(?: bui|\\) applew).+? mobile safari/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [m, h]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/droid .+?; ([^;]+?)(?: bui|\\) applew).+?(?! mobile) safari/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[d, [m, w]],\n\t\t\t\t\t\t\t\t\t[/\\b((tablet|tab)[;\\/]|focus\\/\\d(?!.+mobile))/i],\n\t\t\t\t\t\t\t\t\t[[m, w]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(phone|mobile(?:[;\\/]| [ \\w\\/\\.]*safari)|pda(?=.+windows ce))/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[[m, h]],\n\t\t\t\t\t\t\t\t\t[/(android[-\\w\\. ]{0,9});.+buil/i],\n\t\t\t\t\t\t\t\t\t[d, [f, 'Generic']],\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tengine: [\n\t\t\t\t\t\t\t\t\t[/windows.+ edge\\/([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'EdgeHTML']],\n\t\t\t\t\t\t\t\t\t[/webkit\\/537\\.36.+chrome\\/(?!27)([\\w\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Blink']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(presto)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/ekioh(flow)\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(khtml|tasman|links)[\\/ ]\\(?([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(icab)[\\/ ]([23]\\.[\\d\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(libweb)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/rv\\:([\\w\\.]{1,9})\\b.+(gecko)/i],\n\t\t\t\t\t\t\t\t\t[v, p],\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\tos: [\n\t\t\t\t\t\t\t\t\t[/microsoft (windows) (vista|xp)/i],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(windows) nt 6\\.2; (arm)/i,\n\t\t\t\t\t\t\t\t\t\t/(windows (?:phone(?: os)?|mobile))[\\/ ]?([\\d\\.\\w ]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(windows)[\\/ ]?([ntce\\d\\. ]+\\w)(?!.+xbox)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, [v, J, X]],\n\t\t\t\t\t\t\t\t\t[/(win(?=3|9|n)|win 9x )([nt\\d\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[p, 'Windows'],\n\t\t\t\t\t\t\t\t\t\t[v, J, X],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/ip[honead]{2,4}\\b(?:.*os ([\\w]+) like mac|; opera)/i,\n\t\t\t\t\t\t\t\t\t\t/ios;fbsv\\/([\\d\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/cfnetwork\\/.+darwin/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[v, /_/g, '.'],\n\t\t\t\t\t\t\t\t\t\t[p, 'iOS'],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(mac os x) ?([\\w\\. ]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(macintosh|mac_powerpc\\b)(?!.+haiku)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t[p, K],\n\t\t\t\t\t\t\t\t\t\t[v, /_/g, '.'],\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[/droid ([\\w\\.]+)\\b.+(android[- ]x86|harmonyos)/i],\n\t\t\t\t\t\t\t\t\t[v, p],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\\/ ]?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(blackberry)\\w*\\/([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(tizen|kaios)[\\/ ]([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\((series40);/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/\\(bb(10);/i],\n\t\t\t\t\t\t\t\t\t[v, [p, x]],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/(?:symbian ?os|symbos|s60(?=;)|series60)[-\\/ ]?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, 'Symbian']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/mozilla\\/[\\d\\.]+ \\((?:mobile|tablet|tv|mobile; [\\w ]+); rv:.+ gecko\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, N + ' OS']],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/web0s;.+rt(tv)/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(?:hp)?wos(?:browser)?\\/([\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[v, [p, 'webOS']],\n\t\t\t\t\t\t\t\t\t[/watch(?: ?os[,\\/]|\\d,\\d\\/)([\\d\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, 'watchOS']],\n\t\t\t\t\t\t\t\t\t[/crkey\\/([\\d\\.]+)/i],\n\t\t\t\t\t\t\t\t\t[v, [p, j + 'cast']],\n\t\t\t\t\t\t\t\t\t[/(cros) [\\w]+(?:\\)| ([\\w\\.]+)\\b)/i],\n\t\t\t\t\t\t\t\t\t[[p, z], v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/panasonic;(viera)/i,\n\t\t\t\t\t\t\t\t\t\t/(netrange)mmh/i,\n\t\t\t\t\t\t\t\t\t\t/(nettv)\\/(\\d+\\.[\\w\\.]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(nintendo|playstation) ([wids345portablevuch]+)/i,\n\t\t\t\t\t\t\t\t\t\t/(xbox); +xbox ([^\\);]+)/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(joli|palm)\\b ?(?:os)?\\/?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(mint)[\\/\\(\\) ]?(\\w*)/i,\n\t\t\t\t\t\t\t\t\t\t/(mageia|vectorlinux)[; ]/i,\n\t\t\t\t\t\t\t\t\t\t/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\\/ ]?(?!chrom|package)([-\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(hurd|linux) ?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(gnu) ?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/\\b([-frentopcghs]{0,5}bsd|dragonfly)[\\/ ]?(?!amd|[ix346]{1,2}86)([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(haiku) (\\w+)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t\t[/(sunos) ?([\\w\\.\\d]*)/i],\n\t\t\t\t\t\t\t\t\t[[p, 'Solaris'], v],\n\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t/((?:open)?solaris)[-\\/ ]?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t\t/(aix) ((\\d)(?=\\.|\\)| )[\\w\\.])*/i,\n\t\t\t\t\t\t\t\t\t\t/\\b(beos|os\\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,\n\t\t\t\t\t\t\t\t\t\t/(unix) ?([\\w\\.]*)/i,\n\t\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t\t\t[p, v],\n\t\t\t\t\t\t\t\t],\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tZ = function (e, t) {\n\t\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\t\t(typeof e === c && ((t = e), (e = a)),\n\t\t\t\t\t\t\t\t\t!(this instanceof Z))\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\treturn new Z(e, t).getResult()\n\t\t\t\t\t\t\t\tvar n = typeof i !== s && i.navigator ? i.navigator : a,\n\t\t\t\t\t\t\t\t\tr = e || (n && n.userAgent ? n.userAgent : ''),\n\t\t\t\t\t\t\t\t\tb = n && n.userAgentData ? n.userAgentData : a,\n\t\t\t\t\t\t\t\t\ty = t\n\t\t\t\t\t\t\t\t\t\t? (function (e, t) {\n\t\t\t\t\t\t\t\t\t\t\t\tvar n = {}\n\t\t\t\t\t\t\t\t\t\t\t\tfor (var r in e)\n\t\t\t\t\t\t\t\t\t\t\t\t\tt[r] && t[r].length % 2 == 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? (n[r] = t[r].concat(e[r]))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: (n[r] = e[r])\n\t\t\t\t\t\t\t\t\t\t\t\treturn n\n\t\t\t\t\t\t\t\t\t\t\t})(G, t)\n\t\t\t\t\t\t\t\t\t\t: G,\n\t\t\t\t\t\t\t\t\tT = n && n.userAgent == r\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t(this.getBrowser = function () {\n\t\t\t\t\t\t\t\t\t\tvar e,\n\t\t\t\t\t\t\t\t\t\t\tt = {}\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t(t[p] = a),\n\t\t\t\t\t\t\t\t\t\t\t(t[v] = a),\n\t\t\t\t\t\t\t\t\t\t\tV.call(t, r, y.browser),\n\t\t\t\t\t\t\t\t\t\t\t(t[l] =\n\t\t\t\t\t\t\t\t\t\t\t\ttypeof (e = t[v]) === u\n\t\t\t\t\t\t\t\t\t\t\t\t\t? e.replace(/[^\\d\\.]/g, '').split('.')[0]\n\t\t\t\t\t\t\t\t\t\t\t\t\t: a),\n\t\t\t\t\t\t\t\t\t\t\tT &&\n\t\t\t\t\t\t\t\t\t\t\t\tn &&\n\t\t\t\t\t\t\t\t\t\t\t\tn.brave &&\n\t\t\t\t\t\t\t\t\t\t\t\ttypeof n.brave.isBrave == o &&\n\t\t\t\t\t\t\t\t\t\t\t\t(t[p] = 'Brave'),\n\t\t\t\t\t\t\t\t\t\t\tt\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getCPU = function () {\n\t\t\t\t\t\t\t\t\t\tvar e = {}\n\t\t\t\t\t\t\t\t\t\treturn (e[g] = a), V.call(e, r, y.cpu), e\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getDevice = function () {\n\t\t\t\t\t\t\t\t\t\tvar e = {}\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t(e[f] = a),\n\t\t\t\t\t\t\t\t\t\t\t(e[d] = a),\n\t\t\t\t\t\t\t\t\t\t\t(e[m] = a),\n\t\t\t\t\t\t\t\t\t\t\tV.call(e, r, y.device),\n\t\t\t\t\t\t\t\t\t\t\tT && !e[m] && b && b.mobile && (e[m] = h),\n\t\t\t\t\t\t\t\t\t\t\tT &&\n\t\t\t\t\t\t\t\t\t\t\t\t'Macintosh' == e[d] &&\n\t\t\t\t\t\t\t\t\t\t\t\tn &&\n\t\t\t\t\t\t\t\t\t\t\t\ttypeof n.standalone !== s &&\n\t\t\t\t\t\t\t\t\t\t\t\tn.maxTouchPoints &&\n\t\t\t\t\t\t\t\t\t\t\t\tn.maxTouchPoints > 2 &&\n\t\t\t\t\t\t\t\t\t\t\t\t((e[d] = 'iPad'), (e[m] = w)),\n\t\t\t\t\t\t\t\t\t\t\te\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getEngine = function () {\n\t\t\t\t\t\t\t\t\t\tvar e = {}\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t(e[p] = a),\n\t\t\t\t\t\t\t\t\t\t\t(e[v] = a),\n\t\t\t\t\t\t\t\t\t\t\tV.call(e, r, y.engine),\n\t\t\t\t\t\t\t\t\t\t\te\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getOS = function () {\n\t\t\t\t\t\t\t\t\t\tvar e = {}\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t(e[p] = a),\n\t\t\t\t\t\t\t\t\t\t\t(e[v] = a),\n\t\t\t\t\t\t\t\t\t\t\tV.call(e, r, y.os),\n\t\t\t\t\t\t\t\t\t\t\tT &&\n\t\t\t\t\t\t\t\t\t\t\t\t!e[p] &&\n\t\t\t\t\t\t\t\t\t\t\t\tb &&\n\t\t\t\t\t\t\t\t\t\t\t\t'Unknown' != b.platform &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[p] = b.platform\n\t\t\t\t\t\t\t\t\t\t\t\t\t.replace(/chrome os/i, z)\n\t\t\t\t\t\t\t\t\t\t\t\t\t.replace(/macos/i, K)),\n\t\t\t\t\t\t\t\t\t\t\te\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getResult = function () {\n\t\t\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\t\t\tua: this.getUA(),\n\t\t\t\t\t\t\t\t\t\t\tbrowser: this.getBrowser(),\n\t\t\t\t\t\t\t\t\t\t\tengine: this.getEngine(),\n\t\t\t\t\t\t\t\t\t\t\tos: this.getOS(),\n\t\t\t\t\t\t\t\t\t\t\tdevice: this.getDevice(),\n\t\t\t\t\t\t\t\t\t\t\tcpu: this.getCPU(),\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.getUA = function () {\n\t\t\t\t\t\t\t\t\t\treturn r\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t(this.setUA = function (e) {\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t(r =\n\t\t\t\t\t\t\t\t\t\t\t\ttypeof e === u && e.length > 350\n\t\t\t\t\t\t\t\t\t\t\t\t\t? H(e, 350)\n\t\t\t\t\t\t\t\t\t\t\t\t\t: e),\n\t\t\t\t\t\t\t\t\t\t\tthis\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\tthis.setUA(r),\n\t\t\t\t\t\t\t\t\tthis\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t;(Z.VERSION = '1.0.35'),\n\t\t\t\t\t\t\t(Z.BROWSER = $([p, v, l])),\n\t\t\t\t\t\t\t(Z.CPU = $([g])),\n\t\t\t\t\t\t\t(Z.DEVICE = $([d, f, m, b, h, y, w, T, k])),\n\t\t\t\t\t\t\t(Z.ENGINE = Z.OS = $([p, v])),\n\t\t\t\t\t\t\ttypeof t !== s\n\t\t\t\t\t\t\t\t? (e.exports && (t = e.exports = Z), (t.UAParser = Z))\n\t\t\t\t\t\t\t\t: n.amdO\n\t\t\t\t\t\t\t\t\t? (r = function () {\n\t\t\t\t\t\t\t\t\t\t\treturn Z\n\t\t\t\t\t\t\t\t\t\t}.call(t, n, t, e)) === a || (e.exports = r)\n\t\t\t\t\t\t\t\t\t: typeof i !== s && (i.UAParser = Z)\n\t\t\t\t\t\tvar Y = typeof i !== s && (i.jQuery || i.Zepto)\n\t\t\t\t\t\tif (Y && !Y.ua) {\n\t\t\t\t\t\t\tvar ee = new Z()\n\t\t\t\t\t\t\t;(Y.ua = ee.getResult()),\n\t\t\t\t\t\t\t\t(Y.ua.get = function () {\n\t\t\t\t\t\t\t\t\treturn ee.getUA()\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t(Y.ua.set = function (e) {\n\t\t\t\t\t\t\t\t\tee.setUA(e)\n\t\t\t\t\t\t\t\t\tvar t = ee.getResult()\n\t\t\t\t\t\t\t\t\tfor (var n in t) Y.ua[n] = t[n]\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t})('object' == typeof window ? window : this)\n\t\t\t\t},\n\t\t\t},\n\t\t\tt = {}\n\t\tfunction n(r) {\n\t\t\tvar i = t[r]\n\t\t\tif (void 0 !== i) return i.exports\n\t\t\tvar a = (t[r] = { exports: {} })\n\t\t\treturn e[r].call(a.exports, a, a.exports, n), a.exports\n\t\t}\n\t\t;(n.amdO = {}),\n\t\t\t(n.n = (e) => {\n\t\t\t\tvar t = e && e.__esModule ? () => e.default : () => e\n\t\t\t\treturn n.d(t, { a: t }), t\n\t\t\t}),\n\t\t\t(n.d = (e, t) => {\n\t\t\t\tfor (var r in t)\n\t\t\t\t\tn.o(t, r) &&\n\t\t\t\t\t\t!n.o(e, r) &&\n\t\t\t\t\t\tObject.defineProperty(e, r, { enumerable: !0, get: t[r] })\n\t\t\t}),\n\t\t\t(n.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)),\n\t\t\t(n.r = (e) => {\n\t\t\t\t'undefined' != typeof Symbol &&\n\t\t\t\t\tSymbol.toStringTag &&\n\t\t\t\t\tObject.defineProperty(e, Symbol.toStringTag, {\n\t\t\t\t\t\tvalue: 'Module',\n\t\t\t\t\t}),\n\t\t\t\t\tObject.defineProperty(e, '__esModule', { value: !0 })\n\t\t\t})\n\t\tvar r = {}\n\t\treturn (\n\t\t\t(() => {\n\t\t\t\t'use strict'\n\t\t\t\tn.r(r),\n\t\t\t\t\tn.d(r, {\n\t\t\t\t\t\tActionType: () => f,\n\t\t\t\t\t\tAmplitudePlatformName: () => g,\n\t\t\t\t\t\tAnalyticsEventImportance: () => l,\n\t\t\t\t\t\tAnalyticsQueries: () => e,\n\t\t\t\t\t\tAuthStatus: () => b,\n\t\t\t\t\t\tComponentType: () => m,\n\t\t\t\t\t\tIThresholdTier: () => Jt,\n\t\t\t\t\t\tMetricType: () => d,\n\t\t\t\t\t\tPlatformName: () => v,\n\t\t\t\t\t\tSessionActions: () => h,\n\t\t\t\t\t\tSessionAutomatedEvents: () => w,\n\t\t\t\t\t\tSessionRank: () => y,\n\t\t\t\t\t\tSubjectType: () => p,\n\t\t\t\t\t\tUserTypeCommerce: () => c,\n\t\t\t\t\t\tUserTypeInsto: () => i,\n\t\t\t\t\t\tUserTypeRetail: () => t,\n\t\t\t\t\t\tUserTypeRetailBusinessBanking: () => s,\n\t\t\t\t\t\tUserTypeRetailEmployeeInternal: () => a,\n\t\t\t\t\t\tUserTypeRetailEmployeePersonal: () => o,\n\t\t\t\t\t\tUserTypeWallet: () => u,\n\t\t\t\t\t\tautomatedEvents: () => xn,\n\t\t\t\t\t\tautomatedMappingConfig: () => In,\n\t\t\t\t\t\tclearMarkEntry: () => Vn,\n\t\t\t\t\t\tclearPerformanceMarkEntries: () => Xn,\n\t\t\t\t\t\tconfig: () => A,\n\t\t\t\t\t\tcreateEventConfig: () => On,\n\t\t\t\t\t\tcreateNewSpan: () => Ln,\n\t\t\t\t\t\tcreateNewTrace: () => Un,\n\t\t\t\t\t\tdevice: () => W,\n\t\t\t\t\t\tendPerfMark: () => Jn,\n\t\t\t\t\t\texposeExperiment: () => wn,\n\t\t\t\t\t\tflushQueue: () => or,\n\t\t\t\t\t\tgenerateUUID: () => V,\n\t\t\t\t\t\tgetAnalyticsHeaders: () => sr,\n\t\t\t\t\t\tgetReferrerData: () => le,\n\t\t\t\t\t\tgetTracingHeaders: () => An,\n\t\t\t\t\t\tgetTracingId: () => Dn,\n\t\t\t\t\t\tgetUrlHostname: () => pe,\n\t\t\t\t\t\tgetUrlParams: () => me,\n\t\t\t\t\t\tgetUrlPathname: () => fe,\n\t\t\t\t\t\tgetUserContext: () => ar,\n\t\t\t\t\t\tidentify: () => Tn,\n\t\t\t\t\t\tidentifyFlow: () => xe,\n\t\t\t\t\t\tidentity: () => H,\n\t\t\t\t\t\tidentityFlow: () => Se,\n\t\t\t\t\t\tincrementUjNavigation: () => an,\n\t\t\t\t\t\tinit: () => yn,\n\t\t\t\t\t\tinitNextJsTrackPageview: () => _n,\n\t\t\t\t\t\tinitTrackPageview: () => kn,\n\t\t\t\t\t\tisEventKeyFormatValid: () => we,\n\t\t\t\t\t\tisSessionEnded: () => pt,\n\t\t\t\t\t\tlocation: () => re,\n\t\t\t\t\t\tlogEvent: () => $t,\n\t\t\t\t\t\tlogMetric: () => Ht,\n\t\t\t\t\t\tlogPageView: () => on,\n\t\t\t\t\t\tlogTrace: () => Rn,\n\t\t\t\t\t\tmarkNTBT: () => tn,\n\t\t\t\t\t\tmarkStep: () => nn,\n\t\t\t\t\t\tmarkStepOnce: () => rn,\n\t\t\t\t\t\tonVisibilityChange: () => ln,\n\t\t\t\t\t\toptIn: () => En,\n\t\t\t\t\t\toptOut: () => Sn,\n\t\t\t\t\t\tperfMark: () => Wn,\n\t\t\t\t\t\tpersistentData: () => oe,\n\t\t\t\t\t\tpostMessage: () => K,\n\t\t\t\t\t\trecordSessionDuration: () => pn,\n\t\t\t\t\t\tremoveFromIdentifyFlow: () => Ee,\n\t\t\t\t\t\tsavePersistentData: () => st,\n\t\t\t\t\t\tsendScheduledEvents: () => Bt,\n\t\t\t\t\t\tsetBreadcrumbs: () => ie,\n\t\t\t\t\t\tsetConfig: () => U,\n\t\t\t\t\t\tsetLocation: () => ae,\n\t\t\t\t\t\tsetPagePath: () => ve,\n\t\t\t\t\t\tsetPageview: () => Kt,\n\t\t\t\t\t\tsetPersistentData: () => se,\n\t\t\t\t\t\tsetSessionStart: () => dt,\n\t\t\t\t\t\tsetTime: () => Ue,\n\t\t\t\t\t\tstartPerfMark: () => Hn,\n\t\t\t\t\t\ttimeStone: () => Le,\n\t\t\t\t\t\tuseEventLogger: () => Yn,\n\t\t\t\t\t\tuseLogEventOnMount: () => tr,\n\t\t\t\t\t\tusePerformanceMarks: () => rr,\n\t\t\t\t\t})\n\t\t\t\tlet e = (function (e) {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(e.fbclid = 'fbclid'),\n\t\t\t\t\t\t(e.gclid = 'gclid'),\n\t\t\t\t\t\t(e.msclkid = 'msclkid'),\n\t\t\t\t\t\t(e.ptclid = 'ptclid'),\n\t\t\t\t\t\t(e.ttclid = 'ttclid'),\n\t\t\t\t\t\t(e.utm_source = 'utm_source'),\n\t\t\t\t\t\t(e.utm_medium = 'utm_medium'),\n\t\t\t\t\t\t(e.utm_campaign = 'utm_campaign'),\n\t\t\t\t\t\t(e.utm_term = 'utm_term'),\n\t\t\t\t\t\t(e.utm_content = 'utm_content'),\n\t\t\t\t\t\te\n\t\t\t\t\t)\n\t\t\t\t})({})\n\t\t\t\tconst t = 0,\n\t\t\t\t\ti = 1,\n\t\t\t\t\ta = 2,\n\t\t\t\t\to = 3,\n\t\t\t\t\ts = 4,\n\t\t\t\t\tc = 5,\n\t\t\t\t\tu = 6\n\t\t\t\tlet l = (function (e) {\n\t\t\t\t\t\treturn (e.low = 'low'), (e.high = 'high'), e\n\t\t\t\t\t})({}),\n\t\t\t\t\td = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.count = 'count'),\n\t\t\t\t\t\t\t(e.rate = 'rate'),\n\t\t\t\t\t\t\t(e.gauge = 'gauge'),\n\t\t\t\t\t\t\t(e.distribution = 'distribution'),\n\t\t\t\t\t\t\t(e.histogram = 'histogram'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tp = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.commerce_merchant = 'commerce_merchant'),\n\t\t\t\t\t\t\t(e.device = 'device'),\n\t\t\t\t\t\t\t(e.edp_fingerprint_id = 'edp_fingerprint_id'),\n\t\t\t\t\t\t\t(e.nft_user = 'nft_user'),\n\t\t\t\t\t\t\t(e.user = 'user'),\n\t\t\t\t\t\t\t(e.wallet_user = 'wallet_user'),\n\t\t\t\t\t\t\t(e.uuid = 'user_uuid'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tm = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.unknown = 'unknown'),\n\t\t\t\t\t\t\t(e.banner = 'banner'),\n\t\t\t\t\t\t\t(e.button = 'button'),\n\t\t\t\t\t\t\t(e.card = 'card'),\n\t\t\t\t\t\t\t(e.chart = 'chart'),\n\t\t\t\t\t\t\t(e.content_script = 'content_script'),\n\t\t\t\t\t\t\t(e.dropdown = 'dropdown'),\n\t\t\t\t\t\t\t(e.link = 'link'),\n\t\t\t\t\t\t\t(e.page = 'page'),\n\t\t\t\t\t\t\t(e.modal = 'modal'),\n\t\t\t\t\t\t\t(e.table = 'table'),\n\t\t\t\t\t\t\t(e.search_bar = 'search_bar'),\n\t\t\t\t\t\t\t(e.service_worker = 'service_worker'),\n\t\t\t\t\t\t\t(e.text = 'text'),\n\t\t\t\t\t\t\t(e.text_input = 'text_input'),\n\t\t\t\t\t\t\t(e.tray = 'tray'),\n\t\t\t\t\t\t\t(e.checkbox = 'checkbox'),\n\t\t\t\t\t\t\t(e.icon = 'icon'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tf = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.unknown = 'unknown'),\n\t\t\t\t\t\t\t(e.blur = 'blur'),\n\t\t\t\t\t\t\t(e.click = 'click'),\n\t\t\t\t\t\t\t(e.change = 'change'),\n\t\t\t\t\t\t\t(e.dismiss = 'dismiss'),\n\t\t\t\t\t\t\t(e.focus = 'focus'),\n\t\t\t\t\t\t\t(e.hover = 'hover'),\n\t\t\t\t\t\t\t(e.select = 'select'),\n\t\t\t\t\t\t\t(e.measurement = 'measurement'),\n\t\t\t\t\t\t\t(e.move = 'move'),\n\t\t\t\t\t\t\t(e.process = 'process'),\n\t\t\t\t\t\t\t(e.render = 'render'),\n\t\t\t\t\t\t\t(e.scroll = 'scroll'),\n\t\t\t\t\t\t\t(e.view = 'view'),\n\t\t\t\t\t\t\t(e.search = 'search'),\n\t\t\t\t\t\t\t(e.keyPress = 'keyPress'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tv = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.unknown = 'unknown'),\n\t\t\t\t\t\t\t(e.web = 'web'),\n\t\t\t\t\t\t\t(e.android = 'android'),\n\t\t\t\t\t\t\t(e.ios = 'ios'),\n\t\t\t\t\t\t\t(e.mobile_web = 'mobile_web'),\n\t\t\t\t\t\t\t(e.tablet_web = 'tablet_web'),\n\t\t\t\t\t\t\t(e.server = 'server'),\n\t\t\t\t\t\t\t(e.windows = 'windows'),\n\t\t\t\t\t\t\t(e.macos = 'macos'),\n\t\t\t\t\t\t\t(e.extension = 'extension'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tg = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.web = 'Web'),\n\t\t\t\t\t\t\t(e.ios = 'iOS'),\n\t\t\t\t\t\t\t(e.android = 'Android'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tb = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e[(e.notLoggedIn = 0)] = 'notLoggedIn'),\n\t\t\t\t\t\t\t(e[(e.loggedIn = 1)] = 'loggedIn'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\th = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.ac = 'ac'),\n\t\t\t\t\t\t\t(e.af = 'af'),\n\t\t\t\t\t\t\t(e.ah = 'ah'),\n\t\t\t\t\t\t\t(e.al = 'al'),\n\t\t\t\t\t\t\t(e.am = 'am'),\n\t\t\t\t\t\t\t(e.ar = 'ar'),\n\t\t\t\t\t\t\t(e.as = 'as'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({}),\n\t\t\t\t\tw = (function (e) {\n\t\t\t\t\t\treturn (e.pv = 'pv'), e\n\t\t\t\t\t})({}),\n\t\t\t\t\ty = (function (e) {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(e.xs = 'xs'),\n\t\t\t\t\t\t\t(e.s = 's'),\n\t\t\t\t\t\t\t(e.m = 'm'),\n\t\t\t\t\t\t\t(e.l = 'l'),\n\t\t\t\t\t\t\t(e.xl = 'xl'),\n\t\t\t\t\t\t\t(e.xxl = 'xxl'),\n\t\t\t\t\t\t\te\n\t\t\t\t\t\t)\n\t\t\t\t\t})({})\n\t\t\t\tconst T = 'https://analytics-service-dev.cbhq.net',\n\t\t\t\t\tk = 3e5,\n\t\t\t\t\t_ = 5e3,\n\t\t\t\t\tS = 'analytics-db',\n\t\t\t\t\tE = 'experiment-exposure-db',\n\t\t\t\t\tx = 'Analytics SDK:',\n\t\t\t\t\tO = Object.values(e),\n\t\t\t\t\tj = 'pageview',\n\t\t\t\t\tN = 'session_duration',\n\t\t\t\t\tI = {\n\t\t\t\t\t\tnavigationTiming: { eventName: 'perf_navigation_timing' },\n\t\t\t\t\t\tredirectTime: { eventName: 'perf_redirect_time' },\n\t\t\t\t\t\tRT: { eventName: 'perf_redirect_time' },\n\t\t\t\t\t\tTTFB: { eventName: 'perf_time_to_first_byte' },\n\t\t\t\t\t\tnetworkInformation: { eventName: 'perf_network_information' },\n\t\t\t\t\t\tstorageEstimate: { eventName: 'perf_storage_estimate' },\n\t\t\t\t\t\tFCP: { eventName: 'perf_first_contentful_paint' },\n\t\t\t\t\t\tFID: { eventName: 'perf_first_input_delay' },\n\t\t\t\t\t\tLCP: { eventName: 'perf_largest_contentful_paint' },\n\t\t\t\t\t\tCLS: { eventName: 'perf_cumulative_layout_shift' },\n\t\t\t\t\t\tTBT: { eventName: 'perf_total_blocking_time' },\n\t\t\t\t\t\tNTBT: { eventName: 'perf_navigation_total_blocking_time' },\n\t\t\t\t\t\tINP: { eventName: 'perf_interact_to_next_paint' },\n\t\t\t\t\t\tET: { eventName: 'perf_element_timing' },\n\t\t\t\t\t\tuserJourneyStep: { eventName: 'perf_user_journey_step' },\n\t\t\t\t\t},\n\t\t\t\t\tP = '1',\n\t\t\t\t\tM = 'web'\n\t\t\t\tfunction B() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(B = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tB.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst C = /^(https?:\\/\\/)/\n\t\t\t\tfunction D(e) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\teventsEndpoint: e + '/amp',\n\t\t\t\t\t\tmetricsEndPoint: e + '/metrics',\n\t\t\t\t\t\texposureEndpoint: e + '/track-exposures',\n\t\t\t\t\t\ttracesEndpoint: e + '/traces',\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tconst A = B(\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tauthCookie: 'logged_in',\n\t\t\t\t\t\t\tamplitudeApiKey: '',\n\t\t\t\t\t\t\tbatchEventsPeriod: _,\n\t\t\t\t\t\t\tbatchEventsThreshold: 30,\n\t\t\t\t\t\t\tbatchMetricsPeriod: _,\n\t\t\t\t\t\t\tbatchMetricsThreshold: 30,\n\t\t\t\t\t\t\tbatchTracesPeriod: _,\n\t\t\t\t\t\t\tbatchTracesThreshold: 30,\n\t\t\t\t\t\t\theaders: {},\n\t\t\t\t\t\t\tinteractionManager: null,\n\t\t\t\t\t\t\tisAlwaysAuthed: !1,\n\t\t\t\t\t\t\tisProd: !1,\n\t\t\t\t\t\t\tisInternalApplication: !1,\n\t\t\t\t\t\t\tonError: (e, t) => {\n\t\t\t\t\t\t\t\tconsole.error(x, e, t)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\tplatform: v.unknown,\n\t\t\t\t\t\t\tprojectName: '',\n\t\t\t\t\t\t\tricTimeoutScheduleEvent: 1e3,\n\t\t\t\t\t\t\tricTimeoutSetDevice: 500,\n\t\t\t\t\t\t\tshowDebugLogging: !1,\n\t\t\t\t\t\t\ttrackUserId: !1,\n\t\t\t\t\t\t\tversion: null,\n\t\t\t\t\t\t\tapiEndpoint: T,\n\t\t\t\t\t\t},\n\t\t\t\t\t\tD(T),\n\t\t\t\t\t\t{ steps: {} },\n\t\t\t\t\t),\n\t\t\t\t\tL = [].reduce(\n\t\t\t\t\t\t(e, t) => (n) => e(t(n)),\n\t\t\t\t\t\t(e) => {\n\t\t\t\t\t\t\tif (!e.isProd)\n\t\t\t\t\t\t\t\treturn e.isInternalApplication\n\t\t\t\t\t\t\t\t\t? ((e.apiEndpoint =\n\t\t\t\t\t\t\t\t\t\t\t'https://analytics-service-internal-dev.cbhq.net'),\n\t\t\t\t\t\t\t\t\t\tB({}, e, D(e.apiEndpoint)))\n\t\t\t\t\t\t\t\t\t: e\n\t\t\t\t\t\t\tconst t = ((e) =>\n\t\t\t\t\t\t\t\te.apiEndpoint\n\t\t\t\t\t\t\t\t\t? C.test(e.apiEndpoint)\n\t\t\t\t\t\t\t\t\t\t? e.apiEndpoint\n\t\t\t\t\t\t\t\t\t\t: `https://${e.apiEndpoint}`\n\t\t\t\t\t\t\t\t\t: e.isInternalApplication\n\t\t\t\t\t\t\t\t\t\t? 'https://analytics-service-internal.cbhq.net'\n\t\t\t\t\t\t\t\t\t\t: 'https://as.coinbase.com')(e)\n\t\t\t\t\t\t\treturn B({}, e, { apiEndpoint: t }, D(t))\n\t\t\t\t\t\t},\n\t\t\t\t\t),\n\t\t\t\t\tU = (e) => {\n\t\t\t\t\t\tconst {\n\t\t\t\t\t\t\t\tbatchEventsThreshold: t,\n\t\t\t\t\t\t\t\tbatchMetricsThreshold: n,\n\t\t\t\t\t\t\t\tbatchTracesThreshold: r,\n\t\t\t\t\t\t\t} = e,\n\t\t\t\t\t\t\ti = [t, n, r]\n\t\t\t\t\t\tfor (const e of i)\n\t\t\t\t\t\t\tif ((e || 0) > 30) {\n\t\t\t\t\t\t\t\tconsole.warn(\n\t\t\t\t\t\t\t\t\t'You are setting the threshhold for the batch limit to be greater than 30. This may cause request overload.',\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tObject.assign(A, L(e))\n\t\t\t\t\t},\n\t\t\t\t\tR = [v.web, v.mobile_web, v.tablet_web]\n\t\t\t\tfunction q() {\n\t\t\t\t\treturn 'android' === A.platform\n\t\t\t\t}\n\t\t\t\tfunction F() {\n\t\t\t\t\treturn 'ios' === A.platform\n\t\t\t\t}\n\t\t\t\tfunction z() {\n\t\t\t\t\treturn R.includes(A.platform)\n\t\t\t\t}\n\t\t\t\tfunction K(e) {\n\t\t\t\t\tif (\n\t\t\t\t\t\tz() &&\n\t\t\t\t\t\tnavigator &&\n\t\t\t\t\t\t'serviceWorker' in navigator &&\n\t\t\t\t\t\tnavigator.serviceWorker.controller\n\t\t\t\t\t)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tnavigator.serviceWorker.controller.postMessage(e)\n\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\te instanceof Error && A.onError(e)\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tvar $ = n(353),\n\t\t\t\t\tQ = n.n($)\n\t\t\t\tconst W = {\n\t\t\t\t\t\tamplitudeOSName: null,\n\t\t\t\t\t\tamplitudeOSVersion: null,\n\t\t\t\t\t\tamplitudeDeviceModel: null,\n\t\t\t\t\t\tamplitudePlatform: null,\n\t\t\t\t\t\tbrowserName: null,\n\t\t\t\t\t\tbrowserMajor: null,\n\t\t\t\t\t\tosName: null,\n\t\t\t\t\t\tuserAgent: null,\n\t\t\t\t\t\twidth: null,\n\t\t\t\t\t\theight: null,\n\t\t\t\t\t},\n\t\t\t\t\tH = {\n\t\t\t\t\t\tcountryCode: null,\n\t\t\t\t\t\tdeviceId: null,\n\t\t\t\t\t\tdevice_os: null,\n\t\t\t\t\t\tisOptOut: !1,\n\t\t\t\t\t\tlanguageCode: null,\n\t\t\t\t\t\tlocale: null,\n\t\t\t\t\t\tjwt: null,\n\t\t\t\t\t\tsession_lcc_id: null,\n\t\t\t\t\t\tuserAgent: null,\n\t\t\t\t\t\tuserId: null,\n\t\t\t\t\t},\n\t\t\t\t\tV = (e) =>\n\t\t\t\t\t\te\n\t\t\t\t\t\t\t? (e ^ ((16 * Math.random()) >> (e / 4))).toString(16)\n\t\t\t\t\t\t\t: '10000000-1000-4000-8000-100000000000'.replace(\n\t\t\t\t\t\t\t\t\t/[018]/g,\n\t\t\t\t\t\t\t\t\tV,\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\tJ = () => A.isAlwaysAuthed || !!H.userId,\n\t\t\t\t\tX = () => {\n\t\t\t\t\t\tconst e = {}\n\t\t\t\t\t\treturn H.countryCode && (e.country_code = H.countryCode), e\n\t\t\t\t\t},\n\t\t\t\t\tG = () => {\n\t\t\t\t\t\tconst { platform: e } = A\n\t\t\t\t\t\tif (e === v.web)\n\t\t\t\t\t\t\tswitch (!0) {\n\t\t\t\t\t\t\t\tcase window.matchMedia('(max-width: 560px)').matches:\n\t\t\t\t\t\t\t\t\treturn v.mobile_web\n\t\t\t\t\t\t\t\tcase window.matchMedia(\n\t\t\t\t\t\t\t\t\t'(max-width: 1024px, min-width: 561px)',\n\t\t\t\t\t\t\t\t).matches:\n\t\t\t\t\t\t\t\t\treturn v.tablet_web\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\treturn e\n\t\t\t\t\t},\n\t\t\t\t\tZ = () => {\n\t\t\t\t\t\tvar e, t, n, r, i\n\t\t\t\t\t\tz()\n\t\t\t\t\t\t\t? ('requestIdleCallback' in window\n\t\t\t\t\t\t\t\t\t? window.requestIdleCallback(ne, {\n\t\t\t\t\t\t\t\t\t\t\ttimeout: A.ricTimeoutSetDevice,\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t: ne(),\n\t\t\t\t\t\t\t\t(W.amplitudePlatform = g.web),\n\t\t\t\t\t\t\t\t(W.userAgent =\n\t\t\t\t\t\t\t\t\t(null == (e = window) || null == (e = e.navigator)\n\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t: e.userAgent) || null),\n\t\t\t\t\t\t\t\tee({\n\t\t\t\t\t\t\t\t\theight:\n\t\t\t\t\t\t\t\t\t\tnull !=\n\t\t\t\t\t\t\t\t\t\t(t =\n\t\t\t\t\t\t\t\t\t\t\tnull == (n = window) ? void 0 : n.innerHeight)\n\t\t\t\t\t\t\t\t\t\t\t? t\n\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\twidth:\n\t\t\t\t\t\t\t\t\t\tnull !=\n\t\t\t\t\t\t\t\t\t\t(r = null == (i = window) ? void 0 : i.innerWidth)\n\t\t\t\t\t\t\t\t\t\t\t? r\n\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t: F()\n\t\t\t\t\t\t\t\t? ((W.amplitudePlatform = g.ios),\n\t\t\t\t\t\t\t\t\t(W.userAgent = H.userAgent),\n\t\t\t\t\t\t\t\t\tW.userAgent && ne())\n\t\t\t\t\t\t\t\t: q() &&\n\t\t\t\t\t\t\t\t\t((W.userAgent = H.userAgent),\n\t\t\t\t\t\t\t\t\t(W.amplitudePlatform = g.android),\n\t\t\t\t\t\t\t\t\tW.userAgent && ne())\n\t\t\t\t\t},\n\t\t\t\t\tY = (e) => {\n\t\t\t\t\t\tObject.assign(H, e),\n\t\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\t\tK({\n\t\t\t\t\t\t\t\t\tidentity: {\n\t\t\t\t\t\t\t\t\t\tisAuthed: !!H.userId,\n\t\t\t\t\t\t\t\t\t\tlocale: H.locale || null,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t},\n\t\t\t\t\tee = (e) => {\n\t\t\t\t\t\t;(W.height = e.height), (W.width = e.width)\n\t\t\t\t\t},\n\t\t\t\t\tte = () => {\n\t\t\t\t\t\tU({ platform: G() }),\n\t\t\t\t\t\t\tz() && K({ config: { platform: A.platform } })\n\t\t\t\t\t},\n\t\t\t\t\tne = () => {\n\t\t\t\t\t\tvar e\n\t\t\t\t\t\tperformance.mark && performance.mark('ua_parser_start')\n\t\t\t\t\t\tconst t = new (Q())(\n\t\t\t\t\t\t\tnull != (e = W.userAgent) ? e : '',\n\t\t\t\t\t\t).getResult()\n\t\t\t\t\t\t;(W.browserName = t.browser.name || null),\n\t\t\t\t\t\t\t(W.browserMajor = t.browser.major || null),\n\t\t\t\t\t\t\t(W.osName = t.os.name || null),\n\t\t\t\t\t\t\t(W.amplitudeOSName = W.browserName),\n\t\t\t\t\t\t\t(W.amplitudeOSVersion = W.browserMajor),\n\t\t\t\t\t\t\t(W.amplitudeDeviceModel = W.osName),\n\t\t\t\t\t\t\tK({\n\t\t\t\t\t\t\t\tdevice: {\n\t\t\t\t\t\t\t\t\tbrowserName: W.browserName,\n\t\t\t\t\t\t\t\t\tosName: W.osName,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tperformance.mark &&\n\t\t\t\t\t\t\t\t(performance.mark('ua_parser_end'),\n\t\t\t\t\t\t\t\tperformance.measure(\n\t\t\t\t\t\t\t\t\t'ua_parser',\n\t\t\t\t\t\t\t\t\t'ua_parser_start',\n\t\t\t\t\t\t\t\t\t'ua_parser_end',\n\t\t\t\t\t\t\t\t))\n\t\t\t\t\t},\n\t\t\t\t\tre = {\n\t\t\t\t\t\tbreadcrumbs: [],\n\t\t\t\t\t\tinitialUAAData: {},\n\t\t\t\t\t\tpageKey: '',\n\t\t\t\t\t\tpageKeyRegex: {},\n\t\t\t\t\t\tpagePath: '',\n\t\t\t\t\t\tprevPageKey: '',\n\t\t\t\t\t\tprevPagePath: '',\n\t\t\t\t\t}\n\t\t\t\tfunction ie(e) {\n\t\t\t\t\tObject.assign(re, { breadcrumbs: e })\n\t\t\t\t}\n\t\t\t\tfunction ae(e) {\n\t\t\t\t\tObject.assign(re, e)\n\t\t\t\t}\n\t\t\t\tconst oe = {\n\t\t\t\t\teventId: 0,\n\t\t\t\t\tsequenceNumber: 0,\n\t\t\t\t\tsessionId: 0,\n\t\t\t\t\tlastEventTime: 0,\n\t\t\t\t\tsessionStart: 0,\n\t\t\t\t\tsessionUUID: null,\n\t\t\t\t\tuserId: null,\n\t\t\t\t\tac: 0,\n\t\t\t\t\taf: 0,\n\t\t\t\t\tah: 0,\n\t\t\t\t\tal: 0,\n\t\t\t\t\tam: 0,\n\t\t\t\t\tar: 0,\n\t\t\t\t\tas: 0,\n\t\t\t\t\tpv: 0,\n\t\t\t\t}\n\t\t\t\tfunction se(e) {\n\t\t\t\t\tObject.assign(oe, e)\n\t\t\t\t}\n\t\t\t\tfunction ce() {\n\t\t\t\t\tvar e, t\n\t\t\t\t\treturn null != (e = null == (t = document) ? void 0 : t.referrer)\n\t\t\t\t\t\t? e\n\t\t\t\t\t\t: ''\n\t\t\t\t}\n\t\t\t\tfunction ue() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(ue = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tue.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst le = () => {\n\t\t\t\t\t\tconst e = ce()\n\t\t\t\t\t\tif (!e) return {}\n\t\t\t\t\t\tconst t = new URL(e)\n\t\t\t\t\t\treturn t.hostname === pe()\n\t\t\t\t\t\t\t? {}\n\t\t\t\t\t\t\t: { referrer: e, referring_domain: t.hostname }\n\t\t\t\t\t},\n\t\t\t\t\tde = () => {\n\t\t\t\t\t\tconst e = new URLSearchParams(me()),\n\t\t\t\t\t\t\tt = {}\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\tO.forEach((n) => {\n\t\t\t\t\t\t\t\te.has(n) && (t[n] = (e.get(n) || '').toLowerCase())\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tt\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tpe = () => {\n\t\t\t\t\t\tvar e\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(null == (e = window) || null == (e = e.location)\n\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t: e.hostname) || ''\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tme = () => {\n\t\t\t\t\t\tvar e\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(null == (e = window) || null == (e = e.location)\n\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t: e.search) || ''\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tfe = () => {\n\t\t\t\t\t\tvar e\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t(null == (e = window) || null == (e = e.location)\n\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t: e.pathname) || ''\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tve = () => {\n\t\t\t\t\t\tconst e = A.overrideWindowLocation ? re.pagePath : fe() + me()\n\t\t\t\t\t\te &&\n\t\t\t\t\t\t\te !== re.pagePath &&\n\t\t\t\t\t\t\t(e !== re.pagePath && ge(),\n\t\t\t\t\t\t\t(re.pagePath = e),\n\t\t\t\t\t\t\tre.pageKeyRegex &&\n\t\t\t\t\t\t\t\tObject.keys(re.pageKeyRegex).some((e) => {\n\t\t\t\t\t\t\t\t\tif (re.pageKeyRegex[e].test(re.pagePath))\n\t\t\t\t\t\t\t\t\t\treturn (re.pageKey = e), !0\n\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t},\n\t\t\t\t\tge = () => {\n\t\t\t\t\t\tif (z()) {\n\t\t\t\t\t\t\tconst e = ce()\n\t\t\t\t\t\t\tif (!re.prevPagePath && e) {\n\t\t\t\t\t\t\t\tconst t = new URL(e)\n\t\t\t\t\t\t\t\tif (t.hostname === pe())\n\t\t\t\t\t\t\t\t\treturn void (re.prevPagePath = t.pathname)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t;(re.prevPagePath = re.pagePath),\n\t\t\t\t\t\t\t(re.prevPageKey = re.pageKey)\n\t\t\t\t\t},\n\t\t\t\t\tbe = (e) => {\n\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\tObject.assign(\n\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\tz()\n\t\t\t\t\t\t\t\t\t? (Object.keys(re.initialUAAData).length > 0 ||\n\t\t\t\t\t\t\t\t\t\t\t(new URLSearchParams(me()),\n\t\t\t\t\t\t\t\t\t\t\t(re.initialUAAData = ue(\n\t\t\t\t\t\t\t\t\t\t\t\t{},\n\t\t\t\t\t\t\t\t\t\t\t\t(() => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tconst e = {}\n\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tO.forEach((t) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\toe[t] && (e[t] = oe[t])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t})(),\n\t\t\t\t\t\t\t\t\t\t\t\tde(),\n\t\t\t\t\t\t\t\t\t\t\t\tle(),\n\t\t\t\t\t\t\t\t\t\t\t))),\n\t\t\t\t\t\t\t\t\t\tre.initialUAAData)\n\t\t\t\t\t\t\t\t\t: re.initialUAAData,\n\t\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\the = /^[a-zd]+(_[a-zd]+)*$/\n\t\t\t\tfunction we(e) {\n\t\t\t\t\treturn he.test(e)\n\t\t\t\t}\n\t\t\t\tfunction ye() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(ye = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tye.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst Te = [\n\t\t\t\t\t\t'action',\n\t\t\t\t\t\t'component_type',\n\t\t\t\t\t\t'component_name',\n\t\t\t\t\t\t'context',\n\t\t\t\t\t\t'logging_id',\n\t\t\t\t\t],\n\t\t\t\t\tke = ['num_non_hardware_accounts', 'ujs'],\n\t\t\t\t\t_e = 'ujs_',\n\t\t\t\t\tSe = {}\n\t\t\t\tfunction Ee(e) {\n\t\t\t\t\te.forEach((e) => {\n\t\t\t\t\t\tke.includes(e) && delete Se[e]\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tfunction xe(e) {\n\t\t\t\t\tvar t\n\t\t\t\t\tconst n = Object.entries(e).reduce((e, t) => {\n\t\t\t\t\t\tconst [n, r] = t\n\t\t\t\t\t\treturn !Te.includes(n) && ke.includes(n)\n\t\t\t\t\t\t\t? we(n)\n\t\t\t\t\t\t\t\t? ye({}, e, { [n]: r })\n\t\t\t\t\t\t\t\t: (A.onError(\n\t\t\t\t\t\t\t\t\t\tnew Error(\n\t\t\t\t\t\t\t\t\t\t\t'IdentityFlow property names must have snake case format',\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t{ [n]: r },\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\te)\n\t\t\t\t\t\t\t: e\n\t\t\t\t\t}, {})\n\t\t\t\t\tnull != (t = n.ujs) &&\n\t\t\t\t\t\tt.length &&\n\t\t\t\t\t\t(n.ujs = n.ujs.map((e) => `${_e}${e}`)),\n\t\t\t\t\t\tObject.assign(Se, n)\n\t\t\t\t}\n\t\t\t\tfunction Oe() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\tA.platform !== v.unknown ||\n\t\t\t\t\t\t(A.onError(new Error('SDK platform not initialized')), !1)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst je = {\n\t\t\t\t\teventsQueue: [],\n\t\t\t\t\teventsScheduled: !1,\n\t\t\t\t\tmetricsQueue: [],\n\t\t\t\t\tmetricsScheduled: !1,\n\t\t\t\t\ttracesQueue: [],\n\t\t\t\t\ttracesScheduled: !1,\n\t\t\t\t}\n\t\t\t\tfunction Ne(e) {\n\t\t\t\t\tObject.assign(je, e)\n\t\t\t\t}\n\t\t\t\tconst Ie = {\n\t\t\t\t\t\tac: 0,\n\t\t\t\t\t\taf: 0,\n\t\t\t\t\t\tah: 0,\n\t\t\t\t\t\tal: 0,\n\t\t\t\t\t\tam: 0,\n\t\t\t\t\t\tar: 0,\n\t\t\t\t\t\tas: 0,\n\t\t\t\t\t\tpv: 0,\n\t\t\t\t\t\tsqs: 0,\n\t\t\t\t\t},\n\t\t\t\t\tPe = { ac: 20, af: 5, ah: 1, al: 1, am: 0, ar: 10, as: 20 },\n\t\t\t\t\tMe = { pv: 25 },\n\t\t\t\t\tBe = { xs: 0, s: 1, m: 1, l: 2, xl: 2, xxl: 2 },\n\t\t\t\t\tCe = (e) =>\n\t\t\t\t\t\te < 15\n\t\t\t\t\t\t\t? y.xs\n\t\t\t\t\t\t\t: e < 60\n\t\t\t\t\t\t\t\t? y.s\n\t\t\t\t\t\t\t\t: e < 240\n\t\t\t\t\t\t\t\t\t? y.m\n\t\t\t\t\t\t\t\t\t: e < 960\n\t\t\t\t\t\t\t\t\t\t? y.l\n\t\t\t\t\t\t\t\t\t\t: e < 3840\n\t\t\t\t\t\t\t\t\t\t\t? y.xl\n\t\t\t\t\t\t\t\t\t\t\t: y.xxl,\n\t\t\t\t\tDe = (e) => {\n\t\t\t\t\t\tObject.assign(Ie, e)\n\t\t\t\t\t}\n\t\t\t\tfunction Ae() {\n\t\t\t\t\treturn new Date().getTime()\n\t\t\t\t}\n\t\t\t\tconst Le = {\n\t\t\t\t\ttimeStart: Ae(),\n\t\t\t\t\ttimeOnPagePath: 0,\n\t\t\t\t\ttimeOnPageKey: 0,\n\t\t\t\t\tprevTimeOnPagePath: 0,\n\t\t\t\t\tprevTimeOnPageKey: 0,\n\t\t\t\t\tsessionDuration: 0,\n\t\t\t\t\tsessionEnd: 0,\n\t\t\t\t\tsessionStart: 0,\n\t\t\t\t\tprevSessionDuration: 0,\n\t\t\t\t}\n\t\t\t\tfunction Ue(e) {\n\t\t\t\t\tObject.assign(Le, e)\n\t\t\t\t}\n\t\t\t\tconst Re = (e, t) => t.some((t) => e instanceof t)\n\t\t\t\tlet qe, Fe\n\t\t\t\tconst ze = new WeakMap(),\n\t\t\t\t\tKe = new WeakMap(),\n\t\t\t\t\t$e = new WeakMap(),\n\t\t\t\t\tQe = new WeakMap(),\n\t\t\t\t\tWe = new WeakMap()\n\t\t\t\tlet He = {\n\t\t\t\t\tget(e, t, n) {\n\t\t\t\t\t\tif (e instanceof IDBTransaction) {\n\t\t\t\t\t\t\tif ('done' === t) return Ke.get(e)\n\t\t\t\t\t\t\tif ('objectStoreNames' === t)\n\t\t\t\t\t\t\t\treturn e.objectStoreNames || $e.get(e)\n\t\t\t\t\t\t\tif ('store' === t)\n\t\t\t\t\t\t\t\treturn n.objectStoreNames[1]\n\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t: n.objectStore(n.objectStoreNames[0])\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn Je(e[t])\n\t\t\t\t\t},\n\t\t\t\t\tset: (e, t, n) => ((e[t] = n), !0),\n\t\t\t\t\thas: (e, t) =>\n\t\t\t\t\t\t(e instanceof IDBTransaction &&\n\t\t\t\t\t\t\t('done' === t || 'store' === t)) ||\n\t\t\t\t\t\tt in e,\n\t\t\t\t}\n\t\t\t\tfunction Ve(e) {\n\t\t\t\t\treturn 'function' == typeof e\n\t\t\t\t\t\t? (t = e) !== IDBDatabase.prototype.transaction ||\n\t\t\t\t\t\t\t'objectStoreNames' in IDBTransaction.prototype\n\t\t\t\t\t\t\t? (\n\t\t\t\t\t\t\t\t\tFe ||\n\t\t\t\t\t\t\t\t\t(Fe = [\n\t\t\t\t\t\t\t\t\t\tIDBCursor.prototype.advance,\n\t\t\t\t\t\t\t\t\t\tIDBCursor.prototype.continue,\n\t\t\t\t\t\t\t\t\t\tIDBCursor.prototype.continuePrimaryKey,\n\t\t\t\t\t\t\t\t\t])\n\t\t\t\t\t\t\t\t).includes(t)\n\t\t\t\t\t\t\t\t? function (...e) {\n\t\t\t\t\t\t\t\t\t\treturn t.apply(Xe(this), e), Je(ze.get(this))\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t: function (...e) {\n\t\t\t\t\t\t\t\t\t\treturn Je(t.apply(Xe(this), e))\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t: function (e, ...n) {\n\t\t\t\t\t\t\t\t\tconst r = t.call(Xe(this), e, ...n)\n\t\t\t\t\t\t\t\t\treturn $e.set(r, e.sort ? e.sort() : [e]), Je(r)\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t: (e instanceof IDBTransaction &&\n\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\tif (Ke.has(e)) return\n\t\t\t\t\t\t\t\t\tconst t = new Promise((t, n) => {\n\t\t\t\t\t\t\t\t\t\tconst r = () => {\n\t\t\t\t\t\t\t\t\t\t\t\te.removeEventListener('complete', i),\n\t\t\t\t\t\t\t\t\t\t\t\t\te.removeEventListener('error', a),\n\t\t\t\t\t\t\t\t\t\t\t\t\te.removeEventListener('abort', a)\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\ti = () => {\n\t\t\t\t\t\t\t\t\t\t\t\tt(), r()\n\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\ta = () => {\n\t\t\t\t\t\t\t\t\t\t\t\tn(\n\t\t\t\t\t\t\t\t\t\t\t\t\te.error ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew DOMException(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'AbortError',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'AbortError',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\tr()\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\te.addEventListener('complete', i),\n\t\t\t\t\t\t\t\t\t\t\te.addEventListener('error', a),\n\t\t\t\t\t\t\t\t\t\t\te.addEventListener('abort', a)\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\tKe.set(e, t)\n\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\tRe(\n\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\tqe ||\n\t\t\t\t\t\t\t\t\t(qe = [\n\t\t\t\t\t\t\t\t\t\tIDBDatabase,\n\t\t\t\t\t\t\t\t\t\tIDBObjectStore,\n\t\t\t\t\t\t\t\t\t\tIDBIndex,\n\t\t\t\t\t\t\t\t\t\tIDBCursor,\n\t\t\t\t\t\t\t\t\t\tIDBTransaction,\n\t\t\t\t\t\t\t\t\t]),\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t? new Proxy(e, He)\n\t\t\t\t\t\t\t\t: e)\n\t\t\t\t\tvar t\n\t\t\t\t}\n\t\t\t\tfunction Je(e) {\n\t\t\t\t\tif (e instanceof IDBRequest)\n\t\t\t\t\t\treturn (function (e) {\n\t\t\t\t\t\t\tconst t = new Promise((t, n) => {\n\t\t\t\t\t\t\t\tconst r = () => {\n\t\t\t\t\t\t\t\t\t\te.removeEventListener('success', i),\n\t\t\t\t\t\t\t\t\t\t\te.removeEventListener('error', a)\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ti = () => {\n\t\t\t\t\t\t\t\t\t\tt(Je(e.result)), r()\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\ta = () => {\n\t\t\t\t\t\t\t\t\t\tn(e.error), r()\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\te.addEventListener('success', i),\n\t\t\t\t\t\t\t\t\te.addEventListener('error', a)\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\tt\n\t\t\t\t\t\t\t\t\t.then((t) => {\n\t\t\t\t\t\t\t\t\t\tt instanceof IDBCursor && ze.set(t, e)\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t.catch(() => {}),\n\t\t\t\t\t\t\t\tWe.set(t, e),\n\t\t\t\t\t\t\t\tt\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t})(e)\n\t\t\t\t\tif (Qe.has(e)) return Qe.get(e)\n\t\t\t\t\tconst t = Ve(e)\n\t\t\t\t\treturn t !== e && (Qe.set(e, t), We.set(t, e)), t\n\t\t\t\t}\n\t\t\t\tconst Xe = (e) => We.get(e),\n\t\t\t\t\tGe = ['get', 'getKey', 'getAll', 'getAllKeys', 'count'],\n\t\t\t\t\tZe = ['put', 'add', 'delete', 'clear'],\n\t\t\t\t\tYe = new Map()\n\t\t\t\tfunction et(e, t) {\n\t\t\t\t\tif (\n\t\t\t\t\t\t!(e instanceof IDBDatabase) ||\n\t\t\t\t\t\tt in e ||\n\t\t\t\t\t\t'string' != typeof t\n\t\t\t\t\t)\n\t\t\t\t\t\treturn\n\t\t\t\t\tif (Ye.get(t)) return Ye.get(t)\n\t\t\t\t\tconst n = t.replace(/FromIndex$/, ''),\n\t\t\t\t\t\tr = t !== n,\n\t\t\t\t\t\ti = Ze.includes(n)\n\t\t\t\t\tif (\n\t\t\t\t\t\t!(n in (r ? IDBIndex : IDBObjectStore).prototype) ||\n\t\t\t\t\t\t(!i && !Ge.includes(n))\n\t\t\t\t\t)\n\t\t\t\t\t\treturn\n\t\t\t\t\tconst a = async function (e, ...t) {\n\t\t\t\t\t\tconst a = this.transaction(e, i ? 'readwrite' : 'readonly')\n\t\t\t\t\t\tlet o = a.store\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\tr && (o = o.index(t.shift())),\n\t\t\t\t\t\t\t(await Promise.all([o[n](...t), i && a.done]))[0]\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t\treturn Ye.set(t, a), a\n\t\t\t\t}\n\t\t\t\tvar tt\n\t\t\t\t;(tt = He),\n\t\t\t\t\t(He = {\n\t\t\t\t\t\t...tt,\n\t\t\t\t\t\tget: (e, t, n) => et(e, t) || tt.get(e, t, n),\n\t\t\t\t\t\thas: (e, t) => !!et(e, t) || tt.has(e, t),\n\t\t\t\t\t})\n\t\t\t\tconst nt = { isReady: !1, idbKeyval: null }\n\t\t\t\tfunction rt(e) {\n\t\t\t\t\tObject.assign(nt, e)\n\t\t\t\t}\n\t\t\t\tconst it = {},\n\t\t\t\t\tat = async (e) => {\n\t\t\t\t\t\tif (!nt.idbKeyval) return Promise.resolve(null)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\treturn await nt.idbKeyval.get(e)\n\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\tA.onError(new Error('IndexedDB:Get:InternalError')),\n\t\t\t\t\t\t\t\tPromise.resolve(null)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tot = async (e, t) => {\n\t\t\t\t\t\tif (nt.idbKeyval)\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tawait nt.idbKeyval.set(e, t)\n\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\tA.onError(new Error('IndexedDB:Set:InternalError'))\n\t\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t\tst = () => {\n\t\t\t\t\t\t'server' !== A.platform &&\n\t\t\t\t\t\t\t(se({\n\t\t\t\t\t\t\t\tsessionStart: Le.sessionStart,\n\t\t\t\t\t\t\t\tac: Ie.ac,\n\t\t\t\t\t\t\t\taf: Ie.af,\n\t\t\t\t\t\t\t\tah: Ie.ah,\n\t\t\t\t\t\t\t\tal: Ie.al,\n\t\t\t\t\t\t\t\tam: Ie.am,\n\t\t\t\t\t\t\t\tar: Ie.ar,\n\t\t\t\t\t\t\t\tas: Ie.as,\n\t\t\t\t\t\t\t\tpv: Ie.pv,\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tH.userId && se({ userId: H.userId }),\n\t\t\t\t\t\t\tot(S, oe))\n\t\t\t\t\t},\n\t\t\t\t\tct = 'rgb(5,177,105)',\n\t\t\t\t\tut = (e) => {\n\t\t\t\t\t\tconst { metricName: t, data: n } = e,\n\t\t\t\t\t\t\tr = e.importance || l.low\n\t\t\t\t\t\tif (!A.showDebugLogging || !console) return\n\t\t\t\t\t\tconst i = `%c ${x}`,\n\t\t\t\t\t\t\ta = `color:${ct};font-size:11px;`,\n\t\t\t\t\t\t\to = `Importance: ${r}`\n\t\t\t\t\t\tconsole.group(i, a, t, o),\n\t\t\t\t\t\t\tn.forEach((e) => {\n\t\t\t\t\t\t\t\te.event_type\n\t\t\t\t\t\t\t\t\t? console.log(e.event_type, e)\n\t\t\t\t\t\t\t\t\t: console.log(e)\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tconsole.groupEnd()\n\t\t\t\t\t},\n\t\t\t\t\tlt = (e) => {\n\t\t\t\t\t\tconst { metricName: t, data: n } = e,\n\t\t\t\t\t\t\tr = e.importance || l.low\n\t\t\t\t\t\tif (!A.showDebugLogging || !console) return\n\t\t\t\t\t\tconst i = `color:${ct};font-size:11px;`,\n\t\t\t\t\t\t\ta = `%c ${x}`,\n\t\t\t\t\t\t\to = `Importance: ${r}`\n\t\t\t\t\t\tconsole.log(a, i, t, n, o)\n\t\t\t\t\t},\n\t\t\t\t\tdt = () => {\n\t\t\t\t\t\tconst e = Ae()\n\t\t\t\t\t\t;(oe.sessionId &&\n\t\t\t\t\t\t\toe.lastEventTime &&\n\t\t\t\t\t\t\toe.sessionUUID &&\n\t\t\t\t\t\t\t!pt(e)) ||\n\t\t\t\t\t\t\t((oe.sessionId = e),\n\t\t\t\t\t\t\t(oe.sessionUUID = V()),\n\t\t\t\t\t\t\tUe({ sessionStart: e }),\n\t\t\t\t\t\t\tlt({\n\t\t\t\t\t\t\t\tmetricName: 'Started new session:',\n\t\t\t\t\t\t\t\tdata: { persistentData: oe, timeStone: Le },\n\t\t\t\t\t\t\t})),\n\t\t\t\t\t\t\t(oe.lastEventTime = e)\n\t\t\t\t\t},\n\t\t\t\t\tpt = (e) => e - oe.lastEventTime > 18e5\n\t\t\t\tfunction mt() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(mt = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tmt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst ft = (e) => {\n\t\t\t\t\t\tvar t\n\t\t\t\t\t\t;((e) => {\n\t\t\t\t\t\t\tswitch (e.action) {\n\t\t\t\t\t\t\t\tcase f.click:\n\t\t\t\t\t\t\t\t\tIe.ac += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.focus:\n\t\t\t\t\t\t\t\t\tIe.af += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.hover:\n\t\t\t\t\t\t\t\t\tIe.ah += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.move:\n\t\t\t\t\t\t\t\t\tIe.am += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.scroll:\n\t\t\t\t\t\t\t\t\tIe.al += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.search:\n\t\t\t\t\t\t\t\t\tIe.ar += 1\n\t\t\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t\t\tcase f.select:\n\t\t\t\t\t\t\t\t\tIe.as += 1\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})((t = e)),\n\t\t\t\t\t\t\tt.event_type !== j\n\t\t\t\t\t\t\t\t? t.event_type === N &&\n\t\t\t\t\t\t\t\t\t(((e) => {\n\t\t\t\t\t\t\t\t\t\tif (!e.session_rank) return\n\t\t\t\t\t\t\t\t\t\tconst t = e.session_rank\n\t\t\t\t\t\t\t\t\t\tObject.values(h).forEach((e) => {\n\t\t\t\t\t\t\t\t\t\t\tIe.sqs += Ie[e] * Pe[e]\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tObject.values(w).forEach((e) => {\n\t\t\t\t\t\t\t\t\t\t\t\tIe.sqs += Ie[e] * Me[e]\n\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t(Ie.sqs *= Be[t])\n\t\t\t\t\t\t\t\t\t})(t),\n\t\t\t\t\t\t\t\t\tObject.assign(t, Ie),\n\t\t\t\t\t\t\t\t\tDe({\n\t\t\t\t\t\t\t\t\t\tac: 0,\n\t\t\t\t\t\t\t\t\t\taf: 0,\n\t\t\t\t\t\t\t\t\t\tah: 0,\n\t\t\t\t\t\t\t\t\t\tal: 0,\n\t\t\t\t\t\t\t\t\t\tam: 0,\n\t\t\t\t\t\t\t\t\t\tar: 0,\n\t\t\t\t\t\t\t\t\t\tas: 0,\n\t\t\t\t\t\t\t\t\t\tpv: 0,\n\t\t\t\t\t\t\t\t\t\tsqs: 0,\n\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t: (Ie.pv += 1)\n\t\t\t\t\t\tconst n = e.event_type\n\t\t\t\t\t\tdelete e.event_type\n\t\t\t\t\t\tconst r = e.deviceId ? e.deviceId : null,\n\t\t\t\t\t\t\ti = e.timestamp\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\tdelete e.timestamp,\n\t\t\t\t\t\t\tse({ eventId: oe.eventId + 1 }),\n\t\t\t\t\t\t\tse({ sequenceNumber: oe.sequenceNumber + 1 }),\n\t\t\t\t\t\t\tdt(),\n\t\t\t\t\t\t\tst(),\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdevice_id: H.deviceId || r || null,\n\t\t\t\t\t\t\t\tuser_id: H.userId,\n\t\t\t\t\t\t\t\ttimestamp: i,\n\t\t\t\t\t\t\t\tevent_id: oe.eventId,\n\t\t\t\t\t\t\t\tsession_id: oe.sessionId || -1,\n\t\t\t\t\t\t\t\tevent_type: n,\n\t\t\t\t\t\t\t\tversion_name: A.version || null,\n\t\t\t\t\t\t\t\tplatform: W.amplitudePlatform,\n\t\t\t\t\t\t\t\tos_name: W.amplitudeOSName,\n\t\t\t\t\t\t\t\tos_version: W.amplitudeOSVersion,\n\t\t\t\t\t\t\t\tdevice_model: W.amplitudeDeviceModel,\n\t\t\t\t\t\t\t\tlanguage: H.languageCode,\n\t\t\t\t\t\t\t\tevent_properties: mt({}, e, {\n\t\t\t\t\t\t\t\t\tsession_uuid: oe.sessionUUID,\n\t\t\t\t\t\t\t\t\theight: W.height,\n\t\t\t\t\t\t\t\t\twidth: W.width,\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\tuser_properties: X(),\n\t\t\t\t\t\t\t\tuuid: V(),\n\t\t\t\t\t\t\t\tlibrary: {\n\t\t\t\t\t\t\t\t\tname: '@cbhq/client-analytics',\n\t\t\t\t\t\t\t\t\tversion: '10.6.0',\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\tsequence_number: oe.sequenceNumber,\n\t\t\t\t\t\t\t\tuser_agent: W.userAgent || H.userAgent,\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tvt = (e) => e.map((e) => ft(e))\n\t\t\t\tfunction gt() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(gt = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tgt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst bt = (e) =>\n\t\t\t\t\t\te.map((e) =>\n\t\t\t\t\t\t\t((e) => {\n\t\t\t\t\t\t\t\tconst t = e.tags || {},\n\t\t\t\t\t\t\t\t\tn = gt(\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tauthed: J() ? 'true' : 'false',\n\t\t\t\t\t\t\t\t\t\t\tplatform: A.platform,\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\tt,\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tproject_name: A.projectName,\n\t\t\t\t\t\t\t\t\t\t\tversion_name: A.version || null,\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\t\t\tmetric_name: e.metricName,\n\t\t\t\t\t\t\t\t\tpage_path: e.pagePath || null,\n\t\t\t\t\t\t\t\t\tvalue: e.value,\n\t\t\t\t\t\t\t\t\ttags: n,\n\t\t\t\t\t\t\t\t\ttype: e.metricType,\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t),\n\t\t\t\t\tht = (e) =>\n\t\t\t\t\t\t0 !== je.metricsQueue.length &&\n\t\t\t\t\t\t(je.metricsQueue.length >= A.batchMetricsThreshold ||\n\t\t\t\t\t\t\t(je.metricsScheduled ||\n\t\t\t\t\t\t\t\t((je.metricsScheduled = !0),\n\t\t\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\t\t\t;(je.metricsScheduled = !1),\n\t\t\t\t\t\t\t\t\t\te(bt(je.metricsQueue)),\n\t\t\t\t\t\t\t\t\t\t(je.metricsQueue = [])\n\t\t\t\t\t\t\t\t}, A.batchMetricsPeriod)),\n\t\t\t\t\t\t\t!1)),\n\t\t\t\t\twt = (e) =>\n\t\t\t\t\t\t0 !== je.tracesQueue.length &&\n\t\t\t\t\t\t(je.tracesQueue.length >= A.batchTracesThreshold ||\n\t\t\t\t\t\t\t(je.tracesScheduled ||\n\t\t\t\t\t\t\t\t((je.tracesScheduled = !0),\n\t\t\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\t\t\t;(je.tracesScheduled = !1),\n\t\t\t\t\t\t\t\t\t\te(je.tracesQueue),\n\t\t\t\t\t\t\t\t\t\t(je.tracesQueue = [])\n\t\t\t\t\t\t\t\t}, A.batchTracesPeriod)),\n\t\t\t\t\t\t\t!1)),\n\t\t\t\t\tyt = (e) => {\n\t\t\t\t\t\tvar t\n\t\t\t\t\t\tz() && null != (t = window) && t.requestIdleCallback\n\t\t\t\t\t\t\t? window.requestIdleCallback(e, {\n\t\t\t\t\t\t\t\t\ttimeout: A.ricTimeoutScheduleEvent,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t: (q() || F()) && A.interactionManager\n\t\t\t\t\t\t\t\t? A.interactionManager.runAfterInteractions(e)\n\t\t\t\t\t\t\t\t: e()\n\t\t\t\t\t}\n\t\t\t\tfunction Tt() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Tt = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tTt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst kt = 'application/x-www-form-urlencoded; charset=UTF-8',\n\t\t\t\t\t_t = (e) => {\n\t\t\t\t\t\tconst {\n\t\t\t\t\t\t\t\tdata: t,\n\t\t\t\t\t\t\t\timportance: n,\n\t\t\t\t\t\t\t\tisJSON: r,\n\t\t\t\t\t\t\t\tonError: i,\n\t\t\t\t\t\t\t\turl: a,\n\t\t\t\t\t\t\t} = e,\n\t\t\t\t\t\t\to = r ? 'application/json' : kt,\n\t\t\t\t\t\t\ts = n || l.low,\n\t\t\t\t\t\t\tc = r\n\t\t\t\t\t\t\t\t? JSON.stringify(t)\n\t\t\t\t\t\t\t\t: new URLSearchParams(t).toString()\n\t\t\t\t\t\tfunction u() {\n\t\t\t\t\t\t\tconst e = new XMLHttpRequest()\n\t\t\t\t\t\t\te.open('POST', a, !0),\n\t\t\t\t\t\t\t\tObject.keys(A.headers || {}).forEach((t) => {\n\t\t\t\t\t\t\t\t\te.setRequestHeader(t, A.headers[t])\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\te.setRequestHeader('Content-Type', kt),\n\t\t\t\t\t\t\t\tH.jwt &&\n\t\t\t\t\t\t\t\t\te.setRequestHeader(\n\t\t\t\t\t\t\t\t\t\t'authorization',\n\t\t\t\t\t\t\t\t\t\t`Bearer ${H.jwt}`,\n\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\te.send(c)\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t!z() ||\n\t\t\t\t\t\t\tr ||\n\t\t\t\t\t\t\t!('sendBeacon' in navigator) ||\n\t\t\t\t\t\t\ts !== l.low ||\n\t\t\t\t\t\t\t(A.headers && 0 !== Object.keys(A.headers).length)\n\t\t\t\t\t\t)\n\t\t\t\t\t\t\tif (z() && !r) u()\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tconst e = Tt({}, A.headers, { 'Content-Type': o })\n\t\t\t\t\t\t\t\tH.jwt && (e.Authorization = `Bearer ${H.jwt}`),\n\t\t\t\t\t\t\t\t\tfetch(a, {\n\t\t\t\t\t\t\t\t\t\tmethod: 'POST',\n\t\t\t\t\t\t\t\t\t\tmode: 'no-cors',\n\t\t\t\t\t\t\t\t\t\theaders: e,\n\t\t\t\t\t\t\t\t\t\tbody: c,\n\t\t\t\t\t\t\t\t\t}).catch((e) => {\n\t\t\t\t\t\t\t\t\t\ti(e, { context: 'AnalyticsSDKApiError' })\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tconst e = new Blob([c], { type: kt })\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tnavigator.sendBeacon.bind(navigator)(a, e) || u()\n\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\tconsole.error(e), u()\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tvar St = n(762),\n\t\t\t\t\tEt = n.n(St)\n\t\t\t\tconst xt = (e, t, n) => {\n\t\t\t\t\tconst r = e || ''\n\t\t\t\t\treturn Et()('2' + r + t + n)\n\t\t\t\t}\n\t\t\t\tfunction Ot() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Ot = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tOt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tclass jt extends Error {\n\t\t\t\t\tconstructor(e) {\n\t\t\t\t\t\tsuper(e),\n\t\t\t\t\t\t\t(this.name = 'CircularJsonReference'),\n\t\t\t\t\t\t\t(this.message = e),\n\t\t\t\t\t\t\t'function' == typeof Error.captureStackTrace\n\t\t\t\t\t\t\t\t? Error.captureStackTrace(this, this.constructor)\n\t\t\t\t\t\t\t\t: (this.stack = new Error(e).stack)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tclass Nt extends jt {\n\t\t\t\t\tconstructor(...e) {\n\t\t\t\t\t\tsuper(...e), (this.name = 'DomReferenceInAnalyticsEvent')\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction It() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(It = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tIt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst Pt = (e, t = l.low) => {\n\t\t\t\t\t\tvar n\n\t\t\t\t\t\te && je.eventsQueue.push(e),\n\t\t\t\t\t\t\tnt.isReady &&\n\t\t\t\t\t\t\t\t(!A.trackUserId || H.userId\n\t\t\t\t\t\t\t\t\t? (t === l.high ||\n\t\t\t\t\t\t\t\t\t\t\t((n = Mt),\n\t\t\t\t\t\t\t\t\t\t\t0 !== je.eventsQueue.length &&\n\t\t\t\t\t\t\t\t\t\t\t\t(je.eventsQueue.length >=\n\t\t\t\t\t\t\t\t\t\t\t\t\tA.batchEventsThreshold ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t(je.eventsScheduled ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t((je.eventsScheduled = !0),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t;(je.eventsScheduled = !1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tn(vt(je.eventsQueue)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(je.eventsQueue = [])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}, A.batchEventsPeriod)),\n\t\t\t\t\t\t\t\t\t\t\t\t\t0)))) &&\n\t\t\t\t\t\t\t\t\t\tBt()\n\t\t\t\t\t\t\t\t\t: je.eventsQueue.length > 10 &&\n\t\t\t\t\t\t\t\t\t\t((A.trackUserId = !1),\n\t\t\t\t\t\t\t\t\t\tA.onError(\n\t\t\t\t\t\t\t\t\t\t\tnew Error('userId not set in Logged-in'),\n\t\t\t\t\t\t\t\t\t\t)))\n\t\t\t\t\t},\n\t\t\t\t\tMt = (e, t = l.low) => {\n\t\t\t\t\t\tif (H.isOptOut || 0 === e.length) return\n\t\t\t\t\t\tlet n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tn = JSON.stringify(e)\n\t\t\t\t\t\t} catch (t) {\n\t\t\t\t\t\t\tconst r = e.map((e) => e.event_type).join(', '),\n\t\t\t\t\t\t\t\t[i, a] = ((e) => {\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tconst n = []\n\t\t\t\t\t\t\t\t\t\tfor (const r of e) {\n\t\t\t\t\t\t\t\t\t\t\tconst e = Ot({}, r)\n\t\t\t\t\t\t\t\t\t\t\tr.event_properties &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e.event_properties = Ot(\n\t\t\t\t\t\t\t\t\t\t\t\t\t{},\n\t\t\t\t\t\t\t\t\t\t\t\t\te.event_properties,\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcurrentTarget: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ttarget: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\trelatedTarget: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t_dispatchInstances: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t_targetInst: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tview:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((t = r.event_properties.view),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'string',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'number',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'boolean',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t].includes(typeof t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? r.event_properties.view\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: null),\n\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t)),\n\t\t\t\t\t\t\t\t\t\t\t\tn.push(e)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\treturn [!0, JSON.stringify(n)]\n\t\t\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\t\t\treturn [!1, '']\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tvar t\n\t\t\t\t\t\t\t\t})(e)\n\t\t\t\t\t\t\tif (!i)\n\t\t\t\t\t\t\t\treturn void A.onError(\n\t\t\t\t\t\t\t\t\tnew jt(t instanceof Error ? t.message : 'unknown'),\n\t\t\t\t\t\t\t\t\t{ listEventType: r },\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t;(n = a),\n\t\t\t\t\t\t\t\tA.onError(new Nt('Found DOM element reference'), {\n\t\t\t\t\t\t\t\t\tlistEventType: r,\n\t\t\t\t\t\t\t\t\tstringifiedEventData: n,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t\tconst r = Ae().toString(),\n\t\t\t\t\t\t\ti = It(\n\t\t\t\t\t\t\t\t{},\n\t\t\t\t\t\t\t\t{ e: n, v: '2', upload_time: r },\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tclient: A.amplitudeApiKey,\n\t\t\t\t\t\t\t\t\tchecksum: xt(A.amplitudeApiKey, n, r),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t_t({\n\t\t\t\t\t\t\turl: A.eventsEndpoint,\n\t\t\t\t\t\t\tdata: i,\n\t\t\t\t\t\t\timportance: t,\n\t\t\t\t\t\t\tonError: A.onError,\n\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tut({ metricName: 'Batch Events', data: e, importance: t })\n\t\t\t\t\t},\n\t\t\t\t\tBt = () => {\n\t\t\t\t\t\tMt(vt(je.eventsQueue)), Ne({ eventsQueue: [] })\n\t\t\t\t\t}\n\t\t\t\tfunction Ct() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Ct = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tCt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst Dt = Object.values(f),\n\t\t\t\t\tAt = Object.values(m),\n\t\t\t\t\tLt = (e) => (Dt.includes(e) ? e : f.unknown),\n\t\t\t\t\tUt = (e) => (At.includes(e) ? e : m.unknown),\n\t\t\t\t\tRt = (e, t, n) => {\n\t\t\t\t\t\tconst r = {\n\t\t\t\t\t\t\tauth: J() ? b.loggedIn : b.notLoggedIn,\n\t\t\t\t\t\t\taction: Lt(e),\n\t\t\t\t\t\t\tcomponent_type: Ut(t),\n\t\t\t\t\t\t\tlogging_id: n,\n\t\t\t\t\t\t\tplatform: A.platform,\n\t\t\t\t\t\t\tproject_name: A.projectName,\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t'number' == typeof H.userTypeEnum &&\n\t\t\t\t\t\t\t\t(r.user_type_enum = H.userTypeEnum),\n\t\t\t\t\t\t\tr\n\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tqt = (e) => {\n\t\t\t\t\t\tconst t = Ae()\n\t\t\t\t\t\tif (!e)\n\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\tA.onError(new Error('missing logData')),\n\t\t\t\t\t\t\t\tCt({}, Rt(f.unknown, m.unknown), {\n\t\t\t\t\t\t\t\t\tlocale: H.locale,\n\t\t\t\t\t\t\t\t\tsession_lcc_id: H.session_lcc_id,\n\t\t\t\t\t\t\t\t\ttimestamp: t,\n\t\t\t\t\t\t\t\t\ttime_start: Le.timeStart,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\tconst n = Ct(\n\t\t\t\t\t\t\t{},\n\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\tRt(e.action, e.componentType, e.loggingId),\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tlocale: H.locale,\n\t\t\t\t\t\t\t\tsession_lcc_id: H.session_lcc_id,\n\t\t\t\t\t\t\t\ttimestamp: t,\n\t\t\t\t\t\t\t\ttime_start: Le.timeStart,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t)\n\t\t\t\t\t\treturn delete n.componentType, delete n.loggingId, n\n\t\t\t\t\t},\n\t\t\t\t\tFt = { blacklistRegex: [], isEnabled: !1 }\n\t\t\t\tfunction zt() {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tpage_key: re.pageKey,\n\t\t\t\t\t\tpage_path: re.pagePath,\n\t\t\t\t\t\tprev_page_key: re.prevPageKey,\n\t\t\t\t\t\tprev_page_path: re.prevPagePath,\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction Kt(e) {\n\t\t\t\t\tObject.assign(Ft, e)\n\t\t\t\t}\n\t\t\t\tfunction $t(e, t, n = l.low) {\n\t\t\t\t\tif (H.isOptOut) return\n\t\t\t\t\tif (!Oe()) return\n\t\t\t\t\tconst r = qt(t)\n\t\t\t\t\t!(function (e) {\n\t\t\t\t\t\tFt.isEnabled && (ve(), Object.assign(e, zt()))\n\t\t\t\t\t})(r),\n\t\t\t\t\t\tbe(r),\n\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\tObject.keys(Se).length > 0 && Object.assign(e, Se)\n\t\t\t\t\t\t})(r),\n\t\t\t\t\t\t(r.has_double_fired = !1),\n\t\t\t\t\t\t(r.event_type = e),\n\t\t\t\t\t\tn === l.high\n\t\t\t\t\t\t\t? Pt(r, n)\n\t\t\t\t\t\t\t: yt(() => {\n\t\t\t\t\t\t\t\t\tPt(r)\n\t\t\t\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tfunction Qt(e, t = !1) {\n\t\t\t\t\tt\n\t\t\t\t\t\t? _t({\n\t\t\t\t\t\t\t\turl: A.metricsEndPoint,\n\t\t\t\t\t\t\t\tdata: { metrics: e },\n\t\t\t\t\t\t\t\tisJSON: !0,\n\t\t\t\t\t\t\t\tonError: A.onError,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: yt(() => {\n\t\t\t\t\t\t\t\t_t({\n\t\t\t\t\t\t\t\t\turl: A.metricsEndPoint,\n\t\t\t\t\t\t\t\t\tdata: { metrics: e },\n\t\t\t\t\t\t\t\t\tisJSON: !0,\n\t\t\t\t\t\t\t\t\tonError: A.onError,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tut({ metricName: 'Batch Metrics', data: e })\n\t\t\t\t}\n\t\t\t\tfunction Wt() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Wt = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tWt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction Ht(e) {\n\t\t\t\t\tif (!Oe()) return\n\t\t\t\t\tv.server !== A.platform &&\n\t\t\t\t\t\t!e.pagePath &&\n\t\t\t\t\t\tre.pagePath &&\n\t\t\t\t\t\t(e.pagePath = re.pagePath)\n\t\t\t\t\tconst t = Object.keys(Se).length ? Wt({}, e.tags, Se) : e.tags\n\t\t\t\t\tt && Object.assign(e, { tags: t }),\n\t\t\t\t\t\tje.metricsQueue.push(e),\n\t\t\t\t\t\tht(Qt) && (Qt(bt(je.metricsQueue)), (je.metricsQueue = []))\n\t\t\t\t}\n\t\t\t\tfunction Vt() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Vt = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tVt.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tlet Jt = (function (e) {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(e.instant = 'instant'),\n\t\t\t\t\t\t(e.quick = 'quick'),\n\t\t\t\t\t\t(e.moderate = 'moderate'),\n\t\t\t\t\t\t(e.slow = 'slow'),\n\t\t\t\t\t\t(e.unavoidable = 'unavoidable'),\n\t\t\t\t\t\te\n\t\t\t\t\t)\n\t\t\t\t})({})\n\t\t\t\tfunction Xt(e) {\n\t\t\t\t\treturn e.toLowerCase()\n\t\t\t\t}\n\t\t\t\tlet Gt = {}\n\t\t\t\tconst Zt = (e, t) => {\n\t\t\t\t\tnull != A && A.onMarkStep && A.onMarkStep(e, t), xe({ ujs: t })\n\t\t\t\t}\n\t\t\t\tlet Yt\n\t\t\t\tconst en = {\n\t\t\t\t\t\tPerfume: () => {},\n\t\t\t\t\t\tmarkStep: (e) => {},\n\t\t\t\t\t\tmarkStepOnce: (e) => {},\n\t\t\t\t\t\tincrementUjNavigation: () => {},\n\t\t\t\t\t},\n\t\t\t\t\ttn = () => {\n\t\t\t\t\t\tz() && Yt && Yt.markNTBT && Yt.markNTBT()\n\t\t\t\t\t},\n\t\t\t\t\tnn = (e) => {\n\t\t\t\t\t\tz() && Yt && en.markStep && en.markStep(e)\n\t\t\t\t\t},\n\t\t\t\t\trn = (e) => {\n\t\t\t\t\t\tz() && Yt && en.markStepOnce && en.markStepOnce(e)\n\t\t\t\t\t},\n\t\t\t\t\tan = () => {\n\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\tYt &&\n\t\t\t\t\t\t\ten.incrementUjNavigation &&\n\t\t\t\t\t\t\ten.incrementUjNavigation()\n\t\t\t\t\t}\n\t\t\t\tfunction on(e = { callMarkNTBT: !0 }) {\n\t\t\t\t\t'unknown' !== A.platform &&\n\t\t\t\t\t\t(Ft.blacklistRegex.some((e) => e.test(fe())) ||\n\t\t\t\t\t\t\t($t(j, { action: f.render, componentType: m.page }),\n\t\t\t\t\t\t\te.callMarkNTBT && tn()))\n\t\t\t\t}\n\t\t\t\tlet sn = !1,\n\t\t\t\t\tcn = !1\n\t\t\t\tconst un = (e) => {\n\t\t\t\t\t\tsn = !e.persisted\n\t\t\t\t\t},\n\t\t\t\t\tln = (e, t = 'hidden', n = !1) => {\n\t\t\t\t\t\tcn ||\n\t\t\t\t\t\t\t(addEventListener('pagehide', un),\n\t\t\t\t\t\t\taddEventListener('beforeunload', () => {}),\n\t\t\t\t\t\t\t(cn = !0)),\n\t\t\t\t\t\t\taddEventListener(\n\t\t\t\t\t\t\t\t'visibilitychange',\n\t\t\t\t\t\t\t\t({ timeStamp: n }) => {\n\t\t\t\t\t\t\t\t\tdocument.visibilityState === t &&\n\t\t\t\t\t\t\t\t\t\te({ timeStamp: n, isUnloading: sn })\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t{ capture: !0, once: n },\n\t\t\t\t\t\t\t)\n\t\t\t\t\t},\n\t\t\t\t\tdn = 36e3\n\t\t\t\tfunction pn() {\n\t\t\t\t\tconst e = pt(Ae())\n\t\t\t\t\tif (\n\t\t\t\t\t\t(e &&\n\t\t\t\t\t\t\t(O.forEach((e) => {\n\t\t\t\t\t\t\t\toe[e] && delete oe[e]\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tst()),\n\t\t\t\t\t\t!oe.lastEventTime || !Le.sessionStart || !e)\n\t\t\t\t\t)\n\t\t\t\t\t\treturn\n\t\t\t\t\tconst t = Math.round((oe.lastEventTime - Le.sessionStart) / 1e3)\n\t\t\t\t\tif (t < 1 || t > dn) return\n\t\t\t\t\tconst n = Ce(t)\n\t\t\t\t\t$t(N, {\n\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\tsession_duration: t,\n\t\t\t\t\t\tsession_end: oe.lastEventTime,\n\t\t\t\t\t\tsession_start: Le.sessionStart,\n\t\t\t\t\t\tsession_rank: n,\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tfunction mn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(mn = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tmn.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst fn = [],\n\t\t\t\t\tvn = [],\n\t\t\t\t\tgn = () => {\n\t\t\t\t\t\tconst e = fn.shift()\n\t\t\t\t\t\te && e()\n\t\t\t\t\t},\n\t\t\t\t\tbn = () => {\n\t\t\t\t\t\tconst e = vn.shift()\n\t\t\t\t\t\te && e()\n\t\t\t\t\t}\n\t\t\t\tlet hn = {}\n\t\t\t\tfunction wn(e) {\n\t\t\t\t\tconst t = (function (e) {\n\t\t\t\t\t\treturn {\n\t\t\t\t\t\t\ttest_name: e.testName,\n\t\t\t\t\t\t\tgroup_name: e.group,\n\t\t\t\t\t\t\tsubject_id: e.subjectId,\n\t\t\t\t\t\t\texposed_at: Ae(),\n\t\t\t\t\t\t\tsubject_type: e.subjectType,\n\t\t\t\t\t\t\tplatform: A.platform,\n\t\t\t\t\t\t}\n\t\t\t\t\t})(e)\n\t\t\t\t\t;(hn[e.testName] = hn[e.testName] || 0),\n\t\t\t\t\t\thn[e.testName] + k > Ae()\n\t\t\t\t\t\t\t? lt({\n\t\t\t\t\t\t\t\t\tmetricName: `Event: exposeExperiment ${e.testName} not sent`,\n\t\t\t\t\t\t\t\t\tdata: t,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t: ((hn[e.testName] = Ae()),\n\t\t\t\t\t\t\t\tot(E, hn),\n\t\t\t\t\t\t\t\tlt({\n\t\t\t\t\t\t\t\t\tmetricName: `Event: exposeExperiment ${e.testName} sent`,\n\t\t\t\t\t\t\t\t\tdata: t,\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t_t({\n\t\t\t\t\t\t\t\t\turl: A.exposureEndpoint,\n\t\t\t\t\t\t\t\t\tdata: [t],\n\t\t\t\t\t\t\t\t\tonError: (t, n) => {\n\t\t\t\t\t\t\t\t\t\t;(hn[e.testName] = 0), ot(E, hn), A.onError(t, n)\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tisJSON: !0,\n\t\t\t\t\t\t\t\t\timportance: l.high,\n\t\t\t\t\t\t\t\t}))\n\t\t\t\t}\n\t\t\t\tconst yn = (e) => {\n\t\t\t\t\t\tvar t, r, i\n\t\t\t\t\t\tU(e),\n\t\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\t\t(H.languageCode =\n\t\t\t\t\t\t\t\t\t(null == (t = navigator)\n\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t: t.languages[0]) ||\n\t\t\t\t\t\t\t\t\t(null == (r = navigator) ? void 0 : r.language) ||\n\t\t\t\t\t\t\t\t\t''),\n\t\t\t\t\t\t\tte(),\n\t\t\t\t\t\t\t(() => {\n\t\t\t\t\t\t\t\tvar e\n\t\t\t\t\t\t\t\tif (z() && null != (e = window) && e.indexedDB) {\n\t\t\t\t\t\t\t\t\tconst e = (function (\n\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\tt,\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\tblocked: n,\n\t\t\t\t\t\t\t\t\t\t\tupgrade: r,\n\t\t\t\t\t\t\t\t\t\t\tblocking: i,\n\t\t\t\t\t\t\t\t\t\t\tterminated: a,\n\t\t\t\t\t\t\t\t\t\t} = {},\n\t\t\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t\t\t\tconst o = indexedDB.open(e, t),\n\t\t\t\t\t\t\t\t\t\t\ts = Je(o)\n\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\tr &&\n\t\t\t\t\t\t\t\t\t\t\t\to.addEventListener('upgradeneeded', (e) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tr(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tJe(o.result),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.oldVersion,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.newVersion,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tJe(o.transaction),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tn &&\n\t\t\t\t\t\t\t\t\t\t\t\to.addEventListener('blocked', (e) =>\n\t\t\t\t\t\t\t\t\t\t\t\t\tn(e.oldVersion, e.newVersion, e),\n\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\ts\n\t\t\t\t\t\t\t\t\t\t\t\t.then((e) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\te.addEventListener('close', () =>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ti &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.addEventListener(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'versionchange',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(e) =>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ti(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.oldVersion,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.newVersion,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t.catch(() => {}),\n\t\t\t\t\t\t\t\t\t\t\ts\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t})('keyval-store', 1, {\n\t\t\t\t\t\t\t\t\t\tupgrade(e) {\n\t\t\t\t\t\t\t\t\t\t\te.createObjectStore('keyval')\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\trt({\n\t\t\t\t\t\t\t\t\t\tidbKeyval: {\n\t\t\t\t\t\t\t\t\t\t\tget: async (t) => (await e).get('keyval', t),\n\t\t\t\t\t\t\t\t\t\t\tset: async (t, n) =>\n\t\t\t\t\t\t\t\t\t\t\t\t(await e).put('keyval', n, t),\n\t\t\t\t\t\t\t\t\t\t\tdelete: async (t) =>\n\t\t\t\t\t\t\t\t\t\t\t\t(await e).delete('keyval', t),\n\t\t\t\t\t\t\t\t\t\t\tkeys: async () =>\n\t\t\t\t\t\t\t\t\t\t\t\t(await e).getAllKeys('keyval'),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\trt({\n\t\t\t\t\t\t\t\t\t\tidbKeyval: {\n\t\t\t\t\t\t\t\t\t\t\tget: async (e) =>\n\t\t\t\t\t\t\t\t\t\t\t\tnew Promise((t) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tt(it[e])\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tset: async (e, t) =>\n\t\t\t\t\t\t\t\t\t\t\t\tnew Promise((n) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t;(it[e] = t), n(e)\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tdelete: async (e) =>\n\t\t\t\t\t\t\t\t\t\t\t\tnew Promise(() => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tdelete it[e]\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\tkeys: async () =>\n\t\t\t\t\t\t\t\t\t\t\t\tnew Promise((e) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\te(Object.keys(it))\n\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})(),\n\t\t\t\t\t\t\tlt({\n\t\t\t\t\t\t\t\tmetricName: 'Initialized Analytics:',\n\t\t\t\t\t\t\t\tdata: { deviceId: H.deviceId },\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\tfn.push(() => {\n\t\t\t\t\t\t\t\tPt()\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t(async () => {\n\t\t\t\t\t\t\t\tconst e = await at(S)\n\t\t\t\t\t\t\t\trt({ isReady: !0 }),\n\t\t\t\t\t\t\t\t\tgn(),\n\t\t\t\t\t\t\t\t\te &&\n\t\t\t\t\t\t\t\t\t\t(bn(),\n\t\t\t\t\t\t\t\t\t\tse({\n\t\t\t\t\t\t\t\t\t\t\teventId: e.eventId || oe.eventId,\n\t\t\t\t\t\t\t\t\t\t\tsequenceNumber:\n\t\t\t\t\t\t\t\t\t\t\t\te.sequenceNumber || oe.sequenceNumber,\n\t\t\t\t\t\t\t\t\t\t\tsessionId: e.sessionId || oe.sessionId,\n\t\t\t\t\t\t\t\t\t\t\tlastEventTime:\n\t\t\t\t\t\t\t\t\t\t\t\te.lastEventTime || oe.lastEventTime,\n\t\t\t\t\t\t\t\t\t\t\tsessionUUID: e.sessionUUID || oe.sessionUUID,\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\tse(\n\t\t\t\t\t\t\t\t\t\t\t\tmn(\n\t\t\t\t\t\t\t\t\t\t\t\t\t{},\n\t\t\t\t\t\t\t\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst t = {}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tO.forEach((n) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te[n] && (t[n] = e[n])\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\t\t\t\tde(),\n\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t})(e),\n\t\t\t\t\t\t\t\t\t\tUe({\n\t\t\t\t\t\t\t\t\t\t\tsessionStart:\n\t\t\t\t\t\t\t\t\t\t\t\te.sessionStart || oe.sessionStart,\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\tDe({\n\t\t\t\t\t\t\t\t\t\t\tac: e.ac || Ie.ac,\n\t\t\t\t\t\t\t\t\t\t\taf: e.af || Ie.af,\n\t\t\t\t\t\t\t\t\t\t\tah: e.ah || Ie.ah,\n\t\t\t\t\t\t\t\t\t\t\tal: e.al || Ie.al,\n\t\t\t\t\t\t\t\t\t\t\tam: e.am || Ie.am,\n\t\t\t\t\t\t\t\t\t\t\tar: e.ar || Ie.ar,\n\t\t\t\t\t\t\t\t\t\t\tas: e.as || Ie.as,\n\t\t\t\t\t\t\t\t\t\t\tpv: e.pv || Ie.pv,\n\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\tA.trackUserId &&\n\t\t\t\t\t\t\t\t\t\t\tY({ userId: e.userId || H.userId }),\n\t\t\t\t\t\t\t\t\t\tpn(),\n\t\t\t\t\t\t\t\t\t\tlt({\n\t\t\t\t\t\t\t\t\t\t\tmetricName: 'Initialized Analytics IndexedDB:',\n\t\t\t\t\t\t\t\t\t\t\tdata: e,\n\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t})(),\n\t\t\t\t\t\t\t(async function () {\n\t\t\t\t\t\t\t\tat(E)\n\t\t\t\t\t\t\t\t\t.then((e) => {\n\t\t\t\t\t\t\t\t\t\thn = null != e ? e : {}\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t.catch((e) => {\n\t\t\t\t\t\t\t\t\t\te instanceof Error && A.onError(e)\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t})(),\n\t\t\t\t\t\t\tZ(),\n\t\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\t\t(ln(() => {\n\t\t\t\t\t\t\t\t\tse({ lastEventTime: Ae() }), st(), Bt()\n\t\t\t\t\t\t\t\t}, 'hidden'),\n\t\t\t\t\t\t\t\tln(() => {\n\t\t\t\t\t\t\t\t\tpn()\n\t\t\t\t\t\t\t\t}, 'visible')),\n\t\t\t\t\t\t\tz() &&\n\t\t\t\t\t\t\t\t((i = () => {\n\t\t\t\t\t\t\t\t\tvar e, t, n, r\n\t\t\t\t\t\t\t\t\tte(),\n\t\t\t\t\t\t\t\t\t\tee({\n\t\t\t\t\t\t\t\t\t\t\twidth:\n\t\t\t\t\t\t\t\t\t\t\t\tnull !=\n\t\t\t\t\t\t\t\t\t\t\t\t(e =\n\t\t\t\t\t\t\t\t\t\t\t\t\tnull == (t = window)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: t.innerWidth)\n\t\t\t\t\t\t\t\t\t\t\t\t\t? e\n\t\t\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\t\t\theight:\n\t\t\t\t\t\t\t\t\t\t\t\tnull !=\n\t\t\t\t\t\t\t\t\t\t\t\t(n =\n\t\t\t\t\t\t\t\t\t\t\t\t\tnull == (r = window)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: r.innerHeight)\n\t\t\t\t\t\t\t\t\t\t\t\t\t? n\n\t\t\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\taddEventListener('resize', () => {\n\t\t\t\t\t\t\t\t\trequestAnimationFrame(() => {\n\t\t\t\t\t\t\t\t\t\ti()\n\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t})),\n\t\t\t\t\t\t\t(() => {\n\t\t\t\t\t\t\t\tif (z())\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tconst e = n(2)\n\t\t\t\t\t\t\t\t\t\t;(en.markStep = e.markStep),\n\t\t\t\t\t\t\t\t\t\t\t(en.markStepOnce = e.markStepOnce),\n\t\t\t\t\t\t\t\t\t\t\t(en.incrementUjNavigation =\n\t\t\t\t\t\t\t\t\t\t\t\te.incrementUjNavigation),\n\t\t\t\t\t\t\t\t\t\t\t(Yt = new e.Perfume({\n\t\t\t\t\t\t\t\t\t\t\t\tanalyticsTracker: (e) => {\n\t\t\t\t\t\t\t\t\t\t\t\t\tconst {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdata: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tattribution: n,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: r,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnavigatorInformation: i,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trating: a,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t} = e,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\to = I[r],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ts =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: n.category) || null\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (!o && !s) return\n\t\t\t\t\t\t\t\t\t\t\t\t\tconst c =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: i.deviceMemory) || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tu =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: i.hardwareConcurrency) || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tl =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: i.isLowEndDevice) || !1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tp =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: i.isLowEndExperience) || !1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tv =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == i\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: i.serviceWorkerStatus) ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'unsupported',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tg = Vt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdeviceMemory: c,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\thardwareConcurrency: u,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisLowEndDevice: l,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tisLowEndExperience: p,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tserviceWorkerStatus: v,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGt,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tb = {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tis_low_end_device: l,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tis_low_end_experience: p,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpage_key: re.pageKey || '',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tsave_data: t.saveData || !1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tservice_worker: v,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tis_perf_metric: !0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\tif ('navigationTiming' === r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tt &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'number' ==\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttypeof t.redirectTime &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.redirectTime.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.histogram,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t.redirectTime || 0,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\telse if ('TTFB' === r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tduration: t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvitalsScore: a || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: I.TTFB.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.histogram,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: Vt({}, b),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `perf_web_vitals_ttfb_${a}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.count,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\telse if ('networkInformation' === r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull != t &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.effectiveType &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t((Gt = t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$t(o.eventName, {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnetworkInformationDownlink:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.downlink,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnetworkInformationEffectiveType:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.effectiveType,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnetworkInformationRtt: t.rtt,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnetworkInformationSaveData:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt.saveData,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnavigatorDeviceMemory: c,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnavigatorHardwareConcurrency: u,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t\t\t\t\telse if ('storageEstimate' === r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'perf_storage_estimate_caches',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.histogram,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t.caches,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'perf_storage_estimate_indexed_db',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.histogram,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t.indexedDB,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\telse if ('CLS' === r)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tscore: 100 * t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvitalsScore: a || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `perf_web_vitals_cls_${a}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.count,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\telse if ('FID' === r) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tconst e =\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: n.performanceEntry) ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tr = parseInt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == e\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: e.processingStart) || '',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t$t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tduration: t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tprocessingStart:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull != e &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.processingStart\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstartTime:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull != e && e.startTime\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? parseInt(e.startTime)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvitalsScore: a || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `perf_web_vitals_fidVitals_${a}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.count,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t'userJourneyStep' === r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? ($t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'perf_user_journey_step',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tduration: t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\trating:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnull != a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tstep_name:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(null == n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t? void 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: n.stepName) ||\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'',\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `user_journey_step.${A.projectName}.${A.platform}.${(null == n ? void 0 : n.stepName) || ''}_vitals_${a}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.count,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `user_journey_step.${A.projectName}.${A.platform}.${(null == n ? void 0 : n.stepName) || ''}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.distribution,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t: I[r] &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tt &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t($t(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\to.eventName,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tVt(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\taction: f.measurement,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcomponentType: m.page,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tduration: t || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvitalsScore: a || null,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tg,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ta &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t(Ht({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `perf_web_vitals_${Xt(r)}_${a}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType: d.count,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: 1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t'LCP' === r &&\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tHt({\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricName: `perf_web_vitals_${Xt(r)}`,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmetricType:\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\td.distribution,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttags: b,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvalue: t,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t})))\n\t\t\t\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\t\t\t\tmaxMeasureTime: 3e4,\n\t\t\t\t\t\t\t\t\t\t\t\tsteps: A.steps,\n\t\t\t\t\t\t\t\t\t\t\t\tonMarkStep: Zt,\n\t\t\t\t\t\t\t\t\t\t\t}))\n\t\t\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\t\t\te instanceof Error && A.onError(e)\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t})()\n\t\t\t\t\t},\n\t\t\t\t\tTn = (e) => {\n\t\t\t\t\t\tY(e),\n\t\t\t\t\t\t\te.userAgent && Z(),\n\t\t\t\t\t\t\tlt({\n\t\t\t\t\t\t\t\tmetricName: 'Identify:',\n\t\t\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\t\t\tcountryCode: H.countryCode,\n\t\t\t\t\t\t\t\t\tdeviceId: H.deviceId,\n\t\t\t\t\t\t\t\t\tuserId: H.userId,\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t})\n\t\t\t\t\t},\n\t\t\t\t\tkn = ({\n\t\t\t\t\t\tblacklistRegex: e,\n\t\t\t\t\t\tpageKeyRegex: t,\n\t\t\t\t\t\tbrowserHistory: n,\n\t\t\t\t\t}) => {\n\t\t\t\t\t\tKt({ blacklistRegex: e || [], isEnabled: !0 }),\n\t\t\t\t\t\t\tae({ pageKeyRegex: t }),\n\t\t\t\t\t\t\ton({ callMarkNTBT: !1 }),\n\t\t\t\t\t\t\tn.listen(() => {\n\t\t\t\t\t\t\t\ton()\n\t\t\t\t\t\t\t})\n\t\t\t\t\t},\n\t\t\t\t\t_n = ({\n\t\t\t\t\t\tblacklistRegex: e,\n\t\t\t\t\t\tpageKeyRegex: t,\n\t\t\t\t\t\tnextJsRouter: n,\n\t\t\t\t\t}) => {\n\t\t\t\t\t\tKt({ blacklistRegex: e || [], isEnabled: !0 }),\n\t\t\t\t\t\t\tae({ pageKeyRegex: t }),\n\t\t\t\t\t\t\ton({ callMarkNTBT: !1 }),\n\t\t\t\t\t\t\tn.events.on('routeChangeComplete', () => {\n\t\t\t\t\t\t\t\ton()\n\t\t\t\t\t\t\t})\n\t\t\t\t\t},\n\t\t\t\t\tSn = () => {\n\t\t\t\t\t\tY({ isOptOut: !0 }), ot(S, {})\n\t\t\t\t\t},\n\t\t\t\t\tEn = () => {\n\t\t\t\t\t\tY({ isOptOut: !1 })\n\t\t\t\t\t},\n\t\t\t\t\txn = {\n\t\t\t\t\t\tButton: {\n\t\t\t\t\t\t\tlabel: 'cb_button',\n\t\t\t\t\t\t\tuuid: 'e921a074-40e6-4371-8700-134d5cd633e6',\n\t\t\t\t\t\t\tcomponentType: m.button,\n\t\t\t\t\t\t},\n\t\t\t\t\t}\n\t\t\t\tfunction On(e, t, n) {\n\t\t\t\t\treturn { componentName: e, actions: t, data: n }\n\t\t\t\t}\n\t\t\t\tfunction jn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(jn = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tjn.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction Nn(e, t, n) {\n\t\t\t\t\tconst { componentName: r, data: i } = n\n\t\t\t\t\t$t(\n\t\t\t\t\t\te.label,\n\t\t\t\t\t\tjn(\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcomponentType: e.componentType,\n\t\t\t\t\t\t\t\taction: t,\n\t\t\t\t\t\t\t\tloggingId: e.uuid,\n\t\t\t\t\t\t\t\tcomponent_name: r,\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\ti,\n\t\t\t\t\t\t),\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst In = {\n\t\t\t\t\tactionMapping: { onPress: f.click, onHover: f.hover },\n\t\t\t\t\thandlers: {\n\t\t\t\t\t\tButton: {\n\t\t\t\t\t\t\t[f.click]: (e) => Nn(xn.Button, f.click, e),\n\t\t\t\t\t\t\t[f.hover]: (e) => Nn(xn.Button, f.hover, e),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t\tfunction Pn(e, t = !1) {\n\t\t\t\t\tt\n\t\t\t\t\t\t? _t({\n\t\t\t\t\t\t\t\turl: A.tracesEndpoint,\n\t\t\t\t\t\t\t\tdata: { traces: e },\n\t\t\t\t\t\t\t\tisJSON: !0,\n\t\t\t\t\t\t\t\tonError: A.onError,\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t: yt(() => {\n\t\t\t\t\t\t\t\t_t({\n\t\t\t\t\t\t\t\t\turl: A.tracesEndpoint,\n\t\t\t\t\t\t\t\t\tdata: { traces: e },\n\t\t\t\t\t\t\t\t\tisJSON: !0,\n\t\t\t\t\t\t\t\t\tonError: A.onError,\n\t\t\t\t\t\t\t\t})\n\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tut({ metricName: 'Batch Traces', data: e })\n\t\t\t\t}\n\t\t\t\tfunction Mn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Mn = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tMn.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst Bn = 1e6\n\t\t\t\tfunction Cn(e) {\n\t\t\t\t\treturn e * Bn\n\t\t\t\t}\n\t\t\t\tfunction Dn(\n\t\t\t\t\te = (function () {\n\t\t\t\t\t\tvar e\n\t\t\t\t\t\treturn null == (e = window) ? void 0 : e.crypto\n\t\t\t\t\t})(),\n\t\t\t\t) {\n\t\t\t\t\tconst t = new Uint32Array(2)\n\t\t\t\t\treturn (\n\t\t\t\t\t\tnull == e || e.getRandomValues(t),\n\t\t\t\t\t\t((BigInt(t[0]) << BigInt(32)) + BigInt(t[1])).toString()\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction An(e, t) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t'x-datadog-origin': 'rum',\n\t\t\t\t\t\t'x-datadog-parent-id': t,\n\t\t\t\t\t\t'x-datadog-sampling-priority': '1',\n\t\t\t\t\t\t'x-datadog-trace-id': e,\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction Ln(e) {\n\t\t\t\t\tvar t\n\t\t\t\t\tconst {\n\t\t\t\t\t\tname: n,\n\t\t\t\t\t\ttraceId: r,\n\t\t\t\t\t\tspanId: i,\n\t\t\t\t\t\tstart: a,\n\t\t\t\t\t\tduration: o,\n\t\t\t\t\t\tresource: s,\n\t\t\t\t\t\tmeta: c,\n\t\t\t\t\t} = e\n\t\t\t\t\treturn {\n\t\t\t\t\t\tduration: o ? Cn(o) : 0,\n\t\t\t\t\t\tname: n,\n\t\t\t\t\t\tresource: s,\n\t\t\t\t\t\tservice: A.projectName,\n\t\t\t\t\t\tspan_id: null != i ? i : Dn(),\n\t\t\t\t\t\tstart: a ? Cn(a) : 0,\n\t\t\t\t\t\ttrace_id: null != r ? r : Dn(),\n\t\t\t\t\t\tparent_id: P,\n\t\t\t\t\t\ttype: M,\n\t\t\t\t\t\tmeta: Mn(\n\t\t\t\t\t\t\t{ platform: A.platform },\n\t\t\t\t\t\t\tre.pageKey ? { page_key: re.pageKey } : {},\n\t\t\t\t\t\t\tnull != (t = Se.ujs) && t.length\n\t\t\t\t\t\t\t\t? { last_ujs: Se.ujs[Se.ujs.length - 1] }\n\t\t\t\t\t\t\t\t: {},\n\t\t\t\t\t\t\tnull != c ? c : {},\n\t\t\t\t\t\t),\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction Un(e) {\n\t\t\t\t\treturn [Ln(e)]\n\t\t\t\t}\n\t\t\t\tfunction Rn(e, t) {\n\t\t\t\t\tOe() &&\n\t\t\t\t\t\t(function (e) {\n\t\t\t\t\t\t\treturn e.length > 0\n\t\t\t\t\t\t})(e) &&\n\t\t\t\t\t\t(t &&\n\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\te.forEach((e) =>\n\t\t\t\t\t\t\t\t\t(function (e, t) {\n\t\t\t\t\t\t\t\t\t\tconst n = Mn({}, e.meta, t.meta),\n\t\t\t\t\t\t\t\t\t\t\tr = {\n\t\t\t\t\t\t\t\t\t\t\t\tstart: t.start ? Cn(t.start) : e.start,\n\t\t\t\t\t\t\t\t\t\t\t\tduration: t.duration\n\t\t\t\t\t\t\t\t\t\t\t\t\t? Cn(t.duration)\n\t\t\t\t\t\t\t\t\t\t\t\t\t: e.duration,\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tObject.assign(e, t, Mn({ meta: n }, r))\n\t\t\t\t\t\t\t\t\t})(e, t),\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t})(e, t),\n\t\t\t\t\t\tje.tracesQueue.push(e),\n\t\t\t\t\t\twt(Pn) && (Pn(je.tracesQueue), (je.tracesQueue = [])))\n\t\t\t\t}\n\t\t\t\tfunction qn(e) {\n\t\t\t\t\tvar t = (function (e, t) {\n\t\t\t\t\t\tif ('object' != typeof e || null === e) return e\n\t\t\t\t\t\tvar n = e[Symbol.toPrimitive]\n\t\t\t\t\t\tif (void 0 !== n) {\n\t\t\t\t\t\t\tvar r = n.call(e, 'string')\n\t\t\t\t\t\t\tif ('object' != typeof r) return r\n\t\t\t\t\t\t\tthrow new TypeError(\n\t\t\t\t\t\t\t\t'@@toPrimitive must return a primitive value.',\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn String(e)\n\t\t\t\t\t})(e)\n\t\t\t\t\treturn 'symbol' == typeof t ? t : String(t)\n\t\t\t\t}\n\t\t\t\tfunction Fn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Fn = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tFn.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction zn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\tvoid 0 !== typeof window &&\n\t\t\t\t\t\t'performance' in window &&\n\t\t\t\t\t\t'mark' in performance &&\n\t\t\t\t\t\t'getEntriesByName' in performance\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction Kn(e, t) {\n\t\t\t\t\treturn `perf_${e}${null != t && t.label ? `_${t.label}` : ''}`\n\t\t\t\t}\n\t\t\t\tfunction $n(e, t, n) {\n\t\t\t\t\treturn `${Kn(e, n)}__${t}`\n\t\t\t\t}\n\t\t\t\tlet Qn = {}\n\t\t\t\tfunction Wn(e, t, n) {\n\t\t\t\t\tif (!zn()) return\n\t\t\t\t\tconst r = $n(e, t, n)\n\t\t\t\t\tif ((performance.mark(r), 'end' === t)) {\n\t\t\t\t\t\tconst t = Kn(e, n)\n\t\t\t\t\t\t!(function (e, t, n) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tperformance.measure(e, t, n)\n\t\t\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\t\t\tA.onError(e)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t})(t, $n(e, 'start', n), r)\n\t\t\t\t\t\tconst i = performance.getEntriesByName(t).pop()\n\t\t\t\t\t\ti &&\n\t\t\t\t\t\t\tHt(\n\t\t\t\t\t\t\t\tFn(\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tmetricName: e,\n\t\t\t\t\t\t\t\t\t\tmetricType: d.distribution,\n\t\t\t\t\t\t\t\t\t\tvalue: i.duration,\n\t\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\tnull != n && n.tags ? { tags: n.tags } : {},\n\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction Hn(e, t) {\n\t\t\t\t\tif (!zn()) return\n\t\t\t\t\tconst n = $n(e, 'start', t)\n\t\t\t\t\tQn[n] || (Wn(e, 'start', t), (Qn[n] = !0))\n\t\t\t\t}\n\t\t\t\tfunction Vn(e, t) {\n\t\t\t\t\tconst n = $n(e, 'start', t),\n\t\t\t\t\t\tr = (function (e, t) {\n\t\t\t\t\t\t\tif (null == e) return {}\n\t\t\t\t\t\t\tvar n,\n\t\t\t\t\t\t\t\tr,\n\t\t\t\t\t\t\t\ti = {},\n\t\t\t\t\t\t\t\ta = Object.keys(e)\n\t\t\t\t\t\t\tfor (r = 0; r < a.length; r++)\n\t\t\t\t\t\t\t\t(n = a[r]), t.indexOf(n) >= 0 || (i[n] = e[n])\n\t\t\t\t\t\t\treturn i\n\t\t\t\t\t\t})(Qn, [n].map(qn))\n\t\t\t\t\tQn = r\n\t\t\t\t}\n\t\t\t\tfunction Jn(e, t) {\n\t\t\t\t\tif (!zn()) return\n\t\t\t\t\tconst n = $n(e, 'start', t)\n\t\t\t\t\tQn[n] && (Wn(e, 'end', t), Vn(e, t))\n\t\t\t\t}\n\t\t\t\tfunction Xn() {\n\t\t\t\t\tzn() && (performance.clearMarks(), (Qn = {}))\n\t\t\t\t}\n\t\t\t\tvar Gn = n(784)\n\t\t\t\tfunction Zn() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(Zn = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tZn.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction Yn(e, t, n = l.low) {\n\t\t\t\t\tconst r = (0, Gn.useRef)(t)\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(0, Gn.useEffect)(() => {\n\t\t\t\t\t\t\tr.current = t\n\t\t\t\t\t\t}, [t]),\n\t\t\t\t\t\t(0, Gn.useCallback)(\n\t\t\t\t\t\t\t(t) => {\n\t\t\t\t\t\t\t\t$t(e, Zn({}, r.current, t), n)\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t[e, n],\n\t\t\t\t\t\t)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction er() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(er = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\ter.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction tr(e, t, n = l.low) {\n\t\t\t\t\t;(0, Gn.useEffect)(() => {\n\t\t\t\t\t\tconst r = er({}, t, { action: f.render })\n\t\t\t\t\t\t$t(e, r, n)\n\t\t\t\t\t}, [])\n\t\t\t\t}\n\t\t\t\tfunction nr() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(nr = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tnr.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tconst rr = function (e, t) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tmarkStartPerf: (0, Gn.useCallback)(() => Hn(e, t), [e, t]),\n\t\t\t\t\t\tmarkEndPerf: (0, Gn.useCallback)(\n\t\t\t\t\t\t\t(n) => Jn(e, nr({}, t, n)),\n\t\t\t\t\t\t\t[e, t],\n\t\t\t\t\t\t),\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfunction ir() {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t(ir = Object.assign\n\t\t\t\t\t\t\t? Object.assign.bind()\n\t\t\t\t\t\t\t: function (e) {\n\t\t\t\t\t\t\t\t\tfor (var t = 1; t < arguments.length; t++) {\n\t\t\t\t\t\t\t\t\t\tvar n = arguments[t]\n\t\t\t\t\t\t\t\t\t\tfor (var r in n)\n\t\t\t\t\t\t\t\t\t\t\tObject.prototype.hasOwnProperty.call(n, r) &&\n\t\t\t\t\t\t\t\t\t\t\t\t(e[r] = n[r])\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\treturn e\n\t\t\t\t\t\t\t\t}),\n\t\t\t\t\t\tir.apply(this, arguments)\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tfunction ar() {\n\t\t\t\t\treturn Object.entries(\n\t\t\t\t\t\tir({}, Se, zt(), {\n\t\t\t\t\t\t\tsessionUUID: oe.sessionUUID,\n\t\t\t\t\t\t\tuserId: oe.userId,\n\t\t\t\t\t\t}),\n\t\t\t\t\t).reduce((e, t) => {\n\t\t\t\t\t\treturn null != (n = t[1]) && '' !== n\n\t\t\t\t\t\t\t? ir({}, e, { [t[0]]: t[1] })\n\t\t\t\t\t\t\t: e\n\t\t\t\t\t\tvar n\n\t\t\t\t\t}, {})\n\t\t\t\t}\n\t\t\t\tasync function or() {\n\t\t\t\t\treturn new Promise((e) => {\n\t\t\t\t\t\tMt(vt(je.eventsQueue)),\n\t\t\t\t\t\t\tQt(bt(je.metricsQueue), !0),\n\t\t\t\t\t\t\tPn(je.tracesQueue, !0),\n\t\t\t\t\t\t\tNe({ eventsQueue: [], metricsQueue: [], tracesQueue: [] }),\n\t\t\t\t\t\t\te()\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tfunction sr() {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t'X-CB-Device-ID': H.deviceId || 'unknown',\n\t\t\t\t\t\t'X-CB-Is-Logged-In': H.userId ? 'true' : 'false',\n\t\t\t\t\t\t'X-CB-Pagekey': re.pageKey || 'unknown',\n\t\t\t\t\t\t'X-CB-UJS':\n\t\t\t\t\t\t\t((e = Se.ujs),\n\t\t\t\t\t\t\tvoid 0 === e || 0 === e.length ? '' : e.join(',')),\n\t\t\t\t\t\t'X-CB-Platform': A.platform || 'unknown',\n\t\t\t\t\t\t'X-CB-Project-Name': A.projectName || 'unknown',\n\t\t\t\t\t\t'X-CB-Session-UUID': oe.sessionUUID || 'unknown',\n\t\t\t\t\t\t'X-CB-Version-Name': A.version\n\t\t\t\t\t\t\t? String(A.version)\n\t\t\t\t\t\t\t: 'unknown',\n\t\t\t\t\t}\n\t\t\t\t\tvar e\n\t\t\t\t}\n\t\t\t})(),\n\t\t\tr\n\t\t)\n\t})()\n})\n",e.type="text/javascript",document.head.appendChild(e),ch(),document.head.removeChild(e),t()}catch(t){console.error("Failed to execute inlined telemetry script"),e()}});let u=null;const d={getProvider:()=>{var t;return u||(u=c?new Hf:null!==(t=function(){var t,e;const n=null!==(e=null===(t=window.top)||void 0===t?void 0:t.ethereum)&&void 0!==e?e:window.ethereum;return(null==n?void 0:n.isCoinbaseBrowser)?n:null}())&&void 0!==t?t:new mS(o)),u},subAccount:{async create(t){var e;return await(null===(e=d.getProvider())||void 0===e?void 0:e.request({method:"wallet_addSubAccount",params:[{version:"1",account:t}]}))},async get(){var t,e;const n=oh.subAccounts.get();if(null==n?void 0:n.address)return n;const r=null===(e=(await(null===(t=d.getProvider())||void 0===t?void 0:t.request({method:"wallet_connect",params:[{version:"1",capabilities:{}}]}))).accounts[0].capabilities)||void 0===e?void 0:e.subAccounts;return Array.isArray(r)?r[0]:null},addOwner:async({address:t,publicKey:e,chainId:n})=>{var r,a;const i=oh.subAccounts.get(),s=oh.account.get();lh(s,new Error("account does not exist")),lh(null==i?void 0:i.address,new Error("subaccount does not exist"));const o=[];if(e){const[t,n]=dy([{type:"bytes32"},{type:"bytes32"}],e);o.push({to:i.address,data:Qm({abi:uh,functionName:"addOwnerPublicKey",args:[t,n]}),value:nm(0)})}return t&&o.push({to:i.address,data:Qm({abi:uh,functionName:"addOwnerAddress",args:[t]}),value:nm(0)}),await(null===(r=d.getProvider())||void 0===r?void 0:r.request({method:"wallet_sendCalls",params:[{calls:o,chainId:nm(n),from:null===(a=s.accounts)||void 0===a?void 0:a[0],version:"1"}]}))},setToOwnerAccount(t){mh(t),oh.subAccountsConfig.set({toOwnerAccount:t})}}};return d}const gS={USDC:{decimals:6,addresses:{base:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",baseSepolia:"0x036CbD53842c5426634e7929541eC2318f3dCF7e"}}},bS={base:8453,baseSepolia:84532},vS=[{name:"transfer",type:"function",stateMutability:"nonpayable",inputs:[{name:"to",type:"address"},{name:"amount",type:"uint256"}],outputs:[{name:"",type:"bool"}]},{name:"Transfer",type:"event",anonymous:!1,inputs:[{name:"from",type:"address",indexed:!0},{name:"to",type:"address",indexed:!0},{name:"value",type:"uint256",indexed:!1}]}],wS=({testnet:t,status:e,correlationId:n})=>{pA("payment.status_check.completed",{action:fA.process,componentType:lA.unknown,method:"getPaymentStatus",correlationId:n,signerType:"app-sdk",testnet:t,status:e},hA.low)},xS=({testnet:t,correlationId:e,errorMessage:n})=>{pA("payment.status_check.error",{action:fA.error,componentType:lA.unknown,method:"getPaymentStatus",correlationId:e,errorMessage:n,signerType:"app-sdk",testnet:t},hA.low)};async function kS(t){var e;const{id:n,testnet:r=!1,telemetry:a=!0}=t,i=crypto.randomUUID();a&&(({testnet:t,correlationId:e})=>{pA("payment.status_check.started",{action:fA.process,componentType:lA.unknown,method:"getPaymentStatus",correlationId:e,signerType:"app-sdk",testnet:t},hA.low)})({testnet:r,correlationId:i});try{const t=r?"https://api.developer.coinbase.com/rpc/v1/base-sepolia/S-fOd2n2Oi4fl4e1Crm83XeDXZ7tkg8O":"https://api.developer.coinbase.com/rpc/v1/base/S-fOd2n2Oi4fl4e1Crm83XeDXZ7tkg8O",s=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"eth_getUserOperationReceipt",params:[n]})}).then(t=>t.json());if(s.error){console.error("[getPaymentStatus] RPC error:",s.error);const t=s.error.message||"Network error";throw a&&xS({testnet:r,correlationId:i,errorMessage:t}),new Error(`RPC error: ${t}`)}if(!s.result){const e=await fetch(t,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:2,method:"eth_getUserOperationByHash",params:[n]})}).then(t=>t.json());if(e.result){a&&wS({testnet:r,status:"pending",correlationId:i});return{status:"pending",id:n,message:"Your payment is being processed. This usually takes a few seconds.",sender:e.result.sender}}a&&wS({testnet:r,status:"not_found",correlationId:i});return{status:"not_found",id:n,message:"Payment not found. Please check your transaction ID."}}const{success:o,receipt:c,reason:u}=s.result;if(o){let t,o;if(null==c?void 0:c.logs){const n=r?"baseSepolia":"base",a=gS.USDC.addresses[n].toLowerCase(),i=s.result.sender?Am(s.result.sender):void 0,u=[];for(let t=0;t<c.logs.length;t++){const n=c.logs[t],r=null===(e=n.address)||void 0===e?void 0:e.toLowerCase();if(r===a)try{const e=Bb({abi:vS,data:n.data,topics:n.topics});if("Transfer"===e.eventName&&e.args){const n=e.args;if(n.value&&n.to&&n.from){const e=wy(n.value,6);u.push({from:n.from,to:n.to,value:n.value,formattedAmount:e,logIndex:t})}}}catch(t){}}if(u.length>0&&i){const e=u.filter(t=>{try{return Ob(t.from,i)}catch(t){return!1}});if(0===e.length)throw new Error(`Unable to find USDC transfer from sender wallet ${s.result.sender}. Found ${u.length} USDC transfer(s) but none originated from the sender wallet.`);if(e.length>1){const t=e.map(t=>`${t.formattedAmount} USDC to ${t.to}`).join(", ");throw new Error(`Found multiple USDC transfers from sender wallet ${s.result.sender}: ${t}. Expected exactly one transfer.`)}t=e[0].formattedAmount,o=e[0].to}}a&&wS({testnet:r,status:"completed",correlationId:i});return{status:"completed",id:n,message:"Payment completed successfully",sender:s.result.sender,amount:t,recipient:o}}let d="Payment could not be completed";u&&(d=u.toLowerCase().includes("insufficient")?"Insufficient USDC balance":u),a&&wS({testnet:r,status:"failed",correlationId:i});return{status:"failed",id:n,message:"Payment failed",sender:s.result.sender,reason:d}}catch(t){console.error("[getPaymentStatus] Error checking status:",t);const e=t instanceof Error?t.message:"Connection error";throw a&&xS({testnet:r,correlationId:i,errorMessage:e}),t}}async function AS(t,e,n,r=!0){const a=function(t,e,n=!0){return yS({appName:"undefined"!=typeof window?window.location.origin:"Base Pay SDK",appChainIds:[t],preference:{telemetry:n,walletUrl:e}})}(bS[e?"baseSepolia":"base"],n,r),i=a.getProvider();try{const e=await async function(t,e){var n;const r=t.getProvider(),a=await r.request({method:"wallet_sendCalls",params:[e]});let i,s;if("string"==typeof a&&a.length>=66)i=a.slice(0,66);else{if("object"!=typeof a||null===a)throw new Error("Unexpected response format from wallet_sendCalls: expected string with length > 66 or object with id, got "+typeof a);{const t=a;if(!("string"==typeof t.id&&t.id.length>=66))throw new Error(`Could not extract transaction hash from object response. Available fields: ${Object.keys(t).join(", ")}`);i=t.id.slice(0,66),(null===(n=t.capabilities)||void 0===n?void 0:n.dataCallback)&&(s=t.capabilities.dataCallback)}}return{transactionHash:i,payerInfoResponses:s}}(a,t);return e}finally{await i.disconnect()}}function IS(t,e){const n=function(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Mk({value:t});let[n,r="0"]=t.split(".");const a=n.startsWith("-");if(a&&(n=n.slice(1)),r=r.replace(/(0+)$/,""),0===e)1===Math.round(Number(`.${r}`))&&(n=`${BigInt(n)+1n}`),r="";else if(r.length>e){const[t,a,i]=[r.slice(0,e-1),r.slice(e-1,e),r.slice(e)],s=Math.round(Number(`${a}.${i}`));r=s>9?`${BigInt(t)+BigInt(1)}0`.padStart(t.length+1,"0"):`${t}${s}`,r.length>e&&(r=r.slice(1),n=`${BigInt(n)+1n}`),r=r.slice(0,e)}else r=r.padEnd(e,"0");return BigInt(`${a?"-":""}${n}${r}`)}(e,gS.USDC.decimals);return Qm({abi:vS,functionName:"transfer",args:[t,n]})}function ES(t,e,n,r){return function(t,e,n){const r=e?"baseSepolia":"base",a=bS[r],i={to:gS.USDC.addresses[r],data:t,value:"0x0"},s={};return n&&n.requests.length>0&&(s.dataCallback=Object.assign({requests:n.requests.map(t=>{var e;return{type:t.type,optional:null!==(e=t.optional)&&void 0!==e&&e}})},n.callbackURL&&{callbackURL:n.callbackURL})),{version:"2.0.0",chainId:a,calls:[i],capabilities:s}}(IS(t,e),n,r)}async function PS(t){var e;const{amount:n,to:r,testnet:a=!1,payerInfo:i,walletUrl:s,telemetry:o=!0}=t,c=crypto.randomUUID();o&&(({amount:t,testnet:e,correlationId:n})=>{pA("payment.pay.started",{action:fA.process,componentType:lA.unknown,method:"pay",correlationId:n,signerType:"app-sdk",amount:t,testnet:e},hA.high)})({amount:n,testnet:a,correlationId:c});try{!function(t,e){if("string"!=typeof t)throw new Error("Invalid amount: must be a string");const n=parseFloat(t);if(isNaN(n))throw new Error("Invalid amount: must be a valid number");if(n<=0)throw new Error("Invalid amount: must be greater than 0");const r=t.indexOf(".");if(-1!==r&&t.length-r-1>e)throw new Error(`Invalid amount: pay only supports up to ${e} decimal places`)}(n,6);const t=function(t){if(!t)throw new Error("Invalid address: address is required");try{return Am(t)}catch(t){throw new Error("Invalid address: must be a valid Ethereum address")}}(r),e=ES(t,n,a,i),u=await AS(e,a,s,o);return o&&(({amount:t,testnet:e,correlationId:n})=>{pA("payment.pay.completed",{action:fA.process,componentType:lA.unknown,method:"pay",correlationId:n,signerType:"app-sdk",amount:t,testnet:e},hA.high)})({amount:n,testnet:a,correlationId:c}),{success:!0,id:u.transactionHash,amount:n,to:t,payerInfoResponses:u.payerInfoResponses}}catch(t){let r="Unknown error occurred";if(t instanceof Error)r=t.message;else if("string"==typeof t)r=t;else if(t&&"object"==typeof t){const n=t;"string"==typeof(null==n?void 0:n.message)?r=n.message:"string"==typeof(null===(e=null==n?void 0:n.error)||void 0===e?void 0:e.message)?r=n.error.message:"string"==typeof(null==n?void 0:n.reason)&&(r=n.reason)}throw o&&(({amount:t,testnet:e,correlationId:n,errorMessage:r})=>{pA("payment.pay.error",{action:fA.error,componentType:lA.unknown,method:"pay",correlationId:n,signerType:"app-sdk",amount:t,testnet:e,errorMessage:r},hA.high)})({amount:n,testnet:a,correlationId:c,errorMessage:r}),t}}const SS={pay:PS,getPaymentStatus:kS,constants:{CHAIN_IDS:bS,TOKENS:gS},types:{}};"undefined"!=typeof window&&(window.base=SS,window.createStartaleAccountSDK=yS),t.CHAIN_IDS=bS,t.TOKENS=gS,t.base=SS,t.createStartaleAccountSDK=yS,t.getCryptoKeyAccount=FP,t.getPaymentStatus=kS,t.pay=PS,t.removeCryptoKey=async function(){const t=await LP();t&&(await RP.removeItem(wl(xf(t.publicKey),1)),await RP.removeItem(jP))}});
|
|
15
34
|
//# sourceMappingURL=app-sdk.min.js.map
|