@startale/app-sdk 1.0.0 → 1.1.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.
Files changed (47) hide show
  1. package/README.md +2 -2
  2. package/dist/app-sdk.js +74 -40
  3. package/dist/app-sdk.js.map +1 -1
  4. package/dist/app-sdk.min.js +5 -5
  5. package/dist/app-sdk.min.js.map +1 -1
  6. package/dist/browser-entry.d.ts +1 -1
  7. package/dist/browser-entry.d.ts.map +1 -1
  8. package/dist/browser-entry.js +3 -3
  9. package/dist/browser-entry.js.map +1 -1
  10. package/dist/core/constants.d.ts +1 -1
  11. package/dist/core/constants.d.ts.map +1 -1
  12. package/dist/core/constants.js +1 -1
  13. package/dist/core/constants.js.map +1 -1
  14. package/dist/core/provider/interface.d.ts +16 -1
  15. package/dist/core/provider/interface.d.ts.map +1 -1
  16. package/dist/index.d.ts +4 -3
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +2 -1
  19. package/dist/index.js.map +1 -1
  20. package/dist/interface/builder/core/{createBaseAccountSDK.d.ts → createStartaleAccountSDK.d.ts} +6 -6
  21. package/dist/interface/builder/core/createStartaleAccountSDK.d.ts.map +1 -0
  22. package/dist/interface/builder/core/{createBaseAccountSDK.js → createStartaleAccountSDK.js} +5 -5
  23. package/dist/interface/builder/core/createStartaleAccountSDK.js.map +1 -0
  24. package/dist/interface/payment/utils/sdkManager.d.ts +2 -2
  25. package/dist/interface/payment/utils/sdkManager.d.ts.map +1 -1
  26. package/dist/interface/payment/utils/sdkManager.js +2 -2
  27. package/dist/interface/payment/utils/sdkManager.js.map +1 -1
  28. package/dist/kms/crypto-key/index.js +1 -1
  29. package/dist/kms/crypto-key/index.js.map +1 -1
  30. package/dist/sign/app-sdk/Signer.d.ts.map +1 -1
  31. package/dist/sign/app-sdk/Signer.js +4 -3
  32. package/dist/sign/app-sdk/Signer.js.map +1 -1
  33. package/dist/sign/app-sdk/utils.d.ts +6 -0
  34. package/dist/sign/app-sdk/utils.d.ts.map +1 -1
  35. package/dist/sign/app-sdk/utils.js +24 -3
  36. package/dist/sign/app-sdk/utils.js.map +1 -1
  37. package/dist/startale-connector.d.ts +41 -0
  38. package/dist/startale-connector.d.ts.map +1 -0
  39. package/dist/startale-connector.js +245 -0
  40. package/dist/startale-connector.js.map +1 -0
  41. package/dist/store/store.d.ts +2 -2
  42. package/dist/store/store.d.ts.map +1 -1
  43. package/dist/store/store.js +1 -1
  44. package/dist/store/store.js.map +1 -1
  45. package/package.json +3 -2
  46. package/dist/interface/builder/core/createBaseAccountSDK.d.ts.map +0 -1
  47. package/dist/interface/builder/core/createBaseAccountSDK.js.map +0 -1
@@ -1,15 +1,15 @@
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.0.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:"base-acc-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.3";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(!
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
2
  /*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */
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),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,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,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?{address:l.address,type:"json-rpc"}:l})),ms(f),delete f.parameters,f}async function pi(t,e){const{account:n=t.account}=e,r=n?hr(n):void 0;try{const{accessList:n,authorizationList:a,blobs:s,blobVersionedHashes:i,blockNumber:o,blockTag:c,data:u,gas:d,gasPrice:l,maxFeePerBlobGas:f,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:h,value:b,stateOverride:y,...g}=await fi(t,{...e,parameters:"local"===r?.type?void 0:["blobVersionedHashes"]}),v=("bigint"==typeof o?Ce(o):void 0)||c,w=fs(y),x=await(async()=>g.to?g.to:a&&a.length>0?await Va({authorization:a[0]}).catch(()=>{throw new _t("`to` is required. Could not infer from `authorizationList`")}):void 0)();ms(e);const P=t.chain?.formatters?.transactionRequest?.format,k=(P||us)({...is(g,{format:P}),from:r?.address,accessList:n,authorizationList:a,blobs:s,blobVersionedHashes:i,data:u,gas:d,gasPrice:l,maxFeePerBlobGas:f,maxFeePerGas:p,maxPriorityFeePerGas:m,nonce:h,to:x,value:b},"estimateGas");return BigInt(await t.request({method:"eth_estimateGas",params:w?[k,v??t.experimental_blockTag??"latest",w]:v?[k,v]:[k]}))}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:r,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=`https://oxlib.sh${a??""}`,i=[e||"An error occurred.",...n.metaMessages?["",...n.metaMessages]:[],...r||a?["",r?`Details: ${r}`:void 0,a?`See: ${s}`: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,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"ox@0.1.1"}),this.cause=n.cause,this.details=r,this.docs=s,this.docsPath=a,this.shortMessage=e}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]=16*n+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?(1n<<BigInt(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}),from:I?.address,accessList:o,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}),from:h?.address,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);
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,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=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);
5
5
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
6
6
  const rf=BigInt(0),af=BigInt(1),sf=BigInt(2),of=BigInt(3),cf=BigInt(4),uf=BigInt(5),df=BigInt(8);function lf(t,e){const n=t%e;return n>=rf?n:e+n}function ff(t,e,n){let r=t;for(;e-- >rf;)r*=r,r%=n;return r}function pf(t,e){if(t===rf)throw new Error("invert: expected non-zero number");if(e<=rf)throw new Error("invert: expected positive modulus, got "+e);let n=lf(t,e),r=e,a=rf,s=af;for(;n!==rf;){const t=r%n,e=a-s*(r/n);r=n,n=t,a=s,s=e}if(r!==af)throw new Error("invert: does not exist");return lf(a,e)}function mf(t,e){const n=(t.ORDER+af)/cf,r=t.pow(e,n);if(!t.eql(t.sqr(r),e))throw new Error("Cannot find square root");return r}function hf(t,e){const n=(t.ORDER-uf)/df,r=t.mul(e,sf),a=t.pow(r,n),s=t.mul(e,a),i=t.mul(t.mul(s,sf),a),o=t.mul(s,t.sub(i,t.ONE));if(!t.eql(t.sqr(o),e))throw new Error("Cannot find square root");return o}function bf(t){return t%cf===of?mf:t%df===uf?hf:function(t){if(t<BigInt(3))throw new Error("sqrt is not defined for small field");let e=t-af,n=0;for(;e%sf===rf;)e/=sf,n++;let r=sf;const a=xf(t);for(;1===vf(a,r);)if(r++>1e3)throw new Error("Cannot find square root: probably non-prime P");if(1===n)return mf;let s=a.pow(r,e);const i=(e+af)/sf;return function(t,r){if(t.is0(r))return r;if(1!==vf(t,r))throw new Error("Cannot find square root");let a=n,o=t.mul(t.ONE,s),c=t.pow(r,e),u=t.pow(r,i);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=af<<BigInt(a-e-1),s=t.pow(o,r);a=e,o=t.sqr(s),c=t.mul(c,o),u=t.mul(u,s)}return u}}(t)}const yf=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function gf(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),s=t.inv(a);return e.reduceRight((e,n,a)=>t.is0(n)?e:(r[a]=t.mul(e,r[a]),t.mul(e,n)),s),r}function vf(t,e){const n=(t.ORDER-af)/sf,r=t.pow(e,n),a=t.eql(r,t.ONE),s=t.eql(r,t.ZERO),i=t.eql(r,t.neg(t.ONE));if(!a&&!s&&!i)throw new Error("invalid Legendre symbol result");return a?1:s?0:-1}function wf(t,e){void 0!==e&&rn(e);const n=void 0!==e?e:t.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function xf(t,e,n=!1,r={}){if(t<=rf)throw new Error("invalid field: expected ORDER > 0, got "+t);const{nBitLength:a,nByteLength:s}=wf(t,e);if(s>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let i;const o=Object.freeze({ORDER:t,isLE:n,BITS:a,BYTES:s,MASK:Qi(a),ZERO:rf,ONE:af,create:e=>lf(e,t),isValid:e=>{if("bigint"!=typeof e)throw new Error("invalid field element: expected bigint, got "+typeof e);return rf<=e&&e<t},is0:t=>t===rf,isOdd:t=>(t&af)===af,neg:e=>lf(-e,t),eql:(t,e)=>t===e,sqr:e=>lf(e*e,t),add:(e,n)=>lf(e+n,t),sub:(e,n)=>lf(e-n,t),mul:(e,n)=>lf(e*n,t),pow:(t,e)=>function(t,e,n){if(n<rf)throw new Error("invalid exponent, negatives unsupported");if(n===rf)return t.ONE;if(n===af)return e;let r=t.ONE,a=e;for(;n>rf;)n&af&&(r=t.mul(r,a)),a=t.sqr(a),n>>=af;return r}(o,t,e),div:(e,n)=>lf(e*pf(n,t),t),sqrN:t=>t*t,addN:(t,e)=>t+e,subN:(t,e)=>t-e,mulN:(t,e)=>t*e,inv:e=>pf(e,t),sqrt:r.sqrt||(e=>(i||(i=bf(t)),i(o,e))),toBytes:t=>n?Vi(t,s):Hi(t,s),fromBytes:t=>{if(t.length!==s)throw new Error("Field.fromBytes: expected "+s+" bytes, got "+t.length);return n?qi(t):Gi(t)},invertBatch:t=>gf(o,t),cmov:(t,e,n)=>n?e:t});return Object.freeze(o)}function Pf(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 kf(t){const e=Pf(t);return e+Math.ceil(e/2)}
7
7
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */
8
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
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
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,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 font-family: "BaseSans-Regular";\n src: url("data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAJigAA8AAAACCywAAJg8AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGoIuG4L7BhzCdAZgAJIGEQgKg+k0gv4NC4p0AAE2AiQDlWQEIAWGfgeublsIz5EGVeP2TiXfSAJ0G0LBr7Zlqf6pcAA3dwBbquuITJr6o7y2YrpNHoSyAwBKe/rZ//////+/IlmMMf8PuQcEUUitMtva1oSQhGamQkxJxpSLWVScqgQ1RW16VovNJTZ2uagkVSeuNje11QubnvZpYVB7yUGi4thNqJYBdoegR2V9jiA4dEhCOgf3Va7muEqhcRKz0dDNOVV47+hxPO9qkzFCUg5glpCZxKbOGFxehX5nYwGEBZOQwyRFIY5oljSrLwkSIj35dugPRJKk8G3GwUgw06hpknM0qqcUdO/UkzLvviWielabhCp59zPCaOnnqLtK3qXfP4Jz+vAum7Q0/NuZGXK9lUJKTpCEJ7ENfKrSzrLJy8uqLLgUD5sssqscpk8OS7HhGv36H+Ct59wJukpOmwpgFOqL6vCNd0ISNjq/nA5E/OXNVV0dR7EKTAKiB1ZvW+tSlyr7EWdJ3qxDtA8codE8WQY4xkT9EJF26FGP+iQKnwv66klyovCkLwlr8Lxu3nv/5/MNMUKMiAhhDtdkGsM0RAwRI8QYaRhCUNgOUAO4Bi0u3DhL0aZoKaLFsXHublwTFwWef9oP2rlv3sxftRCxRCOKSDVvItZINGlFPFkmbqay38SW9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xUvYzSOoIlKTVvxlCFQdXmtrIU6M23TVHXnxpybFR2q0n0oGtxUtrZLDQrx9VX8xWL2MQ1TqQ/dLnEbObO+tMox40BUNWblCpOi7bKmbV0AFHbZirNFCzOtBwGZTd32dTB53RcxFFjyCLV2PEsIu915+ZmaNkSyxlHXLzOkKfTNxHHI38JVhtawdFurteI9E7eSVO9nK4gSUgx3msEz1qCOpAhB0ZjbF6w5z7RVvThX0nYhtKQon2eZu1hmrcOB8RrPzrLotXhZc9RU2dTMaVVWSycJnKNhUUqOPNeC2PX6ployg2P53yvWtdRW18JNkgT08wtzVXM2OBXqyg9VnhwPGOw07JshDKrapPfl/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://keys.coinbase.com/connect",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)}
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 font-family: "BaseSans-Regular";\n src: url("data:font/woff2;charset=utf-8;base64,d09GMgABAAAAAJigAA8AAAACCywAAJg8AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP0ZGVE0cGoIuG4L7BhzCdAZgAJIGEQgKg+k0gv4NC4p0AAE2AiQDlWQEIAWGfgeublsIz5EGVeP2TiXfSAJ0G0LBr7Zlqf6pcAA3dwBbquuITJr6o7y2YrpNHoSyAwBKe/rZ//////+/IlmMMf8PuQcEUUitMtva1oSQhGamQkxJxpSLWVScqgQ1RW16VovNJTZ2uagkVSeuNje11QubnvZpYVB7yUGi4thNqJYBdoegR2V9jiA4dEhCOgf3Va7muEqhcRKz0dDNOVV47+hxPO9qkzFCUg5glpCZxKbOGFxehX5nYwGEBZOQwyRFIY5oljSrLwkSIj35dugPRJKk8G3GwUgw06hpknM0qqcUdO/UkzLvviWielabhCp59zPCaOnnqLtK3qXfP4Jz+vAum7Q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lbwGbajXkuWjhyuFo4TrNKxVsiv7q0LbsIV/68zaUw71X59WXD5jnGZ9/PIGNaHjWNLEsDQC4XjFFIFgwCJB3T3t527K03IHYWlrvsV6U3c3HwLqfxS3JoOBFCM1GUp0bjZnGUIfGARIkqkS8OkzYRZrInSqUjcSzadAtfvW5T8KozAYu2LVH+0IXgc/FDcZc8IAgdAkHeUIKLGlBOpeSbmRiW+qc9coGyIpCZZVkSOyCCstC0wWqVbY0pFfUYVD3f7wTQHgAHpsBBAEBZBODgEQhlQ9M02rp3srA5pxUvYzSOoIlKTVvxlCFQdXmtrIU6M23TVHXnxpybFR2q0n0oGtxUtrZLDQrx9VX8xWL2MQ1TqQ/dLnEbObO+tMox40BUNWblCpOi7bKmbV0AFHbZirNFCzOtBwGZTd32dTB53RcxFFjyCLV2PEsIu915+ZmaNkSyxlHXLzOkKfTNxHHI38JVhtawdFurteI9E7eSVO9nK4gSUgx3msEz1qCOpAhB0ZjbF6w5z7RVvThX0nYhtKQon2eZu1hmrcOB8RrPzrLotXhZc9RU2dTMaVVWSycJnKNhUUqOPNeC2PX6ployg2P53yvWtdRW18JNkgT08wtzVXM2OBXqyg9VnhwPGOw07JshDKrapPfl/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
12
  /*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.fromEntries(Array.from("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/").map((t,e)=>[t.charCodeAt(0),e]));const Vh=xf(BigInt("0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff")),Kh=Kf({a:Vh.create(BigInt("-3")),b:BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b"),Fp:Vh,n:BigInt("0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551"),Gx:BigInt("0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296"),Gy:BigInt("0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5"),h:BigInt(1),lowS:!1},Zs),Wh=xf(BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff"));Kf({a:Wh.create(BigInt("-3")),b:BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef"),Fp:Wh,n:BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973"),Gx:BigInt("0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7"),Gy:BigInt("0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f"),h:BigInt(1),lowS:!1},Ys);const Zh=xf(BigInt("0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"));Kf({a:Zh.create(BigInt("-3")),b:BigInt("0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00"),Fp:Zh,n:BigInt("0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409"),Gx:BigInt("0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66"),Gy:BigInt("0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650"),h:BigInt(1),lowS:!1,allowedPrivateKeyLengths:[130,131,132]},Js);
13
13
  /*! 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://keys.coinbase.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().paymasterUrls;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]}})),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=await this.sendEncryptedRequest(t),a=await this.decryptResponseMessage(r);return this.handleResponse(t,a)}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:{},paymasterUrls:t.paymasterUrls};(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\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\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\tlargestShiftValue:\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\tre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\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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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\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.createBaseAccountSDK=ig),t.CHAIN_IDS=cg,t.TOKENS=og,t.base=yg,t.createBaseAccountSDK=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))}});
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\t\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\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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\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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}\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[/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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))}});
15
15
  //# sourceMappingURL=app-sdk.min.js.map