/*! For license information please see main.7b5cf4dd.js.LICENSE.txt */
(()=>{var e={63349:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},22122:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},41788:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(14665);function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},19756:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}n.d(t,{Z:()=>r})},14665:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})},8200:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f,r:()=>s});var r,a=n(72791);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function o(e,t){let{title:n,titleId:o,...s}=e;return a.createElement("svg",i({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":o},s),n?a.createElement("title",{id:o},n):null,r||(r=a.createElement("g",null,a.createElement("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"#627EEA"}),a.createElement("path",{d:"M12.3735 3V9.6525L17.9963 12.165L12.3735 3Z",fill:"white",fillOpacity:.602}),a.createElement("path",{d:"M12.3735 3L6.75 12.165L12.3735 9.6525V3Z",fill:"white"}),a.createElement("path",{d:"M12.3735 16.4759V20.9962L18 13.2119L12.3735 16.4759Z",fill:"white",fillOpacity:.602}),a.createElement("path",{d:"M12.3735 20.9962V16.4752L6.75 13.2119L12.3735 20.9962Z",fill:"white"}),a.createElement("path",{d:"M12.3735 15.4298L17.9963 12.1651L12.3735 9.65405V15.4298Z",fill:"white",fillOpacity:.2}),a.createElement("path",{d:"M6.75 12.1651L12.3735 15.4298V9.65405L6.75 12.1651Z",fill:"white",fillOpacity:.602}))))}const s=a.forwardRef(o),f=n.p+"static/media/network-mainnet.4f94c02e1403c0502f29e010159e6214.svg"},21005:()=>{window.scrollRequest=(e,t)=>{if(null!==t&&void 0!==t&&t.timeout){const n=new AbortController,{signal:r}=n,a={...t,signal:r},i=setTimeout((()=>{n.abort()}),t.timeout);return fetch(e,a).then((async e=>{if(e.ok)return clearTimeout(i),e.json();const t=await e.text(),n=new Error(t);throw n.status=e.status,clearTimeout(i),n})).then((e=>e))}return fetch(e,t).then((async e=>{if(e.ok)return e.json();const t=await e.text(),n=new Error(t);throw n.status=e.status,n})).then((e=>e))}},79346:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(68870),a=n(13239),i=n(80184);const o=e=>{const{height:t="100vh",component:n,...o}=e;return(0,i.jsx)(r.Z,{display:"flex",justifyContent:"center",alignItems:"center",height:t,...o,children:n||(0,i.jsx)(a.Z,{color:"primary"})})}},17250:(e,t,n)=>{"use strict";n.d(t,{$G:()=>l,DZ:()=>d,ID:()=>y,Kj:()=>c,TE:()=>i,Ue:()=>h,VM:()=>a,VZ:()=>s,WU:()=>m,_c:()=>o,cR:()=>f,uH:()=>p,w:()=>b,wd:()=>u});var r=n(62309);const a=(0,r.Oi)("REACT_APP_ETH_SYMBOL"),i="WETH",o="USDC",s=`Ethereum ${r.mC?"":(0,r.Oi)("REACT_APP_SCROLL_ENVIRONMENT")}`,f=`Scroll ${r.mC?"":(0,r.Oi)("REACT_APP_SCROLL_ENVIRONMENT")}`,c={L1:parseInt((0,r.Oi)("REACT_APP_CHAIN_ID_L1")),L2:parseInt((0,r.Oi)("REACT_APP_CHAIN_ID_L2"))},l={L1:(0,r.Oi)("REACT_APP_EXTERNAL_RPC_URI_L1"),L2:(0,r.Oi)("REACT_APP_EXTERNAL_RPC_URI_L2")},u={L1:(0,r.Oi)("REACT_APP_EXTERNAL_EXPLORER_URI_L1"),L2:(0,r.Oi)("REACT_APP_EXTERNAL_EXPLORER_URI_L2"),Dora:(0,r.Oi)("REACT_APP_EXTERNAL_EXPLORER_URI_DORA")},d=(c.L1,(0,r.Oi)("REACT_APP_L1_STANDARD_ERC20_GATEWAY_PROXY_ADDR"),c.L2,(0,r.Oi)("REACT_APP_L2_STANDARD_ERC20_GATEWAY_PROXY_ADDR"),{[c.L1]:(0,r.Oi)("REACT_APP_L1_GATEWAY_ROUTER_PROXY_ADDR"),[c.L2]:(0,r.Oi)("REACT_APP_L2_GATEWAY_ROUTER_PROXY_ADDR")}),p={[c.L1]:(0,r.Oi)("REACT_APP_L1_WETH_GATEWAY_PROXY_ADDR"),[c.L2]:(0,r.Oi)("REACT_APP_L2_WETH_GATEWAY_PROXY_ADDR")},h={[c.L1]:(0,r.Oi)("REACT_APP_L1_SCROLL_MESSENGER"),[c.L2]:(0,r.Oi)("REACT_APP_L2_SCROLL_MESSENGER")},b={[c.L2]:(0,r.Oi)("REACT_APP_L2_USDC_GATEWAY_PROXY_ADDR")},y={[c.L1]:(0,r.Oi)("REACT_APP_L1_BATCH_BRIDGE_GATEWAY_PROXY_ADDR")},m={Mainnet:"https://docs.scroll.io/en/developers/developer-quickstart/",Sepolia:"https://docs.scroll.io/en/user-guide/"};(0,r.Oi)("REACT_APP_SCROLL_ENVIRONMENT").toLocaleLowerCase()},15765:(e,t,n)=>{"use strict";n.d(t,{yp:()=>_,dH:()=>k,eB:()=>T});var r,a,i=n(72791);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t){let{title:n,titleId:s,...f}=e;return i.createElement("svg",o({width:24,height:20,viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":s},f),n?i.createElement("title",{id:s},n):null,r||(r=i.createElement("g",{clipPath:"url(#clip0_5342_954)"},i.createElement("path",{d:"M22.0235 11.0934L15.9988 16.6495C15.798 16.8354 15.5302 16.9395 15.2457 16.9395C14.9612 16.9395 14.7102 16.8503 14.5178 16.6792C14.3169 16.5081 14.1998 16.2776 14.1914 16.0247C14.1914 15.7718 14.2918 15.5412 14.4843 15.3627L20.4922 9.82149C21.421 8.90663 21.9147 7.71657 21.8812 6.46701C21.8478 5.27695 21.329 4.15383 20.4169 3.29848C19.5132 2.458 18.325 1.97454 17.0699 1.94479H16.9193C15.3127 1.94479 13.7981 2.6737 12.861 3.90838C12.6685 4.16871 12.3422 4.31747 11.9907 4.31747C11.6393 4.31747 11.313 4.16127 11.1205 3.90838C10.1917 2.68114 8.67716 1.94479 7.07058 1.94479C5.7736 1.94479 4.56867 2.41337 3.63986 3.24641C2.65249 4.13152 2.09186 5.37364 2.10859 6.63808C2.11696 7.87277 2.64412 9.03308 3.58129 9.91075L12.7606 18.3453C13.1622 18.7172 13.1538 19.3122 12.7355 19.6692C12.5346 19.8403 12.2752 19.9296 12.0075 19.9296C11.7146 19.9296 11.4468 19.8254 11.2544 19.6469L2.05839 11.1975C0.744673 9.97769 0.0166918 8.36367 -4.34512e-05 6.65296C-0.0167787 4.89018 0.769776 3.17203 2.15043 1.93735C3.47251 0.747289 5.20461 0.0853187 7.04548 0.0778809C8.86962 0.0778809 10.5933 0.702662 11.9071 1.84066L11.9991 1.92247L12.0911 1.84066C13.3965 0.7101 15.1118 0.0778809 16.9109 0.0778809H17.1452C18.9609 0.129946 20.6679 0.821668 21.9482 2.01917C23.2201 3.20179 23.948 4.77118 23.9899 6.42982C24.0401 8.18516 23.3372 9.83637 22.0235 11.0934Z",fill:"#101010"}))),a||(a=i.createElement("defs",null,i.createElement("clipPath",{id:"clip0_5342_954"},i.createElement("rect",{width:23.9983,height:19.8442,fill:"white",transform:"translate(0 0.0778809)"})))))}const f=i.forwardRef(s);n.p;var c,l,u,d;function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function h(e,t){let{title:n,titleId:r,...a}=e;return i.createElement("svg",p({width:24,height:18,viewBox:"0 0 24 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?i.createElement("title",{id:r},n):null,c||(c=i.createElement("path",{d:"M16.5785 17.1552C16.097 17.1552 15.7004 16.802 15.7004 16.3731V15.5594C14.3763 15.7739 13.1654 15.8874 12.0041 15.8874C10.8427 15.8874 9.55397 15.7613 8.35724 15.5153L8.29351 16.3668C8.29351 16.802 7.89696 17.1488 7.41544 17.1488C4.70334 17.0038 2.16119 15.9757 0.256346 14.2539C0.0793158 14.0962 -0.0127398 13.8754 0.0014226 13.661C0.199696 10.7723 0.39797 7.78903 2.18951 4.44623C2.6852 3.4434 5.97796 1.45664 8.5626 0.876384C8.63341 0.86377 8.70422 0.851156 8.77503 0.851156C9.17866 0.851156 9.52564 1.09713 9.62478 1.44403C9.73808 1.86661 9.45483 2.29549 8.98747 2.39641C6.94808 2.78115 5.08573 3.78398 3.72614 5.2094C2.4586 7.80164 1.80713 10.5516 1.7788 13.3772C3.09591 14.4809 4.7175 15.2189 6.47364 15.509L6.53029 15.0423C5.35481 14.6008 4.29263 14.052 3.35791 13.3898C2.98261 13.1186 2.91888 12.6203 3.21629 12.286C3.38624 12.0968 3.64116 11.9896 3.91025 11.9896C4.10852 11.9896 4.29971 12.0464 4.4555 12.1599C6.51613 13.5601 9.07244 14.3295 11.6712 14.3295C11.7775 14.3295 11.8908 14.3295 12.0041 14.3295C12.1103 14.3295 12.2165 14.3295 12.3298 14.3295C14.9144 14.3295 17.4778 13.5601 19.5455 12.1599C19.7084 12.0464 19.9067 11.9896 20.105 11.9896C20.374 11.9896 20.6219 12.0968 20.7848 12.286C21.0822 12.6329 21.0184 13.1249 20.6431 13.3898C19.7013 14.052 18.6391 14.5944 17.4778 14.9981C17.4566 15.0801 17.4637 15.4648 17.4637 15.4648C19.2552 15.2189 20.8839 14.4998 22.201 13.4087C22.201 10.5705 21.5495 7.81425 20.2749 5.22201C18.9153 3.79029 17.0459 2.78745 15.0065 2.39641C14.7657 2.34595 14.5745 2.21981 14.4542 2.03059C14.3338 1.84769 14.3055 1.63955 14.3621 1.43772C14.4612 1.09083 14.8082 0.844849 15.2118 0.844849C15.2897 0.844849 15.3606 0.851156 15.4314 0.870077C18.016 1.45034 21.1671 3.21634 21.7974 4.43993C23.6031 7.78903 23.8013 10.766 23.9996 13.6547C24.0067 13.8817 23.9146 14.1025 23.7447 14.2539C21.8469 15.9694 19.3119 16.9975 16.6139 17.1488H16.5856L16.5785 17.1552Z",fill:"#101010"})),l||(l=i.createElement("path",{d:"M18.9295 5.41754C19.1702 5.01388 18.9861 4.51561 18.54 4.30117C16.5006 3.43078 14.263 3.0019 12.0041 3.05866C9.74516 3.0082 7.50042 3.43078 5.46811 4.30117C5.01491 4.51561 4.85913 5.02019 5.09989 5.43015C5.34065 5.82119 5.87882 5.97887 6.32494 5.77704C8.10232 5.0328 10.0496 4.66698 12.0111 4.71744C13.9726 4.66698 15.92 5.0328 17.6973 5.77704C18.1505 5.95364 18.6816 5.80227 18.9507 5.43015H18.9436L18.9295 5.41754Z",fill:"#101010"})),u||(u=i.createElement("path",{d:"M9.22115 10.4948C9.86554 10.4948 10.3825 10.0281 10.3825 9.45411C10.3825 8.88016 9.85846 8.41343 9.22115 8.41343C8.58384 8.41343 8.05983 8.88016 8.05983 9.45411C8.05983 10.0281 8.58384 10.4948 9.22115 10.4948Z",fill:"#101010"})),d||(d=i.createElement("path",{d:"M14.7586 10.4948C15.403 10.4948 15.92 10.0281 15.92 9.45411C15.92 8.88016 15.396 8.41343 14.7586 8.41343C14.1213 8.41343 13.5973 8.88016 13.5973 9.45411C13.5973 10.0281 14.1213 10.4948 14.7586 10.4948Z",fill:"#101010"})))}const b=i.forwardRef(h);n.p;var y,m,g,v,w;function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}function A(e,t){let{title:n,titleId:r,...a}=e;return i.createElement("svg",E({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?i.createElement("title",{id:r},n):null,y||(y=i.createElement("path",{d:"M19.3157 8.9958C18.7928 8.9958 18.3811 9.41861 18.3811 9.93043C18.3811 10.4423 18.8039 10.8651 19.3157 10.8651C20.8623 10.8651 22.1307 12.1224 22.1307 13.6801V21.1794C22.1307 21.6912 21.7079 22.114 21.1961 22.114C21.0292 22.114 20.8734 22.0695 20.7288 21.9916L17.9138 20.3671C17.7691 20.2893 17.6133 20.2448 17.4465 20.2448H11.8164C10.2698 20.2448 9.00139 18.9875 9.00139 17.4297V15.5493C9.00139 15.0264 8.57858 14.6147 8.06676 14.6147C7.55494 14.6147 7.13213 15.0375 7.13213 15.5493V17.4297C7.13213 20.0111 9.23505 22.114 11.8164 22.114H17.1905L19.783 23.6161C20.2058 23.8609 20.6954 23.9944 21.185 23.9944C22.7316 23.9944 24 22.7371 24 21.1794V13.6801C24 11.0987 21.8971 8.9958 19.3157 8.9958Z",fill:"#101010"})),m||(m=i.createElement("path",{d:"M2.81502 15.0041C3.30459 15.0041 3.79416 14.8706 4.21697 14.6258L6.80946 13.1238H12.1836C14.7649 13.1238 16.8679 11.0208 16.8679 8.43947V4.68982C16.8679 2.10846 14.7649 0.00553711 12.1836 0.00553711H4.68428C2.10292 -0.00558945 0 2.09733 0 4.67869V12.178C0 13.7246 1.2573 14.993 2.81502 14.993V15.0041ZM1.88039 4.68982C1.88039 3.14323 3.13769 1.8748 4.69541 1.8748H12.1947C13.7413 1.8748 15.0097 3.1321 15.0097 4.68982V8.43947C15.0097 9.98606 13.7524 11.2545 12.1947 11.2545H6.56467C6.39777 11.2545 6.242 11.299 6.09736 11.3769L3.28234 13.0014C3.13769 13.0792 2.98192 13.1238 2.81502 13.1238C2.3032 13.1238 1.88039 12.7009 1.88039 12.1891V4.68982Z",fill:"#101010"})),g||(g=i.createElement("path",{d:"M4.68428 7.49371C5.20047 7.49371 5.61891 7.07527 5.61891 6.55908C5.61891 6.0429 5.20047 5.62445 4.68428 5.62445C4.1681 5.62445 3.74965 6.0429 3.74965 6.55908C3.74965 7.07527 4.1681 7.49371 4.68428 7.49371Z",fill:"#101010"})),v||(v=i.createElement("path",{d:"M8.44506 7.49371C8.96124 7.49371 9.37969 7.07527 9.37969 6.55908C9.37969 6.0429 8.96124 5.62445 8.44506 5.62445C7.92888 5.62445 7.51043 6.0429 7.51043 6.55908C7.51043 7.07527 7.92888 7.49371 8.44506 7.49371Z",fill:"#101010"})),w||(w=i.createElement("path",{d:"M12.1947 7.49371C12.7109 7.49371 13.1293 7.07527 13.1293 6.55908C13.1293 6.0429 12.7109 5.62445 12.1947 5.62445C11.6785 5.62445 11.2601 6.0429 11.2601 6.55908C11.2601 7.07527 11.6785 7.49371 12.1947 7.49371Z",fill:"#101010"})))}const P=i.forwardRef(A),_=(n.p,[{icon:b,href:"https://discord.gg/scroll",title:"Join our Discord",content:"Connect with other Scroll developers and users"},{icon:P,href:"https://gov.scroll.io/forum",title:"Governance Forum",content:"Discuss and propose changes to Scroll"},{icon:f,href:"https://github.com/scroll-tech/contribute-to-scroll",title:"Contribute to Scroll",content:"Build with other developers"}]),T=["All time","Upcoming","Last month","This year"],k=["All regions","Africa","Asia","Central America","Europe","Middle East","North America","Pacific","South America"]},39666:(e,t,n)=>{"use strict";n.d(t,{R9:()=>ae,ID:()=>a.ID,tN:()=>G.tN,D3:()=>Oe,Pz:()=>Te,xJ:()=>G.xJ,Jp:()=>yn,Vm:()=>mn,jX:()=>En,mq:()=>vn,Kj:()=>a.Kj,VT:()=>G.VT,vQ:()=>X,q:()=>ie,cs:()=>ne,sR:()=>P,Ph:()=>T,HK:()=>C,C2:()=>A,BQ:()=>Me,VM:()=>a.VM,wd:()=>a.wd,Gn:()=>Ne,sW:()=>_e,JO:()=>re,DZ:()=>a.DZ,DI:()=>_,DP:()=>An,lW:()=>Pn,J9:()=>wn,cR:()=>a.cR,QA:()=>Ie,dl:()=>Y,jD:()=>Q,ii:()=>$,WY:()=>o,g5:()=>z,mb:()=>ee,w5:()=>x,ORIGINS_NFT_BADGE:()=>Ue,$G:()=>a.$G,Ue:()=>a.Ue,J0:()=>K,K7:()=>i,Zh:()=>gn,w1:()=>xe,C:()=>Ce,ff:()=>k,mp:()=>G.mp,w:()=>a.w,_c:()=>a._c,uH:()=>a.uH,TE:()=>a.TE,Kc:()=>ke,TC:()=>Se,pg:()=>Re});var r=n(62309),a=n(17250);const i={Home:"/portal",Ecosystem:"/ecosystem",Bridge:"/bridge",L1Explorer:a.wd.L1,L2Explorer:a.wd.L2,RollupExplorer:"/rollupscan",Architecture:"/blog/architecture"},o=[{name:"Bridge",description:"Use our Hop fork to transfer tokens between L1 and L2.",subdomainOrPath:"/bridge"},{name:"Rollup Explorer",description:"See L2 block data being committed to and finalized on L1.",isActive:!0,subdomainOrPath:"/rollupscan"},{name:"L1 Block Explorer",description:`See your L1 transactions on ${a.VZ}'s block explorer.`,isExternal:!0,subdomainOrPath:a.wd.L1},{name:"L2 Block Explorer",description:"See your L2 transactions on our fork of Blockscout.",isExternal:!0,subdomainOrPath:a.wd.L2},{name:"Documentation",description:`See the full ${a.cR} User Guide here.`,isExternal:!0,subdomainOrPath:a.WU[(0,r.Oi)("REACT_APP_SCROLL_ENVIRONMENT")]}];var s,f=n(72791);function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c.apply(this,arguments)}function l(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",c({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,s||(s=f.createElement("path",{d:"M23.3958 17.1644L16.9958 23.8044C16.7825 24.0267 16.4981 24.1511 16.1958 24.1511C15.8936 24.1511 15.6269 24.0444 15.4225 23.84C15.2092 23.6356 15.0847 23.36 15.0758 23.0578C15.0758 22.7556 15.1825 22.48 15.3869 22.2667L21.7692 15.6444C22.7558 14.5511 23.2803 13.1289 23.2447 11.6356C23.2092 10.2133 22.6581 8.87111 21.6892 7.84889C20.7292 6.84444 19.4669 6.26667 18.1336 6.23111H17.9736C16.2669 6.23111 14.6581 7.10222 13.6625 8.57778C13.4581 8.88889 13.1114 9.06667 12.7381 9.06667C12.3647 9.06667 12.0181 8.88 11.8136 8.57778C10.8269 7.11111 9.21806 6.23111 7.51139 6.23111C6.13361 6.23111 4.85361 6.79111 3.86694 7.78667C2.81806 8.84444 2.2225 10.3289 2.24028 11.84C2.24917 13.3156 2.80917 14.7022 3.80472 15.7511L13.5558 25.8311C13.9825 26.2756 13.9736 26.9867 13.5292 27.4133C13.3158 27.6178 13.0403 27.7244 12.7558 27.7244C12.4447 27.7244 12.1603 27.6 11.9558 27.3867L2.18694 17.2889C0.791389 15.8311 0.0180558 13.9022 0.000278029 11.8578C-0.0174997 9.75111 0.818056 7.69778 2.28472 6.22222C3.68917 4.8 5.52917 4.00889 7.48472 4C9.4225 4 11.2536 4.74667 12.6492 6.10667L12.7469 6.20444L12.8447 6.10667C14.2314 4.75556 16.0536 4 17.9647 4H18.2136C20.1425 4.06222 21.9558 4.88889 23.3158 6.32C24.6669 7.73333 25.4403 9.60889 25.4847 11.5911C25.5381 13.6889 24.7914 15.6622 23.3958 17.1644Z",fill:"#101010"})))}const u=f.forwardRef(l);n.p;var d,p;function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function b(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",h({width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,d||(d=f.createElement("g",{clipPath:"url(#clip0_1412_1063)"},f.createElement("path",{d:"M15.4934 14.0178C15.4934 13.4933 15.0667 13.0667 14.5423 13.0667H4.7467C4.22225 13.0667 3.79559 13.4933 3.79559 14.0178C3.79559 14.5422 4.22225 14.9689 4.7467 14.9689H14.5423C15.0667 14.9689 15.4934 14.5422 15.4934 14.0178Z",fill:"#101010"}),f.createElement("path",{d:"M4.7467 16.8711C4.22225 16.8711 3.79559 17.2978 3.79559 17.8222C3.79559 18.3467 4.22225 18.7733 4.7467 18.7733H10.6934C11.2178 18.7733 11.6445 18.3467 11.6445 17.8222C11.6445 17.2978 11.2178 16.8711 10.6934 16.8711H4.7467Z",fill:"#101010"}),f.createElement("path",{d:"M6.9867 26H3.80448C2.75559 26 1.90225 25.1467 1.90225 24.0978V7.35999C1.90225 6.3111 2.75559 5.45776 3.80448 5.45776H15.4934C16.5423 5.45776 17.3956 6.3111 17.3956 7.35999V13.2089C17.3956 13.7333 17.8223 14.16 18.3467 14.16C18.8711 14.16 19.2978 13.7333 19.2978 13.2089V7.35999C19.2978 5.26221 17.5911 3.55554 15.4934 3.55554H3.80448C1.7067 3.55554 3.05176e-05 5.26221 3.05176e-05 7.35999V24.0978C3.05176e-05 26.1955 1.7067 27.9022 3.80448 27.9022H6.9867C7.51114 27.9022 7.93781 27.4755 7.93781 26.9511C7.93781 26.4267 7.51114 26 6.9867 26Z",fill:"#101010"}),f.createElement("path",{d:"M20.9867 17.3244C19.8756 16.2133 18.0623 16.2133 16.9511 17.3244L11.7334 22.5333C11.6267 22.64 11.5378 22.7822 11.4934 22.9333L10.3556 26.6755C10.2578 27.0044 10.3467 27.3689 10.5867 27.6178C10.7645 27.8044 11.0134 27.9022 11.2711 27.9022C11.36 27.9022 11.44 27.8933 11.5289 27.8667L15.3689 26.8C15.5289 26.7555 15.6711 26.6755 15.7867 26.56L20.9956 21.36C22.1067 20.2489 22.1067 18.4355 20.9956 17.3244H20.9867ZM14.6134 25.04L12.6845 25.5733L13.2534 23.7155L16.7734 20.2044L18.1156 21.5467L14.6134 25.04ZM19.6445 20.0178L19.4578 20.2044L18.1156 18.8622L18.3023 18.6755C18.6756 18.3022 19.28 18.3022 19.6445 18.6755C20.0089 19.0489 20.0178 19.6533 19.6445 20.0178Z",fill:"#101010"}),f.createElement("path",{d:"M14.5423 9.26221H4.7467C4.22225 9.26221 3.79559 9.68888 3.79559 10.2133C3.79559 10.7378 4.22225 11.1644 4.7467 11.1644H14.5423C15.0667 11.1644 15.4934 10.7378 15.4934 10.2133C15.4934 9.68888 15.0667 9.26221 14.5423 9.26221Z",fill:"#101010"}))),p||(p=f.createElement("defs",null,f.createElement("clipPath",{id:"clip0_1412_1063"},f.createElement("rect",{width:21.8133,height:24.3467,fill:"white",transform:"translate(3.05176e-05 3.55554)"})))))}const y=f.forwardRef(b);n.p;var m,g;function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v.apply(this,arguments)}function w(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",v({width:35,height:35,viewBox:"0 0 35 35",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,m||(m=f.createElement("g",{clipPath:"url(#clip0_1438_4432)"},f.createElement("path",{d:"M19.4007 0H15.6093C14.5001 0 13.6027 0.897436 13.6027 2.00663V4.33593C12.6851 4.60818 11.8078 4.97119 10.9608 5.42495L9.30712 3.77125C8.5206 2.98473 7.25007 2.98473 6.46355 3.77125L3.78133 6.45347C2.99481 7.23999 2.99481 8.51052 3.78133 9.29703L5.43503 10.9507C4.98127 11.7877 4.60818 12.675 4.34601 13.5926H2.00663C0.897436 13.5926 0 14.4901 0 15.5993V19.3907C0 20.4999 0.897436 21.3973 2.00663 21.3973H4.33593C4.60818 22.3149 4.97119 23.1922 5.42495 24.0392L3.77125 25.6929C3.38807 26.0761 3.1864 26.5802 3.1864 27.1147C3.1864 27.6491 3.39816 28.1533 3.77125 28.5364L6.45347 31.2187C6.83665 31.6018 7.34082 31.8035 7.87525 31.8035C8.40968 31.8035 8.91386 31.5918 9.29703 31.2187L10.9507 29.565C11.7877 30.0187 12.675 30.3918 13.5926 30.654V32.9833C13.5926 34.0925 14.4901 34.9899 15.5993 34.9899H19.3907C20.4999 34.9899 21.3973 34.0925 21.3973 32.9833V30.654C22.3149 30.3817 23.1922 30.0187 24.0392 29.565L25.6929 31.2187C26.4794 32.0052 27.7499 32.0052 28.5364 31.2187L31.2187 28.5364C31.6018 28.1533 31.8035 27.6491 31.8035 27.1147C31.8035 26.5802 31.5918 26.0761 31.2187 25.6929L29.565 24.0392C30.0187 23.2022 30.3918 22.3149 30.654 21.3973H32.9833C34.0925 21.3973 34.9899 20.4999 34.9899 19.3907V15.5993C34.9899 14.4901 34.0925 13.5926 32.9833 13.5926H30.654C30.3817 12.675 30.0187 11.7978 29.565 10.9507L31.2187 9.29703C32.0052 8.51052 32.0052 7.23999 31.2187 6.45347L28.5364 3.77125C27.7499 2.98473 26.4794 2.98473 25.6929 3.77125L24.0392 5.42495C23.2022 4.97119 22.3149 4.5981 21.3973 4.33593V2.00663C21.4074 0.897436 20.5099 0 19.4007 0ZM23.6157 7.845C24.0694 8.13742 24.6644 8.06684 25.0475 7.68366L27.1247 5.60645L29.4036 7.88534L27.3264 9.96255C26.9432 10.3457 26.8827 10.9407 27.1651 11.3944C27.8709 12.5036 28.3751 13.7237 28.6574 15.0043C28.7784 15.5287 29.2423 15.9018 29.7767 15.9018H32.711V19.1184H29.7767C29.2423 19.1184 28.7684 19.4915 28.6574 20.0158C28.3751 21.2965 27.8709 22.5065 27.1651 23.6258C26.8727 24.0795 26.9432 24.6744 27.3264 25.0576L29.4036 27.1348L27.1247 29.4137L25.0475 27.3365C24.6644 26.9533 24.0694 26.8928 23.6157 27.1752C22.5065 27.881 21.2864 28.3852 20.0058 28.6675C19.4814 28.7885 19.1083 29.2524 19.1083 29.7868V32.7211H15.8917V29.7868C15.8917 29.2524 15.5186 28.7784 14.9942 28.6675C13.7136 28.3852 12.5036 27.881 11.3843 27.1752C10.9306 26.8827 10.3356 26.9533 9.95246 27.3365L7.87525 29.4137L5.59637 27.1348L7.67358 25.0576C8.05676 24.6744 8.11726 24.0795 7.83492 23.6258C7.12907 22.5166 6.62489 21.2965 6.34255 20.0158C6.22155 19.4915 5.75771 19.1184 5.22328 19.1184H2.28897V15.9018H5.22328C5.75771 15.9018 6.23163 15.5287 6.34255 15.0043C6.62489 13.7237 7.12907 12.5137 7.83492 11.3944C8.12734 10.9407 8.05676 10.3457 7.67358 9.96255L5.59637 7.88534L7.87525 5.60645L9.95246 7.68366C10.3356 8.06684 10.9306 8.12734 11.3843 7.845C12.4935 7.13915 13.7136 6.63498 14.9942 6.35264C15.5186 6.23163 15.8917 5.76779 15.8917 5.23336V2.29905H19.1083V5.23336C19.1083 5.76779 19.4814 6.24172 20.0058 6.35264C21.2864 6.63498 22.4964 7.13915 23.6157 7.845Z",fill:"#101010"}),f.createElement("path",{d:"M17.0514 8.84326C12.665 9.0651 9.06522 12.675 8.84338 17.0614C8.72238 19.5117 9.63998 21.9115 11.3744 23.6358C12.9978 25.2593 15.2162 26.1769 17.5152 26.1769C17.6564 26.1769 17.7976 26.1769 17.9488 26.1668C18.5841 26.1365 19.0681 25.592 19.0378 24.9669C19.0076 24.3316 18.4631 23.8476 17.8379 23.8778C16.0027 23.9686 14.2885 23.3031 12.9978 22.0225C11.7071 20.7418 11.0517 19.0176 11.1424 17.1824C11.3038 13.9657 13.9557 11.3137 17.1724 11.1423C19.0076 11.0516 20.8529 11.7877 22.1234 13.1086C24.7552 15.8614 24.0595 19.915 21.9117 22.083C21.468 22.5367 21.468 23.2627 21.9117 23.7064C22.3654 24.1501 23.0914 24.1501 23.5351 23.7064C25.0678 22.1636 26.0056 20.0158 26.1165 17.8277C26.2375 15.4682 25.4006 13.2397 23.7771 11.5356C22.0327 9.71045 19.5824 8.73234 17.0514 8.86343V8.84326Z",fill:"#101010"}))),g||(g=f.createElement("defs",null,f.createElement("clipPath",{id:"clip0_1438_4432"},f.createElement("rect",{width:35,height:35,fill:"white"})))))}const E=f.forwardRef(w),A=(n.p,"ecosystem"),P={Community:["Community","DAO","Governance"],DeFi:["DEX","DeFi","Launchpad","Lending","Marketplace","Payment"],Gaming:["Gaming"],Infra:["Gateway","Indexer","Infrastructure","Node Provider","Oracle"],NFT:["NFT"],Privacy:["Privacy","Identity"],Social:["Social"],Tooling:["Tooling"],Wallet:["Wallet","Hardware Wallet"],Bridge:["Bridge"]},_="https://tally.so/r/waxLBW",T=[{icon:y,href:_,title:"Get in touch",content:"Reach out directly if you need more support for your project."},{icon:u,href:"https://tally.so/r/3jlj59",title:"Request a dApp",content:"Can\u2019t find the application you\u2019re looking for? We want to know!"},{icon:E,href:"https://docs.scroll.io/en/getting-started/overview/",title:"Learn how to build with Scroll",content:"For a walkthrough, start with the User Guide's Setup page."}],k="https://twitter.com/",C=["All networks","Mainnet","Testnet"],x="6.5rem";var O,S,R,I,N,B,j,D,L=n(8200);function M(){return M=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M.apply(this,arguments)}function U(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",M({width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,O||(O=f.createElement("path",{d:"M12 24C18.6274 24 24 18.6274 24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 18.6274 5.37258 24 12 24Z",fill:"white"})),S||(S=f.createElement("path",{d:"M18.1656 14.7728V6.16602C18.1541 5.44585 17.594 4.86621 16.891 4.86621H8.12354C6.23173 4.89549 4.71143 6.48218 4.71143 8.42603C4.71143 9.08179 4.88289 9.64387 5.1458 10.1357C5.3687 10.5455 5.71734 10.932 6.06027 11.2189C6.15743 11.3008 6.11171 11.2657 6.40891 11.4531C6.82042 11.7107 7.28909 11.8395 7.28909 11.8395L7.28337 16.986C7.2948 17.2319 7.31766 17.4661 7.38053 17.6827C7.57486 18.4088 8.06639 18.965 8.73509 19.2343C9.01515 19.3456 9.3295 19.4217 9.66671 19.4275L16.6681 19.4509C18.0627 19.4509 19.1943 18.2917 19.1943 16.8572C19.2001 16.0082 18.7885 15.2471 18.1656 14.7728Z",fill:"#FFEEDA"})),R||(R=f.createElement("path",{d:"M18.3371 16.9206C18.3085 17.8398 17.5712 18.5775 16.6682 18.5775L11.8501 18.5599C12.233 18.1033 12.4674 17.5119 12.4674 16.8679C12.4674 15.8549 11.8787 15.1582 11.8787 15.1582H16.6739C17.5941 15.1582 18.3428 15.9252 18.3428 16.8679L18.3371 16.9206Z",fill:"#EBC28E"})),I||(I=f.createElement("path",{d:"M6.51799 10.4958C5.96359 9.95711 5.57494 9.26037 5.57494 8.43482V8.347C5.62067 6.93595 6.75232 5.80009 8.12974 5.7591H16.8972C17.1258 5.77081 17.3087 5.93475 17.3087 6.1748V13.7746C17.5088 13.8097 17.6059 13.839 17.8003 13.9092C17.9546 13.9678 18.166 14.0907 18.166 14.0907V6.1748C18.1546 5.45464 17.5945 4.875 16.8915 4.875H8.12403C6.23222 4.90427 4.71191 6.49097 4.71191 8.43482C4.71191 9.56483 5.21487 10.5309 6.0379 11.2101C6.09505 11.2569 6.14649 11.3155 6.29509 11.3155C6.55228 11.3155 6.73518 11.1047 6.72375 10.8763C6.71803 10.6831 6.63802 10.6129 6.51799 10.4958Z",fill:"#101010"})),N||(N=f.createElement("path",{d:"M16.6699 14.2733H9.79426C9.33131 14.2791 8.95981 14.6597 8.95981 15.134V16.1469C8.97124 16.6153 9.35989 17.0134 9.82284 17.0134H10.3315V16.1469H9.82284V15.1574C9.82284 15.1574 9.94858 15.1574 10.1029 15.1574C10.9716 15.1574 11.6118 15.9829 11.6118 16.867C11.6118 17.6516 10.9145 18.6528 9.74854 18.5708C8.71404 18.5006 8.15393 17.5579 8.15393 16.867V8.28365C8.15393 7.89722 7.8453 7.58105 7.46808 7.58105H6.78223V8.4593H7.2909V16.8729C7.26232 18.5825 8.47971 19.4432 9.74854 19.4432L16.6756 19.4666C18.0702 19.4666 19.2019 18.3074 19.2019 16.8729C19.2019 15.4384 18.0645 14.2733 16.6699 14.2733ZM18.3388 16.9256C18.3103 17.8448 17.573 18.5825 16.6699 18.5825L11.8518 18.565C12.2348 18.1083 12.4691 17.5169 12.4691 16.8729C12.4691 15.86 11.8804 15.1632 11.8804 15.1632H16.6756C17.5958 15.1632 18.3446 15.9302 18.3446 16.8729L18.3388 16.9256Z",fill:"#101010"})),B||(B=f.createElement("path",{d:"M14.8182 8.61848H9.63428V7.74023H14.8182C15.0525 7.74023 15.2468 7.93345 15.2468 8.17936C15.2468 8.41941 15.0582 8.61848 14.8182 8.61848Z",fill:"#101010"})),j||(j=f.createElement("path",{d:"M14.8182 12.7503H9.63428V11.8721H14.8182C15.0525 11.8721 15.2468 12.0653 15.2468 12.3112C15.2468 12.5512 15.0582 12.7503 14.8182 12.7503Z",fill:"#101010"})),D||(D=f.createElement("path",{d:"M15.7326 10.68H9.63428V9.80176H15.7269C15.9613 9.80176 16.1556 9.99497 16.1556 10.2409C16.1613 10.4809 15.967 10.68 15.7326 10.68Z",fill:"#101010"})))}const F=f.forwardRef(U),z=(n.p,[{name:a.VZ,slug:"layer1",icon:L.r,rpcUrl:a.$G.L1,explorer:a.wd.L1,chainId:a.Kj.L1,nativeTokenSymbol:a.VM,isL1:!0},{name:a.cR,slug:"layer2",icon:F,rpcUrl:a.$G.L2,explorer:a.wd.L2,chainId:a.Kj.L2,nativeTokenSymbol:a.VM,isL1:!1}]),$=[{chainId:a.Kj.L1,name:"Ether",symbol:a.VM,decimals:BigInt(18),native:!0,logoURI:L.Z},{chainId:a.Kj.L2,name:"Ether",symbol:a.VM,decimals:BigInt(18),native:!0,logoURI:L.Z}];var G=n(77303),H=n(97892),W=n.n(H),V=n(83027),q=n.n(V);const K="Scroll Origins NFT";W().extend(q());const Z=W()("2023-10-10T06:00:00Z"),J=(W()("2023-11-09T23:00:00Z"),W()("2023-11-24T23:00:00Z"),W()("2023-12-09T23:00:00Z").subtract(1,"ms")),Y=W()("2023-12-14T23:00:00Z"),Q=W()("2024-03-29T23:59:59Z"),X=W()("2023-12-14T11:30:42Z"),ee={10:"Epic",15:"Rare",75:"Common"},te=[{label:"Starts",date:Z,title:"Genesis Block"},{label:"Ends",date:J,title:"Program Ends"}],ne=Object.fromEntries(te.map((e=>[e.label,e.date.valueOf()]))),re=[{order:1,subject:"What are the values most important to Scroll?",options:[{key:"A",title:"Openness",explanation:"Yes! Scroll openly shares work and research with the public, engaging regularly with the community to foster an open Ethereum ecosystem."},{key:"B",title:"Community-Drive",explanation:"Yes! Scroll values shared ownership, so no single entity holds disproportionate power or influence. Scroll is committed to organically scaling an inclusive and fair ecosystem."},{key:"C",title:"Credible Neutrality",explanation:"Yes! Scroll strives to be fair and unbiased, without favoring any specific applications. Scroll\u2019s relationships with partners are policy-based, not relationship-based."}],answer:["A","B","C"],image:"/imgs/nft/flow-question-1.svg"},{order:2,subject:"What are the differences between a bytecode-compatible vs language-compatible ZK Rollup?",options:[{key:"A",title:"With bytecode-compatible zkEVMs, code works exactly the same as on Ethereum, providing additional security without the need to re-audit code",explanation:"This is true"},{key:"B",title:"Bytecode-compatible zkEVMs execute and prove the same bytecode as the EVM. This means developer tooling, Solidity, and compilers work exactly like on Ethereum.",explanation:"This is true"},{key:"C",title:"Unlike language-compatible ZK-Rollups, bytecode-compatible zkEVMS map opcodes onto custom ZK circuits",explanation:"This is true"}],answer:["A","B","C"],image:"/imgs/nft/flow-question-2.svg"}],ae="https://scroll.io/blog/scroll-origins-nft",ie="https://scroll.io/blog/designing-scroll-origins";const oe=n.p+"static/media/Scroll_BrandGuideline.2e07de17ec55276e68213fc46b3876cf.svg",se=n.p+"static/media/mediakit.e560c19ca0bed2d729cc.png",fe=n.p+"static/media/Scroll_Banner1.84c0661487cb113c38f5.png";const ce=n.p+"static/media/Scroll_Banner1.bbb483b6c623f1f3e436be015eba0514.svg",le=n.p+"static/media/Scroll_Banner2.08e98f14eba88ec85f51.png";const ue=n.p+"static/media/Scroll_Banner2.b709d8d968fa3a2e94f8af90c6e8a3f6.svg";const de=n.p+"static/media/Sample3-1.b7f2396c54db06383a813bb595ec2445.svg";const pe=n.p+"static/media/Sample3-2.afc95e3b7d81d0fca57301a0685430fe.svg",he=n.p+"static/media/Scroll_Logomark.b202dfa975e36bb14bc5.png";const be=n.p+"static/media/Scroll_Logomark.673577c8260b63ae56867bc9af6af514.svg";const ye=n.p+"static/media/Sample1-1.3417941aa3bb05c453781ebdd9674b34.svg";const me=n.p+"static/media/Sample1-2.3dc7784616e516e3eacb7e08e4f7a7dd.svg",ge=n.p+"static/media/Scroll_FullLogo.f99e4b7ab52f474105da.png";const ve=n.p+"static/media/Scroll_FullLogo.07032ebd8a84b79128eb669f2822bc5e.svg";const we=n.p+"static/media/Sample2-1.cba41e49be2bbc7906b053388a9890a8.svg";const Ee=n.p+"static/media/Sample2-2.622b24fe16632e6484a6766e8d1cd6f5.svg",Ae=n.p+"static/media/Scroll_InvertedLogo.8a450a0a88970b8e5798.png";const Pe=n.p+"static/media/Scroll_InvertedLogo.ea3b717f2a3ae7275378c2d43550dd38.svg",_e="https://www.figma.com/file/3yTcgzQzYy54dCEMg2MydD/Public?type=design&node-id=0%3A1&mode=design&t=tPrCkHpmVp1A00Q5-1",Te="https://s3-us-west-2.amazonaws.com/scroll-mainnet-frontend-assets/Scroll_BrandAssets.zip",ke=[{name:"Primary Logo",type:"largeImage",versions:[{title:"Full coloured logo on light background",type:"light",cover:ve,coverClass:"LogoDemo",formats:{svg:ve,png:ge},samples:[ye,me]},{title:"White logo on dark background",type:"dark",cover:Pe,coverClass:"LogoDemo",formats:{svg:Pe,png:Ae},samples:[we,Ee]}]},{name:"Logomark",type:"normalImage",versions:[{title:"Coloured Logo with Solid Background",context:"Note: Please make sure to always use this version that contains a beige background as 1:1 profile picture on all dapp.",cover:be,coverMaxWidth:"100%",formats:{svg:be,png:he},samples:[de,pe]}]},{name:"Banner",type:"onlyImage",versions:[{title:"",cover:ce,formats:{svg:ce,png:fe},samples:[]},{title:"",cover:ue,formats:{svg:ue,png:le},samples:[]}]},{name:"Brand Guideline",type:"onlyOneImage",versions:[{title:"",cover:oe,formats:{pdf:"https://s3-us-west-2.amazonaws.com/scroll-mainnet-frontend-assets/ScrollBrandGuideline.pdf"},samples:[]}]},{name:"Media Kit",type:"onlyOneImage",versions:[{title:"",cover:se,formats:{png:"https://s3-us-west-2.amazonaws.com/scroll-mainnet-frontend-assets/MediaKit.zip"},samples:[]}]}],Ce="https://scrollzkp.notion.site/scrollzkp/Scroll-Sticker-Contest-4ba50886794a4ab5b024ca792aadda59",xe="https://discord.gg/ymuDXbphct";n(73411);const Oe=[{label:"English",key:"en"},{label:"T\xfcrk\xe7e",key:"tr"}],Se=e=>[{label:Ie[e].all,key:"All"},{label:Ie[e].announcement,key:"Announcement"},{label:Ie[e].general,key:"General"},{label:Ie[e].technical,key:"Technical"},{label:Ie[e].ecosystem_highlights,key:"Ecosystem highlights"}],Re=e=>[{label:Ie[e].newest,key:"Newest"},{label:Ie[e].oldest,key:"Oldest"}],Ie={en:{title:"Scroll Blog",sub_title:"Learn about Scroll\u2019s technology, research, and latest developments.",category:"Category",all:"All",announcement:"Announcement",general:"General",technical:"Technical",ecosystem_highlights:"Ecosystem highlights",sort:"Order by",newest:"Newest",oldest:"Oldest",filters:"Filters",more_articles:"More articles from Scroll"},tr:{title:"Scroll Blog",sub_title:"Scroll teknolojisini, son geli\u015fmeleri ve ara\u015ft\u0131rmalar\u0131 \xf6\u011frenin.",category:"Kategori",all:"T\xfcm\xfc",announcement:"Duyuru",general:"Genel",technical:"Teknik",ecosystem_highlights:"Ekosistem vurgular\u0131",sort:"\u015euna g\xf6re s\u0131rala",newest:"En yeni",oldest:"En eski",filters:"Filtreler",more_articles:"Scroll'dan daha fazla makale"}};const Ne="/canvas-and-badges#discover";var Be=n(7325),je=n(44615);const De=(0,r.Oi)("REACT_APP_SCROLL_ORIGINS_NFT"),Le=(0,r.Oi)("REACT_APP_SCROLL_ORIGINS_NFT_V2"),Me={name:"Ethereum Year Badge",badgeContract:"0x3dacAd961e5e2de850F5E027c70b56b5Afa5DfeD",attesterProxy:"0x39fb5E85C7713657c2D9E869E974FF1e0B06F20C",description:"Check out the Ethereum Year Badge! It's like a digital trophy that shows off the year your wallet made its debut on Ethereum. It's a little present from Scroll to celebrate all the cool stuff you've done in the Ethereum ecosystem.",image:"/imgs/canvas/Badge_Ethereum_Year.png",native:!1,issuer:{origin:"https://scroll.io",name:"Scroll",logo:"https://scroll.io/static/media/Scroll_Logomark.673577c8260b63ae56867bc9af6af514.svg"},baseURL:`${(0,r.Oi)("REACT_APP_CANVAS_BACKEND_URI")}/badge`},Ue={nftAddress:[De,Le],nftAbi:je,validator:async(e,t)=>{const n=new Be.CH(De,je,e),r=new Be.CH(Le,je,e);let a=await n.balanceOf(t);return a||(a=await r.balanceOf(t)),!!a}};var Fe;function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ze.apply(this,arguments)}function $e(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",ze({width:32,height:33,viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,Fe||(Fe=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13 8.88766C13 7.23081 14.3431 5.88766 16 5.88766C17.6569 5.88766 19 7.23081 19 8.88766C19 10.5445 17.6569 11.8877 16 11.8877C14.3431 11.8877 13 10.5445 13 8.88766ZM16 3.88766C13.2386 3.88766 11 6.12624 11 8.88766C11 11.6491 13.2386 13.8877 16 13.8877C18.7614 13.8877 21 11.6491 21 8.88766C21 6.12624 18.7614 3.88766 16 3.88766ZM9.9961 26.377V19.931C9.99677 19.9311 9.99821 19.9263 10.0011 19.9169L10.0011 19.9169C10.0135 19.8757 10.0528 19.7453 10.1726 19.5418C10.3312 19.2724 10.6007 18.9299 11.0281 18.5924C11.8711 17.9269 13.3865 17.2375 15.9939 17.2535C18.6053 17.2695 20.1256 17.9656 20.9719 18.6304C21.4005 18.9671 21.6699 19.3059 21.8277 19.5696C21.9427 19.7618 21.982 19.8843 21.9949 19.9244C21.998 19.9341 21.9996 19.939 22.0003 19.9389L22.0418 26.377H9.9961ZM24.0418 26.377L24.0065 20.8908H27C27.5523 20.8908 28 21.3385 28 21.8908V26.377H24.0418ZM27 18.8908H23.7309C23.6749 18.7732 23.6121 18.6565 23.5439 18.5427C23.2608 18.0696 22.8286 17.5456 22.2073 17.0576C20.9539 16.073 18.9813 15.2718 16.0061 15.2535C13.0269 15.2352 11.0475 16.0289 9.78876 17.0227C9.1653 17.515 8.73221 18.0463 8.44911 18.5272C8.37891 18.6464 8.31462 18.7683 8.25789 18.8908H5C3.34315 18.8908 2 20.2339 2 21.8908V27.377C2 27.9292 2.44772 28.377 3 28.377H29C29.5523 28.377 30 27.9292 30 27.377V21.8908C30 20.2339 28.6569 18.8908 27 18.8908ZM7.9961 20.8908V26.377H4V21.8908C4 21.3385 4.44772 20.8908 5 20.8908H7.9961ZM6 10.8877C4.89543 10.8877 4 11.7831 4 12.8877C4 13.9922 4.89543 14.8877 6 14.8877C7.10457 14.8877 8 13.9922 8 12.8877C8 11.7831 7.10457 10.8877 6 10.8877ZM2 12.8877C2 10.6785 3.79086 8.88766 6 8.88766C8.20914 8.88766 10 10.6785 10 12.8877C10 15.0968 8.20914 16.8877 6 16.8877C3.79086 16.8877 2 15.0968 2 12.8877ZM24 12.8877C24 11.7831 24.8954 10.8877 26 10.8877C27.1046 10.8877 28 11.7831 28 12.8877C28 13.9922 27.1046 14.8877 26 14.8877C24.8954 14.8877 24 13.9922 24 12.8877ZM26 8.88766C23.7909 8.88766 22 10.6785 22 12.8877C22 15.0968 23.7909 16.8877 26 16.8877C28.2091 16.8877 30 15.0968 30 12.8877C30 10.6785 28.2091 8.88766 26 8.88766Z",fill:"currentColor"})))}const Ge=f.forwardRef($e);n.p;var He;function We(){return We=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},We.apply(this,arguments)}function Ve(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",We({width:32,height:33,viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,He||(He=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 13.1323C4 8.16176 8.02944 4.13232 13 4.13232C17.9706 4.13232 22 8.16176 22 13.1323C22 18.1029 17.9706 22.1323 13 22.1323C8.02944 22.1323 4 18.1029 4 13.1323ZM13 2.13232C6.92487 2.13232 2 7.05719 2 13.1323C2 19.2075 6.92487 24.1323 13 24.1323C15.6775 24.1323 18.1316 23.1757 20.0391 21.5856L28.2929 29.8394C28.6834 30.23 29.3166 30.23 29.7071 29.8394C30.0976 29.4489 30.0976 28.8158 29.7071 28.4252L21.4533 20.1714C23.0434 18.2639 24 15.8098 24 13.1323C24 7.05719 19.0751 2.13232 13 2.13232Z",fill:"currentColor"})))}const qe=f.forwardRef(Ve);n.p;var Ke;function Ze(){return Ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ze.apply(this,arguments)}function Je(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",Ze({width:32,height:33,viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,Ke||(Ke=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.9862 3.30151C27.0622 2.8489 26.8203 2.40268 26.3996 2.2193C25.9789 2.03591 25.4873 2.16245 25.2075 2.52618L15.2075 15.5225C15.0148 15.7729 14.9518 16.0997 15.0376 16.4038C15.1233 16.7079 15.3478 16.9536 15.6429 17.0664L20.2198 18.8163L17.0467 28.8303C16.9028 29.2846 17.0994 29.7773 17.5166 30.0077C17.9338 30.2381 18.4556 30.1421 18.7634 29.7783L29.7634 16.7783C29.9937 16.506 30.0617 16.1317 29.9417 15.7959C29.8217 15.4601 29.532 15.2136 29.1813 15.1489L25.1234 14.4009L26.9862 3.30151ZM21.8152 17.2851L17.6115 15.6779L24.3512 6.91871L22.9881 15.0404C22.8978 15.5789 23.2561 16.0903 23.7931 16.1893L27.1225 16.8031L20.4612 24.6755L22.4113 18.5212C22.5713 18.0163 22.3099 17.4742 21.8152 17.2851ZM5.67432 7.13234C5.12203 7.13234 4.67432 7.58005 4.67432 8.13234C4.67432 8.68462 5.12203 9.13234 5.67432 9.13234H12C12.5523 9.13234 13 8.68462 13 8.13234C13 7.58005 12.5523 7.13234 12 7.13234H5.67432ZM3 15.1323C2.44772 15.1323 2 15.5801 2 16.1323C2 16.6846 2.44772 17.1323 3 17.1323H12C12.5523 17.1323 13 16.6846 13 16.1323C13 15.5801 12.5523 15.1323 12 15.1323H3ZM5.67432 23.1323C5.12203 23.1323 4.67432 23.5801 4.67432 24.1323C4.67432 24.6846 5.12203 25.1323 5.67432 25.1323H12C12.5523 25.1323 13 24.6846 13 24.1323C13 23.5801 12.5523 23.1323 12 23.1323H5.67432Z",fill:"currentColor"})))}const Ye=f.forwardRef(Je);n.p;var Qe,Xe;function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},et.apply(this,arguments)}function tt(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",et({width:32,height:33,viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,Qe||(Qe=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.7935 9.50672C17.0598 8.02023 14.9401 8.02023 14.2065 9.50672L12.9848 11.9822L10.2529 12.3792C8.61246 12.6176 7.95743 14.6335 9.14447 15.7906L11.1213 17.7175L10.6546 20.4383C10.3744 22.0721 12.0893 23.3181 13.5565 22.5467L16 21.2621L18.4435 22.5467C19.9107 23.3181 21.6256 22.0721 21.3453 20.4383L20.8787 17.7175L22.8555 15.7906C24.0425 14.6335 23.3875 12.6176 21.7471 12.3792L19.0152 11.9822L17.7935 9.50672ZM13.2724 13.9614C13.9238 13.8668 14.4869 13.4576 14.7782 12.8674L16 10.3919L17.2217 12.8674C17.513 13.4576 18.0762 13.8668 18.7276 13.9614L21.4595 14.3584L19.4827 16.2853C19.0113 16.7448 18.7962 17.4068 18.9075 18.0556L19.3741 20.7764L16.9307 19.4918C16.348 19.1855 15.6519 19.1855 15.0693 19.4918L12.6258 20.7764L13.0925 18.0556C13.2038 17.4068 12.9887 16.7448 12.5173 16.2853L10.5405 14.3584L13.2724 13.9614Z",fill:"currentColor"})),Xe||(Xe=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.2972 2.42394C16.5497 1.78691 15.4503 1.78691 14.7027 2.42394L11.4648 5.18332L7.22398 5.52174C6.24496 5.59987 5.46754 6.37729 5.38942 7.35631L5.051 11.5971L2.29161 14.8351C1.65458 15.5826 1.65459 16.682 2.29161 17.4295L5.051 20.6675L5.38942 24.9083C5.46754 25.8873 6.24497 26.6647 7.22398 26.7429L11.4648 27.0813L14.7027 29.8407C15.4503 30.4777 16.5497 30.4777 17.2972 29.8407L20.5352 27.0813L24.776 26.7429C25.755 26.6647 26.5324 25.8873 26.6105 24.9083L26.949 20.6675L29.7083 17.4295C30.3454 16.682 30.3454 15.5826 29.7083 14.8351L26.949 11.5971L26.6105 7.35631C26.5324 6.37729 25.755 5.59987 24.776 5.52174L20.5352 5.18332L17.2972 2.42394ZM16 3.94617L19.238 6.70555C19.5583 6.97853 19.9566 7.14351 20.3761 7.17699L24.6169 7.5154L24.9553 11.7562C24.9888 12.1757 25.1537 12.574 25.4267 12.8943L28.1861 16.1323L25.4267 19.3703C25.1538 19.6906 24.9888 20.0889 24.9553 20.5084L24.6169 24.7492L20.3761 25.0876C19.9566 25.1211 19.5583 25.2861 19.238 25.5591L16 28.3184L12.762 25.5591C12.4417 25.2861 12.0434 25.1211 11.6239 25.0876L7.38308 24.7492L7.04466 20.5084C7.01118 20.0889 6.84621 19.6906 6.57323 19.3703L3.81384 16.1323L6.57323 12.8943C6.84621 12.574 7.01118 12.1757 7.04466 11.7562L7.38308 7.5154L11.6239 7.17699C12.0434 7.14351 12.4417 6.97854 12.762 6.70555L16 3.94617Z",fill:"currentColor"})))}const nt=f.forwardRef(tt);n.p;var rt;function at(){return at=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},at.apply(this,arguments)}function it(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",at({width:32,height:33,viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,rt||(rt=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 5.63232C12 4.8039 12.6716 4.13232 13.5 4.13232C14.3284 4.13232 15 4.8039 15 5.63232C15 6.46075 14.3284 7.13232 13.5 7.13232C12.6716 7.13232 12 6.46075 12 5.63232ZM13.5 2.13232C14.4793 2.13232 15.3647 2.53456 16 3.18284C16.6353 2.53456 17.5207 2.13232 18.5 2.13232C20.433 2.13232 22 3.69933 22 5.63232C22 6.16912 21.8792 6.6777 21.6632 7.13232H29C29.5523 7.13232 30 7.58004 30 8.13232V14.1323C30 14.6846 29.5523 15.1323 29 15.1323H27V29.1323C27 29.6846 26.5523 30.1323 26 30.1323H16H6C5.44772 30.1323 5 29.6846 5 29.1323V15.1323H3C2.44772 15.1323 2 14.6846 2 14.1323V8.13232C2 7.58004 2.44772 7.13232 3 7.13232H10.3368C10.1208 6.6777 10 6.16912 10 5.63232C10 3.69933 11.567 2.13232 13.5 2.13232ZM18.5 4.13232C17.6716 4.13232 17 4.8039 17 5.63232C17 6.46075 17.6716 7.13232 18.5 7.13232C19.3284 7.13232 20 6.46075 20 5.63232C20 4.8039 19.3284 4.13232 18.5 4.13232ZM17 9.13232H18.5H28V13.1323H26H17V9.13232ZM15 9.13232H13.5H4V13.1323H6H15V9.13232ZM15 15.1323V28.1323H7V15.1323H15ZM25 28.1323H17V15.1323H25V28.1323Z",fill:"currentColor"})))}const ot=f.forwardRef(it);n.p;var st,ft;function ct(){return ct=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ct.apply(this,arguments)}function lt(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",ct({width:77,height:76,viewBox:"0 0 77 76",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,st||(st=f.createElement("g",{filter:"url(#filter0_f_10775_2894)"},f.createElement("circle",{cx:38.4929,cy:38,r:8,fill:"white"}))),ft||(ft=f.createElement("defs",null,f.createElement("filter",{id:"filter0_f_10775_2894",x:.49292,y:0,width:76,height:76,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},f.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),f.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),f.createElement("feGaussianBlur",{stdDeviation:15,result:"effect1_foregroundBlur_10775_2894"})))))}const ut=f.forwardRef(lt);n.p;var dt,pt;function ht(){return ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ht.apply(this,arguments)}function bt(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",ht({width:64,height:64,viewBox:"0 0 64 64",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,dt||(dt=f.createElement("g",{filter:"url(#filter0_f_10775_2895)"},f.createElement("circle",{cx:32,cy:32,r:12,fill:"white"}))),pt||(pt=f.createElement("defs",null,f.createElement("filter",{id:"filter0_f_10775_2895",x:0,y:0,width:64,height:64,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},f.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),f.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),f.createElement("feGaussianBlur",{stdDeviation:10,result:"effect1_foregroundBlur_10775_2895"})))))}const yt=f.forwardRef(bt);n.p;var mt;function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gt.apply(this,arguments)}function vt(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",gt({width:21,height:21,viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,mt||(mt=f.createElement("circle",{cx:10.9062,cy:10.9849,r:9.5,fill:"white",stroke:"#101010"})))}const wt=f.forwardRef(vt);n.p;var Et;function At(){return At=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},At.apply(this,arguments)}function Pt(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",At({width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,Et||(Et=f.createElement("circle",{cx:8.49316,cy:8,r:7.5,fill:"white",stroke:"#101010"})))}const _t=f.forwardRef(Pt);n.p;var Tt;function kt(){return kt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kt.apply(this,arguments)}function Ct(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",kt({width:13,height:12,viewBox:"0 0 13 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,Tt||(Tt=f.createElement("circle",{cx:6.24219,cy:6,r:5.5,fill:"white",stroke:"#101010"})))}const xt=f.forwardRef(Ct);n.p;var Ot;function St(){return St=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},St.apply(this,arguments)}function Rt(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",St({width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,Ot||(Ot=f.createElement("circle",{cx:8,cy:8,r:7.5,fill:"white",stroke:"#101010"})))}const It=f.forwardRef(Rt);n.p;var Nt;function Bt(){return Bt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bt.apply(this,arguments)}function jt(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",Bt({width:17,height:16,viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,Nt||(Nt=f.createElement("circle",{cx:8.5022,cy:8,r:7.5,fill:"white",stroke:"#101010"})))}const Dt=f.forwardRef(jt);n.p;var Lt;function Mt(){return Mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mt.apply(this,arguments)}function Ut(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",Mt({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,Lt||(Lt=f.createElement("circle",{cx:10,cy:10,r:9.5,fill:"white",stroke:"#101010"})))}const Ft=f.forwardRef(Ut);n.p;var zt;function $t(){return $t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$t.apply(this,arguments)}function Gt(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",$t({width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,zt||(zt=f.createElement("circle",{cx:10,cy:10,r:9.5,fill:"white",stroke:"#101010"})))}const Ht=f.forwardRef(Gt);n.p;var Wt;function Vt(){return Vt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vt.apply(this,arguments)}function qt(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",Vt({width:13,height:13,viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,Wt||(Wt=f.createElement("circle",{cx:6.71045,cy:6.04004,r:5.5,fill:"white",stroke:"#101010"})))}const Kt=f.forwardRef(qt);n.p;var Zt;function Jt(){return Jt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jt.apply(this,arguments)}function Yt(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",Jt({width:12,height:13,viewBox:"0 0 12 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,Zt||(Zt=f.createElement("circle",{cx:6,cy:6.26624,r:5.5,fill:"white",stroke:"#101010"})))}const Qt=f.forwardRef(Yt);n.p;var Xt;function en(){return en=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},en.apply(this,arguments)}function tn(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",en({width:8,height:8,viewBox:"0 0 8 8",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,Xt||(Xt=f.createElement("circle",{cx:4,cy:4,r:3.5,fill:"white",stroke:"#101010"})))}const nn=f.forwardRef(tn);n.p;var rn;function an(){return an=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},an.apply(this,arguments)}function on(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",an({width:31,height:31,viewBox:"0 0 31 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,rn||(rn=f.createElement("path",{d:"M15.2061 1.62978L20.1436 10.6576L20.2139 10.7861L20.3424 10.8564L29.3702 15.7939L20.3424 20.7314L20.2139 20.8017L20.1436 20.9301L15.2061 29.958L10.2686 20.9301L10.1983 20.8017L10.0699 20.7314L1.04201 15.7939L10.0699 10.8564L10.1983 10.7861L10.2686 10.6576L15.2061 1.62978Z",fill:"white",stroke:"#101010"})))}const sn=f.forwardRef(on);n.p;var fn;function cn(){return cn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cn.apply(this,arguments)}function ln(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",cn({width:31,height:31,viewBox:"0 0 31 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,fn||(fn=f.createElement("path",{d:"M15.5001 1.38332L20.4376 10.4112L20.5078 10.5397L20.6363 10.6099L29.6642 15.5474L20.6363 20.4849L20.5078 20.5552L20.4376 20.6837L15.5001 29.7115L10.5626 20.6837L10.4923 20.5552L10.3638 20.4849L1.33596 15.5474L10.3638 10.6099L10.4923 10.5397L10.5626 10.4112L15.5001 1.38332Z",fill:"white",stroke:"#101010"})))}const un=f.forwardRef(ln);n.p;var dn;function pn(){return pn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pn.apply(this,arguments)}function hn(e,t){let{title:n,titleId:r,...a}=e;return f.createElement("svg",pn({width:32,height:33,viewBox:"0 0 32 33",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?f.createElement("title",{id:r},n):null,dn||(dn=f.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.00001 3.13232C5.59057 3.13232 5.22249 3.38192 5.07099 3.76229L2.07099 11.2943C1.94253 11.6168 1.99053 11.9828 2.19779 12.2613L15.1978 29.7294C15.3865 29.9829 15.6839 30.1323 16 30.1323C16.3161 30.1323 16.6135 29.9829 16.8022 29.7294L29.8022 12.2613C30.0095 11.9828 30.0575 11.6168 29.929 11.2943L26.929 3.76229C26.7775 3.38192 26.4094 3.13232 26 3.13232H6.00001ZM6.10402 6.57368L4.47471 10.6643H8.14841L6.10402 6.57368ZM9.45672 12.6643H4.99076L13.082 23.5365L9.45672 12.6643ZM18.918 23.5365L27.0093 12.6643H22.5433L18.918 23.5365ZM20.435 12.6643L16 25.9648L11.565 12.6643H20.435ZM19.649 10.6643H12.351L16 5.79899L19.649 10.6643ZM23.8521 10.6643H27.5253L25.8966 6.57521L23.8521 10.6643ZM24.382 5.13232H18L21.8292 10.2379L24.382 5.13232ZM14 5.13232H7.61953L10.171 10.2376L14 5.13232Z",fill:"currentColor"})))}const bn=f.forwardRef(hn),yn=(n.p,"canvas-badges"),mn=[{label:"For Users",key:"user",icon:"\ud83d\udc65",items:[{icon:nt,title:"Rock and Scroll",content:"Make your Scroll Canvas a showcase for your achievements. Share badges, stories, and milestones with the Scroll community."},{icon:ot,title:"Unlock Special Perks",content:"Earn special privileges and access through your badges, turning your achievements into new opportunities."},{icon:bn,title:"Collect Hidden Treasures",content:"Gather badges from various platforms and display them on Canvas."}]},{label:"For Developers",key:"developer",icon:"\ud83d\udee0\ufe0f",items:[{icon:Ye,title:"Permissionless, issue badges right away!",content:"Projects on Scroll can issue versatile, permissionless Badges to recognize contributions and boost engagement."},{icon:qe,title:"Find the right crowd",content:"Badges represents user traits. Leverage Badge traits to find your ideal users to drive growth."},{icon:Ge,title:"Activate User Engagement",content:"Guide, recognize and reward users with badges. Gamify DApp experience."}]}],gn=[{key:"minted",label:"Sort by most minted"},{key:"added",label:"Sort by latest added"}],vn=[{key:"all",label:"All categories"},{key:"Achievements",label:"\ud83c\udfc6 Achievements"},{key:"Identities",label:"\ud83d\udc64 Identities"},{key:"Others",label:"\ud83d\udc7d Others"}],wn="https://docs.scroll.xyz/en/developers/guides/canvas-badge-integration/",En="/canvas",An=[{image:"/imgs/canvas-badge/Ambient.webp",key:"Ambient",width:"13.9rem",top:0},{image:"/imgs/canvas-badge/Zebra.webp",key:"Zebra",width:"18.8rem",top:"13.5rem",left:"9.55rem"},{image:"/imgs/canvas-badge/Panda.png",key:"Panda",width:"13.5rem",top:0,left:"17.4rem"},{image:"/imgs/canvas-badge/Pencils.png",key:"Pencils",width:"16.9rem",top:"8.2rem",left:"27rem"},{image:"/imgs/canvas-badge/EAS.png",key:"EAS",width:"20.3rem",top:"13.5rem",left:"41.8rem"},{image:"/imgs/canvas-badge/SymTrader.png",key:"SymTrader",width:"13.5rem",top:0,left:"45.9rem"},{image:"/imgs/canvas/Badge_Ethereum_Year.png",key:"Ethererum",width:"16.9rem",top:"6.75rem",left:"59.45rem"},{image:"/imgs/canvas-badge/Passport.png",key:"Passport",width:"20.3rem",top:"13.5rem",left:"73.1rem"},{image:"/imgs/canvas-badge/Cog.png",key:"Cog",width:"12.5rem",top:0,left:"78.7rem"},{image:"/imgs/canvas-badge/Scrolly.png",key:"Scrolly",width:"13.5rem",top:0,left:"101.9rem"},{image:"/imgs/canvas-badge/Scroller.png",key:"Scroller",width:"16.8rem",top:"8.2rem",left:"92.8rem"},{image:"/imgs/canvas-badge/Flock-x.png",key:"Flock",width:"20.2rem",top:"13.5rem",left:"106.4rem"},{image:"/imgs/canvas-badge/Symbiosis.png",key:"Symbiosis",width:"13.8rem",top:0,left:"119rem"}],Pn=[{icon:ut,size:64,left:"21.95rem",top:"10.8rem"},{icon:yt,size:64,left:"125.4rem",top:"36.8rem"},{icon:wt,size:20,left:"4.7rem",top:"79.6rem"},{icon:_t,size:16,left:"19.5rem",top:"29.2rem"},{icon:xt,size:12,left:"5.2rem",top:"32rem"},{icon:It,size:16,left:"38.8rem",top:"13.2rem"},{icon:Dt,size:16,left:"65.55rem",top:"2.4rem"},{icon:Ft,size:20,left:"108.1rem",top:"37.7rem"},{icon:Ht,size:20,left:"136.8rem",top:"12.5rem"},{icon:Kt,size:12,left:"146.1rem",top:"20.3rem"},{icon:Qt,size:12,left:"148.6rem",top:"48.3rem"},{icon:nn,size:8,left:"135rem",top:"15.1rem"},{icon:sn,size:30.5,left:"121.5rem",top:"27.6rem"},{icon:un,size:30.5,left:"142rem",top:"70.3rem"}];n(15765)},73411:(e,t,n)=>{"use strict";n.d(t,{_M:()=>O});var r,a,i,o,s,f=n(97892),c=n.n(f),l=n(83027),u=n.n(l),d=n(72791);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function h(e,t){let{title:n,titleId:f,...c}=e;return d.createElement("svg",p({width:24,height:25,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":f},c),n?d.createElement("title",{id:f},n):null,r||(r=d.createElement("path",{d:"M19.3157 9.4958C18.7928 9.4958 18.3811 9.91861 18.3811 10.4304C18.3811 10.9423 18.8039 11.3651 19.3157 11.3651C20.8623 11.3651 22.1307 12.6224 22.1307 14.1801V21.6794C22.1307 22.1912 21.7079 22.614 21.1961 22.614C21.0292 22.614 20.8734 22.5695 20.7288 22.4916L17.9138 20.8671C17.7691 20.7893 17.6133 20.7448 17.4465 20.7448H11.8164C10.2698 20.7448 9.00139 19.4875 9.00139 17.9297V16.0493C9.00139 15.5264 8.57858 15.1147 8.06676 15.1147C7.55494 15.1147 7.13213 15.5375 7.13213 16.0493V17.9297C7.13213 20.5111 9.23505 22.614 11.8164 22.614H17.1905L19.783 24.1161C20.2058 24.3609 20.6954 24.4944 21.185 24.4944C22.7316 24.4944 24 23.2371 24 21.6794V14.1801C24 11.5987 21.8971 9.4958 19.3157 9.4958Z",fill:"#101010"})),a||(a=d.createElement("path",{d:"M2.81502 15.5041C3.30459 15.5041 3.79416 15.3706 4.21697 15.1258L6.80946 13.6238H12.1836C14.7649 13.6238 16.8679 11.5208 16.8679 8.93947V5.18982C16.8679 2.60846 14.7649 0.505537 12.1836 0.505537H4.68428C2.10292 0.494411 0 2.59733 0 5.17869V12.678C0 14.2246 1.2573 15.493 2.81502 15.493V15.5041ZM1.88039 5.18982C1.88039 3.64323 3.13769 2.3748 4.69541 2.3748H12.1947C13.7413 2.3748 15.0097 3.6321 15.0097 5.18982V8.93947C15.0097 10.4861 13.7524 11.7545 12.1947 11.7545H6.56467C6.39777 11.7545 6.242 11.799 6.09736 11.8769L3.28234 13.5014C3.13769 13.5792 2.98192 13.6238 2.81502 13.6238C2.3032 13.6238 1.88039 13.2009 1.88039 12.6891V5.18982Z",fill:"#101010"})),i||(i=d.createElement("path",{d:"M4.68428 7.99371C5.20047 7.99371 5.61891 7.57527 5.61891 7.05908C5.61891 6.5429 5.20047 6.12445 4.68428 6.12445C4.1681 6.12445 3.74965 6.5429 3.74965 7.05908C3.74965 7.57527 4.1681 7.99371 4.68428 7.99371Z",fill:"#101010"})),o||(o=d.createElement("path",{d:"M8.44506 7.99371C8.96124 7.99371 9.37969 7.57527 9.37969 7.05908C9.37969 6.5429 8.96124 6.12445 8.44506 6.12445C7.92888 6.12445 7.51043 6.5429 7.51043 7.05908C7.51043 7.57527 7.92888 7.99371 8.44506 7.99371Z",fill:"#101010"})),s||(s=d.createElement("path",{d:"M12.1947 7.99371C12.7109 7.99371 13.1293 7.57527 13.1293 7.05908C13.1293 6.5429 12.7109 6.12445 12.1947 6.12445C11.6785 6.12445 11.2601 6.5429 11.2601 7.05908C11.2601 7.57527 11.6785 7.99371 12.1947 7.99371Z",fill:"#101010"})))}const b=d.forwardRef(h);n.p;var y,m,g,v,w;function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}function A(e,t){let{title:n,titleId:r,...a}=e;return d.createElement("svg",E({width:24,height:19,viewBox:"0 0 24 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?d.createElement("title",{id:r},n):null,y||(y=d.createElement("path",{d:"M22.1576 1.95063V14.0706H14.9859C14.28 14.0706 13.56 14.2612 12.9247 14.6636V4.01181C12.9247 2.87534 13.8494 1.95063 14.9859 1.95063H22.1576ZM1.84235 1.95063H9.02118C10.1576 1.95063 11.0824 2.87534 11.0824 4.01181V14.6636C10.4753 14.2895 9.76235 14.0706 9.02118 14.0706H1.84235V1.95063ZM24 3.0871V1.02592C24 0.517688 23.5906 0.108276 23.0824 0.108276H14.9859C13.7929 0.108276 12.7129 0.651806 12 1.49886C11.2659 0.62357 10.1718 0.108276 9.01412 0.108276H0.917647C0.409412 0.108276 0 0.517688 0 1.02592V14.9883C0 15.4965 0.409412 15.913 0.917647 15.913H9.01412C10.1506 15.913 11.0753 16.8377 11.0753 17.9742C11.0753 18.4824 11.4847 18.8918 11.9929 18.8918C12.5012 18.8918 12.9106 18.4824 12.9106 17.9742C12.9106 16.8377 13.8353 15.913 14.9718 15.913H23.0682C23.5765 15.913 23.9859 15.5036 23.9859 14.9953V3.0871H24Z",fill:"black"})),m||(m=d.createElement("path",{d:"M4.94824 6.97651C4.46118 6.97651 4.06588 6.58122 4.06588 6.09416C4.06588 5.6071 4.46118 5.21181 4.94824 5.21181H7.53882C8.02588 5.21181 8.42118 5.6071 8.42118 6.09416C8.42118 6.58122 8.02588 6.97651 7.53882 6.97651H4.94824Z",fill:"black"})),g||(g=d.createElement("path",{d:"M4.94824 10.993C4.46118 10.993 4.06588 10.5977 4.06588 10.1106C4.06588 9.62357 4.46118 9.22828 4.94824 9.22828H7.53882C8.02588 9.22828 8.42118 9.62357 8.42118 10.1106C8.42118 10.5977 8.02588 10.993 7.53882 10.993H4.94824Z",fill:"black"})),v||(v=d.createElement("path",{d:"M16.4541 6.97651C15.9671 6.97651 15.5718 6.58122 15.5718 6.09416C15.5718 5.6071 15.9671 5.21181 16.4541 5.21181H19.0447C19.5318 5.21181 19.9271 5.6071 19.9271 6.09416C19.9271 6.58122 19.5318 6.97651 19.0447 6.97651H16.4541Z",fill:"black"})),w||(w=d.createElement("path",{d:"M16.4541 10.993C15.9671 10.993 15.5718 10.5977 15.5718 10.1106C15.5718 9.62357 15.9671 9.22828 16.4541 9.22828H19.0447C19.5318 9.22828 19.9271 9.62357 19.9271 10.1106C19.9271 10.5977 19.5318 10.993 19.0447 10.993H16.4541Z",fill:"black"})))}const P=d.forwardRef(A);n.p;var _,T;function k(){return k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k.apply(this,arguments)}function C(e,t){let{title:n,titleId:r,...a}=e;return d.createElement("svg",k({width:24,height:23,viewBox:"0 0 24 23",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":r},a),n?d.createElement("title",{id:r},n):null,_||(_=d.createElement("g",{clipPath:"url(#clip0_3222_1892)"},d.createElement("path",{d:"M10.8339 22.1298C10.1514 22.1298 9.50816 21.863 9.061 21.4002C8.65307 20.9923 8.40203 20.4588 8.34712 19.894C7.77444 19.8391 7.24099 19.588 6.83306 19.1722C6.43297 18.7722 6.18193 18.2622 6.11917 17.7052C5.57787 17.6503 5.0758 17.4071 4.68356 17.0227C3.94614 16.2853 3.78139 15.14 4.25209 14.2221L1.8594 11.9628C-0.627432 9.47596 -0.627432 5.45938 1.84371 2.99608C3.04398 1.79581 4.62864 1.13684 6.32314 1.13684C8.01763 1.13684 9.6023 1.78797 10.7947 2.98039L11.6812 3.84333L12.6932 2.83134C14.0896 1.54478 15.7056 0.870117 17.3609 0.870117C19.934 0.870117 22.3816 2.51754 23.4564 4.96515C24.5233 7.38922 24.0212 10.0016 22.0757 12.1354L22.1463 12.206C23.1347 13.1944 23.1347 14.7948 22.1463 15.7832C21.7148 16.2147 21.1735 16.4736 20.593 16.5285C20.5381 17.109 20.287 17.6503 19.8634 18.074C19.4163 18.5211 18.8593 18.78 18.2631 18.8271C18.2003 19.3997 17.9414 19.9253 17.5413 20.3254C17.0471 20.8197 16.4117 21.0785 15.737 21.0785C15.0623 21.0785 14.4269 20.8197 13.9484 20.3411L13.8072 20.1999L12.599 21.408C12.1519 21.8709 11.5086 22.1376 10.8261 22.1376L10.8339 22.1298ZM11.0065 16.3089C11.2497 16.3089 11.4851 16.403 11.6577 16.5834C11.8302 16.7639 11.9322 16.9914 11.9322 17.2346C11.9322 17.4777 11.8381 17.7131 11.6577 17.8857L10.3789 19.1644C10.2534 19.2899 10.1828 19.4547 10.1828 19.6272C10.1828 19.7998 10.2534 19.9646 10.3711 20.0901C10.4888 20.2156 10.6535 20.2784 10.8339 20.2784C11.0144 20.2784 11.1791 20.2078 11.289 20.0901L12.6069 18.7722C12.1754 17.8386 12.3872 16.6462 13.1247 15.9323C13.3208 15.7362 13.5404 15.5714 13.7758 15.4538C13.2423 14.4967 13.4071 13.1944 14.1994 12.4335C14.6858 11.9471 15.3212 11.6804 15.9959 11.6804C16.2469 11.6804 16.4901 11.7196 16.7255 11.7902C16.851 11.4843 17.0393 11.194 17.2746 10.9586C17.7374 10.4723 18.3886 10.2055 19.0789 10.2055C19.7144 10.2055 20.3106 10.433 20.7577 10.8331C22.5699 8.97389 22.5542 5.98498 20.7107 4.14928C19.8085 3.24712 18.6161 2.75289 17.3452 2.75289C16.0743 2.75289 14.8741 3.24712 13.9797 4.14928L12.9834 5.14558L15.0231 7.12249C15.533 7.60103 15.839 8.29923 15.839 9.05233C15.839 9.7976 15.5566 10.5036 15.0467 10.99C14.5681 11.4842 13.8699 11.7745 13.1325 11.7745C12.3951 11.7745 11.6969 11.4843 11.2105 10.9822L10.5751 10.3467L5.97012 14.9517C5.86813 15.0537 5.81322 15.1949 5.81322 15.3361C5.81322 15.4773 5.86813 15.6107 5.97012 15.7048C6.07995 15.8146 6.21331 15.8695 6.35452 15.8695C6.49573 15.8695 6.63693 15.8146 6.73892 15.7126L8.10393 14.3476C8.27652 14.175 8.51186 14.0731 8.75505 14.0731C8.99824 14.0731 9.23359 14.1672 9.40618 14.3476C9.57877 14.5281 9.68075 14.7556 9.68075 14.9988C9.68075 15.242 9.58661 15.4773 9.40618 15.6499L8.11177 16.9443C7.86074 17.2032 7.86074 17.6111 8.11177 17.87C8.22945 17.9955 8.39419 18.0583 8.57462 18.0583C8.75505 18.0583 8.9198 17.9877 9.02962 17.87L10.3162 16.5834C10.4888 16.4108 10.7241 16.3089 10.9673 16.3089H11.0065ZM14.9368 17.0384C14.7564 17.0384 14.5838 17.109 14.4583 17.2346C14.3171 17.3758 14.2465 17.5483 14.2465 17.7288C14.2465 17.9092 14.3171 18.0896 14.4426 18.2073L15.2663 19.031C15.3918 19.1565 15.5644 19.2272 15.7448 19.2272C15.9253 19.2272 16.0979 19.1565 16.2234 19.031C16.3724 18.882 16.443 18.7172 16.443 18.5368C16.443 18.3564 16.3724 18.1838 16.2469 18.0504L15.4311 17.2346C15.3055 17.109 15.1329 17.0384 14.9525 17.0384H14.9368ZM16.0116 13.5318C15.8311 13.5318 15.6586 13.6024 15.533 13.7279C15.3918 13.8691 15.3212 14.0417 15.3212 14.2221C15.3212 14.4025 15.3918 14.583 15.5173 14.7007L17.5884 16.7717C17.7139 16.8972 17.8865 16.9678 18.0669 16.9678C18.2474 16.9678 18.4121 16.8972 18.5376 16.7717C18.6867 16.6305 18.7573 16.4579 18.7573 16.2696C18.7573 16.0814 18.6867 15.9088 18.5612 15.7911L16.498 13.72C16.3724 13.5945 16.1999 13.5239 16.0194 13.5239L16.0116 13.5318ZM19.1025 12.0491C18.9142 12.0491 18.7416 12.1197 18.6239 12.2452C18.4749 12.3864 18.4043 12.559 18.4043 12.7473C18.4043 12.9356 18.4749 13.1081 18.6004 13.2258L19.8713 14.4967C19.9968 14.6222 20.1694 14.6928 20.3498 14.6928C20.5302 14.6928 20.7028 14.6222 20.8283 14.4967C20.9774 14.3476 21.048 14.1829 21.048 14.0025C21.048 13.822 20.9774 13.6494 20.8519 13.5161L19.5888 12.253C19.4633 12.1275 19.2907 12.0569 19.1103 12.0569L19.1025 12.0491ZM6.32314 2.98824C5.12287 2.98824 4.00105 3.45109 3.1538 4.29833C2.30656 5.13774 1.84371 6.25955 1.84371 7.45982C1.84371 8.65225 2.30656 9.78191 3.1538 10.6213L5.49158 12.8336L9.42187 8.90328C9.71997 8.58949 10.1514 8.4169 10.6064 8.4169C11.0615 8.4169 11.4929 8.59733 11.791 8.91113L12.552 9.67208C12.7638 9.88389 12.9991 9.92312 13.156 9.92312C13.3914 9.92312 13.6189 9.82898 13.7836 9.66424C13.8935 9.55441 14.0268 9.35828 14.0268 9.06018C14.0268 8.83268 13.9327 8.61302 13.7601 8.44828L9.50816 4.31402C8.66091 3.45893 7.53125 2.99608 6.33098 2.99608L6.32314 2.98824Z",fill:"#101010"}))),T||(T=d.createElement("defs",null,d.createElement("clipPath",{id:"clip0_3222_1892"},d.createElement("rect",{width:24.0054,height:21.2596,fill:"white",transform:"translate(0.000244141 0.870117)"})))))}const x=d.forwardRef(C);n.p;c().extend(u());c()("2024-05-15T09:00:00Z");const O=[{icon:b,href:"https://scrollzkp.notion.site/Scroll-Sessions-FAQ-498f70eb33b94d539746a43256956517",title:"FAQ",content:"You will find most answers here"},{icon:x,href:"https://tally.so/r/3lNV1B",title:"Support",content:"Marks are wrong or missing? Tell us"},{icon:P,href:"/sessions-terms-of-use",title:"Sessions\u2019 Terms of Use",content:"All legal things"}]},84710:(e,t,n)=>{"use strict";n.d(t,{Bn:()=>u,Gm:()=>o,Ji:()=>s,RX:()=>f,aB:()=>r,gj:()=>c,kI:()=>p,lk:()=>a,o5:()=>i,pB:()=>l,xv:()=>d});const r="tokenInfoMap",a="bridgeTransactions",i="bridgeTransactionsV2",o="claimTransactions2",s="appVersion",f="blockNumbers",c="userTokenList",l="environmentName",u="signedTerms",d="blogLanguage",p="displayedCanvas"},77303:(e,t,n)=>{"use strict";n.d(t,{GL:()=>i,VT:()=>a,mp:()=>o,tN:()=>s,xJ:()=>r});const r=3,a=5;let i=function(e){return e[e.ALL=0]="ALL",e[e.DEPOSIT=1]="DEPOSIT",e[e.WITHDRAW=2]="WITHDRAW",e[e.CLAIM=3]="CLAIM",e}({}),o=function(e){return e[e.Unknown=-1]="Unknown",e[e.Sent=0]="Sent",e[e.SentFailed=1]="SentFailed",e[e.Relayed=2]="Relayed",e[e.FailedRelayed=3]="FailedRelayed",e[e.RelayedReverted=4]="RelayedReverted",e[e.Skipped=5]="Skipped",e[e.Dropped=6]="Dropped",e[e.BatchDepositSent=7]="BatchDepositSent",e[e.BatchDepositRelayed=8]="BatchDepositRelayed",e[e.BatchDepositFailed=9]="BatchDepositFailed",e}({});const s=["ETH"]},44346:(e,t,n)=>{"use strict";n.d(t,{v:()=>N});var r=n(45683);function a(){return"undefined"!==typeof navigator&&/android/i.test(navigator.userAgent)}function i(){return"undefined"!==typeof navigator&&/iPhone|iPod/.test(navigator.userAgent)||"undefined"!==typeof navigator&&(/iPad/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)}function o(){return a()||i()}var s=n(66854),f=n(54269),c=new Map,l=e=>{let{projectId:t,walletConnectParameters:n,rkDetailsShowQrModal:r}=e,a={...n||{},projectId:t,showQrModal:!1};r&&(a={...a,showQrModal:!0});const i=JSON.stringify(a),o=c.get(i);if(o)return o;const s=(0,f.a)(a);return c.set(i,s),s};function u(e){let{projectId:t,walletConnectParameters:n}=e;if(!t||""===t)throw new Error("No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure");return"YOUR_PROJECT_ID"===t&&(t="21fef48091f12692cad574a6f7753643"),e=>function(e){let{projectId:t,walletDetails:n,walletConnectParameters:r}=e;return(0,s.K)((e=>({...l({projectId:t,walletConnectParameters:r,rkDetailsShowQrModal:n.rkDetails.showQrModal})(e),...n})))}({projectId:t,walletDetails:e,walletConnectParameters:n})}var d=n(87951);function p(e){const t="undefined"!==typeof window?window:void 0;if("undefined"===typeof t||"undefined"===typeof t.ethereum)return;const n=t.ethereum.providers;return n?n.find((t=>t[e])):t.ethereum[e]?t.ethereum:void 0}function h(e){const t=(e,n)=>{const[r,...a]=n.split("."),i=e[r];if(i)return 0===a.length?i:t(i,a.join("."))};if("undefined"!==typeof window)return t(window,e)}function b(e){let{flag:t,namespace:n}=e;return!(!n||"undefined"===typeof h(n))||!(!t||"undefined"===typeof p(t))}function y(e){let{flag:t,namespace:n,target:r}=e;const a=r||function(e){var t;let{flag:n,namespace:r}=e;const a="undefined"!==typeof window?window:void 0;if("undefined"===typeof a)return;if(r){const e=h(r);if(e)return e}const i=null===(t=a.ethereum)||void 0===t?void 0:t.providers;if(n){const e=p(n);if(e)return e}return"undefined"!==typeof i&&i.length>0?i[0]:a.ethereum}({flag:t,namespace:n});return function(e){return t=>{const n=e?{target:()=>({id:t.rkDetails.id,name:t.rkDetails.name,provider:e})}:{};return(0,s.K)((e=>({...(0,d.L)(n)(e),...t})))}}(a)}function m(e){return!(null===e||void 0===e||!e.isMetaMask)&&(!(e.isBraveWallet&&!e._events&&!e._state)&&(!e.isApexWallet&&(!e.isAvalanche&&(!e.isBackpack&&(!e.isBifrost&&(!e.isBitKeep&&(!e.isBitski&&(!e.isBlockWallet&&(!e.isCoinbaseWallet&&(!e.isDawn&&(!e.isEnkrypt&&(!e.isExodus&&(!e.isFrame&&(!e.isFrontier&&(!e.isGamestop&&(!e.isHyperPay&&(!e.isImToken&&(!e.isKuCoinWallet&&(!e.isMathWallet&&(!e.isNestWallet&&(!e.isOkxWallet&&!e.isOKExWallet&&(!e.isOneInchIOSWallet&&!e.isOneInchAndroidWallet&&(!e.isOpera&&(!e.isPhantom&&(!e.isPortal&&(!e.isRabby&&(!e.isRainbow&&(!e.isStatus&&(!e.isTalisman&&(!e.isTally&&(!e.isTokenPocket&&(!e.isTokenary&&(!e.isTrust&&!e.isTrustWallet&&(!e.isXDEFI&&(!e.isZeal&&!e.isZerion)))))))))))))))))))))))))))))))))))}var g=n(18854),v=e=>{let{appName:t,appIcon:r}=e;return{id:"coinbase",name:"Coinbase Wallet",shortName:"Coinbase",rdns:"com.coinbase.wallet",iconUrl:async()=>(await n.e(2697).then(n.bind(n,62697))).default,iconAccent:"#2c5ff6",iconBackground:"#2c5ff6",installed:!0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=org.toshi",ios:"https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",mobile:"https://coinbase.com/wallet/downloads",qrCode:"https://coinbase-wallet.onelink.me/q5Sx/fdb9b250",chrome:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",browserExtension:"https://coinbase.com/wallet"},...i()?{}:{qrCode:{getUri:e=>e,instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-mobile",steps:[{description:"wallet_connectors.coinbase.qr_code.step1.description",step:"install",title:"wallet_connectors.coinbase.qr_code.step1.title"},{description:"wallet_connectors.coinbase.qr_code.step2.description",step:"create",title:"wallet_connectors.coinbase.qr_code.step2.title"},{description:"wallet_connectors.coinbase.qr_code.step3.description",step:"scan",title:"wallet_connectors.coinbase.qr_code.step3.title"}]}},extension:{instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-extension",steps:[{description:"wallet_connectors.coinbase.extension.step1.description",step:"install",title:"wallet_connectors.coinbase.extension.step1.title"},{description:"wallet_connectors.coinbase.extension.step2.description",step:"create",title:"wallet_connectors.coinbase.extension.step2.title"},{description:"wallet_connectors.coinbase.extension.step3.description",step:"refresh",title:"wallet_connectors.coinbase.extension.step3.title"}]}}},createConnector:e=>{const n=(0,g.D)({appName:t,appLogoUrl:r,preference:v.preference});return(0,s.K)((t=>({...n(t),...e})))}}},w=n(31476);const E=(0,w.a)({id:11155111,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.sepolia.org"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xc8Af999e38273D658BE1b921b88A9Ddf005769cC",blockCreated:5317080}},testnet:!0});var A=n(85223);const P=(0,w.a)({id:534352,name:"Scroll",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.scroll.io"],webSocket:["wss://wss-rpc.scroll.io/ws"]}},blockExplorers:{default:{name:"Scrollscan",url:"https://scrollscan.com",apiUrl:"https://api.scrollscan.com/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14}},testnet:!1}),_=(0,w.a)({id:534351,name:"Scroll Sepolia",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://sepolia-rpc.scroll.io"]}},blockExplorers:{default:{name:"Blockscout",url:"https://sepolia-blockscout.scroll.io",apiUrl:"https://sepolia-blockscout.scroll.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:9473}},testnet:!0});var T=n(46595),k=n(80759),C=n(39666),x=n(62309);const O=(0,x.Oi)("REACT_APP_CONNECT_WALLET_PROJECT_ID"),S=[{groupName:"Popular",wallets:[e=>{var t,r;let{projectId:o,walletConnectParameters:s}=e;const f=b({flag:"isMetaMask"}),c=!f,l=e=>a()?e:i()?`metamask://wc?uri=${encodeURIComponent(e)}`:`https://metamask.app.link/wc?uri=${encodeURIComponent(e)}`;return{id:"metaMask",name:"MetaMask",rdns:"io.metamask",iconUrl:async()=>(await n.e(1798).then(n.bind(n,71798))).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:c?void 0:f,downloadUrls:{android:"https://play.google.com/store/apps/details?id=io.metamask",ios:"https://apps.apple.com/us/app/metamask/id1438144202",mobile:"https://metamask.io/download",qrCode:"https://metamask.io/download",chrome:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",edge:"https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",firefox:"https://addons.mozilla.org/firefox/addon/ether-metamask",opera:"https://addons.opera.com/extensions/details/metamask-10",browserExtension:"https://metamask.io/download"},mobile:{getUri:c?l:void 0},qrCode:c?{getUri:l,instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.qr_code.step1.description",step:"install",title:"wallet_connectors.metamask.qr_code.step1.title"},{description:"wallet_connectors.metamask.qr_code.step2.description",step:"create",title:"wallet_connectors.metamask.qr_code.step2.title"},{description:"wallet_connectors.metamask.qr_code.step3.description",step:"refresh",title:"wallet_connectors.metamask.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.extension.step1.description",step:"install",title:"wallet_connectors.metamask.extension.step1.title"},{description:"wallet_connectors.metamask.extension.step2.description",step:"create",title:"wallet_connectors.metamask.extension.step2.title"},{description:"wallet_connectors.metamask.extension.step3.description",step:"refresh",title:"wallet_connectors.metamask.extension.step3.title"}]}},createConnector:c?u({projectId:o,walletConnectParameters:s}):y({target:"undefined"!==typeof window?(null===(t=window.ethereum)||void 0===t||null===(r=t.providers)||void 0===r?void 0:r.find(m))??window.ethereum:void 0})}},v,()=>({id:"rabby",name:"Rabby Wallet",iconUrl:async()=>(await n.e(8277).then(n.bind(n,58277))).default,rdns:"io.rabby",iconBackground:"#8697FF",installed:b({flag:"isRabby"}),downloadUrls:{chrome:"https://chrome.google.com/webstore/detail/rabby-wallet/acmacodkjbdgmoleebolmdjonilkdbch",browserExtension:"https://rabby.io"},extension:{instructions:{learnMoreUrl:"https://rabby.io/",steps:[{description:"wallet_connectors.rabby.extension.step1.description",step:"install",title:"wallet_connectors.rabby.extension.step1.title"},{description:"wallet_connectors.rabby.extension.step2.description",step:"create",title:"wallet_connectors.rabby.extension.step2.title"},{description:"wallet_connectors.rabby.extension.step3.description",step:"refresh",title:"wallet_connectors.rabby.extension.step3.title"}]}},createConnector:y({flag:"isRabby"})}),e=>{let{projectId:t,walletConnectParameters:r}=e;const i=!b({namespace:"okxwallet"});return{id:"okx",name:"OKX Wallet",rdns:"com.okex.wallet",iconUrl:async()=>(await n.e(7500).then(n.bind(n,17500))).default,iconAccent:"#000",iconBackground:"#000",downloadUrls:{android:"https://play.google.com/store/apps/details?id=com.okinc.okex.gp",ios:"https://itunes.apple.com/app/id1327268470?mt=8",mobile:"https://okx.com/download",qrCode:"https://okx.com/download",chrome:"https://chrome.google.com/webstore/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge",edge:"https://microsoftedge.microsoft.com/addons/detail/okx-wallet/pbpjkcldjiffchgbbndmhojiacbgflha",firefox:"https://addons.mozilla.org/firefox/addon/okexwallet/",browserExtension:"https://okx.com/download"},mobile:{getUri:i?e=>a()?e:`okex://main/wc?uri=${encodeURIComponent(e)}`:void 0},qrCode:i?{getUri:e=>e,instructions:{learnMoreUrl:"https://okx.com/web3/",steps:[{description:"wallet_connectors.okx.qr_code.step1.description",step:"install",title:"wallet_connectors.okx.qr_code.step1.title"},{description:"wallet_connectors.okx.qr_code.step2.description",step:"create",title:"wallet_connectors.okx.qr_code.step2.title"},{description:"wallet_connectors.okx.qr_code.step3.description",step:"scan",title:"wallet_connectors.okx.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://okx.com/web3/",steps:[{description:"wallet_connectors.okx.extension.step1.description",step:"install",title:"wallet_connectors.okx.extension.step1.title"},{description:"wallet_connectors.okx.extension.step2.description",step:"create",title:"wallet_connectors.okx.extension.step2.title"},{description:"wallet_connectors.okx.extension.step3.description",step:"refresh",title:"wallet_connectors.okx.extension.step3.title"}]}},createConnector:i?u({projectId:t,walletConnectParameters:r}):y({namespace:"okxwallet"})}},e=>{let{projectId:t,walletConnectParameters:r}=e;const a=b({namespace:"zerionWallet",flag:"isZerion"}),o=!a,s=e=>i()?`zerion://wc?uri=${encodeURIComponent(e)}`:e;return{id:"zerion",name:"Zerion",rdns:"io.zerion.wallet",iconUrl:async()=>(await n.e(8653).then(n.bind(n,98653))).default,iconAccent:"#2962ef",iconBackground:"#2962ef",installed:o?void 0:a,downloadUrls:{android:"https://play.google.com/store/apps/details?id=io.zerion.android",ios:"https://apps.apple.com/app/apple-store/id1456732565",mobile:"https://link.zerion.io/pt3gdRP0njb",qrCode:"https://link.zerion.io/pt3gdRP0njb",chrome:"https://chrome.google.com/webstore/detail/klghhnkeealcohjjanjjdaeeggmfmlpl",browserExtension:"https://zerion.io/extension"},mobile:{getUri:o?s:void 0},qrCode:o?{getUri:s,instructions:{learnMoreUrl:"https://zerion.io/blog/announcing-the-zerion-smart-wallet/",steps:[{description:"wallet_connectors.zerion.qr_code.step1.description",step:"install",title:"wallet_connectors.zerion.qr_code.step1.title"},{description:"wallet_connectors.zerion.qr_code.step2.description",step:"create",title:"wallet_connectors.zerion.qr_code.step2.title"},{description:"wallet_connectors.zerion.qr_code.step3.description",step:"scan",title:"wallet_connectors.zerion.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://help.zerion.io/en/",steps:[{description:"wallet_connectors.zerion.extension.step1.description",step:"install",title:"wallet_connectors.zerion.extension.step1.title"},{description:"wallet_connectors.zerion.extension.step2.description",step:"create",title:"wallet_connectors.zerion.extension.step2.title"},{description:"wallet_connectors.zerion.extension.step3.description",step:"refresh",title:"wallet_connectors.zerion.extension.step3.title"}]}},createConnector:o?u({projectId:t,walletConnectParameters:r}):y({namespace:"zerionWallet",flag:"isZerion"})}},e=>{let{projectId:t,walletConnectParameters:r}=e;const a=o()?b({flag:"isTrust"}):b({flag:"isTrustWallet"}),i=!a;let s;i&&(s={getUri:e=>e,instructions:{learnMoreUrl:"https://trustwallet.com/",steps:[{description:"wallet_connectors.trust.qr_code.step1.description",step:"install",title:"wallet_connectors.trust.qr_code.step1.title"},{description:"wallet_connectors.trust.qr_code.step2.description",step:"create",title:"wallet_connectors.trust.qr_code.step2.title"},{description:"wallet_connectors.trust.qr_code.step3.description",step:"scan",title:"wallet_connectors.trust.qr_code.step3.title"}]}});return{id:"trust",name:"Trust Wallet",rdns:"com.trustwallet.app",iconUrl:async()=>(await n.e(6732).then(n.bind(n,56732))).default,installed:a||void 0,iconAccent:"#3375BB",iconBackground:"#fff",downloadUrls:{android:"https://play.google.com/store/apps/details?id=com.wallet.crypto.trustapp",ios:"https://apps.apple.com/us/app/trust-crypto-bitcoin-wallet/id1288339409",mobile:"https://trustwallet.com/download",qrCode:"https://trustwallet.com/download",chrome:"https://chrome.google.com/webstore/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph",browserExtension:"https://trustwallet.com/browser-extension"},mobile:{getUri:i?e=>`trust://wc?uri=${encodeURIComponent(e)}`:void 0},qrCode:s,extension:{instructions:{learnMoreUrl:"https://trustwallet.com/browser-extension",steps:[{description:"wallet_connectors.trust.extension.step1.description",step:"install",title:"wallet_connectors.trust.extension.step1.title"},{description:"wallet_connectors.trust.extension.step2.description",step:"create",title:"wallet_connectors.trust.extension.step2.title"},{description:"wallet_connectors.trust.extension.step3.description",step:"refresh",title:"wallet_connectors.trust.extension.step3.title"}]}},createConnector:i?u({projectId:t,walletConnectParameters:r}):o()?y({flag:"isTrust"}):y({flag:"isTrustWallet"})}},e=>{let{projectId:t,walletConnectParameters:a}=e;return{id:"binance",name:"Binance Wallet",iconUrl:async()=>(await n.e(5387).then(n.bind(n,75387))).default,iconBackground:"#000000",downloadUrls:{android:"https://play.google.com/store/apps/details?id=com.binance.dev",ios:"https://apps.apple.com/us/app/id1436799971",mobile:"https://www.binance.com/en/download",qrCode:"https://www.binance.com/en/web3wallet"},mobile:{getUri:e=>(0,x.Dt)()?e:`bnc://app.binance.com/cedefi/wc?uri=${encodeURIComponent(e)}`},qrCode:{getUri:e=>e,instructions:{learnMoreUrl:"https://www.binance.com/en/web3wallet",steps:[{description:"wallet_connectors.binance.qr_code.step1.description",step:"install",title:"wallet_connectors.binance.qr_code.step1.title"},{description:"wallet_connectors.binance.qr_code.step2.description",step:"create",title:"wallet_connectors.binance.qr_code.step2.title"},{description:"wallet_connectors.binance.qr_code.step3.description",step:"scan",title:"wallet_connectors.binance.qr_code.step3.title"}]}},createConnector:(0,r.d0)({projectId:t,walletConnectParameters:a})}}]},{groupName:"More",wallets:[e=>{let{projectId:t,walletConnectParameters:r}=e;const i=b({namespace:"bitkeep.ethereum",flag:"isBitKeep"}),o=!i;return{id:"bitget",name:"Bitget Wallet",iconUrl:async()=>(await n.e(5639).then(n.bind(n,45639))).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:o?void 0:i,downloadUrls:{android:"https://web3.bitget.com/en/wallet-download?type=0",ios:"https://apps.apple.com/app/bitkeep/id1395301115",mobile:"https://web3.bitget.com/en/wallet-download?type=2",qrCode:"https://web3.bitget.com/en/wallet-download",chrome:"https://chrome.google.com/webstore/detail/bitkeep-crypto-nft-wallet/jiidiaalihmmhddjgbnbgdfflelocpak",browserExtension:"https://web3.bitget.com/en/wallet-download"},extension:{instructions:{learnMoreUrl:"https://web3.bitget.com/en/academy",steps:[{description:"wallet_connectors.bitget.extension.step1.description",step:"install",title:"wallet_connectors.bitget.extension.step1.title"},{description:"wallet_connectors.bitget.extension.step2.description",step:"create",title:"wallet_connectors.bitget.extension.step2.title"},{description:"wallet_connectors.bitget.extension.step3.description",step:"refresh",title:"wallet_connectors.bitget.extension.step3.description"}]}},mobile:{getUri:o?e=>a()?e:`bitkeep://wc?uri=${encodeURIComponent(e)}`:void 0},qrCode:o?{getUri:e=>e,instructions:{learnMoreUrl:"https://web3.bitget.com/en/academy",steps:[{description:"wallet_connectors.bitget.qr_code.step1.description",step:"install",title:"wallet_connectors.bitget.qr_code.step1.title"},{description:"wallet_connectors.bitget.qr_code.step2.description",step:"create",title:"wallet_connectors.bitget.qr_code.step2.title"},{description:"wallet_connectors.bitget.qr_code.step3.description",step:"scan",title:"wallet_connectors.bitget.qr_code.step3.title"}]}}:void 0,createConnector:o?u({projectId:t,walletConnectParameters:r}):y({namespace:"bitkeep.ethereum",flag:"isBitKeep"})}},()=>({id:"nest",name:"Nest",iconUrl:async()=>(await n.e(3568).then(n.bind(n,53568))).default,iconBackground:"#fff0",installed:b({flag:"isNestWallet"}),downloadUrls:{browserExtension:"https://nestwallet.xyz"},extension:{instructions:{learnMoreUrl:"https://nestwallet.xyz",steps:[{description:"wallet_connectors.nestwallet.extension.step1.description",step:"install",title:"wallet_connectors.nestwallet.extension.step1.title"},{description:"wallet_connectors.nestwallet.extension.step2.description",step:"create",title:"wallet_connectors.nestwallet.extension.step2.title"},{description:"wallet_connectors.nestwallet.extension.step3.description",step:"refresh",title:"wallet_connectors.nestwallet.extension.step3.title"}]}},createConnector:y({flag:"isNestWallet"})}),e=>{let{projectId:t,walletConnectParameters:r}=e;const a=b({namespace:"coin98.provider",flag:"isCoin98"}),i=!a;return{id:"coin98",name:"Coin98 Wallet",iconUrl:async()=>(await n.e(5224).then(n.bind(n,15224))).default,installed:a,iconAccent:"#CDA349",iconBackground:"#fff",rdns:"coin98.com",downloadUrls:{android:"https://play.google.com/store/apps/details?id=coin98.crypto.finance.media",ios:"https://apps.apple.com/vn/app/coin98-super-app/id1561969966",mobile:"https://coin98.com/wallet",qrCode:"https://coin98.com/wallet",chrome:"https://chrome.google.com/webstore/detail/coin98-wallet/aeachknmefphepccionboohckonoeemg",browserExtension:"https://coin98.com/wallet"},mobile:{getUri:i?e=>e:void 0},qrCode:i?{getUri:e=>e,instructions:{learnMoreUrl:"https://coin98.com/wallet",steps:[{description:"wallet_connectors.coin98.qr_code.step1.description",step:"install",title:"wallet_connectors.coin98.qr_code.step1.title"},{description:"wallet_connectors.coin98.qr_code.step2.description",step:"create",title:"wallet_connectors.coin98.qr_code.step2.title"},{description:"wallet_connectors.coin98.qr_code.step3.description",step:"scan",title:"wallet_connectors.coin98.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://coin98.com/wallet",steps:[{description:"wallet_connectors.coin98.extension.step1.description",step:"install",title:"wallet_connectors.coin98.extension.step1.title"},{description:"wallet_connectors.coin98.extension.step2.description",step:"create",title:"wallet_connectors.coin98.extension.step2.title"},{description:"wallet_connectors.coin98.extension.step3.description",step:"refresh",title:"wallet_connectors.coin98.extension.step3.title"}]}},createConnector:i?u({projectId:t,walletConnectParameters:r}):y({namespace:"coin98Wallet",flag:"isCoin98"})}},e=>{let{projectId:t,walletConnectParameters:r}=e;const a=b({flag:"isTokenPocket"}),i=!a,s=e=>o()?`tpoutside://wc?uri=${encodeURIComponent(e)}`:e;return{id:"tokenPocket",name:"TokenPocket",rdns:"pro.tokenpocket",iconUrl:async()=>(await n.e(9537).then(n.bind(n,49537))).default,iconBackground:"#2980FE",installed:i?void 0:a,downloadUrls:{chrome:"https://chrome.google.com/webstore/detail/tokenpocket/mfgccjchihfkkindfppnaooecgfneiii",browserExtension:"https://extension.tokenpocket.pro/",android:"https://play.google.com/store/apps/details?id=vip.mytokenpocket",ios:"https://apps.apple.com/us/app/tp-global-wallet/id6444625622",qrCode:"https://tokenpocket.pro/en/download/app",mobile:"https://tokenpocket.pro/en/download/app"},mobile:{getUri:i?s:void 0},qrCode:i?{getUri:s,instructions:{learnMoreUrl:"https://help.tokenpocket.pro/en/",steps:[{description:"wallet_connectors.token_pocket.qr_code.step1.description",step:"install",title:"wallet_connectors.token_pocket.qr_code.step1.title"},{description:"wallet_connectors.token_pocket.qr_code.step2.description",step:"create",title:"wallet_connectors.token_pocket.qr_code.step2.title"},{description:"wallet_connectors.token_pocket.qr_code.step3.description",step:"scan",title:"wallet_connectors.token_pocket.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://help.tokenpocket.pro/en/extension-wallet/faq/installation-tutorial",steps:[{description:"wallet_connectors.token_pocket.extension.step1.description",step:"install",title:"wallet_connectors.token_pocket.extension.step1.title"},{description:"wallet_connectors.token_pocket.extension.step2.description",step:"create",title:"wallet_connectors.token_pocket.extension.step2.title"},{description:"wallet_connectors.token_pocket.extension.step3.description",step:"refresh",title:"wallet_connectors.token_pocket.extension.step3.title"}]}},createConnector:i?u({projectId:t,walletConnectParameters:r}):y({flag:"isTokenPocket"})}},e=>{let{projectId:t,options:r}=e;return{id:"walletConnect",name:"WalletConnect",installed:void 0,iconUrl:async()=>(await n.e(1250).then(n.bind(n,91250))).default,iconBackground:"#3b99fc",qrCode:{getUri:e=>e},createConnector:u({projectId:t,walletConnectParameters:r})}}]}],R=(0,k.ZP)(E,(e=>{e.rpcUrls.default.http=[C.$G.L1],e.fees={baseFeeMultiplier:1,defaultPriorityFee:()=>(0,T.vz)("1.5","gwei")}})),I=(0,k.ZP)(A.R,(e=>{e.rpcUrls.default.http=[C.$G.L1],e.fees={baseFeeMultiplier:1,defaultPriorityFee:()=>(0,T.vz)("0.05","gwei")}})),N=(0,r.vX)({wallets:S,appName:"Scroll",projectId:O,chains:[I,R,P,_]})},71465:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>o,op:()=>a,v$:()=>i});var r=n(37380);let a=function(e){return e.Summary="Summary",e.Selector="Selector",e}({}),i=function(e){return e.Fast="Fast",e.Economy="Economy",e}({});const o=(0,r.Ue)()(((e,t)=>({bridgeSummaryType:a.Summary,depositBatchMode:i.Fast,batchDepositConfig:{feeAmountPerTx:0n,minAmountPerTx:0n,maxTxsPerBatch:0n,maxDelayPerBatch:0n,safeBridgeGasLimit:0n},depositAmountIsVaild:!0,changeBridgeSummaryType:t=>{e({bridgeSummaryType:t})},changeDepositBatchMode:t=>{e({depositBatchMode:t})},changeBatchDepositConfig:t=>{e({batchDepositConfig:t})},changeDepositAmountIsVaild:t=>{e({depositAmountIsVaild:t})}})))},62309:(e,t,n)=>{"use strict";n.d(t,{Qb:()=>O,U_:()=>x,QJ:()=>se,o5:()=>ve,mb:()=>E,d_:()=>ge,IN:()=>de,hA:()=>pe,dN:()=>p,p6:()=>S,HN:()=>d,Cz:()=>s,DR:()=>h,h_:()=>me,Dt:()=>b,mC:()=>f,Kg:()=>we,VB:()=>c,Zz:()=>fe,vV:()=>u,sl:()=>l,fs:()=>Pe,Oi:()=>o,U0:()=>k,Hf:()=>le,Ak:()=>i,If:()=>oe,Ty:()=>_,Lx:()=>R,FP:()=>A,cJ:()=>P});var r=n(763),a=n.n(r);n(61211);const i=(e,t)=>{if((null===e||void 0===e?void 0:e.length)!==(null===t||void 0===t?void 0:t.length))return!1;if(void 0===e&&void 0===t)return!0;if(void 0===e||void 0===t)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0};function o(e){if((0,r.isNil)({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BADGE_INDEXER_URL:"https://canvas-indexer.scroll.cat",REACT_APP_L2_USDC_GATEWAY_PROXY_ADDR:"",REACT_APP_L2_ETH_GATEWAY_PROXY_ADDR:"0x91e8ADDFe1358aCa5314c644312d38237fC1101C",REACT_APP_L1_MESSAGE_QUEUE:"0xF0B2293F5D834eAe920c6974D50957A1732de763",REACT_APP_L2_SWAP_URI:"https://uniswap-showcase.sepolia.scroll.xyz/",REACT_APP_GOOGLE_ANALYTICS_ID:"G-XR3MGVSHFC",REACT_APP_EXTERNAL_EXPLORER_URI_L1:"https://sepolia.etherscan.io",REACT_APP_EXTERNAL_EXPLORER_URI_L2:"https://sepolia.scrollscan.com",REACT_APP_ROLLUPSCAN_API_URI:"https://sepolia-api-re.scroll.io/api",REACT_APP_L1_SCROLL_MESSENGER:"0x50c7d3e7f7c656493D1D76aaa1a836CedfCBB16A",REACT_APP_SCROLL_CHAIN:"0x2D567EcE699Eabe5afCd141eDB7A4f2D0D6ce8a0",REACT_APP_NAME:"scroll.io",REACT_APP_SCROLL_ORIGINS_NFT_V2:"0xDd7d857F570B0C211abfe05cd914A85BefEC2464",REACT_APP_L2_SCROLL_MESSENGER:"0xBa50f5340FB9F3Bd074bD638c9BE13eCB36E603d",REACT_APP_L1_MESSAGE_QUEUE_WITH_GAS_PRICE_ORACLE:"0xF0B2293F5D834eAe920c6974D50957A1732de763",REACT_APP_SCROLL_ORIGINS_NFT:"0x90a274D591d5AB1a25f0DD0F06F28533C34D7d9f",REACT_APP_L1_WETH_GATEWAY_PROXY_ADDR:"0x3dA0BF44814cfC678376b3311838272158211695",REACT_APP_L2_WETH_GATEWAY_PROXY_ADDR:"0x481B20A927206aF7A754dB8b904B052e2781ea27",REACT_APP_NFT_API_URI:"https://nft.scroll.io",REACT_APP_ETHEREUM_YEAR_BADGE_API_URI:"https://genesis-nft-backend-git-sepolia-scroll-tech.vercel.app",REACT_APP_BRIDGE_API_URI:"https://sepolia-api-bridge-v2.scroll.io/api",REACT_APP_EAS_EXPLORER_URL:"https://scroll-sepolia.easscan.org",REACT_APP_EXTERNAL_EXPLORER_URI_DORA:"https://www.ondora.xyz/network/scroll-sepolia",REACT_APP_SENTRY_DSN:"https://ca6f303c47c5bb4f0077d0cf6ae31b52@sentry.scroll.io/2",REACT_APP_CONNECT_WALLET_PROJECT_ID:"14efbaafcf5232a47d93a68229b71028",REACT_APP_L2_SCAN_URI:"https://scroll-sepolia.l2scan.co",REACT_APP_L1_DAI_GATEWAY_PROXY_ADDR:"0x8b0B9c4e9f41b9bbDEfFee24F9f11C328093d248",REACT_APP_CHAIN_ID_L1:"11155111",REACT_APP_OKX_URI:"https://www.okx.com/web3/explorer/scroll?channelId=scroll",REACT_APP_L2_DAI_GATEWAY_PROXY_ADDR:"0xbF28c28490988026Dca2396148DE50136A54534e",REACT_APP_CHAIN_ID_L2:"534351",REACT_APP_ETHERSCAN_L2:"https://sepolia.scrollscan.com",REACT_APP_MAIN_ENVIRONMENT:"Mainnet",REACT_APP_L1_GATEWAY_ROUTER_PROXY_ADDR:"0x13FBE0D0e5552b8c9c4AE9e2435F38f37355998a",REACT_APP_L1_GAS_PRICE_ORACLE:"0x5300000000000000000000000000000000000002",REACT_APP_API_BASE_URI:"https://sepolia-api.scroll.io",REACT_APP_L2_GATEWAY_ROUTER_PROXY_ADDR:"0x9aD3c5617eCAa556d6E166787A97081907171230",REACT_APP_CANVAS_BACKEND_URI:"https://skelly-backend-git-sepolia-scroll-tech.vercel.app",REACT_APP_PROFILE_REGISTRY_ADDRESS:"0x26aa585d5Da74A373E58c4fA723E1E1f6FD6474f",REACT_APP_NFT_VIEWER_URL:"https://nft.scroll.io",REACT_APP_BADGE_REGISTRY_URL:"https://badge-registry.canvas.scroll.cat",REACT_APP_L1_BATCH_BRIDGE_GATEWAY_PROXY_ADDR:"0xE86ad3312FA693aDeD34dEc3899176d97ac883B2",REACT_APP_UNIFRA_API_KEY:"9d431c1c-d717-4931-9595-ad0b3a246d13",REACT_APP_PREFIX_CLS:"scroll",REACT_APP_VERSION:"5.3.0",REACT_APP_L1_LIDO_GATEWAY_PROXY_ADDR:"0xF22B24fa7c3168f30b17fd97b71bdd3162DDe029",REACT_APP_L2_LIDO_GATEWAY_PROXY_ADDR:"0x635B054A092F6aE61Ce0Fddc397A704F6626510D",REACT_APP_OPEN_BLOCK_URI:"http://obl-data-gateway-dev-568660380.us-east-1.elb.amazonaws.com:8000",REACT_APP_EAS_GRAPHQL_URL:"https://scroll-sepolia.easscan.org/graphql",REACT_APP_FFRONTENDS_URL:"https://sepolia.env.scroll.io",REACT_APP_SCROLL_ENVIRONMENT:"Sepolia",REACT_APP_SCROLL_VENUS_URI:"https://sepolia-venus.scroll.io",REACT_APP_L1_PUFFER_GATEWAY_PROXY_ADDR:"0xA033Ff09f2da45f0e9ae495f525363722Df42b2a",REACT_APP_EXTERNAL_RPC_URI_L1:"https://ethereum-sepolia.blockpi.network/v1/rpc/public",REACT_APP_L1_CUSTOM_ERC20_GATEWAY_PROXY_ADDR:"0x31C994F2017E71b82fd4D8118F140c81215bbb37",REACT_APP_L2_PUFFER_GATEWAY_PROXY_ADDR:"0x9eBf2f33526CD571f8b2ad312492cb650870CFd6",REACT_APP_BADGE_SCHEMA:"0xa35b5470ebb301aa5d309a8ee6ea258cad680ea112c86e456d5f2254448afc74",REACT_APP_EXTERNAL_RPC_URI_L2:"https://sepolia-rpc.scroll.io",REACT_APP_L1_STANDARD_ERC20_GATEWAY_PROXY_ADDR:"0x65D123d6389b900d954677c26327bfc1C3e88A13",REACT_APP_ETH_SYMBOL:"ETH",REACT_APP_L2_CUSTOM_ERC20_GATEWAY_PROXY_ADDR:"0x058dec71E53079F9ED053F3a0bBca877F6f3eAcf",REACT_APP_EAS_ADDRESS:"0xaEF4103A04090071165F78D45D83A0C0782c2B2a",REACT_APP_L1_ETH_GATEWAY_PROXY_ADDR:"0x8A54A2347Da2562917304141ab67324615e9866d",REACT_APP_L1_USDC_GATEWAY_PROXY_ADDR:"",REACT_APP_L2_STANDARD_ERC20_GATEWAY_PROXY_ADDR:"0xaDcA915971A336EA2f5b567e662F5bd74AEf9582"}[e]))throw new Error(`${e} not defined in .env`);return{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BADGE_INDEXER_URL:"https://canvas-indexer.scroll.cat",REACT_APP_L2_USDC_GATEWAY_PROXY_ADDR:"",REACT_APP_L2_ETH_GATEWAY_PROXY_ADDR:"0x91e8ADDFe1358aCa5314c644312d38237fC1101C",REACT_APP_L1_MESSAGE_QUEUE:"0xF0B2293F5D834eAe920c6974D50957A1732de763",REACT_APP_L2_SWAP_URI:"https://uniswap-showcase.sepolia.scroll.xyz/",REACT_APP_GOOGLE_ANALYTICS_ID:"G-XR3MGVSHFC",REACT_APP_EXTERNAL_EXPLORER_URI_L1:"https://sepolia.etherscan.io",REACT_APP_EXTERNAL_EXPLORER_URI_L2:"https://sepolia.scrollscan.com",REACT_APP_ROLLUPSCAN_API_URI:"https://sepolia-api-re.scroll.io/api",REACT_APP_L1_SCROLL_MESSENGER:"0x50c7d3e7f7c656493D1D76aaa1a836CedfCBB16A",REACT_APP_SCROLL_CHAIN:"0x2D567EcE699Eabe5afCd141eDB7A4f2D0D6ce8a0",REACT_APP_NAME:"scroll.io",REACT_APP_SCROLL_ORIGINS_NFT_V2:"0xDd7d857F570B0C211abfe05cd914A85BefEC2464",REACT_APP_L2_SCROLL_MESSENGER:"0xBa50f5340FB9F3Bd074bD638c9BE13eCB36E603d",REACT_APP_L1_MESSAGE_QUEUE_WITH_GAS_PRICE_ORACLE:"0xF0B2293F5D834eAe920c6974D50957A1732de763",REACT_APP_SCROLL_ORIGINS_NFT:"0x90a274D591d5AB1a25f0DD0F06F28533C34D7d9f",REACT_APP_L1_WETH_GATEWAY_PROXY_ADDR:"0x3dA0BF44814cfC678376b3311838272158211695",REACT_APP_L2_WETH_GATEWAY_PROXY_ADDR:"0x481B20A927206aF7A754dB8b904B052e2781ea27",REACT_APP_NFT_API_URI:"https://nft.scroll.io",REACT_APP_ETHEREUM_YEAR_BADGE_API_URI:"https://genesis-nft-backend-git-sepolia-scroll-tech.vercel.app",REACT_APP_BRIDGE_API_URI:"https://sepolia-api-bridge-v2.scroll.io/api",REACT_APP_EAS_EXPLORER_URL:"https://scroll-sepolia.easscan.org",REACT_APP_EXTERNAL_EXPLORER_URI_DORA:"https://www.ondora.xyz/network/scroll-sepolia",REACT_APP_SENTRY_DSN:"https://ca6f303c47c5bb4f0077d0cf6ae31b52@sentry.scroll.io/2",REACT_APP_CONNECT_WALLET_PROJECT_ID:"14efbaafcf5232a47d93a68229b71028",REACT_APP_L2_SCAN_URI:"https://scroll-sepolia.l2scan.co",REACT_APP_L1_DAI_GATEWAY_PROXY_ADDR:"0x8b0B9c4e9f41b9bbDEfFee24F9f11C328093d248",REACT_APP_CHAIN_ID_L1:"11155111",REACT_APP_OKX_URI:"https://www.okx.com/web3/explorer/scroll?channelId=scroll",REACT_APP_L2_DAI_GATEWAY_PROXY_ADDR:"0xbF28c28490988026Dca2396148DE50136A54534e",REACT_APP_CHAIN_ID_L2:"534351",REACT_APP_ETHERSCAN_L2:"https://sepolia.scrollscan.com",REACT_APP_MAIN_ENVIRONMENT:"Mainnet",REACT_APP_L1_GATEWAY_ROUTER_PROXY_ADDR:"0x13FBE0D0e5552b8c9c4AE9e2435F38f37355998a",REACT_APP_L1_GAS_PRICE_ORACLE:"0x5300000000000000000000000000000000000002",REACT_APP_API_BASE_URI:"https://sepolia-api.scroll.io",REACT_APP_L2_GATEWAY_ROUTER_PROXY_ADDR:"0x9aD3c5617eCAa556d6E166787A97081907171230",REACT_APP_CANVAS_BACKEND_URI:"https://skelly-backend-git-sepolia-scroll-tech.vercel.app",REACT_APP_PROFILE_REGISTRY_ADDRESS:"0x26aa585d5Da74A373E58c4fA723E1E1f6FD6474f",REACT_APP_NFT_VIEWER_URL:"https://nft.scroll.io",REACT_APP_BADGE_REGISTRY_URL:"https://badge-registry.canvas.scroll.cat",REACT_APP_L1_BATCH_BRIDGE_GATEWAY_PROXY_ADDR:"0xE86ad3312FA693aDeD34dEc3899176d97ac883B2",REACT_APP_UNIFRA_API_KEY:"9d431c1c-d717-4931-9595-ad0b3a246d13",REACT_APP_PREFIX_CLS:"scroll",REACT_APP_VERSION:"5.3.0",REACT_APP_L1_LIDO_GATEWAY_PROXY_ADDR:"0xF22B24fa7c3168f30b17fd97b71bdd3162DDe029",REACT_APP_L2_LIDO_GATEWAY_PROXY_ADDR:"0x635B054A092F6aE61Ce0Fddc397A704F6626510D",REACT_APP_OPEN_BLOCK_URI:"http://obl-data-gateway-dev-568660380.us-east-1.elb.amazonaws.com:8000",REACT_APP_EAS_GRAPHQL_URL:"https://scroll-sepolia.easscan.org/graphql",REACT_APP_FFRONTENDS_URL:"https://sepolia.env.scroll.io",REACT_APP_SCROLL_ENVIRONMENT:"Sepolia",REACT_APP_SCROLL_VENUS_URI:"https://sepolia-venus.scroll.io",REACT_APP_L1_PUFFER_GATEWAY_PROXY_ADDR:"0xA033Ff09f2da45f0e9ae495f525363722Df42b2a",REACT_APP_EXTERNAL_RPC_URI_L1:"https://ethereum-sepolia.blockpi.network/v1/rpc/public",REACT_APP_L1_CUSTOM_ERC20_GATEWAY_PROXY_ADDR:"0x31C994F2017E71b82fd4D8118F140c81215bbb37",REACT_APP_L2_PUFFER_GATEWAY_PROXY_ADDR:"0x9eBf2f33526CD571f8b2ad312492cb650870CFd6",REACT_APP_BADGE_SCHEMA:"0xa35b5470ebb301aa5d309a8ee6ea258cad680ea112c86e456d5f2254448afc74",REACT_APP_EXTERNAL_RPC_URI_L2:"https://sepolia-rpc.scroll.io",REACT_APP_L1_STANDARD_ERC20_GATEWAY_PROXY_ADDR:"0x65D123d6389b900d954677c26327bfc1C3e88A13",REACT_APP_ETH_SYMBOL:"ETH",REACT_APP_L2_CUSTOM_ERC20_GATEWAY_PROXY_ADDR:"0x058dec71E53079F9ED053F3a0bBca877F6f3eAcf",REACT_APP_EAS_ADDRESS:"0xaEF4103A04090071165F78D45D83A0C0782c2B2a",REACT_APP_L1_ETH_GATEWAY_PROXY_ADDR:"0x8A54A2347Da2562917304141ab67324615e9866d",REACT_APP_L1_USDC_GATEWAY_PROXY_ADDR:"",REACT_APP_L2_STANDARD_ERC20_GATEWAY_PROXY_ADDR:"0xaDcA915971A336EA2f5b567e662F5bd74AEf9582"}[e]}const s=function(e,t){return`${e}/${arguments.length>2&&void 0!==arguments[2]?arguments[2]:"tx"}/${t}`},f=o("REACT_APP_SCROLL_ENVIRONMENT")===o("REACT_APP_MAIN_ENVIRONMENT"),c="Sepolia"===o("REACT_APP_SCROLL_ENVIRONMENT"),l=f?"mainnet":"testnet",u=e=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e),d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.toString().length<=6?new Intl.NumberFormat("en-US").format(e):new Intl.NumberFormat("en-US",{maximumFractionDigits:t,notation:"compact"}).format(e)},p=e=>new Intl.NumberFormat("en-US").format(+e);function h(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Scroll_ZKP";return`https://twitter.com/intent/tweet?original_referer=${encodeURIComponent(window.location.href)}&url=${encodeURIComponent(e)}&text=${encodeURIComponent(t)}&via=${n}`}function b(){return"undefined"!==typeof navigator&&/android/i.test(navigator.userAgent)}var y=n(97892),m=n.n(y),g=n(46595),v=n(29606),w=n.n(v);const E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;if(void 0===e)return"";"string"===typeof t&&(t=Number(t)),null===t&&(t=2);try{return w()(e).format({thousandSeparated:!0,optionalMantissa:!0,mantissa:t})}catch(n){return e.toString()}},A=e=>e?`${e.slice(0,6)}\u2026${e.slice(38,42)}`:"-",P=e=>e?`${e.slice(0,6)}\u2026${e.slice(-4)}`:"-",_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:BigInt(18),n=arguments.length>2?arguments[2]:void 0;if(a().isNil(e)||!t||""===e)return"-";const r=(0,g.bM)(e,t);let i=T(r);return n&&(i+=` ${n}`),i},T=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;const[n]=String(e).split(".");let r=0;n.length<t&&(r=t-n.length);return E(e,r).replace(/(\.\d*?)0+$/,"$1").replace(/(\.\d+?)0+$/,"$10")};function k(e){return e.replace(/[^0-9.,]|[.,](?=.*[.,])/g,"").replace(/,/g,".")}function C(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:BigInt(18);const n=k(e),r=n.indexOf(".");if(-1===r)return n;const a=n.slice(0,r)||"0",i=BigInt(a).toString(),o=n.slice(r+1);return`${i}${t!==BigInt(0)?`.${o.slice(0,Number(t))}`:""}`}function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:BigInt(18);try{const n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:BigInt(18);return""===e?e:C(e,t)}(e?e.toString():"",t);return(0,g.vz)(n||"0",t)}catch(n){return BigInt(0)}}function O(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:BigInt(18);try{return(0,g.bM)(e.toString(),t)}catch(n){return"0"}}const S=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{needSub:n,withTime:r,isUnix:a}=t;let i=m().isDayjs(e)?e:a?m().unix(e):m()(e);return n&&(i=e.subtract(1,"ms")),r?i.format("MMM D, YYYY h:mmA"):i.format("MMM D, YYYY")},R=e=>e.split("(")[0].trim();var I=n(12950),N=n(71386);var B=n(76988),j=n(74303),D=n(75618),L=n(48944);function M(e){let{chain:t,currentChainId:n}=e;if(!t)throw new L.Bk;if(n!==t.id)throw new L.Yl({chain:t,currentChainId:n})}var U=n(14846),F=n(53917),z=n(88173);var $=n(37190),G=n(86307),H=n(52838),W=n(94347),V=n(66385),q=n(4534);async function K(e,t){const{account:n=e.account,chain:r=e.chain,accessList:a,blobs:i,data:o,gas:s,gasPrice:f,maxFeePerBlobGas:c,maxFeePerGas:l,maxPriorityFeePerGas:u,nonce:d,to:p,value:h,...b}=t;if(!n)throw new D.o({docsPath:"/docs/actions/wallet/sendTransaction"});const y=(0,j.T)(n);try{var m,g,v;let n;if((0,W.F)(t),null!==r&&(n=await(0,H.s)(e,I.L,"getChainId")({}),M({currentChainId:n,chain:r})),"local"===y.type){var w;const t=await(0,H.s)(e,V.Z,"prepareTransactionRequest")({account:y,accessList:a,blobs:i,chain:r,chainId:n,data:o,gas:s,gasPrice:f,maxFeePerBlobGas:c,maxFeePerGas:l,maxPriorityFeePerGas:u,nonce:d,parameters:[...V.Q,"sidecars"],to:p,value:h,...b}),m=null===r||void 0===r||null===(w=r.serializers)||void 0===w?void 0:w.transaction,g=await y.signTransaction(t,{serializer:m});return await(0,H.s)(e,q.p,"sendRawTransaction")({serializedTransaction:g})}const E=null===(m=e.chain)||void 0===m||null===(g=m.formatters)||void 0===g||null===(v=g.transactionRequest)||void 0===v?void 0:v.format,A=(E||G.tG)({...(0,$.K)(b,{format:E}),accessList:a,blobs:i,data:o,from:y.address,gas:s,gasPrice:f,maxFeePerBlobGas:c,maxFeePerGas:l,maxPriorityFeePerGas:u,nonce:d,to:p,value:h});return await e.request({method:"eth_sendTransaction",params:[A]},{retryCount:0})}catch(E){throw function(e,t){let{docsPath:n,...r}=t;const a=(()=>{const t=(0,z.k)(e,r);return t instanceof U.cj?e:t})();return new F.mk(a,{docsPath:n,...r})}(E,{...t,account:y,chain:t.chain||void 0})}}var Z=n(86694);var J=n(49822);var Y=n(49141),Q=n(1275),X=n(51859);var ee=n(73184);function te(e){return{addChain:t=>async function(e,t){let{chain:n}=t;const{id:r,name:a,nativeCurrency:i,rpcUrls:o,blockExplorers:s}=n;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,N.eC)(r),chainName:a,nativeCurrency:i,rpcUrls:o.default.http,blockExplorerUrls:s?Object.values(s).map((e=>{let{url:t}=e;return t})):void 0}]},{retryCount:0})}(e,t),deployContract:t=>function(e,t){const{abi:n,args:r,bytecode:a,...i}=t;return K(e,{...i,data:(0,B.w)({abi:n,args:r,bytecode:a})})}(e,t),getAddresses:()=>async function(e){var t;return"local"===(null===(t=e.account)||void 0===t?void 0:t.type)?[e.account.address]:(await e.request({method:"eth_accounts"})).map((e=>(0,Z.x)(e)))}(e),getChainId:()=>(0,I.L)(e),getPermissions:()=>async function(e){return await e.request({method:"wallet_getPermissions"})}(e),prepareTransactionRequest:t=>(0,V.Z)(e,t),requestAddresses:()=>async function(e){return(await e.request({method:"eth_requestAccounts"},{retryCount:0})).map((e=>(0,Z.K)(e)))}(e),requestPermissions:t=>async function(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}(e,t),sendRawTransaction:t=>(0,q.p)(e,t),sendTransaction:t=>K(e,t),signMessage:t=>(0,J.l)(e,t),signTransaction:t=>async function(e,t){var n,r;const{account:a=e.account,chain:i=e.chain,...o}=t;if(!a)throw new D.o({docsPath:"/docs/actions/wallet/signTransaction"});const s=(0,j.T)(a);(0,W.F)({account:s,...t});const f=await(0,H.s)(e,I.L,"getChainId")({});null!==i&&M({currentChainId:f,chain:i});const c=(null===i||void 0===i?void 0:i.formatters)||(null===(n=e.chain)||void 0===n?void 0:n.formatters),l=(null===c||void 0===c||null===(r=c.transactionRequest)||void 0===r?void 0:r.format)||G.tG;var u,d;return"local"===s.type?s.signTransaction({...o,chainId:f},{serializer:null===(u=e.chain)||void 0===u||null===(d=u.serializers)||void 0===d?void 0:d.transaction}):await e.request({method:"eth_signTransaction",params:[{...l(o),chainId:(0,N.eC)(f),from:s.address}]},{retryCount:0})}(e,t),signTypedData:t=>async function(e,t){const{account:n=e.account,domain:r,message:a,primaryType:i}=t;if(!n)throw new D.o({docsPath:"/docs/actions/wallet/signTypedData"});const o=(0,j.T)(n),s={EIP712Domain:(0,X.cj)({domain:r}),...t.types};if((0,X.iC)({domain:r,message:a,primaryType:i,types:s}),"local"===o.type)return o.signTypedData({domain:r,message:a,primaryType:i,types:s});const f=(0,Q.P)({domain:r??{},message:a,primaryType:i,types:s},((e,t)=>(0,Y.v)(t)?t.toLowerCase():t));return e.request({method:"eth_signTypedData_v4",params:[o.address,f]},{retryCount:0})}(e,t),switchChain:t=>async function(e,t){let{id:n}=t;await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,N.eC)(n)}]},{retryCount:0})}(e,t),watchAsset:t=>async function(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}(e,t),writeContract:t=>async function(e,t){const{abi:n,address:r,args:a,dataSuffix:i,functionName:o,...s}=t,f=(0,ee.R)({abi:n,args:a,functionName:o});return(0,H.s)(e,K,"sendTransaction")({data:`${f}${i?i.replace("0x",""):""}`,to:r,...s})}(e,t)}}var ne=n(51857);var re=n(5445),ae=n(44346),ie=n(71465);const oe=async e=>{const t=await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await(0,ne.e)(e,t);return n.extend(te),n.extend(te)}(ae.v);try{await(null===t||void 0===t?void 0:t.switchChain({id:e}))}catch(n){if(~n.message.indexOf("wallet_addEthereumChain")||4902===n.code||-32603===n.code){const n=ae.v.chains;await(null===t||void 0===t?void 0:t.addChain({chain:n.find((t=>t.id===e))}))}}},se=(e,t)=>{const n=t===ie.v$.Economy?1:2;return(0,r.isNumber)(e)&&!(e&n)||!1===e},fe=e=>(0,re.VZ)(e,"ACTION_REJECTED");var ce=n(881);const le=e=>{ce.$e((function(t){t.setLevel("debug"),ce.Tb(new Error(e))}))};var ue=n(19778).Buffer;const de=e=>{const t=JSON.parse(ue.from(e.substring(29),"base64").toString("utf-8"));return{tokenURI:t.image,rarity:t.attributes.find((e=>"Rarity"===e.trait_type)).value}},pe=(e,t)=>"en"===t?e.filter((e=>e.language===t)):e.filter(((e,n,r)=>{const a=`_lang_${t}`;return e.language===t||!r.find((t=>t.slug.slice(0,-a.length)===e.slug))}));n(91700),n(1228);var he=n(90333),be=n(27482),ye=n(53282);o("REACT_APP_BADGE_SCHEMA");const me=e=>e?e.replace(/^ipfs:\/\/(.*)/,"https://dweb.link/ipfs/$1"):"",ge=e=>(new he.R).decode(["address","bytes"],e),ve=(e,t)=>{if(!e)throw new Error("Got empty tx");if(!e.to||e.to.toUpperCase()!==t.toUpperCase())throw new Error("Unexpected contract address");const n=new be.vU(ye).parseTransaction(e);if("attestByDelegation"!==n.name)throw new Error("Unexpected function name");if(5!==n.args[0].length)throw new Error("Unexpected number of arguments");if(n.value!==BigInt(0))throw new Error("Unexpected transaction value")},we=e=>"0x2dBce60ebeAafb77e5472308f432F78aC3AE07d9"===e,Ee=["error Unauthorized()","error CannotUpgrade(bytes32 uid)","error BadgeNotAllowed(address badge)","error BadgeNotFound(address badge)","error ExpirationDisabled()","error MissingPayload()","error ResolverPaymentsDisabled()","error RevocationDisabled()","error SingletonBadge()","error UnknownSchema()","error AttestationBadgeMismatch(bytes32 uid)","error AttestationExpired(bytes32 uid)","error AttestationNotFound(bytes32 uid)","error AttestationOwnerMismatch(bytes32 uid)","error AttestationRevoked(bytes32 uid)","error AttestationSchemaMismatch(bytes32 uid)","error BadgeCountReached()","error LengthMismatch()","error TokenNotOwnedByUser(address token, uint256 tokenId)","error CallerIsNotUserProfile()","error DuplicatedUsername()","error ExpiredSignature()","error ImplementationNotContract()","error InvalidReferrer()","error InvalidSignature()","error InvalidUsername()","error MsgValueMismatchWithMintFee()","error ProfileAlreadyMinted()","error AccessDenied()","error DeadlineExpired()","error InvalidEAS()","error InvalidLength()","error NotFound()"],Ae={AccessDenied:e=>({message:`Oops something went wrong. Please reach out to ${e.name}\u2019s community for help.`,link:e.communityURL}),SingletonBadge:{message:"You have already minted this badge. Please wait for a while for Canvas to be updated"},ExpiredSignature:{message:"Something went wrong. Please try again later"},InvalidSignature:e=>({message:`Oops something went wrong. Please reach out to ${e.name}\u2019s community for help.`,link:e.communityURL}),DeadlineExpired:{message:"Something went wrong. Please try again later"},ProfileAlreadyMinted:{message:"You have already minted your Canvas. Please wait for a while for Canvas to be updated"}},Pe=(e,t)=>{if("INSUFFICIENT_FUNDS"===e.code)return"Transaction failed due to insufficient funds. Please ensure your wallet has enough ETH";if("CALL_EXCEPTION"===e.code){const n="Something went wrong. Please try again later";if(e.data){const r=(e=>{const t=new be.vU(Ee).parseError(e);return null===t||void 0===t?void 0:t.name})(e.data);return r?Ae[r]?"function"===typeof Ae[r]?Ae[r](t):Ae[r]:"Execution reverted due to "+r:n}return n}var n,r,a,i;return"UNKNOWN_ERROR"===e.code&&e.message.startsWith("could not coalesce error")?(null===(n=e.error)||void 0===n?void 0:n.message)||(null===(r=e.error)||void 0===r||null===(a=r.data)||void 0===a||null===(i=a.error)||void 0===i?void 0:i.message)||"RPC service is busy. Please try again later":e.message}},25677:(e,t,n)=>{"use strict";n.d(t,{Jo:()=>f,LS:()=>a,jw:()=>o,rV:()=>r,zL:()=>s});const r=e=>localStorage.getItem(e),a=(e,t)=>localStorage.setItem(e,t),i=e=>localStorage.removeItem(e),o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"state";try{const t=r(e);if(null===t)return;return JSON.parse(t)}catch(t){return}},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"state",t=arguments.length>1?arguments[1]:void 0;try{const n=[],r=JSON.stringify(t,((e,t)=>{if(null!==t&&"object"===typeof t){if(n.indexOf(t)>=0)return;n.push(t)}return t}));a(e,r)}catch(n){console.error(n)}};function f(e){e?i(e):localStorage.clear()}},19770:(e,t,n)=>{"use strict";n.d(t,{Z:()=>ae});var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),a=Math.abs,i=String.fromCharCode,o=Object.assign;function s(e){return e.trim()}function f(e,t,n){return e.replace(t,n)}function c(e,t){return e.indexOf(t)}function l(e,t){return 0|e.charCodeAt(t)}function u(e,t,n){return e.slice(t,n)}function d(e){return e.length}function p(e){return e.length}function h(e,t){return t.push(e),e}var b=1,y=1,m=0,g=0,v=0,w="";function E(e,t,n,r,a,i,o){return{value:e,root:t,parent:n,type:r,props:a,children:i,line:b,column:y,length:o,return:""}}function A(e,t){return o(E("",null,null,"",null,null,0),e,{length:-e.length},t)}function P(){return v=g>0?l(w,--g):0,y--,10===v&&(y=1,b--),v}function _(){return v=g<m?l(w,g++):0,y++,10===v&&(y=1,b++),v}function T(){return l(w,g)}function k(){return g}function C(e,t){return u(w,e,t)}function x(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function O(e){return b=y=1,m=d(w=e),g=0,[]}function S(e){return w="",e}function R(e){return s(C(g-1,B(91===e?e+2:40===e?e+1:e)))}function I(e){for(;(v=T())&&v<33;)_();return x(e)>2||x(v)>3?"":" "}function N(e,t){for(;--t&&_()&&!(v<48||v>102||v>57&&v<65||v>70&&v<97););return C(e,k()+(t<6&&32==T()&&32==_()))}function B(e){for(;_();)switch(v){case e:return g;case 34:case 39:34!==e&&39!==e&&B(v);break;case 40:41===e&&B(e);break;case 92:_()}return g}function j(e,t){for(;_()&&e+v!==57&&(e+v!==84||47!==T()););return"/*"+C(t,g-1)+"*"+i(47===e?e:_())}function D(e){for(;!x(T());)_();return C(e,g)}var L="-ms-",M="-moz-",U="-webkit-",F="comm",z="rule",$="decl",G="@keyframes";function H(e,t){for(var n="",r=p(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function W(e,t,n,r){switch(e.type){case"@import":case $:return e.return=e.return||e.value;case F:return"";case G:return e.return=e.value+"{"+H(e.children,r)+"}";case z:e.value=e.props.join(",")}return d(n=H(e.children,r))?e.return=e.value+"{"+n+"}":""}function V(e){return S(q("",null,null,null,[""],e=O(e),0,[0],e))}function q(e,t,n,r,a,o,s,u,p){for(var b=0,y=0,m=s,g=0,v=0,w=0,E=1,A=1,C=1,x=0,O="",S=a,B=o,L=r,M=O;A;)switch(w=x,x=_()){case 40:if(108!=w&&58==l(M,m-1)){-1!=c(M+=f(R(x),"&","&\f"),"&\f")&&(C=-1);break}case 34:case 39:case 91:M+=R(x);break;case 9:case 10:case 13:case 32:M+=I(w);break;case 92:M+=N(k()-1,7);continue;case 47:switch(T()){case 42:case 47:h(Z(j(_(),k()),t,n),p);break;default:M+="/"}break;case 123*E:u[b++]=d(M)*C;case 125*E:case 59:case 0:switch(x){case 0:case 125:A=0;case 59+y:v>0&&d(M)-m&&h(v>32?J(M+";",r,n,m-1):J(f(M," ","")+";",r,n,m-2),p);break;case 59:M+=";";default:if(h(L=K(M,t,n,b,y,a,u,O,S=[],B=[],m),o),123===x)if(0===y)q(M,t,L,L,S,o,m,u,B);else switch(99===g&&110===l(M,3)?100:g){case 100:case 109:case 115:q(e,L,L,r&&h(K(e,L,L,0,0,a,u,O,a,S=[],m),B),a,B,m,u,r?S:B);break;default:q(M,L,L,L,[""],B,0,u,B)}}b=y=v=0,E=C=1,O=M="",m=s;break;case 58:m=1+d(M),v=w;default:if(E<1)if(123==x)--E;else if(125==x&&0==E++&&125==P())continue;switch(M+=i(x),x*E){case 38:C=y>0?1:(M+="\f",-1);break;case 44:u[b++]=(d(M)-1)*C,C=1;break;case 64:45===T()&&(M+=R(_())),g=T(),y=m=d(O=M+=D(k())),x++;break;case 45:45===w&&2==d(M)&&(E=0)}}return o}function K(e,t,n,r,i,o,c,l,d,h,b){for(var y=i-1,m=0===i?o:[""],g=p(m),v=0,w=0,A=0;v<r;++v)for(var P=0,_=u(e,y+1,y=a(w=c[v])),T=e;P<g;++P)(T=s(w>0?m[P]+" "+_:f(_,/&\f/g,m[P])))&&(d[A++]=T);return E(e,t,n,0===i?z:l,d,h,b)}function Z(e,t,n){return E(e,t,n,F,i(v),u(e,2,-2),0)}function J(e,t,n,r){return E(e,t,n,$,u(e,0,r),u(e,r+1,-1),r)}var Y=function(e,t,n){for(var r=0,a=0;r=a,a=T(),38===r&&12===a&&(t[n]=1),!x(a);)_();return C(e,g)},Q=function(e,t){return S(function(e,t){var n=-1,r=44;do{switch(x(r)){case 0:38===r&&12===T()&&(t[n]=1),e[n]+=Y(g-1,t,n);break;case 2:e[n]+=R(r);break;case 4:if(44===r){e[++n]=58===T()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=i(r)}}while(r=_());return e}(O(e),t))},X=new WeakMap,ee=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||X.get(n))&&!r){X.set(e,!0);for(var a=[],i=Q(t,a),o=n.props,s=0,f=0;s<i.length;s++)for(var c=0;c<o.length;c++,f++)e.props[f]=a[s]?i[s].replace(/&\f/g,o[c]):o[c]+" "+i[s]}}},te=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ne(e,t){switch(function(e,t){return 45^l(e,0)?(((t<<2^l(e,0))<<2^l(e,1))<<2^l(e,2))<<2^l(e,3):0}(e,t)){case 5103:return U+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+M+e+L+e+e;case 6828:case 4268:return U+e+L+e+e;case 6165:return U+e+L+"flex-"+e+e;case 5187:return U+e+f(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+L+"flex-$1$2")+e;case 5443:return U+e+L+"flex-item-"+f(e,/flex-|-self/,"")+e;case 4675:return U+e+L+"flex-line-pack"+f(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+L+f(e,"shrink","negative")+e;case 5292:return U+e+L+f(e,"basis","preferred-size")+e;case 6060:return U+"box-"+f(e,"-grow","")+U+e+L+f(e,"grow","positive")+e;case 4554:return U+f(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return f(f(f(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return f(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return f(f(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+L+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return f(e,/(.+)-inline(.+)/,U+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(d(e)-1-t>6)switch(l(e,t+1)){case 109:if(45!==l(e,t+4))break;case 102:return f(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+M+(108==l(e,t+3)?"$3":"$2-$3"))+e;case 115:return~c(e,"stretch")?ne(f(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==l(e,t+1))break;case 6444:switch(l(e,d(e)-3-(~c(e,"!important")&&10))){case 107:return f(e,":",":"+U)+e;case 101:return f(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(45===l(e,14)?"inline-":"")+"box$3$1"+U+"$2$3$1"+L+"$2box$3")+e}break;case 5936:switch(l(e,t+11)){case 114:return U+e+L+f(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+L+f(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+L+f(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+L+e+e}return e}var re=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case $:e.return=ne(e.value,e.length);break;case G:return H([A(e,{value:f(e.value,"@","@"+U)})],r);case z:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return H([A(e,{props:[f(t,/:(read-\w+)/,":"+M+"$1")]})],r);case"::placeholder":return H([A(e,{props:[f(t,/:(plac\w+)/,":"+U+"input-$1")]}),A(e,{props:[f(t,/:(plac\w+)/,":"+M+"$1")]}),A(e,{props:[f(t,/:(plac\w+)/,L+"input-$1")]})],r)}return""}))}}];const ae=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a=e.stylisPlugins||re;var i,o,s={},f=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)s[t[n]]=!0;f.push(e)}));var c,l,u=[W,(l=function(e){c.insert(e)},function(e){e.root||(e=e.return)&&l(e)})],d=function(e){var t=p(e);return function(n,r,a,i){for(var o="",s=0;s<t;s++)o+=e[s](n,r,a,i)||"";return o}}([ee,te].concat(a,u));o=function(e,t,n,r){c=n,H(V(e?e+"{"+t.styles+"}":t.styles),d),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new r({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:o};return h.sheet.hydrate(f),h}},49797:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},29886:(e,t,n)=>{"use strict";n.d(t,{E:()=>y,T:()=>d,_:()=>l,c:()=>h,h:()=>f,w:()=>u});var r=n(72791),a=n(19770),i=n(95438),o=n(9140),s=n(82561),f={}.hasOwnProperty,c=(0,r.createContext)("undefined"!==typeof HTMLElement?(0,a.Z)({key:"css"}):null);c.Provider;var l=function(){return(0,r.useContext)(c)},u=function(e){return(0,r.forwardRef)((function(t,n){var a=(0,r.useContext)(c);return e(t,a,n)}))},d=(0,r.createContext)({});var p="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",h=function(e,t){var n={};for(var r in t)f.call(t,r)&&(n[r]=t[r]);return n[p]=e,n},b=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,i.hC)(t,n,r);(0,s.L)((function(){return(0,i.My)(t,n,r)}));return null},y=u((function(e,t,n){var a=e.css;"string"===typeof a&&void 0!==t.registered[a]&&(a=t.registered[a]);var s=e[p],c=[a],l="";"string"===typeof e.className?l=(0,i.fp)(t.registered,c,e.className):null!=e.className&&(l=e.className+" ");var u=(0,o.O)(c,void 0,(0,r.useContext)(d));l+=t.key+"-"+u.name;var h={};for(var y in e)f.call(e,y)&&"css"!==y&&y!==p&&(h[y]=e[y]);return h.ref=n,h.className=l,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(b,{cache:t,serialized:u,isStringTag:"string"===typeof s}),(0,r.createElement)(s,h))}))},52554:(e,t,n)=>{"use strict";n.d(t,{F4:()=>l,iv:()=>c,ms:()=>p,xB:()=>f});var r=n(72791),a=(n(19770),n(29886)),i=(n(62110),n(95438)),o=n(9140),s=n(82561),f=(0,a.w)((function(e,t){var n=e.styles,f=(0,o.O)([n],void 0,(0,r.useContext)(a.T)),c=(0,r.useRef)();return(0,s.j)((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,a=document.querySelector('style[data-emotion="'+e+" "+f.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(r=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),c.current=[n,r],function(){n.flush()}}),[t]),(0,s.j)((function(){var e=c.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==f.next&&(0,i.My)(t,f.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",f,n,!1)}}),[t,f.name]),null}));function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,o.O)(t)}var l=function(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},u=function e(t){for(var n=t.length,r=0,a="";r<n;r++){var i=t[r];if(null!=i){var o=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))o=e(i);else for(var s in o="",i)i[s]&&s&&(o&&(o+=" "),o+=s);break;default:o=i}o&&(a&&(a+=" "),a+=o)}}return a};var d=function(e){var t=e.cache,n=e.serializedArr;(0,s.L)((function(){for(var e=0;e<n.length;e++)(0,i.My)(t,n[e],!1)}));return null},p=(0,a.w)((function(e,t){var n=[],s=function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];var s=(0,o.O)(r,t.registered);return n.push(s),(0,i.hC)(t,s,!1),t.key+"-"+s.name},f={css:s,cx:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(e,t,n){var r=[],a=(0,i.fp)(e,r,n);return r.length<2?n:a+t(r)}(t.registered,s,u(n))},theme:(0,r.useContext)(a.T)},c=e.children(f);return!0,(0,r.createElement)(r.Fragment,null,(0,r.createElement)(d,{cache:t,serializedArr:n}),c)}))},9140:(e,t,n)=>{"use strict";n.d(t,{O:()=>b});const r=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};const a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var i=n(49797),o=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,f=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},l=(0,i.Z)((function(e){return f(e)?e:e.replace(o,"-$&").toLowerCase()})),u=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return p={name:t,styles:n,next:p},t}))}return 1===a[e]||f(e)||"number"!==typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)p={name:r.name,styles:r.styles,next:p},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=d(e,t,n[a])+";";else for(var i in n){var o=n[i];if("object"!==typeof o)null!=t&&void 0!==t[o]?r+=i+"{"+t[o]+"}":c(o)&&(r+=l(i)+":"+u(i,o)+";");else if(!Array.isArray(o)||"string"!==typeof o[0]||null!=t&&void 0!==t[o[0]]){var s=d(e,t,o);switch(i){case"animation":case"animationName":r+=l(i)+":"+s+";";break;default:r+=i+"{"+s+"}"}}else for(var f=0;f<o.length;f++)c(o[f])&&(r+=l(i)+":"+u(i,o[f])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=p,i=n(e);return p=a,d(e,t,i)}}if(null==t)return n;var o=t[n];return void 0!==o?o:n}var p,h=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var b=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var a=!0,i="";p=void 0;var o=e[0];null==o||void 0===o.raw?(a=!1,i+=d(n,t,o)):i+=o[0];for(var s=1;s<e.length;s++)i+=d(n,t,e[s]),a&&(i+=o[s]);h.lastIndex=0;for(var f,c="";null!==(f=h.exec(i));)c+="-"+f[1];return{name:r(i)+c,styles:i,next:p}}},82561:(e,t,n)=>{"use strict";var r;n.d(t,{L:()=>o,j:()=>s});var a=n(72791),i=!!(r||(r=n.t(a,2))).useInsertionEffect&&(r||(r=n.t(a,2))).useInsertionEffect,o=i||function(e){return e()},s=i||a.useLayoutEffect},95438:(e,t,n)=>{"use strict";n.d(t,{My:()=>i,fp:()=>r,hC:()=>a});function r(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var a=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},i=function(e,t,n){a(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0);i=i.next}while(void 0!==i)}}},10973:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ownable__factory=void 0;const r=n(58986),a=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"}];t.Ownable__factory=class{static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}},97712:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ownable__factory=void 0;var r=n(10973);Object.defineProperty(t,"Ownable__factory",{enumerable:!0,get:function(){return r.Ownable__factory}})},32511:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.utils=t.token=t.interfaces=t.access=void 0,t.access=i(n(97712)),t.interfaces=i(n(27955)),t.token=i(n(44680)),t.utils=i(n(77150))},1557:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IERC1271__factory=void 0;const r=n(58986),a=[{inputs:[{internalType:"bytes32",name:"hash",type:"bytes32"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"isValidSignature",outputs:[{internalType:"bytes4",name:"magicValue",type:"bytes4"}],stateMutability:"view",type:"function"}];t.IERC1271__factory=class{static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}},95692:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IERC5267__factory=void 0;const r=n(58986),a=[{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];t.IERC5267__factory=class{static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}},27955:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IERC5267__factory=t.IERC1271__factory=void 0;var r=n(1557);Object.defineProperty(t,"IERC1271__factory",{enumerable:!0,get:function(){return r.IERC1271__factory}});var a=n(95692);Object.defineProperty(t,"IERC5267__factory",{enumerable:!0,get:function(){return a.IERC5267__factory}})},95123:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERC20__factory=void 0;const r=n(58986),a=[{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"subtractedValue",type:"uint256"}],name:"decreaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"addedValue",type:"uint256"}],name:"increaseAllowance",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}],i="0x60806040523480156200001157600080fd5b5060405162000de638038062000de683398101604081905262000034916200011f565b600362000042838262000218565b50600462000051828262000218565b505050620002e4565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200008257600080fd5b81516001600160401b03808211156200009f576200009f6200005a565b604051601f8301601f19908116603f01168101908282118183101715620000ca57620000ca6200005a565b81604052838152602092508683858801011115620000e757600080fd5b600091505b838210156200010b5785820183015181830184015290820190620000ec565b600093810190920192909252949350505050565b600080604083850312156200013357600080fd5b82516001600160401b03808211156200014b57600080fd5b620001598683870162000070565b935060208501519150808211156200017057600080fd5b506200017f8582860162000070565b9150509250929050565b600181811c908216806200019e57607f821691505b602082108103620001bf57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200021357600081815260208120601f850160051c81016020861015620001ee5750805b601f850160051c820191505b818110156200020f57828155600101620001fa565b5050505b505050565b81516001600160401b038111156200023457620002346200005a565b6200024c8162000245845462000189565b84620001c5565b602080601f8311600181146200028457600084156200026b5750858301515b600019600386901b1c1916600185901b1785556200020f565b600085815260208120601f198616915b82811015620002b55788860151825594840194600190910190840162000294565b5085821015620002d45787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b610af280620002f46000396000f3fe608060405234801561001057600080fd5b50600436106100c95760003560e01c80633950935111610081578063a457c2d71161005b578063a457c2d714610194578063a9059cbb146101a7578063dd62ed3e146101ba57600080fd5b8063395093511461014357806370a082311461015657806395d89b411461018c57600080fd5b806318160ddd116100b257806318160ddd1461010f57806323b872dd14610121578063313ce5671461013457600080fd5b806306fdde03146100ce578063095ea7b3146100ec575b600080fd5b6100d6610200565b6040516100e39190610908565b60405180910390f35b6100ff6100fa36600461099d565b610292565b60405190151581526020016100e3565b6002545b6040519081526020016100e3565b6100ff61012f3660046109c7565b6102ac565b604051601281526020016100e3565b6100ff61015136600461099d565b6102d0565b610113610164366004610a03565b73ffffffffffffffffffffffffffffffffffffffff1660009081526020819052604090205490565b6100d661031c565b6100ff6101a236600461099d565b61032b565b6100ff6101b536600461099d565b610401565b6101136101c8366004610a25565b73ffffffffffffffffffffffffffffffffffffffff918216600090815260016020908152604080832093909416825291909152205490565b60606003805461020f90610a58565b80601f016020809104026020016040519081016040528092919081815260200182805461023b90610a58565b80156102885780601f1061025d57610100808354040283529160200191610288565b820191906000526020600020905b81548152906001019060200180831161026b57829003601f168201915b5050505050905090565b6000336102a081858561040f565b60019150505b92915050565b6000336102ba8582856105c2565b6102c5858585610699565b506001949350505050565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff871684529091528120549091906102a09082908690610317908790610aab565b61040f565b60606004805461020f90610a58565b33600081815260016020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168452909152812054909190838110156103f4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6102c5828686840361040f565b6000336102a0818585610699565b73ffffffffffffffffffffffffffffffffffffffff83166104b1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016103eb565b73ffffffffffffffffffffffffffffffffffffffff8216610554576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016103eb565b73ffffffffffffffffffffffffffffffffffffffff83811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925910160405180910390a3505050565b73ffffffffffffffffffffffffffffffffffffffff8381166000908152600160209081526040808320938616835292905220547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81146106935781811015610686576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016103eb565b610693848484840361040f565b50505050565b73ffffffffffffffffffffffffffffffffffffffff831661073c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016103eb565b73ffffffffffffffffffffffffffffffffffffffff82166107df576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016103eb565b73ffffffffffffffffffffffffffffffffffffffff831660009081526020819052604090205481811015610895576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016103eb565b73ffffffffffffffffffffffffffffffffffffffff848116600081815260208181526040808320878703905593871680835291849020805487019055925185815290927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef910160405180910390a3610693565b600060208083528351808285015260005b8181101561093557858101830151858201604001528201610919565b5060006040828601015260407fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f8301168501019250505092915050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461099857600080fd5b919050565b600080604083850312156109b057600080fd5b6109b983610974565b946020939093013593505050565b6000806000606084860312156109dc57600080fd5b6109e584610974565b92506109f360208501610974565b9150604084013590509250925092565b600060208284031215610a1557600080fd5b610a1e82610974565b9392505050565b60008060408385031215610a3857600080fd5b610a4183610974565b9150610a4f60208401610974565b90509250929050565b600181811c90821680610a6c57607f821691505b602082108103610aa5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b808201808211156102a6577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e,t,n){return super.getDeployTransaction(e,t,n||{})}deploy(e,t,n){return super.deploy(e,t,n||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.ERC20__factory=o},90518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IERC20__factory=void 0;const r=n(58986),a=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}];t.IERC20__factory=class{static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}},32031:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IERC20Metadata__factory=void 0;const r=n(58986),a=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}];t.IERC20Metadata__factory=class{static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}},32744:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IERC20Permit__factory=void 0;const r=n(58986),a=[{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"}];t.IERC20Permit__factory=class{static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}},96037:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IERC20Permit__factory=t.IERC20Metadata__factory=void 0;var r=n(32031);Object.defineProperty(t,"IERC20Metadata__factory",{enumerable:!0,get:function(){return r.IERC20Metadata__factory}});var a=n(32744);Object.defineProperty(t,"IERC20Permit__factory",{enumerable:!0,get:function(){return a.IERC20Permit__factory}})},41122:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.IERC20__factory=t.ERC20__factory=t.extensions=void 0,t.extensions=i(n(96037));var o=n(95123);Object.defineProperty(t,"ERC20__factory",{enumerable:!0,get:function(){return o.ERC20__factory}});var s=n(90518);Object.defineProperty(t,"IERC20__factory",{enumerable:!0,get:function(){return s.IERC20__factory}})},44680:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.erc20=void 0,t.erc20=i(n(41122))},43262:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShortStrings__factory=void 0;const r=n(58986),a=[{inputs:[],name:"InvalidShortString",type:"error"},{inputs:[{internalType:"string",name:"str",type:"string"}],name:"StringTooLong",type:"error"}],i="0x602d6037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e){return super.getDeployTransaction(e||{})}deploy(e){return super.deploy(e||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.ShortStrings__factory=o},83060:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EIP712__factory=void 0;const r=n(58986),a=[{inputs:[],name:"InvalidShortString",type:"error"},{inputs:[{internalType:"string",name:"str",type:"string"}],name:"StringTooLong",type:"error"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];t.EIP712__factory=class{static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}},34555:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EIP712__factory=void 0;var r=n(83060);Object.defineProperty(t,"EIP712__factory",{enumerable:!0,get:function(){return r.EIP712__factory}})},77150:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ShortStrings__factory=t.cryptography=void 0,t.cryptography=i(n(34555));var o=n(43262);Object.defineProperty(t,"ShortStrings__factory",{enumerable:!0,get:function(){return o.ShortStrings__factory}})},98656:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.contracts=void 0,t.contracts=i(n(32511))},67056:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EAS__factory=void 0;const r=n(58986),a=[{inputs:[{internalType:"contract ISchemaRegistry",name:"registry",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"AlreadyRevoked",type:"error"},{inputs:[],name:"AlreadyRevokedOffchain",type:"error"},{inputs:[],name:"AlreadyTimestamped",type:"error"},{inputs:[],name:"DeadlineExpired",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidAttestation",type:"error"},{inputs:[],name:"InvalidAttestations",type:"error"},{inputs:[],name:"InvalidExpirationTime",type:"error"},{inputs:[],name:"InvalidLength",type:"error"},{inputs:[],name:"InvalidNonce",type:"error"},{inputs:[],name:"InvalidOffset",type:"error"},{inputs:[],name:"InvalidRegistry",type:"error"},{inputs:[],name:"InvalidRevocation",type:"error"},{inputs:[],name:"InvalidRevocations",type:"error"},{inputs:[],name:"InvalidSchema",type:"error"},{inputs:[],name:"InvalidShortString",type:"error"},{inputs:[],name:"InvalidSignature",type:"error"},{inputs:[],name:"InvalidVerifier",type:"error"},{inputs:[],name:"Irrevocable",type:"error"},{inputs:[],name:"NotFound",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[{internalType:"string",name:"str",type:"string"}],name:"StringTooLong",type:"error"},{inputs:[],name:"WrongSchema",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"address",name:"attester",type:"address"},{indexed:!1,internalType:"bytes32",name:"uid",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"schemaUID",type:"bytes32"}],name:"Attested",type:"event"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldNonce",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newNonce",type:"uint256"}],name:"NonceIncreased",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"address",name:"attester",type:"address"},{indexed:!1,internalType:"bytes32",name:"uid",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"schemaUID",type:"bytes32"}],name:"Revoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"revoker",type:"address"},{indexed:!0,internalType:"bytes32",name:"data",type:"bytes32"},{indexed:!0,internalType:"uint64",name:"timestamp",type:"uint64"}],name:"RevokedOffchain",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"data",type:"bytes32"},{indexed:!0,internalType:"uint64",name:"timestamp",type:"uint64"}],name:"Timestamped",type:"event"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData",name:"data",type:"tuple"}],internalType:"struct AttestationRequest",name:"request",type:"tuple"}],name:"attest",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct Signature",name:"signature",type:"tuple"},{internalType:"address",name:"attester",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct DelegatedAttestationRequest",name:"delegatedRequest",type:"tuple"}],name:"attestByDelegation",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"payable",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAttestTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"getAttestation",outputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getName",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"revoker",type:"address"},{internalType:"bytes32",name:"data",type:"bytes32"}],name:"getRevokeOffchain",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRevokeTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getSchemaRegistry",outputs:[{internalType:"contract ISchemaRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"data",type:"bytes32"}],name:"getTimestamp",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"newNonce",type:"uint256"}],name:"increaseNonce",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"isAttestationValid",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData[]",name:"data",type:"tuple[]"}],internalType:"struct MultiAttestationRequest[]",name:"multiRequests",type:"tuple[]"}],name:"multiAttest",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"attester",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct MultiDelegatedAttestationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiAttestByDelegation",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData[]",name:"data",type:"tuple[]"}],internalType:"struct MultiRevocationRequest[]",name:"multiRequests",type:"tuple[]"}],name:"multiRevoke",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"revoker",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct MultiDelegatedRevocationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiRevokeByDelegation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32[]",name:"data",type:"bytes32[]"}],name:"multiRevokeOffchain",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32[]",name:"data",type:"bytes32[]"}],name:"multiTimestamp",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData",name:"data",type:"tuple"}],internalType:"struct RevocationRequest",name:"request",type:"tuple"}],name:"revoke",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct Signature",name:"signature",type:"tuple"},{internalType:"address",name:"revoker",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct DelegatedRevocationRequest",name:"delegatedRequest",type:"tuple"}],name:"revokeByDelegation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"data",type:"bytes32"}],name:"revokeOffchain",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"data",type:"bytes32"}],name:"timestamp",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],i="0x6101e06040523480156200001257600080fd5b5060405162004e7a38038062004e7a83398101604081905262000035916200020c565b60408051808201825260038082526245415360e81b602080840191909152835180850190945260058452640312e332e360dc1b90840152600160805260a052600060c0819052909190829082906200008f90839062000187565b61018052620000a081600162000187565b6101a052815160208084019190912061014052815190820120610160524661010052620001316101405161016051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60e052505030610120526002620001498382620002e3565b5050506001600160a01b03811662000174576040516311a1e69760e01b815260040160405180910390fd5b6001600160a01b03166101c05262000424565b6000602083511015620001a7576200019f83620001c0565b9050620001ba565b81620001b48482620002e3565b5060ff90505b92915050565b600080829050601f81511115620001f7578260405163305a27a960e01b8152600401620001ee9190620003af565b60405180910390fd5b80516200020482620003ff565b179392505050565b6000602082840312156200021f57600080fd5b81516001600160a01b03811681146200023757600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200026957607f821691505b6020821081036200028a57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002de57600081815260208120601f850160051c81016020861015620002b95750805b601f850160051c820191505b81811015620002da57828155600101620002c5565b5050505b505050565b81516001600160401b03811115620002ff57620002ff6200023e565b620003178162000310845462000254565b8462000290565b602080601f8311600181146200034f5760008415620003365750858301515b600019600386901b1c1916600185901b178555620002da565b600085815260208120601f198616915b8281101562000380578886015182559484019460019091019084016200035f565b50858210156200039f5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083528351808285015260005b81811015620003de57858101830151858201604001528201620003c0565b506000604082860101526040601f19601f8301168501019250505092915050565b805160208083015191908110156200028a5760001960209190910360031b1b16919050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516149c1620004b960003960008181610538015281816116030152611f3b01526000610d4f01526000610d25015260006129c40152600061299c015260006128f7015260006129210152600061294b01526000610c3401526000610c0b01526000610be201526149c16000f3fe6080604052600436106101965760003560e01c806384b0196e116100e1578063cf190f341161008a578063e71ff36511610064578063e71ff365146104dc578063ed24911d146104fc578063f10b5cc814610511578063f17325e71461056257600080fd5b8063cf190f3414610446578063d45c443514610466578063e30bb5631461049d57600080fd5b8063a6d4dbc7116100bb578063a6d4dbc7146103a6578063b469318d146103b9578063b83010d31461041357600080fd5b806384b0196e1461033e5780639541152514610366578063a3112a641461037957600080fd5b806344adc90e116101435780634d0030701161011d5780634d003070146102e957806354fd4d501461030957806379f7573a1461031e57600080fd5b806344adc90e146102a357806346926267146102c35780634cb7e9e5146102d657600080fd5b806317d7de7c1161017457806317d7de7c1461022b5780632d0335ab1461024d5780633c0427151461029057600080fd5b80630eabf6601461019b57806312b11a17146101b057806313893f61146101f2575b600080fd5b6101ae6101a93660046137ef565b610575565b005b3480156101bc57600080fd5b507ffeb2925a02bae3dae48d424a0437a2b6ac939aa9230ddc55a1a76f065d9880765b6040519081526020015b60405180910390f35b3480156101fe57600080fd5b5061021261020d3660046137ef565b61070c565b60405167ffffffffffffffff90911681526020016101e9565b34801561023757600080fd5b50610240610751565b6040516101e9919061389f565b34801561025957600080fd5b506101df6102683660046138eb565b73ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b6101df61029e366004613908565b6107e3565b6102b66102b13660046137ef565b6108e6565b6040516101e99190613943565b6101ae6102d1366004613987565b610a67565b6101ae6102e43660046137ef565b610aeb565b3480156102f557600080fd5b5061021261030436600461399f565b610bce565b34801561031557600080fd5b50610240610bdb565b34801561032a57600080fd5b506101ae61033936600461399f565b610c7e565b34801561034a57600080fd5b50610353610d17565b6040516101e997969594939291906139f3565b6102b66103743660046137ef565b610dbb565b34801561038557600080fd5b5061039961039436600461399f565b61102e565b6040516101e99190613b63565b6101ae6103b4366004613b76565b6111f0565b3480156103c557600080fd5b506102126103d4366004613b89565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205467ffffffffffffffff1690565b34801561041f57600080fd5b507fb5d556f07587ec0f08cf386545cc4362c702a001650c2058002615ee5c9d1e756101df565b34801561045257600080fd5b5061021261046136600461399f565b611295565b34801561047257600080fd5b5061021261048136600461399f565b60009081526005602052604090205467ffffffffffffffff1690565b3480156104a957600080fd5b506104cc6104b836600461399f565b600090815260046020526040902054151590565b60405190151581526020016101e9565b3480156104e857600080fd5b506102126104f73660046137ef565b6112a3565b34801561050857600080fd5b506101df6112db565b34801561051d57600080fd5b5060405173ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001681526020016101e9565b6101df610570366004613bb5565b6112ea565b348160005b81811015610705577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8201811460008686848181106105bb576105bb613bf0565b90506020028101906105cd9190613c1f565b6105d690613eb5565b60208101518051919250908015806105f357508260400151518114155b1561062a576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b818110156106ce576106c66040518060a001604052808660000151815260200185848151811061065f5761065f613bf0565b602002602001015181526020018660400151848151811061068257610682613bf0565b60200260200101518152602001866060015173ffffffffffffffffffffffffffffffffffffffff168152602001866080015167ffffffffffffffff168152506113a8565b60010161062d565b506106e483600001518385606001518a886115ba565b6106ee9088613fdf565b9650505050506106fe8160010190565b905061057a565b5050505050565b60004282825b818110156107455761073d3387878481811061073057610730613bf0565b9050602002013585611c0b565b600101610712565b50909150505b92915050565b60606002805461076090613ff2565b80601f016020809104026020016040519081016040528092919081815260200182805461078c90613ff2565b80156107d95780601f106107ae576101008083540402835291602001916107d9565b820191906000526020600020905b8154815290600101906020018083116107bc57829003601f168201915b5050505050905090565b60006107f66107f183614161565b611d0a565b604080516001808252818301909252600091816020015b6040805160c081018252600080825260208083018290529282018190526060808301829052608083015260a082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90920191018161080d57905050905061087b60208401846141dc565b61088490614210565b8160008151811061089757610897613bf0565b60209081029190910101526108c08335826108b860c0870160a088016138eb565b346001611e95565b602001516000815181106108d6576108d6613bf0565b6020026020010151915050919050565b60608160008167ffffffffffffffff81111561090457610904613c5d565b60405190808252806020026020018201604052801561093757816020015b60608152602001906001900390816109225790505b509050600034815b84811015610a51577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff850181143689898481811061097f5761097f613bf0565b9050602002810190610991919061421c565b90506109a06020820182614250565b90506000036109db576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610a0082356109ef6020850185614250565b6109f8916142b8565b338887611e95565b8051909150610a0f9086613fdf565b94508060200151878581518110610a2857610a28613bf0565b602002602001018190525080602001515186019550505050610a4a8160010190565b905061093f565b50610a5c83836125c8565b979650505050505050565b604080516001808252818301909252600091816020015b6040805180820190915260008082526020820152815260200190600190039081610a7e579050509050610ab93683900383016020840161432c565b81600081518110610acc57610acc613bf0565b6020908102919091010152610ae6823582333460016115ba565b505050565b348160005b81811015610705577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8201811436868684818110610b3057610b30613bf0565b9050602002810190610b42919061421c565b9050610baf8135610b566020840184614348565b808060200260200160405190810160405280939291908181526020016000905b82821015610ba257610b936040830286013681900381019061432c565b81526020019060010190610b76565b50505050503388866115ba565b610bb99086613fdf565b94505050610bc78160010190565b9050610af0565b60004261074b83826126b2565b6060610c067f0000000000000000000000000000000000000000000000000000000000000000612774565b610c2f7f0000000000000000000000000000000000000000000000000000000000000000612774565b610c587f0000000000000000000000000000000000000000000000000000000000000000612774565b604051602001610c6a939291906143b0565b604051602081830303815290604052905090565b33600090815260036020526040902054808211610cc7576040517f756688fe00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360009081526003602090815260409182902084905581518381529081018490527f57b09af877df9068fd60a69d7b21f5576b8b38955812d6ae4ac52942f1e38fb7910160405180910390a15050565b600060608082808083610d4a7f000000000000000000000000000000000000000000000000000000000000000083612832565b610d757f00000000000000000000000000000000000000000000000000000000000000006001612832565b604080516000808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b60608160008167ffffffffffffffff811115610dd957610dd9613c5d565b604051908082528060200260200182016040528015610e0c57816020015b6060815260200190600190039081610df75790505b509050600034815b84811015610a51577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8501811436898984818110610e5457610e54613bf0565b9050602002810190610e669190613c1f565b9050366000610e786020840184614250565b909250905080801580610e995750610e936040850185614426565b90508114155b15610ed0576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015610fb157610fa96040518060a0016040528087600001358152602001868685818110610f0557610f05613bf0565b9050602002810190610f1791906141dc565b610f2090614210565b8152602001610f326040890189614426565b85818110610f4257610f42613bf0565b905060600201803603810190610f58919061448d565b8152602001610f6d6080890160608a016138eb565b73ffffffffffffffffffffffffffffffffffffffff168152602001610f9860a0890160808a016144a9565b67ffffffffffffffff169052611d0a565b600101610ed3565b506000610fda8535610fc385876142b8565b610fd36080890160608a016138eb565b8b8a611e95565b8051909150610fe99089613fdf565b975080602001518a888151811061100257611002613bf0565b6020026020010181905250806020015151890198505050505050506110278160010190565b9050610e14565b604080516101408101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e0820183905261010082019290925261012081019190915260008281526004602081815260409283902083516101408101855281548152600182015492810192909252600281015467ffffffffffffffff808216958401959095526801000000000000000081048516606084015270010000000000000000000000000000000090049093166080820152600383015460a08201529082015473ffffffffffffffffffffffffffffffffffffffff90811660c0830152600583015490811660e083015274010000000000000000000000000000000000000000900460ff1615156101008201526006820180549192916101208401919061116790613ff2565b80601f016020809104026020016040519081016040528092919081815260200182805461119390613ff2565b80156111e05780601f106111b5576101008083540402835291602001916111e0565b820191906000526020600020905b8154815290600101906020018083116111c357829003601f168201915b5050505050815250509050919050565b611207611202368390038301836144c4565b6113a8565b604080516001808252818301909252600091816020015b604080518082019091526000808252602082015281526020019060019003908161121e5790505090506112593683900383016020840161432c565b8160008151811061126c5761126c613bf0565b6020908102919091010152610ae682358261128d60e0860160c087016138eb565b3460016115ba565b60004261074b338483611c0b565b60004282825b81811015610745576112d38686838181106112c6576112c6613bf0565b90506020020135846126b2565b6001016112a9565b60006112e56128dd565b905090565b604080516001808252818301909252600091829190816020015b6040805160c081018252600080825260208083018290529282018190526060808301829052608083015260a082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90920191018161130457905050905061137260208401846141dc565b61137b90614210565b8160008151811061138e5761138e613bf0565b60209081029190910101526108c083358233346001611e95565b608081015167ffffffffffffffff16158015906113dc57504267ffffffffffffffff16816080015167ffffffffffffffff16105b15611413576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6020808201516040808401516060850151855184518587015173ffffffffffffffffffffffffffffffffffffffff8416600090815260039098529487208054969794969495611508957fb5d556f07587ec0f08cf386545cc4362c702a001650c2058002615ee5c9d1e75959493928861148b83614532565b909155506080808c015160408051602081019990995273ffffffffffffffffffffffffffffffffffffffff9097169688019690965260608701949094529285019190915260a084015260c083015267ffffffffffffffff1660e0820152610100015b60405160208183030381529060405280519060200120612a15565b905061157e84606001518284602001518560400151866000015160405160200161156a93929190928352602083019190915260f81b7fff0000000000000000000000000000000000000000000000000000000000000016604082015260410190565b604051602081830303815290604052612a5d565b6115b4576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6040517fa2ea7c6e00000000000000000000000000000000000000000000000000000000815260048101869052600090819073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063a2ea7c6e90602401600060405180830381865afa15801561164a573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052611690919081019061456a565b80519091506116cb576040517fbf37b20e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b855160008167ffffffffffffffff8111156116e8576116e8613c5d565b60405190808252806020026020018201604052801561178757816020015b60408051610140810182526000808252602080830182905292820181905260608083018290526080830182905260a0830182905260c0830182905260e0830182905261010083019190915261012082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019101816117065790505b50905060008267ffffffffffffffff8111156117a5576117a5613c5d565b6040519080825280602002602001820160405280156117ce578160200160208202803683370190505b50905060005b83811015611bed5760008a82815181106117f0576117f0613bf0565b6020908102919091018101518051600090815260049092526040909120805491925090611849576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8c816001015414611886576040517fbf37b20e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600581015473ffffffffffffffffffffffffffffffffffffffff8c81169116146118dc576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600581015474010000000000000000000000000000000000000000900460ff16611932576040517f157bd4c300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002810154700100000000000000000000000000000000900467ffffffffffffffff161561198c576040517f905e710700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b426002820180547fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff811670010000000000000000000000000000000067ffffffffffffffff948516810291821793849055604080516101408101825287548152600188015460208201529386169286169290921791830191909152680100000000000000008304841660608301529091049091166080820152600382015460a0820152600482015473ffffffffffffffffffffffffffffffffffffffff90811660c0830152600583015490811660e083015274010000000000000000000000000000000000000000900460ff1615156101008201526006820180548391610120840191611a9890613ff2565b80601f0160208091040260200160405190810160405280929190818152602001828054611ac490613ff2565b8015611b115780601f10611ae657610100808354040283529160200191611b11565b820191906000526020600020905b815481529060010190602001808311611af457829003601f168201915b505050505081525050858481518110611b2c57611b2c613bf0565b60200260200101819052508160200151848481518110611b4e57611b4e613bf0565b6020026020010181815250508c8b73ffffffffffffffffffffffffffffffffffffffff16868581518110611b8457611b84613bf0565b602002602001015160c0015173ffffffffffffffffffffffffffffffffffffffff167ff930a6e2523c9cc298691873087a740550b8fc85a0680830414c148ed927f6158560000151604051611bdb91815260200190565b60405180910390a450506001016117d4565b50611bfd84838360018b8b612ad8565b9a9950505050505050505050565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600660209081526040808320858452918290529091205467ffffffffffffffff1615611c7f576040517fec9d6eeb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008381526020829052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff861690811790915590519091859173ffffffffffffffffffffffffffffffffffffffff8816917f92a1f7a41a7c585a8b09e25b195e225b1d43248daca46b0faf9e0792777a222991a450505050565b608081015167ffffffffffffffff1615801590611d3e57504267ffffffffffffffff16816080015167ffffffffffffffff16105b15611d75576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6020808201516040808401516060808601518651855186880151868801519488015160808901518051908b012060a08a015173ffffffffffffffffffffffffffffffffffffffff871660009081526003909c52988b2080549a9b989a9899611508997ffeb2925a02bae3dae48d424a0437a2b6ac939aa9230ddc55a1a76f065d988076999493928c611e0683614532565b919050558e608001516040516020016114ed9b9a999897969594939291909a8b5273ffffffffffffffffffffffffffffffffffffffff998a1660208c015260408b019890985295909716606089015267ffffffffffffffff938416608089015291151560a088015260c087015260e0860152610100850193909352610120840152166101408201526101600190565b60408051808201909152600081526060602082015284516040805180820190915260008152606060208201528167ffffffffffffffff811115611eda57611eda613c5d565b604051908082528060200260200182016040528015611f03578160200160208202803683370190505b5060208201526040517fa2ea7c6e000000000000000000000000000000000000000000000000000000008152600481018990526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a2ea7c6e90602401600060405180830381865afa158015611f97573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052611fdd919081019061456a565b8051909150612018576040517fbf37b20e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008367ffffffffffffffff81111561203357612033613c5d565b6040519080825280602002602001820160405280156120d257816020015b60408051610140810182526000808252602080830182905292820181905260608083018290526080830182905260a0830182905260c0830182905260e0830182905261010083019190915261012082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019101816120515790505b50905060008467ffffffffffffffff8111156120f0576120f0613c5d565b604051908082528060200260200182016040528015612119578160200160208202803683370190505b50905060005b858110156125a75760008b828151811061213b5761213b613bf0565b60200260200101519050600067ffffffffffffffff16816020015167ffffffffffffffff161415801561218657504267ffffffffffffffff16816020015167ffffffffffffffff1611155b156121bd576040517f08e8b93700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b84604001511580156121d0575080604001515b15612207576040517f157bd4c300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006040518061014001604052806000801b81526020018f815260200161222b4290565b67ffffffffffffffff168152602001836020015167ffffffffffffffff168152602001600067ffffffffffffffff16815260200183606001518152602001836000015173ffffffffffffffffffffffffffffffffffffffff1681526020018d73ffffffffffffffffffffffffffffffffffffffff16815260200183604001511515815260200183608001518152509050600080600090505b6122cd8382612ec7565b600081815260046020526040902054909250156122ec576001016122c3565b81835260008281526004602081815260409283902086518155908601516001820155918501516002830180546060880151608089015167ffffffffffffffff908116700100000000000000000000000000000000027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff92821668010000000000000000027fffffffffffffffffffffffffffffffff000000000000000000000000000000009094169190951617919091171691909117905560a0850151600383015560c0850151908201805473ffffffffffffffffffffffffffffffffffffffff9283167fffffffffffffffffffffffff000000000000000000000000000000000000000090911617905560e0850151600583018054610100880151151574010000000000000000000000000000000000000000027fffffffffffffffffffffff0000000000000000000000000000000000000000009091169290931691909117919091179055610120840151849190600682019061246b9082614690565b5050506060840151156124c25760608401516000908152600460205260409020546124c2576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b828786815181106124d5576124d5613bf0565b60200260200101819052508360a001518686815181106124f7576124f7613bf0565b602002602001018181525050818960200151868151811061251a5761251a613bf0565b6020026020010181815250508f8e73ffffffffffffffffffffffffffffffffffffffff16856000015173ffffffffffffffffffffffffffffffffffffffff167f8bf46bf4cfd674fa735a3d63ec1c9ad4153f033c290341f3a588b75685141b358560405161258a91815260200190565b60405180910390a4505050506125a08160010190565b905061211f565b506125b783838360008c8c612ad8565b845250919998505050505050505050565b606060008267ffffffffffffffff8111156125e5576125e5613c5d565b60405190808252806020026020018201604052801561260e578160200160208202803683370190505b508451909150600090815b818110156126a757600087828151811061263557612635613bf0565b6020026020010151905060008151905060005b818110156126935782818151811061266257612662613bf0565b602002602001015187878151811061267c5761267c613bf0565b602090810291909101015260019586019501612648565b5050506126a08160010190565b9050612619565b509195945050505050565b60008281526005602052604090205467ffffffffffffffff1615612702576040517f2e26794600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff85169081179091559051909184917f5aafceeb1c7ad58e4a84898bdee37c02c0fc46e7d24e6b60e8209449f183459f9190a35050565b6060600061278183612f26565b600101905060008167ffffffffffffffff8111156127a1576127a1613c5d565b6040519080825280601f01601f1916602001820160405280156127cb576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85049450846127d557509392505050565b606060ff831461284c5761284583613008565b905061074b565b81805461285890613ff2565b80601f016020809104026020016040519081016040528092919081815260200182805461288490613ff2565b80156128d15780601f106128a6576101008083540402835291602001916128d1565b820191906000526020600020905b8154815290600101906020018083116128b457829003601f168201915b5050505050905061074b565b60003073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614801561294357507f000000000000000000000000000000000000000000000000000000000000000046145b1561296d57507f000000000000000000000000000000000000000000000000000000000000000090565b6112e5604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b600061074b612a226128dd565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b6000806000612a6c8585613047565b90925090506000816004811115612a8557612a856147aa565b148015612abd57508573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16145b80612ace5750612ace86868661308c565b9695505050505050565b84516000906001819003612b3057612b288888600081518110612afd57612afd613bf0565b602002602001015188600081518110612b1857612b18613bf0565b60200260200101518888886131e9565b915050612ace565b602088015173ffffffffffffffffffffffffffffffffffffffff8116612bd15760005b82811015612bb657878181518110612b6d57612b6d613bf0565b6020026020010151600014612bae576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600101612b53565b508315612bc657612bc685613508565b600092505050612ace565b6000808273ffffffffffffffffffffffffffffffffffffffff1663ce46e0466040518163ffffffff1660e01b8152600401602060405180830381865afa158015612c1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612c4391906147d9565b905060005b84811015612d005760008a8281518110612c6457612c64613bf0565b6020026020010151905080600003612c7c5750612cf8565b82612cb3576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b88811115612ced576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b978890039792909201915b600101612c48565b508715612ddb576040517f88e5b2d900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416906388e5b2d9908490612d5d908e908e906004016147f6565b60206040518083038185885af1158015612d7b573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612da091906147d9565b612dd6576040517fbf2f3a8b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612eaa565b6040517f91db0b7e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8416906391db0b7e908490612e31908e908e906004016147f6565b60206040518083038185885af1158015612e4f573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612e7491906147d9565b612eaa576040517fe8bee83900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8515612eb957612eb987613508565b509998505050505050505050565b60208083015160c084015160e0850151604080870151606088015161010089015160a08a01516101208b01519451600099612f0899989796918c910161488a565b60405160208183030381529060405280519060200120905092915050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612f6f577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310612f9b576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612fb957662386f26fc10000830492506010015b6305f5e1008310612fd1576305f5e100830492506008015b6127108310612fe557612710830492506004015b60648310612ff7576064830492506002015b600a831061074b5760010192915050565b606060006130158361351b565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b600080825160410361307d5760208301516040840151606085015160001a6130718782858561355c565b94509450505050613085565b506000905060025b9250929050565b60008060008573ffffffffffffffffffffffffffffffffffffffff16631626ba7e60e01b86866040516024016130c3929190614968565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181526020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090941693909317909252905161314c9190614989565b600060405180830381855afa9150503d8060008114613187576040519150601f19603f3d011682016040523d82523d6000602084013e61318c565b606091505b50915091508180156131a057506020815110155b8015612ace575080517f1626ba7e00000000000000000000000000000000000000000000000000000000906131de908301602090810190840161499b565b149695505050505050565b602086015160009073ffffffffffffffffffffffffffffffffffffffff811661325d578515613244576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82156132535761325384613508565b6000915050612ace565b8515613348578073ffffffffffffffffffffffffffffffffffffffff1663ce46e0466040518163ffffffff1660e01b8152600401602060405180830381865afa1580156132ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132d291906147d9565b613308576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83861115613342576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85840393505b8415613420576040517fe49617e100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82169063e49617e19088906133a2908b90600401613b63565b60206040518083038185885af11580156133c0573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906133e591906147d9565b61341b576040517fccf3bb2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6134ed565b6040517fe60c350500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82169063e60c3505908890613474908b90600401613b63565b60206040518083038185885af1158015613492573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906134b791906147d9565b6134ed576040517fbd8ba84d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b82156134fc576134fc84613508565b50939695505050505050565b801561351857613518338261364b565b50565b600060ff8216601f81111561074b576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156135935750600090506003613642565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156135e7573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661363b57600060019250925050613642565b9150600090505b94509492505050565b804710156136ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064015b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d8060008114613714576040519150601f19603f3d011682016040523d82523d6000602084013e613719565b606091505b5050905080610ae6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016136b1565b60008083601f8401126137bc57600080fd5b50813567ffffffffffffffff8111156137d457600080fd5b6020830191508360208260051b850101111561308557600080fd5b6000806020838503121561380257600080fd5b823567ffffffffffffffff81111561381957600080fd5b613825858286016137aa565b90969095509350505050565b60005b8381101561384c578181015183820152602001613834565b50506000910152565b6000815180845261386d816020860160208601613831565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006138b26020830184613855565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461351857600080fd5b80356138e6816138b9565b919050565b6000602082840312156138fd57600080fd5b81356138b2816138b9565b60006020828403121561391a57600080fd5b813567ffffffffffffffff81111561393157600080fd5b820160e081850312156138b257600080fd5b6020808252825182820181905260009190848201906040850190845b8181101561397b5783518352928401929184019160010161395f565b50909695505050505050565b60006060828403121561399957600080fd5b50919050565b6000602082840312156139b157600080fd5b5035919050565b600081518084526020808501945080840160005b838110156139e8578151875295820195908201906001016139cc565b509495945050505050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e060208201526000613a2e60e0830189613855565b8281036040840152613a408189613855565b905086606084015273ffffffffffffffffffffffffffffffffffffffff861660808401528460a084015282810360c0840152611bfd81856139b8565b600061014082518452602083015160208501526040830151613aaa604086018267ffffffffffffffff169052565b506060830151613ac6606086018267ffffffffffffffff169052565b506080830151613ae2608086018267ffffffffffffffff169052565b5060a083015160a085015260c0830151613b1460c086018273ffffffffffffffffffffffffffffffffffffffff169052565b5060e0830151613b3c60e086018273ffffffffffffffffffffffffffffffffffffffff169052565b506101008381015115159085015261012080840151818601839052612ace83870182613855565b6020815260006138b26020830184613a7c565b6000610100828403121561399957600080fd5b60008060408385031215613b9c57600080fd5b8235613ba7816138b9565b946020939093013593505050565b600060208284031215613bc757600080fd5b813567ffffffffffffffff811115613bde57600080fd5b8201604081850312156138b257600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61833603018112613c5357600080fd5b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160a0810167ffffffffffffffff81118282101715613caf57613caf613c5d565b60405290565b60405160c0810167ffffffffffffffff81118282101715613caf57613caf613c5d565b6040516080810167ffffffffffffffff81118282101715613caf57613caf613c5d565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613d4257613d42613c5d565b604052919050565b600067ffffffffffffffff821115613d6457613d64613c5d565b5060051b60200190565b600060408284031215613d8057600080fd5b6040516040810181811067ffffffffffffffff82111715613da357613da3613c5d565b604052823581526020928301359281019290925250919050565b600060608284031215613dcf57600080fd5b6040516060810181811067ffffffffffffffff82111715613df257613df2613c5d565b604052905080823560ff81168114613e0957600080fd5b8082525060208301356020820152604083013560408201525092915050565b600082601f830112613e3957600080fd5b81356020613e4e613e4983613d4a565b613cfb565b82815260609283028501820192828201919087851115613e6d57600080fd5b8387015b85811015613e9057613e838982613dbd565b8452928401928101613e71565b5090979650505050505050565b803567ffffffffffffffff811681146138e657600080fd5b600060a08236031215613ec757600080fd5b613ecf613c8c565b8235815260208084013567ffffffffffffffff80821115613eef57600080fd5b9085019036601f830112613f0257600080fd5b8135613f10613e4982613d4a565b81815260069190911b83018401908481019036831115613f2f57600080fd5b938501935b82851015613f5857613f463686613d6e565b82528582019150604085019450613f34565b80868801525050506040860135925080831115613f7457600080fd5b5050613f8236828601613e28565b604083015250613f94606084016138db565b6060820152613fa560808401613e9d565b608082015292915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b8181038181111561074b5761074b613fb0565b600181811c9082168061400657607f821691505b602082108103613999577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b801515811461351857600080fd5b600067ffffffffffffffff82111561406757614067613c5d565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600060c082840312156140a557600080fd5b6140ad613cb5565b905081356140ba816138b9565b815260206140c9838201613e9d565b8183015260408301356140db8161403f565b604083015260608381013590830152608083013567ffffffffffffffff81111561410457600080fd5b8301601f8101851361411557600080fd5b8035614123613e498261404d565b818152868483850101111561413757600080fd5b818484018583013760008483830101528060808601525050505060a082013560a082015292915050565b600060e0823603121561417357600080fd5b61417b613c8c565b82358152602083013567ffffffffffffffff81111561419957600080fd5b6141a536828601614093565b6020830152506141b83660408501613dbd565b604082015260a08301356141cb816138b9565b6060820152613fa560c08401613e9d565b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff41833603018112613c5357600080fd5b600061074b3683614093565b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc1833603018112613c5357600080fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261428557600080fd5b83018035915067ffffffffffffffff8211156142a057600080fd5b6020019150600581901b360382131561308557600080fd5b60006142c6613e4984613d4a565b80848252602080830192508560051b8501368111156142e457600080fd5b855b8181101561432057803567ffffffffffffffff8111156143065760008081fd5b61431236828a01614093565b8652509382019382016142e6565b50919695505050505050565b60006040828403121561433e57600080fd5b6138b28383613d6e565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261437d57600080fd5b83018035915067ffffffffffffffff82111561439857600080fd5b6020019150600681901b360382131561308557600080fd5b600084516143c2818460208901613831565b80830190507f2e0000000000000000000000000000000000000000000000000000000000000080825285516143fe816001850160208a01613831565b60019201918201528351614419816002840160208801613831565b0160020195945050505050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261445b57600080fd5b83018035915067ffffffffffffffff82111561447657600080fd5b602001915060608102360382131561308557600080fd5b60006060828403121561449f57600080fd5b6138b28383613dbd565b6000602082840312156144bb57600080fd5b6138b282613e9d565b600061010082840312156144d757600080fd5b6144df613c8c565b823581526144f08460208501613d6e565b60208201526145028460608501613dbd565b604082015260c0830135614515816138b9565b606082015261452660e08401613e9d565b60808201529392505050565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361456357614563613fb0565b5060010190565b6000602080838503121561457d57600080fd5b825167ffffffffffffffff8082111561459557600080fd5b90840190608082870312156145a957600080fd5b6145b1613cd8565b82518152838301516145c2816138b9565b8185015260408301516145d48161403f565b60408201526060830151828111156145eb57600080fd5b80840193505086601f84011261460057600080fd5b82519150614610613e498361404d565b828152878584860101111561462457600080fd5b61463383868301878701613831565b60608201529695505050505050565b601f821115610ae657600081815260208120601f850160051c810160208610156146695750805b601f850160051c820191505b8181101561468857828155600101614675565b505050505050565b815167ffffffffffffffff8111156146aa576146aa613c5d565b6146be816146b88454613ff2565b84614642565b602080601f83116001811461471157600084156146db5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b178555614688565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b8281101561475e5788860151825594840194600190910190840161473f565b508582101561479a57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b6000602082840312156147eb57600080fd5b81516138b28161403f565b6000604082016040835280855180835260608501915060608160051b8601019250602080880160005b8381101561486b577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa0888703018552614859868351613a7c565b9550938201939082019060010161481f565b50508584038187015250505061488181856139b8565b95945050505050565b89815260007fffffffffffffffffffffffffffffffffffffffff000000000000000000000000808b60601b166020840152808a60601b166034840152507fffffffffffffffff000000000000000000000000000000000000000000000000808960c01b166048840152808860c01b1660508401525085151560f81b60588301528460598301528351614923816079850160208801613831565b80830190507fffffffff000000000000000000000000000000000000000000000000000000008460e01b166079820152607d81019150509a9950505050505050505050565b8281526040602082015260006149816040830184613855565b949350505050565b60008251613c53818460208701613831565b6000602082840312156149ad57600080fd5b505191905056fea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}deploy(e,t){return super.deploy(e,t||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.EAS__factory=o},23060:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IEAS__factory=void 0;const r=n(58986),a=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"address",name:"attester",type:"address"},{indexed:!1,internalType:"bytes32",name:"uid",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"schemaUID",type:"bytes32"}],name:"Attested",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"address",name:"attester",type:"address"},{indexed:!1,internalType:"bytes32",name:"uid",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"schemaUID",type:"bytes32"}],name:"Revoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"revoker",type:"address"},{indexed:!0,internalType:"bytes32",name:"data",type:"bytes32"},{indexed:!0,internalType:"uint64",name:"timestamp",type:"uint64"}],name:"RevokedOffchain",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"data",type:"bytes32"},{indexed:!0,internalType:"uint64",name:"timestamp",type:"uint64"}],name:"Timestamped",type:"event"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData",name:"data",type:"tuple"}],internalType:"struct AttestationRequest",name:"request",type:"tuple"}],name:"attest",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct Signature",name:"signature",type:"tuple"},{internalType:"address",name:"attester",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct DelegatedAttestationRequest",name:"delegatedRequest",type:"tuple"}],name:"attestByDelegation",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"getAttestation",outputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"revoker",type:"address"},{internalType:"bytes32",name:"data",type:"bytes32"}],name:"getRevokeOffchain",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[],name:"getSchemaRegistry",outputs:[{internalType:"contract ISchemaRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"data",type:"bytes32"}],name:"getTimestamp",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"isAttestationValid",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData[]",name:"data",type:"tuple[]"}],internalType:"struct MultiAttestationRequest[]",name:"multiRequests",type:"tuple[]"}],name:"multiAttest",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"attester",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct MultiDelegatedAttestationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiAttestByDelegation",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData[]",name:"data",type:"tuple[]"}],internalType:"struct MultiRevocationRequest[]",name:"multiRequests",type:"tuple[]"}],name:"multiRevoke",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"revoker",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct MultiDelegatedRevocationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiRevokeByDelegation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32[]",name:"data",type:"bytes32[]"}],name:"multiRevokeOffchain",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32[]",name:"data",type:"bytes32[]"}],name:"multiTimestamp",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData",name:"data",type:"tuple"}],internalType:"struct RevocationRequest",name:"request",type:"tuple"}],name:"revoke",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct Signature",name:"signature",type:"tuple"},{internalType:"address",name:"revoker",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct DelegatedRevocationRequest",name:"delegatedRequest",type:"tuple"}],name:"revokeByDelegation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"data",type:"bytes32"}],name:"revokeOffchain",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"data",type:"bytes32"}],name:"timestamp",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}];t.IEAS__factory=class{static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}},86634:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ISchemaRegistry__factory=void 0;const r=n(58986),a=[{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"uid",type:"bytes32"},{indexed:!0,internalType:"address",name:"registerer",type:"address"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"contract ISchemaResolver",name:"resolver",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"string",name:"schema",type:"string"}],indexed:!1,internalType:"struct SchemaRecord",name:"schema",type:"tuple"}],name:"Registered",type:"event"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"getSchema",outputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"contract ISchemaResolver",name:"resolver",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"string",name:"schema",type:"string"}],internalType:"struct SchemaRecord",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"schema",type:"string"},{internalType:"contract ISchemaResolver",name:"resolver",type:"address"},{internalType:"bool",name:"revocable",type:"bool"}],name:"register",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}];t.ISchemaRegistry__factory=class{static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}},43537:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ISemver__factory=void 0;const r=n(58986),a=[{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}];t.ISemver__factory=class{static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}},88114:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Indexer__factory=void 0;const r=n(58986),a=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"InvalidAttestation",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"InvalidOffset",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"uid",type:"bytes32"}],name:"Indexed",type:"event"},{inputs:[],name:"getEAS",outputs:[{internalType:"contract IEAS",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"bytes32",name:"schemaUID",type:"bytes32"}],name:"getReceivedAttestationUIDCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"bytes32",name:"schemaUID",type:"bytes32"},{internalType:"uint256",name:"start",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"},{internalType:"bool",name:"reverseOrder",type:"bool"}],name:"getReceivedAttestationUIDs",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"schemaUID",type:"bytes32"}],name:"getSchemaAttestationUIDCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"schemaUID",type:"bytes32"},{internalType:"uint256",name:"start",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"},{internalType:"bool",name:"reverseOrder",type:"bool"}],name:"getSchemaAttestationUIDs",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"schemaUID",type:"bytes32"},{internalType:"address",name:"attester",type:"address"},{internalType:"address",name:"recipient",type:"address"}],name:"getSchemaAttesterRecipientAttestationUIDCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"schemaUID",type:"bytes32"},{internalType:"address",name:"attester",type:"address"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"start",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"},{internalType:"bool",name:"reverseOrder",type:"bool"}],name:"getSchemaAttesterRecipientAttestationUIDs",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"attester",type:"address"},{internalType:"bytes32",name:"schemaUID",type:"bytes32"}],name:"getSentAttestationUIDCount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"attester",type:"address"},{internalType:"bytes32",name:"schemaUID",type:"bytes32"},{internalType:"uint256",name:"start",type:"uint256"},{internalType:"uint256",name:"length",type:"uint256"},{internalType:"bool",name:"reverseOrder",type:"bool"}],name:"getSentAttestationUIDs",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"attestationUID",type:"bytes32"}],name:"indexAttestation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32[]",name:"attestationUIDs",type:"bytes32[]"}],name:"indexAttestations",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"attestationUID",type:"bytes32"}],name:"isAttestationIndexed",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],i="0x61010060405234801561001157600080fd5b506040516111b13803806111b183398101604081905261003091610077565b6001608052600360a052600060c0526001600160a01b038116610066576040516341bc07ff60e11b815260040160405180910390fd5b6001600160a01b031660e0526100a7565b60006020828403121561008957600080fd5b81516001600160a01b03811681146100a057600080fd5b9392505050565b60805160a05160c05160e0516110ca6100e7600039600081816101ea01526108330152600061034c01526000610323015260006102fa01526110ca6000f3fe608060405234801561001057600080fd5b50600436106100df5760003560e01c8063715ecdf61161008c578063b616352a11610066578063b616352a1461026d578063bbbdc81814610282578063ea51994b14610295578063ec864cba146102e057600080fd5b8063715ecdf61461021457806389a82fbe14610227578063af288efe1461025a57600080fd5b806354fd4d50116100bd57806354fd4d501461019b57806363bbf81b146101b057806365c40b9c146101d057600080fd5b80632412e9cc146100e4578063288a0a7b146101385780632f45f90e1461017b575b600080fd5b6101256100f2366004610b38565b73ffffffffffffffffffffffffffffffffffffffff91909116600090815260208181526040808320938352929052205490565b6040519081526020015b60405180910390f35b610125610146366004610b38565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600160209081526040808320938352929052205490565b610125610189366004610b64565b60009081526003602052604090205490565b6101a36102f3565b60405161012f9190610ba1565b6101c36101be366004610c00565b610396565b60405161012f9190610c41565b60405173ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016815260200161012f565b6101c3610222366004610c85565b610410565b61024a610235366004610b64565b60009081526004602052604090205460ff1690565b604051901515815260200161012f565b6101c3610268366004610cec565b6104ad565b61028061027b366004610d42565b61053c565b005b610280610290366004610b64565b610577565b6101256102a3366004610db7565b600092835260026020908152604080852073ffffffffffffffffffffffffffffffffffffffff948516865282528085209290931684525290205490565b6101c36102ee366004610cec565b610583565b606061031e7f000000000000000000000000000000000000000000000000000000000000000061060a565b6103477f000000000000000000000000000000000000000000000000000000000000000061060a565b6103707f000000000000000000000000000000000000000000000000000000000000000061060a565b60405160200161038293929190610df9565b604051602081830303815290604052905090565b6060610405600360008781526020019081526020016000208054806020026020016040519081016040528092919081815260200182805480156103f857602002820191906000526020600020905b8154815260200190600101908083116103e4575b50505050508585856106c8565b90505b949350505050565b600086815260026020908152604080832073ffffffffffffffffffffffffffffffffffffffff808a168552908352818420908816845282529182902080548351818402810184019094528084526060936104a293909291908301828280156103f857602002820191906000526020600020908154815260200190600101908083116103e45750505050508585856106c8565b979650505050505050565b73ffffffffffffffffffffffffffffffffffffffff8516600090815260208181526040808320878452825291829020805483518184028101840190945280845260609361053293909291908301828280156103f857602002820191906000526020600020908154815260200190600101908083116103e45750505050508585856106c8565b9695505050505050565b8060005b818110156105715761056984848381811061055d5761055d610e6f565b905060200201356107e7565b600101610540565b50505050565b610580816107e7565b50565b73ffffffffffffffffffffffffffffffffffffffff85166000908152600160209081526040808320878452825291829020805483518184028101840190945280845260609361053293909291908301828280156103f857602002820191906000526020600020908154815260200190600101908083116103e45750505050508585856106c8565b6060600061061783610a33565b600101905060008167ffffffffffffffff81111561063757610637610e9e565b6040519080825280601f01601f191660200182016040528015610661576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461066b57509392505050565b835160609060008190036106ec575050604080516000815260208101909152610408565b808510610725576040517f01da157200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8385810182101561073557508481035b60008167ffffffffffffffff81111561075057610750610e9e565b604051908082528060200260200182016040528015610779578160200160208202803683370190505b50905060005b828110156107db5788866107955781890161079e565b81890160010185035b815181106107ae576107ae610e6f565b60200260200101518282815181106107c8576107c8610e6f565b602090810291909101015260010161077f565b50979650505050505050565b60008181526004602052604090205460ff16156108015750565b6040517fa3112a64000000000000000000000000000000000000000000000000000000008152600481018290526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a3112a6490602401600060405180830381865afa15801561088f573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526108d59190810190610fc6565b805190915080610911576040517fbd8ba84d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60e082015160c0830151602080850151600087815260048352604080822080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001660019081179091558383526003855281832080548083018255908452858420018a905573ffffffffffffffffffffffffffffffffffffffff808716808552848752838520868652875283852080548085018255908652878620018c9055908816808552828752838520868652875283852080548085018255908652878620018c905585855260028752838520908552865282842090845285528183208054918201815583529382209093018890559151909185917f2178f435e9624d54115e1d50a7313c90518a363b292678118444c0a239f11cf99190a2505050505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310610a7c577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310610aa8576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310610ac657662386f26fc10000830492506010015b6305f5e1008310610ade576305f5e100830492506008015b6127108310610af257612710830492506004015b60648310610b04576064830492506002015b600a8310610b10576001015b92915050565b73ffffffffffffffffffffffffffffffffffffffff8116811461058057600080fd5b60008060408385031215610b4b57600080fd5b8235610b5681610b16565b946020939093013593505050565b600060208284031215610b7657600080fd5b5035919050565b60005b83811015610b98578181015183820152602001610b80565b50506000910152565b6020815260008251806020840152610bc0816040850160208701610b7d565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b801515811461058057600080fd5b60008060008060808587031215610c1657600080fd5b8435935060208501359250604085013591506060850135610c3681610bf2565b939692955090935050565b6020808252825182820181905260009190848201906040850190845b81811015610c7957835183529284019291840191600101610c5d565b50909695505050505050565b60008060008060008060c08789031215610c9e57600080fd5b863595506020870135610cb081610b16565b94506040870135610cc081610b16565b9350606087013592506080870135915060a0870135610cde81610bf2565b809150509295509295509295565b600080600080600060a08688031215610d0457600080fd5b8535610d0f81610b16565b94506020860135935060408601359250606086013591506080860135610d3481610bf2565b809150509295509295909350565b60008060208385031215610d5557600080fd5b823567ffffffffffffffff80821115610d6d57600080fd5b818501915085601f830112610d8157600080fd5b813581811115610d9057600080fd5b8660208260051b8501011115610da557600080fd5b60209290920196919550909350505050565b600080600060608486031215610dcc57600080fd5b833592506020840135610dde81610b16565b91506040840135610dee81610b16565b809150509250925092565b60008451610e0b818460208901610b7d565b80830190507f2e000000000000000000000000000000000000000000000000000000000000008082528551610e47816001850160208a01610b7d565b60019201918201528351610e62816002840160208801610b7d565b0160020195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610140810167ffffffffffffffff81118282101715610ef157610ef1610e9e565b60405290565b805167ffffffffffffffff81168114610f0f57600080fd5b919050565b8051610f0f81610b16565b8051610f0f81610bf2565b600082601f830112610f3b57600080fd5b815167ffffffffffffffff80821115610f5657610f56610e9e565b604051601f83017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f01168101908282118183101715610f9c57610f9c610e9e565b81604052838152866020858801011115610fb557600080fd5b610532846020830160208901610b7d565b600060208284031215610fd857600080fd5b815167ffffffffffffffff80821115610ff057600080fd5b90830190610140828603121561100557600080fd5b61100d610ecd565b825181526020830151602082015261102760408401610ef7565b604082015261103860608401610ef7565b606082015261104960808401610ef7565b608082015260a083015160a082015261106460c08401610f14565b60c082015261107560e08401610f14565b60e0820152610100611088818501610f1f565b9082015261012083810151838111156110a057600080fd5b6110ac88828701610f2a565b91830191909152509594505050505056fea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}deploy(e,t){return super.deploy(e,t||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.Indexer__factory=o},31270:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaRegistry__factory=void 0;const r=n(58986),a=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AlreadyExists",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"uid",type:"bytes32"},{indexed:!0,internalType:"address",name:"registerer",type:"address"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"contract ISchemaResolver",name:"resolver",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"string",name:"schema",type:"string"}],indexed:!1,internalType:"struct SchemaRecord",name:"schema",type:"tuple"}],name:"Registered",type:"event"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"getSchema",outputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"contract ISchemaResolver",name:"resolver",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"string",name:"schema",type:"string"}],internalType:"struct SchemaRecord",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"schema",type:"string"},{internalType:"contract ISchemaResolver",name:"resolver",type:"address"},{internalType:"bool",name:"revocable",type:"bool"}],name:"register",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],i="0x60e060405234801561001057600080fd5b506001608052600360a052600060c05260805160a05160c051610a8461004c600039600060fe0152600060d50152600060ac0152610a846000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806354fd4d501461004657806360d7a27814610064578063a2ea7c6e14610085575b600080fd5b61004e6100a5565b60405161005b9190610683565b60405180910390f35b61007761007236600461069d565b610148565b60405190815260200161005b565b61009861009336600461074f565b61030c565b60405161005b9190610768565b60606100d07f0000000000000000000000000000000000000000000000000000000000000000610434565b6100f97f0000000000000000000000000000000000000000000000000000000000000000610434565b6101227f0000000000000000000000000000000000000000000000000000000000000000610434565b604051602001610134939291906107c1565b604051602081830303815290604052905090565b60008060405180608001604052806000801b81526020018573ffffffffffffffffffffffffffffffffffffffff168152602001841515815260200187878080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920182905250939094525092935091506101ca9050826104f2565b60008181526020819052604090205490915015610213576040517f23369fa600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80825260008181526020818152604091829020845181559084015160018201805493860151151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00000000000000000000000000000000000000000090941673ffffffffffffffffffffffffffffffffffffffff9092169190911792909217909155606083015183919060028201906102af9082610908565b509050503373ffffffffffffffffffffffffffffffffffffffff16817fd0b86852e21f9e5fa4bc3b0cff9757ffe243d50c4b43968a42202153d651ea5e846040516102fa9190610768565b60405180910390a39695505050505050565b604080516080810182526000808252602082018190529181019190915260608082015260008281526020818152604091829020825160808101845281548152600182015473ffffffffffffffffffffffffffffffffffffffff8116938201939093527401000000000000000000000000000000000000000090920460ff161515928201929092526002820180549192916060840191906103ab90610866565b80601f01602080910402602001604051908101604052809291908181526020018280546103d790610866565b80156104245780601f106103f957610100808354040283529160200191610424565b820191906000526020600020905b81548152906001019060200180831161040757829003601f168201915b5050505050815250509050919050565b6060600061044183610532565b600101905060008167ffffffffffffffff81111561046157610461610837565b6040519080825280601f01601f19166020018201604052801561048b576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461049557509392505050565b600081606001518260200151836040015160405160200161051593929190610a22565b604051602081830303815290604052805190602001209050919050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061057b577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106105a7576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106105c557662386f26fc10000830492506010015b6305f5e10083106105dd576305f5e100830492506008015b61271083106105f157612710830492506004015b60648310610603576064830492506002015b600a831061060f576001015b92915050565b60005b83811015610630578181015183820152602001610618565b50506000910152565b60008151808452610651816020860160208601610615565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006106966020830184610639565b9392505050565b600080600080606085870312156106b357600080fd5b843567ffffffffffffffff808211156106cb57600080fd5b818701915087601f8301126106df57600080fd5b8135818111156106ee57600080fd5b88602082850101111561070057600080fd5b6020928301965094505085013573ffffffffffffffffffffffffffffffffffffffff8116811461072f57600080fd5b91506040850135801515811461074457600080fd5b939692955090935050565b60006020828403121561076157600080fd5b5035919050565b602081528151602082015273ffffffffffffffffffffffffffffffffffffffff6020830151166040820152604082015115156060820152600060608301516080808401526107b960a0840182610639565b949350505050565b600084516107d3818460208901610615565b80830190507f2e00000000000000000000000000000000000000000000000000000000000000808252855161080f816001850160208a01610615565b6001920191820152835161082a816002840160208801610615565b0160020195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600181811c9082168061087a57607f821691505b6020821081036108b3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b601f82111561090357600081815260208120601f850160051c810160208610156108e05750805b601f850160051c820191505b818110156108ff578281556001016108ec565b5050505b505050565b815167ffffffffffffffff81111561092257610922610837565b610936816109308454610866565b846108b9565b602080601f83116001811461098957600084156109535750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b1785556108ff565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b828110156109d6578886015182559484019460019091019084016109b7565b5085821015610a1257878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b60008451610a34818460208901610615565b60609490941b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000169190930190815290151560f81b60148201526015019291505056fea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e){return super.getDeployTransaction(e||{})}deploy(e){return super.deploy(e||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.SchemaRegistry__factory=o},47875:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Semver__factory=void 0;const r=n(58986),a=[{inputs:[{internalType:"uint256",name:"major",type:"uint256"},{internalType:"uint256",name:"minor",type:"uint256"},{internalType:"uint256",name:"patch",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],i="0x60e060405234801561001057600080fd5b5060405161045338038061045383398101604081905261002f91610040565b60809290925260a05260c05261006e565b60008060006060848603121561005557600080fd5b8351925060208401519150604084015190509250925092565b60805160a05160c0516103b961009a600039600060a701526000607e01526000605501526103b96000f3fe608060405234801561001057600080fd5b506004361061002b5760003560e01c806354fd4d5014610030575b600080fd5b61003861004e565b60405161004591906102b6565b60405180910390f35b60606100797f00000000000000000000000000000000000000000000000000000000000000006100f1565b6100a27f00000000000000000000000000000000000000000000000000000000000000006100f1565b6100cb7f00000000000000000000000000000000000000000000000000000000000000006100f1565b6040516020016100dd93929190610307565b604051602081830303815290604052905090565b606060006100fe836101af565b600101905060008167ffffffffffffffff81111561011e5761011e61037d565b6040519080825280601f01601f191660200182016040528015610148576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461015257509392505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106101f8577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310610224576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061024257662386f26fc10000830492506010015b6305f5e100831061025a576305f5e100830492506008015b612710831061026e57612710830492506004015b60648310610280576064830492506002015b600a831061028c576001015b92915050565b60005b838110156102ad578181015183820152602001610295565b50506000910152565b60208152600082518060208401526102d5816040850160208701610292565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008451610319818460208901610292565b80830190507f2e000000000000000000000000000000000000000000000000000000000000008082528551610355816001850160208a01610292565b60019201918201528351610370816002840160208801610292565b0160020195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e,t,n,r){return super.getDeployTransaction(e,t,n,r||{})}deploy(e,t,n,r){return super.deploy(e,t,n,r||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.Semver__factory=o},33579:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EIP1271Verifier__factory=void 0;const r=n(58986),a=[{inputs:[],name:"InvalidNonce",type:"error"},{inputs:[],name:"InvalidShortString",type:"error"},{inputs:[{internalType:"string",name:"str",type:"string"}],name:"StringTooLong",type:"error"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldNonce",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newNonce",type:"uint256"}],name:"NonceIncreased",type:"event"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAttestTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getDomainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getName",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRevokeTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"newNonce",type:"uint256"}],name:"increaseNonce",outputs:[],stateMutability:"nonpayable",type:"function"}];t.EIP1271Verifier__factory=class{static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}},91905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EIP1271Verifier__factory=void 0;var r=n(33579);Object.defineProperty(t,"EIP1271Verifier__factory",{enumerable:!0,get:function(){return r.EIP1271Verifier__factory}})},49939:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.proxy=void 0,t.proxy=i(n(27649))},21741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EIP712Proxy__factory=void 0;const r=n(58986),a=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"},{internalType:"string",name:"name",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"DeadlineExpired",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"InvalidLength",type:"error"},{inputs:[],name:"InvalidShortString",type:"error"},{inputs:[],name:"InvalidSignature",type:"error"},{inputs:[],name:"NotFound",type:"error"},{inputs:[{internalType:"string",name:"str",type:"string"}],name:"StringTooLong",type:"error"},{inputs:[],name:"UsedSignature",type:"error"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct Signature",name:"signature",type:"tuple"},{internalType:"address",name:"attester",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct DelegatedProxyAttestationRequest",name:"delegatedRequest",type:"tuple"}],name:"attestByDelegation",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"payable",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAttestTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"getAttester",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getEAS",outputs:[{internalType:"contract IEAS",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getName",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRevokeTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"attester",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct MultiDelegatedProxyAttestationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiAttestByDelegation",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"revoker",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct MultiDelegatedProxyRevocationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiRevokeByDelegation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct Signature",name:"signature",type:"tuple"},{internalType:"address",name:"revoker",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct DelegatedProxyRevocationRequest",name:"delegatedRequest",type:"tuple"}],name:"revokeByDelegation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],i="0x6101e06040523480156200001257600080fd5b5060405162002d9f38038062002d9f83398101604081905262000035916200022c565b6040805180820190915260058152640312e332e360dc1b60208201526001608052600360a052600060c0819052829190620000729083906200016b565b61018052620000838160016200016b565b6101a052815160208084019190912061014052815190820120610160524661010052620001146101405161016051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60e052505030610120526001600160a01b03821662000146576040516341bc07ff60e11b815260040160405180910390fd5b6001600160a01b0382166101c052600262000162828262000396565b505050620004bc565b60006020835110156200018b576200018383620001a4565b90506200019e565b8162000198848262000396565b5060ff90505b92915050565b600080829050601f81511115620001db578260405163305a27a960e01b8152600401620001d2919062000462565b60405180910390fd5b8051620001e88262000497565b179392505050565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200022357818101518382015260200162000209565b50506000910152565b600080604083850312156200024057600080fd5b82516001600160a01b03811681146200025857600080fd5b60208401519092506001600160401b03808211156200027657600080fd5b818501915085601f8301126200028b57600080fd5b815181811115620002a057620002a0620001f0565b604051601f8201601f19908116603f01168101908382118183101715620002cb57620002cb620001f0565b81604052828152886020848701011115620002e557600080fd5b620002f883602083016020880162000206565b80955050505050509250929050565b600181811c908216806200031c57607f821691505b6020821081036200033d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200039157600081815260208120601f850160051c810160208610156200036c5750805b601f850160051c820191505b818110156200038d5782815560010162000378565b5050505b505050565b81516001600160401b03811115620003b257620003b2620001f0565b620003ca81620003c3845462000307565b8462000343565b602080601f831160018114620004025760008415620003e95750858301515b600019600386901b1c1916600185901b1785556200038d565b600085815260208120601f198616915b82811015620004335788860151825594840194600190910190840162000412565b5085821015620004525787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208152600082518060208401526200048381604085016020870162000206565b601f01601f19169190910160400192915050565b805160208083015191908110156200033d5760001960209190910360031b1b16919050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516128406200055f600039600081816101e4015281816104d1015281816105e901528181610a9d0152610c7e015260006107f8015260006107ce01526000611402015260006113da015260006113350152600061135f01526000611389015260006107760152600061074d0152600061072401526128406000f3fe6080604052600436106100c75760003560e01c806365c40b9c11610074578063a6d4dbc71161004e578063a6d4dbc714610250578063b83010d314610263578063ed24911d1461029657600080fd5b806365c40b9c146101d557806384b0196e14610208578063954115251461023057600080fd5b806317d7de7c116100a557806317d7de7c1461018b5780633c042715146101ad57806354fd4d50146101c057600080fd5b80630eabf660146100cc57806310d736d5146100e157806312b11a171461014e575b600080fd5b6100df6100da366004611a29565b6102ab565b005b3480156100ed57600080fd5b506101246100fc366004611a6b565b60009081526003602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b34801561015a57600080fd5b507fea02ffba7dcb45f6fc649714d23f315eef12e3b27f9a7735d8d8bf41eb2b1af15b604051908152602001610145565b34801561019757600080fd5b506101a0610540565b6040516101459190611af2565b61017d6101bb366004611b0c565b6105d2565b3480156101cc57600080fd5b506101a061071d565b3480156101e157600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610124565b34801561021457600080fd5b5061021d6107c0565b6040516101459796959493929190611b47565b61024361023e366004611a29565b610864565b6040516101459190611c06565b6100df61025e366004611c4a565b610c65565b34801561026f57600080fd5b507f78a69a78c1a55cdff5cbf949580b410778cd9e4d1ecbe6f06a7fa8dc2441b57d61017d565b3480156102a257600080fd5b5061017d610d65565b8060008167ffffffffffffffff8111156102c7576102c7611c63565b60405190808252806020026020018201604052801561030d57816020015b6040805180820190915260008152606060208201528152602001906001900390816102e55790505b50905060005b8281101561049357600085858381811061032f5761032f611c92565b90506020028101906103419190611cc1565b61034a90611f2e565b602081015180519192509080158061036757508260400151518114155b1561039e576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b818110156104485760008382815181106103bd576103bd611c92565b6020026020010151905061043f6040518060a0016040528087600001518152602001838152602001876040015185815181106103fb576103fb611c92565b60200260200101518152602001876060015173ffffffffffffffffffffffffffffffffffffffff168152602001876080015167ffffffffffffffff16815250610d74565b506001016103a1565b506040518060400160405280846000015181526020018381525085858151811061047457610474611c92565b602002602001018190525050505061048c8160010190565b9050610313565b506040517f4cb7e9e500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690634cb7e9e5903490610508908590600401612029565b6000604051808303818588803b15801561052157600080fd5b505af1158015610535573d6000803e3d6000fd5b505050505050505050565b60606002805461054f906120f8565b80601f016020809104026020016040519081016040528092919081815260200182805461057b906120f8565b80156105c85780601f1061059d576101008083540402835291602001916105c8565b820191906000526020600020905b8154815290600101906020018083116105ab57829003601f168201915b5050505050905090565b60006105e56105e083612269565b610fd0565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f17325e73460405180604001604052808760000135815260200187806020019061064991906122e2565b61065290612316565b8152506040518363ffffffff1660e01b81526004016106719190612395565b60206040518083038185885af115801561068f573d6000803e3d6000fd5b50505050506040513d601f19601f820116820180604052508101906106b491906123c2565b90506106c660c0840160a085016123db565b600082815260036020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905592915050565b60606107487f00000000000000000000000000000000000000000000000000000000000000006111b2565b6107717f00000000000000000000000000000000000000000000000000000000000000006111b2565b61079a7f00000000000000000000000000000000000000000000000000000000000000006111b2565b6040516020016107ac939291906123f6565b604051602081830303815290604052905090565b6000606080828080836107f37f000000000000000000000000000000000000000000000000000000000000000083611270565b61081e7f00000000000000000000000000000000000000000000000000000000000000006001611270565b604080516000808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b60608160008167ffffffffffffffff81111561088257610882611c63565b6040519080825280602002602001820160405280156108c857816020015b6040805180820190915260008152606060208201528152602001906001900390816108a05790505b50905060005b82811015610a9857368686838181106108e9576108e9611c92565b90506020028101906108fb9190611cc1565b905036600061090d602084018461246c565b90925090508080158061092e575061092860408501856124d4565b90508114155b15610965576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015610a4657610a3e6040518060a001604052808760000135815260200186868581811061099a5761099a611c92565b90506020028101906109ac91906122e2565b6109b590612316565b81526020016109c760408901896124d4565b858181106109d7576109d7611c92565b9050606002018036038101906109ed919061253b565b8152602001610a026080890160608a016123db565b73ffffffffffffffffffffffffffffffffffffffff168152602001610a2d60a0890160808a01612557565b67ffffffffffffffff169052610fd0565b600101610968565b50604080518082019091528435815260208101610a638486612572565b815250868681518110610a7857610a78611c92565b602002602001018190525050505050610a918160010190565b90506108ce565b5060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166344adc90e34846040518363ffffffff1660e01b8152600401610af591906125e6565b60006040518083038185885af1158015610b13573d6000803e3d6000fd5b50505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052610b5a91908101906126d9565b90506000805b84811015610c575736888883818110610b7b57610b7b611c92565b9050602002810190610b8d9190611cc1565b9050366000610b9f602084018461246c565b90925090508060005b81811015610c4157610bc060808601606087016123db565b600360008a8a81518110610bd657610bd6611c92565b6020026020010151815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550866001019650610c3a8160010190565b9050610ba8565b5050505050610c508160010190565b9050610b60565b509093505050505b92915050565b610c7c610c773683900383018361276a565b610d74565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663469262673460405180604001604052808560000135815260200185602001803603810190610ce291906127d6565b90526040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815281516004820152602091820151805160248301529091015160448201526064016000604051808303818588803b158015610d4957600080fd5b505af1158015610d5d573d6000803e3d6000fd5b505050505050565b6000610d6f61131b565b905090565b608081015167ffffffffffffffff1615801590610da857504267ffffffffffffffff16816080015167ffffffffffffffff16105b15610ddf576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60208082015180516000908152600390925260409091205473ffffffffffffffffffffffffffffffffffffffff1680610e44576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff81163314610e93576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6040830151610ea181611453565b606080850151855185516020808801516080808b0151604080517f78a69a78c1a55cdff5cbf949580b410778cd9e4d1ecbe6f06a7fa8dc2441b57d9581019590955273ffffffffffffffffffffffffffffffffffffffff90971696840196909652958201939093529384015260a083015267ffffffffffffffff1660c0820152600090610f479060e0015b60405160208183030381529060405280519060200120611561565b9050846060015173ffffffffffffffffffffffffffffffffffffffff16610f7c828460000151856020015186604001516115a9565b73ffffffffffffffffffffffffffffffffffffffff1614610fc9576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b608081015167ffffffffffffffff161580159061100457504267ffffffffffffffff16816080015167ffffffffffffffff16105b1561103b576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6020810151604082015161104e81611453565b600061112a7fea02ffba7dcb45f6fc649714d23f315eef12e3b27f9a7735d8d8bf41eb2b1af160001b8560600151866000015186600001518760200151886040015189606001518a60800151805190602001208b60a001518d60800151604051602001610f2c9a99989796959493929190998a5273ffffffffffffffffffffffffffffffffffffffff98891660208b015260408a019790975294909616606088015267ffffffffffffffff928316608088015290151560a087015260c086015260e0850193909352610100840152166101208201526101400190565b9050836060015173ffffffffffffffffffffffffffffffffffffffff1661115f828460000151856020015186604001516115a9565b73ffffffffffffffffffffffffffffffffffffffff16146111ac576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b606060006111bf836115d1565b600101905060008167ffffffffffffffff8111156111df576111df611c63565b6040519080825280601f01601f191660200182016040528015611209576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461121357509392505050565b606060ff831461128a57611283836116b3565b9050610c5f565b818054611296906120f8565b80601f01602080910402602001604051908101604052809291908181526020018280546112c2906120f8565b801561130f5780601f106112e45761010080835404028352916020019161130f565b820191906000526020600020905b8154815290600101906020018083116112f257829003601f168201915b50505050509050610c5f565b60003073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614801561138157507f000000000000000000000000000000000000000000000000000000000000000046145b156113ab57507f000000000000000000000000000000000000000000000000000000000000000090565b610d6f604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b8051602080830151604080850151905160f89490941b7fff0000000000000000000000000000000000000000000000000000000000000016928401929092526021830152604182015260009060610160405160208183030381529060405290506004816040516114c391906127f2565b9081526040519081900360200190205460ff161561150d576040517fcce9a82400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600160048260405161151f91906127f2565b90815260405190819003602001902080549115157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009092169190911790555050565b6000610c5f61156e61131b565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b60008060006115ba878787876116f2565b915091506115c7816117e1565b5095945050505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061161a577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611646576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061166457662386f26fc10000830492506010015b6305f5e100831061167c576305f5e100830492506008015b612710831061169057612710830492506004015b606483106116a2576064830492506002015b600a8310610c5f5760010192915050565b606060006116c08361199c565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561172957506000905060036117d8565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561177d573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166117d1576000600192509250506117d8565b9150600090505b94509492505050565b60008160048111156117f5576117f5612804565b036117fd5750565b600181600481111561181157611811612804565b0361187d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064015b60405180910390fd5b600281600481111561189157611891612804565b036118f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401611874565b600381600481111561190c5761190c612804565b03611999576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401611874565b50565b600060ff8216601f811115610c5f576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008083601f8401126119ef57600080fd5b50813567ffffffffffffffff811115611a0757600080fd5b6020830191508360208260051b8501011115611a2257600080fd5b9250929050565b60008060208385031215611a3c57600080fd5b823567ffffffffffffffff811115611a5357600080fd5b611a5f858286016119dd565b90969095509350505050565b600060208284031215611a7d57600080fd5b5035919050565b60005b83811015611a9f578181015183820152602001611a87565b50506000910152565b60008151808452611ac0816020860160208601611a84565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611b056020830184611aa8565b9392505050565b600060208284031215611b1e57600080fd5b813567ffffffffffffffff811115611b3557600080fd5b820160e08185031215611b0557600080fd5b7fff00000000000000000000000000000000000000000000000000000000000000881681526000602060e081840152611b8360e084018a611aa8565b8381036040850152611b95818a611aa8565b6060850189905273ffffffffffffffffffffffffffffffffffffffff8816608086015260a0850187905284810360c0860152855180825283870192509083019060005b81811015611bf457835183529284019291840191600101611bd8565b50909c9b505050505050505050505050565b6020808252825182820181905260009190848201906040850190845b81811015611c3e57835183529284019291840191600101611c22565b50909695505050505050565b60006101008284031215611c5d57600080fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff61833603018112611cf557600080fd5b9190910192915050565b60405160a0810167ffffffffffffffff81118282101715611d2257611d22611c63565b60405290565b60405160c0810167ffffffffffffffff81118282101715611d2257611d22611c63565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715611d9257611d92611c63565b604052919050565b600067ffffffffffffffff821115611db457611db4611c63565b5060051b60200190565b600060408284031215611dd057600080fd5b6040516040810181811067ffffffffffffffff82111715611df357611df3611c63565b604052823581526020928301359281019290925250919050565b600060608284031215611e1f57600080fd5b6040516060810181811067ffffffffffffffff82111715611e4257611e42611c63565b604052905080823560ff81168114611e5957600080fd5b8082525060208301356020820152604083013560408201525092915050565b600082601f830112611e8957600080fd5b81356020611e9e611e9983611d9a565b611d4b565b82815260609283028501820192828201919087851115611ebd57600080fd5b8387015b85811015611ee057611ed38982611e0d565b8452928401928101611ec1565b5090979650505050505050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611f1157600080fd5b919050565b803567ffffffffffffffff81168114611f1157600080fd5b600060a08236031215611f4057600080fd5b611f48611cff565b8235815260208084013567ffffffffffffffff80821115611f6857600080fd5b9085019036601f830112611f7b57600080fd5b8135611f89611e9982611d9a565b81815260069190911b83018401908481019036831115611fa857600080fd5b938501935b82851015611fd157611fbf3686611dbe565b82528582019150604085019450611fad565b80868801525050506040860135925080831115611fed57600080fd5b5050611ffb36828601611e78565b60408301525061200d60608401611eed565b606082015261201e60808401611f16565b608082015292915050565b60006020808301818452808551808352604092508286019150828160051b8701018488016000805b848110156120e9578984037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0018652825180518552880151888501889052805188860181905290890190839060608701905b808310156120d4576120c082855180518252602090810151910152565b928b019260019290920191908a01906120a3565b50978a01979550505091870191600101612051565b50919998505050505050505050565b600181811c9082168061210c57607f821691505b602082108103611c5d577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600082601f83011261215657600080fd5b813567ffffffffffffffff81111561217057612170611c63565b6121a160207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601611d4b565b8181528460208386010111156121b657600080fd5b816020850160208301376000918101602001919091529392505050565b600060c082840312156121e557600080fd5b6121ed611d28565b90506121f882611eed565b815261220660208301611f16565b60208201526040820135801515811461221e57600080fd5b604082015260608281013590820152608082013567ffffffffffffffff81111561224757600080fd5b61225384828501612145565b60808301525060a082013560a082015292915050565b600060e0823603121561227b57600080fd5b612283611cff565b82358152602083013567ffffffffffffffff8111156122a157600080fd5b6122ad368286016121d3565b6020830152506122c03660408501611e0d565b60408201526122d160a08401611eed565b606082015261201e60c08401611f16565b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff41833603018112611cf557600080fd5b6000610c5f36836121d3565b73ffffffffffffffffffffffffffffffffffffffff815116825267ffffffffffffffff6020820151166020830152604081015115156040830152606081015160608301526000608082015160c0608085015261238160c0850182611aa8565b60a093840151949093019390935250919050565b6020815281516020820152600060208301516040808401526123ba6060840182612322565b949350505050565b6000602082840312156123d457600080fd5b5051919050565b6000602082840312156123ed57600080fd5b611b0582611eed565b60008451612408818460208901611a84565b80830190507f2e000000000000000000000000000000000000000000000000000000000000008082528551612444816001850160208a01611a84565b6001920191820152835161245f816002840160208801611a84565b0160020195945050505050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126124a157600080fd5b83018035915067ffffffffffffffff8211156124bc57600080fd5b6020019150600581901b3603821315611a2257600080fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261250957600080fd5b83018035915067ffffffffffffffff82111561252457600080fd5b6020019150606081023603821315611a2257600080fd5b60006060828403121561254d57600080fd5b611b058383611e0d565b60006020828403121561256957600080fd5b611b0582611f16565b6000612580611e9984611d9a565b80848252602080830192508560051b85013681111561259e57600080fd5b855b818110156125da57803567ffffffffffffffff8111156125c05760008081fd5b6125cc36828a016121d3565b8652509382019382016125a0565b50919695505050505050565b602080825282518282018190526000919060409081850190600581811b8701840188860187805b858110156126c9577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08b85030187528251805185528901518985018990528051898601819052908a0190606081881b870181019190870190855b818110156126b3577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa08985030183526126a1848651612322565b948e01949350918d0191600101612667565b505050978a01979450509188019160010161260d565b50919a9950505050505050505050565b600060208083850312156126ec57600080fd5b825167ffffffffffffffff81111561270357600080fd5b8301601f8101851361271457600080fd5b8051612722611e9982611d9a565b81815260059190911b8201830190838101908783111561274157600080fd5b928401925b8284101561275f57835182529284019290840190612746565b979650505050505050565b6000610100828403121561277d57600080fd5b612785611cff565b823581526127968460208501611dbe565b60208201526127a88460608501611e0d565b60408201526127b960c08401611eed565b60608201526127ca60e08401611f16565b60808201529392505050565b6000604082840312156127e857600080fd5b611b058383611dbe565b60008251611cf5818460208701611a84565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e,t,n){return super.getDeployTransaction(e,t,n||{})}deploy(e,t,n){return super.deploy(e,t,n||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.EIP712Proxy__factory=o},15189:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PermissionedEIP712Proxy__factory=void 0;const r=n(58986),a=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"},{internalType:"string",name:"name",type:"string"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"DeadlineExpired",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"InvalidLength",type:"error"},{inputs:[],name:"InvalidShortString",type:"error"},{inputs:[],name:"InvalidSignature",type:"error"},{inputs:[],name:"NotFound",type:"error"},{inputs:[{internalType:"string",name:"str",type:"string"}],name:"StringTooLong",type:"error"},{inputs:[],name:"UsedSignature",type:"error"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct Signature",name:"signature",type:"tuple"},{internalType:"address",name:"attester",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct DelegatedProxyAttestationRequest",name:"delegatedRequest",type:"tuple"}],name:"attestByDelegation",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"payable",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAttestTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"getAttester",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getEAS",outputs:[{internalType:"contract IEAS",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getName",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRevokeTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"attester",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct MultiDelegatedProxyAttestationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiAttestByDelegation",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"revoker",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct MultiDelegatedProxyRevocationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiRevokeByDelegation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct Signature",name:"signature",type:"tuple"},{internalType:"address",name:"revoker",type:"address"},{internalType:"uint64",name:"deadline",type:"uint64"}],internalType:"struct DelegatedProxyRevocationRequest",name:"delegatedRequest",type:"tuple"}],name:"revokeByDelegation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],i="0x6101e06040523480156200001257600080fd5b5060405162003173380380620031738339810160408190526200003591620002a2565b6040805180820190915260058152640312e332e360dc1b60208201526001608052600360a052600060c081905283918391829190620000769083906200018b565b61018052620000878160016200018b565b6101a052815160208084019190912061014052815190820120610160524661010052620001186101405161016051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60e052505030610120526001600160a01b0382166200014a576040516341bc07ff60e11b815260040160405180910390fd5b6001600160a01b0382166101c05260026200016682826200040c565b505050620001836200017d620001c460201b60201c565b620001c8565b505062000532565b6000602083511015620001ab57620001a3836200021a565b9050620001be565b81620001b884826200040c565b5060ff90505b92915050565b3390565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600080829050601f8151111562000251578260405163305a27a960e01b8152600401620002489190620004d8565b60405180910390fd5b80516200025e826200050d565b179392505050565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620002995781810151838201526020016200027f565b50506000910152565b60008060408385031215620002b657600080fd5b82516001600160a01b0381168114620002ce57600080fd5b60208401519092506001600160401b0380821115620002ec57600080fd5b818501915085601f8301126200030157600080fd5b81518181111562000316576200031662000266565b604051601f8201601f19908116603f0116810190838211818310171562000341576200034162000266565b816040528281528860208487010111156200035b57600080fd5b6200036e8360208301602088016200027c565b80955050505050509250929050565b600181811c908216806200039257607f821691505b602082108103620003b357634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200040757600081815260208120601f850160051c81016020861015620003e25750805b601f850160051c820191505b818110156200040357828155600101620003ee565b5050505b505050565b81516001600160401b0381111562000428576200042862000266565b62000440816200043984546200037d565b84620003b9565b602080601f8311600181146200047857600084156200045f5750858301515b600019600386901b1c1916600185901b17855562000403565b600085815260208120601f198616915b82811015620004a95788860151825594840194600190910190840162000488565b5085821015620004c85787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6020815260008251806020840152620004f98160408501602087016200027c565b601f01601f19169190910160400192915050565b80516020808301519190811015620003b35760001960209190910360031b1b16919050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c051612b9e620005d5600039600081816102050152818161093d015281816109c301528181610f91015261117001526000610532015260006105080152600061133e01526000611316015260006112710152600061129b015260006112c50152600061049c015260006104730152600061044a0152612b9e6000f3fe6080604052600436106100e85760003560e01c8063715018a61161008a578063a6d4dbc711610059578063a6d4dbc7146102b1578063b83010d3146102c4578063ed24911d146102f7578063f2fde38b1461030c57600080fd5b8063715018a61461022957806384b0196e1461023e5780638da5cb5b14610266578063954115251461029157600080fd5b806317d7de7c116100c657806317d7de7c146101ac5780633c042715146101ce57806354fd4d50146101e157806365c40b9c146101f657600080fd5b80630eabf660146100ed57806310d736d51461010257806312b11a171461016f575b600080fd5b6101006100fb366004611d9b565b61032c565b005b34801561010e57600080fd5b5061014561011d366004611ddd565b60009081526003602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b34801561017b57600080fd5b507fea02ffba7dcb45f6fc649714d23f315eef12e3b27f9a7735d8d8bf41eb2b1af15b604051908152602001610166565b3480156101b857600080fd5b506101c161038d565b6040516101669190611e64565b61019e6101dc366004611e7e565b61041f565b3480156101ed57600080fd5b506101c1610443565b34801561020257600080fd5b507f0000000000000000000000000000000000000000000000000000000000000000610145565b34801561023557600080fd5b506101006104e6565b34801561024a57600080fd5b506102536104fa565b6040516101669796959493929190611eb9565b34801561027257600080fd5b5060055473ffffffffffffffffffffffffffffffffffffffff16610145565b6102a461029f366004611d9b565b61059e565b6040516101669190611f78565b6101006102bf366004611fb0565b6105dc565b3480156102d057600080fd5b507f78a69a78c1a55cdff5cbf949580b410778cd9e4d1ecbe6f06a7fa8dc2441b57d61019e565b34801561030357600080fd5b5061019e6105fb565b34801561031857600080fd5b50610100610327366004611ff2565b61060a565b8060005b8181101561037d5761037584848381811061034d5761034d61200d565b905060200281019061035f919061203c565b610370906080810190606001611ff2565b6106c3565b600101610330565b506103888383610717565b505050565b60606002805461039c9061207a565b80601f01602080910402602001604051908101604052809291908181526020018280546103c89061207a565b80156104155780601f106103ea57610100808354040283529160200191610415565b820191906000526020600020905b8154815290600101906020018083116103f857829003601f168201915b5050505050905090565b600061043461037060c0840160a08501611ff2565b61043d826109ac565b92915050565b606061046e7f0000000000000000000000000000000000000000000000000000000000000000610af7565b6104977f0000000000000000000000000000000000000000000000000000000000000000610af7565b6104c07f0000000000000000000000000000000000000000000000000000000000000000610af7565b6040516020016104d2939291906120c7565b604051602081830303815290604052905090565b6104ee610bb5565b6104f86000610c36565b565b60006060808280808361052d7f000000000000000000000000000000000000000000000000000000000000000083610cad565b6105587f00000000000000000000000000000000000000000000000000000000000000006001610cad565b604080516000808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b60608160005b818110156105c9576105c185858381811061034d5761034d61200d565b6001016105a4565b506105d48484610d58565b949350505050565b6105ef61037060e0830160c08401611ff2565b6105f881611157565b50565b6000610605611257565b905090565b610612610bb5565b73ffffffffffffffffffffffffffffffffffffffff81166106ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b6105f881610c36565b60055473ffffffffffffffffffffffffffffffffffffffff8281169116146105f8576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008167ffffffffffffffff8111156107335761073361213d565b60405190808252806020026020018201604052801561077957816020015b6040805180820190915260008152606060208201528152602001906001900390816107515790505b50905060005b828110156108ff57600085858381811061079b5761079b61200d565b90506020028101906107ad919061203c565b6107b690612372565b60208101518051919250908015806107d357508260400151518114155b1561080a576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b818110156108b45760008382815181106108295761082961200d565b602002602001015190506108ab6040518060a0016040528087600001518152602001838152602001876040015185815181106108675761086761200d565b60200260200101518152602001876060015173ffffffffffffffffffffffffffffffffffffffff168152602001876080015167ffffffffffffffff1681525061138f565b5060010161080d565b50604051806040016040528084600001518152602001838152508585815181106108e0576108e061200d565b60200260200101819052505050506108f88160010190565b905061077f565b506040517f4cb7e9e500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001690634cb7e9e590349061097490859060040161246d565b6000604051808303818588803b15801561098d57600080fd5b505af11580156109a1573d6000803e3d6000fd5b505050505050505050565b60006109bf6109ba83612660565b6115eb565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f17325e734604051806040016040528087600001358152602001878060200190610a2391906126d9565b610a2c9061270d565b8152506040518363ffffffff1660e01b8152600401610a4b919061278c565b60206040518083038185885af1158015610a69573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190610a8e91906127b1565b9050610aa060c0840160a08501611ff2565b600082815260036020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff9290921691909117905592915050565b60606000610b04836117cd565b600101905060008167ffffffffffffffff811115610b2457610b2461213d565b6040519080825280601f01601f191660200182016040528015610b4e576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084610b5857509392505050565b60055473ffffffffffffffffffffffffffffffffffffffff1633146104f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016106b1565b6005805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606060ff8314610cc757610cc0836118af565b905061043d565b818054610cd39061207a565b80601f0160208091040260200160405190810160405280929190818152602001828054610cff9061207a565b8015610d4c5780601f10610d2157610100808354040283529160200191610d4c565b820191906000526020600020905b815481529060010190602001808311610d2f57829003601f168201915b5050505050905061043d565b60608160008167ffffffffffffffff811115610d7657610d7661213d565b604051908082528060200260200182016040528015610dbc57816020015b604080518082019091526000815260606020820152815260200190600190039081610d945790505b50905060005b82811015610f8c5736868683818110610ddd57610ddd61200d565b9050602002810190610def919061203c565b9050366000610e0160208401846127ca565b909250905080801580610e225750610e1c6040850185612832565b90508114155b15610e59576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015610f3a57610f326040518060a0016040528087600001358152602001868685818110610e8e57610e8e61200d565b9050602002810190610ea091906126d9565b610ea99061270d565b8152602001610ebb6040890189612832565b85818110610ecb57610ecb61200d565b905060600201803603810190610ee19190612899565b8152602001610ef66080890160608a01611ff2565b73ffffffffffffffffffffffffffffffffffffffff168152602001610f2160a0890160808a016128b5565b67ffffffffffffffff1690526115eb565b600101610e5c565b50604080518082019091528435815260208101610f5784866128d0565b815250868681518110610f6c57610f6c61200d565b602002602001018190525050505050610f858160010190565b9050610dc2565b5060007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166344adc90e34846040518363ffffffff1660e01b8152600401610fe99190612944565b60006040518083038185885af1158015611007573d6000803e3d6000fd5b50505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261104e9190810190612a37565b90506000805b8481101561114b573688888381811061106f5761106f61200d565b9050602002810190611081919061203c565b905036600061109360208401846127ca565b90925090508060005b81811015611135576110b46080860160608701611ff2565b600360008a8a815181106110ca576110ca61200d565b6020026020010151815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555086600101965061112e8160010190565b905061109c565b50505050506111448160010190565b9050611054565b50909695505050505050565b61116e61116936839003830183612ac8565b61138f565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff16634692626734604051806040016040528085600001358152602001856020018036038101906111d49190612b34565b90526040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b16815281516004820152602091820151805160248301529091015160448201526064016000604051808303818588803b15801561123b57600080fd5b505af115801561124f573d6000803e3d6000fd5b505050505050565b60003073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000161480156112bd57507f000000000000000000000000000000000000000000000000000000000000000046145b156112e757507f000000000000000000000000000000000000000000000000000000000000000090565b610605604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b608081015167ffffffffffffffff16158015906113c357504267ffffffffffffffff16816080015167ffffffffffffffff16105b156113fa576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60208082015180516000908152600390925260409091205473ffffffffffffffffffffffffffffffffffffffff168061145f576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b73ffffffffffffffffffffffffffffffffffffffff811633146114ae576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60408301516114bc816118ee565b606080850151855185516020808801516080808b0151604080517f78a69a78c1a55cdff5cbf949580b410778cd9e4d1ecbe6f06a7fa8dc2441b57d9581019590955273ffffffffffffffffffffffffffffffffffffffff90971696840196909652958201939093529384015260a083015267ffffffffffffffff1660c08201526000906115629060e0015b604051602081830303815290604052805190602001206119fc565b9050846060015173ffffffffffffffffffffffffffffffffffffffff1661159782846000015185602001518660400151611a44565b73ffffffffffffffffffffffffffffffffffffffff16146115e4576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b608081015167ffffffffffffffff161580159061161f57504267ffffffffffffffff16816080015167ffffffffffffffff16105b15611656576040517f1ab7da6b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60208101516040820151611669816118ee565b60006117457fea02ffba7dcb45f6fc649714d23f315eef12e3b27f9a7735d8d8bf41eb2b1af160001b8560600151866000015186600001518760200151886040015189606001518a60800151805190602001208b60a001518d608001516040516020016115479a99989796959493929190998a5273ffffffffffffffffffffffffffffffffffffffff98891660208b015260408a019790975294909616606088015267ffffffffffffffff928316608088015290151560a087015260c086015260e0850193909352610100840152166101208201526101400190565b9050836060015173ffffffffffffffffffffffffffffffffffffffff1661177a82846000015185602001518660400151611a44565b73ffffffffffffffffffffffffffffffffffffffff16146117c7576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310611816577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310611842576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061186057662386f26fc10000830492506010015b6305f5e1008310611878576305f5e100830492506008015b612710831061188c57612710830492506004015b6064831061189e576064830492506002015b600a831061043d5760010192915050565b606060006118bc83611a6c565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b8051602080830151604080850151905160f89490941b7fff00000000000000000000000000000000000000000000000000000000000000169284019290925260218301526041820152600090606101604051602081830303815290604052905060048160405161195e9190612b50565b9081526040519081900360200190205460ff16156119a8576040517fcce9a82400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60016004826040516119ba9190612b50565b90815260405190819003602001902080549115157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009092169190911790555050565b600061043d611a09611257565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b6000806000611a5587878787611aad565b91509150611a6281611b9c565b5095945050505050565b600060ff8216601f81111561043d576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611ae45750600090506003611b93565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611b38573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff8116611b8c57600060019250925050611b93565b9150600090505b94509492505050565b6000816004811115611bb057611bb0612b62565b03611bb85750565b6001816004811115611bcc57611bcc612b62565b03611c33576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016106b1565b6002816004811115611c4757611c47612b62565b03611cae576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016106b1565b6003816004811115611cc257611cc2612b62565b036105f8576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016106b1565b60008083601f840112611d6157600080fd5b50813567ffffffffffffffff811115611d7957600080fd5b6020830191508360208260051b8501011115611d9457600080fd5b9250929050565b60008060208385031215611dae57600080fd5b823567ffffffffffffffff811115611dc557600080fd5b611dd185828601611d4f565b90969095509350505050565b600060208284031215611def57600080fd5b5035919050565b60005b83811015611e11578181015183820152602001611df9565b50506000910152565b60008151808452611e32816020860160208601611df6565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000611e776020830184611e1a565b9392505050565b600060208284031215611e9057600080fd5b813567ffffffffffffffff811115611ea757600080fd5b820160e08185031215611e7757600080fd5b7fff00000000000000000000000000000000000000000000000000000000000000881681526000602060e081840152611ef560e084018a611e1a565b8381036040850152611f07818a611e1a565b6060850189905273ffffffffffffffffffffffffffffffffffffffff8816608086015260a0850187905284810360c0860152855180825283870192509083019060005b81811015611f6657835183529284019291840191600101611f4a565b50909c9b505050505050505050505050565b6020808252825182820181905260009190848201906040850190845b8181101561114b57835183529284019291840191600101611f94565b60006101008284031215611fc357600080fd5b50919050565b803573ffffffffffffffffffffffffffffffffffffffff81168114611fed57600080fd5b919050565b60006020828403121561200457600080fd5b611e7782611fc9565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6183360301811261207057600080fd5b9190910192915050565b600181811c9082168061208e57607f821691505b602082108103611fc3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600084516120d9818460208901611df6565b80830190507f2e000000000000000000000000000000000000000000000000000000000000008082528551612115816001850160208a01611df6565b60019201918201528351612130816002840160208801611df6565b0160020195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60405160a0810167ffffffffffffffff8111828210171561218f5761218f61213d565b60405290565b60405160c0810167ffffffffffffffff8111828210171561218f5761218f61213d565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156121ff576121ff61213d565b604052919050565b600067ffffffffffffffff8211156122215761222161213d565b5060051b60200190565b60006040828403121561223d57600080fd5b6040516040810181811067ffffffffffffffff821117156122605761226061213d565b604052823581526020928301359281019290925250919050565b60006060828403121561228c57600080fd5b6040516060810181811067ffffffffffffffff821117156122af576122af61213d565b604052905080823560ff811681146122c657600080fd5b8082525060208301356020820152604083013560408201525092915050565b600082601f8301126122f657600080fd5b8135602061230b61230683612207565b6121b8565b8281526060928302850182019282820191908785111561232a57600080fd5b8387015b8581101561234d57612340898261227a565b845292840192810161232e565b5090979650505050505050565b803567ffffffffffffffff81168114611fed57600080fd5b600060a0823603121561238457600080fd5b61238c61216c565b8235815260208084013567ffffffffffffffff808211156123ac57600080fd5b9085019036601f8301126123bf57600080fd5b81356123cd61230682612207565b81815260069190911b830184019084810190368311156123ec57600080fd5b938501935b8285101561241557612403368661222b565b825285820191506040850194506123f1565b8086880152505050604086013592508083111561243157600080fd5b505061243f368286016122e5565b60408301525061245160608401611fc9565b60608201526124626080840161235a565b608082015292915050565b60006020808301818452808551808352604092508286019150828160051b8701018488016000805b8481101561252d578984037fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc0018652825180518552880151888501889052805188860181905290890190839060608701905b808310156125185761250482855180518252602090810151910152565b928b019260019290920191908a01906124e7565b50978a01979550505091870191600101612495565b50919998505050505050505050565b600082601f83011261254d57600080fd5b813567ffffffffffffffff8111156125675761256761213d565b61259860207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f840116016121b8565b8181528460208386010111156125ad57600080fd5b816020850160208301376000918101602001919091529392505050565b600060c082840312156125dc57600080fd5b6125e4612195565b90506125ef82611fc9565b81526125fd6020830161235a565b60208201526040820135801515811461261557600080fd5b604082015260608281013590820152608082013567ffffffffffffffff81111561263e57600080fd5b61264a8482850161253c565b60808301525060a082013560a082015292915050565b600060e0823603121561267257600080fd5b61267a61216c565b82358152602083013567ffffffffffffffff81111561269857600080fd5b6126a4368286016125ca565b6020830152506126b7366040850161227a565b60408201526126c860a08401611fc9565b606082015261246260c0840161235a565b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff4183360301811261207057600080fd5b600061043d36836125ca565b73ffffffffffffffffffffffffffffffffffffffff815116825267ffffffffffffffff6020820151166020830152604081015115156040830152606081015160608301526000608082015160c0608085015261277860c0850182611e1a565b60a093840151949093019390935250919050565b6020815281516020820152600060208301516040808401526105d46060840182612719565b6000602082840312156127c357600080fd5b5051919050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126127ff57600080fd5b83018035915067ffffffffffffffff82111561281a57600080fd5b6020019150600581901b3603821315611d9457600080fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe184360301811261286757600080fd5b83018035915067ffffffffffffffff82111561288257600080fd5b6020019150606081023603821315611d9457600080fd5b6000606082840312156128ab57600080fd5b611e77838361227a565b6000602082840312156128c757600080fd5b611e778261235a565b60006128de61230684612207565b80848252602080830192508560051b8501368111156128fc57600080fd5b855b8181101561293857803567ffffffffffffffff81111561291e5760008081fd5b61292a36828a016125ca565b8652509382019382016128fe565b50919695505050505050565b602080825282518282018190526000919060409081850190600581811b8701840188860187805b85811015612a27577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc08b85030187528251805185528901518985018990528051898601819052908a0190606081881b870181019190870190855b81811015612a11577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa08985030183526129ff848651612719565b948e01949350918d01916001016129c5565b505050978a01979450509188019160010161296b565b50919a9950505050505050505050565b60006020808385031215612a4a57600080fd5b825167ffffffffffffffff811115612a6157600080fd5b8301601f81018513612a7257600080fd5b8051612a8061230682612207565b81815260059190911b82018301908381019087831115612a9f57600080fd5b928401925b82841015612abd57835182529284019290840190612aa4565b979650505050505050565b60006101008284031215612adb57600080fd5b612ae361216c565b82358152612af4846020850161222b565b6020820152612b06846060850161227a565b6040820152612b1760c08401611fc9565b6060820152612b2860e0840161235a565b60808201529392505050565b600060408284031215612b4657600080fd5b611e77838361222b565b60008251612070818460208701611df6565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e,t,n){return super.getDeployTransaction(e,t,n||{})}deploy(e,t,n){return super.deploy(e,t,n||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.PermissionedEIP712Proxy__factory=o},20286:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PermissionedEIP712Proxy__factory=void 0;var r=n(15189);Object.defineProperty(t,"PermissionedEIP712Proxy__factory",{enumerable:!0,get:function(){return r.PermissionedEIP712Proxy__factory}})},27649:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.EIP712Proxy__factory=t.examples=void 0,t.examples=i(n(20286));var o=n(21741);Object.defineProperty(t,"EIP712Proxy__factory",{enumerable:!0,get:function(){return o.EIP712Proxy__factory}})},67906:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Semver__factory=t.SchemaRegistry__factory=t.Indexer__factory=t.ISemver__factory=t.ISchemaRegistry__factory=t.IEAS__factory=t.EAS__factory=t.resolver=t.eip712=t.eip1271=void 0,t.eip1271=i(n(91905)),t.eip712=i(n(49939)),t.resolver=i(n(38051));var o=n(67056);Object.defineProperty(t,"EAS__factory",{enumerable:!0,get:function(){return o.EAS__factory}});var s=n(23060);Object.defineProperty(t,"IEAS__factory",{enumerable:!0,get:function(){return s.IEAS__factory}});var f=n(86634);Object.defineProperty(t,"ISchemaRegistry__factory",{enumerable:!0,get:function(){return f.ISchemaRegistry__factory}});var c=n(43537);Object.defineProperty(t,"ISemver__factory",{enumerable:!0,get:function(){return c.ISemver__factory}});var l=n(88114);Object.defineProperty(t,"Indexer__factory",{enumerable:!0,get:function(){return l.Indexer__factory}});var u=n(31270);Object.defineProperty(t,"SchemaRegistry__factory",{enumerable:!0,get:function(){return u.SchemaRegistry__factory}});var d=n(47875);Object.defineProperty(t,"Semver__factory",{enumerable:!0,get:function(){return d.Semver__factory}})},98319:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ISchemaResolver__factory=void 0;const r=n(58986),a=[{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}];t.ISchemaResolver__factory=class{static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}},50986:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaResolver__factory=void 0;const r=n(58986),a=[{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"InvalidLength",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}];t.SchemaResolver__factory=class{static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}},41184:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttestationResolver__factory=void 0;const r=n(58986),a=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"InvalidLength",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[],name:"OutOfBounds",type:"error"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"start",type:"uint256"}],name:"toBytes32",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}],i="0x61010060405234801561001157600080fd5b50604051610efd380380610efd83398101604081905261003091610079565b6001608052600360a052600060c052806001600160a01b038116610067576040516341bc07ff60e11b815260040160405180910390fd5b6001600160a01b031660e052506100a9565b60006020828403121561008b57600080fd5b81516001600160a01b03811681146100a257600080fd5b9392505050565b60805160a05160c05160e051610e146100e9600039600081816105200152610611015260006101d2015260006101a9015260006101800152610e146000f3fe6080604052600436106100745760003560e01c806399dd9bd71161004e57806399dd9bd714610111578063ce46e0461461013f578063e49617e114610153578063e60c35051461016657600080fd5b806354fd4d50146100b057806388e5b2d9146100db57806391db0b7e146100fe57600080fd5b366100ab576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080fd5b3480156100bc57600080fd5b506100c5610179565b6040516100d2919061083d565b60405180910390f35b6100ee6100e93660046108da565b61021c565b60405190151581526020016100d2565b6100ee61010c3660046108da565b61031d565b34801561011d57600080fd5b5061013161012c366004610a34565b61040e565b6040519081526020016100d2565b34801561014b57600080fd5b5060006100ee565b6100ee610161366004610ab6565b610421565b6100ee610174366004610ab6565b610436565b60606101a47f000000000000000000000000000000000000000000000000000000000000000061044a565b6101cd7f000000000000000000000000000000000000000000000000000000000000000061044a565b6101f67f000000000000000000000000000000000000000000000000000000000000000061044a565b60405160200161020893929190610af2565b604051602081830303815290604052905090565b6000610226610508565b83828114610260576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b8281101561030d57600086868381811061028057610280610b68565b905060200201359050828111156102c3576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102f08989848181106102d8576102d8610b68565b90506020028101906102ea9190610b97565b50600190565b610301576000945050505050610315565b90910390600101610264565b506001925050505b949350505050565b6000610327610508565b83828114610361576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b8281101561030d57600086868381811061038157610381610b68565b905060200201359050828111156103c4576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103f18989848181106103d9576103d9610b68565b90506020028101906103eb9190610b97565b82610579565b610402576000945050505050610315565b90910390600101610365565b600061041a83836106ed565b9392505050565b600061042b610508565b60015b90505b919050565b6000610440610508565b61042e8234610579565b6060600061045783610736565b600101905060008167ffffffffffffffff81111561047757610477610946565b6040519080825280601f01601f1916602001820160405280156104a1576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85049450846104ab57509392505050565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610577576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6000806105c761058d610120860186610bd5565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092018290525092506106ed915050565b6040517fa3112a640000000000000000000000000000000000000000000000000000000081526004810182905290915060009073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063a3112a6490602401600060405180830381865afa158015610658573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820160405261069e9190810190610ccb565b6101208101515190915060201480156106e457507f45413545413545413545413545413545413545413545413545413545413500008161012001516106e290610dc2565b145b95945050505050565b6000816020018351101561072d576040517fb4120f1400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50016020015190565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061077f577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106107ab576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106107c957662386f26fc10000830492506010015b6305f5e10083106107e1576305f5e100830492506008015b61271083106107f557612710830492506004015b60648310610807576064830492506002015b600a8310610813576001015b92915050565b60005b8381101561083457818101518382015260200161081c565b50506000910152565b602081526000825180602084015261085c816040850160208701610819565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008083601f8401126108a057600080fd5b50813567ffffffffffffffff8111156108b857600080fd5b6020830191508360208260051b85010111156108d357600080fd5b9250929050565b600080600080604085870312156108f057600080fd5b843567ffffffffffffffff8082111561090857600080fd5b6109148883890161088e565b9096509450602087013591508082111561092d57600080fd5b5061093a8782880161088e565b95989497509550505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051610140810167ffffffffffffffff8111828210171561099957610999610946565b60405290565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff811182821017156109e6576109e6610946565b604052919050565b600067ffffffffffffffff821115610a0857610a08610946565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b60008060408385031215610a4757600080fd5b823567ffffffffffffffff811115610a5e57600080fd5b8301601f81018513610a6f57600080fd5b8035610a82610a7d826109ee565b61099f565b818152866020838501011115610a9757600080fd5b8160208401602083013760006020928201830152969401359450505050565b600060208284031215610ac857600080fd5b813567ffffffffffffffff811115610adf57600080fd5b8201610140818503121561041a57600080fd5b60008451610b04818460208901610819565b80830190507f2e000000000000000000000000000000000000000000000000000000000000008082528551610b40816001850160208a01610819565b60019201918201528351610b5b816002840160208801610819565b0160020195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec1833603018112610bcb57600080fd5b9190910192915050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112610c0a57600080fd5b83018035915067ffffffffffffffff821115610c2557600080fd5b6020019150368190038213156108d357600080fd5b805167ffffffffffffffff8116811461043157600080fd5b805173ffffffffffffffffffffffffffffffffffffffff8116811461043157600080fd5b8051801515811461043157600080fd5b600082601f830112610c9757600080fd5b8151610ca5610a7d826109ee565b818152846020838601011115610cba57600080fd5b610315826020830160208701610819565b600060208284031215610cdd57600080fd5b815167ffffffffffffffff80821115610cf557600080fd5b908301906101408286031215610d0a57600080fd5b610d12610975565b8251815260208301516020820152610d2c60408401610c3a565b6040820152610d3d60608401610c3a565b6060820152610d4e60808401610c3a565b608082015260a083015160a0820152610d6960c08401610c52565b60c0820152610d7a60e08401610c52565b60e0820152610100610d8d818501610c76565b908201526101208381015183811115610da557600080fd5b610db188828701610c86565b918301919091525095945050505050565b80516020808301519190811015610e01577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8160200360031b1b821691505b5091905056fea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}deploy(e,t){return super.deploy(e,t||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.AttestationResolver__factory=o},68142:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttesterResolver__factory=void 0;const r=n(58986),a=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"},{internalType:"address",name:"targetAttester",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"InvalidLength",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}],i="0x61012060405234801561001157600080fd5b50604051610a50380380610a5083398101604081905261003091610098565b6001608052600360a052600060c052816001600160a01b038116610067576040516341bc07ff60e11b815260040160405180910390fd5b6001600160a01b0390811660e0521661010052506100d2565b6001600160a01b038116811461009557600080fd5b50565b600080604083850312156100ab57600080fd5b82516100b681610080565b60208401519092506100c781610080565b809150509250929050565b60805160a05160c05160e0516101005161093a6101166000396000610544015260006104d2015260006101990152600061017001526000610147015261093a6000f3fe6080604052600436106100695760003560e01c8063ce46e04611610043578063ce46e04614610106578063e49617e11461011a578063e60c35051461012d57600080fd5b806354fd4d50146100a557806388e5b2d9146100d057806391db0b7e146100f357600080fd5b366100a0576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080fd5b3480156100b157600080fd5b506100ba610140565b6040516100c79190610699565b60405180910390f35b6100e36100de366004610736565b6101e3565b60405190151581526020016100c7565b6100e3610101366004610736565b6102e4565b34801561011257600080fd5b5060006100e3565b6100e36101283660046107a2565b6103d5565b6100e361013b3660046107a2565b6103e8565b606061016b7f00000000000000000000000000000000000000000000000000000000000000006103fc565b6101947f00000000000000000000000000000000000000000000000000000000000000006103fc565b6101bd7f00000000000000000000000000000000000000000000000000000000000000006103fc565b6040516020016101cf939291906107e5565b604051602081830303815290604052905090565b60006101ed6104ba565b83828114610227576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b828110156102d45760008686838181106102475761024761085b565b9050602002013590508281111561028a576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102b789898481811061029f5761029f61085b565b90506020028101906102b1919061088a565b50600190565b6102c85760009450505050506102dc565b9091039060010161022b565b506001925050505b949350505050565b60006102ee6104ba565b83828114610328576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b828110156102d45760008686838181106103485761034861085b565b9050602002013590508281111561038b576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103b88989848181106103a0576103a061085b565b90506020028101906103b2919061088a565b8261052b565b6103c95760009450505050506102dc565b9091039060010161032c565b60006103df6104ba565b60015b92915050565b60006103f26104ba565b6103e2823461052b565b6060600061040983610593565b600101905060008167ffffffffffffffff811115610429576104296108c8565b6040519080825280601f01601f191660200182016040528015610453576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461045d57509392505050565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610529576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff7f000000000000000000000000000000000000000000000000000000000000000016610575610100850160e086016108f7565b73ffffffffffffffffffffffffffffffffffffffff16149392505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106105dc577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310610608576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061062657662386f26fc10000830492506010015b6305f5e100831061063e576305f5e100830492506008015b612710831061065257612710830492506004015b60648310610664576064830492506002015b600a83106103e25760010192915050565b60005b83811015610690578181015183820152602001610678565b50506000910152565b60208152600082518060208401526106b8816040850160208701610675565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008083601f8401126106fc57600080fd5b50813567ffffffffffffffff81111561071457600080fd5b6020830191508360208260051b850101111561072f57600080fd5b9250929050565b6000806000806040858703121561074c57600080fd5b843567ffffffffffffffff8082111561076457600080fd5b610770888389016106ea565b9096509450602087013591508082111561078957600080fd5b50610796878288016106ea565b95989497509550505050565b6000602082840312156107b457600080fd5b813567ffffffffffffffff8111156107cb57600080fd5b820161014081850312156107de57600080fd5b9392505050565b600084516107f7818460208901610675565b80830190507f2e000000000000000000000000000000000000000000000000000000000000008082528551610833816001850160208a01610675565b6001920191820152835161084e816002840160208801610675565b0160020195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec18336030181126108be57600080fd5b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006020828403121561090957600080fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146107de57600080fdfea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e,t,n){return super.getDeployTransaction(e,t,n||{})}deploy(e,t,n){return super.deploy(e,t,n||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.AttesterResolver__factory=o},5465:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataResolver__factory=void 0;const r=n(58986),a=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"InvalidLength",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}],i="0x61010060405234801561001157600080fd5b50604051610ac1380380610ac183398101604081905261003091610079565b6001608052600360a052600060c052806001600160a01b038116610067576040516341bc07ff60e11b815260040160405180910390fd5b6001600160a01b031660e052506100a9565b60006020828403121561008b57600080fd5b81516001600160a01b03811681146100a257600080fd5b9392505050565b60805160a05160c05160e0516109df6100e260003960006104d201526000610199015260006101700152600061014701526109df6000f3fe6080604052600436106100695760003560e01c8063ce46e04611610043578063ce46e04614610106578063e49617e11461011a578063e60c35051461012d57600080fd5b806354fd4d50146100a557806388e5b2d9146100d057806391db0b7e146100f357600080fd5b366100a0576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080fd5b3480156100b157600080fd5b506100ba610140565b6040516100c79190610716565b60405180910390f35b6100e36100de3660046107b3565b6101e3565b60405190151581526020016100c7565b6100e36101013660046107b3565b6102e4565b34801561011257600080fd5b5060006100e3565b6100e361012836600461081f565b6103d5565b6100e361013b36600461081f565b6103e8565b606061016b7f00000000000000000000000000000000000000000000000000000000000000006103fc565b6101947f00000000000000000000000000000000000000000000000000000000000000006103fc565b6101bd7f00000000000000000000000000000000000000000000000000000000000000006103fc565b6040516020016101cf9392919061085b565b604051602081830303815290604052905090565b60006101ed6104ba565b83828114610227576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b828110156102d4576000868683818110610247576102476108d1565b9050602002013590508281111561028a576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102b789898481811061029f5761029f6108d1565b90506020028101906102b19190610900565b50600190565b6102c85760009450505050506102dc565b9091039060010161022b565b506001925050505b949350505050565b60006102ee6104ba565b83828114610328576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b828110156102d4576000868683818110610348576103486108d1565b9050602002013590508281111561038b576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103b88989848181106103a0576103a06108d1565b90506020028101906103b29190610900565b8261052b565b6103c95760009450505050506102dc565b9091039060010161032c565b60006103df6104ba565b60015b92915050565b60006103f26104ba565b6103e2823461052b565b6060600061040983610610565b600101905060008167ffffffffffffffff8111156104295761042961093e565b6040519080825280601f01601f191660200182016040528015610453576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461045d57509392505050565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610529576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b600061053b61012084018461096d565b905060011480156106095750600061055761012085018561096d565b6000818110610568576105686108d1565b9050013560f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061060957507f01000000000000000000000000000000000000000000000000000000000000006105ca61012085018561096d565b60008181106105db576105db6108d1565b9050013560f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9392505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310610659577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310610685576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106106a357662386f26fc10000830492506010015b6305f5e10083106106bb576305f5e100830492506008015b61271083106106cf57612710830492506004015b606483106106e1576064830492506002015b600a83106103e25760010192915050565b60005b8381101561070d5781810151838201526020016106f5565b50506000910152565b60208152600082518060208401526107358160408501602087016106f2565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008083601f84011261077957600080fd5b50813567ffffffffffffffff81111561079157600080fd5b6020830191508360208260051b85010111156107ac57600080fd5b9250929050565b600080600080604085870312156107c957600080fd5b843567ffffffffffffffff808211156107e157600080fd5b6107ed88838901610767565b9096509450602087013591508082111561080657600080fd5b5061081387828801610767565b95989497509550505050565b60006020828403121561083157600080fd5b813567ffffffffffffffff81111561084857600080fd5b8201610140818503121561060957600080fd5b6000845161086d8184602089016106f2565b80830190507f2e0000000000000000000000000000000000000000000000000000000000000080825285516108a9816001850160208a016106f2565b600192019182015283516108c48160028401602088016106f2565b0160020195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec183360301811261093457600080fd5b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126109a257600080fd5b83018035915067ffffffffffffffff8211156109bd57600080fd5b6020019150368190038213156107ac57600080fdfea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}deploy(e,t){return super.deploy(e,t||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.DataResolver__factory=o},51627:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExpirationTimeResolver__factory=void 0;const r=n(58986),a=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"},{internalType:"uint256",name:"validAfter",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"InvalidLength",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}],i="0x61012060405234801561001157600080fd5b50604051610a07380380610a078339810160408190526100309161007d565b6001608052600360a052600060c052816001600160a01b038116610067576040516341bc07ff60e11b815260040160405180910390fd5b6001600160a01b031660e05261010052506100b7565b6000806040838503121561009057600080fd5b82516001600160a01b03811681146100a757600080fd5b6020939093015192949293505050565b60805160a05160c05160e0516101005161090c6100fb600039600061052f015260006104d2015260006101990152600061017001526000610147015261090c6000f3fe6080604052600436106100695760003560e01c8063ce46e04611610043578063ce46e04614610106578063e49617e11461011a578063e60c35051461012d57600080fd5b806354fd4d50146100a557806388e5b2d9146100d057806391db0b7e146100f357600080fd5b366100a0576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080fd5b3480156100b157600080fd5b506100ba610140565b6040516100c79190610677565b60405180910390f35b6100e36100de366004610714565b6101e3565b60405190151581526020016100c7565b6100e3610101366004610714565b6102e4565b34801561011257600080fd5b5060006100e3565b6100e3610128366004610780565b6103d5565b6100e361013b366004610780565b6103e8565b606061016b7f00000000000000000000000000000000000000000000000000000000000000006103fc565b6101947f00000000000000000000000000000000000000000000000000000000000000006103fc565b6101bd7f00000000000000000000000000000000000000000000000000000000000000006103fc565b6040516020016101cf939291906107c3565b604051602081830303815290604052905090565b60006101ed6104ba565b83828114610227576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b828110156102d457600086868381811061024757610247610839565b9050602002013590508281111561028a576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102b789898481811061029f5761029f610839565b90506020028101906102b19190610868565b50600190565b6102c85760009450505050506102dc565b9091039060010161022b565b506001925050505b949350505050565b60006102ee6104ba565b83828114610328576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b828110156102d457600086868381811061034857610348610839565b9050602002013590508281111561038b576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103b88989848181106103a0576103a0610839565b90506020028101906103b29190610868565b8261052b565b6103c95760009450505050506102dc565b9091039060010161032c565b60006103df6104ba565b60015b92915050565b60006103f26104ba565b6103e2823461052b565b6060600061040983610571565b600101905060008167ffffffffffffffff811115610429576104296108a6565b6040519080825280601f01601f191660200182016040528015610453576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461045d57509392505050565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610529576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007f000000000000000000000000000000000000000000000000000000000000000061055e60808501606086016108d5565b67ffffffffffffffff1610159392505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106105ba577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106105e6576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061060457662386f26fc10000830492506010015b6305f5e100831061061c576305f5e100830492506008015b612710831061063057612710830492506004015b60648310610642576064830492506002015b600a83106103e25760010192915050565b60005b8381101561066e578181015183820152602001610656565b50506000910152565b6020815260008251806020840152610696816040850160208701610653565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008083601f8401126106da57600080fd5b50813567ffffffffffffffff8111156106f257600080fd5b6020830191508360208260051b850101111561070d57600080fd5b9250929050565b6000806000806040858703121561072a57600080fd5b843567ffffffffffffffff8082111561074257600080fd5b61074e888389016106c8565b9096509450602087013591508082111561076757600080fd5b50610774878288016106c8565b95989497509550505050565b60006020828403121561079257600080fd5b813567ffffffffffffffff8111156107a957600080fd5b820161014081850312156107bc57600080fd5b9392505050565b600084516107d5818460208901610653565b80830190507f2e000000000000000000000000000000000000000000000000000000000000008082528551610811816001850160208a01610653565b6001920191820152835161082c816002840160208801610653565b0160020195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec183360301811261089c57600080fd5b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000602082840312156108e757600080fd5b813567ffffffffffffffff811681146107bc57600080fdfea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e,t,n){return super.getDeployTransaction(e,t,n||{})}deploy(e,t,n){return super.deploy(e,t,n||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.ExpirationTimeResolver__factory=o},58513:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PayingResolver__factory=void 0;const r=n(58986),a=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"},{internalType:"uint256",name:"incentive",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"InvalidLength",type:"error"},{inputs:[],name:"InvalidValue",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}],i="0x61012060405234801561001157600080fd5b50604051610ca4380380610ca48339810160408190526100309161007d565b6001608052600360a052600060c052816001600160a01b038116610067576040516341bc07ff60e11b815260040160405180910390fd5b6001600160a01b031660e05261010052506100b7565b6000806040838503121561009057600080fd5b82516001600160a01b03811681146100a757600080fd5b6020939093015192949293505050565b60805160a05160c05160e05161010051610b9461011060003960008181610506015281816105360152818161056401526105fb015260006104a90152600061016901526000610140015260006101170152610b946000f3fe6080604052600436106100695760003560e01c8063ce46e04611610043578063ce46e046146100d6578063e49617e1146100ea578063e60c3505146100fd57600080fd5b806354fd4d501461007557806388e5b2d9146100a057806391db0b7e146100c357600080fd5b3661007057005b600080fd5b34801561008157600080fd5b5061008a610110565b60405161009791906108b9565b60405180910390f35b6100b36100ae366004610956565b6101b3565b6040519015158152602001610097565b6100b36100d1366004610956565b6102b4565b3480156100e257600080fd5b5060016100b3565b6100b36100f83660046109c2565b6103a5565b6100b361010b3660046109c2565b6103bf565b606061013b7f00000000000000000000000000000000000000000000000000000000000000006103d3565b6101647f00000000000000000000000000000000000000000000000000000000000000006103d3565b61018d7f00000000000000000000000000000000000000000000000000000000000000006103d3565b60405160200161019f93929190610a05565b604051602081830303815290604052905090565b60006101bd610491565b838281146101f7576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b828110156102a457600086868381811061021757610217610a7b565b9050602002013590508281111561025a576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61028789898481811061026f5761026f610a7b565b90506020028101906102819190610aaa565b82610502565b6102985760009450505050506102ac565b909103906001016101fb565b506001925050505b949350505050565b60006102be610491565b838281146102f8576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b828110156102a457600086868381811061031857610318610a7b565b9050602002013590508281111561035b576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61038889898481811061037057610370610a7b565b90506020028101906103829190610aaa565b826105bf565b6103995760009450505050506102ac565b909103906001016102fc565b60006103af610491565b6103b98234610502565b92915050565b60006103c9610491565b6103b982346105bf565b606060006103e08361064f565b600101905060008167ffffffffffffffff81111561040057610400610ae8565b6040519080825280601f01601f19166020018201604052801561042a576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461043457509392505050565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610500576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007f0000000000000000000000000000000000000000000000000000000000000000821015610534575060006103b9565b7f00000000000000000000000000000000000000000000000000000000000000008211156105b6576105b66105897f000000000000000000000000000000000000000000000000000000000000000084610b17565b61059a610100860160e08701610b51565b73ffffffffffffffffffffffffffffffffffffffff1690610731565b50600192915050565b600081156105cf575060006103b9565b6105e0610100840160e08501610b51565b73ffffffffffffffffffffffffffffffffffffffff166108fc7f00000000000000000000000000000000000000000000000000000000000000009081150290604051600060405180830381858888f19350505050158015610645573d6000803e3d6000fd5b5060019392505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310610698577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106106c4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106106e257662386f26fc10000830492506010015b6305f5e10083106106fa576305f5e100830492506008015b612710831061070e57612710830492506004015b60648310610720576064830492506002015b600a83106103b95760010192915050565b804710156107a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064015b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d80600081146107fa576040519150601f19603f3d011682016040523d82523d6000602084013e6107ff565b606091505b5050905080610890576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610797565b505050565b60005b838110156108b0578181015183820152602001610898565b50506000910152565b60208152600082518060208401526108d8816040850160208701610895565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008083601f84011261091c57600080fd5b50813567ffffffffffffffff81111561093457600080fd5b6020830191508360208260051b850101111561094f57600080fd5b9250929050565b6000806000806040858703121561096c57600080fd5b843567ffffffffffffffff8082111561098457600080fd5b6109908883890161090a565b909650945060208701359150808211156109a957600080fd5b506109b68782880161090a565b95989497509550505050565b6000602082840312156109d457600080fd5b813567ffffffffffffffff8111156109eb57600080fd5b820161014081850312156109fe57600080fd5b9392505050565b60008451610a17818460208901610895565b80830190507f2e000000000000000000000000000000000000000000000000000000000000008082528551610a53816001850160208a01610895565b60019201918201528351610a6e816002840160208801610895565b0160020195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec1833603018112610ade57600080fd5b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b818103818111156103b9577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600060208284031215610b6357600080fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146109fe57600080fdfea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e,t,n){return super.getDeployTransaction(e,t,n||{})}deploy(e,t,n){return super.deploy(e,t,n||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.PayingResolver__factory=o},53880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecipientResolver__factory=void 0;const r=n(58986),a=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"},{internalType:"address",name:"targetRecipient",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"InvalidLength",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}],i="0x61012060405234801561001157600080fd5b50604051610a4f380380610a4f83398101604081905261003091610098565b6001608052600360a052600060c052816001600160a01b038116610067576040516341bc07ff60e11b815260040160405180910390fd5b6001600160a01b0390811660e0521661010052506100d2565b6001600160a01b038116811461009557600080fd5b50565b600080604083850312156100ab57600080fd5b82516100b681610080565b60208401519092506100c781610080565b809150509250929050565b60805160a05160c05160e051610100516109396101166000396000610544015260006104d201526000610199015260006101700152600061014701526109396000f3fe6080604052600436106100695760003560e01c8063ce46e04611610043578063ce46e04614610106578063e49617e11461011a578063e60c35051461012d57600080fd5b806354fd4d50146100a557806388e5b2d9146100d057806391db0b7e146100f357600080fd5b366100a0576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080fd5b3480156100b157600080fd5b506100ba610140565b6040516100c79190610698565b60405180910390f35b6100e36100de366004610735565b6101e3565b60405190151581526020016100c7565b6100e3610101366004610735565b6102e4565b34801561011257600080fd5b5060006100e3565b6100e36101283660046107a1565b6103d5565b6100e361013b3660046107a1565b6103e8565b606061016b7f00000000000000000000000000000000000000000000000000000000000000006103fc565b6101947f00000000000000000000000000000000000000000000000000000000000000006103fc565b6101bd7f00000000000000000000000000000000000000000000000000000000000000006103fc565b6040516020016101cf939291906107e4565b604051602081830303815290604052905090565b60006101ed6104ba565b83828114610227576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b828110156102d45760008686838181106102475761024761085a565b9050602002013590508281111561028a576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102b789898481811061029f5761029f61085a565b90506020028101906102b19190610889565b50600190565b6102c85760009450505050506102dc565b9091039060010161022b565b506001925050505b949350505050565b60006102ee6104ba565b83828114610328576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b828110156102d45760008686838181106103485761034861085a565b9050602002013590508281111561038b576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103b88989848181106103a0576103a061085a565b90506020028101906103b29190610889565b8261052b565b6103c95760009450505050506102dc565b9091039060010161032c565b60006103df6104ba565b60015b92915050565b60006103f26104ba565b6103e2823461052b565b6060600061040983610592565b600101905060008167ffffffffffffffff811115610429576104296108c7565b6040519080825280601f01601f191660200182016040528015610453576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461045d57509392505050565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610529576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b600073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001661057460e0850160c086016108f6565b73ffffffffffffffffffffffffffffffffffffffff16149392505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106105db577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310610607576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061062557662386f26fc10000830492506010015b6305f5e100831061063d576305f5e100830492506008015b612710831061065157612710830492506004015b60648310610663576064830492506002015b600a83106103e25760010192915050565b60005b8381101561068f578181015183820152602001610677565b50506000910152565b60208152600082518060208401526106b7816040850160208701610674565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008083601f8401126106fb57600080fd5b50813567ffffffffffffffff81111561071357600080fd5b6020830191508360208260051b850101111561072e57600080fd5b9250929050565b6000806000806040858703121561074b57600080fd5b843567ffffffffffffffff8082111561076357600080fd5b61076f888389016106e9565b9096509450602087013591508082111561078857600080fd5b50610795878288016106e9565b95989497509550505050565b6000602082840312156107b357600080fd5b813567ffffffffffffffff8111156107ca57600080fd5b820161014081850312156107dd57600080fd5b9392505050565b600084516107f6818460208901610674565b80830190507f2e000000000000000000000000000000000000000000000000000000000000008082528551610832816001850160208a01610674565b6001920191820152835161084d816002840160208801610674565b0160020195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec18336030181126108bd57600080fd5b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60006020828403121561090857600080fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146107dd57600080fdfea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e,t,n){return super.getDeployTransaction(e,t,n||{})}deploy(e,t,n){return super.deploy(e,t,n||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.RecipientResolver__factory=o},43455:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RevocationResolver__factory=void 0;const r=n(58986),a=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"InvalidLength",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bool",name:"status",type:"bool"}],name:"setRevocation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}],i="0x61010060405234801561001157600080fd5b506040516109fe3803806109fe83398101604081905261003091610079565b6001608052600360a052600060c052806001600160a01b038116610067576040516341bc07ff60e11b815260040160405180910390fd5b6001600160a01b031660e052506100a9565b60006020828403121561008b57600080fd5b81516001600160a01b03811681146100a257600080fd5b9392505050565b60805160a05160c05160e05161091c6100e26000396000610530015260006101f2015260006101c9015260006101a0015261091c6000f3fe6080604052600436106100745760003560e01c8063ce46e0461161004e578063ce46e04614610113578063e49617e114610127578063e60c35051461013a578063f545cb661461014d57600080fd5b806354fd4d50146100b257806388e5b2d9146100dd57806391db0b7e1461010057600080fd5b366100ad576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b005b600080fd5b3480156100be57600080fd5b506100c7610199565b6040516100d4919061068f565b60405180910390f35b6100f06100eb36600461072c565b61023c565b60405190151581526020016100d4565b6100f061010e36600461072c565b610341565b34801561011f57600080fd5b5060006100f0565b6100f0610135366004610798565b610432565b6100f0610148366004610798565b610449565b34801561015957600080fd5b506100ab6101683660046107db565b600080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b60606101c47f000000000000000000000000000000000000000000000000000000000000000061045a565b6101ed7f000000000000000000000000000000000000000000000000000000000000000061045a565b6102167f000000000000000000000000000000000000000000000000000000000000000061045a565b604051602001610228939291906107fd565b604051602081830303815290604052905090565b6000610246610518565b83828114610280576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b828110156103315760008686838181106102a0576102a0610873565b905060200201359050828111156102e3576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103148989848181106102f8576102f8610873565b905060200281019061030a91906108a2565b5060005460ff1690565b610325576000945050505050610339565b90910390600101610284565b506001925050505b949350505050565b600061034b610518565b83828114610385576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b828110156103315760008686838181106103a5576103a5610873565b905060200201359050828111156103e8576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6104158989848181106103fd576103fd610873565b905060200281019061040f91906108a2565b50600190565b610426576000945050505050610339565b90910390600101610389565b600061043c610518565b60005460ff165b92915050565b6000610453610518565b6001610443565b6060600061046783610589565b600101905060008167ffffffffffffffff811115610487576104876108e0565b6040519080825280601f01601f1916602001820160405280156104b1576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85049450846104bb57509392505050565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610587576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106105d2577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106105fe576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061061c57662386f26fc10000830492506010015b6305f5e1008310610634576305f5e100830492506008015b612710831061064857612710830492506004015b6064831061065a576064830492506002015b600a83106104435760010192915050565b60005b8381101561068657818101518382015260200161066e565b50506000910152565b60208152600082518060208401526106ae81604085016020870161066b565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008083601f8401126106f257600080fd5b50813567ffffffffffffffff81111561070a57600080fd5b6020830191508360208260051b850101111561072557600080fd5b9250929050565b6000806000806040858703121561074257600080fd5b843567ffffffffffffffff8082111561075a57600080fd5b610766888389016106e0565b9096509450602087013591508082111561077f57600080fd5b5061078c878288016106e0565b95989497509550505050565b6000602082840312156107aa57600080fd5b813567ffffffffffffffff8111156107c157600080fd5b820161014081850312156107d457600080fd5b9392505050565b6000602082840312156107ed57600080fd5b813580151581146107d457600080fd5b6000845161080f81846020890161066b565b80830190507f2e00000000000000000000000000000000000000000000000000000000000000808252855161084b816001850160208a0161066b565b6001920191820152835161086681600284016020880161066b565b0160020195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec18336030181126108d657600080fd5b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}deploy(e,t){return super.deploy(e,t||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.RevocationResolver__factory=o},72903:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenResolver__factory=void 0;const r=n(58986),a=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"},{internalType:"contract IERC20",name:"targetToken",type:"address"},{internalType:"uint256",name:"targetAmount",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidAllowance",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"InvalidLength",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}],i="0x61014060405234801561001157600080fd5b50604051610b60380380610b608339810160408190526100309161009f565b6001608052600360a052600060c052826001600160a01b038116610067576040516341bc07ff60e11b815260040160405180910390fd5b6001600160a01b0390811660e052919091166101005261012052506100e2565b6001600160a01b038116811461009c57600080fd5b50565b6000806000606084860312156100b457600080fd5b83516100bf81610087565b60208501519093506100d081610087565b80925050604084015190509250925092565b60805160a05160c05160e0516101005161012051610a2f610131600039600061052f01526000610565015260006104d20152600061019901526000610170015260006101470152610a2f6000f3fe6080604052600436106100695760003560e01c8063ce46e04611610043578063ce46e04614610106578063e49617e11461011a578063e60c35051461012d57600080fd5b806354fd4d50146100a557806388e5b2d9146100d057806391db0b7e146100f357600080fd5b366100a0576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080fd5b3480156100b157600080fd5b506100ba610140565b6040516100c79190610775565b60405180910390f35b6100e36100de366004610812565b6101e3565b60405190151581526020016100c7565b6100e3610101366004610812565b6102e4565b34801561011257600080fd5b5060006100e3565b6100e361012836600461087e565b6103d5565b6100e361013b36600461087e565b6103e8565b606061016b7f00000000000000000000000000000000000000000000000000000000000000006103fc565b6101947f00000000000000000000000000000000000000000000000000000000000000006103fc565b6101bd7f00000000000000000000000000000000000000000000000000000000000000006103fc565b6040516020016101cf939291906108c1565b604051602081830303815290604052905090565b60006101ed6104ba565b83828114610227576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b828110156102d457600086868381811061024757610247610937565b9050602002013590508281111561028a576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6102b789898481811061029f5761029f610937565b90506020028101906102b19190610966565b50600190565b6102c85760009450505050506102dc565b9091039060010161022b565b506001925050505b949350505050565b60006102ee6104ba565b83828114610328576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b828110156102d457600086868381811061034857610348610937565b9050602002013590508281111561038b576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103b88989848181106103a0576103a0610937565b90506020028101906103b29190610966565b8261052b565b6103c95760009450505050506102dc565b9091039060010161032c565b60006103df6104ba565b60015b92915050565b60006103f26104ba565b6103e2823461052b565b606060006104098361066f565b600101905060008167ffffffffffffffff811115610429576104296109a4565b6040519080825280601f01601f191660200182016040528015610453576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461045d57509392505050565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610529576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001663dd62ed3e61059b610100870160e088016109d3565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b16815273ffffffffffffffffffffffffffffffffffffffff9091166004820152306024820152604401602060405180830381865afa15801561060a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061062e9190610a09565b1015610666576040517f65ba6fc300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50600192915050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106106b8577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106106e4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061070257662386f26fc10000830492506010015b6305f5e100831061071a576305f5e100830492506008015b612710831061072e57612710830492506004015b60648310610740576064830492506002015b600a83106103e25760010192915050565b60005b8381101561076c578181015183820152602001610754565b50506000910152565b6020815260008251806020840152610794816040850160208701610751565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008083601f8401126107d857600080fd5b50813567ffffffffffffffff8111156107f057600080fd5b6020830191508360208260051b850101111561080b57600080fd5b9250929050565b6000806000806040858703121561082857600080fd5b843567ffffffffffffffff8082111561084057600080fd5b61084c888389016107c6565b9096509450602087013591508082111561086557600080fd5b50610872878288016107c6565b95989497509550505050565b60006020828403121561089057600080fd5b813567ffffffffffffffff8111156108a757600080fd5b820161014081850312156108ba57600080fd5b9392505050565b600084516108d3818460208901610751565b80830190507f2e00000000000000000000000000000000000000000000000000000000000000808252855161090f816001850160208a01610751565b6001920191820152835161092a816002840160208801610751565b0160020195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec183360301811261099a57600080fd5b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000602082840312156109e557600080fd5b813573ffffffffffffffffffffffffffffffffffffffff811681146108ba57600080fd5b600060208284031215610a1b57600080fd5b505191905056fea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e,t,n,r){return super.getDeployTransaction(e,t,n,r||{})}deploy(e,t,n,r){return super.deploy(e,t,n,r||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.TokenResolver__factory=o},27268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueResolver__factory=void 0;const r=n(58986),a=[{inputs:[{internalType:"contract IEAS",name:"eas",type:"address"},{internalType:"uint256",name:"targetValue",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidEAS",type:"error"},{inputs:[],name:"InvalidLength",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"attest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"isPayable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiAttest",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation[]",name:"attestations",type:"tuple[]"},{internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"multiRevoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"attestation",type:"tuple"}],name:"revoke",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{stateMutability:"payable",type:"receive"}],i="0x61012060405234801561001157600080fd5b506040516109ad3803806109ad8339810160408190526100309161007d565b6001608052600360a052600060c052816001600160a01b038116610067576040516341bc07ff60e11b815260040160405180910390fd5b6001600160a01b031660e05261010052506100b7565b6000806040838503121561009057600080fd5b82516001600160a01b03811681146100a757600080fd5b6020939093015192949293505050565b60805160a05160c05160e051610100516108ab6101026000396000818161038501526103e5015260006104e101526000610169015260006101400152600061011701526108ab6000f3fe6080604052600436106100695760003560e01c8063ce46e04611610043578063ce46e046146100d6578063e49617e1146100ea578063e60c3505146100fd57600080fd5b806354fd4d501461007557806388e5b2d9146100a057806391db0b7e146100c357600080fd5b3661007057005b600080fd5b34801561008157600080fd5b5061008a610110565b6040516100979190610640565b60405180910390f35b6100b36100ae3660046106dd565b6101b3565b6040519015158152602001610097565b6100b36100d13660046106dd565b6102b4565b3480156100e257600080fd5b5060016100b3565b6100b36100f8366004610749565b6103c6565b6100b361010b366004610749565b6103d9565b606061013b7f000000000000000000000000000000000000000000000000000000000000000061040b565b6101647f000000000000000000000000000000000000000000000000000000000000000061040b565b61018d7f000000000000000000000000000000000000000000000000000000000000000061040b565b60405160200161019f9392919061078c565b604051602081830303815290604052905090565b60006101bd6104c9565b838281146101f7576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b828110156102a457600086868381811061021757610217610802565b9050602002013590508281111561025a576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61028789898481811061026f5761026f610802565b90506020028101906102819190610831565b50600190565b6102985760009450505050506102ac565b909103906001016101fb565b506001925050505b949350505050565b60006102be6104c9565b838281146102f8576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3460005b828110156102a457600086868381811061031857610318610802565b9050602002013590508281111561035b576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6103a989898481811061037057610370610802565b90506020028101906103829190610831565b507f0000000000000000000000000000000000000000000000000000000000000000821490565b6103ba5760009450505050506102ac565b909103906001016102fc565b60006103d06104c9565b60015b92915050565b60006103e36104c9565b7f000000000000000000000000000000000000000000000000000000000000000034146103d3565b606060006104188361053a565b600101905060008167ffffffffffffffff8111156104385761043861086f565b6040519080825280601f01601f191660200182016040528015610462576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a850494508461046c57509392505050565b3373ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614610538576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310610583577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106105af576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106105cd57662386f26fc10000830492506010015b6305f5e10083106105e5576305f5e100830492506008015b61271083106105f957612710830492506004015b6064831061060b576064830492506002015b600a83106103d35760010192915050565b60005b8381101561063757818101518382015260200161061f565b50506000910152565b602081526000825180602084015261065f81604085016020870161061c565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169190910160400192915050565b60008083601f8401126106a357600080fd5b50813567ffffffffffffffff8111156106bb57600080fd5b6020830191508360208260051b85010111156106d657600080fd5b9250929050565b600080600080604085870312156106f357600080fd5b843567ffffffffffffffff8082111561070b57600080fd5b61071788838901610691565b9096509450602087013591508082111561073057600080fd5b5061073d87828801610691565b95989497509550505050565b60006020828403121561075b57600080fd5b813567ffffffffffffffff81111561077257600080fd5b8201610140818503121561078557600080fd5b9392505050565b6000845161079e81846020890161061c565b80830190507f2e0000000000000000000000000000000000000000000000000000000000000080825285516107da816001850160208a0161061c565b600192019182015283516107f581600284016020880161061c565b0160020195945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600082357ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffec183360301811261086557600080fd5b9190910192915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fdfea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e,t,n){return super.getDeployTransaction(e,t,n||{})}deploy(e,t,n){return super.deploy(e,t,n||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.ValueResolver__factory=o},98895:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueResolver__factory=t.TokenResolver__factory=t.RevocationResolver__factory=t.RecipientResolver__factory=t.PayingResolver__factory=t.ExpirationTimeResolver__factory=t.DataResolver__factory=t.AttesterResolver__factory=t.AttestationResolver__factory=void 0;var r=n(41184);Object.defineProperty(t,"AttestationResolver__factory",{enumerable:!0,get:function(){return r.AttestationResolver__factory}});var a=n(68142);Object.defineProperty(t,"AttesterResolver__factory",{enumerable:!0,get:function(){return a.AttesterResolver__factory}});var i=n(5465);Object.defineProperty(t,"DataResolver__factory",{enumerable:!0,get:function(){return i.DataResolver__factory}});var o=n(51627);Object.defineProperty(t,"ExpirationTimeResolver__factory",{enumerable:!0,get:function(){return o.ExpirationTimeResolver__factory}});var s=n(58513);Object.defineProperty(t,"PayingResolver__factory",{enumerable:!0,get:function(){return s.PayingResolver__factory}});var f=n(53880);Object.defineProperty(t,"RecipientResolver__factory",{enumerable:!0,get:function(){return f.RecipientResolver__factory}});var c=n(43455);Object.defineProperty(t,"RevocationResolver__factory",{enumerable:!0,get:function(){return c.RevocationResolver__factory}});var l=n(72903);Object.defineProperty(t,"TokenResolver__factory",{enumerable:!0,get:function(){return l.TokenResolver__factory}});var u=n(27268);Object.defineProperty(t,"ValueResolver__factory",{enumerable:!0,get:function(){return u.ValueResolver__factory}})},38051:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaResolver__factory=t.ISchemaResolver__factory=t.examples=void 0,t.examples=i(n(98895));var o=n(98319);Object.defineProperty(t,"ISchemaResolver__factory",{enumerable:!0,get:function(){return o.ISchemaResolver__factory}});var s=n(50986);Object.defineProperty(t,"SchemaResolver__factory",{enumerable:!0,get:function(){return s.SchemaResolver__factory}})},5406:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.contracts=t.openzeppelin=void 0,t.openzeppelin=i(n(98656)),t.contracts=i(n(67906))},49701:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return a(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Semver__factory=t.SchemaRegistry__factory=t.SchemaResolver__factory=t.ISchemaResolver__factory=t.ValueResolver__factory=t.TokenResolver__factory=t.RevocationResolver__factory=t.RecipientResolver__factory=t.PayingResolver__factory=t.ExpirationTimeResolver__factory=t.DataResolver__factory=t.AttesterResolver__factory=t.AttestationResolver__factory=t.ISemver__factory=t.ISchemaRegistry__factory=t.Indexer__factory=t.IEAS__factory=t.PermissionedEIP712Proxy__factory=t.EIP712Proxy__factory=t.EIP1271Verifier__factory=t.EAS__factory=t.ShortStrings__factory=t.EIP712__factory=t.IERC20__factory=t.IERC20Permit__factory=t.IERC20Metadata__factory=t.ERC20__factory=t.IERC5267__factory=t.IERC1271__factory=t.Ownable__factory=t.factories=void 0,t.factories=i(n(5406));var o=n(10973);Object.defineProperty(t,"Ownable__factory",{enumerable:!0,get:function(){return o.Ownable__factory}});var s=n(1557);Object.defineProperty(t,"IERC1271__factory",{enumerable:!0,get:function(){return s.IERC1271__factory}});var f=n(95692);Object.defineProperty(t,"IERC5267__factory",{enumerable:!0,get:function(){return f.IERC5267__factory}});var c=n(95123);Object.defineProperty(t,"ERC20__factory",{enumerable:!0,get:function(){return c.ERC20__factory}});var l=n(32031);Object.defineProperty(t,"IERC20Metadata__factory",{enumerable:!0,get:function(){return l.IERC20Metadata__factory}});var u=n(32744);Object.defineProperty(t,"IERC20Permit__factory",{enumerable:!0,get:function(){return u.IERC20Permit__factory}});var d=n(90518);Object.defineProperty(t,"IERC20__factory",{enumerable:!0,get:function(){return d.IERC20__factory}});var p=n(83060);Object.defineProperty(t,"EIP712__factory",{enumerable:!0,get:function(){return p.EIP712__factory}});var h=n(43262);Object.defineProperty(t,"ShortStrings__factory",{enumerable:!0,get:function(){return h.ShortStrings__factory}});var b=n(67056);Object.defineProperty(t,"EAS__factory",{enumerable:!0,get:function(){return b.EAS__factory}});var y=n(33579);Object.defineProperty(t,"EIP1271Verifier__factory",{enumerable:!0,get:function(){return y.EIP1271Verifier__factory}});var m=n(21741);Object.defineProperty(t,"EIP712Proxy__factory",{enumerable:!0,get:function(){return m.EIP712Proxy__factory}});var g=n(15189);Object.defineProperty(t,"PermissionedEIP712Proxy__factory",{enumerable:!0,get:function(){return g.PermissionedEIP712Proxy__factory}});var v=n(23060);Object.defineProperty(t,"IEAS__factory",{enumerable:!0,get:function(){return v.IEAS__factory}});var w=n(88114);Object.defineProperty(t,"Indexer__factory",{enumerable:!0,get:function(){return w.Indexer__factory}});var E=n(86634);Object.defineProperty(t,"ISchemaRegistry__factory",{enumerable:!0,get:function(){return E.ISchemaRegistry__factory}});var A=n(43537);Object.defineProperty(t,"ISemver__factory",{enumerable:!0,get:function(){return A.ISemver__factory}});var P=n(41184);Object.defineProperty(t,"AttestationResolver__factory",{enumerable:!0,get:function(){return P.AttestationResolver__factory}});var _=n(68142);Object.defineProperty(t,"AttesterResolver__factory",{enumerable:!0,get:function(){return _.AttesterResolver__factory}});var T=n(5465);Object.defineProperty(t,"DataResolver__factory",{enumerable:!0,get:function(){return T.DataResolver__factory}});var k=n(51627);Object.defineProperty(t,"ExpirationTimeResolver__factory",{enumerable:!0,get:function(){return k.ExpirationTimeResolver__factory}});var C=n(58513);Object.defineProperty(t,"PayingResolver__factory",{enumerable:!0,get:function(){return C.PayingResolver__factory}});var x=n(53880);Object.defineProperty(t,"RecipientResolver__factory",{enumerable:!0,get:function(){return x.RecipientResolver__factory}});var O=n(43455);Object.defineProperty(t,"RevocationResolver__factory",{enumerable:!0,get:function(){return O.RevocationResolver__factory}});var S=n(72903);Object.defineProperty(t,"TokenResolver__factory",{enumerable:!0,get:function(){return S.TokenResolver__factory}});var R=n(27268);Object.defineProperty(t,"ValueResolver__factory",{enumerable:!0,get:function(){return R.ValueResolver__factory}});var I=n(98319);Object.defineProperty(t,"ISchemaResolver__factory",{enumerable:!0,get:function(){return I.ISchemaResolver__factory}});var N=n(50986);Object.defineProperty(t,"SchemaResolver__factory",{enumerable:!0,get:function(){return N.SchemaResolver__factory}});var B=n(31270);Object.defineProperty(t,"SchemaRegistry__factory",{enumerable:!0,get:function(){return B.SchemaRegistry__factory}});var j=n(47875);Object.defineProperty(t,"Semver__factory",{enumerable:!0,get:function(){return j.Semver__factory}})},66100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EAS=void 0;const r=n(68932),a=n(49701),i=n(13632),o=r.__importDefault(n(80018)),s=n(48857),f=n(60680),c=n(69769),l=n(45178),u=n(79123);r.__exportStar(n(69769),t);class d extends l.Base{proxy;delegated;offchain;version;legacyEAS;constructor(e,t){const{signer:n,proxy:r}=t||{};if(super(new a.EAS__factory,e,n),!this.contract.getAddress)throw new Error("Incompatible ethers version detect. Make sure to use the SDK with ethers v6 or later");r&&(this.proxy=r),this.legacyEAS=new l.Base(new i.EAS__factory,e,n)}connect(e){return delete this.delegated,delete this.offchain,super.connect(e),this.legacyEAS&&this.legacyEAS.connect(e),this}async getVersion(){return this.version?this.version:this.version=await(0,s.legacyVersion)(this.contract)??await this.contract.version()}getAttestation(e){return this.contract.getAttestation(e)}isAttestationValid(e){return this.contract.isAttestationValid(e)}async isAttestationRevoked(e){const t=await this.contract.getAttestation(e);if(t.uid===u.ZERO_BYTES32)throw new Error("Invalid attestation");return t.revocationTime!=c.NO_EXPIRATION}getTimestamp(e){return this.contract.getTimestamp(e)}getRevocationOffchain(e,t){return this.contract.getRevokeOffchain(e,t)}getEIP712Proxy(){return this.proxy}getDelegated(){return this.delegated?this.delegated:this.setDelegated()}getOffchain(){return this.offchain?this.offchain:this.setOffchain()}async attest(e,t){let{schema:n,data:{recipient:r=u.ZERO_ADDRESS,data:a,expirationTime:i=c.NO_EXPIRATION,revocable:o=!0,refUID:s=u.ZERO_BYTES32,value:f=0n}}=e;const d=await this.contract.attest({schema:n,data:{recipient:r,expirationTime:i,revocable:o,refUID:s,data:a,value:f}},{value:f,...t});return new l.Transaction(d,(async e=>(0,u.getUIDsFromAttestReceipt)(e)[0]))}async attestByDelegation(e,t){let n,{schema:r,data:{recipient:a=u.ZERO_ADDRESS,data:i,expirationTime:o=c.NO_EXPIRATION,revocable:s=!0,refUID:f=u.ZERO_BYTES32,value:d=0n},signature:p,attester:h,deadline:b=c.NO_EXPIRATION}=e;return n=await this.isLegacyContract()?await this.legacyEAS.contract.attestByDelegation({schema:r,data:{recipient:a,expirationTime:o,revocable:s,refUID:f,data:i,value:d},signature:p,attester:h},{value:d,...t}):await this.contract.attestByDelegation({schema:r,data:{recipient:a,expirationTime:o,revocable:s,refUID:f,data:i,value:d},signature:p,attester:h,deadline:b},{value:d,...t}),new l.Transaction(n,(async e=>(0,u.getUIDsFromAttestReceipt)(e)[0]))}async multiAttest(e,t){const n=e.map((e=>({schema:e.schema,data:e.data.map((e=>({recipient:e.recipient??u.ZERO_ADDRESS,expirationTime:e.expirationTime??c.NO_EXPIRATION,revocable:e.revocable??!0,refUID:e.refUID??u.ZERO_BYTES32,data:e.data??u.ZERO_BYTES32,value:e.value??0n})))}))),r=n.reduce(((e,t)=>{let{data:n}=t;const r=n.reduce(((e,t)=>e+t.value),0n);return e+r}),0n),a=await this.contract.multiAttest(n,{value:r,...t});return new l.Transaction(a,(async e=>(0,u.getUIDsFromAttestReceipt)(e)))}async multiAttestByDelegation(e,t){let n;if(await this.isLegacyContract()){const r=e.map((e=>({schema:e.schema,data:e.data.map((e=>({recipient:e.recipient??u.ZERO_ADDRESS,expirationTime:e.expirationTime??c.NO_EXPIRATION,revocable:e.revocable??!0,refUID:e.refUID??u.ZERO_BYTES32,data:e.data??u.ZERO_BYTES32,value:e.value??0n}))),signatures:e.signatures,attester:e.attester}))),a=r.reduce(((e,t)=>{let{data:n}=t;const r=n.reduce(((e,t)=>e+t.value),0n);return e+r}),0n);n=await this.legacyEAS.contract.multiAttestByDelegation(r,{value:a,...t})}else{const r=e.map((e=>({schema:e.schema,data:e.data.map((e=>({recipient:e.recipient??u.ZERO_ADDRESS,expirationTime:e.expirationTime??c.NO_EXPIRATION,revocable:e.revocable??!0,refUID:e.refUID??u.ZERO_BYTES32,data:e.data??u.ZERO_BYTES32,value:e.value??0n}))),signatures:e.signatures,attester:e.attester,deadline:e.deadline??c.NO_EXPIRATION}))),a=r.reduce(((e,t)=>{let{data:n}=t;const r=n.reduce(((e,t)=>e+t.value),0n);return e+r}),0n);n=await this.contract.multiAttestByDelegation(r,{value:a,...t})}return new l.Transaction(n,(async e=>(0,u.getUIDsFromAttestReceipt)(e)))}async revoke(e,t){let{schema:n,data:{uid:r,value:a=0n}}=e;const i=await this.contract.revoke({schema:n,data:{uid:r,value:a}},{value:a,...t});return new l.Transaction(i,(async()=>{}))}async revokeByDelegation(e,t){let n,{schema:r,data:{uid:a,value:i=0n},signature:o,revoker:s,deadline:f=c.NO_EXPIRATION}=e;return n=await this.isLegacyContract()?await this.legacyEAS.contract.revokeByDelegation({schema:r,data:{uid:a,value:i},signature:o,revoker:s},{value:i,...t}):await this.contract.revokeByDelegation({schema:r,data:{uid:a,value:i},signature:o,revoker:s,deadline:f},{value:i,...t}),new l.Transaction(n,(async()=>{}))}async multiRevoke(e,t){const n=e.map((e=>({schema:e.schema,data:e.data.map((e=>({uid:e.uid,value:e.value??0n})))}))),r=n.reduce(((e,t)=>{let{data:n}=t;const r=n.reduce(((e,t)=>e+t.value),0n);return e+r}),0n),a=await this.contract.multiRevoke(n,{value:r,...t});return new l.Transaction(a,(async()=>{}))}async multiRevokeByDelegation(e,t){let n;if(await this.isLegacyContract()){const r=e.map((e=>({schema:e.schema,data:e.data.map((e=>({uid:e.uid,value:e.value??0n}))),signatures:e.signatures,revoker:e.revoker}))),a=r.reduce(((e,t)=>{let{data:n}=t;const r=n.reduce(((e,t)=>e+t.value),0n);return e+r}),0n);n=await this.legacyEAS.contract.multiRevokeByDelegation(r,{value:a,...t})}else{const r=e.map((e=>({schema:e.schema,data:e.data.map((e=>({uid:e.uid,value:e.value??0n}))),signatures:e.signatures,revoker:e.revoker,deadline:e.deadline??c.NO_EXPIRATION}))),a=r.reduce(((e,t)=>{let{data:n}=t;const r=n.reduce(((e,t)=>e+t.value),0n);return e+r}),0n);n=await this.contract.multiRevokeByDelegation(r,{value:a,...t})}return new l.Transaction(n,(async()=>{}))}attestByDelegationProxy(e,t){if(!this.proxy)throw new Error("Proxy wasn't set");return this.proxy.attestByDelegationProxy(e,t)}multiAttestByDelegationProxy(e,t){if(!this.proxy)throw new Error("Proxy wasn't set");return this.proxy.multiAttestByDelegationProxy(e,t)}revokeByDelegationProxy(e,t){if(!this.proxy)throw new Error("Proxy wasn't set");return this.proxy.revokeByDelegationProxy(e,t)}multiRevokeByDelegationProxy(e,t){if(!this.proxy)throw new Error("Proxy wasn't set");return this.proxy.multiRevokeByDelegationProxy(e,t)}async timestamp(e,t){const n=await this.contract.timestamp(e,t??{});return new l.Transaction(n,(async e=>(0,u.getTimestampFromTimestampReceipt)(e)[0]))}async multiTimestamp(e,t){const n=await this.contract.multiTimestamp(e,t??{});return new l.Transaction(n,(async e=>(0,u.getTimestampFromTimestampReceipt)(e)))}async revokeOffchain(e,t){const n=await this.contract.revokeOffchain(e,t??{});return new l.Transaction(n,(async e=>(0,u.getTimestampFromOffchainRevocationReceipt)(e)[0]))}async multiRevokeOffchain(e,t){const n=await this.contract.multiRevokeOffchain(e,t??{});return new l.Transaction(n,(async e=>(0,u.getTimestampFromOffchainRevocationReceipt)(e)))}getDomainSeparator(){return this.contract.getDomainSeparator()}getNonce(e){return this.contract.getNonce(e)}getAttestTypeHash(){return this.contract.getAttestTypeHash()}getRevokeTypeHash(){return this.contract.getRevokeTypeHash()}async setDelegated(){return this.delegated=new f.Delegated({address:await this.contract.getAddress(),domainSeparator:await this.getDomainSeparator(),chainId:await this.getChainId()}),this.delegated}async setOffchain(){return this.offchain=new f.Offchain({address:await this.contract.getAddress(),version:await this.getVersion(),chainId:await this.getChainId()},f.OffchainAttestationVersion.Version2,this),this.offchain}async isLegacyContract(){return o.default.lte(await this.getVersion(),"1.1.0")}}t.EAS=d},1228:(e,t,n)=>{"use strict";const r=n(49701),a=n(48857),i=n(60680),o=n(69769),s=n(45178),f=n(79123);class c extends s.Base{delegated;constructor(e,t){const{signer:n}=t||{};super(new r.EIP712Proxy__factory,e,n)}connect(e){return delete this.delegated,super.connect(e),this}async getVersion(){return await(0,a.legacyVersion)(this.contract)??this.contract.version()}getEAS(){return this.contract.getEAS()}getName(){return this.contract.getName()}getDomainSeparator(){return this.contract.getDomainSeparator()}getAttestTypeHash(){return this.contract.getAttestTypeHash()}getRevokeTypeHash(){return this.contract.getRevokeTypeHash()}getAttester(e){return this.contract.getAttester(e)}getDelegated(){return this.delegated?this.delegated:this.setDelegated()}async attestByDelegationProxy(e,t){let{schema:n,data:{recipient:r,data:a,expirationTime:i=o.NO_EXPIRATION,revocable:c=!0,refUID:l=f.ZERO_BYTES32,value:u=0n},attester:d,signature:p,deadline:h=o.NO_EXPIRATION}=e;const b=await this.contract.attestByDelegation({schema:n,data:{recipient:r,expirationTime:i,revocable:c,refUID:l,data:a,value:u},signature:p,attester:d,deadline:h},{value:u,...t});return new s.Transaction(b,(async e=>(0,f.getUIDsFromAttestReceipt)(e)[0]))}async multiAttestByDelegationProxy(e,t){const n=e.map((e=>({schema:e.schema,data:e.data.map((e=>({recipient:e.recipient,expirationTime:e.expirationTime??o.NO_EXPIRATION,revocable:e.revocable??!0,refUID:e.refUID??f.ZERO_BYTES32,data:e.data??f.ZERO_BYTES32,value:e.value??0n}))),signatures:e.signatures,attester:e.attester,deadline:e.deadline??o.NO_EXPIRATION}))),r=n.reduce(((e,t)=>{let{data:n}=t;const r=n.reduce(((e,t)=>e+t.value),0n);return e+r}),0n),a=await this.contract.multiAttestByDelegation(n,{value:r,...t});return new s.Transaction(a,(async e=>(0,f.getUIDsFromAttestReceipt)(e)))}async revokeByDelegationProxy(e,t){let{schema:n,data:{uid:r,value:a=0n},signature:i,revoker:f,deadline:c=o.NO_EXPIRATION}=e;const l=await this.contract.revokeByDelegation({schema:n,data:{uid:r,value:a},signature:i,revoker:f,deadline:c},{value:a,...t});return new s.Transaction(l,(async()=>{}))}async multiRevokeByDelegationProxy(e,t){const n=e.map((e=>({schema:e.schema,data:e.data.map((e=>({uid:e.uid,value:e.value??0n}))),signatures:e.signatures,revoker:e.revoker,deadline:e.deadline??o.NO_EXPIRATION}))),r=n.reduce(((e,t)=>{let{data:n}=t;const r=n.reduce(((e,t)=>e+t.value),0n);return e+r}),0n),a=await this.contract.multiRevokeByDelegation(n,{value:r,...t});return new s.Transaction(a,(async()=>{}))}async setDelegated(){return this.delegated=new i.DelegatedProxy({name:await this.getName(),address:await this.contract.getAddress(),version:await this.getVersion(),chainId:await this.getChainId()}),this.delegated}}},91700:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Contracts=void 0;const r=n(68932);t.Contracts=r.__importStar(n(49701)),r.__exportStar(n(66100),t),r.__exportStar(n(60680),t),r.__exportStar(n(69769),t),r.__exportStar(n(63579),t),r.__exportStar(n(91908),t),r.__exportStar(n(45178),t),r.__exportStar(n(79123),t)},75634:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EAS__factory=void 0;const r=n(71321),a=[{inputs:[{internalType:"contract ISchemaRegistry",name:"registry",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AccessDenied",type:"error"},{inputs:[],name:"AlreadyRevoked",type:"error"},{inputs:[],name:"AlreadyRevokedOffchain",type:"error"},{inputs:[],name:"AlreadyTimestamped",type:"error"},{inputs:[],name:"InsufficientValue",type:"error"},{inputs:[],name:"InvalidAttestation",type:"error"},{inputs:[],name:"InvalidAttestations",type:"error"},{inputs:[],name:"InvalidExpirationTime",type:"error"},{inputs:[],name:"InvalidLength",type:"error"},{inputs:[],name:"InvalidOffset",type:"error"},{inputs:[],name:"InvalidRegistry",type:"error"},{inputs:[],name:"InvalidRevocation",type:"error"},{inputs:[],name:"InvalidRevocations",type:"error"},{inputs:[],name:"InvalidSchema",type:"error"},{inputs:[],name:"InvalidShortString",type:"error"},{inputs:[],name:"InvalidSignature",type:"error"},{inputs:[],name:"InvalidVerifier",type:"error"},{inputs:[],name:"Irrevocable",type:"error"},{inputs:[],name:"NotFound",type:"error"},{inputs:[],name:"NotPayable",type:"error"},{inputs:[{internalType:"string",name:"str",type:"string"}],name:"StringTooLong",type:"error"},{inputs:[],name:"WrongSchema",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"address",name:"attester",type:"address"},{indexed:!1,internalType:"bytes32",name:"uid",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"schema",type:"bytes32"}],name:"Attested",type:"event"},{anonymous:!1,inputs:[],name:"EIP712DomainChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"address",name:"attester",type:"address"},{indexed:!1,internalType:"bytes32",name:"uid",type:"bytes32"},{indexed:!0,internalType:"bytes32",name:"schema",type:"bytes32"}],name:"Revoked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"revoker",type:"address"},{indexed:!0,internalType:"bytes32",name:"data",type:"bytes32"},{indexed:!0,internalType:"uint64",name:"timestamp",type:"uint64"}],name:"RevokedOffchain",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"bytes32",name:"data",type:"bytes32"},{indexed:!0,internalType:"uint64",name:"timestamp",type:"uint64"}],name:"Timestamped",type:"event"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData",name:"data",type:"tuple"}],internalType:"struct AttestationRequest",name:"request",type:"tuple"}],name:"attest",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature",name:"signature",type:"tuple"},{internalType:"address",name:"attester",type:"address"}],internalType:"struct DelegatedAttestationRequest",name:"delegatedRequest",type:"tuple"}],name:"attestByDelegation",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"payable",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{internalType:"bytes1",name:"fields",type:"bytes1"},{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"version",type:"string"},{internalType:"uint256",name:"chainId",type:"uint256"},{internalType:"address",name:"verifyingContract",type:"address"},{internalType:"bytes32",name:"salt",type:"bytes32"},{internalType:"uint256[]",name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getAttestTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"getAttestation",outputs:[{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"bytes32",name:"schema",type:"bytes32"},{internalType:"uint64",name:"time",type:"uint64"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"uint64",name:"revocationTime",type:"uint64"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"address",name:"attester",type:"address"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct Attestation",name:"",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getDomainSeparator",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"getName",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"getNonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"revoker",type:"address"},{internalType:"bytes32",name:"data",type:"bytes32"}],name:"getRevokeOffchain",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRevokeTypeHash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getSchemaRegistry",outputs:[{internalType:"contract ISchemaRegistry",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"data",type:"bytes32"}],name:"getTimestamp",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"uid",type:"bytes32"}],name:"isAttestationValid",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData[]",name:"data",type:"tuple[]"}],internalType:"struct MultiAttestationRequest[]",name:"multiRequests",type:"tuple[]"}],name:"multiAttest",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint64",name:"expirationTime",type:"uint64"},{internalType:"bool",name:"revocable",type:"bool"},{internalType:"bytes32",name:"refUID",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct AttestationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"attester",type:"address"}],internalType:"struct MultiDelegatedAttestationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiAttestByDelegation",outputs:[{internalType:"bytes32[]",name:"",type:"bytes32[]"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData[]",name:"data",type:"tuple[]"}],internalType:"struct MultiRevocationRequest[]",name:"multiRequests",type:"tuple[]"}],name:"multiRevoke",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData[]",name:"data",type:"tuple[]"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature[]",name:"signatures",type:"tuple[]"},{internalType:"address",name:"revoker",type:"address"}],internalType:"struct MultiDelegatedRevocationRequest[]",name:"multiDelegatedRequests",type:"tuple[]"}],name:"multiRevokeByDelegation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32[]",name:"data",type:"bytes32[]"}],name:"multiRevokeOffchain",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32[]",name:"data",type:"bytes32[]"}],name:"multiTimestamp",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData",name:"data",type:"tuple"}],internalType:"struct RevocationRequest",name:"request",type:"tuple"}],name:"revoke",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes32",name:"schema",type:"bytes32"},{components:[{internalType:"bytes32",name:"uid",type:"bytes32"},{internalType:"uint256",name:"value",type:"uint256"}],internalType:"struct RevocationRequestData",name:"data",type:"tuple"},{components:[{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],internalType:"struct EIP712Signature",name:"signature",type:"tuple"},{internalType:"address",name:"revoker",type:"address"}],internalType:"struct DelegatedRevocationRequest",name:"delegatedRequest",type:"tuple"}],name:"revokeByDelegation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"data",type:"bytes32"}],name:"revokeOffchain",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes32",name:"data",type:"bytes32"}],name:"timestamp",outputs:[{internalType:"uint64",name:"",type:"uint64"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"version",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],i="0x6101e06040523480156200001257600080fd5b5060405162004a5f38038062004a5f83398101604081905262000035916200020d565b604080518082018252600381526245415360e81b602080830191909152825180840190935260058352640312e302e360dc1b908301526001608052600060a081905260c0819052909190829082906200009090839062000188565b61018052620000a181600162000188565b6101a052815160208084019190912061014052815190820120610160524661010052620001326101405161016051604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201529081019290925260608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60e0525050306101205260026200014a8382620002e4565b5050506001600160a01b03811662000175576040516311a1e69760e01b815260040160405180910390fd5b6001600160a01b03166101c05262000425565b6000602083511015620001a857620001a083620001c1565b9050620001bb565b81620001b58482620002e4565b5060ff90505b92915050565b600080829050601f81511115620001f8578260405163305a27a960e01b8152600401620001ef9190620003b0565b60405180910390fd5b8051620002058262000400565b179392505050565b6000602082840312156200022057600080fd5b81516001600160a01b03811681146200023857600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200026a57607f821691505b6020821081036200028b57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002df57600081815260208120601f850160051c81016020861015620002ba5750805b601f850160051c820191505b81811015620002db57828155600101620002c6565b5050505b505050565b81516001600160401b038111156200030057620003006200023f565b620003188162000311845462000255565b8462000291565b602080601f831160018114620003505760008415620003375750858301515b600019600386901b1c1916600185901b178555620002db565b600085815260208120601f198616915b82811015620003815788860151825594840194600190910190840162000360565b5085821015620003a05787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600060208083528351808285015260005b81811015620003df57858101830151858201604001528201620003c1565b506000604082860101526040601f19601f8301168501019250505092915050565b805160208083015191908110156200028b5760001960209190910360031b1b16919050565b60805160a05160c05160e05161010051610120516101405161016051610180516101a0516101c0516145a5620004ba6000396000818161050d015281816114060152611ba901526000610bfd01526000610bd3015260006126ed015260006126c5015260006126200152600061264a015260006126740152600061092a01526000610901015260006108d801526145a56000f3fe60806040526004361061018b5760003560e01c8063b469318d116100d6578063e45d03f91161007f578063ed24911d11610059578063ed24911d146104d1578063f10b5cc8146104e6578063f17325e71461053757600080fd5b8063e45d03f91461048b578063e57a6b1b1461049e578063e71ff365146104b157600080fd5b8063d45c4435116100b0578063d45c443514610402578063e13458fc14610439578063e30bb5631461044c57600080fd5b8063b469318d14610355578063b83010d3146103af578063cf190f34146103e257600080fd5b80634cb7e9e511610138578063831e05a111610112578063831e05a1146102ed57806384b0196e14610300578063a3112a641461032857600080fd5b80634cb7e9e5146102a55780634d003070146102b857806354fd4d50146102d857600080fd5b80632d0335ab116101695780632d0335ab1461022d57806344adc90e14610270578063469262671461029057600080fd5b806312b11a171461019057806313893f61146101d257806317d7de7c1461020b575b600080fd5b34801561019c57600080fd5b507fdbfdf8dc2b135c26253e00d5b6cbe6f20457e003fd526d97cea183883570de615b6040519081526020015b60405180910390f35b3480156101de57600080fd5b506101f26101ed3660046134bf565b61054a565b60405167ffffffffffffffff90911681526020016101c9565b34801561021757600080fd5b5061022061058f565b6040516101c9919061356f565b34801561023957600080fd5b506101bf6102483660046135bb565b73ffffffffffffffffffffffffffffffffffffffff1660009081526003602052604090205490565b61028361027e3660046134bf565b610621565b6040516101c991906135d8565b6102a361029e36600461361c565b610758565b005b6102a36102b33660046134bf565b6107dc565b3480156102c457600080fd5b506101f26102d3366004613634565b6108c4565b3480156102e457600080fd5b506102206108d1565b6102836102fb3660046134bf565b610974565b34801561030c57600080fd5b50610315610bc5565b6040516101c99796959493929190613688565b34801561033457600080fd5b50610348610343366004613634565b610c69565b6040516101c991906137f8565b34801561036157600080fd5b506101f261037036600461380b565b73ffffffffffffffffffffffffffffffffffffffff919091166000908152600660209081526040808320938352929052205467ffffffffffffffff1690565b3480156103bb57600080fd5b507fa98d02348410c9c76735e0d0bb1396f4015ac2bb9615f9c2611d19d7a8a996506101bf565b3480156103ee57600080fd5b506101f26103fd366004613634565b610e2b565b34801561040e57600080fd5b506101f261041d366004613634565b60009081526005602052604090205467ffffffffffffffff1690565b6101bf610447366004613837565b610e39565b34801561045857600080fd5b5061047b610467366004613634565b600090815260046020526040902054151590565b60405190151581526020016101c9565b6102a36104993660046134bf565b610f3c565b6102a36104ac366004613872565b6110b7565b3480156104bd57600080fd5b506101f26104cc3660046134bf565b61115c565b3480156104dd57600080fd5b506101bf611194565b3480156104f257600080fd5b5060405173ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001681526020016101c9565b6101bf610545366004613884565b6111a3565b60004282825b818110156105835761057b3387878481811061056e5761056e6138bf565b9050602002013585611261565b600101610550565b50909150505b92915050565b60606002805461059e906138ee565b80601f01602080910402602001604051908101604052809291908181526020018280546105ca906138ee565b80156106175780601f106105ec57610100808354040283529160200191610617565b820191906000526020600020905b8154815290600101906020018083116105fa57829003601f168201915b5050505050905090565b606060008267ffffffffffffffff81111561063e5761063e61393b565b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b509050600034815b85811015610743577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff86018114368888848181106106b9576106b96138bf565b90506020028101906106cb919061396a565b905060006106f282356106e160208501856139a8565b6106ea91613c21565b338887611360565b80519091506107019086613c95565b9450806020015187858151811061071a5761071a6138bf565b60200260200101819052508060200151518601955050505061073c8160010190565b9050610679565b5061074e8383611a93565b9695505050505050565b604080516001808252818301909252600091816020015b604080518082019091526000808252602082015281526020019060019003908161076f5790505090506107aa36839003830160208401613d1e565b816000815181106107bd576107bd6138bf565b60209081029190910101526107d782358233346001611b60565b505050565b3460005b828110156108be577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8301811436858584818110610820576108206138bf565b9050602002810190610832919061396a565b905061089f81356108466020840184613d3a565b808060200260200160405190810160405280939291908181526020016000905b828210156108925761088360408302860136819003810190613d1e565b81526020019060010190610866565b5050505050338786611b60565b6108a99085613c95565b935050506108b78160010190565b90506107e0565b50505050565b60004261058983826121bc565b60606108fc7f000000000000000000000000000000000000000000000000000000000000000061227e565b6109257f000000000000000000000000000000000000000000000000000000000000000061227e565b61094e7f000000000000000000000000000000000000000000000000000000000000000061227e565b60405160200161096093929190613da2565b604051602081830303815290604052905090565b606060008267ffffffffffffffff8111156109915761099161393b565b6040519080825280602002602001820160405280156109c457816020015b60608152602001906001900390816109af5790505b509050600034815b85811015610743577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8601811436888884818110610a0c57610a0c6138bf565b9050602002810190610a1e9190613e18565b9050366000610a3060208401846139a8565b9092509050801580610a505750610a4a6040840184613e4c565b82141590505b15610a87576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b81811015610b4957610b41604051806080016040528086600001358152602001858585818110610abc57610abc6138bf565b9050602002810190610ace9190613eb3565b610ad790613ee7565b8152602001610ae96040880188613e4c565b85818110610af957610af96138bf565b905060600201803603810190610b0f9190613f5e565b8152602001610b2460808801606089016135bb565b73ffffffffffffffffffffffffffffffffffffffff16905261233c565b600101610a8a565b506000610b728435610b5b8486613c21565b610b6b60808801606089016135bb565b8a89611360565b8051909150610b819088613c95565b96508060200151898781518110610b9a57610b9a6138bf565b6020026020010181905250806020015151880197505050505050610bbe8160010190565b90506109cc565b600060608082808083610bf87f0000000000000000000000000000000000000000000000000000000000000000836124cc565b610c237f000000000000000000000000000000000000000000000000000000000000000060016124cc565b604080516000808252602082019092527f0f000000000000000000000000000000000000000000000000000000000000009b939a50919850469750309650945092509050565b604080516101408101825260008082526020820181905291810182905260608082018390526080820183905260a0820183905260c0820183905260e0820183905261010082019290925261012081019190915260008281526004602081815260409283902083516101408101855281548152600182015492810192909252600281015467ffffffffffffffff808216958401959095526801000000000000000081048516606084015270010000000000000000000000000000000090049093166080820152600383015460a08201529082015473ffffffffffffffffffffffffffffffffffffffff90811660c0830152600583015490811660e083015274010000000000000000000000000000000000000000900460ff16151561010082015260068201805491929161012084019190610da2906138ee565b80601f0160208091040260200160405190810160405280929190818152602001828054610dce906138ee565b8015610e1b5780601f10610df057610100808354040283529160200191610e1b565b820191906000526020600020905b815481529060010190602001808311610dfe57829003601f168201915b5050505050815250509050919050565b600042610589338483611261565b6000610e4c610e4783613f7a565b61233c565b604080516001808252818301909252600091816020015b6040805160c081018252600080825260208083018290529282018190526060808301829052608083015260a082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909201910181610e63579050509050610ed16020840184613eb3565b610eda90613ee7565b81600081518110610eed57610eed6138bf565b6020908102919091010152610f16833582610f0e60c0870160a088016135bb565b346001611360565b60200151600081518110610f2c57610f2c6138bf565b6020026020010151915050919050565b3460005b828110156108be577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff830181146000858584818110610f8157610f816138bf565b9050602002810190610f939190613e18565b610f9c9061405f565b60208101518051919250901580610fb95750816040015151815114155b15610ff0576040517f947d5a8400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005b815181101561108157611079604051806080016040528085600001518152602001848481518110611026576110266138bf565b6020026020010151815260200185604001518481518110611049576110496138bf565b60200260200101518152602001856060015173ffffffffffffffffffffffffffffffffffffffff16815250612577565b600101610ff3565b5061109782600001518284606001518887611b60565b6110a19086613c95565b94505050506110b08160010190565b9050610f40565b6110ce6110c93683900383018361413e565b612577565b604080516001808252818301909252600091816020015b60408051808201909152600080825260208201528152602001906001900390816110e557905050905061112036839003830160208401613d1e565b81600081518110611133576111336138bf565b60209081029190910101526107d782358261115460e0860160c087016135bb565b346001611b60565b60004282825b818110156105835761118c86868381811061117f5761117f6138bf565b90506020020135846121bc565b600101611162565b600061119e612606565b905090565b604080516001808252818301909252600091829190816020015b6040805160c081018252600080825260208083018290529282018190526060808301829052608083015260a082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9092019101816111bd57905050905061122b6020840184613eb3565b61123490613ee7565b81600081518110611247576112476138bf565b6020908102919091010152610f1683358233346001611360565b73ffffffffffffffffffffffffffffffffffffffff83166000908152600660209081526040808320858452918290529091205467ffffffffffffffff16156112d5576040517fec9d6eeb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008381526020829052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff861690811790915590519091859173ffffffffffffffffffffffffffffffffffffffff8816917f92a1f7a41a7c585a8b09e25b195e225b1d43248daca46b0faf9e0792777a222991a450505050565b60408051808201909152600081526060602082015284516040805180820190915260008152606060208201528167ffffffffffffffff8111156113a5576113a561393b565b6040519080825280602002602001820160405280156113ce578160200160208202803683370190505b5060208201526040517fa2ea7c6e000000000000000000000000000000000000000000000000000000008152600481018990526000907f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff169063a2ea7c6e90602401600060405180830381865afa158015611462573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682016040526114a8919081019061419a565b80519091506114e3576040517fbf37b20e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008367ffffffffffffffff8111156114fe576114fe61393b565b60405190808252806020026020018201604052801561159d57816020015b60408051610140810182526000808252602080830182905292820181905260608083018290526080830182905260a0830182905260c0830182905260e0830182905261010083019190915261012082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff90920191018161151c5790505b50905060008467ffffffffffffffff8111156115bb576115bb61393b565b6040519080825280602002602001820160405280156115e4578160200160208202803683370190505b50905060005b85811015611a725760008b8281518110611606576116066138bf565b60200260200101519050600067ffffffffffffffff16816020015167ffffffffffffffff161415801561165157504267ffffffffffffffff16816020015167ffffffffffffffff1611155b15611688576040517f08e8b93700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b846040015115801561169b575080604001515b156116d2576040517f157bd4c300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006040518061014001604052806000801b81526020018f81526020016116f64290565b67ffffffffffffffff168152602001836020015167ffffffffffffffff168152602001600067ffffffffffffffff16815260200183606001518152602001836000015173ffffffffffffffffffffffffffffffffffffffff1681526020018d73ffffffffffffffffffffffffffffffffffffffff16815260200183604001511515815260200183608001518152509050600080600090505b611798838261273e565b600081815260046020526040902054909250156117b75760010161178e565b81835260008281526004602081815260409283902086518155908601516001820155918501516002830180546060880151608089015167ffffffffffffffff908116700100000000000000000000000000000000027fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff92821668010000000000000000027fffffffffffffffffffffffffffffffff000000000000000000000000000000009094169190951617919091171691909117905560a0850151600383015560c0850151908201805473ffffffffffffffffffffffffffffffffffffffff9283167fffffffffffffffffffffffff000000000000000000000000000000000000000090911617905560e0850151600583018054610100880151151574010000000000000000000000000000000000000000027fffffffffffffffffffffff0000000000000000000000000000000000000000009091169290931691909117919091179055610120840151849190600682019061193690826142c0565b50505060608401511561198d57606084015160009081526004602052604090205461198d576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b828786815181106119a0576119a06138bf565b60200260200101819052508360a001518686815181106119c2576119c26138bf565b60200260200101818152505081896020015186815181106119e5576119e56138bf565b6020026020010181815250508f8e73ffffffffffffffffffffffffffffffffffffffff16856000015173ffffffffffffffffffffffffffffffffffffffff167f8bf46bf4cfd674fa735a3d63ec1c9ad4153f033c290341f3a588b75685141b3585604051611a5591815260200190565b60405180910390a450505050611a6b8160010190565b90506115ea565b50611a8283838360008c8c61279d565b845250919998505050505050505050565b606060008267ffffffffffffffff811115611ab057611ab061393b565b604051908082528060200260200182016040528015611ad9578160200160208202803683370190505b5090506000805b8551811015610583576000868281518110611afd57611afd6138bf565b6020026020010151905060005b8151811015611b5657818181518110611b2557611b256138bf565b6020026020010151858581518110611b3f57611b3f6138bf565b602090810291909101015260019384019301611b0a565b5050600101611ae0565b6040517fa2ea7c6e00000000000000000000000000000000000000000000000000000000815260048101869052600090819073ffffffffffffffffffffffffffffffffffffffff7f0000000000000000000000000000000000000000000000000000000000000000169063a2ea7c6e90602401600060405180830381865afa158015611bf0573d6000803e3d6000fd5b505050506040513d6000823e601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201604052611c36919081019061419a565b8051909150611c71576040517fbf37b20e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b855160008167ffffffffffffffff811115611c8e57611c8e61393b565b604051908082528060200260200182016040528015611d2d57816020015b60408051610140810182526000808252602080830182905292820181905260608083018290526080830182905260a0830182905260c0830182905260e0830182905261010083019190915261012082015282527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff909201910181611cac5790505b50905060008267ffffffffffffffff811115611d4b57611d4b61393b565b604051908082528060200260200182016040528015611d74578160200160208202803683370190505b50905060005b8381101561219e5760008a8281518110611d9657611d966138bf565b6020908102919091018101518051600090815260049092526040909120805491925090611def576040517fc5723b5100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8c816001015414611e2c576040517fbf37b20e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600581015473ffffffffffffffffffffffffffffffffffffffff8c8116911614611e82576040517f4ca8886700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600581015474010000000000000000000000000000000000000000900460ff16611ed8576040517f157bd4c300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002810154700100000000000000000000000000000000900467ffffffffffffffff1615611f32576040517f905e710700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b426002820180547fffffffffffffffff0000000000000000ffffffffffffffffffffffffffffffff811670010000000000000000000000000000000067ffffffffffffffff948516810291821793849055604080516101408101825287548152600188015460208201529386169286169290921791830191909152680100000000000000008304841660608301529091049091166080820152600382015460a0820152600482015473ffffffffffffffffffffffffffffffffffffffff90811660c0830152600583015490811660e083015274010000000000000000000000000000000000000000900460ff161515610100820152600682018054839161012084019161203e906138ee565b80601f016020809104026020016040519081016040528092919081815260200182805461206a906138ee565b80156120b75780601f1061208c576101008083540402835291602001916120b7565b820191906000526020600020905b81548152906001019060200180831161209a57829003601f168201915b5050505050815250508584815181106120d2576120d26138bf565b602002602001018190525081602001518484815181106120f4576120f46138bf565b60200260200101818152505080600101548b73ffffffffffffffffffffffffffffffffffffffff168260040160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167ff930a6e2523c9cc298691873087a740550b8fc85a0680830414c148ed927f615856000015160405161218c91815260200190565b60405180910390a45050600101611d7a565b506121ae84838360018b8b61279d565b9a9950505050505050505050565b60008281526005602052604090205467ffffffffffffffff161561220c576040517f2e26794600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526005602052604080822080547fffffffffffffffffffffffffffffffffffffffffffffffff00000000000000001667ffffffffffffffff85169081179091559051909184917f5aafceeb1c7ad58e4a84898bdee37c02c0fc46e7d24e6b60e8209449f183459f9190a35050565b6060600061228b83612b77565b600101905060008167ffffffffffffffff8111156122ab576122ab61393b565b6040519080825280601f01601f1916602001820160405280156122d5576020820181803683370190505b5090508181016020015b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85049450846122df57509392505050565b60208082015160408084015160608086015173ffffffffffffffffffffffffffffffffffffffff166000908152600386528381208054600181019091558751865187890151878901519589015160808a01518051908c01209851999a97999498959761244397612428977fdbfdf8dc2b135c26253e00d5b6cbe6f20457e003fd526d97cea183883570de619791939290918c9101978852602088019690965273ffffffffffffffffffffffffffffffffffffffff94909416604087015267ffffffffffffffff9290921660608601521515608085015260a084015260c083015260e08201526101000190565b60405160208183030381529060405280519060200120612c59565b9050846060015173ffffffffffffffffffffffffffffffffffffffff1661247882856000015186602001518760400151612ca1565b73ffffffffffffffffffffffffffffffffffffffff16146124c5576040517f8baa579f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5050505050565b606060ff83146124e6576124df83612cc9565b9050610589565b8180546124f2906138ee565b80601f016020809104026020016040519081016040528092919081815260200182805461251e906138ee565b801561256b5780601f106125405761010080835404028352916020019161256b565b820191906000526020600020905b81548152906001019060200180831161254e57829003601f168201915b50505050509050610589565b60208181015160408084015160608086015173ffffffffffffffffffffffffffffffffffffffff166000908152600386528381208054600181019091558751865186517fa98d02348410c9c76735e0d0bb1396f4015ac2bb9615f9c2611d19d7a8a99650998101999099529588015291860193909352608085018190529293909291906124439060a001612428565b60003073ffffffffffffffffffffffffffffffffffffffff7f00000000000000000000000000000000000000000000000000000000000000001614801561266c57507f000000000000000000000000000000000000000000000000000000000000000046145b1561269657507f000000000000000000000000000000000000000000000000000000000000000090565b61119e604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f60208201527f0000000000000000000000000000000000000000000000000000000000000000918101919091527f000000000000000000000000000000000000000000000000000000000000000060608201524660808201523060a082015260009060c00160405160208183030381529060405280519060200120905090565b60208083015160c084015160e0850151604080870151606088015161010089015160a08a01516101208b0151945160009961277f99989796918c91016143da565b60405160208183030381529060405280519060200120905092915050565b845160009060018190036127f5576127ed88886000815181106127c2576127c26138bf565b6020026020010151886000815181106127dd576127dd6138bf565b6020026020010151888888612d08565b91505061074e565b602088015173ffffffffffffffffffffffffffffffffffffffff81166128875760005b8281101561287b57878181518110612832576128326138bf565b6020026020010151600014612873576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600101612818565b5060009250505061074e565b6000805b838110156129b15760008982815181106128a7576128a76138bf565b602002602001015190508060001415801561292e57508373ffffffffffffffffffffffffffffffffffffffff1663ce46e0466040518163ffffffff1660e01b8152600401602060405180830381865afa158015612908573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061292c91906144b8565b155b15612965576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8781111561299f576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b9687900396919091019060010161288b565b508615612a8c576040517f88e5b2d900000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8316906388e5b2d9908390612a0e908d908d906004016144d5565b60206040518083038185885af1158015612a2c573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612a5191906144b8565b612a87576040517fbf2f3a8b00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612b5b565b6040517f91db0b7e00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff8316906391db0b7e908390612ae2908d908d906004016144d5565b60206040518083038185885af1158015612b00573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612b2591906144b8565b612b5b576040517fe8bee83900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8415612b6a57612b6a8661301e565b9998505050505050505050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310612bc0577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310612bec576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612c0a57662386f26fc10000830492506010015b6305f5e1008310612c22576305f5e100830492506008015b6127108310612c3657612710830492506004015b60648310612c48576064830492506002015b600a83106105895760010192915050565b6000610589612c66612606565b836040517f19010000000000000000000000000000000000000000000000000000000000008152600281019290925260228201526042902090565b6000806000612cb287878787613031565b91509150612cbf81613120565b5095945050505050565b60606000612cd6836132d8565b604080516020808252818301909252919250600091906020820181803683375050509182525060208101929092525090565b602086015160009073ffffffffffffffffffffffffffffffffffffffff8116612d6d578515612d63576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600091505061074e565b8515801590612de857508073ffffffffffffffffffffffffffffffffffffffff1663ce46e0466040518163ffffffff1660e01b8152600401602060405180830381865afa158015612dc2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612de691906144b8565b155b15612e1f576040517f1574f9f300000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b83861115612e59576040517f1101129400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b85840393508415612f36576040517fe49617e100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82169063e49617e1908890612eb8908b906004016137f8565b60206040518083038185885af1158015612ed6573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612efb91906144b8565b612f31576040517fccf3bb2700000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613003565b6040517fe60c350500000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff82169063e60c3505908890612f8a908b906004016137f8565b60206040518083038185885af1158015612fa8573d6000803e3d6000fd5b50505050506040513d601f19601f82011682018060405250810190612fcd91906144b8565b613003576040517fbd8ba84d00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8215613012576130128461301e565b50939695505050505050565b801561302e5761302e3382613319565b50565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156130685750600090506003613117565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156130bc573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff811661311057600060019250925050613117565b9150600090505b94509492505050565b600081600481111561313457613134614569565b0361313c5750565b600181600481111561315057613150614569565b036131bc576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064015b60405180910390fd5b60028160048111156131d0576131d0614569565b03613237576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016131b3565b600381600481111561324b5761324b614569565b0361302e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f756500000000000000000000000000000000000000000000000000000000000060648201526084016131b3565b600060ff8216601f811115610589576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80471015613383576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016131b3565b60008273ffffffffffffffffffffffffffffffffffffffff168260405160006040518083038185875af1925050503d80600081146133dd576040519150601f19603f3d011682016040523d82523d6000602084013e6133e2565b606091505b50509050806107d7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016131b3565b60008083601f84011261348557600080fd5b50813567ffffffffffffffff81111561349d57600080fd5b6020830191508360208260051b85010111156134b857600080fd5b9250929050565b600080602083850312156134d257600080fd5b823567ffffffffffffffff8111156134e957600080fd5b6134f585828601613473565b90969095509350505050565b60005b8381101561351c578181015183820152602001613504565b50506000910152565b6000815180845261353d816020860160208601613501565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b6020815260006135826020830184613525565b9392505050565b73ffffffffffffffffffffffffffffffffffffffff8116811461302e57600080fd5b80356135b681613589565b919050565b6000602082840312156135cd57600080fd5b813561358281613589565b6020808252825182820181905260009190848201906040850190845b81811015613610578351835292840192918401916001016135f4565b50909695505050505050565b60006060828403121561362e57600080fd5b50919050565b60006020828403121561364657600080fd5b5035919050565b600081518084526020808501945080840160005b8381101561367d57815187529582019590820190600101613661565b509495945050505050565b7fff000000000000000000000000000000000000000000000000000000000000008816815260e0602082015260006136c360e0830189613525565b82810360408401526136d58189613525565b905086606084015273ffffffffffffffffffffffffffffffffffffffff861660808401528460a084015282810360c08401526121ae818561364d565b60006101408251845260208301516020850152604083015161373f604086018267ffffffffffffffff169052565b50606083015161375b606086018267ffffffffffffffff169052565b506080830151613777608086018267ffffffffffffffff169052565b5060a083015160a085015260c08301516137a960c086018273ffffffffffffffffffffffffffffffffffffffff169052565b5060e08301516137d160e086018273ffffffffffffffffffffffffffffffffffffffff169052565b50610100838101511515908501526101208084015181860183905261074e83870182613525565b6020815260006135826020830184613711565b6000806040838503121561381e57600080fd5b823561382981613589565b946020939093013593505050565b60006020828403121561384957600080fd5b813567ffffffffffffffff81111561386057600080fd5b820160c0818503121561358257600080fd5b600060e0828403121561362e57600080fd5b60006020828403121561389657600080fd5b813567ffffffffffffffff8111156138ad57600080fd5b82016040818503121561358257600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600181811c9082168061390257607f821691505b60208210810361362e577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc183360301811261399e57600080fd5b9190910192915050565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe18436030181126139dd57600080fd5b83018035915067ffffffffffffffff8211156139f857600080fd5b6020019150600581901b36038213156134b857600080fd5b60405160c0810167ffffffffffffffff81118282101715613a3357613a3361393b565b60405290565b6040516080810167ffffffffffffffff81118282101715613a3357613a3361393b565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715613aa357613aa361393b565b604052919050565b600067ffffffffffffffff821115613ac557613ac561393b565b5060051b60200190565b801515811461302e57600080fd5b80356135b681613acf565b600067ffffffffffffffff821115613b0257613b0261393b565b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01660200190565b600082601f830112613b3f57600080fd5b8135613b52613b4d82613ae8565b613a5c565b818152846020838601011115613b6757600080fd5b816020850160208301376000918101602001919091529392505050565b600060c08284031215613b9657600080fd5b613b9e613a10565b90508135613bab81613589565b8152602082013567ffffffffffffffff8082168214613bc957600080fd5b816020840152613bdb60408501613add565b6040840152606084013560608401526080840135915080821115613bfe57600080fd5b50613c0b84828501613b2e565b60808301525060a082013560a082015292915050565b6000613c2f613b4d84613aab565b80848252602080830192508560051b850136811115613c4d57600080fd5b855b81811015613c8957803567ffffffffffffffff811115613c6f5760008081fd5b613c7b36828a01613b84565b865250938201938201613c4f565b50919695505050505050565b81810381811115610589577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600060408284031215613ce157600080fd5b6040516040810181811067ffffffffffffffff82111715613d0457613d0461393b565b604052823581526020928301359281019290925250919050565b600060408284031215613d3057600080fd5b6135828383613ccf565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112613d6f57600080fd5b83018035915067ffffffffffffffff821115613d8a57600080fd5b6020019150600681901b36038213156134b857600080fd5b60008451613db4818460208901613501565b80830190507f2e000000000000000000000000000000000000000000000000000000000000008082528551613df0816001850160208a01613501565b60019201918201528351613e0b816002840160208801613501565b0160020195945050505050565b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8183360301811261399e57600080fd5b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112613e8157600080fd5b83018035915067ffffffffffffffff821115613e9c57600080fd5b60200191506060810236038213156134b857600080fd5b600082357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff4183360301811261399e57600080fd5b60006105893683613b84565b600060608284031215613f0557600080fd5b6040516060810181811067ffffffffffffffff82111715613f2857613f2861393b565b604052905080823560ff81168114613f3f57600080fd5b8082525060208301356020820152604083013560408201525092915050565b600060608284031215613f7057600080fd5b6135828383613ef3565b600060c08236031215613f8c57600080fd5b613f94613a39565b82358152602083013567ffffffffffffffff811115613fb257600080fd5b613fbe36828601613b84565b602083015250613fd13660408501613ef3565b604082015260a0830135613fe481613589565b606082015292915050565b600082601f83011261400057600080fd5b81356020614010613b4d83613aab565b8281526060928302850182019282820191908785111561402f57600080fd5b8387015b85811015614052576140458982613ef3565b8452928401928101614033565b5090979650505050505050565b60006080823603121561407157600080fd5b614079613a39565b8235815260208084013567ffffffffffffffff8082111561409957600080fd5b9085019036601f8301126140ac57600080fd5b81356140ba613b4d82613aab565b81815260069190911b830184019084810190368311156140d957600080fd5b938501935b82851015614102576140f03686613ccf565b825285820191506040850194506140de565b8086880152505050604086013592508083111561411e57600080fd5b505061412c36828601613fef565b604083015250613fe4606084016135ab565b600060e0828403121561415057600080fd5b614158613a39565b823581526141698460208501613ccf565b602082015261417b8460608501613ef3565b604082015260c083013561418e81613589565b60608201529392505050565b600060208083850312156141ad57600080fd5b825167ffffffffffffffff808211156141c557600080fd5b90840190608082870312156141d957600080fd5b6141e1613a39565b82518152838301516141f281613589565b81850152604083015161420481613acf565b604082015260608301518281111561421b57600080fd5b80840193505086601f84011261423057600080fd5b82519150614240613b4d83613ae8565b828152878584860101111561425457600080fd5b61426383868301878701613501565b60608201529695505050505050565b601f8211156107d757600081815260208120601f850160051c810160208610156142995750805b601f850160051c820191505b818110156142b8578281556001016142a5565b505050505050565b815167ffffffffffffffff8111156142da576142da61393b565b6142ee816142e884546138ee565b84614272565b602080601f831160018114614341576000841561430b5750858301515b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600386901b1c1916600185901b1785556142b8565b6000858152602081207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08616915b8281101561438e5788860151825594840194600190910190840161436f565b50858210156143ca57878501517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff600388901b60f8161c191681555b5050505050600190811b01905550565b89815260007fffffffffffffffffffffffffffffffffffffffff000000000000000000000000808b60601b166020840152808a60601b166034840152507fffffffffffffffff000000000000000000000000000000000000000000000000808960c01b166048840152808860c01b1660508401525085151560f81b60588301528460598301528351614473816079850160208801613501565b80830190507fffffffff000000000000000000000000000000000000000000000000000000008460e01b166079820152607d81019150509a9950505050505050505050565b6000602082840312156144ca57600080fd5b815161358281613acf565b6000604082016040835280855180835260608501915060608160051b8601019250602080880160005b8381101561454a577fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa0888703018552614538868351613711565b955093820193908201906001016144fe565b505085840381870152505050614560818561364d565b95945050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea164736f6c6343000813000a";class o extends r.ContractFactory{constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>1?super(...t):super(a,i,t[0])}getDeployTransaction(e,t){return super.getDeployTransaction(e,t||{})}deploy(e,t){return super.deploy(e,t||{})}connect(e){return super.connect(e)}static bytecode=i;static abi=a;static createInterface(){return new r.Interface(a)}static connect(e,t){return new r.Contract(e,a,t)}}t.EAS__factory=o},72942:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EAS__factory=void 0;var r=n(75634);Object.defineProperty(t,"EAS__factory",{enumerable:!0,get:function(){return r.EAS__factory}})},47073:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contracts=void 0;const r=n(68932);t.contracts=r.__importStar(n(72942))},13632:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EAS__factory=t.factories=void 0;const r=n(68932);t.factories=r.__importStar(n(47073));var a=n(75634);Object.defineProperty(t,"EAS__factory",{enumerable:!0,get:function(){return a.EAS__factory}})},48857:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.legacyVersion=void 0;const r=n(71321),a=[{inputs:[],name:"VERSION",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}];t.legacyVersion=async e=>{var t;const n=null===(t=e.runner)||void 0===t?void 0:t.provider;if(!n)throw new Error("provider wasn't set");const i=new r.BaseContract(await e.getAddress(),a,n);try{return await i.getFunction("VERSION").staticCall()}catch{return}}},86806:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DelegatedProxy=t.DelegatedProxyAttestationVersion=void 0;const r=n(68932),a=r.__importDefault(n(24242)),i=r.__importDefault(n(80018)),o=n(34906);var s;!function(e){e[e.Legacy=0]="Legacy",e[e.Version1=1]="Version1",e[e.Version2=2]="Version2"}(s||(t.DelegatedProxyAttestationVersion=s={}));const f={[s.Legacy]:{typedSignature:"Attest(bytes32 schema,address recipient,uint64 expirationTime,bool revocable,bytes32 refUID,bytes data,uint64 deadline)",primaryType:"Attest",types:{Attest:[{name:"schema",type:"bytes32"},{name:"recipient",type:"address"},{name:"expirationTime",type:"uint64"},{name:"revocable",type:"bool"},{name:"refUID",type:"bytes32"},{name:"data",type:"bytes"},{name:"deadline",type:"uint64"}]}},[s.Version1]:{typedSignature:"Attest(bytes32 schema,address recipient,uint64 expirationTime,bool revocable,bytes32 refUID,bytes data,uint256 value,uint64 deadline)",primaryType:"Attest",types:{Attest:[{name:"schema",type:"bytes32"},{name:"recipient",type:"address"},{name:"expirationTime",type:"uint64"},{name:"revocable",type:"bool"},{name:"refUID",type:"bytes32"},{name:"data",type:"bytes"},{name:"value",type:"uint256"},{name:"deadline",type:"uint64"}]}},[s.Version2]:{typedSignature:"Attest(address attester,bytes32 schema,address recipient,uint64 expirationTime,bool revocable,bytes32 refUID,bytes data,uint256 value,uint64 deadline)",primaryType:"Attest",types:{Attest:[{name:"attester",type:"address"},{name:"schema",type:"bytes32"},{name:"recipient",type:"address"},{name:"expirationTime",type:"uint64"},{name:"revocable",type:"bool"},{name:"refUID",type:"bytes32"},{name:"data",type:"bytes"},{name:"value",type:"uint256"},{name:"deadline",type:"uint64"}]}}},c={[s.Legacy]:{typedSignature:"Revoke(bytes32 schema,bytes32 uid,uint64 deadline)",primaryType:"Revoke",types:{Revoke:[{name:"schema",type:"bytes32"},{name:"uid",type:"bytes32"},{name:"deadline",type:"uint64"}]}},[s.Version1]:{typedSignature:"Revoke(bytes32 schema,bytes32 uid,uint256 value,uint64 deadline)",primaryType:"Revoke",types:{Revoke:[{name:"schema",type:"bytes32"},{name:"uid",type:"bytes32"},{name:"value",type:"uint256"},{name:"deadline",type:"uint64"}]}},[s.Version2]:{typedSignature:"Revoke(address revoker,bytes32 schema,bytes32 uid,uint256 value,uint64 deadline)",primaryType:"Revoke",types:{Revoke:[{name:"revoker",type:"address"},{name:"schema",type:"bytes32"},{name:"uid",type:"bytes32"},{name:"value",type:"uint256"},{name:"deadline",type:"uint64"}]}}};class l extends o.TypedDataHandler{version;attestType;revokeType;constructor(e){super(e),i.default.lt(e.version,"1.2.0")?this.version=s.Legacy:i.default.lt(e.version,"1.3.0")?this.version=s.Version1:this.version=s.Version2,this.attestType=f[this.version],this.revokeType=c[this.version]}async signDelegatedProxyAttestation(e,t){let n={attester:await t.getAddress(),...e};return this.version===s.Legacy&&(n=(0,a.default)(e,["value"])),this.signTypedDataRequest(n,{domain:this.getDomainTypedData(),primaryType:this.attestType.primaryType,message:n,types:this.attestType.types},t)}verifyDelegatedProxyAttestationSignature(e,t){return this.verifyTypedDataRequestSignature(e,{...t,message:{attester:e,...t.message}},{primaryType:this.attestType.primaryType,types:this.attestType.types})}async signDelegatedProxyRevocation(e,t){let n={revoker:await t.getAddress(),...e};return this.version===s.Legacy&&(n=(0,a.default)(e,["value"])),this.signTypedDataRequest(n,{domain:this.getDomainTypedData(),primaryType:this.revokeType.primaryType,message:n,types:this.revokeType.types},t)}verifyDelegatedProxyRevocationSignature(e,t){return this.verifyTypedDataRequestSignature(e,{...t,message:{revoker:e,...t.message}},{primaryType:this.revokeType.primaryType,types:this.revokeType.types})}}t.DelegatedProxy=l},97148:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Delegated=void 0;const r=n(68932),a=r.__importDefault(n(24242)),i=r.__importDefault(n(80018)),o=n(34906),s=n(61117);var f;!function(e){e[e.Legacy=0]="Legacy",e[e.Version1=1]="Version1",e[e.Version2=2]="Version2"}(f||(f={}));const c={[f.Legacy]:{typedSignature:"Attest(bytes32 schema,address recipient,uint64 expirationTime,bool revocable,bytes32 refUID,bytes data,uint256 nonce)",primaryType:"Attest",types:{Attest:[{name:"schema",type:"bytes32"},{name:"recipient",type:"address"},{name:"expirationTime",type:"uint64"},{name:"revocable",type:"bool"},{name:"refUID",type:"bytes32"},{name:"data",type:"bytes"},{name:"nonce",type:"uint256"}]}},[f.Version1]:{typedSignature:"Attest(bytes32 schema,address recipient,uint64 expirationTime,bool revocable,bytes32 refUID,bytes data,uint256 value,uint256 nonce,uint64 deadline)",primaryType:"Attest",types:{Attest:[{name:"schema",type:"bytes32"},{name:"recipient",type:"address"},{name:"expirationTime",type:"uint64"},{name:"revocable",type:"bool"},{name:"refUID",type:"bytes32"},{name:"data",type:"bytes"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint64"}]}},[f.Version2]:{typedSignature:"Attest(address attester,bytes32 schema,address recipient,uint64 expirationTime,bool revocable,bytes32 refUID,bytes data,uint256 value,uint256 nonce,uint64 deadline)",primaryType:"Attest",types:{Attest:[{name:"attester",type:"address"},{name:"schema",type:"bytes32"},{name:"recipient",type:"address"},{name:"expirationTime",type:"uint64"},{name:"revocable",type:"bool"},{name:"refUID",type:"bytes32"},{name:"data",type:"bytes"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint64"}]}}},l={[f.Legacy]:{typedSignature:"Revoke(bytes32 schema,bytes32 uid,uint256 nonce)",primaryType:"Revoke",types:{Revoke:[{name:"schema",type:"bytes32"},{name:"uid",type:"bytes32"},{name:"nonce",type:"uint256"}]}},[f.Version1]:{typedSignature:"Revoke(bytes32 schema,bytes32 uid,uint256 value,uint256 nonce,uint64 deadline)",primaryType:"Revoke",types:{Revoke:[{name:"schema",type:"bytes32"},{name:"uid",type:"bytes32"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint64"}]}},[f.Version2]:{typedSignature:"Revoke(address revoker,bytes32 schema,bytes32 uid,uint256 value,uint256 nonce,uint64 deadline)",primaryType:"Revoke",types:{Revoke:[{name:"revoker",type:"address"},{name:"schema",type:"bytes32"},{name:"uid",type:"bytes32"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint64"}]}}};class u extends o.TypedDataHandler{version;attestType;revokeType;constructor(e){let{version:t}=e;if(!t){const{domainSeparator:n}=e;if(!n)throw new Error("Neither EIP712 version or domain separator were provided");for(const r of s.EIP712_VERSIONS)if(n===o.TypedDataHandler.getDomainSeparator({address:e.address,name:s.EIP712_NAME,version:r,chainId:e.chainId})){t=r;break}if(!t)throw new Error(`Unable to find version for domain separator: ${n}`)}super({...e,version:t,name:s.EIP712_NAME}),i.default.lt(t,"1.2.0")?this.version=f.Legacy:i.default.lt(t,"1.3.0")?this.version=f.Version1:this.version=f.Version2,this.attestType=c[this.version],this.revokeType=l[this.version]}async signDelegatedAttestation(e,t){let n={attester:await t.getAddress(),...e};if(this.version===f.Legacy)n=(0,a.default)(e,["value","deadline"]);return this.signTypedDataRequest(n,{domain:this.getDomainTypedData(),primaryType:this.attestType.primaryType,message:n,types:this.attestType.types},t)}verifyDelegatedAttestationSignature(e,t){return this.verifyTypedDataRequestSignature(e,{...t,message:{attester:e,...t.message}},{primaryType:this.attestType.primaryType,types:this.attestType.types})}async signDelegatedRevocation(e,t){let n={revoker:await t.getAddress(),...e};if(this.version===f.Legacy)n=(0,a.default)(e,["value","deadline"]);return this.signTypedDataRequest(n,{domain:this.getDomainTypedData(),primaryType:this.revokeType.primaryType,message:n,types:this.revokeType.types},t)}verifyDelegatedRevocationSignature(e,t){return this.verifyTypedDataRequestSignature(e,{...t,message:{revoker:e,...t.message}},{primaryType:this.revokeType.primaryType,types:this.revokeType.types})}}t.Delegated=u},60680:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(68932);r.__exportStar(n(97148),t),r.__exportStar(n(86806),t),r.__exportStar(n(72765),t),r.__exportStar(n(39514),t)},39514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isSignedOffchainAttestationV1=t.uncompactOffchainAttestationPackage=t.compactOffchainAttestationPackage=t.decodeBase64ZippedBase64=t.zipAndEncodeToBase64=t.createOffchainURL=void 0;const r=n(68932),a=n(71321),i=r.__importStar(n(33640)),o=r.__importDefault(n(59043)),s=n(72765);t.createOffchainURL=e=>{const n=(0,t.zipAndEncodeToBase64)(e);return`/offchain/url/#attestation=${encodeURIComponent(n)}`};t.zipAndEncodeToBase64=e=>{const n=(0,t.compactOffchainAttestationPackage)(e),r=JSON.stringify(n,((e,t)=>"bigint"===typeof t?t.toString():t)),a=o.default.deflate(r,{level:9});return i.fromUint8Array(a)};t.decodeBase64ZippedBase64=e=>{const n=i.toUint8Array(e),r=o.default.inflate(n,{to:"string"}),a=JSON.parse(r);return(0,t.uncompactOffchainAttestationPackage)(a)};t.compactOffchainAttestationPackage=e=>{const{signer:n}=e;let{sig:r}=e;return(0,t.isSignedOffchainAttestationV1)(r)&&(r=function(e){const{v:t,r:n,s:r,...a}=e;return{...a,version:s.OffchainAttestationVersion.Version1,signature:{v:t,r:n,s:r}}}(r)),[r.domain.version,r.domain.chainId,r.domain.verifyingContract,r.signature.r,r.signature.s,r.signature.v,n,r.uid,r.message.schema,r.message.recipient===a.ZeroAddress?"0":r.message.recipient,Number(r.message.time),Number(r.message.expirationTime),r.message.refUID===a.ZeroHash?"0":r.message.refUID,r.message.revocable,r.message.data,0,r.message.version,r.message.salt]};t.uncompactOffchainAttestationPackage=e=>{const t=e[16]?e[16]:s.OffchainAttestationVersion.Legacy,n={Attest:[{name:"schema",type:"bytes32"},{name:"recipient",type:"address"},{name:"time",type:"uint64"},{name:"expirationTime",type:"uint64"},{name:"revocable",type:"bool"},{name:"refUID",type:"bytes32"},{name:"data",type:"bytes"}]};switch(t){case s.OffchainAttestationVersion.Legacy:break;case s.OffchainAttestationVersion.Version1:n.Attest=[{name:"version",type:"uint16"},...n.Attest];break;case s.OffchainAttestationVersion.Version2:n.Attest=[{name:"version",type:"uint16"},...n.Attest,{name:"salt",type:"bytes32"}];break;default:throw new Error(`Unsupported version: ${t}`)}return{sig:{version:t,domain:{name:"EAS Attestation",version:e[0],chainId:BigInt(e[1]),verifyingContract:e[2]},primaryType:t===s.OffchainAttestationVersion.Legacy?"Attestation":"Attest",types:n,signature:{r:e[3],s:e[4],v:e[5]},uid:e[7],message:{version:t,schema:e[8],recipient:"0"===e[9]?a.ZeroAddress:e[9],time:BigInt(e[10]),expirationTime:BigInt(e[11]),refUID:"0"===e[12]?a.ZeroHash:e[12],revocable:e[13],data:e[14],salt:e[17]}},signer:e[6]}};t.isSignedOffchainAttestationV1=e=>"v"in e&&"r"in e&&"s"in e},72765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Offchain=t.SALT_SIZE=t.OFFCHAIN_ATTESTATION_TYPES=t.OffchainAttestationVersion=void 0;const r=n(71321),a=n(79123),i=n(34906),o=n(61117);var s;!function(e){e[e.Legacy=0]="Legacy",e[e.Version1=1]="Version1",e[e.Version2=2]="Version2"}(s||(t.OffchainAttestationVersion=s={})),t.OFFCHAIN_ATTESTATION_TYPES={[s.Legacy]:[{domain:"EAS Attestation",primaryType:"Attestation",types:{Attestation:[{name:"schema",type:"bytes32"},{name:"recipient",type:"address"},{name:"time",type:"uint64"},{name:"expirationTime",type:"uint64"},{name:"revocable",type:"bool"},{name:"refUID",type:"bytes32"},{name:"data",type:"bytes"}]}},{domain:"EAS Attestation",primaryType:"Attestation",types:{Attest:[{name:"schema",type:"bytes32"},{name:"recipient",type:"address"},{name:"time",type:"uint64"},{name:"expirationTime",type:"uint64"},{name:"revocable",type:"bool"},{name:"refUID",type:"bytes32"},{name:"data",type:"bytes"}]}},{domain:"EAS Attestation",primaryType:"Attest",types:{Attest:[{name:"schema",type:"bytes32"},{name:"recipient",type:"address"},{name:"time",type:"uint64"},{name:"expirationTime",type:"uint64"},{name:"revocable",type:"bool"},{name:"refUID",type:"bytes32"},{name:"data",type:"bytes"}]}}],[s.Version1]:[{domain:"EAS Attestation",primaryType:"Attest",types:{Attest:[{name:"version",type:"uint16"},{name:"schema",type:"bytes32"},{name:"recipient",type:"address"},{name:"time",type:"uint64"},{name:"expirationTime",type:"uint64"},{name:"revocable",type:"bool"},{name:"refUID",type:"bytes32"},{name:"data",type:"bytes"}]}}],[s.Version2]:[{domain:"EAS Attestation",primaryType:"Attest",types:{Attest:[{name:"version",type:"uint16"},{name:"schema",type:"bytes32"},{name:"recipient",type:"address"},{name:"time",type:"uint64"},{name:"expirationTime",type:"uint64"},{name:"revocable",type:"bool"},{name:"refUID",type:"bytes32"},{name:"data",type:"bytes"},{name:"salt",type:"bytes32"}]}}]};const f={verifyOnchain:!1};t.SALT_SIZE=32;class c extends i.TypedDataHandler{version;signingType;verificationTypes;eas;constructor(e,n,r){if(n>s.Version2)throw new Error("Unsupported version");super({...e,name:o.EIP712_NAME}),this.version=n,this.verificationTypes=t.OFFCHAIN_ATTESTATION_TYPES[this.version],this.signingType=this.verificationTypes[0],this.eas=r}getDomainSeparator(){return(0,r.keccak256)(r.AbiCoder.defaultAbiCoder().encode(["bytes32","bytes32","uint256","address"],[(0,r.keccak256)((0,r.toUtf8Bytes)(this.signingType.domain)),(0,r.keccak256)((0,r.toUtf8Bytes)(this.config.version)),this.config.chainId,this.config.address]))}getDomainTypedData(){return{name:this.signingType.domain,version:this.config.version,chainId:this.config.chainId,verifyingContract:this.config.address}}async signOffchainAttestation(e,n,i){const o={version:this.version,...e};this.version>=s.Version2&&!o.salt&&(o.salt=(0,r.hexlify)((0,r.randomBytes)(t.SALT_SIZE)));const c=await this.signTypedDataRequest(o,{domain:this.getDomainTypedData(),primaryType:this.signingType.primaryType,message:o,types:this.signingType.types},n),{verifyOnchain:l}={...f,...i};if(l)try{const{schema:t,recipient:r,expirationTime:i,revocable:o,data:s}=e;await this.eas.contract.attest.staticCall({schema:t,data:{recipient:r,expirationTime:i,revocable:o,refUID:a.ZERO_BYTES32,data:s,value:0}},{from:n})}catch(u){throw new Error(`Unable to verify offchain attestation with: ${u}`)}return{version:this.version,uid:this.getOffchainUID(o),...c}}verifyOffchainAttestationSignature(e,t){if(t.uid!==c.getOffchainUID(this.version,t))return!1;const n=this.verificationTypes.length;return this.verificationTypes.some(((r,a)=>{try{return this.verifyTypedDataRequestSignature(e,t,{primaryType:r.primaryType,types:r.types},!1)}catch(o){if(a!==n-1&&(o instanceof i.InvalidPrimaryType||o instanceof i.InvalidTypes))return!1;throw o}}))}getOffchainUID(e){return(0,a.getOffchainUID)(this.version,e.schema,e.recipient,e.time,e.expirationTime,e.revocable,e.refUID,e.data,e.salt)}static getOffchainUID(e,t){return(0,a.getOffchainUID)(e,t.message.schema,t.message.recipient,t.message.time,t.message.expirationTime,t.message.revocable,t.message.refUID,t.message.data,t.message.salt)}}t.Offchain=c},34906:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TypedDataHandler=t.InvalidAddress=t.InvalidTypes=t.InvalidPrimaryType=t.InvalidDomain=t.EIP712_DOMAIN=void 0;const r=n(68932),a=n(71321),i=r.__importDefault(n(18111)),o=n(79123);t.EIP712_DOMAIN="EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)";class s extends Error{}t.InvalidDomain=s;class f extends Error{}t.InvalidPrimaryType=f;class c extends Error{}t.InvalidTypes=c;class l extends Error{}t.InvalidAddress=l;class u{config;constructor(e){this.config=e}getDomainSeparator(){return u.getDomainSeparator(this.config)}static getDomainSeparator(e){return(0,a.keccak256)(a.AbiCoder.defaultAbiCoder().encode(["bytes32","bytes32","bytes32","uint256","address"],[(0,a.keccak256)((0,a.toUtf8Bytes)(t.EIP712_DOMAIN)),(0,a.keccak256)((0,a.toUtf8Bytes)(e.name)),(0,a.keccak256)((0,a.toUtf8Bytes)(e.version)),e.chainId,e.address]))}getDomainTypedData(){return{name:this.config.name,version:this.config.version,chainId:this.config.chainId,verifyingContract:this.config.address}}async signTypedDataRequest(e,t,n){const r=await n.signTypedData(t.domain,t.types,e),i=a.Signature.from(r);return{...t,signature:{v:i.v,r:i.r,s:i.s}}}verifyTypedDataRequestSignature(e,t,n){let r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];const u={...t.domain,chainId:BigInt(t.domain.chainId)};let d=this.getDomainTypedData();if(r||(d={...d,version:u.version}),!(0,i.default)(u,d))throw new s;if(t.primaryType!==n.primaryType)throw new f;if(!(0,i.default)(t.types,n.types))throw new c;if(e===o.ZERO_ADDRESS)throw new l;const{signature:p}=t,h=a.Signature.from({v:p.v,r:(0,a.hexlify)(p.r),s:(0,a.hexlify)(p.s)}).serialized,b=(0,a.verifyTypedData)(u,t.types,t.message,h);return(0,a.getAddress)(e)===(0,a.getAddress)(b)}}t.TypedDataHandler=u},61117:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EIP712_VERSIONS=t.EIP712_NAME=void 0,t.EIP712_NAME="EAS",t.EIP712_VERSIONS=["0.26","1.0.0","1.0.1","1.0.2","1.1.0","1.2.0","1.3.0","1.4.0"]},69769:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NO_EXPIRATION=void 0,t.NO_EXPIRATION=0n},63579:(e,t,n)=>{"use strict";var r=n(19778).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaEncoder=void 0;const a=n(71321),i=n(18644),o=n(79123);class s{schema;constructor(e){this.schema=[];const t=e.replace(/ipfsHash/g,"bytes32"),n=a.FunctionFragment.from(`func(${t})`);a.AbiCoder.defaultAbiCoder().getDefaultValue(n.inputs);for(const r of n.inputs){const{name:e,arrayChildren:t}=r;let{type:n}=r,a=e?`${n} ${e}`:n;const i=e?` ${e}`:"";let o=n;const f=t,c=r.components??(null===t||void 0===t?void 0:t.components)??[],l=`(${c.map((e=>e.type)).join(",")})${f?"[]":""}`,u=`(${c.map((e=>e.name?`${e.type} ${e.name}`:e.type)).join(",")})${f?"[]":""}`;n.startsWith("tuple")?(n=l,a=`${u}${i}`):"tuple[]"===n?(n=`${l}[]`,a=`${u}[]${i}`):n.includes("[]")&&(o=o.replace("[]",""));const d=s.getDefaultValueForTypeName(o);this.schema.push({name:e,type:n,signature:a,value:n.includes("[]")?[]:d})}}encodeData(e){if(e.length!==this.schema.length)throw new Error("Invalid number or values");const t=[];for(const[n,r]of this.schema.entries()){const{type:i,name:o,value:f}=e[n],c=i.replace(/\s/g,"");if(c!==r.type&&c!==r.signature&&("ipfsHash"!==c||"bytes32"!==r.type))throw new Error(`Incompatible param type: ${c}`);if(o!==r.name)throw new Error(`Incompatible param name: ${o}`);t.push("bytes32"===r.type&&"ipfsHash"===r.name?s.decodeIpfsValue(f):"bytes32"!==r.type||"string"!==typeof f||(0,a.isBytesLike)(f)?f:(0,a.encodeBytes32String)(f))}return a.AbiCoder.defaultAbiCoder().encode(this.signatures(),t)}decodeData(e){const t=a.AbiCoder.defaultAbiCoder().decode(this.signatures(),e).toArray();return this.schema.map(((e,n)=>{var r;const i=a.FunctionFragment.from(`func(${e.signature})`);if(1!==i.inputs.length)throw new Error(`Unexpected inputs: ${i.inputs}`);let o=t[n];const s=i.inputs[0],f=s.components??(null===(r=s.arrayChildren)||void 0===r?void 0:r.components)??[];if(o.length>0&&"string"!==typeof o&&(null===f||void 0===f?void 0:f.length)>0)if(Array.isArray(o[0])){const t=[];for(const e of o){const n=[],r=e.toArray().filter((e=>"object"!==typeof e));for(const[e,t]of r.entries()){const r=f[e];n.push({name:r.name,type:r.type,value:t})}t.push(n)}o={name:e.name,type:e.type,value:t}}else{const t=[],n=o.filter((e=>"object"!==typeof e));for(const[e,r]of n.entries()){const n=f[e];t.push({name:n.name,type:n.type,value:r})}o={name:e.name,type:e.type,value:t}}else o={name:e.name,type:e.type,value:o};return{name:e.name,type:e.type,signature:e.signature,value:o}}))}isEncodedDataValid(e){try{return this.decodeData(e),!0}catch(t){return!1}}static isCID(e){try{return i.CID.parse(e),!0}catch{return!1}}static encodeQmHash(e){const t=i.CID.parse(e);return a.AbiCoder.defaultAbiCoder().encode(["bytes32"],[t.multihash.digest])}static decodeQmHash(e){const t=Uint8Array.from(r.from(e.slice(2),"hex")),n={digest:t,code:18,size:32,bytes:Uint8Array.from([18,32,...t])};return i.CID.createV0(n).toString()}static getDefaultValueForTypeName(e){return"bool"!==e&&(e.includes("uint")?"0":"address"===e?o.ZERO_ADDRESS:"")}static decodeIpfsValue(e){if((0,a.isBytesLike)(e))return s.encodeBytes32Value(e);try{const t=i.CID.parse(e);return a.AbiCoder.defaultAbiCoder().encode(["bytes32"],[t.multihash.digest])}catch{return s.encodeBytes32Value(e)}}static encodeBytes32Value(e){try{return a.AbiCoder.defaultAbiCoder().encode(["bytes32"],[e]),e}catch(t){return(0,a.encodeBytes32String)(e)}}signatures(){return this.schema.map((e=>e.signature))}}t.SchemaEncoder=s},91908:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SchemaRegistry=void 0;const r=n(49701),a=n(48857),i=n(45178),o=n(79123);class s extends i.Base{constructor(e,t){const{signer:n}=t||{};super(new r.SchemaRegistry__factory,e,n)}async getVersion(){return await(0,a.legacyVersion)(this.contract)??this.contract.version()}async register(e,t){let{schema:n,resolverAddress:r=o.ZERO_ADDRESS,revocable:a=!0}=e;const s=await this.contract.register(n,r,a,t??{});return new i.Transaction(s,(async e=>(0,o.getSchemaUID)(n,r,a)))}async getSchema(e){let{uid:t}=e;const n=await this.contract.getSchema(t);if(n.uid===o.ZERO_BYTES32)throw new Error("Schema not found");return n}}t.SchemaRegistry=s},45178:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Base=t.Transaction=void 0;t.Transaction=class{tx;waitCallback;constructor(e,t){this.tx=e,this.waitCallback=t}async wait(e){const t=await this.tx.wait(e);if(!t)throw new Error(`Unable to confirm: ${this.tx}`);return this.waitCallback(t)}};t.Base=class{contract;signer;constructor(e,t,n){this.contract=e.attach(t),n&&(this.connect(n),this.signer=n)}connect(e){return this.contract=this.contract.connect(e),this.signer=e,this}async getChainId(){var e;const t=null===(e=this.contract.runner)||void 0===e?void 0:e.provider;if(!t)throw new Error("Unable to get the chain ID: provider wasn't set");return(await t.getNetwork()).chainId}}},79123:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getTimestampFromOffchainRevocationReceipt=t.getTimestampFromTimestampReceipt=t.getUIDsFromAttestReceipt=t.getUIDsFromMultiAttestTx=t.getUIDFromAttestTx=t.getOffchainUID=t.getUID=t.getSchemaUID=t.ZERO_BYTES32=t.ZERO_BYTES=t.ZERO_ADDRESS=void 0;const r=n(49701),a=n(71321),i=n(60680);var o;t.ZERO_ADDRESS=a.ZeroAddress,t.ZERO_BYTES="0x",t.ZERO_BYTES32="0x0000000000000000000000000000000000000000000000000000000000000000",function(e){e.Attested="Attested",e.Timestamped="Timestamped",e.RevokedOffchain="RevokedOffchain"}(o||(o={}));const s={[o.Attested]:(0,a.keccak256)((0,a.toUtf8Bytes)("Attested(address,address,bytes32,bytes32)")),[o.Timestamped]:(0,a.keccak256)((0,a.toUtf8Bytes)("Timestamped(bytes32,uint64)")),[o.RevokedOffchain]:(0,a.keccak256)((0,a.toUtf8Bytes)("RevokedOffchain(address,bytes32,uint64)"))};t.getSchemaUID=(e,t,n)=>(0,a.solidityPackedKeccak256)(["string","address","bool"],[e,t,n]);t.getUID=(e,t,n,r,i,o,s,f,c)=>(0,a.solidityPackedKeccak256)(["bytes","address","address","uint64","uint64","bool","bytes32","bytes","uint32"],[(0,a.hexlify)((0,a.toUtf8Bytes)(e)),t,n,r,i,o,s,f,c]);t.getOffchainUID=(e,n,r,o,s,f,c,l,u)=>{switch(e){case i.OffchainAttestationVersion.Legacy:return(0,a.solidityPackedKeccak256)(["bytes","address","address","uint64","uint64","bool","bytes32","bytes","uint32"],[(0,a.hexlify)((0,a.toUtf8Bytes)(n)),r,t.ZERO_ADDRESS,o,s,f,c,l,0]);case i.OffchainAttestationVersion.Version1:return(0,a.solidityPackedKeccak256)(["uint16","bytes","address","address","uint64","uint64","bool","bytes32","bytes","uint32"],[e,(0,a.hexlify)((0,a.toUtf8Bytes)(n)),r,t.ZERO_ADDRESS,o,s,f,c,l,0]);case i.OffchainAttestationVersion.Version2:return(0,a.solidityPackedKeccak256)(["uint16","bytes","address","address","uint64","uint64","bool","bytes32","bytes","bytes32","uint32"],[e,(0,a.hexlify)((0,a.toUtf8Bytes)(n)),r,t.ZERO_ADDRESS,o,s,f,c,l,u,0]);default:throw new Error("Unsupported version")}};const f=(e,t,n)=>{const i=new a.Interface(r.EAS__factory.abi),o=[];for(const r of e.logs.filter((e=>e.topics[0]===s[t]))||[])o.push({...r,log:t,fragment:{name:t},args:i.decodeEventLog(t,r.data,r.topics)});if(!o)return[];const f=o.filter((e=>{var n;return(null===(n=e.fragment)||void 0===n?void 0:n.name)===t}));if(0===f.length)throw new Error(`Unable to process ${t} events`);return f.map((e=>i.decodeEventLog(t,e.data,e.topics)[n]))};t.getUIDFromAttestTx=async e=>(await(0,t.getUIDsFromMultiAttestTx)(e))[0];t.getUIDsFromMultiAttestTx=async e=>{const n=await e,r=await n.wait();if(!r)throw new Error(`Unable to confirm: ${n}`);return(0,t.getUIDsFromAttestReceipt)(r)};t.getUIDsFromAttestReceipt=e=>f(e,o.Attested,"uid");t.getTimestampFromTimestampReceipt=e=>f(e,o.Timestamped,"timestamp").map((e=>BigInt(e)));t.getTimestampFromOffchainRevocationReceipt=e=>f(e,o.RevokedOffchain,"timestamp").map((e=>BigInt(e)))},44646:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="6.13.0"},7527:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbiCoder=void 0;const r=n(79551),a=n(11900),i=n(97005),o=n(28121),s=n(9333),f=n(46554),c=n(78632),l=n(46994),u=n(75414),d=n(26447),p=n(96381),h=n(93514),b=n(35460),y=n(79551),m=new Map;m.set(0,"GENERIC_PANIC"),m.set(1,"ASSERT_FALSE"),m.set(17,"OVERFLOW"),m.set(18,"DIVIDE_BY_ZERO"),m.set(33,"ENUM_RANGE_ERROR"),m.set(34,"BAD_STORAGE_DATA"),m.set(49,"STACK_UNDERFLOW"),m.set(50,"ARRAY_RANGE_ERROR"),m.set(65,"OUT_OF_MEMORY"),m.set(81,"UNINITIALIZED_FUNCTION_CALL");const g=new RegExp(/^bytes([0-9]*)$/),v=new RegExp(/^(u?int)([0-9]*)$/);let w=null,E=1024;class A{#e(e){if(e.isArray())return new o.ArrayCoder(this.#e(e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new p.TupleCoder(e.components.map((e=>this.#e(e))),e.name);switch(e.baseType){case"address":return new i.AddressCoder(e.name);case"bool":return new s.BooleanCoder(e.name);case"string":return new d.StringCoder(e.name);case"bytes":return new f.BytesCoder(e.name);case"":return new l.NullCoder(e.name)}let t=e.type.match(v);if(t){let n=parseInt(t[2]||"256");return(0,r.assertArgument)(0!==n&&n<=256&&n%8===0,"invalid "+t[1]+" bit length","param",e),new u.NumberCoder(n/8,"int"===t[1],e.name)}if(t=e.type.match(g),t){let n=parseInt(t[1]);return(0,r.assertArgument)(0!==n&&n<=32,"invalid bytes length","param",e),new c.FixedBytesCoder(n,e.name)}(0,r.assertArgument)(!1,"invalid type","type",e.type)}getDefaultValue(e){const t=e.map((e=>this.#e(h.ParamType.from(e))));return new p.TupleCoder(t,"_").defaultValue()}encode(e,t){(0,r.assertArgumentCount)(t.length,e.length,"types/values length mismatch");const n=e.map((e=>this.#e(h.ParamType.from(e)))),i=new p.TupleCoder(n,"_"),o=new a.Writer;return i.encode(o,t),o.data}decode(e,t,n){const r=e.map((e=>this.#e(h.ParamType.from(e))));return new p.TupleCoder(r,"_").decode(new a.Reader(t,n,E))}static _setDefaultMaxInflation(e){(0,r.assertArgument)("number"===typeof e&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),E=e}static defaultAbiCoder(){return null==w&&(w=new A),w}static getBuiltinCallException(e,t,n){return function(e,t,n,r){let a="missing revert data",i=null,o=null;if(n){a="execution reverted";const e=(0,y.getBytes)(n);if(n=(0,y.hexlify)(n),0===e.length)a+=" (no data present; likely require(false) occurred",i="require(false)";else if(e.length%32!==4)a+=" (could not decode reason; invalid data length)";else if("0x08c379a0"===(0,y.hexlify)(e.slice(0,4)))try{i=r.decode(["string"],e.slice(4))[0],o={signature:"Error(string)",name:"Error",args:[i]},a+=`: ${JSON.stringify(i)}`}catch(f){a+=" (could not decode reason; invalid string data)"}else if("0x4e487b71"===(0,y.hexlify)(e.slice(0,4)))try{const t=Number(r.decode(["uint256"],e.slice(4))[0]);o={signature:"Panic(uint256)",name:"Panic",args:[t]},i=`Panic due to ${m.get(t)||"UNKNOWN"}(${t})`,a+=`: ${i}`}catch(f){a+=" (could not decode panic code)"}else a+=" (unknown custom error)"}const s={to:t.to?(0,b.getAddress)(t.to):null,data:t.data||"0x"};return t.from&&(s.from=(0,b.getAddress)(t.from)),(0,y.makeError)(a,"CALL_EXCEPTION",{action:e,data:n,reason:i,transaction:s,invocation:null,revert:o})}(e,t,n,A.defaultAbiCoder())}}t.AbiCoder=A},40950:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBytes32String=t.encodeBytes32String=void 0;const r=n(79551);t.encodeBytes32String=function(e){const t=(0,r.toUtf8Bytes)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,r.zeroPadBytes)(t,32)},t.decodeBytes32String=function(e){const t=(0,r.getBytes)(e,"bytes");if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");let n=31;for(;0===t[n-1];)n--;return(0,r.toUtf8String)(t.slice(0,n))}},11900:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Reader=t.Writer=t.Coder=t.checkResultErrors=t.Result=t.WordSize=void 0;const r=n(79551);t.WordSize=32;const a=new Uint8Array(t.WordSize),i=["then"],o={},s=new WeakMap;function f(e){return s.get(e)}function c(e,t){s.set(e,t)}function l(e,t){const n=new Error(`deferred error during ABI decoding triggered accessing ${e}`);throw n.error=t,n}function u(e,t,n){return e.indexOf(null)>=0?t.map(((e,t)=>e instanceof d?u(f(e),e,n):e)):e.reduce(((e,r,a)=>{let i=t.getValue(r);return r in e||(n&&i instanceof d&&(i=u(f(i),i,n)),e[r]=i),e}),{})}class d extends Array{#t;constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=t[0];let s=t[1],u=(t[2]||[]).slice(),d=!0;a!==o&&(s=t,u=[],d=!1),super(s.length),s.forEach(((e,t)=>{this[t]=e}));const p=u.reduce(((e,t)=>("string"===typeof t&&e.set(t,(e.get(t)||0)+1),e)),new Map);if(c(this,Object.freeze(s.map(((e,t)=>{const n=u[t];return null!=n&&1===p.get(n)?n:null})))),this.#t=[],null==this.#t&&this.#t,!d)return;Object.freeze(this);const h=new Proxy(this,{get:(e,t,n)=>{if("string"===typeof t){if(t.match(/^[0-9]+$/)){const n=(0,r.getNumber)(t,"%index");if(n<0||n>=this.length)throw new RangeError("out of result range");const a=e[n];return a instanceof Error&&l(`index ${n}`,a),a}if(i.indexOf(t)>=0)return Reflect.get(e,t,n);const a=e[t];if(a instanceof Function)return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return a.apply(this===n?e:this,r)};if(!(t in e))return e.getValue.apply(this===n?e:this,[t])}return Reflect.get(e,t,n)}});return c(h,f(this)),h}toArray(e){const t=[];return this.forEach(((n,r)=>{n instanceof Error&&l(`index ${r}`,n),e&&n instanceof d&&(n=n.toArray(e)),t.push(n)})),t}toObject(e){const t=f(this);return t.reduce(((n,a,i)=>((0,r.assert)(null!=a,`value at index ${i} unnamed`,"UNSUPPORTED_OPERATION",{operation:"toObject()"}),u(t,this,e))),{})}slice(e,t){null==e&&(e=0),e<0&&(e+=this.length)<0&&(e=0),null==t&&(t=this.length),t<0&&(t+=this.length)<0&&(t=0),t>this.length&&(t=this.length);const n=f(this),r=[],a=[];for(let i=e;i<t;i++)r.push(this[i]),a.push(n[i]);return new d(o,r,a)}filter(e,t){const n=f(this),r=[],a=[];for(let i=0;i<this.length;i++){const o=this[i];o instanceof Error&&l(`index ${i}`,o),e.call(t,o,i,this)&&(r.push(o),a.push(n[i]))}return new d(o,r,a)}map(e,t){const n=[];for(let r=0;r<this.length;r++){const a=this[r];a instanceof Error&&l(`index ${r}`,a),n.push(e.call(t,a,r,this))}return n}getValue(e){const t=f(this).indexOf(e);if(-1===t)return;const n=this[t];return n instanceof Error&&l(`property ${JSON.stringify(e)}`,n.error),n}static fromItems(e,t){return new d(o,e,t)}}function p(e){let n=(0,r.toBeArray)(e);return(0,r.assert)(n.length<=t.WordSize,"value out-of-bounds","BUFFER_OVERRUN",{buffer:n,length:t.WordSize,offset:n.length}),n.length!==t.WordSize&&(n=(0,r.getBytesCopy)((0,r.concat)([a.slice(n.length%t.WordSize),n]))),n}t.Result=d,t.checkResultErrors=function(e){const t=[],n=function(e,r){if(Array.isArray(r))for(let i in r){const o=e.slice();o.push(i);try{n(o,r[i])}catch(a){t.push({path:o,error:a})}}};return n([],e),t};t.Coder=class{name;type;localName;dynamic;constructor(e,t,n,a){(0,r.defineProperties)(this,{name:e,type:t,localName:n,dynamic:a},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(e,t){(0,r.assertArgument)(!1,e,this.localName,t)}};t.Writer=class{#n;#r;constructor(){this.#n=[],this.#r=0}get data(){return(0,r.concat)(this.#n)}get length(){return this.#r}#a(e){return this.#n.push(e),this.#r+=e.length,e.length}appendWriter(e){return this.#a((0,r.getBytesCopy)(e.data))}writeBytes(e){let n=(0,r.getBytesCopy)(e);const i=n.length%t.WordSize;return i&&(n=(0,r.getBytesCopy)((0,r.concat)([n,a.slice(i)]))),this.#a(n)}writeValue(e){return this.#a(p(e))}writeUpdatableValue(){const e=this.#n.length;return this.#n.push(a),this.#r+=t.WordSize,t=>{this.#n[e]=p(t)}}};class h{allowLoose;#n;#i;#o;#s;#f;constructor(e,t,n){(0,r.defineProperties)(this,{allowLoose:!!t}),this.#n=(0,r.getBytesCopy)(e),this.#o=0,this.#s=null,this.#f=null!=n?n:1024,this.#i=0}get data(){return(0,r.hexlify)(this.#n)}get dataLength(){return this.#n.length}get consumed(){return this.#i}get bytes(){return new Uint8Array(this.#n)}#c(e){if(this.#s)return this.#s.#c(e);this.#o+=e,(0,r.assert)(this.#f<1||this.#o<=this.#f*this.dataLength,`compressed ABI data exceeds inflation ratio of ${this.#f} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:(0,r.getBytesCopy)(this.#n),offset:this.#i,length:e,info:{bytesRead:this.#o,dataLength:this.dataLength}})}#l(e,n,a){let i=Math.ceil(n/t.WordSize)*t.WordSize;return this.#i+i>this.#n.length&&(this.allowLoose&&a&&this.#i+n<=this.#n.length?i=n:(0,r.assert)(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:(0,r.getBytesCopy)(this.#n),length:this.#n.length,offset:this.#i+i})),this.#n.slice(this.#i,this.#i+i)}subReader(e){const t=new h(this.#n.slice(this.#i+e),this.allowLoose,this.#f);return t.#s=this,t}readBytes(e,t){let n=this.#l(0,e,!!t);return this.#c(e),this.#i+=n.length,n.slice(0,e)}readValue(){return(0,r.toBigInt)(this.readBytes(t.WordSize))}readIndex(){return(0,r.toNumber)(this.readBytes(t.WordSize))}}t.Reader=h},97005:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddressCoder=void 0;const r=n(35460),a=n(15375),i=n(20371),o=n(11900);class s extends o.Coder{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let n=i.Typed.dereference(t,"string");try{n=(0,r.getAddress)(n)}catch(a){return this._throwError(a.message,t)}return e.writeValue(n)}decode(e){return(0,r.getAddress)((0,a.toBeHex)(e.readValue(),20))}}t.AddressCoder=s},9824:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousCoder=void 0;const r=n(11900);class a extends r.Coder{coder;constructor(e){super(e.name,e.type,"_",e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}t.AnonymousCoder=a},28121:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayCoder=t.unpack=t.pack=void 0;const r=n(79551),a=n(20371),i=n(11900),o=n(9824);function s(e,t,n){let a=[];if(Array.isArray(n))a=n;else if(n&&"object"===typeof n){let e={};a=t.map((t=>{const a=t.localName;return(0,r.assert)(a,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:n}),(0,r.assert)(!e[a],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:n}),e[a]=!0,n[a]}))}else(0,r.assertArgument)(!1,"invalid tuple value","tuple",n);(0,r.assertArgument)(t.length===a.length,"types/value length mismatch","tuple",n);let o=new i.Writer,s=new i.Writer,f=[];t.forEach(((e,t)=>{let n=a[t];if(e.dynamic){let t=s.length;e.encode(s,n);let r=o.writeUpdatableValue();f.push((e=>{r(e+t)}))}else e.encode(o,n)})),f.forEach((e=>{e(o.length)}));let c=e.appendWriter(o);return c+=e.appendWriter(s),c}function f(e,t){let n=[],a=[],o=e.subReader(0);return t.forEach((t=>{let i=null;if(t.dynamic){let n=e.readIndex(),a=o.subReader(n);try{i=t.decode(a)}catch(s){if((0,r.isError)(s,"BUFFER_OVERRUN"))throw s;i=s,i.baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(s){if((0,r.isError)(s,"BUFFER_OVERRUN"))throw s;i=s,i.baseType=t.name,i.name=t.localName,i.type=t.type}if(void 0==i)throw new Error("investigate");n.push(i),a.push(t.localName||null)})),i.Result.fromItems(n,a)}t.pack=s,t.unpack=f;class c extends i.Coder{coder;length;constructor(e,t,n){super("array",e.type+"["+(t>=0?t:"")+"]",n,-1===t||e.dynamic),(0,r.defineProperties)(this,{coder:e,length:t})}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let n=0;n<this.length;n++)t.push(e);return t}encode(e,t){const n=a.Typed.dereference(t,"array");Array.isArray(n)||this._throwError("expected array value",n);let i=this.length;-1===i&&(i=n.length,e.writeValue(n.length)),(0,r.assertArgumentCount)(n.length,i,"coder array"+(this.localName?" "+this.localName:""));let o=[];for(let r=0;r<n.length;r++)o.push(this.coder);return s(e,o,n)}decode(e){let t=this.length;-1===t&&(t=e.readIndex(),(0,r.assert)(t*i.WordSize<=e.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:e.bytes,offset:t*i.WordSize,length:e.dataLength}));let n=[];for(let r=0;r<t;r++)n.push(new o.AnonymousCoder(this.coder));return f(e,n)}}t.ArrayCoder=c},9333:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanCoder=void 0;const r=n(20371),a=n(11900);class i extends a.Coder{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){const n=r.Typed.dereference(t,"bool");return e.writeValue(n?1:0)}decode(e){return!!e.readValue()}}t.BooleanCoder=i},46554:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BytesCoder=t.DynamicBytesCoder=void 0;const r=n(79551),a=n(11900);class i extends a.Coder{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=(0,r.getBytesCopy)(t);let n=e.writeValue(t.length);return n+=e.writeBytes(t),n}decode(e){return e.readBytes(e.readIndex(),!0)}}t.DynamicBytesCoder=i;t.BytesCoder=class extends i{constructor(e){super("bytes",e)}decode(e){return(0,r.hexlify)(super.decode(e))}}},78632:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedBytesCoder=void 0;const r=n(79551),a=n(20371),i=n(11900);class o extends i.Coder{size;constructor(e,t){let n="bytes"+String(e);super(n,n,t,!1),(0,r.defineProperties)(this,{size:e},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let n=(0,r.getBytesCopy)(a.Typed.dereference(t,this.type));return n.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(n)}decode(e){return(0,r.hexlify)(e.readBytes(this.size))}}t.FixedBytesCoder=o},46994:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NullCoder=void 0;const r=n(11900),a=new Uint8Array([]);class i extends r.Coder{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes(a)}decode(e){return e.readBytes(0),null}}t.NullCoder=i},75414:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberCoder=void 0;const r=n(79551),a=n(20371),i=n(11900),o=BigInt(0),s=BigInt(1),f=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class c extends i.Coder{size;signed;constructor(e,t,n){const a=(t?"int":"uint")+8*e;super(a,a,n,!1),(0,r.defineProperties)(this,{size:e,signed:t},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(e,t){let n=(0,r.getBigInt)(a.Typed.dereference(t,this.type)),c=(0,r.mask)(f,8*i.WordSize);if(this.signed){let e=(0,r.mask)(c,8*this.size-1);(n>e||n<-(e+s))&&this._throwError("value out-of-bounds",t),n=(0,r.toTwos)(n,8*i.WordSize)}else(n<o||n>(0,r.mask)(c,8*this.size))&&this._throwError("value out-of-bounds",t);return e.writeValue(n)}decode(e){let t=(0,r.mask)(e.readValue(),8*this.size);return this.signed&&(t=(0,r.fromTwos)(t,8*this.size)),t}}t.NumberCoder=c},26447:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringCoder=void 0;const r=n(30501),a=n(20371),i=n(46554);class o extends i.DynamicBytesCoder{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,r.toUtf8Bytes)(a.Typed.dereference(t,"string")))}decode(e){return(0,r.toUtf8String)(super.decode(e))}}t.StringCoder=o},96381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleCoder=void 0;const r=n(26764),a=n(20371),i=n(11900),o=n(28121);class s extends i.Coder{coders;constructor(e,t){let n=!1;const a=[];e.forEach((e=>{e.dynamic&&(n=!0),a.push(e.type)}));super("tuple","tuple("+a.join(",")+")",t,n),(0,r.defineProperties)(this,{coders:Object.freeze(e.slice())})}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});return this.coders.forEach(((n,r)=>{let a=n.localName;a&&1===t[a]&&("length"===a&&(a="_length"),null==e[a]&&(e[a]=e[r]))})),Object.freeze(e)}encode(e,t){const n=a.Typed.dereference(t,"tuple");return(0,o.pack)(e,this.coders,n)}decode(e){return(0,o.unpack)(e,this.coders)}}t.TupleCoder=s},93514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StructFragment=t.FunctionFragment=t.FallbackFragment=t.ConstructorFragment=t.EventFragment=t.ErrorFragment=t.NamedFragment=t.Fragment=t.ParamType=void 0;const r=n(79551),a=n(75479);function i(e){const t=new Set;return e.forEach((e=>t.add(e))),Object.freeze(t)}const o=i("external public payable override".split(" ")),s="constant external internal payable private public pure view override",f=i(s.split(" ")),c="constructor error event fallback function receive struct",l=i(c.split(" ")),u="calldata memory storage payable indexed",d=i(u.split(" ")),p=i([c,u,"tuple returns",s].join(" ").split(" ")),h={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},b=new RegExp("^(\\s*)"),y=new RegExp("^([0-9]+)"),m=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),g=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),v=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");class w{#i;#u;get offset(){return this.#i}get length(){return this.#u.length-this.#i}constructor(e){this.#i=0,this.#u=e.slice()}clone(){return new w(this.#u)}reset(){this.#i=0}#d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new w(this.#u.slice(e,t).map((t=>Object.freeze(Object.assign({},t,{match:t.match-e,linkBack:t.linkBack-e,linkNext:t.linkNext-e})))))}popKeyword(e){const t=this.peek();if("KEYWORD"!==t.type||!e.has(t.text))throw new Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){const t=this.peek();throw new Error(`expected ${e}; got ${t.type} ${JSON.stringify(t.text)}`)}return this.pop().text}popParen(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=this.#d(this.#i+1,e.match+1);return this.#i=e.match+1,t}popParams(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=[];for(;this.#i<e.match-1;){const e=this.peek().linkNext;t.push(this.#d(this.#i+1,e)),this.#i=e}return this.#i=e.match+1,t}peek(){if(this.#i>=this.#u.length)throw new Error("out-of-bounds");return this.#u[this.#i]}peekKeyword(e){const t=this.peekType("KEYWORD");return null!=t&&e.has(t)?t:null}peekType(e){if(0===this.length)return null;const t=this.peek();return t.type===e?t.text:null}pop(){const e=this.peek();return this.#i++,e}toString(){const e=[];for(let t=this.#i;t<this.#u.length;t++){const n=this.#u[t];e.push(`${n.type}:${n.text}`)}return`<TokenString ${e.join(" ")}>`}}function E(e){const t=[],n=t=>{const n=o<e.length?JSON.stringify(e[o]):"$EOI";throw new Error(`invalid token ${n} at ${o}: ${t}`)};let a=[],i=[],o=0;for(;o<e.length;){let s=e.substring(o),f=s.match(b);f&&(o+=f[1].length,s=e.substring(o));const c={depth:a.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:o,value:-1};t.push(c);let l=h[s[0]]||"";if(l){if(c.type=l,c.text=s[0],o++,"OPEN_PAREN"===l)a.push(t.length-1),i.push(t.length-1);else if("CLOSE_PAREN"==l)0===a.length&&n("no matching open bracket"),c.match=a.pop(),t[c.match].match=t.length-1,c.depth--,c.linkBack=i.pop(),t[c.linkBack].linkNext=t.length-1;else if("COMMA"===l)c.linkBack=i.pop(),t[c.linkBack].linkNext=t.length-1,i.push(t.length-1);else if("OPEN_BRACKET"===l)c.type="BRACKET";else if("CLOSE_BRACKET"===l){let e=t.pop().text;if(t.length>0&&"NUMBER"===t[t.length-1].type){const n=t.pop().text;e=n+e,t[t.length-1].value=(0,r.getNumber)(n)}if(0===t.length||"BRACKET"!==t[t.length-1].type)throw new Error("missing opening bracket");t[t.length-1].text+=e}}else if(f=s.match(m),f){if(c.text=f[1],o+=c.text.length,p.has(c.text)){c.type="KEYWORD";continue}if(c.text.match(v)){c.type="TYPE";continue}c.type="ID"}else{if(f=s.match(y),!f)throw new Error(`unexpected token ${JSON.stringify(s[0])} at position ${o}`);c.text=f[1],c.type="NUMBER",o+=c.text.length}}return new w(t.map((e=>Object.freeze(e))))}function A(e,t){let n=[];for(const r in t.keys())e.has(r)&&n.push(r);if(n.length>1)throw new Error(`conflicting types: ${n.join(", ")}`)}function P(e,t){if(t.peekKeyword(l)){const n=t.pop().text;if(n!==e)throw new Error(`expected ${e}, got ${n}`)}return t.popType("ID")}function _(e,t){const n=new Set;for(;;){const r=e.peekType("KEYWORD");if(null==r||t&&!t.has(r))break;if(e.pop(),n.has(r))throw new Error(`duplicate keywords: ${JSON.stringify(r)}`);n.add(r)}return Object.freeze(n)}function T(e){let t=_(e,f);return A(t,i("constant payable nonpayable".split(" "))),A(t,i("pure view payable nonpayable".split(" "))),t.has("view")?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function k(e,t){return e.popParams().map((e=>F.from(e,t)))}function C(e){if(e.peekType("AT")){if(e.pop(),e.peekType("NUMBER"))return(0,r.getBigInt)(e.pop().text);throw new Error("invalid gas")}return null}function x(e){if(e.length)throw new Error(`unexpected tokens at offset ${e.offset}: ${e.toString()}`)}const O=new RegExp(/^(.*)\[([0-9]*)\]$/);function S(e){const t=e.match(v);if((0,r.assertArgument)(t,"invalid type","type",e),"uint"===e)return"uint256";if("int"===e)return"int256";if(t[2]){const n=parseInt(t[2]);(0,r.assertArgument)(0!==n&&n<=32,"invalid bytes length","type",e)}else if(t[3]){const n=parseInt(t[3]);(0,r.assertArgument)(0!==n&&n<=256&&n%8===0,"invalid numeric width","type",e)}return e}const R={},I=Symbol.for("_ethers_internal"),N="_ParamTypeInternal",B="_ErrorInternal",j="_EventInternal",D="_ConstructorInternal",L="_FallbackInternal",M="_FunctionInternal",U="_StructInternal";class F{name;type;baseType;indexed;components;arrayLength;arrayChildren;constructor(e,t,n,a,i,o,s,f){if((0,r.assertPrivate)(e,R,"ParamType"),Object.defineProperty(this,I,{value:N}),o&&(o=Object.freeze(o.slice())),"array"===a){if(null==s||null==f)throw new Error("")}else if(null!=s||null!=f)throw new Error("");if("tuple"===a){if(null==o)throw new Error("")}else if(null!=o)throw new Error("");(0,r.defineProperties)(this,{name:t,type:n,baseType:a,indexed:i,components:o,arrayLength:s,arrayChildren:f})}format(e){if(null==e&&(e="sighash"),"json"===e){const t=this.name||"";if(this.isArray()){const e=JSON.parse(this.arrayChildren.format("json"));return e.name=t,e.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(e)}const n={type:"tuple"===this.baseType?"tuple":this.type,name:t};return"boolean"===typeof this.indexed&&(n.indexed=this.indexed),this.isTuple()&&(n.components=this.components.map((t=>JSON.parse(t.format(e))))),JSON.stringify(n)}let t="";return this.isArray()?(t+=this.arrayChildren.format(e),t+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?t+="("+this.components.map((t=>t.format(e))).join("full"===e?", ":",")+")":t+=this.type,"sighash"!==e&&(!0===this.indexed&&(t+=" indexed"),"full"===e&&this.name&&(t+=" "+this.name)),t}isArray(){return"array"===this.baseType}isTuple(){return"tuple"===this.baseType}isIndexable(){return null!=this.indexed}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(-1!==this.arrayLength&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map((e=>n.arrayChildren.walk(e,t)))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map(((e,r)=>n.components[r].walk(e,t)))}return t(this.type,e)}#p(e,t,n,r){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(-1!==this.arrayLength&&t.length!==this.arrayLength)throw new Error("array is wrong length");const a=this.arrayChildren,i=t.slice();return i.forEach(((t,r)=>{a.#p(e,t,n,(e=>{i[r]=e}))})),void r(i)}if(this.isTuple()){const a=this.components;let i;if(Array.isArray(t))i=t.slice();else{if(null==t||"object"!==typeof t)throw new Error("invalid tuple value");i=a.map((e=>{if(!e.name)throw new Error("cannot use object value with unnamed components");if(!(e.name in t))throw new Error(`missing value for component ${e.name}`);return t[e.name]}))}if(i.length!==this.components.length)throw new Error("array is wrong length");return i.forEach(((t,r)=>{a[r].#p(e,t,n,(e=>{i[r]=e}))})),void r(i)}const a=n(this.type,t);a.then?e.push(async function(){r(await a)}()):r(a)}async walkAsync(e,t){const n=[],r=[e];return this.#p(n,e,t,(e=>{r[0]=e})),n.length&&await Promise.all(n),r[0]}static from(e,t){if(F.isParamType(e))return e;if("string"===typeof e)try{return F.from(E(e),t)}catch(f){(0,r.assertArgument)(!1,"invalid param type","obj",e)}else if(e instanceof w){let n="",r="",a=null;_(e,i(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(r="tuple",a=e.popParams().map((e=>F.from(e))),n=`tuple(${a.map((e=>e.format())).join(",")})`):(n=S(e.popType("TYPE")),r=n);let o=null,s=null;for(;e.length&&e.peekType("BRACKET");){const t=e.pop();o=new F(R,"",n,r,null,a,s,o),s=t.value,n+=t.text,r="array",a=null}let f=null;if(_(e,d).has("indexed")){if(!t)throw new Error("");f=!0}const c=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new F(R,c,n,r,f,a,s,o)}const n=e.name;(0,r.assertArgument)(!n||"string"===typeof n&&n.match(g),"invalid name","obj.name",n);let a=e.indexed;null!=a&&((0,r.assertArgument)(t,"parameter cannot be indexed","obj.indexed",e.indexed),a=!!a);let o=e.type,s=o.match(O);if(s){const t=parseInt(s[2]||"-1"),r=F.from({type:s[1],components:e.components});return new F(R,n||"",o,"array",a,null,t,r)}if("tuple"===o||o.startsWith("tuple(")||o.startsWith("(")){const t=null!=e.components?e.components.map((e=>F.from(e))):null;return new F(R,n||"",o,"tuple",a,t,null,null)}return o=S(e.type),new F(R,n||"",o,o,a,null,null,null)}static isParamType(e){return e&&e[I]===N}}t.ParamType=F;class z{type;inputs;constructor(e,t,n){(0,r.assertPrivate)(e,R,"Fragment"),n=Object.freeze(n.slice()),(0,r.defineProperties)(this,{type:t,inputs:n})}static from(e){if("string"===typeof e){try{z.from(JSON.parse(e))}catch(t){}return z.from(E(e))}if(e instanceof w){switch(e.peekKeyword(l)){case"constructor":return V.from(e);case"error":return H.from(e);case"event":return W.from(e);case"fallback":case"receive":return q.from(e);case"function":return K.from(e);case"struct":return Z.from(e)}}else if("object"===typeof e){switch(e.type){case"constructor":return V.from(e);case"error":return H.from(e);case"event":return W.from(e);case"fallback":case"receive":return q.from(e);case"function":return K.from(e);case"struct":return Z.from(e)}(0,r.assert)(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}(0,r.assertArgument)(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return V.isFragment(e)}static isError(e){return H.isFragment(e)}static isEvent(e){return W.isFragment(e)}static isFunction(e){return K.isFragment(e)}static isStruct(e){return Z.isFragment(e)}}t.Fragment=z;class $ extends z{name;constructor(e,t,n,a){super(e,t,a),(0,r.assertArgument)("string"===typeof n&&n.match(g),"invalid identifier","name",n),a=Object.freeze(a.slice()),(0,r.defineProperties)(this,{name:n})}}function G(e,t){return"("+t.map((t=>t.format(e))).join("full"===e?", ":",")+")"}t.NamedFragment=$;class H extends ${constructor(e,t,n){super(e,"error",t,n),Object.defineProperty(this,I,{value:B})}get selector(){return(0,a.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("error"),t.push(this.name+G(e,this.inputs)),t.join(" ")}static from(e){if(H.isFragment(e))return e;if("string"===typeof e)return H.from(E(e));if(e instanceof w){const t=P("error",e),n=k(e);return x(e),new H(R,t,n)}return new H(R,e.name,e.inputs?e.inputs.map(F.from):[])}static isFragment(e){return e&&e[I]===B}}t.ErrorFragment=H;class W extends ${anonymous;constructor(e,t,n,a){super(e,"event",t,n),Object.defineProperty(this,I,{value:j}),(0,r.defineProperties)(this,{anonymous:a})}get topicHash(){return(0,a.id)(this.format("sighash"))}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("event"),t.push(this.name+G(e,this.inputs)),"sighash"!==e&&this.anonymous&&t.push("anonymous"),t.join(" ")}static getTopicHash(e,t){t=(t||[]).map((e=>F.from(e)));return new W(R,e,t,!1).topicHash}static from(e){if(W.isFragment(e))return e;if("string"===typeof e)try{return W.from(E(e))}catch(t){(0,r.assertArgument)(!1,"invalid event fragment","obj",e)}else if(e instanceof w){const t=P("event",e),n=k(e,!0),r=!!_(e,i(["anonymous"])).has("anonymous");return x(e),new W(R,t,n,r)}return new W(R,e.name,e.inputs?e.inputs.map((e=>F.from(e,!0))):[],!!e.anonymous)}static isFragment(e){return e&&e[I]===j}}t.EventFragment=W;class V extends z{payable;gas;constructor(e,t,n,a,i){super(e,t,n),Object.defineProperty(this,I,{value:D}),(0,r.defineProperties)(this,{payable:a,gas:i})}format(e){if((0,r.assert)(null!=e&&"sighash"!==e,"cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),"json"===e)return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[`constructor${G(e,this.inputs)}`];return this.payable&&t.push("payable"),null!=this.gas&&t.push(`@${this.gas.toString()}`),t.join(" ")}static from(e){if(V.isFragment(e))return e;if("string"===typeof e)try{return V.from(E(e))}catch(t){(0,r.assertArgument)(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof w){_(e,i(["constructor"]));const t=k(e),n=!!_(e,o).has("payable"),r=C(e);return x(e),new V(R,"constructor",t,n,r)}return new V(R,"constructor",e.inputs?e.inputs.map(F.from):[],!!e.payable,null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[I]===D}}t.ConstructorFragment=V;class q extends z{payable;constructor(e,t,n){super(e,"fallback",t),Object.defineProperty(this,I,{value:L}),(0,r.defineProperties)(this,{payable:n})}format(e){const t=0===this.inputs.length?"receive":"fallback";if("json"===e){const e=this.payable?"payable":"nonpayable";return JSON.stringify({type:t,stateMutability:e})}return`${t}()${this.payable?" payable":""}`}static from(e){if(q.isFragment(e))return e;if("string"===typeof e)try{return q.from(E(e))}catch(t){(0,r.assertArgument)(!1,"invalid fallback fragment","obj",e)}else if(e instanceof w){const t=e.toString(),n=e.peekKeyword(i(["fallback","receive"]));(0,r.assertArgument)(n,"type must be fallback or receive","obj",t);if("receive"===e.popKeyword(i(["fallback","receive"]))){const t=k(e);return(0,r.assertArgument)(0===t.length,"receive cannot have arguments","obj.inputs",t),_(e,i(["payable"])),x(e),new q(R,[],!0)}let a=k(e);a.length?(0,r.assertArgument)(1===a.length&&"bytes"===a[0].type,"invalid fallback inputs","obj.inputs",a.map((e=>e.format("minimal"))).join(", ")):a=[F.from("bytes")];const o=T(e);if((0,r.assertArgument)("nonpayable"===o||"payable"===o,"fallback cannot be constants","obj.stateMutability",o),_(e,i(["returns"])).has("returns")){const t=k(e);(0,r.assertArgument)(1===t.length&&"bytes"===t[0].type,"invalid fallback outputs","obj.outputs",t.map((e=>e.format("minimal"))).join(", "))}return x(e),new q(R,a,"payable"===o)}if("receive"===e.type)return new q(R,[],!0);if("fallback"===e.type){const t=[F.from("bytes")],n="payable"===e.stateMutability;return new q(R,t,n)}(0,r.assertArgument)(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[I]===L}}t.FallbackFragment=q;class K extends ${constant;outputs;stateMutability;payable;gas;constructor(e,t,n,a,i,o){super(e,"function",t,a),Object.defineProperty(this,I,{value:M}),i=Object.freeze(i.slice());const s="view"===n||"pure"===n,f="payable"===n;(0,r.defineProperties)(this,{constant:s,gas:o,outputs:i,payable:f,stateMutability:n})}get selector(){return(0,a.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e)))),outputs:this.outputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("function"),t.push(this.name+G(e,this.inputs)),"sighash"!==e&&("nonpayable"!==this.stateMutability&&t.push(this.stateMutability),this.outputs&&this.outputs.length&&(t.push("returns"),t.push(G(e,this.outputs))),null!=this.gas&&t.push(`@${this.gas.toString()}`)),t.join(" ")}static getSelector(e,t){t=(t||[]).map((e=>F.from(e)));return new K(R,e,"view",t,[],null).selector}static from(e){if(K.isFragment(e))return e;if("string"===typeof e)try{return K.from(E(e))}catch(n){(0,r.assertArgument)(!1,"invalid function fragment","obj",e)}else if(e instanceof w){const t=P("function",e),n=k(e),r=T(e);let a=[];_(e,i(["returns"])).has("returns")&&(a=k(e));const o=C(e);return x(e),new K(R,t,r,n,a,o)}let t=e.stateMutability;return null==t&&(t="payable","boolean"===typeof e.constant?(t="view",e.constant||(t="payable","boolean"!==typeof e.payable||e.payable||(t="nonpayable"))):"boolean"!==typeof e.payable||e.payable||(t="nonpayable")),new K(R,e.name,t,e.inputs?e.inputs.map(F.from):[],e.outputs?e.outputs.map(F.from):[],null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[I]===M}}t.FunctionFragment=K;class Z extends ${constructor(e,t,n){super(e,"struct",t,n),Object.defineProperty(this,I,{value:U})}format(){throw new Error("@TODO")}static from(e){if("string"===typeof e)try{return Z.from(E(e))}catch(t){(0,r.assertArgument)(!1,"invalid struct fragment","obj",e)}else if(e instanceof w){const t=P("struct",e),n=k(e);return x(e),new Z(R,t,n)}return new Z(R,e.name,e.inputs?e.inputs.map(F.from):[])}static isFragment(e){return e&&e[I]===U}}t.StructFragment=Z},48104:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Typed=t.Result=t.TransactionDescription=t.LogDescription=t.ErrorDescription=t.Interface=t.Indexed=t.checkResultErrors=t.StructFragment=t.ParamType=t.NamedFragment=t.FunctionFragment=t.Fragment=t.FallbackFragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.encodeBytes32String=t.decodeBytes32String=t.AbiCoder=void 0;var r=n(7527);Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return r.AbiCoder}});var a=n(40950);Object.defineProperty(t,"decodeBytes32String",{enumerable:!0,get:function(){return a.decodeBytes32String}}),Object.defineProperty(t,"encodeBytes32String",{enumerable:!0,get:function(){return a.encodeBytes32String}});var i=n(93514);Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return i.ConstructorFragment}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return i.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return i.EventFragment}}),Object.defineProperty(t,"FallbackFragment",{enumerable:!0,get:function(){return i.FallbackFragment}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return i.Fragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return i.FunctionFragment}}),Object.defineProperty(t,"NamedFragment",{enumerable:!0,get:function(){return i.NamedFragment}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return i.ParamType}}),Object.defineProperty(t,"StructFragment",{enumerable:!0,get:function(){return i.StructFragment}});var o=n(91799);Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return o.checkResultErrors}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return o.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return o.Interface}}),Object.defineProperty(t,"ErrorDescription",{enumerable:!0,get:function(){return o.ErrorDescription}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return o.LogDescription}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return o.TransactionDescription}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return o.Result}});var s=n(20371);Object.defineProperty(t,"Typed",{enumerable:!0,get:function(){return s.Typed}})},91799:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Interface=t.Indexed=t.ErrorDescription=t.TransactionDescription=t.LogDescription=t.Result=t.checkResultErrors=void 0;const r=n(27294),a=n(75479),i=n(79551),o=n(7527),s=n(11900);Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return s.checkResultErrors}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return s.Result}});const f=n(93514),c=n(20371);class l{fragment;name;signature;topic;args;constructor(e,t,n){const r=e.name,a=e.format();(0,i.defineProperties)(this,{fragment:e,name:r,signature:a,topic:t,args:n})}}t.LogDescription=l;class u{fragment;name;args;signature;selector;value;constructor(e,t,n,r){const a=e.name,o=e.format();(0,i.defineProperties)(this,{fragment:e,name:a,args:n,signature:o,selector:t,value:r})}}t.TransactionDescription=u;class d{fragment;name;args;signature;selector;constructor(e,t,n){const r=e.name,a=e.format();(0,i.defineProperties)(this,{fragment:e,name:r,args:n,signature:a,selector:t})}}t.ErrorDescription=d;class p{hash;_isIndexed;static isIndexed(e){return!(!e||!e._isIndexed)}constructor(e){(0,i.defineProperties)(this,{hash:e,_isIndexed:!0})}}t.Indexed=p;const h={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},b={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:e=>`reverted with reason string ${JSON.stringify(e)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:e=>{let t="unknown panic code";return e>=0&&e<=255&&h[e.toString()]&&(t=h[e.toString()]),`reverted with panic code 0x${e.toString(16)} (${t})`}}};class y{fragments;deploy;fallback;receive;#h;#b;#y;#m;constructor(e){let t=[];t="string"===typeof e?JSON.parse(e):e,this.#y=new Map,this.#h=new Map,this.#b=new Map;const n=[];for(const i of t)try{n.push(f.Fragment.from(i))}catch(o){console.log(`[Warning] Invalid Fragment ${JSON.stringify(i)}:`,o.message)}(0,i.defineProperties)(this,{fragments:Object.freeze(n)});let r=null,a=!1;this.#m=this.getAbiCoder(),this.fragments.forEach(((e,t)=>{let n;switch(e.type){case"constructor":return this.deploy?void console.log("duplicate definition - constructor"):void(0,i.defineProperties)(this,{deploy:e});case"fallback":return void(0===e.inputs.length?a=!0:((0,i.assertArgument)(!r||e.payable!==r.payable,"conflicting fallback fragments",`fragments[${t}]`,e),r=e,a=r.payable));case"function":n=this.#y;break;case"event":n=this.#b;break;case"error":n=this.#h;break;default:return}const o=e.format();n.has(o)||n.set(o,e)})),this.deploy||(0,i.defineProperties)(this,{deploy:f.ConstructorFragment.from("constructor()")}),(0,i.defineProperties)(this,{fallback:r,receive:a})}format(e){const t=e?"minimal":"full";return this.fragments.map((e=>e.format(t)))}formatJson(){const e=this.fragments.map((e=>e.format("json")));return JSON.stringify(e.map((e=>JSON.parse(e))))}getAbiCoder(){return o.AbiCoder.defaultAbiCoder()}#g(e,t,n){if((0,i.isHexString)(e)){const t=e.toLowerCase();for(const e of this.#y.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){const r=[];for(const[t,n]of this.#y)t.split("(")[0]===e&&r.push(n);if(t){const e=t.length>0?t[t.length-1]:null;let n=t.length,a=!0;c.Typed.isTyped(e)&&"overrides"===e.type&&(a=!1,n--);for(let t=r.length-1;t>=0;t--){const e=r[t].inputs.length;e===n||a&&e===n-1||r.splice(t,1)}for(let i=r.length-1;i>=0;i--){const e=r[i].inputs;for(let n=0;n<t.length;n++)if(c.Typed.isTyped(t[n])){if(n>=e.length){if("overrides"===t[n].type)continue;r.splice(i,1);break}if(t[n].type!==e[n].baseType){r.splice(i,1);break}}}}if(1===r.length&&t&&t.length!==r[0].inputs.length){const e=t[t.length-1];(null==e||Array.isArray(e)||"object"!==typeof e)&&r.splice(0,1)}if(0===r.length)return null;if(r.length>1&&n){const t=r.map((e=>JSON.stringify(e.format()))).join(", ");(0,i.assertArgument)(!1,`ambiguous function description (i.e. matches ${t})`,"key",e)}return r[0]}const r=this.#y.get(f.FunctionFragment.from(e).format());return r||null}getFunctionName(e){const t=this.#g(e,null,!1);return(0,i.assertArgument)(t,"no matching function","key",e),t.name}hasFunction(e){return!!this.#g(e,null,!1)}getFunction(e,t){return this.#g(e,t||null,!0)}forEachFunction(e){const t=Array.from(this.#y.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n<t.length;n++){const r=t[n];e(this.#y.get(r),n)}}#v(e,t,n){if((0,i.isHexString)(e)){const t=e.toLowerCase();for(const e of this.#b.values())if(t===e.topicHash)return e;return null}if(-1===e.indexOf("(")){const r=[];for(const[t,n]of this.#b)t.split("(")[0]===e&&r.push(n);if(t){for(let e=r.length-1;e>=0;e--)r[e].inputs.length<t.length&&r.splice(e,1);for(let e=r.length-1;e>=0;e--){const n=r[e].inputs;for(let a=0;a<t.length;a++)if(c.Typed.isTyped(t[a])&&t[a].type!==n[a].baseType){r.splice(e,1);break}}}if(0===r.length)return null;if(r.length>1&&n){const t=r.map((e=>JSON.stringify(e.format()))).join(", ");(0,i.assertArgument)(!1,`ambiguous event description (i.e. matches ${t})`,"key",e)}return r[0]}const r=this.#b.get(f.EventFragment.from(e).format());return r||null}getEventName(e){const t=this.#v(e,null,!1);return(0,i.assertArgument)(t,"no matching event","key",e),t.name}hasEvent(e){return!!this.#v(e,null,!1)}getEvent(e,t){return this.#v(e,t||null,!0)}forEachEvent(e){const t=Array.from(this.#b.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n<t.length;n++){const r=t[n];e(this.#b.get(r),n)}}getError(e,t){if((0,i.isHexString)(e)){const t=e.toLowerCase();if(b[t])return f.ErrorFragment.from(b[t].signature);for(const e of this.#h.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){const t=[];for(const[n,r]of this.#h)n.split("(")[0]===e&&t.push(r);if(0===t.length)return"Error"===e?f.ErrorFragment.from("error Error(string)"):"Panic"===e?f.ErrorFragment.from("error Panic(uint256)"):null;if(t.length>1){const n=t.map((e=>JSON.stringify(e.format()))).join(", ");(0,i.assertArgument)(!1,`ambiguous error description (i.e. ${n})`,"name",e)}return t[0]}if("Error(string)"===(e=f.ErrorFragment.from(e).format()))return f.ErrorFragment.from("error Error(string)");if("Panic(uint256)"===e)return f.ErrorFragment.from("error Panic(uint256)");const n=this.#h.get(e);return n||null}forEachError(e){const t=Array.from(this.#h.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n<t.length;n++){const r=t[n];e(this.#h.get(r),n)}}_decodeParams(e,t){return this.#m.decode(e,t)}_encodeParams(e,t){return this.#m.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){if("string"===typeof e){const t=this.getError(e);(0,i.assertArgument)(t,"unknown error","fragment",e),e=t}return(0,i.assertArgument)((0,i.dataSlice)(t,0,4)===e.selector,`data signature does not match error ${e.name}.`,"data",t),this._decodeParams(e.inputs,(0,i.dataSlice)(t,4))}encodeErrorResult(e,t){if("string"===typeof e){const t=this.getError(e);(0,i.assertArgument)(t,"unknown error","fragment",e),e=t}return(0,i.concat)([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionData(e,t){if("string"===typeof e){const t=this.getFunction(e);(0,i.assertArgument)(t,"unknown function","fragment",e),e=t}return(0,i.assertArgument)((0,i.dataSlice)(t,0,4)===e.selector,`data signature does not match function ${e.name}.`,"data",t),this._decodeParams(e.inputs,(0,i.dataSlice)(t,4))}encodeFunctionData(e,t){if("string"===typeof e){const t=this.getFunction(e);(0,i.assertArgument)(t,"unknown function","fragment",e),e=t}return(0,i.concat)([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionResult(e,t){if("string"===typeof e){const t=this.getFunction(e);(0,i.assertArgument)(t,"unknown function","fragment",e),e=t}let n="invalid length for result data";const r=(0,i.getBytesCopy)(t);if(r.length%32===0)try{return this.#m.decode(e.outputs,r)}catch(a){n="could not decode result data"}(0,i.assert)(!1,n,"BAD_DATA",{value:(0,i.hexlify)(r),info:{method:e.name,signature:e.format()}})}makeError(e,t){const n=(0,i.getBytes)(e,"data"),r=o.AbiCoder.getBuiltinCallException("call",t,n);if(r.message.startsWith("execution reverted (unknown custom error)")){const e=(0,i.hexlify)(n.slice(0,4)),t=this.getError(e);if(t)try{const e=this.#m.decode(t.inputs,n.slice(4));r.revert={name:t.name,signature:t.format(),args:e},r.reason=r.revert.signature,r.message=`execution reverted: ${r.reason}`}catch(s){r.message="execution reverted (coult not decode custom error)"}}const a=this.parseTransaction(t);return a&&(r.invocation={method:a.name,signature:a.signature,args:a.args}),r}encodeFunctionResult(e,t){if("string"===typeof e){const t=this.getFunction(e);(0,i.assertArgument)(t,"unknown function","fragment",e),e=t}return(0,i.hexlify)(this.#m.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){if("string"===typeof e){const t=this.getEvent(e);(0,i.assertArgument)(t,"unknown event","eventFragment",e),e=t}(0,i.assert)(t.length<=e.inputs.length,`too many arguments for ${e.format()}`,"UNEXPECTED_ARGUMENT",{count:t.length,expectedCount:e.inputs.length});const n=[];e.anonymous||n.push(e.topicHash);const o=(e,t)=>"string"===e.type?(0,a.id)(t):"bytes"===e.type?(0,r.keccak256)((0,i.hexlify)(t)):("bool"===e.type&&"boolean"===typeof t?t=t?"0x01":"0x00":e.type.match(/^u?int/)?t=(0,i.toBeHex)(t):e.type.match(/^bytes/)?t=(0,i.zeroPadBytes)(t,32):"address"===e.type&&this.#m.encode(["address"],[t]),(0,i.zeroPadValue)((0,i.hexlify)(t),32));for(t.forEach(((t,r)=>{const a=e.inputs[r];a.indexed?null==t?n.push(null):"array"===a.baseType||"tuple"===a.baseType?(0,i.assertArgument)(!1,"filtering with tuples or arrays not supported","contract."+a.name,t):Array.isArray(t)?n.push(t.map((e=>o(a,e)))):n.push(o(a,t)):(0,i.assertArgument)(null==t,"cannot filter non-indexed parameters; must be null","contract."+a.name,t)}));n.length&&null===n[n.length-1];)n.pop();return n}encodeEventLog(e,t){if("string"===typeof e){const t=this.getEvent(e);(0,i.assertArgument)(t,"unknown event","eventFragment",e),e=t}const n=[],o=[],s=[];return e.anonymous||n.push(e.topicHash),(0,i.assertArgument)(t.length===e.inputs.length,"event arguments/values mismatch","values",t),e.inputs.forEach(((e,i)=>{const f=t[i];if(e.indexed)if("string"===e.type)n.push((0,a.id)(f));else if("bytes"===e.type)n.push((0,r.keccak256)(f));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(this.#m.encode([e.type],[f]))}else o.push(e),s.push(f)})),{data:this.#m.encode(o,s),topics:n}}decodeEventLog(e,t,n){if("string"===typeof e){const t=this.getEvent(e);(0,i.assertArgument)(t,"unknown event","eventFragment",e),e=t}if(null!=n&&!e.anonymous){const t=e.topicHash;(0,i.assertArgument)((0,i.isHexString)(n[0],32)&&n[0].toLowerCase()===t,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const r=[],a=[],o=[];e.inputs.forEach(((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(r.push(f.ParamType.from({type:"bytes32",name:e.name})),o.push(!0)):(r.push(e),o.push(!1)):(a.push(e),o.push(!1))}));const c=null!=n?this.#m.decode(r,(0,i.concat)(n)):null,l=this.#m.decode(a,t,!0),u=[],d=[];let h=0,b=0;return e.inputs.forEach(((e,t)=>{let n=null;if(e.indexed)if(null==c)n=new p(null);else if(o[t])n=new p(c[b++]);else try{n=c[b++]}catch(r){n=r}else try{n=l[h++]}catch(r){n=r}u.push(n),d.push(e.name||null)})),s.Result.fromItems(u,d)}parseTransaction(e){const t=(0,i.getBytes)(e.data,"tx.data"),n=(0,i.getBigInt)(null!=e.value?e.value:0,"tx.value"),r=this.getFunction((0,i.hexlify)(t.slice(0,4)));if(!r)return null;const a=this.#m.decode(r.inputs,t.slice(4));return new u(r,r.selector,a,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new l(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){const t=(0,i.hexlify)(e),n=this.getError((0,i.dataSlice)(t,0,4));if(!n)return null;const r=this.#m.decode(n.inputs,(0,i.dataSlice)(t,4));return new d(n,n.selector,r)}static from(e){return e instanceof y?e:"string"===typeof e?new y(JSON.parse(e)):"function"===typeof e.formatJson?new y(e.formatJson()):"function"===typeof e.format?new y(e.format("json")):new y(e)}}t.Interface=y},20371:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Typed=void 0;const r=n(79551),a={};function i(e,t){let n=!1;return t<0&&(n=!0,t*=-1),new f(a,`${n?"":"u"}int${t}`,e,{signed:n,width:t})}function o(e,t){return new f(a,`bytes${t||""}`,e,{size:t})}const s=Symbol.for("_ethers_typed");class f{type;value;#w;_typedSymbol;constructor(e,t,n,i){null==i&&(i=null),(0,r.assertPrivate)(a,e,"Typed"),(0,r.defineProperties)(this,{_typedSymbol:s,type:t,value:n}),this.#w=i,this.format()}format(){if("array"===this.type)throw new Error("");if("dynamicArray"===this.type)throw new Error("");return"tuple"===this.type?`tuple(${this.value.map((e=>e.format())).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return"string"===this.type}get tupleName(){if("tuple"!==this.type)throw TypeError("not a tuple");return this.#w}get arrayLength(){if("array"!==this.type)throw TypeError("not an array");return!0===this.#w?-1:!1===this.#w?this.value.length:null}static from(e,t){return new f(a,e,t)}static uint8(e){return i(e,8)}static uint16(e){return i(e,16)}static uint24(e){return i(e,24)}static uint32(e){return i(e,32)}static uint40(e){return i(e,40)}static uint48(e){return i(e,48)}static uint56(e){return i(e,56)}static uint64(e){return i(e,64)}static uint72(e){return i(e,72)}static uint80(e){return i(e,80)}static uint88(e){return i(e,88)}static uint96(e){return i(e,96)}static uint104(e){return i(e,104)}static uint112(e){return i(e,112)}static uint120(e){return i(e,120)}static uint128(e){return i(e,128)}static uint136(e){return i(e,136)}static uint144(e){return i(e,144)}static uint152(e){return i(e,152)}static uint160(e){return i(e,160)}static uint168(e){return i(e,168)}static uint176(e){return i(e,176)}static uint184(e){return i(e,184)}static uint192(e){return i(e,192)}static uint200(e){return i(e,200)}static uint208(e){return i(e,208)}static uint216(e){return i(e,216)}static uint224(e){return i(e,224)}static uint232(e){return i(e,232)}static uint240(e){return i(e,240)}static uint248(e){return i(e,248)}static uint256(e){return i(e,256)}static uint(e){return i(e,256)}static int8(e){return i(e,-8)}static int16(e){return i(e,-16)}static int24(e){return i(e,-24)}static int32(e){return i(e,-32)}static int40(e){return i(e,-40)}static int48(e){return i(e,-48)}static int56(e){return i(e,-56)}static int64(e){return i(e,-64)}static int72(e){return i(e,-72)}static int80(e){return i(e,-80)}static int88(e){return i(e,-88)}static int96(e){return i(e,-96)}static int104(e){return i(e,-104)}static int112(e){return i(e,-112)}static int120(e){return i(e,-120)}static int128(e){return i(e,-128)}static int136(e){return i(e,-136)}static int144(e){return i(e,-144)}static int152(e){return i(e,-152)}static int160(e){return i(e,-160)}static int168(e){return i(e,-168)}static int176(e){return i(e,-176)}static int184(e){return i(e,-184)}static int192(e){return i(e,-192)}static int200(e){return i(e,-200)}static int208(e){return i(e,-208)}static int216(e){return i(e,-216)}static int224(e){return i(e,-224)}static int232(e){return i(e,-232)}static int240(e){return i(e,-240)}static int248(e){return i(e,-248)}static int256(e){return i(e,-256)}static int(e){return i(e,-256)}static bytes1(e){return o(e,1)}static bytes2(e){return o(e,2)}static bytes3(e){return o(e,3)}static bytes4(e){return o(e,4)}static bytes5(e){return o(e,5)}static bytes6(e){return o(e,6)}static bytes7(e){return o(e,7)}static bytes8(e){return o(e,8)}static bytes9(e){return o(e,9)}static bytes10(e){return o(e,10)}static bytes11(e){return o(e,11)}static bytes12(e){return o(e,12)}static bytes13(e){return o(e,13)}static bytes14(e){return o(e,14)}static bytes15(e){return o(e,15)}static bytes16(e){return o(e,16)}static bytes17(e){return o(e,17)}static bytes18(e){return o(e,18)}static bytes19(e){return o(e,19)}static bytes20(e){return o(e,20)}static bytes21(e){return o(e,21)}static bytes22(e){return o(e,22)}static bytes23(e){return o(e,23)}static bytes24(e){return o(e,24)}static bytes25(e){return o(e,25)}static bytes26(e){return o(e,26)}static bytes27(e){return o(e,27)}static bytes28(e){return o(e,28)}static bytes29(e){return o(e,29)}static bytes30(e){return o(e,30)}static bytes31(e){return o(e,31)}static bytes32(e){return o(e,32)}static address(e){return new f(a,"address",e)}static bool(e){return new f(a,"bool",!!e)}static bytes(e){return new f(a,"bytes",e)}static string(e){return new f(a,"string",e)}static array(e,t){throw new Error("not implemented yet")}static tuple(e,t){throw new Error("not implemented yet")}static overrides(e){return new f(a,"overrides",Object.assign({},e))}static isTyped(e){return e&&"object"===typeof e&&"_typedSymbol"in e&&e._typedSymbol===s}static dereference(e,t){if(f.isTyped(e)){if(e.type!==t)throw new Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}}t.Typed=f},98211:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIcapAddress=t.getAddress=void 0;const r=n(27294),a=n(79551),i=BigInt(0),o=BigInt(36);function s(e){const t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let r=0;r<40;r++)n[r]=t[r].charCodeAt(0);const i=(0,a.getBytes)((0,r.keccak256)(n));for(let r=0;r<40;r+=2)i[r>>1]>>4>=8&&(t[r]=t[r].toUpperCase()),(15&i[r>>1])>=8&&(t[r+1]=t[r+1].toUpperCase());return"0x"+t.join("")}const f={};for(let p=0;p<10;p++)f[String(p)]=String(p);for(let p=0;p<26;p++)f[String.fromCharCode(65+p)]=String(10+p);const c=15;function l(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>f[e])).join("");for(;t.length>=c;){let e=t.substring(0,c);t=parseInt(e,10)%97+t.substring(e.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n="0"+n;return n}const u=function(){const e={};for(let t=0;t<36;t++){e["0123456789abcdefghijklmnopqrstuvwxyz"[t]]=BigInt(t)}return e}();function d(e){if((0,a.assertArgument)("string"===typeof e,"invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);const t=s(e);return(0,a.assertArgument)(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,a.assertArgument)(e.substring(2,4)===l(e),"bad icap checksum","address",e);let t=function(e){e=e.toLowerCase();let t=i;for(let n=0;n<e.length;n++)t=t*o+u[e[n]];return t}(e.substring(4)).toString(16);for(;t.length<40;)t="0"+t;return s("0x"+t)}(0,a.assertArgument)(!1,"invalid address","address",e)}t.getAddress=d,t.getIcapAddress=function(e){let t=BigInt(d(e)).toString(36).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+l("XE00"+t)+t}},26450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=void 0;const r=n(79551),a=n(98211);function i(e){return e&&"function"===typeof e.getAddress}async function o(e,t){const n=await t;return null!=n&&"0x0000000000000000000000000000000000000000"!==n||((0,r.assert)("string"!==typeof e,"unconfigured name","UNCONFIGURED_NAME",{value:e}),(0,r.assertArgument)(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),(0,a.getAddress)(n)}t.isAddressable=i,t.isAddress=function(e){try{return(0,a.getAddress)(e),!0}catch(t){}return!1},t.resolveAddress=function(e,t){return"string"===typeof e?e.match(/^0x[0-9a-f]{40}$/i)?(0,a.getAddress)(e):((0,r.assert)(null!=t,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),o(e,t.resolveName(e))):i(e)?o(e,e.getAddress()):e&&"function"===typeof e.then?o(e,e):void(0,r.assertArgument)(!1,"unsupported addressable value","target",e)}},40830:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCreate2Address=t.getCreateAddress=void 0;const r=n(27294),a=n(79551),i=n(98211);t.getCreateAddress=function(e){const t=(0,i.getAddress)(e.from);let n=(0,a.getBigInt)(e.nonce,"tx.nonce").toString(16);return n="0"===n?"0x":n.length%2?"0x0"+n:"0x"+n,(0,i.getAddress)((0,a.dataSlice)((0,r.keccak256)((0,a.encodeRlp)([t,n])),12))},t.getCreate2Address=function(e,t,n){const o=(0,i.getAddress)(e),s=(0,a.getBytes)(t,"salt"),f=(0,a.getBytes)(n,"initCodeHash");return(0,a.assertArgument)(32===s.length,"salt must be 32 bytes","salt",t),(0,a.assertArgument)(32===f.length,"initCodeHash must be 32 bytes","initCodeHash",n),(0,i.getAddress)((0,a.dataSlice)((0,r.keccak256)((0,a.concat)(["0xff",o,s,f])),12))}},35460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=void 0;var r=n(98211);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return r.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return r.getIcapAddress}});var a=n(40830);Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return a.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return a.getCreate2Address}});var i=n(26450);Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return i.isAddressable}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return i.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return i.resolveAddress}})},48499:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroAddress=void 0,t.ZeroAddress="0x0000000000000000000000000000000000000000"},67723:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroHash=void 0,t.ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},96345:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=t.ZeroHash=t.ZeroAddress=void 0;var r=n(48499);Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return r.ZeroAddress}});var a=n(67723);Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return a.ZeroHash}});var i=n(12819);Object.defineProperty(t,"N",{enumerable:!0,get:function(){return i.N}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return i.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return i.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return i.MinInt256}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return i.MaxInt256}});var o=n(93714);Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return o.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return o.MessagePrefix}})},12819:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=void 0,t.N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),t.WeiPerEther=BigInt("1000000000000000000"),t.MaxUint256=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),t.MinInt256=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),t.MaxInt256=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},93714:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=void 0,t.EtherSymbol="\u039e",t.MessagePrefix="\x19Ethereum Signed Message:\n"},92036:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Contract=t.BaseContract=t.resolveArgs=t.copyOverrides=void 0;const r=n(48104),a=n(35460),i=n(95503),o=n(79551),s=n(18755),f=BigInt(0);function c(e){return e&&"function"===typeof e.call}function l(e){return e&&"function"===typeof e.estimateGas}function u(e){return e&&"function"===typeof e.resolveName}function d(e){return e&&"function"===typeof e.sendTransaction}function p(e){if(null!=e){if(u(e))return e;if(e.provider)return e.provider}}class h{#E;fragment;constructor(e,t,n){if((0,o.defineProperties)(this,{fragment:t}),t.inputs.length<n.length)throw new Error("too many arguments");const r=b(e.runner,"resolveName"),i=u(r)?r:null;this.#E=async function(){const r=await Promise.all(t.inputs.map(((e,t)=>null==n[t]?null:e.walkAsync(n[t],((e,t)=>"address"===e?Array.isArray(t)?Promise.all(t.map((e=>(0,a.resolveAddress)(e,i)))):(0,a.resolveAddress)(t,i):t)))));return e.interface.encodeFilterTopics(t,r)}()}getTopicFilter(){return this.#E}}function b(e,t){return null==e?null:"function"===typeof e[t]?e:e.provider&&"function"===typeof e.provider[t]?e.provider:null}function y(e){return null==e?null:e.provider||null}async function m(e,t){const n=r.Typed.dereference(e,"overrides");(0,o.assertArgument)("object"===typeof n,"invalid overrides parameter","overrides",e);const a=(0,i.copyRequest)(n);return(0,o.assertArgument)(null==a.to||(t||[]).indexOf("to")>=0,"cannot override to","overrides.to",a.to),(0,o.assertArgument)(null==a.data||(t||[]).indexOf("data")>=0,"cannot override data","overrides.data",a.data),a.from&&(a.from=a.from),a}async function g(e,t,n){const i=b(e,"resolveName"),o=u(i)?i:null;return await Promise.all(t.map(((e,t)=>e.walkAsync(n[t],((e,t)=>(t=r.Typed.dereference(t,e),"address"===e?(0,a.resolveAddress)(t,o):t))))))}function v(e){const t=async function(t){const n=await m(t,["data"]);n.to=await e.getAddress(),n.from&&(n.from=await(0,a.resolveAddress)(n.from,p(e.runner)));const r=e.interface,i=(0,o.getBigInt)(n.value||f,"overrides.value")===f,s="0x"===(n.data||"0x");!r.fallback||r.fallback.payable||!r.receive||s||i||(0,o.assertArgument)(!1,"cannot send data to receive or send value to non-payable fallback","overrides",t),(0,o.assertArgument)(r.fallback||s,"cannot send data to receive-only contract","overrides.data",n.data);const c=r.receive||r.fallback&&r.fallback.payable;return(0,o.assertArgument)(c||i,"cannot send value to non-payable fallback","overrides.value",n.value),(0,o.assertArgument)(r.fallback||s,"cannot send data to receive-only contract","overrides.data",n.data),n},n=async function(n){const r=e.runner;(0,o.assert)(d(r),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const a=await r.sendTransaction(await t(n)),i=y(e.runner);return new s.ContractTransactionResponse(e.interface,i,a)},r=async e=>await n(e);return(0,o.defineProperties)(r,{_contract:e,estimateGas:async function(n){const r=b(e.runner,"estimateGas");return(0,o.assert)(l(r),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await r.estimateGas(await t(n))},populateTransaction:t,send:n,staticCall:async function(n){const r=b(e.runner,"call");(0,o.assert)(c(r),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const a=await t(n);try{return await r.call(a)}catch(i){if((0,o.isCallException)(i)&&i.data)throw e.interface.makeError(i.data,a);throw i}}}),r}t.copyOverrides=m,t.resolveArgs=g;const w=Symbol.for("_ethersInternal_contract"),E=new WeakMap;function A(e){return E.get(e[w])}async function P(e,t){let n,r=null;if(Array.isArray(t)){const r=function(t){if((0,o.isHexString)(t,32))return t;const n=e.interface.getEvent(t);return(0,o.assertArgument)(n,"unknown fragment","name",t),n.topicHash};n=t.map((e=>null==e?null:Array.isArray(e)?e.map(r):r(e)))}else"*"===t?n=[null]:"string"===typeof t?(0,o.isHexString)(t,32)?n=[t]:(r=e.interface.getEvent(t),(0,o.assertArgument)(r,"unknown fragment","event",t),n=[r.topicHash]):(a=t)&&"object"===typeof a&&"getTopicFilter"in a&&"function"===typeof a.getTopicFilter&&a.fragment?n=await t.getTopicFilter():"fragment"in t?(r=t.fragment,n=[r.topicHash]):(0,o.assertArgument)(!1,"unknown event name","event",t);var a;n=n.map((e=>{if(null==e)return null;if(Array.isArray(e)){const t=Array.from(new Set(e.map((e=>e.toLowerCase()))).values());return 1===t.length?t[0]:(t.sort(),t)}return e.toLowerCase()}));return{fragment:r,tag:n.map((e=>null==e?"null":Array.isArray(e)?e.join("|"):e)).join("&"),topics:n}}async function _(e,t){const{subs:n}=A(e);return n.get((await P(e,t)).tag)||null}async function T(e,t,n){const r=y(e.runner);(0,o.assert)(r,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});const{fragment:a,tag:i,topics:f}=await P(e,n),{addr:c,subs:l}=A(e);let u=l.get(i);if(!u){const t={address:c||e,topics:f},o=t=>{let r=a;if(null==r)try{r=e.interface.getEvent(t.topics[0])}catch(i){}if(r){const i=r,o=a?e.interface.decodeEventLog(a,t.data,t.topics):[];C(e,n,o,(r=>new s.ContractEventPayload(e,r,n,i,t)))}else C(e,n,[],(r=>new s.ContractUnknownEventPayload(e,r,n,t)))};let d=[];u={tag:i,listeners:[],start:()=>{d.length||d.push(r.on(t,o))},stop:async()=>{if(0==d.length)return;let e=d;d=[],await Promise.all(e),r.off(t,o)}},l.set(i,u)}return u}let k=Promise.resolve();async function C(e,t,n,r){try{await k}catch(i){}const a=async function(e,t,n,r){await k;const a=await _(e,t);if(!a)return!1;const o=a.listeners.length;return a.listeners=a.listeners.filter((t=>{let{listener:a,once:o}=t;const s=Array.from(n);r&&s.push(r(o?null:a));try{a.call(e,...s)}catch(i){}return!o})),0===a.listeners.length&&(a.stop(),A(e).subs.delete(a.tag)),o>0}(e,t,n,r);return k=a,await a}const x=["then"];class O{target;interface;runner;filters;[w];fallback;constructor(e,t,n,i){(0,o.assertArgument)("string"===typeof e||(0,a.isAddressable)(e),"invalid value for Contract target","target",e),null==n&&(n=null);const f=r.Interface.from(t);let c;(0,o.defineProperties)(this,{target:e,runner:n,interface:f}),Object.defineProperty(this,w,{value:{}});let l=null,d=null;if(i){const e=y(n);d=new s.ContractTransactionResponse(this.interface,e,i)}let p=new Map;if("string"===typeof e)if((0,o.isHexString)(e))l=e,c=Promise.resolve(e);else{const t=b(n,"resolveName");if(!u(t))throw(0,o.makeError)("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});c=t.resolveName(e).then((t=>{if(null==t)throw(0,o.makeError)("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return A(this).addr=t,t}))}else c=e.getAddress().then((e=>{if(null==e)throw new Error("TODO");return A(this).addr=e,e}));var h,m;h=this,m={addrPromise:c,addr:l,deployTx:d,subs:p},E.set(h[w],m);const g=new Proxy({},{get:(e,t,n)=>{if("symbol"===typeof t||x.indexOf(t)>=0)return Reflect.get(e,t,n);try{return this.getEvent(t)}catch(r){if(!(0,o.isError)(r,"INVALID_ARGUMENT")||"key"!==r.argument)throw r}},has:(e,t)=>x.indexOf(t)>=0?Reflect.has(e,t):Reflect.has(e,t)||this.interface.hasEvent(String(t))});return(0,o.defineProperties)(this,{filters:g}),(0,o.defineProperties)(this,{fallback:f.receive||f.fallback?v(this):null}),new Proxy(this,{get:(e,t,n)=>{if("symbol"===typeof t||t in e||x.indexOf(t)>=0)return Reflect.get(e,t,n);try{return e.getFunction(t)}catch(r){if(!(0,o.isError)(r,"INVALID_ARGUMENT")||"key"!==r.argument)throw r}},has:(e,t)=>"symbol"===typeof t||t in e||x.indexOf(t)>=0?Reflect.has(e,t):e.interface.hasFunction(t)})}connect(e){return new O(this.target,this.interface,e)}attach(e){return new O(e,this.interface,this.runner)}async getAddress(){return await A(this).addrPromise}async getDeployedCode(){const e=y(this.runner);(0,o.assert)(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const t=await e.getCode(await this.getAddress());return"0x"===t?null:t}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(null!=await this.getDeployedCode())return this;const t=y(this.runner);return(0,o.assert)(null!=t,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise(((e,n)=>{const r=async()=>{try{if(null!=await this.getDeployedCode())return e(this);t.once("block",r)}catch(a){n(a)}};r()}))}deploymentTransaction(){return A(this).deployTx}getFunction(e){"string"!==typeof e&&(e=e.format());const t=function(e,t){const n=function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];const i=e.interface.getFunction(t,r);return(0,o.assert)(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),i},r=async function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];const s=n(...r);let f={};if(s.inputs.length+1===r.length&&(f=await m(r.pop()),f.from&&(f.from=await(0,a.resolveAddress)(f.from,p(e.runner)))),s.inputs.length!==r.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const c=await g(e.runner,s.inputs,r);return Object.assign({},f,await(0,o.resolveProperties)({to:e.getAddress(),data:e.interface.encodeFunctionData(s,c)}))},i=async function(){const e=await u(...arguments);return 1===e.length?e[0]:e},f=async function(){const t=e.runner;(0,o.assert)(d(t),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const n=await t.sendTransaction(await r(...arguments)),a=y(e.runner);return new s.ContractTransactionResponse(e.interface,a,n)},u=async function(){const t=b(e.runner,"call");(0,o.assert)(c(t),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const a=await r(...arguments);let i="0x";try{i=await t.call(a)}catch(f){if((0,o.isCallException)(f)&&f.data)throw e.interface.makeError(f.data,a);throw f}const s=n(...arguments);return e.interface.decodeFunctionResult(s,i)},h=async function(){return n(...arguments).constant?await i(...arguments):await f(...arguments)};return(0,o.defineProperties)(h,{name:e.interface.getFunctionName(t),_contract:e,_key:t,getFragment:n,estimateGas:async function(){const t=b(e.runner,"estimateGas");return(0,o.assert)(l(t),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await t.estimateGas(await r(...arguments))},populateTransaction:r,send:f,staticCall:i,staticCallResult:u}),Object.defineProperty(h,"fragment",{configurable:!1,enumerable:!0,get:()=>{const n=e.interface.getFunction(t);return(0,o.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),n}}),h}(this,e);return t}getEvent(e){return"string"!==typeof e&&(e=e.format()),function(e,t){const n=function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];const i=e.interface.getEvent(t,r);return(0,o.assert)(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),i},r=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return new h(e,n(...r),r)};return(0,o.defineProperties)(r,{name:e.interface.getEventName(t),_contract:e,_key:t,getFragment:n}),Object.defineProperty(r,"fragment",{configurable:!1,enumerable:!0,get:()=>{const n=e.interface.getEvent(t);return(0,o.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),n}}),r}(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,t,n){null==t&&(t=0),null==n&&(n="latest");const{addr:r,addrPromise:a}=A(this),f=r||await a,{fragment:c,topics:l}=await P(this,e),u={address:f,topics:l,fromBlock:t,toBlock:n},d=y(this.runner);return(0,o.assert)(d,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await d.getLogs(u)).map((e=>{let t=c;if(null==t)try{t=this.interface.getEvent(e.topics[0])}catch(n){}if(t)try{return new s.EventLog(e,this.interface,t)}catch(n){return new s.UndecodedEventLog(e,n)}return new i.Log(e,d)}))}async on(e,t){const n=await T(this,"on",e);return n.listeners.push({listener:t,once:!1}),n.start(),this}async once(e,t){const n=await T(this,"once",e);return n.listeners.push({listener:t,once:!0}),n.start(),this}async emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return await C(this,e,n,null)}async listenerCount(e){if(e){const t=await _(this,e);return t?t.listeners.length:0}const{subs:t}=A(this);let n=0;for(const{listeners:r}of t.values())n+=r.length;return n}async listeners(e){if(e){const t=await _(this,e);return t?t.listeners.map((e=>{let{listener:t}=e;return t})):[]}const{subs:t}=A(this);let n=[];for(const{listeners:r}of t.values())n=n.concat(r.map((e=>{let{listener:t}=e;return t})));return n}async off(e,t){const n=await _(this,e);if(!n)return this;if(t){const e=n.listeners.map((e=>{let{listener:t}=e;return t})).indexOf(t);e>=0&&n.listeners.splice(e,1)}return null!=t&&0!==n.listeners.length||(n.stop(),A(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const t=await _(this,e);if(!t)return this;t.stop(),A(this).subs.delete(t.tag)}else{const{subs:e}=A(this);for(const{tag:t,stop:n}of e.values())n(),e.delete(t)}return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return await this.off(e,t)}static buildClass(e){return class extends O{constructor(t){super(t,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)}}}static from(e,t,n){null==n&&(n=null);return new this(e,t,n)}}t.BaseContract=O;class S extends(function(){return O}()){}t.Contract=S},94054:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContractFactory=void 0;const r=n(48104),a=n(35460),i=n(79551),o=n(92036);class s{interface;bytecode;runner;constructor(e,t,n){const a=r.Interface.from(e);t instanceof Uint8Array||("object"===typeof t&&(t=t.object),t.startsWith("0x")||(t="0x"+t)),t=(0,i.hexlify)((0,i.getBytes)(t)),(0,i.defineProperties)(this,{bytecode:t,interface:a,runner:n||null})}attach(e){return new o.BaseContract(e,this.interface,this.runner)}async getDeployTransaction(){let e={};const t=this.interface.deploy;for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];if(t.inputs.length+1===r.length&&(e=await(0,o.copyOverrides)(r.pop())),t.inputs.length!==r.length)throw new Error("incorrect number of arguments to constructor");const s=await(0,o.resolveArgs)(this.runner,t.inputs,r),f=(0,i.concat)([this.bytecode,this.interface.encodeDeploy(s)]);return Object.assign({},e,{data:f})}async deploy(){const e=await this.getDeployTransaction(...arguments);(0,i.assert)(this.runner&&"function"===typeof this.runner.sendTransaction,"factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const t=await this.runner.sendTransaction(e),n=(0,a.getCreateAddress)(t);return new o.BaseContract(n,this.interface,this.runner,t)}connect(e){return new s(this.interface,this.bytecode,e)}static fromSolidity(e,t){(0,i.assertArgument)(null!=e,"bad compiler output","output",e),"string"===typeof e&&(e=JSON.parse(e));const n=e.abi;let r="";return e.bytecode?r=e.bytecode:e.evm&&e.evm.bytecode&&(r=e.evm.bytecode),new this(n,r,t)}}t.ContractFactory=s},65145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UndecodedEventLog=t.EventLog=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.ContractUnknownEventPayload=t.ContractEventPayload=t.ContractFactory=t.Contract=t.BaseContract=void 0;var r=n(92036);Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return r.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return r.Contract}});var a=n(94054);Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return a.ContractFactory}});var i=n(18755);Object.defineProperty(t,"ContractEventPayload",{enumerable:!0,get:function(){return i.ContractEventPayload}}),Object.defineProperty(t,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return i.ContractUnknownEventPayload}}),Object.defineProperty(t,"ContractTransactionReceipt",{enumerable:!0,get:function(){return i.ContractTransactionReceipt}}),Object.defineProperty(t,"ContractTransactionResponse",{enumerable:!0,get:function(){return i.ContractTransactionResponse}}),Object.defineProperty(t,"EventLog",{enumerable:!0,get:function(){return i.EventLog}}),Object.defineProperty(t,"UndecodedEventLog",{enumerable:!0,get:function(){return i.UndecodedEventLog}})},18755:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContractEventPayload=t.ContractUnknownEventPayload=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.UndecodedEventLog=t.EventLog=void 0;const r=n(95503),a=n(79551);class i extends r.Log{interface;fragment;args;constructor(e,t,n){super(e,e.provider);const r=t.decodeEventLog(n,e.data,e.topics);(0,a.defineProperties)(this,{args:r,fragment:n,interface:t})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}t.EventLog=i;class o extends r.Log{error;constructor(e,t){super(e,e.provider),(0,a.defineProperties)(this,{error:t})}}t.UndecodedEventLog=o;class s extends r.TransactionReceipt{#A;constructor(e,t,n){super(n,t),this.#A=e}get logs(){return super.logs.map((e=>{const t=e.topics.length?this.#A.getEvent(e.topics[0]):null;if(t)try{return new i(e,this.#A,t)}catch(n){return new o(e,n)}return e}))}}t.ContractTransactionReceipt=s;class f extends r.TransactionResponse{#A;constructor(e,t,n){super(n,t),this.#A=e}async wait(e,t){const n=await super.wait(e,t);return null==n?null:new s(this.#A,this.provider,n)}}t.ContractTransactionResponse=f;class c extends a.EventPayload{log;constructor(e,t,n,r){super(e,t,n),(0,a.defineProperties)(this,{log:r})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}t.ContractUnknownEventPayload=c;t.ContractEventPayload=class extends c{constructor(e,t,n,r,o){super(e,t,n,new i(o,e.interface,r));const s=e.interface.decodeEventLog(r,this.log.data,this.log.topics);(0,a.defineProperties)(this,{args:s,fragment:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}},30331:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.pbkdf2Sync=t.createHmac=t.createHash=void 0;const r=n(5968),a=n(42802),i=n(84304),o=n(91855),s=n(79551);const f=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("unable to locate global object")}(),c=f.crypto||f.msCrypto;t.createHash=function(e){switch(e){case"sha256":return i.sha256.create();case"sha512":return o.sha512.create()}(0,s.assertArgument)(!1,"invalid hashing algorithm name","algorithm",e)},t.createHmac=function(e,t){const n={sha256:i.sha256,sha512:o.sha512}[e];return(0,s.assertArgument)(null!=n,"invalid hmac algorithm","algorithm",e),r.hmac.create(n,t)},t.pbkdf2Sync=function(e,t,n,r,f){const c={sha256:i.sha256,sha512:o.sha512}[f];return(0,s.assertArgument)(null!=c,"invalid pbkdf2 algorithm","algorithm",f),(0,a.pbkdf2)(c,e,t,{c:n,dkLen:r})},t.randomBytes=function(e){(0,s.assert)(null!=c,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),(0,s.assertArgument)(Number.isInteger(e)&&e>0&&e<=1024,"invalid length","length",e);const t=new Uint8Array(e);return c.getRandomValues(t),t}},59327:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeHmac=void 0;const r=n(30331),a=n(79551);let i=!1;const o=function(e,t,n){return(0,r.createHmac)(e,t).update(n).digest()};let s=o;function f(e,t,n){const r=(0,a.getBytes)(t,"key"),i=(0,a.getBytes)(n,"data");return(0,a.hexlify)(s(e,r,i))}t.computeHmac=f,f._=o,f.lock=function(){i=!0},f.register=function(e){if(i)throw new Error("computeHmac is locked");s=e},Object.freeze(f)},27294:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lock=t.Signature=t.SigningKey=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=void 0;const r=n(59327);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return r.computeHmac}});const a=n(17243);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return a.keccak256}});const i=n(31973);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return i.ripemd160}});const o=n(91890);Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return o.pbkdf2}});const s=n(30482);Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return s.randomBytes}});const f=n(54654);Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return f.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return f.scryptSync}});const c=n(89748);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return c.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return c.sha512}});var l=n(60142);Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return l.SigningKey}});var u=n(28355);Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return u.Signature}}),t.lock=function(){r.computeHmac.lock(),a.keccak256.lock(),o.pbkdf2.lock(),s.randomBytes.lock(),i.ripemd160.lock(),f.scrypt.lock(),f.scryptSync.lock(),c.sha256.lock(),c.sha512.lock(),s.randomBytes.lock()}},17243:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=void 0;const r=n(17883),a=n(79551);let i=!1;const o=function(e){return(0,r.keccak_256)(e)};let s=o;function f(e){const t=(0,a.getBytes)(e,"data");return(0,a.hexlify)(s(t))}t.keccak256=f,f._=o,f.lock=function(){i=!0},f.register=function(e){if(i)throw new TypeError("keccak256 is locked");s=e},Object.freeze(f)},91890:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2=void 0;const r=n(30331),a=n(79551);let i=!1;const o=function(e,t,n,a,i){return(0,r.pbkdf2Sync)(e,t,n,a,i)};let s=o;function f(e,t,n,r,i){const o=(0,a.getBytes)(e,"password"),f=(0,a.getBytes)(t,"salt");return(0,a.hexlify)(s(o,f,n,r,i))}t.pbkdf2=f,f._=o,f.lock=function(){i=!0},f.register=function(e){if(i)throw new Error("pbkdf2 is locked");s=e},Object.freeze(f)},30482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=void 0;const r=n(30331);let a=!1;const i=function(e){return new Uint8Array((0,r.randomBytes)(e))};let o=i;function s(e){return o(e)}t.randomBytes=s,s._=i,s.lock=function(){a=!0},s.register=function(e){if(a)throw new Error("randomBytes is locked");o=e},Object.freeze(s)},31973:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=void 0;const r=n(66632),a=n(79551);let i=!1;const o=function(e){return(0,r.ripemd160)(e)};let s=o;function f(e){const t=(0,a.getBytes)(e,"data");return(0,a.hexlify)(s(t))}t.ripemd160=f,f._=o,f.lock=function(){i=!0},f.register=function(e){if(i)throw new TypeError("ripemd160 is locked");s=e},Object.freeze(f)},54654:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptSync=t.scrypt=void 0;const r=n(82215),a=n(79551);let i=!1,o=!1;const s=async function(e,t,n,a,i,o,s){return await(0,r.scryptAsync)(e,t,{N:n,r:a,p:i,dkLen:o,onProgress:s})},f=function(e,t,n,a,i,o){return(0,r.scrypt)(e,t,{N:n,r:a,p:i,dkLen:o})};let c=s,l=f;async function u(e,t,n,r,i,o,s){const f=(0,a.getBytes)(e,"passwd"),l=(0,a.getBytes)(t,"salt");return(0,a.hexlify)(await c(f,l,n,r,i,o,s))}function d(e,t,n,r,i,o){const s=(0,a.getBytes)(e,"passwd"),f=(0,a.getBytes)(t,"salt");return(0,a.hexlify)(l(s,f,n,r,i,o))}t.scrypt=u,u._=s,u.lock=function(){o=!0},u.register=function(e){if(o)throw new Error("scrypt is locked");c=e},Object.freeze(u),t.scryptSync=d,d._=f,d.lock=function(){i=!0},d.register=function(e){if(i)throw new Error("scryptSync is locked");l=e},Object.freeze(d)},89748:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=t.sha256=void 0;const r=n(30331),a=n(79551),i=function(e){return(0,r.createHash)("sha256").update(e).digest()},o=function(e){return(0,r.createHash)("sha512").update(e).digest()};let s=i,f=o,c=!1,l=!1;function u(e){const t=(0,a.getBytes)(e,"data");return(0,a.hexlify)(s(t))}function d(e){const t=(0,a.getBytes)(e,"data");return(0,a.hexlify)(f(t))}t.sha256=u,u._=i,u.lock=function(){c=!0},u.register=function(e){if(c)throw new Error("sha256 is locked");s=e},Object.freeze(u),t.sha512=d,d._=o,d.lock=function(){l=!0},d.register=function(e){if(l)throw new Error("sha512 is locked");f=e},Object.freeze(u)},28355:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Signature=void 0;const r=n(96345),a=n(79551),i=BigInt(0),o=BigInt(1),s=BigInt(2),f=BigInt(27),c=BigInt(28),l=BigInt(35),u={};function d(e){return(0,a.zeroPadValue)((0,a.toBeArray)(e),32)}class p{#P;#_;#T;#k;get r(){return this.#P}set r(e){(0,a.assertArgument)(32===(0,a.dataLength)(e),"invalid r","value",e),this.#P=(0,a.hexlify)(e)}get s(){return this.#_}set s(e){(0,a.assertArgument)(32===(0,a.dataLength)(e),"invalid s","value",e);const t=(0,a.hexlify)(e);(0,a.assertArgument)(parseInt(t.substring(0,3))<8,"non-canonical s","value",t),this.#_=t}get v(){return this.#T}set v(e){const t=(0,a.getNumber)(e,"value");(0,a.assertArgument)(27===t||28===t,"invalid v","v",e),this.#T=t}get networkV(){return this.#k}get legacyChainId(){const e=this.networkV;return null==e?null:p.getChainId(e)}get yParity(){return 27===this.v?0:1}get yParityAndS(){const e=(0,a.getBytes)(this.s);return this.yParity&&(e[0]|=128),(0,a.hexlify)(e)}get compactSerialized(){return(0,a.concat)([this.r,this.yParityAndS])}get serialized(){return(0,a.concat)([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(e,t,n,r){(0,a.assertPrivate)(e,u,"Signature"),this.#P=t,this.#_=n,this.#T=r,this.#k=null}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const e=new p(u,this.r,this.s,this.v);return this.networkV&&(e.#k=this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:null!=e?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){const t=(0,a.getBigInt)(e,"v");return t==f||t==c?i:((0,a.assertArgument)(t>=l,"invalid EIP-155 v","v",e),(t-l)/s)}static getChainIdV(e,t){return(0,a.getBigInt)(e)*s+BigInt(35+t-27)}static getNormalizedV(e){const t=(0,a.getBigInt)(e);return t===i||t===f?27:t===o||t===c?28:((0,a.assertArgument)(t>=l,"invalid v","v",e),t&o?27:28)}static from(e){function t(t,n){(0,a.assertArgument)(t,n,"signature",e)}if(null==e)return new p(u,r.ZeroHash,r.ZeroHash,27);if("string"===typeof e){const n=(0,a.getBytes)(e,"signature");if(64===n.length){const e=(0,a.hexlify)(n.slice(0,32)),t=n.slice(32,64),r=128&t[0]?28:27;return t[0]&=127,new p(u,e,(0,a.hexlify)(t),r)}if(65===n.length){const e=(0,a.hexlify)(n.slice(0,32)),r=n.slice(32,64);t(0===(128&r[0]),"non-canonical s");const i=p.getNormalizedV(n[64]);return new p(u,e,(0,a.hexlify)(r),i)}t(!1,"invalid raw signature length")}if(e instanceof p)return e.clone();const n=e.r;t(null!=n,"missing r");const i=d(n),o=function(e,n){if(null!=e)return d(e);if(null!=n){t((0,a.isHexString)(n,32),"invalid yParityAndS");const e=(0,a.getBytes)(n);return e[0]&=127,(0,a.hexlify)(e)}t(!1,"missing s")}(e.s,e.yParityAndS);t(0==(128&(0,a.getBytes)(o)[0]),"non-canonical s");const{networkV:s,v:f}=function(e,n,r){if(null!=e){const t=(0,a.getBigInt)(e);return{networkV:t>=l?t:void 0,v:p.getNormalizedV(t)}}if(null!=n)return t((0,a.isHexString)(n,32),"invalid yParityAndS"),{v:128&(0,a.getBytes)(n)[0]?28:27};if(null!=r){switch((0,a.getNumber)(r,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),c=new p(u,i,o,f);return s&&(c.#k=s),t(null==e.yParity||(0,a.getNumber)(e.yParity,"sig.yParity")===c.yParity,"yParity mismatch"),t(null==e.yParityAndS||e.yParityAndS===c.yParityAndS,"yParityAndS mismatch"),c}}t.Signature=p},60142:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigningKey=void 0;const r=n(66088),a=n(79551),i=n(28355);class o{#C;constructor(e){(0,a.assertArgument)(32===(0,a.dataLength)(e),"invalid private key","privateKey","[REDACTED]"),this.#C=(0,a.hexlify)(e)}get privateKey(){return this.#C}get publicKey(){return o.computePublicKey(this.#C)}get compressedPublicKey(){return o.computePublicKey(this.#C,!0)}sign(e){(0,a.assertArgument)(32===(0,a.dataLength)(e),"invalid digest length","digest",e);const t=r.secp256k1.sign((0,a.getBytesCopy)(e),(0,a.getBytesCopy)(this.#C),{lowS:!0});return i.Signature.from({r:(0,a.toBeHex)(t.r,32),s:(0,a.toBeHex)(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){const t=o.computePublicKey(e);return(0,a.hexlify)(r.secp256k1.getSharedSecret((0,a.getBytesCopy)(this.#C),(0,a.getBytes)(t),!1))}static computePublicKey(e,t){let n=(0,a.getBytes)(e,"key");if(32===n.length){const e=r.secp256k1.getPublicKey(n,!!t);return(0,a.hexlify)(e)}if(64===n.length){const e=new Uint8Array(65);e[0]=4,e.set(n,1),n=e}const i=r.secp256k1.ProjectivePoint.fromHex(n);return(0,a.hexlify)(i.toRawBytes(t))}static recoverPublicKey(e,t){(0,a.assertArgument)(32===(0,a.dataLength)(e),"invalid digest length","digest",e);const n=i.Signature.from(t);let o=r.secp256k1.Signature.fromCompact((0,a.getBytesCopy)((0,a.concat)([n.r,n.s])));o=o.addRecoveryBit(n.yParity);const s=o.recoverPublicKey((0,a.getBytesCopy)(e));return(0,a.assertArgument)(null!=s,"invalid signautre for digest","signature",t),"0x"+s.toHex(!1)}static addPoints(e,t,n){const a=r.secp256k1.ProjectivePoint.fromHex(o.computePublicKey(e).substring(2)),i=r.secp256k1.ProjectivePoint.fromHex(o.computePublicKey(t).substring(2));return"0x"+a.add(i).toHex(!!n)}}t.SigningKey=o},17129:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=t.UndecodedEventLog=t.EventLog=t.ContractUnknownEventPayload=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.ContractEventPayload=t.ContractFactory=t.Contract=t.BaseContract=t.MessagePrefix=t.EtherSymbol=t.ZeroHash=t.N=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.ZeroAddress=t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=t.Typed=t.TransactionDescription=t.Result=t.LogDescription=t.Interface=t.Indexed=t.ErrorDescription=t.checkResultErrors=t.StructFragment=t.ParamType=t.NamedFragment=t.FunctionFragment=t.FallbackFragment=t.Fragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.AbiCoder=t.encodeBytes32String=t.decodeBytes32String=t.version=void 0,t.EnsPlugin=t.Network=t.EnsResolver=t.WebSocketProvider=t.SocketProvider=t.IpcSocketProvider=t.QuickNodeProvider=t.PocketProvider=t.InfuraWebSocketProvider=t.InfuraProvider=t.EtherscanProvider=t.CloudflareProvider=t.ChainstackProvider=t.AnkrProvider=t.AlchemyProvider=t.BrowserProvider=t.JsonRpcSigner=t.JsonRpcProvider=t.JsonRpcApiProvider=t.FallbackProvider=t.AbstractProvider=t.VoidSigner=t.NonceManager=t.AbstractSigner=t.TransactionResponse=t.TransactionReceipt=t.Log=t.FeeData=t.Block=t.getDefaultProvider=t.verifyTypedData=t.TypedDataEncoder=t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=t.verifyMessage=t.hashMessage=t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=t.id=t.SigningKey=t.Signature=t.lock=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=void 0,t.getUint=t.getNumber=t.getBigInt=t.FixedNumber=t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.isError=t.isCallException=t.makeError=t.assertPrivate=t.assertNormalize=t.assertArgumentCount=t.assertArgument=t.assert=t.resolveProperties=t.defineProperties=t.zeroPadValue=t.zeroPadBytes=t.stripZerosLeft=t.isBytesLike=t.isHexString=t.hexlify=t.getBytesCopy=t.getBytes=t.dataSlice=t.dataLength=t.concat=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=t.Transaction=t.recoverAddress=t.computeAddress=t.accessListify=t.showThrottleMessage=t.copyRequest=t.UnmanagedSubscriber=t.SocketSubscriber=t.SocketPendingSubscriber=t.SocketEventSubscriber=t.SocketBlockSubscriber=t.MulticoinProviderPlugin=t.NetworkPlugin=t.GasCostPlugin=t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EtherscanPlugin=void 0,t.wordlists=t.WordlistOwlA=t.WordlistOwl=t.LangEn=t.Wordlist=t.encryptKeystoreJsonSync=t.encryptKeystoreJson=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.decryptCrowdsaleJson=t.isKeystoreJson=t.isCrowdsaleJson=t.getIndexedAccountPath=t.getAccountPath=t.defaultPath=t.Wallet=t.HDNodeVoidWallet=t.HDNodeWallet=t.BaseWallet=t.Mnemonic=t.uuidV4=t.encodeRlp=t.decodeRlp=t.Utf8ErrorFuncs=t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.mask=t.toTwos=t.fromTwos=t.toQuantity=t.toNumber=t.toBeHex=t.toBigInt=t.toBeArray=void 0;var r=n(44646);Object.defineProperty(t,"version",{enumerable:!0,get:function(){return r.version}});var a=n(48104);Object.defineProperty(t,"decodeBytes32String",{enumerable:!0,get:function(){return a.decodeBytes32String}}),Object.defineProperty(t,"encodeBytes32String",{enumerable:!0,get:function(){return a.encodeBytes32String}}),Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return a.AbiCoder}}),Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return a.ConstructorFragment}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return a.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return a.EventFragment}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return a.Fragment}}),Object.defineProperty(t,"FallbackFragment",{enumerable:!0,get:function(){return a.FallbackFragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return a.FunctionFragment}}),Object.defineProperty(t,"NamedFragment",{enumerable:!0,get:function(){return a.NamedFragment}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return a.ParamType}}),Object.defineProperty(t,"StructFragment",{enumerable:!0,get:function(){return a.StructFragment}}),Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return a.checkResultErrors}}),Object.defineProperty(t,"ErrorDescription",{enumerable:!0,get:function(){return a.ErrorDescription}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return a.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return a.Interface}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return a.LogDescription}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return a.Result}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return a.TransactionDescription}}),Object.defineProperty(t,"Typed",{enumerable:!0,get:function(){return a.Typed}});var i=n(35460);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return i.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return i.getIcapAddress}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return i.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return i.getCreate2Address}}),Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return i.isAddressable}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return i.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return i.resolveAddress}});var o=n(96345);Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return o.ZeroAddress}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return o.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return o.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return o.MinInt256}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return o.MaxInt256}}),Object.defineProperty(t,"N",{enumerable:!0,get:function(){return o.N}}),Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return o.ZeroHash}}),Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return o.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return o.MessagePrefix}});var s=n(65145);Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return s.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return s.Contract}}),Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return s.ContractFactory}}),Object.defineProperty(t,"ContractEventPayload",{enumerable:!0,get:function(){return s.ContractEventPayload}}),Object.defineProperty(t,"ContractTransactionReceipt",{enumerable:!0,get:function(){return s.ContractTransactionReceipt}}),Object.defineProperty(t,"ContractTransactionResponse",{enumerable:!0,get:function(){return s.ContractTransactionResponse}}),Object.defineProperty(t,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return s.ContractUnknownEventPayload}}),Object.defineProperty(t,"EventLog",{enumerable:!0,get:function(){return s.EventLog}}),Object.defineProperty(t,"UndecodedEventLog",{enumerable:!0,get:function(){return s.UndecodedEventLog}});var f=n(27294);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return f.computeHmac}}),Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return f.randomBytes}}),Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return f.keccak256}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return f.ripemd160}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return f.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return f.sha512}}),Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return f.pbkdf2}}),Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return f.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return f.scryptSync}}),Object.defineProperty(t,"lock",{enumerable:!0,get:function(){return f.lock}}),Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return f.Signature}}),Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return f.SigningKey}});var c=n(75479);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return c.id}}),Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return c.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return c.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return c.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return c.dnsEncode}}),Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return c.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return c.verifyMessage}}),Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return c.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return c.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return c.solidityPackedSha256}}),Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return c.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return c.verifyTypedData}});var l=n(95516);Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return l.getDefaultProvider}}),Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return l.Block}}),Object.defineProperty(t,"FeeData",{enumerable:!0,get:function(){return l.FeeData}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return l.Log}}),Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return l.TransactionReceipt}}),Object.defineProperty(t,"TransactionResponse",{enumerable:!0,get:function(){return l.TransactionResponse}}),Object.defineProperty(t,"AbstractSigner",{enumerable:!0,get:function(){return l.AbstractSigner}}),Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return l.NonceManager}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return l.VoidSigner}}),Object.defineProperty(t,"AbstractProvider",{enumerable:!0,get:function(){return l.AbstractProvider}}),Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return l.FallbackProvider}}),Object.defineProperty(t,"JsonRpcApiProvider",{enumerable:!0,get:function(){return l.JsonRpcApiProvider}}),Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return l.JsonRpcProvider}}),Object.defineProperty(t,"JsonRpcSigner",{enumerable:!0,get:function(){return l.JsonRpcSigner}}),Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return l.BrowserProvider}}),Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return l.AlchemyProvider}}),Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return l.AnkrProvider}}),Object.defineProperty(t,"ChainstackProvider",{enumerable:!0,get:function(){return l.ChainstackProvider}}),Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return l.CloudflareProvider}}),Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return l.EtherscanProvider}}),Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return l.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return l.InfuraWebSocketProvider}}),Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return l.PocketProvider}}),Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return l.QuickNodeProvider}}),Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return l.IpcSocketProvider}}),Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return l.SocketProvider}}),Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return l.WebSocketProvider}}),Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return l.EnsResolver}}),Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return l.Network}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return l.EnsPlugin}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return l.EtherscanPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return l.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return l.FetchUrlFeeDataNetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return l.GasCostPlugin}}),Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return l.NetworkPlugin}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return l.MulticoinProviderPlugin}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return l.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return l.SocketEventSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return l.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return l.SocketSubscriber}}),Object.defineProperty(t,"UnmanagedSubscriber",{enumerable:!0,get:function(){return l.UnmanagedSubscriber}}),Object.defineProperty(t,"copyRequest",{enumerable:!0,get:function(){return l.copyRequest}}),Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return l.showThrottleMessage}});var u=n(60042);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return u.accessListify}}),Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return u.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return u.recoverAddress}}),Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return u.Transaction}});var d=n(79551);Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return d.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return d.encodeBase58}}),Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return d.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return d.encodeBase64}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return d.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return d.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return d.dataSlice}}),Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return d.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return d.getBytesCopy}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return d.hexlify}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return d.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return d.isBytesLike}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return d.stripZerosLeft}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return d.zeroPadBytes}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return d.zeroPadValue}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return d.defineProperties}}),Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return d.resolveProperties}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return d.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return d.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return d.assertArgumentCount}}),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return d.assertNormalize}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return d.assertPrivate}}),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return d.makeError}}),Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return d.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return d.isError}}),Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return d.EventPayload}}),Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return d.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return d.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return d.FetchCancelSignal}}),Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return d.FixedNumber}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return d.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return d.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return d.getUint}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return d.toBeArray}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return d.toBigInt}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return d.toBeHex}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return d.toNumber}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return d.toQuantity}}),Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return d.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return d.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return d.mask}}),Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return d.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return d.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return d.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return d.parseUnits}}),Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return d.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return d.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return d.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return d.Utf8ErrorFuncs}}),Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return d.decodeRlp}}),Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return d.encodeRlp}}),Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return d.uuidV4}});var p=n(84032);Object.defineProperty(t,"Mnemonic",{enumerable:!0,get:function(){return p.Mnemonic}}),Object.defineProperty(t,"BaseWallet",{enumerable:!0,get:function(){return p.BaseWallet}}),Object.defineProperty(t,"HDNodeWallet",{enumerable:!0,get:function(){return p.HDNodeWallet}}),Object.defineProperty(t,"HDNodeVoidWallet",{enumerable:!0,get:function(){return p.HDNodeVoidWallet}}),Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return p.Wallet}}),Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return p.defaultPath}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return p.getAccountPath}}),Object.defineProperty(t,"getIndexedAccountPath",{enumerable:!0,get:function(){return p.getIndexedAccountPath}}),Object.defineProperty(t,"isCrowdsaleJson",{enumerable:!0,get:function(){return p.isCrowdsaleJson}}),Object.defineProperty(t,"isKeystoreJson",{enumerable:!0,get:function(){return p.isKeystoreJson}}),Object.defineProperty(t,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return p.decryptCrowdsaleJson}}),Object.defineProperty(t,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return p.decryptKeystoreJsonSync}}),Object.defineProperty(t,"decryptKeystoreJson",{enumerable:!0,get:function(){return p.decryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJson",{enumerable:!0,get:function(){return p.encryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return p.encryptKeystoreJsonSync}});var h=n(90061);Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return h.Wordlist}}),Object.defineProperty(t,"LangEn",{enumerable:!0,get:function(){return h.LangEn}}),Object.defineProperty(t,"WordlistOwl",{enumerable:!0,get:function(){return h.WordlistOwl}}),Object.defineProperty(t,"WordlistOwlA",{enumerable:!0,get:function(){return h.WordlistOwlA}}),Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return h.wordlists}})},25214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.id=void 0;const r=n(27294),a=n(79551);t.id=function(e){return(0,r.keccak256)((0,a.toUtf8Bytes)(e))}},75479:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=t.TypedDataEncoder=t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=t.verifyMessage=t.hashMessage=t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=t.id=void 0;var r=n(25214);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return r.id}});var a=n(76693);Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return a.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return a.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return a.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return a.dnsEncode}});var i=n(56186);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return i.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return i.verifyMessage}});var o=n(17646);Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return o.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return o.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return o.solidityPackedSha256}});var s=n(38792);Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return s.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return s.verifyTypedData}})},56186:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=t.hashMessage=void 0;const r=n(27294),a=n(96345),i=n(60042),o=n(79551);function s(e){return"string"===typeof e&&(e=(0,o.toUtf8Bytes)(e)),(0,r.keccak256)((0,o.concat)([(0,o.toUtf8Bytes)(a.MessagePrefix),(0,o.toUtf8Bytes)(String(e.length)),e]))}t.hashMessage=s,t.verifyMessage=function(e,t){const n=s(e);return(0,i.recoverAddress)(n,t)}},76693:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=void 0;const r=n(27294),a=n(79551),i=n(62990),o=new Uint8Array(32);function s(e){return(0,a.assertArgument)(0!==e.length,"invalid ENS name; empty component","comp",e),e}function f(e){const t=(0,a.toUtf8Bytes)(c(e)),n=[];if(0===e.length)return n;let r=0;for(let a=0;a<t.length;a++){46===t[a]&&(n.push(s(t.slice(r,a))),r=a+1)}return(0,a.assertArgument)(r<t.length,"invalid ENS name; empty component","name",e),n.push(s(t.slice(r))),n}function c(e){try{if(0===e.length)throw new Error("empty label");return(0,i.ens_normalize)(e)}catch(t){(0,a.assertArgument)(!1,`invalid ENS name (${t.message})`,"name",e)}}o.fill(0),t.ensNormalize=c,t.isValidName=function(e){try{return 0!==f(e).length}catch(t){}return!1},t.namehash=function(e){(0,a.assertArgument)("string"===typeof e,"invalid ENS name; not a string","name",e),(0,a.assertArgument)(e.length,"invalid ENS name (empty label)","name",e);let t=o;const n=f(e);for(;n.length;)t=(0,r.keccak256)((0,a.concat)([t,(0,r.keccak256)(n.pop())]));return(0,a.hexlify)(t)},t.dnsEncode=function(e,t){const n=null!=t?t:63;return(0,a.assertArgument)(n<=255,"DNS encoded label cannot exceed 255","length",n),(0,a.hexlify)((0,a.concat)(f(e).map((t=>{(0,a.assertArgument)(t.length<=n,`label ${JSON.stringify(e)} exceeds ${n} bytes`,"name",e);const r=new Uint8Array(t.length+1);return r.set(t,1),r[0]=r.length-1,r}))))+"00"}},17646:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=void 0;const r=n(35460),a=n(27294),i=n(79551),o=new RegExp("^bytes([0-9]+)$"),s=new RegExp("^(u?int)([0-9]*)$"),f=new RegExp("^(.*)\\[([0-9]*)\\]$");function c(e,t,n){switch(e){case"address":return n?(0,i.getBytes)((0,i.zeroPadValue)(t,32)):(0,i.getBytes)((0,r.getAddress)(t));case"string":return(0,i.toUtf8Bytes)(t);case"bytes":return(0,i.getBytes)(t);case"bool":return t=t?"0x01":"0x00",n?(0,i.getBytes)((0,i.zeroPadValue)(t,32)):(0,i.getBytes)(t)}let a=e.match(s);if(a){let r="int"===a[1],o=parseInt(a[2]||"256");return(0,i.assertArgument)((!a[2]||a[2]===String(o))&&o%8===0&&0!==o&&o<=256,"invalid number type","type",e),n&&(o=256),r&&(t=(0,i.toTwos)(t,o)),(0,i.getBytes)((0,i.zeroPadValue)((0,i.toBeArray)(t),o/8))}if(a=e.match(o),a){const r=parseInt(a[1]);return(0,i.assertArgument)(String(r)===a[1]&&0!==r&&r<=32,"invalid bytes type","type",e),(0,i.assertArgument)((0,i.dataLength)(t)===r,`invalid value for ${e}`,"value",t),n?(0,i.getBytes)((0,i.zeroPadBytes)(t,32)):t}if(a=e.match(f),a&&Array.isArray(t)){const n=a[1],r=parseInt(a[2]||String(t.length));(0,i.assertArgument)(r===t.length,`invalid array length for ${e}`,"value",t);const o=[];return t.forEach((function(e){o.push(c(n,e,!0))})),(0,i.getBytes)((0,i.concat)(o))}(0,i.assertArgument)(!1,"invalid type","type",e)}function l(e,t){(0,i.assertArgument)(e.length===t.length,"wrong number of values; expected ${ types.length }","values",t);const n=[];return e.forEach((function(e,r){n.push(c(e,t[r]))})),(0,i.hexlify)((0,i.concat)(n))}t.solidityPacked=l,t.solidityPackedKeccak256=function(e,t){return(0,a.keccak256)(l(e,t))},t.solidityPackedSha256=function(e,t){return(0,a.sha256)(l(e,t))}},38792:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=t.TypedDataEncoder=void 0;const r=n(35460),a=n(27294),i=n(60042),o=n(79551),s=n(25214),f=new Uint8Array(32);f.fill(0);const c=BigInt(-1),l=BigInt(0),u=BigInt(1),d=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const p=(0,o.toBeHex)(u,32),h=(0,o.toBeHex)(l,32),b={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},y=["name","version","chainId","verifyingContract","salt"];function m(e){return function(t){return(0,o.assertArgument)("string"===typeof t,`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const g={name:m("name"),version:m("version"),chainId:function(e){const t=(0,o.getBigInt)(e,"domain.chainId");return(0,o.assertArgument)(t>=0,"invalid chain ID","domain.chainId",e),Number.isSafeInteger(t)?Number(t):(0,o.toQuantity)(t)},verifyingContract:function(e){try{return(0,r.getAddress)(e).toLowerCase()}catch(t){}(0,o.assertArgument)(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){const t=(0,o.getBytes)(e,"domain.salt");return(0,o.assertArgument)(32===t.length,'invalid domain value "salt"',"domain.salt",e),(0,o.hexlify)(t)}};function v(e){{const t=e.match(/^(u?)int(\d+)$/);if(t){const n=""===t[1],r=parseInt(t[2]);(0,o.assertArgument)(r%8===0&&0!==r&&r<=256&&t[2]===String(r),"invalid numeric width","type",e);const a=(0,o.mask)(d,n?r-1:r),i=n?(a+u)*c:l;return function(t){const r=(0,o.getBigInt)(t,"value");return(0,o.assertArgument)(r>=i&&r<=a,`value out-of-bounds for ${e}`,"value",r),(0,o.toBeHex)(n?(0,o.toTwos)(r,256):r,32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const n=parseInt(t[1]);return(0,o.assertArgument)(0!==n&&n<=32&&t[1]===String(n),"invalid bytes width","type",e),function(t){const r=(0,o.getBytes)(t);return(0,o.assertArgument)(r.length===n,`invalid length for ${e}`,"value",t),function(e){const t=(0,o.getBytes)(e),n=t.length%32;return n?(0,o.concat)([t,f.slice(n)]):(0,o.hexlify)(t)}(t)}}}switch(e){case"address":return function(e){return(0,o.zeroPadValue)((0,r.getAddress)(e),32)};case"bool":return function(e){return e?p:h};case"bytes":return function(e){return(0,a.keccak256)(e)};case"string":return function(e){return(0,s.id)(e)}}return null}function w(e,t){return`${e}(${t.map((e=>{let{name:t,type:n}=e;return n+" "+t})).join(",")})`}function E(e){const t=e.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return t?{base:t[1],index:t[2]+t[4],array:{base:t[1],prefix:t[1]+t[2],count:t[5]?parseInt(t[5]):-1}}:{base:e}}class A{primaryType;#x;get types(){return JSON.parse(this.#x)}#O;#S;constructor(e){this.#O=new Map,this.#S=new Map;const t=new Map,n=new Map,r=new Map,a={};Object.keys(e).forEach((i=>{a[i]=e[i].map((t=>{let{name:n,type:r}=t,{base:a,index:i}=E(r);return"int"!==a||e.int||(a="int256"),"uint"!==a||e.uint||(a="uint256"),{name:n,type:a+(i||"")}})),t.set(i,new Set),n.set(i,[]),r.set(i,new Set)})),this.#x=JSON.stringify(a);for(const s in a){const r=new Set;for(const i of a[s]){(0,o.assertArgument)(!r.has(i.name),`duplicate variable name ${JSON.stringify(i.name)} in ${JSON.stringify(s)}`,"types",e),r.add(i.name);const a=E(i.type).base;(0,o.assertArgument)(a!==s,`circular type reference to ${JSON.stringify(a)}`,"types",e);v(a)||((0,o.assertArgument)(n.has(a),`unknown type ${JSON.stringify(a)}`,"types",e),n.get(a).push(s),t.get(s).add(a))}}const i=Array.from(n.keys()).filter((e=>0===n.get(e).length));(0,o.assertArgument)(0!==i.length,"missing primary type","types",e),(0,o.assertArgument)(1===i.length,`ambiguous primary types or unused types: ${i.map((e=>JSON.stringify(e))).join(", ")}`,"types",e),(0,o.defineProperties)(this,{primaryType:i[0]}),function a(i,s){(0,o.assertArgument)(!s.has(i),`circular type reference to ${JSON.stringify(i)}`,"types",e),s.add(i);for(const e of t.get(i))if(n.has(e)){a(e,s);for(const t of s)r.get(t).add(e)}s.delete(i)}(this.primaryType,new Set);for(const[o,s]of r){const e=Array.from(s);e.sort(),this.#O.set(o,w(o,a[o])+e.map((e=>w(e,a[e]))).join(""))}}getEncoder(e){let t=this.#S.get(e);return t||(t=this.#R(e),this.#S.set(e,t)),t}#R(e){{const t=v(e);if(t)return t}const t=E(e).array;if(t){const e=t.prefix,n=this.getEncoder(e);return r=>{(0,o.assertArgument)(-1===t.count||t.count===r.length,`array length mismatch; expected length ${t.count}`,"value",r);let i=r.map(n);return this.#O.has(e)&&(i=i.map(a.keccak256)),(0,a.keccak256)((0,o.concat)(i))}}const n=this.types[e];if(n){const t=(0,s.id)(this.#O.get(e));return e=>{const r=n.map((t=>{let{name:n,type:r}=t;const i=this.getEncoder(r)(e[n]);return this.#O.has(r)?(0,a.keccak256)(i):i}));return r.unshift(t),(0,o.concat)(r)}}(0,o.assertArgument)(!1,`unknown type: ${e}`,"type",e)}encodeType(e){const t=this.#O.get(e);return(0,o.assertArgument)(t,`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,a.keccak256)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,n){if(v(e))return n(e,t);const r=E(e).array;if(r)return(0,o.assertArgument)(-1===r.count||r.count===t.length,`array length mismatch; expected length ${r.count}`,"value",t),t.map((e=>this._visit(r.prefix,e,n)));const a=this.types[e];if(a)return a.reduce(((e,r)=>{let{name:a,type:i}=r;return e[a]=this._visit(i,t[a],n),e}),{});(0,o.assertArgument)(!1,`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new A(e)}static getPrimaryType(e){return A.from(e).primaryType}static hashStruct(e,t,n){return A.from(t).hashStruct(e,n)}static hashDomain(e){const t=[];for(const n in e){if(null==e[n])continue;const r=b[n];(0,o.assertArgument)(r,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),t.push({name:n,type:r})}return t.sort(((e,t)=>y.indexOf(e.name)-y.indexOf(t.name))),A.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,n){return(0,o.concat)(["0x1901",A.hashDomain(e),A.from(t).hash(n)])}static hash(e,t,n){return(0,a.keccak256)(A.encode(e,t,n))}static async resolveNames(e,t,n,r){e=Object.assign({},e);for(const o in e)null==e[o]&&delete e[o];const a={};e.verifyingContract&&!(0,o.isHexString)(e.verifyingContract,20)&&(a[e.verifyingContract]="0x");const i=A.from(t);i.visit(n,((e,t)=>("address"!==e||(0,o.isHexString)(t,20)||(a[t]="0x"),t)));for(const o in a)a[o]=await r(o);return e.verifyingContract&&a[e.verifyingContract]&&(e.verifyingContract=a[e.verifyingContract]),{domain:e,value:n=i.visit(n,((e,t)=>"address"===e&&a[t]?a[t]:t))}}static getPayload(e,t,n){A.hashDomain(e);const r={},a=[];y.forEach((t=>{const n=e[t];null!=n&&(r[t]=g[t](n),a.push({name:t,type:b[t]}))}));const i=A.from(t);t=i.types;const s=Object.assign({},t);return(0,o.assertArgument)(null==s.EIP712Domain,"types must not contain EIP712Domain type","types.EIP712Domain",t),s.EIP712Domain=a,i.encode(n),{types:s,domain:r,primaryType:i.primaryType,message:i.visit(n,((e,t)=>{if(e.match(/^bytes(\d*)/))return(0,o.hexlify)((0,o.getBytes)(t));if(e.match(/^u?int/))return(0,o.getBigInt)(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return(0,o.assertArgument)("string"===typeof t,"invalid string","value",t),t}(0,o.assertArgument)(!1,"unsupported type","type",e)}))}}}t.TypedDataEncoder=A,t.verifyTypedData=function(e,t,n,r){return(0,i.recoverAddress)(A.hash(e,t,n),r)}},71321:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethers=void 0;const r=n(68932),a=r.__importStar(n(17129));t.ethers=a,r.__exportStar(n(17129),t)},49295:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractProvider=t.UnmanagedSubscriber=void 0;const r=n(35460),a=n(96345),i=n(65145),o=n(75479),s=n(60042),f=n(79551),c=n(17595),l=n(27290),u=n(17936),d=n(95503),p=n(79956),h=BigInt(2);function b(e){return e&&"function"===typeof e.then}function y(e,t){return e+":"+JSON.stringify(t,((e,t)=>{if(null==t)return"null";if("bigint"===typeof t)return`bigint:${t.toString()}`;if("string"===typeof t)return t.toLowerCase();if("object"===typeof t&&!Array.isArray(t)){const e=Object.keys(t);return e.sort(),e.reduce(((e,n)=>(e[n]=t[n],e)),{})}return t}))}class m{name;constructor(e){(0,f.defineProperties)(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function g(e){return(e=Array.from(new Set(e).values())).sort(),e}async function v(e,t){if(null==e)throw new Error("invalid event");if(Array.isArray(e)&&(e={topics:e}),"string"===typeof e)switch(e){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:e,tag:e}}if((0,f.isHexString)(e,32)){const t=e.toLowerCase();return{type:"transaction",tag:y("tx",{hash:t}),hash:t}}if(e.orphan){const t=e;return{type:"orphan",tag:y("orphan",t),filter:(n=t,JSON.parse(JSON.stringify(n)))}}var n;if(e.address||e.topics){const n=e,a={topics:(n.topics||[]).map((e=>null==e?null:Array.isArray(e)?g(e.map((e=>e.toLowerCase()))):e.toLowerCase()))};if(n.address){const e=[],i=[],o=n=>{(0,f.isHexString)(n)?e.push(n):i.push((async()=>{e.push(await(0,r.resolveAddress)(n,t))})())};Array.isArray(n.address)?n.address.forEach(o):o(n.address),i.length&&await Promise.all(i),a.address=g(e.map((e=>e.toLowerCase())))}return{filter:a,tag:y("event",a),type:"event"}}(0,f.assertArgument)(!1,"unknown ProviderEvent","event",e)}function w(){return(new Date).getTime()}t.UnmanagedSubscriber=m;const E={cacheTimeout:250,pollingInterval:4e3};function A(e,t){try{const n=P(e,t);if(n)return(0,f.toUtf8String)(n)}catch(n){}return null}function P(e,t){if("0x"===e)return null;try{const n=(0,f.getNumber)((0,f.dataSlice)(e,t,t+32)),r=(0,f.getNumber)((0,f.dataSlice)(e,n,n+32));return(0,f.dataSlice)(e,n+32,n+32+r)}catch(n){}return null}function _(e){const t=(0,f.toBeArray)(e);if(t.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(t,32-t.length),n}function T(e){if(e.length%32===0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}t.AbstractProvider=class{#I;#N;#B;#j;#D;#L;#M;#U;#F;#z;#$;#w;constructor(e,t){if(this.#w=Object.assign({},E,t||{}),"any"===e)this.#L=!0,this.#D=null;else if(e){const t=u.Network.from(e);this.#L=!1,this.#D=Promise.resolve(t),setTimeout((()=>{this.emit("network",t,null)}),0)}else this.#L=!1,this.#D=null;this.#U=-1,this.#M=new Map,this.#I=new Map,this.#N=new Map,this.#B=null,this.#j=!1,this.#F=1,this.#z=new Map,this.#$=!1}get pollingInterval(){return this.#w.pollingInterval}get provider(){return this}get plugins(){return Array.from(this.#N.values())}attachPlugin(e){if(this.#N.get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return this.#N.set(e.name,e.connect(this)),this}getPlugin(e){return this.#N.get(e)||null}get disableCcipRead(){return this.#$}set disableCcipRead(e){this.#$=!!e}async#G(e){const t=this.#w.cacheTimeout;if(t<0)return await this._perform(e);const n=y(e.method,e);let r=this.#M.get(n);return r||(r=this._perform(e),this.#M.set(n,r),setTimeout((()=>{this.#M.get(n)===r&&this.#M.delete(n)}),t)),await r}async ccipReadFetch(e,t,n){if(this.disableCcipRead||0===n.length||null==e.to)return null;const r=e.to.toLowerCase(),a=t.toLowerCase(),i=[];for(let s=0;s<n.length;s++){const t=n[s],c=t.replace("{sender}",r).replace("{data}",a),l=new f.FetchRequest(c);-1===t.indexOf("{data}")&&(l.body={data:a,sender:r}),this.emit("debug",{action:"sendCcipReadFetchRequest",request:l,index:s,urls:n});let u="unknown error";const d=await l.send();try{const e=d.bodyJson;if(e.data)return this.emit("debug",{action:"receiveCcipReadFetchResult",request:l,result:e}),e.data;e.message&&(u=e.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:l,result:e})}catch(o){}(0,f.assert)(d.statusCode<400||d.statusCode>=500,`response not found during CCIP fetch: ${u}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:t,errorMessage:u}}),i.push(u)}(0,f.assert)(!1,`error encountered during CCIP fetch: ${i.map((e=>JSON.stringify(e))).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:n,errorMessages:i}})}_wrapBlock(e,t){return new d.Block((0,l.formatBlock)(e),this)}_wrapLog(e,t){return new d.Log((0,l.formatLog)(e),this)}_wrapTransactionReceipt(e,t){return new d.TransactionReceipt((0,l.formatTransactionReceipt)(e),this)}_wrapTransactionResponse(e,t){return new d.TransactionResponse((0,l.formatTransactionResponse)(e),this)}_detectNetwork(){(0,f.assert)(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){(0,f.assert)(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=(0,f.getNumber)(await this.#G({method:"getBlockNumber"}),"%response");return this.#U>=0&&(this.#U=e),e}_getAddress(e){return(0,r.resolveAddress)(e,this)}_getBlockTag(e){if(null==e)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}return(0,f.isHexString)(e)?(0,f.isHexString)(e,32)?e:(0,f.toQuantity)(e):("bigint"===typeof e&&(e=(0,f.getNumber)(e,"blockTag")),"number"===typeof e?e>=0?(0,f.toQuantity)(e):this.#U>=0?(0,f.toQuantity)(this.#U+e):this.getBlockNumber().then((t=>(0,f.toQuantity)(t+e))):void(0,f.assertArgument)(!1,"invalid blockTag","blockTag",e))}_getFilter(e){const t=(e.topics||[]).map((e=>null==e?null:Array.isArray(e)?g(e.map((e=>e.toLowerCase()))):e.toLowerCase())),n="blockHash"in e?e.blockHash:void 0,r=(e,r,a)=>{let i;switch(e.length){case 0:break;case 1:i=e[0];break;default:e.sort(),i=e}if(n&&(null!=r||null!=a))throw new Error("invalid filter");const o={};return i&&(o.address=i),t.length&&(o.topics=t),r&&(o.fromBlock=r),a&&(o.toBlock=a),n&&(o.blockHash=n),o};let a,i,o=[];if(e.address)if(Array.isArray(e.address))for(const s of e.address)o.push(this._getAddress(s));else o.push(this._getAddress(e.address));return"fromBlock"in e&&(a=this._getBlockTag(e.fromBlock)),"toBlock"in e&&(i=this._getBlockTag(e.toBlock)),o.filter((e=>"string"!==typeof e)).length||null!=a&&"string"!==typeof a||null!=i&&"string"!==typeof i?Promise.all([Promise.all(o),a,i]).then((e=>r(e[0],e[1],e[2]))):r(o,a,i)}_getTransactionRequest(e){const t=(0,d.copyRequest)(e),n=[];if(["to","from"].forEach((e=>{if(null==t[e])return;const a=(0,r.resolveAddress)(t[e],this);b(a)?n.push(async function(){t[e]=await a}()):t[e]=a})),null!=t.blockTag){const e=this._getBlockTag(t.blockTag);b(e)?n.push(async function(){t.blockTag=await e}()):t.blockTag=e}return n.length?async function(){return await Promise.all(n),t}():t}async getNetwork(){if(null==this.#D){const e=(async()=>{try{const e=await this._detectNetwork();return this.emit("network",e,null),e}catch(t){throw this.#D===e&&(this.#D=null),t}})();return this.#D=e,(await e).clone()}const e=this.#D,[t,n]=await Promise.all([e,this._detectNetwork()]);return t.chainId!==n.chainId&&(this.#L?(this.emit("network",n,t),this.#D===e&&(this.#D=Promise.resolve(n))):(0,f.assert)(!1,`network changed: ${t.chainId} => ${n.chainId} `,"NETWORK_ERROR",{event:"changed"})),t.clone()}async getFeeData(){const e=await this.getNetwork(),t=async()=>{const{_block:t,gasPrice:n,priorityFee:r}=await(0,f.resolveProperties)({_block:this.#H("latest",!1),gasPrice:(async()=>{try{const e=await this.#G({method:"getGasPrice"});return(0,f.getBigInt)(e,"%response")}catch(e){}return null})(),priorityFee:(async()=>{try{const e=await this.#G({method:"getPriorityFee"});return(0,f.getBigInt)(e,"%response")}catch(e){}return null})()});let a=null,i=null;const o=this._wrapBlock(t,e);return o&&o.baseFeePerGas&&(i=null!=r?r:BigInt("1000000000"),a=o.baseFeePerGas*h+i),new d.FeeData(n,a,i)},n=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(n){const e=new f.FetchRequest(n.url),r=await n.processFunc(t,this,e);return new d.FeeData(r.gasPrice,r.maxFeePerGas,r.maxPriorityFeePerGas)}return await t()}async estimateGas(e){let t=this._getTransactionRequest(e);return b(t)&&(t=await t),(0,f.getBigInt)(await this.#G({method:"estimateGas",transaction:t}),"%response")}async#W(e,t,n){(0,f.assert)(n<10,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},e,{blockTag:t,enableCcipRead:!0})});const a=(0,d.copyRequest)(e);try{return(0,f.hexlify)(await this._perform({method:"call",transaction:a,blockTag:t}))}catch(i){if(!this.disableCcipRead&&(0,f.isCallException)(i)&&i.data&&n>=0&&"latest"===t&&null!=a.to&&"0x556f1830"===(0,f.dataSlice)(i.data,0,4)){const e=i.data,o=await(0,r.resolveAddress)(a.to,this);let s;try{s=function(e){const t={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};(0,f.assert)((0,f.dataLength)(e)>=160,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const n=(0,f.dataSlice)(e,0,32);(0,f.assert)((0,f.dataSlice)(n,0,12)===(0,f.dataSlice)(x,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),t.sender=(0,f.dataSlice)(n,12);try{const n=[],r=(0,f.getNumber)((0,f.dataSlice)(e,32,64)),a=(0,f.getNumber)((0,f.dataSlice)(e,r,r+32)),i=(0,f.dataSlice)(e,r+32);for(let e=0;e<a;e++){const t=A(i,32*e);if(null==t)throw new Error("abort");n.push(t)}t.urls=n}catch(i){(0,f.assert)(!1,"corrupt OffchainLookup urls","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup urls"})}try{const n=P(e,64);if(null==n)throw new Error("abort");t.calldata=n}catch(i){(0,f.assert)(!1,"corrupt OffchainLookup calldata","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup calldata"})}(0,f.assert)((0,f.dataSlice)(e,100,128)===(0,f.dataSlice)(x,0,28),"corrupt OffchainLookup callbaackSelector","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup callbaackSelector"}),t.selector=(0,f.dataSlice)(e,96,100);try{const n=P(e,128);if(null==n)throw new Error("abort");t.extraData=n}catch(i){(0,f.assert)(!1,"corrupt OffchainLookup extraData","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup extraData"})}return t.errorArgs="sender,urls,calldata,selector,extraData".split(/,/).map((e=>t[e])),t}((0,f.dataSlice)(i.data,4))}catch(i){(0,f.assert)(!1,i.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:a,info:{data:e}})}(0,f.assert)(s.sender.toLowerCase()===o.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:e,reason:"OffchainLookup",transaction:a,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:s.errorArgs}});const c=await this.ccipReadFetch(a,s.calldata,s.urls);(0,f.assert)(null!=c,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:a,info:{data:i.data,errorArgs:s.errorArgs}});const l={to:o,data:(0,f.concat)([s.selector,C([c,s.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:l});try{const e=await this.#W(l,t,n+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},l),result:e}),e}catch(i){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},l),error:i}),i}}throw i}}async#V(e){const{value:t}=await(0,f.resolveProperties)({network:this.getNetwork(),value:e});return t}async call(e){const{tx:t,blockTag:n}=await(0,f.resolveProperties)({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await this.#V(this.#W(t,n,e.enableCcipRead?0:-1))}async#q(e,t,n){let r=this._getAddress(t),a=this._getBlockTag(n);return"string"===typeof r&&"string"===typeof a||([r,a]=await Promise.all([r,a])),await this.#V(this.#G(Object.assign(e,{address:r,blockTag:a})))}async getBalance(e,t){return(0,f.getBigInt)(await this.#q({method:"getBalance"},e,t),"%response")}async getTransactionCount(e,t){return(0,f.getNumber)(await this.#q({method:"getTransactionCount"},e,t),"%response")}async getCode(e,t){return(0,f.hexlify)(await this.#q({method:"getCode"},e,t))}async getStorage(e,t,n){const r=(0,f.getBigInt)(t,"position");return(0,f.hexlify)(await this.#q({method:"getStorage",position:r},e,n))}async broadcastTransaction(e){const{blockNumber:t,hash:n,network:r}=await(0,f.resolveProperties)({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),a=s.Transaction.from(e);if(a.hash!==n)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(a,r).replaceableTransaction(t)}async#H(e,t){if((0,f.isHexString)(e,32))return await this.#G({method:"getBlock",blockHash:e,includeTransactions:t});let n=this._getBlockTag(e);return"string"!==typeof n&&(n=await n),await this.#G({method:"getBlock",blockTag:n,includeTransactions:t})}async getBlock(e,t){const{network:n,params:r}=await(0,f.resolveProperties)({network:this.getNetwork(),params:this.#H(e,!!t)});return null==r?null:this._wrapBlock(r,n)}async getTransaction(e){const{network:t,params:n}=await(0,f.resolveProperties)({network:this.getNetwork(),params:this.#G({method:"getTransaction",hash:e})});return null==n?null:this._wrapTransactionResponse(n,t)}async getTransactionReceipt(e){const{network:t,params:n}=await(0,f.resolveProperties)({network:this.getNetwork(),params:this.#G({method:"getTransactionReceipt",hash:e})});if(null==n)return null;if(null==n.gasPrice&&null==n.effectiveGasPrice){const t=await this.#G({method:"getTransaction",hash:e});if(null==t)throw new Error("report this; could not find tx or effectiveGasPrice");n.effectiveGasPrice=t.gasPrice}return this._wrapTransactionReceipt(n,t)}async getTransactionResult(e){const{result:t}=await(0,f.resolveProperties)({network:this.getNetwork(),result:this.#G({method:"getTransactionResult",hash:e})});return null==t?null:(0,f.hexlify)(t)}async getLogs(e){let t=this._getFilter(e);b(t)&&(t=await t);const{network:n,params:r}=await(0,f.resolveProperties)({network:this.getNetwork(),params:this.#G({method:"getLogs",filter:t})});return r.map((e=>this._wrapLog(e,n)))}_getProvider(e){(0,f.assert)(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await c.EnsResolver.fromName(this,e)}async getAvatar(e){const t=await this.getResolver(e);return t?await t.getAvatar():null}async resolveName(e){const t=await this.getResolver(e);return t?await t.getAddress():null}async lookupAddress(e){e=(0,r.getAddress)(e);const t=(0,o.namehash)(e.substring(2).toLowerCase()+".addr.reverse");try{const n=await c.EnsResolver.getEnsAddress(this),r=new i.Contract(n,["function resolver(bytes32) view returns (address)"],this),o=await r.resolver(t);if(null==o||o===a.ZeroAddress)return null;const s=new i.Contract(o,["function name(bytes32) view returns (string)"],this),f=await s.name(t);return await this.resolveName(f)!==e?null:f}catch(n){if((0,f.isError)(n,"BAD_DATA")&&"0x"===n.value)return null;if((0,f.isError)(n,"CALL_EXCEPTION"))return null;throw n}return null}async waitForTransaction(e,t,n){const r=null!=t?t:1;return 0===r?this.getTransactionReceipt(e):new Promise((async(t,a)=>{let i=null;const o=async n=>{try{const a=await this.getTransactionReceipt(e);if(null!=a&&n-a.blockNumber+1>=r)return t(a),void(i&&(clearTimeout(i),i=null))}catch(a){console.log("EEE",a)}this.once("block",o)};null!=n&&(i=setTimeout((()=>{null!=i&&(i=null,this.off("block",o),a((0,f.makeError)("timeout","TIMEOUT",{reason:"timeout"})))}),n)),o(await this.getBlockNumber())}))}async waitForBlock(e){(0,f.assert)(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const t=this.#z.get(e);t&&(t.timer&&clearTimeout(t.timer),this.#z.delete(e))}_setTimeout(e,t){null==t&&(t=0);const n=this.#F++,r=()=>{this.#z.delete(n),e()};if(this.paused)this.#z.set(n,{timer:null,func:r,time:t});else{const e=setTimeout(r,t);this.#z.set(n,{timer:e,func:r,time:w()})}return n}_forEachSubscriber(e){for(const t of this.#I.values())e(t.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new m(e.type);case"block":{const e=new p.PollingBlockSubscriber(this);return e.pollingInterval=this.pollingInterval,e}case"safe":case"finalized":return new p.PollingBlockTagSubscriber(this,e.type);case"event":return new p.PollingEventSubscriber(this,e.filter);case"transaction":return new p.PollingTransactionSubscriber(this,e.hash);case"orphan":return new p.PollingOrphanSubscriber(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,t){for(const n of this.#I.values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=t,n.started&&t.start(),null!=this.#B&&t.pause(this.#B);break}}async#K(e,t){let n=await v(e,this);return"event"===n.type&&t&&t.length>0&&!0===t[0].removed&&(n=await v({orphan:"drop-log",log:t[0]},this)),this.#I.get(n.tag)||null}async#Z(e){const t=await v(e,this),n=t.tag;let r=this.#I.get(n);if(!r){r={subscriber:this._getSubscriber(t),tag:n,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},this.#I.set(n,r)}return r}async on(e,t){const n=await this.#Z(e);return n.listeners.push({listener:t,once:!1}),n.started||(n.subscriber.start(),n.started=!0,null!=this.#B&&n.subscriber.pause(this.#B)),this}async once(e,t){const n=await this.#Z(e);return n.listeners.push({listener:t,once:!0}),n.started||(n.subscriber.start(),n.started=!0,null!=this.#B&&n.subscriber.pause(this.#B)),this}async emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const a=await this.#K(e,n);if(!a||0===a.listeners.length)return!1;const i=a.listeners.length;return a.listeners=a.listeners.filter((t=>{let{listener:r,once:a}=t;const i=new f.EventPayload(this,a?null:r,e);try{r.call(this,...n,i)}catch(o){}return!a})),0===a.listeners.length&&(a.started&&a.subscriber.stop(),this.#I.delete(a.tag)),i>0}async listenerCount(e){if(e){const t=await this.#K(e);return t?t.listeners.length:0}let t=0;for(const{listeners:n}of this.#I.values())t+=n.length;return t}async listeners(e){if(e){const t=await this.#K(e);return t?t.listeners.map((e=>{let{listener:t}=e;return t})):[]}let t=[];for(const{listeners:n}of this.#I.values())t=t.concat(n.map((e=>{let{listener:t}=e;return t})));return t}async off(e,t){const n=await this.#K(e);if(!n)return this;if(t){const e=n.listeners.map((e=>{let{listener:t}=e;return t})).indexOf(t);e>=0&&n.listeners.splice(e,1)}return t&&0!==n.listeners.length||(n.started&&n.subscriber.stop(),this.#I.delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:t,started:n,subscriber:r}=await this.#Z(e);n&&r.stop(),this.#I.delete(t)}else for(const[t,{started:n,subscriber:r}]of this.#I)n&&r.stop(),this.#I.delete(t);return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return this.off(e,t)}get destroyed(){return this.#j}destroy(){this.removeAllListeners();for(const e of this.#z.keys())this._clearTimeout(e);this.#j=!0}get paused(){return null!=this.#B}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(this.#U=-1,null!=this.#B){if(this.#B==!!e)return;(0,f.assert)(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber((t=>t.pause(e))),this.#B=!!e;for(const t of this.#z.values())t.timer&&clearTimeout(t.timer),t.time=w()-t.time}resume(){if(null!=this.#B){this._forEachSubscriber((e=>e.resume())),this.#B=null;for(const e of this.#z.values()){let t=e.time;t<0&&(t=0),e.time=w(),setTimeout(e.func,t)}}}};const k=new Uint8Array([]);function C(e){const t=[];let n=0;for(let r=0;r<e.length;r++)t.push(k),n+=32;for(let r=0;r<e.length;r++){const a=(0,f.getBytes)(e[r]);t[r]=_(n),t.push(_(a.length)),t.push(T(a)),n+=32+32*Math.ceil(a.length/32)}return(0,f.concat)(t)}const x="0x0000000000000000000000000000000000000000000000000000000000000000"},16898:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VoidSigner=t.AbstractSigner=void 0;const r=n(35460),a=n(60042),i=n(79551),o=n(95503);function s(e,t){if(e.provider)return e.provider;(0,i.assert)(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function f(e,t){let n=(0,o.copyRequest)(t);if(null!=n.to&&(n.to=(0,r.resolveAddress)(n.to,e)),null!=n.from){const t=n.from;n.from=Promise.all([e.getAddress(),(0,r.resolveAddress)(t,e)]).then((e=>{let[t,n]=e;return(0,i.assertArgument)(t.toLowerCase()===n.toLowerCase(),"transaction from mismatch","tx.from",n),t}))}else n.from=e.getAddress();return await(0,i.resolveProperties)(n)}class c{provider;constructor(e){(0,i.defineProperties)(this,{provider:e||null})}async getNonce(e){return s(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await f(this,e)}async populateTransaction(e){const t=s(this,"populateTransaction"),n=await f(this,e);null==n.nonce&&(n.nonce=await this.getNonce("pending")),null==n.gasLimit&&(n.gasLimit=await this.estimateGas(n));const r=await this.provider.getNetwork();if(null!=n.chainId){const t=(0,i.getBigInt)(n.chainId);(0,i.assertArgument)(t===r.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else n.chainId=r.chainId;const a=null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas;if(null==n.gasPrice||2!==n.type&&!a?0!==n.type&&1!==n.type||!a||(0,i.assertArgument)(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e):(0,i.assertArgument)(!1,"eip-1559 transaction do not support gasPrice","tx",e),2!==n.type&&null!=n.type||null==n.maxFeePerGas||null==n.maxPriorityFeePerGas)if(0===n.type||1===n.type){const e=await t.getFeeData();(0,i.assert)(null!=e.gasPrice,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),null==n.gasPrice&&(n.gasPrice=e.gasPrice)}else{const e=await t.getFeeData();if(null==n.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(n.type=2,null!=n.gasPrice){const e=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=e,n.maxPriorityFeePerGas=e}else null==n.maxFeePerGas&&(n.maxFeePerGas=e.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?((0,i.assert)(!a,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),null==n.gasPrice&&(n.gasPrice=e.gasPrice),n.type=0):(0,i.assert)(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else 2!==n.type&&3!==n.type||(null==n.maxFeePerGas&&(n.maxFeePerGas=e.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else n.type=2;return await(0,i.resolveProperties)(n)}async estimateGas(e){return s(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return s(this,"call").call(await this.populateCall(e))}async resolveName(e){const t=s(this,"resolveName");return await t.resolveName(e)}async sendTransaction(e){const t=s(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const r=a.Transaction.from(n);return await t.broadcastTransaction(await this.signTransaction(r))}}t.AbstractSigner=c;class l extends c{address;constructor(e,t){super(t),(0,i.defineProperties)(this,{address:e})}async getAddress(){return this.address}connect(e){return new l(this.address,e)}#J(e,t){(0,i.assert)(!1,`VoidSigner cannot sign ${e}`,"UNSUPPORTED_OPERATION",{operation:t})}async signTransaction(e){this.#J("transactions","signTransaction")}async signMessage(e){this.#J("messages","signMessage")}async signTypedData(e,t,n){this.#J("typed-data","signTypedData")}}t.VoidSigner=l},125:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showThrottleMessage=void 0;const n=new Set;t.showThrottleMessage=function(e){n.has(e)||(n.add(e),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${e} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}},78316:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultProvider=void 0;const r=n(79551),a=n(91207),i=n(87493),o=n(69294),s=n(66860),f=n(17036),c=n(21414),l=n(58753),u=n(40897),d=n(89317),p=n(17936),h=n(25569);const b="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");t.getDefaultProvider=function(e,t){null==t&&(t={});const n=e=>"-"!==t[e]&&("string"===typeof t.exclusive?e===t.exclusive:!Array.isArray(t.exclusive)||-1!==t.exclusive.indexOf(e));if("string"===typeof e&&e.match(/^https?:/))return new d.JsonRpcProvider(e);if("string"===typeof e&&e.match(/^wss?:/)||(y=e)&&"function"===typeof y.send&&"function"===typeof y.close)return new h.WebSocketProvider(e);var y;let m=null;try{m=p.Network.from(e)}catch(w){}const g=[];if(n("publicPolygon")&&m&&("matic"===m.name?g.push(new d.JsonRpcProvider("https://polygon-rpc.com/",m,{staticNetwork:m})):"matic-amoy"===m.name&&g.push(new d.JsonRpcProvider("https://rpc-amoy.polygon.technology/",m,{staticNetwork:m}))),n("alchemy"))try{g.push(new i.AlchemyProvider(e,t.alchemy))}catch(w){}if(n("ankr")&&null!=t.ankr)try{g.push(new a.AnkrProvider(e,t.ankr))}catch(w){}if(n("chainstack"))try{g.push(new o.ChainstackProvider(e,t.chainstack))}catch(w){}if(n("cloudflare"))try{g.push(new s.CloudflareProvider(e))}catch(w){}if(n("etherscan"))try{g.push(new f.EtherscanProvider(e,t.etherscan))}catch(w){}if(n("infura"))try{let n,r=t.infura;"object"===typeof r&&(n=r.projectSecret,r=r.projectId),g.push(new c.InfuraProvider(e,r,n))}catch(w){}if(n("quicknode"))try{let n=t.quicknode;g.push(new l.QuickNodeProvider(e,n))}catch(w){}if((0,r.assert)(g.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),1===g.length)return g[0];let v=Math.floor(g.length/2);return v>2&&(v=2),m&&-1!==b.indexOf(m.name)&&(v=1),t&&t.quorum&&(v=t.quorum),new u.FallbackProvider(g,void 0,{quorum:v})}},17595:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnsResolver=t.BasicMulticoinProviderPlugin=t.MulticoinProviderPlugin=void 0;const r=n(35460),a=n(96345),i=n(65145),o=n(75479),s=n(79551);function f(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):(0,s.assertArgument)(!1,"unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}class c{name;constructor(e){(0,s.defineProperties)(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,t){throw new Error("unsupported coin")}async decodeAddress(e,t){throw new Error("unsupported coin")}}t.MulticoinProviderPlugin=c;t.BasicMulticoinProviderPlugin=class extends c{constructor(){super("org.ethers.plugins.provider.BasicMulticoin")}};const l=new RegExp("^(ipfs)://(.*)$","i"),u=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),l,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];class d{provider;address;name;#Y;#Q;constructor(e,t,n){(0,s.defineProperties)(this,{provider:e,address:t,name:n}),this.#Y=null,this.#Q=new i.Contract(t,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e)}async supportsWildcard(){return null==this.#Y&&(this.#Y=(async()=>{try{return await this.#Q.supportsInterface("0x9061b923")}catch(e){if((0,s.isError)(e,"CALL_EXCEPTION"))return!1;throw this.#Y=null,e}})()),await this.#Y}async#X(e,t){t=(t||[]).slice();const n=this.#Q.interface;t.unshift((0,o.namehash)(this.name));let r=null;await this.supportsWildcard()&&(r=n.getFunction(e),(0,s.assert)(r,"missing fragment","UNKNOWN_ERROR",{info:{funcName:e}}),t=[(0,o.dnsEncode)(this.name,255),n.encodeFunctionData(r,t)],e="resolve(bytes,bytes)"),t.push({enableCcipRead:!0});try{const a=await this.#Q[e](...t);return r?n.decodeFunctionResult(r,a)[0]:a}catch(a){if(!(0,s.isError)(a,"CALL_EXCEPTION"))throw a}return null}async getAddress(e){if(null==e&&(e=60),60===e)try{const e=await this.#X("addr(bytes32)");return null==e||e===a.ZeroAddress?null:e}catch(o){if((0,s.isError)(o,"CALL_EXCEPTION"))return null;throw o}if(e>=0&&e<2147483648){let t=e+2147483648;const n=await this.#X("addr(bytes32,uint)",[t]);if((0,s.isHexString)(n,20))return(0,r.getAddress)(n)}let t=null;for(const r of this.provider.plugins)if(r instanceof c&&r.supportsCoinType(e)){t=r;break}if(null==t)return null;const n=await this.#X("addr(bytes32,uint)",[e]);if(null==n||"0x"===n)return null;const i=await t.decodeAddress(e,n);if(null!=i)return i;(0,s.assert)(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:n}})}async getText(e){const t=await this.#X("text(bytes32,string)",[e]);return null==t||"0x"===t?null:t}async getContentHash(){const e=await this.#X("contenthash(bytes32)");if(null==e||"0x"===e)return null;const t=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){const e="e3010170"===t[1]?"ipfs":"ipns",n=parseInt(t[4],16);if(t[5].length===2*n)return`${e}://${(0,s.encodeBase58)("0x"+t[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&64===n[1].length)return`bzz://${n[1]}`;(0,s.assert)(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const n=await this.getText("avatar");if(null==n)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:n});for(let r=0;r<u.length;r++){const a=n.match(u[r]);if(null==a)continue;const o=a[1].toLowerCase();switch(o){case"https":case"data":return e.push({type:"url",value:n}),{linkage:e,url:n};case"ipfs":{const t=f(n);return e.push({type:"ipfs",value:n}),e.push({type:"url",value:t}),{linkage:e,url:t}}case"erc721":case"erc1155":{const r="erc721"===o?"tokenURI(uint256)":"uri(uint256)";e.push({type:o,value:n});const c=await this.getAddress();if(null==c)return e.push({type:"!owner",value:""}),{url:null,linkage:e};const u=(a[2]||"").split("/");if(2!==u.length)return e.push({type:`!${o}caip`,value:a[2]||""}),{url:null,linkage:e};const d=u[1],p=new i.Contract(u[0],["function tokenURI(uint) view returns (string)","function ownerOf(uint) view returns (address)","function uri(uint) view returns (string)","function balanceOf(address, uint256) view returns (uint)"],this.provider);if("erc721"===o){const t=await p.ownerOf(d);if(c!==t)return e.push({type:"!owner",value:t}),{url:null,linkage:e};e.push({type:"owner",value:t})}else if("erc1155"===o){const t=await p.balanceOf(c,d);if(!t)return e.push({type:"!balance",value:"0"}),{url:null,linkage:e};e.push({type:"balance",value:t.toString()})}let h=await p[r](d);if(null==h||"0x"===h)return e.push({type:"!metadata-url",value:""}),{url:null,linkage:e};e.push({type:"metadata-url-base",value:h}),"erc1155"===o&&(h=h.replace("{id}",(0,s.toBeHex)(d,32).substring(2)),e.push({type:"metadata-url-expanded",value:h})),h.match(/^ipfs:/i)&&(h=f(h)),e.push({type:"metadata-url",value:h});let b={};const y=await new s.FetchRequest(h).send();y.assertOk();try{b=y.bodyJson}catch(t){try{e.push({type:"!metadata",value:y.bodyText})}catch(t){const n=y.body;return n&&e.push({type:"!metadata",value:(0,s.hexlify)(n)}),{url:null,linkage:e}}return{url:null,linkage:e}}if(!b)return e.push({type:"!metadata",value:""}),{url:null,linkage:e};e.push({type:"metadata",value:JSON.stringify(b)});let m=b.image;if("string"!==typeof m)return e.push({type:"!imageUrl",value:""}),{url:null,linkage:e};if(m.match(/^(https:\/\/|data:)/i));else{if(null==m.match(l))return e.push({type:"!imageUrl-ipfs",value:m}),{url:null,linkage:e};e.push({type:"imageUrl-ipfs",value:m}),m=f(m)}return e.push({type:"url",value:m}),{linkage:e,url:m}}}}}catch(t){}return{linkage:e,url:null}}static async getEnsAddress(e){const t=await e.getNetwork(),n=t.getPlugin("org.ethers.plugins.network.Ens");return(0,s.assert)(n,"network does not support ENS","UNSUPPORTED_OPERATION",{operation:"getEnsAddress",info:{network:t}}),n.address}static async#ee(e,t){const n=await d.getEnsAddress(e);try{const r=new i.Contract(n,["function resolver(bytes32) view returns (address)"],e),s=await r.resolver((0,o.namehash)(t),{enableCcipRead:!0});return s===a.ZeroAddress?null:s}catch(r){throw r}return null}static async fromName(e,t){let n=t;for(;;){if(""===n||"."===n)return null;if("eth"!==t&&"eth"===n)return null;const r=await d.#ee(e,n);if(null!=r){const a=new d(e,r,t);return n===t||await a.supportsWildcard()?a:null}n=n.split(".").slice(1).join(".")}}}t.EnsResolver=d},27290:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatTransactionResponse=t.formatTransactionReceipt=t.formatReceiptLog=t.formatBlock=t.formatLog=t.formatUint256=t.formatHash=t.formatData=t.formatBoolean=t.object=t.arrayOf=t.allowNull=void 0;const r=n(35460),a=n(27294),i=n(60042),o=n(79551),s=BigInt(0);function f(e,t){return function(n){return null==n?t:e(n)}}function c(e,t){return n=>{if(t&&null==n)return null;if(!Array.isArray(n))throw new Error("not an array");return n.map((t=>e(t)))}}function l(e,t){return n=>{const r={};for(const i in e){let s=i;if(t&&i in t&&!(s in n))for(const e of t[i])if(e in n){s=e;break}try{const t=e[i](n[s]);void 0!==t&&(r[i]=t)}catch(a){const e=a instanceof Error?a.message:"not-an-error";(0,o.assert)(!1,`invalid value for value.${i} (${e})`,"BAD_DATA",{value:n})}}return r}}function u(e){switch(e){case!0:case"true":return!0;case!1:case"false":return!1}(0,o.assertArgument)(!1,`invalid boolean; ${JSON.stringify(e)}`,"value",e)}function d(e){return(0,o.assertArgument)((0,o.isHexString)(e,!0),"invalid data","value",e),e}function p(e){return(0,o.assertArgument)((0,o.isHexString)(e,32),"invalid hash","value",e),e}t.allowNull=f,t.arrayOf=c,t.object=l,t.formatBoolean=u,t.formatData=d,t.formatHash=p,t.formatUint256=function(e){if(!(0,o.isHexString)(e))throw new Error("invalid uint256");return(0,o.zeroPadValue)(e,32)};const h=l({address:r.getAddress,blockHash:p,blockNumber:o.getNumber,data:d,index:o.getNumber,removed:f(u,!1),topics:c(p),transactionHash:p,transactionIndex:o.getNumber},{index:["logIndex"]});t.formatLog=function(e){return h(e)};const b=l({hash:f(p),parentHash:p,parentBeaconBlockRoot:f(p,null),number:o.getNumber,timestamp:o.getNumber,nonce:f(d),difficulty:o.getBigInt,gasLimit:o.getBigInt,gasUsed:o.getBigInt,stateRoot:f(p,null),receiptsRoot:f(p,null),blobGasUsed:f(o.getBigInt,null),excessBlobGas:f(o.getBigInt,null),miner:f(r.getAddress),prevRandao:f(p,null),extraData:d,baseFeePerGas:f(o.getBigInt)},{prevRandao:["mixHash"]});t.formatBlock=function(e){const t=b(e);return t.transactions=e.transactions.map((e=>"string"===typeof e?e:v(e))),t};const y=l({transactionIndex:o.getNumber,blockNumber:o.getNumber,transactionHash:p,address:r.getAddress,topics:c(p),data:d,index:o.getNumber,blockHash:p},{index:["logIndex"]});function m(e){return y(e)}t.formatReceiptLog=m;const g=l({to:f(r.getAddress,null),from:f(r.getAddress,null),contractAddress:f(r.getAddress,null),index:o.getNumber,root:f(o.hexlify),gasUsed:o.getBigInt,blobGasUsed:f(o.getBigInt,null),logsBloom:f(d),blockHash:p,hash:p,logs:c(m),blockNumber:o.getNumber,cumulativeGasUsed:o.getBigInt,effectiveGasPrice:f(o.getBigInt),blobGasPrice:f(o.getBigInt,null),status:f(o.getNumber),type:f(o.getNumber,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function v(e){e.to&&(0,o.getBigInt)(e.to)===s&&(e.to="0x0000000000000000000000000000000000000000");const t=l({hash:p,index:f(o.getNumber,void 0),type:e=>"0x"===e||null==e?0:(0,o.getNumber)(e),accessList:f(i.accessListify,null),blobVersionedHashes:f(c(p,!0),null),blockHash:f(p,null),blockNumber:f(o.getNumber,null),transactionIndex:f(o.getNumber,null),from:r.getAddress,gasPrice:f(o.getBigInt),maxPriorityFeePerGas:f(o.getBigInt),maxFeePerGas:f(o.getBigInt),maxFeePerBlobGas:f(o.getBigInt,null),gasLimit:o.getBigInt,to:f(r.getAddress,null),value:o.getBigInt,nonce:o.getNumber,data:d,creates:f(r.getAddress,null),chainId:f(o.getBigInt,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(e);if(null==t.to&&null==t.creates&&(t.creates=(0,r.getCreateAddress)(t)),1!==e.type&&2!==e.type||null!=e.accessList||(t.accessList=[]),e.signature?t.signature=a.Signature.from(e.signature):t.signature=a.Signature.from(e),null==t.chainId){const e=t.signature.legacyChainId;null!=e&&(t.chainId=e)}return t.blockHash&&(0,o.getBigInt)(t.blockHash)===s&&(t.blockHash=null),t}t.formatTransactionReceipt=function(e){return g(e)},t.formatTransactionResponse=v},95516:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SocketEventSubscriber=t.SocketPendingSubscriber=t.SocketBlockSubscriber=t.SocketSubscriber=t.WebSocketProvider=t.SocketProvider=t.IpcSocketProvider=t.QuickNodeProvider=t.PocketProvider=t.InfuraWebSocketProvider=t.InfuraProvider=t.EtherscanPlugin=t.EtherscanProvider=t.ChainstackProvider=t.CloudflareProvider=t.AnkrProvider=t.AlchemyProvider=t.BrowserProvider=t.JsonRpcSigner=t.JsonRpcProvider=t.JsonRpcApiProvider=t.FallbackProvider=t.copyRequest=t.TransactionResponse=t.TransactionReceipt=t.Log=t.FeeData=t.Block=t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EnsPlugin=t.GasCostPlugin=t.NetworkPlugin=t.NonceManager=t.Network=t.MulticoinProviderPlugin=t.EnsResolver=t.getDefaultProvider=t.showThrottleMessage=t.VoidSigner=t.AbstractSigner=t.UnmanagedSubscriber=t.AbstractProvider=void 0;var r=n(49295);Object.defineProperty(t,"AbstractProvider",{enumerable:!0,get:function(){return r.AbstractProvider}}),Object.defineProperty(t,"UnmanagedSubscriber",{enumerable:!0,get:function(){return r.UnmanagedSubscriber}});var a=n(16898);Object.defineProperty(t,"AbstractSigner",{enumerable:!0,get:function(){return a.AbstractSigner}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return a.VoidSigner}});var i=n(125);Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return i.showThrottleMessage}});var o=n(78316);Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return o.getDefaultProvider}});var s=n(17595);Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return s.EnsResolver}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return s.MulticoinProviderPlugin}});var f=n(17936);Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return f.Network}});var c=n(81723);Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return c.NonceManager}});var l=n(23227);Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return l.NetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return l.GasCostPlugin}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return l.EnsPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return l.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return l.FetchUrlFeeDataNetworkPlugin}});var u=n(95503);Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return u.Block}}),Object.defineProperty(t,"FeeData",{enumerable:!0,get:function(){return u.FeeData}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return u.Log}}),Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return u.TransactionReceipt}}),Object.defineProperty(t,"TransactionResponse",{enumerable:!0,get:function(){return u.TransactionResponse}}),Object.defineProperty(t,"copyRequest",{enumerable:!0,get:function(){return u.copyRequest}});var d=n(40897);Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return d.FallbackProvider}});var p=n(89317);Object.defineProperty(t,"JsonRpcApiProvider",{enumerable:!0,get:function(){return p.JsonRpcApiProvider}}),Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return p.JsonRpcProvider}}),Object.defineProperty(t,"JsonRpcSigner",{enumerable:!0,get:function(){return p.JsonRpcSigner}});var h=n(56082);Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return h.BrowserProvider}});var b=n(87493);Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return b.AlchemyProvider}});var y=n(91207);Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return y.AnkrProvider}});var m=n(66860);Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return m.CloudflareProvider}});var g=n(69294);Object.defineProperty(t,"ChainstackProvider",{enumerable:!0,get:function(){return g.ChainstackProvider}});var v=n(17036);Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return v.EtherscanProvider}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return v.EtherscanPlugin}});var w=n(21414);Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return w.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return w.InfuraWebSocketProvider}});var E=n(41895);Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return E.PocketProvider}});var A=n(58753);Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return A.QuickNodeProvider}});const P=n(92135);Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return P.IpcSocketProvider}});var _=n(35458);Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return _.SocketProvider}});var T=n(25569);Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return T.WebSocketProvider}});var k=n(35458);Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return k.SocketSubscriber}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return k.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return k.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return k.SocketEventSubscriber}})},17936:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Network=void 0;const r=n(60042),a=n(79551),i=n(23227),o=new Map;class s{#te;#ne;#N;constructor(e,t){this.#te=e,this.#ne=(0,a.getBigInt)(t),this.#N=new Map}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return this.#te}set name(e){this.#te=e}get chainId(){return this.#ne}set chainId(e){this.#ne=(0,a.getBigInt)(e,"chainId")}matches(e){if(null==e)return!1;if("string"===typeof e){try{return this.chainId===(0,a.getBigInt)(e)}catch(t){}return this.name===e}if("number"===typeof e||"bigint"===typeof e){try{return this.chainId===(0,a.getBigInt)(e)}catch(t){}return!1}if("object"===typeof e){if(null!=e.chainId){try{return this.chainId===(0,a.getBigInt)(e.chainId)}catch(t){}return!1}return null!=e.name&&this.name===e.name}return!1}get plugins(){return Array.from(this.#N.values())}attachPlugin(e){if(this.#N.get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return this.#N.set(e.name,e.clone()),this}getPlugin(e){return this.#N.get(e)||null}getPlugins(e){return this.plugins.filter((t=>t.name.split("#")[0]===e))}clone(){const e=new s(this.name,this.chainId);return this.plugins.forEach((t=>{e.attachPlugin(t.clone())})),e}computeIntrinsicGas(e){const t=this.getPlugin("org.ethers.plugins.network.GasCost")||new i.GasCostPlugin;let n=t.txBase;if(null==e.to&&(n+=t.txCreate),e.data)for(let r=2;r<e.data.length;r+=2)"00"===e.data.substring(r,r+2)?n+=t.txDataZero:n+=t.txDataNonzero;if(e.accessList){const a=(0,r.accessListify)(e.accessList);for(const e in a)n+=t.txAccessListAddress+t.txAccessListStorageKey*a[e].storageKeys.length}return n}static from(e){if(function(){if(l)return;function e(e,t,n){const r=function(){const r=new s(e,t);return null!=n.ensNetwork&&r.attachPlugin(new i.EnsPlugin(null,n.ensNetwork)),r.attachPlugin(new i.GasCostPlugin),(n.plugins||[]).forEach((e=>{r.attachPlugin(e)})),r};s.register(e,r),s.register(t,r),n.altNames&&n.altNames.forEach((e=>{s.register(e,r)}))}l=!0,e("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),e("ropsten",3,{ensNetwork:3}),e("rinkeby",4,{ensNetwork:4}),e("goerli",5,{ensNetwork:5}),e("kovan",42,{ensNetwork:42}),e("sepolia",11155111,{ensNetwork:11155111}),e("holesky",17e3,{ensNetwork:17e3}),e("classic",61,{}),e("classicKotti",6,{}),e("arbitrum",42161,{ensNetwork:1}),e("arbitrum-goerli",421613,{}),e("arbitrum-sepolia",421614,{}),e("base",8453,{ensNetwork:1}),e("base-goerli",84531,{}),e("base-sepolia",84532,{}),e("bnb",56,{ensNetwork:1}),e("bnbt",97,{}),e("linea",59144,{ensNetwork:1}),e("linea-goerli",59140,{}),e("linea-sepolia",59141,{}),e("matic",137,{ensNetwork:1,plugins:[c("https://gasstation.polygon.technology/v2")]}),e("matic-amoy",80002,{}),e("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[c("https://gasstation-testnet.polygon.technology/v2")]}),e("optimism",10,{ensNetwork:1,plugins:[]}),e("optimism-goerli",420,{}),e("optimism-sepolia",11155420,{}),e("xdai",100,{ensNetwork:1})}(),null==e)return s.from("mainnet");if("number"===typeof e&&(e=BigInt(e)),"string"===typeof e||"bigint"===typeof e){const t=o.get(e);if(t)return t();if("bigint"===typeof e)return new s("unknown",e);(0,a.assertArgument)(!1,"unknown network","network",e)}if("function"===typeof e.clone){return e.clone()}if("object"===typeof e){(0,a.assertArgument)("string"===typeof e.name&&"number"===typeof e.chainId,"invalid network object name or chainId","network",e);const t=new s(e.name,e.chainId);return(e.ensAddress||null!=e.ensNetwork)&&t.attachPlugin(new i.EnsPlugin(e.ensAddress,e.ensNetwork)),t}(0,a.assertArgument)(!1,"invalid network","network",e)}static register(e,t){"number"===typeof e&&(e=BigInt(e));const n=o.get(e);n&&(0,a.assertArgument)(!1,`conflicting network for ${JSON.stringify(n.name)}`,"nameOrChainId",e),o.set(e,t)}}function f(e,t){const n=String(e);if(!n.match(/^[0-9.]+$/))throw new Error(`invalid gwei value: ${e}`);const r=n.split(".");if(1===r.length&&r.push(""),2!==r.length)throw new Error(`invalid gwei value: ${e}`);for(;r[1].length<t;)r[1]+="0";if(r[1].length>9){let e=BigInt(r[1].substring(0,9));r[1].substring(9).match(/^0+$/)||e++,r[1]=e.toString()}return BigInt(r[0]+r[1])}function c(e){return new i.FetchUrlFeeDataNetworkPlugin(e,(async(e,t,n)=>{let r;n.setHeader("User-Agent","ethers");try{const[t,a]=await Promise.all([n.send(),e()]);r=t;const i=r.bodyJson.standard;return{gasPrice:a.gasPrice,maxFeePerGas:f(i.maxFee,9),maxPriorityFeePerGas:f(i.maxPriorityFee,9)}}catch(i){(0,a.assert)(!1,`error encountered with polygon gas station (${JSON.stringify(n.url)})`,"SERVER_ERROR",{request:n,response:r,error:i})}}))}t.Network=s;let l=!1},23227:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EnsPlugin=t.GasCostPlugin=t.NetworkPlugin=void 0;const r=n(26764),a=n(79551);class i{name;constructor(e){(0,r.defineProperties)(this,{name:e})}clone(){return new i(this.name)}}t.NetworkPlugin=i;class o extends i{effectiveBlock;txBase;txCreate;txDataZero;txDataNonzero;txAccessListStorageKey;txAccessListAddress;constructor(e,t){null==e&&(e=0),super(`org.ethers.network.plugins.GasCost#${e||0}`);const n={effectiveBlock:e};function i(e,r){let i=(t||{})[e];null==i&&(i=r),(0,a.assertArgument)("number"===typeof i,`invalud value for ${e}`,"costs",t),n[e]=i}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),(0,r.defineProperties)(this,n)}clone(){return new o(this.effectiveBlock,this)}}t.GasCostPlugin=o;class s extends i{address;targetNetwork;constructor(e,t){super("org.ethers.plugins.network.Ens"),(0,r.defineProperties)(this,{address:e||"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",targetNetwork:null==t?1:t})}clone(){return new s(this.address,this.targetNetwork)}}t.EnsPlugin=s;class f extends i{#re;get feeDataFunc(){return this.#re}constructor(e){super("org.ethers.plugins.network.FeeData"),this.#re=e}async getFeeData(e){return await this.#re(e)}clone(){return new f(this.#re)}}t.FeeDataNetworkPlugin=f;t.FetchUrlFeeDataNetworkPlugin=class extends i{#ae;#ie;get url(){return this.#ae}get processFunc(){return this.#ie}constructor(e,t){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin"),this.#ae=e,this.#ie=t}clone(){return this}}},87493:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlchemyProvider=void 0;const r=n(79551),a=n(125),i=n(17936),o=n(89317),s="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class f extends o.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");const n=i.Network.from(e);null==t&&(t=s);super(f.getRequest(n,t),n,{staticNetwork:n}),(0,r.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new f(e,this.apiKey)}catch(t){}return super._getProvider(e)}async _perform(e){if("getTransactionResult"===e.method){const{trace:n,tx:a}=await(0,r.resolveProperties)({trace:this.send("trace_transaction",[e.hash]),tx:this.getTransaction(e.hash)});if(null==n||null==a)return null;let i,o=!1;try{i=n[0].result.output,o="Reverted"===n[0].error}catch(t){}if(i)return(0,r.assert)(!o,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:i,reason:null,transaction:a,invocation:null,revert:null}),i;(0,r.assert)(!1,"could not parse trace result","BAD_DATA",{value:n})}return await super._perform(e)}isCommunityResource(){return this.apiKey===s}static getRequest(e,t){null==t&&(t=s);const n=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"eth-mainnet.alchemyapi.io";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"arbitrum-sepolia":return"arb-sepolia.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"base-sepolia":return"base-sepolia.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-amoy":return"polygon-amoy.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com";case"optimism-sepolia":return"opt-sepolia.g.alchemy.com"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v2/${t}`);return n.allowGzip=!0,t===s&&(n.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("alchemy"),!0)),n}}t.AlchemyProvider=f},91207:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnkrProvider=void 0;const r=n(79551),a=n(125),i=n(17936),o=n(89317),s="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class f extends o.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");const n=i.Network.from(e);null==t&&(t=s);const a={polling:!0,staticNetwork:n};super(f.getRequest(n,t),n,a),(0,r.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new f(e,this.apiKey)}catch(t){}return super._getProvider(e)}static getRequest(e,t){null==t&&(t=s);const n=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"sepolia":return"rpc.ankr.com/eth_sepolia";case"arbitrum":return"rpc.ankr.com/arbitrum";case"base":return"rpc.ankr.com/base";case"base-goerli":return"rpc.ankr.com/base_goerli";case"base-sepolia":return"rpc.ankr.com/base_sepolia";case"bnb":return"rpc.ankr.com/bsc";case"bnbt":return"rpc.ankr.com/bsc_testnet_chapel";case"matic":return"rpc.ankr.com/polygon";case"matic-mumbai":return"rpc.ankr.com/polygon_mumbai";case"optimism":return"rpc.ankr.com/optimism";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===s&&(n.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("AnkrProvider"),!0)),n}getRpcError(e,t){return"eth_sendRawTransaction"===e.method&&t&&t.error&&"INTERNAL_ERROR: could not replace existing tx"===t.error.message&&(t.error.message="replacement transaction underpriced"),super.getRpcError(e,t)}isCommunityResource(){return this.apiKey===s}}t.AnkrProvider=f},56082:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserProvider=void 0;const r=n(79551),a=n(89317);class i extends a.JsonRpcApiPollingProvider{#oe;constructor(e,t,n){const a=Object.assign({},null!=n?n:{},{batchMaxCount:1});(0,r.assertArgument)(e&&e.request,"invalid EIP-1193 provider","ethereum",e),super(t,a),this.#oe=async(t,n)=>{const r={method:t,params:n};this.emit("debug",{action:"sendEip1193Request",payload:r});try{const t=await e.request(r);return this.emit("debug",{action:"receiveEip1193Result",result:t}),t}catch(a){const e=new Error(a.message);throw e.code=a.code,e.data=a.data,e.payload=r,this.emit("debug",{action:"receiveEip1193Error",error:e}),e}}}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){(0,r.assertArgument)(!Array.isArray(e),"EIP-1193 does not support batch request","payload",e);try{const t=await this.#oe(e.method,e.params||[]);return[{id:e.id,result:t}]}catch(t){return[{id:e.id,error:{code:t.code,data:t.data,message:t.message}}]}}getRpcError(e,t){switch((t=JSON.parse(JSON.stringify(t))).error.code||-1){case 4001:t.error.message=`ethers-user-denied: ${t.error.message}`;break;case 4200:t.error.message=`ethers-unsupported: ${t.error.message}`}return super.getRpcError(e,t)}async hasSigner(e){null==e&&(e=0);const t=await this.send("eth_accounts",[]);return"number"===typeof e?t.length>e:(e=e.toLowerCase(),0!==t.filter((t=>t.toLowerCase()===e)).length)}async getSigner(e){if(null==e&&(e=0),!await this.hasSigner(e))try{await this.#oe("eth_requestAccounts",[])}catch(t){const e=t.payload;throw this.getRpcError(e,{id:e.id,error:t})}return await super.getSigner(e)}}t.BrowserProvider=i},69294:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChainstackProvider=void 0;const r=n(79551),a=n(125),i=n(17936),o=n(89317);function s(e){switch(e){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}(0,r.assertArgument)(!1,"unsupported network","network",e)}class f extends o.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");const n=i.Network.from(e);null==t&&(t=s(n.name));super(f.getRequest(n,t),n,{staticNetwork:n}),(0,r.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new f(e,this.apiKey)}catch(t){}return super._getProvider(e)}isCommunityResource(){return this.apiKey===s(this._network.name)}static getRequest(e,t){null==t&&(t=s(e.name));const n=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"ethereum-mainnet.core.chainstack.com";case"arbitrum":return"arbitrum-mainnet.core.chainstack.com";case"bnb":return"bsc-mainnet.core.chainstack.com";case"matic":return"polygon-mainnet.core.chainstack.com"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===s(e.name)&&(n.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("ChainstackProvider"),!0)),n}}t.ChainstackProvider=f},66860:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloudflareProvider=void 0;const r=n(79551),a=n(17936),i=n(89317);class o extends i.JsonRpcProvider{constructor(e){null==e&&(e="mainnet");const t=a.Network.from(e);(0,r.assertArgument)("mainnet"===t.name,"unsupported network","network",e),super("https://cloudflare-eth.com/",t,{staticNetwork:t})}}t.CloudflareProvider=o},17036:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EtherscanProvider=t.EtherscanPlugin=void 0;const r=n(48104),a=n(65145),i=n(60042),o=n(79551),s=n(49295),f=n(17936),c=n(23227),l=n(125);const u="org.ethers.plugins.provider.Etherscan";class d extends c.NetworkPlugin{baseUrl;constructor(e){super(u),(0,o.defineProperties)(this,{baseUrl:e})}clone(){return new d(this.baseUrl)}}t.EtherscanPlugin=d;const p=["enableCcipRead"];let h=1;class b extends s.AbstractProvider{network;apiKey;#se;constructor(e,t){const n=null!=t?t:null;super();const r=f.Network.from(e);this.#se=r.getPlugin(u),(0,o.defineProperties)(this,{apiKey:n,network:r}),this.getBaseUrl()}getBaseUrl(){if(this.#se)return this.#se.baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"holesky":return"https://api-holesky.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"base":return"https://api.basescan.org";case"base-sepolia":return"https://api-sepolia.basescan.org";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-amoy":return"https://api-amoy.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}(0,o.assertArgument)(!1,"unsupported network","network",this.network)}getUrl(e,t){const n=Object.keys(t).reduce(((e,n)=>{const r=t[n];return null!=r&&(e+=`&${n}=${r}`),e}),""),r=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${e}${n}${r}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}async detectNetwork(){return this.network}async fetch(e,t,n){const r=h++,a=n?this.getPostUrl():this.getUrl(e,t),i=n?this.getPostData(e,t):null;this.emit("debug",{action:"sendRequest",id:r,url:a,payload:i});const s=new o.FetchRequest(a);s.setThrottleParams({slotInterval:1e3}),s.retryFunc=(e,t,n)=>(this.isCommunityResource()&&(0,l.showThrottleMessage)("Etherscan"),Promise.resolve(!0)),s.processFunc=async(t,n)=>{const a=n.hasBody()?JSON.parse((0,o.toUtf8String)(n.body)):{},i=("string"===typeof a.result?a.result:"").toLowerCase().indexOf("rate limit")>=0;return"proxy"===e?a&&0==a.status&&"NOTOK"==a.message&&i&&(this.emit("debug",{action:"receiveError",id:r,reason:"proxy-NOTOK",error:a}),n.throwThrottleError(a.result,2e3)):i&&(this.emit("debug",{action:"receiveError",id:r,reason:"null result",error:a.result}),n.throwThrottleError(a.result,2e3)),n},i&&(s.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),s.body=Object.keys(i).map((e=>`${e}=${i[e]}`)).join("&"));const f=await s.send();try{f.assertOk()}catch(u){this.emit("debug",{action:"receiveError",id:r,error:u,reason:"assertOk"}),(0,o.assert)(!1,"response error","SERVER_ERROR",{request:s,response:f})}f.hasBody()||(this.emit("debug",{action:"receiveError",id:r,error:"missing body",reason:"null body"}),(0,o.assert)(!1,"missing response","SERVER_ERROR",{request:s,response:f}));const c=JSON.parse((0,o.toUtf8String)(f.body));return"proxy"===e?("2.0"!=c.jsonrpc&&(this.emit("debug",{action:"receiveError",id:r,result:c,reason:"invalid JSON-RPC"}),(0,o.assert)(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:s,response:f,info:{result:c}})),c.error&&(this.emit("debug",{action:"receiveError",id:r,result:c,reason:"JSON-RPC error"}),(0,o.assert)(!1,"error response","SERVER_ERROR",{request:s,response:f,info:{result:c}})),this.emit("debug",{action:"receiveRequest",id:r,result:c}),c.result):0!=c.status||"No records found"!==c.message&&"No transactions found"!==c.message?((1!=c.status||"string"===typeof c.message&&!c.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:r,result:c}),(0,o.assert)(!1,"error response","SERVER_ERROR",{request:s,response:f,info:{result:c}})),this.emit("debug",{action:"receiveRequest",id:r,result:c}),c.result):(this.emit("debug",{action:"receiveRequest",id:r,result:c}),c.result)}_getTransactionPostData(e){const t={};for(let n in e){if(p.indexOf(n)>=0)continue;if(null==e[n])continue;let r=e[n];if(("type"!==n||0!==r)&&("blockTag"!==n||"latest"!==r)){if({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[n])r=(0,o.toQuantity)(r);else if("accessList"===n)r="["+(0,i.accessListify)(r).map((e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`)).join(",")+"]";else if("blobVersionedHashes"===n){if(0===r.length)continue;(0,o.assert)(!1,"Etherscan API does not support blobVersionedHashes","UNSUPPORTED_OPERATION",{operation:"_getTransactionPostData",info:{transaction:e}})}else r=(0,o.hexlify)(r);t[n]=r}}return t}_checkError(e,t,n){let a="";if((0,o.isError)(t,"SERVER_ERROR")){try{a=t.info.result.error.message}catch(s){}if(!a)try{a=t.info.message}catch(s){}}if("estimateGas"===e.method&&!a.match(/revert/i)&&a.match(/insufficient funds/i)&&(0,o.assert)(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.transaction}),("call"===e.method||"estimateGas"===e.method)&&a.match(/execution reverted/i)){let n="";try{n=t.info.result.error.data}catch(t){}const a=r.AbiCoder.getBuiltinCallException(e.method,e.transaction,n);throw a.info={request:e,error:t},a}if(a&&"broadcastTransaction"===e.method){const t=i.Transaction.from(e.signedTransaction);a.match(/replacement/i)&&a.match(/underpriced/i)&&(0,o.assert)(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t}),a.match(/insufficient funds/)&&(0,o.assert)(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t}),a.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&(0,o.assert)(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:t})}throw t}async _detectNetwork(){return this.network}async _perform(e){switch(e.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if("mainnet"===this.network.name)return"1000000000";if("optimism"===this.network.name)return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:e.address,tag:e.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:e.address,tag:e.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:e.address,tag:e.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:e.address,position:e.position,tag:e.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:e.signedTransaction},!0).catch((t=>this._checkError(e,t,e.signedTransaction)));case"getBlock":if("blockTag"in e)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:e.blockTag,boolean:e.includeTransactions?"true":"false"});(0,o.assert)(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:e.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:e.hash});case"call":{if("latest"!==e.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const n=this._getTransactionPostData(e.transaction);n.module="proxy",n.action="eth_call";try{return await this.fetch("proxy",n,!0)}catch(t){return this._checkError(e,t,e.transaction)}}case"estimateGas":{const n=this._getTransactionPostData(e.transaction);n.module="proxy",n.action="eth_estimateGas";try{return await this.fetch("proxy",n,!0)}catch(t){return this._checkError(e,t,e.transaction)}}}return super._perform(e)}async getNetwork(){return this.network}async getEtherPrice(){return"mainnet"!==this.network.name?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(e){let t=this._getAddress(e);var n;(n=t)&&"function"===typeof n.then&&(t=await t);try{const e=await this.fetch("contract",{action:"getabi",address:t}),n=JSON.parse(e);return new a.Contract(t,n,this)}catch(r){return null}}isCommunityResource(){return null==this.apiKey}}t.EtherscanProvider=b},40897:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FallbackProvider=void 0;const r=n(79551),a=n(49295),i=n(17936),o=BigInt("1"),s=BigInt("2");function f(){return(new Date).getTime()}function c(e){return JSON.stringify(e,((e,t)=>"bigint"===typeof t?{type:"bigint",value:t.toString()}:t))}const l={stallTimeout:400,priority:1,weight:1},u={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};function d(e){if(null==e)return"null";if(Array.isArray(e))return"["+e.map(d).join(",")+"]";if("object"===typeof e&&"function"===typeof e.toJSON)return d(e.toJSON());switch(typeof e){case"boolean":case"symbol":return e.toString();case"bigint":case"number":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{const t=Object.keys(e);return t.sort(),"{"+t.map((t=>`${JSON.stringify(t)}:${d(e[t])}`)).join(",")+"}"}}throw console.log("Could not serialize",e),new Error("Hmm...")}function p(e){if("error"in e){const t=e.error;return{tag:d(t),value:t}}const t=e.result;return{tag:d(t),value:t}}function h(e,t){const n=new Map;for(const{value:a,tag:i,weight:o}of t){const e=n.get(i)||{value:a,weight:0};e.weight+=o,n.set(i,e)}let r=null;for(const a of n.values())a.weight>=e&&(!r||a.weight>r.weight)&&(r=a);if(r)return r.value}function b(e,t){let n=0;const r=new Map;let a=null;const i=[];for(const{value:o,tag:s,weight:c}of t)if(o instanceof Error){const e=r.get(s)||{value:o,weight:0};e.weight+=c,r.set(s,e),(null==a||e.weight>a.weight)&&(a=e)}else i.push(BigInt(o)),n+=c;if(n<e)return a&&a.weight>=e?a.value:void 0;i.sort(((e,t)=>e<t?-1:t>e?1:0));const f=Math.floor(i.length/2);return i.length%2?i[f]:(i[f-1]+i[f]+o)/s}function y(e,t){const n=h(e,t);if(void 0!==n)return n;for(const r of t)if(r.value)return r.value}class m extends a.AbstractProvider{quorum;eventQuorum;eventWorkers;#fe;#ce;#le;constructor(e,t,n){super(t,n),this.#fe=e.map((e=>e instanceof a.AbstractProvider?Object.assign({provider:e},l,u):Object.assign({},l,e,u))),this.#ce=-2,this.#le=null,n&&null!=n.quorum?this.quorum=n.quorum:this.quorum=Math.ceil(this.#fe.reduce(((e,t)=>e+=t.weight),0)/2),this.eventQuorum=1,this.eventWorkers=1,(0,r.assertArgument)(this.quorum<=this.#fe.reduce(((e,t)=>e+t.weight),0),"quorum exceed provider weight","quorum",this.quorum)}get providerConfigs(){return this.#fe.map((e=>{const t=Object.assign({},e);for(const n in t)"_"===n[0]&&delete t[n];return t}))}async _detectNetwork(){return i.Network.from((0,r.getBigInt)(await this._perform({method:"chainId"})))}async _translatePerform(e,t){switch(t.method){case"broadcastTransaction":return await e.broadcastTransaction(t.signedTransaction);case"call":return await e.call(Object.assign({},t.transaction,{blockTag:t.blockTag}));case"chainId":return(await e.getNetwork()).chainId;case"estimateGas":return await e.estimateGas(t.transaction);case"getBalance":return await e.getBalance(t.address,t.blockTag);case"getBlock":{const n="blockHash"in t?t.blockHash:t.blockTag;return await e.getBlock(n,t.includeTransactions)}case"getBlockNumber":return await e.getBlockNumber();case"getCode":return await e.getCode(t.address,t.blockTag);case"getGasPrice":return(await e.getFeeData()).gasPrice;case"getPriorityFee":return(await e.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await e.getLogs(t.filter);case"getStorage":return await e.getStorage(t.address,t.position,t.blockTag);case"getTransaction":return await e.getTransaction(t.hash);case"getTransactionCount":return await e.getTransactionCount(t.address,t.blockTag);case"getTransactionReceipt":return await e.getTransactionReceipt(t.hash);case"getTransactionResult":return await e.getTransactionResult(t.hash)}}#ue(e){const t=Array.from(e).map((e=>e.config)),n=this.#fe.slice();!function(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}}(n),n.sort(((e,t)=>e.priority-t.priority));for(const r of n)if(!r._lastFatalError&&-1===t.indexOf(r))return r;return null}#de(e,t){const n=this.#ue(e);if(null==n)return null;const r={config:n,result:null,didBump:!1,perform:null,staller:null},a=f();return r.perform=(async()=>{try{n.requests++;const e=await this._translatePerform(n.provider,t);r.result={result:e}}catch(i){n.errorResponses++,r.result={error:i}}const e=f()-a;n._totalTime+=e,n.rollingDuration=.95*n.rollingDuration+.05*e,r.perform=null})(),r.staller=(async()=>{var e;await(e=n.stallTimeout,new Promise((t=>{setTimeout(t,e)}))),r.staller=null})(),e.add(r),r}async#pe(){let e=this.#le;if(!e){const t=[];this.#fe.forEach((e=>{t.push((async()=>{await async function(e,t){for(;(e.blockNumber<0||e.blockNumber<t)&&(e._updateNumber||(e._updateNumber=(async()=>{try{const t=await e.provider.getBlockNumber();t>e.blockNumber&&(e.blockNumber=t)}catch(t){e.blockNumber=-2,e._lastFatalError=t,e._lastFatalErrorTimestamp=f()}e._updateNumber=null})()),await e._updateNumber,e.outOfSync++,!e._lastFatalError););}(e,0),e._lastFatalError||(e._network=await e.provider.getNetwork())})())})),this.#le=e=(async()=>{await Promise.all(t);let e=null;for(const t of this.#fe){if(t._lastFatalError)continue;const n=t._network;null==e?e=n.chainId:n.chainId!==e&&(0,r.assert)(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})()}await e}async#he(e,t){const n=[];for(const r of e)if(null!=r.result){const{tag:e,value:t}=p(r.result);n.push({tag:e,value:t,weight:r.config.weight})}if(!(n.reduce(((e,t)=>e+t.weight),0)<this.quorum)){switch(t.method){case"getBlockNumber":{-2===this.#ce&&(this.#ce=Math.ceil((0,r.getNumber)(b(this.quorum,this.#fe.filter((e=>!e._lastFatalError)).map((e=>({value:e.blockNumber,tag:(0,r.getNumber)(e.blockNumber).toString(),weight:e.weight})))))));const e=function(e,t){if(1===e)return(0,r.getNumber)(b(e,t),"%internal");const n=new Map,a=(e,t)=>{const r=n.get(e)||{result:e,weight:0};r.weight+=t,n.set(e,r)};for(const{weight:s,value:f}of t){const e=(0,r.getNumber)(f);a(e-1,s),a(e,s),a(e+1,s)}let i,o=0;for(const{weight:r,result:s}of n.values())r>=e&&(r>o||null!=i&&r===o&&s>i)&&(o=r,i=s);return i}(this.quorum,n);if(void 0===e)return;return e>this.#ce&&(this.#ce=e),this.#ce}case"getGasPrice":case"getPriorityFee":case"estimateGas":return b(this.quorum,n);case"getBlock":return"blockTag"in t&&"pending"===t.blockTag?y(this.quorum,n):h(this.quorum,n);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return h(this.quorum,n);case"broadcastTransaction":return y(this.quorum,n)}(0,r.assert)(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${c(t.method)})`})}}async#be(e,t){if(0===e.size)throw new Error("no runners?!");const n=[];let a=0;for(const r of e)r.perform&&n.push(r.perform),r.staller?n.push(r.staller):r.didBump||(r.didBump=!0,a++);const i=await this.#he(e,t);if(void 0!==i){if(i instanceof Error)throw i;return i}for(let r=0;r<a;r++)this.#de(e,t);return(0,r.assert)(n.length>0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:t,results:Array.from(e).map((e=>c(e.result)))}}),await Promise.race(n),await this.#be(e,t)}async _perform(e){if("broadcastTransaction"===e.method){const t=this.#fe.map((e=>null)),n=this.#fe.map((async(n,r)=>{let{provider:a,weight:i}=n;try{const n=await a._perform(e);t[r]=Object.assign(p({result:n}),{weight:i})}catch(o){t[r]=Object.assign(p({error:o}),{weight:i})}}));for(;;){const e=t.filter((e=>null!=e));for(const{value:t}of e)if(!(t instanceof Error))return t;const a=h(this.quorum,t.filter((e=>null!=e)));if((0,r.isError)(a,"INSUFFICIENT_FUNDS"))throw a;const i=n.filter(((e,n)=>null==t[n]));if(0===i.length)break;await Promise.race(i)}const a=y(this.quorum,t);if((0,r.assert)(void 0!==a,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:e,results:t.map(c)}}),a instanceof Error)throw a;return a}await this.#pe();const t=new Set;let n=0;for(;;){const r=this.#de(t,e);if(null==r)break;if(n+=r.config.weight,n>=this.quorum)break}const a=await this.#be(t,e);for(const r of t)r.perform&&null==r.result&&r.config.lateResponses++;return a}async destroy(){for(const{provider:e}of this.#fe)e.destroy();super.destroy()}}t.FallbackProvider=m},21414:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfuraProvider=t.InfuraWebSocketProvider=void 0;const r=n(79551),a=n(125),i=n(17936),o=n(89317),s=n(25569),f="84842078b09946638c03157f83405213";class c extends s.WebSocketProvider{projectId;projectSecret;constructor(e,t){const n=new l(e,t),a=n._getConnection();(0,r.assert)(!a.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"});super(a.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),n._network),(0,r.defineProperties)(this,{projectId:n.projectId,projectSecret:n.projectSecret})}isCommunityResource(){return this.projectId===f}}t.InfuraWebSocketProvider=c;class l extends o.JsonRpcProvider{projectId;projectSecret;constructor(e,t,n){null==e&&(e="mainnet");const a=i.Network.from(e);null==t&&(t=f),null==n&&(n=null);super(l.getRequest(a,t,n),a,{staticNetwork:a}),(0,r.defineProperties)(this,{projectId:t,projectSecret:n})}_getProvider(e){try{return new l(e,this.projectId,this.projectSecret)}catch(t){}return super._getProvider(e)}isCommunityResource(){return this.projectId===f}static getWebSocketProvider(e,t){return new c(e,t)}static getRequest(e,t,n){null==t&&(t=f),null==n&&(n=null);const i=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"arbitrum-sepolia":return"arbitrum-sepolia.infura.io";case"base":return"base-mainnet.infura.io";case"base-goerlia":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bnbsmartchain-mainnet.infura.io";case"bnbt":return"bnbsmartchain-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"linea-sepolia":return"linea-sepolia.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-amoy":return"polygon-amoy.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io";case"optimism-sepolia":return"optimism-sepolia.infura.io"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v3/${t}`);return i.allowGzip=!0,n&&i.setCredentials("",n),t===f&&(i.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("InfuraProvider"),!0)),i}}t.InfuraProvider=l},92135:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IpcSocketProvider=void 0;t.IpcSocketProvider=undefined},89317:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JsonRpcProvider=t.JsonRpcApiPollingProvider=t.JsonRpcApiProvider=t.JsonRpcSigner=void 0;const r=n(48104),a=n(35460),i=n(75479),o=n(60042),s=n(79551),f=n(49295),c=n(16898),l=n(17936),u=n(1049),d=n(79956),p="bigint,boolean,function,number,string,symbol".split(/,/g);function h(e){if(null==e||p.indexOf(typeof e)>=0)return e;if("function"===typeof e.getAddress)return e;if(Array.isArray(e))return e.map(h);if("object"===typeof e)return Object.keys(e).reduce(((t,n)=>(t[n]=e[n],t)),{});throw new Error(`should not happen: ${e} (${typeof e})`)}function b(e){return new Promise((t=>{setTimeout(t,e)}))}function y(e){return e?e.toLowerCase():e}function m(e){return e&&"number"===typeof e.pollingInterval}const g={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class v extends c.AbstractSigner{address;constructor(e,t){super(e),t=(0,a.getAddress)(t),(0,s.defineProperties)(this,{address:t})}connect(e){(0,s.assert)(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(e){return await this.populateCall(e)}async sendUncheckedTransaction(e){const t=h(e),n=[];if(t.from){const r=t.from;n.push((async()=>{const n=await(0,a.resolveAddress)(r,this.provider);(0,s.assertArgument)(null!=n&&n.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=n})())}else t.from=this.address;if(null==t.gasLimit&&n.push((async()=>{t.gasLimit=await this.provider.estimateGas({...t,from:this.address})})()),null!=t.to){const e=t.to;n.push((async()=>{t.to=await(0,a.resolveAddress)(e,this.provider)})())}n.length&&await Promise.all(n);const r=this.provider.getRpcTransaction(t);return this.provider.send("eth_sendTransaction",[r])}async sendTransaction(e){const t=await this.provider.getBlockNumber(),n=await this.sendUncheckedTransaction(e);return await new Promise(((e,r)=>{const a=[1e3,100];let i=0;const o=async()=>{try{const r=await this.provider.getTransaction(n);if(null!=r)return void e(r.replaceableTransaction(t))}catch(f){if((0,s.isError)(f,"CANCELLED")||(0,s.isError)(f,"BAD_DATA")||(0,s.isError)(f,"NETWORK_ERROR"))return null==f.info&&(f.info={}),f.info.sendTransactionHash=n,void r(f);if((0,s.isError)(f,"INVALID_ARGUMENT")&&(i++,null==f.info&&(f.info={}),f.info.sendTransactionHash=n,i>10))return void r(f);this.provider.emit("error",(0,s.makeError)("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:f}))}this.provider._setTimeout((()=>{o()}),a.pop()||4e3)};o()}))}async signTransaction(e){const t=h(e);if(t.from){const n=await(0,a.resolveAddress)(t.from,this.provider);(0,s.assertArgument)(null!=n&&n.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=n}else t.from=this.address;const n=this.provider.getRpcTransaction(t);return await this.provider.send("eth_signTransaction",[n])}async signMessage(e){const t="string"===typeof e?(0,s.toUtf8Bytes)(e):e;return await this.provider.send("personal_sign",[(0,s.hexlify)(t),this.address.toLowerCase()])}async signTypedData(e,t,n){const r=h(n),o=await i.TypedDataEncoder.resolveNames(e,t,r,(async e=>{const t=await(0,a.resolveAddress)(e);return(0,s.assertArgument)(null!=t,"TypedData does not support null address","value",e),t}));return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(i.TypedDataEncoder.getPayload(o.domain,t,o.value))])}async unlock(e){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),e,null])}async _legacySignMessage(e){const t="string"===typeof e?(0,s.toUtf8Bytes)(e):e;return await this.provider.send("eth_sign",[this.address.toLowerCase(),(0,s.hexlify)(t)])}}t.JsonRpcSigner=v;class w extends f.AbstractProvider{#w;#ye;#me;#ge;#ve;#we;#Ee;#Ae(){if(this.#ge)return;const e=1===this._getOption("batchMaxCount")?0:this._getOption("batchStallTime");this.#ge=setTimeout((()=>{this.#ge=null;const e=this.#me;for(this.#me=[];e.length;){const t=[e.shift()];for(;e.length&&t.length!==this.#w.batchMaxCount;){t.push(e.shift());if(JSON.stringify(t.map((e=>e.payload))).length>this.#w.batchMaxSize){e.unshift(t.pop());break}}(async()=>{const e=1===t.length?t[0].payload:t.map((e=>e.payload));this.emit("debug",{action:"sendRpcPayload",payload:e});try{const n=await this._send(e);this.emit("debug",{action:"receiveRpcResult",result:n});for(const{resolve:e,reject:r,payload:a}of t){if(this.destroyed){r((0,s.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:a.method}));continue}const t=n.filter((e=>e.id===a.id))[0];if(null!=t)"error"in t?r(this.getRpcError(a,t)):e(t.result);else{const e=(0,s.makeError)("missing response for request","BAD_DATA",{value:n,info:{payload:a}});this.emit("error",e),r(e)}}}catch(n){this.emit("debug",{action:"receiveRpcError",error:n});for(const{reject:e}of t)e(n)}})()}}),e)}constructor(e,t){super(e,t),this.#ye=1,this.#w=Object.assign({},g,t||{}),this.#me=[],this.#ge=null,this.#we=null,this.#Ee=null;{let e=null;const t=new Promise((t=>{e=t}));this.#ve={promise:t,resolve:e}}const n=this._getOption("staticNetwork");"boolean"===typeof n?((0,s.assertArgument)(!n||"any"!==e,"staticNetwork cannot be used on special network 'any'","options",t),n&&null!=e&&(this.#we=l.Network.from(e))):n&&((0,s.assertArgument)(null==e||n.matches(e),"staticNetwork MUST match network object","options",t),this.#we=n)}_getOption(e){return this.#w[e]}get _network(){return(0,s.assert)(this.#we,"network is not available yet","NETWORK_ERROR"),this.#we}async _perform(e){if("call"===e.method||"estimateGas"===e.method){let t=e.transaction;if(t&&null!=t.type&&(0,s.getBigInt)(t.type)&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){const n=await this.getFeeData();null==n.maxFeePerGas&&null==n.maxPriorityFeePerGas&&(e=Object.assign({},e,{transaction:Object.assign({},t,{type:void 0})}))}}const t=this.getRpcRequest(e);return null!=t?await this.send(t.method,t.args):super._perform(e)}async _detectNetwork(){const e=this._getOption("staticNetwork");if(e){if(!0!==e)return e;if(this.#we)return this.#we}return this.#Ee?await this.#Ee:this.ready?(this.#Ee=(async()=>{try{const e=l.Network.from((0,s.getBigInt)(await this.send("eth_chainId",[])));return this.#Ee=null,e}catch(e){throw this.#Ee=null,e}})(),await this.#Ee):(this.#Ee=(async()=>{const e={id:this.#ye++,method:"eth_chainId",params:[],jsonrpc:"2.0"};let t;this.emit("debug",{action:"sendRpcPayload",payload:e});try{t=(await this._send(e))[0],this.#Ee=null}catch(n){throw this.#Ee=null,this.emit("debug",{action:"receiveRpcError",error:n}),n}if(this.emit("debug",{action:"receiveRpcResult",result:t}),"result"in t)return l.Network.from((0,s.getBigInt)(t.result));throw this.getRpcError(e,t)})(),await this.#Ee)}_start(){null!=this.#ve&&null!=this.#ve.resolve&&(this.#ve.resolve(),this.#ve=null,(async()=>{for(;null==this.#we&&!this.destroyed;)try{this.#we=await this._detectNetwork()}catch(e){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",(0,s.makeError)("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:e}})),await b(1e3)}this.#Ae()})())}async _waitUntilReady(){if(null!=this.#ve)return await this.#ve.promise}_getSubscriber(e){return"pending"===e.type?new u.FilterIdPendingSubscriber(this):"event"===e.type?this._getOption("polling")?new d.PollingEventSubscriber(this,e.filter):new u.FilterIdEventSubscriber(this,e.filter):"orphan"===e.type&&"drop-log"===e.filter.orphan?new f.UnmanagedSubscriber("orphan"):super._getSubscriber(e)}get ready(){return null==this.#ve}getRpcTransaction(e){const t={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((n=>{if(null==e[n])return;let r=n;"gasLimit"===n&&(r="gas"),t[r]=(0,s.toQuantity)((0,s.getBigInt)(e[n],`tx.${n}`))})),["from","to","data"].forEach((n=>{null!=e[n]&&(t[n]=(0,s.hexlify)(e[n]))})),e.accessList&&(t.accessList=(0,o.accessListify)(e.accessList)),e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.map((e=>e.toLowerCase()))),t}getRpcRequest(e){switch(e.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[y(e.address),e.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[y(e.address),e.blockTag]};case"getCode":return{method:"eth_getCode",args:[y(e.address),e.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[y(e.address),"0x"+e.position.toString(16),e.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[e.signedTransaction]};case"getBlock":if("blockTag"in e)return{method:"eth_getBlockByNumber",args:[e.blockTag,!!e.includeTransactions]};if("blockHash"in e)return{method:"eth_getBlockByHash",args:[e.blockHash,!!e.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[e.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[e.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(e.transaction),e.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(e.transaction)]};case"getLogs":return e.filter&&null!=e.filter.address&&(Array.isArray(e.filter.address)?e.filter.address=e.filter.address.map(y):e.filter.address=y(e.filter.address)),{method:"eth_getLogs",args:[e.filter]}}return null}getRpcError(e,t){const{method:n}=e,{error:a}=t;if("eth_estimateGas"===n&&a.message){const t=a.message;if(!t.match(/revert/i)&&t.match(/insufficient funds/i))return(0,s.makeError)("insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.params[0],info:{payload:e,error:a}})}if("eth_call"===n||"eth_estimateGas"===n){const t=A(a),i=r.AbiCoder.getBuiltinCallException("eth_call"===n?"call":"estimateGas",e.params[0],t?t.data:null);return i.info={error:a,payload:e},i}const i=JSON.stringify(function(e){const t=[];return P(e,t),t}(a));if("string"===typeof a.message&&a.message.match(/user denied|ethers-user-denied/i)){const t={eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"};return(0,s.makeError)("user rejected action","ACTION_REJECTED",{action:t[n]||"unknown",reason:"rejected",info:{payload:e,error:a}})}if("eth_sendRawTransaction"===n||"eth_sendTransaction"===n){const t=e.params[0];if(i.match(/insufficient funds|base fee exceeds gas limit/i))return(0,s.makeError)("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t,info:{error:a}});if(i.match(/nonce/i)&&i.match(/too low/i))return(0,s.makeError)("nonce has already been used","NONCE_EXPIRED",{transaction:t,info:{error:a}});if(i.match(/replacement transaction/i)&&i.match(/underpriced/i))return(0,s.makeError)("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t,info:{error:a}});if(i.match(/only replay-protected/i))return(0,s.makeError)("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:n,info:{transaction:t,info:{error:a}}})}let o=!!i.match(/the method .* does not exist/i);return o||a&&a.details&&a.details.startsWith("Unauthorized method:")&&(o=!0),o?(0,s.makeError)("unsupported operation","UNSUPPORTED_OPERATION",{operation:e.method,info:{error:a,payload:e}}):(0,s.makeError)("could not coalesce error","UNKNOWN_ERROR",{error:a,payload:e})}send(e,t){if(this.destroyed)return Promise.reject((0,s.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e}));const n=this.#ye++,r=new Promise(((r,a)=>{this.#me.push({resolve:r,reject:a,payload:{method:e,params:t,id:n,jsonrpc:"2.0"}})}));return this.#Ae(),r}async getSigner(e){null==e&&(e=0);const t=this.send("eth_accounts",[]);if("number"===typeof e){const n=await t;if(e>=n.length)throw new Error("no such account");return new v(this,n[e])}const{accounts:n}=await(0,s.resolveProperties)({network:this.getNetwork(),accounts:t});e=(0,a.getAddress)(e);for(const r of n)if((0,a.getAddress)(r)===e)return new v(this,e);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map((e=>new v(this,e)))}destroy(){this.#ge&&(clearTimeout(this.#ge),this.#ge=null);for(const{payload:e,reject:t}of this.#me)t((0,s.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e.method}));this.#me=[],super.destroy()}}t.JsonRpcApiProvider=w;class E extends w{#Pe;constructor(e,t){super(e,t);let n=this._getOption("pollingInterval");null==n&&(n=g.pollingInterval),this.#Pe=n}_getSubscriber(e){const t=super._getSubscriber(e);return m(t)&&(t.pollingInterval=this.#Pe),t}get pollingInterval(){return this.#Pe}set pollingInterval(e){if(!Number.isInteger(e)||e<0)throw new Error("invalid interval");this.#Pe=e,this._forEachSubscriber((e=>{m(e)&&(e.pollingInterval=this.#Pe)}))}}t.JsonRpcApiPollingProvider=E;function A(e){if(null==e)return null;if("string"===typeof e.message&&e.message.match(/revert/i)&&(0,s.isHexString)(e.data))return{message:e.message,data:e.data};if("object"===typeof e){for(const t in e){const n=A(e[t]);if(n)return n}return null}if("string"===typeof e)try{return A(JSON.parse(e))}catch(t){}return null}function P(e,t){if(null!=e){if("string"===typeof e.message&&t.push(e.message),"object"===typeof e)for(const n in e)P(e[n],t);if("string"===typeof e)try{return P(JSON.parse(e),t)}catch(n){}}}t.JsonRpcProvider=class extends E{#_e;constructor(e,t,n){null==e&&(e="http://localhost:8545"),super(t,n),this.#_e="string"===typeof e?new s.FetchRequest(e):e.clone()}_getConnection(){return this.#_e.clone()}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){const t=this._getConnection();t.body=JSON.stringify(e),t.setHeader("content-type","application/json");const n=await t.send();n.assertOk();let r=n.bodyJson;return Array.isArray(r)||(r=[r]),r}}},41895:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PocketProvider=void 0;const r=n(79551),a=n(125),i=n(17936),o=n(89317),s="62e1ad51b37b8e00394bda3b";class f extends o.JsonRpcProvider{applicationId;applicationSecret;constructor(e,t,n){null==e&&(e="mainnet");const a=i.Network.from(e);null==t&&(t=s),null==n&&(n=null);const o={staticNetwork:a};super(f.getRequest(a,t,n),a,o),(0,r.defineProperties)(this,{applicationId:t,applicationSecret:n})}_getProvider(e){try{return new f(e,this.applicationId,this.applicationSecret)}catch(t){}return super._getProvider(e)}static getRequest(e,t,n){null==t&&(t=s);const i=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v1/lb/${t}`);return i.allowGzip=!0,n&&i.setCredentials("",n),t===s&&(i.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("PocketProvider"),!0)),i}isCommunityResource(){return this.applicationId===s}}t.PocketProvider=f},58753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuickNodeProvider=void 0;const r=n(79551),a=n(125),i=n(17936),o=n(89317),s="919b412a057b5e9c9b6dce193c5a60242d6efadb";class f extends o.JsonRpcProvider{token;constructor(e,t){null==e&&(e="mainnet");const n=i.Network.from(e);null==t&&(t=s);super(f.getRequest(n,t),n,{staticNetwork:n}),(0,r.defineProperties)(this,{token:t})}_getProvider(e){try{return new f(e,this.token)}catch(t){}return super._getProvider(e)}isCommunityResource(){return this.token===s}static getRequest(e,t){null==t&&(t=s);const n=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"sepolia":return"ethers.ethereum-sepolia.quiknode.pro";case"holesky":return"ethers.ethereum-holesky.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"arbitrum-sepolia":return"ethers.arbitrum-sepolia.quiknode.pro";case"base":return"ethers.base-mainnet.quiknode.pro";case"base-goerli":return"ethers.base-goerli.quiknode.pro";case"base-spolia":return"ethers.base-sepolia.quiknode.pro";case"bnb":return"ethers.bsc.quiknode.pro";case"bnbt":return"ethers.bsc-testnet.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro";case"optimism-sepolia":return"ethers.optimism-sepolia.quiknode.pro";case"xdai":return"ethers.xdai.quiknode.pro"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===s&&(n.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("QuickNodeProvider"),!0)),n}}t.QuickNodeProvider=f},35458:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SocketProvider=t.SocketEventSubscriber=t.SocketPendingSubscriber=t.SocketBlockSubscriber=t.SocketSubscriber=void 0;const r=n(49295),a=n(79551),i=n(89317);class o{#Te;#E;get filter(){return JSON.parse(this.#E)}#ke;#Ce;#xe;constructor(e,t){this.#Te=e,this.#E=JSON.stringify(t),this.#ke=null,this.#Ce=null,this.#xe=null}start(){this.#ke=this.#Te.send("eth_subscribe",this.filter).then((e=>(this.#Te._register(e,this),e)))}stop(){this.#ke.then((e=>{this.#Te.destroyed||this.#Te.send("eth_unsubscribe",[e])})),this.#ke=null}pause(e){(0,a.assert)(e,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),this.#Ce=!!e}resume(){this.#Ce=null}_handleMessage(e){if(null!=this.#ke&&null===this.#Ce){let t=this.#xe;t=null==t?this._emit(this.#Te,e):t.then((async()=>{await this._emit(this.#Te,e)})),this.#xe=t.then((()=>{this.#xe===t&&(this.#xe=null)}))}}async _emit(e,t){throw new Error("sub-classes must implemente this; _emit")}}t.SocketSubscriber=o;class s extends o{constructor(e){super(e,["newHeads"])}async _emit(e,t){e.emit("block",parseInt(t.number))}}t.SocketBlockSubscriber=s;class f extends o{constructor(e){super(e,["newPendingTransactions"])}async _emit(e,t){e.emit("pending",t)}}t.SocketPendingSubscriber=f;class c extends o{#Oe;get logFilter(){return JSON.parse(this.#Oe)}constructor(e,t){super(e,["logs",t]),this.#Oe=JSON.stringify(t)}async _emit(e,t){e.emit(this.logFilter,e._wrapLog(t,e._network))}}t.SocketEventSubscriber=c;class l extends i.JsonRpcApiProvider{#Se;#I;#Re;constructor(e,t){const n=Object.assign({},null!=t?t:{});(0,a.assertArgument)(null==n.batchMaxCount||1===n.batchMaxCount,"sockets-based providers do not support batches","options.batchMaxCount",t),n.batchMaxCount=1,null==n.staticNetwork&&(n.staticNetwork=!0),super(e,n),this.#Se=new Map,this.#I=new Map,this.#Re=new Map}_getSubscriber(e){switch(e.type){case"close":return new r.UnmanagedSubscriber("close");case"block":return new s(this);case"pending":return new f(this);case"event":return new c(this,e.filter);case"orphan":if("drop-log"===e.filter.orphan)return new r.UnmanagedSubscriber("drop-log")}return super._getSubscriber(e)}_register(e,t){this.#I.set(e,t);const n=this.#Re.get(e);if(n){for(const e of n)t._handleMessage(e);this.#Re.delete(e)}}async _send(e){(0,a.assertArgument)(!Array.isArray(e),"WebSocket does not support batch send","payload",e);const t=new Promise(((t,n)=>{this.#Se.set(e.id,{payload:e,resolve:t,reject:n})}));return await this._waitUntilReady(),await this._write(JSON.stringify(e)),[await t]}async _processMessage(e){const t=JSON.parse(e);if(t&&"object"===typeof t&&"id"in t){const e=this.#Se.get(t.id);if(null==e)return void this.emit("error",(0,a.makeError)("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:t}));this.#Se.delete(t.id),e.resolve(t)}else{if(!t||"eth_subscription"!==t.method)return void this.emit("error",(0,a.makeError)("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:t}));{const e=t.params.subscription,n=this.#I.get(e);if(n)n._handleMessage(t.params.result);else{let n=this.#Re.get(e);null==n&&(n=[],this.#Re.set(e,n)),n.push(t.params.result)}}}}async _write(e){throw new Error("sub-classes must override this")}}t.SocketProvider=l},25569:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocketProvider=void 0;const r=n(80740),a=n(35458);class i extends a.SocketProvider{#_e;#Ie;get websocket(){if(null==this.#Ie)throw new Error("websocket closed");return this.#Ie}constructor(e,t,n){super(t,n),"string"===typeof e?(this.#_e=()=>new r.WebSocket(e),this.#Ie=this.#_e()):"function"===typeof e?(this.#_e=e,this.#Ie=e()):(this.#_e=null,this.#Ie=e),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(e){console.log("failed to start WebsocketProvider",e)}},this.websocket.onmessage=e=>{this._processMessage(e.data)}}async _write(e){this.websocket.send(e)}async destroy(){null!=this.#Ie&&(this.#Ie.close(),this.#Ie=null),super.destroy()}}t.WebSocketProvider=i},95503:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionResponse=t.TransactionReceipt=t.Log=t.Block=t.copyRequest=t.FeeData=void 0;const r=n(79551),a=n(60042),i=BigInt(0);function o(e){return null==e?null:e}function s(e){return null==e?null:e.toString()}t.FeeData=class{gasPrice;maxFeePerGas;maxPriorityFeePerGas;constructor(e,t,n){(0,r.defineProperties)(this,{gasPrice:o(e),maxFeePerGas:o(t),maxPriorityFeePerGas:o(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:s(e),maxFeePerGas:s(t),maxPriorityFeePerGas:s(n)}}},t.copyRequest=function(e){const t={};e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=(0,r.hexlify)(e.data));const n="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const a of n)a in e&&null!=e[a]&&(t[a]=(0,r.getBigInt)(e[a],`request.${a}`));const i="type,nonce".split(/,/);for(const a of i)a in e&&null!=e[a]&&(t[a]=(0,r.getNumber)(e[a],`request.${a}`));return e.accessList&&(t.accessList=(0,a.accessListify)(e.accessList)),"blockTag"in e&&(t.blockTag=e.blockTag),"enableCcipRead"in e&&(t.enableCcipRead=!!e.enableCcipRead),"customData"in e&&(t.customData=e.customData),"blobVersionedHashes"in e&&e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.slice()),"kzg"in e&&(t.kzg=e.kzg),"blobs"in e&&e.blobs&&(t.blobs=e.blobs.map((e=>(0,r.isBytesLike)(e)?(0,r.hexlify)(e):Object.assign({},e)))),t};class f{provider;number;hash;timestamp;parentHash;parentBeaconBlockRoot;nonce;difficulty;gasLimit;gasUsed;stateRoot;receiptsRoot;blobGasUsed;excessBlobGas;miner;prevRandao;extraData;baseFeePerGas;#Ne;constructor(e,t){this.#Ne=e.transactions.map((e=>"string"!==typeof e?new u(e,t):e)),(0,r.defineProperties)(this,{provider:t,hash:o(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:o(e.prevRandao),extraData:e.extraData,baseFeePerGas:o(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return this.#Ne.map((e=>"string"===typeof e?e:e.hash))}get prefetchedTransactions(){const e=this.#Ne.slice();return 0===e.length?[]:((0,r.assert)("object"===typeof e[0],"transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:t,extraData:n,gasLimit:r,gasUsed:a,hash:i,miner:o,prevRandao:f,nonce:c,number:l,parentHash:u,parentBeaconBlockRoot:d,stateRoot:p,receiptsRoot:h,timestamp:b,transactions:y}=this;return{_type:"Block",baseFeePerGas:s(e),difficulty:s(t),extraData:n,gasLimit:s(r),gasUsed:s(a),blobGasUsed:s(this.blobGasUsed),excessBlobGas:s(this.excessBlobGas),hash:i,miner:o,prevRandao:f,nonce:c,number:l,parentHash:u,timestamp:b,parentBeaconBlockRoot:d,stateRoot:p,receiptsRoot:h,transactions:y}}[Symbol.iterator](){let e=0;const t=this.transactions;return{next:()=>e<this.length?{value:t[e++],done:!1}:{value:void 0,done:!0}}}get length(){return this.#Ne.length}get date(){return null==this.timestamp?null:new Date(1e3*this.timestamp)}async getTransaction(e){let t;if("number"===typeof e)t=this.#Ne[e];else{const n=e.toLowerCase();for(const e of this.#Ne){if("string"===typeof e){if(e!==n)continue;t=e;break}if(e.hash!==n){t=e;break}}}if(null==t)throw new Error("no such tx");return"string"===typeof t?await this.provider.getTransaction(t):t}getPrefetchedTransaction(e){const t=this.prefetchedTransactions;if("number"===typeof e)return t[e];e=e.toLowerCase();for(const n of t)if(n.hash===e)return n;(0,r.assertArgument)(!1,"no matching transaction","indexOrHash",e)}isMined(){return!!this.hash}isLondon(){return!!this.baseFeePerGas}orphanedEvent(){if(!this.isMined())throw new Error("");return{orphan:"drop-block",hash:(e=this).hash,number:e.number};var e}}t.Block=f;class c{provider;transactionHash;blockHash;blockNumber;removed;address;data;topics;index;transactionIndex;constructor(e,t){this.provider=t;const n=Object.freeze(e.topics.slice());(0,r.defineProperties)(this,{transactionHash:e.transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,removed:e.removed,address:e.address,data:e.data,topics:n,index:e.index,transactionIndex:e.transactionIndex})}toJSON(){const{address:e,blockHash:t,blockNumber:n,data:r,index:a,removed:i,topics:o,transactionHash:s,transactionIndex:f}=this;return{_type:"log",address:e,blockHash:t,blockNumber:n,data:r,index:a,removed:i,topics:o,transactionHash:s,transactionIndex:f}}async getBlock(){const e=await this.provider.getBlock(this.blockHash);return(0,r.assert)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransaction(){const e=await this.provider.getTransaction(this.transactionHash);return(0,r.assert)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransactionReceipt(){const e=await this.provider.getTransactionReceipt(this.transactionHash);return(0,r.assert)(!!e,"failed to find transaction receipt","UNKNOWN_ERROR",{}),e}removedEvent(){return{orphan:"drop-log",log:{transactionHash:(e=this).transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,address:e.address,data:e.data,topics:Object.freeze(e.topics.slice()),index:e.index}};var e}}t.Log=c;class l{provider;to;from;contractAddress;hash;index;blockHash;blockNumber;logsBloom;gasUsed;blobGasUsed;cumulativeGasUsed;gasPrice;blobGasPrice;type;status;root;#Be;constructor(e,t){this.#Be=Object.freeze(e.logs.map((e=>new c(e,t))));let n=i;null!=e.effectiveGasPrice?n=e.effectiveGasPrice:null!=e.gasPrice&&(n=e.gasPrice),(0,r.defineProperties)(this,{provider:t,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,blobGasUsed:e.blobGasUsed,gasPrice:n,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return this.#Be}toJSON(){const{to:e,from:t,contractAddress:n,hash:r,index:a,blockHash:i,blockNumber:o,logsBloom:f,logs:c,status:l,root:u}=this;return{_type:"TransactionReceipt",blockHash:i,blockNumber:o,contractAddress:n,cumulativeGasUsed:s(this.cumulativeGasUsed),from:t,gasPrice:s(this.gasPrice),blobGasUsed:s(this.blobGasUsed),blobGasPrice:s(this.blobGasPrice),gasUsed:s(this.gasUsed),hash:r,index:a,logs:c,logsBloom:f,root:u,status:l,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e<this.length?{value:this.logs[e++],done:!1}:{value:void 0,done:!0}}}get fee(){return this.gasUsed*this.gasPrice}async getBlock(){const e=await this.provider.getBlock(this.blockHash);if(null==e)throw new Error("TODO");return e}async getTransaction(){const e=await this.provider.getTransaction(this.hash);if(null==e)throw new Error("TODO");return e}async getResult(){return await this.provider.getTransactionResult(this.hash)}async confirmations(){return await this.provider.getBlockNumber()-this.blockNumber+1}removedEvent(){return p(this)}reorderedEvent(e){return(0,r.assert)(!e||e.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),d(this,e)}}t.TransactionReceipt=l;class u{provider;blockNumber;blockHash;index;hash;type;to;from;nonce;gasLimit;gasPrice;maxPriorityFeePerGas;maxFeePerGas;maxFeePerBlobGas;data;value;chainId;signature;accessList;blobVersionedHashes;#je;constructor(e,t){this.provider=t,this.blockNumber=null!=e.blockNumber?e.blockNumber:null,this.blockHash=null!=e.blockHash?e.blockHash:null,this.hash=e.hash,this.index=e.index,this.type=e.type,this.from=e.from,this.to=e.to||null,this.gasLimit=e.gasLimit,this.nonce=e.nonce,this.data=e.data,this.value=e.value,this.gasPrice=e.gasPrice,this.maxPriorityFeePerGas=null!=e.maxPriorityFeePerGas?e.maxPriorityFeePerGas:null,this.maxFeePerGas=null!=e.maxFeePerGas?e.maxFeePerGas:null,this.maxFeePerBlobGas=null!=e.maxFeePerBlobGas?e.maxFeePerBlobGas:null,this.chainId=e.chainId,this.signature=e.signature,this.accessList=null!=e.accessList?e.accessList:null,this.blobVersionedHashes=null!=e.blobVersionedHashes?e.blobVersionedHashes:null,this.#je=-1}toJSON(){const{blockNumber:e,blockHash:t,index:n,hash:r,type:a,to:i,from:o,nonce:f,data:c,signature:l,accessList:u,blobVersionedHashes:d}=this;return{_type:"TransactionResponse",accessList:u,blockNumber:e,blockHash:t,blobVersionedHashes:d,chainId:s(this.chainId),data:c,from:o,gasLimit:s(this.gasLimit),gasPrice:s(this.gasPrice),hash:r,maxFeePerGas:s(this.maxFeePerGas),maxPriorityFeePerGas:s(this.maxPriorityFeePerGas),maxFeePerBlobGas:s(this.maxFeePerBlobGas),nonce:f,signature:l,to:i,index:n,type:a,value:s(this.value)}}async getBlock(){let e=this.blockNumber;if(null==e){const t=await this.getTransaction();t&&(e=t.blockNumber)}if(null==e)return null;const t=this.provider.getBlock(e);if(null==t)throw new Error("TODO");return t}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(null==this.blockNumber){const{tx:e,blockNumber:t}=await(0,r.resolveProperties)({tx:this.getTransaction(),blockNumber:this.provider.getBlockNumber()});return null==e||null==e.blockNumber?0:t-e.blockNumber+1}return await this.provider.getBlockNumber()-this.blockNumber+1}async wait(e,t){const n=null==e?1:e,a=null==t?0:t;let o=this.#je,s=-1,f=-1===o;const c=async()=>{if(f)return null;const{blockNumber:e,nonce:t}=await(0,r.resolveProperties)({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(t<this.nonce)return void(o=e);if(f)return null;const a=await this.getTransaction();if(!a||null==a.blockNumber)for(-1===s&&(s=o-3,s<this.#je&&(s=this.#je));s<=e;){if(f)return null;const t=await this.provider.getBlock(s,!0);if(null==t)return;for(const e of t)if(e===this.hash)return;for(let a=0;a<t.length;a++){const s=await t.getTransaction(a);if(s.from===this.from&&s.nonce===this.nonce){if(f)return null;const t=await this.provider.getTransactionReceipt(s.hash);if(null==t)return;if(e-t.blockNumber+1<n)return;let a="replaced";s.data===this.data&&s.to===this.to&&s.value===this.value?a="repriced":"0x"===s.data&&s.from===s.to&&s.value===i&&(a="cancelled"),(0,r.assert)(!1,"transaction was replaced","TRANSACTION_REPLACED",{cancelled:"replaced"===a||"cancelled"===a,reason:a,replacement:s.replaceableTransaction(o),hash:s.hash,receipt:t})}}s++}},l=e=>{if(null==e||0!==e.status)return e;(0,r.assert)(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:e.to,from:e.from,data:""},receipt:e})},u=await this.provider.getTransactionReceipt(this.hash);if(0===n)return l(u);if(u){if(await u.confirmations()>=n)return l(u)}else if(await c(),0===n)return null;const d=new Promise(((e,t)=>{const i=[],s=()=>{i.forEach((e=>e()))};if(i.push((()=>{f=!0})),a>0){const e=setTimeout((()=>{s(),t((0,r.makeError)("wait for transaction timeout","TIMEOUT"))}),a);i.push((()=>{clearTimeout(e)}))}const u=async r=>{if(await r.confirmations()>=n){s();try{e(l(r))}catch(a){t(a)}}};if(i.push((()=>{this.provider.off(this.hash,u)})),this.provider.on(this.hash,u),o>=0){const e=async()=>{try{await c()}catch(n){if((0,r.isError)(n,"TRANSACTION_REPLACED"))return s(),void t(n)}f||this.provider.once("block",e)};i.push((()=>{this.provider.off("block",e)})),this.provider.once("block",e)}}));return await d}isMined(){return null!=this.blockHash}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}removedEvent(){return(0,r.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),p(this)}reorderedEvent(e){return(0,r.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),(0,r.assert)(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),d(this,e)}replaceableTransaction(e){(0,r.assertArgument)(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const t=new u(this,this.provider);return t.#je=e,t}}function d(e,t){return{orphan:"reorder-transaction",tx:e,other:t}}function p(e){return{orphan:"drop-transaction",tx:e}}t.TransactionResponse=u},81723:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NonceManager=void 0;const r=n(79551),a=n(16898);class i extends a.AbstractSigner{signer;#De;#Le;constructor(e){super(e.provider),(0,r.defineProperties)(this,{signer:e}),this.#De=null,this.#Le=0}async getAddress(){return this.signer.getAddress()}connect(e){return new i(this.signer.connect(e))}async getNonce(e){if("pending"===e){null==this.#De&&(this.#De=super.getNonce("pending"));const e=this.#Le;return await this.#De+e}return super.getNonce(e)}increment(){this.#Le++}reset(){this.#Le=0,this.#De=null}async sendTransaction(e){const t=this.getNonce("pending");return this.increment(),(e=await this.signer.populateTransaction(e)).nonce=await t,await this.signer.sendTransaction(e)}signTransaction(e){return this.signer.signTransaction(e)}signMessage(e){return this.signer.signMessage(e)}signTypedData(e,t,n){return this.signer.signTypedData(e,t,n)}}t.NonceManager=i},1049:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterIdPendingSubscriber=t.FilterIdEventSubscriber=t.FilterIdSubscriber=void 0;const r=n(79551),a=n(79956);class i{#Te;#Me;#Ue;#Fe;#we;#ze;constructor(e){this.#Te=e,this.#Me=null,this.#Ue=this.#$e.bind(this),this.#Fe=!1,this.#we=null,this.#ze=!1}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,t){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}async#$e(e){try{null==this.#Me&&(this.#Me=this._subscribe(this.#Te));let e=null;try{e=await this.#Me}catch(t){if(!(0,r.isError)(t,"UNSUPPORTED_OPERATION")||"eth_newFilter"!==t.operation)throw t}if(null==e)return this.#Me=null,void this.#Te._recoverSubscriber(this,this._recover(this.#Te));const n=await this.#Te.getNetwork();if(this.#we||(this.#we=n),this.#we.chainId!==n.chainId)throw new Error("chaid changed");if(this.#ze)return;const a=await this.#Te.send("eth_getFilterChanges",[e]);await this._emitResults(this.#Te,a)}catch(t){console.log("@TODO",t)}this.#Te.once("block",this.#Ue)}#Ge(){const e=this.#Me;e&&(this.#Me=null,e.then((e=>{this.#Te.destroyed||this.#Te.send("eth_uninstallFilter",[e])})))}start(){this.#Fe||(this.#Fe=!0,this.#$e(-2))}stop(){this.#Fe&&(this.#Fe=!1,this.#ze=!0,this.#Ge(),this.#Te.off("block",this.#Ue))}pause(e){e&&this.#Ge(),this.#Te.off("block",this.#Ue)}resume(){this.start()}}t.FilterIdSubscriber=i;t.FilterIdEventSubscriber=class extends i{#He;constructor(e,t){var n;super(e),this.#He=(n=t,JSON.parse(JSON.stringify(n)))}_recover(e){return new a.PollingEventSubscriber(e,this.#He)}async _subscribe(e){return await e.send("eth_newFilter",[this.#He])}async _emitResults(e,t){for(const n of t)e.emit(this.#He,e._wrapLog(n,e._network))}};t.FilterIdPendingSubscriber=class extends i{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,t){for(const n of t)e.emit("pending",n)}}},79956:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PollingEventSubscriber=t.PollingTransactionSubscriber=t.PollingOrphanSubscriber=t.PollingBlockTagSubscriber=t.OnBlockSubscriber=t.PollingBlockSubscriber=t.getPollingSubscriber=void 0;const r=n(79551);function a(e){return JSON.parse(JSON.stringify(e))}t.getPollingSubscriber=function(e,t){return"block"===t?new i(e):(0,r.isHexString)(t,32)?new s(e,t):void(0,r.assert)(!1,"unsupported polling event","UNSUPPORTED_OPERATION",{operation:"getPollingSubscriber",info:{event:t}})};class i{#Te;#Ue;#We;#Ve;constructor(e){this.#Te=e,this.#Ue=null,this.#We=4e3,this.#Ve=-2}get pollingInterval(){return this.#We}set pollingInterval(e){this.#We=e}async#$e(){try{const e=await this.#Te.getBlockNumber();if(-2===this.#Ve)return void(this.#Ve=e);if(e!==this.#Ve){for(let t=this.#Ve+1;t<=e;t++){if(null==this.#Ue)return;await this.#Te.emit("block",t)}this.#Ve=e}}catch(e){}null!=this.#Ue&&(this.#Ue=this.#Te._setTimeout(this.#$e.bind(this),this.#We))}start(){this.#Ue||(this.#Ue=this.#Te._setTimeout(this.#$e.bind(this),this.#We),this.#$e())}stop(){this.#Ue&&(this.#Te._clearTimeout(this.#Ue),this.#Ue=null)}pause(e){this.stop(),e&&(this.#Ve=-2)}resume(){this.start()}}t.PollingBlockSubscriber=i;class o{#Te;#$e;#Fe;constructor(e){this.#Te=e,this.#Fe=!1,this.#$e=e=>{this._poll(e,this.#Te)}}async _poll(e,t){throw new Error("sub-classes must override this")}start(){this.#Fe||(this.#Fe=!0,this.#$e(-2),this.#Te.on("block",this.#$e))}stop(){this.#Fe&&(this.#Fe=!1,this.#Te.off("block",this.#$e))}pause(e){this.stop()}resume(){this.start()}}t.OnBlockSubscriber=o;t.PollingBlockTagSubscriber=class extends o{#qe;#Ke;constructor(e,t){super(e),this.#qe=t,this.#Ke=-2}pause(e){e&&(this.#Ke=-2),super.pause(e)}async _poll(e,t){const n=await t.getBlock(this.#qe);null!=n&&(-2===this.#Ke?this.#Ke=n.number:n.number>this.#Ke&&(t.emit(this.#qe,n.number),this.#Ke=n.number))}};t.PollingOrphanSubscriber=class extends o{#E;constructor(e,t){super(e),this.#E=a(t)}async _poll(e,t){throw new Error("@TODO")}};class s extends o{#Ze;constructor(e,t){super(e),this.#Ze=t}async _poll(e,t){const n=await t.getTransactionReceipt(this.#Ze);n&&t.emit(this.#Ze,n)}}t.PollingTransactionSubscriber=s;t.PollingEventSubscriber=class{#Te;#E;#Ue;#Fe;#Ve;constructor(e,t){this.#Te=e,this.#E=a(t),this.#Ue=this.#$e.bind(this),this.#Fe=!1,this.#Ve=-2}async#$e(e){if(-2===this.#Ve)return;const t=a(this.#E);t.fromBlock=this.#Ve+1,t.toBlock=e;const n=await this.#Te.getLogs(t);if(0!==n.length)for(const r of n)this.#Te.emit(this.#E,r),this.#Ve=r.blockNumber;else this.#Ve<e-60&&(this.#Ve=e-60)}start(){this.#Fe||(this.#Fe=!0,-2===this.#Ve&&this.#Te.getBlockNumber().then((e=>{this.#Ve=e})),this.#Te.on("block",this.#Ue))}stop(){this.#Fe&&(this.#Fe=!1,this.#Te.off("block",this.#Ue))}pause(e){this.stop(),e&&(this.#Ve=-2)}resume(){this.start()}}},80740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocket=void 0;const r=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("unable to locate global object")}().WebSocket;t.WebSocket=r},52031:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.accessListify=void 0;const r=n(35460),a=n(79551);function i(e,t){return{address:(0,r.getAddress)(e),storageKeys:t.map(((e,t)=>((0,a.assertArgument)((0,a.isHexString)(e,32),"invalid slot",`storageKeys[${t}]`,e),e.toLowerCase())))}}t.accessListify=function(e){if(Array.isArray(e))return e.map(((t,n)=>Array.isArray(t)?((0,a.assertArgument)(2===t.length,"invalid slot set",`value[${n}]`,t),i(t[0],t[1])):((0,a.assertArgument)(null!=t&&"object"===typeof t,"invalid address-slot set","value",e),i(t.address,t.storageKeys))));(0,a.assertArgument)(null!=e&&"object"===typeof e,"invalid access list","value",e);const t=Object.keys(e).map((t=>{const n=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return i(t,Object.keys(n).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}},47903:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=t.computeAddress=void 0;const r=n(35460),a=n(27294);function i(e){let t;return t="string"===typeof e?a.SigningKey.computePublicKey(e,!1):e.publicKey,(0,r.getAddress)((0,a.keccak256)("0x"+t.substring(4)).substring(26))}t.computeAddress=i,t.recoverAddress=function(e,t){return i(a.SigningKey.recoverPublicKey(e,t))}},60042:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=t.recoverAddress=t.computeAddress=t.accessListify=void 0;var r=n(52031);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return r.accessListify}});var a=n(47903);Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return a.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return a.recoverAddress}});var i=n(28814);Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return i.Transaction}})},28814:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=void 0;const r=n(35460),a=n(48499),i=n(27294),o=n(79551),s=n(52031),f=n(47903),c=BigInt(0),l=BigInt(2),u=BigInt(27),d=BigInt(28),p=BigInt(35),h=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),b=131072;function y(e,t){let n=e.toString(16);for(;n.length<2;)n="0"+n;return n+=(0,i.sha256)(t).substring(4),"0x"+n}function m(e){return"0x"===e?null:(0,r.getAddress)(e)}function g(e,t){try{return(0,s.accessListify)(e)}catch(n){(0,o.assertArgument)(!1,n.message,t,e)}}function v(e,t){return"0x"===e?0:(0,o.getNumber)(e,t)}function w(e,t){if("0x"===e)return c;const n=(0,o.getBigInt)(e,t);return(0,o.assertArgument)(n<=h,"value exceeds uint size",t,n),n}function E(e,t){const n=(0,o.getBigInt)(e,"value"),r=(0,o.toBeArray)(n);return(0,o.assertArgument)(r.length<=32,"value too large",`tx.${t}`,n),r}function A(e){return(0,s.accessListify)(e).map((e=>[e.address,e.storageKeys]))}function P(e,t){(0,o.assertArgument)(Array.isArray(e),`invalid ${t}`,"value",e);for(let n=0;n<e.length;n++)(0,o.assertArgument)((0,o.isHexString)(e[n],32),"invalid ${ param } hash",`value[${n}]`,e[n]);return e}function _(e,t){let n;try{if(n=v(t[0],"yParity"),0!==n&&1!==n)throw new Error("bad yParity")}catch(f){(0,o.assertArgument)(!1,"invalid yParity","yParity",t[0])}const r=(0,o.zeroPadValue)(t[1],32),a=(0,o.zeroPadValue)(t[2],32),s=i.Signature.from({r:r,s:a,yParity:n});e.signature=s}class T{#Je;#Ye;#n;#Qe;#Xe;#et;#tt;#nt;#rt;#ne;#at;#it;#ot;#st;#ft;#ct;get type(){return this.#Je}set type(e){switch(e){case null:this.#Je=null;break;case 0:case"legacy":this.#Je=0;break;case 1:case"berlin":case"eip-2930":this.#Je=1;break;case 2:case"london":case"eip-1559":this.#Je=2;break;case 3:case"cancun":case"eip-4844":this.#Je=3;break;default:(0,o.assertArgument)(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844"}return null}get to(){const e=this.#Ye;return null==e&&3===this.type?a.ZeroAddress:e}set to(e){this.#Ye=null==e?null:(0,r.getAddress)(e)}get nonce(){return this.#Qe}set nonce(e){this.#Qe=(0,o.getNumber)(e,"value")}get gasLimit(){return this.#Xe}set gasLimit(e){this.#Xe=(0,o.getBigInt)(e)}get gasPrice(){const e=this.#et;return null!=e||0!==this.type&&1!==this.type?e:c}set gasPrice(e){this.#et=null==e?null:(0,o.getBigInt)(e,"gasPrice")}get maxPriorityFeePerGas(){const e=this.#tt;return null==e?2===this.type||3===this.type?c:null:e}set maxPriorityFeePerGas(e){this.#tt=null==e?null:(0,o.getBigInt)(e,"maxPriorityFeePerGas")}get maxFeePerGas(){const e=this.#nt;return null==e?2===this.type||3===this.type?c:null:e}set maxFeePerGas(e){this.#nt=null==e?null:(0,o.getBigInt)(e,"maxFeePerGas")}get data(){return this.#n}set data(e){this.#n=(0,o.hexlify)(e)}get value(){return this.#rt}set value(e){this.#rt=(0,o.getBigInt)(e,"value")}get chainId(){return this.#ne}set chainId(e){this.#ne=(0,o.getBigInt)(e)}get signature(){return this.#at||null}set signature(e){this.#at=null==e?null:i.Signature.from(e)}get accessList(){const e=this.#it||null;return null==e?1===this.type||2===this.type||3===this.type?[]:null:e}set accessList(e){this.#it=null==e?null:(0,s.accessListify)(e)}get maxFeePerBlobGas(){const e=this.#ot;return null==e&&3===this.type?c:e}set maxFeePerBlobGas(e){this.#ot=null==e?null:(0,o.getBigInt)(e,"maxFeePerBlobGas")}get blobVersionedHashes(){let e=this.#st;return null==e&&3===this.type?[]:e}set blobVersionedHashes(e){if(null!=e){(0,o.assertArgument)(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let t=0;t<e.length;t++)(0,o.assertArgument)((0,o.isHexString)(e[t],32),"invalid blobVersionedHash",`value[${t}]`,e[t])}this.#st=e}get blobs(){return null==this.#ct?null:this.#ct.map((e=>Object.assign({},e)))}set blobs(e){if(null==e)return void(this.#ct=null);const t=[],n=[];for(let r=0;r<e.length;r++){const a=e[r];if((0,o.isBytesLike)(a)){(0,o.assert)(this.#ft,"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let e=(0,o.getBytes)(a);if((0,o.assertArgument)(e.length<=b,"blob is too large",`blobs[${r}]`,a),e.length!==b){const t=new Uint8Array(b);t.set(e),e=t}const i=this.#ft.blobToKzgCommitment(e),s=(0,o.hexlify)(this.#ft.computeBlobKzgProof(e,i));t.push({data:(0,o.hexlify)(e),commitment:(0,o.hexlify)(i),proof:s}),n.push(y(1,i))}else{const e=(0,o.hexlify)(a.commitment);t.push({data:(0,o.hexlify)(a.data),commitment:e,proof:(0,o.hexlify)(a.proof)}),n.push(y(1,e))}}this.#ct=t,this.#st=n}get kzg(){return this.#ft}set kzg(e){this.#ft=e}constructor(){this.#Je=null,this.#Ye=null,this.#Qe=0,this.#Xe=c,this.#et=null,this.#tt=null,this.#nt=null,this.#n="0x",this.#rt=c,this.#ne=c,this.#at=null,this.#it=null,this.#ot=null,this.#st=null,this.#ct=null,this.#ft=null}get hash(){return null==this.signature?null:(0,i.keccak256)(this.#lt(!0,!1))}get unsignedHash(){return(0,i.keccak256)(this.unsignedSerialized)}get from(){return null==this.signature?null:(0,f.recoverAddress)(this.unsignedHash,this.signature)}get fromPublicKey(){return null==this.signature?null:i.SigningKey.recoverPublicKey(this.unsignedHash,this.signature)}isSigned(){return null!=this.signature}#lt(e,t){(0,o.assert)(!e||null!=this.signature,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const n=e?this.signature:null;switch(this.inferType()){case 0:return function(e,t){const n=[E(e.nonce,"nonce"),E(e.gasPrice||0,"gasPrice"),E(e.gasLimit,"gasLimit"),e.to||"0x",E(e.value,"value"),e.data];let r=c;if(e.chainId!=c)r=(0,o.getBigInt)(e.chainId,"tx.chainId"),(0,o.assertArgument)(!t||null==t.networkV||t.legacyChainId===r,"tx.chainId/sig.v mismatch","sig",t);else if(e.signature){const t=e.signature.legacyChainId;null!=t&&(r=t)}if(!t)return r!==c&&(n.push((0,o.toBeArray)(r)),n.push("0x"),n.push("0x")),(0,o.encodeRlp)(n);let a=BigInt(27+t.yParity);return r!==c?a=i.Signature.getChainIdV(r,t.v):BigInt(t.v)!==a&&(0,o.assertArgument)(!1,"tx.chainId/sig.v mismatch","sig",t),n.push((0,o.toBeArray)(a)),n.push((0,o.toBeArray)(t.r)),n.push((0,o.toBeArray)(t.s)),(0,o.encodeRlp)(n)}(this,n);case 1:return function(e,t){const n=[E(e.chainId,"chainId"),E(e.nonce,"nonce"),E(e.gasPrice||0,"gasPrice"),E(e.gasLimit,"gasLimit"),e.to||"0x",E(e.value,"value"),e.data,A(e.accessList||[])];return t&&(n.push(E(t.yParity,"recoveryParam")),n.push((0,o.toBeArray)(t.r)),n.push((0,o.toBeArray)(t.s))),(0,o.concat)(["0x01",(0,o.encodeRlp)(n)])}(this,n);case 2:return function(e,t){const n=[E(e.chainId,"chainId"),E(e.nonce,"nonce"),E(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),E(e.maxFeePerGas||0,"maxFeePerGas"),E(e.gasLimit,"gasLimit"),e.to||"0x",E(e.value,"value"),e.data,A(e.accessList||[])];return t&&(n.push(E(t.yParity,"yParity")),n.push((0,o.toBeArray)(t.r)),n.push((0,o.toBeArray)(t.s))),(0,o.concat)(["0x02",(0,o.encodeRlp)(n)])}(this,n);case 3:return function(e,t,n){const r=[E(e.chainId,"chainId"),E(e.nonce,"nonce"),E(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),E(e.maxFeePerGas||0,"maxFeePerGas"),E(e.gasLimit,"gasLimit"),e.to||a.ZeroAddress,E(e.value,"value"),e.data,A(e.accessList||[]),E(e.maxFeePerBlobGas||0,"maxFeePerBlobGas"),P(e.blobVersionedHashes||[],"blobVersionedHashes")];return t&&(r.push(E(t.yParity,"yParity")),r.push((0,o.toBeArray)(t.r)),r.push((0,o.toBeArray)(t.s)),n)?(0,o.concat)(["0x03",(0,o.encodeRlp)([r,n.map((e=>e.data)),n.map((e=>e.commitment)),n.map((e=>e.proof))])]):(0,o.concat)(["0x03",(0,o.encodeRlp)(r)])}(this,n,t?this.blobs:null)}(0,o.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get serialized(){return this.#lt(!0,!0)}get unsignedSerialized(){return this.#lt(!1,!1)}inferType(){const e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){const e=null!=this.gasPrice,t=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,n=null!=this.accessList,r=null!=this.#ot||this.#st;null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&&(0,o.assert)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,o.assert)(!t||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,o.assert)(0!==this.type||!n,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const a=[];return null!=this.type?a.push(this.type):t?a.push(2):e?(a.push(1),n||a.push(0)):n?(a.push(1),a.push(2)):(r&&this.to||(a.push(0),a.push(1),a.push(2)),a.push(3)),a.sort(),a}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}clone(){return T.from(this)}toJSON(){const e=e=>null==e?null:e.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(null==e)return new T;if("string"===typeof e){const t=(0,o.getBytes)(e);if(t[0]>=127)return T.from(function(e){const t=(0,o.decodeRlp)(e);(0,o.assertArgument)(Array.isArray(t)&&(9===t.length||6===t.length),"invalid field count for legacy transaction","data",e);const n={type:0,nonce:v(t[0],"nonce"),gasPrice:w(t[1],"gasPrice"),gasLimit:w(t[2],"gasLimit"),to:m(t[3]),value:w(t[4],"value"),data:(0,o.hexlify)(t[5]),chainId:c};if(6===t.length)return n;const r=w(t[6],"v"),a=w(t[7],"r"),s=w(t[8],"s");if(a===c&&s===c)n.chainId=r;else{let e=(r-p)/l;e<c&&(e=c),n.chainId=e,(0,o.assertArgument)(e!==c||r===u||r===d,"non-canonical legacy v","v",t[6]),n.signature=i.Signature.from({r:(0,o.zeroPadValue)(t[7],32),s:(0,o.zeroPadValue)(t[8],32),v:r})}return n}(t));switch(t[0]){case 1:return T.from(function(e){const t=(0,o.decodeRlp)((0,o.getBytes)(e).slice(1));(0,o.assertArgument)(Array.isArray(t)&&(8===t.length||11===t.length),"invalid field count for transaction type: 1","data",(0,o.hexlify)(e));const n={type:1,chainId:w(t[0],"chainId"),nonce:v(t[1],"nonce"),gasPrice:w(t[2],"gasPrice"),gasLimit:w(t[3],"gasLimit"),to:m(t[4]),value:w(t[5],"value"),data:(0,o.hexlify)(t[6]),accessList:g(t[7],"accessList")};return 8===t.length||_(n,t.slice(8)),n}(t));case 2:return T.from(function(e){const t=(0,o.decodeRlp)((0,o.getBytes)(e).slice(1));(0,o.assertArgument)(Array.isArray(t)&&(9===t.length||12===t.length),"invalid field count for transaction type: 2","data",(0,o.hexlify)(e));const n={type:2,chainId:w(t[0],"chainId"),nonce:v(t[1],"nonce"),maxPriorityFeePerGas:w(t[2],"maxPriorityFeePerGas"),maxFeePerGas:w(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:w(t[4],"gasLimit"),to:m(t[5]),value:w(t[6],"value"),data:(0,o.hexlify)(t[7]),accessList:g(t[8],"accessList")};return 9===t.length||_(n,t.slice(9)),n}(t));case 3:return T.from(function(e){let t=(0,o.decodeRlp)((0,o.getBytes)(e).slice(1)),n="3",r=null;if(4===t.length&&Array.isArray(t[0])){n="3 (network format)";const e=t[1],a=t[2],i=t[3];(0,o.assertArgument)(Array.isArray(e),"invalid network format: blobs not an array","fields[1]",e),(0,o.assertArgument)(Array.isArray(a),"invalid network format: commitments not an array","fields[2]",a),(0,o.assertArgument)(Array.isArray(i),"invalid network format: proofs not an array","fields[3]",i),(0,o.assertArgument)(e.length===a.length,"invalid network format: blobs/commitments length mismatch","fields",t),(0,o.assertArgument)(e.length===i.length,"invalid network format: blobs/proofs length mismatch","fields",t),r=[];for(let n=0;n<t[1].length;n++)r.push({data:e[n],commitment:a[n],proof:i[n]});t=t[0]}(0,o.assertArgument)(Array.isArray(t)&&(11===t.length||14===t.length),`invalid field count for transaction type: ${n}`,"data",(0,o.hexlify)(e));const a={type:3,chainId:w(t[0],"chainId"),nonce:v(t[1],"nonce"),maxPriorityFeePerGas:w(t[2],"maxPriorityFeePerGas"),maxFeePerGas:w(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:w(t[4],"gasLimit"),to:m(t[5]),value:w(t[6],"value"),data:(0,o.hexlify)(t[7]),accessList:g(t[8],"accessList"),maxFeePerBlobGas:w(t[9],"maxFeePerBlobGas"),blobVersionedHashes:t[10]};r&&(a.blobs=r),(0,o.assertArgument)(null!=a.to,`invalid address for transaction type: ${n}`,"data",e),(0,o.assertArgument)(Array.isArray(a.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",e);for(let i=0;i<a.blobVersionedHashes.length;i++)(0,o.assertArgument)((0,o.isHexString)(a.blobVersionedHashes[i],32),`invalid blobVersionedHash at index ${i}: must be length 32`,"data",e);return 11===t.length||_(a,t.slice(11)),a}(t))}(0,o.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const t=new T;return null!=e.type&&(t.type=e.type),null!=e.to&&(t.to=e.to),null!=e.nonce&&(t.nonce=e.nonce),null!=e.gasLimit&&(t.gasLimit=e.gasLimit),null!=e.gasPrice&&(t.gasPrice=e.gasPrice),null!=e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas),null!=e.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null!=e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=e.maxFeePerBlobGas),null!=e.data&&(t.data=e.data),null!=e.value&&(t.value=e.value),null!=e.chainId&&(t.chainId=e.chainId),null!=e.signature&&(t.signature=i.Signature.from(e.signature)),null!=e.accessList&&(t.accessList=e.accessList),null!=e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),null!=e.kzg&&(t.kzg=e.kzg),null!=e.blobs&&(t.blobs=e.blobs),null!=e.hash&&((0,o.assertArgument)(t.isSigned(),"unsigned transaction cannot define '.hash'","tx",e),(0,o.assertArgument)(t.hash===e.hash,"hash mismatch","tx",e)),null!=e.from&&((0,o.assertArgument)(t.isSigned(),"unsigned transaction cannot define '.from'","tx",e),(0,o.assertArgument)(t.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),t}}t.Transaction=T},89481:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBase58=t.encodeBase58=void 0;const r=n(21061),a=n(18110),i=n(15375),o="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";let s=null;function f(e){if(null==s){s={};for(let e=0;e<o.length;e++)s[o[e]]=BigInt(e)}const t=s[e];return(0,a.assertArgument)(null!=t,"invalid base58 value","letter",e),t}const c=BigInt(0),l=BigInt(58);t.encodeBase58=function(e){const t=(0,r.getBytes)(e);let n=(0,i.toBigInt)(t),a="";for(;n;)a=o[Number(n%l)]+a,n/=l;for(let r=0;r<t.length&&!t[r];r++)a=o[0]+a;return a},t.decodeBase58=function(e){let t=c;for(let n=0;n<e.length;n++)t*=l,t+=f(e[n]);return t}},76697:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBase64=t.decodeBase64=void 0;const r=n(21061);t.decodeBase64=function(e){e=atob(e);const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return(0,r.getBytes)(t)},t.encodeBase64=function(e){const t=(0,r.getBytes)(e);let n="";for(let r=0;r<t.length;r++)n+=String.fromCharCode(t[r]);return btoa(n)}},21061:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=void 0;const r=n(18110);function a(e,t,n){if(e instanceof Uint8Array)return n?new Uint8Array(e):e;if("string"===typeof e&&e.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){const t=new Uint8Array((e.length-2)/2);let n=2;for(let r=0;r<t.length;r++)t[r]=parseInt(e.substring(n,n+2),16),n+=2;return t}(0,r.assertArgument)(!1,"invalid BytesLike value",t||"value",e)}function i(e,t){return a(e,t,!1)}function o(e,t){return!("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(("number"!==typeof t||e.length===2+2*t)&&(!0!==t||e.length%2===0))}t.getBytes=i,t.getBytesCopy=function(e,t){return a(e,t,!0)},t.isHexString=o,t.isBytesLike=function(e){return o(e,!0)||e instanceof Uint8Array};const s="0123456789abcdef";function f(e){const t=i(e);let n="0x";for(let r=0;r<t.length;r++){const e=t[r];n+=s[(240&e)>>4]+s[15&e]}return n}function c(e,t,n){const a=i(e);(0,r.assert)(t>=a.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(a),length:t,offset:t+1});const o=new Uint8Array(t);return o.fill(0),n?o.set(a,t-a.length):o.set(a,0),f(o)}t.hexlify=f,t.concat=function(e){return"0x"+e.map((e=>f(e).substring(2))).join("")},t.dataLength=function(e){return o(e,!0)?(e.length-2)/2:i(e).length},t.dataSlice=function(e,t,n){const a=i(e);return null!=n&&n>a.length&&(0,r.assert)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:a,length:a.length,offset:n}),f(a.slice(null==t?0:t,null==n?a.length:n))},t.stripZerosLeft=function(e){let t=f(e).substring(2);for(;t.startsWith("00");)t=t.substring(2);return"0x"+t},t.zeroPadValue=function(e,t){return c(e,t,!0)},t.zeroPadBytes=function(e,t){return c(e,t,!1)}},18110:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertPrivate=t.assertNormalize=t.assertArgumentCount=t.assertArgument=t.assert=t.makeError=t.isCallException=t.isError=void 0;const r=n(44646),a=n(26764);function i(e){if(null==e)return"null";if(Array.isArray(e))return"[ "+e.map(i).join(", ")+" ]";if(e instanceof Uint8Array){const t="0123456789abcdef";let n="0x";for(let r=0;r<e.length;r++)n+=t[e[r]>>4],n+=t[15&e[r]];return n}if("object"===typeof e&&"function"===typeof e.toJSON)return i(e.toJSON());switch(typeof e){case"boolean":case"symbol":case"number":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{const t=Object.keys(e);return t.sort(),"{ "+t.map((t=>`${i(t)}: ${i(e[t])}`)).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function o(e,t){return e&&e.code===t}function s(e,t,n){let o,s=e;{const a=[];if(n){if("message"in n||"code"in n||"name"in n)throw new Error(`value will overwrite populated values: ${i(n)}`);for(const e in n){if("shortMessage"===e)continue;const t=n[e];a.push(e+"="+i(t))}}a.push(`code=${t}`),a.push(`version=${r.version}`),a.length&&(e+=" ("+a.join(", ")+")")}switch(t){case"INVALID_ARGUMENT":o=new TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":o=new RangeError(e);break;default:o=new Error(e)}return(0,a.defineProperties)(o,{code:t}),n&&Object.assign(o,n),null==o.shortMessage&&(0,a.defineProperties)(o,{shortMessage:s}),o}function f(e,t,n,r){if(!e)throw s(t,n,r)}t.isError=o,t.isCallException=function(e){return o(e,"CALL_EXCEPTION")},t.makeError=s,t.assert=f,t.assertArgument=function(e,t,n,r){f(e,t,"INVALID_ARGUMENT",{argument:n,value:r})},t.assertArgumentCount=function(e,t,n){null==n&&(n=""),n&&(n=": "+n),f(e>=t,"missing arguemnt"+n,"MISSING_ARGUMENT",{count:e,expectedCount:t}),f(e<=t,"too many arguments"+n,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})};const c=["NFD","NFC","NFKD","NFKC"].reduce(((e,t)=>{try{if("test"!=="test".normalize(t))throw new Error("bad");if("NFD"===t){const e=String.fromCharCode(233).normalize("NFD");if(e!==String.fromCharCode(101,769))throw new Error("broken")}e.push(t)}catch(n){}return e}),[]);t.assertNormalize=function(e){f(c.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})},t.assertPrivate=function(e,t,n){if(null==n&&(n=""),e!==t){let e=n,t="new";n&&(e+=".",t+=" "+n),f(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}}},45459:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventPayload=void 0;const r=n(26764);t.EventPayload=class{filter;emitter;#ut;constructor(e,t,n){this.#ut=t,(0,r.defineProperties)(this,{emitter:e,filter:n})}async removeListener(){null!=this.#ut&&await this.emitter.off(this.filter,this.#ut)}}},39451:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FetchResponse=t.FetchRequest=t.FetchCancelSignal=void 0;const r=n(76697),a=n(21061),i=n(18110),o=n(26764),s=n(30501),f=n(21753);let c=(0,f.createGetUrl)();const l=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),u=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let d=!1;async function p(e,t){try{const t=e.match(l);if(!t)throw new Error("invalid data");return new w(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?(0,r.decodeBase64)(t[3]):(n=t[3],(0,s.toUtf8Bytes)(n.replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16)))))))}catch(a){return new w(599,"BAD REQUEST (invalid data: URI)",{},null,new v(e))}var n}function h(e){return async function(t,n){try{const n=t.match(u);if(!n)throw new Error("invalid link");return new v(`${e}${n[2]}`)}catch(r){return new w(599,"BAD REQUEST (invalid IPFS URI)",{},null,new v(t))}}}const b={data:p,ipfs:h("https://gateway.ipfs.io/ipfs/")},y=new WeakMap;class m{#dt;#pt;constructor(e){this.#dt=[],this.#pt=!1,y.set(e,(()=>{if(!this.#pt){this.#pt=!0;for(const e of this.#dt)setTimeout((()=>{e()}),0);this.#dt=[]}}))}addListener(e){(0,i.assert)(!this.#pt,"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),this.#dt.push(e)}get cancelled(){return this.#pt}checkSignal(){(0,i.assert)(!this.cancelled,"cancelled","CANCELLED",{})}}function g(e){if(null==e)throw new Error("missing signal; should not happen");return e.checkSignal(),e}t.FetchCancelSignal=m;class v{#ht;#bt;#yt;#mt;#gt;#ae;#vt;#wt;#Et;#At;#Pt;#_t;#Tt;#kt;#Ct;get url(){return this.#ae}set url(e){this.#ae=String(e)}get body(){return null==this.#vt?null:new Uint8Array(this.#vt)}set body(e){if(null==e)this.#vt=void 0,this.#wt=void 0;else if("string"===typeof e)this.#vt=(0,s.toUtf8Bytes)(e),this.#wt="text/plain";else if(e instanceof Uint8Array)this.#vt=e,this.#wt="application/octet-stream";else{if("object"!==typeof e)throw new Error("invalid body");this.#vt=(0,s.toUtf8Bytes)(JSON.stringify(e)),this.#wt="application/json"}}hasBody(){return null!=this.#vt}get method(){return this.#mt?this.#mt:this.hasBody()?"POST":"GET"}set method(e){null==e&&(e=""),this.#mt=String(e).toUpperCase()}get headers(){const e=Object.assign({},this.#yt);return this.#Et&&(e.authorization=`Basic ${(0,r.encodeBase64)((0,s.toUtf8Bytes)(this.#Et))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),null==e["content-type"]&&this.#wt&&(e["content-type"]=this.#wt),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){this.#yt[String(e).toLowerCase()]=String(t)}clearHeaders(){this.#yt={}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n<t.length){const r=t[n++];return{value:[r,e[r]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return this.#Et||null}setCredentials(e,t){(0,i.assertArgument)(!e.match(/:/),"invalid basic authentication username","username","[REDACTED]"),this.#Et=`${e}:${t}`}get allowGzip(){return this.#bt}set allowGzip(e){this.#bt=!!e}get allowInsecureAuthentication(){return!!this.#ht}set allowInsecureAuthentication(e){this.#ht=!!e}get timeout(){return this.#gt}set timeout(e){(0,i.assertArgument)(e>=0,"timeout must be non-zero","timeout",e),this.#gt=e}get preflightFunc(){return this.#At||null}set preflightFunc(e){this.#At=e}get processFunc(){return this.#Pt||null}set processFunc(e){this.#Pt=e}get retryFunc(){return this.#_t||null}set retryFunc(e){this.#_t=e}get getUrlFunc(){return this.#Ct||c}set getUrlFunc(e){this.#Ct=e}constructor(e){this.#ae=String(e),this.#ht=!1,this.#bt=!0,this.#yt={},this.#mt="",this.#gt=3e5,this.#kt={slotInterval:250,maxAttempts:12},this.#Ct=null}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${this.#vt?(0,a.hexlify)(this.#vt):"null"}>`}setThrottleParams(e){null!=e.slotInterval&&(this.#kt.slotInterval=e.slotInterval),null!=e.maxAttempts&&(this.#kt.maxAttempts=e.maxAttempts)}async#xt(e,t,n,r,a){if(e>=this.#kt.maxAttempts)return a.makeServerError("exceeded maximum retry limit");(0,i.assert)(E()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:r}),n>0&&await function(e){return new Promise((t=>setTimeout(t,e)))}(n);let o=this.clone();const s=(o.url.split(":")[0]||"").toLowerCase();if(s in b){const e=await b[s](o.url,g(r.#Tt));if(e instanceof w){let t=e;if(this.processFunc){g(r.#Tt);try{t=await this.processFunc(o,t)}catch(l){null!=l.throttle&&"number"===typeof l.stall||t.makeServerError("error in post-processing function",l).assertOk()}}return t}o=e}this.preflightFunc&&(o=await this.preflightFunc(o));const f=await this.getUrlFunc(o,g(r.#Tt));let c=new w(f.statusCode,f.statusMessage,f.headers,f.body,r);if(301===c.statusCode||302===c.statusCode){try{const n=c.headers.location||"";return o.redirect(n).#xt(e+1,t,0,r,c)}catch(l){}return c}if(429===c.statusCode&&(null==this.retryFunc||await this.retryFunc(o,c,e))){const n=c.headers["retry-after"];let a=this.#kt.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return"string"===typeof n&&n.match(/^[1-9][0-9]*$/)&&(a=parseInt(n)),o.clone().#xt(e+1,t,a,r,c)}if(this.processFunc){g(r.#Tt);try{c=await this.processFunc(o,c)}catch(l){null!=l.throttle&&"number"===typeof l.stall||c.makeServerError("error in post-processing function",l).assertOk();let n=this.#kt.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return l.stall>=0&&(n=l.stall),o.clone().#xt(e+1,t,n,r,c)}}return c}send(){return(0,i.assert)(null==this.#Tt,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),this.#Tt=new m(this),this.#xt(0,E()+this.timeout,0,this,new w(0,"",{},null,this))}cancel(){(0,i.assert)(null!=this.#Tt,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=y.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const t=this.url.split(":")[0].toLowerCase(),n=e.split(":")[0].toLowerCase();(0,i.assert)("GET"===this.method&&("https"!==t||"http"!==n)&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const r=new v(e);return r.method="GET",r.allowGzip=this.allowGzip,r.timeout=this.timeout,r.#yt=Object.assign({},this.#yt),this.#vt&&(r.#vt=new Uint8Array(this.#vt)),r.#wt=this.#wt,r}clone(){const e=new v(this.url);return e.#mt=this.#mt,this.#vt&&(e.#vt=this.#vt),e.#wt=this.#wt,e.#yt=Object.assign({},this.#yt),e.#Et=this.#Et,this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),e.#At=this.#At,e.#Pt=this.#Pt,e.#_t=this.#_t,e.#kt=Object.assign({},this.#kt),e.#Ct=this.#Ct,e}static lockConfig(){d=!0}static getGateway(e){return b[e.toLowerCase()]||null}static registerGateway(e,t){if("http"===(e=e.toLowerCase())||"https"===e)throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(d)throw new Error("gateways locked");b[e]=t}static registerGetUrl(e){if(d)throw new Error("gateways locked");c=e}static createGetUrlFunc(e){return(0,f.createGetUrl)(e)}static createDataGateway(){return p}static createIpfsGatewayFunc(e){return h(e)}}t.FetchRequest=v;class w{#Ot;#St;#yt;#vt;#oe;#Rt;toString(){return`<FetchResponse status=${this.statusCode} body=${this.#vt?(0,a.hexlify)(this.#vt):"null"}>`}get statusCode(){return this.#Ot}get statusMessage(){return this.#St}get headers(){return Object.assign({},this.#yt)}get body(){return null==this.#vt?null:new Uint8Array(this.#vt)}get bodyText(){try{return null==this.#vt?"":(0,s.toUtf8String)(this.#vt)}catch(e){(0,i.assert)(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch(e){(0,i.assert)(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n<t.length){const r=t[n++];return{value:[r,e[r]],done:!1}}return{value:void 0,done:!0}}}}constructor(e,t,n,r,a){this.#Ot=e,this.#St=t,this.#yt=Object.keys(n).reduce(((e,t)=>(e[t.toLowerCase()]=String(n[t]),e)),{}),this.#vt=null==r?null:new Uint8Array(r),this.#oe=a||null,this.#Rt={message:""}}makeServerError(e,t){let n;n=e?`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:`CLIENT ESCALATED SERVER ERROR (${e=`${this.statusCode} ${this.statusMessage}`})`;const r=new w(599,n,this.headers,this.body,this.#oe||void 0);return r.#Rt={message:e,error:t},r}throwThrottleError(e,t){null==t?t=-1:(0,i.assertArgument)(Number.isInteger(t)&&t>=0,"invalid stall timeout","stall",t);const n=new Error(e||"throttling requests");throw(0,o.defineProperties)(n,{stall:t,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return null!=this.#vt}get request(){return this.#oe}ok(){return""===this.#Rt.message&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=this.#Rt;""===e&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let n=null;this.request&&(n=this.request.url);let r=null;try{this.#vt&&(r=(0,s.toUtf8String)(this.#vt))}catch(a){}(0,i.assert)(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t,info:{requestUrl:n,responseBody:r,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}}function E(){return(new Date).getTime()}t.FetchResponse=w},11307:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedNumber=void 0;const r=n(21061),a=n(18110),i=n(15375),o=n(26764),s=BigInt(-1),f=BigInt(0),c=BigInt(1),l=BigInt(5),u={};let d="0000";for(;d.length<80;)d+=d;function p(e){let t=d;for(;t.length<e;)t+=t;return BigInt("1"+t.substring(0,e))}function h(e,t,n){const r=BigInt(t.width);if(t.signed){const t=c<<r-c;(0,a.assert)(null==n||e>=-t&&e<t,"overflow","NUMERIC_FAULT",{operation:n,fault:"overflow",value:e}),e=e>f?(0,i.fromTwos)((0,i.mask)(e,r),r):-(0,i.fromTwos)((0,i.mask)(-e,r),r)}else{const t=c<<r;(0,a.assert)(null==n||e>=0&&e<t,"overflow","NUMERIC_FAULT",{operation:n,fault:"overflow",value:e}),e=(e%t+t)%t&t-c}return e}function b(e){"number"===typeof e&&(e=`fixed128x${e}`);let t=!0,n=128,r=18;if("string"===typeof e)if("fixed"===e);else if("ufixed"===e)t=!1;else{const i=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);(0,a.assertArgument)(i,"invalid fixed format","format",e),t="u"!==i[1],n=parseInt(i[2]),r=parseInt(i[3])}else if(e){const i=e,o=(e,t,n)=>null==i[e]?n:((0,a.assertArgument)(typeof i[e]===t,"invalid fixed format ("+e+" not "+t+")","format."+e,i[e]),i[e]);t=o("signed","boolean",t),n=o("width","number",n),r=o("decimals","number",r)}(0,a.assertArgument)(n%8===0,"invalid FixedNumber width (not byte aligned)","format.width",n),(0,a.assertArgument)(r<=80,"invalid FixedNumber decimals (too large)","format.decimals",r);return{signed:t,width:n,decimals:r,name:(t?"":"u")+"fixed"+String(n)+"x"+String(r)}}class y{format;#It;#Nt;#Bt;_value;constructor(e,t,n){(0,a.assertPrivate)(e,u,"FixedNumber"),this.#Nt=t,this.#It=n;const r=function(e,t){let n="";e<f&&(n="-",e*=s);let r=e.toString();if(0===t)return n+r;for(;r.length<=t;)r=d+r;const a=r.length-t;for(r=r.substring(0,a)+"."+r.substring(a);"0"===r[0]&&"."!==r[1];)r=r.substring(1);for(;"0"===r[r.length-1]&&"."!==r[r.length-2];)r=r.substring(0,r.length-1);return n+r}(t,n.decimals);(0,o.defineProperties)(this,{format:n.name,_value:r}),this.#Bt=p(n.decimals)}get signed(){return this.#It.signed}get width(){return this.#It.width}get decimals(){return this.#It.decimals}get value(){return this.#Nt}#jt(e){(0,a.assertArgument)(this.format===e.format,"incompatible format; use fixedNumber.toFormat","other",e)}#Dt(e,t){return e=h(e,this.#It,t),new y(u,e,this.#It)}#Lt(e,t){return this.#jt(e),this.#Dt(this.#Nt+e.#Nt,t)}addUnsafe(e){return this.#Lt(e)}add(e){return this.#Lt(e,"add")}#Mt(e,t){return this.#jt(e),this.#Dt(this.#Nt-e.#Nt,t)}subUnsafe(e){return this.#Mt(e)}sub(e){return this.#Mt(e,"sub")}#Ut(e,t){return this.#jt(e),this.#Dt(this.#Nt*e.#Nt/this.#Bt,t)}mulUnsafe(e){return this.#Ut(e)}mul(e){return this.#Ut(e,"mul")}mulSignal(e){this.#jt(e);const t=this.#Nt*e.#Nt;return(0,a.assert)(t%this.#Bt===f,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),this.#Dt(t/this.#Bt,"mulSignal")}#Ft(e,t){return(0,a.assert)(e.#Nt!==f,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#jt(e),this.#Dt(this.#Nt*this.#Bt/e.#Nt,t)}divUnsafe(e){return this.#Ft(e)}div(e){return this.#Ft(e,"div")}divSignal(e){(0,a.assert)(e.#Nt!==f,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#jt(e);const t=this.#Nt*this.#Bt;return(0,a.assert)(t%e.#Nt===f,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),this.#Dt(t/e.#Nt,"divSignal")}cmp(e){let t=this.value,n=e.value;const r=this.decimals-e.decimals;return r>0?n*=p(r):r<0&&(t*=p(-r)),t<n?-1:t>n?1:0}eq(e){return 0===this.cmp(e)}lt(e){return this.cmp(e)<0}lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=this.#Nt;return this.#Nt<f&&(e-=this.#Bt-c),e=this.#Nt/this.#Bt*this.#Bt,this.#Dt(e,"floor")}ceiling(){let e=this.#Nt;return this.#Nt>f&&(e+=this.#Bt-c),e=this.#Nt/this.#Bt*this.#Bt,this.#Dt(e,"ceiling")}round(e){if(null==e&&(e=0),e>=this.decimals)return this;const t=this.decimals-e,n=l*p(t-1);let r=this.value+n;const a=p(t);return r=r/a*a,h(r,this.#It,"round"),new y(u,r,this.#It)}isZero(){return this.#Nt===f}isNegative(){return this.#Nt<f}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return y.fromString(this.toString(),e)}static fromValue(e,t,n){const r=null==t?0:(0,i.getNumber)(t),o=b(n);let s=(0,i.getBigInt)(e,"value");const c=r-o.decimals;if(c>0){const t=p(c);(0,a.assert)(s%t===f,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),s/=t}else c<0&&(s*=p(-c));return h(s,o,"fromValue"),new y(u,s,o)}static fromString(e,t){const n=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);(0,a.assertArgument)(n&&n[2].length+n[3].length>0,"invalid FixedNumber string value","value",e);const r=b(t);let i=n[2]||"0",o=n[3]||"";for(;o.length<r.decimals;)o+=d;(0,a.assert)(o.substring(r.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:e}),o=o.substring(0,r.decimals);const s=BigInt(n[1]+i+o);return h(s,r,"fromString"),new y(u,s,r)}static fromBytes(e,t){let n=(0,i.toBigInt)((0,r.getBytes)(e,"value"));const a=b(t);return a.signed&&(n=(0,i.fromTwos)(n,a.width)),h(n,a,"fromBytes"),new y(u,n,a)}}t.FixedNumber=y},21753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=t.createGetUrl=void 0;const r=n(18110);function a(e){return async function(e,t){(0,r.assert)(null==t||!t.cancelled,"request cancelled before sending","CANCELLED");const n=e.url.split(":")[0].toLowerCase();(0,r.assert)("http"===n||"https"===n,`unsupported protocol ${n}`,"UNSUPPORTED_OPERATION",{info:{protocol:n},operation:"request"}),(0,r.assert)("https"===n||!e.credentials||e.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"});let a=null;const i=new AbortController,o=setTimeout((()=>{a=(0,r.makeError)("request timeout","TIMEOUT"),i.abort()}),e.timeout);t&&t.addListener((()=>{a=(0,r.makeError)("request cancelled","CANCELLED"),i.abort()}));const s={method:e.method,headers:new Headers(Array.from(e)),body:e.body||void 0,signal:i.signal};let f;try{f=await fetch(e.url,s)}catch(d){if(clearTimeout(o),a)throw a;throw d}clearTimeout(o);const c={};f.headers.forEach(((e,t)=>{c[t.toLowerCase()]=e}));const l=await f.arrayBuffer(),u=null==l?null:new Uint8Array(l);return{statusCode:f.status,statusMessage:f.statusText,headers:c,body:u}}}t.createGetUrl=a;const i=a();t.getUrl=async function(e,t){return i(e,t)}},79551:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.encodeRlp=t.decodeRlp=t.defineProperties=t.resolveProperties=t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.toBigInt=t.getUint=t.getNumber=t.getBigInt=t.mask=t.toTwos=t.fromTwos=t.FixedNumber=t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.makeError=t.assertNormalize=t.assertPrivate=t.assertArgumentCount=t.assertArgument=t.assert=t.isError=t.isCallException=t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=void 0,t.uuidV4=t.Utf8ErrorFuncs=void 0;var r=n(89481);Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return r.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return r.encodeBase58}});var a=n(76697);Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return a.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return a.encodeBase64}});var i=n(21061);Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return i.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return i.getBytesCopy}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return i.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return i.isBytesLike}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return i.hexlify}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return i.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return i.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return i.dataSlice}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return i.stripZerosLeft}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return i.zeroPadValue}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return i.zeroPadBytes}});var o=n(18110);Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return o.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return o.isError}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return o.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return o.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return o.assertArgumentCount}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return o.assertPrivate}}),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return o.assertNormalize}}),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return o.makeError}});var s=n(45459);Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return s.EventPayload}});var f=n(39451);Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return f.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return f.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return f.FetchCancelSignal}});var c=n(11307);Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return c.FixedNumber}});var l=n(15375);Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return l.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return l.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return l.mask}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return l.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return l.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return l.getUint}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return l.toBigInt}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return l.toNumber}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return l.toBeHex}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return l.toBeArray}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return l.toQuantity}});var u=n(26764);Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return u.resolveProperties}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return u.defineProperties}});var d=n(44590);Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return d.decodeRlp}});var p=n(72642);Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return p.encodeRlp}});var h=n(90977);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return h.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return h.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return h.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return h.parseUnits}});var b=n(30501);Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return b.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return b.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return b.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return b.Utf8ErrorFuncs}});var y=n(51576);Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return y.uuidV4}})},15375:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.getNumber=t.toBigInt=t.getUint=t.getBigInt=t.mask=t.toTwos=t.fromTwos=void 0;const r=n(21061),a=n(18110),i=BigInt(0),o=BigInt(1),s=9007199254740991;function f(e,t){switch(typeof e){case"bigint":return e;case"number":return(0,a.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,a.assertArgument)(e>=-s&&e<=s,"overflow",t||"value",e),BigInt(e);case"string":try{if(""===e)throw new Error("empty string");return"-"===e[0]&&"-"!==e[1]?-BigInt(e.substring(1)):BigInt(e)}catch(n){(0,a.assertArgument)(!1,`invalid BigNumberish string: ${n.message}`,t||"value",e)}}(0,a.assertArgument)(!1,"invalid BigNumberish value",t||"value",e)}function c(e,t){const n=f(e,t);return(0,a.assert)(n>=i,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),n}t.fromTwos=function(e,t){const n=c(e,"value"),r=BigInt(d(t,"width"));if((0,a.assert)(n>>r===i,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),n>>r-o){return-((~n&(o<<r)-o)+o)}return n},t.toTwos=function(e,t){let n=f(e,"value");const r=BigInt(d(t,"width")),s=o<<r-o;if(n<i){n=-n,(0,a.assert)(n<=s,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e});return(~n&(o<<r)-o)+o}return(0,a.assert)(n<s,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),n},t.mask=function(e,t){const n=c(e,"value"),r=BigInt(d(t,"bits"));return n&(o<<r)-o},t.getBigInt=f,t.getUint=c;const l="0123456789abcdef";function u(e){if(e instanceof Uint8Array){let t="0x0";for(const n of e)t+=l[n>>4],t+=l[15&n];return BigInt(t)}return f(e)}function d(e,t){switch(typeof e){case"bigint":return(0,a.assertArgument)(e>=-s&&e<=s,"overflow",t||"value",e),Number(e);case"number":return(0,a.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,a.assertArgument)(e>=-s&&e<=s,"overflow",t||"value",e),e;case"string":try{if(""===e)throw new Error("empty string");return d(BigInt(e),t)}catch(n){(0,a.assertArgument)(!1,`invalid numeric string: ${n.message}`,t||"value",e)}}(0,a.assertArgument)(!1,"invalid numeric value",t||"value",e)}function p(e){const t=c(e,"value");if(t===i)return new Uint8Array([]);let n=t.toString(16);n.length%2&&(n="0"+n);const r=new Uint8Array(n.length/2);for(let a=0;a<r.length;a++){const e=2*a;r[a]=parseInt(n.substring(e,e+2),16)}return r}t.toBigInt=u,t.getNumber=d,t.toNumber=function(e){return d(u(e))},t.toBeHex=function(e,t){let n=c(e,"value").toString(16);if(null==t)n.length%2&&(n="0"+n);else{const r=d(t,"width");for((0,a.assert)(2*r>=n.length,`value exceeds width (${r} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});n.length<2*r;)n="0"+n}return"0x"+n},t.toBeArray=p,t.toQuantity=function(e){let t=(0,r.hexlify)((0,r.isBytesLike)(e)?e:p(e)).substring(2);for(;t.startsWith("0");)t=t.substring(1);return""===t&&(t="0"),"0x"+t}},26764:(e,t)=>{"use strict";function n(e,t,n){const r=t.split("|").map((e=>e.trim()));for(let i=0;i<r.length;i++)switch(t){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof e===t)return}const a=new Error(`invalid value for type ${t}`);throw a.code="INVALID_ARGUMENT",a.argument=`value.${n}`,a.value=e,a}Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=t.resolveProperties=void 0,t.resolveProperties=async function(e){const t=Object.keys(e);return(await Promise.all(t.map((t=>Promise.resolve(e[t]))))).reduce(((e,n,r)=>(e[t[r]]=n,e)),{})},t.defineProperties=function(e,t,r){for(let a in t){let i=t[a];const o=r?r[a]:null;o&&n(i,o,a),Object.defineProperty(e,a,{enumerable:!0,value:i,writable:!1})}}},44590:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeRlp=void 0;const r=n(21061),a=n(18110),i=n(21061);function o(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}function s(e,t,n){let r=0;for(let a=0;a<n;a++)r=256*r+e[t+a];return r}function f(e,t,n,r){const i=[];for(;n<t+1+r;){const o=c(e,n);i.push(o.result),n+=o.consumed,(0,a.assert)(n<=t+1+r,"child data too short","BUFFER_OVERRUN",{buffer:e,length:r,offset:t})}return{consumed:1+r,result:i}}function c(e,t){(0,a.assert)(0!==e.length,"data too short","BUFFER_OVERRUN",{buffer:e,length:0,offset:1});const n=t=>{(0,a.assert)(t<=e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:e,length:e.length,offset:t})};if(e[t]>=248){const r=e[t]-247;n(t+1+r);const a=s(e,t+1,r);return n(t+1+r+a),f(e,t,t+1+r,r+a)}if(e[t]>=192){const r=e[t]-192;return n(t+1+r),f(e,t,t+1,r)}if(e[t]>=184){const a=e[t]-183;n(t+1+a);const i=s(e,t+1,a);n(t+1+a+i);return{consumed:1+a+i,result:(0,r.hexlify)(e.slice(t+1+a,t+1+a+i))}}if(e[t]>=128){const a=e[t]-128;n(t+1+a);return{consumed:1+a,result:(0,r.hexlify)(e.slice(t+1,t+1+a))}}return{consumed:1,result:o(e[t])}}t.decodeRlp=function(e){const t=(0,i.getBytes)(e,"data"),n=c(t,0);return(0,a.assertArgument)(n.consumed===t.length,"unexpected junk after rlp payload","data",e),n.result}},72642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeRlp=void 0;const r=n(21061);function a(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function i(e){if(Array.isArray(e)){let t=[];if(e.forEach((function(e){t=t.concat(i(e))})),t.length<=55)return t.unshift(192+t.length),t;const n=a(t.length);return n.unshift(247+n.length),n.concat(t)}const t=Array.prototype.slice.call((0,r.getBytes)(e,"object"));if(1===t.length&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const n=a(t.length);return n.unshift(183+n.length),n.concat(t)}const o="0123456789abcdef";t.encodeRlp=function(e){let t="0x";for(const n of i(e))t+=o[n>>4],t+=o[15&n];return t}},90977:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=t.formatEther=t.parseUnits=t.formatUnits=void 0;const r=n(18110),a=n(11307),i=n(15375),o=["wei","kwei","mwei","gwei","szabo","finney","ether"];function s(e,t){let n=18;if("string"===typeof t){const e=o.indexOf(t);(0,r.assertArgument)(e>=0,"invalid unit","unit",t),n=3*e}else null!=t&&(n=(0,i.getNumber)(t,"unit"));return a.FixedNumber.fromValue(e,n,{decimals:n,width:512}).toString()}function f(e,t){(0,r.assertArgument)("string"===typeof e,"value must be a string","value",e);let n=18;if("string"===typeof t){const e=o.indexOf(t);(0,r.assertArgument)(e>=0,"invalid unit","unit",t),n=3*e}else null!=t&&(n=(0,i.getNumber)(t,"unit"));return a.FixedNumber.fromString(e,{decimals:n,width:512}).value}t.formatUnits=s,t.parseUnits=f,t.formatEther=function(e){return s(e,18)},t.parseEther=function(e){return f(e,18)}},30501:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8CodePoints=t.toUtf8String=t.toUtf8Bytes=t.Utf8ErrorFuncs=void 0;const r=n(21061),a=n(18110);function i(e,t,n,r,a){if("BAD_PREFIX"===e||"UNEXPECTED_CONTINUE"===e){let e=0;for(let r=t+1;r<n.length&&n[r]>>6===2;r++)e++;return e}return"OVERRUN"===e?n.length-t-1:0}function o(e,n){null==n&&(n=t.Utf8ErrorFuncs.error);const a=(0,r.getBytes)(e,"bytes"),i=[];let o=0;for(;o<a.length;){const e=a[o++];if(e>>7===0){i.push(e);continue}let t=null,r=null;if(192===(224&e))t=1,r=127;else if(224===(240&e))t=2,r=2047;else{if(240!==(248&e)){o+=n(128===(192&e)?"UNEXPECTED_CONTINUE":"BAD_PREFIX",o-1,a,i);continue}t=3,r=65535}if(o-1+t>=a.length){o+=n("OVERRUN",o-1,a,i);continue}let s=e&(1<<8-t-1)-1;for(let f=0;f<t;f++){let e=a[o];if(128!=(192&e)){o+=n("MISSING_CONTINUE",o,a,i),s=null;break}s=s<<6|63&e,o++}null!==s&&(s>1114111?o+=n("OUT_OF_RANGE",o-1-t,a,i,s):s>=55296&&s<=57343?o+=n("UTF16_SURROGATE",o-1-t,a,i,s):s<=r?o+=n("OVERLONG",o-1-t,a,i,s):i.push(s))}return i}function s(e,t){(0,a.assertArgument)("string"===typeof e,"invalid string value","str",e),null!=t&&((0,a.assertNormalize)(t),e=e.normalize(t));let n=[];for(let r=0;r<e.length;r++){const t=e.charCodeAt(r);if(t<128)n.push(t);else if(t<2048)n.push(t>>6|192),n.push(63&t|128);else if(55296==(64512&t)){r++;const i=e.charCodeAt(r);(0,a.assertArgument)(r<e.length&&56320===(64512&i),"invalid surrogate pair","str",e);const o=65536+((1023&t)<<10)+(1023&i);n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(63&o|128)}else n.push(t>>12|224),n.push(t>>6&63|128),n.push(63&t|128)}return new Uint8Array(n)}t.Utf8ErrorFuncs=Object.freeze({error:function(e,t,n,r,i){(0,a.assertArgument)(!1,`invalid codepoint at offset ${t}; ${e}`,"bytes",n)},ignore:i,replace:function(e,t,n,r,o){return"OVERLONG"===e?((0,a.assertArgument)("number"===typeof o,"invalid bad code point for replacement","badCodepoint",o),r.push(o),0):(r.push(65533),i(e,t,n))}}),t.toUtf8Bytes=s,t.toUtf8String=function(e,t){return o(e,t).map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")},t.toUtf8CodePoints=function(e,t){return o(s(e,t))}},51576:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuidV4=void 0;const r=n(21061);t.uuidV4=function(e){const t=(0,r.getBytes)(e,"randomBytes");t[6]=15&t[6]|64,t[8]=63&t[8]|128;const n=(0,r.hexlify)(t);return[n.substring(2,10),n.substring(10,14),n.substring(14,18),n.substring(18,22),n.substring(22,34)].join("-")}},95354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseWallet=void 0;const r=n(35460),a=n(75479),i=n(95516),o=n(60042),s=n(79551);class f extends i.AbstractSigner{address;#zt;constructor(e,t){super(t),(0,s.assertArgument)(e&&"function"===typeof e.sign,"invalid private key","privateKey","[ REDACTED ]"),this.#zt=e;const n=(0,o.computeAddress)(this.signingKey.publicKey);(0,s.defineProperties)(this,{address:n})}get signingKey(){return this.#zt}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(e){return new f(this.#zt,e)}async signTransaction(e){const{to:t,from:n}=await(0,s.resolveProperties)({to:e.to?(0,r.resolveAddress)(e.to,this.provider):void 0,from:e.from?(0,r.resolveAddress)(e.from,this.provider):void 0});null!=t&&(e.to=t),null!=n&&(e.from=n),null!=e.from&&((0,s.assertArgument)((0,r.getAddress)(e.from)===this.address,"transaction from address mismatch","tx.from",e.from),delete e.from);const a=o.Transaction.from(e);return a.signature=this.signingKey.sign(a.unsignedHash),a.serialized}async signMessage(e){return this.signMessageSync(e)}signMessageSync(e){return this.signingKey.sign((0,a.hashMessage)(e)).serialized}async signTypedData(e,t,n){const r=await a.TypedDataEncoder.resolveNames(e,t,n,(async e=>{(0,s.assert)(null!=this.provider,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:e}});const t=await this.provider.resolveName(e);return(0,s.assert)(null!=t,"unconfigured ENS name","UNCONFIGURED_NAME",{value:e}),t}));return this.signingKey.sign(a.TypedDataEncoder.hash(r.domain,t,r.value)).serialized}}t.BaseWallet=f},3011:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIndexedAccountPath=t.getAccountPath=t.HDNodeVoidWallet=t.HDNodeWallet=t.defaultPath=void 0;const r=n(27294),a=n(95516),i=n(60042),o=n(79551),s=n(37856),f=n(95354),c=n(27045),l=n(68494);t.defaultPath="m/44'/60'/0'/0/0";const u=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),d=2147483648,p=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");function h(e,t){let n="";for(;e;)n="0123456789abcdef"[e%16]+n,e=Math.trunc(e/16);for(;n.length<2*t;)n="0"+n;return"0x"+n}function b(e){const t=(0,o.getBytes)(e),n=(0,o.dataSlice)((0,r.sha256)((0,r.sha256)(t)),0,4),a=(0,o.concat)([t,n]);return(0,o.encodeBase58)(a)}const y={};function m(e,t,n,a){const i=new Uint8Array(37);e&d?((0,o.assert)(null!=a,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),i.set((0,o.getBytes)(a),1)):i.set((0,o.getBytes)(n));for(let r=24;r>=0;r-=8)i[33+(r>>3)]=e>>24-r&255;const s=(0,o.getBytes)((0,r.computeHmac)("sha512",t,i));return{IL:s.slice(0,32),IR:s.slice(32)}}function g(e,t){const n=t.split("/");(0,o.assertArgument)(n.length>0,"invalid path","path",t),"m"===n[0]&&((0,o.assertArgument)(0===e.depth,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${e.depth}`,"path",t),n.shift());let r=e;for(let a=0;a<n.length;a++){const e=n[a];if(e.match(/^[0-9]+'$/)){const t=parseInt(e.substring(0,e.length-1));(0,o.assertArgument)(t<d,"invalid path index",`path[${a}]`,e),r=r.deriveChild(d+t)}else if(e.match(/^[0-9]+$/)){const t=parseInt(e);(0,o.assertArgument)(t<d,"invalid path index",`path[${a}]`,e),r=r.deriveChild(t)}else(0,o.assertArgument)(!1,"invalid path component",`path[${a}]`,e)}return r}class v extends f.BaseWallet{publicKey;fingerprint;parentFingerprint;mnemonic;chainCode;path;index;depth;constructor(e,t,n,a,i,s,f,c,l){super(t,l),(0,o.assertPrivate)(e,y,"HDNodeWallet"),(0,o.defineProperties)(this,{publicKey:t.compressedPublicKey});const u=(0,o.dataSlice)((0,r.ripemd160)((0,r.sha256)(this.publicKey)),0,4);(0,o.defineProperties)(this,{parentFingerprint:n,fingerprint:u,chainCode:a,path:i,index:s,depth:f}),(0,o.defineProperties)(this,{mnemonic:c})}connect(e){return new v(y,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,e)}#$t(){const e={address:this.address,privateKey:this.privateKey},t=this.mnemonic;return this.path&&t&&"en"===t.wordlist.locale&&""===t.password&&(e.mnemonic={path:this.path,locale:"en",entropy:t.entropy}),e}async encrypt(e,t){return await(0,l.encryptKeystoreJson)(this.#$t(),e,{progressCallback:t})}encryptSync(e){return(0,l.encryptKeystoreJsonSync)(this.#$t(),e)}get extendedKey(){return(0,o.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),b((0,o.concat)(["0x0488ADE4",h(this.depth,1),this.parentFingerprint,h(this.index,4),this.chainCode,(0,o.concat)(["0x00",this.privateKey])]))}hasPath(){return null!=this.path}neuter(){return new w(y,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}deriveChild(e){const t=(0,o.getNumber)(e,"index");(0,o.assertArgument)(t<=4294967295,"invalid index","index",t);let n=this.path;n&&(n+="/"+(t&~d),t&d&&(n+="'"));const{IR:a,IL:i}=m(t,this.chainCode,this.publicKey,this.privateKey),s=new r.SigningKey((0,o.toBeHex)(((0,o.toBigInt)(i)+BigInt(this.privateKey))%p,32));return new v(y,s,this.fingerprint,(0,o.hexlify)(a),n,t,this.depth+1,this.mnemonic,this.provider)}derivePath(e){return g(this,e)}static#Gt(e,t){(0,o.assertArgument)((0,o.isBytesLike)(e),"invalid seed","seed","[REDACTED]");const n=(0,o.getBytes)(e,"seed");(0,o.assertArgument)(n.length>=16&&n.length<=64,"invalid seed","seed","[REDACTED]");const a=(0,o.getBytes)((0,r.computeHmac)("sha512",u,n)),i=new r.SigningKey((0,o.hexlify)(a.slice(0,32)));return new v(y,i,"0x00000000",(0,o.hexlify)(a.slice(32)),"m",0,0,t,null)}static fromExtendedKey(e){const t=(0,o.toBeArray)((0,o.decodeBase58)(e));(0,o.assertArgument)(82===t.length||b(t.slice(0,78))===e,"invalid extended key","extendedKey","[ REDACTED ]");const n=t[4],a=(0,o.hexlify)(t.slice(5,9)),s=parseInt((0,o.hexlify)(t.slice(9,13)).substring(2),16),f=(0,o.hexlify)(t.slice(13,45)),c=t.slice(45,78);switch((0,o.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":{const e=(0,o.hexlify)(c);return new w(y,(0,i.computeAddress)(e),e,a,f,null,s,n,null)}case"0x0488ade4":case"0x04358394 ":if(0!==c[0])break;return new v(y,new r.SigningKey(c.slice(1)),a,f,null,s,n,null,null)}(0,o.assertArgument)(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(e,n,a){null==e&&(e=""),null==n&&(n=t.defaultPath),null==a&&(a=s.LangEn.wordlist());const i=c.Mnemonic.fromEntropy((0,r.randomBytes)(16),e,a);return v.#Gt(i.computeSeed(),i).derivePath(n)}static fromMnemonic(e,n){return n||(n=t.defaultPath),v.#Gt(e.computeSeed(),e).derivePath(n)}static fromPhrase(e,n,r,a){null==n&&(n=""),null==r&&(r=t.defaultPath),null==a&&(a=s.LangEn.wordlist());const i=c.Mnemonic.fromPhrase(e,n,a);return v.#Gt(i.computeSeed(),i).derivePath(r)}static fromSeed(e){return v.#Gt(e,null)}}t.HDNodeWallet=v;class w extends a.VoidSigner{publicKey;fingerprint;parentFingerprint;chainCode;path;index;depth;constructor(e,t,n,a,i,s,f,c,l){super(t,l),(0,o.assertPrivate)(e,y,"HDNodeVoidWallet"),(0,o.defineProperties)(this,{publicKey:n});const u=(0,o.dataSlice)((0,r.ripemd160)((0,r.sha256)(n)),0,4);(0,o.defineProperties)(this,{publicKey:n,fingerprint:u,parentFingerprint:a,chainCode:i,path:s,index:f,depth:c})}connect(e){return new w(y,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,e)}get extendedKey(){return(0,o.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),b((0,o.concat)(["0x0488B21E",h(this.depth,1),this.parentFingerprint,h(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return null!=this.path}deriveChild(e){const t=(0,o.getNumber)(e,"index");(0,o.assertArgument)(t<=4294967295,"invalid index","index",t);let n=this.path;n&&(n+="/"+(t&~d),t&d&&(n+="'"));const{IR:a,IL:s}=m(t,this.chainCode,this.publicKey,null),f=r.SigningKey.addPoints(s,this.publicKey,!0),c=(0,i.computeAddress)(f);return new w(y,c,f,this.fingerprint,(0,o.hexlify)(a),n,t,this.depth+1,this.provider)}derivePath(e){return g(this,e)}}t.HDNodeVoidWallet=w,t.getAccountPath=function(e){const t=(0,o.getNumber)(e,"index");return(0,o.assertArgument)(t>=0&&t<d,"invalid account index","index",t),`m/44'/60'/${t}'/0/0`},t.getIndexedAccountPath=function(e){const t=(0,o.getNumber)(e,"index");return(0,o.assertArgument)(t>=0&&t<d,"invalid account index","index",t),`m/44'/60'/0'/0/${t}`}},84032:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=t.Mnemonic=t.encryptKeystoreJsonSync=t.encryptKeystoreJson=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.isKeystoreJson=t.decryptCrowdsaleJson=t.isCrowdsaleJson=t.HDNodeVoidWallet=t.HDNodeWallet=t.getIndexedAccountPath=t.getAccountPath=t.defaultPath=t.BaseWallet=void 0;var r=n(95354);Object.defineProperty(t,"BaseWallet",{enumerable:!0,get:function(){return r.BaseWallet}});var a=n(3011);Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return a.defaultPath}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return a.getAccountPath}}),Object.defineProperty(t,"getIndexedAccountPath",{enumerable:!0,get:function(){return a.getIndexedAccountPath}}),Object.defineProperty(t,"HDNodeWallet",{enumerable:!0,get:function(){return a.HDNodeWallet}}),Object.defineProperty(t,"HDNodeVoidWallet",{enumerable:!0,get:function(){return a.HDNodeVoidWallet}});var i=n(77683);Object.defineProperty(t,"isCrowdsaleJson",{enumerable:!0,get:function(){return i.isCrowdsaleJson}}),Object.defineProperty(t,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return i.decryptCrowdsaleJson}});var o=n(68494);Object.defineProperty(t,"isKeystoreJson",{enumerable:!0,get:function(){return o.isKeystoreJson}}),Object.defineProperty(t,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return o.decryptKeystoreJsonSync}}),Object.defineProperty(t,"decryptKeystoreJson",{enumerable:!0,get:function(){return o.decryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJson",{enumerable:!0,get:function(){return o.encryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return o.encryptKeystoreJsonSync}});var s=n(27045);Object.defineProperty(t,"Mnemonic",{enumerable:!0,get:function(){return s.Mnemonic}});var f=n(9865);Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return f.Wallet}})},77683:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decryptCrowdsaleJson=t.isCrowdsaleJson=void 0;const r=n(32899),a=n(35460),i=n(27294),o=n(75479),s=n(79551),f=n(32021);t.isCrowdsaleJson=function(e){try{if(JSON.parse(e).encseed)return!0}catch(t){}return!1},t.decryptCrowdsaleJson=function(e,t){const n=JSON.parse(e),c=(0,f.getPassword)(t),l=(0,a.getAddress)((0,f.spelunk)(n,"ethaddr:string!")),u=(0,f.looseArrayify)((0,f.spelunk)(n,"encseed:string!"));(0,s.assertArgument)(u&&u.length%16===0,"invalid encseed","json",e);const d=(0,s.getBytes)((0,i.pbkdf2)(c,c,2e3,32,"sha256")).slice(0,16),p=u.slice(0,16),h=u.slice(16),b=new r.CBC(d,p),y=(0,r.pkcs7Strip)((0,s.getBytes)(b.decrypt(h)));let m="";for(let r=0;r<y.length;r++)m+=String.fromCharCode(y[r]);return{address:l,privateKey:(0,o.id)(m)}}},68494:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encryptKeystoreJson=t.encryptKeystoreJsonSync=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.isKeystoreJson=void 0;const r=n(32899),a=n(35460),i=n(27294),o=n(60042),s=n(79551),f=n(32021),c=n(44646),l="m/44'/60'/0'/0/0";function u(e,t){const n=(0,s.getBytes)(t),c=(0,f.spelunk)(e,"crypto.ciphertext:data!"),u=(0,s.hexlify)((0,i.keccak256)((0,s.concat)([n.slice(16,32),c]))).substring(2);(0,s.assertArgument)(u===(0,f.spelunk)(e,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");const d=function(e,t,n){if("aes-128-ctr"===(0,f.spelunk)(e,"crypto.cipher:string")){const a=(0,f.spelunk)(e,"crypto.cipherparams.iv:data!"),i=new r.CTR(t,a);return(0,s.hexlify)(i.decrypt(n))}(0,s.assert)(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}(e,n.slice(0,16),c),p=(0,o.computeAddress)(d);if(e.address){let t=e.address.toLowerCase();t.startsWith("0x")||(t="0x"+t),(0,s.assertArgument)((0,a.getAddress)(t)===p,"keystore address/privateKey mismatch","address",e.address)}const h={address:p,privateKey:d};if("0.1"===(0,f.spelunk)(e,"x-ethers.version:string")){const t=n.slice(32,64),a=(0,f.spelunk)(e,"x-ethers.mnemonicCiphertext:data!"),i=(0,f.spelunk)(e,"x-ethers.mnemonicCounter:data!"),o=new r.CTR(t,i);h.mnemonic={path:(0,f.spelunk)(e,"x-ethers.path:string")||l,locale:(0,f.spelunk)(e,"x-ethers.locale:string")||"en",entropy:(0,s.hexlify)((0,s.getBytes)(o.decrypt(a)))}}return h}function d(e){const t=(0,f.spelunk)(e,"crypto.kdf:string");if(t&&"string"===typeof t){if("scrypt"===t.toLowerCase()){const n=(0,f.spelunk)(e,"crypto.kdfparams.salt:data!"),r=(0,f.spelunk)(e,"crypto.kdfparams.n:int!"),a=(0,f.spelunk)(e,"crypto.kdfparams.r:int!"),i=(0,f.spelunk)(e,"crypto.kdfparams.p:int!");(0,s.assertArgument)(r>0&&0===(r&r-1),"invalid kdf.N","kdf.N",r),(0,s.assertArgument)(a>0&&i>0,"invalid kdf","kdf",t);const o=(0,f.spelunk)(e,"crypto.kdfparams.dklen:int!");return(0,s.assertArgument)(32===o,"invalid kdf.dklen","kdf.dflen",o),{name:"scrypt",salt:n,N:r,r:a,p:i,dkLen:64}}if("pbkdf2"===t.toLowerCase()){const t=(0,f.spelunk)(e,"crypto.kdfparams.salt:data!"),n=(0,f.spelunk)(e,"crypto.kdfparams.prf:string!"),r=n.split("-").pop();(0,s.assertArgument)("sha256"===r||"sha512"===r,"invalid kdf.pdf","kdf.pdf",n);const a=(0,f.spelunk)(e,"crypto.kdfparams.c:int!"),i=(0,f.spelunk)(e,"crypto.kdfparams.dklen:int!");return(0,s.assertArgument)(32===i,"invalid kdf.dklen","kdf.dklen",i),{name:"pbkdf2",salt:t,count:a,dkLen:i,algorithm:r}}}(0,s.assertArgument)(!1,"unsupported key-derivation function","kdf",t)}function p(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}function h(e){const t=null!=e.salt?(0,s.getBytes)(e.salt,"options.salt"):(0,i.randomBytes)(32);let n=1<<17,r=8,a=1;return e.scrypt&&(e.scrypt.N&&(n=e.scrypt.N),e.scrypt.r&&(r=e.scrypt.r),e.scrypt.p&&(a=e.scrypt.p)),(0,s.assertArgument)("number"===typeof n&&n>0&&Number.isSafeInteger(n)&&(BigInt(n)&BigInt(n-1))===BigInt(0),"invalid scrypt N parameter","options.N",n),(0,s.assertArgument)("number"===typeof r&&r>0&&Number.isSafeInteger(r),"invalid scrypt r parameter","options.r",r),(0,s.assertArgument)("number"===typeof a&&a>0&&Number.isSafeInteger(a),"invalid scrypt p parameter","options.p",a),{name:"scrypt",dkLen:32,salt:t,N:n,r:r,p:a}}function b(e,t,n,a){const o=(0,s.getBytes)(n.privateKey,"privateKey"),u=null!=a.iv?(0,s.getBytes)(a.iv,"options.iv"):(0,i.randomBytes)(16);(0,s.assertArgument)(16===u.length,"invalid options.iv length","options.iv",a.iv);const d=null!=a.uuid?(0,s.getBytes)(a.uuid,"options.uuid"):(0,i.randomBytes)(16);(0,s.assertArgument)(16===d.length,"invalid options.uuid length","options.uuid",a.iv);const p=e.slice(0,16),h=e.slice(16,32),b=new r.CTR(p,u),y=(0,s.getBytes)(b.encrypt(o)),m=(0,i.keccak256)((0,s.concat)([h,y])),g={address:n.address.substring(2).toLowerCase(),id:(0,s.uuidV4)(d),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,s.hexlify)(u).substring(2)},ciphertext:(0,s.hexlify)(y).substring(2),kdf:"scrypt",kdfparams:{salt:(0,s.hexlify)(t.salt).substring(2),n:t.N,dklen:32,p:t.p,r:t.r},mac:m.substring(2)}};if(n.mnemonic){const t=null!=a.client?a.client:`ethers/${c.version}`,o=n.mnemonic.path||l,u=n.mnemonic.locale||"en",d=e.slice(32,64),p=(0,s.getBytes)(n.mnemonic.entropy,"account.mnemonic.entropy"),h=(0,i.randomBytes)(16),b=new r.CTR(d,h),y=(0,s.getBytes)(b.encrypt(p)),m=new Date,v="UTC--"+(m.getUTCFullYear()+"-"+(0,f.zpad)(m.getUTCMonth()+1,2)+"-"+(0,f.zpad)(m.getUTCDate(),2)+"T"+(0,f.zpad)(m.getUTCHours(),2)+"-"+(0,f.zpad)(m.getUTCMinutes(),2)+"-"+(0,f.zpad)(m.getUTCSeconds(),2)+".0Z")+"--"+g.address;g["x-ethers"]={client:t,gethFilename:v,path:o,locale:u,mnemonicCounter:(0,s.hexlify)(h).substring(2),mnemonicCiphertext:(0,s.hexlify)(y).substring(2),version:"0.1"}}return JSON.stringify(g)}t.isKeystoreJson=function(e){try{const t=JSON.parse(e);if(3===(null!=t.version?parseInt(t.version):0))return!0}catch(t){}return!1},t.decryptKeystoreJsonSync=function(e,t){const n=JSON.parse(e),r=(0,f.getPassword)(t),a=d(n);if("pbkdf2"===a.name){const{salt:e,count:t,dkLen:o,algorithm:s}=a;return u(n,(0,i.pbkdf2)(r,e,t,o,s))}(0,s.assert)("scrypt"===a.name,"cannot be reached","UNKNOWN_ERROR",{params:a});const{salt:o,N:c,r:l,p:p,dkLen:h}=a;return u(n,(0,i.scryptSync)(r,o,c,l,p,h))},t.decryptKeystoreJson=async function(e,t,n){const r=JSON.parse(e),a=(0,f.getPassword)(t),o=d(r);if("pbkdf2"===o.name){n&&(n(0),await p(0));const{salt:e,count:t,dkLen:s,algorithm:f}=o,c=(0,i.pbkdf2)(a,e,t,s,f);return n&&(n(1),await p(0)),u(r,c)}(0,s.assert)("scrypt"===o.name,"cannot be reached","UNKNOWN_ERROR",{params:o});const{salt:c,N:l,r:h,p:b,dkLen:y}=o;return u(r,await(0,i.scrypt)(a,c,l,h,b,y,n))},t.encryptKeystoreJsonSync=function(e,t,n){null==n&&(n={});const r=(0,f.getPassword)(t),a=h(n),o=(0,i.scryptSync)(r,a.salt,a.N,a.r,a.p,64);return b((0,s.getBytes)(o),a,e,n)},t.encryptKeystoreJson=async function(e,t,n){null==n&&(n={});const r=(0,f.getPassword)(t),a=h(n),o=await(0,i.scrypt)(r,a.salt,a.N,a.r,a.p,64,n.progressCallback);return b((0,s.getBytes)(o),a,e,n)}},27045:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Mnemonic=void 0;const r=n(27294),a=n(79551),i=n(37856);function o(e){return(1<<e)-1<<8-e&255}function s(e,t){(0,a.assertNormalize)("NFKD"),null==t&&(t=i.LangEn.wordlist());const n=t.split(e);(0,a.assertArgument)(n.length%3===0&&n.length>=12&&n.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const s=new Uint8Array(Math.ceil(11*n.length/8));let f=0;for(let r=0;r<n.length;r++){let e=t.getWordIndex(n[r].normalize("NFKD"));(0,a.assertArgument)(e>=0,`invalid mnemonic word at index ${r}`,"mnemonic","[ REDACTED ]");for(let t=0;t<11;t++)e&1<<10-t&&(s[f>>3]|=1<<7-f%8),f++}const c=32*n.length/3,l=o(n.length/3),u=(0,a.getBytes)((0,r.sha256)(s.slice(0,c/8)))[0]&l;return(0,a.assertArgument)(u===(s[s.length-1]&l),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),(0,a.hexlify)(s.slice(0,c/8))}function f(e,t){(0,a.assertArgument)(e.length%4===0&&e.length>=16&&e.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),null==t&&(t=i.LangEn.wordlist());const n=[0];let s=11;for(let r=0;r<e.length;r++)s>8?(n[n.length-1]<<=8,n[n.length-1]|=e[r],s-=8):(n[n.length-1]<<=s,n[n.length-1]|=e[r]>>8-s,n.push(e[r]&((1<<8-s)-1&255)),s+=3);const f=e.length/4,c=parseInt((0,r.sha256)(e).substring(2,4),16)&o(f);return n[n.length-1]<<=f,n[n.length-1]|=c>>8-f,t.join(n.map((e=>t.getWord(e))))}const c={};class l{phrase;password;wordlist;entropy;constructor(e,t,n,r,o){null==r&&(r=""),null==o&&(o=i.LangEn.wordlist()),(0,a.assertPrivate)(e,c,"Mnemonic"),(0,a.defineProperties)(this,{phrase:n,password:r,wordlist:o,entropy:t})}computeSeed(){const e=(0,a.toUtf8Bytes)("mnemonic"+this.password,"NFKD");return(0,r.pbkdf2)((0,a.toUtf8Bytes)(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(e,t,n){const r=s(e,n);return e=f((0,a.getBytes)(r),n),new l(c,r,e,t,n)}static fromEntropy(e,t,n){const r=(0,a.getBytes)(e,"entropy"),i=f(r,n);return new l(c,(0,a.hexlify)(r),i,t,n)}static entropyToPhrase(e,t){return f((0,a.getBytes)(e,"entropy"),t)}static phraseToEntropy(e,t){return s(e,t)}static isValidMnemonic(e,t){try{return s(e,t),!0}catch(n){}return!1}}t.Mnemonic=l},32021:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spelunk=t.getPassword=t.zpad=t.looseArrayify=void 0;const r=n(79551);function a(e){return"string"!==typeof e||e.startsWith("0x")||(e="0x"+e),(0,r.getBytesCopy)(e)}t.looseArrayify=a,t.zpad=function(e,t){for(e=String(e);e.length<t;)e="0"+e;return e},t.getPassword=function(e){return"string"===typeof e?(0,r.toUtf8Bytes)(e,"NFKC"):(0,r.getBytesCopy)(e)},t.spelunk=function(e,t){const n=t.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);(0,r.assertArgument)(null!=n,"invalid path","path",t);const i=n[1],o=n[3],s="!"===n[4];let f=e;for(const r of i.toLowerCase().split(".")){if(Array.isArray(f)){if(!r.match(/^[0-9]+$/))break;f=f[parseInt(r)]}else if("object"===typeof f){let e=null;for(const t in f)if(t.toLowerCase()===r){e=f[t];break}f=e}else f=null;if(null==f)break}if((0,r.assertArgument)(!s||null!=f,"missing required value","path",i),o&&null!=f){if("int"===o){if("string"===typeof f&&f.match(/^-?[0-9]+$/))return parseInt(f);if(Number.isSafeInteger(f))return f}if("number"===o&&"string"===typeof f&&f.match(/^-?[0-9.]*$/))return parseFloat(f);if("data"===o&&"string"===typeof f)return a(f);if("array"===o&&Array.isArray(f))return f;if(o===typeof f)return f;(0,r.assertArgument)(!1,`wrong type found for ${o} `,"path",i)}return f}},9865:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=void 0;const r=n(27294),a=n(79551),i=n(95354),o=n(3011),s=n(77683),f=n(68494),c=n(27045);function l(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}class u extends i.BaseWallet{constructor(e,t){"string"!==typeof e||e.startsWith("0x")||(e="0x"+e),super("string"===typeof e?new r.SigningKey(e):e,t)}connect(e){return new u(this.signingKey,e)}async encrypt(e,t){const n={address:this.address,privateKey:this.privateKey};return await(0,f.encryptKeystoreJson)(n,e,{progressCallback:t})}encryptSync(e){const t={address:this.address,privateKey:this.privateKey};return(0,f.encryptKeystoreJsonSync)(t,e)}static#Ht(e){if((0,a.assertArgument)(e,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in e&&e.mnemonic&&"en"===e.mnemonic.locale){const t=c.Mnemonic.fromEntropy(e.mnemonic.entropy),n=o.HDNodeWallet.fromMnemonic(t,e.mnemonic.path);if(n.address===e.address&&n.privateKey===e.privateKey)return n;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const t=new u(e.privateKey);return(0,a.assertArgument)(t.address===e.address,"address/privateKey mismatch","json","[ REDACTED ]"),t}static async fromEncryptedJson(e,t,n){let r=null;return(0,f.isKeystoreJson)(e)?r=await(0,f.decryptKeystoreJson)(e,t,n):(0,s.isCrowdsaleJson)(e)&&(n&&(n(0),await l(0)),r=(0,s.decryptCrowdsaleJson)(e,t),n&&(n(1),await l(0))),u.#Ht(r)}static fromEncryptedJsonSync(e,t){let n=null;return(0,f.isKeystoreJson)(e)?n=(0,f.decryptKeystoreJsonSync)(e,t):(0,s.isCrowdsaleJson)(e)?n=(0,s.decryptCrowdsaleJson)(e,t):(0,a.assertArgument)(!1,"invalid JSON wallet","json","[ REDACTED ]"),u.#Ht(n)}static createRandom(e){const t=o.HDNodeWallet.createRandom();return e?t.connect(e):t}static fromPhrase(e,t){const n=o.HDNodeWallet.fromPhrase(e);return t?n.connect(t):n}}t.Wallet=u},38428:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBits=void 0;t.decodeBits=function(e,t){const n=(1<<e)-1,r=[];let a=0,i=0,o=0;for(let s=0;s<t.length;s++)for(a=a<<6|")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".indexOf(t[s]),i+=6;i>=e;){const t=a>>i-e;a&=(1<<i-e)-1,i-=e,0===t?o+=n:(r.push(t+o),o=0)}return r}},48469:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeOwl=t.decode=void 0;const r=n(79551),a=" !#$%&'()*+,-./<=>?@[]^_`{|}~",i=/^[a-z]*$/i;function o(e,t){let n=97;return e.reduce(((e,r)=>(r===t?n++:r.match(i)?e.push(String.fromCharCode(n)+r):(n=97,e.push(r)),e)),[])}function s(e,t){for(let i=a.length-1;i>=0;i--)e=e.split(a[i]).join(t.substring(2*i,2*i+2));const n=[],r=e.replace(/(:|([0-9])|([A-Z][a-z]*))/g,((e,t,r,a)=>{if(r)for(let i=parseInt(r);i>=0;i--)n.push(";");else n.push(t.toLowerCase());return""}));if(r)throw new Error(`leftovers: ${JSON.stringify(r)}`);return o(o(n,";"),":")}t.decode=s,t.decodeOwl=function(e){return(0,r.assertArgument)("0"===e[0],"unsupported auwl data","data",e),s(e.substring(1+2*a.length),e.substring(1,1+2*a.length))}},22549:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeOwlA=void 0;const r=n(79551),a=n(38428),i=n(48469);t.decodeOwlA=function(e,t){let n=(0,i.decodeOwl)(e).join(",");return t.split(/,/g).forEach((e=>{const i=e.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);(0,r.assertArgument)(null!==i,"internal error parsing accents","accents",t);let o=0;const s=(0,a.decodeBits)(parseInt(i[3]),i[4]),f=parseInt(i[2]),c=new RegExp(`([${i[1]}])`,"g");n=n.replace(c,((e,t)=>(0===--s[o]&&(t=String.fromCharCode(t.charCodeAt(0),f),o++),t)))})),n.split(",")}},90061:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wordlists=t.WordlistOwlA=t.WordlistOwl=t.LangEn=t.Wordlist=void 0;var r=n(32203);Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return r.Wordlist}});var a=n(37856);Object.defineProperty(t,"LangEn",{enumerable:!0,get:function(){return a.LangEn}});var i=n(4132);Object.defineProperty(t,"WordlistOwl",{enumerable:!0,get:function(){return i.WordlistOwl}});var o=n(10605);Object.defineProperty(t,"WordlistOwlA",{enumerable:!0,get:function(){return o.WordlistOwlA}});var s=n(1494);Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return s.wordlists}})},37856:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LangEn=void 0;const r=n(4132);let a=null;class i extends r.WordlistOwl{constructor(){super("en","0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN<aNn RRelyRga(R*lSeS-SketTt!3A^AnAutyCau'ComeEfF%eG(Ha=H(dLie=LowLtN^Nef./TrayTt Twe&Y#d3Cyc!DKeNdOlogyRdR`Tt _{AdeAmeAnketA,EakE[IndOodO[omOu'UeUrUsh_rdAtDyIlMbNeNusOkO,Rd R(gRrowSsTtomUn)XY_{etA(AndA[A=EadEezeI{Id+IefIghtIngIskOccoliOk&OnzeOomO` OwnUsh2Bb!DdyD+tFf$oIldLbLkL!tNd!Nk Rd&Rg R,SS(e[SyTt Y Zz:Bba+B(B!CtusGeKe~LmM aMpNN$N)lNdyNn#NoeNvasNy#Pab!P.$Pta(RRb#RdRgoRpetRryRtSeShS(o/!Su$TT$ogT^Teg%yTt!UghtU'Ut]Ve3Il(gL yM|NsusNturyRe$Rta(_irAlkAmp]An+AosApt Ar+A'AtEapE{Ee'EfErryE,I{&IefIldIm}yOi)Oo'R#-U{!UnkUrn0G?Nnam#Rc!Tiz&TyVil_imApArifyAwAyE<ErkEv I{I|IffImbIn-IpO{OgO'O`OudOwnUbUmpU, Ut^_^A,C#utDeFfeeIlInL!@L%LumnMb(eMeMf%tM-Mm#Mp<yNc tNdu@NfirmNg*[N}@Nsid NtrolNv()OkOlPp PyR$ReRnR*@/Tt#U^UntryUp!Ur'Us(V Yo>_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M<dMi'Ni$Nti,NyP?tP&dPos.P`PutyRi=ScribeS tSignSkSpair/royTailTe@VelopVi)Vo>3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-Eg<tEm|Eph<tEvat%I>Se0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-P<dPe@Pi*Pla(Po'P*[T&dTra0EEbrow:Br-CeCultyDeIntI`~L'MeMilyMousNNcyNtasyRmSh]TT$Th TigueUltV%.e3Atu*Bru?yD $EEdElMa!N)/iv$T^V W3B Ct]EldGu*LeLmLt N$NdNeNg NishReRmR,Sc$ShTT}[X_gAmeAshAtAv%EeIghtIpOatO{O%Ow UidUshY_mCusGIlLd~owOdOtR)Re,R+tRkRtu}RumRw?dSsil/ UndX_gi!AmeEqu|EshI&dIn+OgOntO,OwnOz&U.2ElNNnyRna)RyTu*:D+tInLaxy~ yMePRa+Rba+Rd&Rl-Rm|SSpTeTh U+Ze3N $NiusN*Nt!Nu(e/u*2O,0AntFtGg!Ng RaffeRlVe_dAn)A*A[IdeImp'ObeOomOryO=OwUe_tDde[LdOdO'RillaSpelSsipV nWn_bA)A(AntApeA[Av.yEatE&IdIefItOc yOupOwUnt_rdE[IdeIltIt?N3M:B.IrLfMm M, NdPpyRb%RdRshR=,TVeWkZ?d3AdAl`ArtAvyD+hogIght~oLmetLpNRo3Dd&Gh~NtPRe/%y5BbyCkeyLdLeLiday~owMeNeyOdPeRnRr%R'Sp.$/TelUrV 5BGeM<Mb!M%Nd*dNgryNtRd!RryRtSb<d3Brid:1EOn0EaEntifyLe2N%e4LLeg$L}[0A+Ita>M&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryF<tFl-tF%mHa!H .Iti$Je@JuryMa>N Noc|PutQuiryS<eSe@SideSpi*/$lTa@T e,ToVe,V.eVol=3On0L<dOla>Sue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurE<Tob 0Or1FF Fi)T&2L1Ay0DI=Ymp-0It0CeEI#L(eLy1EnEraIn]Po'T]1An+B.Ch?dD D(?yG<I|Ig($Ph<0Tr-h0H 0Tdo%T TputTside0AlEnEr0NN 0Yg&0/ 0O}:CtDd!GeIrLa)LmNdaNelN-N` P RadeR|RkRrotRtySsT^ThTi|TrolTt nU'VeYm|3A)AnutArAs<tL-<NN$tyNcilOp!Pp Rfe@Rm.Rs#T2O}OtoRa'Ys-$0AnoCn-Ctu*E)GGe#~LotNkO} Pe/olT^Zza_)A}tA,-A>AyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOg<OtOwUsh0AllArtI!OkeOo`0A{AkeApIffOw0ApCc Ci$CkDaFtL?Ldi LidLut]L=Me#eNgOnRryRtUlUndUpUr)U`0A)A*Ati$AwnEakEci$EedEllEndH eI)Id IkeInIr.L.OilOns%O#OrtOtRayReadR(gY0Ua*UeezeUir*l_b!AdiumAffA+AirsAmpAndArtA>AyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|UffUmb!Y!0Bje@Bm.BwayC)[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NN<tNnisNtRm/Xt_nkAtEmeEnE%yE*EyIngIsOughtReeRi=RowUmbUnd 0CketDeG LtMb MeNyPRedSsueT!5A,BaccoDayDdl EGe` I!tK&MatoM%rowNeNgueNightOlO`PP-Pp!R^RnadoRtoi'SsT$Uri,W?dW WnY_{AdeAff-Ag-A(Ansf ApAshA=lAyEatEeEndI$IbeI{Igg ImIpOphyOub!U{UeUlyUmpetU,U`Y2BeIt]Mb!NaN}lRkeyRnRt!1El=EntyI)InI,O1PeP-$:5Ly5B*lla0Ab!Awa*C!Cov D DoFairFoldHappyIf%mIqueItIv 'KnownLo{TilUsu$Veil1Da>GradeHoldOnP Set1B<Ge0A+EEdEfulE![U$0Il.y:C<tCuumGueLidL!yL=NNishP%Rious/Ult3H-!L=tNd%Ntu*NueRbRifyRs]RyS'lT <3Ab!Br<tCiousCt%yDeoEw~a+Nta+Ol(Rtu$RusSaS.Su$T$Vid5C$I)IdLc<oLumeTeYa+:GeG#ItLk~LnutNtRfa*RmRri%ShSp/eT VeY3Al`Ap#ArA'lA` BDd(gEk&dIrdLcome/T_!AtEatEelEnE*IpIsp 0DeD`FeLd~NNdowNeNgNkNn Nt ReSdomSeShT}[5LfM<Nd OdOlRdRkRldRryR`_pE{E,!I,I>Ong::Rd3Ar~ow9UUngU`:3BraRo9NeO","0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60")}static wordlist(){return null==a&&(a=new i),a}}t.LangEn=i},4132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WordlistOwl=void 0;const r=n(75479),a=n(79551),i=n(48469),o=n(32203);class s extends o.Wordlist{#n;#Wt;constructor(e,t,n){super(e),this.#n=t,this.#Wt=n,this.#Vt=null}get _data(){return this.#n}_decodeWords(){return(0,i.decodeOwl)(this.#n)}#Vt;#qt(){if(null==this.#Vt){const e=this._decodeWords();if((0,r.id)(e.join("\n")+"\n")!==this.#Wt)throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);this.#Vt=e}return this.#Vt}getWord(e){const t=this.#qt();return(0,a.assertArgument)(e>=0&&e<t.length,`invalid word index: ${e}`,"index",e),t[e]}getWordIndex(e){return this.#qt().indexOf(e)}}t.WordlistOwl=s},10605:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WordlistOwlA=void 0;const r=n(4132),a=n(22549);class i extends r.WordlistOwl{#Kt;constructor(e,t,n,r){super(e,t,r),this.#Kt=n}get _accent(){return this.#Kt}_decodeWords(){return(0,a.decodeOwlA)(this._data,this._accent)}}t.WordlistOwlA=i},32203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wordlist=void 0;const r=n(79551);t.Wordlist=class{locale;constructor(e){(0,r.defineProperties)(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(" ")}}},1494:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wordlists=void 0;const r=n(37856);t.wordlists={en:r.LangEn.wordlist()}},67978:(e,t,n)=>{const r=Symbol("SemVer ANY");class a{static get ANY(){return r}constructor(e,t){if(t=i(t),e instanceof a){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),c("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(e){const t=this.options.loose?o[s.COMPARATORLOOSE]:o[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new l(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(c("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"===typeof e)try{e=new l(e,this.options)}catch(t){return!1}return f(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof a))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new u(e.value,t).test(this.value):""===e.operator?""===e.value||new u(this.value,t).test(e.semver):(!(t=i(t)).includePrerelease||"<0.0.0-0"!==this.value&&"<0.0.0-0"!==e.value)&&(!(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0")))&&(!(!this.operator.startsWith(">")||!e.operator.startsWith(">"))||(!(!this.operator.startsWith("<")||!e.operator.startsWith("<"))||(!(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))||(!!(f(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))||!!(f(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))))))}}e.exports=a;const i=n(92293),{safeRe:o,t:s}=n(30729),f=n(87217),c=n(67902),l=n(64912),u=n(83733)},83733:(e,t,n)=>{class r{constructor(e,t){if(t=i(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof o)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!y(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const t of this.set)if(1===t.length&&m(t[0])){this.set=[t];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&h)|(this.options.loose&&b))+":"+e,n=a.get(t);if(n)return n;const r=this.options.loose,i=r?c[l.HYPHENRANGELOOSE]:c[l.HYPHENRANGE];e=e.replace(i,O(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(c[l.COMPARATORTRIM],u),s("comparator trim",e),e=e.replace(c[l.TILDETRIM],d),s("tilde trim",e),e=e.replace(c[l.CARETTRIM],p),s("caret trim",e);let f=e.split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>x(e,this.options)));r&&(f=f.filter((e=>(s("loose invalid filter",e,this.options),!!e.match(c[l.COMPARATORLOOSE]))))),s("range list",f);const m=new Map,g=f.map((e=>new o(e,this.options)));for(const a of g){if(y(a))return[a];m.set(a.value,a)}m.size>1&&m.has("")&&m.delete("");const w=[...m.values()];return a.set(t,w),w}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>g(n,t)&&e.set.some((e=>g(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"===typeof e)try{e=new f(e,this.options)}catch(t){return!1}for(let n=0;n<this.set.length;n++)if(S(this.set[n],e,this.options))return!0;return!1}}e.exports=r;const a=new(n(69341))({max:1e3}),i=n(92293),o=n(67978),s=n(67902),f=n(64912),{safeRe:c,t:l,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:p}=n(30729),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:b}=n(3651),y=e=>"<0.0.0-0"===e.value,m=e=>""===e.value,g=(e,t)=>{let n=!0;const r=e.slice();let a=r.pop();for(;n&&r.length;)n=r.every((e=>a.intersects(e,t))),a=r.pop();return n},v=(e,t)=>(s("comp",e,t),e=P(e,t),s("caret",e),e=E(e,t),s("tildes",e),e=T(e,t),s("xrange",e),e=C(e,t),s("stars",e),e),w=e=>!e||"x"===e.toLowerCase()||"*"===e,E=(e,t)=>e.trim().split(/\s+/).map((e=>A(e,t))).join(" "),A=(e,t)=>{const n=t.loose?c[l.TILDELOOSE]:c[l.TILDE];return e.replace(n,((t,n,r,a,i)=>{let o;return s("tilde",e,t,n,r,a,i),w(n)?o="":w(r)?o=`>=${n}.0.0 <${+n+1}.0.0-0`:w(a)?o=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:i?(s("replaceTilde pr",i),o=`>=${n}.${r}.${a}-${i} <${n}.${+r+1}.0-0`):o=`>=${n}.${r}.${a} <${n}.${+r+1}.0-0`,s("tilde return",o),o}))},P=(e,t)=>e.trim().split(/\s+/).map((e=>_(e,t))).join(" "),_=(e,t)=>{s("caret",e,t);const n=t.loose?c[l.CARETLOOSE]:c[l.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,a,i,o)=>{let f;return s("caret",e,t,n,a,i,o),w(n)?f="":w(a)?f=`>=${n}.0.0${r} <${+n+1}.0.0-0`:w(i)?f="0"===n?`>=${n}.${a}.0${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.0${r} <${+n+1}.0.0-0`:o?(s("replaceCaret pr",o),f="0"===n?"0"===a?`>=${n}.${a}.${i}-${o} <${n}.${a}.${+i+1}-0`:`>=${n}.${a}.${i}-${o} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${i}-${o} <${+n+1}.0.0-0`):(s("no pr"),f="0"===n?"0"===a?`>=${n}.${a}.${i}${r} <${n}.${a}.${+i+1}-0`:`>=${n}.${a}.${i}${r} <${n}.${+a+1}.0-0`:`>=${n}.${a}.${i} <${+n+1}.0.0-0`),s("caret return",f),f}))},T=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>k(e,t))).join(" ")),k=(e,t)=>{e=e.trim();const n=t.loose?c[l.XRANGELOOSE]:c[l.XRANGE];return e.replace(n,((n,r,a,i,o,f)=>{s("xRange",e,n,r,a,i,o,f);const c=w(a),l=c||w(i),u=l||w(o),d=u;return"="===r&&d&&(r=""),f=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(l&&(i=0),o=0,">"===r?(r=">=",l?(a=+a+1,i=0,o=0):(i=+i+1,o=0)):"<="===r&&(r="<",l?a=+a+1:i=+i+1),"<"===r&&(f="-0"),n=`${r+a}.${i}.${o}${f}`):l?n=`>=${a}.0.0${f} <${+a+1}.0.0-0`:u&&(n=`>=${a}.${i}.0${f} <${a}.${+i+1}.0-0`),s("xRange return",n),n}))},C=(e,t)=>(s("replaceStars",e,t),e.trim().replace(c[l.STAR],"")),x=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(c[t.includePrerelease?l.GTE0PRE:l.GTE0],"")),O=e=>(t,n,r,a,i,o,s,f,c,l,u,d,p)=>`${n=w(r)?"":w(a)?`>=${r}.0.0${e?"-0":""}`:w(i)?`>=${r}.${a}.0${e?"-0":""}`:o?`>=${n}`:`>=${n}${e?"-0":""}`} ${f=w(c)?"":w(l)?`<${+c+1}.0.0-0`:w(u)?`<${c}.${+l+1}.0-0`:d?`<=${c}.${l}.${u}-${d}`:e?`<${c}.${l}.${+u+1}-0`:`<=${f}`}`.trim(),S=(e,t,n)=>{for(let r=0;r<e.length;r++)if(!e[r].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(s(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},64912:(e,t,n)=>{const r=n(67902),{MAX_LENGTH:a,MAX_SAFE_INTEGER:i}=n(3651),{safeRe:o,t:s}=n(30729),f=n(92293),{compareIdentifiers:c}=n(5217);class l{constructor(e,t){if(t=f(t),e instanceof l){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!==typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>a)throw new TypeError(`version is longer than ${a} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?o[s.LOOSE]:o[s.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof l)){if("string"===typeof e&&e===this.version)return 0;e=new l(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),c(this.major,e.major)||c(this.minor,e.minor)||c(this.patch,e.patch)}comparePre(e){if(e instanceof l||(e=new l(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],a=e.prerelease[t];if(r("prerelease compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return c(n,a)}while(++t)}compareBuild(e){e instanceof l||(e=new l(e,this.options));let t=0;do{const n=this.build[t],a=e.build[t];if(r("prerelease compare",t,n,a),void 0===n&&void 0===a)return 0;if(void 0===a)return 1;if(void 0===n)return-1;if(n!==a)return c(n,a)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"===typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===c(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=l},56535:(e,t,n)=>{const r=n(2817);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},87217:(e,t,n)=>{const r=n(94764),a=n(86215),i=n(7885),o=n(20578),s=n(93583),f=n(15402);e.exports=(e,t,n,c)=>{switch(t){case"===":return"object"===typeof e&&(e=e.version),"object"===typeof n&&(n=n.version),e===n;case"!==":return"object"===typeof e&&(e=e.version),"object"===typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,c);case"!=":return a(e,n,c);case">":return i(e,n,c);case">=":return o(e,n,c);case"<":return s(e,n,c);case"<=":return f(e,n,c);default:throw new TypeError(`Invalid operator: ${t}`)}}},37290:(e,t,n)=>{const r=n(64912),a=n(2817),{safeRe:i,t:o}=n(30729);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"===typeof e&&(e=String(e)),"string"!==typeof e)return null;let n=null;if((t=t||{}).rtl){const r=t.includePrerelease?i[o.COERCERTLFULL]:i[o.COERCERTL];let a;for(;(a=r.exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&a.index+a[0].length===n.index+n[0].length||(n=a),r.lastIndex=a.index+a[1].length+a[2].length;r.lastIndex=-1}else n=e.match(t.includePrerelease?i[o.COERCEFULL]:i[o.COERCE]);if(null===n)return null;const s=n[2],f=n[3]||"0",c=n[4]||"0",l=t.includePrerelease&&n[5]?`-${n[5]}`:"",u=t.includePrerelease&&n[6]?`+${n[6]}`:"";return a(`${s}.${f}.${c}${l}${u}`,t)}},20149:(e,t,n)=>{const r=n(64912);e.exports=(e,t,n)=>{const a=new r(e,n),i=new r(t,n);return a.compare(i)||a.compareBuild(i)}},21457:(e,t,n)=>{const r=n(10077);e.exports=(e,t)=>r(e,t,!0)},10077:(e,t,n)=>{const r=n(64912);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},6611:(e,t,n)=>{const r=n(2817);e.exports=(e,t)=>{const n=r(e,null,!0),a=r(t,null,!0),i=n.compare(a);if(0===i)return null;const o=i>0,s=o?n:a,f=o?a:n,c=!!s.prerelease.length;if(!!f.prerelease.length&&!c)return f.patch||f.minor?s.patch?"patch":s.minor?"minor":"major":"major";const l=c?"pre":"";return n.major!==a.major?l+"major":n.minor!==a.minor?l+"minor":n.patch!==a.patch?l+"patch":"prerelease"}},94764:(e,t,n)=>{const r=n(10077);e.exports=(e,t,n)=>0===r(e,t,n)},7885:(e,t,n)=>{const r=n(10077);e.exports=(e,t,n)=>r(e,t,n)>0},20578:(e,t,n)=>{const r=n(10077);e.exports=(e,t,n)=>r(e,t,n)>=0},93172:(e,t,n)=>{const r=n(64912);e.exports=(e,t,n,a,i)=>{"string"===typeof n&&(i=a,a=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,a,i).version}catch(o){return null}}},93583:(e,t,n)=>{const r=n(10077);e.exports=(e,t,n)=>r(e,t,n)<0},15402:(e,t,n)=>{const r=n(10077);e.exports=(e,t,n)=>r(e,t,n)<=0},6768:(e,t,n)=>{const r=n(64912);e.exports=(e,t)=>new r(e,t).major},35432:(e,t,n)=>{const r=n(64912);e.exports=(e,t)=>new r(e,t).minor},86215:(e,t,n)=>{const r=n(10077);e.exports=(e,t,n)=>0!==r(e,t,n)},2817:(e,t,n)=>{const r=n(64912);e.exports=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e instanceof r)return e;try{return new r(e,t)}catch(a){if(!n)return null;throw a}}},15008:(e,t,n)=>{const r=n(64912);e.exports=(e,t)=>new r(e,t).patch},93725:(e,t,n)=>{const r=n(2817);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},33020:(e,t,n)=>{const r=n(10077);e.exports=(e,t,n)=>r(t,e,n)},85938:(e,t,n)=>{const r=n(20149);e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},61947:(e,t,n)=>{const r=n(83733);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(a){return!1}return t.test(e)}},32808:(e,t,n)=>{const r=n(20149);e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},53767:(e,t,n)=>{const r=n(2817);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},80018:(e,t,n)=>{const r=n(30729),a=n(3651),i=n(64912),o=n(5217),s=n(2817),f=n(53767),c=n(56535),l=n(93172),u=n(6611),d=n(6768),p=n(35432),h=n(15008),b=n(93725),y=n(10077),m=n(33020),g=n(21457),v=n(20149),w=n(32808),E=n(85938),A=n(7885),P=n(93583),_=n(94764),T=n(86215),k=n(20578),C=n(15402),x=n(87217),O=n(37290),S=n(67978),R=n(83733),I=n(61947),N=n(25409),B=n(91686),j=n(53500),D=n(49040),L=n(70377),M=n(79791),U=n(59461),F=n(74654),z=n(55482),$=n(73857),G=n(73225);e.exports={parse:s,valid:f,clean:c,inc:l,diff:u,major:d,minor:p,patch:h,prerelease:b,compare:y,rcompare:m,compareLoose:g,compareBuild:v,sort:w,rsort:E,gt:A,lt:P,eq:_,neq:T,gte:k,lte:C,cmp:x,coerce:O,Comparator:S,Range:R,satisfies:I,toComparators:N,maxSatisfying:B,minSatisfying:j,minVersion:D,validRange:L,outside:M,gtr:U,ltr:F,intersects:z,simplifyRange:$,subset:G,SemVer:i,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:a.SEMVER_SPEC_VERSION,RELEASE_TYPES:a.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},3651:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},67902:(e,t,n)=>{const r="object"===typeof n(1426)&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BADGE_INDEXER_URL:"https://canvas-indexer.scroll.cat",REACT_APP_L2_USDC_GATEWAY_PROXY_ADDR:"",REACT_APP_L2_ETH_GATEWAY_PROXY_ADDR:"0x91e8ADDFe1358aCa5314c644312d38237fC1101C",REACT_APP_L1_MESSAGE_QUEUE:"0xF0B2293F5D834eAe920c6974D50957A1732de763",REACT_APP_L2_SWAP_URI:"https://uniswap-showcase.sepolia.scroll.xyz/",REACT_APP_GOOGLE_ANALYTICS_ID:"G-XR3MGVSHFC",REACT_APP_EXTERNAL_EXPLORER_URI_L1:"https://sepolia.etherscan.io",REACT_APP_EXTERNAL_EXPLORER_URI_L2:"https://sepolia.scrollscan.com",REACT_APP_ROLLUPSCAN_API_URI:"https://sepolia-api-re.scroll.io/api",REACT_APP_L1_SCROLL_MESSENGER:"0x50c7d3e7f7c656493D1D76aaa1a836CedfCBB16A",REACT_APP_SCROLL_CHAIN:"0x2D567EcE699Eabe5afCd141eDB7A4f2D0D6ce8a0",REACT_APP_NAME:"scroll.io",REACT_APP_SCROLL_ORIGINS_NFT_V2:"0xDd7d857F570B0C211abfe05cd914A85BefEC2464",REACT_APP_L2_SCROLL_MESSENGER:"0xBa50f5340FB9F3Bd074bD638c9BE13eCB36E603d",REACT_APP_L1_MESSAGE_QUEUE_WITH_GAS_PRICE_ORACLE:"0xF0B2293F5D834eAe920c6974D50957A1732de763",REACT_APP_SCROLL_ORIGINS_NFT:"0x90a274D591d5AB1a25f0DD0F06F28533C34D7d9f",REACT_APP_L1_WETH_GATEWAY_PROXY_ADDR:"0x3dA0BF44814cfC678376b3311838272158211695",REACT_APP_L2_WETH_GATEWAY_PROXY_ADDR:"0x481B20A927206aF7A754dB8b904B052e2781ea27",REACT_APP_NFT_API_URI:"https://nft.scroll.io",REACT_APP_ETHEREUM_YEAR_BADGE_API_URI:"https://genesis-nft-backend-git-sepolia-scroll-tech.vercel.app",REACT_APP_BRIDGE_API_URI:"https://sepolia-api-bridge-v2.scroll.io/api",REACT_APP_EAS_EXPLORER_URL:"https://scroll-sepolia.easscan.org",REACT_APP_EXTERNAL_EXPLORER_URI_DORA:"https://www.ondora.xyz/network/scroll-sepolia",REACT_APP_SENTRY_DSN:"https://ca6f303c47c5bb4f0077d0cf6ae31b52@sentry.scroll.io/2",REACT_APP_CONNECT_WALLET_PROJECT_ID:"14efbaafcf5232a47d93a68229b71028",REACT_APP_L2_SCAN_URI:"https://scroll-sepolia.l2scan.co",REACT_APP_L1_DAI_GATEWAY_PROXY_ADDR:"0x8b0B9c4e9f41b9bbDEfFee24F9f11C328093d248",REACT_APP_CHAIN_ID_L1:"11155111",REACT_APP_OKX_URI:"https://www.okx.com/web3/explorer/scroll?channelId=scroll",REACT_APP_L2_DAI_GATEWAY_PROXY_ADDR:"0xbF28c28490988026Dca2396148DE50136A54534e",REACT_APP_CHAIN_ID_L2:"534351",REACT_APP_ETHERSCAN_L2:"https://sepolia.scrollscan.com",REACT_APP_MAIN_ENVIRONMENT:"Mainnet",REACT_APP_L1_GATEWAY_ROUTER_PROXY_ADDR:"0x13FBE0D0e5552b8c9c4AE9e2435F38f37355998a",REACT_APP_L1_GAS_PRICE_ORACLE:"0x5300000000000000000000000000000000000002",REACT_APP_API_BASE_URI:"https://sepolia-api.scroll.io",REACT_APP_L2_GATEWAY_ROUTER_PROXY_ADDR:"0x9aD3c5617eCAa556d6E166787A97081907171230",REACT_APP_CANVAS_BACKEND_URI:"https://skelly-backend-git-sepolia-scroll-tech.vercel.app",REACT_APP_PROFILE_REGISTRY_ADDRESS:"0x26aa585d5Da74A373E58c4fA723E1E1f6FD6474f",REACT_APP_NFT_VIEWER_URL:"https://nft.scroll.io",REACT_APP_BADGE_REGISTRY_URL:"https://badge-registry.canvas.scroll.cat",REACT_APP_L1_BATCH_BRIDGE_GATEWAY_PROXY_ADDR:"0xE86ad3312FA693aDeD34dEc3899176d97ac883B2",REACT_APP_UNIFRA_API_KEY:"9d431c1c-d717-4931-9595-ad0b3a246d13",REACT_APP_PREFIX_CLS:"scroll",REACT_APP_VERSION:"5.3.0",REACT_APP_L1_LIDO_GATEWAY_PROXY_ADDR:"0xF22B24fa7c3168f30b17fd97b71bdd3162DDe029",REACT_APP_L2_LIDO_GATEWAY_PROXY_ADDR:"0x635B054A092F6aE61Ce0Fddc397A704F6626510D",REACT_APP_OPEN_BLOCK_URI:"http://obl-data-gateway-dev-568660380.us-east-1.elb.amazonaws.com:8000",REACT_APP_EAS_GRAPHQL_URL:"https://scroll-sepolia.easscan.org/graphql",REACT_APP_FFRONTENDS_URL:"https://sepolia.env.scroll.io",REACT_APP_SCROLL_ENVIRONMENT:"Sepolia",REACT_APP_SCROLL_VENUS_URI:"https://sepolia-venus.scroll.io",REACT_APP_L1_PUFFER_GATEWAY_PROXY_ADDR:"0xA033Ff09f2da45f0e9ae495f525363722Df42b2a",REACT_APP_EXTERNAL_RPC_URI_L1:"https://ethereum-sepolia.blockpi.network/v1/rpc/public",REACT_APP_L1_CUSTOM_ERC20_GATEWAY_PROXY_ADDR:"0x31C994F2017E71b82fd4D8118F140c81215bbb37",REACT_APP_L2_PUFFER_GATEWAY_PROXY_ADDR:"0x9eBf2f33526CD571f8b2ad312492cb650870CFd6",REACT_APP_BADGE_SCHEMA:"0xa35b5470ebb301aa5d309a8ee6ea258cad680ea112c86e456d5f2254448afc74",REACT_APP_EXTERNAL_RPC_URI_L2:"https://sepolia-rpc.scroll.io",REACT_APP_L1_STANDARD_ERC20_GATEWAY_PROXY_ADDR:"0x65D123d6389b900d954677c26327bfc1C3e88A13",REACT_APP_ETH_SYMBOL:"ETH",REACT_APP_L2_CUSTOM_ERC20_GATEWAY_PROXY_ADDR:"0x058dec71E53079F9ED053F3a0bBca877F6f3eAcf",REACT_APP_EAS_ADDRESS:"0xaEF4103A04090071165F78D45D83A0C0782c2B2a",REACT_APP_L1_ETH_GATEWAY_PROXY_ADDR:"0x8A54A2347Da2562917304141ab67324615e9866d",REACT_APP_L1_USDC_GATEWAY_PROXY_ADDR:"",REACT_APP_L2_STANDARD_ERC20_GATEWAY_PROXY_ADDR:"0xaDcA915971A336EA2f5b567e662F5bd74AEf9582"}.NODE_DEBUG&&/\bsemver\b/i.test({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BADGE_INDEXER_URL:"https://canvas-indexer.scroll.cat",REACT_APP_L2_USDC_GATEWAY_PROXY_ADDR:"",REACT_APP_L2_ETH_GATEWAY_PROXY_ADDR:"0x91e8ADDFe1358aCa5314c644312d38237fC1101C",REACT_APP_L1_MESSAGE_QUEUE:"0xF0B2293F5D834eAe920c6974D50957A1732de763",REACT_APP_L2_SWAP_URI:"https://uniswap-showcase.sepolia.scroll.xyz/",REACT_APP_GOOGLE_ANALYTICS_ID:"G-XR3MGVSHFC",REACT_APP_EXTERNAL_EXPLORER_URI_L1:"https://sepolia.etherscan.io",REACT_APP_EXTERNAL_EXPLORER_URI_L2:"https://sepolia.scrollscan.com",REACT_APP_ROLLUPSCAN_API_URI:"https://sepolia-api-re.scroll.io/api",REACT_APP_L1_SCROLL_MESSENGER:"0x50c7d3e7f7c656493D1D76aaa1a836CedfCBB16A",REACT_APP_SCROLL_CHAIN:"0x2D567EcE699Eabe5afCd141eDB7A4f2D0D6ce8a0",REACT_APP_NAME:"scroll.io",REACT_APP_SCROLL_ORIGINS_NFT_V2:"0xDd7d857F570B0C211abfe05cd914A85BefEC2464",REACT_APP_L2_SCROLL_MESSENGER:"0xBa50f5340FB9F3Bd074bD638c9BE13eCB36E603d",REACT_APP_L1_MESSAGE_QUEUE_WITH_GAS_PRICE_ORACLE:"0xF0B2293F5D834eAe920c6974D50957A1732de763",REACT_APP_SCROLL_ORIGINS_NFT:"0x90a274D591d5AB1a25f0DD0F06F28533C34D7d9f",REACT_APP_L1_WETH_GATEWAY_PROXY_ADDR:"0x3dA0BF44814cfC678376b3311838272158211695",REACT_APP_L2_WETH_GATEWAY_PROXY_ADDR:"0x481B20A927206aF7A754dB8b904B052e2781ea27",REACT_APP_NFT_API_URI:"https://nft.scroll.io",REACT_APP_ETHEREUM_YEAR_BADGE_API_URI:"https://genesis-nft-backend-git-sepolia-scroll-tech.vercel.app",REACT_APP_BRIDGE_API_URI:"https://sepolia-api-bridge-v2.scroll.io/api",REACT_APP_EAS_EXPLORER_URL:"https://scroll-sepolia.easscan.org",REACT_APP_EXTERNAL_EXPLORER_URI_DORA:"https://www.ondora.xyz/network/scroll-sepolia",REACT_APP_SENTRY_DSN:"https://ca6f303c47c5bb4f0077d0cf6ae31b52@sentry.scroll.io/2",REACT_APP_CONNECT_WALLET_PROJECT_ID:"14efbaafcf5232a47d93a68229b71028",REACT_APP_L2_SCAN_URI:"https://scroll-sepolia.l2scan.co",REACT_APP_L1_DAI_GATEWAY_PROXY_ADDR:"0x8b0B9c4e9f41b9bbDEfFee24F9f11C328093d248",REACT_APP_CHAIN_ID_L1:"11155111",REACT_APP_OKX_URI:"https://www.okx.com/web3/explorer/scroll?channelId=scroll",REACT_APP_L2_DAI_GATEWAY_PROXY_ADDR:"0xbF28c28490988026Dca2396148DE50136A54534e",REACT_APP_CHAIN_ID_L2:"534351",REACT_APP_ETHERSCAN_L2:"https://sepolia.scrollscan.com",REACT_APP_MAIN_ENVIRONMENT:"Mainnet",REACT_APP_L1_GATEWAY_ROUTER_PROXY_ADDR:"0x13FBE0D0e5552b8c9c4AE9e2435F38f37355998a",REACT_APP_L1_GAS_PRICE_ORACLE:"0x5300000000000000000000000000000000000002",REACT_APP_API_BASE_URI:"https://sepolia-api.scroll.io",REACT_APP_L2_GATEWAY_ROUTER_PROXY_ADDR:"0x9aD3c5617eCAa556d6E166787A97081907171230",REACT_APP_CANVAS_BACKEND_URI:"https://skelly-backend-git-sepolia-scroll-tech.vercel.app",REACT_APP_PROFILE_REGISTRY_ADDRESS:"0x26aa585d5Da74A373E58c4fA723E1E1f6FD6474f",REACT_APP_NFT_VIEWER_URL:"https://nft.scroll.io",REACT_APP_BADGE_REGISTRY_URL:"https://badge-registry.canvas.scroll.cat",REACT_APP_L1_BATCH_BRIDGE_GATEWAY_PROXY_ADDR:"0xE86ad3312FA693aDeD34dEc3899176d97ac883B2",REACT_APP_UNIFRA_API_KEY:"9d431c1c-d717-4931-9595-ad0b3a246d13",REACT_APP_PREFIX_CLS:"scroll",REACT_APP_VERSION:"5.3.0",REACT_APP_L1_LIDO_GATEWAY_PROXY_ADDR:"0xF22B24fa7c3168f30b17fd97b71bdd3162DDe029",REACT_APP_L2_LIDO_GATEWAY_PROXY_ADDR:"0x635B054A092F6aE61Ce0Fddc397A704F6626510D",REACT_APP_OPEN_BLOCK_URI:"http://obl-data-gateway-dev-568660380.us-east-1.elb.amazonaws.com:8000",REACT_APP_EAS_GRAPHQL_URL:"https://scroll-sepolia.easscan.org/graphql",REACT_APP_FFRONTENDS_URL:"https://sepolia.env.scroll.io",REACT_APP_SCROLL_ENVIRONMENT:"Sepolia",REACT_APP_SCROLL_VENUS_URI:"https://sepolia-venus.scroll.io",REACT_APP_L1_PUFFER_GATEWAY_PROXY_ADDR:"0xA033Ff09f2da45f0e9ae495f525363722Df42b2a",REACT_APP_EXTERNAL_RPC_URI_L1:"https://ethereum-sepolia.blockpi.network/v1/rpc/public",REACT_APP_L1_CUSTOM_ERC20_GATEWAY_PROXY_ADDR:"0x31C994F2017E71b82fd4D8118F140c81215bbb37",REACT_APP_L2_PUFFER_GATEWAY_PROXY_ADDR:"0x9eBf2f33526CD571f8b2ad312492cb650870CFd6",REACT_APP_BADGE_SCHEMA:"0xa35b5470ebb301aa5d309a8ee6ea258cad680ea112c86e456d5f2254448afc74",REACT_APP_EXTERNAL_RPC_URI_L2:"https://sepolia-rpc.scroll.io",REACT_APP_L1_STANDARD_ERC20_GATEWAY_PROXY_ADDR:"0x65D123d6389b900d954677c26327bfc1C3e88A13",REACT_APP_ETH_SYMBOL:"ETH",REACT_APP_L2_CUSTOM_ERC20_GATEWAY_PROXY_ADDR:"0x058dec71E53079F9ED053F3a0bBca877F6f3eAcf",REACT_APP_EAS_ADDRESS:"0xaEF4103A04090071165F78D45D83A0C0782c2B2a",REACT_APP_L1_ETH_GATEWAY_PROXY_ADDR:"0x8A54A2347Da2562917304141ab67324615e9866d",REACT_APP_L1_USDC_GATEWAY_PROXY_ADDR:"",REACT_APP_L2_STANDARD_ERC20_GATEWAY_PROXY_ADDR:"0xaDcA915971A336EA2f5b567e662F5bd74AEf9582"}.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return console.error("SEMVER",...t)}:()=>{};e.exports=r},5217:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),a=t.test(n);return r&&a&&(e=+e,n=+n),e===n?0:r&&!a?-1:a&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},92293:e=>{const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!==typeof e?t:e:n},30729:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:a,MAX_LENGTH:i}=n(3651),o=n(67902),s=(t=e.exports={}).re=[],f=t.safeRe=[],c=t.src=[],l=t.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",i],[d,a]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),a=u++;o(e,a,t),l[e]=a,c[a]=t,s[a]=new RegExp(t,n?"g":void 0),f[a]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),h("MAINVERSION",`(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${c[l.NUMERICIDENTIFIER]}|${c[l.NONNUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${c[l.NUMERICIDENTIFIERLOOSE]}|${c[l.NONNUMERICIDENTIFIER]})`),h("PRERELEASE",`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${d}+`),h("BUILD",`(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`),h("FULL",`^${c[l.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`),h("LOOSE",`^${c[l.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${c[l.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`),h("XRANGE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`),h("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),h("COERCE",`${c[l.COERCEPLAIN]}(?:$|[^\\d])`),h("COERCEFULL",c[l.COERCEPLAIN]+`(?:${c[l.PRERELEASE]})?`+`(?:${c[l.BUILD]})?(?:$|[^\\d])`),h("COERCERTL",c[l.COERCE],!0),h("COERCERTLFULL",c[l.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${c[l.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${c[l.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},59461:(e,t,n)=>{const r=n(79791);e.exports=(e,t,n)=>r(e,t,">",n)},55482:(e,t,n)=>{const r=n(83733);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},74654:(e,t,n)=>{const r=n(79791);e.exports=(e,t,n)=>r(e,t,"<",n)},91686:(e,t,n)=>{const r=n(64912),a=n(83733);e.exports=(e,t,n)=>{let i=null,o=null,s=null;try{s=new a(t,n)}catch(f){return null}return e.forEach((e=>{s.test(e)&&(i&&-1!==o.compare(e)||(i=e,o=new r(i,n)))})),i}},53500:(e,t,n)=>{const r=n(64912),a=n(83733);e.exports=(e,t,n)=>{let i=null,o=null,s=null;try{s=new a(t,n)}catch(f){return null}return e.forEach((e=>{s.test(e)&&(i&&1!==o.compare(e)||(i=e,o=new r(i,n)))})),i}},49040:(e,t,n)=>{const r=n(64912),a=n(83733),i=n(7885);e.exports=(e,t)=>{e=new a(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let a=0;a<e.set.length;++a){const t=e.set[a];let o=null;t.forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":o&&!i(t,o)||(o=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!o||n&&!i(n,o)||(n=o)}return n&&e.test(n)?n:null}},79791:(e,t,n)=>{const r=n(64912),a=n(67978),{ANY:i}=a,o=n(83733),s=n(61947),f=n(7885),c=n(93583),l=n(15402),u=n(20578);e.exports=(e,t,n,d)=>{let p,h,b,y,m;switch(e=new r(e,d),t=new o(t,d),n){case">":p=f,h=l,b=c,y=">",m=">=";break;case"<":p=c,h=u,b=f,y="<",m="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,d))return!1;for(let r=0;r<t.set.length;++r){const n=t.set[r];let o=null,s=null;if(n.forEach((e=>{e.semver===i&&(e=new a(">=0.0.0")),o=o||e,s=s||e,p(e.semver,o.semver,d)?o=e:b(e.semver,s.semver,d)&&(s=e)})),o.operator===y||o.operator===m)return!1;if((!s.operator||s.operator===y)&&h(e,s.semver))return!1;if(s.operator===m&&b(e,s.semver))return!1}return!0}},73857:(e,t,n)=>{const r=n(61947),a=n(10077);e.exports=(e,t,n)=>{const i=[];let o=null,s=null;const f=e.sort(((e,t)=>a(e,t,n)));for(const a of f){r(a,t,n)?(s=a,o||(o=a)):(s&&i.push([o,s]),s=null,o=null)}o&&i.push([o,null]);const c=[];for(const[r,a]of i)r===a?c.push(r):a||r!==f[0]?a?r===f[0]?c.push(`<=${a}`):c.push(`${r} - ${a}`):c.push(`>=${r}`):c.push("*");const l=c.join(" || "),u="string"===typeof t.raw?t.raw:String(t);return l.length<u.length?l:t}},73225:(e,t,n)=>{const r=n(83733),a=n(67978),{ANY:i}=a,o=n(61947),s=n(10077),f=[new a(">=0.0.0-0")],c=[new a(">=0.0.0")],l=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===i){if(1===t.length&&t[0].semver===i)return!0;e=n.includePrerelease?f:c}if(1===t.length&&t[0].semver===i){if(n.includePrerelease)return!0;t=c}const r=new Set;let a,l,p,h,b,y,m;for(const i of e)">"===i.operator||">="===i.operator?a=u(a,i,n):"<"===i.operator||"<="===i.operator?l=d(l,i,n):r.add(i.semver);if(r.size>1)return null;if(a&&l){if(p=s(a.semver,l.semver,n),p>0)return null;if(0===p&&(">="!==a.operator||"<="!==l.operator))return null}for(const i of r){if(a&&!o(i,String(a),n))return null;if(l&&!o(i,String(l),n))return null;for(const e of t)if(!o(i,String(e),n))return!1;return!0}let g=!(!l||n.includePrerelease||!l.semver.prerelease.length)&&l.semver,v=!(!a||n.includePrerelease||!a.semver.prerelease.length)&&a.semver;g&&1===g.prerelease.length&&"<"===l.operator&&0===g.prerelease[0]&&(g=!1);for(const i of t){if(m=m||">"===i.operator||">="===i.operator,y=y||"<"===i.operator||"<="===i.operator,a)if(v&&i.semver.prerelease&&i.semver.prerelease.length&&i.semver.major===v.major&&i.semver.minor===v.minor&&i.semver.patch===v.patch&&(v=!1),">"===i.operator||">="===i.operator){if(h=u(a,i,n),h===i&&h!==a)return!1}else if(">="===a.operator&&!o(a.semver,String(i),n))return!1;if(l)if(g&&i.semver.prerelease&&i.semver.prerelease.length&&i.semver.major===g.major&&i.semver.minor===g.minor&&i.semver.patch===g.patch&&(g=!1),"<"===i.operator||"<="===i.operator){if(b=d(l,i,n),b===i&&b!==l)return!1}else if("<="===l.operator&&!o(l.semver,String(i),n))return!1;if(!i.operator&&(l||a)&&0!==p)return!1}return!(a&&y&&!l&&0!==p)&&(!(l&&m&&!a&&0!==p)&&(!v&&!g))},u=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},d=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e===t)return!0;e=new r(e,n),t=new r(t,n);let a=!1;e:for(const r of e.set){for(const e of t.set){const t=l(r,e,n);if(a=a||null!==t,t)continue e}if(a)return!1}return!0}},25409:(e,t,n)=>{const r=n(83733);e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},70377:(e,t,n)=>{const r=n(83733);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(n){return null}}},68932:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>E,__asyncGenerator:()=>w,__asyncValues:()=>A,__await:()=>v,__awaiter:()=>l,__classPrivateFieldGet:()=>C,__classPrivateFieldIn:()=>O,__classPrivateFieldSet:()=>x,__createBinding:()=>d,__decorate:()=>s,__exportStar:()=>p,__extends:()=>a,__generator:()=>u,__importDefault:()=>k,__importStar:()=>T,__makeTemplateObject:()=>P,__metadata:()=>c,__param:()=>f,__read:()=>b,__rest:()=>o,__spread:()=>y,__spreadArray:()=>g,__spreadArrays:()=>m,__values:()=>h});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},i.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function s(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function f(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{f(r.next(e))}catch(t){i(t)}}function s(e){try{f(r.throw(e))}catch(t){i(t)}}function f(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}f((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(s){i=[6,s],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var d=Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function p(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||d(t,e,n)}function h(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function m(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),a=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)r[a]=i[o];return r}function g(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a<i;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,a=n.apply(e,t||[]),i=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){a[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=a[e](t)).value instanceof v?Promise.resolve(n.value.v).then(f,c):l(i[0][2],n)}catch(r){l(i[0][3],r)}var n}function f(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function E(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:a?a(t):t}:a}}function A(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,a){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,a,(t=e[n](t)).done,t.value)}))}}}function P(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var _=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&d(t,e,n);return _(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function C(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function x(e,t,n,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n}function O(e,t){if(null===t||"object"!==typeof t&&"function"!==typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof e?t===e:e.has(t)}},68870:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(23814),a=n(55902),i=n(61979),o=n(988);const s=(0,i.Z)(),f=(0,r.Z)({themeId:o.Z,defaultTheme:s,defaultClassName:"MuiBox-root",generateClassName:a.Z.generate})},23701:(e,t,n)=>{"use strict";n.d(t,{Z:()=>H});var r=n(22122),a=n(19756),i=n(72791),o=n(28182),s=n(94419),f=n(66934),c=n(31402),l=n(42071),u=n(89683),d=n(23031),p=n(63349),h=n(41788),b=n(95545);function y(e,t){var n=Object.create(null);return e&&i.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,i.isValidElement)(e)?t(e):e}(e)})),n}function m(e,t,n){return null!=n[t]?n[t]:e.props[t]}function g(e,t,n){var r=y(e.children),a=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,a=Object.create(null),i=[];for(var o in e)o in t?i.length&&(a[o]=i,i=[]):i.push(o);var s={};for(var f in t){if(a[f])for(r=0;r<a[f].length;r++){var c=a[f][r];s[a[f][r]]=n(c)}s[f]=n(f)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(a).forEach((function(o){var s=a[o];if((0,i.isValidElement)(s)){var f=o in t,c=o in r,l=t[o],u=(0,i.isValidElement)(l)&&!l.props.in;!c||f&&!u?c||!f||u?c&&f&&(0,i.isValidElement)(l)&&(a[o]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:l.props.in,exit:m(s,"exit",e),enter:m(s,"enter",e)})):a[o]=(0,i.cloneElement)(s,{in:!1}):a[o]=(0,i.cloneElement)(s,{onExited:n.bind(null,s),in:!0,exit:m(s,"exit",e),enter:m(s,"enter",e)})}})),a}var v=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},w=function(e){function t(t,n){var r,a=(r=e.call(this,t,n)||this).handleExited.bind((0,p.Z)(r));return r.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},r}(0,h.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,a=t.children,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,y(n.children,(function(e){return(0,i.cloneElement)(e,{onExited:r.bind(null,e),in:!0,appear:m(e,"appear",n),enter:m(e,"enter",n),exit:m(e,"exit",n)})}))):g(e,a,o),firstRender:!1}},n.handleExited=function(e,t){var n=y(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,r.Z)({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=(0,a.Z)(e,["component","childFactory"]),o=this.state.contextValue,s=v(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?i.createElement(b.Z.Provider,{value:o},s):i.createElement(b.Z.Provider,{value:o},i.createElement(t,r,s))},t}(i.Component);w.propTypes={},w.defaultProps={component:"div",childFactory:function(e){return e}};const E=w;var A=n(52554),P=n(80184);const _=function(e){const{className:t,classes:n,pulsate:r=!1,rippleX:a,rippleY:s,rippleSize:f,in:c,onExited:l,timeout:u}=e,[d,p]=i.useState(!1),h=(0,o.default)(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),b={width:f,height:f,top:-f/2+s,left:-f/2+a},y=(0,o.default)(n.child,d&&n.childLeaving,r&&n.childPulsate);return c||d||p(!0),i.useEffect((()=>{if(!c&&null!=l){const e=setTimeout(l,u);return()=>{clearTimeout(e)}}}),[l,c,u]),(0,P.jsx)("span",{className:h,style:b,children:(0,P.jsx)("span",{className:y})})};var T=n(75878);const k=(0,T.Z)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),C=["center","classes","className"];let x,O,S,R,I=e=>e;const N=(0,A.F4)(x||(x=I`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`)),B=(0,A.F4)(O||(O=I`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`)),j=(0,A.F4)(S||(S=I`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`)),D=(0,f.ZP)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),L=(0,f.ZP)(_,{name:"MuiTouchRipple",slot:"Ripple"})(R||(R=I`
  opacity: 0;
  position: absolute;

  &.${0} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  &.${0} {
    animation-duration: ${0}ms;
  }

  & .${0} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${0} {
    opacity: 0;
    animation-name: ${0};
    animation-duration: ${0}ms;
    animation-timing-function: ${0};
  }

  & .${0} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${0};
    animation-duration: 2500ms;
    animation-timing-function: ${0};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`),k.rippleVisible,N,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),k.ripplePulsate,(e=>{let{theme:t}=e;return t.transitions.duration.shorter}),k.child,k.childLeaving,B,550,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut}),k.childPulsate,j,(e=>{let{theme:t}=e;return t.transitions.easing.easeInOut})),M=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiTouchRipple"}),{center:s=!1,classes:f={},className:l}=n,u=(0,a.Z)(n,C),[d,p]=i.useState([]),h=i.useRef(0),b=i.useRef(null);i.useEffect((()=>{b.current&&(b.current(),b.current=null)}),[d]);const y=i.useRef(!1),m=i.useRef(null),g=i.useRef(null),v=i.useRef(null);i.useEffect((()=>()=>{clearTimeout(m.current)}),[]);const w=i.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;p((e=>[...e,(0,P.jsx)(L,{classes:{ripple:(0,o.default)(f.ripple,k.ripple),rippleVisible:(0,o.default)(f.rippleVisible,k.rippleVisible),ripplePulsate:(0,o.default)(f.ripplePulsate,k.ripplePulsate),child:(0,o.default)(f.child,k.child),childLeaving:(0,o.default)(f.childLeaving,k.childLeaving),childPulsate:(0,o.default)(f.childPulsate,k.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},h.current)])),h.current+=1,b.current=i}),[f]),A=i.useCallback((function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>{};const{pulsate:r=!1,center:a=s||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&y.current)return void(y.current=!1);"touchstart"===(null==e?void 0:e.type)&&(y.current=!0);const o=i?null:v.current,f=o?o.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,l,u;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(f.width/2),l=Math.round(f.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-f.left),l=Math.round(n-f.top)}if(a)u=Math.sqrt((2*f.width**2+f.height**2)/3),u%2===0&&(u+=1);else{const e=2*Math.max(Math.abs((o?o.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((o?o.clientHeight:0)-l),l)+2;u=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===g.current&&(g.current=()=>{w({pulsate:r,rippleX:c,rippleY:l,rippleSize:u,cb:n})},m.current=setTimeout((()=>{g.current&&(g.current(),g.current=null)}),80)):w({pulsate:r,rippleX:c,rippleY:l,rippleSize:u,cb:n})}),[s,w]),_=i.useCallback((()=>{A({},{pulsate:!0})}),[A]),T=i.useCallback(((e,t)=>{if(clearTimeout(m.current),"touchend"===(null==e?void 0:e.type)&&g.current)return g.current(),g.current=null,void(m.current=setTimeout((()=>{T(e,t)})));g.current=null,p((e=>e.length>0?e.slice(1):e)),b.current=t}),[]);return i.useImperativeHandle(t,(()=>({pulsate:_,start:A,stop:T})),[_,A,T]),(0,P.jsx)(D,(0,r.Z)({className:(0,o.default)(k.root,f.root,l),ref:v},u,{children:(0,P.jsx)(E,{component:null,exit:!0,children:d})}))}));var U=n(21217);function F(e){return(0,U.Z)("MuiButtonBase",e)}const z=(0,T.Z)("MuiButtonBase",["root","disabled","focusVisible"]),$=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],G=(0,f.ZP)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${z.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),H=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiButtonBase"}),{action:f,centerRipple:p=!1,children:h,className:b,component:y="button",disabled:m=!1,disableRipple:g=!1,disableTouchRipple:v=!1,focusRipple:w=!1,LinkComponent:E="a",onBlur:A,onClick:_,onContextMenu:T,onDragLeave:k,onFocus:C,onFocusVisible:x,onKeyDown:O,onKeyUp:S,onMouseDown:R,onMouseLeave:I,onMouseUp:N,onTouchEnd:B,onTouchMove:j,onTouchStart:D,tabIndex:L=0,TouchRippleProps:U,touchRippleRef:z,type:H}=n,W=(0,a.Z)(n,$),V=i.useRef(null),q=i.useRef(null),K=(0,l.Z)(q,z),{isFocusVisibleRef:Z,onFocus:J,onBlur:Y,ref:Q}=(0,d.Z)(),[X,ee]=i.useState(!1);m&&X&&ee(!1),i.useImperativeHandle(f,(()=>({focusVisible:()=>{ee(!0),V.current.focus()}})),[]);const[te,ne]=i.useState(!1);i.useEffect((()=>{ne(!0)}),[]);const re=te&&!g&&!m;function ae(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v;return(0,u.Z)((r=>{t&&t(r);return!n&&q.current&&q.current[e](r),!0}))}i.useEffect((()=>{X&&w&&!g&&te&&q.current.pulsate()}),[g,w,X,te]);const ie=ae("start",R),oe=ae("stop",T),se=ae("stop",k),fe=ae("stop",N),ce=ae("stop",(e=>{X&&e.preventDefault(),I&&I(e)})),le=ae("start",D),ue=ae("stop",B),de=ae("stop",j),pe=ae("stop",(e=>{Y(e),!1===Z.current&&ee(!1),A&&A(e)}),!1),he=(0,u.Z)((e=>{V.current||(V.current=e.currentTarget),J(e),!0===Z.current&&(ee(!0),x&&x(e)),C&&C(e)})),be=()=>{const e=V.current;return y&&"button"!==y&&!("A"===e.tagName&&e.href)},ye=i.useRef(!1),me=(0,u.Z)((e=>{w&&!ye.current&&X&&q.current&&" "===e.key&&(ye.current=!0,q.current.stop(e,(()=>{q.current.start(e)}))),e.target===e.currentTarget&&be()&&" "===e.key&&e.preventDefault(),O&&O(e),e.target===e.currentTarget&&be()&&"Enter"===e.key&&!m&&(e.preventDefault(),_&&_(e))})),ge=(0,u.Z)((e=>{w&&" "===e.key&&q.current&&X&&!e.defaultPrevented&&(ye.current=!1,q.current.stop(e,(()=>{q.current.pulsate(e)}))),S&&S(e),_&&e.target===e.currentTarget&&be()&&" "===e.key&&!e.defaultPrevented&&_(e)}));let ve=y;"button"===ve&&(W.href||W.to)&&(ve=E);const we={};"button"===ve?(we.type=void 0===H?"button":H,we.disabled=m):(W.href||W.to||(we.role="button"),m&&(we["aria-disabled"]=m));const Ee=(0,l.Z)(t,Q,V);const Ae=(0,r.Z)({},n,{centerRipple:p,component:y,disabled:m,disableRipple:g,disableTouchRipple:v,focusRipple:w,tabIndex:L,focusVisible:X}),Pe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,i={root:["root",t&&"disabled",n&&"focusVisible"]},o=(0,s.Z)(i,F,a);return n&&r&&(o.root+=` ${r}`),o})(Ae);return(0,P.jsxs)(G,(0,r.Z)({as:ve,className:(0,o.default)(Pe.root,b),ownerState:Ae,onBlur:pe,onClick:_,onContextMenu:oe,onFocus:he,onKeyDown:me,onKeyUp:ge,onMouseDown:ie,onMouseLeave:ce,onMouseUp:fe,onDragLeave:se,onTouchEnd:ue,onTouchMove:de,onTouchStart:le,ref:Ee,tabIndex:m?-1:L,type:H},we,W,{children:[h,re?(0,P.jsx)(M,(0,r.Z)({ref:K,center:p},U)):null]}))}))},13239:(e,t,n)=>{"use strict";n.d(t,{Z:()=>x});var r=n(19756),a=n(22122),i=n(72791),o=n(28182),s=n(94419),f=n(52554),c=n(14036),l=n(31402),u=n(66934),d=n(75878),p=n(21217);function h(e){return(0,p.Z)("MuiCircularProgress",e)}(0,d.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var b=n(80184);const y=["className","color","disableShrink","size","style","thickness","value","variant"];let m,g,v,w,E=e=>e;const A=44,P=(0,f.F4)(m||(m=E`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`)),_=(0,f.F4)(g||(g=E`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -125px;
  }
`)),T=(0,u.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${(0,c.Z)(n.color)}`]]}})((e=>{let{ownerState:t,theme:n}=e;return(0,a.Z)({display:"inline-block"},"determinate"===t.variant&&{transition:n.transitions.create("transform")},"inherit"!==t.color&&{color:(n.vars||n).palette[t.color].main})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&(0,f.iv)(v||(v=E`
      animation: ${0} 1.4s linear infinite;
    `),P)})),k=(0,u.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),C=(0,u.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${(0,c.Z)(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((e=>{let{ownerState:t,theme:n}=e;return(0,a.Z)({stroke:"currentColor"},"determinate"===t.variant&&{transition:n.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})}),(e=>{let{ownerState:t}=e;return"indeterminate"===t.variant&&!t.disableShrink&&(0,f.iv)(w||(w=E`
      animation: ${0} 1.4s ease-in-out infinite;
    `),_)})),x=i.forwardRef((function(e,t){const n=(0,l.Z)({props:e,name:"MuiCircularProgress"}),{className:i,color:f="primary",disableShrink:u=!1,size:d=40,style:p,thickness:m=3.6,value:g=0,variant:v="indeterminate"}=n,w=(0,r.Z)(n,y),E=(0,a.Z)({},n,{color:f,disableShrink:u,size:d,thickness:m,value:g,variant:v}),P=(e=>{const{classes:t,variant:n,color:r,disableShrink:a}=e,i={root:["root",n,`color${(0,c.Z)(r)}`],svg:["svg"],circle:["circle",`circle${(0,c.Z)(n)}`,a&&"circleDisableShrink"]};return(0,s.Z)(i,h,t)})(E),_={},x={},O={};if("determinate"===v){const e=2*Math.PI*((A-m)/2);_.strokeDasharray=e.toFixed(3),O["aria-valuenow"]=Math.round(g),_.strokeDashoffset=`${((100-g)/100*e).toFixed(3)}px`,x.transform="rotate(-90deg)"}return(0,b.jsx)(T,(0,a.Z)({className:(0,o.default)(P.root,i),style:(0,a.Z)({width:d,height:d},x,p),ownerState:E,ref:t,role:"progressbar"},O,w,{children:(0,b.jsx)(k,{className:P.svg,ownerState:E,viewBox:"22 22 44 44",children:(0,b.jsx)(C,{className:P.circle,style:_,ownerState:E,cx:A,cy:A,r:(A-m)/2,fill:"none",strokeWidth:m})})}))}))},99259:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var r=n(22122),a=n(19756),i=n(72791),o=n(28182),s=n(94419),f=n(14036),c=n(31402),l=n(66934),u=n(75878),d=n(21217);function p(e){return(0,d.Z)("MuiSvgIcon",e)}(0,u.Z)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var h=n(80184);const b=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],y=(0,l.ZP)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${(0,f.Z)(n.color)}`],t[`fontSize${(0,f.Z)(n.fontSize)}`]]}})((e=>{let{theme:t,ownerState:n}=e;var r,a,i,o,s,f,c,l,u,d,p,h,b,y,m,g,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(r=t.transitions)||null==(a=r.create)?void 0:a.call(r,"fill",{duration:null==(i=t.transitions)||null==(o=i.duration)?void 0:o.shorter}),fontSize:{inherit:"inherit",small:(null==(s=t.typography)||null==(f=s.pxToRem)?void 0:f.call(s,20))||"1.25rem",medium:(null==(c=t.typography)||null==(l=c.pxToRem)?void 0:l.call(c,24))||"1.5rem",large:(null==(u=t.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[n.fontSize],color:null!=(p=null==(h=(t.vars||t).palette)||null==(b=h[n.color])?void 0:b.main)?p:{action:null==(y=(t.vars||t).palette)||null==(m=y.action)?void 0:m.active,disabled:null==(g=(t.vars||t).palette)||null==(v=g.action)?void 0:v.disabled,inherit:void 0}[n.color]}})),m=i.forwardRef((function(e,t){const n=(0,c.Z)({props:e,name:"MuiSvgIcon"}),{children:i,className:l,color:u="inherit",component:d="svg",fontSize:m="medium",htmlColor:g,inheritViewBox:v=!1,titleAccess:w,viewBox:E="0 0 24 24"}=n,A=(0,a.Z)(n,b),P=(0,r.Z)({},n,{color:u,component:d,fontSize:m,instanceFontSize:e.fontSize,inheritViewBox:v,viewBox:E}),_={};v||(_.viewBox=E);const T=(e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root","inherit"!==t&&`color${(0,f.Z)(t)}`,`fontSize${(0,f.Z)(n)}`]};return(0,s.Z)(a,p,r)})(P);return(0,h.jsxs)(y,(0,r.Z)({as:d,className:(0,o.default)(T.root,l),focusable:"false",color:g,"aria-hidden":!w||void 0,role:w?"img":void 0,ref:t},_,A,{ownerState:P,children:[i,w?(0,h.jsx)("title",{children:w}):null]}))}));m.muiName="SvgIcon";const g=m},61979:(e,t,n)=>{"use strict";n.d(t,{Z:()=>B});var r=n(22122),a=n(19756),i=n(46189),o=n(82466),s=n(85080),f=n(87416),c=n(60104);var l=n(12065);const u={black:"#000",white:"#fff"},d={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},p={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},h={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},b={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},y={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},m={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},g={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},v=["mode","contrastThreshold","tonalOffset"],w={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:u.white,default:u.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},E={text:{primary:u.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:u.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function A(e,t,n,r){const a=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=(0,l.$n)(e.main,a):"dark"===t&&(e.dark=(0,l._j)(e.main,i)))}function P(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:s=.2}=e,f=(0,a.Z)(e,v),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:y[200],light:y[50],dark:y[400]}:{main:y[700],light:y[400],dark:y[800]}}(t),P=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:p[200],light:p[50],dark:p[400]}:{main:p[500],light:p[300],dark:p[700]}}(t),_=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:h[500],light:h[300],dark:h[700]}:{main:h[700],light:h[400],dark:h[800]}}(t),T=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:m[400],light:m[300],dark:m[700]}:{main:m[700],light:m[500],dark:m[900]}}(t),k=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:g[400],light:g[300],dark:g[700]}:{main:g[800],light:g[500],dark:g[900]}}(t),C=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:b[400],light:b[300],dark:b[700]}:{main:"#ed6c02",light:b[500],dark:b[900]}}(t);function x(e){return(0,l.mi)(e,E.text.primary)>=n?E.text.primary:w.text.primary}const O=e=>{let{color:t,name:n,mainShade:a=500,lightShade:o=300,darkShade:f=700}=e;if(t=(0,r.Z)({},t),!t.main&&t[a]&&(t.main=t[a]),!t.hasOwnProperty("main"))throw new Error((0,i.Z)(11,n?` (${n})`:"",a));if("string"!==typeof t.main)throw new Error((0,i.Z)(12,n?` (${n})`:"",JSON.stringify(t.main)));return A(t,"light",o,s),A(t,"dark",f,s),t.contrastText||(t.contrastText=x(t.main)),t},S={dark:E,light:w};return(0,o.Z)((0,r.Z)({common:(0,r.Z)({},u),mode:t,primary:O({color:c,name:"primary"}),secondary:O({color:P,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:O({color:_,name:"error"}),warning:O({color:C,name:"warning"}),info:O({color:T,name:"info"}),success:O({color:k,name:"success"}),grey:d,contrastThreshold:n,getContrastText:x,augmentColor:O,tonalOffset:s},S[t]),f)}const _=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const T={textTransform:"uppercase"},k='"Roboto", "Helvetica", "Arial", sans-serif';function C(e,t){const n="function"===typeof t?t(e):t,{fontFamily:i=k,fontSize:s=14,fontWeightLight:f=300,fontWeightRegular:c=400,fontWeightMedium:l=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:p,pxToRem:h}=n,b=(0,a.Z)(n,_);const y=s/14,m=h||(e=>e/d*y+"rem"),g=(e,t,n,a,o)=>{return(0,r.Z)({fontFamily:i,fontWeight:e,fontSize:m(t),lineHeight:n},i===k?{letterSpacing:(s=a/t,Math.round(1e5*s)/1e5)+"em"}:{},o,p);var s},v={h1:g(f,96,1.167,-1.5),h2:g(f,60,1.2,-.5),h3:g(c,48,1.167,0),h4:g(c,34,1.235,.25),h5:g(c,24,1.334,0),h6:g(l,20,1.6,.15),subtitle1:g(c,16,1.75,.15),subtitle2:g(l,14,1.57,.1),body1:g(c,16,1.5,.15),body2:g(c,14,1.43,.15),button:g(l,14,1.75,.4,T),caption:g(c,12,1.66,.4),overline:g(c,12,2.66,1,T),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,o.Z)((0,r.Z)({htmlFontSize:d,pxToRem:m,fontFamily:i,fontSize:s,fontWeightLight:f,fontWeightRegular:c,fontWeightMedium:l,fontWeightBold:u},v),b,{clone:!1})}function x(){return[`${arguments.length<=0?void 0:arguments[0]}px ${arguments.length<=1?void 0:arguments[1]}px ${arguments.length<=2?void 0:arguments[2]}px ${arguments.length<=3?void 0:arguments[3]}px rgba(0,0,0,0.2)`,`${arguments.length<=4?void 0:arguments[4]}px ${arguments.length<=5?void 0:arguments[5]}px ${arguments.length<=6?void 0:arguments[6]}px ${arguments.length<=7?void 0:arguments[7]}px rgba(0,0,0,0.14)`,`${arguments.length<=8?void 0:arguments[8]}px ${arguments.length<=9?void 0:arguments[9]}px ${arguments.length<=10?void 0:arguments[10]}px ${arguments.length<=11?void 0:arguments[11]}px rgba(0,0,0,0.12)`].join(",")}const O=["none",x(0,2,1,-1,0,1,1,0,0,1,3,0),x(0,3,1,-2,0,2,2,0,0,1,5,0),x(0,3,3,-2,0,3,4,0,0,1,8,0),x(0,2,4,-1,0,4,5,0,0,1,10,0),x(0,3,5,-1,0,5,8,0,0,1,14,0),x(0,3,5,-1,0,6,10,0,0,1,18,0),x(0,4,5,-2,0,7,10,1,0,2,16,1),x(0,5,5,-3,0,8,10,1,0,3,14,2),x(0,5,6,-3,0,9,12,1,0,3,16,2),x(0,6,6,-3,0,10,14,1,0,4,18,3),x(0,6,7,-4,0,11,15,1,0,4,20,3),x(0,7,8,-4,0,12,17,2,0,5,22,4),x(0,7,8,-4,0,13,19,2,0,5,24,4),x(0,7,9,-4,0,14,21,2,0,5,26,4),x(0,8,9,-5,0,15,22,2,0,6,28,5),x(0,8,10,-5,0,16,24,2,0,6,30,5),x(0,8,11,-5,0,17,26,2,0,6,32,5),x(0,9,11,-5,0,18,28,2,0,7,34,6),x(0,9,12,-6,0,19,29,2,0,7,36,6),x(0,10,13,-6,0,20,31,3,0,8,38,7),x(0,10,13,-6,0,21,33,3,0,8,40,7),x(0,10,14,-6,0,22,35,3,0,8,42,7),x(0,11,14,-7,0,23,36,3,0,9,44,8),x(0,11,15,-7,0,24,38,3,0,9,46,8)];var S=n(81314);const R={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},I=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function N(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mixins:t={},palette:n={},transitions:l={},typography:u={}}=e,d=(0,a.Z)(e,I);if(e.vars)throw new Error((0,i.Z)(18));const p=P(n),h=(0,s.Z)(e);let b=(0,o.Z)(h,{mixins:(y=h.breakpoints,m=t,(0,r.Z)({toolbar:{minHeight:56,[y.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[y.up("sm")]:{minHeight:64}}},m)),palette:p,shadows:O.slice(),typography:C(p,u),transitions:(0,S.ZP)(l),zIndex:(0,r.Z)({},R)});var y,m;b=(0,o.Z)(b,d);for(var g=arguments.length,v=new Array(g>1?g-1:0),w=1;w<g;w++)v[w-1]=arguments[w];return b=v.reduce(((e,t)=>(0,o.Z)(e,t)),b),b.unstable_sxConfig=(0,r.Z)({},f.Z,null==d?void 0:d.unstable_sxConfig),b.unstable_sx=function(e){return(0,c.Z)({sx:e,theme:this})},b}const B=N},81314:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>l,x9:()=>s});var r=n(19756),a=n(22122);const i=["duration","easing","delay"],o={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function f(e){return`${Math.round(e)}ms`}function c(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function l(e){const t=(0,a.Z)({},o,e.easing),n=(0,a.Z)({},s,e.duration);return(0,a.Z)({getAutoHeightDuration:c,create:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{duration:o=n.standard,easing:s=t.easeInOut,delay:c=0}=a;(0,r.Z)(a,i);return(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"===typeof o?o:f(o)} ${s} ${"string"===typeof c?c:f(c)}`)).join(",")}},e,{easing:t,duration:n})}},36482:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=(0,n(61979).Z)()},988:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r="$$material"},66934:(e,t,n)=>{"use strict";n.d(t,{Dz:()=>s,FO:()=>o,ZP:()=>f});var r=n(44046),a=n(36482),i=n(988);const o=e=>(0,r.x9)(e)&&"classes"!==e,s=r.x9,f=(0,r.ZP)({themeId:i.Z,defaultTheme:a.Z,rootShouldForwardProp:o})},31402:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(86083),a=n(36482),i=n(988);function o(e){let{props:t,name:n}=e;return(0,r.Z)({props:t,name:n,defaultTheme:a.Z,themeId:i.Z})}},14036:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(27312).Z},74223:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(22122),a=n(72791),i=n(99259),o=n(80184);function s(e,t){function n(n,a){return(0,o.jsx)(i.Z,(0,r.Z)({"data-testid":`${t}Icon`,ref:a},n,{children:e}))}return n.muiName=i.Z.muiName,a.memo(a.forwardRef(n))}},89683:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(58956).Z},42071:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(47563).Z},23031:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r=n(72791);let a,i=!0,o=!1;const s={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function f(e){e.metaKey||e.altKey||e.ctrlKey||(i=!0)}function c(){i=!1}function l(){"hidden"===this.visibilityState&&o&&(i=!0)}function u(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return i||function(e){const{type:t,tagName:n}=e;return!("INPUT"!==n||!s[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}const d=function(){const e=r.useCallback((e=>{var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",f,!0),t.addEventListener("mousedown",c,!0),t.addEventListener("pointerdown",c,!0),t.addEventListener("touchstart",c,!0),t.addEventListener("visibilitychange",l,!0))}),[]),t=r.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!u(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(o=!0,window.clearTimeout(a),a=window.setTimeout((()=>{o=!1}),100),t.current=!1,!0)},ref:e}}},60604:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>g,Co:()=>v});var r=n(22122),a=n(72791),i=n(49797),o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;const s=(0,i.Z)((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var f=n(29886),c=n(95438),l=n(9140),u=n(82561),d=s,p=function(e){return"theme"!==e},h=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?d:p},b=function(e,t,n){var r;if(t){var a=t.shouldForwardProp;r=e.__emotion_forwardProp&&a?function(t){return e.__emotion_forwardProp(t)&&a(t)}:a}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},y=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;(0,c.hC)(t,n,r);(0,u.L)((function(){return(0,c.My)(t,n,r)}));return null};const m=function e(t,n){var i,o,s=t.__emotion_real===t,u=s&&t.__emotion_base||t;void 0!==n&&(i=n.label,o=n.target);var d=b(t,n,s),p=d||h(u),m=!p("as");return function(){var g=arguments,v=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==i&&v.push("label:"+i+";"),null==g[0]||void 0===g[0].raw)v.push.apply(v,g);else{0,v.push(g[0][0]);for(var w=g.length,E=1;E<w;E++)v.push(g[E],g[0][E])}var A=(0,f.w)((function(e,t,n){var r=m&&e.as||u,i="",s=[],b=e;if(null==e.theme){for(var g in b={},e)b[g]=e[g];b.theme=(0,a.useContext)(f.T)}"string"===typeof e.className?i=(0,c.fp)(t.registered,s,e.className):null!=e.className&&(i=e.className+" ");var w=(0,l.O)(v.concat(s),t.registered,b);i+=t.key+"-"+w.name,void 0!==o&&(i+=" "+o);var E=m&&void 0===d?h(r):p,A={};for(var P in e)m&&"as"===P||E(P)&&(A[P]=e[P]);return A.className=i,A.ref=n,(0,a.createElement)(a.Fragment,null,(0,a.createElement)(y,{cache:t,serialized:w,isStringTag:"string"===typeof r}),(0,a.createElement)(r,A))}));return A.displayName=void 0!==i?i:"Styled("+("string"===typeof u?u:u.displayName||u.name||"Component")+")",A.defaultProps=t.defaultProps,A.__emotion_real=A,A.__emotion_base=u,A.__emotion_styles=v,A.__emotion_forwardProp=d,Object.defineProperty(A,"toString",{value:function(){return"."+o}}),A.withComponent=function(t,a){return e(t,(0,r.Z)({},n,a,{shouldForwardProp:b(A,a,!0)})).apply(void 0,v)},A}};function g(e,t){return m(e,(0,r.Z)({},{target:"e1de0imv0"},t))}const v=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}},51184:(e,t,n)=>{"use strict";n.d(t,{L7:()=>f,P$:()=>l,VO:()=>a,W8:()=>s,dt:()=>c,k9:()=>o});var r=n(82466);const a={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${a[e]}px)`};function o(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||i;return t.reduce(((r,a,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"===typeof t){const e=r.breakpoints||i;return Object.keys(t).reduce(((r,i)=>{if(-1!==Object.keys(e.values||a).indexOf(i)){r[e.up(i)]=n(t[i],i)}else{const e=i;r[e]=t[e]}return r}),{})}return n(t)}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}function f(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function c(e){const t=s(e);for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];const o=[t,...a].reduce(((e,t)=>(0,r.Z)(e,t)),{});return f(Object.keys(t),o)}function l(e){let{values:t,breakpoints:n,base:r}=e;const a=r||function(e,t){if("object"!==typeof e)return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach(((t,r)=>{r<e.length&&(n[t]=!0)})):r.forEach((t=>{null!=e[t]&&(n[t]=!0)})),n}(t,n),i=Object.keys(a);if(0===i.length)return t;let o;return i.reduce(((e,n,r)=>(Array.isArray(t)?(e[n]=null!=t[r]?t[r]:t[o],o=r):"object"===typeof t?(e[n]=null!=t[n]?t[n]:t[o],o=n):e[n]=t,e)),{})}},12065:(e,t,n)=>{"use strict";n.d(t,{$n:()=>u,Fq:()=>c,_4:()=>d,_j:()=>l,mi:()=>f});var r=n(46189);function a(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function i(e){if(e.type)return e;if("#"===e.charAt(0))return i(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,r.Z)(9,e));let a,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),a=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(a))throw new Error((0,r.Z)(10,a))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:a}}function o(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function s(e){let t="hsl"===(e=i(e)).type||"hsla"===e.type?i(function(e){e=i(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,s=r*Math.min(a,1-a),f=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return a-s*Math.max(Math.min(t-3,9-t,1),-1)};let c="rgb";const l=[Math.round(255*f(0)),Math.round(255*f(8)),Math.round(255*f(4))];return"hsla"===e.type&&(c+="a",l.push(t[3])),o({type:c,values:l})}(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function f(e,t){const n=s(e),r=s(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function c(e,t){return e=i(e),t=a(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,o(e)}function l(e,t){if(e=i(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return o(e)}function u(e,t){if(e=i(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return o(e)}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return s(e)>.5?l(e,t):u(e,t)}},23814:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(22122),a=n(19756),i=n(72791),o=n(28182),s=n(60604),f=n(60104),c=n(78519),l=n(30418),u=n(80184);const d=["className","component"];function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n,defaultClassName:p="MuiBox-root",generateClassName:h}=e,b=(0,s.ZP)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(f.Z);return i.forwardRef((function(e,i){const s=(0,l.Z)(n),f=(0,c.Z)(e),{className:y,component:m="div"}=f,g=(0,a.Z)(f,d);return(0,u.jsx)(b,(0,r.Z)({as:m,ref:i,className:(0,o.default)(y,h?h(p):p),theme:t&&s[t]||s},g))}))}},44046:(e,t,n)=>{"use strict";n.d(t,{ZP:()=>v,x9:()=>y});var r=n(19756),a=n(22122),i=n(60604),o=n(85080),s=n(27312);const f=["variant"];function c(e){return 0===e.length}function l(e){const{variant:t}=e,n=(0,r.Z)(e,f);let a=t||"";return Object.keys(n).sort().forEach((t=>{a+="color"===t?c(a)?e[t]:(0,s.Z)(e[t]):`${c(a)?t:(0,s.Z)(t)}${(0,s.Z)(e[t].toString())}`})),a}var u=n(60104);const d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];const p=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,h=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach((e=>{const t=l(e.props);r[t]=e.style})),r},b=(e,t,n,r)=>{var a,i;const{ownerState:o={}}=e,s=[],f=null==n||null==(a=n.components)||null==(i=a[r])?void 0:i.variants;return f&&f.forEach((n=>{let r=!0;Object.keys(n.props).forEach((t=>{o[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&s.push(t[l(n.props)])})),s};function y(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const m=(0,o.Z)();function g(e){let{defaultTheme:t,theme:n,themeId:r}=e;return a=n,0===Object.keys(a).length?t:n[r]||n;var a}function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{themeId:t,defaultTheme:n=m,rootShouldForwardProp:o=y,slotShouldForwardProp:s=y}=e,f=e=>(0,u.Z)((0,a.Z)({},e,{theme:g((0,a.Z)({},e,{defaultTheme:n,themeId:t}))}));return f.__mui_systemSx=!0,function(e){let c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.Co)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:u,skipVariantsResolver:m,skipSx:v,overridesResolver:w}=c,E=(0,r.Z)(c,d),A=void 0!==m?m:u&&"Root"!==u||!1,P=v||!1;let _=y;"Root"===u?_=o:u?_=s:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(_=void 0);const T=(0,i.ZP)(e,(0,a.Z)({shouldForwardProp:_,label:undefined},E)),k=function(r){for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s<i;s++)o[s-1]=arguments[s];const c=o?o.map((e=>"function"===typeof e&&e.__emotion_real!==e?r=>e((0,a.Z)({},r,{theme:g((0,a.Z)({},r,{defaultTheme:n,themeId:t}))})):e)):[];let u=r;l&&w&&c.push((e=>{const r=g((0,a.Z)({},e,{defaultTheme:n,themeId:t})),i=p(l,r);if(i){const t={};return Object.entries(i).forEach((n=>{let[i,o]=n;t[i]="function"===typeof o?o((0,a.Z)({},e,{theme:r})):o})),w(e,t)}return null})),l&&!A&&c.push((e=>{const r=g((0,a.Z)({},e,{defaultTheme:n,themeId:t}));return b(e,h(l,r),r,l)})),P||c.push(f);const d=c.length-o.length;if(Array.isArray(r)&&d>0){const e=new Array(d).fill("");u=[...r,...e],u.raw=[...r.raw,...e]}else"function"===typeof r&&r.__emotion_real!==r&&(u=e=>r((0,a.Z)({},e,{theme:g((0,a.Z)({},e,{defaultTheme:n,themeId:t}))})));const y=T(u,...c);return e.muiName&&(y.muiName=e.muiName),y};return T.withConfig&&(k.withConfig=T.withConfig),k}}},85080:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var r=n(22122),a=n(19756),i=n(82466);const o=["values","unit","step"],s=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>(0,r.Z)({},e,{[t.key]:t.val})),{})};const f={borderRadius:4};var c=n(45682);var l=n(60104),u=n(87416);const d=["breakpoints","palette","spacing","shape"];const p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{breakpoints:t={},palette:n={},spacing:p,shape:h={}}=e,b=(0,a.Z)(e,d),y=function(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5}=e,f=(0,a.Z)(e,o),c=s(t),l=Object.keys(c);function u(e){return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n})`}function d(e){return`@media (max-width:${("number"===typeof t[e]?t[e]:e)-i/100}${n})`}function p(e,r){const a=l.indexOf(r);return`@media (min-width:${"number"===typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==a&&"number"===typeof t[l[a]]?t[l[a]]:r)-i/100}${n})`}return(0,r.Z)({keys:l,values:c,up:u,down:d,between:p,only:function(e){return l.indexOf(e)+1<l.length?p(e,l[l.indexOf(e)+1]):u(e)},not:function(e){const t=l.indexOf(e);return 0===t?u(l[1]):t===l.length-1?d(l[t]):p(e,l[l.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},f)}(t),m=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;const t=(0,c.hB)({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((e=>{const n=t(e);return"number"===typeof n?`${n}px`:n})).join(" ")};return n.mui=!0,n}(p);let g=(0,i.Z)({breakpoints:y,direction:"ltr",components:{},palette:(0,r.Z)({mode:"light"},n),spacing:m,shape:(0,r.Z)({},f,h)},b);for(var v=arguments.length,w=new Array(v>1?v-1:0),E=1;E<v;E++)w[E-1]=arguments[E];return g=w.reduce(((e,t)=>(0,i.Z)(e,t)),g),g.unstable_sxConfig=(0,r.Z)({},u.Z,null==b?void 0:b.unstable_sxConfig),g.unstable_sx=function(e){return(0,l.Z)({sx:e,theme:this})},g}},98247:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(82466);const a=function(e,t){return t?(0,r.Z)(e,t,{clone:!1}):e}},45682:(e,t,n)=>{"use strict";n.d(t,{hB:()=>h,eI:()=>p,NA:()=>b,e6:()=>g,o3:()=>v});var r=n(51184),a=n(18529),i=n(98247);const o={m:"margin",p:"padding"},s={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},f={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},c=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!f[e])return[e];e=f[e]}const[t,n]=e.split(""),r=o[t],a=s[n]||"";return Array.isArray(a)?a.map((e=>r+e)):[r+a]})),l=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],u=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...l,...u];function p(e,t,n,r){var i;const o=null!=(i=(0,a.DW)(e,t,!1))?i:n;return"number"===typeof o?e=>"string"===typeof e?e:o*e:Array.isArray(o)?e=>"string"===typeof e?e:o[e]:"function"===typeof o?o:()=>{}}function h(e){return p(e,"spacing",8)}function b(e,t){if("string"===typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:`-${n}`}function y(e,t,n,a){if(-1===t.indexOf(n))return null;const i=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=b(t,n),e)),{})}(c(n),a),o=e[n];return(0,r.k9)(e,o,i)}function m(e,t){const n=h(e.theme);return Object.keys(e).map((r=>y(e,t,r,n))).reduce(i.Z,{})}function g(e){return m(e,l)}function v(e){return m(e,u)}function w(e){return m(e,d)}g.propTypes={},g.filterProps=l,v.propTypes={},v.filterProps=u,w.propTypes={},w.filterProps=d},18529:(e,t,n)=>{"use strict";n.d(t,{DW:()=>i,Jq:()=>o,ZP:()=>s});var r=n(27312),a=n(51184);function i(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function o(e,t,n){let r,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||a:i(e,n)||a,t&&(r=t(r,a,e)),r}const s=function(e){const{prop:t,cssProperty:n=e.prop,themeKey:s,transform:f}=e,c=e=>{if(null==e[t])return null;const c=e[t],l=i(e.theme,s)||{};return(0,a.k9)(e,c,(e=>{let a=o(l,f,e);return e===a&&"string"===typeof e&&(a=o(l,f,`${t}${"default"===e?"":(0,r.Z)(e)}`,e)),!1===n?a:{[n]:a}}))};return c.propTypes={},c.filterProps=[t],c}},87416:(e,t,n)=>{"use strict";n.d(t,{Z:()=>R});var r=n(45682),a=n(18529),i=n(98247);const o=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),a=e=>Object.keys(e).reduce(((t,n)=>r[n]?(0,i.Z)(t,r[n](e)):t),{});return a.propTypes={},a.filterProps=t.reduce(((e,t)=>e.concat(t.filterProps)),[]),a};var s=n(51184);function f(e){return"number"!==typeof e?e:`${e}px solid`}const c=(0,a.ZP)({prop:"border",themeKey:"borders",transform:f}),l=(0,a.ZP)({prop:"borderTop",themeKey:"borders",transform:f}),u=(0,a.ZP)({prop:"borderRight",themeKey:"borders",transform:f}),d=(0,a.ZP)({prop:"borderBottom",themeKey:"borders",transform:f}),p=(0,a.ZP)({prop:"borderLeft",themeKey:"borders",transform:f}),h=(0,a.ZP)({prop:"borderColor",themeKey:"palette"}),b=(0,a.ZP)({prop:"borderTopColor",themeKey:"palette"}),y=(0,a.ZP)({prop:"borderRightColor",themeKey:"palette"}),m=(0,a.ZP)({prop:"borderBottomColor",themeKey:"palette"}),g=(0,a.ZP)({prop:"borderLeftColor",themeKey:"palette"}),v=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=(0,r.eI)(e.theme,"shape.borderRadius",4,"borderRadius"),n=e=>({borderRadius:(0,r.NA)(t,e)});return(0,s.k9)(e,e.borderRadius,n)}return null};v.propTypes={},v.filterProps=["borderRadius"];o(c,l,u,d,p,h,b,y,m,g,v);const w=e=>{if(void 0!==e.gap&&null!==e.gap){const t=(0,r.eI)(e.theme,"spacing",8,"gap"),n=e=>({gap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.gap,n)}return null};w.propTypes={},w.filterProps=["gap"];const E=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=(0,r.eI)(e.theme,"spacing",8,"columnGap"),n=e=>({columnGap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.columnGap,n)}return null};E.propTypes={},E.filterProps=["columnGap"];const A=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=(0,r.eI)(e.theme,"spacing",8,"rowGap"),n=e=>({rowGap:(0,r.NA)(t,e)});return(0,s.k9)(e,e.rowGap,n)}return null};A.propTypes={},A.filterProps=["rowGap"];o(w,E,A,(0,a.ZP)({prop:"gridColumn"}),(0,a.ZP)({prop:"gridRow"}),(0,a.ZP)({prop:"gridAutoFlow"}),(0,a.ZP)({prop:"gridAutoColumns"}),(0,a.ZP)({prop:"gridAutoRows"}),(0,a.ZP)({prop:"gridTemplateColumns"}),(0,a.ZP)({prop:"gridTemplateRows"}),(0,a.ZP)({prop:"gridTemplateAreas"}),(0,a.ZP)({prop:"gridArea"}));function P(e,t){return"grey"===t?t:e}o((0,a.ZP)({prop:"color",themeKey:"palette",transform:P}),(0,a.ZP)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:P}),(0,a.ZP)({prop:"backgroundColor",themeKey:"palette",transform:P}));function _(e){return e<=1&&0!==e?100*e+"%":e}const T=(0,a.ZP)({prop:"width",transform:_}),k=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r,a;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(a=r.values)?void 0:a[t])||s.VO[t]||_(t)}};return(0,s.k9)(e,e.maxWidth,t)}return null};k.filterProps=["maxWidth"];const C=(0,a.ZP)({prop:"minWidth",transform:_}),x=(0,a.ZP)({prop:"height",transform:_}),O=(0,a.ZP)({prop:"maxHeight",transform:_}),S=(0,a.ZP)({prop:"minHeight",transform:_}),R=((0,a.ZP)({prop:"size",cssProperty:"width",transform:_}),(0,a.ZP)({prop:"size",cssProperty:"height",transform:_}),o(T,k,C,x,O,S,(0,a.ZP)({prop:"boxSizing"})),{border:{themeKey:"borders",transform:f},borderTop:{themeKey:"borders",transform:f},borderRight:{themeKey:"borders",transform:f},borderBottom:{themeKey:"borders",transform:f},borderLeft:{themeKey:"borders",transform:f},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:v},color:{themeKey:"palette",transform:P},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:P},backgroundColor:{themeKey:"palette",transform:P},p:{style:r.o3},pt:{style:r.o3},pr:{style:r.o3},pb:{style:r.o3},pl:{style:r.o3},px:{style:r.o3},py:{style:r.o3},padding:{style:r.o3},paddingTop:{style:r.o3},paddingRight:{style:r.o3},paddingBottom:{style:r.o3},paddingLeft:{style:r.o3},paddingX:{style:r.o3},paddingY:{style:r.o3},paddingInline:{style:r.o3},paddingInlineStart:{style:r.o3},paddingInlineEnd:{style:r.o3},paddingBlock:{style:r.o3},paddingBlockStart:{style:r.o3},paddingBlockEnd:{style:r.o3},m:{style:r.e6},mt:{style:r.e6},mr:{style:r.e6},mb:{style:r.e6},ml:{style:r.e6},mx:{style:r.e6},my:{style:r.e6},margin:{style:r.e6},marginTop:{style:r.e6},marginRight:{style:r.e6},marginBottom:{style:r.e6},marginLeft:{style:r.e6},marginX:{style:r.e6},marginY:{style:r.e6},marginInline:{style:r.e6},marginInlineStart:{style:r.e6},marginInlineEnd:{style:r.e6},marginBlock:{style:r.e6},marginBlockStart:{style:r.e6},marginBlockEnd:{style:r.e6},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:w},rowGap:{style:A},columnGap:{style:E},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:_},maxWidth:{style:k},minWidth:{transform:_},height:{transform:_},maxHeight:{transform:_},minHeight:{transform:_},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}})},78519:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(22122),a=n(19756),i=n(82466),o=n(87416);const s=["sx"],f=e=>{var t,n;const r={systemProps:{},otherProps:{}},a=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:o.Z;return Object.keys(e).forEach((t=>{a[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function c(e){const{sx:t}=e,n=(0,a.Z)(e,s),{systemProps:o,otherProps:c}=f(n);let l;return l=Array.isArray(t)?[o,...t]:"function"===typeof t?function(){const e=t(...arguments);return(0,i.P)(e)?(0,r.Z)({},o,e):o}:(0,r.Z)({},o,t),(0,r.Z)({},c,{sx:l})}},60104:(e,t,n)=>{"use strict";n.d(t,{Z:()=>c});var r=n(27312),a=n(98247),i=n(18529),o=n(51184),s=n(87416);const f=function(){function e(e,t,n,a){const s={[e]:t,theme:n},f=a[e];if(!f)return{[e]:t};const{cssProperty:c=e,themeKey:l,transform:u,style:d}=f;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const p=(0,i.DW)(n,l)||{};if(d)return d(s);return(0,o.k9)(s,t,(t=>{let n=(0,i.Jq)(p,u,t);return t===n&&"string"===typeof t&&(n=(0,i.Jq)(p,u,`${e}${"default"===t?"":(0,r.Z)(t)}`,t)),!1===c?n:{[c]:n}}))}return function t(n){var r;const{sx:i,theme:f={}}=n||{};if(!i)return null;const c=null!=(r=f.unstable_sxConfig)?r:s.Z;function l(n){let r=n;if("function"===typeof n)r=n(f);else if("object"!==typeof n)return n;if(!r)return null;const i=(0,o.W8)(f.breakpoints),s=Object.keys(i);let l=i;return Object.keys(r).forEach((n=>{const i=(s=r[n],u=f,"function"===typeof s?s(u):s);var s,u;if(null!==i&&void 0!==i)if("object"===typeof i)if(c[n])l=(0,a.Z)(l,e(n,i,f,c));else{const e=(0,o.k9)({theme:f},i,(e=>({[n]:e})));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(((e,t)=>e.concat(Object.keys(t))),[]),a=new Set(r);return t.every((e=>a.size===Object.keys(e).length))}(e,i)?l=(0,a.Z)(l,e):l[n]=t({sx:i,theme:f})}else l=(0,a.Z)(l,e(n,i,f,c))})),(0,o.L7)(s,l)}return Array.isArray(i)?i.map(l):l(i)}}();f.filterProps=["sx"];const c=f},30418:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(85080),a=n(69120);const i=(0,r.Z)();const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return(0,a.Z)(e)}},33073:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(35735);function a(e){const{theme:t,name:n,props:a}=e;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?(0,r.Z)(t.components[n].defaultProps,a):a}},86083:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(33073),a=n(30418);function i(e){let{props:t,name:n,defaultTheme:i,themeId:o}=e,s=(0,a.Z)(i);o&&(s=s[o]||s);return(0,r.Z)({theme:s,name:n,props:t})}},69120:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(72791),a=n(29886);const i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;const t=r.useContext(a.T);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}},55902:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});const r=e=>e,a=(()=>{let e=r;return{configure(t){e=t},generate:t=>e(t),reset(){e=r}}})()},27312:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(46189);function a(e){if("string"!==typeof e)throw new Error((0,r.Z)(7));return e.charAt(0).toUpperCase()+e.slice(1)}},94419:(e,t,n)=>{"use strict";function r(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const r={};return Object.keys(e).forEach((a=>{r[a]=e[a].reduce(((e,r)=>{if(r){const a=t(r);""!==a&&e.push(a),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}n.d(t,{Z:()=>r})},82466:(e,t,n)=>{"use strict";n.d(t,{P:()=>a,Z:()=>o});var r=n(22122);function a(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function i(e){if(!a(e))return e;const t={};return Object.keys(e).forEach((n=>{t[n]=i(e[n])})),t}function o(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0};const s=n.clone?(0,r.Z)({},e):e;return a(e)&&a(t)&&Object.keys(t).forEach((r=>{"__proto__"!==r&&(a(t[r])&&r in e&&a(e[r])?s[r]=o(e[r],t[r],n):n.clone?s[r]=a(t[r])?i(t[r]):t[r]:s[r]=t[r])})),s}},46189:(e,t,n)=>{"use strict";function r(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}n.d(t,{Z:()=>r})},21217:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(55902);const a={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const i=a[t];return i?`${n}-${i}`:`${r.Z.generate(e)}-${t}`}},75878:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(21217);function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui";const a={};return t.forEach((t=>{a[t]=(0,r.Z)(e,t,n)})),a}},35735:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(22122);function a(e,t){const n=(0,r.Z)({},t);return Object.keys(e).forEach((i=>{if(i.toString().match(/^(components|slots)$/))n[i]=(0,r.Z)({},e[i],n[i]);else if(i.toString().match(/^(componentsProps|slotProps)$/)){const o=e[i]||{},s=t[i];n[i]={},s&&Object.keys(s)?o&&Object.keys(o)?(n[i]=(0,r.Z)({},s),Object.keys(o).forEach((e=>{n[i][e]=a(o[e],s[e])}))):n[i]=s:n[i]=o}else void 0===n[i]&&(n[i]=e[i])})),n}},62971:(e,t,n)=>{"use strict";function r(e,t){"function"===typeof e?e(t):e&&(e.current=t)}n.d(t,{Z:()=>r})},75721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(72791);const a="undefined"!==typeof window?r.useLayoutEffect:r.useEffect},58956:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(72791),a=n(75721);function i(e){const t=r.useRef(e);return(0,a.Z)((()=>{t.current=e})),r.useCallback((function(){return(0,t.current)(...arguments)}),[])}},47563:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(72791),a=n(62971);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.useMemo((()=>t.every((e=>null==e))?null:e=>{t.forEach((t=>{(0,a.Z)(t,e)}))}),t)}},37525:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createCurve=t.getHash=void 0;const r=n(5968),a=n(74361),i=n(12846);function o(e){return{hash:e,hmac:function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return(0,r.hmac)(e,t,(0,a.concatBytes)(...i))},randomBytes:a.randomBytes}}t.getHash=o,t.createCurve=function(e,t){const n=t=>(0,i.weierstrass)({...e,...o(t)});return Object.freeze({...n(t),create:n})}},70369:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateBasic=t.wNAF=void 0;const r=n(57701),a=n(43500),i=BigInt(0),o=BigInt(1);t.wNAF=function(e,t){const n=(e,t)=>{const n=t.negate();return e?n:t},r=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:n,unsafeLadder(t,n){let r=e.ZERO,a=t;for(;n>i;)n&o&&(r=r.add(a)),a=a.double(),n>>=o;return r},precomputeWindow(e,t){const{windows:n,windowSize:a}=r(t),i=[];let o=e,s=o;for(let r=0;r<n;r++){s=o,i.push(s);for(let e=1;e<a;e++)s=s.add(o),i.push(s);o=s.double()}return i},wNAF(t,a,i){const{windows:s,windowSize:f}=r(t);let c=e.ZERO,l=e.BASE;const u=BigInt(2**t-1),d=2**t,p=BigInt(t);for(let e=0;e<s;e++){const t=e*f;let r=Number(i&u);i>>=p,r>f&&(r-=d,i+=o);const s=t,h=t+Math.abs(r)-1,b=e%2!==0,y=r<0;0===r?l=l.add(n(b,a[s])):c=c.add(n(y,a[h]))}return{p:c,f:l}},wNAFCached(e,t,n,r){const a=e._WINDOW_SIZE||1;let i=t.get(e);return i||(i=this.precomputeWindow(e,a),1!==a&&t.set(e,r(i))),this.wNAF(a,i,n)}}},t.validateBasic=function(e){return(0,r.validateField)(e.Fp),(0,a.validateObject)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...(0,r.nLength)(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}},14464:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHasher=t.isogenyMap=t.hash_to_field=t.expand_message_xof=t.expand_message_xmd=void 0;const r=n(57701),a=n(43500);const i=a.bytesToNumberBE;function o(e,t){if(e<0||e>=1<<8*t)throw new Error(`bad I2OSP call: value=${e} length=${t}`);const n=Array.from({length:t}).fill(0);for(let r=t-1;r>=0;r--)n[r]=255&e,e>>>=8;return new Uint8Array(n)}function s(e,t){const n=new Uint8Array(e.length);for(let r=0;r<e.length;r++)n[r]=e[r]^t[r];return n}function f(e){if(!(e instanceof Uint8Array))throw new Error("Uint8Array expected")}function c(e){if(!Number.isSafeInteger(e))throw new Error("number expected")}function l(e,t,n,r){f(e),f(t),c(n),t.length>255&&(t=r((0,a.concatBytes)((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-"),t)));const{outputLen:i,blockLen:l}=r,u=Math.ceil(n/i);if(u>255)throw new Error("Invalid xmd length");const d=(0,a.concatBytes)(t,o(t.length,1)),p=o(0,l),h=o(n,2),b=new Array(u),y=r((0,a.concatBytes)(p,e,h,o(0,1),d));b[0]=r((0,a.concatBytes)(y,o(1,1),d));for(let f=1;f<=u;f++){const e=[s(y,b[f-1]),o(f+1,1),d];b[f]=r((0,a.concatBytes)(...e))}return(0,a.concatBytes)(...b).slice(0,n)}function u(e,t,n,r,i){if(f(e),f(t),c(n),t.length>255){const e=Math.ceil(2*r/8);t=i.create({dkLen:e}).update((0,a.utf8ToBytes)("H2C-OVERSIZE-DST-")).update(t).digest()}if(n>65535||t.length>255)throw new Error("expand_message_xof: invalid lenInBytes");return i.create({dkLen:n}).update(e).update(o(n,2)).update(t).update(o(t.length,1)).digest()}function d(e,t,n){(0,a.validateObject)(n,{DST:"stringOrUint8Array",p:"bigint",m:"isSafeInteger",k:"isSafeInteger",hash:"hash"});const{p:o,k:s,m:d,hash:p,expand:h,DST:b}=n;f(e),c(t);const y=function(e){if(e instanceof Uint8Array)return e;if("string"===typeof e)return(0,a.utf8ToBytes)(e);throw new Error("DST must be Uint8Array or string")}(b),m=o.toString(2).length,g=Math.ceil((m+s)/8),v=t*d*g;let w;if("xmd"===h)w=l(e,y,v,p);else if("xof"===h)w=u(e,y,v,s,p);else{if("_internal_pass"!==h)throw new Error('expand must be "xmd" or "xof"');w=e}const E=new Array(t);for(let a=0;a<t;a++){const e=new Array(d);for(let t=0;t<d;t++){const n=g*(t+a*d),s=w.subarray(n,n+g);e[t]=(0,r.mod)(i(s),o)}E[a]=e}return E}t.expand_message_xmd=l,t.expand_message_xof=u,t.hash_to_field=d,t.isogenyMap=function(e,t){const n=t.map((e=>Array.from(e).reverse()));return(t,r)=>{const[a,i,o,s]=n.map((n=>n.reduce(((n,r)=>e.add(e.mul(n,t),r)))));return t=e.div(a,i),r=e.mul(r,e.div(o,s)),{x:t,y:r}}},t.createHasher=function(e,t,n){if("function"!==typeof t)throw new Error("mapToCurve() must be defined");return{hashToCurve(r,a){const i=d(r,2,{...n,DST:n.DST,...a}),o=e.fromAffine(t(i[0])),s=e.fromAffine(t(i[1])),f=o.add(s).clearCofactor();return f.assertValidity(),f},encodeToCurve(r,a){const i=d(r,1,{...n,DST:n.encodeDST,...a}),o=e.fromAffine(t(i[0])).clearCofactor();return o.assertValidity(),o}}}},57701:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapHashToField=t.getMinHashLength=t.getFieldBytesLength=t.hashToPrivateScalar=t.FpSqrtEven=t.FpSqrtOdd=t.Field=t.nLength=t.FpIsSquare=t.FpDiv=t.FpInvertBatch=t.FpPow=t.validateField=t.isNegativeLE=t.FpSqrt=t.tonelliShanks=t.invert=t.pow2=t.pow=t.mod=void 0;const r=n(43500),a=BigInt(0),i=BigInt(1),o=BigInt(2),s=BigInt(3),f=BigInt(4),c=BigInt(5),l=BigInt(8);BigInt(9),BigInt(16);function u(e,t){const n=e%t;return n>=a?n:t+n}function d(e,t,n){if(n<=a||t<a)throw new Error("Expected power/modulo > 0");if(n===i)return a;let r=i;for(;t>a;)t&i&&(r=r*e%n),e=e*e%n,t>>=i;return r}function p(e,t){if(e===a||t<=a)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=u(e,t),r=t,o=a,s=i,f=i,c=a;for(;n!==a;){const e=r/n,t=r%n,a=o-f*e,i=s-c*e;r=n,n=t,o=f,s=c,f=a,c=i}if(r!==i)throw new Error("invert: does not exist");return u(o,t)}function h(e){const t=(e-i)/o;let n,r,s;for(n=e-i,r=0;n%o===a;n/=o,r++);for(s=o;s<e&&d(s,t,e)!==e-i;s++);if(1===r){const t=(e+i)/f;return function(e,n){const r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}}const c=(n+i)/o;return function(e,a){if(e.pow(a,t)===e.neg(e.ONE))throw new Error("Cannot find square root");let o=r,f=e.pow(e.mul(e.ONE,s),n),l=e.pow(a,c),u=e.pow(a,n);for(;!e.eql(u,e.ONE);){if(e.eql(u,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(u);t<o&&!e.eql(r,e.ONE);t++)r=e.sqr(r);const n=e.pow(f,i<<BigInt(o-t-1));f=e.sqr(n),l=e.mul(l,n),u=e.mul(u,f),o=t}return l}}function b(e){if(e%f===s){const t=(e+i)/f;return function(e,n){const r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}}if(e%l===c){const t=(e-c)/l;return function(e,n){const r=e.mul(n,o),a=e.pow(r,t),i=e.mul(n,a),s=e.mul(e.mul(i,o),a),f=e.mul(i,e.sub(s,e.ONE));if(!e.eql(e.sqr(f),n))throw new Error("Cannot find square root");return f}}return h(e)}t.mod=u,t.pow=d,t.pow2=function(e,t,n){let r=e;for(;t-- >a;)r*=r,r%=n;return r},t.invert=p,t.tonelliShanks=h,t.FpSqrt=b;t.isNegativeLE=(e,t)=>(u(e,t)&i)===i;const y=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function m(e,t,n){if(n<a)throw new Error("Expected power > 0");if(n===a)return e.ONE;if(n===i)return t;let r=e.ONE,o=t;for(;n>a;)n&i&&(r=e.mul(r,o)),o=e.sqr(o),n>>=i;return r}function g(e,t){const n=new Array(t.length),r=t.reduce(((t,r,a)=>e.is0(r)?t:(n[a]=t,e.mul(t,r))),e.ONE),a=e.inv(r);return t.reduceRight(((t,r,a)=>e.is0(r)?t:(n[a]=e.mul(t,n[a]),e.mul(t,r))),a),n}function v(e,t){const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function w(e){if("bigint"!==typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function E(e){const t=w(e);return t+Math.ceil(t/2)}t.validateField=function(e){const t=y.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});return(0,r.validateObject)(e,t)},t.FpPow=m,t.FpInvertBatch=g,t.FpDiv=function(e,t,n){return e.mul(t,"bigint"===typeof n?p(n,e.ORDER):e.inv(n))},t.FpIsSquare=function(e){const t=(e.ORDER-i)/o;return n=>{const r=e.pow(n,t);return e.eql(r,e.ZERO)||e.eql(r,e.ONE)}},t.nLength=v,t.Field=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e<=a)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:s,nByteLength:f}=v(e,t);if(f>2048)throw new Error("Field lengths over 2048 bytes are not supported");const c=b(e),l=Object.freeze({ORDER:e,BITS:s,BYTES:f,MASK:(0,r.bitMask)(s),ZERO:a,ONE:i,create:t=>u(t,e),isValid:t=>{if("bigint"!==typeof t)throw new Error("Invalid field element: expected bigint, got "+typeof t);return a<=t&&t<e},is0:e=>e===a,isOdd:e=>(e&i)===i,neg:t=>u(-t,e),eql:(e,t)=>e===t,sqr:t=>u(t*t,e),add:(t,n)=>u(t+n,e),sub:(t,n)=>u(t-n,e),mul:(t,n)=>u(t*n,e),pow:(e,t)=>m(l,e,t),div:(t,n)=>u(t*p(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>p(t,e),sqrt:o.sqrt||(e=>c(l,e)),invertBatch:e=>g(l,e),cmov:(e,t,n)=>n?t:e,toBytes:e=>n?(0,r.numberToBytesLE)(e,f):(0,r.numberToBytesBE)(e,f),fromBytes:e=>{if(e.length!==f)throw new Error(`Fp.fromBytes: expected ${f}, got ${e.length}`);return n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e)}});return Object.freeze(l)},t.FpSqrtOdd=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?n:e.neg(n)},t.FpSqrtEven=function(e,t){if(!e.isOdd)throw new Error("Field doesn't have isOdd");const n=e.sqrt(t);return e.isOdd(n)?e.neg(n):n},t.hashToPrivateScalar=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=(e=(0,r.ensureBytes)("privateHash",e)).length,o=v(t).nByteLength+8;if(o<24||a<o||a>1024)throw new Error(`hashToPrivateScalar: expected ${o}-1024 bytes of input, got ${a}`);return u(n?(0,r.bytesToNumberLE)(e):(0,r.bytesToNumberBE)(e),t-i)+i},t.getFieldBytesLength=w,t.getMinHashLength=E,t.mapHashToField=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const a=e.length,o=w(t),s=E(t);if(a<16||a<s||a>1024)throw new Error(`expected ${s}-1024 bytes of input, got ${a}`);const f=u(n?(0,r.bytesToNumberBE)(e):(0,r.bytesToNumberLE)(e),t-i)+i;return n?(0,r.numberToBytesLE)(f,o):(0,r.numberToBytesBE)(f,o)}},43500:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateObject=t.createHmacDrbg=t.bitMask=t.bitSet=t.bitGet=t.bitLen=t.utf8ToBytes=t.equalBytes=t.concatBytes=t.ensureBytes=t.numberToVarBytesBE=t.numberToBytesLE=t.numberToBytesBE=t.bytesToNumberLE=t.bytesToNumberBE=t.hexToBytes=t.hexToNumber=t.numberToHexUnpadded=t.bytesToHex=void 0;const n=BigInt(0),r=BigInt(1),a=BigInt(2),i=e=>e instanceof Uint8Array,o=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e){if(!i(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n<e.length;n++)t+=o[e[n]];return t}function f(e){const t=e.toString(16);return 1&t.length?`0${t}`:t}function c(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}function l(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(t/2);for(let r=0;r<n.length;r++){const t=2*r,a=e.slice(t,t+2),i=Number.parseInt(a,16);if(Number.isNaN(i)||i<0)throw new Error("Invalid byte sequence");n[r]=i}return n}function u(e,t){return l(e.toString(16).padStart(2*t,"0"))}function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new Uint8Array(t.reduce(((e,t)=>e+t.length),0));let a=0;return t.forEach((e=>{if(!i(e))throw new Error("Uint8Array expected");r.set(e,a),a+=e.length})),r}t.bytesToHex=s,t.numberToHexUnpadded=f,t.hexToNumber=c,t.hexToBytes=l,t.bytesToNumberBE=function(e){return c(s(e))},t.bytesToNumberLE=function(e){if(!i(e))throw new Error("Uint8Array expected");return c(s(Uint8Array.from(e).reverse()))},t.numberToBytesBE=u,t.numberToBytesLE=function(e,t){return u(e,t).reverse()},t.numberToVarBytesBE=function(e){return l(f(e))},t.ensureBytes=function(e,t,n){let r;if("string"===typeof t)try{r=l(t)}catch(o){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${o}`)}else{if(!i(t))throw new Error(`${e} must be hex string or Uint8Array`);r=Uint8Array.from(t)}const a=r.length;if("number"===typeof n&&a!==n)throw new Error(`${e} expected ${n} bytes, got ${a}`);return r},t.concatBytes=d,t.equalBytes=function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},t.utf8ToBytes=function(e){if("string"!==typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))},t.bitLen=function(e){let t;for(t=0;e>n;e>>=r,t+=1);return t},t.bitGet=function(e,t){return e>>BigInt(t)&r};t.bitSet=(e,t,a)=>e|(a?r:n)<<BigInt(t);t.bitMask=e=>(a<<BigInt(e-1))-r;const p=e=>new Uint8Array(e),h=e=>Uint8Array.from(e);t.createHmacDrbg=function(e,t,n){if("number"!==typeof e||e<2)throw new Error("hashLen must be a number");if("number"!==typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!==typeof n)throw new Error("hmacFn must be a function");let r=p(e),a=p(e),i=0;const o=()=>{r.fill(1),a.fill(0),i=0},s=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n(a,r,...t)},f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p();a=s(h([0]),e),r=s(),0!==e.length&&(a=s(h([1]),e),r=s())},c=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e<t;){r=s();const t=r.slice();n.push(t),e+=r.length}return d(...n)};return(e,t)=>{let n;for(o(),f(e);!(n=t(c()));)f();return o(),n}};const b={bigint:e=>"bigint"===typeof e,function:e=>"function"===typeof e,boolean:e=>"boolean"===typeof e,string:e=>"string"===typeof e,stringOrUint8Array:e=>"string"===typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"===typeof e&&Number.isSafeInteger(e.outputLen)};t.validateObject=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(t,n,r)=>{const a=b[n];if("function"!==typeof a)throw new Error(`Invalid validator "${n}", expected function`);const i=e[t];if((!r||void 0!==i)&&!a(i,e))throw new Error(`Invalid param ${String(t)}=${i} (${typeof i}), expected ${n}`)};for(const[a,i]of Object.entries(t))r(a,i,!1);for(const[a,i]of Object.entries(n))r(a,i,!0);return e}},12846:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapToCurveSimpleSWU=t.SWUFpSqrtRatio=t.weierstrass=t.weierstrassPoints=t.DER=void 0;const r=n(57701),a=n(43500),i=n(43500),o=n(70369);const{bytesToNumberBE:s,hexToBytes:f}=a;t.DER={Err:class extends Error{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}},_parseInt(e){const{Err:n}=t.DER;if(e.length<2||2!==e[0])throw new n("Invalid signature integer tag");const r=e[1],a=e.subarray(2,r+2);if(!r||a.length!==r)throw new n("Invalid signature integer: wrong length");if(128&a[0])throw new n("Invalid signature integer: negative");if(0===a[0]&&!(128&a[1]))throw new n("Invalid signature integer: unnecessary leading zero");return{d:s(a),l:e.subarray(r+2)}},toSig(e){const{Err:n}=t.DER,r="string"===typeof e?f(e):e;if(!(r instanceof Uint8Array))throw new Error("ui8a expected");let a=r.length;if(a<2||48!=r[0])throw new n("Invalid signature tag");if(r[1]!==a-2)throw new n("Invalid signature: incorrect length");const{d:i,l:o}=t.DER._parseInt(r.subarray(2)),{d:s,l:c}=t.DER._parseInt(o);if(c.length)throw new n("Invalid signature: left bytes after parsing");return{r:i,s:s}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,n=e=>{const t=e.toString(16);return 1&t.length?`0${t}`:t},r=t(n(e.s)),a=t(n(e.r)),i=r.length/2,o=a.length/2,s=n(i),f=n(o);return`30${n(o+i+4)}02${f}${a}02${s}${r}`}};const c=BigInt(0),l=BigInt(1),u=BigInt(2),d=BigInt(3),p=BigInt(4);function h(e){const t=function(e){const t=(0,o.validateBasic)(e);a.validateObject(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:i}=t;if(n){if(!r.eql(i,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!==typeof n||"bigint"!==typeof n.beta||"function"!==typeof n.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:n}=t,s=t.toBytes||((e,t,r)=>{const i=t.toAffine();return a.concatBytes(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),f=t.fromBytes||(e=>{const t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function u(e){const{a:r,b:a}=t,i=n.sqr(e),o=n.mul(i,e);return n.add(n.add(o,n.mul(e,r)),a)}if(!n.eql(n.sqr(t.Gy),u(t.Gx)))throw new Error("bad generator point: equation left != right");function p(e){return"bigint"===typeof e&&c<e&&e<t.n}function h(e){if(!p(e))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function b(e){const{allowedPrivateKeyLengths:n,nByteLength:o,wrapPrivateKey:s,n:f}=t;if(n&&"bigint"!==typeof e){if(e instanceof Uint8Array&&(e=a.bytesToHex(e)),"string"!==typeof e||!n.includes(e.length))throw new Error("Invalid key");e=e.padStart(2*o,"0")}let c;try{c="bigint"===typeof e?e:a.bytesToNumberBE((0,i.ensureBytes)("private key",e,o))}catch(l){throw new Error(`private key must be ${o} bytes, hex or bigint, not ${typeof e}`)}return s&&(c=r.mod(c,f)),h(c),c}const y=new Map;function m(e){if(!(e instanceof g))throw new Error("ProjectivePoint expected")}class g{constructor(e,t,r){if(this.px=e,this.py=t,this.pz=r,null==e||!n.isValid(e))throw new Error("x required");if(null==t||!n.isValid(t))throw new Error("y required");if(null==r||!n.isValid(r))throw new Error("z required")}static fromAffine(e){const{x:t,y:r}=e||{};if(!e||!n.isValid(t)||!n.isValid(r))throw new Error("invalid affine point");if(e instanceof g)throw new Error("projective point not allowed");const a=e=>n.eql(e,n.ZERO);return a(t)&&a(r)?g.ZERO:new g(t,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(g.fromAffine)}static fromHex(e){const t=g.fromAffine(f((0,i.ensureBytes)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return g.BASE.multiply(b(e))}_setWindowSize(e){this._WINDOW_SIZE=e,y.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:e,y:r}=this.toAffine();if(!n.isValid(e)||!n.isValid(r))throw new Error("bad point: x or y not FE");const a=n.sqr(r),i=u(e);if(!n.eql(a,i))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){m(e);const{px:t,py:r,pz:a}=this,{px:i,py:o,pz:s}=e,f=n.eql(n.mul(t,s),n.mul(i,a)),c=n.eql(n.mul(r,s),n.mul(o,a));return f&&c}negate(){return new g(this.px,n.neg(this.py),this.pz)}double(){const{a:e,b:r}=t,a=n.mul(r,d),{px:i,py:o,pz:s}=this;let f=n.ZERO,c=n.ZERO,l=n.ZERO,u=n.mul(i,i),p=n.mul(o,o),h=n.mul(s,s),b=n.mul(i,o);return b=n.add(b,b),l=n.mul(i,s),l=n.add(l,l),f=n.mul(e,l),c=n.mul(a,h),c=n.add(f,c),f=n.sub(p,c),c=n.add(p,c),c=n.mul(f,c),f=n.mul(b,f),l=n.mul(a,l),h=n.mul(e,h),b=n.sub(u,h),b=n.mul(e,b),b=n.add(b,l),l=n.add(u,u),u=n.add(l,u),u=n.add(u,h),u=n.mul(u,b),c=n.add(c,u),h=n.mul(o,s),h=n.add(h,h),u=n.mul(h,b),f=n.sub(f,u),l=n.mul(h,p),l=n.add(l,l),l=n.add(l,l),new g(f,c,l)}add(e){m(e);const{px:r,py:a,pz:i}=this,{px:o,py:s,pz:f}=e;let c=n.ZERO,l=n.ZERO,u=n.ZERO;const p=t.a,h=n.mul(t.b,d);let b=n.mul(r,o),y=n.mul(a,s),v=n.mul(i,f),w=n.add(r,a),E=n.add(o,s);w=n.mul(w,E),E=n.add(b,y),w=n.sub(w,E),E=n.add(r,i);let A=n.add(o,f);return E=n.mul(E,A),A=n.add(b,v),E=n.sub(E,A),A=n.add(a,i),c=n.add(s,f),A=n.mul(A,c),c=n.add(y,v),A=n.sub(A,c),u=n.mul(p,E),c=n.mul(h,v),u=n.add(c,u),c=n.sub(y,u),u=n.add(y,u),l=n.mul(c,u),y=n.add(b,b),y=n.add(y,b),v=n.mul(p,v),E=n.mul(h,E),y=n.add(y,v),v=n.sub(b,v),v=n.mul(p,v),E=n.add(E,v),b=n.mul(y,E),l=n.add(l,b),b=n.mul(A,E),c=n.mul(w,c),c=n.sub(c,b),b=n.mul(w,y),u=n.mul(A,u),u=n.add(u,b),new g(c,l,u)}subtract(e){return this.add(e.negate())}is0(){return this.equals(g.ZERO)}wNAF(e){return w.wNAFCached(this,y,e,(e=>{const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(g.fromAffine)}))}multiplyUnsafe(e){const r=g.ZERO;if(e===c)return r;if(h(e),e===l)return this;const{endo:a}=t;if(!a)return w.unsafeLadder(this,e);let{k1neg:i,k1:o,k2neg:s,k2:f}=a.splitScalar(e),u=r,d=r,p=this;for(;o>c||f>c;)o&l&&(u=u.add(p)),f&l&&(d=d.add(p)),p=p.double(),o>>=l,f>>=l;return i&&(u=u.negate()),s&&(d=d.negate()),d=new g(n.mul(d.px,a.beta),d.py,d.pz),u.add(d)}multiply(e){h(e);let r,a,i=e;const{endo:o}=t;if(o){const{k1neg:e,k1:t,k2neg:s,k2:f}=o.splitScalar(i);let{p:c,f:l}=this.wNAF(t),{p:u,f:d}=this.wNAF(f);c=w.constTimeNegate(e,c),u=w.constTimeNegate(s,u),u=new g(n.mul(u.px,o.beta),u.py,u.pz),r=c.add(u),a=l.add(d)}else{const{p:e,f:t}=this.wNAF(i);r=e,a=t}return g.normalizeZ([r,a])[0]}multiplyAndAddUnsafe(e,t,n){const r=g.BASE,a=(e,t)=>t!==c&&t!==l&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),i=a(this,t).add(a(e,n));return i.is0()?void 0:i}toAffine(e){const{px:t,py:r,pz:a}=this,i=this.is0();null==e&&(e=i?n.ONE:n.inv(a));const o=n.mul(t,e),s=n.mul(r,e),f=n.mul(a,e);if(i)return{x:n.ZERO,y:n.ZERO};if(!n.eql(f,n.ONE))throw new Error("invZ was invalid");return{x:o,y:s}}isTorsionFree(){const{h:e,isTorsionFree:n}=t;if(e===l)return!0;if(n)return n(g,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:n}=t;return e===l?this:n?n(g,this):this.multiplyUnsafe(t.h)}toRawBytes(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertValidity(),s(g,this,e)}toHex(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return a.bytesToHex(this.toRawBytes(e))}}g.BASE=new g(t.Gx,t.Gy,n.ONE),g.ZERO=new g(n.ZERO,n.ONE,n.ZERO);const v=t.nBitLength,w=(0,o.wNAF)(g,t.endo?Math.ceil(v/2):v);return{CURVE:t,ProjectivePoint:g,normPrivateKeyToScalar:b,weierstrassEquation:u,isWithinCurveOrder:p}}function b(e,t){const n=e.ORDER;let r=c;for(let d=n-l;d%u===c;d/=u)r+=l;const a=r,i=u<<a-l-l,o=i*u,s=(n-l)/o,f=(s-l)/u,h=o-l,b=i,y=e.pow(t,s),m=e.pow(t,(s+l)/u);let g=(t,n)=>{let r=y,i=e.pow(n,h),o=e.sqr(i);o=e.mul(o,n);let s=e.mul(t,o);s=e.pow(s,f),s=e.mul(s,i),i=e.mul(s,n),o=e.mul(s,t);let c=e.mul(o,i);s=e.pow(c,b);let d=e.eql(s,e.ONE);i=e.mul(o,m),s=e.mul(c,r),o=e.cmov(i,o,d),c=e.cmov(s,c,d);for(let f=a;f>l;f--){let t=f-u;t=u<<t-l;let n=e.pow(c,t);const a=e.eql(n,e.ONE);i=e.mul(o,r),r=e.mul(r,r),n=e.mul(c,r),o=e.cmov(i,o,a),c=e.cmov(n,c,a)}return{isValid:d,value:o}};if(e.ORDER%p===d){const n=(e.ORDER-d)/p,r=e.sqrt(e.neg(t));g=(t,a)=>{let i=e.sqr(a);const o=e.mul(t,a);i=e.mul(i,o);let s=e.pow(i,n);s=e.mul(s,o);const f=e.mul(s,r),c=e.mul(e.sqr(s),a),l=e.eql(c,t);return{isValid:l,value:e.cmov(f,s,l)}}}return g}t.weierstrassPoints=h,t.weierstrass=function(e){const n=function(e){const t=(0,o.validateBasic)(e);return a.validateObject(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:s,n:f}=n,u=s.BYTES+1,d=2*s.BYTES+1;function p(e){return r.mod(e,f)}function b(e){return r.invert(e,f)}const{ProjectivePoint:y,normPrivateKeyToScalar:m,weierstrassEquation:g,isWithinCurveOrder:v}=h({...n,toBytes(e,t,n){const r=t.toAffine(),i=s.toBytes(r.x),o=a.concatBytes;return n?o(Uint8Array.from([t.hasEvenY()?2:3]),i):o(Uint8Array.from([4]),i,s.toBytes(r.y))},fromBytes(e){const t=e.length,n=e[0],r=e.subarray(1);if(t!==u||2!==n&&3!==n){if(t===d&&4===n){return{x:s.fromBytes(r.subarray(0,s.BYTES)),y:s.fromBytes(r.subarray(s.BYTES,2*s.BYTES))}}throw new Error(`Point of length ${t} was invalid. Expected ${u} compressed bytes or ${d} uncompressed bytes`)}{const e=a.bytesToNumberBE(r);if(!(c<(i=e)&&i<s.ORDER))throw new Error("Point is not on curve");const t=g(e);let o=s.sqrt(t);return 1===(1&n)!==((o&l)===l)&&(o=s.neg(o)),{x:e,y:o}}var i}}),w=e=>a.bytesToHex(a.numberToBytesBE(e,n.nByteLength));function E(e){return e>f>>l}const A=(e,t,n)=>a.bytesToNumberBE(e.slice(t,n));class P{constructor(e,t,n){this.r=e,this.s=t,this.recovery=n,this.assertValidity()}static fromCompact(e){const t=n.nByteLength;return e=(0,i.ensureBytes)("compactSignature",e,2*t),new P(A(e,0,t),A(e,t,2*t))}static fromDER(e){const{r:n,s:r}=t.DER.toSig((0,i.ensureBytes)("DER",e));return new P(n,r)}assertValidity(){if(!v(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!v(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new P(this.r,this.s,e)}recoverPublicKey(e){const{r:t,s:r,recovery:a}=this,o=C((0,i.ensureBytes)("msgHash",e));if(null==a||![0,1,2,3].includes(a))throw new Error("recovery id invalid");const f=2===a||3===a?t+n.n:t;if(f>=s.ORDER)throw new Error("recovery id 2 or 3 invalid");const c=0===(1&a)?"02":"03",l=y.fromHex(c+w(f)),u=b(f),d=p(-o*u),h=p(r*u),m=y.BASE.multiplyAndAddUnsafe(l,d,h);if(!m)throw new Error("point at infinify");return m.assertValidity(),m}hasHighS(){return E(this.s)}normalizeS(){return this.hasHighS()?new P(this.r,p(-this.s),this.recovery):this}toDERRawBytes(){return a.hexToBytes(this.toDERHex())}toDERHex(){return t.DER.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return a.hexToBytes(this.toCompactHex())}toCompactHex(){return w(this.r)+w(this.s)}}const _={isValidPrivateKey(e){try{return m(e),!0}catch(t){return!1}},normPrivateKeyToScalar:m,randomPrivateKey:()=>{const e=r.getMinHashLength(n.n);return r.mapHashToField(n.randomBytes(e),n.n)},precompute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.BASE;return t._setWindowSize(e),t.multiply(BigInt(3)),t}};function T(e){const t=e instanceof Uint8Array,n="string"===typeof e,r=(t||n)&&e.length;return t?r===u||r===d:n?r===2*u||r===2*d:e instanceof y}const k=n.bits2int||function(e){const t=a.bytesToNumberBE(e),r=8*e.length-n.nBitLength;return r>0?t>>BigInt(r):t},C=n.bits2int_modN||function(e){return p(k(e))},x=a.bitMask(n.nBitLength);function O(e){if("bigint"!==typeof e)throw new Error("bigint expected");if(!(c<=e&&e<x))throw new Error(`bigint expected < 2^${n.nBitLength}`);return a.numberToBytesBE(e,n.nByteLength)}function S(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R;if(["recovered","canonical"].some((e=>e in r)))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:f}=n;let{lowS:u,prehash:d,extraEntropy:h}=r;null==u&&(u=!0),e=(0,i.ensureBytes)("msgHash",e),d&&(e=(0,i.ensureBytes)("prehashed msgHash",o(e)));const g=C(e),w=m(t),A=[O(w),O(g)];if(null!=h){const e=!0===h?f(s.BYTES):h;A.push((0,i.ensureBytes)("extraEntropy",e))}const _=a.concatBytes(...A),T=g;return{seed:_,k2sig:function(e){const t=k(e);if(!v(t))return;const n=b(t),r=y.BASE.multiply(t).toAffine(),a=p(r.x);if(a===c)return;const i=p(n*p(T+a*w));if(i===c)return;let o=(r.x===a?0:2)|Number(r.y&l),s=i;return u&&E(i)&&(s=function(e){return E(e)?p(-e):e}(i),o^=1),new P(a,s,o)}}}const R={lowS:n.lowS,prehash:!1},I={lowS:n.lowS,prehash:!1};return y.BASE._setWindowSize(8),{CURVE:n,getPublicKey:function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return y.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(T(e))throw new Error("first arg must be private key");if(!T(t))throw new Error("second arg must be public key");return y.fromHex(t).multiply(m(e)).toRawBytes(n)},sign:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:R;const{seed:i,k2sig:o}=S(e,t,r),s=n;return a.createHmacDrbg(s.hash.outputLen,s.nByteLength,s.hmac)(i,o)},verify:function(e,r,a){var o;let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:I;const f=e;if(r=(0,i.ensureBytes)("msgHash",r),a=(0,i.ensureBytes)("publicKey",a),"strict"in s)throw new Error("options.strict was renamed to lowS");const{lowS:c,prehash:l}=s;let u,d;try{if("string"===typeof f||f instanceof Uint8Array)try{u=P.fromDER(f)}catch(_){if(!(_ instanceof t.DER.Err))throw _;u=P.fromCompact(f)}else{if("object"!==typeof f||"bigint"!==typeof f.r||"bigint"!==typeof f.s)throw new Error("PARSE");{const{r:e,s:t}=f;u=new P(e,t)}}d=y.fromHex(a)}catch(T){if("PARSE"===T.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(c&&u.hasHighS())return!1;l&&(r=n.hash(r));const{r:h,s:m}=u,g=C(r),v=b(m),w=p(g*v),E=p(h*v),A=null===(o=y.BASE.multiplyAndAddUnsafe(d,w,E))||void 0===o?void 0:o.toAffine();return!!A&&p(A.x)===h},ProjectivePoint:y,Signature:P,utils:_}},t.SWUFpSqrtRatio=b,t.mapToCurveSimpleSWU=function(e,t){if(r.validateField(e),!e.isValid(t.A)||!e.isValid(t.B)||!e.isValid(t.Z))throw new Error("mapToCurveSimpleSWU: invalid opts");const n=b(e,t.Z);if(!e.isOdd)throw new Error("Fp.isOdd is not implemented!");return r=>{let a,i,o,s,f,c,l,u;a=e.sqr(r),a=e.mul(a,t.Z),i=e.sqr(a),i=e.add(i,a),o=e.add(i,e.ONE),o=e.mul(o,t.B),s=e.cmov(t.Z,e.neg(i),!e.eql(i,e.ZERO)),s=e.mul(s,t.A),i=e.sqr(o),c=e.sqr(s),f=e.mul(c,t.A),i=e.add(i,f),i=e.mul(i,o),c=e.mul(c,s),f=e.mul(c,t.B),i=e.add(i,f),l=e.mul(a,o);const{isValid:d,value:p}=n(i,c);u=e.mul(a,r),u=e.mul(u,p),l=e.cmov(l,o,d),u=e.cmov(u,p,d);const h=e.isOdd(r)===e.isOdd(u);return u=e.cmov(e.neg(u),u,h),l=e.div(l,s),{x:l,y:u}}}},73306:(e,t,n)=>{"use strict";n.d(t,{FF:()=>A,S5:()=>p,Wd:()=>y,bytesToNumberBE:()=>l,ci:()=>s,dQ:()=>m,eV:()=>b,hexToBytes:()=>c,n$:()=>w,ql:()=>h,tL:()=>d,ty:()=>u});BigInt(0);const r=BigInt(1),a=BigInt(2),i=e=>e instanceof Uint8Array,o=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e){if(!i(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n<e.length;n++)t+=o[e[n]];return t}function f(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);return BigInt(""===e?"0":`0x${e}`)}function c(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(t/2);for(let r=0;r<n.length;r++){const t=2*r,a=e.slice(t,t+2),i=Number.parseInt(a,16);if(Number.isNaN(i)||i<0)throw new Error("Invalid byte sequence");n[r]=i}return n}function l(e){return f(s(e))}function u(e){if(!i(e))throw new Error("Uint8Array expected");return f(s(Uint8Array.from(e).reverse()))}function d(e,t){return c(e.toString(16).padStart(2*t,"0"))}function p(e,t){return d(e,t).reverse()}function h(e,t,n){let r;if("string"===typeof t)try{r=c(t)}catch(o){throw new Error(`${e} must be valid hex string, got "${t}". Cause: ${o}`)}else{if(!i(t))throw new Error(`${e} must be hex string or Uint8Array`);r=Uint8Array.from(t)}const a=r.length;if("number"===typeof n&&a!==n)throw new Error(`${e} expected ${n} bytes, got ${a}`);return r}function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new Uint8Array(t.reduce(((e,t)=>e+t.length),0));let a=0;return t.forEach((e=>{if(!i(e))throw new Error("Uint8Array expected");r.set(e,a),a+=e.length})),r}function y(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}const m=e=>(a<<BigInt(e-1))-r,g=e=>new Uint8Array(e),v=e=>Uint8Array.from(e);function w(e,t,n){if("number"!==typeof e||e<2)throw new Error("hashLen must be a number");if("number"!==typeof t||t<2)throw new Error("qByteLen must be a number");if("function"!==typeof n)throw new Error("hmacFn must be a function");let r=g(e),a=g(e),i=0;const o=()=>{r.fill(1),a.fill(0),i=0},s=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n(a,r,...t)},f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g();a=s(v([0]),e),r=s(),0!==e.length&&(a=s(v([1]),e),r=s())},c=()=>{if(i++>=1e3)throw new Error("drbg: tried 1000 values");let e=0;const n=[];for(;e<t;){r=s();const t=r.slice();n.push(t),e+=r.length}return b(...n)};return(e,t)=>{let n;for(o(),f(e);!(n=t(c()));)f();return o(),n}}const E={bigint:e=>"bigint"===typeof e,function:e=>"function"===typeof e,boolean:e=>"boolean"===typeof e,string:e=>"string"===typeof e,stringOrUint8Array:e=>"string"===typeof e||e instanceof Uint8Array,isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>"function"===typeof e&&Number.isSafeInteger(e.outputLen)};function A(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(t,n,r)=>{const a=E[n];if("function"!==typeof a)throw new Error(`Invalid validator "${n}", expected function`);const i=e[t];if((!r||void 0!==i)&&!a(i,e))throw new Error(`Invalid param ${String(t)}=${i} (${typeof i}), expected ${n}`)};for(const[a,i]of Object.entries(t))r(a,i,!1);for(const[a,i]of Object.entries(n))r(a,i,!0);return e}},39999:(e,t,n)=>{"use strict";n.d(t,{kA:()=>H});var r=n(58533),a=n(73306);const i=BigInt(0),o=BigInt(1),s=BigInt(2),f=BigInt(3),c=BigInt(4),l=BigInt(5),u=BigInt(8);BigInt(9),BigInt(16);function d(e,t){const n=e%t;return n>=i?n:t+n}function p(e,t,n){if(n<=i||t<i)throw new Error("Expected power/modulo > 0");if(n===o)return i;let r=o;for(;t>i;)t&o&&(r=r*e%n),e=e*e%n,t>>=o;return r}function h(e,t,n){let r=e;for(;t-- >i;)r*=r,r%=n;return r}function b(e,t){if(e===i||t<=i)throw new Error(`invert: expected positive integers, got n=${e} mod=${t}`);let n=d(e,t),r=t,a=i,s=o,f=o,c=i;for(;n!==i;){const e=r/n,t=r%n,i=a-f*e,o=s-c*e;r=n,n=t,a=f,s=c,f=i,c=o}if(r!==o)throw new Error("invert: does not exist");return d(a,t)}function y(e){if(e%c===f){const t=(e+o)/c;return function(e,n){const r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}}if(e%u===l){const t=(e-l)/u;return function(e,n){const r=e.mul(n,s),a=e.pow(r,t),i=e.mul(n,a),o=e.mul(e.mul(i,s),a),f=e.mul(i,e.sub(o,e.ONE));if(!e.eql(e.sqr(f),n))throw new Error("Cannot find square root");return f}}return function(e){const t=(e-o)/s;let n,r,a;for(n=e-o,r=0;n%s===i;n/=s,r++);for(a=s;a<e&&p(a,t,e)!==e-o;a++);if(1===r){const t=(e+o)/c;return function(e,n){const r=e.pow(n,t);if(!e.eql(e.sqr(r),n))throw new Error("Cannot find square root");return r}}const f=(n+o)/s;return function(e,i){if(e.pow(i,t)===e.neg(e.ONE))throw new Error("Cannot find square root");let s=r,c=e.pow(e.mul(e.ONE,a),n),l=e.pow(i,f),u=e.pow(i,n);for(;!e.eql(u,e.ONE);){if(e.eql(u,e.ZERO))return e.ZERO;let t=1;for(let r=e.sqr(u);t<s&&!e.eql(r,e.ONE);t++)r=e.sqr(r);const n=e.pow(c,o<<BigInt(s-t-1));c=e.sqr(n),l=e.mul(l,n),u=e.mul(u,c),s=t}return l}}(e)}const m=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function g(e,t){const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function v(e){if("bigint"!==typeof e)throw new Error("field order must be bigint");const t=e.toString(2).length;return Math.ceil(t/8)}function w(e){const t=v(e);return t+Math.ceil(t/2)}var E=n(57232),A=n(76472);class P extends A.kb{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,E.vp)(e);const n=(0,A.O0)(t);if(this.iHash=e.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?e.create().update(n).digest():n);for(let i=0;i<a.length;i++)a[i]^=54;this.iHash.update(a),this.oHash=e.create();for(let i=0;i<a.length;i++)a[i]^=106;this.oHash.update(a),a.fill(0)}update(e){return(0,E.Gg)(this),this.iHash.update(e),this}digestInto(e){(0,E.Gg)(this),(0,E.aI)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:r,destroyed:a,blockLen:i,outputLen:o}=this;return e.finished=r,e.destroyed=a,e.blockLen=i,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const _=(e,t,n)=>new P(e,t).update(n).digest();_.create=(e,t)=>new P(e,t);const T=BigInt(0),k=BigInt(1);function C(e){return function(e){const t=m.reduce(((e,t)=>(e[t]="function",e)),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"});(0,a.FF)(e,t)}(e.Fp),(0,a.FF)(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...g(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}const{bytesToNumberBE:x,hexToBytes:O}=a,S={Err:class extends Error{constructor(){super(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")}},_parseInt(e){const{Err:t}=S;if(e.length<2||2!==e[0])throw new t("Invalid signature integer tag");const n=e[1],r=e.subarray(2,n+2);if(!n||r.length!==n)throw new t("Invalid signature integer: wrong length");if(128&r[0])throw new t("Invalid signature integer: negative");if(0===r[0]&&!(128&r[1]))throw new t("Invalid signature integer: unnecessary leading zero");return{d:x(r),l:e.subarray(n+2)}},toSig(e){const{Err:t}=S,n="string"===typeof e?O(e):e;if(!(n instanceof Uint8Array))throw new Error("ui8a expected");let r=n.length;if(r<2||48!=n[0])throw new t("Invalid signature tag");if(n[1]!==r-2)throw new t("Invalid signature: incorrect length");const{d:a,l:i}=S._parseInt(n.subarray(2)),{d:o,l:s}=S._parseInt(i);if(s.length)throw new t("Invalid signature: left bytes after parsing");return{r:a,s:o}},hexFromSig(e){const t=e=>8&Number.parseInt(e[0],16)?"00"+e:e,n=e=>{const t=e.toString(16);return 1&t.length?`0${t}`:t},r=t(n(e.s)),a=t(n(e.r)),i=r.length/2,o=a.length/2,s=n(i),f=n(o);return`30${n(o+i+4)}02${f}${a}02${s}${r}`}},R=BigInt(0),I=BigInt(1),N=(BigInt(2),BigInt(3));BigInt(4);function B(e){const t=function(e){const t=C(e);a.FF(t,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});const{endo:n,Fp:r,a:i}=t;if(n){if(!r.eql(i,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!==typeof n||"bigint"!==typeof n.beta||"function"!==typeof n.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze({...t})}(e),{Fp:n}=t,r=t.toBytes||((e,t,r)=>{const i=t.toAffine();return a.eV(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))}),i=t.fromBytes||(e=>{const t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function o(e){const{a:r,b:a}=t,i=n.sqr(e),o=n.mul(i,e);return n.add(n.add(o,n.mul(e,r)),a)}if(!n.eql(n.sqr(t.Gy),o(t.Gx)))throw new Error("bad generator point: equation left != right");function s(e){return"bigint"===typeof e&&R<e&&e<t.n}function f(e){if(!s(e))throw new Error("Expected valid bigint: 0 < bigint < curve.n")}function c(e){const{allowedPrivateKeyLengths:n,nByteLength:r,wrapPrivateKey:i,n:o}=t;if(n&&"bigint"!==typeof e){if(e instanceof Uint8Array&&(e=a.ci(e)),"string"!==typeof e||!n.includes(e.length))throw new Error("Invalid key");e=e.padStart(2*r,"0")}let s;try{s="bigint"===typeof e?e:a.bytesToNumberBE((0,a.ql)("private key",e,r))}catch(c){throw new Error(`private key must be ${r} bytes, hex or bigint, not ${typeof e}`)}return i&&(s=d(s,o)),f(s),s}const l=new Map;function u(e){if(!(e instanceof p))throw new Error("ProjectivePoint expected")}class p{constructor(e,t,r){if(this.px=e,this.py=t,this.pz=r,null==e||!n.isValid(e))throw new Error("x required");if(null==t||!n.isValid(t))throw new Error("y required");if(null==r||!n.isValid(r))throw new Error("z required")}static fromAffine(e){const{x:t,y:r}=e||{};if(!e||!n.isValid(t)||!n.isValid(r))throw new Error("invalid affine point");if(e instanceof p)throw new Error("projective point not allowed");const a=e=>n.eql(e,n.ZERO);return a(t)&&a(r)?p.ZERO:new p(t,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(p.fromAffine)}static fromHex(e){const t=p.fromAffine(i((0,a.ql)("pointHex",e)));return t.assertValidity(),t}static fromPrivateKey(e){return p.BASE.multiply(c(e))}_setWindowSize(e){this._WINDOW_SIZE=e,l.delete(this)}assertValidity(){if(this.is0()){if(t.allowInfinityPoint&&!n.is0(this.py))return;throw new Error("bad point: ZERO")}const{x:e,y:r}=this.toAffine();if(!n.isValid(e)||!n.isValid(r))throw new Error("bad point: x or y not FE");const a=n.sqr(r),i=o(e);if(!n.eql(a,i))throw new Error("bad point: equation left != right");if(!this.isTorsionFree())throw new Error("bad point: not in prime-order subgroup")}hasEvenY(){const{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw new Error("Field doesn't support isOdd")}equals(e){u(e);const{px:t,py:r,pz:a}=this,{px:i,py:o,pz:s}=e,f=n.eql(n.mul(t,s),n.mul(i,a)),c=n.eql(n.mul(r,s),n.mul(o,a));return f&&c}negate(){return new p(this.px,n.neg(this.py),this.pz)}double(){const{a:e,b:r}=t,a=n.mul(r,N),{px:i,py:o,pz:s}=this;let f=n.ZERO,c=n.ZERO,l=n.ZERO,u=n.mul(i,i),d=n.mul(o,o),h=n.mul(s,s),b=n.mul(i,o);return b=n.add(b,b),l=n.mul(i,s),l=n.add(l,l),f=n.mul(e,l),c=n.mul(a,h),c=n.add(f,c),f=n.sub(d,c),c=n.add(d,c),c=n.mul(f,c),f=n.mul(b,f),l=n.mul(a,l),h=n.mul(e,h),b=n.sub(u,h),b=n.mul(e,b),b=n.add(b,l),l=n.add(u,u),u=n.add(l,u),u=n.add(u,h),u=n.mul(u,b),c=n.add(c,u),h=n.mul(o,s),h=n.add(h,h),u=n.mul(h,b),f=n.sub(f,u),l=n.mul(h,d),l=n.add(l,l),l=n.add(l,l),new p(f,c,l)}add(e){u(e);const{px:r,py:a,pz:i}=this,{px:o,py:s,pz:f}=e;let c=n.ZERO,l=n.ZERO,d=n.ZERO;const h=t.a,b=n.mul(t.b,N);let y=n.mul(r,o),m=n.mul(a,s),g=n.mul(i,f),v=n.add(r,a),w=n.add(o,s);v=n.mul(v,w),w=n.add(y,m),v=n.sub(v,w),w=n.add(r,i);let E=n.add(o,f);return w=n.mul(w,E),E=n.add(y,g),w=n.sub(w,E),E=n.add(a,i),c=n.add(s,f),E=n.mul(E,c),c=n.add(m,g),E=n.sub(E,c),d=n.mul(h,w),c=n.mul(b,g),d=n.add(c,d),c=n.sub(m,d),d=n.add(m,d),l=n.mul(c,d),m=n.add(y,y),m=n.add(m,y),g=n.mul(h,g),w=n.mul(b,w),m=n.add(m,g),g=n.sub(y,g),g=n.mul(h,g),w=n.add(w,g),y=n.mul(m,w),l=n.add(l,y),y=n.mul(E,w),c=n.mul(v,c),c=n.sub(c,y),y=n.mul(v,m),d=n.mul(E,d),d=n.add(d,y),new p(c,l,d)}subtract(e){return this.add(e.negate())}is0(){return this.equals(p.ZERO)}wNAF(e){return b.wNAFCached(this,l,e,(e=>{const t=n.invertBatch(e.map((e=>e.pz)));return e.map(((e,n)=>e.toAffine(t[n]))).map(p.fromAffine)}))}multiplyUnsafe(e){const r=p.ZERO;if(e===R)return r;if(f(e),e===I)return this;const{endo:a}=t;if(!a)return b.unsafeLadder(this,e);let{k1neg:i,k1:o,k2neg:s,k2:c}=a.splitScalar(e),l=r,u=r,d=this;for(;o>R||c>R;)o&I&&(l=l.add(d)),c&I&&(u=u.add(d)),d=d.double(),o>>=I,c>>=I;return i&&(l=l.negate()),s&&(u=u.negate()),u=new p(n.mul(u.px,a.beta),u.py,u.pz),l.add(u)}multiply(e){f(e);let r,a,i=e;const{endo:o}=t;if(o){const{k1neg:e,k1:t,k2neg:s,k2:f}=o.splitScalar(i);let{p:c,f:l}=this.wNAF(t),{p:u,f:d}=this.wNAF(f);c=b.constTimeNegate(e,c),u=b.constTimeNegate(s,u),u=new p(n.mul(u.px,o.beta),u.py,u.pz),r=c.add(u),a=l.add(d)}else{const{p:e,f:t}=this.wNAF(i);r=e,a=t}return p.normalizeZ([r,a])[0]}multiplyAndAddUnsafe(e,t,n){const r=p.BASE,a=(e,t)=>t!==R&&t!==I&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),i=a(this,t).add(a(e,n));return i.is0()?void 0:i}toAffine(e){const{px:t,py:r,pz:a}=this,i=this.is0();null==e&&(e=i?n.ONE:n.inv(a));const o=n.mul(t,e),s=n.mul(r,e),f=n.mul(a,e);if(i)return{x:n.ZERO,y:n.ZERO};if(!n.eql(f,n.ONE))throw new Error("invZ was invalid");return{x:o,y:s}}isTorsionFree(){const{h:e,isTorsionFree:n}=t;if(e===I)return!0;if(n)return n(p,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}clearCofactor(){const{h:e,clearCofactor:n}=t;return e===I?this:n?n(p,this):this.multiplyUnsafe(t.h)}toRawBytes(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertValidity(),r(p,this,e)}toHex(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return a.ci(this.toRawBytes(e))}}p.BASE=new p(t.Gx,t.Gy,n.ONE),p.ZERO=new p(n.ZERO,n.ONE,n.ZERO);const h=t.nBitLength,b=function(e,t){const n=(e,t)=>{const n=t.negate();return e?n:t},r=e=>({windows:Math.ceil(t/e)+1,windowSize:2**(e-1)});return{constTimeNegate:n,unsafeLadder(t,n){let r=e.ZERO,a=t;for(;n>T;)n&k&&(r=r.add(a)),a=a.double(),n>>=k;return r},precomputeWindow(e,t){const{windows:n,windowSize:a}=r(t),i=[];let o=e,s=o;for(let r=0;r<n;r++){s=o,i.push(s);for(let e=1;e<a;e++)s=s.add(o),i.push(s);o=s.double()}return i},wNAF(t,a,i){const{windows:o,windowSize:s}=r(t);let f=e.ZERO,c=e.BASE;const l=BigInt(2**t-1),u=2**t,d=BigInt(t);for(let e=0;e<o;e++){const t=e*s;let r=Number(i&l);i>>=d,r>s&&(r-=u,i+=k);const o=t,p=t+Math.abs(r)-1,h=e%2!==0,b=r<0;0===r?c=c.add(n(h,a[o])):f=f.add(n(b,a[p]))}return{p:f,f:c}},wNAFCached(e,t,n,r){const a=e._WINDOW_SIZE||1;let i=t.get(e);return i||(i=this.precomputeWindow(e,a),1!==a&&t.set(e,r(i))),this.wNAF(a,i,n)}}}(p,t.endo?Math.ceil(h/2):h);return{CURVE:t,ProjectivePoint:p,normPrivateKeyToScalar:c,weierstrassEquation:o,isWithinCurveOrder:s}}function j(e){const t=function(e){const t=C(e);return a.FF(t,{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze({lowS:!0,...t})}(e),{Fp:n,n:r}=t,i=n.BYTES+1,s=2*n.BYTES+1;function f(e){return d(e,r)}function c(e){return b(e,r)}const{ProjectivePoint:l,normPrivateKeyToScalar:u,weierstrassEquation:p,isWithinCurveOrder:h}=B({...t,toBytes(e,t,r){const i=t.toAffine(),o=n.toBytes(i.x),s=a.eV;return r?s(Uint8Array.from([t.hasEvenY()?2:3]),o):s(Uint8Array.from([4]),o,n.toBytes(i.y))},fromBytes(e){const t=e.length,r=e[0],o=e.subarray(1);if(t!==i||2!==r&&3!==r){if(t===s&&4===r){return{x:n.fromBytes(o.subarray(0,n.BYTES)),y:n.fromBytes(o.subarray(n.BYTES,2*n.BYTES))}}throw new Error(`Point of length ${t} was invalid. Expected ${i} compressed bytes or ${s} uncompressed bytes`)}{const e=a.bytesToNumberBE(o);if(!(R<(f=e)&&f<n.ORDER))throw new Error("Point is not on curve");const t=p(e);let i=n.sqrt(t);return 1===(1&r)!==((i&I)===I)&&(i=n.neg(i)),{x:e,y:i}}var f}}),y=e=>a.ci(a.tL(e,t.nByteLength));function m(e){return e>r>>I}const g=(e,t,n)=>a.bytesToNumberBE(e.slice(t,n));class E{constructor(e,t,n){this.r=e,this.s=t,this.recovery=n,this.assertValidity()}static fromCompact(e){const n=t.nByteLength;return e=(0,a.ql)("compactSignature",e,2*n),new E(g(e,0,n),g(e,n,2*n))}static fromDER(e){const{r:t,s:n}=S.toSig((0,a.ql)("DER",e));return new E(t,n)}assertValidity(){if(!h(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!h(this.s))throw new Error("s must be 0 < s < CURVE.n")}addRecoveryBit(e){return new E(this.r,this.s,e)}recoverPublicKey(e){const{r:r,s:i,recovery:o}=this,s=T((0,a.ql)("msgHash",e));if(null==o||![0,1,2,3].includes(o))throw new Error("recovery id invalid");const u=2===o||3===o?r+t.n:r;if(u>=n.ORDER)throw new Error("recovery id 2 or 3 invalid");const d=0===(1&o)?"02":"03",p=l.fromHex(d+y(u)),h=c(u),b=f(-s*h),m=f(i*h),g=l.BASE.multiplyAndAddUnsafe(p,b,m);if(!g)throw new Error("point at infinify");return g.assertValidity(),g}hasHighS(){return m(this.s)}normalizeS(){return this.hasHighS()?new E(this.r,f(-this.s),this.recovery):this}toDERRawBytes(){return a.hexToBytes(this.toDERHex())}toDERHex(){return S.hexFromSig({r:this.r,s:this.s})}toCompactRawBytes(){return a.hexToBytes(this.toCompactHex())}toCompactHex(){return y(this.r)+y(this.s)}}const A={isValidPrivateKey(e){try{return u(e),!0}catch(t){return!1}},normPrivateKeyToScalar:u,randomPrivateKey:()=>{const e=w(t.n);return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.length,i=v(t),s=w(t);if(r<16||r<s||r>1024)throw new Error(`expected ${s}-1024 bytes of input, got ${r}`);const f=d(n?(0,a.bytesToNumberBE)(e):(0,a.ty)(e),t-o)+o;return n?(0,a.S5)(f,i):(0,a.tL)(f,i)}(t.randomBytes(e),t.n)},precompute(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.BASE;return t._setWindowSize(e),t.multiply(BigInt(3)),t}};function P(e){const t=e instanceof Uint8Array,n="string"===typeof e,r=(t||n)&&e.length;return t?r===i||r===s:n?r===2*i||r===2*s:e instanceof l}const _=t.bits2int||function(e){const n=a.bytesToNumberBE(e),r=8*e.length-t.nBitLength;return r>0?n>>BigInt(r):n},T=t.bits2int_modN||function(e){return f(_(e))},k=a.dQ(t.nBitLength);function x(e){if("bigint"!==typeof e)throw new Error("bigint expected");if(!(R<=e&&e<k))throw new Error(`bigint expected < 2^${t.nBitLength}`);return a.tL(e,t.nByteLength)}function O(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N;if(["recovered","canonical"].some((e=>e in i)))throw new Error("sign() legacy options not supported");const{hash:o,randomBytes:s}=t;let{lowS:d,prehash:p,extraEntropy:b}=i;null==d&&(d=!0),e=(0,a.ql)("msgHash",e),p&&(e=(0,a.ql)("prehashed msgHash",o(e)));const y=T(e),g=u(r),v=[x(g),x(y)];if(null!=b){const e=!0===b?s(n.BYTES):b;v.push((0,a.ql)("extraEntropy",e))}const w=a.eV(...v),A=y;return{seed:w,k2sig:function(e){const t=_(e);if(!h(t))return;const n=c(t),r=l.BASE.multiply(t).toAffine(),a=f(r.x);if(a===R)return;const i=f(n*f(A+a*g));if(i===R)return;let o=(r.x===a?0:2)|Number(r.y&I),s=i;return d&&m(i)&&(s=function(e){return m(e)?f(-e):e}(i),o^=1),new E(a,s,o)}}}const N={lowS:t.lowS,prehash:!1},j={lowS:t.lowS,prehash:!1};return l.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return l.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(P(e))throw new Error("first arg must be private key");if(!P(t))throw new Error("second arg must be public key");return l.fromHex(t).multiply(u(e)).toRawBytes(n)},sign:function(e,n){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:N;const{seed:i,k2sig:o}=O(e,n,r),s=t;return a.n$(s.hash.outputLen,s.nByteLength,s.hmac)(i,o)},verify:function(e,n,r){var i;let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j;const s=e;if(n=(0,a.ql)("msgHash",n),r=(0,a.ql)("publicKey",r),"strict"in o)throw new Error("options.strict was renamed to lowS");const{lowS:u,prehash:d}=o;let p,h;try{if("string"===typeof s||s instanceof Uint8Array)try{p=E.fromDER(s)}catch(P){if(!(P instanceof S.Err))throw P;p=E.fromCompact(s)}else{if("object"!==typeof s||"bigint"!==typeof s.r||"bigint"!==typeof s.s)throw new Error("PARSE");{const{r:e,s:t}=s;p=new E(e,t)}}h=l.fromHex(r)}catch(_){if("PARSE"===_.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(u&&p.hasHighS())return!1;d&&(n=t.hash(n));const{r:b,s:y}=p,m=T(n),g=c(y),v=f(m*g),w=f(b*g),A=null===(i=l.BASE.multiplyAndAddUnsafe(h,v,w))||void 0===i?void 0:i.toAffine();return!!A&&f(A.x)===b},ProjectivePoint:l,Signature:E,utils:A}}function D(e){return{hash:e,hmac:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return _(e,t,(0,A.eV)(...r))},randomBytes:A.O6}}const L=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),M=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),U=BigInt(1),F=BigInt(2),z=(e,t)=>(e+t/F)/t;function $(e){const t=L,n=BigInt(3),r=BigInt(6),a=BigInt(11),i=BigInt(22),o=BigInt(23),s=BigInt(44),f=BigInt(88),c=e*e*e%t,l=c*c*e%t,u=h(l,n,t)*l%t,d=h(u,n,t)*l%t,p=h(d,F,t)*c%t,b=h(p,a,t)*p%t,y=h(b,i,t)*b%t,m=h(y,s,t)*y%t,g=h(m,f,t)*m%t,v=h(g,s,t)*y%t,w=h(v,n,t)*l%t,E=h(w,o,t)*b%t,A=h(E,r,t)*c%t,P=h(A,F,t);if(!G.eql(G.sqr(P),e))throw new Error("Cannot find square root");return P}const G=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(e<=i)throw new Error(`Expected Field ORDER > 0, got ${e}`);const{nBitLength:s,nByteLength:f}=g(e,t);if(f>2048)throw new Error("Field lengths over 2048 bytes are not supported");const c=y(e),l=Object.freeze({ORDER:e,BITS:s,BYTES:f,MASK:(0,a.dQ)(s),ZERO:i,ONE:o,create:t=>d(t,e),isValid:t=>{if("bigint"!==typeof t)throw new Error("Invalid field element: expected bigint, got "+typeof t);return i<=t&&t<e},is0:e=>e===i,isOdd:e=>(e&o)===o,neg:t=>d(-t,e),eql:(e,t)=>e===t,sqr:t=>d(t*t,e),add:(t,n)=>d(t+n,e),sub:(t,n)=>d(t-n,e),mul:(t,n)=>d(t*n,e),pow:(e,t)=>function(e,t,n){if(n<i)throw new Error("Expected power > 0");if(n===i)return e.ONE;if(n===o)return t;let r=e.ONE,a=t;for(;n>i;)n&o&&(r=e.mul(r,a)),a=e.sqr(a),n>>=o;return r}(l,e,t),div:(t,n)=>d(t*b(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>b(t,e),sqrt:r.sqrt||(e=>c(l,e)),invertBatch:e=>function(e,t){const n=new Array(t.length),r=t.reduce(((t,r,a)=>e.is0(r)?t:(n[a]=t,e.mul(t,r))),e.ONE),a=e.inv(r);return t.reduceRight(((t,r,a)=>e.is0(r)?t:(n[a]=e.mul(t,n[a]),e.mul(t,r))),a),n}(l,e),cmov:(e,t,n)=>n?t:e,toBytes:e=>n?(0,a.S5)(e,f):(0,a.tL)(e,f),fromBytes:e=>{if(e.length!==f)throw new Error(`Fp.fromBytes: expected ${f}, got ${e.length}`);return n?(0,a.ty)(e):(0,a.bytesToNumberBE)(e)}});return Object.freeze(l)}(L,void 0,void 0,{sqrt:$}),H=function(e,t){const n=t=>j({...e,...D(t)});return Object.freeze({...n(t),create:n})}({a:BigInt(0),b:BigInt(7),Fp:G,n:M,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=M,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-U*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),i=n,o=BigInt("0x100000000000000000000000000000000"),s=z(i*e,t),f=z(-r*e,t);let c=d(e-s*n-f*a,t),l=d(-s*r-f*i,t);const u=c>o,p=l>o;if(u&&(c=t-c),p&&(l=t-l),c>o||l>o)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:u,k1:c,k2neg:p,k2:l}}}},r.J);BigInt(0);H.ProjectivePoint},66088:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeToCurve=t.hashToCurve=t.schnorr=t.secp256k1=void 0;const r=n(84304),a=n(74361),i=n(57701),o=n(12846),s=n(43500),f=n(14464),c=n(37525),l=BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),u=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),d=BigInt(1),p=BigInt(2),h=(e,t)=>(e+t/p)/t;function b(e){const t=l,n=BigInt(3),r=BigInt(6),a=BigInt(11),o=BigInt(22),s=BigInt(23),f=BigInt(44),c=BigInt(88),u=e*e*e%t,d=u*u*e%t,h=(0,i.pow2)(d,n,t)*d%t,b=(0,i.pow2)(h,n,t)*d%t,m=(0,i.pow2)(b,p,t)*u%t,g=(0,i.pow2)(m,a,t)*m%t,v=(0,i.pow2)(g,o,t)*g%t,w=(0,i.pow2)(v,f,t)*v%t,E=(0,i.pow2)(w,c,t)*w%t,A=(0,i.pow2)(E,f,t)*v%t,P=(0,i.pow2)(A,n,t)*d%t,_=(0,i.pow2)(P,s,t)*g%t,T=(0,i.pow2)(_,r,t)*u%t,k=(0,i.pow2)(T,p,t);if(!y.eql(y.sqr(k),e))throw new Error("Cannot find square root");return k}const y=(0,i.Field)(l,void 0,void 0,{sqrt:b});t.secp256k1=(0,c.createCurve)({a:BigInt(0),b:BigInt(7),Fp:y,n:u,Gx:BigInt("55066263022277343669578718895168534326250603453777594175500187360389116729240"),Gy:BigInt("32670510020758816978083085130507043184471273380659243275938904335757337482424"),h:BigInt(1),lowS:!0,endo:{beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),splitScalar:e=>{const t=u,n=BigInt("0x3086d221a7d46bcde86c90e49284eb15"),r=-d*BigInt("0xe4437ed6010e88286f547fa90abfe4c3"),a=BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),o=n,s=BigInt("0x100000000000000000000000000000000"),f=h(o*e,t),c=h(-r*e,t);let l=(0,i.mod)(e-f*n-c*a,t),p=(0,i.mod)(-f*r-c*o,t);const b=l>s,y=p>s;if(b&&(l=t-l),y&&(p=t-p),l>s||p>s)throw new Error("splitScalar: Endomorphism failed, k="+e);return{k1neg:b,k1:l,k2neg:y,k2:p}}}},r.sha256);const m=BigInt(0),g=e=>"bigint"===typeof e&&m<e&&e<l,v=e=>"bigint"===typeof e&&m<e&&e<u,w={};function E(e){let t=w[e];if(void 0===t){const n=(0,r.sha256)(Uint8Array.from(e,(e=>e.charCodeAt(0))));t=(0,s.concatBytes)(n,n),w[e]=t}for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];return(0,r.sha256)((0,s.concatBytes)(t,...a))}const A=e=>e.toRawBytes(!0).slice(1),P=e=>(0,s.numberToBytesBE)(e,32),_=e=>(0,i.mod)(e,l),T=e=>(0,i.mod)(e,u),k=t.secp256k1.ProjectivePoint,C=(e,t,n)=>k.BASE.multiplyAndAddUnsafe(e,t,n);function x(e){let n=t.secp256k1.utils.normPrivateKeyToScalar(e),r=k.fromPrivateKey(n);return{scalar:r.hasEvenY()?n:T(-n),bytes:A(r)}}function O(e){if(!g(e))throw new Error("bad x: need 0 < x < p");const t=_(e*e);let n=b(_(t*e+BigInt(7)));n%p!==m&&(n=_(-n));const r=new k(e,n,d);return r.assertValidity(),r}function S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return T((0,s.bytesToNumberBE)(E("BIP0340/challenge",...t)))}function R(e){return x(e).bytes}function I(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(0,a.randomBytes)(32);const r=(0,s.ensureBytes)("message",e),{bytes:i,scalar:o}=x(t),f=(0,s.ensureBytes)("auxRand",n,32),c=P(o^(0,s.bytesToNumberBE)(E("BIP0340/aux",f))),l=E("BIP0340/nonce",c,i,r),u=T((0,s.bytesToNumberBE)(l));if(u===m)throw new Error("sign failed: k is zero");const{bytes:d,scalar:p}=x(u),h=S(d,i,r),b=new Uint8Array(64);if(b.set(d,0),b.set(P(T(p+h*o)),32),!N(b,r,i))throw new Error("sign: Invalid signature produced");return b}function N(e,t,n){const r=(0,s.ensureBytes)("signature",e,64),a=(0,s.ensureBytes)("message",t),i=(0,s.ensureBytes)("publicKey",n,32);try{const e=O((0,s.bytesToNumberBE)(i)),t=(0,s.bytesToNumberBE)(r.subarray(0,32));if(!g(t))return!1;const n=(0,s.bytesToNumberBE)(r.subarray(32,64));if(!v(n))return!1;const o=S(P(t),A(e),a),f=C(e,n,T(-o));return!(!f||!f.hasEvenY()||f.toAffine().x!==t)}catch(o){return!1}}t.schnorr={getPublicKey:R,sign:I,verify:N,utils:{randomPrivateKey:t.secp256k1.utils.randomPrivateKey,lift_x:O,pointToBytes:A,numberToBytesBE:s.numberToBytesBE,bytesToNumberBE:s.bytesToNumberBE,taggedHash:E,mod:i.mod}};const B=(()=>(0,f.isogenyMap)(y,[["0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7","0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581","0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262","0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c"],["0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b","0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14","0x0000000000000000000000000000000000000000000000000000000000000001"],["0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c","0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3","0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931","0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84"],["0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b","0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573","0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f","0x0000000000000000000000000000000000000000000000000000000000000001"]].map((e=>e.map((e=>BigInt(e)))))))(),j=(()=>(0,o.mapToCurveSimpleSWU)(y,{A:BigInt("0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533"),B:BigInt("1771"),Z:y.create(BigInt("-11"))}))(),D=(()=>(0,f.createHasher)(t.secp256k1.ProjectivePoint,(e=>{const{x:t,y:n}=j(y.create(e[0]));return B(t,n)}),{DST:"secp256k1_XMD:SHA-256_SSWU_RO_",encodeDST:"secp256k1_XMD:SHA-256_SSWU_NU_",p:y.ORDER,m:1,k:128,expand:"xmd",hash:r.sha256}))();t.hashToCurve=D.hashToCurve,t.encodeToCurve=D.encodeToCurve},64337:(e,t)=>{"use strict";function n(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function r(e){if("boolean"!==typeof e)throw new Error(`Expected boolean, not ${e}`)}function a(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0&&!n.includes(e.length))throw new Error(`Expected Uint8Array of length ${n}, not of length=${e.length}`)}function i(e){if("function"!==typeof e||"function"!==typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function o(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){a(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}Object.defineProperty(t,"__esModule",{value:!0}),t.output=t.exists=t.hash=t.bytes=t.bool=t.number=void 0,t.number=n,t.bool=r,t.bytes=a,t.hash=i,t.exists=o,t.output=s;const f={number:n,bool:r,bytes:a,hash:i,exists:o,output:s};t.default=f},20747:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHA2=void 0;const r=n(64337),a=n(74361);class i extends a.Hash{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,a.createView)(this.buffer)}update(e){(0,r.exists)(this);const{view:t,buffer:n,blockLen:i}=this,o=(e=(0,a.toBytes)(e)).length;for(let r=0;r<o;){const s=Math.min(i-this.pos,o-r);if(s!==i)n.set(e.subarray(r,r+s),this.pos),this.pos+=s,r+=s,this.pos===i&&(this.process(t,0),this.pos=0);else{const t=(0,a.createView)(e);for(;i<=o-r;r+=i)this.process(t,r)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.exists)(this),(0,r.output)(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:i,isLE:o}=this;let{pos:s}=this;t[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>i-s&&(this.process(n,0),s=0);for(let r=s;r<i;r++)t[r]=0;!function(e,t,n,r){if("function"===typeof e.setBigUint64)return e.setBigUint64(t,n,r);const a=BigInt(32),i=BigInt(4294967295),o=Number(n>>a&i),s=Number(n&i),f=r?4:0,c=r?0:4;e.setUint32(t+f,o,r),e.setUint32(t+c,s,r)}(n,i-8,BigInt(8*this.length),o),this.process(n,0);const f=(0,a.createView)(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,u=this.get();if(l>u.length)throw new Error("_sha2: outputLen bigger than state");for(let r=0;r<l;r++)f.setUint32(4*r,u[r],o)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:a,destroyed:i,pos:o}=this;return e.length=r,e.pos=o,e.finished=a,e.destroyed=i,r%t&&e.buffer.set(n),e}}t.SHA2=i},34995:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.add5L=t.add5H=t.add4H=t.add4L=t.add3H=t.add3L=t.add=t.rotlBL=t.rotlBH=t.rotlSL=t.rotlSH=t.rotr32L=t.rotr32H=t.rotrBL=t.rotrBH=t.rotrSL=t.rotrSH=t.shrSL=t.shrSH=t.toBig=t.split=t.fromBig=void 0;const n=BigInt(2**32-1),r=BigInt(32);function a(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&n),l:Number(e>>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let i=0;i<e.length;i++){const{h:o,l:s}=a(e[i],t);[n[i],r[i]]=[o,s]}return[n,r]}t.fromBig=a,t.split=i;const o=(e,t)=>BigInt(e>>>0)<<r|BigInt(t>>>0);t.toBig=o;const s=(e,t,n)=>e>>>n;t.shrSH=s;const f=(e,t,n)=>e<<32-n|t>>>n;t.shrSL=f;const c=(e,t,n)=>e>>>n|t<<32-n;t.rotrSH=c;const l=(e,t,n)=>e<<32-n|t>>>n;t.rotrSL=l;const u=(e,t,n)=>e<<64-n|t>>>n-32;t.rotrBH=u;const d=(e,t,n)=>e>>>n-32|t<<64-n;t.rotrBL=d;const p=(e,t)=>t;t.rotr32H=p;const h=(e,t)=>e;t.rotr32L=h;const b=(e,t,n)=>e<<n|t>>>32-n;t.rotlSH=b;const y=(e,t,n)=>t<<n|e>>>32-n;t.rotlSL=y;const m=(e,t,n)=>t<<n-32|e>>>64-n;t.rotlBH=m;const g=(e,t,n)=>e<<n-32|t>>>64-n;function v(e,t,n,r){const a=(t>>>0)+(r>>>0);return{h:e+n+(a/2**32|0)|0,l:0|a}}t.rotlBL=g,t.add=v;const w=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);t.add3L=w;const E=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;t.add3H=E;const A=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);t.add4L=A;const P=(e,t,n,r,a)=>t+n+r+a+(e/2**32|0)|0;t.add4H=P;const _=(e,t,n,r,a)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(a>>>0);t.add5L=_;const T=(e,t,n,r,a,i)=>t+n+r+a+i+(e/2**32|0)|0;t.add5H=T;const k={fromBig:a,split:i,toBig:o,shrSH:s,shrSL:f,rotrSH:c,rotrSL:l,rotrBH:u,rotrBL:d,rotr32H:p,rotr32L:h,rotlSH:b,rotlSL:y,rotlBH:m,rotlBL:g,add:v,add3L:w,add3H:E,add4L:A,add4H:P,add5H:T,add5L:_};t.default=k},26164:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crypto=void 0,t.crypto="object"===typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0},57232:(e,t,n)=>{"use strict";function r(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}function a(e){if(!(e instanceof Uint8Array))throw new Error("Expected Uint8Array");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(n.length>0&&!n.includes(e.length))throw new Error(`Expected Uint8Array of length ${n}, not of length=${e.length}`)}function i(e){if("function"!==typeof e||"function"!==typeof e.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");r(e.outputLen),r(e.blockLen)}function o(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function s(e,t){a(e);const n=t.outputLen;if(e.length<n)throw new Error(`digestInto() expects output buffer of length at least ${n}`)}n.d(t,{Gg:()=>o,J8:()=>s,Rx:()=>r,aI:()=>a,vp:()=>i})},93458:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(57232),a=n(76472);class i extends a.kb{constructor(e,t,n,r){super(),this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=r,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,a.GL)(this.buffer)}update(e){(0,r.Gg)(this);const{view:t,buffer:n,blockLen:i}=this,o=(e=(0,a.O0)(e)).length;for(let r=0;r<o;){const s=Math.min(i-this.pos,o-r);if(s!==i)n.set(e.subarray(r,r+s),this.pos),this.pos+=s,r+=s,this.pos===i&&(this.process(t,0),this.pos=0);else{const t=(0,a.GL)(e);for(;i<=o-r;r+=i)this.process(t,r)}}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.Gg)(this),(0,r.J8)(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:i,isLE:o}=this;let{pos:s}=this;t[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>i-s&&(this.process(n,0),s=0);for(let r=s;r<i;r++)t[r]=0;!function(e,t,n,r){if("function"===typeof e.setBigUint64)return e.setBigUint64(t,n,r);const a=BigInt(32),i=BigInt(4294967295),o=Number(n>>a&i),s=Number(n&i),f=r?4:0,c=r?0:4;e.setUint32(t+f,o,r),e.setUint32(t+c,s,r)}(n,i-8,BigInt(8*this.length),o),this.process(n,0);const f=(0,a.GL)(e),c=this.outputLen;if(c%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const l=c/4,u=this.get();if(l>u.length)throw new Error("_sha2: outputLen bigger than state");for(let r=0;r<l;r++)f.setUint32(4*r,u[r],o)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:a,destroyed:i,pos:o}=this;return e.length=r,e.pos=o,e.finished=a,e.destroyed=i,r%t&&e.buffer.set(n),e}}},92093:(e,t,n)=>{"use strict";n.d(t,{EP:()=>s,SD:()=>c,Vl:()=>o,ZP:()=>u,gm:()=>f,mk:()=>l});const r=BigInt(2**32-1),a=BigInt(32);function i(e){return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?{h:Number(e&r),l:Number(e>>a&r)}:{h:0|Number(e>>a&r),l:0|Number(e&r)}}function o(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let a=0;a<e.length;a++){const{h:o,l:s}=i(e[a],t);[n[a],r[a]]=[o,s]}return[n,r]}const s=(e,t,n)=>e<<n|t>>>32-n,f=(e,t,n)=>t<<n|e>>>32-n,c=(e,t,n)=>t<<n-32|e>>>64-n,l=(e,t,n)=>e<<n-32|t>>>64-n;const u={fromBig:i,split:o,toBig:(e,t)=>BigInt(e>>>0)<<a|BigInt(t>>>0),shrSH:(e,t,n)=>e>>>n,shrSL:(e,t,n)=>e<<32-n|t>>>n,rotrSH:(e,t,n)=>e>>>n|t<<32-n,rotrSL:(e,t,n)=>e<<32-n|t>>>n,rotrBH:(e,t,n)=>e<<64-n|t>>>n-32,rotrBL:(e,t,n)=>e>>>n-32|t<<64-n,rotr32H:(e,t)=>t,rotr32L:(e,t)=>e,rotlSH:s,rotlSL:f,rotlBH:c,rotlBL:l,add:function(e,t,n,r){const a=(t>>>0)+(r>>>0);return{h:e+n+(a/2**32|0)|0,l:0|a}},add3L:(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),add3H:(e,t,n,r)=>t+n+r+(e/2**32|0)|0,add4L:(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),add4H:(e,t,n,r,a)=>t+n+r+a+(e/2**32|0)|0,add5H:(e,t,n,r,a,i)=>t+n+r+a+i+(e/2**32|0)|0,add5L:(e,t,n,r,a)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(a>>>0)}},58533:(e,t,n)=>{"use strict";n.d(t,{J:()=>l});var r=n(93458),a=n(76472);const i=(e,t,n)=>e&t^e&n^t&n,o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),f=new Uint32Array(64);class c extends r.N{constructor(){super(64,32,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){const{A:e,B:t,C:n,D:r,E:a,F:i,G:o,H:s}=this;return[e,t,n,r,a,i,o,s]}set(e,t,n,r,a,i,o,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|a,this.F=0|i,this.G=0|o,this.H=0|s}process(e,t){for(let a=0;a<16;a++,t+=4)f[a]=e.getUint32(t,!1);for(let i=16;i<64;i++){const e=f[i-15],t=f[i-2],n=(0,a.np)(e,7)^(0,a.np)(e,18)^e>>>3,r=(0,a.np)(t,17)^(0,a.np)(t,19)^t>>>10;f[i]=r+f[i-7]+n+f[i-16]|0}let{A:n,B:r,C:s,D:c,E:l,F:u,G:d,H:p}=this;for(let b=0;b<64;b++){const e=p+((0,a.np)(l,6)^(0,a.np)(l,11)^(0,a.np)(l,25))+((h=l)&u^~h&d)+o[b]+f[b]|0,t=((0,a.np)(n,2)^(0,a.np)(n,13)^(0,a.np)(n,22))+i(n,r,s)|0;p=d,d=u,u=l,l=c+e|0,c=s,s=r,r=n,n=e+t|0}var h;n=n+this.A|0,r=r+this.B|0,s=s+this.C|0,c=c+this.D|0,l=l+this.E|0,u=u+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(n,r,s,c,l,u,d,p)}roundClean(){f.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}const l=(0,a.hE)((()=>new c))},61089:(e,t,n)=>{"use strict";n.d(t,{fr:()=>E});var r=n(57232),a=n(92093),i=n(76472);const[o,s,f]=[[],[],[]],c=BigInt(0),l=BigInt(1),u=BigInt(2),d=BigInt(7),p=BigInt(256),h=BigInt(113);for(let A=0,P=l,_=1,T=0;A<24;A++){[_,T]=[T,(2*_+3*T)%5],o.push(2*(5*T+_)),s.push((A+1)*(A+2)/2%64);let e=c;for(let t=0;t<7;t++)P=(P<<l^(P>>d)*h)%p,P&u&&(e^=l<<(l<<BigInt(t))-l);f.push(e)}const[b,y]=(0,a.Vl)(f,!0),m=(e,t,n)=>n>32?(0,a.SD)(e,t,n):(0,a.EP)(e,t,n),g=(e,t,n)=>n>32?(0,a.mk)(e,t,n):(0,a.gm)(e,t,n);class v extends i.kb{constructor(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=a,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,r.Rx)(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,i.Jq)(this.state)}keccak(){!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let r=0;r<10;r++)n[r]=e[r]^e[r+10]^e[r+20]^e[r+30]^e[r+40];for(let r=0;r<10;r+=2){const t=(r+8)%10,a=(r+2)%10,i=n[a],o=n[a+1],s=m(i,o,1)^n[t],f=g(i,o,1)^n[t+1];for(let n=0;n<50;n+=10)e[r+n]^=s,e[r+n+1]^=f}let t=e[2],a=e[3];for(let n=0;n<24;n++){const r=s[n],i=m(t,a,r),f=g(t,a,r),c=o[n];t=e[c],a=e[c+1],e[c]=i,e[c+1]=f}for(let r=0;r<50;r+=10){for(let t=0;t<10;t++)n[t]=e[r+t];for(let t=0;t<10;t++)e[r+t]^=~n[(t+2)%10]&n[(t+4)%10]}e[0]^=b[r],e[1]^=y[r]}n.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,r.Gg)(this);const{blockLen:t,state:n}=this,a=(e=(0,i.O0)(e)).length;for(let r=0;r<a;){const i=Math.min(t-this.pos,a-r);for(let t=0;t<i;t++)n[this.pos++]^=e[r++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,0!==(128&t)&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){(0,r.Gg)(this,!1),(0,r.aI)(e),this.finish();const t=this.state,{blockLen:n}=this;for(let r=0,a=e.length;r<a;){this.posOut>=n&&this.keccak();const i=Math.min(n-this.posOut,a-r);e.set(t.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,r.Rx)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,r.J8)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:a,enableXOF:i}=this;return e||(e=new v(t,n,r,i,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=n,e.outputLen=r,e.enableXOF=i,e.destroyed=this.destroyed,e}}const w=(e,t,n)=>(0,i.hE)((()=>new v(t,e,n))),E=w(1,136,32)},76472:(e,t,n)=>{"use strict";n.d(t,{kb:()=>l,eV:()=>c,GL:()=>o,O6:()=>d,np:()=>s,O0:()=>f,Jq:()=>i,hE:()=>u});const r="object"===typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0,a=e=>e instanceof Uint8Array,i=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),o=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),s=(e,t)=>e<<32-t|e>>>t;if(!(68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]))throw new Error("Non little-endian hardware is not supported");function f(e){if("string"===typeof e&&(e=function(e){if("string"!==typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}(e)),!a(e))throw new Error("expected Uint8Array, got "+typeof e);return e}function c(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new Uint8Array(t.reduce(((e,t)=>e+t.length),0));let i=0;return t.forEach((e=>{if(!a(e))throw new Error("Uint8Array expected");r.set(e,i),i+=e.length})),r}class l{clone(){return this._cloneInto()}}function u(e){const t=t=>e().update(f(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(r&&"function"===typeof r.getRandomValues)return r.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},5968:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hmac=t.HMAC=void 0;const r=n(64337),a=n(74361);class i extends a.Hash{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,r.hash)(e);const n=(0,a.toBytes)(t);if(this.iHash=e.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 i=this.blockLen,o=new Uint8Array(i);o.set(n.length>i?e.create().update(n).digest():n);for(let r=0;r<o.length;r++)o[r]^=54;this.iHash.update(o),this.oHash=e.create();for(let r=0;r<o.length;r++)o[r]^=106;this.oHash.update(o),o.fill(0)}update(e){return(0,r.exists)(this),this.iHash.update(e),this}digestInto(e){(0,r.exists)(this),(0,r.bytes)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:r,destroyed:a,blockLen:i,outputLen:o}=this;return e.finished=r,e.destroyed=a,e.blockLen=i,e.outputLen=o,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}t.HMAC=i;t.hmac=(e,t,n)=>new i(e,t).update(n).digest(),t.hmac.create=(e,t)=>new i(e,t)},42802:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2Async=t.pbkdf2=void 0;const r=n(64337),a=n(5968),i=n(74361);function o(e,t,n,o){(0,r.hash)(e);const s=(0,i.checkOpts)({dkLen:32,asyncTick:10},o),{c:f,dkLen:c,asyncTick:l}=s;if((0,r.number)(f),(0,r.number)(c),(0,r.number)(l),f<1)throw new Error("PBKDF2: iterations (c) should be >= 1");const u=(0,i.toBytes)(t),d=(0,i.toBytes)(n),p=new Uint8Array(c),h=a.hmac.create(e,u),b=h._cloneInto().update(d);return{c:f,dkLen:c,asyncTick:l,DK:p,PRF:h,PRFSalt:b}}function s(e,t,n,r,a){return e.destroy(),t.destroy(),r&&r.destroy(),a.fill(0),n}t.pbkdf2=function(e,t,n,r){const{c:a,dkLen:f,DK:c,PRF:l,PRFSalt:u}=o(e,t,n,r);let d;const p=new Uint8Array(4),h=(0,i.createView)(p),b=new Uint8Array(l.outputLen);for(let i=1,o=0;o<f;i++,o+=l.outputLen){const e=c.subarray(o,o+l.outputLen);h.setInt32(0,i,!1),(d=u._cloneInto(d)).update(p).digestInto(b),e.set(b.subarray(0,e.length));for(let t=1;t<a;t++){l._cloneInto(d).update(b).digestInto(b);for(let t=0;t<e.length;t++)e[t]^=b[t]}}return s(l,u,c,d,b)},t.pbkdf2Async=async function(e,t,n,r){const{c:a,dkLen:f,asyncTick:c,DK:l,PRF:u,PRFSalt:d}=o(e,t,n,r);let p;const h=new Uint8Array(4),b=(0,i.createView)(h),y=new Uint8Array(u.outputLen);for(let o=1,s=0;s<f;o++,s+=u.outputLen){const e=l.subarray(s,s+u.outputLen);b.setInt32(0,o,!1),(p=d._cloneInto(p)).update(h).digestInto(y),e.set(y.subarray(0,e.length)),await(0,i.asyncLoop)(a-1,c,(()=>{u._cloneInto(p).update(y).digestInto(y);for(let t=0;t<e.length;t++)e[t]^=y[t]}))}return s(u,d,l,p,y)}},66632:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.RIPEMD160=void 0;const r=n(20747),a=n(74361),i=new Uint8Array([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),o=Uint8Array.from({length:16},((e,t)=>t));let s=[o],f=[o.map((e=>(9*e+5)%16))];for(let g=0;g<4;g++)for(let e of[s,f])e.push(e[g].map((e=>i[e])));const c=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map((e=>new Uint8Array(e))),l=s.map(((e,t)=>e.map((e=>c[t][e])))),u=f.map(((e,t)=>e.map((e=>c[t][e])))),d=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),p=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),h=(e,t)=>e<<t|e>>>32-t;function b(e,t,n,r){return 0===e?t^n^r:1===e?t&n|~t&r:2===e?(t|~n)^r:3===e?t&r|n&~r:t^(n|~r)}const y=new Uint32Array(16);class m extends r.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:t,h2:n,h3:r,h4:a}=this;return[e,t,n,r,a]}set(e,t,n,r,a){this.h0=0|e,this.h1=0|t,this.h2=0|n,this.h3=0|r,this.h4=0|a}process(e,t){for(let s=0;s<16;s++,t+=4)y[s]=e.getUint32(t,!0);let n=0|this.h0,r=n,a=0|this.h1,i=a,o=0|this.h2,c=o,m=0|this.h3,g=m,v=0|this.h4,w=v;for(let E=0;E<5;E++){const e=4-E,t=d[E],A=p[E],P=s[E],_=f[E],T=l[E],k=u[E];for(let r=0;r<16;r++){const e=h(n+b(E,a,o,m)+y[P[r]]+t,T[r])+v|0;n=v,v=m,m=0|h(o,10),o=a,a=e}for(let n=0;n<16;n++){const t=h(r+b(e,i,c,g)+y[_[n]]+A,k[n])+w|0;r=w,w=g,g=0|h(c,10),c=i,i=t}}this.set(this.h1+o+g|0,this.h2+m+w|0,this.h3+v+r|0,this.h4+n+i|0,this.h0+a+c|0)}roundClean(){y.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}t.RIPEMD160=m,t.ripemd160=(0,a.wrapConstructor)((()=>new m))},82215:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptAsync=t.scrypt=void 0;const r=n(64337),a=n(84304),i=n(42802),o=n(74361),s=(e,t)=>e<<t|e>>>32-t;function f(e,t,n,r,a,i){let o=e[t++]^n[r++],f=e[t++]^n[r++],c=e[t++]^n[r++],l=e[t++]^n[r++],u=e[t++]^n[r++],d=e[t++]^n[r++],p=e[t++]^n[r++],h=e[t++]^n[r++],b=e[t++]^n[r++],y=e[t++]^n[r++],m=e[t++]^n[r++],g=e[t++]^n[r++],v=e[t++]^n[r++],w=e[t++]^n[r++],E=e[t++]^n[r++],A=e[t++]^n[r++],P=o,_=f,T=c,k=l,C=u,x=d,O=p,S=h,R=b,I=y,N=m,B=g,j=v,D=w,L=E,M=A;for(let U=0;U<8;U+=2)C^=s(P+j|0,7),R^=s(C+P|0,9),j^=s(R+C|0,13),P^=s(j+R|0,18),I^=s(x+_|0,7),D^=s(I+x|0,9),_^=s(D+I|0,13),x^=s(_+D|0,18),L^=s(N+O|0,7),T^=s(L+N|0,9),O^=s(T+L|0,13),N^=s(O+T|0,18),k^=s(M+B|0,7),S^=s(k+M|0,9),B^=s(S+k|0,13),M^=s(B+S|0,18),_^=s(P+k|0,7),T^=s(_+P|0,9),k^=s(T+_|0,13),P^=s(k+T|0,18),O^=s(x+C|0,7),S^=s(O+x|0,9),C^=s(S+O|0,13),x^=s(C+S|0,18),B^=s(N+I|0,7),R^=s(B+N|0,9),I^=s(R+B|0,13),N^=s(I+R|0,18),j^=s(M+L|0,7),D^=s(j+M|0,9),L^=s(D+j|0,13),M^=s(L+D|0,18);a[i++]=o+P|0,a[i++]=f+_|0,a[i++]=c+T|0,a[i++]=l+k|0,a[i++]=u+C|0,a[i++]=d+x|0,a[i++]=p+O|0,a[i++]=h+S|0,a[i++]=b+R|0,a[i++]=y+I|0,a[i++]=m+N|0,a[i++]=g+B|0,a[i++]=v+j|0,a[i++]=w+D|0,a[i++]=E+L|0,a[i++]=A+M|0}function c(e,t,n,r,a){let i=r+0,o=r+16*a;for(let s=0;s<16;s++)n[o+s]=e[t+16*(2*a-1)+s];for(let s=0;s<a;s++,i+=16,t+=16)f(n,o,e,t,n,i),s>0&&(o+=16),f(n,i,e,t+=16,n,o)}function l(e,t,n){const s=(0,o.checkOpts)({dkLen:32,asyncTick:10,maxmem:1073742848},n),{N:f,r:c,p:l,dkLen:u,asyncTick:d,maxmem:p,onProgress:h}=s;if((0,r.number)(f),(0,r.number)(c),(0,r.number)(l),(0,r.number)(u),(0,r.number)(d),(0,r.number)(p),void 0!==h&&"function"!==typeof h)throw new Error("progressCb should be function");const b=128*c,y=b/4;if(f<=1||0!==(f&f-1)||f>=2**(b/8)||f>2**32)throw new Error("Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32");if(l<0||l>137438953440/b)throw new Error("Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)");if(u<0||u>137438953440)throw new Error("Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32");const m=b*(f+l);if(m>p)throw new Error(`Scrypt: parameters too large, ${m} (128 * r * (N + p)) > ${p} (maxmem)`);const g=(0,i.pbkdf2)(a.sha256,e,t,{c:1,dkLen:b*l}),v=(0,o.u32)(g),w=(0,o.u32)(new Uint8Array(b*f)),E=(0,o.u32)(new Uint8Array(b));let A=()=>{};if(h){const e=2*f*l,t=Math.max(Math.floor(e/1e4),1);let n=0;A=()=>{n++,!h||n%t&&n!==e||h(n/e)}}return{N:f,r:c,p:l,dkLen:u,blockSize32:y,V:w,B32:v,B:g,tmp:E,blockMixCb:A,asyncTick:d}}function u(e,t,n,r,o){const s=(0,i.pbkdf2)(a.sha256,e,n,{c:1,dkLen:t});return n.fill(0),r.fill(0),o.fill(0),s}t.scrypt=function(e,t,n){const{N:r,r:a,p:i,dkLen:o,blockSize32:s,V:f,B32:d,B:p,tmp:h,blockMixCb:b}=l(e,t,n);for(let l=0;l<i;l++){const e=s*l;for(let t=0;t<s;t++)f[t]=d[e+t];for(let t=0,n=0;t<r-1;t++)c(f,n,f,n+=s,a),b();c(f,(r-1)*s,d,e,a),b();for(let t=0;t<r;t++){const t=d[e+s-16]%r;for(let n=0;n<s;n++)h[n]=d[e+n]^f[t*s+n];c(h,0,d,e,a),b()}}return u(e,o,p,f,h)},t.scryptAsync=async function(e,t,n){const{N:r,r:a,p:i,dkLen:s,blockSize32:f,V:d,B32:p,B:h,tmp:b,blockMixCb:y,asyncTick:m}=l(e,t,n);for(let l=0;l<i;l++){const e=f*l;for(let n=0;n<f;n++)d[n]=p[e+n];let t=0;await(0,o.asyncLoop)(r-1,m,(()=>{c(d,t,d,t+=f,a),y()})),c(d,(r-1)*f,p,e,a),y(),await(0,o.asyncLoop)(r,m,(()=>{const t=p[e+f-16]%r;for(let n=0;n<f;n++)b[n]=p[e+n]^d[t*f+n];c(b,0,p,e,a),y()}))}return u(e,s,h,d,b)}},84304:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha224=t.sha256=void 0;const r=n(20747),a=n(74361),i=(e,t,n)=>e&t^e&n^t&n,o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),f=new Uint32Array(64);class c extends r.SHA2{constructor(){super(64,32,8,!1),this.A=0|s[0],this.B=0|s[1],this.C=0|s[2],this.D=0|s[3],this.E=0|s[4],this.F=0|s[5],this.G=0|s[6],this.H=0|s[7]}get(){const{A:e,B:t,C:n,D:r,E:a,F:i,G:o,H:s}=this;return[e,t,n,r,a,i,o,s]}set(e,t,n,r,a,i,o,s){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|a,this.F=0|i,this.G=0|o,this.H=0|s}process(e,t){for(let a=0;a<16;a++,t+=4)f[a]=e.getUint32(t,!1);for(let i=16;i<64;i++){const e=f[i-15],t=f[i-2],n=(0,a.rotr)(e,7)^(0,a.rotr)(e,18)^e>>>3,r=(0,a.rotr)(t,17)^(0,a.rotr)(t,19)^t>>>10;f[i]=r+f[i-7]+n+f[i-16]|0}let{A:n,B:r,C:s,D:c,E:l,F:u,G:d,H:p}=this;for(let b=0;b<64;b++){const e=p+((0,a.rotr)(l,6)^(0,a.rotr)(l,11)^(0,a.rotr)(l,25))+((h=l)&u^~h&d)+o[b]+f[b]|0,t=((0,a.rotr)(n,2)^(0,a.rotr)(n,13)^(0,a.rotr)(n,22))+i(n,r,s)|0;p=d,d=u,u=l,l=c+e|0,c=s,s=r,r=n,n=e+t|0}var h;n=n+this.A|0,r=r+this.B|0,s=s+this.C|0,c=c+this.D|0,l=l+this.E|0,u=u+this.F|0,d=d+this.G|0,p=p+this.H|0,this.set(n,r,s,c,l,u,d,p)}roundClean(){f.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class l extends c{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}t.sha256=(0,a.wrapConstructor)((()=>new c)),t.sha224=(0,a.wrapConstructor)((()=>new l))},17883:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shake256=t.shake128=t.keccak_512=t.keccak_384=t.keccak_256=t.keccak_224=t.sha3_512=t.sha3_384=t.sha3_256=t.sha3_224=t.Keccak=t.keccakP=void 0;const r=n(64337),a=n(34995),i=n(74361),[o,s,f]=[[],[],[]],c=BigInt(0),l=BigInt(1),u=BigInt(2),d=BigInt(7),p=BigInt(256),h=BigInt(113);for(let P=0,_=l,T=1,k=0;P<24;P++){[T,k]=[k,(2*T+3*k)%5],o.push(2*(5*k+T)),s.push((P+1)*(P+2)/2%64);let e=c;for(let t=0;t<7;t++)_=(_<<l^(_>>d)*h)%p,_&u&&(e^=l<<(l<<BigInt(t))-l);f.push(e)}const[b,y]=(0,a.split)(f,!0),m=(e,t,n)=>n>32?(0,a.rotlBH)(e,t,n):(0,a.rotlSH)(e,t,n),g=(e,t,n)=>n>32?(0,a.rotlBL)(e,t,n):(0,a.rotlSL)(e,t,n);function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24;const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let r=0;r<10;r++)n[r]=e[r]^e[r+10]^e[r+20]^e[r+30]^e[r+40];for(let r=0;r<10;r+=2){const t=(r+8)%10,a=(r+2)%10,i=n[a],o=n[a+1],s=m(i,o,1)^n[t],f=g(i,o,1)^n[t+1];for(let n=0;n<50;n+=10)e[r+n]^=s,e[r+n+1]^=f}let t=e[2],a=e[3];for(let n=0;n<24;n++){const r=s[n],i=m(t,a,r),f=g(t,a,r),c=o[n];t=e[c],a=e[c+1],e[c]=i,e[c+1]=f}for(let r=0;r<50;r+=10){for(let t=0;t<10;t++)n[t]=e[r+t];for(let t=0;t<10;t++)e[r+t]^=~n[(t+2)%10]&n[(t+4)%10]}e[0]^=b[r],e[1]^=y[r]}n.fill(0)}t.keccakP=v;class w extends i.Hash{constructor(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(super(),this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=a,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,r.number)(n),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,i.u32)(this.state)}keccak(){v(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){(0,r.exists)(this);const{blockLen:t,state:n}=this,a=(e=(0,i.toBytes)(e)).length;for(let r=0;r<a;){const i=Math.min(t-this.pos,a-r);for(let t=0;t<i;t++)n[this.pos++]^=e[r++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,0!==(128&t)&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){(0,r.exists)(this,!1),(0,r.bytes)(e),this.finish();const t=this.state,{blockLen:n}=this;for(let r=0,a=e.length;r<a;){this.posOut>=n&&this.keccak();const i=Math.min(n-this.posOut,a-r);e.set(t.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return e}xofInto(e){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,r.number)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,r.output)(e,this),this.finished)throw new Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:a,enableXOF:i}=this;return e||(e=new w(t,n,r,i,a)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=a,e.suffix=n,e.outputLen=r,e.enableXOF=i,e.destroyed=this.destroyed,e}}t.Keccak=w;const E=(e,t,n)=>(0,i.wrapConstructor)((()=>new w(t,e,n)));t.sha3_224=E(6,144,28),t.sha3_256=E(6,136,32),t.sha3_384=E(6,104,48),t.sha3_512=E(6,72,64),t.keccak_224=E(1,144,28),t.keccak_256=E(1,136,32),t.keccak_384=E(1,104,48),t.keccak_512=E(1,72,64);const A=(e,t,n)=>(0,i.wrapXOFConstructorWithOpts)((function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new w(t,e,void 0===r.dkLen?n:r.dkLen,!0)}));t.shake128=A(31,168,16),t.shake256=A(31,136,32)},91855:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha384=t.sha512_256=t.sha512_224=t.sha512=t.SHA512=void 0;const r=n(20747),a=n(34995),i=n(74361),[o,s]=(()=>a.default.split(["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((e=>BigInt(e)))))(),f=new Uint32Array(80),c=new Uint32Array(80);class l extends r.SHA2{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:e,Al:t,Bh:n,Bl:r,Ch:a,Cl:i,Dh:o,Dl:s,Eh:f,El:c,Fh:l,Fl:u,Gh:d,Gl:p,Hh:h,Hl:b}=this;return[e,t,n,r,a,i,o,s,f,c,l,u,d,p,h,b]}set(e,t,n,r,a,i,o,s,f,c,l,u,d,p,h,b){this.Ah=0|e,this.Al=0|t,this.Bh=0|n,this.Bl=0|r,this.Ch=0|a,this.Cl=0|i,this.Dh=0|o,this.Dl=0|s,this.Eh=0|f,this.El=0|c,this.Fh=0|l,this.Fl=0|u,this.Gh=0|d,this.Gl=0|p,this.Hh=0|h,this.Hl=0|b}process(e,t){for(let a=0;a<16;a++,t+=4)f[a]=e.getUint32(t),c[a]=e.getUint32(t+=4);for(let o=16;o<80;o++){const e=0|f[o-15],t=0|c[o-15],n=a.default.rotrSH(e,t,1)^a.default.rotrSH(e,t,8)^a.default.shrSH(e,t,7),r=a.default.rotrSL(e,t,1)^a.default.rotrSL(e,t,8)^a.default.shrSL(e,t,7),i=0|f[o-2],s=0|c[o-2],l=a.default.rotrSH(i,s,19)^a.default.rotrBH(i,s,61)^a.default.shrSH(i,s,6),u=a.default.rotrSL(i,s,19)^a.default.rotrBL(i,s,61)^a.default.shrSL(i,s,6),d=a.default.add4L(r,u,c[o-7],c[o-16]),p=a.default.add4H(d,n,l,f[o-7],f[o-16]);f[o]=0|p,c[o]=0|d}let{Ah:n,Al:r,Bh:i,Bl:l,Ch:u,Cl:d,Dh:p,Dl:h,Eh:b,El:y,Fh:m,Fl:g,Gh:v,Gl:w,Hh:E,Hl:A}=this;for(let P=0;P<80;P++){const e=a.default.rotrSH(b,y,14)^a.default.rotrSH(b,y,18)^a.default.rotrBH(b,y,41),t=a.default.rotrSL(b,y,14)^a.default.rotrSL(b,y,18)^a.default.rotrBL(b,y,41),_=b&m^~b&v,T=y&g^~y&w,k=a.default.add5L(A,t,T,s[P],c[P]),C=a.default.add5H(k,E,e,_,o[P],f[P]),x=0|k,O=a.default.rotrSH(n,r,28)^a.default.rotrBH(n,r,34)^a.default.rotrBH(n,r,39),S=a.default.rotrSL(n,r,28)^a.default.rotrBL(n,r,34)^a.default.rotrBL(n,r,39),R=n&i^n&u^i&u,I=r&l^r&d^l&d;E=0|v,A=0|w,v=0|m,w=0|g,m=0|b,g=0|y,({h:b,l:y}=a.default.add(0|p,0|h,0|C,0|x)),p=0|u,h=0|d,u=0|i,d=0|l,i=0|n,l=0|r;const N=a.default.add3L(x,S,I);n=a.default.add3H(N,C,O,R),r=0|N}({h:n,l:r}=a.default.add(0|this.Ah,0|this.Al,0|n,0|r)),({h:i,l:l}=a.default.add(0|this.Bh,0|this.Bl,0|i,0|l)),({h:u,l:d}=a.default.add(0|this.Ch,0|this.Cl,0|u,0|d)),({h:p,l:h}=a.default.add(0|this.Dh,0|this.Dl,0|p,0|h)),({h:b,l:y}=a.default.add(0|this.Eh,0|this.El,0|b,0|y)),({h:m,l:g}=a.default.add(0|this.Fh,0|this.Fl,0|m,0|g)),({h:v,l:w}=a.default.add(0|this.Gh,0|this.Gl,0|v,0|w)),({h:E,l:A}=a.default.add(0|this.Hh,0|this.Hl,0|E,0|A)),this.set(n,r,i,l,u,d,p,h,b,y,m,g,v,w,E,A)}roundClean(){f.fill(0),c.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}t.SHA512=l;class u extends l{constructor(){super(),this.Ah=-1942145080,this.Al=424955298,this.Bh=1944164710,this.Bl=-1982016298,this.Ch=502970286,this.Cl=855612546,this.Dh=1738396948,this.Dl=1479516111,this.Eh=258812777,this.El=2077511080,this.Fh=2011393907,this.Fl=79989058,this.Gh=1067287976,this.Gl=1780299464,this.Hh=286451373,this.Hl=-1848208735,this.outputLen=28}}class d extends l{constructor(){super(),this.Ah=573645204,this.Al=-64227540,this.Bh=-1621794909,this.Bl=-934517566,this.Ch=596883563,this.Cl=1867755857,this.Dh=-1774684391,this.Dl=1497426621,this.Eh=-1775747358,this.El=-1467023389,this.Fh=-1101128155,this.Fl=1401305490,this.Gh=721525244,this.Gl=746961066,this.Hh=246885852,this.Hl=-2117784414,this.outputLen=32}}class p extends l{constructor(){super(),this.Ah=-876896931,this.Al=-1056596264,this.Bh=1654270250,this.Bl=914150663,this.Ch=-1856437926,this.Cl=812702999,this.Dh=355462360,this.Dl=-150054599,this.Eh=1731405415,this.El=-4191439,this.Fh=-1900787065,this.Fl=1750603025,this.Gh=-619958771,this.Gl=1694076839,this.Hh=1203062813,this.Hl=-1090891868,this.outputLen=48}}t.sha512=(0,i.wrapConstructor)((()=>new l)),t.sha512_224=(0,i.wrapConstructor)((()=>new u)),t.sha512_256=(0,i.wrapConstructor)((()=>new d)),t.sha384=(0,i.wrapConstructor)((()=>new p))},74361:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.wrapXOFConstructorWithOpts=t.wrapConstructorWithOpts=t.wrapConstructor=t.checkOpts=t.Hash=t.concatBytes=t.toBytes=t.utf8ToBytes=t.asyncLoop=t.nextTick=t.hexToBytes=t.bytesToHex=t.isLE=t.rotr=t.createView=t.u32=t.u8=void 0;const r=n(26164),a=e=>e instanceof Uint8Array;t.u8=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.u32=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));t.createView=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);if(t.rotr=(e,t)=>e<<32-t|e>>>t,t.isLE=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],!t.isLE)throw new Error("Non little-endian hardware is not supported");const i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));t.bytesToHex=function(e){if(!a(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n<e.length;n++)t+=i[e[n]];return t},t.hexToBytes=function(e){if("string"!==typeof e)throw new Error("hex string expected, got "+typeof e);const t=e.length;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(t/2);for(let r=0;r<n.length;r++){const t=2*r,a=e.slice(t,t+2),i=Number.parseInt(a,16);if(Number.isNaN(i)||i<0)throw new Error("Invalid byte sequence");n[r]=i}return n};function o(e){if("string"!==typeof e)throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array((new TextEncoder).encode(e))}function s(e){if("string"===typeof e&&(e=o(e)),!a(e))throw new Error("expected Uint8Array, got "+typeof e);return e}t.nextTick=async()=>{},t.asyncLoop=async function(e,n,r){let a=Date.now();for(let i=0;i<e;i++){r(i);const e=Date.now()-a;e>=0&&e<n||(await(0,t.nextTick)(),a+=e)}},t.utf8ToBytes=o,t.toBytes=s,t.concatBytes=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new Uint8Array(t.reduce(((e,t)=>e+t.length),0));let i=0;return t.forEach((e=>{if(!a(e))throw new Error("Uint8Array expected");r.set(e,i),i+=e.length})),r};t.Hash=class{clone(){return this._cloneInto()}};const f={}.toString;t.checkOpts=function(e,t){if(void 0!==t&&"[object Object]"!==f.call(t))throw new Error("Options should be object or undefined");return Object.assign(e,t)},t.wrapConstructor=function(e){const t=t=>e().update(s(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t},t.wrapConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(s(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.wrapXOFConstructorWithOpts=function(e){const t=(t,n)=>e(n).update(s(t)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=t=>e(t),t},t.randomBytes=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32;if(r.crypto&&"function"===typeof r.crypto.getRandomValues)return r.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}},57517:(e,t,n)=>{"use strict";n.d(t,{I:()=>r});var r='{\n  "connect_wallet": {\n    "label": "Connect Wallet",\n    "wrong_network": {\n      "label": "Wrong network"\n    }\n  },\n\n  "intro": {\n    "title": "What is a Wallet?",\n    "description": "A wallet is used to send, receive, store, and display digital assets. It\'s also a new way to log in, without needing to create new accounts and passwords on every website.",\n    "digital_asset": {\n      "title": "A Home for your Digital Assets",\n      "description": "Wallets are used to send, receive, store, and display digital assets like Ethereum and NFTs."\n    },\n    "login": {\n      "title": "A New Way to Log In",\n      "description": "Instead of creating new accounts and passwords on every website, just connect your wallet."\n    },\n    "get": {\n      "label": "Get a Wallet"\n    },\n    "learn_more": {\n      "label": "Learn More"\n    }\n  },\n\n  "sign_in": {\n    "label": "Verify your account",\n    "description": "To finish connecting, you must sign a message in your wallet to verify that you are the owner of this account.",\n    "message": {\n      "send": "Sign message",\n      "preparing": "Preparing message...",\n      "cancel": "Cancel",\n      "preparing_error": "Error preparing message, please retry!"\n    },\n    "signature": {\n      "waiting": "Waiting for signature...",\n      "verifying": "Verifying signature...",\n      "signing_error": "Error signing message, please retry!",\n      "verifying_error": "Error verifying signature, please retry!",\n      "oops_error": "Oops, something went wrong!"\n    }\n  },\n\n  "connect": {\n    "label": "Connect",\n    "title": "Connect a Wallet",\n    "new_to_ethereum": {\n      "description": "New to Ethereum wallets?",\n      "learn_more": {\n        "label": "Learn More"\n      }\n    },\n    "learn_more": {\n      "label": "Learn more"\n    },\n    "recent": "Recent",\n    "status": {\n      "opening": "Opening %{wallet}...",\n      "connecting": "Connecting",\n      "connect_mobile": "Continue in %{wallet}",\n      "not_installed": "%{wallet} is not installed",\n      "not_available": "%{wallet} is not available",\n      "confirm": "Confirm connection in the extension",\n      "confirm_mobile": "Accept connection request in the wallet"\n    },\n    "secondary_action": {\n      "get": {\n        "description": "Don\'t have %{wallet}?",\n        "label": "GET"\n      },\n      "install": {\n        "label": "INSTALL"\n      },\n      "retry": {\n        "label": "RETRY"\n      }\n    },\n    "walletconnect": {\n      "description": {\n        "full": "Need the official WalletConnect modal?",\n        "compact": "Need the WalletConnect modal?"\n      },\n      "open": {\n        "label": "OPEN"\n      }\n    }\n  },\n\n  "connect_scan": {\n    "title": "Scan with %{wallet}",\n    "fallback_title": "Scan with your phone"\n  },\n\n  "connector_group": {\n    "installed": "Installed",\n    "recommended": "Recommended",\n    "other": "Other",\n    "popular": "Popular",\n    "more": "More",\n    "others": "Others"\n  },\n\n  "get": {\n    "title": "Get a Wallet",\n    "action": {\n      "label": "GET"\n    },\n    "mobile": {\n      "description": "Mobile Wallet"\n    },\n    "extension": {\n      "description": "Browser Extension"\n    },\n    "mobile_and_extension": {\n      "description": "Mobile Wallet and Extension"\n    },\n    "mobile_and_desktop": {\n      "description": "Mobile and Desktop Wallet"\n    },\n    "looking_for": {\n      "title": "Not what you\'re looking for?",\n      "mobile": {\n        "description": "Select a wallet on the main screen to get started with a different wallet provider."\n      },\n      "desktop": {\n        "compact_description": "Select a wallet on the main screen to get started with a different wallet provider.",\n        "wide_description": "Select a wallet on the left to get started with a different wallet provider."\n      }\n    }\n  },\n\n  "get_options": {\n    "title": "Get started with %{wallet}",\n    "short_title": "Get %{wallet}",\n    "mobile": {\n      "title": "%{wallet} for Mobile",\n      "description": "Use the mobile wallet to explore the world of Ethereum.",\n      "download": {\n        "label": "Get the app"\n      }\n    },\n    "extension": {\n      "title": "%{wallet} for %{browser}",\n      "description": "Access your wallet right from your favorite web browser.",\n      "download": {\n        "label": "Add to %{browser}"\n      }\n    },\n    "desktop": {\n      "title": "%{wallet} for %{platform}",\n      "description": "Access your wallet natively from your powerful desktop.",\n      "download": {\n        "label": "Add to %{platform}"\n      }\n    }\n  },\n\n  "get_mobile": {\n    "title": "Install %{wallet}",\n    "description": "Scan with your phone to download on iOS or Android",\n    "continue": {\n      "label": "Continue"\n    }\n  },\n\n  "get_instructions": {\n    "mobile": {\n      "connect": {\n        "label": "Connect"\n      },\n      "learn_more": {\n        "label": "Learn More"\n      }\n    },\n    "extension": {\n      "refresh": {\n        "label": "Refresh"\n      },\n      "learn_more": {\n        "label": "Learn More"\n      }\n    },\n    "desktop": {\n      "connect": {\n        "label": "Connect"\n      },\n      "learn_more": {\n        "label": "Learn More"\n      }\n    }\n  },\n\n  "chains": {\n    "title": "Switch Networks",\n    "wrong_network": "Wrong network detected, switch or disconnect to continue.",\n    "confirm": "Confirm in Wallet",\n    "switching_not_supported": "Your wallet does not support switching networks from %{appName}. Try switching networks from within your wallet instead.",\n    "switching_not_supported_fallback": "Your wallet does not support switching networks from this app. Try switching networks from within your wallet instead.",\n    "disconnect": "Disconnect",\n    "connected": "Connected"\n  },\n\n  "profile": {\n    "disconnect": {\n      "label": "Disconnect"\n    },\n    "copy_address": {\n      "label": "Copy Address",\n      "copied": "Copied!"\n    },\n    "explorer": {\n      "label": "View more on explorer"\n    },\n    "transactions": {\n      "description": "%{appName} transactions will appear here...",\n      "description_fallback": "Your transactions will appear here...",\n      "recent": {\n        "title": "Recent Transactions"\n      },\n      "clear": {\n        "label": "Clear All"\n      }\n    }\n  },\n\n  "wallet_connectors": {\n    "argent": {\n      "qr_code": {\n        "step1": {\n          "description": "Put Argent on your home screen for faster access to your wallet.",\n          "title": "Open the Argent app"\n        },\n        "step2": {\n          "description": "Create a wallet and username, or import an existing wallet.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the Scan QR button"\n        }\n      }\n    },\n\n    "bifrost": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting Bifrost Wallet on your home screen for quicker access.",\n          "title": "Open the Bifrost Wallet app"\n        },\n        "step2": {\n          "description": "Create or import a wallet using your recovery phrase.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the scan button"\n        }\n      }\n    },\n\n    "bitget": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting Bitget Wallet on your home screen for quicker access.",\n          "title": "Open the Bitget Wallet app"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the scan button"\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Bitget Wallet to your taskbar for quicker access to your wallet.",\n          "title": "Install the Bitget Wallet extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "bitski": {\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Bitski to your taskbar for quicker access to your wallet.",\n          "title": "Install the Bitski extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "bitverse": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Bitverse Wallet app",\n          "description": "Add Bitverse Wallet to your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap the QR icon and scan",\n          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "bloom": {\n      "desktop": {\n        "step1": {\n          "title": "Open the Bloom Wallet app",\n          "description": "We recommend putting Bloom Wallet on your home screen for quicker access."\n        },\n        "step2": {\n          "description": "Create or import a wallet using your recovery phrase.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you have a wallet, click on Connect to connect via Bloom. A connection prompt in the app will appear for you to confirm the connection.",\n          "title": "Click on Connect"\n        }\n      },\n      "qr_code": {\n        "step1": {\n          "title": "Open the Bloom Wallet app",\n          "description": "We recommend putting Bloom Wallet on your home screen for quicker access."\n        },\n        "step2": {\n          "description": "Create or import a wallet using your recovery phrase.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you have a wallet, click on Connect to connect via Bloom. A connection prompt in the app will appear for you to confirm the connection.",\n          "title": "Click on Connect"\n        }\n      }\n    },\n\n    "bybit": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting Bybit on your home screen for faster access to your wallet.",\n          "title": "Open the Bybit app"\n        },\n        "step2": {\n          "description": "You can easily backup your wallet using our backup feature on your phone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the scan button"\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "description": "Click at the top right of your browser and pin Bybit Wallet for easy access.",\n          "title": "Install the Bybit Wallet extension"\n        },\n        "step2": {\n          "description": "Create a new wallet or import an existing one.",\n          "title": "Create or Import a wallet"\n        },\n        "step3": {\n          "description": "Once you set up Bybit Wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "coin98": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting Coin98 Wallet on your home screen for faster access to your wallet.",\n          "title": "Open the Coin98 Wallet app"\n        },\n        "step2": {\n          "description": "You can easily backup your wallet using our backup feature on your phone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the WalletConnect button"\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "description": "Click at the top right of your browser and pin Coin98 Wallet for easy access.",\n          "title": "Install the Coin98 Wallet extension"\n        },\n        "step2": {\n          "description": "Create a new wallet or import an existing one.",\n          "title": "Create or Import a wallet"\n        },\n        "step3": {\n          "description": "Once you set up Coin98 Wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "coinbase": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting Coinbase Wallet on your home screen for quicker access.",\n          "title": "Open the Coinbase Wallet app"\n        },\n        "step2": {\n          "description": "You can easily backup your wallet using the cloud backup feature.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the scan button"\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Coinbase Wallet to your taskbar for quicker access to your wallet.",\n          "title": "Install the Coinbase Wallet extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "compass": {\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Compass Wallet to your taskbar for quicker access to your wallet.",\n          "title": "Install the Compass Wallet extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "core": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting Core on your home screen for faster access to your wallet.",\n          "title": "Open the Core app"\n        },\n        "step2": {\n          "description": "You can easily backup your wallet using our backup feature on your phone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the WalletConnect button"\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Core to your taskbar for quicker access to your wallet.",\n          "title": "Install the Core extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "fox": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting FoxWallet on your home screen for quicker access.",\n          "title": "Open the FoxWallet app"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the scan button"\n        }\n      }\n    },\n\n    "frontier": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting Frontier Wallet on your home screen for quicker access.",\n          "title": "Open the Frontier Wallet app"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the scan button"\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Frontier Wallet to your taskbar for quicker access to your wallet.",\n          "title": "Install the Frontier Wallet extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "im_token": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the imToken app",\n          "description": "Put imToken app on your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap Scanner Icon in top right corner",\n          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "kaikas": {\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Kaikas to your taskbar for quicker access to your wallet.",\n          "title": "Install the Kaikas extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      },\n      "qr_code": {\n        "step1": {\n          "title": "Open the Kaikas app",\n          "description": "Put Kaikas app on your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap Scanner Icon in top right corner",\n          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "kraken": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Kraken Wallet app",\n          "description": "Add Kraken Wallet to your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap the QR icon and scan",\n          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "kresus": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Kresus Wallet app",\n          "description": "Add Kresus Wallet to your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap the QR icon and scan",\n          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "magicEden": {\n      "extension": {\n        "step1": {\n          "title": "Install the Magic Eden extension",\n          "description": "We recommend pinning Magic Eden to your taskbar for easier access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "metamask": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the MetaMask app",\n          "description": "We recommend putting MetaMask on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "title": "Install the MetaMask extension",\n          "description": "We recommend pinning MetaMask to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "nestwallet": {\n      "extension": {\n        "step1": {\n          "title": "Install the NestWallet extension",\n          "description": "We recommend pinning NestWallet to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "okx": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the OKX Wallet app",\n          "description": "We recommend putting OKX Wallet on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "title": "Install the OKX Wallet extension",\n          "description": "We recommend pinning OKX Wallet to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "omni": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Omni app",\n          "description": "Add Omni to your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap the QR icon and scan",\n          "description": "Tap the QR icon on your home screen, scan the code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "1inch": {\n      "qr_code": {\n        "step1": {\n          "description": "Put 1inch Wallet on your home screen for faster access to your wallet.",\n          "title": "Open the 1inch Wallet app"\n        },\n        "step2": {\n          "description": "Create a wallet and username, or import an existing wallet.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the Scan QR button"\n        }\n      }\n    },\n\n    "token_pocket": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the TokenPocket app",\n          "description": "We recommend putting TokenPocket on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "title": "Install the TokenPocket extension",\n          "description": "We recommend pinning TokenPocket to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "trust": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Trust Wallet app",\n          "description": "Put Trust Wallet on your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap WalletConnect in Settings",\n          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "title": "Install the Trust Wallet extension",\n          "description": "Click at the top right of your browser and pin Trust Wallet for easy access."\n        },\n        "step2": {\n          "title": "Create or Import a wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up Trust Wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "uniswap": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Uniswap app",\n          "description": "Add Uniswap Wallet to your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap the QR icon and scan",\n          "description": "Tap the QR icon on your homescreen, scan the code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "zerion": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Zerion app",\n          "description": "We recommend putting Zerion on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "title": "Install the Zerion extension",\n          "description": "We recommend pinning Zerion to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "rainbow": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Rainbow app",\n          "description": "We recommend putting Rainbow on your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "You can easily backup your wallet using our backup feature on your phone."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      }\n    },\n\n    "enkrypt": {\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Enkrypt Wallet to your taskbar for quicker access to your wallet.",\n          "title": "Install the Enkrypt Wallet extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "frame": {\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Frame to your taskbar for quicker access to your wallet.",\n          "title": "Install Frame & the companion extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "one_key": {\n      "extension": {\n        "step1": {\n          "title": "Install the OneKey Wallet extension",\n          "description": "We recommend pinning OneKey Wallet to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "phantom": {\n      "extension": {\n        "step1": {\n          "title": "Install the Phantom extension",\n          "description": "We recommend pinning Phantom to your taskbar for easier access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret recovery phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "rabby": {\n      "extension": {\n        "step1": {\n          "title": "Install the Rabby extension",\n          "description": "We recommend pinning Rabby to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "ronin": {\n      "qr_code": {\n        "step1": {\n          "description": "We recommend putting Ronin Wallet on your home screen for quicker access.",\n          "title": "Open the Ronin Wallet app"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet.",\n          "title": "Tap the scan button"\n        }\n      },\n\n      "extension": {\n        "step1": {\n          "description": "We recommend pinning Ronin Wallet to your taskbar for quicker access to your wallet.",\n          "title": "Install the Ronin Wallet extension"\n        },\n        "step2": {\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone.",\n          "title": "Create or Import a Wallet"\n        },\n        "step3": {\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension.",\n          "title": "Refresh your browser"\n        }\n      }\n    },\n\n    "ramper": {\n      "extension": {\n        "step1": {\n          "title": "Install the Ramper extension",\n          "description": "We recommend pinning Ramper to your taskbar for easier access to your wallet."\n        },\n        "step2": {\n          "title": "Create a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "safeheron": {\n      "extension": {\n        "step1": {\n          "title": "Install the Core extension",\n          "description": "We recommend pinning Safeheron to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "taho": {\n      "extension": {\n        "step1": {\n          "title": "Install the Taho extension",\n          "description": "We recommend pinning Taho to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "talisman": {\n      "extension": {\n        "step1": {\n          "title": "Install the Talisman extension",\n          "description": "We recommend pinning Talisman to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import an Ethereum Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "xdefi": {\n      "extension": {\n        "step1": {\n          "title": "Install the XDEFI Wallet extension",\n          "description": "We recommend pinning XDEFI Wallet to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "zeal": {\n      "extension": {\n        "step1": {\n          "title": "Install the Zeal extension",\n          "description": "We recommend pinning Zeal to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "safepal": {\n      "extension": {\n        "step1": {\n          "title": "Install the SafePal Wallet extension",\n          "description": "Click at the top right of your browser and pin SafePal Wallet for easy access."\n        },\n        "step2": {\n          "title": "Create or Import a wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up SafePal Wallet, click below to refresh the browser and load up the extension."\n        }\n      },\n      "qr_code": {\n        "step1": {\n          "title": "Open the SafePal Wallet app",\n          "description": "Put SafePal Wallet on your home screen for faster access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Create a new wallet or import an existing one."\n        },\n        "step3": {\n          "title": "Tap WalletConnect in Settings",\n          "description": "Choose New Connection, then scan the QR code and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "desig": {\n      "extension": {\n        "step1": {\n          "title": "Install the Desig extension",\n          "description": "We recommend pinning Desig to your taskbar for easier access to your wallet."\n        },\n        "step2": {\n          "title": "Create a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      }\n    },\n\n    "subwallet": {\n      "extension": {\n        "step1": {\n          "title": "Install the SubWallet extension",\n          "description": "We recommend pinning SubWallet to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your recovery phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      },\n      "qr_code": {\n        "step1": {\n          "title": "Open the SubWallet app",\n          "description": "We recommend putting SubWallet on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      }\n    },\n\n    "clv": {\n      "extension": {\n        "step1": {\n          "title": "Install the CLV Wallet extension",\n          "description": "We recommend pinning CLV Wallet to your taskbar for quicker access to your wallet."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Refresh your browser",\n          "description": "Once you set up your wallet, click below to refresh the browser and load up the extension."\n        }\n      },\n      "qr_code": {\n        "step1": {\n          "title": "Open the CLV Wallet app",\n          "description": "We recommend putting CLV Wallet on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Create or Import a Wallet",\n          "description": "Be sure to back up your wallet using a secure method. Never share your secret phrase with anyone."\n        },\n        "step3": {\n          "title": "Tap the scan button",\n          "description": "After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      }\n    },\n\n    "okto": {\n      "qr_code": {\n        "step1": {\n          "title": "Open the Okto app",\n          "description": "Add Okto to your home screen for quick access"\n        },\n        "step2": {\n          "title": "Create an MPC Wallet",\n          "description": "Create an account and generate a wallet"\n        },\n        "step3": {\n          "title": "Tap WalletConnect in Settings",\n          "description": "Tap the Scan QR icon at the top right and confirm the prompt to connect."\n        }\n      }\n    },\n\n    "ledger": {\n      "desktop": {\n        "step1": {\n          "title": "Open the Ledger Live app",\n          "description": "We recommend putting Ledger Live on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Set up your Ledger",\n          "description": "Set up a new Ledger or connect to an existing one."\n        },\n        "step3": {\n          "title": "Connect",\n          "description": "A connection prompt will appear for you to connect your wallet."\n        }\n      },\n      "qr_code": {\n        "step1": {\n          "title": "Open the Ledger Live app",\n          "description": "We recommend putting Ledger Live on your home screen for quicker access."\n        },\n        "step2": {\n          "title": "Set up your Ledger",\n          "description": "You can either sync with the desktop app or connect your Ledger."\n        },\n        "step3": {\n          "title": "Scan the code",\n          "description": "Tap WalletConnect then Switch to Scanner. After you scan, a connection prompt will appear for you to connect your wallet."\n        }\n      }\n    }\n  }\n}\n'},45683:(e,t,n)=>{"use strict";n.d(t,{pj:()=>Gi,vX:()=>Xs,d0:()=>$s,We:()=>Ns});var r='-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',a={rounded:`SFRounded, ui-rounded, "SF Pro Rounded", ${r}`,system:r},i={large:{actionButton:"9999px",connectButton:"12px",modal:"24px",modalMobile:"28px"},medium:{actionButton:"10px",connectButton:"8px",modal:"16px",modalMobile:"18px"},none:{actionButton:"0px",connectButton:"0px",modal:"0px",modalMobile:"0px"},small:{actionButton:"4px",connectButton:"4px",modal:"8px",modalMobile:"8px"}},o={large:{modalOverlay:"blur(20px)"},none:{modalOverlay:"blur(0px)"},small:{modalOverlay:"blur(4px)"}},s=e=>{let{borderRadius:t="large",fontStack:n="rounded",overlayBlur:r="none"}=e;return{blurs:{modalOverlay:o[r].modalOverlay},fonts:{body:a[n]},radii:{actionButton:i[t].actionButton,connectButton:i[t].connectButton,menuButton:i[t].connectButton,modal:i[t].modal,modalMobile:i[t].modalMobile}}},f={blue:{accentColor:"#0E76FD",accentColorForeground:"#FFF"},green:{accentColor:"#1DB847",accentColorForeground:"#FFF"},orange:{accentColor:"#FF801F",accentColorForeground:"#FFF"},pink:{accentColor:"#FF5CA0",accentColorForeground:"#FFF"},purple:{accentColor:"#5F5AFA",accentColorForeground:"#FFF"},red:{accentColor:"#FA423C",accentColorForeground:"#FFF"}},c=f.blue,l=function(){let{accentColor:e=c.accentColor,accentColorForeground:t=c.accentColorForeground,...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...s(n),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(0, 0, 0, 0.04)",actionButtonBorderMobile:"rgba(0, 0, 0, 0.06)",actionButtonSecondaryBackground:"rgba(0, 0, 0, 0.06)",closeButton:"rgba(60, 66, 66, 0.8)",closeButtonBackground:"rgba(0, 0, 0, 0.06)",connectButtonBackground:"#FFF",connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.06))",connectButtonText:"#25292E",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(255, 255, 255, 0) 9.49%, rgba(171, 171, 171, 0.04) 71.04%), #FFFFFF",downloadTopCardBackground:"linear-gradient(126deg, rgba(171, 171, 171, 0.2) 9.49%, rgba(255, 255, 255, 0) 71.04%), #FFFFFF",error:"#FF494A",generalBorder:"rgba(0, 0, 0, 0.06)",generalBorderDim:"rgba(0, 0, 0, 0.03)",menuItemBackground:"rgba(60, 66, 66, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.3)",modalBackground:"#FFF",modalBorder:"transparent",modalText:"#25292E",modalTextDim:"rgba(60, 66, 66, 0.3)",modalTextSecondary:"rgba(60, 66, 66, 0.6)",profileAction:"#FFF",profileActionHover:"rgba(255, 255, 255, 0.5)",profileForeground:"rgba(60, 66, 66, 0.06)",selectedOptionBorder:"rgba(60, 66, 66, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.12)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}}};l.accentColors=f;var u=n(57517),d=n(72791);var p=function(e,t){return Object.defineProperty(e,"__recipe__",{value:t,writable:!1}),e};function h(e){var{conditions:t}=e;if(!t)throw new Error("Styles have no conditions");return p((function(e){if("string"===typeof e||"number"===typeof e||"boolean"===typeof e){if(!t.defaultCondition)throw new Error("No default condition");return{[t.defaultCondition]:e}}if(Array.isArray(e)){if(!("responsiveArray"in t))throw new Error("Responsive arrays are not supported");var n={};for(var r in t.responsiveArray)null!=e[r]&&(n[t.responsiveArray[r]]=e[r]);return n}return e}),{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createNormalizeValueFn",args:[{conditions:e.conditions}]})}function b(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}function y(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v=e=>e,w=function(){return(e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=Object.assign({},...n.map((e=>e.styles))),i=Object.keys(a),o=i.filter((e=>"mappings"in a[e]));return Object.assign((t=>{var n=[],r={},i=g({},t),s=!1;for(var f of o){var c=t[f];if(null!=c){var l=a[f];for(var u of(s=!0,l.mappings))r[u]=c,null==i[u]&&delete i[u]}}var d=s?g(g({},r),i):t,p=function(){var e=d[h],t=a[h];try{if(t.mappings)return"continue";if("string"===typeof e||"number"===typeof e)n.push(t.values[e].defaultClass);else if(Array.isArray(e))for(var r=0;r<e.length;r++){var i=e[r];if(null!=i){var o=t.responsiveArray[r];n.push(t.values[i].conditions[o])}}else for(var s in e){var f=e[s];null!=f&&n.push(t.values[f].conditions[s])}}catch(c){throw c}};for(var h in d)p();return e(n.join(" "))}),{properties:new Set(i)})})(v)(...arguments)},E=n(77404);function A(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=A(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}const P=function(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=A(e))&&(r&&(r+=" "),r+=t);return r};var _=n(81229),T=n(86011),k=n(58657),C=n(37881),x=n(26971),O=n(52971),S=n(46105),R=n(10664);function I(e){return"number"===typeof e?e:"wei"===e?0:Math.abs(R.Bd[e])}var N=n(42450);var B=n(65388);async function j(e,t){const{allowFailure:n=!0,blockNumber:r,blockTag:a,...i}=t,o=t.contracts;try{const t=o.reduce(((t,n,r)=>{const a=n.chainId??e.state.chainId;return{...t,[a]:[...t[a]||[],{contract:n,index:r}]}}),{}),s=()=>Object.entries(t).map((t=>{let[o,s]=t;return async function(e,t){const{allowFailure:n=!0,chainId:r,contracts:a,...i}=t,o=e.getClient({chainId:r});return(0,S.s)(o,N.A,"multicall")({allowFailure:n,contracts:a,...i})}(e,{...i,allowFailure:n,blockNumber:r,blockTag:a,chainId:parseInt(o),contracts:s.map((e=>{let{contract:t}=e;return t}))})})),f=(await Promise.all(s())).flat(),c=Object.values(t).flatMap((e=>e.map((e=>{let{index:t}=e;return t}))));return f.reduce(((e,t,n)=>(e&&(e[c[n]]=t),e)),[])}catch(s){if(s instanceof T.uq)throw s;const t=()=>o.map((t=>function(e,t){const{chainId:n,...r}=t,a=e.getClient({chainId:n});return(0,S.s)(a,B.L,"readContract")(r)}(e,{...t,blockNumber:r,blockTag:a})));return n?(await Promise.allSettled(t())).map((e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"})):await Promise.all(t())}}async function D(e,t){const{balanceAddress:n,chainId:r,symbolType:a,tokenAddress:i,unit:o}=t,s={abi:[{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:a}]}],address:i},[f,c,l]=await j(e,{allowFailure:!1,contracts:[{...s,functionName:"balanceOf",args:[n],chainId:r},{...s,functionName:"decimals",chainId:r},{...s,functionName:"symbol",chainId:r}]});return{decimals:c,formatted:(0,x.b)(f??"0",I(o??c)),symbol:l,value:f}}var L=n(91124);function M(e){return{async queryFn(t){let{queryKey:n}=t;const{address:r,scopeKey:a,...i}=n[1];if(!r)throw new Error("address is required");const o=await async function(e,t){const{address:n,blockNumber:r,blockTag:a,chainId:i,token:o,unit:s="ether"}=t;if(o)try{return D(e,{balanceAddress:n,chainId:i,symbolType:"string",tokenAddress:o})}catch(d){if(d instanceof T.uq){const t=await D(e,{balanceAddress:n,chainId:i,symbolType:"bytes32",tokenAddress:o}),r=(0,k.rR)((0,C.f)(t.symbol,{dir:"right"}));return{...t,symbol:r}}throw d}const f=e.getClient({chainId:i}),c=(0,S.s)(f,O.s,"getBalance"),l=await c(r?{address:n,blockNumber:r}:{address:n,blockTag:a}),u=e.chains.find((e=>e.id===i))??f.chain;return{decimals:u.nativeCurrency.decimals,formatted:(0,x.b)(l,I(s)),symbol:u.nativeCurrency.symbol,value:l}}(e,{...i,address:r});return o??null},queryKey:U(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}}function U(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["balance",(0,L.OP)(e)]}var F=n(33618),z=n(40268);function $(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{address:t,query:n={}}=e,r=(0,_.Z)(e),a=(0,z.x)({config:r}),i=M(r,{...e,chainId:e.chainId??a}),o=Boolean(t&&(n.enabled??!0));return(0,F.aM)({...n,...i,enabled:o})}var G="AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD/v3IZWHBwARKQAxALsjTwHZAeMPEzmXgIHwABIAGQA8AEUAQDt3gdvIEGcQZAkGTRFMdEIVEwK0D64L7REdDNkq09PgADSxB/MDWwfzA1sDWwfzB/MDWwfzA1sDWwNbA1scEvAi28gQZw9QBHUFlgWTBN4IiyZREYkHMAjaVBV0JhxPA00BBCMtSSQ7mzMTJUpMFE0LCAQ2SmyvfUADTzGzVP2QqgPTMlc5dAkGHnkSqAAyD3skNb1OhnpPcagKU0+2tYdJak5vAsY6sEAACikJm2/Dd1YGRRAfJ6kQ+ww3AbkBPw3xS9wE9QY/BM0fgRkdD9GVoAipLeEM8SbnLqWAXiP5KocF8Uv4POELUVFsD10LaQnnOmeBUgMlAREijwrhDT0IcRD3Cs1vDekRSQc9A9lJngCpBwULFR05FbkmFGKwCw05ewb/GvoLkyazEy17AAXXGiUGUQEtGwMA0y7rhbRaNVwgT2MGBwspI8sUrFAkDSlAu3hMGh8HGSWtApVDdEqLUToelyH6PEENai4XUYAH+TwJGVMLhTyiRq9FEhHWPpE9TCJNTDAEOYMsMyePCdMPiQy9fHYBXQklCbUMdRM1ERs3yQg9Bx0xlygnGQglRplgngT7owP3E9UDDwVDCUUHFwO5HDETMhUtBRGBKNsC9zbZLrcCk1aEARsFzw8pH+MQVEfkDu0InwJpA4cl7wAxFSUAGyKfCEdnAGOP3FMJLs8Iy2pwI3gDaxTrZRF3B5UOWwerHDcVwxzlcMxeD4YMKKezCV8BeQmdAWME5wgNNV+MpCBFZ1eLXBifIGVBQ14AAjUMaRWjRMGHfAKPD28SHwE5AXcHPQ0FAnsR8RFvEJkI74YINbkz/DopBFMhhyAVCisDU2zSCysm/Qz8bQGnEmYDEDRBd/Jnr2C6KBgBBx0yyUFkIfULlk/RDKAaxRhGVDIZ6AfDA/ca9yfuQVsGAwOnBxc6UTPyBMELbQiPCUMATQ6nGwfbGG4KdYzUATWPAbudA1uVhwJzkwY7Bw8Aaw+LBX3pACECqwinAAkA0wNbAD0CsQehAB0AiUUBQQMrMwEl6QKTA5cINc8BmTMB9y0EH8cMGQD7O25OAsO1AoBuZqYF4VwCkgJNOQFRKQQJUktVA7N15QDfAE8GF+NLARmvTs8e50cB43MvAMsA/wAJOQcJRQHRAfdxALsBYws1Caa3uQFR7S0AhwAZbwHbAo0A4QA5AIP1AVcAUQVd/QXXAlNNARU1HC9bZQG/AyMBNwERAH0Gz5GpzQsjBHEH1wIQHxXlAu8yB7kFAyLjE9FCyQK94lkAMhoKPAqrCqpgX2Q3CjV2PVQAEh+sPss/UgVVO1c7XDtXO1w7VztcO1c7XDtXO1wDm8Pmw+YKcF9JYe8Mqg3YRMw6TRPfYFVgNhPMLbsUxRXSJVoZQRrAJwkl6FUNDwgt12Y0CDA0eRfAAEMpbINFY4oeNApPHOtTlVT8LR8AtUumM7MNsBsZREQFS3XxYi4WEgomAmSFAmJGX1GzAV83JAKh+wJonAJmDQKfiDgfDwJmPwJmKgRyBIMDfxcDfpY5Cjl7GzmGOicnAmwhAjI6OA4CbcsCbbLzjgM3a0kvAWsA4gDlAE4JB5wMkQECD8YAEbkCdzMCdqZDAnlPRwJ4viFg30WyRvcCfEMCeswCfQ0CfPRIBEiBZygALxlJXEpfGRtK0ALRBQLQ0EsrA4hTA4fqRMmRNgLypV0HAwOyS9JMMSkH001QTbMCi0MCitzFHwshR2sJuwKOOwKOYESbhQKO3QKOYHxRuFM5AQ5S2FSJApP/ApMQAO0AIFUiVbNV1AosHymZijLleGpFPz0Cl6MC77ZYJawAXSkClpMCloCgAK1ZsFoNhVEAPwKWuQKWUlxIXNUCmc8CmWhczl0LHQKcnznGOqECnBoCn58CnryOACETNS4TAp31Ap6WALlBYThh8wKe1wKgcgGtAp6jIwKeUqljzGQrKS8CJ7MCJoICoP8CoFDbAqYzAqXSAqgDAIECp/ZogGi1AAdNaiBq1QKs5wKssgKtawKtBgJXIQJV4AKx5dsDH1JsmwKywRECsuwbbORtZ21MYwMl0QK2YD9DbpQDKUkCuGICuUsZArkue3A6cOUCvR0DLbYDMhUCvoxyBgMzdQK+HnMmc1MCw88CwwhzhnRPOUl05AM8qwEDPJ4DPcMCxYACxksCxhSNAshtVQLISALJUwLJMgJkoQLd1nh9ZXiyeSlL1AMYp2cGAmH4GfeVKHsPXpZevxUCz28Cz3AzT1fW9xejAMqxAs93AS3uA04Wfk8JAtwrAtuOAtJTA1JgA1NjAQUDVZCAjUMEzxrxZEl5A4LSg5EC2ssC2eKEFIRNp0ADhqkAMwNkEoZ1Xf0AWQLfaQLevHd7AuIz7RgB8zQrAfSfAfLWiwLr9wLpdH0DAur9AuroAP1LAb0C7o0C66CWrpcHAu5DA4XkmH1w5HGlAvMHAG0DjhqZlwL3FwORcgOSiwL3nAL53QL4apogmq+/O5siA52HAv7+AR8APZ8gAZ+3AwWRA6ZuA6bdANXJAwZuoYyiCQ0DDE0BEwEjB3EGZb1rCQC/BG/DFY8etxEAG3k9ACcDNxJRA42DAWcrJQCM8wAlAOanC6OVCLsGI6fJBgCvBRnDBvElRUYFFoAFcD9GSDNCKUK8X3kZX8QAls0FOgCQVCGbwTsuYDoZutcONxjOGJHJ/gVfBWAFXwVgBWsFYAVfBWAFXwVgBV8FYAVfBWBOHQjfjW8KCgoKbF7xMwTRA7kGN8PDAMMEr8MA70gxFroFTj5xPnhCR0K+X30/X/AAWBkzswCNBsxzzASm70aCRS4rDDMeLz49fnXfcsH5GcoscQFz13Y4HwVnBXLJycnACNdRYwgICAqEXoWTxgA7P4kACxbZBu21Kw0AjMsTAwkVAOVtJUUsJ1JCuULESUArXy9gPi9AKwnJRQYKTD9LPoA+iT54PnkCkULEUUpDX9NWV3JVEjQAc1w3A3IBE3YnX+g7QiMJb6MKaiszRCUuQrNCxDPMCcwEX9EWJzYREBEEBwIHKn6l33JCNVIfybPJtAltydPUCmhBZw/tEKsZAJOVJU1CLRuxbUHOQAo7P0s+eEJHHA8SJVRPdGM0NVrpvBoKhfUlM0JHHGUQUhEWO1xLSj8MO0ucNAqJIzVCRxv9EFsqKyA4OQgNj2nwZgp5ZNFgE2A1K3YHS2AhQQojJmC7DgpzGG1WYFUZCQYHZO9gHWCdYIVgu2BTYJlwFh8GvRbcXbG8YgtDHrMBwzPVyQonHQgkCyYBgQJ0Ajc4nVqIAwGSCsBPIgDsK3SWEtIVBa5N8gGjAo+kVwVIZwD/AEUSCDweX4ITrRQsJ8K3TwBXFDwEAB0TvzVcAtoTS20RIwDgVgZ9BBImYgA5AL4Coi8LFnezOkCnIQFjAY4KBAPh9RcGsgZSBsEAJctdsWIRu2kTkQstRw7DAcMBKgpPBGIGMDAwKCYnKTQaLg4AKRSVAFwCdl+YUZ0JdicFD3lPAdt1F9ZZKCGxuE3yBxkFVGcA/wBFEgiCBwAOLHQSjxOtQDg1z7deFRMAZ8QTAGtKb1ApIiPHADkAvgKiLy1DFtYCmBiDAlDDWNB0eo7fpaMO/aEVRRv0ATEQZBIODyMEAc8JQhCbDRgzFD4TAEMAu9YBCgCsAOkAm5I3ABwAYxvONnR+MhXJAxgKQyxL2+kkJhMbhQKDBMkSsvF0AD9BNQ6uQC7WqSQHwxEAEEIu1hkhAH2z4iQPwyJPHNWpdyYBRSpnJALzoBAEVPPsH20MxA0CCEQKRgAFyAtFAlMNwwjEDUQJRArELtapMg7DDZgJIw+TGukEIwvDFkMAqAtDEMMMBhioe+QAO3MMRAACrgnEBSPY9Q0FDnbSBoMAB8MSYxkSxAEJAPIJAAB8FWMOFtMc/HcXwxhDAC7DAvOowwAewwJdKDKHAAHDAALrFUQVwwAbwyvzpWMWv8wA/ABpAy++bcYDUKPD0KhDCwKmJ1MAAmMA5+UZwxAagwipBRL/eADfw6fDGOMCGsOjk3l6BwOpo4sAEsMOGxMAA5sAbcMOAAvDp0MJGkMDwgipnNIPAwfIqUMGAOGDAAPzABXDAAcDAAnDAGmTABrDAA7DChjDjnEWAwABYwAOcwAuUyYABsMAF8MIKQANUgC6wy4AA8MADqMq8wCyYgAcIwAB8wqpAAXOCx0V4wAHowBCwwEKAGnDAAuDAB3DAAjDCakABdIAbqcZ3QCZCCkABdIAAAFDAAfjAB2jCCkABqIACYMAGzMAbSMA5sOIAAhjAAhDABTDBAkpAAbSAOOTAAlDC6kOzPtnAAdDAG6kQFAATwAKwwwAA0MACbUDPwAHIwAZgwACE6cDAAojAApDAAoDp/MGwwAJIwADEwAQQwgAFEMAEXMAD5MADfMADcMAGRMOFiMAFUMAbqMWuwHDAMIAE0MLAGkzEgDhUwACQwAEWgAXgwUjAAbYABjDBSYBgzBaAEFNALcQBxUMegAwMngBrA0IZgJ0KxQHBREPd1N0ZzKRJwaIHAZqNT4DqQq8BwngAB4DAwt2AX56T1ocKQNXAh1GATQGC3tOxYNagkgAMQA5CQADAQEAWxLjAIOYNAEzAH7tFRk6TglSAF8NAAlYAQ+S1ACAQwQorQBiAN4dAJ1wPyeTANVzuQDX3AIeEMp9eyMgXiUAEdkBkJizKltbVVAaRMqRAAEAhyQ/SDEz6BmfVwB6ATEsOClKIRcDOF0E/832AFNt5AByAnkCRxGCOs94NjXdAwINGBonDBwPALW2AwICAgAAAAAAAAYDBQMDARrUAwAtAAAAAgEGBgYGBgYFBQUFBQUEBQYHCAkEBQUFBQQAAAICAAAAIgCNAJAAlT0A6gC7ANwApEQAwgCyAK0AqADuAKYA2gCjAOcBCAEDAMcAgQBiANIA1AEDAN4A8gCQAKkBMQDqAN8A3AsBCQ8yO9ra2tq8xuLT1tRJOB0BUgFcNU0BWgFpAWgBWwFMUUlLbhMBUxsNEAs6PhMOACcUKy0vMj5AQENDQ0RFFEYGJFdXV1dZWVhZL1pbXVxcI2NnZ2ZoZypsbnZ1eHh4eHh4enp6enp6enp6enp8fH18e2IARPIASQCaAHgAMgBm+ACOAFcAVwA3AnbvAIsABfj4AGQAk/IAnwBPAGIAZP//sACFAIUAaQBWALEAJAC2AIMCQAJDAPwA5wD+AP4A6AD/AOkA6QDoAOYALwJ7AVEBQAE+AVQBPgE+AT4BOQE4ATgBOAEcAVgXADEQCAEAUx8SHgsdHhYAjgCWAKYAUQBqIAIxAHYAbwCXAxUDJzIDIUlGTzEAkQJPAMcCVwKkAMAClgKWApYClgKWApYCiwKWApYClgKWApYClgKVApUCmAKgApcClgKWApQClAKUApQCkgKVAnUB1AKXAp8ClgKWApUeAIETBQD+DQOfAmECOh8BVBg9AuIZEjMbAU4/G1WZAXusRAFpYQEFA0FPAQYAmTEeIJdyADFoAHEANgCRA5zMk/C2jGINwjMWygIZCaXdfDILBCs5dAE7YnQBugDlhoiHhoiGiYqKhouOjIaNkI6Ij4qQipGGkoaThpSSlYaWhpeKmIaZhpqGm4aci52QnoqfhuIC4XTpAt90AIp0LHSoAIsAdHQEQwRABEIERQRDBEkERgRBBEcESQRIBEQERgRJAJ5udACrA490ALxuAQ10ANFZdHQA13QCFHQA/mJ0AP4BIQD+APwA/AD9APwDhGZ03ASMK23HAP4A/AD8AP0A/CR0dACRYnQA/gCRASEA/gCRAvQA/gCRA4RmdNwEjCttxyR0AP9idAEhAP4A/gD8APwA/QD8AP8A/AD8AP0A/AOEZnTcBIwrbcckdHQAkWJ0ASEA/gCRAP4AkQL0AP4AkQOEZnTcBIwrbcckdAJLAT50AlIBQXQCU8l0dAJfdHQDpgL0A6YDpgOnA6cDpwOnA4RmdNwEjCttxyR0dACRYnQBIQOmAJEDpgCRAvQDpgCRA4RmdNwEjCttxyR0BDh0AJEEOQCRDpU5dSgCADR03gV2CwArdAEFAM5iCnR0AF1iAAYcOgp0dACRCnQAXAEIwWZ0CnRmdHQAkWZ0CnRmdEXgAFF03gp0dEY0tlT2u3SOAQTwscwhjZZKrhYcBSfFp9XNbKiVDOD2b+cpe4/Z17mQnbtzzhaeQtE2GGj0IDNTjRUSyTxxw/RPHW/+vS7d1NfRt9z9QPZg4X7QFfhCnkvgNPIItOsC2eV6hPannZNHlZ9xrwZXIMOlu3jSoQSq78WEjwLjw1ELSlF1aBvfzwk5ZX7AUvQzjPQKbDuQ+sm4wNOp4A6AdVuRS0t1y/DZpg4R6m7FNjM9HgvW7Bi88zaMjOo6lM8wtBBdj8LP4ylv3zCXPhebMKJc066o9sF71oFW/8JXu86HJbwDID5lzw5GWLR/LhT0Qqnp2JQxNZNfcbLIzPy+YypqRm/lBmGmex+82+PisxUumSeJkALIT6rJezxMH+CTJmQtt5uwTVbL3ptmjDUQzlSIvWi8Tl7ng1NpuRn1Ng4n14Qc+3Iil7OwkvNWogLSPkn3pihIFytyIGmMhOe3n1tWsuMy9BdKyqF4Z3v2SgggTL9KVvMXPnCbRe+oOuFFP3HejBG/w9gvmfNYvg6JuWia2lcSSN1uIjBktzoIazOHPJZ7kKHPz8mRWVdW3lA8WGF9dQF6Bm673boov3BUWDU2JNcahR23GtfHKLOz/viZ+rYnZFaIznXO67CYEJ1fXuTRpZhYZkKe54xeoagkNGLs+NTZHE0rX45/XvQ2RGADX6vcAvdxIUBV27wxGm2zjZo4X3ILgAlrOFheuZ6wtsvaIj4yLY7qqawlliaIcrz2G+c3vscAnCkCuMzMmZvMfu9lLwTvfX+3cVSyPdN9ZwgDZhfjRgNJcLiJ67b9xx8JHswprbiE3v9UphotAPIgnXVIN5KmMc0piXhc6cChPnN+MRhG9adtdttQTTwSIpl8I4/j//d3sz1326qTBTpPRM/Hgh3kzqEXs8ZAk4ErQhNO8hzrQ0DLkWMA/N+91tn2MdOJnWC2FCZehkQrwzwbKOjhvZsbM95QoeL9skYyMf4srVPVJSgg7pOLUtr/n9eT99oe9nLtFRpjA9okV2Kj8h9k5HaC0oivRD8VyXkJ81tcd4fHNXPCfloIQasxsuO18/46dR2jgul/UIet2G0kRvnyONMKhHs6J26FEoqSqd+rfYjeEGwHWVDpX1fh1jBBcKGMqRepju9Y00mDVHC+Xdij/j44rKfvfjGinNs1jO/0F3jB83XCDINN/HB84axlP+3E/klktRo+vl3U/aiyMJbIodE1XSsDn6UAzIoMtUObY2+k/4gY/l+AkZJ5Sj2vQrkyLm3FoxjhDX+31UXBFf9XrAH31fFqoBmDEZvhvvpnZ87N+oZEu7U9O/nnk+QWj3x8uyoRbEnf+O5UMr9i0nHP38IF5AvzrBW8YWBUR0mIAzIvndQq9N3v/Jto3aPjPXUPl8ASdPPyAp7jENf8bk7VMM9ol9XGmlBmeDMuGqt+WzuL6CXAxXjIhCPM5vACchgMJ/8XBGLO/D1isVvGhwwHHr1DLaI5mn2Jr/b1pUD90uciDaS8cXNDzCWvNmT/PhQe5e8nTnnnkt8Ds/SIjibcum/fqDhKopxAY8AkSrPn+IGDEKOO+U3XOP6djFs2H5N9+orhOahiQk5KnEUWa+CzkVzhp8bMHRbg81qhjjXuIKbHjSLSIBKWqockGtKinY+z4/RdBUF6pcc3JmnlxVcNgrI4SEzKUZSwcD2QCyxzKve+gAmg6ZuSRkpPFa6mfThu7LJNu3H5K42uCpNvPAsoedolKV/LHe/eJ+BbaG5MG0NaSGVPRUmNFMFFSSpXEcXwbVh7UETOZZtoVNRGOIbbkig3McEtR68cG0RZAoJevWYo7Dg/lZ1CQzblWeUvVHmr8fY4Nqd9JJiH/zEX24mJviH60fAyFr0A3c4bC1j3yZU60VgJxXn8JgJXLUIsiBnmKmMYz+7yBQFBvqb2eYnuW59joZBf56/wXvWIR4R8wTmV80i1mZy+S4+BUES+hzjk0uXpC///z/IlqHZ1monzlXp8aCfhGKMti73FI1KbL1q6IKO4fuBuZ59gagjn5xU79muMpHXg6S+e+gDM/U9BKLHbl9l6o8czQKl4RUkJJiqftQG2i3BMg/TQlUYFkJDYBOOvAugYuzYSDnZbDDd/aSd9x0Oe6F+bJcHfl9+gp6L5/TgA+BdFFovbfCrQ40s5vMPw8866pNX8zyFGeFWdxIpPVp9Rg1UPOVFbFZrvaFq/YAzHQgqMWpahMYfqHpmwXfHL1/kpYmGuHFwT55mQu0dylfNuq2Oq0hTMCPwqfxnuBIPLXfci4Y1ANy+1CUipQxld/izVh16WyG2Q0CQQ9NqtAnx1HCHwDj7sYxOSB0wopZSnOzxQOcExmxrVTF2BkOthVpGfuhaGECfCJpJKpjnihY+xOT2QJxN61+9K6QSqtv2Shr82I3jgJrqBg0wELFZPjvHpvzTtaJnLK6Vb97Yn933koO/saN7fsjwNKzp4l2lJVx2orjCGzC/4ZL4zCver6aQYtC5sdoychuFE6ufOiog+VWi5UDkbmvmtah/3aArEBIi39s5ILUnlFLgilcGuz9CQshEY7fw2ouoILAYPVT/gyAIq3TFAIwVsl+ktkRz/qGfnCDGrm5gsl/l9QdvCWGsjPz3dU7XuqKfdUrr/6XIgjp4rey6AJBmCmUJMjITHVdFb5m1p+dLMCL8t55zD42cmftmLEJC0Da04YiRCVUBLLa8D071/N5UBNBXDh0LFsmhV/5B5ExOB4j3WVG/S3lfK5o+V6ELHvy6RR9n4ac+VsK4VE4yphPvV+kG9FegTBH4ZRXL2HytUHCduJazB/KykjfetYxOXTLws267aGOd+I+JhKP//+VnXmS90OD/jvLcVu0asyqcuYN1mSb6XTlCkqv1vigZPIYwNF/zpWcT1GR/6aEIRjkh0yhg4LXJfaGobYJTY4JI58KiAKgmmgAKWdl5nYCeLqavRJGQNuYuZtZFGx+IkI4w4NS2xwbetNMunOjBu/hmKCI/w7tfiiyUd//4rbTeWt4izBY8YvGIN6vyKYmP/8X8wHKCeN+WRcKM70+tXKNGyevU9H2Dg5BsljnTf8YbsJ1TmMs74Ce2XlHisleguhyeg44rQOHZuw/6HTkhnnurK2d62q6yS7210SsAIaR+jXMQA+svkrLpsUY+F30Uw89uOdGAR6vo4FIME0EfVVeHTu6eKicfhSqOeXJhbftcd08sWEnNUL1C9fnprTgd83IMut8onVUF0hvqzZfHduPjbjwEXIcoYmy+P6tcJZHmeOv6VrvEdkHDJecjHuHeWANe79VG662qTjA/HCvumVv3qL+LrOcpqGps2ZGwQdFJ7PU4iuyRlBrwfO+xnPyr47s2cXVbWzAyznDiBGjCM3ksxjjqM62GE9C8f5U38kB3VjtabKp/nRdvMESPGDG90bWRLAt1Qk5DyLuazRR1YzdC1c+hZXvAWV8xA72S4A8B67vjVhbba3MMop293FeEXpe7zItMWrJG/LOH9ByOXmYnNJfjmfuX9KbrpgLOba4nZ+fl8Gbdv/ihv+6wFGKHCYrVwmhFC0J3V2bn2tIB1wCc1CST3d3X2OyxhguXcs4sm679UngzofuSeBewMFJboIQHbUh/m2JhW2hG9DIvG2t7yZIzKBTz9wBtnNC+2pCRYhSIuQ1j8xsz5VvqnyUIthvuoyyu7fNIrg/KQUVmGQaqkqZk/Vx5b33/gsEs8yX7SC1J+NV4icz6bvIE7C5G6McBaI8rVg56q5QBJWxn/87Q1sPK4+sQa8fLU5gXo4paaq4cOcQ4wR0VBHPGjKh+UlPCbA1nLXyEUX45qZ8J7/Ln4FPJE2TdzD0Z8MLSNQiykMMmSyOCiFfy84Rq60emYB2vD09KjYwsoIpeDcBDTElBbXxND72yhd9pC/1CMid/5HUMvAL27OtcIJDzNKpRPNqPOpyt2aPGz9QWIs9hQ9LiX5s8m9hjTUu/f7MyIatjjd+tSfQ3ufZxPpmJhTaBtZtKLUcfOCUqADuO+QoH8B9v6U+P0HV1GLQmtoNFTb3s74ivZgjES0qfK+8RdGgBbcCMSy8eBvh98+et1KIFqSe1KQPyXULBMTsIYnysIwiZBJYdI20vseV+wuJkcqGemehKjaAb9L57xZm3g2zX0bZ2xk/fU+bCo7TlnbW7JuF1YdURo/2Gw7VclDG1W7LOtas2LX4upifZ/23rzpsnY/ALfRgrcWP5hYmV9VxVOQA1fZvp9F2UNU+7d7xRyVm5wiLp3/0dlV7vdw1PMiZrbDAYzIVqEjRY2YU03sJhPnlwIPcZUG5ltL6S8XCxU1eYS5cjr34veBmXAvy7yN4ZjArIG0dfD/5UpBNlX1ZPoxJOwyqRi3wQWtOzd4oNKh0LkoTm8cwqgIfKhqqGOhwo71I+zXnMemTv2B2AUzABWyFztGgGULjDDzWYwJUVBTjKCn5K2QGMK1CQT7SzziOjo+BhAmqBjzuc3xYym2eedGeOIRJVyTwDw37iCMe4g5Vbnsb5ZBdxOAnMT7HU4DHpxWGuQ7GeiY30Cpbvzss55+5Km1YsbD5ea3NI9QNYIXol5apgSu9dZ8f8xS5dtHpido5BclDuLWY4lhik0tbJa07yJhH0BOyEut/GRbYTS6RfiTYWGMCkNpfSHi7HvdiTglEVHKZXaVhezH4kkXiIvKopYAlPusftpE4a5IZwvw1x/eLvoDIh/zpo9FiQInsTb2SAkKHV42XYBjpJDg4374XiVb3ws4qM0s9eSQ5HzsMU4OZJKuopFjBM+dAZEl8RUMx5uU2N486Kr141tVsGQfGjORYMCJAMsxELeNT4RmWjRcpdTGBwcx6XN9drWqPmJzcrGrH4+DRc7+n1w3kPZwu0BkNr6hQrqgo7JTB9A5kdJ/H7P4cWBMwsmuixAzJB3yrQpnGIq90lxAXLzDCdn1LPibsRt7rHNjgQBklRgPZ8vTbjXdgXrTWQsK5MdrXXQVPp0Rinq3frzZKJ0qD6Qhc40VzAraUXlob1gvkhK3vpmHgI6FRlQZNx6eRqkp0zy4AQlX813fAPtL3jMRaitGFFjo0zmErloC+h+YYdVQ6k4F/epxAoF0BmqEoKNTt6j4vQZNQ2BoqF9Vj53TOIoNmDiu9Xp15RkIgQIGcoLpfoIbenzpGUAtqFJp5W+LLnx38jHeECTJ/navKY1NWfN0sY1T8/pB8kIH3DU3DX+u6W3YwpypBMYOhbSxGjq84RZ84fWJow8pyHqn4S/9J15EcCMsXqrfwyd9mhiu3+rEo9pPpoJkdZqHjra4NvzFwuThNKy6hao/SlLw3ZADUcUp3w3SRVfW2rhl80zOgTYnKE0Hs2qp1J6H3xqPqIkvUDRMFDYyRbsFI3M9MEyovPk8rlw7/0a81cDVLmBsR2ze2pBuKb23fbeZC0uXoIvDppfTwIDxk1Oq2dGesGc+oJXWJLGkOha3CX+DUnzgAp9HGH9RsPZN63Hn4RMA5eSVhPHO+9RcRb/IOgtW31V1Q5IPGtoxPjC+MEJbVlIMYADd9aHYWUIQKopuPOHmoqSkubnAKnzgKHqgIOfW5RdAgotN6BN+O2ZYHkuemLnvQ8U9THVrS1RtLmKbcC7PeeDsYznvqzeg6VCNwmr0Yyx1wnLjyT84BZz3EJyCptD3yeueAyDWIs0L2qs/VQ3HUyqfrja0V1LdDzqAikeWuV4sc7RLIB69jEIBjCkyZedoUHqCrOvShVzyd73OdrJW0hPOuQv2qOoHDc9xVb6Yu6uq3Xqp2ZaH46A7lzevbxQEmfrzvAYSJuZ4WDk1Hz3QX1LVdiUK0EvlAGAYlG3Md30r7dcPN63yqBCIj25prpvZP0nI4+EgWoFG95V596CurXpKRBGRjQlHCvy5Ib/iW8nZJWwrET3mgd6mEhfP4KCuaLjopWs7h+MdXFdIv8dHQJgg1xi1eYqB0uDYjxwVmri0Sv5XKut/onqapC+FQiC2C1lvYJ9MVco6yDYsS3AANUfMtvtbYI2hfwZatiSsnoUeMZd34GVjkMMKA+XnjJpXgRW2SHTZplVowPmJsvXy6w3cfO1AK2dvtZEKTkC/TY9LFiKHCG0DnrMQdGm2lzlBHM9iEYynH2UcVMhUEjsc0oDBTgo2ZSQ1gzkAHeWeBXYFjYLuuf8yzTCy7/RFR81WDjXMbq2BOH5dURnxo6oivmxL3cKzKInlZkD31nvpHB9Kk7GfcfE1t+1V64b9LtgeJGlpRFxQCAqWJ5DoY77ski8gsOEOr2uywZaoO/NGa0X0y1pNQHBi3b2SUGNpcZxDT7rLbBf1FSnQ8guxGW3W+36BW0gBje4DOz6Ba6SVk0xiKgt+q2JOFyr4SYfnu+Ic1QZYIuwHBrgzr6UvOcSCzPTOo7D6IC4ISeS7zkl4h+2VoeHpnG/uWR3+ysNgPcOIXQbv0n4mr3BwQcdKJxgPSeyuP/z1Jjg4e9nUvoXegqQVIE30EHx5GHv+FAVUNTowYDJgyFhf5IvlYmEqRif6+WN1MkEJmDcQITx9FX23a4mxy1AQRsOHO/+eImX9l8EMJI3oPWzVXxSOeHU1dUWYr2uAA7AMb+vAEZSbU3qob9ibCyXeypEMpZ6863o6QPqlqGHZkuWABSTVNd4cOh9hv3qEpSx2Zy/DJMP6cItEmiBJ5PFqQnDEIt3NrA3COlOSgz43D7gpNFNJ5MBh4oFzhDPiglC2ypsNU4ISywY2erkyb1NC3Qh/IfWj0eDgZI4/ln8WPfBsT3meTjq1Uqt1E7Zl/qftqkx6aM9KueMCekSnMrcHj1CqTWWzEzPsZGcDe3Ue4Ws+XFYVxNbOFF8ezkvQGR6ZOtOLU2lQEnMBStx47vE6Pb7AYMBRj2OOfZXfisjJnpTfSNjo6sZ6qSvNxZNmDeS7Gk3yYyCk1HtKN2UnhMIjOXUzAqDv90lx9O/q/AT1ZMnit5XQe9wmQxnE/WSH0CqZ9/2Hy+Sfmpeg8RwsHI5Z8kC8H293m/LHVVM/BA7HaTJYg5Enk7M/xWpq0192ACfBai2LA/qrCjCr6Dh1BIMzMXINBmX96MJ5Hn2nxln/RXPFhwHxUmSV0EV2V0jm86/dxxuYSU1W7sVkEbN9EzkG0QFwPhyHKyb3t+Fj5WoUUTErcazE/N6EW6Lvp0d//SDPj7EV9UdJN+Amnf3Wwk3A0SlJ9Z00yvXZ7n3z70G47Hfsow8Wq1JXcfwnA+Yxa5mFsgV464KKP4T31wqIgzFPd3eCe3j5ory5fBF2hgCFyVFrLzI9eetNXvM7oQqyFgDo4CTp/hDV9NMX9JDHQ/nyHTLvZLNLF6ftn2OxjGm8+PqOwhxnPHWipkE/8wbtyri80Sr7pMNkQGMfo4ZYK9OcCC4ESVFFbLMIvlxSoRqWie0wxqnLfcLSXMSpMMQEJYDVObYsXIQNv4TGNwjq1kvT1UOkicTrG3IaBZ3XdScS3u8sgeZPVpOLkbiF940FjbCeNRINNvDbd01EPBrTCPpm12m43ze1bBB59Ia6Ovhnur/Nvx3IxwSWol+3H2qfCJR8df6aQf4v6WiONxkK+IqT4pKQrZK/LplgDI/PJZbOep8dtbV7oCr6CgfpWa8NczOkPx81iSHbsNhVSJBOtrLIMrL31LK9TqHqAbAHe0RLmmV806kRLDLNEhUEJfm9u0sxpkL93Zgd6rw+tqBfTMi59xqXHLXSHwSbSBl0EK0+loECOPtrl+/nsaFe197di4yUgoe4jKoAJDXc6DGDjrQOoFDWZJ9HXwt8xDrQP+7aRwWKWI1GF8s8O4KzxWBBcwnl3vnl1Oez3oh6Ea1vjR7/z7DDTrFtqU2W/KAEzAuXDNZ7MY73MF216dzdSbWmUp4lcm7keJfWaMHgut9x5C9mj66Z0lJ+yhsjVvyiWrfk1lzPOTdhG15Y7gQlXtacvI7qv/XNSscDwqkgwHT/gUsD5yB7LdRRvJxQGYINn9hTpodKFVSTPrtGvyQw+HlRFXIkodErAGu9Iy1YpfSPc3jkFh5CX3lPxv7aqjE/JAfTIpEjGb/H7MO0e2vsViSW1qa/Lmi4/n4DEI3g7lYrcanspDfEpKkdV1OjSLOy0BCUqVoECaB55vs06rXl4jqmLsPsFM/7vYJ0vrBhDCm/00A/H81l1uekJ/6Lml3Hb9+NKiLqATJmDpyzfYZFHumEjC662L0Bwkxi7E9U4cQA0XMVDuMYAIeLMPgQaMVOd8fmt5SflFIfuBoszeAw7ow5gXPE2Y/yBc/7jExARUf/BxIHQBF5Sn3i61w4z5xJdCyO1F1X3+3ax+JSvMeZ7S6QSKp1Fp/sjYz6Z+VgCZzibGeEoujryfMulH7Rai5kAft9ebcW50DyJr2uo2z97mTWIu45YsSnNSMrrNUuG1XsYBtD9TDYzQffKB87vWbkM4EbPAFgoBV4GQS+vtFDUqOFAoi1nTtmIOvg38N4hT2Sn8r8clmBCXspBlMBYTnrqFJGBT3wZOzAyJDre9dHH7+x7qaaKDOB4UQALD5ecS0DE4obubQEiuJZ0EpBVpLuYcce8Aa4PYd/V4DLDAJBYKQPCWTcrEaZ5HYbJi11Gd6hjGom1ii18VHYnG28NKpkz2UKVPxlhYSp8uZr367iOmoy7zsxehW9wzcy2zG0a80PBMCRQMb32hnaHeOR8fnNDzZhaNYhkOdDsBUZ3loDMa1YP0uS0cjUP3b/6DBlqmZOeNABDsLl5BI5QJups8uxAuWJdkUB/pO6Zax6tsg7fN5mjjDgMGngO+DPcKqiHIDbFIGudxtPTIyDi9SFMKBDcfdGQRv41q1AqmxgkVfJMnP8w/Bc7N9/TR6C7mGObFqFkIEom8sKi2xYqJLTCHK7cxzaZvqODo22c3wisBCP4HeAgcRbNPAsBkNRhSmD48dHupdBRw4mIvtS5oeF6zeT1KMCyhMnmhpkFAGWnGscoNkwvQ8ZM5lE/vgTHFYL99OuNxdFBxTEDd5v2qLR8y9WkXsWgG6kZNndFG+pO/UAkOCipqIhL3hq7cRSdrCq7YhUsTocEcnaFa6nVkhnSeRYUA1YO0z5itF9Sly3VlxYDw239TJJH6f3EUfYO5lb7bcFcz8Bp7Oo8QmnsUHOz/fagVUBtKEw1iT88j+aKkv8cscKNkMxjYr8344D1kFoZ7/td1W6LCNYN594301tUGRmFjAzeRg5vyoM1F6+bJZ/Q54jN/k8SFd3DxPTYaAUsivsBfgTn7Mx8H2SpPt4GOdYRnEJOH6jHM2p6SgB0gzIRq6fHxGMmSmqaPCmlfwxiuloaVIitLGN8wie2CDWhkzLoCJcODh7KIOAqbHEvXdUxaS4TTTs07Clzj/6GmVs9kiZDerMxEnhUB6QQPlcfqkG9882RqHoLiHGBoHfQuXIsAG8GTAtao2KVwRnvvam8jo1e312GQAKWEa4sUVEAMG4G6ckcONDwRcg1e2D3+ohXgY4UAWF8wHKQMrSnzCgfFpsxh+aHXMGtPQroQasRY4U6UdG0rz1Vjbka0MekOGRZQEvqQFlxseFor8zWFgHek3v29+WqN6gaK5gZOTOMZzpQIC1201LkMCXild3vWXSc5UX9xcFYfbRPzGFa1FDcPfPB/jUEq/FeGt419CI3YmBlVoHsa4KdcwQP5ZSwHHhFJ7/Ph/Rap/4vmG91eDwPP0lDfCDRCLszTqfzM71xpmiKi2HwS4WlqvGNwtvwF5Dqpn6KTq8ax00UMPkxDcZrEEEsIvHiUXXEphdb4GB4FymlPwBz4Gperqq5pW7TQ6/yNRhW8VT5NhuP0udlxo4gILq5ZxAZk8ZGh3g4CqxJlPKY7AQxupfUcVpWT5VItp1+30UqoyP4wWsRo3olRRgkWZZ2ZN6VC3OZFeXB8NbnUrSdikNptD1QiGuKkr8EmSR/AK9Rw+FF3s5uwuPbvHGiPeFOViltMK7AUaOsq9+x9cndk3iJEE5LKZRlWJbKOZweROzmPNVPkjE3K/TyA57Rs68TkZ3MR8akKpm7cFjnjPd/DdkWjgYoKHSr5Wu5ssoBYU4acRs5g2DHxUmdq8VXOXRbunD8QN0LhgkssgahcdoYsNvuXGUK/KXD/7oFb+VGdhqIn02veuM5bLudJOc2Ky0GMaG4W/xWBxIJcL7yliJOXOpx0AkBqUgzlDczmLT4iILXDxxtRR1oZa2JWFgiAb43obrJnG/TZC2KSK2wqOzRZTXavZZFMb1f3bXvVaNaK828w9TO610gk8JNf3gMfETzXXsbcvRGCG9JWQZ6+cDPqc4466Yo2RcKH+PILeKOqtnlbInR3MmBeGG3FH10yzkybuqEC2HSQwpA0An7d9+73BkDUTm30bZmoP/RGbgFN+GrCOfADgqr0WbI1a1okpFms8iHYw9hm0zUvlEMivBRxModrbJJ+9/p3jUdQQ9BCtQdxnOGrT5dzRUmw0593/mbRSdBg0nRvRZM5/E16m7ZHmDEtWhwvfdZCZ8J8M12W0yRMszXamWfQTwIZ4ayYktrnscQuWr8idp3PjT2eF/jmtdhIfcpMnb+IfZY2FebW6UY/AK3jP4u3Tu4zE4qlnQgLFbM19EBIsNf7KhjdbqQ/D6yiDb+NlEi2SKD+ivXVUK8ib0oBo366gXkR8ZxGjpJIDcEgZPa9TcYe0TIbiPl/rPUQDu3XBJ9X/GNq3FAUsKsll57DzaGMrjcT+gctp+9MLYXCq+sqP81eVQ0r9lt+gcQfZbACRbEjvlMskztZG8gbC8Qn9tt26Q7y7nDrbZq/LEz7kR6Jc6pg3N9rVX8Y5MJrGlML9p9lU4jbTkKqCveeZUJjHB03m2KRKR2TytoFkTXOLg7keU1s1lrPMQJpoOKLuAAC+y1HlJucU6ysB5hsXhvSPPLq5J7JtnqHKZ4vYjC4Vy8153QY+6780xDuGARsGbOs1WqzH0QS765rnSKEbbKlkO8oI/VDwUd0is13tKpqILu1mDJFNy/iJAWcvDgjxvusIT+PGz3ST/J9r9Mtfd0jpaGeiLYIqXc7DiHSS8TcjFVksi66PEkxW1z6ujbLLUGNNYnzOWpH8BZGK4bCK7iR+MbIv8ncDAz1u4StN3vTTzewr9IQjk9wxFxn+6N1ddKs0vffJiS08N3a4G1SVrlZ97Q/M+8G9fe5AP6d9/Qq4WRnORVhofPIKEdCr3llspUfE0oKIIYoByBRPh+bX1HLS3JWGJRhIvE1aW4NTd8ePi4Z+kXb+Z8snYfSNcqijhAgVsx4RCM54cXUiYkjeBmmC4ajOHrChoELscJJC7+9jjMjw5BagZKlgRMiSNYz7h7vvZIoQqbtQmspc0cUk1G/73iXtSpROl5wtLgQi0mW2Ex8i3WULhcggx6E1LMVHUsdc9GHI1PH3U2Ko0PyGdn9KdVOLm7FPBui0i9a0HpA60MsewVE4z8CAt5d401Gv6zXlIT5Ybit1VIA0FCs7wtvYreru1fUyW3oLAZ/+aTnZrOcYRNVA8spoRtlRoWflsRClFcgzkqiHOrf0/SVw+EpVaFlJ0g4Kxq1MMOmiQdpMNpte8lMMQqm6cIFXlnGbfJllysKDi+0JJMotkqgIxOSQgU9dn/lWkeVf8nUm3iwX2Nl3WDw9i6AUK3vBAbZZrcJpDQ/N64AVwjT07Jef30GSSmtNu2WlW7YoyW2FlWfZFQUwk867EdLYKk9VG6JgEnBiBxkY7LMo4YLQJJlAo9l/oTvJkSARDF/XtyAzM8O2t3eT/iXa6wDN3WewNmQHdPfsxChU/KtLG2Mn8i4ZqKdSlIaBZadxJmRzVS/o4yA65RTSViq60oa395Lqw0pzY4SipwE0SXXsKV+GZraGSkr/RW08wPRvqvSUkYBMA9lPx4m24az+IHmCbXA+0faxTRE9wuGeO06DIXa6QlKJ3puIyiuAVfPr736vzo2pBirS+Vxel3TMm3JKhz9o2ZoRvaFVpIkykb0Hcm4oHFBMcNSNj7/4GJt43ogonY2Vg4nsDQIWxAcorpXACzgBqQPjYsE/VUpXpwNManEru4NwMCFPkXvMoqvoeLN3qyu/N1eWEHttMD65v19l/0kH2mR35iv/FI+yjoHJ9gPMz67af3Mq/BoWXqu3rphiWMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";const H=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]),W=4;function V(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),a=1,i=[0,1];for(let v=1;v<r;v++)i.push(a+=n());let o=n(),s=t;t+=o;let f=0,c=0;function l(){return 0==f&&(c=c<<8|e[t++],f=8),c>>--f&1}const u=2**31,d=u>>>1,p=u-1;let h=0;for(let v=0;v<31;v++)h=h<<1|l();let b=[],y=0,m=u;for(;;){let e=Math.floor(((h-y+1)*a-1)/m),t=0,n=r;for(;n-t>1;){let r=t+n>>>1;e<i[r]?n=r:t=r}if(0==t)break;b.push(t);let o=y+Math.floor(m*i[t]/a),s=y+Math.floor(m*i[t+1]/a)-1;for(;0==((o^s)&d);)h=h<<1&p|l(),o=o<<1&p,s=s<<1&p|1;for(;o&~s&536870912;)h=h&d|h<<1&p>>>1|l(),o=o<<1^d,s=(s^d)<<1|d|1;y=o,m=1+s-o}let g=r-4;return b.map((t=>{switch(t-g){case 3:return g+65792+(e[s++]<<16|e[s++]<<8|e[s++]);case 2:return g+256+(e[s++]<<8|e[s++]);case 1:return g+e[s++];default:return t-1}}))}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach(((e,n)=>t[e.charCodeAt(0)]=n));let n=e.length,r=new Uint8Array(6*n>>3);for(let a=0,i=0,o=0,s=0;a<n;a++)s=s<<6|t[e.charCodeAt(a)],o+=6,o>=8&&(r[i++]=s>>(o-=8));return r}(e)))}function q(e){return 1&e?~e>>1:e>>1}function K(e,t){let n=Array(e);for(let r=0,a=0;r<e;r++)n[r]=a+=q(t());return n}function Z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];for(;;){let r=e(),a=e();if(!a)break;t+=r;for(let e=0;e<a;e++)n.push(t+e);t+=a+1}return n}function J(e){return Q((()=>{let t=Z(e);if(t.length)return t}))}function Y(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(ee(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(te(n,e))}return t.flat()}function Q(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function X(e,t,n){let r=Array(e).fill().map((()=>[]));for(let a=0;a<t;a++)K(e,n).forEach(((e,t)=>r[t].push(e)));return r}function ee(e,t){let n=1+t(),r=t(),a=Q(t);return X(a.length,1+e,t).flatMap(((e,t)=>{let[i,...o]=e;return Array(a[t]).fill().map(((e,t)=>{let a=t*r;return[i+t*n,o.map((e=>e+a))]}))}))}function te(e,t){return X(1+t(),1+e,t).map((e=>[e[0],e.slice(1)]))}function ne(e){return`{${function(e){return e.toString(16).toUpperCase().padStart(2,"0")}(e)}}`}function re(e){let t=[];for(let n=0,r=e.length;n<r;){let r=e.codePointAt(n);n+=r<65536?1:2,t.push(r)}return t}function ae(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let n=[];for(let r=0;r<t;)n.push(String.fromCodePoint(...e.slice(r,r+=4096)));return n.join("")}function ie(e,t){let n=e.length,r=n-t.length;for(let a=0;0==r&&a<n;a++)r=e[a]-t[a];return r}var oe="AEUDTAHBCFQATQDRADAAcgAgADQAFAAsABQAHwAOACQADQARAAoAFwAHABIACAAPAAUACwAFAAwABAAQAAMABwAEAAoABQAIAAIACgABAAQAFAALAAIACwABAAIAAQAHAAMAAwAEAAsADAAMAAwACgANAA0AAwAKAAkABAAdAAYAZwDSAdsDJgC0CkMB8xhZAqfoC190UGcThgBurwf7PT09Pb09AjgJum8OjDllxHYUKXAPxzq6tABAxgK8ysUvWAgMPT09PT09PSs6LT2HcgWXWwFLoSMEEEl5RFVMKvO0XQ8ExDdJMnIgsj26PTQyy8FfEQ8AY8IPAGcEbwRwBHEEcgRzBHQEdQR2BHcEeAR6BHsEfAR+BIAEgfndBQoBYgULAWIFDAFiBNcE2ATZBRAFEQUvBdALFAsVDPcNBw13DYcOMA4xDjMB4BllHI0B2grbAMDpHLkQ7QHVAPRNQQFnGRUEg0yEB2uaJF8AJpIBpob5AERSMAKNoAXqaQLUBMCzEiACnwRZEkkVsS7tANAsBG0RuAQLEPABv9HICTUBXigPZwRBApMDOwAamhtaABqEAY8KvKx3LQ4ArAB8UhwEBAVSagD8AEFZADkBIadVj2UMUgx5Il4ANQC9AxIB1BlbEPMAs30CGxlXAhwZKQIECBc6EbsCoxngzv7UzRQA8M0BawL6ZwkN7wABAD33OQRcsgLJCjMCjqUChtw/km+NAsXPAoP2BT84PwURAK0RAvptb6cApQS/OMMey5HJS84UdxpxTPkCogVFITaTOwERAK5pAvkNBOVyA7q3BKlOJSALAgUIBRcEdASpBXqzABXFSWZOawLCOqw//AolCZdvv3dSBkEQGyelEPcMMwG1ATsN7UvYBPEGOwTJH30ZGQ/NlZwIpS3dDO0m4y6hgFoj9SqDBe1L9DzdC01RaA9ZC2UJ4zpjgU4DIQENIosK3Q05CG0Q8wrJaw3lEUUHOQPVSZoApQcBCxEdNRW1JhBirAsJOXcG+xr2C48mrxMpevwF0xohBk0BKRr/AM8u54WwWjFcHE9fBgMLJSPHFKhQIA0lQLd4SBobBxUlqQKRQ3BKh1E2HpMh9jw9DWYuE1F8B/U8BRlPC4E8nkarRQ4R0j6NPUgiSUwsBDV/LC8niwnPD4UMuXxyAVkJIQmxDHETMREXN8UIOQcZLZckJxUIIUaVYJoE958D8xPRAwsFPwlBBxMDtRwtEy4VKQUNgSTXAvM21S6zAo9WgAEXBcsPJR/fEFBH4A7pCJsCZQODJesALRUhABcimwhDYwBfj9hTBS7LCMdqbCN0A2cU52ERcweRDlcHpxwzFb8c4XDIXguGCCijrwlbAXUJmQFfBOMICTVbjKAgQWdTi1gYmyBhQT9d/AIxDGUVn0S9h3gCiw9rEhsBNQFzBzkNAQJ3Ee0RaxCVCOuGBDW1M/g6JQRPIYMgEQonA09szgsnJvkM+GkBoxJiAww0PXfuZ6tgtiQX/QcZMsVBYCHxC5JPzQycGsEYQlQuGeQHvwPzGvMn6kFXBf8DowMTOk0z7gS9C2kIiwk/AEkOoxcH1xhqCnGM0AExiwG3mQNXkYMCb48GNwcLAGcLhwV55QAdAqcIowAFAM8DVwA5Aq0HnQAZAIVBAT0DJy8BIeUCjwOTCDHLAZUvAfMpBBvDDBUA9zduSgLDsQKAamaiBd1YAo4CSTUBTSUEBU5HUQOvceEA2wBLBhPfRwEVq0rLGuNDAd9vKwDHAPsABTUHBUEBzQHzbQC3AV8LMQmis7UBTekpAIMAFWsB1wKJAN0ANQB/8QFTAE0FWfkF0wJPSQERMRgrV2EBuwMfATMBDQB5BsuNpckHHwRtB9MCEBsV4QLvLge1AQMi3xPNQsUCvd5VoWACZIECYkJbTa9bNyACofcCaJgCZgkCn4Q4GwsCZjsCZiYEbgR/A38TA36SOQY5dxc5gjojIwJsHQIyNjgKAm3HAm2u74ozZ0UrAWcA3gDhAEoFB5gMjQD+C8IADbUCdy8CdqI/AnlLQwJ4uh1c20WuRtcCfD8CesgCfQkCfPAFWQUgSABIfWMkAoFtAoAAAoAFAn+uSVhKWxUXSswC0QEC0MxLJwOITwOH5kTFkTIC8qFdAwMDrkvOTC0lA89NTE2vAos/AorYwRsHHUNnBbcCjjcCjlxAl4ECjtkCjlx4UbRTNQpS1FSFApP7ApMMAOkAHFUeVa9V0AYsGymVhjLheGZFOzkCl58C77JYIagAWSUClo8ClnycAKlZrFoJgU0AOwKWtQKWTlxEXNECmcsCmWRcyl0HGQKcmznCOp0CnBYCn5sCnriKAB0PMSoPAp3xAp6SALU9YTRh7wKe0wKgbgGpAp6fHwKeTqVjyGQnJSsCJ68CJn4CoPsCoEwCot0CocQCpi8Cpc4Cp/8AfQKn8mh8aLEAA0lqHGrRAqzjAqyuAq1nAq0CAlcdAlXcArHh1wMfTmyXArK9DQKy6Bds4G1jbUhfAyXNArZcOz9ukAMpRQK4XgK5RxUCuSp3cDZw4QK9GQK72nCWAzIRAr6IcgIDM3ECvhpzInNPAsPLAsMEc4J0SzVFdOADPKcDPJoDPb8CxXwCxkcCxhCJAshpUQLIRALJTwLJLgJknQLd0nh5YXiueSVL0AMYo2cCAmH0GfOVJHsLXpJeuxECz2sCz2wvS1PS8xOfAMatAs9zASnqA04SfksFAtwnAtuKAtJPA1JcA1NfAQEDVYyAiT8AyxbtYEWCHILTgs6DjQLaxwLZ3oQQhEmnPAOGpQAvA2QOhnFZ+QBVAt9lAt64c3cC4i/tFAHzMCcB9JsB8tKHAuvzAulweQLq+QLq5AD5RwG5Au6JAuuclqqXAwLuPwOF4Jh5cOBxoQLzAwBpA44WmZMC9xMDkW4DkocC95gC+dkC+GaaHJqruzebHgOdgwL++gEbADmfHJ+zAwWNA6ZqA6bZANHFAwZqoYiiBQkDDEkCwAA/AwDhQRdTARHzA2sHl2cFAJMtK7evvdsBiZkUfxEEOQH7KQUhDp0JnwCS/SlXxQL3AZ0AtwW5AG8LbUEuFCaNLgFDAYD8AbUmAHUDDgRtACwCFgyhAAAKAj0CagPdA34EkQEgRQUhfAoABQBEABMANhICdwEABdUDa+8KxQIA9wqfJ7+xt+UBkSFBQgHpFH8RNMCJAAQAGwBaAkUChIsABjpTOpSNbQC4Oo860ACNOME63AClAOgAywE6gTo7Ofw5+Tt2iTpbO56JOm85GAFWATMBbAUvNV01njWtNWY1dTW2NcU1gjWRNdI14TWeNa017jX9NbI1wTYCNhE1xjXVNhY2JzXeNe02LjY9Ni41LSE2OjY9Njw2yTcIBJA8VzY4Nt03IDcPNsogN4k3MAoEsDxnNiQ3GTdsOo03IULUQwdC4EMLHA8PCZsobShRVQYA6X8A6bABFCnXAukBowC9BbcAbwNzBL8MDAMMAQgDAAkKCwsLCQoGBAVVBI/DvwDz9b29kaUCb0QtsRTNLt4eGBcSHAMZFhYZEhYEARAEBUEcQRxBHEEcQRxBHEEaQRxBHEFCSTxBPElISUhBNkM2QTYbNklISVmBVIgBFLWZAu0BhQCjBcEAbykBvwGJAaQcEZ0ePCklMAAhMvAIMAL54gC7Bm8EescjzQMpARQpKgDUABavAj626xQAJP0A3etzuf4NNRA7efy2Z9NQrCnC0OSyANz5BBIbJ5IFDR6miIavYS6tprjjmuKebxm5C74Q225X1pkaYYPb6f1DK4k3xMEBb9S2WMjEibTNWhsRJIA+vwNVEiXTE5iXs/wezV66oFLfp9NZGYW+Gk19J2+bCT6Ye2w6LDYdgzKMUabk595eLBCXANz9HUpWbATq9vqXVx9XDg+Pc9Xp4+bsS005SVM/BJBM4687WUuf+Uj9dEi8aDNaPxtpbDxcG1THTImUMZq4UCaaNYpsVqraNyKLJXDYsFZ/5jl7bLRtO88t7P3xZaAxhb5OdPMXqsSkp1WCieG8jXm1U99+blvLlXzPCS+M93VnJCiK+09LfaSaBAVBomyDgJua8dfUzR7ga34IvR2Nvj+A9heJ6lsl1KG4NkI1032Cnff1m1wof2B9oHJK4bi6JkEdSqeNeiuo6QoZZincoc73/TH9SXF8sCE7XyuYyW8WSgbGFCjPV0ihLKhdPs08Tx82fYAkLLc4I2wdl4apY7GU5lHRFzRWJep7Ww3wbeA3qmd59/86P4xuNaqDpygXt6M85glSBHOCGgJDnt+pN9bK7HApMguX6+06RZNjzVmcZJ+wcUrJ9//bpRNxNuKpNl9uFds+S9tdx7LaM5ZkIrPj6nIU9mnbFtVbs9s/uLgl8MVczAwet+iOEzzBlYW7RCMgE6gyNLeq6+1tIx4dpgZnd0DksJS5f+JNDpwwcPNXaaVspq1fbQajOrJgK0ofKtJ1Ne90L6VO4MOl5S886p7u6xo7OLjG8TGL+HU1JXGJgppg4nNbNJ5nlzSpuPYy21JUEcUA94PoFiZfjZue+QnyQ80ekOuZVkxx4g+cvhJfHgNl4hy1/a6+RKcKlar/J29y//EztlbVPHVUeQ1zX86eQVAjR/M3dA9w4W8LfaXp4EgM85wOWasli837PzVMOnsLzR+k3o75/lRPAJSE1xAKQzEi5v10ke+VBvRt1cwQRMd+U5mLCTGVd6XiZtgBG5cDi0w22GKcVNvHiu5LQbZEDVtz0onn7k5+heuKXVsZtSzilkLRAUmjMXEMB3J9YC50XBxPiz53SC+EhnPl9WsKCv92SM/OFFIMJZYfl0WW8tIO3UxYcwdMAj7FSmgrsZ2aAZO03BOhP1bNNZItyXYQFTpC3SG1VuPDqH9GkiCDmE+JwxyIVSO5siDErAOpEXFgjy6PQtOVDj+s6e1r8heWVvmZnTciuf4EiNZzCAd7SOMhXERIOlsHIMG399i9aLTy3m2hRLZjJVDNLS53iGIK11dPqQt0zBDyg6qc7YqkDm2M5Ve6dCWCaCbTXX2rToaIgz6+zh4lYUi/+6nqcFMAkQJKHYLK0wYk5N9szV6xihDbDDFr45lN1K4aCXBq/FitPSud9gLt5ZVn+ZqGX7cwm2z5EGMgfFpIFyhGGuDPmso6TItTMwny+7uPnLCf4W6goFQFV0oQSsc9VfMmVLcLr6ZetDZbaSFTLqnSO/bIPjA3/zAUoqgGFAEQS4IhuMzEp2I3jJzbzkk/IEmyax+rhZTwd6f+CGtwPixu8IvzACquPWPREu9ZvGkUzpRwvRRuaNN6cr0W1wWits9ICdYJ7ltbgMiSL3sTPeufgNcVqMVWFkCPDH4jG2jA0XcVgQj62Cb29v9f/z/+2KbYvIv/zzjpQAPkliaVDzNrW57TZ/ZOyZD0nlfMmAIBIAGAI0D3k/mdN4xr9v85ZbZbbqfH2jGd5hUqNZWwl5SPfoGmfElmazUIeNL1j/mkF7VNAzTq4jNt8JoQ11NQOcmhprXoxSxfRGJ9LDEOAQ+dmxAQH90iti9e2u/MoeuaGcDTHoC+xsmEeWmxEKefQuIzHbpw5Tc5cEocboAD09oipWQhtTO1wivf/O+DRe2rpl/E9wlrzBorjJsOeG1B/XPW4EaJEFdNlECEZga5ZoGRHXgYouGRuVkm8tDESiEyFNo+3s5M5puSdTyUL2llnINVHEt91XUNW4ewdMgJ4boJfEyt/iY5WXqbA+A2Fkt5Z0lutiWhe9nZIyIUjyXDC3UsaG1t+eNx6z4W/OYoTB7A6x+dNSTOi9AInctbESqm5gvOLww7OWXPrmHwVZasrl4eD113pm+JtT7JVOvnCXqdzzdTRHgJ0PiGTFYW5Gvt9R9LD6Lzfs0v/TZZHSmyVNq7viIHE6DBK7Qp07Iz55EM8SYtQvZf/obBniTWi5C2/ovHfw4VndkE5XYdjOhCMRjDeOEfXeN/CwfGduiUIfsoFeUxXeQXba7c7972XNv8w+dTjjUM0QeNAReW+J014dKAD/McQYXT7c0GQPIkn3Ll6R7gGjuiQoZD0TEeEqQpKoZ15g/0OPQI17QiSv9AUROa/V/TQN3dvLArec3RrsYlvBm1b8LWzltdugsC50lNKYLEp2a+ZZYqPejULRlOJh5zj/LVMyTDvwKhMxxwuDkxJ1QpoNI0OTWLom4Z71SNzI9TV1iXJrIu9Wcnd+MCaAw8o1jSXd94YU/1gnkrC9BUEOtQvEIQ7g0i6h+KL2JKk8Ydl7HruvgWMSAmNe+LshGhV4qnWHhO9/RIPQzY1tHRj2VqOyNsDpK0cww+56AdDC4gsWwY0XxoucIWIqs/GcwnWqlaT0KPr8mbK5U94/301i1WLt4YINTVvCFBrFZbIbY8eycOdeJ2teD5IfPLCRg7jjcFTwlMFNl9zdh/o3E/hHPwj7BWg0MU09pPrBLbrCgm54A6H+I6v27+jL5gkjWg/iYdks9jbfVP5y/n0dlgWEMlKasl7JvFZd56LfybW1eeaVO0gxTfXZwD8G4SI116yx7UKVRgui6Ya1YpixqXeNLc8IxtAwCU5IhwQgn+NqHnRaDv61CxKhOq4pOX7M6pkA+Pmpd4j1vn6ACUALoLLc4vpXci8VidLxzm7qFBe7s+quuJs6ETYmnpgS3LwSZxPIltgBDXz8M1k/W2ySNv2f9/NPhxLGK2D21dkHeSGmenRT3Yqcdl0m/h3OYr8V+lXNYGf8aCCpd4bWjE4QIPj7vUKN4Nrfs7ML6Y2OyS830JCnofg/k7lpFpt4SqZc5HGg1HCOrHvOdC8bP6FGDbE/VV0mX4IakzbdS/op+Kt3G24/8QbBV7y86sGSQ/vZzU8FXs7u6jIvwchsEP2BpIhW3G8uWNwa3HmjfH/ZjhhCWvluAcF+nMf14ClKg5hGgtPLJ98ueNAkc5Hs2WZlk2QHvfreCK1CCGO6nMZVSb99VM/ajr8WHTte9JSmkXq/i/U943HEbdzW6Re/S88dKgg8pGOLlAeNiqrcLkUR3/aClFpMXcOUP3rmETcWSfMXZE3TUOi8i+fqRnTYLflVx/Vb/6GJ7eIRZUA6k3RYR3iFSK9c4iDdNwJuZL2FKz/IK5VimcNWEqdXjSoxSgmF0UPlDoUlNrPcM7ftmA8Y9gKiqKEHuWN+AZRIwtVSxye2Kf8rM3lhJ5XcBXU9n4v0Oy1RU2M+4qM8AQPVwse8ErNSob5oFPWxuqZnVzo1qB/IBxkM3EVUKFUUlO3e51259GgNcJbCmlvrdjtoTW7rChm1wyCKzpCTwozUUEOIcWLneRLgMXh+SjGSFkAllzbGS5HK7LlfCMRNRDSvbQPjcXaenNYxCvu2Qyznz6StuxVj66SgI0T8B6/sfHAJYZaZ78thjOSIFumNWLQbeZixDCCC+v0YBtkxiBB3jefHqZ/dFHU+crbj6OvS1x/JDD7vlm7zOVPwpUC01nhxZuY/63E7g";const se=44032,fe=4352,ce=4449,le=4519,ue=28,de=21*ue,pe=se+19*de,he=fe+19,be=ce+21,ye=le+ue;function me(e){return e>>24&255}function ge(e){return 16777215&e}let ve,we,Ee,Ae;function Pe(e){return e>=se&&e<pe}function _e(e,t){if(e>=fe&&e<he&&t>=ce&&t<be)return se+(e-fe)*de+(t-ce)*ue;if(Pe(e)&&t>le&&t<ye&&(e-se)%ue==0)return e+(t-le);{let n=Ae.get(e);return n&&(n=n.get(t),n)?n:-1}}function Te(e){ve||function(){let e=V(oe);ve=new Map(J(e).flatMap(((e,t)=>e.map((e=>[e,t+1<<24]))))),we=new Set(Z(e)),Ee=new Map,Ae=new Map;for(let[t,n]of Y(e)){if(!we.has(t)&&2==n.length){let[e,r]=n,a=Ae.get(e);a||(a=new Map,Ae.set(e,a)),a.set(r,t)}Ee.set(t,n.reverse())}}();let t=[],n=[],r=!1;function a(e){let n=ve.get(e);n&&(r=!0,e|=n),t.push(e)}for(let i of e)for(;;){if(i<128)t.push(i);else if(Pe(i)){let e=i-se,t=e%de/ue|0,n=e%ue;a(fe+(e/de|0)),a(ce+t),n>0&&a(le+n)}else{let e=Ee.get(i);e?n.push(...e):a(i)}if(!n.length)break;i=n.pop()}if(r&&t.length>1){let e=me(t[0]);for(let n=1;n<t.length;n++){let r=me(t[n]);if(0==r||e<=r){e=r;continue}let a=n-1;for(;;){let n=t[a+1];if(t[a+1]=t[a],t[a]=n,!a)break;if(e=me(t[--a]),e<=r)break}e=me(t[n])}}return t}function ke(e){return Te(e).map(ge)}function Ce(e){return function(e){let t=[],n=[],r=-1,a=0;for(let i of e){let e=me(i),o=ge(i);if(-1==r)0==e?r=o:t.push(o);else if(a>0&&a>=e)0==e?(t.push(r,...n),n.length=0,r=o):n.push(o),a=e;else{let i=_e(r,o);i>=0?r=i:0==a&&0==e?(t.push(r),r=o):(n.push(o),a=e)}}return r>=0&&t.push(r,...n),t}(Te(e))}const xe=45,Oe=".",Se=65039,Re=1,Ie=e=>Array.from(e);function Ne(e,t){return e.P.has(t)||e.Q.has(t)}class Be extends Array{get is_emoji(){return!0}}let je,De,Le,Me,Ue,Fe,ze,$e,Ge,He,We,Ve;function qe(){if(je)return;let e=V(G);const t=()=>Z(e),n=()=>new Set(t());je=new Map(Y(e)),De=n(),Le=t(),Me=new Set(t().map((e=>Le[e]))),Le=new Set(Le),Ue=n(),Fe=n();let r=J(e),a=e();const i=()=>new Set(t().flatMap((e=>r[e])).concat(t()));ze=Q((t=>{let n=Q(e).map((e=>e+96));if(n.length){let r=t>=a;return n[0]-=32,n=ae(n),r&&(n=`Restricted[${n}]`),{N:n,P:i(),Q:i(),M:!e(),R:r}}})),$e=n(),Ge=new Map;let o=t().concat(Ie($e)).sort(((e,t)=>e-t));o.forEach(((t,n)=>{let r=e(),a=o[n]=r?o[n-r]:{V:[],M:new Map};a.V.push(t),$e.has(t)||Ge.set(t,a)}));for(let{V:l,M:u}of new Set(Ge.values())){let e=[];for(let n of l){let t=ze.filter((e=>Ne(e,n))),r=e.find((e=>{let{G:n}=e;return t.some((e=>n.has(e)))}));r||(r={G:new Set,V:[]},e.push(r)),r.V.push(n),t.forEach((e=>r.G.add(e)))}let t=e.flatMap((e=>Ie(e.G)));for(let{G:n,V:r}of e){let e=new Set(t.filter((e=>!n.has(e))));for(let t of r)u.set(t,e)}}let s=new Set,f=new Set;const c=e=>s.has(e)?f.add(e):s.add(e);for(let l of ze){for(let e of l.P)c(e);for(let e of l.Q)c(e)}for(let l of s)Ge.has(l)||f.has(l)||Ge.set(l,Re);He=new Set(Ie(s).concat(Ie(ke(s)))),We=function(e){let t=[],n=Z(e);return function e(n,r,a){let{S:i,B:o}=n;if(!(4&i&&a===r[r.length-1])){2&i&&(a=r[r.length-1]),1&i&&t.push(r);for(let t of o)for(let n of t.Q)e(t,[...r,n],a)}}(function t(r){return{S:e(),B:Q((()=>{let r=Z(e).map((e=>n[e]));if(r.length)return t(r)})),Q:r}}([]),[]),t}(e).map((e=>Be.from(e))).sort(ie),Ve=new Map;for(let l of We){let e=[Ve];for(let t of l){let n=e.map((e=>{let n=e.get(t);return n||(n=new Map,e.set(t,n)),n}));t===Se?e.push(...n):e=n}for(let t of e)t.V=l}}function Ke(e){return(Ye(e)?"":`${Ze(Je([e]))} `)+ne(e)}function Ze(e){return`"${e}"\u200e`}function Je(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne,n=[];var r;r=e[0],qe(),Le.has(r)&&n.push("\u25cc");let a=0,i=e.length;for(let o=0;o<i;o++){let r=e[o];Ye(r)&&(n.push(ae(e.slice(a,o))),n.push(t(r)),a=o+1)}return n.push(ae(e.slice(a,i))),n.join("")}function Ye(e){return qe(),Ue.has(e)}function Qe(e,t,n){if(!e)return[];qe();let r=0;return e.split(Oe).map((e=>{let a=re(e),i={input:a,offset:r};r+=a.length+1;try{let e,r=i.tokens=rt(a,t,n),o=r.length;if(!o)throw new Error("empty label");let s=i.output=r.flat();if(function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw new Error("underscore allowed only at start")}(s),!(i.emoji=o>1||r[0].is_emoji)&&s.every((e=>e<128)))!function(e){if(e.length>=4&&e[2]==xe&&e[3]==xe)throw new Error(`invalid label extension: "${ae(e.slice(0,4))}"`)}(s),e="ASCII";else{let t=r.flatMap((e=>e.is_emoji?[]:e));if(t.length){if(Le.has(s[0]))throw nt("leading combining mark");for(let e=1;e<o;e++){let t=r[e];if(!t.is_emoji&&Le.has(t[0]))throw nt(`emoji + combining mark: "${ae(r[e-1])} + ${Je([t[0]])}"`)}!function(e){let t=e[0],n=H.get(t);if(n)throw nt(`leading ${n}`);let r=e.length,a=-1;for(let i=1;i<r;i++){t=e[i];let r=H.get(t);if(r){if(a==i)throw nt(`${n} + ${r}`);a=i+1,n=r}}if(a==r)throw nt(`trailing ${n}`)}(s);let n=Ie(new Set(t)),[a]=function(e){let t=ze;for(let n of e){let e=t.filter((e=>Ne(e,n)));if(!e.length)throw ze.some((e=>Ne(e,n)))?tt(t[0],n):et(n);if(t=e,1==e.length)break}return t}(n);!function(e,t){for(let n of t)if(!Ne(e,n))throw tt(e,n);if(e.M){let e=ke(t);for(let t=1,n=e.length;t<n;t++)if(Me.has(e[t])){let r=t+1;for(let a;r<n&&Me.has(a=e[r]);r++)for(let n=t;n<r;n++)if(e[n]==a)throw new Error(`duplicate non-spacing marks: ${Ke(a)}`);if(r-t>W)throw new Error(`excessive non-spacing marks: ${Ze(Je(e.slice(t-1,r)))} (${r-t}/${W})`);t=r}}}(a,t),function(e,t){let n,r=[];for(let a of t){let e=Ge.get(a);if(e===Re)return;if(e){let t=e.M.get(a);if(n=n?n.filter((e=>t.has(e))):Ie(t),!n.length)return}else r.push(a)}if(n)for(let a of n)if(r.every((e=>Ne(a,e))))throw new Error(`whole-script confusable: ${e.N}/${a.N}`)}(a,n),e=a.N}else e="Emoji"}i.type=e}catch(o){i.error=o}return i}))}function Xe(e){return e.map((t=>{let{input:n,error:r,output:a}=t;if(r){let t=r.message;throw new Error(1==e.length?t:`Invalid label ${Ze(Je(n))}: ${t}`)}return ae(a)})).join(Oe)}function et(e){return new Error(`disallowed character: ${Ke(e)}`)}function tt(e,t){let n=Ke(t),r=ze.find((e=>e.P.has(t)));return r&&(n=`${r.N} ${n}`),new Error(`illegal mixture: ${e.N} + ${n}`)}function nt(e){return new Error(`illegal placement: ${e}`)}function rt(e,t,n){let r=[],a=[];for(e=e.slice().reverse();e.length;){let i=it(e);if(i)a.length&&(r.push(t(a)),a=[]),r.push(n(i));else{let t=e.pop();if(He.has(t))a.push(t);else{let e=je.get(t);if(e)a.push(...e);else if(!De.has(t))throw et(t)}}}return a.length&&r.push(t(a)),r}function at(e){return e.filter((e=>e!=Se))}function it(e,t){let n,r=Ve,a=e.length;for(;a&&(r=r.get(e[--a]),r);){let{V:i}=r;i&&(n=i,t&&t.push(...e.slice(a).reverse()),e.length=a)}return n}function ot(e){return function(e){return Xe(Qe(e,Ce,at))}(e)}var st=n(15869);function ft(e){return{async queryFn(t){let{queryKey:n}=t;const{name:r,scopeKey:a,...i}=n[1];if(!r)throw new Error("name is required");return function(e,t){const{chainId:n,...r}=t,a=e.getClient({chainId:n});return(0,S.s)(a,st.r,"getEnsAvatar")(r)}(e,{...i,name:r})},queryKey:ct(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}}function ct(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["ensAvatar",(0,L.OP)(e)]}var lt=n(85223),ut=n(84765),dt=n(20402);function pt(e){return{async queryFn(t){let{queryKey:n}=t;const{address:r,scopeKey:a,...i}=n[1];if(!r)throw new Error("address is required");return function(e,t){const{chainId:n,...r}=t,a=e.getClient({chainId:n});return(0,S.s)(a,dt.w,"getEnsName")(r)}(e,{...i,address:r})},queryKey:ht(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}}function ht(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return["ensName",(0,L.OP)(e)]}var bt=n(11406),yt=n(68649);var mt=n(30327);function gt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,_.Z)(e);return(0,mt.useSyncExternalStoreWithSelector)((e=>function(e,t){const{onChange:n}=t;return e.subscribe((()=>(0,yt.u)(e)),n,{equalityFn:(e,t)=>(null===e||void 0===e?void 0:e.uid)===(null===t||void 0===t?void 0:t.uid)})}(t,{onChange:e})),(()=>(0,yt.u)(t,e)),(()=>(0,yt.u)(t,e)),(e=>e),((e,t)=>(null===e||void 0===e?void 0:e.uid)===(null===t||void 0===t?void 0:t.uid)))}var vt=n(47441);function wt(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{onConnect:t,onDisconnect:n}=e,r=(0,_.Z)(e);(0,d.useEffect)((()=>(0,vt.u)(r,{onChange(e,r){if(("reconnecting"===r.status||"connecting"===r.status&&void 0===r.address)&&"connected"===e.status){const{address:n,addresses:a,chain:i,chainId:o,connector:s}=e,f="reconnecting"===r.status||void 0===r.status;null===t||void 0===t||t({address:n,addresses:a,chain:i,chainId:o,connector:s,isReconnected:f})}else"connected"===r.status&&"disconnected"===e.status&&(null===n||void 0===n||n())}})),[r,t,n])}var Et=n(51476),At=n(54164);var Pt=function(){return Pt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Pt.apply(this,arguments)};Object.create;Object.create;var _t="right-scroll-bar-position",Tt="width-before-scroll-bar";function kt(e,t){return function(e,t){var n=(0,d.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}var Ct=function(){return Ct=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Ct.apply(this,arguments)};Object.create;Object.create;function xt(e){return e}function Ot(e,t){void 0===t&&(t=xt);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var a=t(e,r);return n.push(a),function(){n=n.filter((function(e){return e!==a}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var a=n;n=[],a.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(i)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}var St=function(e){void 0===e&&(e={});var t=Ot(null);return t.options=Ct({async:!0,ssr:!1},e),t}(),Rt=function(){},It=d.forwardRef((function(e,t){var n=d.useRef(null),r=d.useState({onScrollCapture:Rt,onWheelCapture:Rt,onTouchMoveCapture:Rt}),a=r[0],i=r[1],o=e.forwardProps,s=e.children,f=e.className,c=e.removeScrollBar,l=e.enabled,u=e.shards,p=e.sideCar,h=e.noIsolation,b=e.inert,y=e.allowPinchZoom,m=e.as,g=void 0===m?"div":m,v=e.gapMode,w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=p,A=kt([n,t]),P=Pt(Pt({},w),a);return d.createElement(d.Fragment,null,l&&d.createElement(E,{sideCar:St,removeScrollBar:c,shards:u,noIsolation:h,inert:b,setCallbacks:i,allowPinchZoom:!!y,lockRef:n,gapMode:v}),o?d.cloneElement(d.Children.only(s),Pt(Pt({},P),{ref:A})):d.createElement(g,Pt({},P,{className:f,ref:A}),s))}));It.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},It.classNames={fullWidth:Tt,zeroRight:_t};var Nt,Bt=function(e){var t=e.sideCar,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return d.createElement(r,Ct({},n))};Bt.isSideCarExport=!0;function jt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Nt||n.nc;return t&&e.setAttribute("nonce",t),e}var Dt=function(){var e=0,t=null;return{add:function(n){var r,a;0==e&&(t=jt())&&(a=n,(r=t).styleSheet?r.styleSheet.cssText=a:r.appendChild(document.createTextNode(a)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Lt=function(){var e=function(){var e=Dt();return function(t,n){d.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},Mt={left:0,top:0,right:0,gap:0},Ut=function(e){return parseInt(e||"",10)||0},Ft=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return Mt;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[Ut(n),Ut(r),Ut(a)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},zt=Lt(),$t="data-scroll-locked",Gt=function(e,t,n,r){var a=e.left,i=e.top,o=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat($t,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(a,"px;\n    padding-top: ").concat(i,"px;\n    padding-right: ").concat(o,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(_t," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(Tt," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(_t," .").concat(_t," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(Tt," .").concat(Tt," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat($t,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},Ht=function(){var e=parseInt(document.body.getAttribute($t)||"0",10);return isFinite(e)?e:0},Wt=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=void 0===r?"margin":r;d.useEffect((function(){return document.body.setAttribute($t,(Ht()+1).toString()),function(){var e=Ht()-1;e<=0?document.body.removeAttribute($t):document.body.setAttribute($t,e.toString())}}),[]);var i=d.useMemo((function(){return Ft(a)}),[a]);return d.createElement(zt,{styles:Gt(i,!t,a,n?"":"!important")})},Vt=!1;if("undefined"!==typeof window)try{var qt=Object.defineProperty({},"passive",{get:function(){return Vt=!0,!0}});window.addEventListener("test",qt,qt),window.removeEventListener("test",qt,qt)}catch(ef){Vt=!1}var Kt=!!Vt&&{passive:!1},Zt=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},Jt=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!==typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Yt(e,r)){var a=Qt(e,r);if(a[1]>a[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Yt=function(e,t){return"v"===e?function(e){return Zt(e,"overflowY")}(t):function(e){return Zt(e,"overflowX")}(t)},Qt=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},Xt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},en=function(e){return[e.deltaX,e.deltaY]},tn=function(e){return e&&"current"in e?e.current:e},nn=function(e){return"\n  .block-interactivity-".concat(e," {pointer-events: none;}\n  .allow-interactivity-").concat(e," {pointer-events: all;}\n")},rn=0,an=[];function on(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const sn=(fn=function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),a=d.useState(rn++)[0],i=d.useState(Lt)[0],o=d.useRef(e);d.useEffect((function(){o.current=e}),[e]),d.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=function(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a<i;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(tn),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=d.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!o.current.allowPinchZoom;var a,i=Xt(e),s=n.current,f="deltaX"in e?e.deltaX:s[0]-i[0],c="deltaY"in e?e.deltaY:s[1]-i[1],l=e.target,u=Math.abs(f)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===u&&"range"===l.type)return!1;var d=Jt(u,l);if(!d)return!0;if(d?a=u:(a="v"===u?"h":"v",d=Jt(u,l)),!d)return!1;if(!r.current&&"changedTouches"in e&&(f||c)&&(r.current=a),!a)return!0;var p=r.current||a;return function(e,t,n,r,a){var i=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),o=i*r,s=n.target,f=t.contains(s),c=!1,l=o>0,u=0,d=0;do{var p=Qt(e,s),h=p[0],b=p[1]-p[2]-i*h;(h||b)&&Yt(e,s)&&(u+=b,d+=h),s=s instanceof ShadowRoot?s.host:s.parentNode}while(!f&&s!==document.body||f&&(t.contains(s)||t===s));return(l&&(a&&Math.abs(u)<1||!a&&o>u)||!l&&(a&&Math.abs(d)<1||!a&&-o>d))&&(c=!0),c}(p,t,e,"h"===p?f:c,!0)}),[]),f=d.useCallback((function(e){var n=e;if(an.length&&an[an.length-1]===i){var r="deltaY"in n?en(n):Xt(n),a=t.current.filter((function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,a=r,t[0]===a[0]&&t[1]===a[1]);var t,a}))[0];if(a&&a.should)n.cancelable&&n.preventDefault();else if(!a){var f=(o.current.shards||[]).map(tn).filter(Boolean).filter((function(e){return e.contains(n.target)}));(f.length>0?s(n,f[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=d.useCallback((function(e,n,r,a){var i={name:e,delta:n,target:r,should:a,shadowParent:on(r)};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),l=d.useCallback((function(e){n.current=Xt(e),r.current=void 0}),[]),u=d.useCallback((function(t){c(t.type,en(t),t.target,s(t,e.lockRef.current))}),[]),p=d.useCallback((function(t){c(t.type,Xt(t),t.target,s(t,e.lockRef.current))}),[]);d.useEffect((function(){return an.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:p}),document.addEventListener("wheel",f,Kt),document.addEventListener("touchmove",f,Kt),document.addEventListener("touchstart",l,Kt),function(){an=an.filter((function(e){return e!==i})),document.removeEventListener("wheel",f,Kt),document.removeEventListener("touchmove",f,Kt),document.removeEventListener("touchstart",l,Kt)}}),[]);var h=e.removeScrollBar,b=e.inert;return d.createElement(d.Fragment,null,b?d.createElement(i,{styles:nn(a)}):null,h?d.createElement(Wt,{gapMode:e.gapMode}):null)},St.useMedium(fn),Bt);var fn,cn=d.forwardRef((function(e,t){return d.createElement(It,Pt({},e,{ref:t,sideCar:sn}))}));cn.classNames=It.classNames;const ln=cn;function un(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function dn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=e.constructor();for(var a in e){var i=e[a],o=[...n,a];"string"===typeof i||"number"===typeof i||null==i?r[a]=t(i,o):"object"!==typeof i||Array.isArray(i)?console.warn('Skipping invalid key "'.concat(o.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"')):r[a]=dn(i,t,o)}return r}function pn(e,t){var n={};if("object"===typeof t){var r=e;dn(t,((e,t)=>{if(null!=e){var a=function(e,t){var n=e;for(var r of t){if(!(r in n))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));n=n[r]}return n}(r,t);n[un(a)]=String(e)}}))}else{var a=e;for(var i in a){var o=a[i];null!=o&&(n[un(i)]=o)}}return Object.defineProperty(n,"toString",{value:function(){return Object.keys(this).map((e=>"".concat(e,":").concat(this[e]))).join(";")},writable:!1}),n}var hn=n(33874),bn=n(22935);function yn(e){return{mutationFn:t=>async function(e,t){let n;if(n="function"===typeof t.connector?e._internal.connectors.setup(t.connector):t.connector,n.uid===e.state.current)throw new bn.wi;try{var r;e.setState((e=>({...e,status:"connecting"}))),n.emitter.emit("message",{type:"connecting"});const a=await n.connect({chainId:t.chainId}),i=a.accounts;return n.emitter.off("connect",e._internal.events.connect),n.emitter.on("change",e._internal.events.change),n.emitter.on("disconnect",e._internal.events.disconnect),await(null===(r=e.storage)||void 0===r?void 0:r.setItem("recentConnectorId",n.id)),e.setState((e=>({...e,connections:new Map(e.connections).set(n.uid,{accounts:i,chainId:a.chainId,connector:n}),current:n.uid,status:"connected"}))),{accounts:i,chainId:a.chainId}}catch(a){throw e.setState((e=>({...e,status:e.current?"connected":"disconnected"}))),a}}(e,t),mutationKey:["connect"]}}var mn=n(78821);let gn=[];function vn(e){const t=e.connectors;return(0,mn.v)(gn,t)?gn:(gn=t,t)}function wn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,_.Z)(e);return(0,d.useSyncExternalStore)((e=>function(e,t){const{onChange:n}=t;return e._internal.connectors.subscribe(((e,t)=>{n(Object.values(e),t)}))}(t,{onChange:e})),(()=>vn(t)),(()=>vn(t)))}var En=n(54184),An=n(74490),Pn=n(98659),_n=n(34822);function Tn(e){return{mutationFn:t=>async function(e,t){var n;const{addEthereumChainParameter:r,chainId:a}=t,i=e.state.connections.get((null===(n=t.connector)||void 0===n?void 0:n.uid)??e.state.current);if(i){const e=i.connector;if(!e.switchChain)throw new _n.O({connector:e});return await e.switchChain({addEthereumChainParameter:r,chainId:a})}const o=e.chains.find((e=>e.id===a));if(!o)throw new bn.X4;return e.setState((e=>({...e,chainId:a}))),o}(e,t),mutationKey:["switchChain"]}}let kn=[];function Cn(e){const t=e.chains;return(0,mn.v)(kn,t)?kn:(kn=t,t)}function xn(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,_.Z)(e);return(0,d.useSyncExternalStore)((e=>function(e,t){const{onChange:n}=t;return e._internal.chains.subscribe(((e,t)=>{n(e,t)}))}(t,{onChange:e})),(()=>Cn(t)),(()=>Cn(t)))}var On=n(20741),Sn=n(62890),Rn=n(95397);class In extends Rn.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro"})}}var Nn=n(10943),Bn=n(35293),jn=n(1275);function Dn(){return{current:0,take(){return this.current++},reset(){this.current=0}}}const Ln=Dn();var Mn=n(23730);function Un(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{batch:n,fetchOptions:r,key:a="http",name:i="HTTP JSON-RPC",onFetchRequest:o,onFetchResponse:s,retryDelay:f}=t;return c=>{let{chain:l,retryCount:u,timeout:d}=c;const{batchSize:p=1e3,wait:h=0}="object"===typeof n?n:{},b=t.retryCount??u,y=d??t.timeout??1e4,m=e||(null===l||void 0===l?void 0:l.rpcUrls.default.http[0]);if(!m)throw new In;const g=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{async request(n){const{body:r,onRequest:a=t.onRequest,onResponse:i=t.onResponse,timeout:o=t.timeout??1e4}=n,s={...t.fetchOptions??{},...n.fetchOptions??{}},{headers:f,method:c,signal:l}=s;try{var u;const t=await(0,Bn.F)((async t=>{let{signal:n}=t;const i={...s,body:Array.isArray(r)?(0,jn.P)(r.map((e=>({jsonrpc:"2.0",id:e.id??Ln.take(),...e})))):(0,jn.P)({jsonrpc:"2.0",id:r.id??Ln.take(),...r}),headers:{...f,"Content-Type":"application/json"},method:c||"POST",signal:l||(o>0?n:null)},u=new Request(e,i);return a&&await a(u),await fetch(e,i)}),{errorInstance:new Sn.W5({body:r,url:e}),timeout:o,signal:!0});let n;if(i&&await i(t),null!==(u=t.headers.get("Content-Type"))&&void 0!==u&&u.startsWith("application/json")?n=await t.json():(n=await t.text(),n=JSON.parse(n||"{}")),!t.ok)throw new Sn.Gg({body:r,details:(0,jn.P)(n.error)||t.statusText,headers:t.headers,status:t.status,url:e});return n}catch(ef){if(ef instanceof Sn.Gg)throw ef;if(ef instanceof Sn.W5)throw ef;throw new Sn.Gg({body:r,details:ef.message,url:e})}}}}(m,{fetchOptions:r,onRequest:o,onResponse:s,timeout:y});return(0,Mn.q)({key:a,name:i,async request(t){let{method:r,params:a}=t;const i={method:r,params:a},{schedule:o}=(0,Nn.S)({id:`${e}`,wait:h,shouldSplitBatch:e=>e.length>p,fn:e=>g.request({body:e}),sort:(e,t)=>e.id-t.id}),[{error:s,result:f}]=await(async e=>n?o(e):[await g.request({body:e})])(i);if(s)throw new Sn.bs({body:i,error:s,url:m});return f},retryCount:b,retryDelay:f,timeout:y,type:"http"},{fetchOptions:r,url:m})}}function Fn(){const e=new Set;let t=[];const n=()=>function(e){const t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)}((n=>{t.some((e=>{let{info:t}=e;return t.uuid===n.info.uuid}))||(t=[...t,n],e.forEach((e=>e(t,{added:[n]}))))}));let r=n();return{_listeners:()=>e,clear(){e.forEach((e=>e([],{removed:[...t]}))),t=[]},destroy(){this.clear(),e.clear(),r()},findProvider(e){let{rdns:n}=e;return t.find((e=>e.info.rdns===n))},getProviders:()=>t,reset(){this.clear(),r(),r=n()},subscribe(n){let{emitImmediately:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.add(n),r&&n(t,{added:t}),()=>e.delete(n)}}}var zn=n(30802);const $n=e=>(t,n,r)=>{const a=r.subscribe;r.subscribe=(e,t,n)=>{let i=e;if(t){const a=(null==n?void 0:n.equalityFn)||Object.is;let o=e(r.getState());i=n=>{const r=e(n);if(!a(o,r)){const e=o;t(o=r,e)}},(null==n?void 0:n.fireImmediately)&&t(o,o)}return a(i)};return e(t,n,r)};function Gn(e,t){let n;try{n=e()}catch(a){return}const r={getItem:e=>{var r;const a=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),i=null!=(r=n.getItem(e))?r:null;return i instanceof Promise?i.then(a):a(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)};return r}const Hn=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then:e=>Hn(e)(n),catch(e){return this}}}catch(n){return{then(e){return this},catch:e=>Hn(e)(n)}}},Wn=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),((e,t)=>(n,r,a)=>{let i={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1;const s=new Set,f=new Set;let c;try{c=i.getStorage()}catch(y){}if(!c)return e((function(){console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...arguments)}),r,a);const l=Hn(i.serialize),u=()=>{const e=i.partialize({...r()});let t;const n=l({state:e,version:i.version}).then((e=>c.setItem(i.name,e))).catch((e=>{t=e}));if(t)throw t;return n},d=a.setState;a.setState=(e,t)=>{d(e,t),u()};const p=e((function(){n(...arguments),u()}),r,a);let h;const b=()=>{var e;if(!c)return;o=!1,s.forEach((e=>e(r())));const t=(null==(e=i.onRehydrateStorage)?void 0:e.call(i,r()))||void 0;return Hn(c.getItem.bind(c))(i.name).then((e=>{if(e)return i.deserialize(e)})).then((e=>{if(e){if("number"!==typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return h=i.merge(e,null!=(t=r())?t:p),n(h,!0),u()})).then((()=>{null==t||t(h,void 0),o=!0,f.forEach((e=>e(h)))})).catch((e=>{null==t||t(void 0,e)}))};return a.persist={setOptions:e=>{i={...i,...e},e.getStorage&&(c=e.getStorage())},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>b(),hasHydrated:()=>o,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(f.add(e),()=>{f.delete(e)})},b(),h||p})(e,t)):((e,t)=>(n,r,a)=>{let i={storage:Gn((()=>localStorage)),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},o=!1;const s=new Set,f=new Set;let c=i.storage;if(!c)return e((function(){console.warn(`[zustand persist middleware] Unable to update item '${i.name}', the given storage is currently unavailable.`),n(...arguments)}),r,a);const l=()=>{const e=i.partialize({...r()});return c.setItem(i.name,{state:e,version:i.version})},u=a.setState;a.setState=(e,t)=>{u(e,t),l()};const d=e((function(){n(...arguments),l()}),r,a);let p;const h=()=>{var e,t;if(!c)return;o=!1,s.forEach((e=>{var t;return e(null!=(t=r())?t:d)}));const a=(null==(t=i.onRehydrateStorage)?void 0:t.call(i,null!=(e=r())?e:d))||void 0;return Hn(c.getItem.bind(c))(i.name).then((e=>{if(e){if("number"!==typeof e.version||e.version===i.version)return e.state;if(i.migrate)return i.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}})).then((e=>{var t;return p=i.merge(e,null!=(t=r())?t:d),n(p,!0),l()})).then((()=>{null==a||a(p,void 0),p=r(),o=!0,f.forEach((e=>e(p)))})).catch((e=>{null==a||a(void 0,e)}))};return a.persist={setOptions:e=>{i={...i,...e},e.storage&&(c=e.storage)},clearStorage:()=>{null==c||c.removeItem(i.name)},getOptions:()=>i,rehydrate:()=>h(),hasHydrated:()=>o,onHydrate:e=>(s.add(e),()=>{s.delete(e)}),onFinishHydration:e=>(f.add(e),()=>{f.delete(e)})},i.skipHydration||h(),p||d})(e,t),Vn=e=>{let t;const n=new Set,r=(e,r)=>{const a="function"===typeof e?e(t):e;if(!Object.is(a,t)){const e=t;t=(null!=r?r:"object"!==typeof a)?a:Object.assign({},t,a),n.forEach((n=>n(t,e)))}},a=()=>t,i={setState:r,getState:a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,a,i),i},qn=e=>e?Vn(e):Vn;var Kn=n(87951),Zn=n(97143),Jn=n.n(Zn);class Yn{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new(Jn())})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e){const t=arguments.length<=1?void 0:arguments[1];this._emitter.emit(e,{uid:this.uid,...t})}listenerCount(e){return this._emitter.listenerCount(e)}}function Qn(e,t){return JSON.parse(e,((e,n)=>{var r,a;let i=n;return"bigint"===(null===(r=i)||void 0===r?void 0:r.__type)&&(i=BigInt(i.value)),"Map"===(null===(a=i)||void 0===a?void 0:a.__type)&&(i=new Map(i.value)),(null===t||void 0===t?void 0:t(e,i))??i}))}function Xn(e,t){return e.slice(0,t).join(".")||"."}function er(e,t){const{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function tr(e,t,n,r){return JSON.stringify(e,function(e,t){const n="function"===typeof e,r="function"===typeof t,a=[],i=[];return function(o,s){if("object"===typeof s)if(a.length){const e=er(a,this);0===e?a[a.length]=this:(a.splice(e),i.splice(e)),i[i.length]=o;const n=er(a,s);if(0!==n)return r?t.call(this,o,s,Xn(i,n)):`[ref=${Xn(i,n)}]`}else a[0]=s,i[0]=o;return n?e.call(this,o,s):s}}(((e,n)=>{let r=n;return"bigint"===typeof r&&(r={__type:"bigint",value:n.toString()}),r instanceof Map&&(r={__type:"Map",value:Array.from(n.entries())}),(null===t||void 0===t?void 0:t(e,r))??r}),r),n??void 0)}function nr(e){const{deserialize:t=Qn,key:n="wagmi",serialize:r=tr,storage:a=rr}=e;function i(e){return e instanceof Promise?e.then((e=>e)).catch((()=>null)):e}return{...a,key:n,async getItem(e,r){const o=a.getItem(`${n}.${e}`),s=await i(o);return s?t(s)??null:r??null},async setItem(e,t){const o=`${n}.${e}`;null===t?await i(a.removeItem(o)):await i(a.setItem(o,r(t)))},async removeItem(e){await i(a.removeItem(`${n}.${e}`))}}}const rr={getItem:()=>null,setItem:()=>{},removeItem:()=>{}},ar=256;let ir,or=ar;var sr=n(11176);function fr(e){const{multiInjectedProviderDiscovery:t=!0,storage:n=nr({storage:"undefined"!==typeof window&&window.localStorage?window.localStorage:rr}),syncConnectedChain:r=!0,ssr:a,...i}=e,o="undefined"!==typeof window&&t?Fn():void 0,s=qn((()=>i.chains)),f=qn((()=>[...i.connectors??[],...a?[]:(null===o||void 0===o?void 0:o.getProviders().map(l))??[]].map(c)));function c(e){var t;const r=function(e){return new Yn(e)}(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:11;if(!ir||or+e>2*ar){ir="",or=0;for(let e=0;e<ar;e++)ir+=(256+256*Math.random()|0).toString(16).substring(1)}return ir.substring(or,or+++e)}()),a={...e({emitter:r,chains:s.getState(),storage:n}),emitter:r,uid:r.uid};return r.on("connect",m),null===(t=a.setup)||void 0===t||t.call(a),a}function l(e){const{info:t}=e,n=e.provider;return(0,Kn.L)({target:{...t,id:t.rdns,provider:n}})}const u=new Map;function d(){return{chainId:s.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let p;const h="0.0.0-canary-";p=sr.i.startsWith(h)?parseInt(sr.i.replace(h,"")):parseInt(sr.i.split(".")[0]??"0");const b=qn($n(n?Wn(d,{migrate(e,t){if(t===p)return e;const n=d(),r=e&&"object"===typeof e&&"chainId"in e&&"number"===typeof e.chainId?e.chainId:n.chainId;return{...n,chainId:r}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map((e=>{let[t,n]=e;const{id:r,name:a,type:i,uid:o}=n.connector,s={id:r,name:a,type:i,uid:o};return[t,{...n,connector:s}]}))},chainId:e.chainId,current:e.current}),skipHydration:a,storage:n,version:p}):d));function y(e){b.setState((t=>{const n=t.connections.get(e.uid);return n?{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts??n.accounts,chainId:e.chainId??n.chainId,connector:n.connector})}:t}))}function m(e){"connecting"!==b.getState().status&&"reconnecting"!==b.getState().status&&b.setState((t=>{const n=f.getState().find((t=>t.uid===e.uid));return n?(n.emitter.listenerCount("connect")&&n.emitter.off("connect",y),n.emitter.listenerCount("change")||n.emitter.on("change",y),n.emitter.listenerCount("disconnect")||n.emitter.on("disconnect",g),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:n}),current:e.uid,status:"connected"}):t}))}function g(e){b.setState((t=>{const n=t.connections.get(e.uid);if(n){const e=n.connector;e.emitter.listenerCount("change")&&n.connector.emitter.off("change",y),e.emitter.listenerCount("disconnect")&&n.connector.emitter.off("disconnect",g),e.emitter.listenerCount("connect")||n.connector.emitter.on("connect",m)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};const r=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:r.connector.uid}}))}return r&&b.subscribe((e=>{var t;let{connections:n,current:r}=e;return r?null===(t=n.get(r))||void 0===t?void 0:t.chainId:void 0}),(e=>{if(s.getState().some((t=>t.id===e)))return b.setState((t=>({...t,chainId:e??t.chainId})))})),null===o||void 0===o||o.subscribe((e=>{const t=new Map;for(const n of f.getState())t.set(n.id,!0);const r=[];for(const n of e){const e=c(l(n));t.has(e.id)||r.push(e)}n&&!b.persist.hasHydrated()||f.setState((e=>[...e,...r]),!0)})),{get chains(){return s.getState()},get connectors(){return f.getState()},storage:n,getClient:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=e.chainId??b.getState().chainId,n=s.getState().find((e=>e.id===t));if(e.chainId&&!n)throw new bn.X4;{const e=u.get(b.getState().chainId);if(e&&!n)return e;if(!n)throw new bn.X4}{const e=u.get(t);if(e)return e}let r;if(i.client)r=i.client({chain:n});else{const e=n.id,t=s.getState().map((e=>e.id)),a={},o=Object.entries(i);for(const[n,r]of o)if("chains"!==n&&"client"!==n&&"connectors"!==n&&"transports"!==n)if("object"===typeof r)if(e in r)a[n]=r[e];else{if(t.some((e=>e in r)))continue;a[n]=r}else a[n]=r;r=(0,zn.e)({...a,chain:n,batch:a.batch??{multicall:!0},transport:t=>i.transports[e]({...t,connectors:f})})}return u.set(t,r),r},get state(){return b.getState()},setState(e){let t;t="function"===typeof e?e(b.getState()):e;const n=d();"object"!==typeof t&&(t=n);Object.keys(n).some((e=>!(e in t)))&&(t=n),b.setState(t,!0)},subscribe:(e,t,n)=>b.subscribe(e,t,n?{...n,fireImmediately:n.emitImmediately}:void 0),_internal:{mipd:o,store:b,ssr:Boolean(a),syncConnectedChain:r,transports:i.transports,chains:{setState(e){const t="function"===typeof e?e(s.getState()):e;if(0!==t.length)return s.setState(t,!0)},subscribe:e=>s.subscribe(e)},connectors:{providerDetailToConnector:l,setup:c,setState:e=>f.setState("function"===typeof e?e(f.getState()):e,!0),subscribe:e=>f.subscribe(e)},events:{change:y,connect:m,disconnect:g}}}}var cr=n(66854),lr=n(54269),ur=n(18854),dr=n(1426),pr=768,hr=function(e){var{conditions:t}=e;if(!t)throw new Error("Styles have no conditions");var n=h(e);return p((function(e,r){if("string"===typeof e||"number"===typeof e||"boolean"===typeof e){if(!t.defaultCondition)throw new Error("No default condition");return r(e,t.defaultCondition)}var a=Array.isArray(e)?n(e):e,i={};for(var o in a)null!=a[o]&&(i[o]=r(a[o],o));return i}),{importPath:"@vanilla-extract/sprinkles/createUtils",importName:"createMapValueFn",args:[{conditions:e.conditions}]})}({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),br=h({conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0}}),yr=w({conditions:{defaultCondition:"base",conditionNames:["base","hover","active"],responsiveArray:void 0},styles:{background:{values:{accentColor:{conditions:{base:"ju367v9i",hover:"ju367v9j",active:"ju367v9k"},defaultClass:"ju367v9i"},accentColorForeground:{conditions:{base:"ju367v9l",hover:"ju367v9m",active:"ju367v9n"},defaultClass:"ju367v9l"},actionButtonBorder:{conditions:{base:"ju367v9o",hover:"ju367v9p",active:"ju367v9q"},defaultClass:"ju367v9o"},actionButtonBorderMobile:{conditions:{base:"ju367v9r",hover:"ju367v9s",active:"ju367v9t"},defaultClass:"ju367v9r"},actionButtonSecondaryBackground:{conditions:{base:"ju367v9u",hover:"ju367v9v",active:"ju367v9w"},defaultClass:"ju367v9u"},closeButton:{conditions:{base:"ju367v9x",hover:"ju367v9y",active:"ju367v9z"},defaultClass:"ju367v9x"},closeButtonBackground:{conditions:{base:"ju367va0",hover:"ju367va1",active:"ju367va2"},defaultClass:"ju367va0"},connectButtonBackground:{conditions:{base:"ju367va3",hover:"ju367va4",active:"ju367va5"},defaultClass:"ju367va3"},connectButtonBackgroundError:{conditions:{base:"ju367va6",hover:"ju367va7",active:"ju367va8"},defaultClass:"ju367va6"},connectButtonInnerBackground:{conditions:{base:"ju367va9",hover:"ju367vaa",active:"ju367vab"},defaultClass:"ju367va9"},connectButtonText:{conditions:{base:"ju367vac",hover:"ju367vad",active:"ju367vae"},defaultClass:"ju367vac"},connectButtonTextError:{conditions:{base:"ju367vaf",hover:"ju367vag",active:"ju367vah"},defaultClass:"ju367vaf"},connectionIndicator:{conditions:{base:"ju367vai",hover:"ju367vaj",active:"ju367vak"},defaultClass:"ju367vai"},downloadBottomCardBackground:{conditions:{base:"ju367val",hover:"ju367vam",active:"ju367van"},defaultClass:"ju367val"},downloadTopCardBackground:{conditions:{base:"ju367vao",hover:"ju367vap",active:"ju367vaq"},defaultClass:"ju367vao"},error:{conditions:{base:"ju367var",hover:"ju367vas",active:"ju367vat"},defaultClass:"ju367var"},generalBorder:{conditions:{base:"ju367vau",hover:"ju367vav",active:"ju367vaw"},defaultClass:"ju367vau"},generalBorderDim:{conditions:{base:"ju367vax",hover:"ju367vay",active:"ju367vaz"},defaultClass:"ju367vax"},menuItemBackground:{conditions:{base:"ju367vb0",hover:"ju367vb1",active:"ju367vb2"},defaultClass:"ju367vb0"},modalBackdrop:{conditions:{base:"ju367vb3",hover:"ju367vb4",active:"ju367vb5"},defaultClass:"ju367vb3"},modalBackground:{conditions:{base:"ju367vb6",hover:"ju367vb7",active:"ju367vb8"},defaultClass:"ju367vb6"},modalBorder:{conditions:{base:"ju367vb9",hover:"ju367vba",active:"ju367vbb"},defaultClass:"ju367vb9"},modalText:{conditions:{base:"ju367vbc",hover:"ju367vbd",active:"ju367vbe"},defaultClass:"ju367vbc"},modalTextDim:{conditions:{base:"ju367vbf",hover:"ju367vbg",active:"ju367vbh"},defaultClass:"ju367vbf"},modalTextSecondary:{conditions:{base:"ju367vbi",hover:"ju367vbj",active:"ju367vbk"},defaultClass:"ju367vbi"},profileAction:{conditions:{base:"ju367vbl",hover:"ju367vbm",active:"ju367vbn"},defaultClass:"ju367vbl"},profileActionHover:{conditions:{base:"ju367vbo",hover:"ju367vbp",active:"ju367vbq"},defaultClass:"ju367vbo"},profileForeground:{conditions:{base:"ju367vbr",hover:"ju367vbs",active:"ju367vbt"},defaultClass:"ju367vbr"},selectedOptionBorder:{conditions:{base:"ju367vbu",hover:"ju367vbv",active:"ju367vbw"},defaultClass:"ju367vbu"},standby:{conditions:{base:"ju367vbx",hover:"ju367vby",active:"ju367vbz"},defaultClass:"ju367vbx"}}},borderColor:{values:{accentColor:{conditions:{base:"ju367vc0",hover:"ju367vc1",active:"ju367vc2"},defaultClass:"ju367vc0"},accentColorForeground:{conditions:{base:"ju367vc3",hover:"ju367vc4",active:"ju367vc5"},defaultClass:"ju367vc3"},actionButtonBorder:{conditions:{base:"ju367vc6",hover:"ju367vc7",active:"ju367vc8"},defaultClass:"ju367vc6"},actionButtonBorderMobile:{conditions:{base:"ju367vc9",hover:"ju367vca",active:"ju367vcb"},defaultClass:"ju367vc9"},actionButtonSecondaryBackground:{conditions:{base:"ju367vcc",hover:"ju367vcd",active:"ju367vce"},defaultClass:"ju367vcc"},closeButton:{conditions:{base:"ju367vcf",hover:"ju367vcg",active:"ju367vch"},defaultClass:"ju367vcf"},closeButtonBackground:{conditions:{base:"ju367vci",hover:"ju367vcj",active:"ju367vck"},defaultClass:"ju367vci"},connectButtonBackground:{conditions:{base:"ju367vcl",hover:"ju367vcm",active:"ju367vcn"},defaultClass:"ju367vcl"},connectButtonBackgroundError:{conditions:{base:"ju367vco",hover:"ju367vcp",active:"ju367vcq"},defaultClass:"ju367vco"},connectButtonInnerBackground:{conditions:{base:"ju367vcr",hover:"ju367vcs",active:"ju367vct"},defaultClass:"ju367vcr"},connectButtonText:{conditions:{base:"ju367vcu",hover:"ju367vcv",active:"ju367vcw"},defaultClass:"ju367vcu"},connectButtonTextError:{conditions:{base:"ju367vcx",hover:"ju367vcy",active:"ju367vcz"},defaultClass:"ju367vcx"},connectionIndicator:{conditions:{base:"ju367vd0",hover:"ju367vd1",active:"ju367vd2"},defaultClass:"ju367vd0"},downloadBottomCardBackground:{conditions:{base:"ju367vd3",hover:"ju367vd4",active:"ju367vd5"},defaultClass:"ju367vd3"},downloadTopCardBackground:{conditions:{base:"ju367vd6",hover:"ju367vd7",active:"ju367vd8"},defaultClass:"ju367vd6"},error:{conditions:{base:"ju367vd9",hover:"ju367vda",active:"ju367vdb"},defaultClass:"ju367vd9"},generalBorder:{conditions:{base:"ju367vdc",hover:"ju367vdd",active:"ju367vde"},defaultClass:"ju367vdc"},generalBorderDim:{conditions:{base:"ju367vdf",hover:"ju367vdg",active:"ju367vdh"},defaultClass:"ju367vdf"},menuItemBackground:{conditions:{base:"ju367vdi",hover:"ju367vdj",active:"ju367vdk"},defaultClass:"ju367vdi"},modalBackdrop:{conditions:{base:"ju367vdl",hover:"ju367vdm",active:"ju367vdn"},defaultClass:"ju367vdl"},modalBackground:{conditions:{base:"ju367vdo",hover:"ju367vdp",active:"ju367vdq"},defaultClass:"ju367vdo"},modalBorder:{conditions:{base:"ju367vdr",hover:"ju367vds",active:"ju367vdt"},defaultClass:"ju367vdr"},modalText:{conditions:{base:"ju367vdu",hover:"ju367vdv",active:"ju367vdw"},defaultClass:"ju367vdu"},modalTextDim:{conditions:{base:"ju367vdx",hover:"ju367vdy",active:"ju367vdz"},defaultClass:"ju367vdx"},modalTextSecondary:{conditions:{base:"ju367ve0",hover:"ju367ve1",active:"ju367ve2"},defaultClass:"ju367ve0"},profileAction:{conditions:{base:"ju367ve3",hover:"ju367ve4",active:"ju367ve5"},defaultClass:"ju367ve3"},profileActionHover:{conditions:{base:"ju367ve6",hover:"ju367ve7",active:"ju367ve8"},defaultClass:"ju367ve6"},profileForeground:{conditions:{base:"ju367ve9",hover:"ju367vea",active:"ju367veb"},defaultClass:"ju367ve9"},selectedOptionBorder:{conditions:{base:"ju367vec",hover:"ju367ved",active:"ju367vee"},defaultClass:"ju367vec"},standby:{conditions:{base:"ju367vef",hover:"ju367veg",active:"ju367veh"},defaultClass:"ju367vef"}}},boxShadow:{values:{connectButton:{conditions:{base:"ju367vei",hover:"ju367vej",active:"ju367vek"},defaultClass:"ju367vei"},dialog:{conditions:{base:"ju367vel",hover:"ju367vem",active:"ju367ven"},defaultClass:"ju367vel"},profileDetailsAction:{conditions:{base:"ju367veo",hover:"ju367vep",active:"ju367veq"},defaultClass:"ju367veo"},selectedOption:{conditions:{base:"ju367ver",hover:"ju367ves",active:"ju367vet"},defaultClass:"ju367ver"},selectedWallet:{conditions:{base:"ju367veu",hover:"ju367vev",active:"ju367vew"},defaultClass:"ju367veu"},walletLogo:{conditions:{base:"ju367vex",hover:"ju367vey",active:"ju367vez"},defaultClass:"ju367vex"}}},color:{values:{accentColor:{conditions:{base:"ju367vf0",hover:"ju367vf1",active:"ju367vf2"},defaultClass:"ju367vf0"},accentColorForeground:{conditions:{base:"ju367vf3",hover:"ju367vf4",active:"ju367vf5"},defaultClass:"ju367vf3"},actionButtonBorder:{conditions:{base:"ju367vf6",hover:"ju367vf7",active:"ju367vf8"},defaultClass:"ju367vf6"},actionButtonBorderMobile:{conditions:{base:"ju367vf9",hover:"ju367vfa",active:"ju367vfb"},defaultClass:"ju367vf9"},actionButtonSecondaryBackground:{conditions:{base:"ju367vfc",hover:"ju367vfd",active:"ju367vfe"},defaultClass:"ju367vfc"},closeButton:{conditions:{base:"ju367vff",hover:"ju367vfg",active:"ju367vfh"},defaultClass:"ju367vff"},closeButtonBackground:{conditions:{base:"ju367vfi",hover:"ju367vfj",active:"ju367vfk"},defaultClass:"ju367vfi"},connectButtonBackground:{conditions:{base:"ju367vfl",hover:"ju367vfm",active:"ju367vfn"},defaultClass:"ju367vfl"},connectButtonBackgroundError:{conditions:{base:"ju367vfo",hover:"ju367vfp",active:"ju367vfq"},defaultClass:"ju367vfo"},connectButtonInnerBackground:{conditions:{base:"ju367vfr",hover:"ju367vfs",active:"ju367vft"},defaultClass:"ju367vfr"},connectButtonText:{conditions:{base:"ju367vfu",hover:"ju367vfv",active:"ju367vfw"},defaultClass:"ju367vfu"},connectButtonTextError:{conditions:{base:"ju367vfx",hover:"ju367vfy",active:"ju367vfz"},defaultClass:"ju367vfx"},connectionIndicator:{conditions:{base:"ju367vg0",hover:"ju367vg1",active:"ju367vg2"},defaultClass:"ju367vg0"},downloadBottomCardBackground:{conditions:{base:"ju367vg3",hover:"ju367vg4",active:"ju367vg5"},defaultClass:"ju367vg3"},downloadTopCardBackground:{conditions:{base:"ju367vg6",hover:"ju367vg7",active:"ju367vg8"},defaultClass:"ju367vg6"},error:{conditions:{base:"ju367vg9",hover:"ju367vga",active:"ju367vgb"},defaultClass:"ju367vg9"},generalBorder:{conditions:{base:"ju367vgc",hover:"ju367vgd",active:"ju367vge"},defaultClass:"ju367vgc"},generalBorderDim:{conditions:{base:"ju367vgf",hover:"ju367vgg",active:"ju367vgh"},defaultClass:"ju367vgf"},menuItemBackground:{conditions:{base:"ju367vgi",hover:"ju367vgj",active:"ju367vgk"},defaultClass:"ju367vgi"},modalBackdrop:{conditions:{base:"ju367vgl",hover:"ju367vgm",active:"ju367vgn"},defaultClass:"ju367vgl"},modalBackground:{conditions:{base:"ju367vgo",hover:"ju367vgp",active:"ju367vgq"},defaultClass:"ju367vgo"},modalBorder:{conditions:{base:"ju367vgr",hover:"ju367vgs",active:"ju367vgt"},defaultClass:"ju367vgr"},modalText:{conditions:{base:"ju367vgu",hover:"ju367vgv",active:"ju367vgw"},defaultClass:"ju367vgu"},modalTextDim:{conditions:{base:"ju367vgx",hover:"ju367vgy",active:"ju367vgz"},defaultClass:"ju367vgx"},modalTextSecondary:{conditions:{base:"ju367vh0",hover:"ju367vh1",active:"ju367vh2"},defaultClass:"ju367vh0"},profileAction:{conditions:{base:"ju367vh3",hover:"ju367vh4",active:"ju367vh5"},defaultClass:"ju367vh3"},profileActionHover:{conditions:{base:"ju367vh6",hover:"ju367vh7",active:"ju367vh8"},defaultClass:"ju367vh6"},profileForeground:{conditions:{base:"ju367vh9",hover:"ju367vha",active:"ju367vhb"},defaultClass:"ju367vh9"},selectedOptionBorder:{conditions:{base:"ju367vhc",hover:"ju367vhd",active:"ju367vhe"},defaultClass:"ju367vhc"},standby:{conditions:{base:"ju367vhf",hover:"ju367vhg",active:"ju367vhh"},defaultClass:"ju367vhf"}}}}},{conditions:{defaultCondition:"smallScreen",conditionNames:["smallScreen","largeScreen"],responsiveArray:void 0},styles:{alignItems:{values:{"flex-start":{conditions:{smallScreen:"ju367v0",largeScreen:"ju367v1"},defaultClass:"ju367v0"},"flex-end":{conditions:{smallScreen:"ju367v2",largeScreen:"ju367v3"},defaultClass:"ju367v2"},center:{conditions:{smallScreen:"ju367v4",largeScreen:"ju367v5"},defaultClass:"ju367v4"}}},display:{values:{none:{conditions:{smallScreen:"ju367v6",largeScreen:"ju367v7"},defaultClass:"ju367v6"},block:{conditions:{smallScreen:"ju367v8",largeScreen:"ju367v9"},defaultClass:"ju367v8"},flex:{conditions:{smallScreen:"ju367va",largeScreen:"ju367vb"},defaultClass:"ju367va"},inline:{conditions:{smallScreen:"ju367vc",largeScreen:"ju367vd"},defaultClass:"ju367vc"}}}}},{conditions:void 0,styles:{margin:{mappings:["marginTop","marginBottom","marginLeft","marginRight"]},marginX:{mappings:["marginLeft","marginRight"]},marginY:{mappings:["marginTop","marginBottom"]},padding:{mappings:["paddingTop","paddingBottom","paddingLeft","paddingRight"]},paddingX:{mappings:["paddingLeft","paddingRight"]},paddingY:{mappings:["paddingTop","paddingBottom"]},alignSelf:{values:{"flex-start":{defaultClass:"ju367ve"},"flex-end":{defaultClass:"ju367vf"},center:{defaultClass:"ju367vg"}}},backgroundSize:{values:{cover:{defaultClass:"ju367vh"}}},borderRadius:{values:{1:{defaultClass:"ju367vi"},6:{defaultClass:"ju367vj"},10:{defaultClass:"ju367vk"},13:{defaultClass:"ju367vl"},actionButton:{defaultClass:"ju367vm"},connectButton:{defaultClass:"ju367vn"},menuButton:{defaultClass:"ju367vo"},modal:{defaultClass:"ju367vp"},modalMobile:{defaultClass:"ju367vq"},"25%":{defaultClass:"ju367vr"},full:{defaultClass:"ju367vs"}}},borderStyle:{values:{solid:{defaultClass:"ju367vt"}}},borderWidth:{values:{0:{defaultClass:"ju367vu"},1:{defaultClass:"ju367vv"},2:{defaultClass:"ju367vw"},4:{defaultClass:"ju367vx"}}},cursor:{values:{pointer:{defaultClass:"ju367vy"},none:{defaultClass:"ju367vz"}}},pointerEvents:{values:{none:{defaultClass:"ju367v10"},all:{defaultClass:"ju367v11"}}},minHeight:{values:{8:{defaultClass:"ju367v12"},44:{defaultClass:"ju367v13"}}},flexDirection:{values:{row:{defaultClass:"ju367v14"},column:{defaultClass:"ju367v15"}}},fontFamily:{values:{body:{defaultClass:"ju367v16"}}},fontSize:{values:{12:{defaultClass:"ju367v17"},13:{defaultClass:"ju367v18"},14:{defaultClass:"ju367v19"},16:{defaultClass:"ju367v1a"},18:{defaultClass:"ju367v1b"},20:{defaultClass:"ju367v1c"},23:{defaultClass:"ju367v1d"}}},fontWeight:{values:{regular:{defaultClass:"ju367v1e"},medium:{defaultClass:"ju367v1f"},semibold:{defaultClass:"ju367v1g"},bold:{defaultClass:"ju367v1h"},heavy:{defaultClass:"ju367v1i"}}},gap:{values:{0:{defaultClass:"ju367v1j"},1:{defaultClass:"ju367v1k"},2:{defaultClass:"ju367v1l"},3:{defaultClass:"ju367v1m"},4:{defaultClass:"ju367v1n"},5:{defaultClass:"ju367v1o"},6:{defaultClass:"ju367v1p"},8:{defaultClass:"ju367v1q"},10:{defaultClass:"ju367v1r"},12:{defaultClass:"ju367v1s"},14:{defaultClass:"ju367v1t"},16:{defaultClass:"ju367v1u"},18:{defaultClass:"ju367v1v"},20:{defaultClass:"ju367v1w"},24:{defaultClass:"ju367v1x"},28:{defaultClass:"ju367v1y"},32:{defaultClass:"ju367v1z"},36:{defaultClass:"ju367v20"},44:{defaultClass:"ju367v21"},64:{defaultClass:"ju367v22"},"-1":{defaultClass:"ju367v23"}}},height:{values:{1:{defaultClass:"ju367v24"},2:{defaultClass:"ju367v25"},4:{defaultClass:"ju367v26"},8:{defaultClass:"ju367v27"},12:{defaultClass:"ju367v28"},20:{defaultClass:"ju367v29"},24:{defaultClass:"ju367v2a"},28:{defaultClass:"ju367v2b"},30:{defaultClass:"ju367v2c"},32:{defaultClass:"ju367v2d"},34:{defaultClass:"ju367v2e"},36:{defaultClass:"ju367v2f"},40:{defaultClass:"ju367v2g"},44:{defaultClass:"ju367v2h"},48:{defaultClass:"ju367v2i"},54:{defaultClass:"ju367v2j"},60:{defaultClass:"ju367v2k"},200:{defaultClass:"ju367v2l"},full:{defaultClass:"ju367v2m"},max:{defaultClass:"ju367v2n"}}},justifyContent:{values:{"flex-start":{defaultClass:"ju367v2o"},"flex-end":{defaultClass:"ju367v2p"},center:{defaultClass:"ju367v2q"},"space-between":{defaultClass:"ju367v2r"},"space-around":{defaultClass:"ju367v2s"}}},textAlign:{values:{left:{defaultClass:"ju367v2t"},center:{defaultClass:"ju367v2u"},inherit:{defaultClass:"ju367v2v"}}},marginBottom:{values:{0:{defaultClass:"ju367v2w"},1:{defaultClass:"ju367v2x"},2:{defaultClass:"ju367v2y"},3:{defaultClass:"ju367v2z"},4:{defaultClass:"ju367v30"},5:{defaultClass:"ju367v31"},6:{defaultClass:"ju367v32"},8:{defaultClass:"ju367v33"},10:{defaultClass:"ju367v34"},12:{defaultClass:"ju367v35"},14:{defaultClass:"ju367v36"},16:{defaultClass:"ju367v37"},18:{defaultClass:"ju367v38"},20:{defaultClass:"ju367v39"},24:{defaultClass:"ju367v3a"},28:{defaultClass:"ju367v3b"},32:{defaultClass:"ju367v3c"},36:{defaultClass:"ju367v3d"},44:{defaultClass:"ju367v3e"},64:{defaultClass:"ju367v3f"},"-1":{defaultClass:"ju367v3g"}}},marginLeft:{values:{0:{defaultClass:"ju367v3h"},1:{defaultClass:"ju367v3i"},2:{defaultClass:"ju367v3j"},3:{defaultClass:"ju367v3k"},4:{defaultClass:"ju367v3l"},5:{defaultClass:"ju367v3m"},6:{defaultClass:"ju367v3n"},8:{defaultClass:"ju367v3o"},10:{defaultClass:"ju367v3p"},12:{defaultClass:"ju367v3q"},14:{defaultClass:"ju367v3r"},16:{defaultClass:"ju367v3s"},18:{defaultClass:"ju367v3t"},20:{defaultClass:"ju367v3u"},24:{defaultClass:"ju367v3v"},28:{defaultClass:"ju367v3w"},32:{defaultClass:"ju367v3x"},36:{defaultClass:"ju367v3y"},44:{defaultClass:"ju367v3z"},64:{defaultClass:"ju367v40"},"-1":{defaultClass:"ju367v41"}}},marginRight:{values:{0:{defaultClass:"ju367v42"},1:{defaultClass:"ju367v43"},2:{defaultClass:"ju367v44"},3:{defaultClass:"ju367v45"},4:{defaultClass:"ju367v46"},5:{defaultClass:"ju367v47"},6:{defaultClass:"ju367v48"},8:{defaultClass:"ju367v49"},10:{defaultClass:"ju367v4a"},12:{defaultClass:"ju367v4b"},14:{defaultClass:"ju367v4c"},16:{defaultClass:"ju367v4d"},18:{defaultClass:"ju367v4e"},20:{defaultClass:"ju367v4f"},24:{defaultClass:"ju367v4g"},28:{defaultClass:"ju367v4h"},32:{defaultClass:"ju367v4i"},36:{defaultClass:"ju367v4j"},44:{defaultClass:"ju367v4k"},64:{defaultClass:"ju367v4l"},"-1":{defaultClass:"ju367v4m"}}},marginTop:{values:{0:{defaultClass:"ju367v4n"},1:{defaultClass:"ju367v4o"},2:{defaultClass:"ju367v4p"},3:{defaultClass:"ju367v4q"},4:{defaultClass:"ju367v4r"},5:{defaultClass:"ju367v4s"},6:{defaultClass:"ju367v4t"},8:{defaultClass:"ju367v4u"},10:{defaultClass:"ju367v4v"},12:{defaultClass:"ju367v4w"},14:{defaultClass:"ju367v4x"},16:{defaultClass:"ju367v4y"},18:{defaultClass:"ju367v4z"},20:{defaultClass:"ju367v50"},24:{defaultClass:"ju367v51"},28:{defaultClass:"ju367v52"},32:{defaultClass:"ju367v53"},36:{defaultClass:"ju367v54"},44:{defaultClass:"ju367v55"},64:{defaultClass:"ju367v56"},"-1":{defaultClass:"ju367v57"}}},maxWidth:{values:{1:{defaultClass:"ju367v58"},2:{defaultClass:"ju367v59"},4:{defaultClass:"ju367v5a"},8:{defaultClass:"ju367v5b"},12:{defaultClass:"ju367v5c"},20:{defaultClass:"ju367v5d"},24:{defaultClass:"ju367v5e"},28:{defaultClass:"ju367v5f"},30:{defaultClass:"ju367v5g"},32:{defaultClass:"ju367v5h"},34:{defaultClass:"ju367v5i"},36:{defaultClass:"ju367v5j"},40:{defaultClass:"ju367v5k"},44:{defaultClass:"ju367v5l"},48:{defaultClass:"ju367v5m"},54:{defaultClass:"ju367v5n"},60:{defaultClass:"ju367v5o"},200:{defaultClass:"ju367v5p"},full:{defaultClass:"ju367v5q"},max:{defaultClass:"ju367v5r"}}},minWidth:{values:{1:{defaultClass:"ju367v5s"},2:{defaultClass:"ju367v5t"},4:{defaultClass:"ju367v5u"},8:{defaultClass:"ju367v5v"},12:{defaultClass:"ju367v5w"},20:{defaultClass:"ju367v5x"},24:{defaultClass:"ju367v5y"},28:{defaultClass:"ju367v5z"},30:{defaultClass:"ju367v60"},32:{defaultClass:"ju367v61"},34:{defaultClass:"ju367v62"},36:{defaultClass:"ju367v63"},40:{defaultClass:"ju367v64"},44:{defaultClass:"ju367v65"},48:{defaultClass:"ju367v66"},54:{defaultClass:"ju367v67"},60:{defaultClass:"ju367v68"},200:{defaultClass:"ju367v69"},full:{defaultClass:"ju367v6a"},max:{defaultClass:"ju367v6b"}}},overflow:{values:{hidden:{defaultClass:"ju367v6c"}}},paddingBottom:{values:{0:{defaultClass:"ju367v6d"},1:{defaultClass:"ju367v6e"},2:{defaultClass:"ju367v6f"},3:{defaultClass:"ju367v6g"},4:{defaultClass:"ju367v6h"},5:{defaultClass:"ju367v6i"},6:{defaultClass:"ju367v6j"},8:{defaultClass:"ju367v6k"},10:{defaultClass:"ju367v6l"},12:{defaultClass:"ju367v6m"},14:{defaultClass:"ju367v6n"},16:{defaultClass:"ju367v6o"},18:{defaultClass:"ju367v6p"},20:{defaultClass:"ju367v6q"},24:{defaultClass:"ju367v6r"},28:{defaultClass:"ju367v6s"},32:{defaultClass:"ju367v6t"},36:{defaultClass:"ju367v6u"},44:{defaultClass:"ju367v6v"},64:{defaultClass:"ju367v6w"},"-1":{defaultClass:"ju367v6x"}}},paddingLeft:{values:{0:{defaultClass:"ju367v6y"},1:{defaultClass:"ju367v6z"},2:{defaultClass:"ju367v70"},3:{defaultClass:"ju367v71"},4:{defaultClass:"ju367v72"},5:{defaultClass:"ju367v73"},6:{defaultClass:"ju367v74"},8:{defaultClass:"ju367v75"},10:{defaultClass:"ju367v76"},12:{defaultClass:"ju367v77"},14:{defaultClass:"ju367v78"},16:{defaultClass:"ju367v79"},18:{defaultClass:"ju367v7a"},20:{defaultClass:"ju367v7b"},24:{defaultClass:"ju367v7c"},28:{defaultClass:"ju367v7d"},32:{defaultClass:"ju367v7e"},36:{defaultClass:"ju367v7f"},44:{defaultClass:"ju367v7g"},64:{defaultClass:"ju367v7h"},"-1":{defaultClass:"ju367v7i"}}},paddingRight:{values:{0:{defaultClass:"ju367v7j"},1:{defaultClass:"ju367v7k"},2:{defaultClass:"ju367v7l"},3:{defaultClass:"ju367v7m"},4:{defaultClass:"ju367v7n"},5:{defaultClass:"ju367v7o"},6:{defaultClass:"ju367v7p"},8:{defaultClass:"ju367v7q"},10:{defaultClass:"ju367v7r"},12:{defaultClass:"ju367v7s"},14:{defaultClass:"ju367v7t"},16:{defaultClass:"ju367v7u"},18:{defaultClass:"ju367v7v"},20:{defaultClass:"ju367v7w"},24:{defaultClass:"ju367v7x"},28:{defaultClass:"ju367v7y"},32:{defaultClass:"ju367v7z"},36:{defaultClass:"ju367v80"},44:{defaultClass:"ju367v81"},64:{defaultClass:"ju367v82"},"-1":{defaultClass:"ju367v83"}}},paddingTop:{values:{0:{defaultClass:"ju367v84"},1:{defaultClass:"ju367v85"},2:{defaultClass:"ju367v86"},3:{defaultClass:"ju367v87"},4:{defaultClass:"ju367v88"},5:{defaultClass:"ju367v89"},6:{defaultClass:"ju367v8a"},8:{defaultClass:"ju367v8b"},10:{defaultClass:"ju367v8c"},12:{defaultClass:"ju367v8d"},14:{defaultClass:"ju367v8e"},16:{defaultClass:"ju367v8f"},18:{defaultClass:"ju367v8g"},20:{defaultClass:"ju367v8h"},24:{defaultClass:"ju367v8i"},28:{defaultClass:"ju367v8j"},32:{defaultClass:"ju367v8k"},36:{defaultClass:"ju367v8l"},44:{defaultClass:"ju367v8m"},64:{defaultClass:"ju367v8n"},"-1":{defaultClass:"ju367v8o"}}},position:{values:{absolute:{defaultClass:"ju367v8p"},fixed:{defaultClass:"ju367v8q"},relative:{defaultClass:"ju367v8r"}}},WebkitUserSelect:{values:{none:{defaultClass:"ju367v8s"}}},right:{values:{0:{defaultClass:"ju367v8t"}}},transition:{values:{default:{defaultClass:"ju367v8u"},transform:{defaultClass:"ju367v8v"}}},userSelect:{values:{none:{defaultClass:"ju367v8w"}}},width:{values:{1:{defaultClass:"ju367v8x"},2:{defaultClass:"ju367v8y"},4:{defaultClass:"ju367v8z"},8:{defaultClass:"ju367v90"},12:{defaultClass:"ju367v91"},20:{defaultClass:"ju367v92"},24:{defaultClass:"ju367v93"},28:{defaultClass:"ju367v94"},30:{defaultClass:"ju367v95"},32:{defaultClass:"ju367v96"},34:{defaultClass:"ju367v97"},36:{defaultClass:"ju367v98"},40:{defaultClass:"ju367v99"},44:{defaultClass:"ju367v9a"},48:{defaultClass:"ju367v9b"},54:{defaultClass:"ju367v9c"},60:{defaultClass:"ju367v9d"},200:{defaultClass:"ju367v9e"},full:{defaultClass:"ju367v9f"},max:{defaultClass:"ju367v9g"}}},backdropFilter:{values:{modalOverlay:{defaultClass:"ju367v9h"}}}}}),mr={colors:{accentColor:"var(--rk-colors-accentColor)",accentColorForeground:"var(--rk-colors-accentColorForeground)",actionButtonBorder:"var(--rk-colors-actionButtonBorder)",actionButtonBorderMobile:"var(--rk-colors-actionButtonBorderMobile)",actionButtonSecondaryBackground:"var(--rk-colors-actionButtonSecondaryBackground)",closeButton:"var(--rk-colors-closeButton)",closeButtonBackground:"var(--rk-colors-closeButtonBackground)",connectButtonBackground:"var(--rk-colors-connectButtonBackground)",connectButtonBackgroundError:"var(--rk-colors-connectButtonBackgroundError)",connectButtonInnerBackground:"var(--rk-colors-connectButtonInnerBackground)",connectButtonText:"var(--rk-colors-connectButtonText)",connectButtonTextError:"var(--rk-colors-connectButtonTextError)",connectionIndicator:"var(--rk-colors-connectionIndicator)",downloadBottomCardBackground:"var(--rk-colors-downloadBottomCardBackground)",downloadTopCardBackground:"var(--rk-colors-downloadTopCardBackground)",error:"var(--rk-colors-error)",generalBorder:"var(--rk-colors-generalBorder)",generalBorderDim:"var(--rk-colors-generalBorderDim)",menuItemBackground:"var(--rk-colors-menuItemBackground)",modalBackdrop:"var(--rk-colors-modalBackdrop)",modalBackground:"var(--rk-colors-modalBackground)",modalBorder:"var(--rk-colors-modalBorder)",modalText:"var(--rk-colors-modalText)",modalTextDim:"var(--rk-colors-modalTextDim)",modalTextSecondary:"var(--rk-colors-modalTextSecondary)",profileAction:"var(--rk-colors-profileAction)",profileActionHover:"var(--rk-colors-profileActionHover)",profileForeground:"var(--rk-colors-profileForeground)",selectedOptionBorder:"var(--rk-colors-selectedOptionBorder)",standby:"var(--rk-colors-standby)"},fonts:{body:"var(--rk-fonts-body)"},radii:{actionButton:"var(--rk-radii-actionButton)",connectButton:"var(--rk-radii-connectButton)",menuButton:"var(--rk-radii-menuButton)",modal:"var(--rk-radii-modal)",modalMobile:"var(--rk-radii-modalMobile)"},shadows:{connectButton:"var(--rk-shadows-connectButton)",dialog:"var(--rk-shadows-dialog)",profileDetailsAction:"var(--rk-shadows-profileDetailsAction)",selectedOption:"var(--rk-shadows-selectedOption)",selectedWallet:"var(--rk-shadows-selectedWallet)",walletLogo:"var(--rk-shadows-walletLogo)"},blurs:{modalOverlay:"var(--rk-blurs-modalOverlay)"}},gr={shrink:"_12cbo8i6",shrinkSm:"_12cbo8i7"},vr="_12cbo8i3 ju367v8r",wr={grow:"_12cbo8i4",growLg:"_12cbo8i5"};function Er(e){let{active:t,hover:n}=e;return[vr,n&&wr[n],gr[t]]}var Ar=(0,d.createContext)(null);function Pr(){const e=(0,d.useContext)(Ar);return(null===e||void 0===e?void 0:e.status)??null}function _r(){const e=Pr(),{isConnected:t}=(0,E.m)();return t?e&&("loading"===e||"unauthenticated"===e)?e:"connected":"disconnected"}function Tr(){return"undefined"!==typeof navigator&&/android/i.test(navigator.userAgent)}function kr(){return"undefined"!==typeof navigator&&/iPhone|iPod/.test(navigator.userAgent)||"undefined"!==typeof navigator&&(/iPad/.test(navigator.userAgent)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)}function Cr(){return Tr()||kr()}var xr={a:"iekbcca",blockquote:"iekbcc2",button:"iekbcc9",input:"iekbcc8 iekbcc5 iekbcc4",mark:"iekbcc6",ol:"iekbcc1",q:"iekbcc2",select:"iekbcc7 iekbcc5 iekbcc4",table:"iekbcc3",textarea:"iekbcc5 iekbcc4",ul:"iekbcc1"},Or=d.forwardRef(((e,t)=>{let{as:n="div",className:r,testId:a,...i}=e;const o={},s={};for(const c in i)yr.properties.has(c)?o[c]=i[c]:s[c]=i[c];const f=(e=>{let{reset:t,...n}=e;if(!t)return yr(n);const r=xr[t],a=yr(n);return P("iekbcc0",r,a)})({reset:"string"===typeof n?n:"div",...o});return d.createElement(n,{className:P(f,r),...s,"data-testid":a?`rk-${a.replace(/^rk-/,"")}`:void 0,ref:t})}));Or.displayName="Box";var Sr=new Map,Rr=new Map;async function Ir(e){const t=Rr.get(e);if(t)return t;const n=async()=>e().then((async t=>(Sr.set(e,t),t))),r=n().catch((t=>n().catch((t=>{Rr.delete(e)}))));return Rr.set(e,r),r}async function Nr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return await Promise.all(t.map((e=>"function"===typeof e?Ir(e):e)))}function Br(e){const t="function"===typeof e?Sr.get(e):void 0,n=function(){const[,e]=(0,d.useReducer)((e=>e+1),0);return e}();return(0,d.useEffect)((()=>{"function"!==typeof e||t||Ir(e).then(n)}),[e,t,n]),"function"===typeof e?t:e}function jr(e){let{alt:t,background:n,borderColor:r,borderRadius:a,useAsImage:i,boxShadow:o,height:s,src:f,width:c,testId:l}=e;const u=kr(),p=Br(f),h=p&&/^http/.test(p),[b,y]=(0,d.useReducer)((()=>!0),!1);return d.createElement(Or,{"aria-label":t,borderRadius:a,boxShadow:o,height:"string"===typeof s?s:void 0,overflow:"hidden",position:"relative",role:"img",style:{background:n,height:"number"===typeof s?s:void 0,width:"number"===typeof c?c:void 0},width:"string"===typeof c?c:void 0,testId:l},d.createElement(Or,{...h?{"aria-hidden":!0,as:"img",onLoad:y,src:p}:{"aria-hidden":!0,as:"img",src:p},height:"full",position:"absolute",...u?{WebkitUserSelect:"none"}:{},style:{WebkitTouchCallout:"none",transition:"opacity .15s linear",userSelect:"none",...!i&&h?{opacity:b?1:0}:{}},width:"full"}),r?d.createElement(Or,{..."object"===typeof r&&"custom"in r?{style:{borderColor:r.custom}}:{borderColor:r},borderRadius:a,borderStyle:"solid",borderWidth:"1",height:"full",position:"relative",width:"full"}):null)}var Dr=e=>{let{height:t=21,width:n=21}=e;const r=(e=>(0,d.useMemo)((()=>`${e}_${Math.round(1e9*Math.random())}`),[e]))("spinner");return d.createElement("svg",{className:"_1luule42",fill:"none",height:t,viewBox:"0 0 21 21",width:n,xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,"Loading"),d.createElement("clipPath",{id:r},d.createElement("path",{d:"M10.5 3C6.35786 3 3 6.35786 3 10.5C3 14.6421 6.35786 18 10.5 18C11.3284 18 12 18.6716 12 19.5C12 20.3284 11.3284 21 10.5 21C4.70101 21 0 16.299 0 10.5C0 4.70101 4.70101 0 10.5 0C16.299 0 21 4.70101 21 10.5C21 11.3284 20.3284 12 19.5 12C18.6716 12 18 11.3284 18 10.5C18 6.35786 14.6421 3 10.5 3Z"})),d.createElement("foreignObject",{clipPath:`url(#${r})`,height:"21",width:"21",x:"0",y:"0"},d.createElement("div",{className:"_1luule43"})))},Lr=["#FC5C54","#FFD95A","#E95D72","#6A87C8","#5FD0F3","#75C06B","#FFDD86","#5FC6D4","#FF949A","#FF8024","#9BA1A4","#EC66FF","#FF8CBC","#FF9A23","#C5DADB","#A8CE63","#71ABFF","#FFE279","#B6B1B6","#FF6780","#A575FF","#4D82FF","#FFB35A"],Mr=[{color:Lr[0],emoji:"\ud83c\udf36"},{color:Lr[1],emoji:"\ud83e\udd11"},{color:Lr[2],emoji:"\ud83d\udc19"},{color:Lr[3],emoji:"\ud83e\uded0"},{color:Lr[4],emoji:"\ud83d\udc33"},{color:Lr[0],emoji:"\ud83e\udd36"},{color:Lr[5],emoji:"\ud83c\udf32"},{color:Lr[6],emoji:"\ud83c\udf1e"},{color:Lr[7],emoji:"\ud83d\udc12"},{color:Lr[8],emoji:"\ud83d\udc35"},{color:Lr[9],emoji:"\ud83e\udd8a"},{color:Lr[10],emoji:"\ud83d\udc3c"},{color:Lr[11],emoji:"\ud83e\udd84"},{color:Lr[12],emoji:"\ud83d\udc37"},{color:Lr[13],emoji:"\ud83d\udc27"},{color:Lr[8],emoji:"\ud83e\udda9"},{color:Lr[14],emoji:"\ud83d\udc7d"},{color:Lr[0],emoji:"\ud83c\udf88"},{color:Lr[8],emoji:"\ud83c\udf49"},{color:Lr[1],emoji:"\ud83c\udf89"},{color:Lr[15],emoji:"\ud83d\udc32"},{color:Lr[16],emoji:"\ud83c\udf0e"},{color:Lr[17],emoji:"\ud83c\udf4a"},{color:Lr[18],emoji:"\ud83d\udc2d"},{color:Lr[19],emoji:"\ud83c\udf63"},{color:Lr[1],emoji:"\ud83d\udc25"},{color:Lr[20],emoji:"\ud83d\udc7e"},{color:Lr[15],emoji:"\ud83e\udd66"},{color:Lr[0],emoji:"\ud83d\udc79"},{color:Lr[17],emoji:"\ud83d\ude40"},{color:Lr[4],emoji:"\u26f1"},{color:Lr[21],emoji:"\u26f5\ufe0f"},{color:Lr[17],emoji:"\ud83e\udd73"},{color:Lr[8],emoji:"\ud83e\udd2f"},{color:Lr[22],emoji:"\ud83e\udd20"}];var Ur=e=>{let{address:t,ensImage:n,size:r}=e;const[a,i]=(0,d.useState)(!1);(0,d.useEffect)((()=>{if(n){const e=new Image;e.src=n,e.onload=()=>i(!0)}}),[n]);const{color:o,emoji:s}=(0,d.useMemo)((()=>function(e){const t="string"===typeof e?e:"",n=Math.abs(function(e){let t=0;if(0===e.length)return t;for(let n=0;n<e.length;n++)t=(t<<5)-t+e.charCodeAt(n),t|=0;return t}(t.toLowerCase())%Mr.length);return Mr[n??0]}(t)),[t]);return n?a?d.createElement(Or,{backgroundSize:"cover",borderRadius:"full",position:"absolute",style:{backgroundImage:`url(${n})`,backgroundPosition:"center",height:r,width:r}}):d.createElement(Or,{alignItems:"center",backgroundSize:"cover",borderRadius:"full",color:"modalText",display:"flex",justifyContent:"center",position:"absolute",style:{height:r,width:r}},d.createElement(Dr,null)):d.createElement(Or,{alignItems:"center",display:"flex",justifyContent:"center",overflow:"hidden",style:{...!n&&{backgroundColor:o},height:r,width:r}},s)},Fr=(0,d.createContext)(Ur);function zr(e){let{address:t,imageUrl:n,loading:r,size:a}=e;const i=(0,d.useContext)(Fr);return d.createElement(Or,{"aria-hidden":!0,borderRadius:"full",overflow:"hidden",position:"relative",style:{height:`${a}px`,width:`${a}px`},userSelect:"none"},d.createElement(Or,{alignItems:"center",borderRadius:"full",display:"flex",justifyContent:"center",overflow:"hidden",position:"absolute",style:{fontSize:`${Math.round(.55*a)}px`,height:`${a}px`,transform:r?"scale(0.72)":void 0,transition:".25s ease",transitionDelay:r?void 0:".1s",width:`${a}px`,willChange:"transform"},userSelect:"none"},d.createElement(i,{address:t,ensImage:n,size:a})),r&&d.createElement(Or,{color:"accentColor",display:"flex",height:"full",position:"absolute",width:"full"},d.createElement(Dr,{height:"100%",width:"100%"})))}var $r=()=>d.createElement("svg",{fill:"none",height:"7",width:"14",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,"Dropdown"),d.createElement("path",{d:"M12.75 1.54001L8.51647 5.0038C7.77974 5.60658 6.72026 5.60658 5.98352 5.0038L1.75 1.54001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",xmlns:"http://www.w3.org/2000/svg"})),Gr="en",Hr="en",Wr=new class{constructor(e){this.listeners=new Set,this.defaultLocale=Gr,this.enableFallback=!1,this.locale=Hr,this.cachedLocales=[],this.translations={};for(const[t,n]of Object.entries(e))this.cachedLocales=[...this.cachedLocales,t],this.translations={...this.translations,...this.flattenTranslation(n,t)}}missingMessage(e){return`[missing: "${this.locale}.${e}" translation]`}flattenTranslation(e,t){const n={},r=(e,t)=>{for(const a of Object.keys(e)){const i=`${t}.${a}`,o=e[a];"object"===typeof o&&null!==o?r(o,i):n[i]=o}};return r(e,t),n}translateWithReplacements(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;for(const r in t){const e=t[r];n=n.replace(`%{${r}}`,e)}return n}t(e,t,n){const r=`${this.locale}.${e}`,a=this.translations[r];if(!a){if(this.enableFallback){const n=`${this.defaultLocale}.${e}`,r=this.translations[n];if(r)return this.translateWithReplacements(r,t)}return null!==n&&void 0!==n&&n.rawKeyIfTranslationMissing?e:this.missingMessage(e)}return this.translateWithReplacements(a,t)}isLocaleCached(e){return this.cachedLocales.includes(e)}updateLocale(e){this.locale=e,this.notifyListeners()}setTranslations(e,t){this.isLocaleCached(e)||(this.cachedLocales=[...this.cachedLocales,e],this.translations={...this.translations,...this.flattenTranslation(t,e)}),this.locale=e,this.notifyListeners()}notifyListeners(){for(const e of this.listeners)e()}onChange(e){return this.listeners.add(e),()=>{this.listeners.delete(e)}}}({en:JSON.parse(u.I),"en-US":JSON.parse(u.I)});Wr.defaultLocale="en-US",Wr.locale="en-US",Wr.enableFallback=!0;async function Vr(e){if(Wr.isLocaleCached(e))return void Wr.updateLocale(e);const t=await(async e=>{switch(e){case"ar":case"ar-AR":return(await n.e(2018).then(n.bind(n,2018))).default;case"en":case"en-US":default:return(await n.e(9288).then(n.bind(n,49288))).default;case"es":case"es-419":return(await n.e(1546).then(n.bind(n,71546))).default;case"fr":case"fr-FR":return(await n.e(8810).then(n.bind(n,88810))).default;case"hi":case"hi-IN":return(await n.e(2782).then(n.bind(n,22782))).default;case"id":case"id-ID":return(await n.e(409).then(n.bind(n,40409))).default;case"ja":case"ja-JP":return(await n.e(8943).then(n.bind(n,38943))).default;case"ko":case"ko-KR":return(await n.e(9422).then(n.bind(n,9422))).default;case"pt":case"pt-BR":return(await n.e(4839).then(n.bind(n,4839))).default;case"ru":case"ru-RU":return(await n.e(518).then(n.bind(n,60518))).default;case"th":case"th-TH":return(await n.e(9106).then(n.bind(n,49106))).default;case"tr":case"tr-TR":return(await n.e(8831).then(n.bind(n,28831))).default;case"ua":case"uk-UA":return(await n.e(1388).then(n.bind(n,11388))).default;case"zh":case"zh-CN":return(await n.e(2878).then(n.bind(n,62878))).default}})(e);Wr.setTranslations(e,JSON.parse(t))}var qr=(0,d.createContext)({i18n:Wr}),Kr=e=>{let{children:t,locale:n}=e;const[r,a]=(0,d.useState)(0),i=(0,d.useMemo)((()=>(()=>{if("undefined"!==typeof window&&"undefined"!==typeof navigator){var e;if(null!==(e=navigator.languages)&&void 0!==e&&e.length)return navigator.languages[0];if(navigator.language)return navigator.language}})()),[]);(0,d.useEffect)((()=>Wr.onChange((()=>{a((e=>e+1))}))),[]),(0,d.useEffect)((()=>{n&&n!==Wr.locale?Vr(n):!n&&i&&i!==Wr.locale&&Vr(i)}),[n,i]);const o=(0,d.useMemo)((()=>({t:(e,t)=>Wr.t(e,t),i18n:Wr})),[r]);return d.createElement(qr.Provider,{value:o},t)};function Zr(e){return null!=e}var Jr={iconBackground:"#96bedc",iconUrl:async()=>(await n.e(6684).then(n.bind(n,56684))).default},Yr={iconBackground:"#e84141",iconUrl:async()=>(await n.e(8287).then(n.bind(n,38287))).default},Qr={iconBackground:"#0052ff",iconUrl:async()=>(await n.e(1743).then(n.bind(n,1743))).default},Xr={iconBackground:"#000000",iconUrl:async()=>(await n.e(2658).then(n.bind(n,62658))).default},ea={iconBackground:"#ebac0e",iconUrl:async()=>(await n.e(3224).then(n.bind(n,13224))).default},ta={iconBackground:"#002D74",iconUrl:async()=>(await n.e(8650).then(n.bind(n,38650))).default},na={iconBackground:"#484c50",iconUrl:async()=>(await n.e(6360).then(n.bind(n,46360))).default},ra={iconBackground:"#f9f7ec",iconUrl:async()=>(await n.e(1885).then(n.bind(n,11885))).default},aa={iconBackground:"transparent",iconUrl:async()=>(await n.e(9906).then(n.bind(n,59906))).default},ia={iconBackground:"#ff5a57",iconUrl:async()=>(await n.e(9255).then(n.bind(n,52968))).default},oa={iconBackground:"#ffffff",iconUrl:async()=>(await n.e(9815).then(n.bind(n,99815))).default},sa={iconBackground:"#9f71ec",iconUrl:async()=>(await n.e(5406).then(n.bind(n,95406))).default},fa={iconBackground:"#f9f7ec",iconUrl:async()=>(await n.e(8338).then(n.bind(n,48338))).default},ca={iconBackground:"#000000",iconUrl:async()=>(await n.e(1825).then(n.bind(n,31825))).default},la={iconBackground:"#f9f7ec",iconUrl:async()=>(await n.e(345).then(n.bind(n,40345))).default},ua={iconBackground:"#000000",iconUrl:async()=>(await n.e(2956).then(n.bind(n,62956))).default},da={iconBackground:"#1273EA",iconUrl:async()=>(await n.e(1778).then(n.bind(n,51778))).default},pa={arbitrum:{chainId:42161,name:"Arbitrum",...Jr},arbitrumGoerli:{chainId:421613,...Jr},arbitrumSepolia:{chainId:421614,...Jr},avalanche:{chainId:43114,...Yr},avalancheFuji:{chainId:43113,...Yr},base:{chainId:8453,name:"Base",...Qr},baseGoerli:{chainId:84531,...Qr},baseSepolia:{chainId:84532,...Qr},blast:{chainId:81457,name:"Blast",...Xr},blastSepolia:{chainId:168587773,...Xr},bsc:{chainId:56,name:"BSC",...ea},bscTestnet:{chainId:97,...ea},cronos:{chainId:25,...ta},cronosTestnet:{chainId:338,...ta},goerli:{chainId:5,...na},hardhat:{chainId:31337,...ra},holesky:{chainId:17e3,...na},kovan:{chainId:42,...na},klaytn:{chainId:8217,name:"Klaytn",...aa},klaytnBaobab:{chainId:1001,name:"Klaytn Baobab",...aa},localhost:{chainId:1337,...na},mainnet:{chainId:1,name:"Ethereum",...na},manta:{chainId:169,name:"Manta",...oa},mantaSepolia:{chainId:3441006,...oa},mantaTestnet:{chainId:3441005,...oa},optimism:{chainId:10,name:"Optimism",...ia},optimismGoerli:{chainId:420,...ia},optimismKovan:{chainId:69,...ia},optimismSepolia:{chainId:11155420,...ia},polygon:{chainId:137,name:"Polygon",...sa},polygonMumbai:{chainId:80001,...sa},rinkeby:{chainId:4,...na},ropsten:{chainId:3,...na},ronin:{chainId:2020,...da},sepolia:{chainId:11155111,...na},xdc:{chainId:50,name:"XinFin",...fa},xdcTestnet:{chainId:51,...fa},zetachain:{chainId:7e3,name:"ZetaChain",...ca},zetachainAthensTestnet:{chainId:7001,name:"Zeta Athens",...ca},zkSync:{chainId:324,name:"zkSync",...la},zkSyncTestnet:{chainId:280,...la},zora:{chainId:7777777,name:"Zora",...ua},zoraSepolia:{chainId:999999999,...ua},zoraTestnet:{chainId:999,...ua}},ha=Object.fromEntries(Object.values(pa).filter(Zr).map((e=>{let{chainId:t,...n}=e;return[t,n]}))),ba=e=>e.map((e=>{const t=ha[e.id]??{};return{...e,name:t.name??e.name,iconUrl:e.iconUrl??t.iconUrl,iconBackground:e.iconBackground??t.iconBackground}})),ya=(0,d.createContext)({chains:[]});function ma(e){let{children:t,initialChain:n}=e;const{chains:r}=(0,_.Z)();return d.createElement(ya.Provider,{value:(0,d.useMemo)((()=>({chains:ba(r),initialChainId:"number"===typeof n?n:null===n||void 0===n?void 0:n.id})),[r,n])},t)}var ga=()=>(0,d.useContext)(ya).chains,va=()=>(0,d.useContext)(ya).initialChainId,wa=()=>{const e=ga();return(0,d.useMemo)((()=>{const t={};for(const n of e)t[n.id]=n;return t}),[e])},Ea=(0,d.createContext)({showBalance:void 0,setShowBalance:()=>{}});function Aa(e){let{children:t}=e;const[n,r]=(0,d.useState)();return d.createElement(Ea.Provider,{value:{showBalance:n,setShowBalance:r}},t)}var Pa=()=>(0,d.useContext)(Ea);function _a(){const[e,t]=(0,d.useState)(!1);return(0,d.useEffect)((()=>(t(!0),()=>{t(!1)})),[]),(0,d.useCallback)((()=>e),[e])}function Ta(){const e=ga(),t=lt.R.id;return e.some((e=>e.id===t))}function ka(e){const t=Ta(),{data:n}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{name:t,query:n={}}=e,r=(0,_.Z)(e),a=(0,z.x)({config:r}),i=ft(r,{...e,chainId:e.chainId??a}),o=Boolean(t&&(n.enabled??!0));return(0,F.aM)({...n,...i,enabled:o})}({chainId:lt.R.id,name:e?(e=>{try{return ot(e)}catch{}})(e):void 0,query:{enabled:t}});return n}async function Ca(e,t){if(t={headers:{},method:"get",...t,timeout:t.timeout??1e4},!e)throw new Error("rainbowFetch: Missing url argument");const n=new AbortController,r=setTimeout((()=>n.abort()),t.timeout),{body:a,params:i,headers:o,...s}=t,f=a&&"object"===typeof a?JSON.stringify(t.body):t.body,c=await fetch(`${e}${function(e){return e&&Object.keys(e).length?`?${new URLSearchParams(e)}`:""}(i)}`,{...s,body:f,headers:{Accept:"application/json","Content-Type":"application/json",...o},signal:n.signal});clearTimeout(r);const l=await function(e){const t=e.headers.get("Content-Type");if(null!==t&&void 0!==t&&t.startsWith("application/json"))return e.json();return e.text()}(c);if(c.ok){const{headers:e,status:t}=c;return{data:l,headers:e,status:t}}const u=function(e){let{requestBody:t,response:n,responseBody:r}=e;const a=(null===r||void 0===r?void 0:r.error)||(null===n||void 0===n?void 0:n.statusText)||"There was an error with the request.",i=new Error(a);return i.response=n,i.responseBody=r,i.requestBody=t,i}({requestBody:a,response:c,responseBody:"string"===typeof l?{error:l}:l});throw u}var xa=function(e){let{baseUrl:t,headers:n,params:r,timeout:a}=e;return new class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{baseUrl:t="",...n}=e;this.baseUrl=t,this.opts=n}get(e,t){return Ca(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"get"})}delete(e,t){return Ca(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"delete"})}head(e,t){return Ca(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"head"})}options(e,t){return Ca(`${this.baseUrl}${e}`,{...this.opts,...t||{},method:"options"})}post(e,t,n){return Ca(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"post"})}put(e,t,n){return Ca(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"put"})}patch(e,t,n){return Ca(`${this.baseUrl}${e}`,{...this.opts,...n||{},body:t,method:"patch"})}}({baseUrl:t,headers:n,params:r,timeout:a})}({baseUrl:"https://enhanced-provider.rainbow.me",headers:{"x-api-key":"undefined"!==typeof dr&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_BADGE_INDEXER_URL:"https://canvas-indexer.scroll.cat",REACT_APP_L2_USDC_GATEWAY_PROXY_ADDR:"",REACT_APP_L2_ETH_GATEWAY_PROXY_ADDR:"0x91e8ADDFe1358aCa5314c644312d38237fC1101C",REACT_APP_L1_MESSAGE_QUEUE:"0xF0B2293F5D834eAe920c6974D50957A1732de763",REACT_APP_L2_SWAP_URI:"https://uniswap-showcase.sepolia.scroll.xyz/",REACT_APP_GOOGLE_ANALYTICS_ID:"G-XR3MGVSHFC",REACT_APP_EXTERNAL_EXPLORER_URI_L1:"https://sepolia.etherscan.io",REACT_APP_EXTERNAL_EXPLORER_URI_L2:"https://sepolia.scrollscan.com",REACT_APP_ROLLUPSCAN_API_URI:"https://sepolia-api-re.scroll.io/api",REACT_APP_L1_SCROLL_MESSENGER:"0x50c7d3e7f7c656493D1D76aaa1a836CedfCBB16A",REACT_APP_SCROLL_CHAIN:"0x2D567EcE699Eabe5afCd141eDB7A4f2D0D6ce8a0",REACT_APP_NAME:"scroll.io",REACT_APP_SCROLL_ORIGINS_NFT_V2:"0xDd7d857F570B0C211abfe05cd914A85BefEC2464",REACT_APP_L2_SCROLL_MESSENGER:"0xBa50f5340FB9F3Bd074bD638c9BE13eCB36E603d",REACT_APP_L1_MESSAGE_QUEUE_WITH_GAS_PRICE_ORACLE:"0xF0B2293F5D834eAe920c6974D50957A1732de763",REACT_APP_SCROLL_ORIGINS_NFT:"0x90a274D591d5AB1a25f0DD0F06F28533C34D7d9f",REACT_APP_L1_WETH_GATEWAY_PROXY_ADDR:"0x3dA0BF44814cfC678376b3311838272158211695",REACT_APP_L2_WETH_GATEWAY_PROXY_ADDR:"0x481B20A927206aF7A754dB8b904B052e2781ea27",REACT_APP_NFT_API_URI:"https://nft.scroll.io",REACT_APP_ETHEREUM_YEAR_BADGE_API_URI:"https://genesis-nft-backend-git-sepolia-scroll-tech.vercel.app",REACT_APP_BRIDGE_API_URI:"https://sepolia-api-bridge-v2.scroll.io/api",REACT_APP_EAS_EXPLORER_URL:"https://scroll-sepolia.easscan.org",REACT_APP_EXTERNAL_EXPLORER_URI_DORA:"https://www.ondora.xyz/network/scroll-sepolia",REACT_APP_SENTRY_DSN:"https://ca6f303c47c5bb4f0077d0cf6ae31b52@sentry.scroll.io/2",REACT_APP_CONNECT_WALLET_PROJECT_ID:"14efbaafcf5232a47d93a68229b71028",REACT_APP_L2_SCAN_URI:"https://scroll-sepolia.l2scan.co",REACT_APP_L1_DAI_GATEWAY_PROXY_ADDR:"0x8b0B9c4e9f41b9bbDEfFee24F9f11C328093d248",REACT_APP_CHAIN_ID_L1:"11155111",REACT_APP_OKX_URI:"https://www.okx.com/web3/explorer/scroll?channelId=scroll",REACT_APP_L2_DAI_GATEWAY_PROXY_ADDR:"0xbF28c28490988026Dca2396148DE50136A54534e",REACT_APP_CHAIN_ID_L2:"534351",REACT_APP_ETHERSCAN_L2:"https://sepolia.scrollscan.com",REACT_APP_MAIN_ENVIRONMENT:"Mainnet",REACT_APP_L1_GATEWAY_ROUTER_PROXY_ADDR:"0x13FBE0D0e5552b8c9c4AE9e2435F38f37355998a",REACT_APP_L1_GAS_PRICE_ORACLE:"0x5300000000000000000000000000000000000002",REACT_APP_API_BASE_URI:"https://sepolia-api.scroll.io",REACT_APP_L2_GATEWAY_ROUTER_PROXY_ADDR:"0x9aD3c5617eCAa556d6E166787A97081907171230",REACT_APP_CANVAS_BACKEND_URI:"https://skelly-backend-git-sepolia-scroll-tech.vercel.app",REACT_APP_PROFILE_REGISTRY_ADDRESS:"0x26aa585d5Da74A373E58c4fA723E1E1f6FD6474f",REACT_APP_NFT_VIEWER_URL:"https://nft.scroll.io",REACT_APP_BADGE_REGISTRY_URL:"https://badge-registry.canvas.scroll.cat",REACT_APP_L1_BATCH_BRIDGE_GATEWAY_PROXY_ADDR:"0xE86ad3312FA693aDeD34dEc3899176d97ac883B2",REACT_APP_UNIFRA_API_KEY:"9d431c1c-d717-4931-9595-ad0b3a246d13",REACT_APP_PREFIX_CLS:"scroll",REACT_APP_VERSION:"5.3.0",REACT_APP_L1_LIDO_GATEWAY_PROXY_ADDR:"0xF22B24fa7c3168f30b17fd97b71bdd3162DDe029",REACT_APP_L2_LIDO_GATEWAY_PROXY_ADDR:"0x635B054A092F6aE61Ce0Fddc397A704F6626510D",REACT_APP_OPEN_BLOCK_URI:"http://obl-data-gateway-dev-568660380.us-east-1.elb.amazonaws.com:8000",REACT_APP_EAS_GRAPHQL_URL:"https://scroll-sepolia.easscan.org/graphql",REACT_APP_FFRONTENDS_URL:"https://sepolia.env.scroll.io",REACT_APP_SCROLL_ENVIRONMENT:"Sepolia",REACT_APP_SCROLL_VENUS_URI:"https://sepolia-venus.scroll.io",REACT_APP_L1_PUFFER_GATEWAY_PROXY_ADDR:"0xA033Ff09f2da45f0e9ae495f525363722Df42b2a",REACT_APP_EXTERNAL_RPC_URI_L1:"https://ethereum-sepolia.blockpi.network/v1/rpc/public",REACT_APP_L1_CUSTOM_ERC20_GATEWAY_PROXY_ADDR:"0x31C994F2017E71b82fd4D8118F140c81215bbb37",REACT_APP_L2_PUFFER_GATEWAY_PROXY_ADDR:"0x9eBf2f33526CD571f8b2ad312492cb650870CFd6",REACT_APP_BADGE_SCHEMA:"0xa35b5470ebb301aa5d309a8ee6ea258cad680ea112c86e456d5f2254448afc74",REACT_APP_EXTERNAL_RPC_URI_L2:"https://sepolia-rpc.scroll.io",REACT_APP_L1_STANDARD_ERC20_GATEWAY_PROXY_ADDR:"0x65D123d6389b900d954677c26327bfc1C3e88A13",REACT_APP_ETH_SYMBOL:"ETH",REACT_APP_L2_CUSTOM_ERC20_GATEWAY_PROXY_ADDR:"0x058dec71E53079F9ED053F3a0bBca877F6f3eAcf",REACT_APP_EAS_ADDRESS:"0xaEF4103A04090071165F78D45D83A0C0782c2B2a",REACT_APP_L1_ETH_GATEWAY_PROXY_ADDR:"0x8A54A2347Da2562917304141ab67324615e9866d",REACT_APP_L1_USDC_GATEWAY_PROXY_ADDR:"",REACT_APP_L2_STANDARD_ERC20_GATEWAY_PROXY_ADDR:"0xaDcA915971A336EA2f5b567e662F5bd74AEf9582"}.RAINBOW_PROVIDER_API_KEY||"LzbasoBiLqltex3VkcQ7LRmL4PtfiiZ1EMJrizrgfonWN6byJReu/l6yrUoo3zLW"}});function Oa(e,t){return[e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}]}function Sa(e){return`rk-ens-name-${e}`}function Ra(e){const t=function(e){try{const t=e?JSON.parse(e):null;return"object"===typeof t?t:null}catch{return null}}(localStorage.getItem(Sa(e)));if(!t)return null;const{ensName:n,expires:r}=t;if("string"!==typeof n||Number.isNaN(Number(r)))return localStorage.removeItem(Sa(e)),null;return(new Date).getTime()>Number(r)?(localStorage.removeItem(Sa(e)),null):n}async function Ia(e){let{address:t}=e;const n=Ra(t);if(n)return n;const r=(await xa.get("/v1/resolve-ens",{params:{address:t}})).data.data;return r&&function(e,t){if(!(0,bt.U)(e))return;const n=new Date((new Date).getTime()+108e5);localStorage.setItem(Sa(e),JSON.stringify({ensName:t,expires:n.getTime()}))}(t,r),r}function Na(e){const t=Ta(),{data:n}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{address:t,query:n={}}=e,r=(0,_.Z)(e),a=(0,z.x)({config:r}),i=pt(r,{...e,chainId:e.chainId??a}),o=Boolean(t&&(n.enabled??!0));return(0,F.aM)({...n,...i,enabled:o})}({chainId:lt.R.id,address:e,query:{enabled:t}}),{data:r}=(0,ut.a)({queryKey:Oa("address",e),queryFn:()=>Ia({address:e}),enabled:!t&&!!e,staleTime:6e5,retry:1});return n||r}function Ba(e){let{address:t,includeBalance:n}=e;const r=Na(t),a=ka(r),{data:i}=$({address:n?t:void 0});return{ensName:r,ensAvatar:a,balance:i}}function ja(){const{chain:e}=(0,E.m)();return(null===e||void 0===e?void 0:e.id)??null}var Da="rk-transactions";function La(){return function(e){try{const t=e?JSON.parse(e):{};return"object"===typeof t?t:{}}catch{return{}}}("undefined"!==typeof localStorage?localStorage.getItem(Da):null)}var Ma,Ua=/^0x([A-Fa-f0-9]{64})$/;function Fa(e){let{provider:t}=e,n=La(),r=t;const a=new Set,i=new Set,o=new Map;function s(e,t){var r;return(null===(r=n[e])||void 0===r?void 0:r[t])??[]}function f(e,t,n,r){l(e,t,(e=>e.map((e=>e.hash===n?{...e,status:r}:e))))}async function c(e,t){await Promise.all(s(e,t).filter((e=>"pending"===e.status)).map((async n=>{const{confirmations:a,hash:s}=n,c=o.get(s);if(c)return await c;const l=r.waitForTransactionReceipt({confirmations:a,hash:s,timeout:3e5}).then((n=>{let{status:r}=n;o.delete(s),void 0!==r&&(f(e,t,s,0===r||"reverted"===r?"failed":"confirmed"),function(e){for(const t of i)t(e)}(r))})).catch((()=>{f(e,t,s,"failed")}));return o.set(s,l),await l})))}function l(e,t,r){n=La(),n[e]=n[e]??{};let i=0;const o=r(n[e][t]??[]).filter((e=>{let{status:t}=e;return"pending"===t||i++<=10}));n[e][t]=o.length>0?o:void 0,localStorage.setItem(Da,JSON.stringify(n)),function(){for(const e of a)e()}(),c(e,t)}return{addTransaction:function(e,t,n){const r=function(e){const t=[];return Ua.test(e.hash)||t.push("Invalid transaction hash"),"string"!==typeof e.description&&t.push("Transaction must have a description"),"undefined"!==typeof e.confirmations&&(!Number.isInteger(e.confirmations)||e.confirmations<1)&&t.push("Transaction confirmations must be a positiver integer"),t}(n);if(r.length>0)throw new Error(["Unable to add transaction",...r].join("\n"));l(e,t,(e=>[{...n,status:"pending"},...e.filter((e=>{let{hash:t}=e;return t!==n.hash}))]))},clearTransactions:function(e,t){l(e,t,(()=>[]))},getTransactions:s,onTransactionStatus:function(e){return i.add(e),()=>{i.delete(e)}},onChange:function(e){return a.add(e),()=>{a.delete(e)}},setProvider:function(e){r=e},waitForPendingTransactions:c}}var za=(0,d.createContext)(null);function $a(e){let{children:t}=e;const n=gt(),{address:r}=(0,E.m)(),a=ja(),{refetch:i}=$({address:r,query:{enabled:!1}}),[o]=(0,d.useState)((()=>Ma??(Ma=Fa({provider:n})))),s=(0,d.useCallback)((e=>{"success"===e&&i()}),[i]);return(0,d.useEffect)((()=>{o.setProvider(n)}),[o,n]),(0,d.useEffect)((()=>{r&&a&&o.waitForPendingTransactions(r,a)}),[o,r,a]),(0,d.useEffect)((()=>{if(o&&r&&a)return o.onTransactionStatus(s)}),[o,r,a,s]),d.createElement(za.Provider,{value:o},t)}function Ga(){const e=(0,d.useContext)(za);if(!e)throw new Error("Transaction hooks must be used within RainbowKitProvider");return e}function Ha(){const e=Ga(),{address:t}=(0,E.m)(),n=ja(),[r,a]=(0,d.useState)((()=>e&&t&&n?e.getTransactions(t,n):[]));return(0,d.useEffect)((()=>{if(e&&t&&n)return a(e.getTransactions(t,n)),e.onChange((()=>{a(e.getTransactions(t,n))}))}),[e,t,n]),r}var Wa=e=>"function"===typeof e?e():e;function Va(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.entries(function(e){let{extends:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n={...pn(mr,Wa(e))};if(!t)return n;const r=pn(mr,Wa(t));return Object.fromEntries(Object.entries(n).filter((e=>{let[t,n]=e;return n!==r[t]})))}(e,t)).map((e=>{let[t,n]=e;return`${t}:${n.replace(/[:;{}</>]/g,"")};`})).join("")}var qa={appName:void 0,disclaimer:void 0,learnMoreUrl:"https://learn.rainbow.me/understanding-web3?utm_source=rainbowkit&utm_campaign=learnmore"},Ka=(0,d.createContext)(qa),Za=(0,d.createContext)(!1);var Ja=()=>{const[e,t]=(0,d.useState)({height:void 0,width:void 0});return(0,d.useEffect)((()=>{const e=function(e,t){let n;return()=>{n&&clearTimeout(n),n=setTimeout((()=>{n=null,e()}),t)}}((()=>{t({height:window.innerHeight,width:window.innerWidth})}),500);return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[]),e},Ya=(0,d.createContext)({connector:null,setConnector:()=>{}});function Qa(e){let{children:t}=e;const[n,r]=(0,d.useState)(null);return d.createElement(Ya.Provider,{value:(0,d.useMemo)((()=>({connector:n,setConnector:r})),[n])},t)}var Xa={COMPACT:"compact",WIDE:"wide"},ei=(0,d.createContext)(Xa.WIDE);function ti(e){let{children:t,modalSize:n}=e;const{width:r}=Ja(),a=r&&r<pr,{connector:i}=(0,d.useContext)(Ya);return d.createElement(ei.Provider,{value:a||i?Xa.COMPACT:n},t)}var ni=(0,d.createContext)(!1),ri="rk-version";function ai(){const e=(0,d.useCallback)((()=>{!function(e){let{version:t}=e;localStorage.setItem(ri,t)}({version:"2.1.2"})}),[]);(0,d.useEffect)((()=>{e()}),[e])}function ii(){return"undefined"!==typeof navigator&&/Version\/([0-9._]+).*Safari/.test(navigator.userAgent)}function oi(){var e;if("undefined"===typeof navigator)return"Browser";const t=navigator.userAgent.toLowerCase();return null!==(e=navigator.brave)&&void 0!==e&&e.isBrave?"Brave":t.indexOf("edg/")>-1?"Edge":t.indexOf("op")>-1?"Opera":"undefined"!==typeof document&&""!==getComputedStyle(document.body).getPropertyValue("--arc-palette-focus")?"Arc":t.indexOf("chrome")>-1?"Chrome":t.indexOf("firefox")>-1?"Firefox":ii()?"Safari":"Browser"}var si=(0,En.UAParser)(),{os:fi}=si;function ci(){return"Windows"===fi.name?"Windows":"Mac OS"===fi.name?"macOS":["Ubuntu","Mint","Fedora","Debian","Arch","Linux"].includes(fi.name)?"Linux":"Desktop"}var li=e=>{var t,n,r,a,i,o,s,f,c,l,u;const d=oi();return{Arc:null===e||void 0===e||null===(t=e.downloadUrls)||void 0===t?void 0:t.chrome,Brave:null===e||void 0===e||null===(n=e.downloadUrls)||void 0===n?void 0:n.chrome,Chrome:null===e||void 0===e||null===(r=e.downloadUrls)||void 0===r?void 0:r.chrome,Edge:(null===e||void 0===e||null===(a=e.downloadUrls)||void 0===a?void 0:a.edge)||(null===e||void 0===e||null===(i=e.downloadUrls)||void 0===i?void 0:i.chrome),Firefox:null===e||void 0===e||null===(o=e.downloadUrls)||void 0===o?void 0:o.firefox,Opera:(null===e||void 0===e||null===(s=e.downloadUrls)||void 0===s?void 0:s.opera)||(null===e||void 0===e||null===(f=e.downloadUrls)||void 0===f?void 0:f.chrome),Safari:null===e||void 0===e||null===(c=e.downloadUrls)||void 0===c?void 0:c.safari,Browser:null===e||void 0===e||null===(l=e.downloadUrls)||void 0===l?void 0:l.browserExtension}[d]??(null===e||void 0===e||null===(u=e.downloadUrls)||void 0===u?void 0:u.browserExtension)},ui=e=>{var t,n,r;return(kr()?null===e||void 0===e||null===(t=e.downloadUrls)||void 0===t?void 0:t.ios:null===e||void 0===e||null===(n=e.downloadUrls)||void 0===n?void 0:n.android)??(null===e||void 0===e||null===(r=e.downloadUrls)||void 0===r?void 0:r.mobile)},di=e=>{var t,n,r,a,i;const o=ci();return{Windows:null===e||void 0===e||null===(t=e.downloadUrls)||void 0===t?void 0:t.windows,macOS:null===e||void 0===e||null===(n=e.downloadUrls)||void 0===n?void 0:n.macos,Linux:null===e||void 0===e||null===(r=e.downloadUrls)||void 0===r?void 0:r.linux,Desktop:null===e||void 0===e||null===(a=e.downloadUrls)||void 0===a?void 0:a.desktop}[o]??(null===e||void 0===e||null===(i=e.downloadUrls)||void 0===i?void 0:i.desktop)},pi=(e,t)=>e.some((e=>e.id===t)),hi=e=>!!e.isRainbowKitConnector,bi=e=>{var t;return!(e.isRainbowKitConnector||null===(t=e.icon)||void 0===t||!t.startsWith("data:image")||!e.uid||!e.name)},yi=(e,t)=>"walletConnect"===e.id&&t?{...e,walletConnectModalConnector:t}:e,mi=e=>{let{wallets:t,recentWallets:n}=e;return[...n,...t.filter((e=>!pi(n,e.id)))]},gi="rk-recent";function vi(){return"undefined"!==typeof localStorage?function(e){try{const t=e?JSON.parse(e):[];return Array.isArray(t)?t:[]}catch{return[]}}(localStorage.getItem(gi)):[]}function wi(e){const t=(n=[e,...vi()],[...new Set(n)]);var n;localStorage.setItem(gi,JSON.stringify(t))}function Ei(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=ga(),n=va(),{connectAsync:r,connectors:a}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mutation:t}=e,n=(0,_.Z)(e),r=yn(n),{mutate:a,mutateAsync:i,...o}=(0,hn.D)({...t,...r});return(0,d.useEffect)((()=>n.subscribe((e=>{let{status:t}=e;return t}),((e,t)=>{"connected"===t&&"disconnected"===e&&o.reset()}))),[n,o]),{...o,connect:a,connectAsync:i,connectors:wn({config:n})}}(),i=a,{setIsWalletConnectModalOpen:o}=Is(),s=i.map((e=>({...e,...e.rkDetails||{}})));async function f(e){var a,i;const o=await e.getChainId(),s=await r({chainId:n??(null===(a=t.find((e=>{let{id:t}=e;return t===o})))||void 0===a?void 0:a.id)??(null===(i=t[0])||void 0===i?void 0:i.id),connector:e});return s&&wi(e.id),s}async function c(e){try{o(!0),await f(e),o(!1)}catch(ef){const t="UserRejectedRequestError"===ef.name||"Connection request reset. Please try again."===ef.message;if(o(!1),!t)throw ef}}const l=async(e,t)=>{const n=await e.getProvider();return"coinbase"===e.id?n.qrUrl:new Promise((e=>n.once("display_uri",(n=>{e(t(n))}))))},u=s.find((e=>"walletConnect"===e.id&&e.isWalletConnectModalConnector)),p=s.filter(bi).map((e=>({...e,groupIndex:0}))),h=s.filter(hi).filter((e=>!e.isWalletConnectModalConnector)).filter((t=>{if(!e)return!0;return!p.some((e=>e.id===t.rdns))})).map((e=>yi(e,u))),b=[...p,...h],y=function(e,t){const n={};for(const r of e){const e=t(r);e&&(n[e]=r)}return n}(b,(e=>e.id)),m=vi().map((e=>y[e])).filter(Boolean).slice(0,3),g=[],v=mi({wallets:b,recentWallets:m});for(const d of v){var w,E,A;if(!d)continue;const e=bi(d),t=pi(m,d.id);e?g.push({...d,iconUrl:d.icon,ready:!0,connect:()=>f(d),groupName:"Installed",recent:t}):g.push({...d,ready:d.installed??!0,connect:()=>f(d),desktopDownloadUrl:di(d),extensionDownloadUrl:li(d),groupName:d.groupName,mobileDownloadUrl:ui(d),getQrCodeUri:null!==(w=d.qrCode)&&void 0!==w&&w.getUri?()=>l(d,d.qrCode.getUri):void 0,getDesktopUri:null!==(E=d.desktop)&&void 0!==E&&E.getUri?()=>l(d,d.desktop.getUri):void 0,getMobileUri:null!==(A=d.mobile)&&void 0!==A&&A.getUri?()=>{var e;return l(d,null===(e=d.mobile)||void 0===e?void 0:e.getUri)}:void 0,recent:t,showWalletConnectModal:d.walletConnectModalConnector?()=>c(d.walletConnectModalConnector):void 0})}return g}var Ai=async()=>(await n.e(613).then(n.bind(n,80613))).default,Pi=()=>Nr(Ai),_i=()=>d.createElement(jr,{background:"#d0d5de",borderRadius:"10",height:"48",src:Ai,width:"48"}),Ti=async()=>(await n.e(6453).then(n.bind(n,86453))).default,ki=()=>Nr(Ti),Ci=()=>d.createElement(jr,{background:"#d0d5de",borderRadius:"10",height:"48",src:Ti,width:"48"}),xi=d.forwardRef(((e,t)=>{let{as:n="div",children:r,className:a,color:i,display:o,font:s="body",id:f,size:c="16",style:l,tabIndex:u,textAlign:p="inherit",weight:h="regular",testId:b}=e;return d.createElement(Or,{as:n,className:a,color:i,display:o,fontFamily:s,fontSize:c,fontWeight:h,id:f,ref:t,style:l,tabIndex:u,textAlign:p,testId:b},r)}));xi.displayName="Text";var Oi={large:{fontSize:"16",paddingX:"24",paddingY:"10"},medium:{fontSize:"14",height:"28",paddingX:"12",paddingY:"4"},small:{fontSize:"14",paddingX:"10",paddingY:"5"}};function Si(e){let{disabled:t=!1,href:n,label:r,onClick:a,rel:i="noreferrer noopener",size:o="medium",target:s="_blank",testId:f,type:c="primary"}=e;const l="primary"===c,u="large"!==o,p=Cr(),h=t?"actionButtonSecondaryBackground":l?"accentColor":u?"actionButtonSecondaryBackground":null,{fontSize:b,height:y,paddingX:m,paddingY:g}=Oi[o],v=!p||!u;return d.createElement(Or,{...n?t?{}:{as:"a",href:n,rel:i,target:s}:{as:"button",type:"button"},onClick:t?void 0:a,...v?{borderColor:!p||u||l?"actionButtonBorder":"actionButtonBorderMobile",borderStyle:"solid",borderWidth:"1"}:{},borderRadius:"actionButton",className:!t&&Er({active:"shrinkSm",hover:"grow"}),display:"block",paddingX:m,paddingY:g,style:{willChange:"transform"},testId:f,textAlign:"center",transition:"transform",...h?{background:h}:{},...y?{height:y}:{}},d.createElement(xi,{color:t?"modalTextSecondary":l?"accentColorForeground":"accentColor",size:b,weight:"bold"},r))}var Ri=()=>Cr()?d.createElement("svg",{"aria-hidden":!0,fill:"none",height:"11.5",viewBox:"0 0 11.5 11.5",width:"11.5",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,"Close"),d.createElement("path",{d:"M2.13388 0.366117C1.64573 -0.122039 0.854272 -0.122039 0.366117 0.366117C-0.122039 0.854272 -0.122039 1.64573 0.366117 2.13388L3.98223 5.75L0.366117 9.36612C-0.122039 9.85427 -0.122039 10.6457 0.366117 11.1339C0.854272 11.622 1.64573 11.622 2.13388 11.1339L5.75 7.51777L9.36612 11.1339C9.85427 11.622 10.6457 11.622 11.1339 11.1339C11.622 10.6457 11.622 9.85427 11.1339 9.36612L7.51777 5.75L11.1339 2.13388C11.622 1.64573 11.622 0.854272 11.1339 0.366117C10.6457 -0.122039 9.85427 -0.122039 9.36612 0.366117L5.75 3.98223L2.13388 0.366117Z",fill:"currentColor"})):d.createElement("svg",{"aria-hidden":!0,fill:"none",height:"10",viewBox:"0 0 10 10",width:"10",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,"Close"),d.createElement("path",{d:"M1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L3.58579 5L0.292893 8.29289C-0.0976311 8.68342 -0.0976311 9.31658 0.292893 9.70711C0.683417 10.0976 1.31658 10.0976 1.70711 9.70711L5 6.41421L8.29289 9.70711C8.68342 10.0976 9.31658 10.0976 9.70711 9.70711C10.0976 9.31658 10.0976 8.68342 9.70711 8.29289L6.41421 5L9.70711 1.70711C10.0976 1.31658 10.0976 0.683417 9.70711 0.292893C9.31658 -0.0976311 8.68342 -0.0976311 8.29289 0.292893L5 3.58579L1.70711 0.292893Z",fill:"currentColor"})),Ii=e=>{let{"aria-label":t="Close",onClose:n}=e;const r=Cr();return d.createElement(Or,{alignItems:"center","aria-label":t,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:r?"0":"1",className:Er({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:r?"30":"28",justifyContent:"center",onClick:n,style:{willChange:"transform"},transition:"default",type:"button",width:r?"30":"28"},d.createElement(Ri,null))},Ni=async()=>(await n.e(5273).then(n.bind(n,75273))).default;function Bi(e){let{onClose:t,onCloseModal:n}=e;const{i18n:r}=(0,d.useContext)(qr),[{status:a,...i},o]=d.useState({status:"idle"}),s=function(){const{adapter:e}=(0,d.useContext)(Ar)??{};if(!e)throw new Error("No authentication adapter found");return e}(),f=(0,d.useCallback)((async()=>{try{const e=await s.getNonce();o((t=>({...t,nonce:e})))}catch{o((e=>({...e,errorMessage:r.t("sign_in.message.preparing_error"),status:"idle"})))}}),[s,r.t]),c=(0,d.useRef)(!1);d.useEffect((()=>{c.current||(c.current=!0,f())}),[f]);const l=Cr(),{address:u,chain:p}=(0,E.m)(),{signMessageAsync:h}=(0,Pn.Q)();return d.createElement(Or,{position:"relative"},d.createElement(Or,{display:"flex",paddingRight:"16",paddingTop:"16",position:"absolute",right:"0"},d.createElement(Ii,{onClose:t})),d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"32":"24",padding:"24",paddingX:"18",style:{paddingTop:l?"60px":"36px"}},d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"6":"4",style:{maxWidth:l?320:280}},d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"32":"16"},d.createElement(jr,{height:40,src:Ni,width:40}),d.createElement(xi,{color:"modalText",size:l?"20":"18",textAlign:"center",weight:"heavy"},r.t("sign_in.label"))),d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:l?"16":"12"},d.createElement(xi,{color:"modalTextSecondary",size:l?"16":"14",textAlign:"center"},r.t("sign_in.description")),"idle"===a&&i.errorMessage?d.createElement(xi,{color:"error",size:l?"16":"14",textAlign:"center",weight:"bold"},i.errorMessage):null)),d.createElement(Or,{alignItems:l?void 0:"center",display:"flex",flexDirection:"column",gap:"8",width:"full"},d.createElement(Si,{disabled:!i.nonce||"signing"===a||"verifying"===a,label:i.nonce?"signing"===a?r.t("sign_in.signature.waiting"):"verifying"===a?r.t("sign_in.signature.verifying"):r.t("sign_in.message.send"):r.t("sign_in.message.preparing"),onClick:async()=>{try{const t=null===p||void 0===p?void 0:p.id,{nonce:a}=i;if(!u||!t||!a)return;o((e=>({...e,errorMessage:void 0,status:"signing"})));const f=s.createMessage({address:u,chainId:t,nonce:a});let c;try{c=await h({message:s.getMessageBody({message:f})})}catch(e){return e instanceof An.ab?o((e=>({...e,status:"idle"}))):o((e=>({...e,errorMessage:r.t("sign_in.signature.signing_error"),status:"idle"})))}o((e=>({...e,status:"verifying"})));try{if(await s.verify({message:f,signature:c}))return void n();throw new Error}catch{return o((e=>({...e,errorMessage:r.t("sign_in.signature.verifying_error"),status:"idle"})))}}catch{o({errorMessage:r.t("sign_in.signature.oops_error"),status:"idle"})}},size:l?"large":"medium",testId:"auth-message-button"}),l?d.createElement(Si,{label:"Cancel",onClick:t,size:"large",type:"secondary"}):d.createElement(Or,{as:"button",borderRadius:"full",className:Er({active:"shrink",hover:"grow"}),display:"block",onClick:t,paddingX:"10",paddingY:"5",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},d.createElement(xi,{color:"closeButton",size:l?"16":"14",weight:"bold"},r.t("sign_in.message.cancel"))))))}var ji="WALLETCONNECT_DEEPLINK_CHOICE";function Di(){localStorage.removeItem(ji)}var Li=(0,d.createContext)(void 0),Mi="data-rk",Ui=e=>({[Mi]:e||""}),Fi=e=>{if(e&&!/^[a-zA-Z0-9_]+$/.test(e))throw new Error(`Invalid ID: ${e}`);return e?`[${Mi}="${e}"]`:`[${Mi}]`},zi=()=>{const e=(0,d.useContext)(Li);return Ui(e)},$i=l();function Gi(e){let{appInfo:t,avatar:n,children:r,coolMode:a=!1,id:i,initialChain:o,locale:s,modalSize:f=Xa.WIDE,showRecentTransactions:c=!1,theme:l=$i}=e;if(function(){const e=ga(),t=Ei(),n="unauthenticated"===Pr(),r=(0,d.useCallback)((()=>{Nr(...t.map((e=>e.iconUrl)),...e.map((e=>e.iconUrl)).filter(Zr)),Cr()||(Pi(),ki()),n&&Nr(Ni)}),[t,e,n]);(0,d.useEffect)((()=>{r()}),[r])}(),ai(),wt({onDisconnect:Di}),"function"===typeof l)throw new Error('A theme function was provided to the "theme" prop instead of a theme object. You must execute this function to get the resulting theme object.');const u=Fi(i),p={...qa,...t},h=n??Ur;return d.createElement(ma,{initialChain:o},d.createElement(Qa,null,d.createElement(Kr,{locale:s},d.createElement(Za.Provider,{value:a},d.createElement(ti,{modalSize:f},d.createElement(ni.Provider,{value:c},d.createElement($a,null,d.createElement(Fr.Provider,{value:h},d.createElement(Ka.Provider,{value:p},d.createElement(Li.Provider,{value:i},d.createElement(Aa,null,d.createElement(Ss,null,l?d.createElement("div",{...Ui(i)},d.createElement("style",{dangerouslySetInnerHTML:{__html:[`${u}{${Va("lightMode"in l?l.lightMode:l)}}`,"darkMode"in l?`@media(prefers-color-scheme:dark){${u}{${Va(l.darkMode,{extends:l.lightMode})}}}`:null].join("")}}),r):r))))))))))))}var Hi="_9pm4ki5 ju367va ju367v15 ju367v8r",Wi="_9pm4ki3 ju367v9h ju367vb3 ju367va ju367v2q ju367v8q",Vi=(e,t)=>{const n=e.querySelectorAll("button:not(:disabled), a[href]");0!==n.length&&n["end"===t?n.length-1:0].focus()};function qi(e){const t=(0,d.useRef)(null);return(0,d.useEffect)((()=>{const e=document.activeElement;return()=>{var t;null===(t=e.focus)||void 0===t||t.call(e)}}),[]),(0,d.useEffect)((()=>{if(t.current){const e=t.current.querySelector("[data-auto-focus]");e?e.focus():t.current.focus()}}),[]),d.createElement(d.Fragment,null,d.createElement("div",{onFocus:(0,d.useCallback)((()=>t.current&&Vi(t.current,"end")),[]),tabIndex:0}),d.createElement("div",{ref:t,style:{outline:"none"},tabIndex:-1,...e}),d.createElement("div",{onFocus:(0,d.useCallback)((()=>t.current&&Vi(t.current,"start")),[]),tabIndex:0}))}var Ki=e=>e.stopPropagation();function Zi(e){let{children:t,onClose:n,open:r,titleId:a}=e;(0,d.useEffect)((()=>{const e=e=>r&&"Escape"===e.key&&n();return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[r,n]);const[i,o]=(0,d.useState)(!0);(0,d.useEffect)((()=>{o("hidden"!==getComputedStyle(window.document.body).overflow)}),[]);const s=(0,d.useCallback)((()=>n()),[n]),f=zi(),c=Cr();return d.createElement(d.Fragment,null,r?(0,At.createPortal)(d.createElement(ln,{enabled:i},d.createElement(Or,{...f},d.createElement(Or,{...f,alignItems:c?"flex-end":"center","aria-labelledby":a,"aria-modal":!0,className:Wi,onClick:s,position:"fixed",role:"dialog"},d.createElement(qi,{className:Hi,onClick:Ki,role:"document"},t)))),document.body):null)}var Ji="_1ckjpok7",Yi="_1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",Qi="_1ckjpok4 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",Xi="_1ckjpok6 ju367vq",eo="_1ckjpok3 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r",to="_1ckjpok2 _1ckjpok1 ju367vb6 ju367vdr ju367vp ju367vt ju367vv ju367vel ju367va ju367v15 ju367v6c ju367v8r";function no(e){let{bottomSheetOnMobile:t=!1,children:n,marginTop:r,padding:a="16",paddingBottom:i,wide:o=!1}=e;const s=Cr(),f=(0,d.useContext)(ei)===Xa.COMPACT;return d.createElement(Or,{marginTop:r},d.createElement(Or,{className:[o?s?to:f?Qi:eo:Yi,s?Xi:null,s&&t?Ji:null].join(" ")},d.createElement(Or,{padding:a,paddingBottom:i??a},n)))}var ro=["k","m","b","t"];function ao(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.toString().replace(new RegExp(`(.+\\.\\d{${t}})\\d+`),"$1").replace(/(\.[1-9]*)0+$/,"$1").replace(/\.$/,"")}function io(e){if(e<1)return ao(e,3);if(e<100)return ao(e,2);if(e<1e4)return(new Intl.NumberFormat).format(parseFloat(ao(e,1)));let t=String(e);for(let n=ro.length-1;n>=0;n--){const r=10**(3*(n+1));if(r<=e){t=ao(e=10*e/r/10,1)+ro[n];break}}return t}function oo(e){return e.length<8?e:`${e.substring(0,4)}\u2026${e.substring(e.length-4)}`}function so(e){if(!e)return"";const t=e.split("."),n=t.pop();return t.join(".").length>24?`${t.join(".").substring(0,24)}...`:`${t.join(".")}.${n}`}var fo=()=>d.createElement("svg",{fill:"none",height:"13",viewBox:"0 0 13 13",width:"13",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,"Copied"),d.createElement("path",{d:"M4.94568 12.2646C5.41052 12.2646 5.77283 12.0869 6.01892 11.7109L12.39 1.96973C12.5677 1.69629 12.6429 1.44336 12.6429 1.2041C12.6429 0.561523 12.1644 0.0966797 11.5082 0.0966797C11.057 0.0966797 10.7767 0.260742 10.5033 0.691406L4.9115 9.50977L2.07458 5.98926C1.82166 5.68848 1.54822 5.55176 1.16541 5.55176C0.502319 5.55176 0.0238037 6.02344 0.0238037 6.66602C0.0238037 6.95312 0.112671 7.20605 0.358765 7.48633L3.88611 11.7588C4.18005 12.1074 4.50818 12.2646 4.94568 12.2646Z",fill:"currentColor"})),co=()=>d.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 17 16",width:"17",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,"Copy"),d.createElement("path",{d:"M3.04236 12.3027H4.18396V13.3008C4.18396 14.8525 5.03845 15.7002 6.59705 15.7002H13.6244C15.183 15.7002 16.0375 14.8525 16.0375 13.3008V6.24609C16.0375 4.69434 15.183 3.84668 13.6244 3.84668H12.4828V2.8418C12.4828 1.29688 11.6283 0.442383 10.0697 0.442383H3.04236C1.48376 0.442383 0.629272 1.29004 0.629272 2.8418V9.90332C0.629272 11.4551 1.48376 12.3027 3.04236 12.3027ZM3.23376 10.5391C2.68689 10.5391 2.39294 10.2656 2.39294 9.68457V3.06055C2.39294 2.47949 2.68689 2.21289 3.23376 2.21289H9.8783C10.4252 2.21289 10.7191 2.47949 10.7191 3.06055V3.84668H6.59705C5.03845 3.84668 4.18396 4.69434 4.18396 6.24609V10.5391H3.23376ZM6.78845 13.9365C6.24158 13.9365 5.94763 13.6699 5.94763 13.0889V6.45801C5.94763 5.87695 6.24158 5.61035 6.78845 5.61035H13.433C13.9799 5.61035 14.2738 5.87695 14.2738 6.45801V13.0889C14.2738 13.6699 13.9799 13.9365 13.433 13.9365H6.78845Z",fill:"currentColor"})),lo=()=>d.createElement("svg",{fill:"none",height:"16",viewBox:"0 0 18 16",width:"18",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,"Disconnect"),d.createElement("path",{d:"M2.67834 15.5908H9.99963C11.5514 15.5908 12.399 14.7432 12.399 13.1777V10.2656H10.6354V12.9863C10.6354 13.5332 10.3688 13.8271 9.78772 13.8271H2.89026C2.3092 13.8271 2.0426 13.5332 2.0426 12.9863V3.15625C2.0426 2.60254 2.3092 2.30859 2.89026 2.30859H9.78772C10.3688 2.30859 10.6354 2.60254 10.6354 3.15625V5.89746H12.399V2.95801C12.399 1.39941 11.5514 0.544922 9.99963 0.544922H2.67834C1.12659 0.544922 0.278931 1.39941 0.278931 2.95801V13.1777C0.278931 14.7432 1.12659 15.5908 2.67834 15.5908ZM7.43616 8.85059H14.0875L15.0924 8.78906L14.566 9.14453L13.6842 9.96484C13.5406 10.1016 13.4586 10.2861 13.4586 10.4844C13.4586 10.8398 13.7321 11.168 14.1217 11.168C14.3199 11.168 14.4635 11.0928 14.6002 10.9561L16.7809 8.68652C16.986 8.48145 17.0543 8.27637 17.0543 8.06445C17.0543 7.85254 16.986 7.64746 16.7809 7.43555L14.6002 5.17285C14.4635 5.03613 14.3199 4.9541 14.1217 4.9541C13.7321 4.9541 13.4586 5.27539 13.4586 5.6377C13.4586 5.83594 13.5406 6.02734 13.6842 6.15723L14.566 6.98438L15.0924 7.33984L14.0875 7.27148H7.43616C7.01917 7.27148 6.65686 7.62012 6.65686 8.06445C6.65686 8.50195 7.01917 8.85059 7.43616 8.85059Z",fill:"currentColor"}));var uo=e=>{var t,n;return null===e||void 0===e||null===(t=e.blockExplorers)||void 0===t||null===(n=t.default)||void 0===n?void 0:n.url},po=()=>d.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,"Link"),d.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM12.7158 12.1416C13.2432 12.1416 13.5684 11.7549 13.5684 11.1836V7.19336C13.5684 6.44629 13.1377 6.05957 12.417 6.05957H8.40918C7.8291 6.05957 7.45117 6.38477 7.45117 6.91211C7.45117 7.43945 7.8291 7.77344 8.40918 7.77344H9.69238L10.7207 7.63281L9.53418 8.67871L6.73047 11.4912C6.53711 11.6758 6.41406 11.9395 6.41406 12.2031C6.41406 12.7832 6.85352 13.1699 7.39844 13.1699C7.68848 13.1699 7.92578 13.0732 8.1543 12.8623L10.9316 10.0762L11.9775 8.89844L11.8545 9.98828V11.1836C11.8545 11.7725 12.1885 12.1416 12.7158 12.1416Z",fill:"currentColor"})),ho=()=>d.createElement("svg",{fill:"none",height:"19",viewBox:"0 0 20 19",width:"20",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,"Cancel"),d.createElement("path",{d:"M10 18.9443C15.0977 18.9443 19.2812 14.752 19.2812 9.6543C19.2812 4.56543 15.0889 0.373047 10 0.373047C4.90234 0.373047 0.71875 4.56543 0.71875 9.6543C0.71875 14.752 4.91113 18.9443 10 18.9443ZM10 16.6328C6.1416 16.6328 3.03906 13.5215 3.03906 9.6543C3.03906 5.7959 6.13281 2.68457 10 2.68457C13.8584 2.68457 16.9697 5.7959 16.9697 9.6543C16.9785 13.5215 13.8672 16.6328 10 16.6328ZM7.29297 13.3018C7.58301 13.3018 7.81152 13.2139 7.99609 13.0205L10 11.0166L12.0127 13.0205C12.1973 13.2051 12.4258 13.3018 12.707 13.3018C13.2432 13.3018 13.6562 12.8887 13.6562 12.3525C13.6562 12.0977 13.5508 11.8691 13.3662 11.6934L11.3535 9.67188L13.375 7.6416C13.5596 7.44824 13.6562 7.22852 13.6562 6.98242C13.6562 6.44629 13.2432 6.0332 12.7158 6.0332C12.4346 6.0332 12.2148 6.12109 12.0215 6.31445L10 8.32715L7.9873 6.32324C7.80273 6.12988 7.58301 6.04199 7.29297 6.04199C6.76562 6.04199 6.35254 6.45508 6.35254 6.99121C6.35254 7.2373 6.44922 7.46582 6.63379 7.6416L8.65527 9.67188L6.63379 11.6934C6.44922 11.8691 6.35254 12.1064 6.35254 12.3525C6.35254 12.8887 6.76562 13.3018 7.29297 13.3018Z",fill:"currentColor"})),bo=()=>d.createElement("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,"Success"),d.createElement("path",{d:"M10 19.4443C15.0977 19.4443 19.2812 15.252 19.2812 10.1543C19.2812 5.06543 15.0889 0.873047 10 0.873047C4.90234 0.873047 0.71875 5.06543 0.71875 10.1543C0.71875 15.252 4.91113 19.4443 10 19.4443ZM10 17.1328C6.1416 17.1328 3.03906 14.0215 3.03906 10.1543C3.03906 6.2959 6.13281 3.18457 10 3.18457C13.8584 3.18457 16.9697 6.2959 16.9697 10.1543C16.9785 14.0215 13.8672 17.1328 10 17.1328ZM9.07715 14.3379C9.4375 14.3379 9.7627 14.1533 9.97363 13.8369L13.7441 8.00977C13.8848 7.79883 13.9814 7.5791 13.9814 7.36816C13.9814 6.84961 13.5244 6.48926 13.0322 6.48926C12.707 6.48926 12.4258 6.66504 12.2148 7.0166L9.05957 12.0967L7.5918 10.2949C7.37207 10.0225 7.13477 9.9082 6.84473 9.9082C6.33496 9.9082 5.92188 10.3125 5.92188 10.8223C5.92188 11.0684 6.00098 11.2793 6.18555 11.5078L8.1543 13.8545C8.40918 14.1709 8.70801 14.3379 9.07715 14.3379Z",fill:"currentColor"})),yo=e=>{switch(e){case"pending":default:return Dr;case"confirmed":return bo;case"failed":return ho}};function mo(e){let{tx:t}=e;const n=Cr(),r=yo(t.status),a="failed"===t.status?"error":"accentColor",{chain:i}=(0,E.m)(),o="confirmed"===t.status?"Confirmed":"failed"===t.status?"Failed":"Pending",s=uo(i);return d.createElement(d.Fragment,null,d.createElement(Or,{...s?{as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:Er({active:"shrink"}),href:`${s}/tx/${t.hash}`,rel:"noreferrer noopener",target:"_blank",transition:"default"}:{},color:"modalText",display:"flex",flexDirection:"row",justifyContent:"space-between",padding:"8",width:"full"},d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"row",gap:n?"16":"14"},d.createElement(Or,{color:a},d.createElement(r,null)),d.createElement(Or,{display:"flex",flexDirection:"column",gap:n?"3":"1"},d.createElement(Or,null,d.createElement(xi,{color:"modalText",font:"body",size:n?"16":"14",weight:"bold"},null===t||void 0===t?void 0:t.description)),d.createElement(Or,null,d.createElement(xi,{color:"pending"===t.status?"modalTextSecondary":a,font:"body",size:"14",weight:n?"medium":"regular"},o)))),s&&d.createElement(Or,{alignItems:"center",color:"modalTextDim",display:"flex"},d.createElement(po,null))))}var go=3;function vo(e){let{address:t}=e;const n=Ha(),r=function(){const e=Ga(),{address:t}=(0,E.m)(),n=ja();return(0,d.useCallback)((()=>{if(!t||!n)throw new Error("No address or chain ID found");e.clearTransactions(t,n)}),[e,t,n])}(),{chain:a}=(0,E.m)(),i=uo(a),o=n.slice(0,go),s=o.length>0,f=Cr(),{appName:c}=(0,d.useContext)(Ka),{i18n:l}=(0,d.useContext)(qr);return d.createElement(d.Fragment,null,d.createElement(Or,{display:"flex",flexDirection:"column",gap:"10",paddingBottom:"2",paddingTop:"16",paddingX:f?"8":"18"},s&&d.createElement(Or,{paddingBottom:f?"4":"0",paddingTop:"8",paddingX:f?"12":"6"},d.createElement(Or,{display:"flex",justifyContent:"space-between"},d.createElement(xi,{color:"modalTextSecondary",size:f?"16":"14",weight:"semibold"},l.t("profile.transactions.recent.title")),d.createElement(Or,{style:{marginBottom:-6,marginLeft:-10,marginRight:-10,marginTop:-6}},d.createElement(Or,{as:"button",background:{hover:"profileForeground"},borderRadius:"actionButton",className:Er({active:"shrink"}),onClick:r,paddingX:f?"8":"12",paddingY:f?"4":"5",transition:"default",type:"button"},d.createElement(xi,{color:"modalTextSecondary",size:f?"16":"14",weight:"semibold"},l.t("profile.transactions.clear.label")))))),d.createElement(Or,{display:"flex",flexDirection:"column",gap:"4"},s?o.map((e=>d.createElement(mo,{key:e.hash,tx:e}))):d.createElement(d.Fragment,null,d.createElement(Or,{padding:f?"12":"8"},d.createElement(xi,{color:"modalTextDim",size:f?"16":"14",weight:f?"medium":"bold"},c?l.t("profile.transactions.description",{appName:c}):l.t("profile.transactions.description_fallback"))),f&&d.createElement(Or,{background:"generalBorderDim",height:"1",marginX:"12",marginY:"8"})))),i&&d.createElement(Or,{paddingBottom:"18",paddingX:f?"8":"18"},d.createElement(Or,{alignItems:"center",as:"a",background:{hover:"profileForeground"},borderRadius:"menuButton",className:Er({active:"shrink"}),color:"modalTextDim",display:"flex",flexDirection:"row",href:`${i}/address/${t}`,justifyContent:"space-between",paddingX:"8",paddingY:"12",rel:"noreferrer noopener",style:{willChange:"transform"},target:"_blank",transition:"default",width:"full",...f?{paddingLeft:"12"}:{}},d.createElement(xi,{color:"modalText",font:"body",size:f?"16":"14",weight:f?"semibold":"bold"},l.t("profile.explorer.label")),d.createElement(po,null))))}function wo(e){let{action:t,icon:n,label:r,testId:a,url:i}=e;const o=Cr();return d.createElement(Or,{...i?{as:"a",href:i,rel:"noreferrer noopener",target:"_blank"}:{as:"button",type:"button"},background:{base:"profileAction",...o?{}:{hover:"profileActionHover"}},borderRadius:"menuButton",boxShadow:"profileDetailsAction",className:Er({active:"shrinkSm",hover:o?void 0:"grow"}),display:"flex",onClick:t,padding:o?"6":"8",style:{willChange:"transform"},testId:a,transition:"default",width:"full"},d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:"1",justifyContent:"center",paddingTop:"2",width:"full"},d.createElement(Or,{color:"modalText",height:"max"},n),d.createElement(Or,null,d.createElement(xi,{color:"modalText",size:o?"12":"13",weight:"semibold"},r))))}function Eo(e){let{address:t,ensAvatar:n,ensName:r,balance:a,onClose:i,onDisconnect:o}=e;const s=(0,d.useContext)(ni),[f,c]=(0,d.useState)(!1),l=(0,d.useCallback)((()=>{t&&(navigator.clipboard.writeText(t),c(!0))}),[t]);if((0,d.useEffect)((()=>{if(f){const e=setTimeout((()=>{c(!1)}),1500);return()=>clearTimeout(e)}}),[f]),!t)return null;const u=r?so(r):oo(t),p=null===a||void 0===a?void 0:a.formatted,h=p?io(parseFloat(p)):void 0,b="rk_profile_title",y=Cr(),{i18n:m}=(0,d.useContext)(qr);return d.createElement(d.Fragment,null,d.createElement(Or,{display:"flex",flexDirection:"column"},d.createElement(Or,{background:"profileForeground",padding:"16"},d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:y?"16":"12",justifyContent:"center",margin:"8",style:{textAlign:"center"}},d.createElement(Or,{style:{position:"absolute",right:16,top:16,willChange:"transform"}},d.createElement(Ii,{onClose:i}))," ",d.createElement(Or,{marginTop:y?"24":"0"},d.createElement(zr,{address:t,imageUrl:n,size:y?82:74})),d.createElement(Or,{display:"flex",flexDirection:"column",gap:y?"4":"0",textAlign:"center"},d.createElement(Or,{textAlign:"center"},d.createElement(xi,{as:"h1",color:"modalText",id:b,size:y?"20":"18",weight:"heavy"},u)),!!a&&d.createElement(Or,{textAlign:"center"},d.createElement(xi,{as:"h1",color:"modalTextSecondary",id:b,size:y?"16":"14",weight:"semibold"},h," ",a.symbol)))),d.createElement(Or,{display:"flex",flexDirection:"row",gap:"8",margin:"2",marginTop:"16"},d.createElement(wo,{action:l,icon:f?d.createElement(fo,null):d.createElement(co,null),label:f?m.t("profile.copy_address.copied"):m.t("profile.copy_address.label")}),d.createElement(wo,{action:o,icon:d.createElement(lo,null),label:m.t("profile.disconnect.label"),testId:"disconnect-button"}))),s&&d.createElement(d.Fragment,null,d.createElement(Or,{background:"generalBorder",height:"1",marginTop:"-1"}),d.createElement(Or,null,d.createElement(vo,{address:t})))))}function Ao(e){let{onClose:t,open:n}=e;const{address:r}=(0,E.m)(),{balance:a,ensAvatar:i,ensName:o}=Ba({address:r,includeBalance:n}),{disconnect:s}=(0,Et.q)();if(!r)return null;return d.createElement(d.Fragment,null,r&&d.createElement(Zi,{onClose:t,open:n,titleId:"rk_account_modal_title"},d.createElement(no,{bottomSheetOnMobile:!0,padding:"0"},d.createElement(Eo,{address:r,ensAvatar:i,ensName:o,balance:a,onClose:t,onDisconnect:s}))))}var Po=e=>{let{size:t}=e;return d.createElement("svg",{fill:"none",height:t,viewBox:"0 0 28 28",width:t,xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,"Disconnect"),d.createElement("path",{d:"M6.742 22.195h8.367c1.774 0 2.743-.968 2.743-2.758V16.11h-2.016v3.11c0 .625-.305.96-.969.96H6.984c-.664 0-.968-.335-.968-.96V7.984c0-.632.304-.968.968-.968h7.883c.664 0 .969.336.969.968v3.133h2.016v-3.36c0-1.78-.97-2.757-2.743-2.757H6.742C4.97 5 4 5.977 4 7.758v11.68c0 1.789.969 2.757 2.742 2.757Zm5.438-7.703h7.601l1.149-.07-.602.406-1.008.938a.816.816 0 0 0-.258.593c0 .407.313.782.758.782.227 0 .39-.086.547-.243l2.492-2.593c.235-.235.313-.47.313-.711 0-.242-.078-.477-.313-.719l-2.492-2.586c-.156-.156-.32-.25-.547-.25-.445 0-.758.367-.758.781 0 .227.094.446.258.594l1.008.945.602.407-1.149-.079H12.18a.904.904 0 0 0 0 1.805Z",fill:"currentColor"}))},_o=d.forwardRef(((e,t)=>{let{children:n,currentlySelected:r=!1,onClick:a,testId:i,...o}=e;const s=Cr();return d.createElement(Or,{as:"button",borderRadius:"menuButton",disabled:r,display:"flex",onClick:a,ref:t,testId:i,type:"button"},d.createElement(Or,{borderRadius:"menuButton",className:[s?"v9horb0":void 0,!r&&Er({active:"shrink"})],padding:s?"8":"6",transition:"default",width:"full",...r?{background:"accentColor",borderColor:"selectedOptionBorder",borderStyle:"solid",borderWidth:"1",boxShadow:"selectedOption",color:"accentColorForeground"}:{background:{hover:"menuItemBackground"},color:"modalText",transition:"default"},...o},n))}));_o.displayName="MenuButton";var To=e=>{let{chainId:t,currentChainId:n,switchChain:r,chainIconSize:a,isLoading:i,src:o,name:s,iconBackground:f,idx:c}=e;const l=Cr(),{i18n:u}=(0,d.useContext)(qr),p=ga(),h=n===t;return d.createElement(d.Fragment,null,d.createElement(_o,{currentlySelected:h,onClick:h?void 0:()=>r({chainId:t}),testId:`chain-option-${t}`},d.createElement(Or,{fontFamily:"body",fontSize:"16",fontWeight:"bold"},d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:a},o&&d.createElement(Or,{height:"full",marginRight:"8"},d.createElement(jr,{alt:s,background:f,borderRadius:"full",height:a,src:o,width:a,testId:`chain-option-${t}-icon`})),d.createElement("div",null,s??s)),h&&d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},d.createElement(xi,{color:"accentColorForeground",size:"14",weight:"medium"},u.t("chains.connected")),d.createElement(Or,{background:"connectionIndicator",borderColor:"selectedOptionBorder",borderRadius:"full",borderStyle:"solid",borderWidth:"1",height:"8",marginLeft:"8",width:"8"})),i&&d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"row",marginRight:"6"},d.createElement(xi,{color:"modalText",size:"14",weight:"medium"},u.t("chains.confirm")),d.createElement(Or,{background:"standby",borderRadius:"full",height:"8",marginLeft:"8",width:"8"}))))),l&&c<p.length-1&&d.createElement(Or,{background:"generalBorderDim",height:"1",marginX:"8"}))},ko="_18dqw9x0",Co="_18dqw9x1";function xo(e){let{onClose:t,open:n}=e;const{chainId:r}=(0,E.m)(),{chains:a}=(0,_.Z)(),[i,o]=(0,d.useState)(null),{switchChain:s}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mutation:t}=e,n=(0,_.Z)(e),r=Tn(n),{mutate:a,mutateAsync:i,...o}=(0,hn.D)({...t,...r});return{...o,chains:xn({config:n}),switchChain:a,switchChainAsync:i}}({mutation:{onMutate:e=>{let{chainId:t}=e;o(t)},onSuccess:()=>{i&&o(null)},onError:()=>{i&&o(null)},onSettled:()=>{t()}}}),{i18n:f}=(0,d.useContext)(qr),{disconnect:c}=(0,Et.q)(),l="rk_chain_modal_title",u=Cr(),p=a.some((e=>e.id===r)),h=u?"36":"28",b=ga();return r?d.createElement(Zi,{onClose:t,open:n,titleId:l},d.createElement(no,{bottomSheetOnMobile:!0,paddingBottom:"0"},d.createElement(Or,{display:"flex",flexDirection:"column",gap:"14"},d.createElement(Or,{display:"flex",flexDirection:"row",justifyContent:"space-between"},u&&d.createElement(Or,{width:"30"}),d.createElement(Or,{paddingBottom:"0",paddingLeft:"8",paddingTop:"4"},d.createElement(xi,{as:"h1",color:"modalText",id:l,size:u?"20":"18",weight:"heavy"},f.t("chains.title"))),d.createElement(Ii,{onClose:t})),!p&&d.createElement(Or,{marginX:"8",textAlign:u?"center":"left"},d.createElement(xi,{color:"modalTextSecondary",size:"14",weight:"medium"},f.t("chains.wrong_network"))),d.createElement(Or,{className:u?Co:ko,display:"flex",flexDirection:"column",gap:"4",padding:"2",paddingBottom:"16"},b.map(((e,t)=>{let{iconBackground:n,iconUrl:a,id:o,name:f}=e;return d.createElement(To,{key:o,chainId:o,currentChainId:r,switchChain:s,chainIconSize:h,isLoading:i===o,src:a,name:f,iconBackground:n,idx:t})})),!p&&d.createElement(d.Fragment,null,d.createElement(Or,{background:"generalBorderDim",height:"1",marginX:"8"}),d.createElement(_o,{onClick:()=>c(),testId:"chain-option-disconnect"},d.createElement(Or,{color:"error",fontFamily:"body",fontSize:"16",fontWeight:"bold"},d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"row",justifyContent:"space-between"},d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",height:h},d.createElement(Or,{alignItems:"center",color:"error",height:h,justifyContent:"center",marginRight:"8"},d.createElement(Po,{size:Number(h)})),d.createElement("div",null,f.t("chains.disconnect"))))))))))):null}var Oo=e=>{let{children:t,href:n}=e;return d.createElement(Or,{as:"a",color:"accentColor",href:n,rel:"noreferrer",target:"_blank"},t)},So=e=>{let{children:t}=e;return d.createElement(xi,{color:"modalTextSecondary",size:"12",weight:"medium"},t)};function Ro(e){let{compactModeEnabled:t=!1,getWallet:n}=e;const{disclaimer:r,learnMoreUrl:a}=(0,d.useContext)(Ka),{i18n:i}=(0,d.useContext)(qr);return d.createElement(d.Fragment,null,d.createElement(Or,{alignItems:"center",color:"accentColor",display:"flex",flexDirection:"column",height:"full",justifyContent:"space-around"},d.createElement(Or,{marginBottom:"10"},!t&&d.createElement(xi,{color:"modalText",size:"18",weight:"heavy"},i.t("intro.title"))),d.createElement(Or,{display:"flex",flexDirection:"column",gap:"32",justifyContent:"center",marginY:"20",style:{maxWidth:312}},d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},d.createElement(Or,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},d.createElement(_i,null)),d.createElement(Or,{display:"flex",flexDirection:"column",gap:"4"},d.createElement(xi,{color:"modalText",size:"14",weight:"bold"},i.t("intro.digital_asset.title")),d.createElement(xi,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t("intro.digital_asset.description")))),d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},d.createElement(Or,{borderRadius:"6",height:"48",minWidth:"48",width:"48"},d.createElement(Ci,null)),d.createElement(Or,{display:"flex",flexDirection:"column",gap:"4"},d.createElement(xi,{color:"modalText",size:"14",weight:"bold"},i.t("intro.login.title")),d.createElement(xi,{color:"modalTextSecondary",size:"14",weight:"medium"},i.t("intro.login.description"))))),d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",margin:"10"},d.createElement(Si,{label:i.t("intro.get.label"),onClick:n}),d.createElement(Or,{as:"a",className:Er({active:"shrink",hover:"grow"}),display:"block",href:a,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},d.createElement(xi,{color:"accentColor",size:"14",weight:"bold"},i.t("intro.learn_more.label")))),r&&!t&&d.createElement(Or,{marginBottom:"8",marginTop:"12",textAlign:"center"},d.createElement(r,{Link:Oo,Text:So}))))}var Io=()=>d.createElement("svg",{fill:"none",height:"17",viewBox:"0 0 11 17",width:"11",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,"Back"),d.createElement("path",{d:"M0.99707 8.6543C0.99707 9.08496 1.15527 9.44531 1.51562 9.79688L8.16016 16.3096C8.43262 16.5732 8.74902 16.7051 9.13574 16.7051C9.90918 16.7051 10.5508 16.0811 10.5508 15.3076C10.5508 14.9121 10.3838 14.5605 10.0938 14.2705L4.30176 8.64551L10.0938 3.0293C10.3838 2.74805 10.5508 2.3877 10.5508 2.00098C10.5508 1.23633 9.90918 0.603516 9.13574 0.603516C8.74902 0.603516 8.43262 0.735352 8.16016 0.999023L1.51562 7.51172C1.15527 7.85449 1.00586 8.21484 0.99707 8.6543Z",fill:"currentColor"})),No=()=>d.createElement("svg",{fill:"none",height:"12",viewBox:"0 0 8 12",width:"8",xmlns:"http://www.w3.org/2000/svg"},d.createElement("title",null,"Info"),d.createElement("path",{d:"M3.64258 7.99609C4.19336 7.99609 4.5625 7.73828 4.68555 7.24609C4.69141 7.21094 4.70312 7.16406 4.70898 7.13477C4.80859 6.60742 5.05469 6.35547 6.04492 5.76367C7.14648 5.10156 7.67969 4.3457 7.67969 3.24414C7.67969 1.39844 6.17383 0.255859 3.95898 0.255859C2.32422 0.255859 1.05859 0.894531 0.548828 1.86719C0.396484 2.14844 0.320312 2.44727 0.320312 2.74023C0.314453 3.37305 0.742188 3.79492 1.42188 3.79492C1.91406 3.79492 2.33594 3.54883 2.53516 3.11523C2.78711 2.47656 3.23242 2.21289 3.83594 2.21289C4.55664 2.21289 5.10742 2.65234 5.10742 3.29102C5.10742 3.9707 4.7793 4.29883 3.81836 4.87891C3.02148 5.36523 2.50586 5.92773 2.50586 6.76562V6.90039C2.50586 7.55664 2.96289 7.99609 3.64258 7.99609ZM3.67188 11.4473C4.42773 11.4473 5.04297 10.8672 5.04297 10.1406C5.04297 9.41406 4.42773 8.83984 3.67188 8.83984C2.91602 8.83984 2.30664 9.41406 2.30664 10.1406C2.30664 10.8672 2.91602 11.4473 3.67188 11.4473Z",fill:"currentColor"})),Bo=e=>{let{"aria-label":t="Info",onClick:n}=e;const r=Cr();return d.createElement(Or,{alignItems:"center","aria-label":t,as:"button",background:"closeButtonBackground",borderColor:"actionButtonBorder",borderRadius:"full",borderStyle:"solid",borderWidth:r?"0":"1",className:Er({active:"shrinkSm",hover:"growLg"}),color:"closeButton",display:"flex",height:r?"30":"28",justifyContent:"center",onClick:n,style:{willChange:"transform"},transition:"default",type:"button",width:r?"30":"28"},d.createElement(No,null))},jo=e=>{const t=(0,d.useRef)(null),n=(0,d.useContext)(Za),r=Br(e);return(0,d.useEffect)((()=>{if(n&&t.current&&r)return function(e,t){Lo++;const n=[15,20,25,35,45],r=35;let a=[],i=!1,o=0,s=0;const f=Do();function c(){const e=n[Math.floor(Math.random()*n.length)],r=10*Math.random(),i=25*Math.random(),c=360*Math.random(),l=35*Math.random()*(Math.random()<=.5?-1:1),u=s-e/2,d=o-e/2,p=Math.random()<=.5?-1:1,h=document.createElement("div");h.innerHTML=`<img src="${t}" width="${e}" height="${e}" style="border-radius: 25%">`,h.setAttribute("style",["position:absolute","will-change:transform",`top:${u}px`,`left:${d}px`,`transform:rotate(${c}deg)`].join(";")),f.appendChild(h),a.push({direction:p,element:h,left:d,size:e,speedHorz:r,speedUp:i,spinSpeed:l,spinVal:c,top:u})}function l(){for(const e of a)e.left=e.left-e.speedHorz*e.direction,e.top=e.top-e.speedUp,e.speedUp=Math.min(e.size,e.speedUp-1),e.spinVal=e.spinVal+e.spinSpeed,e.top>=Math.max(window.innerHeight,document.body.clientHeight)+e.size&&(a=a.filter((t=>t!==e)),e.element.remove()),e.element.setAttribute("style",["position:absolute","will-change:transform",`top:${e.top}px`,`left:${e.left}px`,`transform:rotate(${e.spinVal}deg)`].join(";"))}let u;function d(){i&&a.length<r&&c(),l(),u=requestAnimationFrame(d)}d();const p="ontouchstart"in window||navigator.msMaxTouchPoints,h=p?"touchstart":"mousedown",b=p?"touchend":"mouseup",y=p?"touchmove":"mousemove",m=e=>{var t,n;"touches"in e?(o=null===(t=e.touches)||void 0===t?void 0:t[0].clientX,s=null===(n=e.touches)||void 0===n?void 0:n[0].clientY):(o=e.clientX,s=e.clientY)},g=e=>{m(e),i=!0},v=()=>{i=!1};return e.addEventListener(y,m,{passive:!1}),e.addEventListener(h,g),e.addEventListener(b,v),e.addEventListener("mouseleave",v),()=>{e.removeEventListener(y,m),e.removeEventListener(h,g),e.removeEventListener(b,v),e.removeEventListener("mouseleave",v);const t=setInterval((()=>{u&&0===a.length&&(cancelAnimationFrame(u),clearInterval(t),0===--Lo&&f.remove())}),500)}}(t.current,r)}),[n,r]),t},Do=()=>{const e="_rk_coolMode",t=document.getElementById(e);if(t)return t;const n=document.createElement("div");return n.setAttribute("id",e),n.setAttribute("style",["overflow:hidden","position:fixed","height:100%","top:0","left:0","right:0","bottom:0","pointer-events:none","z-index:2147483647"].join(";")),document.body.appendChild(n),n},Lo=0;var Mo=e=>{let{as:t="button",currentlySelected:n=!1,iconBackground:r,iconUrl:a,name:i,onClick:o,ready:s,recent:f,testId:c,isRainbowKitConnector:l,...u}=e;const p=jo(a),[h,b]=(0,d.useState)(!1),{i18n:y}=(0,d.useContext)(qr);return d.createElement(Or,{display:"flex",flexDirection:"column",onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),ref:p},d.createElement(Or,{as:t,borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:n?void 0:["g5kl0l0",Er({active:"shrink"})],disabled:n,onClick:o,padding:"5",style:{willChange:"transform"},testId:c,transition:"default",width:"full",...n?{background:"accentColor",borderColor:"selectedOptionBorder",boxShadow:"selectedWallet"}:{background:{hover:"menuItemBackground"}},...u},d.createElement(Or,{color:n?"accentColorForeground":"modalText",disabled:!s,fontFamily:"body",fontSize:"16",fontWeight:"bold",transition:"default"},d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"row",gap:"12"},d.createElement(jr,{background:r,...!h&&l?{borderColor:"actionButtonBorder"}:{},useAsImage:!l,borderRadius:"6",height:"28",src:a,width:"28"}),d.createElement(Or,null,d.createElement(Or,{style:{marginTop:f?-2:void 0},maxWidth:"200"},i),f&&d.createElement(xi,{color:n?"accentColorForeground":"accentColor",size:"12",style:{lineHeight:1,marginTop:-1},weight:"medium"},y.t("connect.recent")))))))};Mo.displayName="ModalSelection";var Uo="rk-latest-id";function Fo(e){localStorage.setItem(Uo,e)}var zo=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.replace("#","");3===n.length&&(n=`${n[0]}${n[0]}${n[1]}${n[1]}${n[2]}${n[2]}`);return t>1&&t<=100&&(t/=100),`rgba(${parseInt(n.substring(0,2),16)},${parseInt(n.substring(2,4),16)},${parseInt(n.substring(4,6),16)},${t})`},$o=async()=>(await n.e(5723).then(n.bind(n,25723))).default,Go=()=>Nr($o),Ho=()=>d.createElement(jr,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:$o,width:"48"}),Wo=async()=>(await n.e(4631).then(n.bind(n,14631))).default,Vo=()=>Nr(Wo),qo=()=>d.createElement(jr,{background:"#e3a5e8",borderColor:"generalBorder",borderRadius:"10",height:"48",src:Wo,width:"48"}),Ko=async()=>(await n.e(2587).then(n.bind(n,52587))).default,Zo=()=>Nr(Ko),Jo=()=>d.createElement(jr,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:Ko,width:"48"}),Yo=async()=>(await n.e(3295).then(n.bind(n,93295))).default,Qo=()=>Nr(Yo),Xo=()=>d.createElement(jr,{background:"#515a70",borderColor:"generalBorder",borderRadius:"10",height:"48",src:Yo,width:"48"}),es="_1vwt0cg0",ts="_1vwt0cg2 ju367v7a ju367v7v",ns="_1vwt0cg3",rs="_1vwt0cg4",as=(e,t)=>{const n=Array.prototype.slice.call(On.create(e,{errorCorrectionLevel:t}).modules.data,0),r=Math.sqrt(n.length);return n.reduce(((e,t,n)=>(n%r===0?e.push([t]):e[e.length-1].push(t))&&e),[])};function is(e){let{ecl:t="M",logoBackground:n,logoMargin:r=10,logoSize:a=50,logoUrl:i,size:o=200,uri:s}=e;const f=o-2*parseInt("20",10),c=(0,d.useMemo)((()=>{const e=[],n=as(s,t),r=f/n.length;[{x:0,y:0},{x:1,y:0},{x:0,y:1}].forEach((t=>{let{x:a,y:i}=t;const o=(n.length-7)*r*a,s=(n.length-7)*r*i;for(let n=0;n<3;n++)e.push(d.createElement("rect",{fill:n%2!==0?"white":"black",height:r*(7-2*n),key:`${n}-${a}-${i}`,rx:-5*(n-2)+(0===n?2:0),ry:-5*(n-2)+(0===n?2:0),width:r*(7-2*n),x:o+r*n,y:s+r*n}))}));const i=Math.floor((a+25)/r),o=n.length/2-i/2,c=n.length/2+i/2-1;return n.forEach(((t,a)=>{t.forEach(((t,i)=>{n[a][i]&&(a<7&&i<7||a>n.length-8&&i<7||a<7&&i>n.length-8||a>o&&a<c&&i>o&&i<c||e.push(d.createElement("circle",{cx:a*r+r/2,cy:i*r+r/2,fill:"black",key:`circle-${a}-${i}`,r:r/3})))}))})),e}),[t,a,f,s]),l=f/2-a/2,u=a+2*r;return d.createElement(Or,{borderColor:"generalBorder",borderRadius:"menuButton",borderStyle:"solid",borderWidth:"1",className:es,padding:"20",width:"max"},d.createElement(Or,{style:{height:f,userSelect:"none",width:f},userSelect:"none"},d.createElement(Or,{display:"flex",justifyContent:"center",position:"relative",style:{height:0,top:l,width:f},width:"full"},d.createElement(jr,{background:n,borderColor:{custom:"rgba(0, 0, 0, 0.06)"},borderRadius:"13",height:a,src:i,width:a})),d.createElement("svg",{height:f,style:{all:"revert"},width:f},d.createElement("title",null,"QR Code"),d.createElement("defs",null,d.createElement("clipPath",{id:"clip-wrapper"},d.createElement("rect",{height:u,width:u})),d.createElement("clipPath",{id:"clip-logo"},d.createElement("rect",{height:a,width:a}))),d.createElement("rect",{fill:"transparent",height:f,width:f}),c)))}var os=async()=>{switch(oi()){case"Arc":return(await n.e(544).then(n.bind(n,80544))).default;case"Brave":return(await n.e(7969).then(n.bind(n,87969))).default;case"Chrome":return(await n.e(4798).then(n.bind(n,14798))).default;case"Edge":return(await n.e(1722).then(n.bind(n,61722))).default;case"Firefox":return(await n.e(5262).then(n.bind(n,35262))).default;case"Opera":return(await n.e(7740).then(n.bind(n,67740))).default;case"Safari":return(await n.e(8657).then(n.bind(n,28657))).default;default:return(await n.e(6677).then(n.bind(n,16677))).default}},ss=()=>Nr(os),fs=async()=>{switch(ci()){case"Windows":return(await n.e(7265).then(n.bind(n,57265))).default;case"macOS":return(await n.e(8268).then(n.bind(n,58268))).default;default:return(await n.e(7064).then(n.bind(n,87064))).default}},cs=()=>Nr(fs);function ls(e){let{getWalletDownload:t,compactModeEnabled:n}=e;const r=Ei().filter((e=>e.isRainbowKitConnector)).splice(0,5),{i18n:a}=(0,d.useContext)(qr);return d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginTop:"18",width:"full"},d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:"28",height:"full",width:"full"},null===r||void 0===r?void 0:r.filter((e=>{var t;return e.extensionDownloadUrl||e.desktopDownloadUrl||e.qrCode&&(null===(t=e.downloadUrls)||void 0===t?void 0:t.qrCode)})).map((e=>{const{downloadUrls:n,iconBackground:r,iconUrl:i,id:o,name:s,qrCode:f}=e,c=(null===n||void 0===n?void 0:n.qrCode)&&f,l=!!e.extensionDownloadUrl,u=(null===n||void 0===n?void 0:n.qrCode)&&l,p=(null===n||void 0===n?void 0:n.qrCode)&&!!e.desktopDownloadUrl;return d.createElement(Or,{alignItems:"center",display:"flex",gap:"16",justifyContent:"space-between",key:e.id,width:"full"},d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16"},d.createElement(jr,{background:r,borderColor:"actionButtonBorder",borderRadius:"10",height:"48",src:i,width:"48"}),d.createElement(Or,{display:"flex",flexDirection:"column",gap:"2"},d.createElement(xi,{color:"modalText",size:"14",weight:"bold"},s),d.createElement(xi,{color:"modalTextSecondary",size:"14",weight:"medium"},u?a.t("get.mobile_and_extension.description"):p?a.t("get.mobile_and_desktop.description"):c?a.t("get.mobile.description"):l?a.t("get.extension.description"):null))),d.createElement(Or,{display:"flex",flexDirection:"column",gap:"4"},d.createElement(Si,{label:a.t("get.action.label"),onClick:()=>t(o),type:"secondary"})))}))),d.createElement(Or,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"column",gap:"8",justifyContent:"space-between",marginBottom:"4",paddingY:"8",style:{maxWidth:275,textAlign:"center"}},d.createElement(xi,{color:"modalText",size:"14",weight:"bold"},a.t("get.looking_for.title")),d.createElement(xi,{color:"modalTextSecondary",size:"14",weight:"medium"},n?a.t("get.looking_for.desktop.compact_description"):a.t("get.looking_for.desktop.wide_description"))))}var us="44";function ds(e){let{changeWalletStep:t,compactModeEnabled:n,connectionError:r,onClose:a,qrCodeUri:i,reconnect:o,wallet:s}=e;const{downloadUrls:f,iconBackground:c,iconUrl:l,name:u,qrCode:p,ready:h,showWalletConnectModal:b,getDesktopUri:y}=s,m=!!y,g=ii(),{i18n:v}=(0,d.useContext)(qr),w=!!s.extensionDownloadUrl,E=(null===f||void 0===f?void 0:f.qrCode)&&w,A=(null===f||void 0===f?void 0:f.qrCode)&&!!s.desktopDownloadUrl,P=p&&i,_=b?{description:n?v.t("connect.walletconnect.description.compact"):v.t("connect.walletconnect.description.full"),label:v.t("connect.walletconnect.open.label"),onClick:()=>{a(),b()}}:P?{description:v.t("connect.secondary_action.get.description",{wallet:u}),label:v.t("connect.secondary_action.get.label"),onClick:()=>t(E||A?"DOWNLOAD_OPTIONS":"DOWNLOAD")}:null,{width:T}=Ja(),k=T&&T<768;return(0,d.useEffect)((()=>{ss(),cs()}),[]),d.createElement(Or,{display:"flex",flexDirection:"column",height:"full",width:"full"},P?d.createElement(Or,{alignItems:"center",display:"flex",height:"full",justifyContent:"center"},d.createElement(is,{logoBackground:c,logoSize:n?60:72,logoUrl:l,size:n?318:k?Math.max(280,Math.min(T-308,382)):382,uri:i})):d.createElement(Or,{alignItems:"center",display:"flex",justifyContent:"center",style:{flexGrow:1}},d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8"},d.createElement(Or,{borderRadius:"10",height:us,overflow:"hidden"},d.createElement(jr,{useAsImage:!s.isRainbowKitConnector,height:us,src:l,width:us})),d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:"4",paddingX:"32",style:{textAlign:"center"}},d.createElement(xi,{color:"modalText",size:"18",weight:"bold"},h?v.t("connect.status.opening",{wallet:u}):w?v.t("connect.status.not_installed",{wallet:u}):v.t("connect.status.not_available",{wallet:u})),!h&&w?d.createElement(Or,{paddingTop:"20"},d.createElement(Si,{href:s.extensionDownloadUrl,label:v.t("connect.secondary_action.install.label"),type:"secondary"})):null,h&&!P&&d.createElement(d.Fragment,null,d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},d.createElement(xi,{color:"modalTextSecondary",size:"14",textAlign:"center",weight:"medium"},v.t("connect.status.confirm"))),d.createElement(Or,{alignItems:"center",color:"modalText",display:"flex",flexDirection:"row",height:"32",marginTop:"8"},r?d.createElement(Si,{label:v.t("connect.secondary_action.retry.label"),onClick:async()=>{m&&(async()=>{const e=await(null===y||void 0===y?void 0:y());window.open(e,g?"_blank":"_self")})(),o(s)}}):d.createElement(Or,{color:"modalTextSecondary"},d.createElement(Dr,null))))))),d.createElement(Or,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"28",justifyContent:"space-between",marginTop:"12"},h&&_&&d.createElement(d.Fragment,null,d.createElement(xi,{color:"modalTextSecondary",size:"14",weight:"medium"},_.description),d.createElement(Si,{label:_.label,onClick:_.onClick,type:"secondary"}))))}var ps=e=>{let{actionLabel:t,description:n,iconAccent:r,iconBackground:a,iconUrl:i,isCompact:o,onAction:s,title:f,url:c,variant:l}=e;const u="browser"===l,p=!u&&r&&((h=r)?[zo(h,.2),zo(h,.14),zo(h,.1)]:null);var h;return d.createElement(Or,{alignItems:"center",borderRadius:"13",display:"flex",justifyContent:"center",overflow:"hidden",paddingX:o?"18":"44",position:"relative",style:{flex:1,isolation:"isolate"},width:"full"},d.createElement(Or,{borderColor:"actionButtonBorder",borderRadius:"13",borderStyle:"solid",borderWidth:"1",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0",zIndex:1}}),u&&d.createElement(Or,{background:"downloadTopCardBackground",height:"full",position:"absolute",style:{zIndex:0},width:"full"},d.createElement(Or,{display:"flex",flexDirection:"row",justifyContent:"space-between",style:{bottom:"0",filter:"blur(20px)",left:"0",position:"absolute",right:"0",top:"0",transform:"translate3d(0, 0, 0)"}},d.createElement(Or,{style:{filter:"blur(100px)",marginLeft:-27,marginTop:-20,opacity:.6,transform:"translate3d(0, 0, 0)"}},d.createElement(jr,{borderRadius:"full",height:"200",src:i,width:"200"})),d.createElement(Or,{style:{filter:"blur(100px)",marginRight:0,marginTop:105,opacity:.6,overflow:"auto",transform:"translate3d(0, 0, 0)"}},d.createElement(jr,{borderRadius:"full",height:"200",src:i,width:"200"})))),!u&&p&&d.createElement(Or,{background:"downloadBottomCardBackground",style:{bottom:"0",left:"0",position:"absolute",right:"0",top:"0"}},d.createElement(Or,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${p[0]} 0%, ${p[1]} 25%, rgba(0,0,0,0) 100%)`,height:564,left:-215,top:-197,transform:"translate3d(0, 0, 0)",width:564}}),d.createElement(Or,{position:"absolute",style:{background:`radial-gradient(50% 50% at 50% 50%, ${p[2]} 0%, rgba(0, 0, 0, 0) 100%)`,height:564,left:-1,top:-76,transform:"translate3d(0, 0, 0)",width:564}})),d.createElement(Or,{alignItems:"flex-start",display:"flex",flexDirection:"row",gap:"24",height:"max",justifyContent:"center",style:{zIndex:1}},d.createElement(Or,null,d.createElement(jr,{height:"60",src:i,width:"60",...a?{background:a,borderColor:"generalBorder",borderRadius:"10"}:null})),d.createElement(Or,{display:"flex",flexDirection:"column",gap:"4",style:{flex:1},width:"full"},d.createElement(xi,{color:"modalText",size:"14",weight:"bold"},f),d.createElement(xi,{color:"modalTextSecondary",size:"14",weight:"medium"},n),d.createElement(Or,{marginTop:"14",width:"max"},d.createElement(Si,{href:c,label:t,onClick:s,size:"medium"})))))};function hs(e){let{changeWalletStep:t,wallet:n}=e;const r=oi(),a=ci(),i="compact"===(0,d.useContext)(ei),{desktop:o,desktopDownloadUrl:s,extension:f,extensionDownloadUrl:c,mobileDownloadUrl:l}=n,{i18n:u}=(0,d.useContext)(qr);return(0,d.useEffect)((()=>{Vo(),Qo(),Zo(),Go()}),[]),d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",marginBottom:"8",marginTop:"4",width:"full"},d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:"8",height:"full",justifyContent:"center",width:"full"},c&&d.createElement(ps,{actionLabel:u.t("get_options.extension.download.label",{browser:r}),description:u.t("get_options.extension.description"),iconUrl:os,isCompact:i,onAction:()=>t(null!==f&&void 0!==f&&f.instructions?"INSTRUCTIONS_EXTENSION":"CONNECT"),title:u.t("get_options.extension.title",{wallet:n.name,browser:r}),url:c,variant:"browser"}),s&&d.createElement(ps,{actionLabel:u.t("get_options.desktop.download.label",{platform:a}),description:u.t("get_options.desktop.description"),iconUrl:fs,isCompact:i,onAction:()=>t(null!==o&&void 0!==o&&o.instructions?"INSTRUCTIONS_DESKTOP":"CONNECT"),title:u.t("get_options.desktop.title",{wallet:n.name,platform:a}),url:s,variant:"desktop"}),l&&d.createElement(ps,{actionLabel:u.t("get_options.mobile.download.label",{wallet:n.name}),description:u.t("get_options.mobile.description"),iconAccent:n.iconAccent,iconBackground:n.iconBackground,iconUrl:n.iconUrl,isCompact:i,onAction:()=>{t("DOWNLOAD")},title:u.t("get_options.mobile.title",{wallet:n.name}),variant:"app"})))}function bs(e){let{changeWalletStep:t,wallet:n}=e;const{downloadUrls:r,qrCode:a}=n,{i18n:i}=(0,d.useContext)(qr);return(0,d.useEffect)((()=>{Vo(),Qo()}),[]),d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:"24",height:"full",width:"full"},d.createElement(Or,{style:{maxWidth:220,textAlign:"center"}},d.createElement(xi,{color:"modalTextSecondary",size:"14",weight:"semibold"},i.t("get_mobile.description"))),d.createElement(Or,{height:"full"},null!==r&&void 0!==r&&r.qrCode?d.createElement(is,{logoSize:0,size:268,uri:r.qrCode}):null),d.createElement(Or,{alignItems:"center",borderRadius:"10",display:"flex",flexDirection:"row",gap:"8",height:"34",justifyContent:"space-between",marginBottom:"12",paddingY:"8"},d.createElement(Si,{label:i.t("get_mobile.continue.label"),onClick:()=>t(null!==a&&void 0!==a&&a.instructions?"INSTRUCTIONS_MOBILE":"CONNECT")})))}var ys={connect:()=>d.createElement(Ho,null),create:()=>d.createElement(qo,null),install:e=>d.createElement(jr,{background:e.iconBackground,borderColor:"generalBorder",borderRadius:"10",height:"48",src:e.iconUrl,width:"48"}),refresh:()=>d.createElement(Jo,null),scan:()=>d.createElement(Xo,null)};function ms(e){var t,n,r,a;let{connectWallet:i,wallet:o}=e;const{i18n:s}=(0,d.useContext)(qr);return d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},d.createElement(Or,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},null===o||void 0===o||null===(t=o.qrCode)||void 0===t||null===(n=t.instructions)||void 0===n?void 0:n.steps.map(((e,t)=>{var n;return d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:t},d.createElement(Or,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},null===(n=ys[e.step])||void 0===n?void 0:n.call(ys,o)),d.createElement(Or,{display:"flex",flexDirection:"column",gap:"4"},d.createElement(xi,{color:"modalText",size:"14",weight:"bold"},s.t(e.title,void 0,{rawKeyIfTranslationMissing:!0})),d.createElement(xi,{color:"modalTextSecondary",size:"14",weight:"medium"},s.t(e.description,void 0,{rawKeyIfTranslationMissing:!0}))))}))),d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},d.createElement(Si,{label:s.t("get_instructions.mobile.connect.label"),onClick:()=>i(o)}),d.createElement(Or,{as:"a",className:Er({active:"shrink",hover:"grow"}),display:"block",href:null===o||void 0===o||null===(r=o.qrCode)||void 0===r||null===(a=r.instructions)||void 0===a?void 0:a.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},d.createElement(xi,{color:"accentColor",size:"14",weight:"bold"},s.t("get_instructions.mobile.learn_more.label")))))}function gs(e){var t,n,r,a;let{wallet:i}=e;const{i18n:o}=(0,d.useContext)(qr);return d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},d.createElement(Or,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},null===i||void 0===i||null===(t=i.extension)||void 0===t||null===(n=t.instructions)||void 0===n?void 0:n.steps.map(((e,t)=>{var n;return d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:t},d.createElement(Or,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},null===(n=ys[e.step])||void 0===n?void 0:n.call(ys,i)),d.createElement(Or,{display:"flex",flexDirection:"column",gap:"4"},d.createElement(xi,{color:"modalText",size:"14",weight:"bold"},o.t(e.title,void 0,{rawKeyIfTranslationMissing:!0})),d.createElement(xi,{color:"modalTextSecondary",size:"14",weight:"medium"},o.t(e.description,void 0,{rawKeyIfTranslationMissing:!0}))))}))),d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},d.createElement(Si,{label:o.t("get_instructions.extension.refresh.label"),onClick:window.location.reload.bind(window.location)}),d.createElement(Or,{as:"a",className:Er({active:"shrink",hover:"grow"}),display:"block",href:null===i||void 0===i||null===(r=i.extension)||void 0===r||null===(a=r.instructions)||void 0===a?void 0:a.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},d.createElement(xi,{color:"accentColor",size:"14",weight:"bold"},o.t("get_instructions.extension.learn_more.label")))))}function vs(e){var t,n,r,a;let{connectWallet:i,wallet:o}=e;const{i18n:s}=(0,d.useContext)(qr);return d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",width:"full"},d.createElement(Or,{display:"flex",flexDirection:"column",gap:"28",height:"full",justifyContent:"center",paddingY:"32",style:{maxWidth:320}},null===o||void 0===o||null===(t=o.desktop)||void 0===t||null===(n=t.instructions)||void 0===n?void 0:n.steps.map(((e,t)=>{var n;return d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"row",gap:"16",key:t},d.createElement(Or,{borderRadius:"10",height:"48",minWidth:"48",overflow:"hidden",position:"relative",width:"48"},null===(n=ys[e.step])||void 0===n?void 0:n.call(ys,o)),d.createElement(Or,{display:"flex",flexDirection:"column",gap:"4"},d.createElement(xi,{color:"modalText",size:"14",weight:"bold"},s.t(e.title,void 0,{rawKeyIfTranslationMissing:!0})),d.createElement(xi,{color:"modalTextSecondary",size:"14",weight:"medium"},s.t(e.description,void 0,{rawKeyIfTranslationMissing:!0}))))}))),d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:"12",justifyContent:"center",marginBottom:"16"},d.createElement(Si,{label:s.t("get_instructions.desktop.connect.label"),onClick:()=>i(o)}),d.createElement(Or,{as:"a",className:Er({active:"shrink",hover:"grow"}),display:"block",href:null===o||void 0===o||null===(r=o.desktop)||void 0===r||null===(a=r.instructions)||void 0===a?void 0:a.learnMoreUrl,paddingX:"12",paddingY:"4",rel:"noreferrer",style:{willChange:"transform"},target:"_blank",transition:"default"},d.createElement(xi,{color:"accentColor",size:"14",weight:"bold"},s.t("get_instructions.desktop.learn_more.label")))))}function ws(e){let{onClose:t}=e;const[n,r]=(0,d.useState)(),[a,i]=(0,d.useState)(),[o,s]=(0,d.useState)(),f=!(null===a||void 0===a||!a.qrCode)&&o,[c,l]=(0,d.useState)(!1),u=(0,d.useContext)(ei)===Xa.COMPACT,{disclaimer:p}=(0,d.useContext)(Ka),{i18n:h}=(0,d.useContext)(qr),b=ii(),y=(0,d.useRef)(!1),{connector:m}=(0,d.useContext)(Ya),g=Ei(!m).filter((e=>e.ready||!!e.extensionDownloadUrl)).sort(((e,t)=>e.groupIndex-t.groupIndex)),v=function(e,t){const n={};for(const r of e){const e=t(r);e&&(n[e]||(n[e]=[]),n[e].push(r))}return n}(g,(e=>e.groupName)),w=["Recommended","Other","Popular","More","Others","Installed"];(0,d.useEffect)((()=>{m&&!y.current&&(T("CONNECT"),A(m),y.current=!0)}),[m]);const E=e=>{var t,n;(l(!1),e.ready)&&(null===e||void 0===e||null===(t=e.connect)||void 0===t||null===(n=t.call(e))||void 0===n||n.catch((()=>{l(!0)})))},A=async e=>{Fo(e.id),e.ready&&((async e=>{var t;const n=g.find((t=>e.id===t.id)),r=await(null===n||void 0===n||null===(t=n.getQrCodeUri)||void 0===t?void 0:t.call(n));s(r),setTimeout((()=>{i(n),T("CONNECT")}),r?0:50)})(e),(async e=>{const t=g.find((t=>e.id===t.id));null!==t&&void 0!==t&&t.getDesktopUri&&setTimeout((async()=>{var e;const n=await(null===t||void 0===t||null===(e=t.getDesktopUri)||void 0===e?void 0:e.call(t));n&&window.open(n,b?"_blank":"_self")}),0)})(e)),E(e),r(e.id),e.ready||(i(e),T(null!==e&&void 0!==e&&e.extensionDownloadUrl?"DOWNLOAD_OPTIONS":"CONNECT"))},P=e=>{var t;r(e);const n=g.find((t=>e===t.id)),a=null===n||void 0===n||null===(t=n.downloadUrls)||void 0===t?void 0:t.qrCode,o=!(null===n||void 0===n||!n.desktopDownloadUrl),s=!(null===n||void 0===n||!n.extensionDownloadUrl);i(n),T(a&&(s||o)?"DOWNLOAD_OPTIONS":a?"DOWNLOAD":o?"INSTRUCTIONS_DESKTOP":"INSTRUCTIONS_EXTENSION")},_=()=>{r(void 0),i(void 0),s(void 0)},T=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t&&"GET"===e&&"GET"===k?_():t||"GET"!==e?t||"CONNECT"!==e||C("CONNECT"):C("GET"),O(e)},[k,C]=(0,d.useState)("NONE"),[x,O]=(0,d.useState)("NONE");let S,R=null,I=null,N=null;(0,d.useEffect)((()=>{l(!1)}),[x,a]);const B=!(!!(null===a||void 0===a||!a.extensionDownloadUrl)||null===a||void 0===a||!a.mobileDownloadUrl);switch(x){case"NONE":R=d.createElement(Ro,{getWallet:()=>T("GET")});break;case"LEARN_COMPACT":R=d.createElement(Ro,{compactModeEnabled:u,getWallet:()=>T("GET")}),I=h.t("intro.title"),N="NONE";break;case"GET":R=d.createElement(ls,{getWalletDownload:P,compactModeEnabled:u}),I=h.t("get.title"),N=u?"LEARN_COMPACT":"NONE";break;case"CONNECT":R=a&&d.createElement(ds,{changeWalletStep:T,compactModeEnabled:u,connectionError:c,onClose:t,qrCodeUri:o,reconnect:E,wallet:a}),I=f&&("WalletConnect"===a.name?h.t("connect_scan.fallback_title"):h.t("connect_scan.title",{wallet:a.name})),N=u?m?null:"NONE":null,S=u?m?()=>{}:_:()=>{};break;case"DOWNLOAD_OPTIONS":R=a&&d.createElement(hs,{changeWalletStep:T,wallet:a}),I=a&&h.t("get_options.short_title",{wallet:a.name}),N=m?"CONNECT":u?"NONE":null;break;case"DOWNLOAD":R=a&&d.createElement(bs,{changeWalletStep:T,wallet:a}),I=a&&h.t("get_mobile.title",{wallet:a.name}),N=B?"DOWNLOAD_OPTIONS":k;break;case"INSTRUCTIONS_MOBILE":R=a&&d.createElement(ms,{connectWallet:A,wallet:a}),I=a&&h.t("get_options.title",{wallet:u&&a.shortName||a.name}),N="DOWNLOAD";break;case"INSTRUCTIONS_EXTENSION":R=a&&d.createElement(gs,{wallet:a}),I=a&&h.t("get_options.title",{wallet:u&&a.shortName||a.name}),N="DOWNLOAD_OPTIONS";break;case"INSTRUCTIONS_DESKTOP":R=a&&d.createElement(vs,{connectWallet:A,wallet:a}),I=a&&h.t("get_options.title",{wallet:u&&a.shortName||a.name}),N="DOWNLOAD_OPTIONS"}return d.createElement(Or,{display:"flex",flexDirection:"row",style:{maxHeight:u?468:504}},(!u||"NONE"===x)&&d.createElement(Or,{className:u?rs:ns,display:"flex",flexDirection:"column",marginTop:"16"},d.createElement(Or,{display:"flex",justifyContent:"space-between"},u&&p&&d.createElement(Or,{marginLeft:"16",width:"28"},d.createElement(Bo,{onClick:()=>T("LEARN_COMPACT")})),u&&!p&&d.createElement(Or,{marginLeft:"16",width:"28"}),d.createElement(Or,{marginLeft:u?"0":"6",paddingBottom:"8",paddingTop:"2",paddingX:"18"},d.createElement(xi,{as:"h1",color:"modalText",id:"rk_connect_title",size:"18",weight:"heavy",testId:"connect-header-label"},h.t("connect.title"))),u&&d.createElement(Or,{marginRight:"16"},d.createElement(Ii,{onClose:t}))),d.createElement(Or,{className:ts,paddingBottom:"18"},Object.entries(v).map(((e,t)=>{let[r,a]=e;return a.length>0&&d.createElement(d.Fragment,{key:t},r?d.createElement(Or,{marginBottom:"8",marginTop:"16",marginX:"6"},d.createElement(xi,{color:"Installed"===r?"accentColor":"modalTextSecondary",size:"14",weight:"bold"},w.includes(r)?h.t(`connector_group.${r.toLowerCase()}`):r)):null,d.createElement(Or,{display:"flex",flexDirection:"column",gap:"4"},a.map((e=>d.createElement(Mo,{currentlySelected:e.id===n,iconBackground:e.iconBackground,iconUrl:e.iconUrl,key:e.id,name:e.name,onClick:()=>A(e),ready:e.ready,recent:e.recent,testId:`wallet-option-${e.id}`,isRainbowKitConnector:e.isRainbowKitConnector})))))}))),u&&d.createElement(d.Fragment,null,d.createElement(Or,{background:"generalBorder",height:"1",marginTop:"-1"}),p?d.createElement(Or,{paddingX:"24",paddingY:"16",textAlign:"center"},d.createElement(p,{Link:Oo,Text:So})):d.createElement(Or,{alignItems:"center",display:"flex",justifyContent:"space-between",paddingX:"24",paddingY:"16"},d.createElement(Or,{paddingY:"4"},d.createElement(xi,{color:"modalTextSecondary",size:"14",weight:"medium"},h.t("connect.new_to_ethereum.description"))),d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"row",gap:"4",justifyContent:"center"},d.createElement(Or,{className:Er({active:"shrink",hover:"grow"}),cursor:"pointer",onClick:()=>T("LEARN_COMPACT"),paddingY:"4",style:{willChange:"transform"},transition:"default"},d.createElement(xi,{color:"accentColor",size:"14",weight:"bold"},h.t("connect.new_to_ethereum.learn_more.label"))))))),(!u||"NONE"!==x)&&d.createElement(d.Fragment,null,!u&&d.createElement(Or,{background:"generalBorder",minWidth:"1",width:"1"}),d.createElement(Or,{display:"flex",flexDirection:"column",margin:"16",style:{flexGrow:1}},d.createElement(Or,{alignItems:"center",display:"flex",justifyContent:"space-between",marginBottom:"12"},d.createElement(Or,{width:"28"},N&&d.createElement(Or,{as:"button",className:Er({active:"shrinkSm",hover:"growLg"}),color:"accentColor",onClick:()=>{var e;N&&T(N,!0),null===(e=S)||void 0===e||e()},paddingX:"8",paddingY:"4",style:{boxSizing:"content-box",height:17,willChange:"transform"},transition:"default",type:"button"},d.createElement(Io,null))),d.createElement(Or,{display:"flex",justifyContent:"center",style:{flexGrow:1}},I&&d.createElement(xi,{color:"modalText",size:"18",textAlign:"center",weight:"heavy"},I)),d.createElement(Ii,{onClose:t})),d.createElement(Or,{display:"flex",flexDirection:"column",style:{minHeight:u?396:432}},d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:"6",height:"full",justifyContent:"center",marginX:"8"},R)))))}var Es="_1am14410",As=e=>{let{wallet:t}=e;return d.createElement("svg",{className:"_1am14413",viewBox:"0 0 86 86",width:"86",height:"86"},d.createElement("title",null,"Loading"),d.createElement("rect",{x:"3",y:"3",width:80,height:80,rx:20,ry:20,strokeDasharray:`${160/3} ${320/3}`,strokeDashoffset:160,className:"_1am14412",style:{stroke:(null===t||void 0===t?void 0:t.iconAccent)||"#0D3887"}}))};function Ps(e){let{onClose:t,wallet:n,connecting:r}=e;const{connect:a,iconBackground:i,iconUrl:o,id:s,name:f,getMobileUri:c,ready:l,shortName:u,showWalletConnectModal:p}=n,h=jo(o),b=(0,d.useRef)(!1),{i18n:y}=(0,d.useContext)(qr),m=(0,d.useCallback)((async()=>{if("walletConnect"!==s&&(async()=>{const e=await(null===c||void 0===c?void 0:c());if(e)if(e&&function(e){let{mobileUri:t,name:n}=e;localStorage.setItem(ji,JSON.stringify({href:t.split("?")[0],name:n}))}({mobileUri:e,name:f}),e.startsWith("http")){const t=document.createElement("a");t.href=e,t.target="_blank",t.rel="noreferrer noopener",t.click()}else window.location.href=e})(),p)return p(),void(null===t||void 0===t||t());null===a||void 0===a||a()}),[a,c,p,t,f,s]);return(0,d.useEffect)((()=>{r&&!b.current&&(m(),b.current=!0)}),[r,m]),d.createElement(Or,{as:"button",color:l?"modalText":"modalTextSecondary",disabled:!l,fontFamily:"body",key:s,onClick:m,ref:h,style:{overflow:"visible",textAlign:"center"},testId:`wallet-option-${s}`,type:"button",width:"full"},d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",justifyContent:"center"},d.createElement(Or,{display:"flex",alignItems:"center",justifyContent:"center",paddingBottom:"8",paddingTop:"10",position:"relative"},r?d.createElement(As,{wallet:n}):null,d.createElement(jr,{background:i,borderRadius:"13",boxShadow:"walletLogo",height:"60",src:o,width:"60"})),r?null:d.createElement(Or,{display:"flex",flexDirection:"column",textAlign:"center"},d.createElement(xi,{as:"h2",color:n.ready?"modalText":"modalTextSecondary",size:"13",weight:"medium"},d.createElement(Or,{as:"span",position:"relative"},u??f,!n.ready&&" (unsupported)")),n.recent&&d.createElement(xi,{color:"accentColor",size:"12",weight:"medium"},y.t("connect.recent")))))}function _s(e){let{onClose:t}=e;const n=Ei().filter((e=>e.isRainbowKitConnector)),{disclaimer:r,learnMoreUrl:a}=(0,d.useContext)(Ka);let i=null,o=null,s=!1,f=null;const[c,l]=(0,d.useState)("CONNECT"),{i18n:u}=(0,d.useContext)(qr),p=kr();switch(c){case"CONNECT":i=u.t("connect.title"),s=!0,o=d.createElement(Or,null,d.createElement(Or,{background:"profileForeground",className:Es,display:"flex",paddingBottom:"20",paddingTop:"6"},d.createElement(Or,{display:"flex",style:{margin:"0 auto"}},n.filter((e=>e.ready)).map((e=>d.createElement(Or,{key:e.id,paddingX:"20"},d.createElement(Or,{width:"60"},d.createElement(Ps,{onClose:t,wallet:e}))))))),d.createElement(Or,{background:"generalBorder",height:"1",marginBottom:"32",marginTop:"-1"}),d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:"32",paddingX:"32",style:{textAlign:"center"}},d.createElement(Or,{display:"flex",flexDirection:"column",gap:"8",textAlign:"center"},d.createElement(xi,{color:"modalText",size:"16",weight:"bold"},u.t("intro.title")),d.createElement(xi,{color:"modalTextSecondary",size:"16"},u.t("intro.description")))),d.createElement(Or,{paddingTop:"32",paddingX:"20"},d.createElement(Or,{display:"flex",gap:"14",justifyContent:"center"},d.createElement(Si,{label:u.t("intro.get.label"),onClick:()=>l("GET"),size:"large",type:"secondary"}),d.createElement(Si,{href:a,label:u.t("intro.learn_more.label"),size:"large",type:"secondary"}))),r&&d.createElement(Or,{marginTop:"28",marginX:"32",textAlign:"center"},d.createElement(r,{Link:Oo,Text:So})));break;case"GET":{var h;i=u.t("get.title"),f="CONNECT";const e=null===n||void 0===n||null===(h=n.filter((e=>{var t,n,r;return(null===(t=e.downloadUrls)||void 0===t?void 0:t.ios)||(null===(n=e.downloadUrls)||void 0===n?void 0:n.android)||(null===(r=e.downloadUrls)||void 0===r?void 0:r.mobile)})))||void 0===h?void 0:h.splice(0,3);o=d.createElement(Or,null,d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",height:"full",marginBottom:"36",marginTop:"5",paddingTop:"12",width:"full"},e.map(((t,n)=>{const{downloadUrls:r,iconBackground:a,iconUrl:i,name:o}=t;return null!==r&&void 0!==r&&r.ios||null!==r&&void 0!==r&&r.android||null!==r&&void 0!==r&&r.mobile?d.createElement(Or,{display:"flex",gap:"16",key:t.id,paddingX:"20",width:"full"},d.createElement(Or,{style:{minHeight:48,minWidth:48}},d.createElement(jr,{background:a,borderColor:"generalBorder",borderRadius:"10",height:"48",src:i,width:"48"})),d.createElement(Or,{display:"flex",flexDirection:"column",width:"full"},d.createElement(Or,{alignItems:"center",display:"flex",height:"48"},d.createElement(Or,{width:"full"},d.createElement(xi,{color:"modalText",size:"18",weight:"bold"},o)),d.createElement(Si,{href:(p?null===r||void 0===r?void 0:r.ios:null===r||void 0===r?void 0:r.android)||(null===r||void 0===r?void 0:r.mobile),label:u.t("get.action.label"),size:"small",type:"secondary"})),n<e.length-1&&d.createElement(Or,{background:"generalBorderDim",height:"1",marginY:"10",width:"full"}))):null}))),d.createElement(Or,{style:{marginBottom:"42px"}}),d.createElement(Or,{alignItems:"center",display:"flex",flexDirection:"column",gap:"36",paddingX:"36",style:{textAlign:"center"}},d.createElement(Or,{display:"flex",flexDirection:"column",gap:"12",textAlign:"center"},d.createElement(xi,{color:"modalText",size:"16",weight:"bold"},u.t("get.looking_for.title")),d.createElement(xi,{color:"modalTextSecondary",size:"16"},u.t("get.looking_for.mobile.description")))));break}}return d.createElement(Or,{display:"flex",flexDirection:"column",paddingBottom:"36"},d.createElement(Or,{background:s?"profileForeground":"modalBackground",display:"flex",flexDirection:"column",paddingBottom:"4",paddingTop:"14"},d.createElement(Or,{display:"flex",justifyContent:"center",paddingBottom:"6",paddingX:"20",position:"relative"},f&&d.createElement(Or,{display:"flex",position:"absolute",style:{left:0,marginBottom:-20,marginTop:-20}},d.createElement(Or,{alignItems:"center",as:"button",className:Er({active:"shrinkSm",hover:"growLg"}),color:"accentColor",display:"flex",marginLeft:"4",marginTop:"20",onClick:()=>l(f),padding:"16",style:{height:17,willChange:"transform"},transition:"default",type:"button"},d.createElement(Io,null))),d.createElement(Or,{marginTop:"4",textAlign:"center",width:"full"},d.createElement(xi,{as:"h1",color:"modalText",id:"rk_connect_title",size:"20",weight:"bold"},i)),d.createElement(Or,{alignItems:"center",display:"flex",height:"32",paddingRight:"14",position:"absolute",right:"0"},d.createElement(Or,{style:{marginBottom:-20,marginTop:-20}},d.createElement(Ii,{onClose:t}))))),d.createElement(Or,{display:"flex",flexDirection:"column"},o))}var Ts=e=>{let{onClose:t}=e;const{connector:n}=(0,d.useContext)(Ya),{i18n:r}=(0,d.useContext)(qr),a=(null===n||void 0===n?void 0:n.name)||"";return d.createElement(Or,null,d.createElement(Or,{display:"flex",paddingBottom:"32",justifyContent:"center",alignItems:"center",background:"profileForeground",flexDirection:"column"},d.createElement(Or,{width:"full",display:"flex",justifyContent:"flex-end",marginTop:"18",marginRight:"24"},d.createElement(Ii,{onClose:t})),d.createElement(Or,{width:"60"},d.createElement(Ps,{onClose:t,wallet:n,connecting:!0})),d.createElement(Or,{marginTop:"20"},d.createElement(xi,{textAlign:"center",color:"modalText",size:"18",weight:"semibold"},r.t("connect.status.connect_mobile",{wallet:a}))),d.createElement(Or,{maxWidth:"full",marginTop:"8"},d.createElement(xi,{textAlign:"center",color:"modalText",size:"16",weight:"medium"},r.t("connect.status.confirm_mobile",{wallet:a})))))};function ks(e){let{onClose:t}=e;const{connector:n}=(0,d.useContext)(Ya);return Cr()?n?d.createElement(Ts,{onClose:t}):d.createElement(_s,{onClose:t}):d.createElement(ws,{onClose:t})}function Cs(e){let{onClose:t,open:n}=e;const r="rk_connect_title",a=_r(),{disconnect:i}=(0,Et.q)(),{isConnecting:o}=(0,E.m)(),s=d.useCallback((()=>{t(),i()}),[t,i]),f=d.useCallback((()=>{o&&i(),t()}),[t,i,o]);return"disconnected"===a?d.createElement(Zi,{onClose:f,open:n,titleId:r},d.createElement(no,{bottomSheetOnMobile:!0,padding:"0",wide:!0},d.createElement(ks,{onClose:f}))):"unauthenticated"===a?d.createElement(Zi,{onClose:s,open:n,titleId:r},d.createElement(no,{bottomSheetOnMobile:!0,padding:"0"},d.createElement(Bi,{onClose:s,onCloseModal:t}))):null}function xs(){const[e,t]=(0,d.useState)(!1);return{closeModal:(0,d.useCallback)((()=>t(!1)),[]),isModalOpen:e,openModal:(0,d.useCallback)((()=>t(!0)),[])}}var Os=(0,d.createContext)({accountModalOpen:!1,chainModalOpen:!1,connectModalOpen:!1,isWalletConnectModalOpen:!1,setIsWalletConnectModalOpen:()=>{}});function Ss(e){let{children:t}=e;const{closeModal:n,isModalOpen:r,openModal:a}=xs(),{closeModal:i,isModalOpen:o,openModal:s}=xs(),{closeModal:f,isModalOpen:c,openModal:l}=xs(),[u,p]=(0,d.useState)(!1),h=_r(),{chainId:b}=(0,E.m)(),{chains:y}=(0,_.Z)(),m=y.some((e=>e.id===b));function g(){let{keepConnectModalOpen:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e||n(),i(),f()}const v="unauthenticated"===Pr();return wt({onConnect:()=>g({keepConnectModalOpen:v}),onDisconnect:()=>g()}),(0,d.useEffect)((()=>{v&&g()}),[v]),d.createElement(Os.Provider,{value:(0,d.useMemo)((()=>({accountModalOpen:o,chainModalOpen:c,connectModalOpen:r,isWalletConnectModalOpen:u,openAccountModal:m&&"connected"===h?s:void 0,openChainModal:"connected"===h?l:void 0,openConnectModal:"disconnected"===h||"unauthenticated"===h?a:void 0,setIsWalletConnectModalOpen:p})),[h,o,c,r,s,l,a,m,u])},t,d.createElement(Cs,{onClose:n,open:r}),d.createElement(Ao,{onClose:i,open:o}),d.createElement(xo,{onClose:f,open:c}))}function Rs(){const{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}=(0,d.useContext)(Os);return{accountModalOpen:e,chainModalOpen:t,connectModalOpen:n}}function Is(){const{isWalletConnectModalOpen:e,setIsWalletConnectModalOpen:t}=(0,d.useContext)(Os);return{isWalletConnectModalOpen:e,setIsWalletConnectModalOpen:t}}function Ns(){const{connectModalOpen:e,openConnectModal:t}=(0,d.useContext)(Os),{isWalletConnectModalOpen:n}=Is();return{connectModalOpen:e||n,openConnectModal:t}}var Bs=()=>{};function js(e){let{children:t}=e;const n=_a(),{address:r}=(0,E.m)(),{chainId:a}=(0,E.m)(),{chains:i}=(0,_.Z)(),o=i.some((e=>e.id===a)),s=wa(),f=Pr()??void 0,c=a?s[a]:void 0,l=(null===c||void 0===c?void 0:c.name)??void 0,u=(null===c||void 0===c?void 0:c.iconUrl)??void 0,p=(null===c||void 0===c?void 0:c.iconBackground)??void 0,h=Br(u),b=(0,d.useContext)(ni),y=Ha().some((e=>{let{status:t}=e;return"pending"===t}))&&b,{showBalance:m}=Pa(),g="boolean"===typeof m?m:!m||br(m)[Cr()?"smallScreen":"largeScreen"],{balance:v,ensAvatar:w,ensName:A}=Ba({address:r,includeBalance:g}),P=v?`${io(parseFloat(v.formatted))} ${v.symbol}`:void 0,{openConnectModal:T}=Ns(),{openChainModal:k}=function(){const{chainModalOpen:e,openChainModal:t}=(0,d.useContext)(Os);return{chainModalOpen:e,openChainModal:t}}(),{openAccountModal:C}=function(){const{accountModalOpen:e,openAccountModal:t}=(0,d.useContext)(Os);return{accountModalOpen:e,openAccountModal:t}}(),{accountModalOpen:x,chainModalOpen:O,connectModalOpen:S}=Rs();return d.createElement(d.Fragment,null,t({account:r?{address:r,balanceDecimals:null===v||void 0===v?void 0:v.decimals,balanceFormatted:null===v||void 0===v?void 0:v.formatted,balanceSymbol:null===v||void 0===v?void 0:v.symbol,displayBalance:P,displayName:A?so(A):oo(r),ensAvatar:w??void 0,ensName:A??void 0,hasPendingTransactions:y}:void 0,accountModalOpen:x,authenticationStatus:f,chain:a?{hasIcon:Boolean(u),iconBackground:p,iconUrl:h,id:a,name:l,unsupported:!o}:void 0,chainModalOpen:O,connectModalOpen:S,mounted:n(),openAccountModal:C??Bs,openChainModal:k??Bs,openConnectModal:T??Bs}))}js.displayName="ConnectButton.Custom";var Ds={accountStatus:"full",chainStatus:{largeScreen:"full",smallScreen:"icon"},label:"Connect Wallet",showBalance:{largeScreen:!0,smallScreen:!1}};function Ls(e){let{accountStatus:t=Ds.accountStatus,chainStatus:n=Ds.chainStatus,label:r=Ds.label,showBalance:a=Ds.showBalance}=e;const i=ga(),o=_r(),{setShowBalance:s}=Pa(),[f,c]=(0,d.useState)(!1),{i18n:l}=(0,d.useContext)(qr);return(0,d.useEffect)((()=>{s(a),f||c(!0)}),[a,s]),f?d.createElement(js,null,(e=>{let{account:s,chain:f,mounted:c,openAccountModal:u,openChainModal:p,openConnectModal:h}=e;const b=c&&"loading"!==o,y=(null===f||void 0===f?void 0:f.unsupported)??!1;return d.createElement(Or,{display:"flex",gap:"12",...!b&&{"aria-hidden":!0,style:{opacity:0,pointerEvents:"none",userSelect:"none"}}},b&&s&&"connected"===o?d.createElement(d.Fragment,null,f&&(i.length>1||y)&&d.createElement(Or,{alignItems:"center","aria-label":"Chain Selector",as:"button",background:y?"connectButtonBackgroundError":"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:Er({active:"shrink",hover:"grow"}),color:y?"connectButtonTextError":"connectButtonText",display:hr(n,(e=>"none"===e?"none":"flex")),fontFamily:"body",fontWeight:"bold",gap:"6",key:y?"unsupported":"supported",onClick:p,paddingX:"10",paddingY:"8",testId:y?"wrong-network-button":"chain-button",transition:"default",type:"button"},y?d.createElement(Or,{alignItems:"center",display:"flex",height:"24",paddingX:"4"},l.t("connect_wallet.wrong_network.label")):d.createElement(Or,{alignItems:"center",display:"flex",gap:"6"},f.hasIcon?d.createElement(Or,{display:hr(n,(e=>"full"===e||"icon"===e?"block":"none")),height:"24",width:"24"},d.createElement(jr,{alt:f.name??"Chain icon",background:f.iconBackground,borderRadius:"full",height:"24",src:f.iconUrl,width:"24"})):null,d.createElement(Or,{display:hr(n,(e=>"icon"!==e||f.iconUrl?"full"===e||"name"===e?"block":"none":"block"))},f.name??f.id)),d.createElement($r,null)),!y&&d.createElement(Or,{alignItems:"center",as:"button",background:"connectButtonBackground",borderRadius:"connectButton",boxShadow:"connectButton",className:Er({active:"shrink",hover:"grow"}),color:"connectButtonText",display:"flex",fontFamily:"body",fontWeight:"bold",onClick:u,testId:"account-button",transition:"default",type:"button"},s.displayBalance&&d.createElement(Or,{display:hr(a,(e=>e?"block":"none")),padding:"8",paddingLeft:"12"},s.displayBalance),d.createElement(Or,{background:br(a)[Cr()?"smallScreen":"largeScreen"]?"connectButtonInnerBackground":"connectButtonBackground",borderColor:"connectButtonBackground",borderRadius:"connectButton",borderStyle:"solid",borderWidth:"2",color:"connectButtonText",fontFamily:"body",fontWeight:"bold",paddingX:"8",paddingY:"6",transition:"default"},d.createElement(Or,{alignItems:"center",display:"flex",gap:"6",height:"24"},d.createElement(Or,{display:hr(t,(e=>"full"===e||"avatar"===e?"block":"none"))},d.createElement(zr,{address:s.address,imageUrl:s.ensAvatar,loading:s.hasPendingTransactions,size:24})),d.createElement(Or,{alignItems:"center",display:"flex",gap:"6"},d.createElement(Or,{display:hr(t,(e=>"full"===e||"address"===e?"block":"none"))},s.displayName),d.createElement($r,null)))))):d.createElement(Or,{as:"button",background:"accentColor",borderRadius:"connectButton",boxShadow:"connectButton",className:Er({active:"shrink",hover:"grow"}),color:"accentColorForeground",fontFamily:"body",fontWeight:"bold",height:"40",key:"connect",onClick:h,paddingX:"14",testId:"connect-button",transition:"default",type:"button"},c&&"Connect Wallet"===r?l.t("connect_wallet.label"):r))})):d.createElement(d.Fragment,null)}Ls.__defaultProps=Ds,Ls.Custom=js;var Ms=e=>{let{appName:t,appDescription:n,appUrl:r,appIcon:a}=e;return{name:t,description:n??t,url:r??("undefined"!==typeof window?window.location.href:""),icons:[...a?[a]:[]]}};var Us=(e,t)=>{let{projectId:n,walletConnectParameters:r,appName:a,appDescription:i,appUrl:o,appIcon:s}=t;if(!e.length)throw new Error("No wallet list was provided");for(const{wallets:h,groupName:b}of e)if(!h.length)throw new Error(`No wallets provided for group: ${b}`);let f=-1;const c=[],l=[],u=[],d=Ms({appName:a,appDescription:i,appUrl:o,appIcon:s});e.forEach(((e,t)=>{let{groupName:i,wallets:o}=e;o.forEach((e=>{f++;const o=e({projectId:n,appName:a,appIcon:s,options:{metadata:d,...r},walletConnectParameters:{metadata:d,...r}});if(null!==o&&void 0!==o&&o.iconAccent&&(c=null===o||void 0===o?void 0:o.iconAccent,!/^#([0-9a-f]{3}){1,2}$/i.test(c)))throw new Error(`Property \`iconAccent\` is not a hex value for wallet: ${o.name}`);var c;const p={...o,groupIndex:t+1,groupName:i,index:f};"function"===typeof o.hidden?u.push(p):l.push(p)}))}));const p=function(e,t){const n=[];for(const r of e)n.some((e=>e[t]===r[t]))||n.push(r);return n}([...l,...u],"id");for(const{createConnector:h,groupIndex:b,groupName:y,hidden:m,...g}of p){if("function"===typeof m){if(m())continue}const e=e=>{return{rkDetails:(t={...g,groupIndex:b,groupName:y,isRainbowKitConnector:!0,...e||{}},Object.fromEntries(Object.entries(t).filter((e=>{let[t,n]=e;return void 0!==n}))))};var t};"walletConnect"===g.id&&c.push(h(e({isWalletConnectModalConnector:!0,showQrModal:!0})));const t=h(e());c.push(t)}return c},Fs=new Map,zs=e=>{let{projectId:t,walletConnectParameters:n,rkDetailsShowQrModal:r}=e,a={...n||{},projectId:t,showQrModal:!1};r&&(a={...a,showQrModal:!0});const i=JSON.stringify(a),o=Fs.get(i);if(o)return o;const s=(0,lr.a)(a);return Fs.set(i,s),s};function $s(e){let{projectId:t,walletConnectParameters:n}=e;if(!t||""===t)throw new Error("No projectId found. Every dApp must now provide a WalletConnect Cloud projectId to enable WalletConnect v2 https://www.rainbowkit.com/docs/installation#configure");return"YOUR_PROJECT_ID"===t&&(t="21fef48091f12692cad574a6f7753643"),e=>function(e){let{projectId:t,walletDetails:n,walletConnectParameters:r}=e;return(0,cr.K)((e=>({...zs({projectId:t,walletConnectParameters:r,rkDetailsShowQrModal:n.rkDetails.showQrModal})(e),...n})))}({projectId:t,walletDetails:e,walletConnectParameters:n})}function Gs(e){const t="undefined"!==typeof window?window:void 0;if("undefined"===typeof t||"undefined"===typeof t.ethereum)return;const n=t.ethereum.providers;return n?n.find((t=>t[e])):t.ethereum[e]?t.ethereum:void 0}function Hs(e){const t=(e,n)=>{const[r,...a]=n.split("."),i=e[r];if(i)return 0===a.length?i:t(i,a.join("."))};if("undefined"!==typeof window)return t(window,e)}function Ws(e){let{flag:t,namespace:n}=e;return!(!n||"undefined"===typeof Hs(n))||!(!t||"undefined"===typeof Gs(t))}function Vs(e){let{flag:t,namespace:n,target:r}=e;const a=r||function(e){var t;let{flag:n,namespace:r}=e;const a="undefined"!==typeof window?window:void 0;if("undefined"===typeof a)return;if(r){const e=Hs(r);if(e)return e}const i=null===(t=a.ethereum)||void 0===t?void 0:t.providers;if(n){const e=Gs(n);if(e)return e}return"undefined"!==typeof i&&i.length>0?i[0]:a.ethereum}({flag:t,namespace:n});return function(e){return t=>{const n=e?{target:()=>({id:t.rkDetails.id,name:t.rkDetails.name,provider:e})}:{};return(0,cr.K)((e=>({...(0,Kn.L)(n)(e),...t})))}}(a)}var qs=e=>{let{appName:t,appIcon:r}=e;return{id:"coinbase",name:"Coinbase Wallet",shortName:"Coinbase",rdns:"com.coinbase.wallet",iconUrl:async()=>(await n.e(663).then(n.bind(n,40663))).default,iconAccent:"#2c5ff6",iconBackground:"#2c5ff6",installed:!0,downloadUrls:{android:"https://play.google.com/store/apps/details?id=org.toshi",ios:"https://apps.apple.com/us/app/coinbase-wallet-store-crypto/id1278383455",mobile:"https://coinbase.com/wallet/downloads",qrCode:"https://coinbase-wallet.onelink.me/q5Sx/fdb9b250",chrome:"https://chrome.google.com/webstore/detail/coinbase-wallet-extension/hnfanknocfeofbddgcijnmhnfnkdnaad",browserExtension:"https://coinbase.com/wallet"},...kr()?{}:{qrCode:{getUri:e=>e,instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-mobile",steps:[{description:"wallet_connectors.coinbase.qr_code.step1.description",step:"install",title:"wallet_connectors.coinbase.qr_code.step1.title"},{description:"wallet_connectors.coinbase.qr_code.step2.description",step:"create",title:"wallet_connectors.coinbase.qr_code.step2.title"},{description:"wallet_connectors.coinbase.qr_code.step3.description",step:"scan",title:"wallet_connectors.coinbase.qr_code.step3.title"}]}},extension:{instructions:{learnMoreUrl:"https://coinbase.com/wallet/articles/getting-started-extension",steps:[{description:"wallet_connectors.coinbase.extension.step1.description",step:"install",title:"wallet_connectors.coinbase.extension.step1.title"},{description:"wallet_connectors.coinbase.extension.step2.description",step:"create",title:"wallet_connectors.coinbase.extension.step2.title"},{description:"wallet_connectors.coinbase.extension.step3.description",step:"refresh",title:"wallet_connectors.coinbase.extension.step3.title"}]}}},createConnector:e=>{const n=(0,ur.D)({appName:t,appLogoUrl:r,preference:qs.preference});return(0,cr.K)((t=>({...n(t),...e})))}}};function Ks(e){return!(null===e||void 0===e||!e.isMetaMask)&&(!(e.isBraveWallet&&!e._events&&!e._state)&&(!e.isApexWallet&&(!e.isAvalanche&&(!e.isBackpack&&(!e.isBifrost&&(!e.isBitKeep&&(!e.isBitski&&(!e.isBlockWallet&&(!e.isCoinbaseWallet&&(!e.isDawn&&(!e.isEnkrypt&&(!e.isExodus&&(!e.isFrame&&(!e.isFrontier&&(!e.isGamestop&&(!e.isHyperPay&&(!e.isImToken&&(!e.isKuCoinWallet&&(!e.isMathWallet&&(!e.isNestWallet&&(!e.isOkxWallet&&!e.isOKExWallet&&(!e.isOneInchIOSWallet&&!e.isOneInchAndroidWallet&&(!e.isOpera&&(!e.isPhantom&&(!e.isPortal&&(!e.isRabby&&(!e.isRainbow&&(!e.isStatus&&(!e.isTalisman&&(!e.isTally&&(!e.isTokenPocket&&(!e.isTokenary&&(!e.isTrust&&!e.isTrustWallet&&(!e.isXDEFI&&(!e.isZeal&&!e.isZerion)))))))))))))))))))))))))))))))))))}var Zs=e=>{var t,r;let{projectId:a,walletConnectParameters:i}=e;const o=Ws({flag:"isMetaMask"}),s=!o,f=e=>Tr()?e:kr()?`metamask://wc?uri=${encodeURIComponent(e)}`:`https://metamask.app.link/wc?uri=${encodeURIComponent(e)}`;return{id:"metaMask",name:"MetaMask",rdns:"io.metamask",iconUrl:async()=>(await n.e(2455).then(n.bind(n,2455))).default,iconAccent:"#f6851a",iconBackground:"#fff",installed:s?void 0:o,downloadUrls:{android:"https://play.google.com/store/apps/details?id=io.metamask",ios:"https://apps.apple.com/us/app/metamask/id1438144202",mobile:"https://metamask.io/download",qrCode:"https://metamask.io/download",chrome:"https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn",edge:"https://microsoftedge.microsoft.com/addons/detail/metamask/ejbalbakoplchlghecdalmeeeajnimhm",firefox:"https://addons.mozilla.org/firefox/addon/ether-metamask",opera:"https://addons.opera.com/extensions/details/metamask-10",browserExtension:"https://metamask.io/download"},mobile:{getUri:s?f:void 0},qrCode:s?{getUri:f,instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.qr_code.step1.description",step:"install",title:"wallet_connectors.metamask.qr_code.step1.title"},{description:"wallet_connectors.metamask.qr_code.step2.description",step:"create",title:"wallet_connectors.metamask.qr_code.step2.title"},{description:"wallet_connectors.metamask.qr_code.step3.description",step:"refresh",title:"wallet_connectors.metamask.qr_code.step3.title"}]}}:void 0,extension:{instructions:{learnMoreUrl:"https://metamask.io/faqs/",steps:[{description:"wallet_connectors.metamask.extension.step1.description",step:"install",title:"wallet_connectors.metamask.extension.step1.title"},{description:"wallet_connectors.metamask.extension.step2.description",step:"create",title:"wallet_connectors.metamask.extension.step2.title"},{description:"wallet_connectors.metamask.extension.step3.description",step:"refresh",title:"wallet_connectors.metamask.extension.step3.title"}]}},createConnector:s?$s({projectId:a,walletConnectParameters:i}):Vs({target:"undefined"!==typeof window?(null===(t=window.ethereum)||void 0===t||null===(r=t.providers)||void 0===r?void 0:r.find(Ks))??window.ethereum:void 0})}},Js=e=>{let{projectId:t,walletConnectParameters:r}=e;const a=Ws({flag:"isRainbow"}),i=!a,o=e=>Tr()?e:kr()?`rainbow://wc?uri=${encodeURIComponent(e)}&connector=rainbowkit`:`https://rnbwapp.com/wc?uri=${encodeURIComponent(e)}&connector=rainbowkit`;return{id:"rainbow",name:"Rainbow",rdns:"me.rainbow",iconUrl:async()=>(await n.e(9788).then(n.bind(n,99788))).default,iconBackground:"#0c2f78",installed:i?void 0:a,downloadUrls:{android:"https://play.google.com/store/apps/details?id=me.rainbow&referrer=utm_source%3Drainbowkit&utm_source=rainbowkit",ios:"https://apps.apple.com/app/apple-store/id1457119021?pt=119997837&ct=rainbowkit&mt=8",mobile:"https://rainbow.download?utm_source=rainbowkit",qrCode:"https://rainbow.download?utm_source=rainbowkit&utm_medium=qrcode",browserExtension:"https://rainbow.me/extension?utm_source=rainbowkit"},mobile:{getUri:i?o:void 0},qrCode:i?{getUri:o,instructions:{learnMoreUrl:"https://learn.rainbow.me/connect-to-a-website-or-app?utm_source=rainbowkit&utm_medium=connector&utm_campaign=learnmore",steps:[{description:"wallet_connectors.rainbow.qr_code.step1.description",step:"install",title:"wallet_connectors.rainbow.qr_code.step1.title"},{description:"wallet_connectors.rainbow.qr_code.step2.description",step:"create",title:"wallet_connectors.rainbow.qr_code.step2.title"},{description:"wallet_connectors.rainbow.qr_code.step3.description",step:"scan",title:"wallet_connectors.rainbow.qr_code.step3.title"}]}}:void 0,createConnector:i?$s({projectId:t,walletConnectParameters:r}):Vs({flag:"isRainbow"})}},Ys=e=>{let{projectId:t,options:r}=e;return{id:"walletConnect",name:"WalletConnect",installed:void 0,iconUrl:async()=>(await n.e(3954).then(n.bind(n,3954))).default,iconBackground:"#3b99fc",qrCode:{getUri:e=>e},createConnector:$s({projectId:t,walletConnectParameters:r})}},Qs=e=>e.reduce(((e,t)=>(e[t.id]=Un(),e)),{}),Xs=e=>{let{appName:t,appDescription:n,appUrl:r,appIcon:a,wallets:i,projectId:o,...s}=e;const{transports:f,chains:c,...l}=s,u=Ms({appName:t,appDescription:n,appUrl:r,appIcon:a});return fr({connectors:Us(i||[{groupName:"Popular",wallets:[Js,qs,Zs,Ys]}],{projectId:o,appName:t,appDescription:n,appUrl:r,appIcon:a,walletConnectParameters:{metadata:u}}),chains:c,transports:f||Qs(c),...l})}},58278:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}var a;n.d(t,{Ep:()=>u,J0:()=>s,LX:()=>C,RQ:()=>N,WK:()=>M,Zn:()=>O,Zq:()=>R,aU:()=>a,cP:()=>d,fp:()=>b,lX:()=>o,pC:()=>I}),function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(a||(a={}));const i="popstate";function o(e){return void 0===e&&(e={}),p((function(e,t){let{pathname:n,search:r,hash:a}=e.location;return l("",{pathname:n,search:r,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:u(t)}),null,e)}function s(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function f(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function c(e,t){return{usr:e.state,key:e.key,idx:t}}function l(e,t,n,a){return void 0===n&&(n=null),r({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?d(t):t,{state:n,key:t&&t.key||a||Math.random().toString(36).substr(2,8)})}function u(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r),t}function d(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function p(e,t,n,o){void 0===o&&(o={});let{window:f=document.defaultView,v5Compat:d=!1}=o,p=f.history,h=a.Pop,b=null,y=m();function m(){return(p.state||{idx:null}).idx}function g(){h=a.Pop;let e=m(),t=null==e?null:e-y;y=e,b&&b({action:h,location:w.location,delta:t})}function v(e){let t="null"!==f.location.origin?f.location.origin:f.location.href,n="string"===typeof e?e:u(e);return s(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==y&&(y=0,p.replaceState(r({},p.state,{idx:y}),""));let w={get action(){return h},get location(){return e(f,p)},listen(e){if(b)throw new Error("A history only accepts one active listener");return f.addEventListener(i,g),b=e,()=>{f.removeEventListener(i,g),b=null}},createHref:e=>t(f,e),createURL:v,encodeLocation(e){let t=v(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){h=a.Push;let r=l(w.location,e,t);n&&n(r,e),y=m()+1;let i=c(r,y),o=w.createHref(r);try{p.pushState(i,"",o)}catch(s){f.location.assign(o)}d&&b&&b({action:h,location:w.location,delta:1})},replace:function(e,t){h=a.Replace;let r=l(w.location,e,t);n&&n(r,e),y=m();let i=c(r,y),o=w.createHref(r);p.replaceState(i,"",o),d&&b&&b({action:h,location:w.location,delta:0})},go:e=>p.go(e)};return w}var h;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(h||(h={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function b(e,t,n){void 0===n&&(n="/");let r=O(("string"===typeof t?d(t):t).pathname||"/",n);if(null==r)return null;let a=y(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let i=null;for(let o=0;null==i&&o<a.length;++o)i=k(a[o],x(r));return i}function y(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let a=(e,a,i)=>{let o={relativePath:void 0===i?e.path||"":i,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};o.relativePath.startsWith("/")&&(s(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));let f=N([r,o.relativePath]),c=n.concat(o);e.children&&e.children.length>0&&(s(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+f+'".'),y(e.children,t,c,f)),(null!=e.path||e.index)&&t.push({path:f,score:T(f,e.index),routesMeta:c})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of m(e.path))a(e,t,r);else a(e,t)})),t}function m(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===r.length)return a?[i,""]:[i];let o=m(r.join("/")),s=[];return s.push(...o.map((e=>""===e?i:[i,e].join("/")))),a&&s.push(...o),s.map((t=>e.startsWith("/")&&""===t?"/":t))}const g=/^:\w+$/,v=3,w=2,E=1,A=10,P=-2,_=e=>"*"===e;function T(e,t){let n=e.split("/"),r=n.length;return n.some(_)&&(r+=P),t&&(r+=w),n.filter((e=>!_(e))).reduce(((e,t)=>e+(g.test(t)?v:""===t?E:A)),r)}function k(e,t){let{routesMeta:n}=e,r={},a="/",i=[];for(let o=0;o<n.length;++o){let e=n[o],s=o===n.length-1,f="/"===a?t:t.slice(a.length)||"/",c=C({path:e.relativePath,caseSensitive:e.caseSensitive,end:s},f);if(!c)return null;Object.assign(r,c.params);let l=e.route;i.push({params:r,pathname:N([a,c.pathname]),pathnameBase:B(N([a,c.pathnameBase])),route:l}),"/"!==c.pathnameBase&&(a=N([a,c.pathnameBase]))}return i}function C(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);f("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,((e,t)=>(r.push(t),"/([^\\/]+)")));e.endsWith("*")?(r.push("*"),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");let i=new RegExp(a,t?void 0:"i");return[i,r]}(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),s=a.slice(1);return{params:r.reduce(((e,t,n)=>{if("*"===t){let e=s[n]||"";o=i.slice(0,i.length-e.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return f(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(s[n]||"",t),e}),{}),pathname:i,pathnameBase:o,pattern:e}}function x(e){try{return decodeURI(e)}catch(t){return f(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function O(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function S(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function R(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function I(e,t,n,a){let i;void 0===a&&(a=!1),"string"===typeof e?i=d(e):(i=r({},e),s(!i.pathname||!i.pathname.includes("?"),S("?","pathname","search",i)),s(!i.pathname||!i.pathname.includes("#"),S("#","pathname","hash",i)),s(!i.search||!i.search.includes("#"),S("#","search","hash",i)));let o,f=""===e||""===i.pathname,c=f?"/":i.pathname;if(a||null==c)o=n;else{let e=t.length-1;if(c.startsWith("..")){let t=c.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:a=""}="string"===typeof e?d(e):e,i=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:i,search:j(r),hash:D(a)}}(i,o),u=c&&"/"!==c&&c.endsWith("/"),p=(f||"."===c)&&n.endsWith("/");return l.pathname.endsWith("/")||!u&&!p||(l.pathname+="/"),l}const N=e=>e.join("/").replace(/\/\/+/g,"/"),B=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),j=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",D=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";class L extends Error{}function M(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const U=["post","put","patch","delete"],F=(new Set(U),["get",...U]);new Set(F),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement;Symbol("deferred")},881:(e,t,n)=>{"use strict";n.d(t,{Tb:()=>N,e:()=>B,$e:()=>j});var r=n(16748);function a(){const e=r.n2,t=e.crypto||e.msCrypto;if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");const n=t&&t.getRandomValues?()=>t.getRandomValues(new Uint8Array(1))[0]:()=>16*Math.random();return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(e=>(e^(15&n())>>e/4).toString(16)))}var i=n(39846);const o=["debug","info","warn","error","log","assert","trace"];function s(e){if(!("console"in r.n2))return e();const t=r.n2.console,n={};o.forEach((e=>{const r=t[e]&&t[e].__sentry_original__;e in t&&r&&(n[e]=t[e],t[e]=r)}));try{return e()}finally{Object.keys(n).forEach((e=>{t[e]=n[e]}))}}function f(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1}};return"undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?o.forEach((n=>{t[n]=function(){for(var t=arguments.length,a=new Array(t),i=0;i<t;i++)a[i]=arguments[i];e&&s((()=>{r.n2.console[n](`Sentry Logger [${n}]:`,...a)}))}})):o.forEach((e=>{t[e]=()=>{}})),t}let c;c="undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?(0,r.YO)("logger",f):f();const l="production",u=Object.prototype.toString;function d(e,t){return u.call(e)===`[object ${t}]`}function p(e){return d(e,"Object")}function h(e){return Boolean(e&&e.then&&"function"===typeof e.then)}var b;!function(e){e[e.PENDING=0]="PENDING";e[e.RESOLVED=1]="RESOLVED";e[e.REJECTED=2]="REJECTED"}(b||(b={}));class y{__init(){this._state=b.PENDING}__init2(){this._handlers=[]}constructor(e){y.prototype.__init.call(this),y.prototype.__init2.call(this),y.prototype.__init3.call(this),y.prototype.__init4.call(this),y.prototype.__init5.call(this),y.prototype.__init6.call(this);try{e(this._resolve,this._reject)}catch(t){this._reject(t)}}then(e,t){return new y(((n,r)=>{this._handlers.push([!1,t=>{if(e)try{n(e(t))}catch(a){r(a)}else n(t)},e=>{if(t)try{n(t(e))}catch(a){r(a)}else r(e)}]),this._executeHandlers()}))}catch(e){return this.then((e=>e),e)}finally(e){return new y(((t,n)=>{let r,a;return this.then((t=>{a=!1,r=t,e&&e()}),(t=>{a=!0,r=t,e&&e()})).then((()=>{a?n(r):t(r)}))}))}__init3(){this._resolve=e=>{this._setResult(b.RESOLVED,e)}}__init4(){this._reject=e=>{this._setResult(b.REJECTED,e)}}__init5(){this._setResult=(e,t)=>{this._state===b.PENDING&&(h(t)?t.then(this._resolve,this._reject):(this._state=e,this._value=t,this._executeHandlers()))}}__init6(){this._executeHandlers=()=>{if(this._state===b.PENDING)return;const e=this._handlers.slice();this._handlers=[],e.forEach((e=>{e[0]||(this._state===b.RESOLVED&&e[1](this._value),this._state===b.REJECTED&&e[2](this._value),e[0]=!0)}))}}}function m(e){return g(e,new Map)}function g(e,t){if(p(e)){const n=t.get(e);if(void 0!==n)return n;const r={};t.set(e,r);for(const a of Object.keys(e))"undefined"!==typeof e[a]&&(r[a]=g(e[a],t));return r}if(Array.isArray(e)){const n=t.get(e);if(void 0!==n)return n;const r=[];return t.set(e,r),e.forEach((e=>{r.push(g(e,t))})),r}return e}function v(e){const t=(0,i.ph)(),n={sid:a(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>function(e){return m({sid:`${e.sid}`,init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"===typeof e.did||"string"===typeof e.did?`${e.did}`:void 0,duration:e.duration,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)};return e&&w(n,e),n}function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||(0,i.ph)(),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:a()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),"number"===typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"===typeof t.duration)e.duration=t.duration;else{const t=e.timestamp-e.started;e.duration=t>=0?t:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"===typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}class E{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={}}static clone(e){const t=new E;return e&&(t._breadcrumbs=[...e._breadcrumbs],t._tags={...e._tags},t._extra={...e._extra},t._contexts={...e._contexts},t._user=e._user,t._level=e._level,t._span=e._span,t._session=e._session,t._transactionName=e._transactionName,t._fingerprint=e._fingerprint,t._eventProcessors=[...e._eventProcessors],t._requestSession=e._requestSession,t._attachments=[...e._attachments],t._sdkProcessingMetadata={...e._sdkProcessingMetadata}),t}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{},this._session&&w(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(e){return this._requestSession=e,this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,t){return this._tags={...this._tags,[e]:t},this._notifyScopeListeners(),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,t){return this._extra={...this._extra,[e]:t},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}setSpan(e){return this._span=e,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const e=this.getSpan();return e&&e.transaction}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;if("function"===typeof e){const t=e(this);return t instanceof E?t:this}return e instanceof E?(this._tags={...this._tags,...e._tags},this._extra={...this._extra,...e._extra},this._contexts={...this._contexts,...e._contexts},e._user&&Object.keys(e._user).length&&(this._user=e._user),e._level&&(this._level=e._level),e._fingerprint&&(this._fingerprint=e._fingerprint),e._requestSession&&(this._requestSession=e._requestSession)):p(e)&&(this._tags={...this._tags,...e.tags},this._extra={...this._extra,...e.extra},this._contexts={...this._contexts,...e.contexts},e.user&&(this._user=e.user),e.level&&(this._level=e.level),e.fingerprint&&(this._fingerprint=e.fingerprint),e.requestSession&&(this._requestSession=e.requestSession)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this}addBreadcrumb(e,t){const n="number"===typeof t?t:100;if(n<=0)return this;const r={timestamp:(0,i.yW)(),...e};return this._breadcrumbs=[...this._breadcrumbs,r].slice(-n),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this._extra&&Object.keys(this._extra).length&&(e.extra={...this._extra,...e.extra}),this._tags&&Object.keys(this._tags).length&&(e.tags={...this._tags,...e.tags}),this._user&&Object.keys(this._user).length&&(e.user={...this._user,...e.user}),this._contexts&&Object.keys(this._contexts).length&&(e.contexts={...this._contexts,...e.contexts}),this._level&&(e.level=this._level),this._transactionName&&(e.transaction=this._transactionName),this._span){e.contexts={trace:this._span.getTraceContext(),...e.contexts};const t=this._span.transaction;if(t){e.sdkProcessingMetadata={dynamicSamplingContext:t.getDynamicSamplingContext(),...e.sdkProcessingMetadata};const n=t.name;n&&(e.tags={transaction:n,...e.tags})}}return this._applyFingerprint(e),e.breadcrumbs=[...e.breadcrumbs||[],...this._breadcrumbs],e.breadcrumbs=e.breadcrumbs.length>0?e.breadcrumbs:void 0,e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...this._sdkProcessingMetadata},this._notifyEventProcessors([...A(),...this._eventProcessors],e,t)}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...e},this}_notifyEventProcessors(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new y(((a,i)=>{const o=e[r];if(null===t||"function"!==typeof o)a(t);else{const s=o({...t},n);("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&o.id&&null===s&&c.log(`Event processor "${o.id}" dropped event`),h(s)?s.then((t=>this._notifyEventProcessors(e,t,n,r+1).then(a))).then(null,i):this._notifyEventProcessors(e,s,n,r+1).then(a).then(null,i)}}))}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((e=>{e(this)})),this._notifyingListeners=!1)}_applyFingerprint(e){var t;e.fingerprint=e.fingerprint?(t=e.fingerprint,Array.isArray(t)?t:[t]):[],this._fingerprint&&(e.fingerprint=e.fingerprint.concat(this._fingerprint)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}}function A(){return(0,r.YO)("globalEventProcessors",(()=>[]))}const P=4,_=100;class T{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new E,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:P;this._version=n,this._stack=[{scope:t}],e&&this.bindClient(e)}isOlderThan(e){return this._version<e}bindClient(e){this.getStackTop().client=e,e&&e.setupIntegrations&&e.setupIntegrations()}pushScope(){const e=E.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:e}),e}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(e){const t=this.pushScope();try{e(t)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(e,t){const n=this._lastEventId=t&&t.event_id?t.event_id:a(),r=new Error("Sentry syntheticException");return this._withClient(((a,i)=>{a.captureException(e,{originalException:e,syntheticException:r,...t,event_id:n},i)})),n}captureMessage(e,t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:a(),i=new Error(e);return this._withClient(((a,o)=>{a.captureMessage(e,t,{originalException:e,syntheticException:i,...n,event_id:r},o)})),r}captureEvent(e,t){const n=t&&t.event_id?t.event_id:a();return e.type||(this._lastEventId=n),this._withClient(((r,a)=>{r.captureEvent(e,{...t,event_id:n},a)})),n}lastEventId(){return this._lastEventId}addBreadcrumb(e,t){const{scope:n,client:r}=this.getStackTop();if(!r)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:o=_}=r.getOptions&&r.getOptions()||{};if(o<=0)return;const f={timestamp:(0,i.yW)(),...e},c=a?s((()=>a(f,t))):f;null!==c&&(r.emit&&r.emit("beforeAddBreadcrumb",c,t),n.addBreadcrumb(c,o))}setUser(e){this.getScope().setUser(e)}setTags(e){this.getScope().setTags(e)}setExtras(e){this.getScope().setExtras(e)}setTag(e,t){this.getScope().setTag(e,t)}setExtra(e,t){this.getScope().setExtra(e,t)}setContext(e,t){this.getScope().setContext(e,t)}configureScope(e){const{scope:t,client:n}=this.getStackTop();n&&e(t)}run(e){const t=C(this);try{e(this)}finally{C(t)}}getIntegration(e){const t=this.getClient();if(!t)return null;try{return t.getIntegration(e)}catch(n){return("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.warn(`Cannot retrieve integration ${e.id} from the current Hub`),null}}startTransaction(e,t){const n=this._callExtensionMethod("startTransaction",e,t);return"undefined"!==typeof __SENTRY_DEBUG__&&!__SENTRY_DEBUG__||n||console.warn("Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n"),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return this.endSession();this._sendSessionUpdate()}endSession(){const e=this.getStackTop().scope,t=e.getSession();t&&function(e,t){let n={};t?n={status:t}:"ok"===e.status&&(n={status:"exited"}),w(e,n)}(t),this._sendSessionUpdate(),e.setSession()}startSession(e){const{scope:t,client:n}=this.getStackTop(),{release:a,environment:i=l}=n&&n.getOptions()||{},{userAgent:o}=r.n2.navigator||{},s=v({release:a,environment:i,user:t.getUser(),...o&&{userAgent:o},...e}),f=t.getSession&&t.getSession();return f&&"ok"===f.status&&w(f,{status:"exited"}),this.endSession(),t.setSession(s),s}shouldSendDefaultPii(){const e=this.getClient(),t=e&&e.getOptions();return Boolean(t&&t.sendDefaultPii)}_sendSessionUpdate(){const{scope:e,client:t}=this.getStackTop(),n=e.getSession();n&&t&&t.captureSession&&t.captureSession(n)}_withClient(e){const{scope:t,client:n}=this.getStackTop();n&&e(n,t)}_callExtensionMethod(e){const t=k().__SENTRY__;if(t&&t.extensions&&"function"===typeof t.extensions[e]){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return t.extensions[e].apply(this,r)}("undefined"===typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&c.warn(`Extension method ${e} couldn't be found, doing nothing.`)}}function k(){return r.n2.__SENTRY__=r.n2.__SENTRY__||{extensions:{},hub:void 0},r.n2}function C(e){const t=k(),n=R(t);return I(t,e),n}function x(){const e=k();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return O(e)}function O(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:k();return S(e)&&!R(e).isOlderThan(P)||I(e,new T),R(e)}function S(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function R(e){return(0,r.YO)("hub",(()=>new T),e)}function I(e,t){if(!e)return!1;return(e.__SENTRY__=e.__SENTRY__||{}).hub=t,!0}function N(e,t){return x().captureException(e,{captureContext:t})}function B(e){x().configureScope(e)}function j(e){x().withScope(e)}},39509:(e,t,n)=>{"use strict";n.d(t,{l$:()=>i,KV:()=>a}),e=n.hmd(e);var r=n(1426);function a(){return!("undefined"!==typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call("undefined"!==typeof r?r:0)}function i(e,t){return e.require(t)}},39846:(e,t,n)=>{"use strict";n.d(t,{ph:()=>l,yW:()=>c});var r=n(39509),a=n(16748);e=n.hmd(e);const i=(0,a.Rf)(),o={nowSeconds:()=>Date.now()/1e3};const s=(0,r.KV)()?function(){try{return(0,r.l$)(e,"perf_hooks").performance}catch(t){return}}():function(){const{performance:e}=i;if(!e||!e.now)return;return{now:()=>e.now(),timeOrigin:Date.now()-e.now()}}(),f=void 0===s?o:{nowSeconds:()=>(s.timeOrigin+s.now())/1e3},c=o.nowSeconds.bind(o),l=f.nowSeconds.bind(f);let u;(()=>{const{performance:e}=i;if(!e||!e.now)return void(u="none");const t=36e5,n=e.now(),r=Date.now(),a=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,o=a<t,s=e.timing&&e.timing.navigationStart,f="number"===typeof s?Math.abs(s+n-r):t;o||f<t?a<=f?(u="timeOrigin",e.timeOrigin):u="navigationStart":u="dateNow"})()},16748:(e,t,n)=>{"use strict";function r(e){return e&&e.Math==Math?e:void 0}n.d(t,{Rf:()=>i,YO:()=>o,n2:()=>a});const a="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function i(){return a}function o(e,t,n){const r=n||a,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}},65118:(e,t,n)=>{"use strict";n.d(t,{j:()=>i});var r=n(64792),a=n(31904),i=new class extends r.l{#Zt;#Jt;#Yt;constructor(){super(),this.#Yt=e=>{if(!a.sk&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#Jt||this.setEventListener(this.#Yt)}onUnsubscribe(){var e;this.hasListeners()||(null===(e=this.#Jt)||void 0===e||e.call(this),this.#Jt=void 0)}setEventListener(e){var t;this.#Yt=e,null===(t=this.#Jt)||void 0===t||t.call(this),this.#Jt=e((e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.#Zt!==e&&(this.#Zt=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var e;return"boolean"===typeof this.#Zt?this.#Zt:"hidden"!==(null===(e=globalThis.document)||void 0===e?void 0:e.visibilityState)}}},60473:(e,t,n)=>{"use strict";n.d(t,{R:()=>s,m:()=>o});var r=n(8910),a=n(8410),i=n(96692),o=class extends a.F{#Qt;#Xt;#en;#tn;constructor(e){super(),this.mutationId=e.mutationId,this.#Xt=e.defaultOptions,this.#en=e.mutationCache,this.#Qt=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.#Xt,...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#Qt.includes(e)||(this.#Qt.push(e),this.clearGcTimeout(),this.#en.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#Qt=this.#Qt.filter((t=>t!==e)),this.scheduleGc(),this.#en.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#Qt.length||("pending"===this.state.status?this.scheduleGc():this.#en.remove(this))}continue(){var e;return(null===(e=this.#tn)||void 0===e?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){const t=()=>(this.#tn=(0,i.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#nn({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#nn({type:"pause"})},onContinue:()=>{this.#nn({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.#tn.promise),n="pending"===this.state.status;try{var r,a,o,s,f,c,l,u;if(!n){var d,p,h,b;this.#nn({type:"pending",variables:e}),await(null===(d=(p=this.#en.config).onMutate)||void 0===d?void 0:d.call(p,e,this));const t=await(null===(h=(b=this.options).onMutate)||void 0===h?void 0:h.call(b,e));t!==this.state.context&&this.#nn({type:"pending",context:t,variables:e})}const i=await t();return await(null===(r=(a=this.#en.config).onSuccess)||void 0===r?void 0:r.call(a,i,e,this.state.context,this)),await(null===(o=(s=this.options).onSuccess)||void 0===o?void 0:o.call(s,i,e,this.state.context)),await(null===(f=(c=this.#en.config).onSettled)||void 0===f?void 0:f.call(c,i,null,this.state.variables,this.state.context,this)),await(null===(l=(u=this.options).onSettled)||void 0===l?void 0:l.call(u,i,null,e,this.state.context)),this.#nn({type:"success",data:i}),i}catch(_){try{var y,m,g,v,w,E,A,P;throw await(null===(y=(m=this.#en.config).onError)||void 0===y?void 0:y.call(m,_,e,this.state.context,this)),await(null===(g=(v=this.options).onError)||void 0===g?void 0:g.call(v,_,e,this.state.context)),await(null===(w=(E=this.#en.config).onSettled)||void 0===w?void 0:w.call(E,void 0,_,this.state.variables,this.state.context,this)),await(null===(A=(P=this.options).onSettled)||void 0===A?void 0:A.call(P,void 0,_,e,this.state.context)),_}finally{this.#nn({type:"error",error:_})}}}#nn(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!(0,i.Kw)(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),r.V.batch((()=>{this.#Qt.forEach((t=>{t.onMutationUpdate(e)})),this.#en.notify({mutation:this,type:"updated",action:e})}))}};function s(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},8910:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var r=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},a=e=>setTimeout(e,0);const i=r=>{t?e.push(r):a((()=>{n(r)}))},o=()=>{const t=e;e=[],t.length&&a((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];i((()=>{e(...n)}))},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{a=e}}}()},93473:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(64792),a=n(31904),i=new class extends r.l{#rn=!0;#Jt;#Yt;constructor(){super(),this.#Yt=e=>{if(!a.sk&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#Jt||this.setEventListener(this.#Yt)}onUnsubscribe(){var e;this.hasListeners()||(null===(e=this.#Jt)||void 0===e||e.call(this),this.#Jt=void 0)}setEventListener(e){var t;this.#Yt=e,null===(t=this.#Jt)||void 0===t||t.call(this),this.#Jt=e(this.setOnline.bind(this))}setOnline(e){this.#rn!==e&&(this.#rn=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return this.#rn}}},80937:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,z:()=>f});var r=n(31904),a=n(8910),i=n(96692),o=n(8410),s=class extends o.F{#an;#in;#on;#tn;#Qt;#Xt;#sn;constructor(e){super(),this.#sn=!1,this.#Xt=e.defaultOptions,this.setOptions(e.options),this.#Qt=[],this.#on=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#an=e.state||function(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=this.#an,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.#Xt,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.#Qt.length||"idle"!==this.state.fetchStatus||this.#on.remove(this)}setData(e,t){const n=(0,r.oE)(this.state.data,e,this.options);return this.#nn({data:n,type:"success",dataUpdatedAt:null===t||void 0===t?void 0:t.updatedAt,manual:null===t||void 0===t?void 0:t.manual}),n}setState(e,t){this.#nn({type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const a=null===(t=this.#tn)||void 0===t?void 0:t.promise;return null===(n=this.#tn)||void 0===n||n.cancel(e),a?a.then(r.ZT).catch(r.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#an)}isActive(){return this.#Qt.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.#Qt.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||void 0===this.state.data||!(0,r.Kp)(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.#Qt.find((e=>e.shouldFetchOnWindowFocus()));null===t||void 0===t||t.refetch({cancelRefetch:!1}),null===(e=this.#tn)||void 0===e||e.continue()}onOnline(){var e;const t=this.#Qt.find((e=>e.shouldFetchOnReconnect()));null===t||void 0===t||t.refetch({cancelRefetch:!1}),null===(e=this.#tn)||void 0===e||e.continue()}addObserver(e){this.#Qt.includes(e)||(this.#Qt.push(e),this.clearGcTimeout(),this.#on.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.#Qt.includes(e)&&(this.#Qt=this.#Qt.filter((t=>t!==e)),this.#Qt.length||(this.#tn&&(this.#sn?this.#tn.cancel({revert:!0}):this.#tn.cancelRetry()),this.scheduleGc()),this.#on.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.#Qt.length}invalidate(){this.state.isInvalidated||this.#nn({type:"invalidate"})}fetch(e,t){var n,a;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&null!==t&&void 0!==t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.#tn)return this.#tn.continueRetry(),this.#tn.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.#Qt.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const o=new AbortController,s={queryKey:this.queryKey,meta:this.meta},f=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#sn=!0,o.signal)})};f(s);const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn&&this.options.queryFn!==r.CN?(this.#sn=!1,this.options.persister?this.options.persister(this.options.queryFn,s,this):this.options.queryFn(s)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`))};var l;(f(c),null===(n=this.options.behavior)||void 0===n||n.onFetch(c,this),this.#in=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null===(a=c.fetchOptions)||void 0===a?void 0:a.meta))&&this.#nn({type:"fetch",meta:null===(l=c.fetchOptions)||void 0===l?void 0:l.meta});const u=e=>{var t,n,r,a;((0,i.DV)(e)&&e.silent||this.#nn({type:"error",error:e}),(0,i.DV)(e))||(null===(t=(n=this.#on.config).onError)||void 0===t||t.call(n,e,this),null===(r=(a=this.#on.config).onSettled)||void 0===r||r.call(a,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#tn=(0,i.Mz)({fn:c.fetchFn,abort:o.abort.bind(o),onSuccess:e=>{var t,n,r,a;void 0!==e?(this.setData(e),null===(t=(n=this.#on.config).onSuccess)||void 0===t||t.call(n,e,this),null===(r=(a=this.#on.config).onSettled)||void 0===r||r.call(a,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):u(new Error(`${this.queryHash} data is undefined`))},onError:u,onFail:(e,t)=>{this.#nn({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#nn({type:"pause"})},onContinue:()=>{this.#nn({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.options.networkMode}),this.#tn.promise}#nn(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...f(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return(0,i.DV)(n)&&n.revert&&this.#in?{...this.#in,fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),a.V.batch((()=>{this.#Qt.forEach((e=>{e.onQueryUpdate()})),this.#on.notify({query:this,type:"updated",action:e})}))}};function f(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,i.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},8410:(e,t,n)=>{"use strict";n.d(t,{F:()=>a});var r=n(31904),a=class{#fn;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,r.PN)(this.gcTime)&&(this.#fn=setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(r.sk?1/0:3e5))}clearGcTimeout(){this.#fn&&(clearTimeout(this.#fn),this.#fn=void 0)}}},96692:(e,t,n)=>{"use strict";n.d(t,{DV:()=>c,Kw:()=>s,Mz:()=>l});var r=n(65118),a=n(93473),i=n(31904);function o(e){return Math.min(1e3*2**e,3e4)}function s(e){return"online"!==(e??"online")||a.N.isOnline()}var f=class{constructor(e){this.revert=null===e||void 0===e?void 0:e.revert,this.silent=null===e||void 0===e?void 0:e.silent}};function c(e){return e instanceof f}function l(e){let t,n,c,l=!1,u=0,d=!1;const p=new Promise(((e,t)=>{n=e,c=t})),h=()=>!r.j.isFocused()||"always"!==e.networkMode&&!a.N.isOnline(),b=r=>{var a,i;d||(d=!0,null===(a=e.onSuccess)||void 0===a||a.call(e,r),null===(i=t)||void 0===i||i(),n(r))},y=n=>{var r,a;d||(d=!0,null===(r=e.onError)||void 0===r||r.call(e,n),null===(a=t)||void 0===a||a(),c(n))},m=()=>new Promise((n=>{var r;t=e=>{const t=d||!h();return t&&n(e),t},null===(r=e.onPause)||void 0===r||r.call(e)})).then((()=>{var n;(t=void 0,d)||(null===(n=e.onContinue)||void 0===n||n.call(e))})),g=()=>{if(d)return;let t;try{t=e.fn()}catch(n){t=Promise.reject(n)}Promise.resolve(t).then(b).catch((t=>{var n;if(d)return;const r=e.retry??(i.sk?0:3),a=e.retryDelay??o,s="function"===typeof a?a(u,t):a,f=!0===r||"number"===typeof r&&u<r||"function"===typeof r&&r(u,t);!l&&f?(u++,null===(n=e.onFail)||void 0===n||n.call(e,u,t),(0,i._v)(s).then((()=>{if(h())return m()})).then((()=>{l?y(t):g()}))):y(t)}))};return s(e.networkMode)?g():m().then(g),{promise:p,cancel:t=>{var n;d||(y(new f(t)),null===(n=e.abort)||void 0===n||n.call(e))},continue:()=>{var e;return(null===(e=t)||void 0===e?void 0:e())?p:Promise.resolve()},cancelRetry:()=>{l=!0},continueRetry:()=>{l=!1}}}},64792:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var r=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},31904:(e,t,n)=>{"use strict";n.d(t,{CN:()=>A,Ht:()=>E,Kp:()=>s,PN:()=>o,Rm:()=>l,SE:()=>i,VS:()=>h,VX:()=>w,X7:()=>c,Ym:()=>u,ZT:()=>a,_v:()=>g,_x:()=>f,oE:()=>v,sk:()=>r,to:()=>d});var r="undefined"===typeof window||"Deno"in globalThis;function a(){}function i(e,t){return"function"===typeof e?e(t):e}function o(e){return"number"===typeof e&&e>=0&&e!==1/0}function s(e,t){return Math.max(e+(t||0)-Date.now(),0)}function f(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:o,stale:s}=e;if(o)if(r){if(t.queryHash!==l(o,t.options))return!1}else if(!d(t.queryKey,o))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!==typeof s||t.isStale()===s)&&((!a||a===t.state.fetchStatus)&&!(i&&!i(t)))}function c(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(u(t.options.mutationKey)!==u(i))return!1}else if(!d(t.options.mutationKey,i))return!1}return(!r||t.state.status===r)&&!(a&&!a(t))}function l(e,t){return((null===t||void 0===t?void 0:t.queryKeyHashFn)||u)(e)}function u(e){return JSON.stringify(e,((e,t)=>y(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function d(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((n=>!d(e[n],t[n]))))}function p(e,t){if(e===t)return e;const n=b(e)&&b(t);if(n||y(e)&&y(t)){const r=n?e:Object.keys(e),a=r.length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{};let f=0;for(let c=0;c<o;c++){const a=n?c:i[c];!n&&void 0===e[a]&&void 0===t[a]&&r.includes(a)?(s[a]=void 0,f++):(s[a]=p(e[a],t[a]),s[a]===e[a]&&void 0!==e[a]&&f++)}return a===o&&f===a?e:s}return t}function h(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function b(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function y(e){if(!m(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!m(n)&&!!n.hasOwnProperty("isPrototypeOf")}function m(e){return"[object Object]"===Object.prototype.toString.call(e)}function g(e){return new Promise((t=>{setTimeout(t,e)}))}function v(e,t,n){return"function"===typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?p(e,t):t}function w(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=[...e,t];return n&&r.length>n?r.slice(1):r}function E(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var A=Symbol()},5010:(e,t,n)=>{"use strict";n.d(t,{NL:()=>o,aH:()=>s});var r=n(72791),a=n(80184),i=r.createContext(void 0),o=e=>{const t=r.useContext(i);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},s=e=>{let{client:t,children:n}=e;return r.useEffect((()=>(t.mount(),()=>{t.unmount()})),[t]),(0,a.jsx)(i.Provider,{value:t,children:n})}},33874:(e,t,n)=>{"use strict";n.d(t,{D:()=>u});var r=n(72791),a=n(60473),i=n(8910),o=n(64792),s=n(31904),f=class extends o.l{#cn;#ln=void 0;#un;#dn;constructor(e,t){super(),this.#cn=e,this.setOptions(t),this.bindMethods(),this.#pn()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=this.#cn.defaultMutationOptions(e),(0,s.VS)(this.options,n)||this.#cn.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#un,observer:this}),null!==n&&void 0!==n&&n.mutationKey&&this.options.mutationKey&&(0,s.Ym)(n.mutationKey)!==(0,s.Ym)(this.options.mutationKey)?this.reset():"pending"===(null===(t=this.#un)||void 0===t?void 0:t.state.status)&&this.#un.setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||(null===(e=this.#un)||void 0===e||e.removeObserver(this))}onMutationUpdate(e){this.#pn(),this.#hn(e)}getCurrentResult(){return this.#ln}reset(){var e;null===(e=this.#un)||void 0===e||e.removeObserver(this),this.#un=void 0,this.#pn(),this.#hn()}mutate(e,t){var n;return this.#dn=t,null===(n=this.#un)||void 0===n||n.removeObserver(this),this.#un=this.#cn.getMutationCache().build(this.#cn,this.options),this.#un.addObserver(this),this.#un.execute(e)}#pn(){var e;const t=(null===(e=this.#un)||void 0===e?void 0:e.state)??(0,a.R)();this.#ln={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#hn(e){i.V.batch((()=>{if(this.#dn&&this.hasListeners()){const c=this.#ln.variables,l=this.#ln.context;var t,n,r,a;if("success"===(null===e||void 0===e?void 0:e.type))null===(t=(n=this.#dn).onSuccess)||void 0===t||t.call(n,e.data,c,l),null===(r=(a=this.#dn).onSettled)||void 0===r||r.call(a,e.data,null,c,l);else if("error"===(null===e||void 0===e?void 0:e.type)){var i,o,s,f;null===(i=(o=this.#dn).onError)||void 0===i||i.call(o,e.error,c,l),null===(s=(f=this.#dn).onSettled)||void 0===s||s.call(f,void 0,e.error,c,l)}}this.listeners.forEach((e=>{e(this.#ln)}))}))}},c=n(5010),l=n(31311);function u(e,t){const n=(0,c.NL)(t),[a]=r.useState((()=>new f(n,e)));r.useEffect((()=>{a.setOptions(e)}),[a,e]);const o=r.useSyncExternalStore(r.useCallback((e=>a.subscribe(i.V.batchCalls(e))),[a]),(()=>a.getCurrentResult()),(()=>a.getCurrentResult())),s=r.useCallback(((e,t)=>{a.mutate(e,t).catch(l.Z)}),[a]);if(o.error&&(0,l.L)(a.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}},84765:(e,t,n)=>{"use strict";n.d(t,{a:()=>C});var r=n(31904),a=n(8910),i=n(65118),o=n(64792),s=n(80937),f=class extends o.l{constructor(e,t){super(),this.options=t,this.#cn=e,this.#bn=null,this.bindMethods(),this.setOptions(t)}#cn;#yn=void 0;#mn=void 0;#ln=void 0;#gn;#vn;#bn;#wn;#En;#An;#Pn;#_n;#Tn;#kn=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#yn.addObserver(this),c(this.#yn,this.options)?this.#Cn():this.updateResult(),this.#xn())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return l(this.#yn,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return l(this.#yn,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#On(),this.#Sn(),this.#yn.removeObserver(this)}setOptions(e,t){const n=this.options,a=this.#yn;if(this.options=this.#cn.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!==typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.#Rn(),this.#yn.setOptions(this.options),n._defaulted&&!(0,r.VS)(this.options,n)&&this.#cn.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#yn,observer:this});const i=this.hasListeners();i&&u(this.#yn,a,this.options,n)&&this.#Cn(),this.updateResult(t),!i||this.#yn===a&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.#In();const o=this.#Nn();!i||this.#yn===a&&this.options.enabled===n.enabled&&o===this.#Tn||this.#Bn(o)}getOptimisticResult(e){const t=this.#cn.getQueryCache().build(this.#cn,e),n=this.createResult(t,e);return function(e,t){if(!(0,r.VS)(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(this.#ln=n,this.#vn=this.options,this.#gn=this.#yn.state),n}getCurrentResult(){return this.#ln}trackResult(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),null===t||void 0===t||t(r),e[r])})})),n}trackProp(e){this.#kn.add(e)}getCurrentQuery(){return this.#yn}refetch(){let{...e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.fetch({...e})}fetchOptimistic(e){const t=this.#cn.defaultQueryOptions(e),n=this.#cn.getQueryCache().build(this.#cn,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return this.#Cn({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#ln)))}#Cn(e){this.#Rn();let t=this.#yn.fetch(this.options,e);return null!==e&&void 0!==e&&e.throwOnError||(t=t.catch(r.ZT)),t}#In(){if(this.#On(),r.sk||this.#ln.isStale||!(0,r.PN)(this.options.staleTime))return;const e=(0,r.Kp)(this.#ln.dataUpdatedAt,this.options.staleTime)+1;this.#Pn=setTimeout((()=>{this.#ln.isStale||this.updateResult()}),e)}#Nn(){return("function"===typeof this.options.refetchInterval?this.options.refetchInterval(this.#yn):this.options.refetchInterval)??!1}#Bn(e){this.#Sn(),this.#Tn=e,!r.sk&&!1!==this.options.enabled&&(0,r.PN)(this.#Tn)&&0!==this.#Tn&&(this.#_n=setInterval((()=>{(this.options.refetchIntervalInBackground||i.j.isFocused())&&this.#Cn()}),this.#Tn))}#xn(){this.#In(),this.#Bn(this.#Nn())}#On(){this.#Pn&&(clearTimeout(this.#Pn),this.#Pn=void 0)}#Sn(){this.#_n&&(clearInterval(this.#_n),this.#_n=void 0)}createResult(e,t){const n=this.#yn,a=this.options,i=this.#ln,o=this.#gn,f=this.#vn,l=e!==n?e.state:this.#mn,{state:p}=e;let h,b={...p},y=!1;if(t._optimisticResults){const r=this.hasListeners(),i=!r&&c(e,t),o=r&&u(e,n,t,a);(i||o)&&(b={...b,...(0,s.z)(p.data,e.options)}),"isRestoring"===t._optimisticResults&&(b.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:v}=b;if(t.select&&void 0!==b.data)if(i&&b.data===(null===o||void 0===o?void 0:o.data)&&t.select===this.#wn)h=this.#En;else try{this.#wn=t.select,h=t.select(b.data),h=(0,r.oE)(null===i||void 0===i?void 0:i.data,h,t),this.#En=h,this.#bn=null}catch(k){this.#bn=k}else h=b.data;if(void 0!==t.placeholderData&&void 0===h&&"pending"===v){let e;var w;if(null!==i&&void 0!==i&&i.isPlaceholderData&&t.placeholderData===(null===f||void 0===f?void 0:f.placeholderData))e=i.data;else if(e="function"===typeof t.placeholderData?t.placeholderData(null===(w=this.#An)||void 0===w?void 0:w.state.data,this.#An):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#bn=null}catch(k){this.#bn=k}void 0!==e&&(v="success",h=(0,r.oE)(null===i||void 0===i?void 0:i.data,e,t),y=!0)}this.#bn&&(m=this.#bn,h=this.#En,g=Date.now(),v="error");const E="fetching"===b.fetchStatus,A="pending"===v,P="error"===v,_=A&&E,T=void 0!==h;return{status:v,fetchStatus:b.fetchStatus,isPending:A,isSuccess:"success"===v,isError:P,isInitialLoading:_,isLoading:_,data:h,dataUpdatedAt:b.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>l.dataUpdateCount||b.errorUpdateCount>l.errorUpdateCount,isFetching:E,isRefetching:E&&!A,isLoadingError:P&&!T,isPaused:"paused"===b.fetchStatus,isPlaceholderData:y,isRefetchError:P&&T,isStale:d(e,t),refetch:this.refetch}}updateResult(e){const t=this.#ln,n=this.createResult(this.#yn,this.options);if(this.#gn=this.#yn.state,this.#vn=this.options,void 0!==this.#gn.data&&(this.#An=this.#yn),(0,r.VS)(n,t))return;this.#ln=n;const a={};!1!==(null===e||void 0===e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"===typeof e?e():e;if("all"===n||!n&&!this.#kn.size)return!0;const r=new Set(n??this.#kn);return this.options.throwOnError&&r.add("error"),Object.keys(this.#ln).some((e=>{const n=e;return this.#ln[n]!==t[n]&&r.has(n)}))})()&&(a.listeners=!0),this.#hn({...a,...e})}#Rn(){const e=this.#cn.getQueryCache().build(this.#cn,this.options);if(e===this.#yn)return;const t=this.#yn;this.#yn=e,this.#mn=e.state,this.hasListeners()&&(null===t||void 0===t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#xn()}#hn(e){a.V.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(this.#ln)})),this.#cn.getQueryCache().notify({query:this.#yn,type:"observerResultsUpdated"})}))}};function c(e,t){return function(e,t){return!1!==t.enabled&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&l(e,t,t.refetchOnMount)}function l(e,t,n){if(!1!==t.enabled){const r="function"===typeof n?n(e):n;return"always"===r||!1!==r&&d(e,t)}return!1}function u(e,t,n,r){return(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&d(e,n)}function d(e,t){return!1!==t.enabled&&e.isStaleByTime(t.staleTime)}var p=n(72791);n(80184);function h(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var b=p.createContext(h()),y=()=>p.useContext(b),m=n(5010),g=p.createContext(!1),v=()=>p.useContext(g),w=(g.Provider,n(31311)),E=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},A=e=>{p.useEffect((()=>{e.clearReset()}),[e])},P=e=>{let{result:t,errorResetBoundary:n,throwOnError:r,query:a}=e;return t.isError&&!n.isReset()&&!t.isFetching&&a&&(0,w.L)(r,[t.error,a])},_=e=>{e.suspense&&"number"!==typeof e.staleTime&&(e.staleTime=1e3)},T=(e,t)=>(null===e||void 0===e?void 0:e.suspense)&&t.isPending,k=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}));function C(e,t){return function(e,t,n){const r=(0,m.NL)(n),i=v(),o=y(),s=r.defaultQueryOptions(e);s._optimisticResults=i?"isRestoring":"optimistic",_(s),E(s,o),A(o);const[f]=p.useState((()=>new t(r,s))),c=f.getOptimisticResult(s);if(p.useSyncExternalStore(p.useCallback((e=>{const t=i?()=>{}:f.subscribe(a.V.batchCalls(e));return f.updateResult(),t}),[f,i]),(()=>f.getCurrentResult()),(()=>f.getCurrentResult())),p.useEffect((()=>{f.setOptions(s,{listeners:!1})}),[s,f]),T(s,c))throw k(s,f,o);if(P({result:c,errorResetBoundary:o,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw c.error;return s.notifyOnChangeProps?c:f.trackResult(c)}(e,f,t)}},31311:(e,t,n)=>{"use strict";function r(e,t){return"function"===typeof e?e(...t):!!e}function a(){}n.d(t,{L:()=>r,Z:()=>a})},18854:(e,t,n)=>{"use strict";n.d(t,{D:()=>f});var r=n(66854),a=n(22935),i=n(86694),o=n(74490),s=n(71386);function f(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"3"===e.version||e.headlessMode?function(e){const t=!1;let c,l,u,d,p;return(0,r.K)((r=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",supportsSimulation:!0,type:f.type,async connect(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const t=await this.getProvider(),n=(await t.request({method:"eth_requestAccounts"})).map((e=>(0,i.K)(e)));u||(u=this.onAccountsChanged.bind(this),t.on("accountsChanged",u)),d||(d=this.onChainChanged.bind(this),t.on("chainChanged",d)),p||(p=this.onDisconnect.bind(this),t.on("disconnect",p));let r=await this.getChainId();if(e&&r!==e){const t=await this.switchChain({chainId:e}).catch((e=>{if(e.code===o.ab.code)throw e;return{id:r}}));r=(null===t||void 0===t?void 0:t.id)??r}return{accounts:n,chainId:r}}catch(t){if(/(user closed modal|accounts received is empty|user denied account)/i.test(t.message))throw new o.ab(t);throw t}},async disconnect(){const e=await this.getProvider();u&&(e.removeListener("accountsChanged",u),u=void 0),d&&(e.removeListener("chainChanged",d),d=void 0),p&&(e.removeListener("disconnect",p),p=void 0),e.disconnect(),e.close()},async getAccounts(){const e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map((e=>(0,i.K)(e)))},async getChainId(){const e=await this.getProvider(),t=await e.request({method:"eth_chainId"});return Number(t)},async getProvider(){if(!l){var a;const{default:i}=await Promise.all([n.e(8142),n.e(3682),n.e(2895),n.e(7173)]).then(n.bind(n,62895));let o;o="function"!==typeof i&&"function"===typeof i.default?i.default:i,c=new o({reloadOnDisconnect:t,...e});const s=null===(a=c.walletExtension)||void 0===a?void 0:a.getChainId(),f=r.chains.find((t=>e.chainId?t.id===e.chainId:t.id===s))||r.chains[0],u=e.chainId||(null===f||void 0===f?void 0:f.id),d=e.jsonRpcUrl||(null===f||void 0===f?void 0:f.rpcUrls.default.http[0]);l=c.makeWeb3Provider(d,u)}return l},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain(e){let{addEthereumChainParameter:t,chainId:n}=e;const i=r.chains.find((e=>e.id===n));if(!i)throw new o.x3(new a.X4);const f=await this.getProvider();try{return await f.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,s.eC)(i.id)}]}),i}catch(p){if(4902===p.code)try{var c,l,u,d;let e,r;e=null!==t&&void 0!==t&&t.blockExplorerUrls?t.blockExplorerUrls:null!==(c=i.blockExplorers)&&void 0!==c&&c.default.url?[null===(l=i.blockExplorers)||void 0===l?void 0:l.default.url]:[],r=null!==t&&void 0!==t&&null!==(u=t.rpcUrls)&&void 0!==u&&u.length?t.rpcUrls:[(null===(d=i.rpcUrls.default)||void 0===d?void 0:d.http[0])??""];const a={blockExplorerUrls:e,chainId:(0,s.eC)(n),chainName:(null===t||void 0===t?void 0:t.chainName)??i.name,iconUrls:null===t||void 0===t?void 0:t.iconUrls,nativeCurrency:(null===t||void 0===t?void 0:t.nativeCurrency)??i.nativeCurrency,rpcUrls:r};return await f.request({method:"wallet_addEthereumChain",params:[a]}),i}catch(p){throw new o.ab(p)}throw new o.x3(p)}},onAccountsChanged(e){0===e.length?this.onDisconnect():r.emitter.emit("change",{accounts:e.map((e=>(0,i.K)(e)))})},onChainChanged(e){const t=Number(e);r.emitter.emit("change",{chainId:t})},async onDisconnect(e){r.emitter.emit("disconnect");const t=await this.getProvider();u&&(t.removeListener("accountsChanged",u),u=void 0),d&&(t.removeListener("chainChanged",d),d=void 0),p&&(t.removeListener("disconnect",p),p=void 0)}})))}(e):function(e){let t,c,l,u,d;return(0,r.K)((r=>({id:"coinbaseWalletSDK",name:"Coinbase Wallet",supportsSimulation:!0,type:f.type,async connect(){let{chainId:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const t=await this.getProvider(),n=(await t.request({method:"eth_requestAccounts"})).map((e=>(0,i.K)(e)));l||(l=this.onAccountsChanged.bind(this),t.on("accountsChanged",l)),u||(u=this.onChainChanged.bind(this),t.on("chainChanged",u)),d||(d=this.onDisconnect.bind(this),t.on("disconnect",d));let r=await this.getChainId();if(e&&r!==e){const t=await this.switchChain({chainId:e}).catch((e=>{if(e.code===o.ab.code)throw e;return{id:r}}));r=(null===t||void 0===t?void 0:t.id)??r}return{accounts:n,chainId:r}}catch(t){if(/(user closed modal|accounts received is empty|user denied account)/i.test(t.message))throw new o.ab(t);throw t}},async disconnect(){var e;const t=await this.getProvider();l&&(t.removeListener("accountsChanged",l),l=void 0),u&&(t.removeListener("chainChanged",u),u=void 0),d&&(t.removeListener("disconnect",d),d=void 0),t.disconnect(),null===(e=t.close)||void 0===e||e.call(t)},async getAccounts(){const e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map((e=>(0,i.K)(e)))},async getChainId(){const e=await this.getProvider(),t=await e.request({method:"eth_chainId"});return Number(t)},async getProvider(){if(!c){const{default:a}=await Promise.all([n.e(8142),n.e(3682),n.e(5419),n.e(4726)]).then(n.bind(n,25419)),i="function"!==typeof a&&"function"===typeof a.default?a.default:a;t=new i({...e,appChainIds:r.chains.map((e=>e.id))}),c=t.makeWeb3Provider({...e,options:e.preference??"all"})}return c},async isAuthorized(){try{return!!(await this.getAccounts()).length}catch{return!1}},async switchChain(e){let{addEthereumChainParameter:t,chainId:n}=e;const i=r.chains.find((e=>e.id===n));if(!i)throw new o.x3(new a.X4);const f=await this.getProvider();try{return await f.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,s.eC)(i.id)}]}),i}catch(p){if(4902===p.code)try{var c,l,u,d;let e,r;e=null!==t&&void 0!==t&&t.blockExplorerUrls?t.blockExplorerUrls:null!==(c=i.blockExplorers)&&void 0!==c&&c.default.url?[null===(l=i.blockExplorers)||void 0===l?void 0:l.default.url]:[],r=null!==t&&void 0!==t&&null!==(u=t.rpcUrls)&&void 0!==u&&u.length?t.rpcUrls:[(null===(d=i.rpcUrls.default)||void 0===d?void 0:d.http[0])??""];const a={blockExplorerUrls:e,chainId:(0,s.eC)(n),chainName:(null===t||void 0===t?void 0:t.chainName)??i.name,iconUrls:null===t||void 0===t?void 0:t.iconUrls,nativeCurrency:(null===t||void 0===t?void 0:t.nativeCurrency)??i.nativeCurrency,rpcUrls:r};return await f.request({method:"wallet_addEthereumChain",params:[a]}),i}catch(p){throw new o.ab(p)}throw new o.x3(p)}},onAccountsChanged(e){0===e.length?this.onDisconnect():r.emitter.emit("change",{accounts:e.map((e=>(0,i.K)(e)))})},onChainChanged(e){const t=Number(e);r.emitter.emit("change",{chainId:t})},async onDisconnect(e){r.emitter.emit("disconnect");const t=await this.getProvider();l&&(t.removeListener("accountsChanged",l),l=void 0),u&&(t.removeListener("chainChanged",u),u=void 0),d&&(t.removeListener("disconnect",d),d=void 0)}})))}(e)}f.type="coinbaseWallet"},54269:(e,t,n)=>{"use strict";n.d(t,{a:()=>c});var r=n(66854),a=n(34822),i=n(22935),o=n(86694),s=n(74490),f=n(71386);function c(e){const t=e.isNewChainsStale??!0;let l,u;let d,p,h,b,y,m;return(0,r.K)((r=>({id:"walletConnect",name:"WalletConnect",type:c.type,async setup(){const e=await this.getProvider().catch((()=>null));e&&(h||(h=this.onConnect.bind(this),e.on("connect",h)),y||(y=this.onSessionDelete.bind(this),e.on("session_delete",y)))},async connect(){let{chainId:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const s=await this.getProvider();if(!s)throw new a.M;b||(b=this.onDisplayUri,s.on("display_uri",b));let f=e;if(!f){var n,i;const e=await(null===(n=r.storage)||void 0===n?void 0:n.getItem("state"))??{},t=r.chains.some((t=>t.id===e.chainId));f=t?e.chainId:null===(i=r.chains[0])||void 0===i?void 0:i.id}if(!f)throw new Error("No chains found on connector.");const c=await this.isChainsStale();if(s.session&&c&&await s.disconnect(),!s.session||c){const e=r.chains.filter((e=>e.id!==f)).map((e=>e.id));await s.connect({optionalChains:[f,...e],..."pairingTopic"in t?{pairingTopic:t.pairingTopic}:{}}),this.setRequestedChainsIds(r.chains.map((e=>e.id)))}const l=(await s.enable()).map((e=>(0,o.K)(e))),u=await this.getChainId();return b&&(s.removeListener("display_uri",b),b=void 0),h&&(s.removeListener("connect",h),h=void 0),d||(d=this.onAccountsChanged.bind(this),s.on("accountsChanged",d)),p||(p=this.onChainChanged.bind(this),s.on("chainChanged",p)),m||(m=this.onDisconnect.bind(this),s.on("disconnect",m)),y||(y=this.onSessionDelete.bind(this),s.on("session_delete",y)),{accounts:l,chainId:u}}catch(f){if(/(user rejected|connection request reset)/i.test(null===f||void 0===f?void 0:f.message))throw new s.ab(f);throw f}},async disconnect(){const e=await this.getProvider();try{await(null===e||void 0===e?void 0:e.disconnect())}catch(t){if(!/No matching key/i.test(t.message))throw t}finally{p&&(null===e||void 0===e||e.removeListener("chainChanged",p),p=void 0),m&&(null===e||void 0===e||e.removeListener("disconnect",m),m=void 0),h||(h=this.onConnect.bind(this),null===e||void 0===e||e.on("connect",h)),d&&(null===e||void 0===e||e.removeListener("accountsChanged",d),d=void 0),y&&(null===e||void 0===e||e.removeListener("session_delete",y),y=void 0),this.setRequestedChainsIds([])}},async getAccounts(){return(await this.getProvider()).accounts.map((e=>(0,o.K)(e)))},async getProvider(){var t;let{chainId:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var i;l||(u||(u=async function(){const t=r.chains.map((e=>e.id));if(!t.length)return;const{EthereumProvider:a}=await Promise.all([n.e(8142),n.e(606),n.e(4226)]).then(n.bind(n,50606));return await a.init({...e,disableProviderPing:!0,optionalChains:t,projectId:e.projectId,rpcMap:Object.fromEntries(r.chains.map((e=>[e.id,e.rpcUrls.default.http[0]]))),showQrModal:e.showQrModal??!0})}()),l=await u,null===(i=l)||void 0===i||i.events.setMaxListeners(1/0));return a&&await(null===(t=this.switchChain)||void 0===t?void 0:t.call(this,{chainId:a})),l},async getChainId(){return(await this.getProvider()).chainId},async isAuthorized(){try{const[e,t]=await Promise.all([this.getAccounts(),this.getProvider()]);if(!e.length)return!1;return!await this.isChainsStale()||!t.session||(await t.disconnect().catch((()=>{})),!1)}catch{return!1}},async switchChain(e){let{addEthereumChainParameter:t,chainId:n}=e;const o=await this.getProvider();if(!o)throw new a.M;const c=r.chains.find((e=>e.id===n));if(!c)throw new s.x3(new i.X4);try{await Promise.all([new Promise((e=>{const t=a=>{let{chainId:i}=a;i===n&&(r.emitter.off("change",t),e())};r.emitter.on("change",t)})),o.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,f.eC)(n)}]})]);const e=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...e,n]),c}catch(p){const e=p;if(/(user rejected)/i.test(e.message))throw new s.ab(e);try{var l,u,d;let e,r;e=null!==t&&void 0!==t&&t.blockExplorerUrls?t.blockExplorerUrls:null!==(l=c.blockExplorers)&&void 0!==l&&l.default.url?[null===(u=c.blockExplorers)||void 0===u?void 0:u.default.url]:[],r=null!==t&&void 0!==t&&null!==(d=t.rpcUrls)&&void 0!==d&&d.length?t.rpcUrls:[...c.rpcUrls.default.http];const a={blockExplorerUrls:e,chainId:(0,f.eC)(n),chainName:(null===t||void 0===t?void 0:t.chainName)??c.name,iconUrls:null===t||void 0===t?void 0:t.iconUrls,nativeCurrency:(null===t||void 0===t?void 0:t.nativeCurrency)??c.nativeCurrency,rpcUrls:r};await o.request({method:"wallet_addEthereumChain",params:[a]});const i=await this.getRequestedChainsIds();return this.setRequestedChainsIds([...i,n]),c}catch(h){throw new s.ab(h)}}},onAccountsChanged(e){0===e.length?this.onDisconnect():r.emitter.emit("change",{accounts:e.map((e=>(0,o.K)(e)))})},onChainChanged(e){const t=Number(e);r.emitter.emit("change",{chainId:t})},async onConnect(e){const t=Number(e.chainId),n=await this.getAccounts();r.emitter.emit("connect",{accounts:n,chainId:t})},async onDisconnect(e){this.setRequestedChainsIds([]),r.emitter.emit("disconnect");const t=await this.getProvider();d&&(t.removeListener("accountsChanged",d),d=void 0),p&&(t.removeListener("chainChanged",p),p=void 0),m&&(t.removeListener("disconnect",m),m=void 0),y&&(t.removeListener("session_delete",y),y=void 0),h||(h=this.onConnect.bind(this),t.on("connect",h))},onDisplayUri(e){r.emitter.emit("message",{type:"display_uri",data:e})},onSessionDelete(){this.onDisconnect()},getNamespaceChainsIds(){var e,t,n;if(!l)return[];return(null===(e=l.session)||void 0===e||null===(t=e.namespaces.eip155)||void 0===t||null===(n=t.chains)||void 0===n?void 0:n.map((e=>parseInt(e.split(":")[1]||""))))??[]},async getRequestedChainsIds(){var e;return await(null===(e=r.storage)||void 0===e?void 0:e.getItem(this.requestedChainsStorageKey))??[]},async isChainsStale(){if(!t)return!1;const e=r.chains.map((e=>e.id)),n=this.getNamespaceChainsIds();if(n.length&&!n.some((t=>e.includes(t))))return!1;const a=await this.getRequestedChainsIds();return!e.every((e=>a.includes(e)))},async setRequestedChainsIds(e){var t;await(null===(t=r.storage)||void 0===t?void 0:t.setItem(this.requestedChainsStorageKey,e))},get requestedChainsStorageKey(){return`${this.id}.requestedChains`}})))}c.type="walletConnect"},32441:(e,t,n)=>{"use strict";function r(e){const t=e.state.current,n=e.state.connections.get(t),r=null===n||void 0===n?void 0:n.accounts,a=null===r||void 0===r?void 0:r[0],i=e.chains.find((e=>e.id===(null===n||void 0===n?void 0:n.chainId))),o=e.state.status;switch(o){case"connected":return{address:a,addresses:r,chain:i,chainId:null===n||void 0===n?void 0:n.chainId,connector:null===n||void 0===n?void 0:n.connector,isConnected:!0,isConnecting:!1,isDisconnected:!1,isReconnecting:!1,status:o};case"reconnecting":return{address:a,addresses:r,chain:i,chainId:null===n||void 0===n?void 0:n.chainId,connector:null===n||void 0===n?void 0:n.connector,isConnected:!!a,isConnecting:!1,isDisconnected:!1,isReconnecting:!0,status:o};case"connecting":return{address:a,addresses:r,chain:i,chainId:null===n||void 0===n?void 0:n.chainId,connector:null===n||void 0===n?void 0:n.connector,isConnected:!1,isConnecting:!0,isDisconnected:!1,isReconnecting:!1,status:o};case"disconnected":return{address:void 0,addresses:void 0,chain:void 0,chainId:void 0,connector:void 0,isConnected:!1,isConnecting:!1,isDisconnected:!0,isReconnecting:!1,status:o}}}n.d(t,{D:()=>r})},51857:(e,t,n)=>{"use strict";n.d(t,{e:()=>f});var r=n(30802),a=n(23730);var i=n(74303),o=n(86694),s=n(22935);async function f(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n.connector){const{connector:e}=n,[r,a]=await Promise.all([e.getAccounts(),e.getChainId()]);t={accounts:r,chainId:a,connector:e}}else t=e.state.connections.get(e.state.current);if(!t)throw new s.aH;const f=n.chainId??t.chainId,c=t.connector;if(c.getClient)return c.getClient({chainId:f});const l=(0,i.T)(n.account??t.accounts[0]);l.address=(0,o.K)(l.address);const u=e.chains.find((e=>e.id===f)),d=await t.connector.getProvider({chainId:f});if(n.account&&!t.accounts.some((e=>e.toLowerCase()===l.address.toLowerCase())))throw new s.JK({address:l.address,connector:c});return(0,r.e)({account:l,chain:u,name:"Connector Client",transport:e=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{key:n="custom",name:r="Custom Provider",retryDelay:i}=t;return o=>{let{retryCount:s}=o;return(0,a.q)({key:n,name:r,request:e.request.bind(e),retryCount:t.retryCount??s,retryDelay:i,type:"custom"})}}(d)({...e,retryCount:0})})}},68649:(e,t,n)=>{"use strict";n.d(t,{u:()=>ze});var r=n(43294),a=n(45604),i=n(73184),o=n(64352),s=n(37881),f=n(71386),c=n(66751),l=n(46782),u=n(67044),d=n(52838),p=n(65388);var h=n(15869),b=n(20402);var y=n(53531),m=n(96696);function g(e,t){var n,r;let{method:a}=t;const i={};return"fallback"===e.transport.type&&(null===(n=(r=e.transport).onResponse)||void 0===n||n.call(r,(e=>{let{method:t,response:n,status:r,transport:o}=e;"success"===r&&a===t&&(i[n]=o.request)}))),t=>i[t]||e.request}var v=n(38475),w=n(95397);class E extends w.G{constructor(e){super(`Filter type "${e}" is not supported.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FilterTypeNotSupportedError"})}}var A=n(14950),P=n(77941),_=n(86605),T=n(4451),k=n(62934),C=n(81345);const x="/docs/contract/encodeEventTopics";function O(e){const{abi:t,eventName:n,args:r}=e;let a=t[0];if(n){const e=(0,C.mE)({abi:t,name:n});if(!e)throw new v.mv(n,{docsPath:x});a=e}if("event"!==a.type)throw new v.mv(void 0,{docsPath:x});const i=(0,k.t)(a),o=(0,_.n)(i);let s=[];if(r&&"inputs"in a){var f;const e=null===(f=a.inputs)||void 0===f?void 0:f.filter((e=>"indexed"in e&&e.indexed)),t=Array.isArray(r)?r:Object.values(r).length>0?(null===e||void 0===e?void 0:e.map((e=>r[e.name])))??[]:[];t.length>0&&(s=(null===e||void 0===e?void 0:e.map(((e,n)=>Array.isArray(t[n])?t[n].map(((r,a)=>S({param:e,value:t[n][a]}))):t[n]?S({param:e,value:t[n]}):null)))??[])}return[o,...s]}function S(e){let{param:t,value:n}=e;if("string"===t.type||"bytes"===t.type)return(0,P.w)((0,A.O0)(n));if("tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))throw new E(t.type);return(0,T.E)([t],[n])}async function R(e,t){const{address:n,abi:r,args:a,eventName:i,fromBlock:o,strict:s,toBlock:c}=t,l=g(e,{method:"eth_newFilter"}),u=i?O({abi:r,args:a,eventName:i}):void 0,d=await e.request({method:"eth_newFilter",params:[{address:n,fromBlock:"bigint"===typeof o?(0,f.eC)(o):o,toBlock:"bigint"===typeof c?(0,f.eC)(c):c,topics:u}]});return{abi:r,args:a,eventName:i,id:d,request:l(d),strict:Boolean(s),type:"event"}}async function I(e){let{address:t,args:n,event:r,events:a,fromBlock:i,strict:o,toBlock:s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const c=a??(r?[r]:void 0),l=g(e,{method:"eth_newFilter"});let u=[];c&&(u=[c.flatMap((e=>O({abi:[e],eventName:e.name,args:n})))],r&&(u=u[0]));const d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"===typeof i?(0,f.eC)(i):i,toBlock:"bigint"===typeof s?(0,f.eC)(s):s,...u.length?{topics:u}:{}}]});return{abi:c,args:n,eventName:r?r.name:void 0,fromBlock:i,id:d,request:l(d),strict:Boolean(o),toBlock:s,type:"event"}}async function N(e){const t=g(e,{method:"eth_newPendingTransactionFilter"}),n=await e.request({method:"eth_newPendingTransactionFilter"});return{id:n,request:t(n),type:"transaction"}}var B=n(74303),j=n(60158),D=n(70173);var L=n(62501),M=n(11488),U=n(52971);var F=n(75619),z=n(4099),$=n(58657);var G=n(12950),H=n(46880),W=n(75823),V=n(15530);const q="/docs/contract/decodeEventLog";function K(e){const{abi:t,data:n,strict:r,topics:a}=e,i=r??!0,[o,...s]=a;if(!o)throw new v.FM({docsPath:q});const f=t.find((e=>"event"===e.type&&o===(0,_.n)((0,k.t)(e))));if(!f||!("name"in f)||"event"!==f.type)throw new v.lC(o,{docsPath:q});const{name:c,inputs:l}=f,u=null===l||void 0===l?void 0:l.some((e=>!("name"in e&&e.name)));let d=u?[]:{};const p=l.filter((e=>"indexed"in e&&e.indexed));for(let y=0;y<p.length;y++){const e=p[y],t=s[y];if(!t)throw new v.Gy({abiItem:f,param:e});d[u?y:e.name||y]=Z({param:e,value:t})}const h=l.filter((e=>!("indexed"in e&&e.indexed)));if(h.length>0)if(n&&"0x"!==n)try{const e=(0,V.r)(h,n);if(e)if(u)d=[...d,...e];else for(let t=0;t<h.length;t++)d[h[t].name]=e[t]}catch(b){if(i){if(b instanceof v.xB||b instanceof W.lQ)throw new v.SM({abiItem:f,data:n,params:h,size:(0,H.d)(n)});throw b}}else if(i)throw new v.SM({abiItem:f,data:"0x",params:h,size:0});return{eventName:c,args:Object.values(d).length>0?d:void 0}}function Z(e){let{param:t,value:n}=e;if("string"===t.type||"bytes"===t.type||"tuple"===t.type||t.type.match(/^(.*)\[(\d+)?\]$/))return n;return((0,V.r)([t],n)||[])[0]}function J(e){let{abi:t,eventName:n,logs:r,strict:a=!0}=e;return r.map((e=>{try{const r=K({...e,abi:t,strict:a});return n&&!n.includes(r.eventName)?null:{...r,...e}}catch(i){let t,n;if(i instanceof v.lC)return null;if(i instanceof v.SM||i instanceof v.Gy){var r;if(a)return null;t=i.abiItem.name,n=null===(r=i.abiItem.inputs)||void 0===r?void 0:r.some((e=>!("name"in e&&e.name)))}return{...e,args:n?[]:{},eventName:t}}})).filter(Boolean)}function Y(e){let{args:t,eventName:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}async function Q(e){let{address:t,blockHash:n,fromBlock:r,toBlock:a,event:i,events:o,args:s,strict:c}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const l=c??!1,u=o??(i?[i]:void 0);let d,p=[];u&&(p=[u.flatMap((e=>O({abi:[e],eventName:e.name,args:s})))],i&&(p=p[0])),d=n?await e.request({method:"eth_getLogs",params:[{address:t,topics:p,blockHash:n}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:p,fromBlock:"bigint"===typeof r?(0,f.eC)(r):r,toBlock:"bigint"===typeof a?(0,f.eC)(a):a}]});const h=d.map((e=>Y(e)));return u?J({abi:u,logs:h,strict:l}):h}async function X(e,t){const{abi:n,address:r,args:a,blockHash:i,eventName:o,fromBlock:s,toBlock:f,strict:c}=t,l=o?(0,C.mE)({abi:n,name:o}):void 0,u=l?void 0:n.filter((e=>"event"===e.type));return(0,d.s)(e,Q,"getLogs")({address:r,args:a,blockHash:i,event:l,events:u,fromBlock:s,toBlock:f,strict:c})}async function ee(e,t){let{blockCount:n,blockNumber:r,blockTag:a="latest",rewardPercentiles:i}=t;const o=r?(0,f.eC)(r):void 0;return function(e){var t;return{baseFeePerGas:e.baseFeePerGas.map((e=>BigInt(e))),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:null===(t=e.reward)||void 0===t?void 0:t.map((e=>e.map((e=>BigInt(e)))))}}(await e.request({method:"eth_feeHistory",params:[(0,f.eC)(n),o||a,i]}))}async function te(e,t){let{filter:n}=t;const r="strict"in n&&n.strict,a=await n.request({method:"eth_getFilterChanges",params:[n.id]});if("string"===typeof a[0])return a;const i=a.map((e=>Y(e)));return"abi"in n&&n.abi?J({abi:n.abi,logs:i,strict:r}):i}var ne=n(17846);async function re(e,t){let{address:n,blockNumber:r,blockTag:a,storageKeys:i}=t;const o=a??"latest",s=void 0!==r?(0,f.eC)(r):void 0;return function(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?(0,$.ly)(e.nonce):void 0,storageProof:e.storageProof?(t=e.storageProof,t.map((e=>({...e,value:BigInt(e.value)})))):void 0};var t}(await e.request({method:"eth_getProof",params:[n,i,s||o]}))}var ae=n(53917),ie=n(38667);async function oe(e,t){var n,r,a;let{blockHash:i,blockNumber:o,blockTag:s,hash:c,index:l}=t;const u=s||"latest",d=void 0!==o?(0,f.eC)(o):void 0;let p=null;if(c?p=await e.request({method:"eth_getTransactionByHash",params:[c]}):i?p=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[i,(0,f.eC)(l)]}):(d||u)&&(p=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[d||u,(0,f.eC)(l)]})),!p)throw new ae.Bh({blockHash:i,blockNumber:o,blockTag:u,hash:c,index:l});return((null===(n=e.chain)||void 0===n||null===(r=n.formatters)||void 0===r||null===(a=r.transaction)||void 0===a?void 0:a.format)||ie.Tr)(p)}var se=n(77034);const fe={"0x0":"reverted","0x1":"success"};function ce(e){const t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map((e=>Y(e))):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,$.ly)(e.transactionIndex):null,status:e.status?fe[e.status]:null,type:e.type?ie.c8[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}async function le(e,t){var n,r,a;let{hash:i}=t;const o=await e.request({method:"eth_getTransactionReceipt",params:[i]});if(!o)throw new ae.Yb({hash:i});return((null===(n=e.chain)||void 0===n||null===(r=n.formatters)||void 0===r||null===(a=r.transactionReceipt)||void 0===a?void 0:a.format)||ce)(o)}var ue=n(42450);async function de(e,t){let{filter:n}=t;return n.request({method:"eth_uninstallFilter",params:[n.id]})}const pe="\x19Ethereum Signed Message:\n";var he=n(91623);const be="0x60806040523480156200001157600080fd5b50604051620007003803806200070083398101604081905262000034916200056f565b6000620000438484846200004f565b9050806000526001601ff35b600080846001600160a01b0316803b806020016040519081016040528181526000908060200190933c90507f6492649264926492649264926492649264926492649264926492649264926492620000a68462000451565b036200021f57600060608085806020019051810190620000c79190620005ce565b8651929550909350915060000362000192576000836001600160a01b031683604051620000f5919062000643565b6000604051808303816000865af19150503d806000811462000134576040519150601f19603f3d011682016040523d82523d6000602084013e62000139565b606091505b5050905080620001905760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b505b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90620001c4908b90869060040162000661565b602060405180830381865afa158015620001e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200020891906200069d565b6001600160e01b031916149450505050506200044a565b805115620002b157604051630b135d3f60e11b808252906001600160a01b03871690631626ba7e9062000259908890889060040162000661565b602060405180830381865afa15801562000277573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200029d91906200069d565b6001600160e01b031916149150506200044a565b8251604114620003195760405162461bcd60e51b815260206004820152603a6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e677468000000000000606482015260840162000187565b620003236200046b565b506020830151604080850151855186939260009185919081106200034b576200034b620006c9565b016020015160f81c9050601b81148015906200036b57508060ff16601c14155b15620003cf5760405162461bcd60e51b815260206004820152603b6024820152600080516020620006e083398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c75650000000000606482015260840162000187565b6040805160008152602081018083528a905260ff83169181019190915260608101849052608081018390526001600160a01b038a169060019060a0016020604051602081039080840390855afa1580156200042e573d6000803e3d6000fd5b505050602060405103516001600160a01b031614955050505050505b9392505050565b60006020825110156200046357600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b03811681146200049f57600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b83811015620004d5578181015183820152602001620004bb565b50506000910152565b600082601f830112620004f057600080fd5b81516001600160401b03808211156200050d576200050d620004a2565b604051601f8301601f19908116603f01168101908282118183101715620005385762000538620004a2565b816040528381528660208588010111156200055257600080fd5b62000565846020830160208901620004b8565b9695505050505050565b6000806000606084860312156200058557600080fd5b8351620005928162000489565b6020850151604086015191945092506001600160401b03811115620005b657600080fd5b620005c486828701620004de565b9150509250925092565b600080600060608486031215620005e457600080fd5b8351620005f18162000489565b60208501519093506001600160401b03808211156200060f57600080fd5b6200061d87838801620004de565b935060408601519150808211156200063457600080fd5b50620005c486828701620004de565b6000825162000657818460208701620004b8565b9190910192915050565b828152604060208201526000825180604084015262000688816060850160208701620004b8565b601f01601f1916919091016060019392505050565b600060208284031215620006b057600080fd5b81516001600160e01b0319811681146200044a57600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572";var ye=n(86011),me=n(76988),ge=n(73306),ve=n(49141);var we=n(39999);async function Ee(e,t){let{address:n,hash:a,signature:i,...o}=t;const s=(0,ve.v)(i)?i:"object"===typeof i&&"r"in i&&"s"in i?function(e){let{r:t,s:n,v:r,yParity:a}=e;const i=(()=>{if(0===a||1===a)return a;if(r&&(27n===r||28n===r||r>=35n))return r%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})();return`0x${new we.kA.Signature((0,$.y_)(t),(0,$.y_)(n)).toCompactHex()}${0===i?"1b":"1c"}`}(i):(0,f.ci)(i);try{const{data:t}=await(0,d.s)(e,m.RE,"call")({data:(0,me.w)({abi:r.$o,args:[n,a,s],bytecode:be}),...o});return function(e,t){const n=(0,ve.v)(e)?(0,A.O0)(e):e,r=(0,ve.v)(t)?(0,A.O0)(t):t;return(0,ge.Wd)(n,r)}(t??"0x0","0x1")}catch(c){if(c instanceof ye.cg)return!1;throw c}}async function Ae(e,t){let{address:n,message:r,signature:a,...i}=t;const o=function(e,t){const n="string"===typeof e?(0,A.qX)(e):e.raw instanceof Uint8Array?e.raw:(0,A.O0)(e.raw),r=(0,A.qX)(`${pe}${n.length}`);return(0,P.w)((0,he.zo)([r,n]),t)}(r);return Ee(e,{address:n,hash:o,signature:a,...i})}var Pe=n(51859);function _e(e){const{domain:t={},message:n,primaryType:r}=e,a={EIP712Domain:(0,Pe.cj)({domain:t}),...e.types};(0,Pe.iC)({domain:t,message:n,primaryType:r,types:a});const i=["0x1901"];return t&&i.push(function(e){let{domain:t,types:n}=e;return Te({data:t,primaryType:"EIP712Domain",types:n})}({domain:t,types:a})),"EIP712Domain"!==r&&i.push(Te({data:n,primaryType:r,types:a})),(0,P.w)((0,he.zo)(i))}function Te(e){let{data:t,primaryType:n,types:r}=e;const a=ke({data:t,primaryType:n,types:r});return(0,P.w)(a)}function ke(e){let{data:t,primaryType:n,types:r}=e;const a=[{type:"bytes32"}],i=[Ce({primaryType:n,types:r})];for(const o of r[n]){const[e,n]=Oe({types:r,name:o.name,type:o.type,value:t[o.name]});a.push(e),i.push(n)}return(0,T.E)(a,i)}function Ce(e){let{primaryType:t,types:n}=e;const r=(0,f.NC)(function(e){let{primaryType:t,types:n}=e,r="";const a=xe({primaryType:t,types:n});a.delete(t);const i=[t,...Array.from(a).sort()];for(const o of i)r+=`${o}(${n[o].map((e=>{let{name:t,type:n}=e;return`${n} ${t}`})).join(",")})`;return r}({primaryType:t,types:n}));return(0,P.w)(r)}function xe(e){let{primaryType:t,types:n}=e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;const a=t.match(/^\w*/u),i=null===a||void 0===a?void 0:a[0];if(r.has(i)||void 0===n[i])return r;r.add(i);for(const o of n[i])xe({primaryType:o.type,types:n},r);return r}function Oe(e){let{types:t,name:n,type:r,value:a}=e;if(void 0!==t[r])return[{type:"bytes32"},(0,P.w)(ke({data:a,primaryType:r,types:t}))];if("bytes"===r){return a=`0x${(a.length%2?"0":"")+a.slice(2)}`,[{type:"bytes32"},(0,P.w)(a)]}if("string"===r)return[{type:"bytes32"},(0,P.w)((0,f.NC)(a))];if(r.lastIndexOf("]")===r.length-1){const e=r.slice(0,r.lastIndexOf("[")),i=a.map((r=>Oe({name:n,type:e,types:t,value:r})));return[{type:"bytes32"},(0,P.w)((0,T.E)(i.map((e=>{let[t]=e;return t})),i.map((e=>{let[,t]=e;return t}))))]}return[{type:r},a]}var Se=n(862),Re=n(49162),Ie=n(78651),Ne=n(1275),Be=n(83875);var je=n(16521),De=n(11685);var Le=n(74490);var Me=n(66385),Ue=n(4534);function Fe(e){return{call:t=>(0,m.RE)(e,t),createBlockFilter:()=>async function(e){const t=g(e,{method:"eth_newBlockFilter"}),n=await e.request({method:"eth_newBlockFilter"});return{id:n,request:t(n),type:"block"}}(e),createContractEventFilter:t=>R(e,t),createEventFilter:t=>I(e,t),createPendingTransactionFilter:()=>N(e),estimateContractGas:t=>async function(e,t){const{abi:n,address:r,args:a,functionName:o,...s}=t,f=(0,i.R)({abi:n,args:a,functionName:o});try{return await(0,d.s)(e,D.Q,"estimateGas")({data:f,to:r,...s})}catch(c){const e=s.account?(0,B.T)(s.account):void 0;throw(0,j.S)(c,{abi:n,address:r,args:a,docsPath:"/docs/contract/estimateContractGas",functionName:o,sender:null===e||void 0===e?void 0:e.address})}}(e,t),estimateGas:t=>(0,D.Q)(e,t),getBalance:t=>(0,U.s)(e,t),getBlobBaseFee:()=>async function(e){const t=await e.request({method:"eth_blobBaseFee"});return BigInt(t)}(e),getBlock:t=>(0,F.Q)(e,t),getBlockNumber:t=>(0,z.z)(e,t),getBlockTransactionCount:t=>async function(e){let{blockHash:t,blockNumber:n,blockTag:r="latest"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a=void 0!==n?(0,f.eC)(n):void 0;let i;return i=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[a||r]}),(0,$.ly)(i)}(e,t),getBytecode:t=>async function(e,t){let{address:n,blockNumber:r,blockTag:a="latest"}=t;const i=void 0!==r?(0,f.eC)(r):void 0,o=await e.request({method:"eth_getCode",params:[n,i||a]});if("0x"!==o)return o}(e,t),getChainId:()=>(0,G.L)(e),getContractEvents:t=>X(e,t),getEnsAddress:t=>async function(e,t){let{blockNumber:n,blockTag:h,coinType:b,name:y,gatewayUrls:m,strict:g,universalResolverAddress:v}=t,w=v;if(!w){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");w=(0,o.L)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}try{const t=(0,i.R)({abi:r.X$,functionName:"addr",...null!=b?{args:[(0,l.V)(y),BigInt(b)]}:{args:[(0,l.V)(y)]}}),o={address:w,abi:r.k3,functionName:"resolve",args:[(0,f.NC)((0,u.T)(y)),t],blockNumber:n,blockTag:h},c=(0,d.s)(e,p.L,"readContract"),g=m?await c({...o,args:[...o.args,m]}):await c(o);if("0x"===g[0])return null;const v=(0,a.k)({abi:r.X$,args:null!=b?[(0,l.V)(y),BigInt(b)]:void 0,functionName:"addr",data:g[0]});return"0x"===v||"0x00"===(0,s.f)(v)?null:v}catch(E){if(g)throw E;if((0,c.c)(E,"resolve"))return null;throw E}}(e,t),getEnsAvatar:t=>(0,h.r)(e,t),getEnsName:t=>(0,b.w)(e,t),getEnsResolver:t=>async function(e,t){let{blockNumber:n,blockTag:r,name:a,universalResolverAddress:i}=t,s=i;if(!s){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");s=(0,o.L)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}const[c]=await(0,d.s)(e,p.L,"readContract")({address:s,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,f.NC)((0,u.T)(a))],blockNumber:n,blockTag:r});return c}(e,t),getEnsText:t=>(0,y.g)(e,t),getFeeHistory:t=>ee(e,t),estimateFeesPerGas:t=>(0,L.X)(e,t),getFilterChanges:e=>te(0,e),getFilterLogs:e=>async function(e,t){let{filter:n}=t;const r=n.strict??!1,a=(await n.request({method:"eth_getFilterLogs",params:[n.id]})).map((e=>Y(e)));return n.abi?J({abi:n.abi,logs:a,strict:r}):a}(0,e),getGasPrice:()=>(0,ne.o)(e),getLogs:t=>Q(e,t),getProof:t=>re(e,t),estimateMaxPriorityFeePerGas:t=>(0,M._)(e,t),getStorageAt:t=>async function(e,t){let{address:n,blockNumber:r,blockTag:a="latest",slot:i}=t;const o=void 0!==r?(0,f.eC)(r):void 0;return await e.request({method:"eth_getStorageAt",params:[n,i,o||a]})}(e,t),getTransaction:t=>oe(e,t),getTransactionConfirmations:t=>async function(e,t){let{hash:n,transactionReceipt:r}=t;const[a,i]=await Promise.all([(0,d.s)(e,z.z,"getBlockNumber")({}),n?(0,d.s)(e,oe,"getBlockNumber")({hash:n}):void 0]),o=(null===r||void 0===r?void 0:r.blockNumber)||(null===i||void 0===i?void 0:i.blockNumber);return o?a-o+1n:0n}(e,t),getTransactionCount:t=>(0,se.K)(e,t),getTransactionReceipt:t=>le(e,t),multicall:t=>(0,ue.A)(e,t),prepareTransactionRequest:t=>(0,Me.Z)(e,t),readContract:t=>(0,p.L)(e,t),sendRawTransaction:t=>(0,Ue.p)(e,t),simulateContract:t=>async function(e,t){const{abi:n,address:r,args:o,dataSuffix:s,functionName:f,...c}=t,l=c.account?(0,B.T)(c.account):e.account,u=(0,i.R)({abi:n,args:o,functionName:f});try{const{data:i}=await(0,d.s)(e,m.RE,"call")({batch:!1,data:`${u}${s?s.replace("0x",""):""}`,to:r,...c,account:l});return{result:(0,a.k)({abi:n,args:o,functionName:f,data:i||"0x"}),request:{abi:n.filter((e=>"name"in e&&e.name===t.functionName)),address:r,args:o,dataSuffix:s,functionName:f,...c,account:l}}}catch(p){throw(0,j.S)(p,{abi:n,address:r,args:o,docsPath:"/docs/contract/simulateContract",functionName:f,sender:null===l||void 0===l?void 0:l.address})}}(e,t),verifyMessage:t=>Ae(e,t),verifyTypedData:t=>async function(e,t){const{address:n,signature:r,message:a,primaryType:i,types:o,domain:s,...f}=t;return Ee(e,{address:n,hash:_e({message:a,primaryType:i,types:o,domain:s}),signature:r,...f})}(e,t),uninstallFilter:e=>de(0,e),waitForTransactionReceipt:t=>async function(e,t){let{confirmations:n=1,hash:r,onReplaced:a,pollingInterval:i=e.pollingInterval,retryCount:o=6,retryDelay:s=(e=>{let{count:t}=e;return 200*~~(1<<t)}),timeout:f}=t;const c=(0,Ne.P)(["waitForTransactionReceipt",e.uid,r]);let l,u,p,h=!1;return new Promise(((t,b)=>{f&&setTimeout((()=>b(new ae.mc({hash:r}))),f);const y=(0,Re.N7)(c,{onReplaced:a,resolve:t,reject:b},(t=>{const a=(0,d.s)(e,Be.q,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:i,async onBlockNumber(i){if(h)return;let f=i;const c=e=>{a(),e(),y()};try{if(p){if(n>1&&(!p.blockNumber||f-p.blockNumber+1n<n))return;return void c((()=>t.resolve(p)))}if(l||(h=!0,await(0,Ie.J)((async()=>{l=await(0,d.s)(e,oe,"getTransaction")({hash:r}),l.blockNumber&&(f=l.blockNumber)}),{delay:s,retryCount:o}),h=!1),p=await(0,d.s)(e,le,"getTransactionReceipt")({hash:r}),n>1&&(!p.blockNumber||f-p.blockNumber+1n<n))return;c((()=>t.resolve(p)))}catch(b){if(b instanceof ae.Bh||b instanceof ae.Yb){if(!l)return void(h=!1);try{u=l,h=!0;const r=await(0,Ie.J)((()=>(0,d.s)(e,F.Q,"getBlock")({blockNumber:f,includeTransactions:!0})),{delay:s,retryCount:o,shouldRetry:e=>{let{error:t}=e;return t instanceof Se.f}});h=!1;const a=r.transactions.find((e=>{let{from:t,nonce:n}=e;return t===u.from&&n===u.nonce}));if(!a)return;if(p=await(0,d.s)(e,le,"getTransactionReceipt")({hash:a.hash}),n>1&&(!p.blockNumber||f-p.blockNumber+1n<n))return;let i="replaced";a.to===u.to&&a.value===u.value?i="repriced":a.from===a.to&&0n===a.value&&(i="cancelled"),c((()=>{var e;null===(e=t.onReplaced)||void 0===e||e.call(t,{reason:i,replacedTransaction:u,transaction:a,transactionReceipt:p}),t.resolve(p)}))}catch(m){c((()=>t.reject(m)))}}else c((()=>t.reject(b)))}}})}))}))}(e,t),watchBlocks:t=>function(e,t){let{blockTag:n="latest",emitMissed:r=!1,emitOnBegin:a=!1,onBlock:i,onError:o,includeTransactions:s,poll:f,pollingInterval:c=e.pollingInterval}=t;const l="undefined"!==typeof f?f:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type),u=s??!1;let p;return l?(()=>{const t=(0,Ne.P)(["watchBlocks",e.uid,n,r,a,u,c]);return(0,Re.N7)(t,{onBlock:i,onError:o},(t=>(0,De.$)((async()=>{try{var a,i;const s=await(0,d.s)(e,F.Q,"getBlock")({blockTag:n,includeTransactions:u});if(s.number&&null!==(a=p)&&void 0!==a&&a.number){if(s.number===p.number)return;if(s.number-p.number>1&&r)for(let n=(null===(o=p)||void 0===o?void 0:o.number)+1n;n<s.number;n++){var o;const r=await(0,d.s)(e,F.Q,"getBlock")({blockNumber:n,includeTransactions:u});t.onBlock(r,p),p=r}}(null===(i=p)||void 0===i||!i.number||"pending"===n&&(null===s||void 0===s||!s.number)||s.number&&s.number>p.number)&&(t.onBlock(s,p),p=s)}catch(f){var s;null===(s=t.onError)||void 0===s||s.call(t,f)}}),{emitOnBegin:a,interval:c})))})():(()=>{let t=!0,n=()=>t=!1;return(async()=>{try{const r=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find((e=>"webSocket"===e.config.type));return t?t.value:e.transport}return e.transport})(),{unsubscribe:a}=await r.subscribe({params:["newHeads"],onData(n){var r,a,o;if(!t)return;const s=((null===(r=e.chain)||void 0===r||null===(a=r.formatters)||void 0===a||null===(o=a.block)||void 0===o?void 0:o.format)||je.Z)(n.result);i(s,p),p=s},onError(e){null===o||void 0===o||o(e)}});n=a,t||n()}catch(r){null===o||void 0===o||o(r)}})(),()=>n()})()}(e,t),watchBlockNumber:t=>(0,Be.q)(e,t),watchContractEvent:t=>function(e,t){const{abi:n,address:r,args:a,batch:i=!0,eventName:o,fromBlock:s,onError:f,onLogs:c,poll:l,pollingInterval:u=e.pollingInterval,strict:p}=t;return("undefined"!==typeof l?l:"bigint"===typeof s||"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type))?(()=>{const t=p??!1,l=(0,Ne.P)(["watchContractEvent",r,a,i,e.uid,o,u,t,s]);return(0,Re.N7)(l,{onLogs:c,onError:f},(f=>{let c,l;void 0!==s&&(c=s-1n);let p=!1;const h=(0,De.$)((async()=>{if(p)try{let s;if(l)s=await(0,d.s)(e,te,"getFilterChanges")({filter:l});else{const i=await(0,d.s)(e,z.z,"getBlockNumber")({});s=c&&c!==i?await(0,d.s)(e,X,"getContractEvents")({abi:n,address:r,args:a,eventName:o,fromBlock:c+1n,toBlock:i,strict:t}):[],c=i}if(0===s.length)return;if(i)f.onLogs(s);else for(const e of s)f.onLogs([e])}catch(h){var u;l&&h instanceof Le.yR&&(p=!1),null===(u=f.onError)||void 0===u||u.call(f,h)}else{try{l=await(0,d.s)(e,R,"createContractEventFilter")({abi:n,address:r,args:a,eventName:o,strict:t,fromBlock:s})}catch{}p=!0}}),{emitOnBegin:!0,interval:u});return async()=>{l&&await(0,d.s)(e,de,"uninstallFilter")({filter:l}),h()}}))})():(()=>{const t=p??!1,s=(0,Ne.P)(["watchContractEvent",r,a,i,e.uid,o,u,t]);let l=!0,d=()=>l=!1;return(0,Re.N7)(s,{onLogs:c,onError:f},(t=>((async()=>{try{const i=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find((e=>"webSocket"===e.config.type));return t?t.value:e.transport}return e.transport})(),s=o?O({abi:n,eventName:o,args:a}):[],{unsubscribe:f}=await i.subscribe({params:["logs",{address:r,topics:s}],onData(e){if(!l)return;const r=e.result;try{const{eventName:e,args:a}=K({abi:n,data:r.data,topics:r.topics,strict:p}),i=Y(r,{args:a,eventName:e});t.onLogs([i])}catch(i){let e,n;if(i instanceof v.SM||i instanceof v.Gy){var a;if(p)return;e=i.abiItem.name,n=null===(a=i.abiItem.inputs)||void 0===a?void 0:a.some((e=>!("name"in e&&e.name)))}const o=Y(r,{args:n?[]:{},eventName:e});t.onLogs([o])}},onError(e){var n;null===(n=t.onError)||void 0===n||n.call(t,e)}});d=f,l||d()}catch(i){null===f||void 0===f||f(i)}})(),()=>d())))})()}(e,t),watchEvent:t=>function(e,t){let{address:n,args:r,batch:a=!0,event:i,events:o,fromBlock:s,onError:f,onLogs:c,poll:l,pollingInterval:u=e.pollingInterval,strict:p}=t;const h="undefined"!==typeof l?l:"bigint"===typeof s||"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type),b=p??!1;return h?(()=>{const t=(0,Ne.P)(["watchEvent",n,r,a,e.uid,i,u,s]);return(0,Re.N7)(t,{onLogs:c,onError:f},(t=>{let f,c;void 0!==s&&(f=s-1n);let l=!1;const p=(0,De.$)((async()=>{if(l)try{let s;if(c)s=await(0,d.s)(e,te,"getFilterChanges")({filter:c});else{const t=await(0,d.s)(e,z.z,"getBlockNumber")({});s=f&&f!==t?await(0,d.s)(e,Q,"getLogs")({address:n,args:r,event:i,events:o,fromBlock:f+1n,toBlock:t}):[],f=t}if(0===s.length)return;if(a)t.onLogs(s);else for(const e of s)t.onLogs([e])}catch(p){var u;c&&p instanceof Le.yR&&(l=!1),null===(u=t.onError)||void 0===u||u.call(t,p)}else{try{c=await(0,d.s)(e,I,"createEventFilter")({address:n,args:r,event:i,events:o,strict:b,fromBlock:s})}catch{}l=!0}}),{emitOnBegin:!0,interval:u});return async()=>{c&&await(0,d.s)(e,de,"uninstallFilter")({filter:c}),p()}}))})():(()=>{let t=!0,a=()=>t=!1;return(async()=>{try{const s=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find((e=>"webSocket"===e.config.type));return t?t.value:e.transport}return e.transport})(),l=o??(i?[i]:void 0);let u=[];l&&(u=[l.flatMap((e=>O({abi:[e],eventName:e.name,args:r})))],i&&(u=u[0]));const{unsubscribe:d}=await s.subscribe({params:["logs",{address:n,topics:u}],onData(e){if(!t)return;const n=e.result;try{const{eventName:e,args:t}=K({abi:l??[],data:n.data,topics:n.topics,strict:b}),r=Y(n,{args:t,eventName:e});c([r])}catch(a){let e,t;if(a instanceof v.SM||a instanceof v.Gy){var r;if(p)return;e=a.abiItem.name,t=null===(r=a.abiItem.inputs)||void 0===r?void 0:r.some((e=>!("name"in e&&e.name)))}const i=Y(n,{args:t?[]:{},eventName:e});c([i])}},onError(e){null===f||void 0===f||f(e)}});a=d,t||a()}catch(s){null===f||void 0===f||f(s)}})(),()=>a()})()}(e,t),watchPendingTransactions:t=>function(e,t){let{batch:n=!0,onError:r,onTransactions:a,poll:i,pollingInterval:o=e.pollingInterval}=t;return("undefined"!==typeof i?i:"webSocket"!==e.transport.type)?(()=>{const t=(0,Ne.P)(["watchPendingTransactions",e.uid,n,o]);return(0,Re.N7)(t,{onTransactions:a,onError:r},(t=>{let r;const a=(0,De.$)((async()=>{try{if(!r)try{return void(r=await(0,d.s)(e,N,"createPendingTransactionFilter")({}))}catch(o){throw a(),o}const i=await(0,d.s)(e,te,"getFilterChanges")({filter:r});if(0===i.length)return;if(n)t.onTransactions(i);else for(const e of i)t.onTransactions([e])}catch(o){var i;null===(i=t.onError)||void 0===i||i.call(t,o)}}),{emitOnBegin:!0,interval:o});return async()=>{r&&await(0,d.s)(e,de,"uninstallFilter")({filter:r}),a()}}))})():(()=>{let t=!0,n=()=>t=!1;return(async()=>{try{const{unsubscribe:i}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!t)return;const n=e.result;a([n])},onError(e){null===r||void 0===r||r(e)}});n=i,t||n()}catch(i){null===r||void 0===r||r(i)}})(),()=>n()})()}(e,t)}}function ze(e){const t=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{t=e.getClient(n)}catch{}return t}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return null===t||void 0===t?void 0:t.extend(Fe)}},47441:(e,t,n)=>{"use strict";n.d(t,{u:()=>i});var r=n(78821),a=n(32441);function i(e,t){const{onChange:n}=t;return e.subscribe((()=>(0,a.D)(e)),n,{equalityFn(e,t){const{connector:n,...a}=e,{connector:i,...o}=t;return(0,r.v)(a,o)&&(null===n||void 0===n?void 0:n.id)===(null===i||void 0===i?void 0:i.id)&&(null===n||void 0===n?void 0:n.uid)===(null===i||void 0===i?void 0:i.uid)}})}},66854:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{K:()=>r})},87951:(e,t,n)=>{"use strict";n.d(t,{L:()=>p});var r=n(86694),a=n(74490),i=n(78651),o=n(35293),s=n(71386),f=n(22935),c=n(34822),l=n(66854);const u=/(rabby|trustwallet)/,d={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>null!==e&&void 0!==e&&e.coinbaseWalletExtension?e.coinbaseWalletExtension:h(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>h(e,(e=>{if(!e.isMetaMask)return!1;if(e.isBraveWallet&&!e._events&&!e._state)return!1;const t=["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPortal","isRabby","isTokenPocket","isTokenary","isZerion"];for(const n of t)if(e[n])return!1;return!0}))},phantom:{id:"phantom",name:"Phantom",provider(e){var t,n;return null!==e&&void 0!==e&&null!==(t=e.phantom)&&void 0!==t&&t.ethereum?null===(n=e.phantom)||void 0===n?void 0:n.ethereum:h(e,"isPhantom")}}};function p(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{shimDisconnect:t=!0,unstable_shimAsyncInject:n}=e;function b(){const t=e.target;if("function"===typeof t){const e=t();if(e)return e}return"object"===typeof t?t:"string"===typeof t?{...d[t]??{id:t,name:`${t[0].toUpperCase()}${t.slice(1)}`,provider:`is${t[0].toUpperCase()}${t.slice(1)}`}}:{id:"injected",name:"Injected",provider:e=>null===e||void 0===e?void 0:e.ethereum}}let y,m,g,v;return(0,l.K)((l=>({get icon(){return b().icon},get id(){return b().id},get name(){return b().name},get supportsSimulation(){return u.test(this.id.toLowerCase())},type:p.type,async setup(){const t=await this.getProvider();t&&e.target&&(g||(g=this.onConnect.bind(this),t.on("connect",g)),y||(y=this.onAccountsChanged.bind(this),t.on("accountsChanged",y)))},async connect(){let{chainId:n,isReconnecting:i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=await this.getProvider();if(!o)throw new c.M;let s=[];if(i)s=await this.getAccounts().catch((()=>[]));else if(t)try{var f,u,d,p;s=null===(f=(await o.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]}))[0])||void 0===f||null===(u=f.caveats)||void 0===u||null===(d=u[0])||void 0===d||null===(p=d.value)||void 0===p?void 0:p.map((e=>(0,r.K)(e)))}catch(E){const e=E;if(e.code===a.ab.code)throw new a.ab(e);if(e.code===a.pT.code)throw e}try{var h,b,w;if((null===(h=s)||void 0===h||!h.length)&&!i){s=(await o.request({method:"eth_requestAccounts"})).map((e=>(0,r.K)(e)))}g&&(o.removeListener("connect",g),g=void 0),y||(y=this.onAccountsChanged.bind(this),o.on("accountsChanged",y)),m||(m=this.onChainChanged.bind(this),o.on("chainChanged",m)),v||(v=this.onDisconnect.bind(this),o.on("disconnect",v));let f=await this.getChainId();if(n&&f!==n){const e=await this.switchChain({chainId:n}).catch((e=>{if(e.code===a.ab.code)throw e;return{id:f}}));f=(null===e||void 0===e?void 0:e.id)??f}return t&&await(null===(b=l.storage)||void 0===b?void 0:b.removeItem(`${this.id}.disconnected`)),e.target||await(null===(w=l.storage)||void 0===w?void 0:w.setItem("injected.connected",!0)),{accounts:s,chainId:f}}catch(E){const e=E;if(e.code===a.ab.code)throw new a.ab(e);if(e.code===a.pT.code)throw new a.pT(e);throw e}},async disconnect(){var n;const r=await this.getProvider();if(!r)throw new c.M;m&&(r.removeListener("chainChanged",m),m=void 0),v&&(r.removeListener("disconnect",v),v=void 0),g||(g=this.onConnect.bind(this),r.on("connect",g));try{await r.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]})}catch{}var a;t&&await(null===(a=l.storage)||void 0===a?void 0:a.setItem(`${this.id}.disconnected`,!0));e.target||await(null===(n=l.storage)||void 0===n?void 0:n.removeItem("injected.connected"))},async getAccounts(){const e=await this.getProvider();if(!e)throw new c.M;return(await e.request({method:"eth_accounts"})).map((e=>(0,r.K)(e)))},async getChainId(){const e=await this.getProvider();if(!e)throw new c.M;const t=await e.request({method:"eth_chainId"});return Number(t)},async getProvider(){if("undefined"===typeof window)return;let e;const t=b();return e="function"===typeof t.provider?t.provider(window):"string"===typeof t.provider?h(window,t.provider):t.provider,e&&!e.removeListener&&("off"in e&&"function"===typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e},async isAuthorized(){try{var r;if(t&&await(null===(r=l.storage)||void 0===r?void 0:r.getItem(`${this.id}.disconnected`)))return!1;if(!e.target){var a;if(!await(null===(a=l.storage)||void 0===a?void 0:a.getItem("injected.connected")))return!1}if(!await this.getProvider()){if(void 0!==n&&!1!==n){const e=async()=>{"undefined"!==typeof window&&window.removeEventListener("ethereum#initialized",e);return!!await this.getProvider()},t="number"===typeof n?n:1e3;if(await Promise.race([..."undefined"!==typeof window?[new Promise((t=>window.addEventListener("ethereum#initialized",(()=>t(e())),{once:!0})))]:[],new Promise((n=>setTimeout((()=>n(e())),t)))]))return!0}throw new c.M}return!!(await(0,i.J)((()=>(0,o.F)((()=>this.getAccounts()),{timeout:100})))).length}catch{return!1}},async switchChain(e){let{addEthereumChainParameter:t,chainId:n}=e;const r=await this.getProvider();if(!r)throw new c.M;const i=l.chains.find((e=>e.id===n));if(!i)throw new a.x3(new f.X4);try{return await Promise.all([r.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,s.eC)(n)}]}).then((async()=>{await this.getChainId()===n&&l.emitter.emit("change",{chainId:n})})),new Promise((e=>l.emitter.once("change",(t=>{let{chainId:r}=t;r===n&&e()}))))]),i}catch(h){var o,u;const e=h;if(4902===e.code||4902===(null===e||void 0===e||null===(o=e.data)||void 0===o||null===(u=o.originalError)||void 0===u?void 0:u.code))try{var d,p;const{default:e,...o}=i.blockExplorers??{};let f,c;null!==t&&void 0!==t&&t.blockExplorerUrls?f=t.blockExplorerUrls:e&&(f=[e.url,...Object.values(o).map((e=>e.url))]),c=null!==t&&void 0!==t&&null!==(d=t.rpcUrls)&&void 0!==d&&d.length?t.rpcUrls:[(null===(p=i.rpcUrls.default)||void 0===p?void 0:p.http[0])??""];const l={blockExplorerUrls:f,chainId:(0,s.eC)(n),chainName:(null===t||void 0===t?void 0:t.chainName)??i.name,iconUrls:null===t||void 0===t?void 0:t.iconUrls,nativeCurrency:(null===t||void 0===t?void 0:t.nativeCurrency)??i.nativeCurrency,rpcUrls:c};await r.request({method:"wallet_addEthereumChain",params:[l]});if(await this.getChainId()!==n)throw new a.ab(new Error("User rejected switch after adding network."));return i}catch(b){throw new a.ab(b)}if(e.code===a.ab.code)throw new a.ab(e);throw new a.x3(e)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(l.emitter.listenerCount("connect")){var n;const e=(await this.getChainId()).toString();this.onConnect({chainId:e}),t&&await(null===(n=l.storage)||void 0===n?void 0:n.removeItem(`${this.id}.disconnected`))}else l.emitter.emit("change",{accounts:e.map((e=>(0,r.K)(e)))})},onChainChanged(e){const t=Number(e);l.emitter.emit("change",{chainId:t})},async onConnect(e){const t=await this.getAccounts();if(0===t.length)return;const n=Number(e.chainId);l.emitter.emit("connect",{accounts:t,chainId:n});const r=await this.getProvider();r&&(g&&(r.removeListener("connect",g),g=void 0),y||(y=this.onAccountsChanged.bind(this),r.on("accountsChanged",y)),m||(m=this.onChainChanged.bind(this),r.on("chainChanged",m)),v||(v=this.onDisconnect.bind(this),r.on("disconnect",v)))},async onDisconnect(e){const t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(l.emitter.emit("disconnect"),t&&(m&&(t.removeListener("chainChanged",m),m=void 0),v&&(t.removeListener("disconnect",v),v=void 0),g||(g=this.onConnect.bind(this),t.on("connect",g))))}})))}function h(e,t){function n(e){return"function"===typeof t?t(e):"string"!==typeof t||e[t]}const r=e.ethereum;return null!==r&&void 0!==r&&r.providers?r.providers.find((e=>n(e))):r&&n(r)?r:void 0}p.type="injected"},85594:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var r=n(11176);var a,i,o=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class s extends Error{get docsBaseUrl(){return"https://wagmi.sh/core"}get version(){return`@wagmi/core@${r.i}`}constructor(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),a.add(this),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:"WagmiCoreError"});const r=n.cause instanceof s?n.cause.details:null!==(t=n.cause)&&void 0!==t&&t.message?n.cause.message:n.details,i=n.cause instanceof s&&n.cause.docsPath||n.docsPath;this.message=[e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: ${this.docsBaseUrl}${i}.html${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...r?[`Details: ${r}`]:[],`Version: ${this.version}`].join("\n"),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=i,this.metaMessages=n.metaMessages,this.shortMessage=e}walk(e){return o(this,a,"m",i).call(this,this,e)}}a=new WeakSet,i=function e(t,n){return null!==n&&void 0!==n&&n(t)?t:t.cause?o(this,a,"m",e).call(this,t.cause,n):t}},22935:(e,t,n)=>{"use strict";n.d(t,{JK:()=>s,X4:()=>a,aH:()=>o,wi:()=>i});var r=n(85594);class a extends r.G{constructor(){super("Chain not configured."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotConfiguredError"})}}class i extends r.G{constructor(){super("Connector already connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAlreadyConnectedError"})}}class o extends r.G{constructor(){super("Connector not connected."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorNotConnectedError"})}}class s extends r.G{constructor(e){let{address:t,connector:n}=e;super(`Account "${t}" not found for connector "${n.name}".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ConnectorAccountNotFoundError"})}}},34822:(e,t,n)=>{"use strict";n.d(t,{M:()=>a,O:()=>i});var r=n(85594);class a extends r.G{constructor(){super("Provider not found."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderNotFoundError"})}}class i extends r.G{constructor(e){let{connector:t}=e;super(`"${t.name}" does not support programmatic chain switching.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainNotSupportedError"})}}},91124:(e,t,n)=>{"use strict";function r(e){return JSON.stringify(e,((e,t)=>function(e){if(!a(e))return!1;const t=e.constructor;if("undefined"===typeof t)return!0;const n=t.prototype;return!!a(n)&&!!n.hasOwnProperty("isPrototypeOf")}(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):"bigint"===typeof t?t.toString():t))}function a(e){return"[object Object]"===Object.prototype.toString.call(e)}function i(e){const{_defaulted:t,behavior:n,gcTime:r,initialData:a,initialDataUpdatedAt:i,maxPages:o,meta:s,networkMode:f,queryFn:c,queryHash:l,queryKey:u,queryKeyHashFn:d,retry:p,retryDelay:h,structuralSharing:b,getPreviousPageParam:y,getNextPageParam:m,initialPageParam:g,_optimisticResults:v,enabled:w,notifyOnChangeProps:E,placeholderData:A,refetchInterval:P,refetchIntervalInBackground:_,refetchOnMount:T,refetchOnReconnect:k,refetchOnWindowFocus:C,retryOnMount:x,select:O,staleTime:S,suspense:R,throwOnError:I,config:N,connector:B,query:j,...D}=e;return D}n.d(t,{OP:()=>i,kq:()=>r})},78821:(e,t,n)=>{"use strict";function r(e,t){if(e===t)return!0;if(e&&t&&"object"===typeof e&&"object"===typeof t){if(e.constructor!==t.constructor)return!1;let n,a;if(Array.isArray(e)&&Array.isArray(t)){if(n=e.length,n!==t.length)return!1;for(a=n;0!==a--;)if(!r(e[a],t[a]))return!1;return!0}if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const i=Object.keys(e);if(n=i.length,n!==Object.keys(t).length)return!1;for(a=n;0!==a--;)if(!Object.prototype.hasOwnProperty.call(t,i[a]))return!1;for(a=n;0!==a--;){const n=i[a];if(n&&!r(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}n.d(t,{v:()=>r})},46105:(e,t,n)=>{"use strict";function r(e,t,n){const r=e[t.name];if("function"===typeof r)return r;const a=e[n];return"function"===typeof a?a:n=>t(e,n)}n.d(t,{s:()=>r})},11176:(e,t,n)=>{"use strict";n.d(t,{i:()=>r});const r="2.10.2"},40042:function(e,t){"use strict";var n,r,a,i=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},o=this&&this.__classPrivateFieldSet||function(e,t,n,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n};Object.defineProperty(t,"__esModule",{value:!0}),t.AES=void 0;const s={16:10,24:12,32:14},f=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],c=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],l=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],u=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],d=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],p=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],h=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],b=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],y=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],m=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],g=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],v=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],w=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],E=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],A=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function P(e){const t=[];for(let n=0;n<e.length;n+=4)t.push(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}class _{get key(){return i(this,n,"f").slice()}constructor(e){if(n.set(this,void 0),r.set(this,void 0),a.set(this,void 0),!(this instanceof _))throw Error("AES must be instanitated with `new`");o(this,n,new Uint8Array(e),"f");const t=s[this.key.length];if(null==t)throw new TypeError("invalid key size (must be 16, 24 or 32 bytes)");o(this,a,[],"f"),o(this,r,[],"f");for(let n=0;n<=t;n++)i(this,a,"f").push([0,0,0,0]),i(this,r,"f").push([0,0,0,0]);const l=4*(t+1),u=this.key.length/4,d=P(this.key);let p;for(let n=0;n<u;n++)p=n>>2,i(this,a,"f")[p][n%4]=d[n],i(this,r,"f")[t-p][n%4]=d[n];let h,b=0,y=u;for(;y<l;){if(h=d[u-1],d[0]^=c[h>>16&255]<<24^c[h>>8&255]<<16^c[255&h]<<8^c[h>>24&255]^f[b]<<24,b+=1,8!=u)for(let t=1;t<u;t++)d[t]^=d[t-1];else{for(let e=1;e<u/2;e++)d[e]^=d[e-1];h=d[u/2-1],d[u/2]^=c[255&h]^c[h>>8&255]<<8^c[h>>16&255]<<16^c[h>>24&255]<<24;for(let e=u/2+1;e<u;e++)d[e]^=d[e-1]}let e,n,o=0;for(;o<u&&y<l;)e=y>>2,n=y%4,i(this,a,"f")[e][n]=d[o],i(this,r,"f")[t-e][n]=d[o++],y++}for(let n=1;n<t;n++)for(let e=0;e<4;e++)h=i(this,r,"f")[n][e],i(this,r,"f")[n][e]=v[h>>24&255]^w[h>>16&255]^E[h>>8&255]^A[255&h]}encrypt(e){if(16!=e.length)throw new TypeError("invalid plaintext size (must be 16 bytes)");const t=i(this,a,"f").length-1,n=[0,0,0,0];let r=P(e);for(let f=0;f<4;f++)r[f]^=i(this,a,"f")[0][f];for(let f=1;f<t;f++){for(let e=0;e<4;e++)n[e]=u[r[e]>>24&255]^d[r[(e+1)%4]>>16&255]^p[r[(e+2)%4]>>8&255]^h[255&r[(e+3)%4]]^i(this,a,"f")[f][e];r=n.slice()}const o=new Uint8Array(16);let s=0;for(let f=0;f<4;f++)s=i(this,a,"f")[t][f],o[4*f]=255&(c[r[f]>>24&255]^s>>24),o[4*f+1]=255&(c[r[(f+1)%4]>>16&255]^s>>16),o[4*f+2]=255&(c[r[(f+2)%4]>>8&255]^s>>8),o[4*f+3]=255&(c[255&r[(f+3)%4]]^s);return o}decrypt(e){if(16!=e.length)throw new TypeError("invalid ciphertext size (must be 16 bytes)");const t=i(this,r,"f").length-1,n=[0,0,0,0];let a=P(e);for(let f=0;f<4;f++)a[f]^=i(this,r,"f")[0][f];for(let f=1;f<t;f++){for(let e=0;e<4;e++)n[e]=b[a[e]>>24&255]^y[a[(e+3)%4]>>16&255]^m[a[(e+2)%4]>>8&255]^g[255&a[(e+1)%4]]^i(this,r,"f")[f][e];a=n.slice()}const o=new Uint8Array(16);let s=0;for(let f=0;f<4;f++)s=i(this,r,"f")[t][f],o[4*f]=255&(l[a[f]>>24&255]^s>>24),o[4*f+1]=255&(l[a[(f+3)%4]>>16&255]^s>>16),o[4*f+2]=255&(l[a[(f+2)%4]>>8&255]^s>>8),o[4*f+3]=255&(l[255&a[(f+1)%4]]^s);return o}}t.AES=_,n=new WeakMap,r=new WeakMap,a=new WeakMap},32899:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pkcs7Strip=t.pkcs7Pad=t.OFB=t.ECB=t.CTR=t.CFB=t.CBC=t.ModeOfOperation=t.AES=void 0;var r=n(40042);Object.defineProperty(t,"AES",{enumerable:!0,get:function(){return r.AES}});var a=n(24005);Object.defineProperty(t,"ModeOfOperation",{enumerable:!0,get:function(){return a.ModeOfOperation}});var i=n(38543);Object.defineProperty(t,"CBC",{enumerable:!0,get:function(){return i.CBC}});var o=n(12855);Object.defineProperty(t,"CFB",{enumerable:!0,get:function(){return o.CFB}});var s=n(42528);Object.defineProperty(t,"CTR",{enumerable:!0,get:function(){return s.CTR}});var f=n(78638);Object.defineProperty(t,"ECB",{enumerable:!0,get:function(){return f.ECB}});var c=n(91418);Object.defineProperty(t,"OFB",{enumerable:!0,get:function(){return c.OFB}});var l=n(42521);Object.defineProperty(t,"pkcs7Pad",{enumerable:!0,get:function(){return l.pkcs7Pad}}),Object.defineProperty(t,"pkcs7Strip",{enumerable:!0,get:function(){return l.pkcs7Strip}})},38543:function(e,t,n){"use strict";var r,a,i=this&&this.__classPrivateFieldSet||function(e,t,n,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n},o=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.CBC=void 0;const s=n(24005);class f extends s.ModeOfOperation{constructor(e,t){if(super("ECC",e,f),r.set(this,void 0),a.set(this,void 0),t){if(t.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");i(this,r,new Uint8Array(t),"f")}else i(this,r,new Uint8Array(16),"f");i(this,a,this.iv,"f")}get iv(){return new Uint8Array(o(this,r,"f"))}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const t=new Uint8Array(e.length);for(let n=0;n<e.length;n+=16){for(let t=0;t<16;t++)o(this,a,"f")[t]^=e[n+t];i(this,a,this.aes.encrypt(o(this,a,"f")),"f"),t.set(o(this,a,"f"),n)}return t}decrypt(e){if(e.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const t=new Uint8Array(e.length);for(let n=0;n<e.length;n+=16){const r=this.aes.decrypt(e.subarray(n,n+16));for(let i=0;i<16;i++)t[n+i]=r[i]^o(this,a,"f")[i],o(this,a,"f")[i]=e[n+i]}return t}}t.CBC=f,r=new WeakMap,a=new WeakMap},12855:function(e,t,n){"use strict";var r,a,i,o,s=this&&this.__classPrivateFieldSet||function(e,t,n,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n},f=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.CFB=void 0;const c=n(24005);class l extends c.ModeOfOperation{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8;if(super("CFB",e,l),r.add(this),a.set(this,void 0),i.set(this,void 0),!Number.isInteger(n)||n%8)throw new TypeError("invalid segmentSize");if(Object.defineProperties(this,{segmentSize:{enumerable:!0,value:n}}),t){if(t.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");s(this,a,new Uint8Array(t),"f")}else s(this,a,new Uint8Array(16),"f");s(this,i,this.iv,"f")}get iv(){return new Uint8Array(f(this,a,"f"))}encrypt(e){if(8*e.length%this.segmentSize)throw new TypeError("invalid plaintext size (must be multiple of segmentSize bytes)");const t=this.segmentSize/8,n=new Uint8Array(e);for(let a=0;a<n.length;a+=t){const e=this.aes.encrypt(f(this,i,"f"));for(let r=0;r<t;r++)n[a+r]^=e[r];f(this,r,"m",o).call(this,n.subarray(a))}return n}decrypt(e){if(8*e.length%this.segmentSize)throw new TypeError("invalid ciphertext size (must be multiple of segmentSize bytes)");const t=this.segmentSize/8,n=new Uint8Array(e);for(let a=0;a<n.length;a+=t){const s=this.aes.encrypt(f(this,i,"f"));for(let e=0;e<t;e++)n[a+e]^=s[e];f(this,r,"m",o).call(this,e.subarray(a))}return n}}t.CFB=l,a=new WeakMap,i=new WeakMap,r=new WeakSet,o=function(e){const t=this.segmentSize/8;f(this,i,"f").set(f(this,i,"f").subarray(t)),f(this,i,"f").set(e.subarray(0,t),16-t)}},42528:function(e,t,n){"use strict";var r,a,i,o=this&&this.__classPrivateFieldSet||function(e,t,n,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n},s=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.CTR=void 0;const f=n(24005);class c extends f.ModeOfOperation{constructor(e,t){super("CTR",e,c),r.set(this,void 0),a.set(this,void 0),i.set(this,void 0),o(this,i,new Uint8Array(16),"f"),s(this,i,"f").fill(0),o(this,r,s(this,i,"f"),"f"),o(this,a,16,"f"),null==t&&(t=1),"number"===typeof t?this.setCounterValue(t):this.setCounterBytes(t)}get counter(){return new Uint8Array(s(this,i,"f"))}setCounterValue(e){if(!Number.isInteger(e)||e<0||e>Number.MAX_SAFE_INTEGER)throw new TypeError("invalid counter initial integer value");for(let t=15;t>=0;--t)s(this,i,"f")[t]=e%256,e=Math.floor(e/256)}setCounterBytes(e){if(16!==e.length)throw new TypeError("invalid counter initial Uint8Array value length");s(this,i,"f").set(e)}increment(){for(let e=15;e>=0;e--){if(255!==s(this,i,"f")[e]){s(this,i,"f")[e]++;break}s(this,i,"f")[e]=0}}encrypt(e){var t,n;const f=new Uint8Array(e);for(let c=0;c<f.length;c++)16===s(this,a,"f")&&(o(this,r,this.aes.encrypt(s(this,i,"f")),"f"),o(this,a,0,"f"),this.increment()),f[c]^=s(this,r,"f")[(o(this,a,(n=s(this,a,"f"),t=n++,n),"f"),t)];return f}decrypt(e){return this.encrypt(e)}}t.CTR=c,r=new WeakMap,a=new WeakMap,i=new WeakMap},78638:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ECB=void 0;const r=n(24005);class a extends r.ModeOfOperation{constructor(e){super("ECB",e,a)}encrypt(e){if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const t=new Uint8Array(e.length);for(let n=0;n<e.length;n+=16)t.set(this.aes.encrypt(e.subarray(n,n+16)),n);return t}decrypt(e){if(e.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");const t=new Uint8Array(e.length);for(let n=0;n<e.length;n+=16)t.set(this.aes.decrypt(e.subarray(n,n+16)),n);return t}}t.ECB=a},91418:function(e,t,n){"use strict";var r,a,i,o=this&&this.__classPrivateFieldSet||function(e,t,n,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n},s=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.OFB=void 0;const f=n(24005);class c extends f.ModeOfOperation{constructor(e,t){if(super("OFB",e,c),r.set(this,void 0),a.set(this,void 0),i.set(this,void 0),t){if(t.length%16)throw new TypeError("invalid iv size (must be 16 bytes)");o(this,r,new Uint8Array(t),"f")}else o(this,r,new Uint8Array(16),"f");o(this,a,this.iv,"f"),o(this,i,16,"f")}get iv(){return new Uint8Array(s(this,r,"f"))}encrypt(e){var t,n;if(e.length%16)throw new TypeError("invalid plaintext size (must be multiple of 16 bytes)");const r=new Uint8Array(e);for(let f=0;f<r.length;f++)16===s(this,i,"f")&&(o(this,a,this.aes.encrypt(s(this,a,"f")),"f"),o(this,i,0,"f")),r[f]^=s(this,a,"f")[(o(this,i,(n=s(this,i,"f"),t=n++,n),"f"),t)];return r}decrypt(e){if(e.length%16)throw new TypeError("invalid ciphertext size (must be multiple of 16 bytes)");return this.encrypt(e)}}t.OFB=c,r=new WeakMap,a=new WeakMap,i=new WeakMap},24005:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModeOfOperation=void 0;const r=n(40042);t.ModeOfOperation=class{constructor(e,t,n){if(n&&!(this instanceof n))throw new Error(`${e} must be instantiated with "new"`);Object.defineProperties(this,{aes:{enumerable:!0,value:new r.AES(t)},name:{enumerable:!0,value:e}})}}},42521:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pkcs7Strip=t.pkcs7Pad=void 0,t.pkcs7Pad=function(e){const t=16-e.length%16,n=new Uint8Array(e.length+t);n.set(e);for(let r=e.length;r<n.length;r++)n[r]=t;return n},t.pkcs7Strip=function(e){if(e.length<16)throw new TypeError("PKCS#7 invalid length");const t=e[e.length-1];if(t>16)throw new TypeError("PKCS#7 padding byte out of range");const n=e.length-t;for(let r=0;r<t;r++)if(e[n+r]!==t)throw new TypeError("PKCS#7 invalid padding byte");return new Uint8Array(e.subarray(0,n))}},2009:(e,t)=>{"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=s(e),o=i[0],f=i[1],c=new a(function(e,t,n){return 3*(t+n)/4-n}(0,o,f)),l=0,u=f>0?o-4:o;for(n=0;n<u;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===f&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===f&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,a=r%3,i=[],o=16383,s=0,c=r-a;s<c;s+=o)i.push(f(e,s,s+o>c?c:s+o));1===a?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===a&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return i.join("")};for(var n=[],r=[],a="undefined"!==typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=0;o<64;++o)n[o]=i[o],r[i.charCodeAt(o)]=o;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function f(e,t,r){for(var a,i,o=[],s=t;s<r;s+=3)a=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(n[(i=a)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},19778:(e,t,n)=>{"use strict";const r=n(2009),a=n(84038),i="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=f,t.SlowBuffer=function(e){+e!=e&&(e=0);return f.alloc(+e)},t.INSPECT_MAX_BYTES=50;const o=2147483647;function s(e){if(e>o)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,f.prototype),t}function f(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return c(e,t,n)}function c(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!f.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|b(e,t);let r=s(n);const a=r.write(e,t);a!==n&&(r=r.slice(0,a));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(Z(e,Uint8Array)){const t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(Z(e,ArrayBuffer)||e&&Z(e.buffer,ArrayBuffer))return p(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(Z(e,SharedArrayBuffer)||e&&Z(e.buffer,SharedArrayBuffer)))return p(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return f.from(r,t,n);const a=function(e){if(f.isBuffer(e)){const t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||J(e.length)?s(0):d(e);if("Buffer"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(a)return a;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return f.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return l(e),s(e<0?0:0|h(e))}function d(e){const t=e.length<0?0:0|h(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,f.prototype),r}function h(e){if(e>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function b(e,t){if(f.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||Z(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let a=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(a)return r?-1:V(e).length;t=(""+t).toLowerCase(),a=!0}}function y(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return T(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,a){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),J(n=+n)&&(n=a?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(a)return-1;n=e.length-1}else if(n<0){if(!a)return-1;n=0}if("string"===typeof t&&(t=f.from(t,r)),f.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,a);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,a);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,a){let i,o=1,s=e.length,f=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;o=2,s/=2,f/=2,n/=2}function c(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(a){let r=-1;for(i=n;i<s;i++)if(c(e,i)===c(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===f)return r*o}else-1!==r&&(i-=i-r),r=-1}else for(n+f>s&&(n=s-f),i=n;i>=0;i--){let n=!0;for(let r=0;r<f;r++)if(c(e,i+r)!==c(t,r)){n=!1;break}if(n)return i}return-1}function w(e,t,n,r){n=Number(n)||0;const a=e.length-n;r?(r=Number(r))>a&&(r=a):r=a;const i=t.length;let o;for(r>i/2&&(r=i/2),o=0;o<r;++o){const r=parseInt(t.substr(2*o,2),16);if(J(r))return o;e[n+o]=r}return o}function E(e,t,n,r){return K(V(t,e.length-n),e,n,r)}function A(e,t,n,r){return K(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function P(e,t,n,r){return K(q(t),e,n,r)}function _(e,t,n,r){return K(function(e,t){let n,r,a;const i=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,a=n%256,i.push(a),i.push(r);return i}(t,e.length-n),e,n,r)}function T(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);const r=[];let a=t;for(;a<n;){const t=e[a];let i=null,o=t>239?4:t>223?3:t>191?2:1;if(a+o<=n){let n,r,s,f;switch(o){case 1:t<128&&(i=t);break;case 2:n=e[a+1],128===(192&n)&&(f=(31&t)<<6|63&n,f>127&&(i=f));break;case 3:n=e[a+1],r=e[a+2],128===(192&n)&&128===(192&r)&&(f=(15&t)<<12|(63&n)<<6|63&r,f>2047&&(f<55296||f>57343)&&(i=f));break;case 4:n=e[a+1],r=e[a+2],s=e[a+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(f=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,f>65535&&f<1114112&&(i=f))}}null===i?(i=65533,o=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),a+=o}return function(e){const t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=C));return n}(r)}t.kMaxLength=o,f.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),f.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(f.prototype,"parent",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.buffer}}),Object.defineProperty(f.prototype,"offset",{enumerable:!0,get:function(){if(f.isBuffer(this))return this.byteOffset}}),f.poolSize=8192,f.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(f.prototype,Uint8Array.prototype),Object.setPrototypeOf(f,Uint8Array),f.alloc=function(e,t,n){return function(e,t,n){return l(e),e<=0?s(e):void 0!==t?"string"===typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},f.allocUnsafe=function(e){return u(e)},f.allocUnsafeSlow=function(e){return u(e)},f.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==f.prototype},f.compare=function(e,t){if(Z(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),Z(t,Uint8Array)&&(t=f.from(t,t.offset,t.byteLength)),!f.isBuffer(e)||!f.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let a=0,i=Math.min(n,r);a<i;++a)if(e[a]!==t[a]){n=e[a],r=t[a];break}return n<r?-1:r<n?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=f.allocUnsafe(t);let a=0;for(n=0;n<e.length;++n){let t=e[n];if(Z(t,Uint8Array))a+t.length>r.length?(f.isBuffer(t)||(t=f.from(t)),t.copy(r,a)):Uint8Array.prototype.set.call(r,t,a);else{if(!f.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,a)}a+=t.length}return r},f.byteLength=b,f.prototype._isBuffer=!0,f.prototype.swap16=function(){const e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)m(this,t,t+1);return this},f.prototype.swap32=function(){const e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},f.prototype.swap64=function(){const e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},f.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?k(this,0,e):y.apply(this,arguments)},f.prototype.toLocaleString=f.prototype.toString,f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){let e="";const n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(f.prototype[i]=f.prototype.inspect),f.prototype.compare=function(e,t,n,r,a){if(Z(e,Uint8Array)&&(e=f.from(e,e.offset,e.byteLength)),!f.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===a&&(a=this.length),t<0||n>e.length||r<0||a>this.length)throw new RangeError("out of range index");if(r>=a&&t>=n)return 0;if(r>=a)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(a>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0);const s=Math.min(i,o),c=this.slice(r,a),l=e.slice(t,n);for(let f=0;f<s;++f)if(c[f]!==l[f]){i=c[f],o=l[f];break}return i<o?-1:o<i?1:0},f.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},f.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},f.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},f.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const a=this.length-t;if((void 0===n||n>a)&&(n=a),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return w(this,e,t,n);case"utf8":case"utf-8":return E(this,e,t,n);case"ascii":case"latin1":case"binary":return A(this,e,t,n);case"base64":return P(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function x(e,t,n){let r="";n=Math.min(e.length,n);for(let a=t;a<n;++a)r+=String.fromCharCode(127&e[a]);return r}function O(e,t,n){let r="";n=Math.min(e.length,n);for(let a=t;a<n;++a)r+=String.fromCharCode(e[a]);return r}function S(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let a="";for(let i=t;i<n;++i)a+=Y[e[i]];return a}function R(e,t,n){const r=e.slice(t,n);let a="";for(let i=0;i<r.length-1;i+=2)a+=String.fromCharCode(r[i]+256*r[i+1]);return a}function I(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,a,i){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>a||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function B(e,t,n,r,a){$(t,r,a,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function j(e,t,n,r,a){$(t,r,a,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function D(e,t,n,r,a,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,4),a.write(e,t,n,r,23,4),n+4}function M(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,8),a.write(e,t,n,r,52,8),n+8}f.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,f.prototype),r},f.prototype.readUintLE=f.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],a=1,i=0;for(;++i<t&&(a*=256);)r+=this[e+i]*a;return r},f.prototype.readUintBE=f.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e+--t],a=1;for(;t>0&&(a*=256);)r+=this[e+--t]*a;return r},f.prototype.readUint8=f.prototype.readUInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),this[e]},f.prototype.readUint16LE=f.prototype.readUInt16LE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUint16BE=f.prototype.readUInt16BE=function(e,t){return e>>>=0,t||I(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUint32LE=f.prototype.readUInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUint32BE=f.prototype.readUInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readBigUInt64LE=Q((function(e){G(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,a=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(a)<<BigInt(32))})),f.prototype.readBigUInt64BE=Q((function(e){G(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],a=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(a)})),f.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=this[e],a=1,i=0;for(;++i<t&&(a*=256);)r+=this[e+i]*a;return a*=128,r>=a&&(r-=Math.pow(2,8*t)),r},f.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||I(e,t,this.length);let r=t,a=1,i=this[e+--r];for(;r>0&&(a*=256);)i+=this[e+--r]*a;return a*=128,i>=a&&(i-=Math.pow(2,8*t)),i},f.prototype.readInt8=function(e,t){return e>>>=0,t||I(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt16BE=function(e,t){e>>>=0,t||I(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},f.prototype.readInt32LE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return e>>>=0,t||I(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readBigInt64LE=Q((function(e){G(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),f.prototype.readBigInt64BE=Q((function(e){G(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||H(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),f.prototype.readFloatLE=function(e,t){return e>>>=0,t||I(e,4,this.length),a.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return e>>>=0,t||I(e,4,this.length),a.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return e>>>=0,t||I(e,8,this.length),a.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return e>>>=0,t||I(e,8,this.length),a.read(this,e,!1,52,8)},f.prototype.writeUintLE=f.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let a=1,i=0;for(this[t]=255&e;++i<n&&(a*=256);)this[t+i]=e/a&255;return t+n},f.prototype.writeUintBE=f.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){N(this,e,t,n,Math.pow(2,8*n)-1,0)}let a=n-1,i=1;for(this[t+a]=255&e;--a>=0&&(i*=256);)this[t+a]=e/i&255;return t+n},f.prototype.writeUint8=f.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},f.prototype.writeUint16LE=f.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeUint16BE=f.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeUint32LE=f.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},f.prototype.writeUint32BE=f.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeBigUInt64LE=Q((function(e){return B(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),f.prototype.writeBigUInt64BE=Q((function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),f.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let a=0,i=1,o=0;for(this[t]=255&e;++a<n&&(i*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/i>>0)-o&255;return t+n},f.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);N(this,e,t,n,r-1,-r)}let a=n-1,i=1,o=0;for(this[t+a]=255&e;--a>=0&&(i*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/i>>0)-o&255;return t+n},f.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},f.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},f.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},f.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},f.prototype.writeBigInt64LE=Q((function(e){return B(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),f.prototype.writeBigInt64BE=Q((function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),f.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},f.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},f.prototype.writeDoubleLE=function(e,t,n){return M(this,e,t,!0,n)},f.prototype.writeDoubleBE=function(e,t,n){return M(this,e,t,!1,n)},f.prototype.copy=function(e,t,n,r){if(!f.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const a=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),a},f.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!f.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(a=t;a<n;++a)this[a]=e;else{const i=f.isBuffer(e)?e:f.from(e,r),o=i.length;if(0===o)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(a=0;a<n-t;++a)this[a+t]=i[a%o]}return this};const U={};function F(e,t,n){U[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function z(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function $(e,t,n,r,a,i){if(e>n||e<t){const r="bigint"===typeof t?"n":"";let a;throw a=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new U.ERR_OUT_OF_RANGE("value",a,e)}!function(e,t,n){G(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||H(t,e.length-(n+1))}(r,a,i)}function G(e,t){if("number"!==typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function H(e,t,n){if(Math.floor(e)!==e)throw G(e,n),new U.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,a=n;return Number.isInteger(n)&&Math.abs(n)>2**32?a=z(String(n)):"bigint"===typeof n&&(a=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(a=z(a)),a+="n"),r+=` It must be ${t}. Received ${a}`,r}),RangeError);const W=/[^+/0-9A-Za-z-_]/g;function V(e,t){let n;t=t||1/0;const r=e.length;let a=null;const i=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!a){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&i.push(239,191,189);continue}a=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),a=n;continue}n=65536+(a-55296<<10|n-56320)}else a&&(t-=3)>-1&&i.push(239,191,189);if(a=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function q(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(W,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function K(e,t,n,r){let a;for(a=0;a<r&&!(a+n>=t.length||a>=e.length);++a)t[a+n]=e[a];return a}function Z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!==e}const Y=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let a=0;a<16;++a)t[r+a]=e[n]+e[a]}return t}();function Q(e){return"undefined"===typeof BigInt?X:e}function X(){throw new Error("BigInt not supported")}},28182:(e,t,n)=>{"use strict";function r(e){var t,n,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(a&&(a+=" "),a+=n);else for(t in e)e[t]&&(a&&(a+=" "),a+=t);return a}function a(){for(var e,t,n=0,a="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(a&&(a+=" "),a+=t);return a}n.r(t),n.d(t,{clsx:()=>a,default:()=>i});const i=a},97892:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,r="millisecond",a="second",i="minute",o="hour",s="day",f="week",c="month",l="quarter",u="year",d="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},m=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:m,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),a=n%60;return(t<=0?"+":"-")+m(r,2,"0")+":"+m(a,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),a=t.clone().add(r,c),i=n-a<0,o=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-a)/(i?a-o:o-a))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:u,w:f,d:s,D:d,h:o,m:i,s:a,ms:r,Q:l}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",w={};w[v]=y;var E=function(e){return e instanceof T},A=function e(t,n,r){var a;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();w[i]&&(a=i),n&&(w[i]=n,a=i);var o=t.split("-");if(!a&&o.length>1)return e(o[0])}else{var s=t.name;w[s]=t,a=s}return!r&&a&&(v=a),a||!r&&v},P=function(e,t){if(E(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new T(n)},_=g;_.l=A,_.i=E,_.w=function(e,t){return P(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var T=function(){function y(e){this.$L=A(e.locale,null,!0),this.parse(e)}var m=y.prototype;return m.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(_.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(h);if(r){var a=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],a,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},m.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},m.$utils=function(){return _},m.isValid=function(){return!(this.$d.toString()===p)},m.isSame=function(e,t){var n=P(e);return this.startOf(t)<=n&&n<=this.endOf(t)},m.isAfter=function(e,t){return P(e)<this.startOf(t)},m.isBefore=function(e,t){return this.endOf(t)<P(e)},m.$g=function(e,t,n){return _.u(e)?this[t]:this.set(n,e)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(e,t){var n=this,r=!!_.u(t)||t,l=_.p(e),p=function(e,t){var a=_.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?a:a.endOf(s)},h=function(e,t){return _.w(n.toDate()[e].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},b=this.$W,y=this.$M,m=this.$D,g="set"+(this.$u?"UTC":"");switch(l){case u:return r?p(1,0):p(31,11);case c:return r?p(1,y):p(0,y+1);case f:var v=this.$locale().weekStart||0,w=(b<v?b+7:b)-v;return p(r?m-w:m+(6-w),y);case s:case d:return h(g+"Hours",0);case o:return h(g+"Minutes",1);case i:return h(g+"Seconds",2);case a:return h(g+"Milliseconds",3);default:return this.clone()}},m.endOf=function(e){return this.startOf(e,!1)},m.$set=function(e,t){var n,f=_.p(e),l="set"+(this.$u?"UTC":""),p=(n={},n[s]=l+"Date",n[d]=l+"Date",n[c]=l+"Month",n[u]=l+"FullYear",n[o]=l+"Hours",n[i]=l+"Minutes",n[a]=l+"Seconds",n[r]=l+"Milliseconds",n)[f],h=f===s?this.$D+(t-this.$W):t;if(f===c||f===u){var b=this.clone().set(d,1);b.$d[p](h),b.init(),this.$d=b.set(d,Math.min(this.$D,b.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},m.set=function(e,t){return this.clone().$set(e,t)},m.get=function(e){return this[_.p(e)]()},m.add=function(r,l){var d,p=this;r=Number(r);var h=_.p(l),b=function(e){var t=P(p);return _.w(t.date(t.date()+Math.round(e*r)),p)};if(h===c)return this.set(c,this.$M+r);if(h===u)return this.set(u,this.$y+r);if(h===s)return b(1);if(h===f)return b(7);var y=(d={},d[i]=t,d[o]=n,d[a]=e,d)[h]||1,m=this.$d.getTime()+r*y;return _.w(m,this)},m.subtract=function(e,t){return this.add(-1*e,t)},m.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",a=_.z(this),i=this.$H,o=this.$m,s=this.$M,f=n.weekdays,c=n.months,l=function(e,n,a,i){return e&&(e[n]||e(t,r))||a[n].slice(0,i)},u=function(e){return _.s(i%12||12,e,"0")},d=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:_.s(s+1,2,"0"),MMM:l(n.monthsShort,s,c,3),MMMM:l(c,s),D:this.$D,DD:_.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,f,2),ddd:l(n.weekdaysShort,this.$W,f,3),dddd:f[this.$W],H:String(i),HH:_.s(i,2,"0"),h:u(1),hh:u(2),a:d(i,o,!0),A:d(i,o,!1),m:String(o),mm:_.s(o,2,"0"),s:String(this.$s),ss:_.s(this.$s,2,"0"),SSS:_.s(this.$ms,3,"0"),Z:a};return r.replace(b,(function(e,t){return t||h[e]||a.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,p){var h,b=_.p(d),y=P(r),m=(y.utcOffset()-this.utcOffset())*t,g=this-y,v=_.m(this,y);return v=(h={},h[u]=v/12,h[c]=v,h[l]=v/3,h[f]=(g-m)/6048e5,h[s]=(g-m)/864e5,h[o]=g/n,h[i]=g/t,h[a]=g/e,h)[b]||g,p?v:_.a(v)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return w[this.$L]},m.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=A(e,t,!0);return r&&(n.$L=r),n},m.clone=function(){return _.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},y}(),k=T.prototype;return P.prototype=k,[["$ms",r],["$s",a],["$m",i],["$H",o],["$W",s],["$M",c],["$y",u],["$D",d]].forEach((function(e){k[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),P.extend=function(e,t){return e.$i||(e(t,T,P),e.$i=!0),P},P.locale=A,P.isDayjs=E,P.unix=function(e){return P(1e3*e)},P.en=w[v],P.Ls=w,P.p={},P}()},83027:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,a,i){var o=a.prototype;i.utc=function(e){return new a({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var f=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else f.call(this)};var c=o.utcOffset;o.utcOffset=function(r,a){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?c.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var a=(""+r[0]).match(n)||["-",0,0],i=a[0],o=60*+a[1]+ +a[2];return 0===o?0:"+"===i?o:-o}(r),null===r))return this;var o=Math.abs(r)<=16?60*r:r,s=this;if(a)return s.$offset=o,s.$u=0===r,s;if(0!==r){var f=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+f,e)).$offset=o,s.$x.$localOffset=f}else s=this.utc();return s};var l=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var u=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():u.call(this)};var d=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return d.call(this,e,t,n);var r=this.local(),a=i(e).local();return d.call(r,a,t,n)}}}()},90951:e=>{"use strict";var t={single_source_shortest_paths:function(e,n,r){var a={},i={};i[n]=0;var o,s,f,c,l,u,d,p=t.PriorityQueue.make();for(p.push(n,0);!p.empty();)for(f in s=(o=p.pop()).value,c=o.cost,l=e[s]||{})l.hasOwnProperty(f)&&(u=c+l[f],d=i[f],("undefined"===typeof i[f]||d>u)&&(i[f]=u,p.push(f,u),a[f]=s));if("undefined"!==typeof r&&"undefined"===typeof i[r]){var h=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(h)}return a},extract_shortest_path_from_predecessor_list:function(e,t){for(var n=[],r=t;r;)n.push(r),e[r],r=e[r];return n.reverse(),n},find_path:function(e,n,r){var a=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(a,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,a={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(a[n]=r[n]);return a.queue=[],a.sorter=e.sorter||r.default_sorter,a},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},10153:e=>{"use strict";e.exports=function(e){for(var t=[],n=e.length,r=0;r<n;r++){var a=e.charCodeAt(r);if(a>=55296&&a<=56319&&n>r+1){var i=e.charCodeAt(r+1);i>=56320&&i<=57343&&(a=1024*(a-55296)+i-56320+65536,r+=1)}a<128?t.push(a):a<2048?(t.push(a>>6|192),t.push(63&a|128)):a<55296||a>=57344&&a<65536?(t.push(a>>12|224),t.push(a>>6&63|128),t.push(63&a|128)):a>=65536&&a<=1114111?(t.push(a>>18|240),t.push(a>>12&63|128),t.push(a>>6&63|128),t.push(63&a|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},81855:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version=void 0,t.version="6.12.0"},97883:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbiCoder=void 0;const r=n(91588),a=n(11568),i=n(21524),o=n(42203),s=n(80453),f=n(10358),c=n(10946),l=n(97331),u=n(52839),d=n(63005),p=n(76882),h=n(5092),b=n(30379),y=n(91588),m=new Map;m.set(0,"GENERIC_PANIC"),m.set(1,"ASSERT_FALSE"),m.set(17,"OVERFLOW"),m.set(18,"DIVIDE_BY_ZERO"),m.set(33,"ENUM_RANGE_ERROR"),m.set(34,"BAD_STORAGE_DATA"),m.set(49,"STACK_UNDERFLOW"),m.set(50,"ARRAY_RANGE_ERROR"),m.set(65,"OUT_OF_MEMORY"),m.set(81,"UNINITIALIZED_FUNCTION_CALL");const g=new RegExp(/^bytes([0-9]*)$/),v=new RegExp(/^(u?int)([0-9]*)$/);let w=null,E=1024;class A{#e(e){if(e.isArray())return new o.ArrayCoder(this.#e(e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new p.TupleCoder(e.components.map((e=>this.#e(e))),e.name);switch(e.baseType){case"address":return new i.AddressCoder(e.name);case"bool":return new s.BooleanCoder(e.name);case"string":return new d.StringCoder(e.name);case"bytes":return new f.BytesCoder(e.name);case"":return new l.NullCoder(e.name)}let t=e.type.match(v);if(t){let n=parseInt(t[2]||"256");return(0,r.assertArgument)(0!==n&&n<=256&&n%8===0,"invalid "+t[1]+" bit length","param",e),new u.NumberCoder(n/8,"int"===t[1],e.name)}if(t=e.type.match(g),t){let n=parseInt(t[1]);return(0,r.assertArgument)(0!==n&&n<=32,"invalid bytes length","param",e),new c.FixedBytesCoder(n,e.name)}(0,r.assertArgument)(!1,"invalid type","type",e.type)}getDefaultValue(e){const t=e.map((e=>this.#e(h.ParamType.from(e))));return new p.TupleCoder(t,"_").defaultValue()}encode(e,t){(0,r.assertArgumentCount)(t.length,e.length,"types/values length mismatch");const n=e.map((e=>this.#e(h.ParamType.from(e)))),i=new p.TupleCoder(n,"_"),o=new a.Writer;return i.encode(o,t),o.data}decode(e,t,n){const r=e.map((e=>this.#e(h.ParamType.from(e))));return new p.TupleCoder(r,"_").decode(new a.Reader(t,n,E))}static _setDefaultMaxInflation(e){(0,r.assertArgument)("number"===typeof e&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),E=e}static defaultAbiCoder(){return null==w&&(w=new A),w}static getBuiltinCallException(e,t,n){return function(e,t,n,r){let a="missing revert data",i=null,o=null;if(n){a="execution reverted";const e=(0,y.getBytes)(n);if(n=(0,y.hexlify)(n),0===e.length)a+=" (no data present; likely require(false) occurred",i="require(false)";else if(e.length%32!==4)a+=" (could not decode reason; invalid data length)";else if("0x08c379a0"===(0,y.hexlify)(e.slice(0,4)))try{i=r.decode(["string"],e.slice(4))[0],o={signature:"Error(string)",name:"Error",args:[i]},a+=`: ${JSON.stringify(i)}`}catch(f){a+=" (could not decode reason; invalid string data)"}else if("0x4e487b71"===(0,y.hexlify)(e.slice(0,4)))try{const t=Number(r.decode(["uint256"],e.slice(4))[0]);o={signature:"Panic(uint256)",name:"Panic",args:[t]},i=`Panic due to ${m.get(t)||"UNKNOWN"}(${t})`,a+=`: ${i}`}catch(f){a+=" (could not decode panic code)"}else a+=" (unknown custom error)"}const s={to:t.to?(0,b.getAddress)(t.to):null,data:t.data||"0x"};return t.from&&(s.from=(0,b.getAddress)(t.from)),(0,y.makeError)(a,"CALL_EXCEPTION",{action:e,data:n,reason:i,transaction:s,invocation:null,revert:o})}(e,t,n,A.defaultAbiCoder())}}t.AbiCoder=A},42614:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBytes32String=t.encodeBytes32String=void 0;const r=n(91588);t.encodeBytes32String=function(e){const t=(0,r.toUtf8Bytes)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,r.zeroPadBytes)(t,32)},t.decodeBytes32String=function(e){const t=(0,r.getBytes)(e,"bytes");if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");let n=31;for(;0===t[n-1];)n--;return(0,r.toUtf8String)(t.slice(0,n))}},11568:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Reader=t.Writer=t.Coder=t.checkResultErrors=t.Result=t.WordSize=void 0;const r=n(91588);t.WordSize=32;const a=new Uint8Array(t.WordSize),i=["then"],o={};function s(e,t){const n=new Error(`deferred error during ABI decoding triggered accessing ${e}`);throw n.error=t,n}class f extends Array{#t;constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=t[0];let f=t[1],c=(t[2]||[]).slice(),l=!0;a!==o&&(f=t,c=[],l=!1),super(f.length),f.forEach(((e,t)=>{this[t]=e}));const u=c.reduce(((e,t)=>("string"===typeof t&&e.set(t,(e.get(t)||0)+1),e)),new Map);if(this.#t=Object.freeze(f.map(((e,t)=>{const n=c[t];return null!=n&&1===u.get(n)?n:null}))),l)return Object.freeze(this),new Proxy(this,{get:(e,t,n)=>{if("string"===typeof t){if(t.match(/^[0-9]+$/)){const n=(0,r.getNumber)(t,"%index");if(n<0||n>=this.length)throw new RangeError("out of result range");const a=e[n];return a instanceof Error&&s(`index ${n}`,a),a}if(i.indexOf(t)>=0)return Reflect.get(e,t,n);const a=e[t];if(a instanceof Function)return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return a.apply(this===n?e:this,r)};if(!(t in e))return e.getValue.apply(this===n?e:this,[t])}return Reflect.get(e,t,n)}})}toArray(e){const t=[];return this.forEach(((n,r)=>{n instanceof Error&&s(`index ${r}`,n),e&&n instanceof f&&(n=n.toArray(e)),t.push(n)})),t}toObject(e){return this.#t.reduce(((t,n,a)=>{if((0,r.assert)(null!=n,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),!(n in t)){let r=this.getValue(n);e&&r instanceof f&&(r=r.toObject(e)),t[n]=r}return t}),{})}slice(e,t){null==e&&(e=0),e<0&&(e+=this.length)<0&&(e=0),null==t&&(t=this.length),t<0&&(t+=this.length)<0&&(t=0),t>this.length&&(t=this.length);const n=[],r=[];for(let a=e;a<t;a++)n.push(this[a]),r.push(this.#t[a]);return new f(o,n,r)}filter(e,t){const n=[],r=[];for(let a=0;a<this.length;a++){const i=this[a];i instanceof Error&&s(`index ${a}`,i),e.call(t,i,a,this)&&(n.push(i),r.push(this.#t[a]))}return new f(o,n,r)}map(e,t){const n=[];for(let r=0;r<this.length;r++){const a=this[r];a instanceof Error&&s(`index ${r}`,a),n.push(e.call(t,a,r,this))}return n}getValue(e){const t=this.#t.indexOf(e);if(-1===t)return;const n=this[t];return n instanceof Error&&s(`property ${JSON.stringify(e)}`,n.error),n}static fromItems(e,t){return new f(o,e,t)}}function c(e){let n=(0,r.toBeArray)(e);return(0,r.assert)(n.length<=t.WordSize,"value out-of-bounds","BUFFER_OVERRUN",{buffer:n,length:t.WordSize,offset:n.length}),n.length!==t.WordSize&&(n=(0,r.getBytesCopy)((0,r.concat)([a.slice(n.length%t.WordSize),n]))),n}t.Result=f,t.checkResultErrors=function(e){const t=[],n=function(e,r){if(Array.isArray(r))for(let i in r){const o=e.slice();o.push(i);try{n(o,r[i])}catch(a){t.push({path:o,error:a})}}};return n([],e),t};t.Coder=class{name;type;localName;dynamic;constructor(e,t,n,a){(0,r.defineProperties)(this,{name:e,type:t,localName:n,dynamic:a},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(e,t){(0,r.assertArgument)(!1,e,this.localName,t)}};t.Writer=class{#n;#r;constructor(){this.#n=[],this.#r=0}get data(){return(0,r.concat)(this.#n)}get length(){return this.#r}#a(e){return this.#n.push(e),this.#r+=e.length,e.length}appendWriter(e){return this.#a((0,r.getBytesCopy)(e.data))}writeBytes(e){let n=(0,r.getBytesCopy)(e);const i=n.length%t.WordSize;return i&&(n=(0,r.getBytesCopy)((0,r.concat)([n,a.slice(i)]))),this.#a(n)}writeValue(e){return this.#a(c(e))}writeUpdatableValue(){const e=this.#n.length;return this.#n.push(a),this.#r+=t.WordSize,t=>{this.#n[e]=c(t)}}};class l{allowLoose;#n;#i;#o;#s;#f;constructor(e,t,n){(0,r.defineProperties)(this,{allowLoose:!!t}),this.#n=(0,r.getBytesCopy)(e),this.#o=0,this.#s=null,this.#f=null!=n?n:1024,this.#i=0}get data(){return(0,r.hexlify)(this.#n)}get dataLength(){return this.#n.length}get consumed(){return this.#i}get bytes(){return new Uint8Array(this.#n)}#c(e){if(this.#s)return this.#s.#c(e);this.#o+=e,(0,r.assert)(this.#f<1||this.#o<=this.#f*this.dataLength,`compressed ABI data exceeds inflation ratio of ${this.#f} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:(0,r.getBytesCopy)(this.#n),offset:this.#i,length:e,info:{bytesRead:this.#o,dataLength:this.dataLength}})}#l(e,n,a){let i=Math.ceil(n/t.WordSize)*t.WordSize;return this.#i+i>this.#n.length&&(this.allowLoose&&a&&this.#i+n<=this.#n.length?i=n:(0,r.assert)(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:(0,r.getBytesCopy)(this.#n),length:this.#n.length,offset:this.#i+i})),this.#n.slice(this.#i,this.#i+i)}subReader(e){const t=new l(this.#n.slice(this.#i+e),this.allowLoose,this.#f);return t.#s=this,t}readBytes(e,t){let n=this.#l(0,e,!!t);return this.#c(e),this.#i+=n.length,n.slice(0,e)}readValue(){return(0,r.toBigInt)(this.readBytes(t.WordSize))}readIndex(){return(0,r.toNumber)(this.readBytes(t.WordSize))}}t.Reader=l},21524:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddressCoder=void 0;const r=n(30379),a=n(91525),i=n(56132),o=n(11568);class s extends o.Coder{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let n=i.Typed.dereference(t,"string");try{n=(0,r.getAddress)(n)}catch(a){return this._throwError(a.message,t)}return e.writeValue(n)}decode(e){return(0,r.getAddress)((0,a.toBeHex)(e.readValue(),20))}}t.AddressCoder=s},86387:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousCoder=void 0;const r=n(11568);class a extends r.Coder{coder;constructor(e){super(e.name,e.type,"_",e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}t.AnonymousCoder=a},42203:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayCoder=t.unpack=t.pack=void 0;const r=n(91588),a=n(56132),i=n(11568),o=n(86387);function s(e,t,n){let a=[];if(Array.isArray(n))a=n;else if(n&&"object"===typeof n){let e={};a=t.map((t=>{const a=t.localName;return(0,r.assert)(a,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:n}),(0,r.assert)(!e[a],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:n}),e[a]=!0,n[a]}))}else(0,r.assertArgument)(!1,"invalid tuple value","tuple",n);(0,r.assertArgument)(t.length===a.length,"types/value length mismatch","tuple",n);let o=new i.Writer,s=new i.Writer,f=[];t.forEach(((e,t)=>{let n=a[t];if(e.dynamic){let t=s.length;e.encode(s,n);let r=o.writeUpdatableValue();f.push((e=>{r(e+t)}))}else e.encode(o,n)})),f.forEach((e=>{e(o.length)}));let c=e.appendWriter(o);return c+=e.appendWriter(s),c}function f(e,t){let n=[],a=[],o=e.subReader(0);return t.forEach((t=>{let i=null;if(t.dynamic){let n=e.readIndex(),a=o.subReader(n);try{i=t.decode(a)}catch(s){if((0,r.isError)(s,"BUFFER_OVERRUN"))throw s;i=s,i.baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(s){if((0,r.isError)(s,"BUFFER_OVERRUN"))throw s;i=s,i.baseType=t.name,i.name=t.localName,i.type=t.type}if(void 0==i)throw new Error("investigate");n.push(i),a.push(t.localName||null)})),i.Result.fromItems(n,a)}t.pack=s,t.unpack=f;class c extends i.Coder{coder;length;constructor(e,t,n){super("array",e.type+"["+(t>=0?t:"")+"]",n,-1===t||e.dynamic),(0,r.defineProperties)(this,{coder:e,length:t})}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let n=0;n<this.length;n++)t.push(e);return t}encode(e,t){const n=a.Typed.dereference(t,"array");Array.isArray(n)||this._throwError("expected array value",n);let i=this.length;-1===i&&(i=n.length,e.writeValue(n.length)),(0,r.assertArgumentCount)(n.length,i,"coder array"+(this.localName?" "+this.localName:""));let o=[];for(let r=0;r<n.length;r++)o.push(this.coder);return s(e,o,n)}decode(e){let t=this.length;-1===t&&(t=e.readIndex(),(0,r.assert)(t*i.WordSize<=e.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:e.bytes,offset:t*i.WordSize,length:e.dataLength}));let n=[];for(let r=0;r<t;r++)n.push(new o.AnonymousCoder(this.coder));return f(e,n)}}t.ArrayCoder=c},80453:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanCoder=void 0;const r=n(56132),a=n(11568);class i extends a.Coder{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){const n=r.Typed.dereference(t,"bool");return e.writeValue(n?1:0)}decode(e){return!!e.readValue()}}t.BooleanCoder=i},10358:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BytesCoder=t.DynamicBytesCoder=void 0;const r=n(91588),a=n(11568);class i extends a.Coder{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=(0,r.getBytesCopy)(t);let n=e.writeValue(t.length);return n+=e.writeBytes(t),n}decode(e){return e.readBytes(e.readIndex(),!0)}}t.DynamicBytesCoder=i;t.BytesCoder=class extends i{constructor(e){super("bytes",e)}decode(e){return(0,r.hexlify)(super.decode(e))}}},10946:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedBytesCoder=void 0;const r=n(91588),a=n(56132),i=n(11568);class o extends i.Coder{size;constructor(e,t){let n="bytes"+String(e);super(n,n,t,!1),(0,r.defineProperties)(this,{size:e},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let n=(0,r.getBytesCopy)(a.Typed.dereference(t,this.type));return n.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(n)}decode(e){return(0,r.hexlify)(e.readBytes(this.size))}}t.FixedBytesCoder=o},97331:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NullCoder=void 0;const r=n(11568),a=new Uint8Array([]);class i extends r.Coder{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes(a)}decode(e){return e.readBytes(0),null}}t.NullCoder=i},52839:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberCoder=void 0;const r=n(91588),a=n(56132),i=n(11568),o=BigInt(0),s=BigInt(1),f=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class c extends i.Coder{size;signed;constructor(e,t,n){const a=(t?"int":"uint")+8*e;super(a,a,n,!1),(0,r.defineProperties)(this,{size:e,signed:t},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(e,t){let n=(0,r.getBigInt)(a.Typed.dereference(t,this.type)),c=(0,r.mask)(f,8*i.WordSize);if(this.signed){let e=(0,r.mask)(c,8*this.size-1);(n>e||n<-(e+s))&&this._throwError("value out-of-bounds",t),n=(0,r.toTwos)(n,8*i.WordSize)}else(n<o||n>(0,r.mask)(c,8*this.size))&&this._throwError("value out-of-bounds",t);return e.writeValue(n)}decode(e){let t=(0,r.mask)(e.readValue(),8*this.size);return this.signed&&(t=(0,r.fromTwos)(t,8*this.size)),t}}t.NumberCoder=c},63005:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringCoder=void 0;const r=n(3897),a=n(56132),i=n(10358);class o extends i.DynamicBytesCoder{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,r.toUtf8Bytes)(a.Typed.dereference(t,"string")))}decode(e){return(0,r.toUtf8String)(super.decode(e))}}t.StringCoder=o},76882:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TupleCoder=void 0;const r=n(67161),a=n(56132),i=n(11568),o=n(42203);class s extends i.Coder{coders;constructor(e,t){let n=!1;const a=[];e.forEach((e=>{e.dynamic&&(n=!0),a.push(e.type)}));super("tuple","tuple("+a.join(",")+")",t,n),(0,r.defineProperties)(this,{coders:Object.freeze(e.slice())})}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});return this.coders.forEach(((n,r)=>{let a=n.localName;a&&1===t[a]&&("length"===a&&(a="_length"),null==e[a]&&(e[a]=e[r]))})),Object.freeze(e)}encode(e,t){const n=a.Typed.dereference(t,"tuple");return(0,o.pack)(e,this.coders,n)}decode(e){return(0,o.unpack)(e,this.coders)}}t.TupleCoder=s},5092:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StructFragment=t.FunctionFragment=t.FallbackFragment=t.ConstructorFragment=t.EventFragment=t.ErrorFragment=t.NamedFragment=t.Fragment=t.ParamType=void 0;const r=n(91588),a=n(76439);function i(e){const t=new Set;return e.forEach((e=>t.add(e))),Object.freeze(t)}const o=i("external public payable override".split(" ")),s="constant external internal payable private public pure view override",f=i(s.split(" ")),c="constructor error event fallback function receive struct",l=i(c.split(" ")),u="calldata memory storage payable indexed",d=i(u.split(" ")),p=i([c,u,"tuple returns",s].join(" ").split(" ")),h={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},b=new RegExp("^(\\s*)"),y=new RegExp("^([0-9]+)"),m=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),g=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),v=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");class w{#i;#u;get offset(){return this.#i}get length(){return this.#u.length-this.#i}constructor(e){this.#i=0,this.#u=e.slice()}clone(){return new w(this.#u)}reset(){this.#i=0}#d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new w(this.#u.slice(e,t).map((t=>Object.freeze(Object.assign({},t,{match:t.match-e,linkBack:t.linkBack-e,linkNext:t.linkNext-e})))))}popKeyword(e){const t=this.peek();if("KEYWORD"!==t.type||!e.has(t.text))throw new Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){const t=this.peek();throw new Error(`expected ${e}; got ${t.type} ${JSON.stringify(t.text)}`)}return this.pop().text}popParen(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=this.#d(this.#i+1,e.match+1);return this.#i=e.match+1,t}popParams(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=[];for(;this.#i<e.match-1;){const e=this.peek().linkNext;t.push(this.#d(this.#i+1,e)),this.#i=e}return this.#i=e.match+1,t}peek(){if(this.#i>=this.#u.length)throw new Error("out-of-bounds");return this.#u[this.#i]}peekKeyword(e){const t=this.peekType("KEYWORD");return null!=t&&e.has(t)?t:null}peekType(e){if(0===this.length)return null;const t=this.peek();return t.type===e?t.text:null}pop(){const e=this.peek();return this.#i++,e}toString(){const e=[];for(let t=this.#i;t<this.#u.length;t++){const n=this.#u[t];e.push(`${n.type}:${n.text}`)}return`<TokenString ${e.join(" ")}>`}}function E(e){const t=[],n=t=>{const n=o<e.length?JSON.stringify(e[o]):"$EOI";throw new Error(`invalid token ${n} at ${o}: ${t}`)};let a=[],i=[],o=0;for(;o<e.length;){let s=e.substring(o),f=s.match(b);f&&(o+=f[1].length,s=e.substring(o));const c={depth:a.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:o,value:-1};t.push(c);let l=h[s[0]]||"";if(l){if(c.type=l,c.text=s[0],o++,"OPEN_PAREN"===l)a.push(t.length-1),i.push(t.length-1);else if("CLOSE_PAREN"==l)0===a.length&&n("no matching open bracket"),c.match=a.pop(),t[c.match].match=t.length-1,c.depth--,c.linkBack=i.pop(),t[c.linkBack].linkNext=t.length-1;else if("COMMA"===l)c.linkBack=i.pop(),t[c.linkBack].linkNext=t.length-1,i.push(t.length-1);else if("OPEN_BRACKET"===l)c.type="BRACKET";else if("CLOSE_BRACKET"===l){let e=t.pop().text;if(t.length>0&&"NUMBER"===t[t.length-1].type){const n=t.pop().text;e=n+e,t[t.length-1].value=(0,r.getNumber)(n)}if(0===t.length||"BRACKET"!==t[t.length-1].type)throw new Error("missing opening bracket");t[t.length-1].text+=e}}else if(f=s.match(m),f){if(c.text=f[1],o+=c.text.length,p.has(c.text)){c.type="KEYWORD";continue}if(c.text.match(v)){c.type="TYPE";continue}c.type="ID"}else{if(f=s.match(y),!f)throw new Error(`unexpected token ${JSON.stringify(s[0])} at position ${o}`);c.text=f[1],c.type="NUMBER",o+=c.text.length}}return new w(t.map((e=>Object.freeze(e))))}function A(e,t){let n=[];for(const r in t.keys())e.has(r)&&n.push(r);if(n.length>1)throw new Error(`conflicting types: ${n.join(", ")}`)}function P(e,t){if(t.peekKeyword(l)){const n=t.pop().text;if(n!==e)throw new Error(`expected ${e}, got ${n}`)}return t.popType("ID")}function _(e,t){const n=new Set;for(;;){const r=e.peekType("KEYWORD");if(null==r||t&&!t.has(r))break;if(e.pop(),n.has(r))throw new Error(`duplicate keywords: ${JSON.stringify(r)}`);n.add(r)}return Object.freeze(n)}function T(e){let t=_(e,f);return A(t,i("constant payable nonpayable".split(" "))),A(t,i("pure view payable nonpayable".split(" "))),t.has("view")?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function k(e,t){return e.popParams().map((e=>F.from(e,t)))}function C(e){if(e.peekType("AT")){if(e.pop(),e.peekType("NUMBER"))return(0,r.getBigInt)(e.pop().text);throw new Error("invalid gas")}return null}function x(e){if(e.length)throw new Error(`unexpected tokens at offset ${e.offset}: ${e.toString()}`)}const O=new RegExp(/^(.*)\[([0-9]*)\]$/);function S(e){const t=e.match(v);if((0,r.assertArgument)(t,"invalid type","type",e),"uint"===e)return"uint256";if("int"===e)return"int256";if(t[2]){const n=parseInt(t[2]);(0,r.assertArgument)(0!==n&&n<=32,"invalid bytes length","type",e)}else if(t[3]){const n=parseInt(t[3]);(0,r.assertArgument)(0!==n&&n<=256&&n%8===0,"invalid numeric width","type",e)}return e}const R={},I=Symbol.for("_ethers_internal"),N="_ParamTypeInternal",B="_ErrorInternal",j="_EventInternal",D="_ConstructorInternal",L="_FallbackInternal",M="_FunctionInternal",U="_StructInternal";class F{name;type;baseType;indexed;components;arrayLength;arrayChildren;constructor(e,t,n,a,i,o,s,f){if((0,r.assertPrivate)(e,R,"ParamType"),Object.defineProperty(this,I,{value:N}),o&&(o=Object.freeze(o.slice())),"array"===a){if(null==s||null==f)throw new Error("")}else if(null!=s||null!=f)throw new Error("");if("tuple"===a){if(null==o)throw new Error("")}else if(null!=o)throw new Error("");(0,r.defineProperties)(this,{name:t,type:n,baseType:a,indexed:i,components:o,arrayLength:s,arrayChildren:f})}format(e){if(null==e&&(e="sighash"),"json"===e){const t=this.name||"";if(this.isArray()){const e=JSON.parse(this.arrayChildren.format("json"));return e.name=t,e.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(e)}const n={type:"tuple"===this.baseType?"tuple":this.type,name:t};return"boolean"===typeof this.indexed&&(n.indexed=this.indexed),this.isTuple()&&(n.components=this.components.map((t=>JSON.parse(t.format(e))))),JSON.stringify(n)}let t="";return this.isArray()?(t+=this.arrayChildren.format(e),t+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?t+="("+this.components.map((t=>t.format(e))).join("full"===e?", ":",")+")":t+=this.type,"sighash"!==e&&(!0===this.indexed&&(t+=" indexed"),"full"===e&&this.name&&(t+=" "+this.name)),t}isArray(){return"array"===this.baseType}isTuple(){return"tuple"===this.baseType}isIndexable(){return null!=this.indexed}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(-1!==this.arrayLength&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map((e=>n.arrayChildren.walk(e,t)))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map(((e,r)=>n.components[r].walk(e,t)))}return t(this.type,e)}#p(e,t,n,r){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(-1!==this.arrayLength&&t.length!==this.arrayLength)throw new Error("array is wrong length");const a=this.arrayChildren,i=t.slice();return i.forEach(((t,r)=>{a.#p(e,t,n,(e=>{i[r]=e}))})),void r(i)}if(this.isTuple()){const a=this.components;let i;if(Array.isArray(t))i=t.slice();else{if(null==t||"object"!==typeof t)throw new Error("invalid tuple value");i=a.map((e=>{if(!e.name)throw new Error("cannot use object value with unnamed components");if(!(e.name in t))throw new Error(`missing value for component ${e.name}`);return t[e.name]}))}if(i.length!==this.components.length)throw new Error("array is wrong length");return i.forEach(((t,r)=>{a[r].#p(e,t,n,(e=>{i[r]=e}))})),void r(i)}const a=n(this.type,t);a.then?e.push(async function(){r(await a)}()):r(a)}async walkAsync(e,t){const n=[],r=[e];return this.#p(n,e,t,(e=>{r[0]=e})),n.length&&await Promise.all(n),r[0]}static from(e,t){if(F.isParamType(e))return e;if("string"===typeof e)try{return F.from(E(e),t)}catch(f){(0,r.assertArgument)(!1,"invalid param type","obj",e)}else if(e instanceof w){let n="",r="",a=null;_(e,i(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(r="tuple",a=e.popParams().map((e=>F.from(e))),n=`tuple(${a.map((e=>e.format())).join(",")})`):(n=S(e.popType("TYPE")),r=n);let o=null,s=null;for(;e.length&&e.peekType("BRACKET");){const t=e.pop();o=new F(R,"",n,r,null,a,s,o),s=t.value,n+=t.text,r="array",a=null}let f=null;if(_(e,d).has("indexed")){if(!t)throw new Error("");f=!0}const c=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new F(R,c,n,r,f,a,s,o)}const n=e.name;(0,r.assertArgument)(!n||"string"===typeof n&&n.match(g),"invalid name","obj.name",n);let a=e.indexed;null!=a&&((0,r.assertArgument)(t,"parameter cannot be indexed","obj.indexed",e.indexed),a=!!a);let o=e.type,s=o.match(O);if(s){const t=parseInt(s[2]||"-1"),r=F.from({type:s[1],components:e.components});return new F(R,n||"",o,"array",a,null,t,r)}if("tuple"===o||o.startsWith("tuple(")||o.startsWith("(")){const t=null!=e.components?e.components.map((e=>F.from(e))):null;return new F(R,n||"",o,"tuple",a,t,null,null)}return o=S(e.type),new F(R,n||"",o,o,a,null,null,null)}static isParamType(e){return e&&e[I]===N}}t.ParamType=F;class z{type;inputs;constructor(e,t,n){(0,r.assertPrivate)(e,R,"Fragment"),n=Object.freeze(n.slice()),(0,r.defineProperties)(this,{type:t,inputs:n})}static from(e){if("string"===typeof e){try{z.from(JSON.parse(e))}catch(t){}return z.from(E(e))}if(e instanceof w){switch(e.peekKeyword(l)){case"constructor":return V.from(e);case"error":return H.from(e);case"event":return W.from(e);case"fallback":case"receive":return q.from(e);case"function":return K.from(e);case"struct":return Z.from(e)}}else if("object"===typeof e){switch(e.type){case"constructor":return V.from(e);case"error":return H.from(e);case"event":return W.from(e);case"fallback":case"receive":return q.from(e);case"function":return K.from(e);case"struct":return Z.from(e)}(0,r.assert)(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}(0,r.assertArgument)(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return V.isFragment(e)}static isError(e){return H.isFragment(e)}static isEvent(e){return W.isFragment(e)}static isFunction(e){return K.isFragment(e)}static isStruct(e){return Z.isFragment(e)}}t.Fragment=z;class $ extends z{name;constructor(e,t,n,a){super(e,t,a),(0,r.assertArgument)("string"===typeof n&&n.match(g),"invalid identifier","name",n),a=Object.freeze(a.slice()),(0,r.defineProperties)(this,{name:n})}}function G(e,t){return"("+t.map((t=>t.format(e))).join("full"===e?", ":",")+")"}t.NamedFragment=$;class H extends ${constructor(e,t,n){super(e,"error",t,n),Object.defineProperty(this,I,{value:B})}get selector(){return(0,a.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("error"),t.push(this.name+G(e,this.inputs)),t.join(" ")}static from(e){if(H.isFragment(e))return e;if("string"===typeof e)return H.from(E(e));if(e instanceof w){const t=P("error",e),n=k(e);return x(e),new H(R,t,n)}return new H(R,e.name,e.inputs?e.inputs.map(F.from):[])}static isFragment(e){return e&&e[I]===B}}t.ErrorFragment=H;class W extends ${anonymous;constructor(e,t,n,a){super(e,"event",t,n),Object.defineProperty(this,I,{value:j}),(0,r.defineProperties)(this,{anonymous:a})}get topicHash(){return(0,a.id)(this.format("sighash"))}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("event"),t.push(this.name+G(e,this.inputs)),"sighash"!==e&&this.anonymous&&t.push("anonymous"),t.join(" ")}static getTopicHash(e,t){t=(t||[]).map((e=>F.from(e)));return new W(R,e,t,!1).topicHash}static from(e){if(W.isFragment(e))return e;if("string"===typeof e)try{return W.from(E(e))}catch(t){(0,r.assertArgument)(!1,"invalid event fragment","obj",e)}else if(e instanceof w){const t=P("event",e),n=k(e,!0),r=!!_(e,i(["anonymous"])).has("anonymous");return x(e),new W(R,t,n,r)}return new W(R,e.name,e.inputs?e.inputs.map((e=>F.from(e,!0))):[],!!e.anonymous)}static isFragment(e){return e&&e[I]===j}}t.EventFragment=W;class V extends z{payable;gas;constructor(e,t,n,a,i){super(e,t,n),Object.defineProperty(this,I,{value:D}),(0,r.defineProperties)(this,{payable:a,gas:i})}format(e){if((0,r.assert)(null!=e&&"sighash"!==e,"cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),"json"===e)return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[`constructor${G(e,this.inputs)}`];return this.payable&&t.push("payable"),null!=this.gas&&t.push(`@${this.gas.toString()}`),t.join(" ")}static from(e){if(V.isFragment(e))return e;if("string"===typeof e)try{return V.from(E(e))}catch(t){(0,r.assertArgument)(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof w){_(e,i(["constructor"]));const t=k(e),n=!!_(e,o).has("payable"),r=C(e);return x(e),new V(R,"constructor",t,n,r)}return new V(R,"constructor",e.inputs?e.inputs.map(F.from):[],!!e.payable,null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[I]===D}}t.ConstructorFragment=V;class q extends z{payable;constructor(e,t,n){super(e,"fallback",t),Object.defineProperty(this,I,{value:L}),(0,r.defineProperties)(this,{payable:n})}format(e){const t=0===this.inputs.length?"receive":"fallback";if("json"===e){const e=this.payable?"payable":"nonpayable";return JSON.stringify({type:t,stateMutability:e})}return`${t}()${this.payable?" payable":""}`}static from(e){if(q.isFragment(e))return e;if("string"===typeof e)try{return q.from(E(e))}catch(t){(0,r.assertArgument)(!1,"invalid fallback fragment","obj",e)}else if(e instanceof w){const t=e.toString(),n=e.peekKeyword(i(["fallback","receive"]));(0,r.assertArgument)(n,"type must be fallback or receive","obj",t);if("receive"===e.popKeyword(i(["fallback","receive"]))){const t=k(e);return(0,r.assertArgument)(0===t.length,"receive cannot have arguments","obj.inputs",t),_(e,i(["payable"])),x(e),new q(R,[],!0)}let a=k(e);a.length?(0,r.assertArgument)(1===a.length&&"bytes"===a[0].type,"invalid fallback inputs","obj.inputs",a.map((e=>e.format("minimal"))).join(", ")):a=[F.from("bytes")];const o=T(e);if((0,r.assertArgument)("nonpayable"===o||"payable"===o,"fallback cannot be constants","obj.stateMutability",o),_(e,i(["returns"])).has("returns")){const t=k(e);(0,r.assertArgument)(1===t.length&&"bytes"===t[0].type,"invalid fallback outputs","obj.outputs",t.map((e=>e.format("minimal"))).join(", "))}return x(e),new q(R,a,"payable"===o)}if("receive"===e.type)return new q(R,[],!0);if("fallback"===e.type){const t=[F.from("bytes")],n="payable"===e.stateMutability;return new q(R,t,n)}(0,r.assertArgument)(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[I]===L}}t.FallbackFragment=q;class K extends ${constant;outputs;stateMutability;payable;gas;constructor(e,t,n,a,i,o){super(e,"function",t,a),Object.defineProperty(this,I,{value:M}),i=Object.freeze(i.slice());const s="view"===n||"pure"===n,f="payable"===n;(0,r.defineProperties)(this,{constant:s,gas:o,outputs:i,payable:f,stateMutability:n})}get selector(){return(0,a.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e)))),outputs:this.outputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("function"),t.push(this.name+G(e,this.inputs)),"sighash"!==e&&("nonpayable"!==this.stateMutability&&t.push(this.stateMutability),this.outputs&&this.outputs.length&&(t.push("returns"),t.push(G(e,this.outputs))),null!=this.gas&&t.push(`@${this.gas.toString()}`)),t.join(" ")}static getSelector(e,t){t=(t||[]).map((e=>F.from(e)));return new K(R,e,"view",t,[],null).selector}static from(e){if(K.isFragment(e))return e;if("string"===typeof e)try{return K.from(E(e))}catch(n){(0,r.assertArgument)(!1,"invalid function fragment","obj",e)}else if(e instanceof w){const t=P("function",e),n=k(e),r=T(e);let a=[];_(e,i(["returns"])).has("returns")&&(a=k(e));const o=C(e);return x(e),new K(R,t,r,n,a,o)}let t=e.stateMutability;return null==t&&(t="payable","boolean"===typeof e.constant?(t="view",e.constant||(t="payable","boolean"!==typeof e.payable||e.payable||(t="nonpayable"))):"boolean"!==typeof e.payable||e.payable||(t="nonpayable")),new K(R,e.name,t,e.inputs?e.inputs.map(F.from):[],e.outputs?e.outputs.map(F.from):[],null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[I]===M}}t.FunctionFragment=K;class Z extends ${constructor(e,t,n){super(e,"struct",t,n),Object.defineProperty(this,I,{value:U})}format(){throw new Error("@TODO")}static from(e){if("string"===typeof e)try{return Z.from(E(e))}catch(t){(0,r.assertArgument)(!1,"invalid struct fragment","obj",e)}else if(e instanceof w){const t=P("struct",e),n=k(e);return x(e),new Z(R,t,n)}return new Z(R,e.name,e.inputs?e.inputs.map(F.from):[])}static isFragment(e){return e&&e[I]===U}}t.StructFragment=Z},16492:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Typed=t.Result=t.TransactionDescription=t.LogDescription=t.ErrorDescription=t.Interface=t.Indexed=t.checkResultErrors=t.StructFragment=t.ParamType=t.NamedFragment=t.FunctionFragment=t.Fragment=t.FallbackFragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.encodeBytes32String=t.decodeBytes32String=t.AbiCoder=void 0;var r=n(97883);Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return r.AbiCoder}});var a=n(42614);Object.defineProperty(t,"decodeBytes32String",{enumerable:!0,get:function(){return a.decodeBytes32String}}),Object.defineProperty(t,"encodeBytes32String",{enumerable:!0,get:function(){return a.encodeBytes32String}});var i=n(5092);Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return i.ConstructorFragment}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return i.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return i.EventFragment}}),Object.defineProperty(t,"FallbackFragment",{enumerable:!0,get:function(){return i.FallbackFragment}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return i.Fragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return i.FunctionFragment}}),Object.defineProperty(t,"NamedFragment",{enumerable:!0,get:function(){return i.NamedFragment}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return i.ParamType}}),Object.defineProperty(t,"StructFragment",{enumerable:!0,get:function(){return i.StructFragment}});var o=n(63328);Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return o.checkResultErrors}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return o.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return o.Interface}}),Object.defineProperty(t,"ErrorDescription",{enumerable:!0,get:function(){return o.ErrorDescription}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return o.LogDescription}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return o.TransactionDescription}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return o.Result}});var s=n(56132);Object.defineProperty(t,"Typed",{enumerable:!0,get:function(){return s.Typed}})},63328:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Interface=t.Indexed=t.ErrorDescription=t.TransactionDescription=t.LogDescription=t.Result=t.checkResultErrors=void 0;const r=n(86425),a=n(76439),i=n(91588),o=n(97883),s=n(11568);Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return s.checkResultErrors}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return s.Result}});const f=n(5092),c=n(56132);class l{fragment;name;signature;topic;args;constructor(e,t,n){const r=e.name,a=e.format();(0,i.defineProperties)(this,{fragment:e,name:r,signature:a,topic:t,args:n})}}t.LogDescription=l;class u{fragment;name;args;signature;selector;value;constructor(e,t,n,r){const a=e.name,o=e.format();(0,i.defineProperties)(this,{fragment:e,name:a,args:n,signature:o,selector:t,value:r})}}t.TransactionDescription=u;class d{fragment;name;args;signature;selector;constructor(e,t,n){const r=e.name,a=e.format();(0,i.defineProperties)(this,{fragment:e,name:r,args:n,signature:a,selector:t})}}t.ErrorDescription=d;class p{hash;_isIndexed;static isIndexed(e){return!(!e||!e._isIndexed)}constructor(e){(0,i.defineProperties)(this,{hash:e,_isIndexed:!0})}}t.Indexed=p;const h={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},b={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:e=>`reverted with reason string ${JSON.stringify(e)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:e=>{let t="unknown panic code";return e>=0&&e<=255&&h[e.toString()]&&(t=h[e.toString()]),`reverted with panic code 0x${e.toString(16)} (${t})`}}};class y{fragments;deploy;fallback;receive;#h;#b;#y;#m;constructor(e){let t=[];t="string"===typeof e?JSON.parse(e):e,this.#y=new Map,this.#h=new Map,this.#b=new Map;const n=[];for(const i of t)try{n.push(f.Fragment.from(i))}catch(o){console.log(`[Warning] Invalid Fragment ${JSON.stringify(i)}:`,o.message)}(0,i.defineProperties)(this,{fragments:Object.freeze(n)});let r=null,a=!1;this.#m=this.getAbiCoder(),this.fragments.forEach(((e,t)=>{let n;switch(e.type){case"constructor":return this.deploy?void console.log("duplicate definition - constructor"):void(0,i.defineProperties)(this,{deploy:e});case"fallback":return void(0===e.inputs.length?a=!0:((0,i.assertArgument)(!r||e.payable!==r.payable,"conflicting fallback fragments",`fragments[${t}]`,e),r=e,a=r.payable));case"function":n=this.#y;break;case"event":n=this.#b;break;case"error":n=this.#h;break;default:return}const o=e.format();n.has(o)||n.set(o,e)})),this.deploy||(0,i.defineProperties)(this,{deploy:f.ConstructorFragment.from("constructor()")}),(0,i.defineProperties)(this,{fallback:r,receive:a})}format(e){const t=e?"minimal":"full";return this.fragments.map((e=>e.format(t)))}formatJson(){const e=this.fragments.map((e=>e.format("json")));return JSON.stringify(e.map((e=>JSON.parse(e))))}getAbiCoder(){return o.AbiCoder.defaultAbiCoder()}#g(e,t,n){if((0,i.isHexString)(e)){const t=e.toLowerCase();for(const e of this.#y.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){const r=[];for(const[t,n]of this.#y)t.split("(")[0]===e&&r.push(n);if(t){const e=t.length>0?t[t.length-1]:null;let n=t.length,a=!0;c.Typed.isTyped(e)&&"overrides"===e.type&&(a=!1,n--);for(let t=r.length-1;t>=0;t--){const e=r[t].inputs.length;e===n||a&&e===n-1||r.splice(t,1)}for(let i=r.length-1;i>=0;i--){const e=r[i].inputs;for(let n=0;n<t.length;n++)if(c.Typed.isTyped(t[n])){if(n>=e.length){if("overrides"===t[n].type)continue;r.splice(i,1);break}if(t[n].type!==e[n].baseType){r.splice(i,1);break}}}}if(1===r.length&&t&&t.length!==r[0].inputs.length){const e=t[t.length-1];(null==e||Array.isArray(e)||"object"!==typeof e)&&r.splice(0,1)}if(0===r.length)return null;if(r.length>1&&n){const t=r.map((e=>JSON.stringify(e.format()))).join(", ");(0,i.assertArgument)(!1,`ambiguous function description (i.e. matches ${t})`,"key",e)}return r[0]}const r=this.#y.get(f.FunctionFragment.from(e).format());return r||null}getFunctionName(e){const t=this.#g(e,null,!1);return(0,i.assertArgument)(t,"no matching function","key",e),t.name}hasFunction(e){return!!this.#g(e,null,!1)}getFunction(e,t){return this.#g(e,t||null,!0)}forEachFunction(e){const t=Array.from(this.#y.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n<t.length;n++){const r=t[n];e(this.#y.get(r),n)}}#v(e,t,n){if((0,i.isHexString)(e)){const t=e.toLowerCase();for(const e of this.#b.values())if(t===e.topicHash)return e;return null}if(-1===e.indexOf("(")){const r=[];for(const[t,n]of this.#b)t.split("(")[0]===e&&r.push(n);if(t){for(let e=r.length-1;e>=0;e--)r[e].inputs.length<t.length&&r.splice(e,1);for(let e=r.length-1;e>=0;e--){const n=r[e].inputs;for(let a=0;a<t.length;a++)if(c.Typed.isTyped(t[a])&&t[a].type!==n[a].baseType){r.splice(e,1);break}}}if(0===r.length)return null;if(r.length>1&&n){const t=r.map((e=>JSON.stringify(e.format()))).join(", ");(0,i.assertArgument)(!1,`ambiguous event description (i.e. matches ${t})`,"key",e)}return r[0]}const r=this.#b.get(f.EventFragment.from(e).format());return r||null}getEventName(e){const t=this.#v(e,null,!1);return(0,i.assertArgument)(t,"no matching event","key",e),t.name}hasEvent(e){return!!this.#v(e,null,!1)}getEvent(e,t){return this.#v(e,t||null,!0)}forEachEvent(e){const t=Array.from(this.#b.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n<t.length;n++){const r=t[n];e(this.#b.get(r),n)}}getError(e,t){if((0,i.isHexString)(e)){const t=e.toLowerCase();if(b[t])return f.ErrorFragment.from(b[t].signature);for(const e of this.#h.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){const t=[];for(const[n,r]of this.#h)n.split("(")[0]===e&&t.push(r);if(0===t.length)return"Error"===e?f.ErrorFragment.from("error Error(string)"):"Panic"===e?f.ErrorFragment.from("error Panic(uint256)"):null;if(t.length>1){const n=t.map((e=>JSON.stringify(e.format()))).join(", ");(0,i.assertArgument)(!1,`ambiguous error description (i.e. ${n})`,"name",e)}return t[0]}if("Error(string)"===(e=f.ErrorFragment.from(e).format()))return f.ErrorFragment.from("error Error(string)");if("Panic(uint256)"===e)return f.ErrorFragment.from("error Panic(uint256)");const n=this.#h.get(e);return n||null}forEachError(e){const t=Array.from(this.#h.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n<t.length;n++){const r=t[n];e(this.#h.get(r),n)}}_decodeParams(e,t){return this.#m.decode(e,t)}_encodeParams(e,t){return this.#m.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){if("string"===typeof e){const t=this.getError(e);(0,i.assertArgument)(t,"unknown error","fragment",e),e=t}return(0,i.assertArgument)((0,i.dataSlice)(t,0,4)===e.selector,`data signature does not match error ${e.name}.`,"data",t),this._decodeParams(e.inputs,(0,i.dataSlice)(t,4))}encodeErrorResult(e,t){if("string"===typeof e){const t=this.getError(e);(0,i.assertArgument)(t,"unknown error","fragment",e),e=t}return(0,i.concat)([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionData(e,t){if("string"===typeof e){const t=this.getFunction(e);(0,i.assertArgument)(t,"unknown function","fragment",e),e=t}return(0,i.assertArgument)((0,i.dataSlice)(t,0,4)===e.selector,`data signature does not match function ${e.name}.`,"data",t),this._decodeParams(e.inputs,(0,i.dataSlice)(t,4))}encodeFunctionData(e,t){if("string"===typeof e){const t=this.getFunction(e);(0,i.assertArgument)(t,"unknown function","fragment",e),e=t}return(0,i.concat)([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionResult(e,t){if("string"===typeof e){const t=this.getFunction(e);(0,i.assertArgument)(t,"unknown function","fragment",e),e=t}let n="invalid length for result data";const r=(0,i.getBytesCopy)(t);if(r.length%32===0)try{return this.#m.decode(e.outputs,r)}catch(a){n="could not decode result data"}(0,i.assert)(!1,n,"BAD_DATA",{value:(0,i.hexlify)(r),info:{method:e.name,signature:e.format()}})}makeError(e,t){const n=(0,i.getBytes)(e,"data"),r=o.AbiCoder.getBuiltinCallException("call",t,n);if(r.message.startsWith("execution reverted (unknown custom error)")){const e=(0,i.hexlify)(n.slice(0,4)),t=this.getError(e);if(t)try{const e=this.#m.decode(t.inputs,n.slice(4));r.revert={name:t.name,signature:t.format(),args:e},r.reason=r.revert.signature,r.message=`execution reverted: ${r.reason}`}catch(s){r.message="execution reverted (coult not decode custom error)"}}const a=this.parseTransaction(t);return a&&(r.invocation={method:a.name,signature:a.signature,args:a.args}),r}encodeFunctionResult(e,t){if("string"===typeof e){const t=this.getFunction(e);(0,i.assertArgument)(t,"unknown function","fragment",e),e=t}return(0,i.hexlify)(this.#m.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){if("string"===typeof e){const t=this.getEvent(e);(0,i.assertArgument)(t,"unknown event","eventFragment",e),e=t}(0,i.assert)(t.length<=e.inputs.length,`too many arguments for ${e.format()}`,"UNEXPECTED_ARGUMENT",{count:t.length,expectedCount:e.inputs.length});const n=[];e.anonymous||n.push(e.topicHash);const o=(e,t)=>"string"===e.type?(0,a.id)(t):"bytes"===e.type?(0,r.keccak256)((0,i.hexlify)(t)):("bool"===e.type&&"boolean"===typeof t?t=t?"0x01":"0x00":e.type.match(/^u?int/)?t=(0,i.toBeHex)(t):e.type.match(/^bytes/)?t=(0,i.zeroPadBytes)(t,32):"address"===e.type&&this.#m.encode(["address"],[t]),(0,i.zeroPadValue)((0,i.hexlify)(t),32));for(t.forEach(((t,r)=>{const a=e.inputs[r];a.indexed?null==t?n.push(null):"array"===a.baseType||"tuple"===a.baseType?(0,i.assertArgument)(!1,"filtering with tuples or arrays not supported","contract."+a.name,t):Array.isArray(t)?n.push(t.map((e=>o(a,e)))):n.push(o(a,t)):(0,i.assertArgument)(null==t,"cannot filter non-indexed parameters; must be null","contract."+a.name,t)}));n.length&&null===n[n.length-1];)n.pop();return n}encodeEventLog(e,t){if("string"===typeof e){const t=this.getEvent(e);(0,i.assertArgument)(t,"unknown event","eventFragment",e),e=t}const n=[],o=[],s=[];return e.anonymous||n.push(e.topicHash),(0,i.assertArgument)(t.length===e.inputs.length,"event arguments/values mismatch","values",t),e.inputs.forEach(((e,i)=>{const f=t[i];if(e.indexed)if("string"===e.type)n.push((0,a.id)(f));else if("bytes"===e.type)n.push((0,r.keccak256)(f));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(this.#m.encode([e.type],[f]))}else o.push(e),s.push(f)})),{data:this.#m.encode(o,s),topics:n}}decodeEventLog(e,t,n){if("string"===typeof e){const t=this.getEvent(e);(0,i.assertArgument)(t,"unknown event","eventFragment",e),e=t}if(null!=n&&!e.anonymous){const t=e.topicHash;(0,i.assertArgument)((0,i.isHexString)(n[0],32)&&n[0].toLowerCase()===t,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const r=[],a=[],o=[];e.inputs.forEach(((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(r.push(f.ParamType.from({type:"bytes32",name:e.name})),o.push(!0)):(r.push(e),o.push(!1)):(a.push(e),o.push(!1))}));const c=null!=n?this.#m.decode(r,(0,i.concat)(n)):null,l=this.#m.decode(a,t,!0),u=[],d=[];let h=0,b=0;return e.inputs.forEach(((e,t)=>{let n=null;if(e.indexed)if(null==c)n=new p(null);else if(o[t])n=new p(c[b++]);else try{n=c[b++]}catch(r){n=r}else try{n=l[h++]}catch(r){n=r}u.push(n),d.push(e.name||null)})),s.Result.fromItems(u,d)}parseTransaction(e){const t=(0,i.getBytes)(e.data,"tx.data"),n=(0,i.getBigInt)(null!=e.value?e.value:0,"tx.value"),r=this.getFunction((0,i.hexlify)(t.slice(0,4)));if(!r)return null;const a=this.#m.decode(r.inputs,t.slice(4));return new u(r,r.selector,a,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new l(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){const t=(0,i.hexlify)(e),n=this.getError((0,i.dataSlice)(t,0,4));if(!n)return null;const r=this.#m.decode(n.inputs,(0,i.dataSlice)(t,4));return new d(n,n.selector,r)}static from(e){return e instanceof y?e:"string"===typeof e?new y(JSON.parse(e)):"function"===typeof e.format?new y(e.format("json")):new y(e)}}t.Interface=y},56132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Typed=void 0;const r=n(91588),a={};function i(e,t){let n=!1;return t<0&&(n=!0,t*=-1),new f(a,`${n?"":"u"}int${t}`,e,{signed:n,width:t})}function o(e,t){return new f(a,`bytes${t||""}`,e,{size:t})}const s=Symbol.for("_ethers_typed");class f{type;value;#w;_typedSymbol;constructor(e,t,n,i){null==i&&(i=null),(0,r.assertPrivate)(a,e,"Typed"),(0,r.defineProperties)(this,{_typedSymbol:s,type:t,value:n}),this.#w=i,this.format()}format(){if("array"===this.type)throw new Error("");if("dynamicArray"===this.type)throw new Error("");return"tuple"===this.type?`tuple(${this.value.map((e=>e.format())).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return"string"===this.type}get tupleName(){if("tuple"!==this.type)throw TypeError("not a tuple");return this.#w}get arrayLength(){if("array"!==this.type)throw TypeError("not an array");return!0===this.#w?-1:!1===this.#w?this.value.length:null}static from(e,t){return new f(a,e,t)}static uint8(e){return i(e,8)}static uint16(e){return i(e,16)}static uint24(e){return i(e,24)}static uint32(e){return i(e,32)}static uint40(e){return i(e,40)}static uint48(e){return i(e,48)}static uint56(e){return i(e,56)}static uint64(e){return i(e,64)}static uint72(e){return i(e,72)}static uint80(e){return i(e,80)}static uint88(e){return i(e,88)}static uint96(e){return i(e,96)}static uint104(e){return i(e,104)}static uint112(e){return i(e,112)}static uint120(e){return i(e,120)}static uint128(e){return i(e,128)}static uint136(e){return i(e,136)}static uint144(e){return i(e,144)}static uint152(e){return i(e,152)}static uint160(e){return i(e,160)}static uint168(e){return i(e,168)}static uint176(e){return i(e,176)}static uint184(e){return i(e,184)}static uint192(e){return i(e,192)}static uint200(e){return i(e,200)}static uint208(e){return i(e,208)}static uint216(e){return i(e,216)}static uint224(e){return i(e,224)}static uint232(e){return i(e,232)}static uint240(e){return i(e,240)}static uint248(e){return i(e,248)}static uint256(e){return i(e,256)}static uint(e){return i(e,256)}static int8(e){return i(e,-8)}static int16(e){return i(e,-16)}static int24(e){return i(e,-24)}static int32(e){return i(e,-32)}static int40(e){return i(e,-40)}static int48(e){return i(e,-48)}static int56(e){return i(e,-56)}static int64(e){return i(e,-64)}static int72(e){return i(e,-72)}static int80(e){return i(e,-80)}static int88(e){return i(e,-88)}static int96(e){return i(e,-96)}static int104(e){return i(e,-104)}static int112(e){return i(e,-112)}static int120(e){return i(e,-120)}static int128(e){return i(e,-128)}static int136(e){return i(e,-136)}static int144(e){return i(e,-144)}static int152(e){return i(e,-152)}static int160(e){return i(e,-160)}static int168(e){return i(e,-168)}static int176(e){return i(e,-176)}static int184(e){return i(e,-184)}static int192(e){return i(e,-192)}static int200(e){return i(e,-200)}static int208(e){return i(e,-208)}static int216(e){return i(e,-216)}static int224(e){return i(e,-224)}static int232(e){return i(e,-232)}static int240(e){return i(e,-240)}static int248(e){return i(e,-248)}static int256(e){return i(e,-256)}static int(e){return i(e,-256)}static bytes1(e){return o(e,1)}static bytes2(e){return o(e,2)}static bytes3(e){return o(e,3)}static bytes4(e){return o(e,4)}static bytes5(e){return o(e,5)}static bytes6(e){return o(e,6)}static bytes7(e){return o(e,7)}static bytes8(e){return o(e,8)}static bytes9(e){return o(e,9)}static bytes10(e){return o(e,10)}static bytes11(e){return o(e,11)}static bytes12(e){return o(e,12)}static bytes13(e){return o(e,13)}static bytes14(e){return o(e,14)}static bytes15(e){return o(e,15)}static bytes16(e){return o(e,16)}static bytes17(e){return o(e,17)}static bytes18(e){return o(e,18)}static bytes19(e){return o(e,19)}static bytes20(e){return o(e,20)}static bytes21(e){return o(e,21)}static bytes22(e){return o(e,22)}static bytes23(e){return o(e,23)}static bytes24(e){return o(e,24)}static bytes25(e){return o(e,25)}static bytes26(e){return o(e,26)}static bytes27(e){return o(e,27)}static bytes28(e){return o(e,28)}static bytes29(e){return o(e,29)}static bytes30(e){return o(e,30)}static bytes31(e){return o(e,31)}static bytes32(e){return o(e,32)}static address(e){return new f(a,"address",e)}static bool(e){return new f(a,"bool",!!e)}static bytes(e){return new f(a,"bytes",e)}static string(e){return new f(a,"string",e)}static array(e,t){throw new Error("not implemented yet")}static tuple(e,t){throw new Error("not implemented yet")}static overrides(e){return new f(a,"overrides",Object.assign({},e))}static isTyped(e){return e&&"object"===typeof e&&"_typedSymbol"in e&&e._typedSymbol===s}static dereference(e,t){if(f.isTyped(e)){if(e.type!==t)throw new Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}}t.Typed=f},53172:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIcapAddress=t.getAddress=void 0;const r=n(86425),a=n(91588),i=BigInt(0),o=BigInt(36);function s(e){const t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let r=0;r<40;r++)n[r]=t[r].charCodeAt(0);const i=(0,a.getBytes)((0,r.keccak256)(n));for(let r=0;r<40;r+=2)i[r>>1]>>4>=8&&(t[r]=t[r].toUpperCase()),(15&i[r>>1])>=8&&(t[r+1]=t[r+1].toUpperCase());return"0x"+t.join("")}const f={};for(let p=0;p<10;p++)f[String(p)]=String(p);for(let p=0;p<26;p++)f[String.fromCharCode(65+p)]=String(10+p);const c=15;function l(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>f[e])).join("");for(;t.length>=c;){let e=t.substring(0,c);t=parseInt(e,10)%97+t.substring(e.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n="0"+n;return n}const u=function(){const e={};for(let t=0;t<36;t++){e["0123456789abcdefghijklmnopqrstuvwxyz"[t]]=BigInt(t)}return e}();function d(e){if((0,a.assertArgument)("string"===typeof e,"invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);const t=s(e);return(0,a.assertArgument)(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,a.assertArgument)(e.substring(2,4)===l(e),"bad icap checksum","address",e);let t=function(e){e=e.toLowerCase();let t=i;for(let n=0;n<e.length;n++)t=t*o+u[e[n]];return t}(e.substring(4)).toString(16);for(;t.length<40;)t="0"+t;return s("0x"+t)}(0,a.assertArgument)(!1,"invalid address","address",e)}t.getAddress=d,t.getIcapAddress=function(e){let t=BigInt(d(e)).toString(36).toUpperCase();for(;t.length<30;)t="0"+t;return"XE"+l("XE00"+t)+t}},51968:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=void 0;const r=n(91588),a=n(53172);function i(e){return e&&"function"===typeof e.getAddress}async function o(e,t){const n=await t;return null!=n&&"0x0000000000000000000000000000000000000000"!==n||((0,r.assert)("string"!==typeof e,"unconfigured name","UNCONFIGURED_NAME",{value:e}),(0,r.assertArgument)(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),(0,a.getAddress)(n)}t.isAddressable=i,t.isAddress=function(e){try{return(0,a.getAddress)(e),!0}catch(t){}return!1},t.resolveAddress=function(e,t){return"string"===typeof e?e.match(/^0x[0-9a-f]{40}$/i)?(0,a.getAddress)(e):((0,r.assert)(null!=t,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),o(e,t.resolveName(e))):i(e)?o(e,e.getAddress()):e&&"function"===typeof e.then?o(e,e):void(0,r.assertArgument)(!1,"unsupported addressable value","target",e)}},99059:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCreate2Address=t.getCreateAddress=void 0;const r=n(86425),a=n(91588),i=n(53172);t.getCreateAddress=function(e){const t=(0,i.getAddress)(e.from);let n=(0,a.getBigInt)(e.nonce,"tx.nonce").toString(16);return n="0"===n?"0x":n.length%2?"0x0"+n:"0x"+n,(0,i.getAddress)((0,a.dataSlice)((0,r.keccak256)((0,a.encodeRlp)([t,n])),12))},t.getCreate2Address=function(e,t,n){const o=(0,i.getAddress)(e),s=(0,a.getBytes)(t,"salt"),f=(0,a.getBytes)(n,"initCodeHash");return(0,a.assertArgument)(32===s.length,"salt must be 32 bytes","salt",t),(0,a.assertArgument)(32===f.length,"initCodeHash must be 32 bytes","initCodeHash",n),(0,i.getAddress)((0,a.dataSlice)((0,r.keccak256)((0,a.concat)(["0xff",o,s,f])),12))}},30379:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=void 0;var r=n(53172);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return r.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return r.getIcapAddress}});var a=n(99059);Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return a.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return a.getCreate2Address}});var i=n(51968);Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return i.isAddressable}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return i.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return i.resolveAddress}})},5604:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroAddress=void 0,t.ZeroAddress="0x0000000000000000000000000000000000000000"},18025:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ZeroHash=void 0,t.ZeroHash="0x0000000000000000000000000000000000000000000000000000000000000000"},8753:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=t.ZeroHash=t.ZeroAddress=void 0;var r=n(5604);Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return r.ZeroAddress}});var a=n(18025);Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return a.ZeroHash}});var i=n(21765);Object.defineProperty(t,"N",{enumerable:!0,get:function(){return i.N}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return i.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return i.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return i.MinInt256}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return i.MaxInt256}});var o=n(95772);Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return o.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return o.MessagePrefix}})},21765:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.N=void 0,t.N=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),t.WeiPerEther=BigInt("1000000000000000000"),t.MaxUint256=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),t.MinInt256=BigInt("0x8000000000000000000000000000000000000000000000000000000000000000")*BigInt(-1),t.MaxInt256=BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},95772:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessagePrefix=t.EtherSymbol=void 0,t.EtherSymbol="\u039e",t.MessagePrefix="\x19Ethereum Signed Message:\n"},19215:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Contract=t.BaseContract=t.resolveArgs=t.copyOverrides=void 0;const r=n(16492),a=n(30379),i=n(9125),o=n(91588),s=n(58953),f=BigInt(0);function c(e){return e&&"function"===typeof e.call}function l(e){return e&&"function"===typeof e.estimateGas}function u(e){return e&&"function"===typeof e.resolveName}function d(e){return e&&"function"===typeof e.sendTransaction}function p(e){if(null!=e){if(u(e))return e;if(e.provider)return e.provider}}class h{#E;fragment;constructor(e,t,n){if((0,o.defineProperties)(this,{fragment:t}),t.inputs.length<n.length)throw new Error("too many arguments");const r=b(e.runner,"resolveName"),i=u(r)?r:null;this.#E=async function(){const r=await Promise.all(t.inputs.map(((e,t)=>null==n[t]?null:e.walkAsync(n[t],((e,t)=>"address"===e?Array.isArray(t)?Promise.all(t.map((e=>(0,a.resolveAddress)(e,i)))):(0,a.resolveAddress)(t,i):t)))));return e.interface.encodeFilterTopics(t,r)}()}getTopicFilter(){return this.#E}}function b(e,t){return null==e?null:"function"===typeof e[t]?e:e.provider&&"function"===typeof e.provider[t]?e.provider:null}function y(e){return null==e?null:e.provider||null}async function m(e,t){const n=r.Typed.dereference(e,"overrides");(0,o.assertArgument)("object"===typeof n,"invalid overrides parameter","overrides",e);const a=(0,i.copyRequest)(n);return(0,o.assertArgument)(null==a.to||(t||[]).indexOf("to")>=0,"cannot override to","overrides.to",a.to),(0,o.assertArgument)(null==a.data||(t||[]).indexOf("data")>=0,"cannot override data","overrides.data",a.data),a.from&&(a.from=a.from),a}async function g(e,t,n){const i=b(e,"resolveName"),o=u(i)?i:null;return await Promise.all(t.map(((e,t)=>e.walkAsync(n[t],((e,t)=>(t=r.Typed.dereference(t,e),"address"===e?(0,a.resolveAddress)(t,o):t))))))}function v(e){const t=async function(t){const n=await m(t,["data"]);n.to=await e.getAddress(),n.from&&(n.from=await(0,a.resolveAddress)(n.from,p(e.runner)));const r=e.interface,i=(0,o.getBigInt)(n.value||f,"overrides.value")===f,s="0x"===(n.data||"0x");!r.fallback||r.fallback.payable||!r.receive||s||i||(0,o.assertArgument)(!1,"cannot send data to receive or send value to non-payable fallback","overrides",t),(0,o.assertArgument)(r.fallback||s,"cannot send data to receive-only contract","overrides.data",n.data);const c=r.receive||r.fallback&&r.fallback.payable;return(0,o.assertArgument)(c||i,"cannot send value to non-payable fallback","overrides.value",n.value),(0,o.assertArgument)(r.fallback||s,"cannot send data to receive-only contract","overrides.data",n.data),n},n=async function(n){const r=e.runner;(0,o.assert)(d(r),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const a=await r.sendTransaction(await t(n)),i=y(e.runner);return new s.ContractTransactionResponse(e.interface,i,a)},r=async e=>await n(e);return(0,o.defineProperties)(r,{_contract:e,estimateGas:async function(n){const r=b(e.runner,"estimateGas");return(0,o.assert)(l(r),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await r.estimateGas(await t(n))},populateTransaction:t,send:n,staticCall:async function(n){const r=b(e.runner,"call");(0,o.assert)(c(r),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const a=await t(n);try{return await r.call(a)}catch(i){if((0,o.isCallException)(i)&&i.data)throw e.interface.makeError(i.data,a);throw i}}}),r}t.copyOverrides=m,t.resolveArgs=g;const w=Symbol.for("_ethersInternal_contract"),E=new WeakMap;function A(e){return E.get(e[w])}async function P(e,t){let n,r=null;if(Array.isArray(t)){const r=function(t){if((0,o.isHexString)(t,32))return t;const n=e.interface.getEvent(t);return(0,o.assertArgument)(n,"unknown fragment","name",t),n.topicHash};n=t.map((e=>null==e?null:Array.isArray(e)?e.map(r):r(e)))}else"*"===t?n=[null]:"string"===typeof t?(0,o.isHexString)(t,32)?n=[t]:(r=e.interface.getEvent(t),(0,o.assertArgument)(r,"unknown fragment","event",t),n=[r.topicHash]):(a=t)&&"object"===typeof a&&"getTopicFilter"in a&&"function"===typeof a.getTopicFilter&&a.fragment?n=await t.getTopicFilter():"fragment"in t?(r=t.fragment,n=[r.topicHash]):(0,o.assertArgument)(!1,"unknown event name","event",t);var a;n=n.map((e=>{if(null==e)return null;if(Array.isArray(e)){const t=Array.from(new Set(e.map((e=>e.toLowerCase()))).values());return 1===t.length?t[0]:(t.sort(),t)}return e.toLowerCase()}));return{fragment:r,tag:n.map((e=>null==e?"null":Array.isArray(e)?e.join("|"):e)).join("&"),topics:n}}async function _(e,t){const{subs:n}=A(e);return n.get((await P(e,t)).tag)||null}async function T(e,t,n){const r=y(e.runner);(0,o.assert)(r,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});const{fragment:a,tag:i,topics:f}=await P(e,n),{addr:c,subs:l}=A(e);let u=l.get(i);if(!u){const t={address:c||e,topics:f},o=t=>{let r=a;if(null==r)try{r=e.interface.getEvent(t.topics[0])}catch(i){}if(r){const i=r,o=a?e.interface.decodeEventLog(a,t.data,t.topics):[];C(e,n,o,(r=>new s.ContractEventPayload(e,r,n,i,t)))}else C(e,n,[],(r=>new s.ContractUnknownEventPayload(e,r,n,t)))};let d=[];u={tag:i,listeners:[],start:()=>{d.length||d.push(r.on(t,o))},stop:async()=>{if(0==d.length)return;let e=d;d=[],await Promise.all(e),r.off(t,o)}},l.set(i,u)}return u}let k=Promise.resolve();async function C(e,t,n,r){try{await k}catch(i){}const a=async function(e,t,n,r){await k;const a=await _(e,t);if(!a)return!1;const o=a.listeners.length;return a.listeners=a.listeners.filter((t=>{let{listener:a,once:o}=t;const s=Array.from(n);r&&s.push(r(o?null:a));try{a.call(e,...s)}catch(i){}return!o})),0===a.listeners.length&&(a.stop(),A(e).subs.delete(a.tag)),o>0}(e,t,n,r);return k=a,await a}const x=["then"];class O{target;interface;runner;filters;[w];fallback;constructor(e,t,n,i){(0,o.assertArgument)("string"===typeof e||(0,a.isAddressable)(e),"invalid value for Contract target","target",e),null==n&&(n=null);const f=r.Interface.from(t);let c;(0,o.defineProperties)(this,{target:e,runner:n,interface:f}),Object.defineProperty(this,w,{value:{}});let l=null,d=null;if(i){const e=y(n);d=new s.ContractTransactionResponse(this.interface,e,i)}let p=new Map;if("string"===typeof e)if((0,o.isHexString)(e))l=e,c=Promise.resolve(e);else{const t=b(n,"resolveName");if(!u(t))throw(0,o.makeError)("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});c=t.resolveName(e).then((t=>{if(null==t)throw(0,o.makeError)("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return A(this).addr=t,t}))}else c=e.getAddress().then((e=>{if(null==e)throw new Error("TODO");return A(this).addr=e,e}));var h,m;h=this,m={addrPromise:c,addr:l,deployTx:d,subs:p},E.set(h[w],m);const g=new Proxy({},{get:(e,t,n)=>{if("symbol"===typeof t||x.indexOf(t)>=0)return Reflect.get(e,t,n);try{return this.getEvent(t)}catch(r){if(!(0,o.isError)(r,"INVALID_ARGUMENT")||"key"!==r.argument)throw r}},has:(e,t)=>x.indexOf(t)>=0?Reflect.has(e,t):Reflect.has(e,t)||this.interface.hasEvent(String(t))});return(0,o.defineProperties)(this,{filters:g}),(0,o.defineProperties)(this,{fallback:f.receive||f.fallback?v(this):null}),new Proxy(this,{get:(e,t,n)=>{if("symbol"===typeof t||t in e||x.indexOf(t)>=0)return Reflect.get(e,t,n);try{return e.getFunction(t)}catch(r){if(!(0,o.isError)(r,"INVALID_ARGUMENT")||"key"!==r.argument)throw r}},has:(e,t)=>"symbol"===typeof t||t in e||x.indexOf(t)>=0?Reflect.has(e,t):e.interface.hasFunction(t)})}connect(e){return new O(this.target,this.interface,e)}attach(e){return new O(e,this.interface,this.runner)}async getAddress(){return await A(this).addrPromise}async getDeployedCode(){const e=y(this.runner);(0,o.assert)(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const t=await e.getCode(await this.getAddress());return"0x"===t?null:t}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(null!=await this.getDeployedCode())return this;const t=y(this.runner);return(0,o.assert)(null!=t,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise(((e,n)=>{const r=async()=>{try{if(null!=await this.getDeployedCode())return e(this);t.once("block",r)}catch(a){n(a)}};r()}))}deploymentTransaction(){return A(this).deployTx}getFunction(e){"string"!==typeof e&&(e=e.format());const t=function(e,t){const n=function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];const i=e.interface.getFunction(t,r);return(0,o.assert)(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),i},r=async function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];const s=n(...r);let f={};if(s.inputs.length+1===r.length&&(f=await m(r.pop()),f.from&&(f.from=await(0,a.resolveAddress)(f.from,p(e.runner)))),s.inputs.length!==r.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const c=await g(e.runner,s.inputs,r);return Object.assign({},f,await(0,o.resolveProperties)({to:e.getAddress(),data:e.interface.encodeFunctionData(s,c)}))},i=async function(){const e=await u(...arguments);return 1===e.length?e[0]:e},f=async function(){const t=e.runner;(0,o.assert)(d(t),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const n=await t.sendTransaction(await r(...arguments)),a=y(e.runner);return new s.ContractTransactionResponse(e.interface,a,n)},u=async function(){const t=b(e.runner,"call");(0,o.assert)(c(t),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const a=await r(...arguments);let i="0x";try{i=await t.call(a)}catch(f){if((0,o.isCallException)(f)&&f.data)throw e.interface.makeError(f.data,a);throw f}const s=n(...arguments);return e.interface.decodeFunctionResult(s,i)},h=async function(){return n(...arguments).constant?await i(...arguments):await f(...arguments)};return(0,o.defineProperties)(h,{name:e.interface.getFunctionName(t),_contract:e,_key:t,getFragment:n,estimateGas:async function(){const t=b(e.runner,"estimateGas");return(0,o.assert)(l(t),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await t.estimateGas(await r(...arguments))},populateTransaction:r,send:f,staticCall:i,staticCallResult:u}),Object.defineProperty(h,"fragment",{configurable:!1,enumerable:!0,get:()=>{const n=e.interface.getFunction(t);return(0,o.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),n}}),h}(this,e);return t}getEvent(e){return"string"!==typeof e&&(e=e.format()),function(e,t){const n=function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];const i=e.interface.getEvent(t,r);return(0,o.assert)(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),i},r=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return new h(e,n(...r),r)};return(0,o.defineProperties)(r,{name:e.interface.getEventName(t),_contract:e,_key:t,getFragment:n}),Object.defineProperty(r,"fragment",{configurable:!1,enumerable:!0,get:()=>{const n=e.interface.getEvent(t);return(0,o.assert)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),n}}),r}(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,t,n){null==t&&(t=0),null==n&&(n="latest");const{addr:r,addrPromise:a}=A(this),f=r||await a,{fragment:c,topics:l}=await P(this,e),u={address:f,topics:l,fromBlock:t,toBlock:n},d=y(this.runner);return(0,o.assert)(d,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await d.getLogs(u)).map((e=>{let t=c;if(null==t)try{t=this.interface.getEvent(e.topics[0])}catch(n){}if(t)try{return new s.EventLog(e,this.interface,t)}catch(n){return new s.UndecodedEventLog(e,n)}return new i.Log(e,d)}))}async on(e,t){const n=await T(this,"on",e);return n.listeners.push({listener:t,once:!1}),n.start(),this}async once(e,t){const n=await T(this,"once",e);return n.listeners.push({listener:t,once:!0}),n.start(),this}async emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return await C(this,e,n,null)}async listenerCount(e){if(e){const t=await _(this,e);return t?t.listeners.length:0}const{subs:t}=A(this);let n=0;for(const{listeners:r}of t.values())n+=r.length;return n}async listeners(e){if(e){const t=await _(this,e);return t?t.listeners.map((e=>{let{listener:t}=e;return t})):[]}const{subs:t}=A(this);let n=[];for(const{listeners:r}of t.values())n=n.concat(r.map((e=>{let{listener:t}=e;return t})));return n}async off(e,t){const n=await _(this,e);if(!n)return this;if(t){const e=n.listeners.map((e=>{let{listener:t}=e;return t})).indexOf(t);e>=0&&n.listeners.splice(e,1)}return null!=t&&0!==n.listeners.length||(n.stop(),A(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const t=await _(this,e);if(!t)return this;t.stop(),A(this).subs.delete(t.tag)}else{const{subs:e}=A(this);for(const{tag:t,stop:n}of e.values())n(),e.delete(t)}return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return await this.off(e,t)}static buildClass(e){return class extends O{constructor(t){super(t,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)}}}static from(e,t,n){null==n&&(n=null);return new this(e,t,n)}}t.BaseContract=O;class S extends(function(){return O}()){}t.Contract=S},96496:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContractFactory=void 0;const r=n(16492),a=n(30379),i=n(91588),o=n(19215);class s{interface;bytecode;runner;constructor(e,t,n){const a=r.Interface.from(e);t instanceof Uint8Array||("object"===typeof t&&(t=t.object),t.startsWith("0x")||(t="0x"+t)),t=(0,i.hexlify)((0,i.getBytes)(t)),(0,i.defineProperties)(this,{bytecode:t,interface:a,runner:n||null})}attach(e){return new o.BaseContract(e,this.interface,this.runner)}async getDeployTransaction(){let e={};const t=this.interface.deploy;for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];if(t.inputs.length+1===r.length&&(e=await(0,o.copyOverrides)(r.pop())),t.inputs.length!==r.length)throw new Error("incorrect number of arguments to constructor");const s=await(0,o.resolveArgs)(this.runner,t.inputs,r),f=(0,i.concat)([this.bytecode,this.interface.encodeDeploy(s)]);return Object.assign({},e,{data:f})}async deploy(){const e=await this.getDeployTransaction(...arguments);(0,i.assert)(this.runner&&"function"===typeof this.runner.sendTransaction,"factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const t=await this.runner.sendTransaction(e),n=(0,a.getCreateAddress)(t);return new o.BaseContract(n,this.interface,this.runner,t)}connect(e){return new s(this.interface,this.bytecode,e)}static fromSolidity(e,t){(0,i.assertArgument)(null!=e,"bad compiler output","output",e),"string"===typeof e&&(e=JSON.parse(e));const n=e.abi;let r="";return e.bytecode?r=e.bytecode:e.evm&&e.evm.bytecode&&(r=e.evm.bytecode),new this(n,r,t)}}t.ContractFactory=s},78119:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UndecodedEventLog=t.EventLog=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.ContractUnknownEventPayload=t.ContractEventPayload=t.ContractFactory=t.Contract=t.BaseContract=void 0;var r=n(19215);Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return r.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return r.Contract}});var a=n(96496);Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return a.ContractFactory}});var i=n(58953);Object.defineProperty(t,"ContractEventPayload",{enumerable:!0,get:function(){return i.ContractEventPayload}}),Object.defineProperty(t,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return i.ContractUnknownEventPayload}}),Object.defineProperty(t,"ContractTransactionReceipt",{enumerable:!0,get:function(){return i.ContractTransactionReceipt}}),Object.defineProperty(t,"ContractTransactionResponse",{enumerable:!0,get:function(){return i.ContractTransactionResponse}}),Object.defineProperty(t,"EventLog",{enumerable:!0,get:function(){return i.EventLog}}),Object.defineProperty(t,"UndecodedEventLog",{enumerable:!0,get:function(){return i.UndecodedEventLog}})},58953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ContractEventPayload=t.ContractUnknownEventPayload=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.UndecodedEventLog=t.EventLog=void 0;const r=n(9125),a=n(91588);class i extends r.Log{interface;fragment;args;constructor(e,t,n){super(e,e.provider);const r=t.decodeEventLog(n,e.data,e.topics);(0,a.defineProperties)(this,{args:r,fragment:n,interface:t})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}t.EventLog=i;class o extends r.Log{error;constructor(e,t){super(e,e.provider),(0,a.defineProperties)(this,{error:t})}}t.UndecodedEventLog=o;class s extends r.TransactionReceipt{#A;constructor(e,t,n){super(n,t),this.#A=e}get logs(){return super.logs.map((e=>{const t=e.topics.length?this.#A.getEvent(e.topics[0]):null;if(t)try{return new i(e,this.#A,t)}catch(n){return new o(e,n)}return e}))}}t.ContractTransactionReceipt=s;class f extends r.TransactionResponse{#A;constructor(e,t,n){super(n,t),this.#A=e}async wait(e,t){const n=await super.wait(e,t);return null==n?null:new s(this.#A,this.provider,n)}}t.ContractTransactionResponse=f;class c extends a.EventPayload{log;constructor(e,t,n,r){super(e,t,n),(0,a.defineProperties)(this,{log:r})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}t.ContractUnknownEventPayload=c;t.ContractEventPayload=class extends c{constructor(e,t,n,r,o){super(e,t,n,new i(o,e.interface,r));const s=e.interface.decodeEventLog(r,this.log.data,this.log.topics);(0,a.defineProperties)(this,{args:s,fragment:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}},32506:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=t.pbkdf2Sync=t.createHmac=t.createHash=void 0;const r=n(5968),a=n(42802),i=n(84304),o=n(91855),s=n(91588);const f=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("unable to locate global object")}(),c=f.crypto||f.msCrypto;t.createHash=function(e){switch(e){case"sha256":return i.sha256.create();case"sha512":return o.sha512.create()}(0,s.assertArgument)(!1,"invalid hashing algorithm name","algorithm",e)},t.createHmac=function(e,t){const n={sha256:i.sha256,sha512:o.sha512}[e];return(0,s.assertArgument)(null!=n,"invalid hmac algorithm","algorithm",e),r.hmac.create(n,t)},t.pbkdf2Sync=function(e,t,n,r,f){const c={sha256:i.sha256,sha512:o.sha512}[f];return(0,s.assertArgument)(null!=c,"invalid pbkdf2 algorithm","algorithm",f),(0,a.pbkdf2)(c,e,t,{c:n,dkLen:r})},t.randomBytes=function(e){(0,s.assert)(null!=c,"platform does not support secure random numbers","UNSUPPORTED_OPERATION",{operation:"randomBytes"}),(0,s.assertArgument)(Number.isInteger(e)&&e>0&&e<=1024,"invalid length","length",e);const t=new Uint8Array(e);return c.getRandomValues(t),t}},32108:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.computeHmac=void 0;const r=n(32506),a=n(91588);let i=!1;const o=function(e,t,n){return(0,r.createHmac)(e,t).update(n).digest()};let s=o;function f(e,t,n){const r=(0,a.getBytes)(t,"key"),i=(0,a.getBytes)(n,"data");return(0,a.hexlify)(s(e,r,i))}t.computeHmac=f,f._=o,f.lock=function(){i=!0},f.register=function(e){if(i)throw new Error("computeHmac is locked");s=e},Object.freeze(f)},86425:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lock=t.Signature=t.SigningKey=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=void 0;const r=n(32108);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return r.computeHmac}});const a=n(73871);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return a.keccak256}});const i=n(54248);Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return i.ripemd160}});const o=n(98033);Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return o.pbkdf2}});const s=n(23655);Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return s.randomBytes}});const f=n(48714);Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return f.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return f.scryptSync}});const c=n(34606);Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return c.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return c.sha512}});var l=n(25605);Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return l.SigningKey}});var u=n(91810);Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return u.Signature}}),t.lock=function(){r.computeHmac.lock(),a.keccak256.lock(),o.pbkdf2.lock(),s.randomBytes.lock(),i.ripemd160.lock(),f.scrypt.lock(),f.scryptSync.lock(),c.sha256.lock(),c.sha512.lock(),s.randomBytes.lock()}},73871:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.keccak256=void 0;const r=n(17883),a=n(91588);let i=!1;const o=function(e){return(0,r.keccak_256)(e)};let s=o;function f(e){const t=(0,a.getBytes)(e,"data");return(0,a.hexlify)(s(t))}t.keccak256=f,f._=o,f.lock=function(){i=!0},f.register=function(e){if(i)throw new TypeError("keccak256 is locked");s=e},Object.freeze(f)},98033:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.pbkdf2=void 0;const r=n(32506),a=n(91588);let i=!1;const o=function(e,t,n,a,i){return(0,r.pbkdf2Sync)(e,t,n,a,i)};let s=o;function f(e,t,n,r,i){const o=(0,a.getBytes)(e,"password"),f=(0,a.getBytes)(t,"salt");return(0,a.hexlify)(s(o,f,n,r,i))}t.pbkdf2=f,f._=o,f.lock=function(){i=!0},f.register=function(e){if(i)throw new Error("pbkdf2 is locked");s=e},Object.freeze(f)},23655:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.randomBytes=void 0;const r=n(32506);let a=!1;const i=function(e){return new Uint8Array((0,r.randomBytes)(e))};let o=i;function s(e){return o(e)}t.randomBytes=s,s._=i,s.lock=function(){a=!0},s.register=function(e){if(a)throw new Error("randomBytes is locked");o=e},Object.freeze(s)},54248:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=void 0;const r=n(66632),a=n(91588);let i=!1;const o=function(e){return(0,r.ripemd160)(e)};let s=o;function f(e){const t=(0,a.getBytes)(e,"data");return(0,a.hexlify)(s(t))}t.ripemd160=f,f._=o,f.lock=function(){i=!0},f.register=function(e){if(i)throw new TypeError("ripemd160 is locked");s=e},Object.freeze(f)},48714:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.scryptSync=t.scrypt=void 0;const r=n(82215),a=n(91588);let i=!1,o=!1;const s=async function(e,t,n,a,i,o,s){return await(0,r.scryptAsync)(e,t,{N:n,r:a,p:i,dkLen:o,onProgress:s})},f=function(e,t,n,a,i,o){return(0,r.scrypt)(e,t,{N:n,r:a,p:i,dkLen:o})};let c=s,l=f;async function u(e,t,n,r,i,o,s){const f=(0,a.getBytes)(e,"passwd"),l=(0,a.getBytes)(t,"salt");return(0,a.hexlify)(await c(f,l,n,r,i,o,s))}function d(e,t,n,r,i,o){const s=(0,a.getBytes)(e,"passwd"),f=(0,a.getBytes)(t,"salt");return(0,a.hexlify)(l(s,f,n,r,i,o))}t.scrypt=u,u._=s,u.lock=function(){o=!0},u.register=function(e){if(o)throw new Error("scrypt is locked");c=e},Object.freeze(u),t.scryptSync=d,d._=f,d.lock=function(){i=!0},d.register=function(e){if(i)throw new Error("scryptSync is locked");l=e},Object.freeze(d)},34606:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sha512=t.sha256=void 0;const r=n(32506),a=n(91588),i=function(e){return(0,r.createHash)("sha256").update(e).digest()},o=function(e){return(0,r.createHash)("sha512").update(e).digest()};let s=i,f=o,c=!1,l=!1;function u(e){const t=(0,a.getBytes)(e,"data");return(0,a.hexlify)(s(t))}function d(e){const t=(0,a.getBytes)(e,"data");return(0,a.hexlify)(f(t))}t.sha256=u,u._=i,u.lock=function(){c=!0},u.register=function(e){if(c)throw new Error("sha256 is locked");s=e},Object.freeze(u),t.sha512=d,d._=o,d.lock=function(){l=!0},d.register=function(e){if(l)throw new Error("sha512 is locked");f=e},Object.freeze(u)},91810:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Signature=void 0;const r=n(8753),a=n(91588),i=BigInt(0),o=BigInt(1),s=BigInt(2),f=BigInt(27),c=BigInt(28),l=BigInt(35),u={};function d(e){return(0,a.zeroPadValue)((0,a.toBeArray)(e),32)}class p{#P;#_;#T;#k;get r(){return this.#P}set r(e){(0,a.assertArgument)(32===(0,a.dataLength)(e),"invalid r","value",e),this.#P=(0,a.hexlify)(e)}get s(){return this.#_}set s(e){(0,a.assertArgument)(32===(0,a.dataLength)(e),"invalid s","value",e);const t=(0,a.hexlify)(e);(0,a.assertArgument)(parseInt(t.substring(0,3))<8,"non-canonical s","value",t),this.#_=t}get v(){return this.#T}set v(e){const t=(0,a.getNumber)(e,"value");(0,a.assertArgument)(27===t||28===t,"invalid v","v",e),this.#T=t}get networkV(){return this.#k}get legacyChainId(){const e=this.networkV;return null==e?null:p.getChainId(e)}get yParity(){return 27===this.v?0:1}get yParityAndS(){const e=(0,a.getBytes)(this.s);return this.yParity&&(e[0]|=128),(0,a.hexlify)(e)}get compactSerialized(){return(0,a.concat)([this.r,this.yParityAndS])}get serialized(){return(0,a.concat)([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(e,t,n,r){(0,a.assertPrivate)(e,u,"Signature"),this.#P=t,this.#_=n,this.#T=r,this.#k=null}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this.s}", yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){const e=new p(u,this.r,this.s,this.v);return this.networkV&&(e.#k=this.networkV),e}toJSON(){const e=this.networkV;return{_type:"signature",networkV:null!=e?e.toString():null,r:this.r,s:this.s,v:this.v}}static getChainId(e){const t=(0,a.getBigInt)(e,"v");return t==f||t==c?i:((0,a.assertArgument)(t>=l,"invalid EIP-155 v","v",e),(t-l)/s)}static getChainIdV(e,t){return(0,a.getBigInt)(e)*s+BigInt(35+t-27)}static getNormalizedV(e){const t=(0,a.getBigInt)(e);return t===i||t===f?27:t===o||t===c?28:((0,a.assertArgument)(t>=l,"invalid v","v",e),t&o?27:28)}static from(e){function t(t,n){(0,a.assertArgument)(t,n,"signature",e)}if(null==e)return new p(u,r.ZeroHash,r.ZeroHash,27);if("string"===typeof e){const n=(0,a.getBytes)(e,"signature");if(64===n.length){const e=(0,a.hexlify)(n.slice(0,32)),t=n.slice(32,64),r=128&t[0]?28:27;return t[0]&=127,new p(u,e,(0,a.hexlify)(t),r)}if(65===n.length){const e=(0,a.hexlify)(n.slice(0,32)),r=n.slice(32,64);t(0===(128&r[0]),"non-canonical s");const i=p.getNormalizedV(n[64]);return new p(u,e,(0,a.hexlify)(r),i)}t(!1,"invalid raw signature length")}if(e instanceof p)return e.clone();const n=e.r;t(null!=n,"missing r");const i=d(n),o=function(e,n){if(null!=e)return d(e);if(null!=n){t((0,a.isHexString)(n,32),"invalid yParityAndS");const e=(0,a.getBytes)(n);return e[0]&=127,(0,a.hexlify)(e)}t(!1,"missing s")}(e.s,e.yParityAndS);t(0==(128&(0,a.getBytes)(o)[0]),"non-canonical s");const{networkV:s,v:f}=function(e,n,r){if(null!=e){const t=(0,a.getBigInt)(e);return{networkV:t>=l?t:void 0,v:p.getNormalizedV(t)}}if(null!=n)return t((0,a.isHexString)(n,32),"invalid yParityAndS"),{v:128&(0,a.getBytes)(n)[0]?28:27};if(null!=r){switch((0,a.getNumber)(r,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),c=new p(u,i,o,f);return s&&(c.#k=s),t(null==e.yParity||(0,a.getNumber)(e.yParity,"sig.yParity")===c.yParity,"yParity mismatch"),t(null==e.yParityAndS||e.yParityAndS===c.yParityAndS,"yParityAndS mismatch"),c}}t.Signature=p},25605:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SigningKey=void 0;const r=n(66088),a=n(91588),i=n(91810);class o{#C;constructor(e){(0,a.assertArgument)(32===(0,a.dataLength)(e),"invalid private key","privateKey","[REDACTED]"),this.#C=(0,a.hexlify)(e)}get privateKey(){return this.#C}get publicKey(){return o.computePublicKey(this.#C)}get compressedPublicKey(){return o.computePublicKey(this.#C,!0)}sign(e){(0,a.assertArgument)(32===(0,a.dataLength)(e),"invalid digest length","digest",e);const t=r.secp256k1.sign((0,a.getBytesCopy)(e),(0,a.getBytesCopy)(this.#C),{lowS:!0});return i.Signature.from({r:(0,a.toBeHex)(t.r,32),s:(0,a.toBeHex)(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){const t=o.computePublicKey(e);return(0,a.hexlify)(r.secp256k1.getSharedSecret((0,a.getBytesCopy)(this.#C),(0,a.getBytes)(t),!1))}static computePublicKey(e,t){let n=(0,a.getBytes)(e,"key");if(32===n.length){const e=r.secp256k1.getPublicKey(n,!!t);return(0,a.hexlify)(e)}if(64===n.length){const e=new Uint8Array(65);e[0]=4,e.set(n,1),n=e}const i=r.secp256k1.ProjectivePoint.fromHex(n);return(0,a.hexlify)(i.toRawBytes(t))}static recoverPublicKey(e,t){(0,a.assertArgument)(32===(0,a.dataLength)(e),"invalid digest length","digest",e);const n=i.Signature.from(t);let o=r.secp256k1.Signature.fromCompact((0,a.getBytesCopy)((0,a.concat)([n.r,n.s])));o=o.addRecoveryBit(n.yParity);const s=o.recoverPublicKey((0,a.getBytesCopy)(e));return(0,a.assertArgument)(null!=s,"invalid signautre for digest","signature",t),"0x"+s.toHex(!1)}static addPoints(e,t,n){const a=r.secp256k1.ProjectivePoint.fromHex(o.computePublicKey(e).substring(2)),i=r.secp256k1.ProjectivePoint.fromHex(o.computePublicKey(t).substring(2));return"0x"+a.add(i).toHex(!!n)}}t.SigningKey=o},83232:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ripemd160=t.keccak256=t.randomBytes=t.computeHmac=t.UndecodedEventLog=t.EventLog=t.ContractUnknownEventPayload=t.ContractTransactionResponse=t.ContractTransactionReceipt=t.ContractEventPayload=t.ContractFactory=t.Contract=t.BaseContract=t.MessagePrefix=t.EtherSymbol=t.ZeroHash=t.N=t.MaxInt256=t.MinInt256=t.MaxUint256=t.WeiPerEther=t.ZeroAddress=t.resolveAddress=t.isAddress=t.isAddressable=t.getCreate2Address=t.getCreateAddress=t.getIcapAddress=t.getAddress=t.Typed=t.TransactionDescription=t.Result=t.LogDescription=t.Interface=t.Indexed=t.ErrorDescription=t.checkResultErrors=t.StructFragment=t.ParamType=t.NamedFragment=t.FunctionFragment=t.FallbackFragment=t.Fragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.AbiCoder=t.encodeBytes32String=t.decodeBytes32String=t.version=void 0,t.EnsPlugin=t.Network=t.EnsResolver=t.WebSocketProvider=t.SocketProvider=t.IpcSocketProvider=t.QuickNodeProvider=t.PocketProvider=t.InfuraWebSocketProvider=t.InfuraProvider=t.EtherscanProvider=t.CloudflareProvider=t.ChainstackProvider=t.AnkrProvider=t.AlchemyProvider=t.BrowserProvider=t.JsonRpcSigner=t.JsonRpcProvider=t.JsonRpcApiProvider=t.FallbackProvider=t.AbstractProvider=t.VoidSigner=t.NonceManager=t.AbstractSigner=t.TransactionResponse=t.TransactionReceipt=t.Log=t.FeeData=t.Block=t.getDefaultProvider=t.verifyTypedData=t.TypedDataEncoder=t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=t.verifyMessage=t.hashMessage=t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=t.id=t.SigningKey=t.Signature=t.lock=t.scryptSync=t.scrypt=t.pbkdf2=t.sha512=t.sha256=void 0,t.getUint=t.getNumber=t.getBigInt=t.FixedNumber=t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.isError=t.isCallException=t.makeError=t.assertPrivate=t.assertNormalize=t.assertArgumentCount=t.assertArgument=t.assert=t.resolveProperties=t.defineProperties=t.zeroPadValue=t.zeroPadBytes=t.stripZerosLeft=t.isBytesLike=t.isHexString=t.hexlify=t.getBytesCopy=t.getBytes=t.dataSlice=t.dataLength=t.concat=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=t.Transaction=t.recoverAddress=t.computeAddress=t.accessListify=t.showThrottleMessage=t.copyRequest=t.UnmanagedSubscriber=t.SocketSubscriber=t.SocketPendingSubscriber=t.SocketEventSubscriber=t.SocketBlockSubscriber=t.MulticoinProviderPlugin=t.NetworkPlugin=t.GasCostPlugin=t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EtherscanPlugin=void 0,t.wordlists=t.WordlistOwlA=t.WordlistOwl=t.LangEn=t.Wordlist=t.encryptKeystoreJsonSync=t.encryptKeystoreJson=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.decryptCrowdsaleJson=t.isKeystoreJson=t.isCrowdsaleJson=t.getIndexedAccountPath=t.getAccountPath=t.defaultPath=t.Wallet=t.HDNodeVoidWallet=t.HDNodeWallet=t.BaseWallet=t.Mnemonic=t.uuidV4=t.encodeRlp=t.decodeRlp=t.Utf8ErrorFuncs=t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.mask=t.toTwos=t.fromTwos=t.toQuantity=t.toNumber=t.toBeHex=t.toBigInt=t.toBeArray=void 0;var r=n(81855);Object.defineProperty(t,"version",{enumerable:!0,get:function(){return r.version}});var a=n(16492);Object.defineProperty(t,"decodeBytes32String",{enumerable:!0,get:function(){return a.decodeBytes32String}}),Object.defineProperty(t,"encodeBytes32String",{enumerable:!0,get:function(){return a.encodeBytes32String}}),Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return a.AbiCoder}}),Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return a.ConstructorFragment}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return a.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return a.EventFragment}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return a.Fragment}}),Object.defineProperty(t,"FallbackFragment",{enumerable:!0,get:function(){return a.FallbackFragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return a.FunctionFragment}}),Object.defineProperty(t,"NamedFragment",{enumerable:!0,get:function(){return a.NamedFragment}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return a.ParamType}}),Object.defineProperty(t,"StructFragment",{enumerable:!0,get:function(){return a.StructFragment}}),Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return a.checkResultErrors}}),Object.defineProperty(t,"ErrorDescription",{enumerable:!0,get:function(){return a.ErrorDescription}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return a.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return a.Interface}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return a.LogDescription}}),Object.defineProperty(t,"Result",{enumerable:!0,get:function(){return a.Result}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return a.TransactionDescription}}),Object.defineProperty(t,"Typed",{enumerable:!0,get:function(){return a.Typed}});var i=n(30379);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return i.getAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return i.getIcapAddress}}),Object.defineProperty(t,"getCreateAddress",{enumerable:!0,get:function(){return i.getCreateAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return i.getCreate2Address}}),Object.defineProperty(t,"isAddressable",{enumerable:!0,get:function(){return i.isAddressable}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return i.isAddress}}),Object.defineProperty(t,"resolveAddress",{enumerable:!0,get:function(){return i.resolveAddress}});var o=n(8753);Object.defineProperty(t,"ZeroAddress",{enumerable:!0,get:function(){return o.ZeroAddress}}),Object.defineProperty(t,"WeiPerEther",{enumerable:!0,get:function(){return o.WeiPerEther}}),Object.defineProperty(t,"MaxUint256",{enumerable:!0,get:function(){return o.MaxUint256}}),Object.defineProperty(t,"MinInt256",{enumerable:!0,get:function(){return o.MinInt256}}),Object.defineProperty(t,"MaxInt256",{enumerable:!0,get:function(){return o.MaxInt256}}),Object.defineProperty(t,"N",{enumerable:!0,get:function(){return o.N}}),Object.defineProperty(t,"ZeroHash",{enumerable:!0,get:function(){return o.ZeroHash}}),Object.defineProperty(t,"EtherSymbol",{enumerable:!0,get:function(){return o.EtherSymbol}}),Object.defineProperty(t,"MessagePrefix",{enumerable:!0,get:function(){return o.MessagePrefix}});var s=n(78119);Object.defineProperty(t,"BaseContract",{enumerable:!0,get:function(){return s.BaseContract}}),Object.defineProperty(t,"Contract",{enumerable:!0,get:function(){return s.Contract}}),Object.defineProperty(t,"ContractFactory",{enumerable:!0,get:function(){return s.ContractFactory}}),Object.defineProperty(t,"ContractEventPayload",{enumerable:!0,get:function(){return s.ContractEventPayload}}),Object.defineProperty(t,"ContractTransactionReceipt",{enumerable:!0,get:function(){return s.ContractTransactionReceipt}}),Object.defineProperty(t,"ContractTransactionResponse",{enumerable:!0,get:function(){return s.ContractTransactionResponse}}),Object.defineProperty(t,"ContractUnknownEventPayload",{enumerable:!0,get:function(){return s.ContractUnknownEventPayload}}),Object.defineProperty(t,"EventLog",{enumerable:!0,get:function(){return s.EventLog}}),Object.defineProperty(t,"UndecodedEventLog",{enumerable:!0,get:function(){return s.UndecodedEventLog}});var f=n(86425);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return f.computeHmac}}),Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return f.randomBytes}}),Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return f.keccak256}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return f.ripemd160}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return f.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return f.sha512}}),Object.defineProperty(t,"pbkdf2",{enumerable:!0,get:function(){return f.pbkdf2}}),Object.defineProperty(t,"scrypt",{enumerable:!0,get:function(){return f.scrypt}}),Object.defineProperty(t,"scryptSync",{enumerable:!0,get:function(){return f.scryptSync}}),Object.defineProperty(t,"lock",{enumerable:!0,get:function(){return f.lock}}),Object.defineProperty(t,"Signature",{enumerable:!0,get:function(){return f.Signature}}),Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return f.SigningKey}});var c=n(76439);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return c.id}}),Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return c.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return c.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return c.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return c.dnsEncode}}),Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return c.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return c.verifyMessage}}),Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return c.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return c.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return c.solidityPackedSha256}}),Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return c.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return c.verifyTypedData}});var l=n(21642);Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return l.getDefaultProvider}}),Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return l.Block}}),Object.defineProperty(t,"FeeData",{enumerable:!0,get:function(){return l.FeeData}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return l.Log}}),Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return l.TransactionReceipt}}),Object.defineProperty(t,"TransactionResponse",{enumerable:!0,get:function(){return l.TransactionResponse}}),Object.defineProperty(t,"AbstractSigner",{enumerable:!0,get:function(){return l.AbstractSigner}}),Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return l.NonceManager}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return l.VoidSigner}}),Object.defineProperty(t,"AbstractProvider",{enumerable:!0,get:function(){return l.AbstractProvider}}),Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return l.FallbackProvider}}),Object.defineProperty(t,"JsonRpcApiProvider",{enumerable:!0,get:function(){return l.JsonRpcApiProvider}}),Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return l.JsonRpcProvider}}),Object.defineProperty(t,"JsonRpcSigner",{enumerable:!0,get:function(){return l.JsonRpcSigner}}),Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return l.BrowserProvider}}),Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return l.AlchemyProvider}}),Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return l.AnkrProvider}}),Object.defineProperty(t,"ChainstackProvider",{enumerable:!0,get:function(){return l.ChainstackProvider}}),Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return l.CloudflareProvider}}),Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return l.EtherscanProvider}}),Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return l.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return l.InfuraWebSocketProvider}}),Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return l.PocketProvider}}),Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return l.QuickNodeProvider}}),Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return l.IpcSocketProvider}}),Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return l.SocketProvider}}),Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return l.WebSocketProvider}}),Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return l.EnsResolver}}),Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return l.Network}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return l.EnsPlugin}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return l.EtherscanPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return l.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return l.FetchUrlFeeDataNetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return l.GasCostPlugin}}),Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return l.NetworkPlugin}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return l.MulticoinProviderPlugin}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return l.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return l.SocketEventSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return l.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return l.SocketSubscriber}}),Object.defineProperty(t,"UnmanagedSubscriber",{enumerable:!0,get:function(){return l.UnmanagedSubscriber}}),Object.defineProperty(t,"copyRequest",{enumerable:!0,get:function(){return l.copyRequest}}),Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return l.showThrottleMessage}});var u=n(15762);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return u.accessListify}}),Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return u.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return u.recoverAddress}}),Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return u.Transaction}});var d=n(91588);Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return d.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return d.encodeBase58}}),Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return d.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return d.encodeBase64}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return d.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return d.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return d.dataSlice}}),Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return d.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return d.getBytesCopy}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return d.hexlify}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return d.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return d.isBytesLike}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return d.stripZerosLeft}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return d.zeroPadBytes}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return d.zeroPadValue}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return d.defineProperties}}),Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return d.resolveProperties}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return d.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return d.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return d.assertArgumentCount}}),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return d.assertNormalize}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return d.assertPrivate}}),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return d.makeError}}),Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return d.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return d.isError}}),Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return d.EventPayload}}),Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return d.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return d.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return d.FetchCancelSignal}}),Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return d.FixedNumber}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return d.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return d.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return d.getUint}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return d.toBeArray}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return d.toBigInt}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return d.toBeHex}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return d.toNumber}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return d.toQuantity}}),Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return d.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return d.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return d.mask}}),Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return d.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return d.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return d.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return d.parseUnits}}),Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return d.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return d.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return d.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return d.Utf8ErrorFuncs}}),Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return d.decodeRlp}}),Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return d.encodeRlp}}),Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return d.uuidV4}});var p=n(83018);Object.defineProperty(t,"Mnemonic",{enumerable:!0,get:function(){return p.Mnemonic}}),Object.defineProperty(t,"BaseWallet",{enumerable:!0,get:function(){return p.BaseWallet}}),Object.defineProperty(t,"HDNodeWallet",{enumerable:!0,get:function(){return p.HDNodeWallet}}),Object.defineProperty(t,"HDNodeVoidWallet",{enumerable:!0,get:function(){return p.HDNodeVoidWallet}}),Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return p.Wallet}}),Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return p.defaultPath}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return p.getAccountPath}}),Object.defineProperty(t,"getIndexedAccountPath",{enumerable:!0,get:function(){return p.getIndexedAccountPath}}),Object.defineProperty(t,"isCrowdsaleJson",{enumerable:!0,get:function(){return p.isCrowdsaleJson}}),Object.defineProperty(t,"isKeystoreJson",{enumerable:!0,get:function(){return p.isKeystoreJson}}),Object.defineProperty(t,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return p.decryptCrowdsaleJson}}),Object.defineProperty(t,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return p.decryptKeystoreJsonSync}}),Object.defineProperty(t,"decryptKeystoreJson",{enumerable:!0,get:function(){return p.decryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJson",{enumerable:!0,get:function(){return p.encryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return p.encryptKeystoreJsonSync}});var h=n(90423);Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return h.Wordlist}}),Object.defineProperty(t,"LangEn",{enumerable:!0,get:function(){return h.LangEn}}),Object.defineProperty(t,"WordlistOwl",{enumerable:!0,get:function(){return h.WordlistOwl}}),Object.defineProperty(t,"WordlistOwlA",{enumerable:!0,get:function(){return h.WordlistOwlA}}),Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return h.wordlists}})},14680:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.id=void 0;const r=n(86425),a=n(91588);t.id=function(e){return(0,r.keccak256)((0,a.toUtf8Bytes)(e))}},76439:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=t.TypedDataEncoder=t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=t.verifyMessage=t.hashMessage=t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=t.id=void 0;var r=n(14680);Object.defineProperty(t,"id",{enumerable:!0,get:function(){return r.id}});var a=n(14153);Object.defineProperty(t,"ensNormalize",{enumerable:!0,get:function(){return a.ensNormalize}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return a.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return a.namehash}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return a.dnsEncode}});var i=n(62674);Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return i.hashMessage}}),Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return i.verifyMessage}});var o=n(50997);Object.defineProperty(t,"solidityPacked",{enumerable:!0,get:function(){return o.solidityPacked}}),Object.defineProperty(t,"solidityPackedKeccak256",{enumerable:!0,get:function(){return o.solidityPackedKeccak256}}),Object.defineProperty(t,"solidityPackedSha256",{enumerable:!0,get:function(){return o.solidityPackedSha256}});var s=n(78901);Object.defineProperty(t,"TypedDataEncoder",{enumerable:!0,get:function(){return s.TypedDataEncoder}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return s.verifyTypedData}})},62674:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyMessage=t.hashMessage=void 0;const r=n(86425),a=n(8753),i=n(15762),o=n(91588);function s(e){return"string"===typeof e&&(e=(0,o.toUtf8Bytes)(e)),(0,r.keccak256)((0,o.concat)([(0,o.toUtf8Bytes)(a.MessagePrefix),(0,o.toUtf8Bytes)(String(e.length)),e]))}t.hashMessage=s,t.verifyMessage=function(e,t){const n=s(e);return(0,i.recoverAddress)(n,t)}},14153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dnsEncode=t.namehash=t.isValidName=t.ensNormalize=void 0;const r=n(86425),a=n(91588),i=n(15753),o=new Uint8Array(32);function s(e){return(0,a.assertArgument)(0!==e.length,"invalid ENS name; empty component","comp",e),e}function f(e){const t=(0,a.toUtf8Bytes)(c(e)),n=[];if(0===e.length)return n;let r=0;for(let a=0;a<t.length;a++){46===t[a]&&(n.push(s(t.slice(r,a))),r=a+1)}return(0,a.assertArgument)(r<t.length,"invalid ENS name; empty component","name",e),n.push(s(t.slice(r))),n}function c(e){try{if(0===e.length)throw new Error("empty label");return(0,i.ens_normalize)(e)}catch(t){(0,a.assertArgument)(!1,`invalid ENS name (${t.message})`,"name",e)}}o.fill(0),t.ensNormalize=c,t.isValidName=function(e){try{return 0!==f(e).length}catch(t){}return!1},t.namehash=function(e){(0,a.assertArgument)("string"===typeof e,"invalid ENS name; not a string","name",e),(0,a.assertArgument)(e.length,"invalid ENS name (empty label)","name",e);let t=o;const n=f(e);for(;n.length;)t=(0,r.keccak256)((0,a.concat)([t,(0,r.keccak256)(n.pop())]));return(0,a.hexlify)(t)},t.dnsEncode=function(e,t){const n=null!=t?t:63;return(0,a.assertArgument)(n<=255,"DNS encoded label cannot exceed 255","length",n),(0,a.hexlify)((0,a.concat)(f(e).map((t=>{(0,a.assertArgument)(t.length<=n,`label ${JSON.stringify(e)} exceeds ${n} bytes`,"name",e);const r=new Uint8Array(t.length+1);return r.set(t,1),r[0]=r.length-1,r}))))+"00"}},50997:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.solidityPackedSha256=t.solidityPackedKeccak256=t.solidityPacked=void 0;const r=n(30379),a=n(86425),i=n(91588),o=new RegExp("^bytes([0-9]+)$"),s=new RegExp("^(u?int)([0-9]*)$"),f=new RegExp("^(.*)\\[([0-9]*)\\]$");function c(e,t,n){switch(e){case"address":return n?(0,i.getBytes)((0,i.zeroPadValue)(t,32)):(0,i.getBytes)((0,r.getAddress)(t));case"string":return(0,i.toUtf8Bytes)(t);case"bytes":return(0,i.getBytes)(t);case"bool":return t=t?"0x01":"0x00",n?(0,i.getBytes)((0,i.zeroPadValue)(t,32)):(0,i.getBytes)(t)}let a=e.match(s);if(a){let r="int"===a[1],o=parseInt(a[2]||"256");return(0,i.assertArgument)((!a[2]||a[2]===String(o))&&o%8===0&&0!==o&&o<=256,"invalid number type","type",e),n&&(o=256),r&&(t=(0,i.toTwos)(t,o)),(0,i.getBytes)((0,i.zeroPadValue)((0,i.toBeArray)(t),o/8))}if(a=e.match(o),a){const r=parseInt(a[1]);return(0,i.assertArgument)(String(r)===a[1]&&0!==r&&r<=32,"invalid bytes type","type",e),(0,i.assertArgument)((0,i.dataLength)(t)===r,`invalid value for ${e}`,"value",t),n?(0,i.getBytes)((0,i.zeroPadBytes)(t,32)):t}if(a=e.match(f),a&&Array.isArray(t)){const n=a[1],r=parseInt(a[2]||String(t.length));(0,i.assertArgument)(r===t.length,`invalid array length for ${e}`,"value",t);const o=[];return t.forEach((function(e){o.push(c(n,e,!0))})),(0,i.getBytes)((0,i.concat)(o))}(0,i.assertArgument)(!1,"invalid type","type",e)}function l(e,t){(0,i.assertArgument)(e.length===t.length,"wrong number of values; expected ${ types.length }","values",t);const n=[];return e.forEach((function(e,r){n.push(c(e,t[r]))})),(0,i.hexlify)((0,i.concat)(n))}t.solidityPacked=l,t.solidityPackedKeccak256=function(e,t){return(0,a.keccak256)(l(e,t))},t.solidityPackedSha256=function(e,t){return(0,a.sha256)(l(e,t))}},78901:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.verifyTypedData=t.TypedDataEncoder=void 0;const r=n(30379),a=n(86425),i=n(15762),o=n(91588),s=n(14680),f=new Uint8Array(32);f.fill(0);const c=BigInt(-1),l=BigInt(0),u=BigInt(1),d=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const p=(0,o.toBeHex)(u,32),h=(0,o.toBeHex)(l,32),b={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},y=["name","version","chainId","verifyingContract","salt"];function m(e){return function(t){return(0,o.assertArgument)("string"===typeof t,`invalid domain value for ${JSON.stringify(e)}`,`domain.${e}`,t),t}}const g={name:m("name"),version:m("version"),chainId:function(e){const t=(0,o.getBigInt)(e,"domain.chainId");return(0,o.assertArgument)(t>=0,"invalid chain ID","domain.chainId",e),Number.isSafeInteger(t)?Number(t):(0,o.toQuantity)(t)},verifyingContract:function(e){try{return(0,r.getAddress)(e).toLowerCase()}catch(t){}(0,o.assertArgument)(!1,'invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){const t=(0,o.getBytes)(e,"domain.salt");return(0,o.assertArgument)(32===t.length,'invalid domain value "salt"',"domain.salt",e),(0,o.hexlify)(t)}};function v(e){{const t=e.match(/^(u?)int(\d+)$/);if(t){const n=""===t[1],r=parseInt(t[2]);(0,o.assertArgument)(r%8===0&&0!==r&&r<=256&&t[2]===String(r),"invalid numeric width","type",e);const a=(0,o.mask)(d,n?r-1:r),i=n?(a+u)*c:l;return function(t){const r=(0,o.getBigInt)(t,"value");return(0,o.assertArgument)(r>=i&&r<=a,`value out-of-bounds for ${e}`,"value",r),(0,o.toBeHex)(n?(0,o.toTwos)(r,256):r,32)}}}{const t=e.match(/^bytes(\d+)$/);if(t){const n=parseInt(t[1]);return(0,o.assertArgument)(0!==n&&n<=32&&t[1]===String(n),"invalid bytes width","type",e),function(t){const r=(0,o.getBytes)(t);return(0,o.assertArgument)(r.length===n,`invalid length for ${e}`,"value",t),function(e){const t=(0,o.getBytes)(e),n=t.length%32;return n?(0,o.concat)([t,f.slice(n)]):(0,o.hexlify)(t)}(t)}}}switch(e){case"address":return function(e){return(0,o.zeroPadValue)((0,r.getAddress)(e),32)};case"bool":return function(e){return e?p:h};case"bytes":return function(e){return(0,a.keccak256)(e)};case"string":return function(e){return(0,s.id)(e)}}return null}function w(e,t){return`${e}(${t.map((e=>{let{name:t,type:n}=e;return n+" "+t})).join(",")})`}function E(e){const t=e.match(/^([^\x5b]*)((\x5b\d*\x5d)*)(\x5b(\d*)\x5d)$/);return t?{base:t[1],index:t[2]+t[4],array:{base:t[1],prefix:t[1]+t[2],count:t[5]?parseInt(t[5]):-1}}:{base:e}}class A{primaryType;#x;get types(){return JSON.parse(this.#x)}#O;#S;constructor(e){this.#O=new Map,this.#S=new Map;const t=new Map,n=new Map,r=new Map,a={};Object.keys(e).forEach((i=>{a[i]=e[i].map((t=>{let{name:n,type:r}=t,{base:a,index:i}=E(r);return"int"!==a||e.int||(a="int256"),"uint"!==a||e.uint||(a="uint256"),{name:n,type:a+(i||"")}})),t.set(i,new Set),n.set(i,[]),r.set(i,new Set)})),this.#x=JSON.stringify(a);for(const s in a){const r=new Set;for(const i of a[s]){(0,o.assertArgument)(!r.has(i.name),`duplicate variable name ${JSON.stringify(i.name)} in ${JSON.stringify(s)}`,"types",e),r.add(i.name);const a=E(i.type).base;(0,o.assertArgument)(a!==s,`circular type reference to ${JSON.stringify(a)}`,"types",e);v(a)||((0,o.assertArgument)(n.has(a),`unknown type ${JSON.stringify(a)}`,"types",e),n.get(a).push(s),t.get(s).add(a))}}const i=Array.from(n.keys()).filter((e=>0===n.get(e).length));(0,o.assertArgument)(0!==i.length,"missing primary type","types",e),(0,o.assertArgument)(1===i.length,`ambiguous primary types or unused types: ${i.map((e=>JSON.stringify(e))).join(", ")}`,"types",e),(0,o.defineProperties)(this,{primaryType:i[0]}),function a(i,s){(0,o.assertArgument)(!s.has(i),`circular type reference to ${JSON.stringify(i)}`,"types",e),s.add(i);for(const e of t.get(i))if(n.has(e)){a(e,s);for(const t of s)r.get(t).add(e)}s.delete(i)}(this.primaryType,new Set);for(const[o,s]of r){const e=Array.from(s);e.sort(),this.#O.set(o,w(o,a[o])+e.map((e=>w(e,a[e]))).join(""))}}getEncoder(e){let t=this.#S.get(e);return t||(t=this.#R(e),this.#S.set(e,t)),t}#R(e){{const t=v(e);if(t)return t}const t=E(e).array;if(t){const e=t.prefix,n=this.getEncoder(e);return r=>{(0,o.assertArgument)(-1===t.count||t.count===r.length,`array length mismatch; expected length ${t.count}`,"value",r);let i=r.map(n);return this.#O.has(e)&&(i=i.map(a.keccak256)),(0,a.keccak256)((0,o.concat)(i))}}const n=this.types[e];if(n){const t=(0,s.id)(this.#O.get(e));return e=>{const r=n.map((t=>{let{name:n,type:r}=t;const i=this.getEncoder(r)(e[n]);return this.#O.has(r)?(0,a.keccak256)(i):i}));return r.unshift(t),(0,o.concat)(r)}}(0,o.assertArgument)(!1,`unknown type: ${e}`,"type",e)}encodeType(e){const t=this.#O.get(e);return(0,o.assertArgument)(t,`unknown type: ${JSON.stringify(e)}`,"name",e),t}encodeData(e,t){return this.getEncoder(e)(t)}hashStruct(e,t){return(0,a.keccak256)(this.encodeData(e,t))}encode(e){return this.encodeData(this.primaryType,e)}hash(e){return this.hashStruct(this.primaryType,e)}_visit(e,t,n){if(v(e))return n(e,t);const r=E(e).array;if(r)return(0,o.assertArgument)(-1===r.count||r.count===t.length,`array length mismatch; expected length ${r.count}`,"value",t),t.map((e=>this._visit(r.prefix,e,n)));const a=this.types[e];if(a)return a.reduce(((e,r)=>{let{name:a,type:i}=r;return e[a]=this._visit(i,t[a],n),e}),{});(0,o.assertArgument)(!1,`unknown type: ${e}`,"type",e)}visit(e,t){return this._visit(this.primaryType,e,t)}static from(e){return new A(e)}static getPrimaryType(e){return A.from(e).primaryType}static hashStruct(e,t,n){return A.from(t).hashStruct(e,n)}static hashDomain(e){const t=[];for(const n in e){if(null==e[n])continue;const r=b[n];(0,o.assertArgument)(r,`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",e),t.push({name:n,type:r})}return t.sort(((e,t)=>y.indexOf(e.name)-y.indexOf(t.name))),A.hashStruct("EIP712Domain",{EIP712Domain:t},e)}static encode(e,t,n){return(0,o.concat)(["0x1901",A.hashDomain(e),A.from(t).hash(n)])}static hash(e,t,n){return(0,a.keccak256)(A.encode(e,t,n))}static async resolveNames(e,t,n,r){e=Object.assign({},e);for(const o in e)null==e[o]&&delete e[o];const a={};e.verifyingContract&&!(0,o.isHexString)(e.verifyingContract,20)&&(a[e.verifyingContract]="0x");const i=A.from(t);i.visit(n,((e,t)=>("address"!==e||(0,o.isHexString)(t,20)||(a[t]="0x"),t)));for(const o in a)a[o]=await r(o);return e.verifyingContract&&a[e.verifyingContract]&&(e.verifyingContract=a[e.verifyingContract]),{domain:e,value:n=i.visit(n,((e,t)=>"address"===e&&a[t]?a[t]:t))}}static getPayload(e,t,n){A.hashDomain(e);const r={},a=[];y.forEach((t=>{const n=e[t];null!=n&&(r[t]=g[t](n),a.push({name:t,type:b[t]}))}));const i=A.from(t);t=i.types;const s=Object.assign({},t);return(0,o.assertArgument)(null==s.EIP712Domain,"types must not contain EIP712Domain type","types.EIP712Domain",t),s.EIP712Domain=a,i.encode(n),{types:s,domain:r,primaryType:i.primaryType,message:i.visit(n,((e,t)=>{if(e.match(/^bytes(\d*)/))return(0,o.hexlify)((0,o.getBytes)(t));if(e.match(/^u?int/))return(0,o.getBigInt)(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return(0,o.assertArgument)("string"===typeof t,"invalid string","value",t),t}(0,o.assertArgument)(!1,"unsupported type","type",e)}))}}}t.TypedDataEncoder=A,t.verifyTypedData=function(e,t,n,r){return(0,i.recoverAddress)(A.hash(e,t,n),r)}},58986:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethers=void 0;const r=n(90701),a=r.__importStar(n(83232));t.ethers=a,r.__exportStar(n(83232),t)},18745:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractProvider=t.UnmanagedSubscriber=void 0;const r=n(30379),a=n(8753),i=n(78119),o=n(76439),s=n(15762),f=n(91588),c=n(4439),l=n(17493),u=n(45282),d=n(9125),p=n(63650),h=BigInt(2);function b(e){return e&&"function"===typeof e.then}function y(e,t){return e+":"+JSON.stringify(t,((e,t)=>{if(null==t)return"null";if("bigint"===typeof t)return`bigint:${t.toString()}`;if("string"===typeof t)return t.toLowerCase();if("object"===typeof t&&!Array.isArray(t)){const e=Object.keys(t);return e.sort(),e.reduce(((e,n)=>(e[n]=t[n],e)),{})}return t}))}class m{name;constructor(e){(0,f.defineProperties)(this,{name:e})}start(){}stop(){}pause(e){}resume(){}}function g(e){return(e=Array.from(new Set(e).values())).sort(),e}async function v(e,t){if(null==e)throw new Error("invalid event");if(Array.isArray(e)&&(e={topics:e}),"string"===typeof e)switch(e){case"block":case"debug":case"error":case"finalized":case"network":case"pending":case"safe":return{type:e,tag:e}}if((0,f.isHexString)(e,32)){const t=e.toLowerCase();return{type:"transaction",tag:y("tx",{hash:t}),hash:t}}if(e.orphan){const t=e;return{type:"orphan",tag:y("orphan",t),filter:(n=t,JSON.parse(JSON.stringify(n)))}}var n;if(e.address||e.topics){const n=e,a={topics:(n.topics||[]).map((e=>null==e?null:Array.isArray(e)?g(e.map((e=>e.toLowerCase()))):e.toLowerCase()))};if(n.address){const e=[],i=[],o=n=>{(0,f.isHexString)(n)?e.push(n):i.push((async()=>{e.push(await(0,r.resolveAddress)(n,t))})())};Array.isArray(n.address)?n.address.forEach(o):o(n.address),i.length&&await Promise.all(i),a.address=g(e.map((e=>e.toLowerCase())))}return{filter:a,tag:y("event",a),type:"event"}}(0,f.assertArgument)(!1,"unknown ProviderEvent","event",e)}function w(){return(new Date).getTime()}t.UnmanagedSubscriber=m;const E={cacheTimeout:250,pollingInterval:4e3};function A(e,t){try{const n=P(e,t);if(n)return(0,f.toUtf8String)(n)}catch(n){}return null}function P(e,t){if("0x"===e)return null;try{const n=(0,f.getNumber)((0,f.dataSlice)(e,t,t+32)),r=(0,f.getNumber)((0,f.dataSlice)(e,n,n+32));return(0,f.dataSlice)(e,n+32,n+32+r)}catch(n){}return null}function _(e){const t=(0,f.toBeArray)(e);if(t.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(t,32-t.length),n}function T(e){if(e.length%32===0)return e;const t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}t.AbstractProvider=class{#I;#N;#B;#j;#D;#L;#M;#U;#F;#z;#$;#w;constructor(e,t){if(this.#w=Object.assign({},E,t||{}),"any"===e)this.#L=!0,this.#D=null;else if(e){const t=u.Network.from(e);this.#L=!1,this.#D=Promise.resolve(t),setTimeout((()=>{this.emit("network",t,null)}),0)}else this.#L=!1,this.#D=null;this.#U=-1,this.#M=new Map,this.#I=new Map,this.#N=new Map,this.#B=null,this.#j=!1,this.#F=1,this.#z=new Map,this.#$=!1}get pollingInterval(){return this.#w.pollingInterval}get provider(){return this}get plugins(){return Array.from(this.#N.values())}attachPlugin(e){if(this.#N.get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return this.#N.set(e.name,e.connect(this)),this}getPlugin(e){return this.#N.get(e)||null}get disableCcipRead(){return this.#$}set disableCcipRead(e){this.#$=!!e}async#G(e){const t=this.#w.cacheTimeout;if(t<0)return await this._perform(e);const n=y(e.method,e);let r=this.#M.get(n);return r||(r=this._perform(e),this.#M.set(n,r),setTimeout((()=>{this.#M.get(n)===r&&this.#M.delete(n)}),t)),await r}async ccipReadFetch(e,t,n){if(this.disableCcipRead||0===n.length||null==e.to)return null;const r=e.to.toLowerCase(),a=t.toLowerCase(),i=[];for(let s=0;s<n.length;s++){const t=n[s],c=t.replace("{sender}",r).replace("{data}",a),l=new f.FetchRequest(c);-1===t.indexOf("{data}")&&(l.body={data:a,sender:r}),this.emit("debug",{action:"sendCcipReadFetchRequest",request:l,index:s,urls:n});let u="unknown error";const d=await l.send();try{const e=d.bodyJson;if(e.data)return this.emit("debug",{action:"receiveCcipReadFetchResult",request:l,result:e}),e.data;e.message&&(u=e.message),this.emit("debug",{action:"receiveCcipReadFetchError",request:l,result:e})}catch(o){}(0,f.assert)(d.statusCode<400||d.statusCode>=500,`response not found during CCIP fetch: ${u}`,"OFFCHAIN_FAULT",{reason:"404_MISSING_RESOURCE",transaction:e,info:{url:t,errorMessage:u}}),i.push(u)}(0,f.assert)(!1,`error encountered during CCIP fetch: ${i.map((e=>JSON.stringify(e))).join(", ")}`,"OFFCHAIN_FAULT",{reason:"500_SERVER_ERROR",transaction:e,info:{urls:n,errorMessages:i}})}_wrapBlock(e,t){return new d.Block((0,l.formatBlock)(e),this)}_wrapLog(e,t){return new d.Log((0,l.formatLog)(e),this)}_wrapTransactionReceipt(e,t){return new d.TransactionReceipt((0,l.formatTransactionReceipt)(e),this)}_wrapTransactionResponse(e,t){return new d.TransactionResponse((0,l.formatTransactionResponse)(e),this)}_detectNetwork(){(0,f.assert)(!1,"sub-classes must implement this","UNSUPPORTED_OPERATION",{operation:"_detectNetwork"})}async _perform(e){(0,f.assert)(!1,`unsupported method: ${e.method}`,"UNSUPPORTED_OPERATION",{operation:e.method,info:e})}async getBlockNumber(){const e=(0,f.getNumber)(await this.#G({method:"getBlockNumber"}),"%response");return this.#U>=0&&(this.#U=e),e}_getAddress(e){return(0,r.resolveAddress)(e,this)}_getBlockTag(e){if(null==e)return"latest";switch(e){case"earliest":return"0x0";case"finalized":case"latest":case"pending":case"safe":return e}return(0,f.isHexString)(e)?(0,f.isHexString)(e,32)?e:(0,f.toQuantity)(e):("bigint"===typeof e&&(e=(0,f.getNumber)(e,"blockTag")),"number"===typeof e?e>=0?(0,f.toQuantity)(e):this.#U>=0?(0,f.toQuantity)(this.#U+e):this.getBlockNumber().then((t=>(0,f.toQuantity)(t+e))):void(0,f.assertArgument)(!1,"invalid blockTag","blockTag",e))}_getFilter(e){const t=(e.topics||[]).map((e=>null==e?null:Array.isArray(e)?g(e.map((e=>e.toLowerCase()))):e.toLowerCase())),n="blockHash"in e?e.blockHash:void 0,r=(e,r,a)=>{let i;switch(e.length){case 0:break;case 1:i=e[0];break;default:e.sort(),i=e}if(n&&(null!=r||null!=a))throw new Error("invalid filter");const o={};return i&&(o.address=i),t.length&&(o.topics=t),r&&(o.fromBlock=r),a&&(o.toBlock=a),n&&(o.blockHash=n),o};let a,i,o=[];if(e.address)if(Array.isArray(e.address))for(const s of e.address)o.push(this._getAddress(s));else o.push(this._getAddress(e.address));return"fromBlock"in e&&(a=this._getBlockTag(e.fromBlock)),"toBlock"in e&&(i=this._getBlockTag(e.toBlock)),o.filter((e=>"string"!==typeof e)).length||null!=a&&"string"!==typeof a||null!=i&&"string"!==typeof i?Promise.all([Promise.all(o),a,i]).then((e=>r(e[0],e[1],e[2]))):r(o,a,i)}_getTransactionRequest(e){const t=(0,d.copyRequest)(e),n=[];if(["to","from"].forEach((e=>{if(null==t[e])return;const a=(0,r.resolveAddress)(t[e],this);b(a)?n.push(async function(){t[e]=await a}()):t[e]=a})),null!=t.blockTag){const e=this._getBlockTag(t.blockTag);b(e)?n.push(async function(){t.blockTag=await e}()):t.blockTag=e}return n.length?async function(){return await Promise.all(n),t}():t}async getNetwork(){if(null==this.#D){const e=(async()=>{try{const e=await this._detectNetwork();return this.emit("network",e,null),e}catch(t){throw this.#D===e&&(this.#D=null),t}})();return this.#D=e,(await e).clone()}const e=this.#D,[t,n]=await Promise.all([e,this._detectNetwork()]);return t.chainId!==n.chainId&&(this.#L?(this.emit("network",n,t),this.#D===e&&(this.#D=Promise.resolve(n))):(0,f.assert)(!1,`network changed: ${t.chainId} => ${n.chainId} `,"NETWORK_ERROR",{event:"changed"})),t.clone()}async getFeeData(){const e=await this.getNetwork(),t=async()=>{const{_block:t,gasPrice:n,priorityFee:r}=await(0,f.resolveProperties)({_block:this.#H("latest",!1),gasPrice:(async()=>{try{const e=await this.#G({method:"getGasPrice"});return(0,f.getBigInt)(e,"%response")}catch(e){}return null})(),priorityFee:(async()=>{try{const e=await this.#G({method:"getPriorityFee"});return(0,f.getBigInt)(e,"%response")}catch(e){}return null})()});let a=null,i=null;const o=this._wrapBlock(t,e);return o&&o.baseFeePerGas&&(i=null!=r?r:BigInt("1000000000"),a=o.baseFeePerGas*h+i),new d.FeeData(n,a,i)},n=e.getPlugin("org.ethers.plugins.network.FetchUrlFeeDataPlugin");if(n){const e=new f.FetchRequest(n.url),r=await n.processFunc(t,this,e);return new d.FeeData(r.gasPrice,r.maxFeePerGas,r.maxPriorityFeePerGas)}return await t()}async estimateGas(e){let t=this._getTransactionRequest(e);return b(t)&&(t=await t),(0,f.getBigInt)(await this.#G({method:"estimateGas",transaction:t}),"%response")}async#W(e,t,n){(0,f.assert)(n<10,"CCIP read exceeded maximum redirections","OFFCHAIN_FAULT",{reason:"TOO_MANY_REDIRECTS",transaction:Object.assign({},e,{blockTag:t,enableCcipRead:!0})});const a=(0,d.copyRequest)(e);try{return(0,f.hexlify)(await this._perform({method:"call",transaction:a,blockTag:t}))}catch(i){if(!this.disableCcipRead&&(0,f.isCallException)(i)&&i.data&&n>=0&&"latest"===t&&null!=a.to&&"0x556f1830"===(0,f.dataSlice)(i.data,0,4)){const e=i.data,o=await(0,r.resolveAddress)(a.to,this);let s;try{s=function(e){const t={sender:"",urls:[],calldata:"",selector:"",extraData:"",errorArgs:[]};(0,f.assert)((0,f.dataLength)(e)>=160,"insufficient OffchainLookup data","OFFCHAIN_FAULT",{reason:"insufficient OffchainLookup data"});const n=(0,f.dataSlice)(e,0,32);(0,f.assert)((0,f.dataSlice)(n,0,12)===(0,f.dataSlice)(x,0,12),"corrupt OffchainLookup sender","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup sender"}),t.sender=(0,f.dataSlice)(n,12);try{const n=[],r=(0,f.getNumber)((0,f.dataSlice)(e,32,64)),a=(0,f.getNumber)((0,f.dataSlice)(e,r,r+32)),i=(0,f.dataSlice)(e,r+32);for(let e=0;e<a;e++){const t=A(i,32*e);if(null==t)throw new Error("abort");n.push(t)}t.urls=n}catch(i){(0,f.assert)(!1,"corrupt OffchainLookup urls","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup urls"})}try{const n=P(e,64);if(null==n)throw new Error("abort");t.calldata=n}catch(i){(0,f.assert)(!1,"corrupt OffchainLookup calldata","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup calldata"})}(0,f.assert)((0,f.dataSlice)(e,100,128)===(0,f.dataSlice)(x,0,28),"corrupt OffchainLookup callbaackSelector","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup callbaackSelector"}),t.selector=(0,f.dataSlice)(e,96,100);try{const n=P(e,128);if(null==n)throw new Error("abort");t.extraData=n}catch(i){(0,f.assert)(!1,"corrupt OffchainLookup extraData","OFFCHAIN_FAULT",{reason:"corrupt OffchainLookup extraData"})}return t.errorArgs="sender,urls,calldata,selector,extraData".split(/,/).map((e=>t[e])),t}((0,f.dataSlice)(i.data,4))}catch(i){(0,f.assert)(!1,i.message,"OFFCHAIN_FAULT",{reason:"BAD_DATA",transaction:a,info:{data:e}})}(0,f.assert)(s.sender.toLowerCase()===o.toLowerCase(),"CCIP Read sender mismatch","CALL_EXCEPTION",{action:"call",data:e,reason:"OffchainLookup",transaction:a,invocation:null,revert:{signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",name:"OffchainLookup",args:s.errorArgs}});const c=await this.ccipReadFetch(a,s.calldata,s.urls);(0,f.assert)(null!=c,"CCIP Read failed to fetch data","OFFCHAIN_FAULT",{reason:"FETCH_FAILED",transaction:a,info:{data:i.data,errorArgs:s.errorArgs}});const l={to:o,data:(0,f.concat)([s.selector,C([c,s.extraData])])};this.emit("debug",{action:"sendCcipReadCall",transaction:l});try{const e=await this.#W(l,t,n+1);return this.emit("debug",{action:"receiveCcipReadCallResult",transaction:Object.assign({},l),result:e}),e}catch(i){throw this.emit("debug",{action:"receiveCcipReadCallError",transaction:Object.assign({},l),error:i}),i}}throw i}}async#V(e){const{value:t}=await(0,f.resolveProperties)({network:this.getNetwork(),value:e});return t}async call(e){const{tx:t,blockTag:n}=await(0,f.resolveProperties)({tx:this._getTransactionRequest(e),blockTag:this._getBlockTag(e.blockTag)});return await this.#V(this.#W(t,n,e.enableCcipRead?0:-1))}async#q(e,t,n){let r=this._getAddress(t),a=this._getBlockTag(n);return"string"===typeof r&&"string"===typeof a||([r,a]=await Promise.all([r,a])),await this.#V(this.#G(Object.assign(e,{address:r,blockTag:a})))}async getBalance(e,t){return(0,f.getBigInt)(await this.#q({method:"getBalance"},e,t),"%response")}async getTransactionCount(e,t){return(0,f.getNumber)(await this.#q({method:"getTransactionCount"},e,t),"%response")}async getCode(e,t){return(0,f.hexlify)(await this.#q({method:"getCode"},e,t))}async getStorage(e,t,n){const r=(0,f.getBigInt)(t,"position");return(0,f.hexlify)(await this.#q({method:"getStorage",position:r},e,n))}async broadcastTransaction(e){const{blockNumber:t,hash:n,network:r}=await(0,f.resolveProperties)({blockNumber:this.getBlockNumber(),hash:this._perform({method:"broadcastTransaction",signedTransaction:e}),network:this.getNetwork()}),a=s.Transaction.from(e);if(a.hash!==n)throw new Error("@TODO: the returned hash did not match");return this._wrapTransactionResponse(a,r).replaceableTransaction(t)}async#H(e,t){if((0,f.isHexString)(e,32))return await this.#G({method:"getBlock",blockHash:e,includeTransactions:t});let n=this._getBlockTag(e);return"string"!==typeof n&&(n=await n),await this.#G({method:"getBlock",blockTag:n,includeTransactions:t})}async getBlock(e,t){const{network:n,params:r}=await(0,f.resolveProperties)({network:this.getNetwork(),params:this.#H(e,!!t)});return null==r?null:this._wrapBlock(r,n)}async getTransaction(e){const{network:t,params:n}=await(0,f.resolveProperties)({network:this.getNetwork(),params:this.#G({method:"getTransaction",hash:e})});return null==n?null:this._wrapTransactionResponse(n,t)}async getTransactionReceipt(e){const{network:t,params:n}=await(0,f.resolveProperties)({network:this.getNetwork(),params:this.#G({method:"getTransactionReceipt",hash:e})});if(null==n)return null;if(null==n.gasPrice&&null==n.effectiveGasPrice){const t=await this.#G({method:"getTransaction",hash:e});if(null==t)throw new Error("report this; could not find tx or effectiveGasPrice");n.effectiveGasPrice=t.gasPrice}return this._wrapTransactionReceipt(n,t)}async getTransactionResult(e){const{result:t}=await(0,f.resolveProperties)({network:this.getNetwork(),result:this.#G({method:"getTransactionResult",hash:e})});return null==t?null:(0,f.hexlify)(t)}async getLogs(e){let t=this._getFilter(e);b(t)&&(t=await t);const{network:n,params:r}=await(0,f.resolveProperties)({network:this.getNetwork(),params:this.#G({method:"getLogs",filter:t})});return r.map((e=>this._wrapLog(e,n)))}_getProvider(e){(0,f.assert)(!1,"provider cannot connect to target network","UNSUPPORTED_OPERATION",{operation:"_getProvider()"})}async getResolver(e){return await c.EnsResolver.fromName(this,e)}async getAvatar(e){const t=await this.getResolver(e);return t?await t.getAvatar():null}async resolveName(e){const t=await this.getResolver(e);return t?await t.getAddress():null}async lookupAddress(e){e=(0,r.getAddress)(e);const t=(0,o.namehash)(e.substring(2).toLowerCase()+".addr.reverse");try{const n=await c.EnsResolver.getEnsAddress(this),r=new i.Contract(n,["function resolver(bytes32) view returns (address)"],this),o=await r.resolver(t);if(null==o||o===a.ZeroAddress)return null;const s=new i.Contract(o,["function name(bytes32) view returns (string)"],this),f=await s.name(t);return await this.resolveName(f)!==e?null:f}catch(n){if((0,f.isError)(n,"BAD_DATA")&&"0x"===n.value)return null;if((0,f.isError)(n,"CALL_EXCEPTION"))return null;throw n}return null}async waitForTransaction(e,t,n){const r=null!=t?t:1;return 0===r?this.getTransactionReceipt(e):new Promise((async(t,a)=>{let i=null;const o=async n=>{try{const a=await this.getTransactionReceipt(e);if(null!=a&&n-a.blockNumber+1>=r)return t(a),void(i&&(clearTimeout(i),i=null))}catch(a){console.log("EEE",a)}this.once("block",o)};null!=n&&(i=setTimeout((()=>{null!=i&&(i=null,this.off("block",o),a((0,f.makeError)("timeout","TIMEOUT",{reason:"timeout"})))}),n)),o(await this.getBlockNumber())}))}async waitForBlock(e){(0,f.assert)(!1,"not implemented yet","NOT_IMPLEMENTED",{operation:"waitForBlock"})}_clearTimeout(e){const t=this.#z.get(e);t&&(t.timer&&clearTimeout(t.timer),this.#z.delete(e))}_setTimeout(e,t){null==t&&(t=0);const n=this.#F++,r=()=>{this.#z.delete(n),e()};if(this.paused)this.#z.set(n,{timer:null,func:r,time:t});else{const e=setTimeout(r,t);this.#z.set(n,{timer:e,func:r,time:w()})}return n}_forEachSubscriber(e){for(const t of this.#I.values())e(t.subscriber)}_getSubscriber(e){switch(e.type){case"debug":case"error":case"network":return new m(e.type);case"block":{const e=new p.PollingBlockSubscriber(this);return e.pollingInterval=this.pollingInterval,e}case"safe":case"finalized":return new p.PollingBlockTagSubscriber(this,e.type);case"event":return new p.PollingEventSubscriber(this,e.filter);case"transaction":return new p.PollingTransactionSubscriber(this,e.hash);case"orphan":return new p.PollingOrphanSubscriber(this,e.filter)}throw new Error(`unsupported event: ${e.type}`)}_recoverSubscriber(e,t){for(const n of this.#I.values())if(n.subscriber===e){n.started&&n.subscriber.stop(),n.subscriber=t,n.started&&t.start(),null!=this.#B&&t.pause(this.#B);break}}async#K(e,t){let n=await v(e,this);return"event"===n.type&&t&&t.length>0&&!0===t[0].removed&&(n=await v({orphan:"drop-log",log:t[0]},this)),this.#I.get(n.tag)||null}async#Z(e){const t=await v(e,this),n=t.tag;let r=this.#I.get(n);if(!r){r={subscriber:this._getSubscriber(t),tag:n,addressableMap:new WeakMap,nameMap:new Map,started:!1,listeners:[]},this.#I.set(n,r)}return r}async on(e,t){const n=await this.#Z(e);return n.listeners.push({listener:t,once:!1}),n.started||(n.subscriber.start(),n.started=!0,null!=this.#B&&n.subscriber.pause(this.#B)),this}async once(e,t){const n=await this.#Z(e);return n.listeners.push({listener:t,once:!0}),n.started||(n.subscriber.start(),n.started=!0,null!=this.#B&&n.subscriber.pause(this.#B)),this}async emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];const a=await this.#K(e,n);if(!a||0===a.listeners.length)return!1;const i=a.listeners.length;return a.listeners=a.listeners.filter((t=>{let{listener:r,once:a}=t;const i=new f.EventPayload(this,a?null:r,e);try{r.call(this,...n,i)}catch(o){}return!a})),0===a.listeners.length&&(a.started&&a.subscriber.stop(),this.#I.delete(a.tag)),i>0}async listenerCount(e){if(e){const t=await this.#K(e);return t?t.listeners.length:0}let t=0;for(const{listeners:n}of this.#I.values())t+=n.length;return t}async listeners(e){if(e){const t=await this.#K(e);return t?t.listeners.map((e=>{let{listener:t}=e;return t})):[]}let t=[];for(const{listeners:n}of this.#I.values())t=t.concat(n.map((e=>{let{listener:t}=e;return t})));return t}async off(e,t){const n=await this.#K(e);if(!n)return this;if(t){const e=n.listeners.map((e=>{let{listener:t}=e;return t})).indexOf(t);e>=0&&n.listeners.splice(e,1)}return t&&0!==n.listeners.length||(n.started&&n.subscriber.stop(),this.#I.delete(n.tag)),this}async removeAllListeners(e){if(e){const{tag:t,started:n,subscriber:r}=await this.#Z(e);n&&r.stop(),this.#I.delete(t)}else for(const[t,{started:n,subscriber:r}]of this.#I)n&&r.stop(),this.#I.delete(t);return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return this.off(e,t)}get destroyed(){return this.#j}destroy(){this.removeAllListeners();for(const e of this.#z.keys())this._clearTimeout(e);this.#j=!0}get paused(){return null!=this.#B}set paused(e){!!e!==this.paused&&(this.paused?this.resume():this.pause(!1))}pause(e){if(this.#U=-1,null!=this.#B){if(this.#B==!!e)return;(0,f.assert)(!1,"cannot change pause type; resume first","UNSUPPORTED_OPERATION",{operation:"pause"})}this._forEachSubscriber((t=>t.pause(e))),this.#B=!!e;for(const t of this.#z.values())t.timer&&clearTimeout(t.timer),t.time=w()-t.time}resume(){if(null!=this.#B){this._forEachSubscriber((e=>e.resume())),this.#B=null;for(const e of this.#z.values()){let t=e.time;t<0&&(t=0),e.time=w(),setTimeout(e.func,t)}}}};const k=new Uint8Array([]);function C(e){const t=[];let n=0;for(let r=0;r<e.length;r++)t.push(k),n+=32;for(let r=0;r<e.length;r++){const a=(0,f.getBytes)(e[r]);t[r]=_(n),t.push(_(a.length)),t.push(T(a)),n+=32+32*Math.ceil(a.length/32)}return(0,f.concat)(t)}const x="0x0000000000000000000000000000000000000000000000000000000000000000"},49873:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VoidSigner=t.AbstractSigner=void 0;const r=n(30379),a=n(15762),i=n(91588),o=n(9125);function s(e,t){if(e.provider)return e.provider;(0,i.assert)(!1,"missing provider","UNSUPPORTED_OPERATION",{operation:t})}async function f(e,t){let n=(0,o.copyRequest)(t);if(null!=n.to&&(n.to=(0,r.resolveAddress)(n.to,e)),null!=n.from){const t=n.from;n.from=Promise.all([e.getAddress(),(0,r.resolveAddress)(t,e)]).then((e=>{let[t,n]=e;return(0,i.assertArgument)(t.toLowerCase()===n.toLowerCase(),"transaction from mismatch","tx.from",n),t}))}else n.from=e.getAddress();return await(0,i.resolveProperties)(n)}class c{provider;constructor(e){(0,i.defineProperties)(this,{provider:e||null})}async getNonce(e){return s(this,"getTransactionCount").getTransactionCount(await this.getAddress(),e)}async populateCall(e){return await f(this,e)}async populateTransaction(e){const t=s(this,"populateTransaction"),n=await f(this,e);null==n.nonce&&(n.nonce=await this.getNonce("pending")),null==n.gasLimit&&(n.gasLimit=await this.estimateGas(n));const r=await this.provider.getNetwork();if(null!=n.chainId){const t=(0,i.getBigInt)(n.chainId);(0,i.assertArgument)(t===r.chainId,"transaction chainId mismatch","tx.chainId",e.chainId)}else n.chainId=r.chainId;const a=null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas;if(null==n.gasPrice||2!==n.type&&!a?0!==n.type&&1!==n.type||!a||(0,i.assertArgument)(!1,"pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","tx",e):(0,i.assertArgument)(!1,"eip-1559 transaction do not support gasPrice","tx",e),2!==n.type&&null!=n.type||null==n.maxFeePerGas||null==n.maxPriorityFeePerGas)if(0===n.type||1===n.type){const e=await t.getFeeData();(0,i.assert)(null!=e.gasPrice,"network does not support gasPrice","UNSUPPORTED_OPERATION",{operation:"getGasPrice"}),null==n.gasPrice&&(n.gasPrice=e.gasPrice)}else{const e=await t.getFeeData();if(null==n.type)if(null!=e.maxFeePerGas&&null!=e.maxPriorityFeePerGas)if(n.type=2,null!=n.gasPrice){const e=n.gasPrice;delete n.gasPrice,n.maxFeePerGas=e,n.maxPriorityFeePerGas=e}else null==n.maxFeePerGas&&(n.maxFeePerGas=e.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=e.maxPriorityFeePerGas);else null!=e.gasPrice?((0,i.assert)(!a,"network does not support EIP-1559","UNSUPPORTED_OPERATION",{operation:"populateTransaction"}),null==n.gasPrice&&(n.gasPrice=e.gasPrice),n.type=0):(0,i.assert)(!1,"failed to get consistent fee data","UNSUPPORTED_OPERATION",{operation:"signer.getFeeData"});else 2!==n.type&&3!==n.type||(null==n.maxFeePerGas&&(n.maxFeePerGas=e.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=e.maxPriorityFeePerGas))}else n.type=2;return await(0,i.resolveProperties)(n)}async estimateGas(e){return s(this,"estimateGas").estimateGas(await this.populateCall(e))}async call(e){return s(this,"call").call(await this.populateCall(e))}async resolveName(e){const t=s(this,"resolveName");return await t.resolveName(e)}async sendTransaction(e){const t=s(this,"sendTransaction"),n=await this.populateTransaction(e);delete n.from;const r=a.Transaction.from(n);return await t.broadcastTransaction(await this.signTransaction(r))}}t.AbstractSigner=c;class l extends c{address;constructor(e,t){super(t),(0,i.defineProperties)(this,{address:e})}async getAddress(){return this.address}connect(e){return new l(this.address,e)}#J(e,t){(0,i.assert)(!1,`VoidSigner cannot sign ${e}`,"UNSUPPORTED_OPERATION",{operation:t})}async signTransaction(e){this.#J("transactions","signTransaction")}async signMessage(e){this.#J("messages","signMessage")}async signTypedData(e,t,n){this.#J("typed-data","signTypedData")}}t.VoidSigner=l},31297:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.showThrottleMessage=void 0;const n=new Set;t.showThrottleMessage=function(e){n.has(e)||(n.add(e),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${e} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}},32015:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultProvider=void 0;const r=n(91588),a=n(87617),i=n(66920),o=n(27414),s=n(51298),f=n(91474),c=n(55640),l=n(91895),u=n(55940),d=n(420),p=n(45282),h=n(77258);const b="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");t.getDefaultProvider=function(e,t){null==t&&(t={});const n=e=>"-"!==t[e]&&("string"===typeof t.exclusive?e===t.exclusive:!Array.isArray(t.exclusive)||-1!==t.exclusive.indexOf(e));if("string"===typeof e&&e.match(/^https?:/))return new d.JsonRpcProvider(e);if("string"===typeof e&&e.match(/^wss?:/)||(y=e)&&"function"===typeof y.send&&"function"===typeof y.close)return new h.WebSocketProvider(e);var y;let m=null;try{m=p.Network.from(e)}catch(w){}const g=[];if(n("publicPolygon")&&m&&("matic"===m.name?g.push(new d.JsonRpcProvider("https://polygon-rpc.com/",m,{staticNetwork:m})):"matic-amoy"===m.name&&g.push(new d.JsonRpcProvider("https://rpc-amoy.polygon.technology/",m,{staticNetwork:m}))),n("alchemy"))try{g.push(new i.AlchemyProvider(e,t.alchemy))}catch(w){}if(n("ankr")&&null!=t.ankr)try{g.push(new a.AnkrProvider(e,t.ankr))}catch(w){}if(n("chainstack"))try{g.push(new o.ChainstackProvider(e,t.chainstack))}catch(w){}if(n("cloudflare"))try{g.push(new s.CloudflareProvider(e))}catch(w){}if(n("etherscan"))try{g.push(new f.EtherscanProvider(e,t.etherscan))}catch(w){}if(n("infura"))try{let n,r=t.infura;"object"===typeof r&&(n=r.projectSecret,r=r.projectId),g.push(new c.InfuraProvider(e,r,n))}catch(w){}if(n("quicknode"))try{let n=t.quicknode;g.push(new l.QuickNodeProvider(e,n))}catch(w){}if((0,r.assert)(g.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),1===g.length)return g[0];let v=Math.floor(g.length/2);return v>2&&(v=2),m&&-1!==b.indexOf(m.name)&&(v=1),t&&t.quorum&&(v=t.quorum),new u.FallbackProvider(g,void 0,{quorum:v})}},4439:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnsResolver=t.BasicMulticoinProviderPlugin=t.MulticoinProviderPlugin=void 0;const r=n(30379),a=n(8753),i=n(78119),o=n(76439),s=n(91588);function f(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):(0,s.assertArgument)(!1,"unsupported IPFS format","link",e),`https://gateway.ipfs.io/ipfs/${e}`}class c{name;constructor(e){(0,s.defineProperties)(this,{name:e})}connect(e){return this}supportsCoinType(e){return!1}async encodeAddress(e,t){throw new Error("unsupported coin")}async decodeAddress(e,t){throw new Error("unsupported coin")}}t.MulticoinProviderPlugin=c;t.BasicMulticoinProviderPlugin=class extends c{constructor(){super("org.ethers.plugins.provider.BasicMulticoin")}};const l=new RegExp("^(ipfs)://(.*)$","i"),u=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),l,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];class d{provider;address;name;#Y;#Q;constructor(e,t,n){(0,s.defineProperties)(this,{provider:e,address:t,name:n}),this.#Y=null,this.#Q=new i.Contract(t,["function supportsInterface(bytes4) view returns (bool)","function resolve(bytes, bytes) view returns (bytes)","function addr(bytes32) view returns (address)","function addr(bytes32, uint) view returns (bytes)","function text(bytes32, string) view returns (string)","function contenthash(bytes32) view returns (bytes)"],e)}async supportsWildcard(){return null==this.#Y&&(this.#Y=(async()=>{try{return await this.#Q.supportsInterface("0x9061b923")}catch(e){if((0,s.isError)(e,"CALL_EXCEPTION"))return!1;throw this.#Y=null,e}})()),await this.#Y}async#X(e,t){t=(t||[]).slice();const n=this.#Q.interface;t.unshift((0,o.namehash)(this.name));let r=null;await this.supportsWildcard()&&(r=n.getFunction(e),(0,s.assert)(r,"missing fragment","UNKNOWN_ERROR",{info:{funcName:e}}),t=[(0,o.dnsEncode)(this.name,255),n.encodeFunctionData(r,t)],e="resolve(bytes,bytes)"),t.push({enableCcipRead:!0});try{const a=await this.#Q[e](...t);return r?n.decodeFunctionResult(r,a)[0]:a}catch(a){if(!(0,s.isError)(a,"CALL_EXCEPTION"))throw a}return null}async getAddress(e){if(null==e&&(e=60),60===e)try{const e=await this.#X("addr(bytes32)");return null==e||e===a.ZeroAddress?null:e}catch(o){if((0,s.isError)(o,"CALL_EXCEPTION"))return null;throw o}if(e>=0&&e<2147483648){let t=e+2147483648;const n=await this.#X("addr(bytes32,uint)",[t]);if((0,s.isHexString)(n,20))return(0,r.getAddress)(n)}let t=null;for(const r of this.provider.plugins)if(r instanceof c&&r.supportsCoinType(e)){t=r;break}if(null==t)return null;const n=await this.#X("addr(bytes32,uint)",[e]);if(null==n||"0x"===n)return null;const i=await t.decodeAddress(e,n);if(null!=i)return i;(0,s.assert)(!1,"invalid coin data","UNSUPPORTED_OPERATION",{operation:`getAddress(${e})`,info:{coinType:e,data:n}})}async getText(e){const t=await this.#X("text(bytes32,string)",[e]);return null==t||"0x"===t?null:t}async getContentHash(){const e=await this.#X("contenthash(bytes32)");if(null==e||"0x"===e)return null;const t=e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);if(t){const e="e3010170"===t[1]?"ipfs":"ipns",n=parseInt(t[4],16);if(t[5].length===2*n)return`${e}://${(0,s.encodeBase58)("0x"+t[2])}`}const n=e.match(/^0xe40101fa011b20([0-9a-f]*)$/);if(n&&64===n[1].length)return`bzz://${n[1]}`;(0,s.assert)(!1,"invalid or unsupported content hash data","UNSUPPORTED_OPERATION",{operation:"getContentHash()",info:{data:e}})}async getAvatar(){return(await this._getAvatar()).url}async _getAvatar(){const e=[{type:"name",value:this.name}];try{const n=await this.getText("avatar");if(null==n)return e.push({type:"!avatar",value:""}),{url:null,linkage:e};e.push({type:"avatar",value:n});for(let r=0;r<u.length;r++){const a=n.match(u[r]);if(null==a)continue;const o=a[1].toLowerCase();switch(o){case"https":case"data":return e.push({type:"url",value:n}),{linkage:e,url:n};case"ipfs":{const t=f(n);return e.push({type:"ipfs",value:n}),e.push({type:"url",value:t}),{linkage:e,url:t}}case"erc721":case"erc1155":{const r="erc721"===o?"tokenURI(uint256)":"uri(uint256)";e.push({type:o,value:n});const c=await this.getAddress();if(null==c)return e.push({type:"!owner",value:""}),{url:null,linkage:e};const u=(a[2]||"").split("/");if(2!==u.length)return e.push({type:`!${o}caip`,value:a[2]||""}),{url:null,linkage:e};const d=u[1],p=new i.Contract(u[0],["function tokenURI(uint) view returns (string)","function ownerOf(uint) view returns (address)","function uri(uint) view returns (string)","function balanceOf(address, uint256) view returns (uint)"],this.provider);if("erc721"===o){const t=await p.ownerOf(d);if(c!==t)return e.push({type:"!owner",value:t}),{url:null,linkage:e};e.push({type:"owner",value:t})}else if("erc1155"===o){const t=await p.balanceOf(c,d);if(!t)return e.push({type:"!balance",value:"0"}),{url:null,linkage:e};e.push({type:"balance",value:t.toString()})}let h=await p[r](d);if(null==h||"0x"===h)return e.push({type:"!metadata-url",value:""}),{url:null,linkage:e};e.push({type:"metadata-url-base",value:h}),"erc1155"===o&&(h=h.replace("{id}",(0,s.toBeHex)(d,32).substring(2)),e.push({type:"metadata-url-expanded",value:h})),h.match(/^ipfs:/i)&&(h=f(h)),e.push({type:"metadata-url",value:h});let b={};const y=await new s.FetchRequest(h).send();y.assertOk();try{b=y.bodyJson}catch(t){try{e.push({type:"!metadata",value:y.bodyText})}catch(t){const n=y.body;return n&&e.push({type:"!metadata",value:(0,s.hexlify)(n)}),{url:null,linkage:e}}return{url:null,linkage:e}}if(!b)return e.push({type:"!metadata",value:""}),{url:null,linkage:e};e.push({type:"metadata",value:JSON.stringify(b)});let m=b.image;if("string"!==typeof m)return e.push({type:"!imageUrl",value:""}),{url:null,linkage:e};if(m.match(/^(https:\/\/|data:)/i));else{if(null==m.match(l))return e.push({type:"!imageUrl-ipfs",value:m}),{url:null,linkage:e};e.push({type:"imageUrl-ipfs",value:m}),m=f(m)}return e.push({type:"url",value:m}),{linkage:e,url:m}}}}}catch(t){}return{linkage:e,url:null}}static async getEnsAddress(e){const t=await e.getNetwork(),n=t.getPlugin("org.ethers.plugins.network.Ens");return(0,s.assert)(n,"network does not support ENS","UNSUPPORTED_OPERATION",{operation:"getEnsAddress",info:{network:t}}),n.address}static async#ee(e,t){const n=await d.getEnsAddress(e);try{const r=new i.Contract(n,["function resolver(bytes32) view returns (address)"],e),s=await r.resolver((0,o.namehash)(t),{enableCcipRead:!0});return s===a.ZeroAddress?null:s}catch(r){throw r}return null}static async fromName(e,t){let n=t;for(;;){if(""===n||"."===n)return null;if("eth"!==t&&"eth"===n)return null;const r=await d.#ee(e,n);if(null!=r){const a=new d(e,r,t);return n===t||await a.supportsWildcard()?a:null}n=n.split(".").slice(1).join(".")}}}t.EnsResolver=d},17493:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatTransactionResponse=t.formatTransactionReceipt=t.formatReceiptLog=t.formatBlock=t.formatLog=t.formatUint256=t.formatHash=t.formatData=t.formatBoolean=t.object=t.arrayOf=t.allowNull=void 0;const r=n(30379),a=n(86425),i=n(15762),o=n(91588),s=BigInt(0);function f(e,t){return function(n){return null==n?t:e(n)}}function c(e,t){return n=>{if(t&&null==n)return null;if(!Array.isArray(n))throw new Error("not an array");return n.map((t=>e(t)))}}function l(e,t){return n=>{const r={};for(const i in e){let s=i;if(t&&i in t&&!(s in n))for(const e of t[i])if(e in n){s=e;break}try{const t=e[i](n[s]);void 0!==t&&(r[i]=t)}catch(a){const e=a instanceof Error?a.message:"not-an-error";(0,o.assert)(!1,`invalid value for value.${i} (${e})`,"BAD_DATA",{value:n})}}return r}}function u(e){switch(e){case!0:case"true":return!0;case!1:case"false":return!1}(0,o.assertArgument)(!1,`invalid boolean; ${JSON.stringify(e)}`,"value",e)}function d(e){return(0,o.assertArgument)((0,o.isHexString)(e,!0),"invalid data","value",e),e}function p(e){return(0,o.assertArgument)((0,o.isHexString)(e,32),"invalid hash","value",e),e}t.allowNull=f,t.arrayOf=c,t.object=l,t.formatBoolean=u,t.formatData=d,t.formatHash=p,t.formatUint256=function(e){if(!(0,o.isHexString)(e))throw new Error("invalid uint256");return(0,o.zeroPadValue)(e,32)};const h=l({address:r.getAddress,blockHash:p,blockNumber:o.getNumber,data:d,index:o.getNumber,removed:f(u,!1),topics:c(p),transactionHash:p,transactionIndex:o.getNumber},{index:["logIndex"]});t.formatLog=function(e){return h(e)};const b=l({hash:f(p),parentHash:p,parentBeaconBlockRoot:f(p,null),number:o.getNumber,timestamp:o.getNumber,nonce:f(d),difficulty:o.getBigInt,gasLimit:o.getBigInt,gasUsed:o.getBigInt,stateRoot:f(p,null),receiptsRoot:f(p,null),blobGasUsed:f(o.getBigInt,null),excessBlobGas:f(o.getBigInt,null),miner:f(r.getAddress),prevRandao:f(p,null),extraData:d,baseFeePerGas:f(o.getBigInt)},{prevRandao:["mixHash"]});t.formatBlock=function(e){const t=b(e);return t.transactions=e.transactions.map((e=>"string"===typeof e?e:v(e))),t};const y=l({transactionIndex:o.getNumber,blockNumber:o.getNumber,transactionHash:p,address:r.getAddress,topics:c(p),data:d,index:o.getNumber,blockHash:p},{index:["logIndex"]});function m(e){return y(e)}t.formatReceiptLog=m;const g=l({to:f(r.getAddress,null),from:f(r.getAddress,null),contractAddress:f(r.getAddress,null),index:o.getNumber,root:f(o.hexlify),gasUsed:o.getBigInt,blobGasUsed:f(o.getBigInt,null),logsBloom:f(d),blockHash:p,hash:p,logs:c(m),blockNumber:o.getNumber,cumulativeGasUsed:o.getBigInt,effectiveGasPrice:f(o.getBigInt),blobGasPrice:f(o.getBigInt,null),status:f(o.getNumber),type:f(o.getNumber,0)},{effectiveGasPrice:["gasPrice"],hash:["transactionHash"],index:["transactionIndex"]});function v(e){e.to&&(0,o.getBigInt)(e.to)===s&&(e.to="0x0000000000000000000000000000000000000000");const t=l({hash:p,index:f(o.getNumber,void 0),type:e=>"0x"===e||null==e?0:(0,o.getNumber)(e),accessList:f(i.accessListify,null),blobVersionedHashes:f(c(p,!0),null),blockHash:f(p,null),blockNumber:f(o.getNumber,null),transactionIndex:f(o.getNumber,null),from:r.getAddress,gasPrice:f(o.getBigInt),maxPriorityFeePerGas:f(o.getBigInt),maxFeePerGas:f(o.getBigInt),maxFeePerBlobGas:f(o.getBigInt,null),gasLimit:o.getBigInt,to:f(r.getAddress,null),value:o.getBigInt,nonce:o.getNumber,data:d,creates:f(r.getAddress,null),chainId:f(o.getBigInt,null)},{data:["input"],gasLimit:["gas"],index:["transactionIndex"]})(e);if(null==t.to&&null==t.creates&&(t.creates=(0,r.getCreateAddress)(t)),1!==e.type&&2!==e.type||null!=e.accessList||(t.accessList=[]),e.signature?t.signature=a.Signature.from(e.signature):t.signature=a.Signature.from(e),null==t.chainId){const e=t.signature.legacyChainId;null!=e&&(t.chainId=e)}return t.blockHash&&(0,o.getBigInt)(t.blockHash)===s&&(t.blockHash=null),t}t.formatTransactionReceipt=function(e){return g(e)},t.formatTransactionResponse=v},21642:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SocketEventSubscriber=t.SocketPendingSubscriber=t.SocketBlockSubscriber=t.SocketSubscriber=t.WebSocketProvider=t.SocketProvider=t.IpcSocketProvider=t.QuickNodeProvider=t.PocketProvider=t.InfuraWebSocketProvider=t.InfuraProvider=t.EtherscanPlugin=t.EtherscanProvider=t.ChainstackProvider=t.CloudflareProvider=t.AnkrProvider=t.AlchemyProvider=t.BrowserProvider=t.JsonRpcSigner=t.JsonRpcProvider=t.JsonRpcApiProvider=t.FallbackProvider=t.copyRequest=t.TransactionResponse=t.TransactionReceipt=t.Log=t.FeeData=t.Block=t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EnsPlugin=t.GasCostPlugin=t.NetworkPlugin=t.NonceManager=t.Network=t.MulticoinProviderPlugin=t.EnsResolver=t.getDefaultProvider=t.showThrottleMessage=t.VoidSigner=t.AbstractSigner=t.UnmanagedSubscriber=t.AbstractProvider=void 0;var r=n(18745);Object.defineProperty(t,"AbstractProvider",{enumerable:!0,get:function(){return r.AbstractProvider}}),Object.defineProperty(t,"UnmanagedSubscriber",{enumerable:!0,get:function(){return r.UnmanagedSubscriber}});var a=n(49873);Object.defineProperty(t,"AbstractSigner",{enumerable:!0,get:function(){return a.AbstractSigner}}),Object.defineProperty(t,"VoidSigner",{enumerable:!0,get:function(){return a.VoidSigner}});var i=n(31297);Object.defineProperty(t,"showThrottleMessage",{enumerable:!0,get:function(){return i.showThrottleMessage}});var o=n(32015);Object.defineProperty(t,"getDefaultProvider",{enumerable:!0,get:function(){return o.getDefaultProvider}});var s=n(4439);Object.defineProperty(t,"EnsResolver",{enumerable:!0,get:function(){return s.EnsResolver}}),Object.defineProperty(t,"MulticoinProviderPlugin",{enumerable:!0,get:function(){return s.MulticoinProviderPlugin}});var f=n(45282);Object.defineProperty(t,"Network",{enumerable:!0,get:function(){return f.Network}});var c=n(55177);Object.defineProperty(t,"NonceManager",{enumerable:!0,get:function(){return c.NonceManager}});var l=n(121);Object.defineProperty(t,"NetworkPlugin",{enumerable:!0,get:function(){return l.NetworkPlugin}}),Object.defineProperty(t,"GasCostPlugin",{enumerable:!0,get:function(){return l.GasCostPlugin}}),Object.defineProperty(t,"EnsPlugin",{enumerable:!0,get:function(){return l.EnsPlugin}}),Object.defineProperty(t,"FeeDataNetworkPlugin",{enumerable:!0,get:function(){return l.FeeDataNetworkPlugin}}),Object.defineProperty(t,"FetchUrlFeeDataNetworkPlugin",{enumerable:!0,get:function(){return l.FetchUrlFeeDataNetworkPlugin}});var u=n(9125);Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return u.Block}}),Object.defineProperty(t,"FeeData",{enumerable:!0,get:function(){return u.FeeData}}),Object.defineProperty(t,"Log",{enumerable:!0,get:function(){return u.Log}}),Object.defineProperty(t,"TransactionReceipt",{enumerable:!0,get:function(){return u.TransactionReceipt}}),Object.defineProperty(t,"TransactionResponse",{enumerable:!0,get:function(){return u.TransactionResponse}}),Object.defineProperty(t,"copyRequest",{enumerable:!0,get:function(){return u.copyRequest}});var d=n(55940);Object.defineProperty(t,"FallbackProvider",{enumerable:!0,get:function(){return d.FallbackProvider}});var p=n(420);Object.defineProperty(t,"JsonRpcApiProvider",{enumerable:!0,get:function(){return p.JsonRpcApiProvider}}),Object.defineProperty(t,"JsonRpcProvider",{enumerable:!0,get:function(){return p.JsonRpcProvider}}),Object.defineProperty(t,"JsonRpcSigner",{enumerable:!0,get:function(){return p.JsonRpcSigner}});var h=n(64799);Object.defineProperty(t,"BrowserProvider",{enumerable:!0,get:function(){return h.BrowserProvider}});var b=n(66920);Object.defineProperty(t,"AlchemyProvider",{enumerable:!0,get:function(){return b.AlchemyProvider}});var y=n(87617);Object.defineProperty(t,"AnkrProvider",{enumerable:!0,get:function(){return y.AnkrProvider}});var m=n(51298);Object.defineProperty(t,"CloudflareProvider",{enumerable:!0,get:function(){return m.CloudflareProvider}});var g=n(27414);Object.defineProperty(t,"ChainstackProvider",{enumerable:!0,get:function(){return g.ChainstackProvider}});var v=n(91474);Object.defineProperty(t,"EtherscanProvider",{enumerable:!0,get:function(){return v.EtherscanProvider}}),Object.defineProperty(t,"EtherscanPlugin",{enumerable:!0,get:function(){return v.EtherscanPlugin}});var w=n(55640);Object.defineProperty(t,"InfuraProvider",{enumerable:!0,get:function(){return w.InfuraProvider}}),Object.defineProperty(t,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return w.InfuraWebSocketProvider}});var E=n(62789);Object.defineProperty(t,"PocketProvider",{enumerable:!0,get:function(){return E.PocketProvider}});var A=n(91895);Object.defineProperty(t,"QuickNodeProvider",{enumerable:!0,get:function(){return A.QuickNodeProvider}});const P=n(40938);Object.defineProperty(t,"IpcSocketProvider",{enumerable:!0,get:function(){return P.IpcSocketProvider}});var _=n(13819);Object.defineProperty(t,"SocketProvider",{enumerable:!0,get:function(){return _.SocketProvider}});var T=n(77258);Object.defineProperty(t,"WebSocketProvider",{enumerable:!0,get:function(){return T.WebSocketProvider}});var k=n(13819);Object.defineProperty(t,"SocketSubscriber",{enumerable:!0,get:function(){return k.SocketSubscriber}}),Object.defineProperty(t,"SocketBlockSubscriber",{enumerable:!0,get:function(){return k.SocketBlockSubscriber}}),Object.defineProperty(t,"SocketPendingSubscriber",{enumerable:!0,get:function(){return k.SocketPendingSubscriber}}),Object.defineProperty(t,"SocketEventSubscriber",{enumerable:!0,get:function(){return k.SocketEventSubscriber}})},45282:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Network=void 0;const r=n(15762),a=n(91588),i=n(121),o=new Map;class s{#te;#ne;#N;constructor(e,t){this.#te=e,this.#ne=(0,a.getBigInt)(t),this.#N=new Map}toJSON(){return{name:this.name,chainId:String(this.chainId)}}get name(){return this.#te}set name(e){this.#te=e}get chainId(){return this.#ne}set chainId(e){this.#ne=(0,a.getBigInt)(e,"chainId")}matches(e){if(null==e)return!1;if("string"===typeof e){try{return this.chainId===(0,a.getBigInt)(e)}catch(t){}return this.name===e}if("number"===typeof e||"bigint"===typeof e){try{return this.chainId===(0,a.getBigInt)(e)}catch(t){}return!1}if("object"===typeof e){if(null!=e.chainId){try{return this.chainId===(0,a.getBigInt)(e.chainId)}catch(t){}return!1}return null!=e.name&&this.name===e.name}return!1}get plugins(){return Array.from(this.#N.values())}attachPlugin(e){if(this.#N.get(e.name))throw new Error(`cannot replace existing plugin: ${e.name} `);return this.#N.set(e.name,e.clone()),this}getPlugin(e){return this.#N.get(e)||null}getPlugins(e){return this.plugins.filter((t=>t.name.split("#")[0]===e))}clone(){const e=new s(this.name,this.chainId);return this.plugins.forEach((t=>{e.attachPlugin(t.clone())})),e}computeIntrinsicGas(e){const t=this.getPlugin("org.ethers.plugins.network.GasCost")||new i.GasCostPlugin;let n=t.txBase;if(null==e.to&&(n+=t.txCreate),e.data)for(let r=2;r<e.data.length;r+=2)"00"===e.data.substring(r,r+2)?n+=t.txDataZero:n+=t.txDataNonzero;if(e.accessList){const a=(0,r.accessListify)(e.accessList);for(const e in a)n+=t.txAccessListAddress+t.txAccessListStorageKey*a[e].storageKeys.length}return n}static from(e){if(function(){if(l)return;function e(e,t,n){const r=function(){const r=new s(e,t);return null!=n.ensNetwork&&r.attachPlugin(new i.EnsPlugin(null,n.ensNetwork)),r.attachPlugin(new i.GasCostPlugin),(n.plugins||[]).forEach((e=>{r.attachPlugin(e)})),r};s.register(e,r),s.register(t,r),n.altNames&&n.altNames.forEach((e=>{s.register(e,r)}))}l=!0,e("mainnet",1,{ensNetwork:1,altNames:["homestead"]}),e("ropsten",3,{ensNetwork:3}),e("rinkeby",4,{ensNetwork:4}),e("goerli",5,{ensNetwork:5}),e("kovan",42,{ensNetwork:42}),e("sepolia",11155111,{ensNetwork:11155111}),e("holesky",17e3,{ensNetwork:17e3}),e("classic",61,{}),e("classicKotti",6,{}),e("arbitrum",42161,{ensNetwork:1}),e("arbitrum-goerli",421613,{}),e("arbitrum-sepolia",421614,{}),e("base",8453,{ensNetwork:1}),e("base-goerli",84531,{}),e("base-sepolia",84532,{}),e("bnb",56,{ensNetwork:1}),e("bnbt",97,{}),e("linea",59144,{ensNetwork:1}),e("linea-goerli",59140,{}),e("linea-sepolia",59141,{}),e("matic",137,{ensNetwork:1,plugins:[c("https://gasstation.polygon.technology/v2")]}),e("matic-amoy",80002,{}),e("matic-mumbai",80001,{altNames:["maticMumbai","maticmum"],plugins:[c("https://gasstation-testnet.polygon.technology/v2")]}),e("optimism",10,{ensNetwork:1,plugins:[]}),e("optimism-goerli",420,{}),e("optimism-sepolia",11155420,{}),e("xdai",100,{ensNetwork:1})}(),null==e)return s.from("mainnet");if("number"===typeof e&&(e=BigInt(e)),"string"===typeof e||"bigint"===typeof e){const t=o.get(e);if(t)return t();if("bigint"===typeof e)return new s("unknown",e);(0,a.assertArgument)(!1,"unknown network","network",e)}if("function"===typeof e.clone){return e.clone()}if("object"===typeof e){(0,a.assertArgument)("string"===typeof e.name&&"number"===typeof e.chainId,"invalid network object name or chainId","network",e);const t=new s(e.name,e.chainId);return(e.ensAddress||null!=e.ensNetwork)&&t.attachPlugin(new i.EnsPlugin(e.ensAddress,e.ensNetwork)),t}(0,a.assertArgument)(!1,"invalid network","network",e)}static register(e,t){"number"===typeof e&&(e=BigInt(e));const n=o.get(e);n&&(0,a.assertArgument)(!1,`conflicting network for ${JSON.stringify(n.name)}`,"nameOrChainId",e),o.set(e,t)}}function f(e,t){const n=String(e);if(!n.match(/^[0-9.]+$/))throw new Error(`invalid gwei value: ${e}`);const r=n.split(".");if(1===r.length&&r.push(""),2!==r.length)throw new Error(`invalid gwei value: ${e}`);for(;r[1].length<t;)r[1]+="0";if(r[1].length>9){let e=BigInt(r[1].substring(0,9));r[1].substring(9).match(/^0+$/)||e++,r[1]=e.toString()}return BigInt(r[0]+r[1])}function c(e){return new i.FetchUrlFeeDataNetworkPlugin(e,(async(e,t,n)=>{let r;n.setHeader("User-Agent","ethers");try{const[t,a]=await Promise.all([n.send(),e()]);r=t;const i=r.bodyJson.standard;return{gasPrice:a.gasPrice,maxFeePerGas:f(i.maxFee,9),maxPriorityFeePerGas:f(i.maxPriorityFee,9)}}catch(i){(0,a.assert)(!1,`error encountered with polygon gas station (${JSON.stringify(n.url)})`,"SERVER_ERROR",{request:n,response:r,error:i})}}))}t.Network=s;let l=!1},121:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FetchUrlFeeDataNetworkPlugin=t.FeeDataNetworkPlugin=t.EnsPlugin=t.GasCostPlugin=t.NetworkPlugin=void 0;const r=n(67161),a=n(91588);class i{name;constructor(e){(0,r.defineProperties)(this,{name:e})}clone(){return new i(this.name)}}t.NetworkPlugin=i;class o extends i{effectiveBlock;txBase;txCreate;txDataZero;txDataNonzero;txAccessListStorageKey;txAccessListAddress;constructor(e,t){null==e&&(e=0),super(`org.ethers.network.plugins.GasCost#${e||0}`);const n={effectiveBlock:e};function i(e,r){let i=(t||{})[e];null==i&&(i=r),(0,a.assertArgument)("number"===typeof i,`invalud value for ${e}`,"costs",t),n[e]=i}i("txBase",21e3),i("txCreate",32e3),i("txDataZero",4),i("txDataNonzero",16),i("txAccessListStorageKey",1900),i("txAccessListAddress",2400),(0,r.defineProperties)(this,n)}clone(){return new o(this.effectiveBlock,this)}}t.GasCostPlugin=o;class s extends i{address;targetNetwork;constructor(e,t){super("org.ethers.plugins.network.Ens"),(0,r.defineProperties)(this,{address:e||"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",targetNetwork:null==t?1:t})}clone(){return new s(this.address,this.targetNetwork)}}t.EnsPlugin=s;class f extends i{#re;get feeDataFunc(){return this.#re}constructor(e){super("org.ethers.plugins.network.FeeData"),this.#re=e}async getFeeData(e){return await this.#re(e)}clone(){return new f(this.#re)}}t.FeeDataNetworkPlugin=f;t.FetchUrlFeeDataNetworkPlugin=class extends i{#ae;#ie;get url(){return this.#ae}get processFunc(){return this.#ie}constructor(e,t){super("org.ethers.plugins.network.FetchUrlFeeDataPlugin"),this.#ae=e,this.#ie=t}clone(){return this}}},66920:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlchemyProvider=void 0;const r=n(91588),a=n(31297),i=n(45282),o=n(420),s="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";class f extends o.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");const n=i.Network.from(e);null==t&&(t=s);super(f.getRequest(n,t),n,{staticNetwork:n}),(0,r.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new f(e,this.apiKey)}catch(t){}return super._getProvider(e)}async _perform(e){if("getTransactionResult"===e.method){const{trace:n,tx:a}=await(0,r.resolveProperties)({trace:this.send("trace_transaction",[e.hash]),tx:this.getTransaction(e.hash)});if(null==n||null==a)return null;let i,o=!1;try{i=n[0].result.output,o="Reverted"===n[0].error}catch(t){}if(i)return(0,r.assert)(!o,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:i,reason:null,transaction:a,invocation:null,revert:null}),i;(0,r.assert)(!1,"could not parse trace result","BAD_DATA",{value:n})}return await super._perform(e)}isCommunityResource(){return this.apiKey===s}static getRequest(e,t){null==t&&(t=s);const n=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"eth-mainnet.alchemyapi.io";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"arbitrum-sepolia":return"arb-sepolia.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"base-sepolia":return"base-sepolia.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-amoy":return"polygon-amoy.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com";case"optimism-sepolia":return"opt-sepolia.g.alchemy.com"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v2/${t}`);return n.allowGzip=!0,t===s&&(n.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("alchemy"),!0)),n}}t.AlchemyProvider=f},87617:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AnkrProvider=void 0;const r=n(91588),a=n(31297),i=n(45282),o=n(420),s="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";class f extends o.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");const n=i.Network.from(e);null==t&&(t=s);const a={polling:!0,staticNetwork:n};super(f.getRequest(n,t),n,a),(0,r.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new f(e,this.apiKey)}catch(t){}return super._getProvider(e)}static getRequest(e,t){null==t&&(t=s);const n=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"sepolia":return"rpc.ankr.com/eth_sepolia";case"arbitrum":return"rpc.ankr.com/arbitrum";case"base":return"rpc.ankr.com/base";case"base-goerli":return"rpc.ankr.com/base_goerli";case"base-sepolia":return"rpc.ankr.com/base_sepolia";case"bnb":return"rpc.ankr.com/bsc";case"bnbt":return"rpc.ankr.com/bsc_testnet_chapel";case"matic":return"rpc.ankr.com/polygon";case"matic-mumbai":return"rpc.ankr.com/polygon_mumbai";case"optimism":return"rpc.ankr.com/optimism";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===s&&(n.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("AnkrProvider"),!0)),n}getRpcError(e,t){return"eth_sendRawTransaction"===e.method&&t&&t.error&&"INTERNAL_ERROR: could not replace existing tx"===t.error.message&&(t.error.message="replacement transaction underpriced"),super.getRpcError(e,t)}isCommunityResource(){return this.apiKey===s}}t.AnkrProvider=f},64799:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BrowserProvider=void 0;const r=n(91588),a=n(420);class i extends a.JsonRpcApiPollingProvider{#oe;constructor(e,t){(0,r.assertArgument)(e&&e.request,"invalid EIP-1193 provider","ethereum",e),super(t,{batchMaxCount:1}),this.#oe=async(t,n)=>{const r={method:t,params:n};this.emit("debug",{action:"sendEip1193Request",payload:r});try{const t=await e.request(r);return this.emit("debug",{action:"receiveEip1193Result",result:t}),t}catch(a){const e=new Error(a.message);throw e.code=a.code,e.data=a.data,e.payload=r,this.emit("debug",{action:"receiveEip1193Error",error:e}),e}}}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){(0,r.assertArgument)(!Array.isArray(e),"EIP-1193 does not support batch request","payload",e);try{const t=await this.#oe(e.method,e.params||[]);return[{id:e.id,result:t}]}catch(t){return[{id:e.id,error:{code:t.code,data:t.data,message:t.message}}]}}getRpcError(e,t){switch((t=JSON.parse(JSON.stringify(t))).error.code||-1){case 4001:t.error.message=`ethers-user-denied: ${t.error.message}`;break;case 4200:t.error.message=`ethers-unsupported: ${t.error.message}`}return super.getRpcError(e,t)}async hasSigner(e){null==e&&(e=0);const t=await this.send("eth_accounts",[]);return"number"===typeof e?t.length>e:(e=e.toLowerCase(),0!==t.filter((t=>t.toLowerCase()===e)).length)}async getSigner(e){if(null==e&&(e=0),!await this.hasSigner(e))try{await this.#oe("eth_requestAccounts",[])}catch(t){const e=t.payload;throw this.getRpcError(e,{id:e.id,error:t})}return await super.getSigner(e)}}t.BrowserProvider=i},27414:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChainstackProvider=void 0;const r=n(91588),a=n(31297),i=n(45282),o=n(420);function s(e){switch(e){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}(0,r.assertArgument)(!1,"unsupported network","network",e)}class f extends o.JsonRpcProvider{apiKey;constructor(e,t){null==e&&(e="mainnet");const n=i.Network.from(e);null==t&&(t=s(n.name));super(f.getRequest(n,t),n,{staticNetwork:n}),(0,r.defineProperties)(this,{apiKey:t})}_getProvider(e){try{return new f(e,this.apiKey)}catch(t){}return super._getProvider(e)}isCommunityResource(){return this.apiKey===s(this._network.name)}static getRequest(e,t){null==t&&(t=s(e.name));const n=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"ethereum-mainnet.core.chainstack.com";case"arbitrum":return"arbitrum-mainnet.core.chainstack.com";case"bnb":return"bsc-mainnet.core.chainstack.com";case"matic":return"polygon-mainnet.core.chainstack.com"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===s(e.name)&&(n.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("ChainstackProvider"),!0)),n}}t.ChainstackProvider=f},51298:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloudflareProvider=void 0;const r=n(91588),a=n(45282),i=n(420);class o extends i.JsonRpcProvider{constructor(e){null==e&&(e="mainnet");const t=a.Network.from(e);(0,r.assertArgument)("mainnet"===t.name,"unsupported network","network",e),super("https://cloudflare-eth.com/",t,{staticNetwork:t})}}t.CloudflareProvider=o},91474:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EtherscanProvider=t.EtherscanPlugin=void 0;const r=n(16492),a=n(78119),i=n(15762),o=n(91588),s=n(18745),f=n(45282),c=n(121),l=n(31297);const u="org.ethers.plugins.provider.Etherscan";class d extends c.NetworkPlugin{baseUrl;constructor(e){super(u),(0,o.defineProperties)(this,{baseUrl:e})}clone(){return new d(this.baseUrl)}}t.EtherscanPlugin=d;const p=["enableCcipRead"];let h=1;class b extends s.AbstractProvider{network;apiKey;#se;constructor(e,t){const n=null!=t?t:null;super();const r=f.Network.from(e);this.#se=r.getPlugin(u),(0,o.defineProperties)(this,{apiKey:n,network:r}),this.getBaseUrl()}getBaseUrl(){if(this.#se)return this.#se.baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"holesky":return"https://api-holesky.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}(0,o.assertArgument)(!1,"unsupported network","network",this.network)}getUrl(e,t){const n=Object.keys(t).reduce(((e,n)=>{const r=t[n];return null!=r&&(e+=`&${n}=${r}`),e}),""),r=this.apiKey?`&apikey=${this.apiKey}`:"";return`${this.getBaseUrl()}/api?module=${e}${n}${r}`}getPostUrl(){return`${this.getBaseUrl()}/api`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t}async detectNetwork(){return this.network}async fetch(e,t,n){const r=h++,a=n?this.getPostUrl():this.getUrl(e,t),i=n?this.getPostData(e,t):null;this.emit("debug",{action:"sendRequest",id:r,url:a,payload:i});const s=new o.FetchRequest(a);s.setThrottleParams({slotInterval:1e3}),s.retryFunc=(e,t,n)=>(this.isCommunityResource()&&(0,l.showThrottleMessage)("Etherscan"),Promise.resolve(!0)),s.processFunc=async(t,n)=>{const a=n.hasBody()?JSON.parse((0,o.toUtf8String)(n.body)):{},i=("string"===typeof a.result?a.result:"").toLowerCase().indexOf("rate limit")>=0;return"proxy"===e?a&&0==a.status&&"NOTOK"==a.message&&i&&(this.emit("debug",{action:"receiveError",id:r,reason:"proxy-NOTOK",error:a}),n.throwThrottleError(a.result,2e3)):i&&(this.emit("debug",{action:"receiveError",id:r,reason:"null result",error:a.result}),n.throwThrottleError(a.result,2e3)),n},i&&(s.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),s.body=Object.keys(i).map((e=>`${e}=${i[e]}`)).join("&"));const f=await s.send();try{f.assertOk()}catch(u){this.emit("debug",{action:"receiveError",id:r,error:u,reason:"assertOk"}),(0,o.assert)(!1,"response error","SERVER_ERROR",{request:s,response:f})}f.hasBody()||(this.emit("debug",{action:"receiveError",id:r,error:"missing body",reason:"null body"}),(0,o.assert)(!1,"missing response","SERVER_ERROR",{request:s,response:f}));const c=JSON.parse((0,o.toUtf8String)(f.body));return"proxy"===e?("2.0"!=c.jsonrpc&&(this.emit("debug",{action:"receiveError",id:r,result:c,reason:"invalid JSON-RPC"}),(0,o.assert)(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:s,response:f,info:{result:c}})),c.error&&(this.emit("debug",{action:"receiveError",id:r,result:c,reason:"JSON-RPC error"}),(0,o.assert)(!1,"error response","SERVER_ERROR",{request:s,response:f,info:{result:c}})),this.emit("debug",{action:"receiveRequest",id:r,result:c}),c.result):0!=c.status||"No records found"!==c.message&&"No transactions found"!==c.message?((1!=c.status||"string"===typeof c.message&&!c.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:r,result:c}),(0,o.assert)(!1,"error response","SERVER_ERROR",{request:s,response:f,info:{result:c}})),this.emit("debug",{action:"receiveRequest",id:r,result:c}),c.result):(this.emit("debug",{action:"receiveRequest",id:r,result:c}),c.result)}_getTransactionPostData(e){const t={};for(let n in e){if(p.indexOf(n)>=0)continue;if(null==e[n])continue;let r=e[n];"type"===n&&0===r||("blockTag"===n&&"latest"===r||(r={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[n]?(0,o.toQuantity)(r):"accessList"===n?"["+(0,i.accessListify)(r).map((e=>`{address:"${e.address}",storageKeys:["${e.storageKeys.join('","')}"]}`)).join(",")+"]":(0,o.hexlify)(r),t[n]=r))}return t}_checkError(e,t,n){let a="";if((0,o.isError)(t,"SERVER_ERROR")){try{a=t.info.result.error.message}catch(s){}if(!a)try{a=t.info.message}catch(s){}}if("estimateGas"===e.method&&!a.match(/revert/i)&&a.match(/insufficient funds/i)&&(0,o.assert)(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.transaction}),("call"===e.method||"estimateGas"===e.method)&&a.match(/execution reverted/i)){let n="";try{n=t.info.result.error.data}catch(t){}const a=r.AbiCoder.getBuiltinCallException(e.method,e.transaction,n);throw a.info={request:e,error:t},a}if(a&&"broadcastTransaction"===e.method){const t=i.Transaction.from(e.signedTransaction);a.match(/replacement/i)&&a.match(/underpriced/i)&&(0,o.assert)(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t}),a.match(/insufficient funds/)&&(0,o.assert)(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t}),a.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&(0,o.assert)(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:t})}throw t}async _detectNetwork(){return this.network}async _perform(e){switch(e.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if("mainnet"===this.network.name)return"1000000000";if("optimism"===this.network.name)return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:e.address,tag:e.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:e.address,tag:e.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:e.address,tag:e.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:e.address,position:e.position,tag:e.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:e.signedTransaction},!0).catch((t=>this._checkError(e,t,e.signedTransaction)));case"getBlock":if("blockTag"in e)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:e.blockTag,boolean:e.includeTransactions?"true":"false"});(0,o.assert)(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:e.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:e.hash});case"call":{if("latest"!==e.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");const n=this._getTransactionPostData(e.transaction);n.module="proxy",n.action="eth_call";try{return await this.fetch("proxy",n,!0)}catch(t){return this._checkError(e,t,e.transaction)}}case"estimateGas":{const n=this._getTransactionPostData(e.transaction);n.module="proxy",n.action="eth_estimateGas";try{return await this.fetch("proxy",n,!0)}catch(t){return this._checkError(e,t,e.transaction)}}}return super._perform(e)}async getNetwork(){return this.network}async getEtherPrice(){return"mainnet"!==this.network.name?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(e){let t=this._getAddress(e);var n;(n=t)&&"function"===typeof n.then&&(t=await t);try{const e=await this.fetch("contract",{action:"getabi",address:t}),n=JSON.parse(e);return new a.Contract(t,n,this)}catch(r){return null}}isCommunityResource(){return null==this.apiKey}}t.EtherscanProvider=b},55940:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FallbackProvider=void 0;const r=n(91588),a=n(18745),i=n(45282),o=BigInt("1"),s=BigInt("2");function f(){return(new Date).getTime()}function c(e){return JSON.stringify(e,((e,t)=>"bigint"===typeof t?{type:"bigint",value:t.toString()}:t))}const l={stallTimeout:400,priority:1,weight:1},u={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};function d(e){if(null==e)return"null";if(Array.isArray(e))return"["+e.map(d).join(",")+"]";if("object"===typeof e&&"function"===typeof e.toJSON)return d(e.toJSON());switch(typeof e){case"boolean":case"symbol":return e.toString();case"bigint":case"number":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{const t=Object.keys(e);return t.sort(),"{"+t.map((t=>`${JSON.stringify(t)}:${d(e[t])}`)).join(",")+"}"}}throw console.log("Could not serialize",e),new Error("Hmm...")}function p(e){if("error"in e){const t=e.error;return{tag:d(t),value:t}}const t=e.result;return{tag:d(t),value:t}}function h(e,t){const n=new Map;for(const{value:a,tag:i,weight:o}of t){const e=n.get(i)||{value:a,weight:0};e.weight+=o,n.set(i,e)}let r=null;for(const a of n.values())a.weight>=e&&(!r||a.weight>r.weight)&&(r=a);if(r)return r.value}function b(e,t){let n=0;const r=new Map;let a=null;const i=[];for(const{value:o,tag:s,weight:c}of t)if(o instanceof Error){const e=r.get(s)||{value:o,weight:0};e.weight+=c,r.set(s,e),(null==a||e.weight>a.weight)&&(a=e)}else i.push(BigInt(o)),n+=c;if(n<e)return a&&a.weight>=e?a.value:void 0;i.sort(((e,t)=>e<t?-1:t>e?1:0));const f=Math.floor(i.length/2);return i.length%2?i[f]:(i[f-1]+i[f]+o)/s}function y(e,t){const n=h(e,t);if(void 0!==n)return n;for(const r of t)if(r.value)return r.value}class m extends a.AbstractProvider{quorum;eventQuorum;eventWorkers;#fe;#ce;#le;constructor(e,t,n){super(t,n),this.#fe=e.map((e=>e instanceof a.AbstractProvider?Object.assign({provider:e},l,u):Object.assign({},l,e,u))),this.#ce=-2,this.#le=null,n&&null!=n.quorum?this.quorum=n.quorum:this.quorum=Math.ceil(this.#fe.reduce(((e,t)=>e+=t.weight),0)/2),this.eventQuorum=1,this.eventWorkers=1,(0,r.assertArgument)(this.quorum<=this.#fe.reduce(((e,t)=>e+t.weight),0),"quorum exceed provider wieght","quorum",this.quorum)}get providerConfigs(){return this.#fe.map((e=>{const t=Object.assign({},e);for(const n in t)"_"===n[0]&&delete t[n];return t}))}async _detectNetwork(){return i.Network.from((0,r.getBigInt)(await this._perform({method:"chainId"})))}async _translatePerform(e,t){switch(t.method){case"broadcastTransaction":return await e.broadcastTransaction(t.signedTransaction);case"call":return await e.call(Object.assign({},t.transaction,{blockTag:t.blockTag}));case"chainId":return(await e.getNetwork()).chainId;case"estimateGas":return await e.estimateGas(t.transaction);case"getBalance":return await e.getBalance(t.address,t.blockTag);case"getBlock":{const n="blockHash"in t?t.blockHash:t.blockTag;return await e.getBlock(n,t.includeTransactions)}case"getBlockNumber":return await e.getBlockNumber();case"getCode":return await e.getCode(t.address,t.blockTag);case"getGasPrice":return(await e.getFeeData()).gasPrice;case"getPriorityFee":return(await e.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await e.getLogs(t.filter);case"getStorage":return await e.getStorage(t.address,t.position,t.blockTag);case"getTransaction":return await e.getTransaction(t.hash);case"getTransactionCount":return await e.getTransactionCount(t.address,t.blockTag);case"getTransactionReceipt":return await e.getTransactionReceipt(t.hash);case"getTransactionResult":return await e.getTransactionResult(t.hash)}}#ue(e){const t=Array.from(e).map((e=>e.config)),n=this.#fe.slice();!function(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}}(n),n.sort(((e,t)=>e.priority-t.priority));for(const r of n)if(!r._lastFatalError&&-1===t.indexOf(r))return r;return null}#de(e,t){const n=this.#ue(e);if(null==n)return null;const r={config:n,result:null,didBump:!1,perform:null,staller:null},a=f();return r.perform=(async()=>{try{n.requests++;const e=await this._translatePerform(n.provider,t);r.result={result:e}}catch(i){n.errorResponses++,r.result={error:i}}const e=f()-a;n._totalTime+=e,n.rollingDuration=.95*n.rollingDuration+.05*e,r.perform=null})(),r.staller=(async()=>{var e;await(e=n.stallTimeout,new Promise((t=>{setTimeout(t,e)}))),r.staller=null})(),e.add(r),r}async#pe(){let e=this.#le;if(!e){const t=[];this.#fe.forEach((e=>{t.push((async()=>{await async function(e,t){for(;(e.blockNumber<0||e.blockNumber<t)&&(e._updateNumber||(e._updateNumber=(async()=>{try{const t=await e.provider.getBlockNumber();t>e.blockNumber&&(e.blockNumber=t)}catch(t){e.blockNumber=-2,e._lastFatalError=t,e._lastFatalErrorTimestamp=f()}e._updateNumber=null})()),await e._updateNumber,e.outOfSync++,!e._lastFatalError););}(e,0),e._lastFatalError||(e._network=await e.provider.getNetwork())})())})),this.#le=e=(async()=>{await Promise.all(t);let e=null;for(const t of this.#fe){if(t._lastFatalError)continue;const n=t._network;null==e?e=n.chainId:n.chainId!==e&&(0,r.assert)(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})()}await e}async#he(e,t){const n=[];for(const r of e)if(null!=r.result){const{tag:e,value:t}=p(r.result);n.push({tag:e,value:t,weight:r.config.weight})}if(!(n.reduce(((e,t)=>e+t.weight),0)<this.quorum)){switch(t.method){case"getBlockNumber":{-2===this.#ce&&(this.#ce=Math.ceil((0,r.getNumber)(b(this.quorum,this.#fe.filter((e=>!e._lastFatalError)).map((e=>({value:e.blockNumber,tag:(0,r.getNumber)(e.blockNumber).toString(),weight:e.weight})))))));const e=function(e,t){if(1===e)return(0,r.getNumber)(b(e,t),"%internal");const n=new Map,a=(e,t)=>{const r=n.get(e)||{result:e,weight:0};r.weight+=t,n.set(e,r)};for(const{weight:s,value:f}of t){const e=(0,r.getNumber)(f);a(e-1,s),a(e,s),a(e+1,s)}let i,o=0;for(const{weight:r,result:s}of n.values())r>=e&&(r>o||null!=i&&r===o&&s>i)&&(o=r,i=s);return i}(this.quorum,n);if(void 0===e)return;return e>this.#ce&&(this.#ce=e),this.#ce}case"getGasPrice":case"getPriorityFee":case"estimateGas":return b(this.quorum,n);case"getBlock":return"blockTag"in t&&"pending"===t.blockTag?y(this.quorum,n):h(this.quorum,n);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return h(this.quorum,n);case"broadcastTransaction":return y(this.quorum,n)}(0,r.assert)(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${c(t.method)})`})}}async#be(e,t){if(0===e.size)throw new Error("no runners?!");const n=[];let a=0;for(const r of e)r.perform&&n.push(r.perform),r.staller?n.push(r.staller):r.didBump||(r.didBump=!0,a++);const i=await this.#he(e,t);if(void 0!==i){if(i instanceof Error)throw i;return i}for(let r=0;r<a;r++)this.#de(e,t);return(0,r.assert)(n.length>0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:t,results:Array.from(e).map((e=>c(e.result)))}}),await Promise.race(n),await this.#be(e,t)}async _perform(e){if("broadcastTransaction"===e.method){const t=this.#fe.map((e=>null)),n=this.#fe.map((async(n,r)=>{let{provider:a,weight:i}=n;try{const n=await a._perform(e);t[r]=Object.assign(p({result:n}),{weight:i})}catch(o){t[r]=Object.assign(p({error:o}),{weight:i})}}));for(;;){const e=t.filter((e=>null!=e));for(const{value:t}of e)if(!(t instanceof Error))return t;const a=h(this.quorum,t.filter((e=>null!=e)));if((0,r.isError)(a,"INSUFFICIENT_FUNDS"))throw a;const i=n.filter(((e,n)=>null==t[n]));if(0===i.length)break;await Promise.race(i)}const a=y(this.quorum,t);if((0,r.assert)(void 0!==a,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:e,results:t.map(c)}}),a instanceof Error)throw a;return a}await this.#pe();const t=new Set;let n=0;for(;;){const r=this.#de(t,e);if(null==r)break;if(n+=r.config.weight,n>=this.quorum)break}const a=await this.#be(t,e);for(const r of t)r.perform&&null==r.result&&r.config.lateResponses++;return a}async destroy(){for(const{provider:e}of this.#fe)e.destroy();super.destroy()}}t.FallbackProvider=m},55640:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InfuraProvider=t.InfuraWebSocketProvider=void 0;const r=n(91588),a=n(31297),i=n(45282),o=n(420),s=n(77258),f="84842078b09946638c03157f83405213";class c extends s.WebSocketProvider{projectId;projectSecret;constructor(e,t){const n=new l(e,t),a=n._getConnection();(0,r.assert)(!a.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"});super(a.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/"),n._network),(0,r.defineProperties)(this,{projectId:n.projectId,projectSecret:n.projectSecret})}isCommunityResource(){return this.projectId===f}}t.InfuraWebSocketProvider=c;class l extends o.JsonRpcProvider{projectId;projectSecret;constructor(e,t,n){null==e&&(e="mainnet");const a=i.Network.from(e);null==t&&(t=f),null==n&&(n=null);super(l.getRequest(a,t,n),a,{staticNetwork:a}),(0,r.defineProperties)(this,{projectId:t,projectSecret:n})}_getProvider(e){try{return new l(e,this.projectId,this.projectSecret)}catch(t){}return super._getProvider(e)}isCommunityResource(){return this.projectId===f}static getWebSocketProvider(e,t){return new c(e,t)}static getRequest(e,t,n){null==t&&(t=f),null==n&&(n=null);const i=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"arbitrum-sepolia":return"arbitrum-sepolia.infura.io";case"base":return"base-mainnet.infura.io";case"base-goerlia":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bnbsmartchain-mainnet.infura.io";case"bnbt":return"bnbsmartchain-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"linea-sepolia":return"linea-sepolia.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-amoy":return"polygon-amoy.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io";case"optimism-sepolia":return"optimism-sepolia.infura.io"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v3/${t}`);return i.allowGzip=!0,n&&i.setCredentials("",n),t===f&&(i.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("InfuraProvider"),!0)),i}}t.InfuraProvider=l},40938:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IpcSocketProvider=void 0;t.IpcSocketProvider=undefined},420:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JsonRpcProvider=t.JsonRpcApiPollingProvider=t.JsonRpcApiProvider=t.JsonRpcSigner=void 0;const r=n(16492),a=n(30379),i=n(76439),o=n(15762),s=n(91588),f=n(18745),c=n(49873),l=n(45282),u=n(36689),d=n(63650),p="bigint,boolean,function,number,string,symbol".split(/,/g);function h(e){if(null==e||p.indexOf(typeof e)>=0)return e;if("function"===typeof e.getAddress)return e;if(Array.isArray(e))return e.map(h);if("object"===typeof e)return Object.keys(e).reduce(((t,n)=>(t[n]=e[n],t)),{});throw new Error(`should not happen: ${e} (${typeof e})`)}function b(e){return new Promise((t=>{setTimeout(t,e)}))}function y(e){return e?e.toLowerCase():e}function m(e){return e&&"number"===typeof e.pollingInterval}const g={polling:!1,staticNetwork:null,batchStallTime:10,batchMaxSize:1<<20,batchMaxCount:100,cacheTimeout:250,pollingInterval:4e3};class v extends c.AbstractSigner{address;constructor(e,t){super(e),t=(0,a.getAddress)(t),(0,s.defineProperties)(this,{address:t})}connect(e){(0,s.assert)(!1,"cannot reconnect JsonRpcSigner","UNSUPPORTED_OPERATION",{operation:"signer.connect"})}async getAddress(){return this.address}async populateTransaction(e){return await this.populateCall(e)}async sendUncheckedTransaction(e){const t=h(e),n=[];if(t.from){const r=t.from;n.push((async()=>{const n=await(0,a.resolveAddress)(r,this.provider);(0,s.assertArgument)(null!=n&&n.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=n})())}else t.from=this.address;if(null==t.gasLimit&&n.push((async()=>{t.gasLimit=await this.provider.estimateGas({...t,from:this.address})})()),null!=t.to){const e=t.to;n.push((async()=>{t.to=await(0,a.resolveAddress)(e,this.provider)})())}n.length&&await Promise.all(n);const r=this.provider.getRpcTransaction(t);return this.provider.send("eth_sendTransaction",[r])}async sendTransaction(e){const t=await this.provider.getBlockNumber(),n=await this.sendUncheckedTransaction(e);return await new Promise(((e,r)=>{const a=[1e3,100];let i=0;const o=async()=>{try{const r=await this.provider.getTransaction(n);if(null!=r)return void e(r.replaceableTransaction(t))}catch(f){if((0,s.isError)(f,"CANCELLED")||(0,s.isError)(f,"BAD_DATA")||(0,s.isError)(f,"NETWORK_ERROR"))return null==f.info&&(f.info={}),f.info.sendTransactionHash=n,void r(f);if((0,s.isError)(f,"INVALID_ARGUMENT")&&(i++,null==f.info&&(f.info={}),f.info.sendTransactionHash=n,i>10))return void r(f);this.provider.emit("error",(0,s.makeError)("failed to fetch transation after sending (will try again)","UNKNOWN_ERROR",{error:f}))}this.provider._setTimeout((()=>{o()}),a.pop()||4e3)};o()}))}async signTransaction(e){const t=h(e);if(t.from){const n=await(0,a.resolveAddress)(t.from,this.provider);(0,s.assertArgument)(null!=n&&n.toLowerCase()===this.address.toLowerCase(),"from address mismatch","transaction",e),t.from=n}else t.from=this.address;const n=this.provider.getRpcTransaction(t);return await this.provider.send("eth_signTransaction",[n])}async signMessage(e){const t="string"===typeof e?(0,s.toUtf8Bytes)(e):e;return await this.provider.send("personal_sign",[(0,s.hexlify)(t),this.address.toLowerCase()])}async signTypedData(e,t,n){const r=h(n),o=await i.TypedDataEncoder.resolveNames(e,t,r,(async e=>{const t=await(0,a.resolveAddress)(e);return(0,s.assertArgument)(null!=t,"TypedData does not support null address","value",e),t}));return await this.provider.send("eth_signTypedData_v4",[this.address.toLowerCase(),JSON.stringify(i.TypedDataEncoder.getPayload(o.domain,t,o.value))])}async unlock(e){return this.provider.send("personal_unlockAccount",[this.address.toLowerCase(),e,null])}async _legacySignMessage(e){const t="string"===typeof e?(0,s.toUtf8Bytes)(e):e;return await this.provider.send("eth_sign",[this.address.toLowerCase(),(0,s.hexlify)(t)])}}t.JsonRpcSigner=v;class w extends f.AbstractProvider{#w;#ye;#me;#ge;#ve;#we;#Ee;#Ae(){if(this.#ge)return;const e=1===this._getOption("batchMaxCount")?0:this._getOption("batchStallTime");this.#ge=setTimeout((()=>{this.#ge=null;const e=this.#me;for(this.#me=[];e.length;){const t=[e.shift()];for(;e.length&&t.length!==this.#w.batchMaxCount;){t.push(e.shift());if(JSON.stringify(t.map((e=>e.payload))).length>this.#w.batchMaxSize){e.unshift(t.pop());break}}(async()=>{const e=1===t.length?t[0].payload:t.map((e=>e.payload));this.emit("debug",{action:"sendRpcPayload",payload:e});try{const n=await this._send(e);this.emit("debug",{action:"receiveRpcResult",result:n});for(const{resolve:e,reject:r,payload:a}of t){if(this.destroyed){r((0,s.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:a.method}));continue}const t=n.filter((e=>e.id===a.id))[0];if(null!=t)"error"in t?r(this.getRpcError(a,t)):e(t.result);else{const e=(0,s.makeError)("missing response for request","BAD_DATA",{value:n,info:{payload:a}});this.emit("error",e),r(e)}}}catch(n){this.emit("debug",{action:"receiveRpcError",error:n});for(const{reject:e}of t)e(n)}})()}}),e)}constructor(e,t){super(e,t),this.#ye=1,this.#w=Object.assign({},g,t||{}),this.#me=[],this.#ge=null,this.#we=null,this.#Ee=null;{let e=null;const t=new Promise((t=>{e=t}));this.#ve={promise:t,resolve:e}}const n=this._getOption("staticNetwork");"boolean"===typeof n?((0,s.assertArgument)(!n||"any"!==e,"staticNetwork cannot be used on special network 'any'","options",t),n&&null!=e&&(this.#we=l.Network.from(e))):n&&((0,s.assertArgument)(null==e||n.matches(e),"staticNetwork MUST match network object","options",t),this.#we=n)}_getOption(e){return this.#w[e]}get _network(){return(0,s.assert)(this.#we,"network is not available yet","NETWORK_ERROR"),this.#we}async _perform(e){if("call"===e.method||"estimateGas"===e.method){let t=e.transaction;if(t&&null!=t.type&&(0,s.getBigInt)(t.type)&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){const n=await this.getFeeData();null==n.maxFeePerGas&&null==n.maxPriorityFeePerGas&&(e=Object.assign({},e,{transaction:Object.assign({},t,{type:void 0})}))}}const t=this.getRpcRequest(e);return null!=t?await this.send(t.method,t.args):super._perform(e)}async _detectNetwork(){const e=this._getOption("staticNetwork");if(e){if(!0!==e)return e;if(this.#we)return this.#we}return this.#Ee?await this.#Ee:this.ready?(this.#Ee=(async()=>{try{const e=l.Network.from((0,s.getBigInt)(await this.send("eth_chainId",[])));return this.#Ee=null,e}catch(e){throw this.#Ee=null,e}})(),await this.#Ee):(this.#Ee=(async()=>{const e={id:this.#ye++,method:"eth_chainId",params:[],jsonrpc:"2.0"};let t;this.emit("debug",{action:"sendRpcPayload",payload:e});try{t=(await this._send(e))[0],this.#Ee=null}catch(n){throw this.#Ee=null,this.emit("debug",{action:"receiveRpcError",error:n}),n}if(this.emit("debug",{action:"receiveRpcResult",result:t}),"result"in t)return l.Network.from((0,s.getBigInt)(t.result));throw this.getRpcError(e,t)})(),await this.#Ee)}_start(){null!=this.#ve&&null!=this.#ve.resolve&&(this.#ve.resolve(),this.#ve=null,(async()=>{for(;null==this.#we&&!this.destroyed;)try{this.#we=await this._detectNetwork()}catch(e){if(this.destroyed)break;console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"),this.emit("error",(0,s.makeError)("failed to bootstrap network detection","NETWORK_ERROR",{event:"initial-network-discovery",info:{error:e}})),await b(1e3)}this.#Ae()})())}async _waitUntilReady(){if(null!=this.#ve)return await this.#ve.promise}_getSubscriber(e){return"pending"===e.type?new u.FilterIdPendingSubscriber(this):"event"===e.type?this._getOption("polling")?new d.PollingEventSubscriber(this,e.filter):new u.FilterIdEventSubscriber(this,e.filter):"orphan"===e.type&&"drop-log"===e.filter.orphan?new f.UnmanagedSubscriber("orphan"):super._getSubscriber(e)}get ready(){return null==this.#ve}getRpcTransaction(e){const t={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((n=>{if(null==e[n])return;let r=n;"gasLimit"===n&&(r="gas"),t[r]=(0,s.toQuantity)((0,s.getBigInt)(e[n],`tx.${n}`))})),["from","to","data"].forEach((n=>{null!=e[n]&&(t[n]=(0,s.hexlify)(e[n]))})),e.accessList&&(t.accessList=(0,o.accessListify)(e.accessList)),t}getRpcRequest(e){switch(e.method){case"chainId":return{method:"eth_chainId",args:[]};case"getBlockNumber":return{method:"eth_blockNumber",args:[]};case"getGasPrice":return{method:"eth_gasPrice",args:[]};case"getPriorityFee":return{method:"eth_maxPriorityFeePerGas",args:[]};case"getBalance":return{method:"eth_getBalance",args:[y(e.address),e.blockTag]};case"getTransactionCount":return{method:"eth_getTransactionCount",args:[y(e.address),e.blockTag]};case"getCode":return{method:"eth_getCode",args:[y(e.address),e.blockTag]};case"getStorage":return{method:"eth_getStorageAt",args:[y(e.address),"0x"+e.position.toString(16),e.blockTag]};case"broadcastTransaction":return{method:"eth_sendRawTransaction",args:[e.signedTransaction]};case"getBlock":if("blockTag"in e)return{method:"eth_getBlockByNumber",args:[e.blockTag,!!e.includeTransactions]};if("blockHash"in e)return{method:"eth_getBlockByHash",args:[e.blockHash,!!e.includeTransactions]};break;case"getTransaction":return{method:"eth_getTransactionByHash",args:[e.hash]};case"getTransactionReceipt":return{method:"eth_getTransactionReceipt",args:[e.hash]};case"call":return{method:"eth_call",args:[this.getRpcTransaction(e.transaction),e.blockTag]};case"estimateGas":return{method:"eth_estimateGas",args:[this.getRpcTransaction(e.transaction)]};case"getLogs":return e.filter&&null!=e.filter.address&&(Array.isArray(e.filter.address)?e.filter.address=e.filter.address.map(y):e.filter.address=y(e.filter.address)),{method:"eth_getLogs",args:[e.filter]}}return null}getRpcError(e,t){const{method:n}=e,{error:a}=t;if("eth_estimateGas"===n&&a.message){const t=a.message;if(!t.match(/revert/i)&&t.match(/insufficient funds/i))return(0,s.makeError)("insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.params[0],info:{payload:e,error:a}})}if("eth_call"===n||"eth_estimateGas"===n){const t=A(a),i=r.AbiCoder.getBuiltinCallException("eth_call"===n?"call":"estimateGas",e.params[0],t?t.data:null);return i.info={error:a,payload:e},i}const i=JSON.stringify(function(e){const t=[];return P(e,t),t}(a));if("string"===typeof a.message&&a.message.match(/user denied|ethers-user-denied/i)){const t={eth_sign:"signMessage",personal_sign:"signMessage",eth_signTypedData_v4:"signTypedData",eth_signTransaction:"signTransaction",eth_sendTransaction:"sendTransaction",eth_requestAccounts:"requestAccess",wallet_requestAccounts:"requestAccess"};return(0,s.makeError)("user rejected action","ACTION_REJECTED",{action:t[n]||"unknown",reason:"rejected",info:{payload:e,error:a}})}if("eth_sendRawTransaction"===n||"eth_sendTransaction"===n){const t=e.params[0];if(i.match(/insufficient funds|base fee exceeds gas limit/i))return(0,s.makeError)("insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:t,info:{error:a}});if(i.match(/nonce/i)&&i.match(/too low/i))return(0,s.makeError)("nonce has already been used","NONCE_EXPIRED",{transaction:t,info:{error:a}});if(i.match(/replacement transaction/i)&&i.match(/underpriced/i))return(0,s.makeError)("replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:t,info:{error:a}});if(i.match(/only replay-protected/i))return(0,s.makeError)("legacy pre-eip-155 transactions not supported","UNSUPPORTED_OPERATION",{operation:n,info:{transaction:t,info:{error:a}}})}let o=!!i.match(/the method .* does not exist/i);return o||a&&a.details&&a.details.startsWith("Unauthorized method:")&&(o=!0),o?(0,s.makeError)("unsupported operation","UNSUPPORTED_OPERATION",{operation:e.method,info:{error:a,payload:e}}):(0,s.makeError)("could not coalesce error","UNKNOWN_ERROR",{error:a,payload:e})}send(e,t){if(this.destroyed)return Promise.reject((0,s.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e}));const n=this.#ye++,r=new Promise(((r,a)=>{this.#me.push({resolve:r,reject:a,payload:{method:e,params:t,id:n,jsonrpc:"2.0"}})}));return this.#Ae(),r}async getSigner(e){null==e&&(e=0);const t=this.send("eth_accounts",[]);if("number"===typeof e){const n=await t;if(e>=n.length)throw new Error("no such account");return new v(this,n[e])}const{accounts:n}=await(0,s.resolveProperties)({network:this.getNetwork(),accounts:t});e=(0,a.getAddress)(e);for(const r of n)if((0,a.getAddress)(r)===e)return new v(this,e);throw new Error("invalid account")}async listAccounts(){return(await this.send("eth_accounts",[])).map((e=>new v(this,e)))}destroy(){this.#ge&&(clearTimeout(this.#ge),this.#ge=null);for(const{payload:e,reject:t}of this.#me)t((0,s.makeError)("provider destroyed; cancelled request","UNSUPPORTED_OPERATION",{operation:e.method}));this.#me=[],super.destroy()}}t.JsonRpcApiProvider=w;class E extends w{#Pe;constructor(e,t){super(e,t),this.#Pe=4e3}_getSubscriber(e){const t=super._getSubscriber(e);return m(t)&&(t.pollingInterval=this.#Pe),t}get pollingInterval(){return this.#Pe}set pollingInterval(e){if(!Number.isInteger(e)||e<0)throw new Error("invalid interval");this.#Pe=e,this._forEachSubscriber((e=>{m(e)&&(e.pollingInterval=this.#Pe)}))}}t.JsonRpcApiPollingProvider=E;function A(e){if(null==e)return null;if("string"===typeof e.message&&e.message.match(/revert/i)&&(0,s.isHexString)(e.data))return{message:e.message,data:e.data};if("object"===typeof e){for(const t in e){const n=A(e[t]);if(n)return n}return null}if("string"===typeof e)try{return A(JSON.parse(e))}catch(t){}return null}function P(e,t){if(null!=e){if("string"===typeof e.message&&t.push(e.message),"object"===typeof e)for(const n in e)P(e[n],t);if("string"===typeof e)try{return P(JSON.parse(e),t)}catch(n){}}}t.JsonRpcProvider=class extends E{#_e;constructor(e,t,n){null==e&&(e="http://localhost:8545"),super(t,n),this.#_e="string"===typeof e?new s.FetchRequest(e):e.clone()}_getConnection(){return this.#_e.clone()}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){const t=this._getConnection();t.body=JSON.stringify(e),t.setHeader("content-type","application/json");const n=await t.send();n.assertOk();let r=n.bodyJson;return Array.isArray(r)||(r=[r]),r}}},62789:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PocketProvider=void 0;const r=n(91588),a=n(31297),i=n(45282),o=n(420),s="62e1ad51b37b8e00394bda3b";class f extends o.JsonRpcProvider{applicationId;applicationSecret;constructor(e,t,n){null==e&&(e="mainnet");const a=i.Network.from(e);null==t&&(t=s),null==n&&(n=null);const o={staticNetwork:a};super(f.getRequest(a,t,n),a,o),(0,r.defineProperties)(this,{applicationId:t,applicationSecret:n})}_getProvider(e){try{return new f(e,this.applicationId,this.applicationSecret)}catch(t){}return super._getProvider(e)}static getRequest(e,t,n){null==t&&(t=s);const i=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/v1/lb/${t}`);return i.allowGzip=!0,n&&i.setCredentials("",n),t===s&&(i.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("PocketProvider"),!0)),i}isCommunityResource(){return this.applicationId===s}}t.PocketProvider=f},91895:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QuickNodeProvider=void 0;const r=n(91588),a=n(31297),i=n(45282),o=n(420),s="919b412a057b5e9c9b6dce193c5a60242d6efadb";class f extends o.JsonRpcProvider{token;constructor(e,t){null==e&&(e="mainnet");const n=i.Network.from(e);null==t&&(t=s);super(f.getRequest(n,t),n,{staticNetwork:n}),(0,r.defineProperties)(this,{token:t})}_getProvider(e){try{return new f(e,this.token)}catch(t){}return super._getProvider(e)}isCommunityResource(){return this.token===s}static getRequest(e,t){null==t&&(t=s);const n=new r.FetchRequest(`https://${function(e){switch(e){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"sepolia":return"ethers.ethereum-sepolia.quiknode.pro";case"holesky":return"ethers.ethereum-holesky.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"arbitrum-sepolia":return"ethers.arbitrum-sepolia.quiknode.pro";case"base":return"ethers.base-mainnet.quiknode.pro";case"base-goerli":return"ethers.base-goerli.quiknode.pro";case"base-spolia":return"ethers.base-sepolia.quiknode.pro";case"bnb":return"ethers.bsc.quiknode.pro";case"bnbt":return"ethers.bsc-testnet.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro";case"optimism-sepolia":return"ethers.optimism-sepolia.quiknode.pro";case"xdai":return"ethers.xdai.quiknode.pro"}(0,r.assertArgument)(!1,"unsupported network","network",e)}(e.name)}/${t}`);return n.allowGzip=!0,t===s&&(n.retryFunc=async(e,t,n)=>((0,a.showThrottleMessage)("QuickNodeProvider"),!0)),n}}t.QuickNodeProvider=f},13819:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SocketProvider=t.SocketEventSubscriber=t.SocketPendingSubscriber=t.SocketBlockSubscriber=t.SocketSubscriber=void 0;const r=n(18745),a=n(91588),i=n(420);class o{#Te;#E;get filter(){return JSON.parse(this.#E)}#ke;#Ce;#xe;constructor(e,t){this.#Te=e,this.#E=JSON.stringify(t),this.#ke=null,this.#Ce=null,this.#xe=null}start(){this.#ke=this.#Te.send("eth_subscribe",this.filter).then((e=>(this.#Te._register(e,this),e)))}stop(){this.#ke.then((e=>{this.#Te.destroyed||this.#Te.send("eth_unsubscribe",[e])})),this.#ke=null}pause(e){(0,a.assert)(e,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),this.#Ce=!!e}resume(){this.#Ce=null}_handleMessage(e){if(null!=this.#ke&&null===this.#Ce){let t=this.#xe;t=null==t?this._emit(this.#Te,e):t.then((async()=>{await this._emit(this.#Te,e)})),this.#xe=t.then((()=>{this.#xe===t&&(this.#xe=null)}))}}async _emit(e,t){throw new Error("sub-classes must implemente this; _emit")}}t.SocketSubscriber=o;class s extends o{constructor(e){super(e,["newHeads"])}async _emit(e,t){e.emit("block",parseInt(t.number))}}t.SocketBlockSubscriber=s;class f extends o{constructor(e){super(e,["newPendingTransactions"])}async _emit(e,t){e.emit("pending",t)}}t.SocketPendingSubscriber=f;class c extends o{#Oe;get logFilter(){return JSON.parse(this.#Oe)}constructor(e,t){super(e,["logs",t]),this.#Oe=JSON.stringify(t)}async _emit(e,t){e.emit(this.logFilter,e._wrapLog(t,e._network))}}t.SocketEventSubscriber=c;class l extends i.JsonRpcApiProvider{#Se;#I;#Re;constructor(e,t){const n=Object.assign({},null!=t?t:{});(0,a.assertArgument)(null==n.batchMaxCount||1===n.batchMaxCount,"sockets-based providers do not support batches","options.batchMaxCount",t),n.batchMaxCount=1,null==n.staticNetwork&&(n.staticNetwork=!0),super(e,n),this.#Se=new Map,this.#I=new Map,this.#Re=new Map}_getSubscriber(e){switch(e.type){case"close":return new r.UnmanagedSubscriber("close");case"block":return new s(this);case"pending":return new f(this);case"event":return new c(this,e.filter);case"orphan":if("drop-log"===e.filter.orphan)return new r.UnmanagedSubscriber("drop-log")}return super._getSubscriber(e)}_register(e,t){this.#I.set(e,t);const n=this.#Re.get(e);if(n){for(const e of n)t._handleMessage(e);this.#Re.delete(e)}}async _send(e){(0,a.assertArgument)(!Array.isArray(e),"WebSocket does not support batch send","payload",e);const t=new Promise(((t,n)=>{this.#Se.set(e.id,{payload:e,resolve:t,reject:n})}));return await this._waitUntilReady(),await this._write(JSON.stringify(e)),[await t]}async _processMessage(e){const t=JSON.parse(e);if(t&&"object"===typeof t&&"id"in t){const e=this.#Se.get(t.id);if(null==e)return void this.emit("error",(0,a.makeError)("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:t}));this.#Se.delete(t.id),e.resolve(t)}else{if(!t||"eth_subscription"!==t.method)return void this.emit("error",(0,a.makeError)("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:t}));{const e=t.params.subscription,n=this.#I.get(e);if(n)n._handleMessage(t.params.result);else{let n=this.#Re.get(e);null==n&&(n=[],this.#Re.set(e,n)),n.push(t.params.result)}}}}async _write(e){throw new Error("sub-classes must override this")}}t.SocketProvider=l},77258:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocketProvider=void 0;const r=n(93363),a=n(13819);class i extends a.SocketProvider{#_e;#Ie;get websocket(){if(null==this.#Ie)throw new Error("websocket closed");return this.#Ie}constructor(e,t,n){super(t,n),"string"===typeof e?(this.#_e=()=>new r.WebSocket(e),this.#Ie=this.#_e()):"function"===typeof e?(this.#_e=e,this.#Ie=e()):(this.#_e=null,this.#Ie=e),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(e){console.log("failed to start WebsocketProvider",e)}},this.websocket.onmessage=e=>{this._processMessage(e.data)}}async _write(e){this.websocket.send(e)}async destroy(){null!=this.#Ie&&(this.#Ie.close(),this.#Ie=null),super.destroy()}}t.WebSocketProvider=i},9125:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionResponse=t.TransactionReceipt=t.Log=t.Block=t.copyRequest=t.FeeData=void 0;const r=n(91588),a=n(15762),i=BigInt(0);function o(e){return null==e?null:e}function s(e){return null==e?null:e.toString()}t.FeeData=class{gasPrice;maxFeePerGas;maxPriorityFeePerGas;constructor(e,t,n){(0,r.defineProperties)(this,{gasPrice:o(e),maxFeePerGas:o(t),maxPriorityFeePerGas:o(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:s(e),maxFeePerGas:s(t),maxPriorityFeePerGas:s(n)}}},t.copyRequest=function(e){const t={};e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=(0,r.hexlify)(e.data));const n="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const a of n)a in e&&null!=e[a]&&(t[a]=(0,r.getBigInt)(e[a],`request.${a}`));const i="type,nonce".split(/,/);for(const a of i)a in e&&null!=e[a]&&(t[a]=(0,r.getNumber)(e[a],`request.${a}`));return e.accessList&&(t.accessList=(0,a.accessListify)(e.accessList)),"blockTag"in e&&(t.blockTag=e.blockTag),"enableCcipRead"in e&&(t.enableCcipRead=!!e.enableCcipRead),"customData"in e&&(t.customData=e.customData),"blobVersionedHashes"in e&&e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.slice()),"kzg"in e&&(t.kzg=e.kzg),"blobs"in e&&e.blobs&&(t.blobs=e.blobs.map((e=>(0,r.isBytesLike)(e)?(0,r.hexlify)(e):Object.assign({},e)))),t};class f{provider;number;hash;timestamp;parentHash;parentBeaconBlockRoot;nonce;difficulty;gasLimit;gasUsed;stateRoot;receiptsRoot;blobGasUsed;excessBlobGas;miner;prevRandao;extraData;baseFeePerGas;#Ne;constructor(e,t){this.#Ne=e.transactions.map((e=>"string"!==typeof e?new u(e,t):e)),(0,r.defineProperties)(this,{provider:t,hash:o(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:o(e.prevRandao),extraData:e.extraData,baseFeePerGas:o(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return this.#Ne.map((e=>"string"===typeof e?e:e.hash))}get prefetchedTransactions(){const e=this.#Ne.slice();return 0===e.length?[]:((0,r.assert)("object"===typeof e[0],"transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:t,extraData:n,gasLimit:r,gasUsed:a,hash:i,miner:o,prevRandao:f,nonce:c,number:l,parentHash:u,parentBeaconBlockRoot:d,stateRoot:p,receiptsRoot:h,timestamp:b,transactions:y}=this;return{_type:"Block",baseFeePerGas:s(e),difficulty:s(t),extraData:n,gasLimit:s(r),gasUsed:s(a),blobGasUsed:s(this.blobGasUsed),excessBlobGas:s(this.excessBlobGas),hash:i,miner:o,prevRandao:f,nonce:c,number:l,parentHash:u,timestamp:b,parentBeaconBlockRoot:d,stateRoot:p,receiptsRoot:h,transactions:y}}[Symbol.iterator](){let e=0;const t=this.transactions;return{next:()=>e<this.length?{value:t[e++],done:!1}:{value:void 0,done:!0}}}get length(){return this.#Ne.length}get date(){return null==this.timestamp?null:new Date(1e3*this.timestamp)}async getTransaction(e){let t;if("number"===typeof e)t=this.#Ne[e];else{const n=e.toLowerCase();for(const e of this.#Ne){if("string"===typeof e){if(e!==n)continue;t=e;break}if(e.hash!==n){t=e;break}}}if(null==t)throw new Error("no such tx");return"string"===typeof t?await this.provider.getTransaction(t):t}getPrefetchedTransaction(e){const t=this.prefetchedTransactions;if("number"===typeof e)return t[e];e=e.toLowerCase();for(const n of t)if(n.hash===e)return n;(0,r.assertArgument)(!1,"no matching transaction","indexOrHash",e)}isMined(){return!!this.hash}isLondon(){return!!this.baseFeePerGas}orphanedEvent(){if(!this.isMined())throw new Error("");return{orphan:"drop-block",hash:(e=this).hash,number:e.number};var e}}t.Block=f;class c{provider;transactionHash;blockHash;blockNumber;removed;address;data;topics;index;transactionIndex;constructor(e,t){this.provider=t;const n=Object.freeze(e.topics.slice());(0,r.defineProperties)(this,{transactionHash:e.transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,removed:e.removed,address:e.address,data:e.data,topics:n,index:e.index,transactionIndex:e.transactionIndex})}toJSON(){const{address:e,blockHash:t,blockNumber:n,data:r,index:a,removed:i,topics:o,transactionHash:s,transactionIndex:f}=this;return{_type:"log",address:e,blockHash:t,blockNumber:n,data:r,index:a,removed:i,topics:o,transactionHash:s,transactionIndex:f}}async getBlock(){const e=await this.provider.getBlock(this.blockHash);return(0,r.assert)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransaction(){const e=await this.provider.getTransaction(this.transactionHash);return(0,r.assert)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransactionReceipt(){const e=await this.provider.getTransactionReceipt(this.transactionHash);return(0,r.assert)(!!e,"failed to find transaction receipt","UNKNOWN_ERROR",{}),e}removedEvent(){return{orphan:"drop-log",log:{transactionHash:(e=this).transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,address:e.address,data:e.data,topics:Object.freeze(e.topics.slice()),index:e.index}};var e}}t.Log=c;class l{provider;to;from;contractAddress;hash;index;blockHash;blockNumber;logsBloom;gasUsed;blobGasUsed;cumulativeGasUsed;gasPrice;blobGasPrice;type;status;root;#Be;constructor(e,t){this.#Be=Object.freeze(e.logs.map((e=>new c(e,t))));let n=i;null!=e.effectiveGasPrice?n=e.effectiveGasPrice:null!=e.gasPrice&&(n=e.gasPrice),(0,r.defineProperties)(this,{provider:t,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,blobGasUsed:e.blobGasUsed,gasPrice:n,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return this.#Be}toJSON(){const{to:e,from:t,contractAddress:n,hash:r,index:a,blockHash:i,blockNumber:o,logsBloom:f,logs:c,status:l,root:u}=this;return{_type:"TransactionReceipt",blockHash:i,blockNumber:o,contractAddress:n,cumulativeGasUsed:s(this.cumulativeGasUsed),from:t,gasPrice:s(this.gasPrice),blobGasUsed:s(this.blobGasUsed),blobGasPrice:s(this.blobGasPrice),gasUsed:s(this.gasUsed),hash:r,index:a,logs:c,logsBloom:f,root:u,status:l,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e<this.length?{value:this.logs[e++],done:!1}:{value:void 0,done:!0}}}get fee(){return this.gasUsed*this.gasPrice}async getBlock(){const e=await this.provider.getBlock(this.blockHash);if(null==e)throw new Error("TODO");return e}async getTransaction(){const e=await this.provider.getTransaction(this.hash);if(null==e)throw new Error("TODO");return e}async getResult(){return await this.provider.getTransactionResult(this.hash)}async confirmations(){return await this.provider.getBlockNumber()-this.blockNumber+1}removedEvent(){return p(this)}reorderedEvent(e){return(0,r.assert)(!e||e.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),d(this,e)}}t.TransactionReceipt=l;class u{provider;blockNumber;blockHash;index;hash;type;to;from;nonce;gasLimit;gasPrice;maxPriorityFeePerGas;maxFeePerGas;maxFeePerBlobGas;data;value;chainId;signature;accessList;blobVersionedHashes;#je;constructor(e,t){this.provider=t,this.blockNumber=null!=e.blockNumber?e.blockNumber:null,this.blockHash=null!=e.blockHash?e.blockHash:null,this.hash=e.hash,this.index=e.index,this.type=e.type,this.from=e.from,this.to=e.to||null,this.gasLimit=e.gasLimit,this.nonce=e.nonce,this.data=e.data,this.value=e.value,this.gasPrice=e.gasPrice,this.maxPriorityFeePerGas=null!=e.maxPriorityFeePerGas?e.maxPriorityFeePerGas:null,this.maxFeePerGas=null!=e.maxFeePerGas?e.maxFeePerGas:null,this.maxFeePerBlobGas=null!=e.maxFeePerBlobGas?e.maxFeePerBlobGas:null,this.chainId=e.chainId,this.signature=e.signature,this.accessList=null!=e.accessList?e.accessList:null,this.blobVersionedHashes=null!=e.blobVersionedHashes?e.blobVersionedHashes:null,this.#je=-1}toJSON(){const{blockNumber:e,blockHash:t,index:n,hash:r,type:a,to:i,from:o,nonce:f,data:c,signature:l,accessList:u,blobVersionedHashes:d}=this;return{_type:"TransactionResponse",accessList:u,blockNumber:e,blockHash:t,blobVersionedHashes:d,chainId:s(this.chainId),data:c,from:o,gasLimit:s(this.gasLimit),gasPrice:s(this.gasPrice),hash:r,maxFeePerGas:s(this.maxFeePerGas),maxPriorityFeePerGas:s(this.maxPriorityFeePerGas),maxFeePerBlobGas:s(this.maxFeePerBlobGas),nonce:f,signature:l,to:i,index:n,type:a,value:s(this.value)}}async getBlock(){let e=this.blockNumber;if(null==e){const t=await this.getTransaction();t&&(e=t.blockNumber)}if(null==e)return null;const t=this.provider.getBlock(e);if(null==t)throw new Error("TODO");return t}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(null==this.blockNumber){const{tx:e,blockNumber:t}=await(0,r.resolveProperties)({tx:this.getTransaction(),blockNumber:this.provider.getBlockNumber()});return null==e||null==e.blockNumber?0:t-e.blockNumber+1}return await this.provider.getBlockNumber()-this.blockNumber+1}async wait(e,t){const n=null==e?1:e,a=null==t?0:t;let o=this.#je,s=-1,f=-1===o;const c=async()=>{if(f)return null;const{blockNumber:e,nonce:t}=await(0,r.resolveProperties)({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(t<this.nonce)return void(o=e);if(f)return null;const a=await this.getTransaction();if(!a||null==a.blockNumber)for(-1===s&&(s=o-3,s<this.#je&&(s=this.#je));s<=e;){if(f)return null;const t=await this.provider.getBlock(s,!0);if(null==t)return;for(const e of t)if(e===this.hash)return;for(let a=0;a<t.length;a++){const s=await t.getTransaction(a);if(s.from===this.from&&s.nonce===this.nonce){if(f)return null;const t=await this.provider.getTransactionReceipt(s.hash);if(null==t)return;if(e-t.blockNumber+1<n)return;let a="replaced";s.data===this.data&&s.to===this.to&&s.value===this.value?a="repriced":"0x"===s.data&&s.from===s.to&&s.value===i&&(a="cancelled"),(0,r.assert)(!1,"transaction was replaced","TRANSACTION_REPLACED",{cancelled:"replaced"===a||"cancelled"===a,reason:a,replacement:s.replaceableTransaction(o),hash:s.hash,receipt:t})}}s++}},l=e=>{if(null==e||0!==e.status)return e;(0,r.assert)(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:e.to,from:e.from,data:""},receipt:e})},u=await this.provider.getTransactionReceipt(this.hash);if(0===n)return l(u);if(u){if(await u.confirmations()>=n)return l(u)}else if(await c(),0===n)return null;const d=new Promise(((e,t)=>{const i=[],s=()=>{i.forEach((e=>e()))};if(i.push((()=>{f=!0})),a>0){const e=setTimeout((()=>{s(),t((0,r.makeError)("wait for transaction timeout","TIMEOUT"))}),a);i.push((()=>{clearTimeout(e)}))}const u=async r=>{if(await r.confirmations()>=n){s();try{e(l(r))}catch(a){t(a)}}};if(i.push((()=>{this.provider.off(this.hash,u)})),this.provider.on(this.hash,u),o>=0){const e=async()=>{try{await c()}catch(n){if((0,r.isError)(n,"TRANSACTION_REPLACED"))return s(),void t(n)}f||this.provider.once("block",e)};i.push((()=>{this.provider.off("block",e)})),this.provider.once("block",e)}}));return await d}isMined(){return null!=this.blockHash}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}removedEvent(){return(0,r.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),p(this)}reorderedEvent(e){return(0,r.assert)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),(0,r.assert)(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),d(this,e)}replaceableTransaction(e){(0,r.assertArgument)(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const t=new u(this,this.provider);return t.#je=e,t}}function d(e,t){return{orphan:"reorder-transaction",tx:e,other:t}}function p(e){return{orphan:"drop-transaction",tx:e}}t.TransactionResponse=u},55177:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NonceManager=void 0;const r=n(91588),a=n(49873);class i extends a.AbstractSigner{signer;#De;#Le;constructor(e){super(e.provider),(0,r.defineProperties)(this,{signer:e}),this.#De=null,this.#Le=0}async getAddress(){return this.signer.getAddress()}connect(e){return new i(this.signer.connect(e))}async getNonce(e){if("pending"===e){null==this.#De&&(this.#De=super.getNonce("pending"));const e=this.#Le;return await this.#De+e}return super.getNonce(e)}increment(){this.#Le++}reset(){this.#Le=0,this.#De=null}async sendTransaction(e){const t=this.getNonce("pending");return this.increment(),(e=await this.signer.populateTransaction(e)).nonce=await t,await this.signer.sendTransaction(e)}signTransaction(e){return this.signer.signTransaction(e)}signMessage(e){return this.signer.signMessage(e)}signTypedData(e,t,n){return this.signer.signTypedData(e,t,n)}}t.NonceManager=i},36689:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterIdPendingSubscriber=t.FilterIdEventSubscriber=t.FilterIdSubscriber=void 0;const r=n(91588),a=n(63650);class i{#Te;#Me;#Ue;#Fe;#we;#ze;constructor(e){this.#Te=e,this.#Me=null,this.#Ue=this.#$e.bind(this),this.#Fe=!1,this.#we=null,this.#ze=!1}_subscribe(e){throw new Error("subclasses must override this")}_emitResults(e,t){throw new Error("subclasses must override this")}_recover(e){throw new Error("subclasses must override this")}async#$e(e){try{null==this.#Me&&(this.#Me=this._subscribe(this.#Te));let e=null;try{e=await this.#Me}catch(t){if(!(0,r.isError)(t,"UNSUPPORTED_OPERATION")||"eth_newFilter"!==t.operation)throw t}if(null==e)return this.#Me=null,void this.#Te._recoverSubscriber(this,this._recover(this.#Te));const n=await this.#Te.getNetwork();if(this.#we||(this.#we=n),this.#we.chainId!==n.chainId)throw new Error("chaid changed");if(this.#ze)return;const a=await this.#Te.send("eth_getFilterChanges",[e]);await this._emitResults(this.#Te,a)}catch(t){console.log("@TODO",t)}this.#Te.once("block",this.#Ue)}#Ge(){const e=this.#Me;e&&(this.#Me=null,e.then((e=>{this.#Te.destroyed||this.#Te.send("eth_uninstallFilter",[e])})))}start(){this.#Fe||(this.#Fe=!0,this.#$e(-2))}stop(){this.#Fe&&(this.#Fe=!1,this.#ze=!0,this.#Ge(),this.#Te.off("block",this.#Ue))}pause(e){e&&this.#Ge(),this.#Te.off("block",this.#Ue)}resume(){this.start()}}t.FilterIdSubscriber=i;t.FilterIdEventSubscriber=class extends i{#He;constructor(e,t){var n;super(e),this.#He=(n=t,JSON.parse(JSON.stringify(n)))}_recover(e){return new a.PollingEventSubscriber(e,this.#He)}async _subscribe(e){return await e.send("eth_newFilter",[this.#He])}async _emitResults(e,t){for(const n of t)e.emit(this.#He,e._wrapLog(n,e._network))}};t.FilterIdPendingSubscriber=class extends i{async _subscribe(e){return await e.send("eth_newPendingTransactionFilter",[])}async _emitResults(e,t){for(const n of t)e.emit("pending",n)}}},63650:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PollingEventSubscriber=t.PollingTransactionSubscriber=t.PollingOrphanSubscriber=t.PollingBlockTagSubscriber=t.OnBlockSubscriber=t.PollingBlockSubscriber=t.getPollingSubscriber=void 0;const r=n(91588);function a(e){return JSON.parse(JSON.stringify(e))}t.getPollingSubscriber=function(e,t){return"block"===t?new i(e):(0,r.isHexString)(t,32)?new s(e,t):void(0,r.assert)(!1,"unsupported polling event","UNSUPPORTED_OPERATION",{operation:"getPollingSubscriber",info:{event:t}})};class i{#Te;#Ue;#We;#Ve;constructor(e){this.#Te=e,this.#Ue=null,this.#We=4e3,this.#Ve=-2}get pollingInterval(){return this.#We}set pollingInterval(e){this.#We=e}async#$e(){try{const e=await this.#Te.getBlockNumber();if(-2===this.#Ve)return void(this.#Ve=e);if(e!==this.#Ve){for(let t=this.#Ve+1;t<=e;t++){if(null==this.#Ue)return;await this.#Te.emit("block",t)}this.#Ve=e}}catch(e){}null!=this.#Ue&&(this.#Ue=this.#Te._setTimeout(this.#$e.bind(this),this.#We))}start(){this.#Ue||(this.#Ue=this.#Te._setTimeout(this.#$e.bind(this),this.#We),this.#$e())}stop(){this.#Ue&&(this.#Te._clearTimeout(this.#Ue),this.#Ue=null)}pause(e){this.stop(),e&&(this.#Ve=-2)}resume(){this.start()}}t.PollingBlockSubscriber=i;class o{#Te;#$e;#Fe;constructor(e){this.#Te=e,this.#Fe=!1,this.#$e=e=>{this._poll(e,this.#Te)}}async _poll(e,t){throw new Error("sub-classes must override this")}start(){this.#Fe||(this.#Fe=!0,this.#$e(-2),this.#Te.on("block",this.#$e))}stop(){this.#Fe&&(this.#Fe=!1,this.#Te.off("block",this.#$e))}pause(e){this.stop()}resume(){this.start()}}t.OnBlockSubscriber=o;t.PollingBlockTagSubscriber=class extends o{#qe;#Ke;constructor(e,t){super(e),this.#qe=t,this.#Ke=-2}pause(e){e&&(this.#Ke=-2),super.pause(e)}async _poll(e,t){const n=await t.getBlock(this.#qe);null!=n&&(-2===this.#Ke?this.#Ke=n.number:n.number>this.#Ke&&(t.emit(this.#qe,n.number),this.#Ke=n.number))}};t.PollingOrphanSubscriber=class extends o{#E;constructor(e,t){super(e),this.#E=a(t)}async _poll(e,t){throw new Error("@TODO")}};class s extends o{#Ze;constructor(e,t){super(e),this.#Ze=t}async _poll(e,t){const n=await t.getTransactionReceipt(this.#Ze);n&&t.emit(this.#Ze,n)}}t.PollingTransactionSubscriber=s;t.PollingEventSubscriber=class{#Te;#E;#Ue;#Fe;#Ve;constructor(e,t){this.#Te=e,this.#E=a(t),this.#Ue=this.#$e.bind(this),this.#Fe=!1,this.#Ve=-2}async#$e(e){if(-2===this.#Ve)return;const t=a(this.#E);t.fromBlock=this.#Ve+1,t.toBlock=e;const n=await this.#Te.getLogs(t);if(0!==n.length)for(const r of n)this.#Te.emit(this.#E,r),this.#Ve=r.blockNumber;else this.#Ve<e-60&&(this.#Ve=e-60)}start(){this.#Fe||(this.#Fe=!0,-2===this.#Ve&&this.#Te.getBlockNumber().then((e=>{this.#Ve=e})),this.#Te.on("block",this.#Ue))}stop(){this.#Fe&&(this.#Fe=!1,this.#Te.off("block",this.#Ue))}pause(e){this.stop(),e&&(this.#Ve=-2)}resume(){this.start()}}},93363:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebSocket=void 0;const r=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("unable to locate global object")}().WebSocket;t.WebSocket=r},97386:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.accessListify=void 0;const r=n(30379),a=n(91588);function i(e,t){return{address:(0,r.getAddress)(e),storageKeys:t.map(((e,t)=>((0,a.assertArgument)((0,a.isHexString)(e,32),"invalid slot",`storageKeys[${t}]`,e),e.toLowerCase())))}}t.accessListify=function(e){if(Array.isArray(e))return e.map(((t,n)=>Array.isArray(t)?((0,a.assertArgument)(2===t.length,"invalid slot set",`value[${n}]`,t),i(t[0],t[1])):((0,a.assertArgument)(null!=t&&"object"===typeof t,"invalid address-slot set","value",e),i(t.address,t.storageKeys))));(0,a.assertArgument)(null!=e&&"object"===typeof e,"invalid access list","value",e);const t=Object.keys(e).map((t=>{const n=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return i(t,Object.keys(n).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}},15859:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.recoverAddress=t.computeAddress=void 0;const r=n(30379),a=n(86425);function i(e){let t;return t="string"===typeof e?a.SigningKey.computePublicKey(e,!1):e.publicKey,(0,r.getAddress)((0,a.keccak256)("0x"+t.substring(4)).substring(26))}t.computeAddress=i,t.recoverAddress=function(e,t){return i(a.SigningKey.recoverPublicKey(e,t))}},15762:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=t.recoverAddress=t.computeAddress=t.accessListify=void 0;var r=n(97386);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return r.accessListify}});var a=n(15859);Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return a.computeAddress}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return a.recoverAddress}});var i=n(45113);Object.defineProperty(t,"Transaction",{enumerable:!0,get:function(){return i.Transaction}})},45113:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transaction=void 0;const r=n(30379),a=n(5604),i=n(86425),o=n(91588),s=n(97386),f=n(15859),c=BigInt(0),l=BigInt(2),u=BigInt(27),d=BigInt(28),p=BigInt(35),h=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),b=131072;function y(e,t){let n=e.toString(16);for(;n.length<2;)n="0"+n;return n+=(0,i.sha256)(t).substring(4),"0x"+n}function m(e){return"0x"===e?null:(0,r.getAddress)(e)}function g(e,t){try{return(0,s.accessListify)(e)}catch(n){(0,o.assertArgument)(!1,n.message,t,e)}}function v(e,t){return"0x"===e?0:(0,o.getNumber)(e,t)}function w(e,t){if("0x"===e)return c;const n=(0,o.getBigInt)(e,t);return(0,o.assertArgument)(n<=h,"value exceeds uint size",t,n),n}function E(e,t){const n=(0,o.getBigInt)(e,"value"),r=(0,o.toBeArray)(n);return(0,o.assertArgument)(r.length<=32,"value too large",`tx.${t}`,n),r}function A(e){return(0,s.accessListify)(e).map((e=>[e.address,e.storageKeys]))}function P(e,t){(0,o.assertArgument)(Array.isArray(e),`invalid ${t}`,"value",e);for(let n=0;n<e.length;n++)(0,o.assertArgument)((0,o.isHexString)(e[n],32),"invalid ${ param } hash",`value[${n}]`,e[n]);return e}function _(e,t){let n;try{if(n=v(t[0],"yParity"),0!==n&&1!==n)throw new Error("bad yParity")}catch(f){(0,o.assertArgument)(!1,"invalid yParity","yParity",t[0])}const r=(0,o.zeroPadValue)(t[1],32),a=(0,o.zeroPadValue)(t[2],32),s=i.Signature.from({r:r,s:a,yParity:n});e.signature=s}class T{#Je;#Ye;#n;#Qe;#Xe;#et;#tt;#nt;#rt;#ne;#at;#it;#ot;#st;#ft;#ct;get type(){return this.#Je}set type(e){switch(e){case null:this.#Je=null;break;case 0:case"legacy":this.#Je=0;break;case 1:case"berlin":case"eip-2930":this.#Je=1;break;case 2:case"london":case"eip-1559":this.#Je=2;break;case 3:case"cancun":case"eip-4844":this.#Je=3;break;default:(0,o.assertArgument)(!1,"unsupported transaction type","type",e)}}get typeName(){switch(this.type){case 0:return"legacy";case 1:return"eip-2930";case 2:return"eip-1559";case 3:return"eip-4844"}return null}get to(){const e=this.#Ye;return null==e&&3===this.type?a.ZeroAddress:e}set to(e){this.#Ye=null==e?null:(0,r.getAddress)(e)}get nonce(){return this.#Qe}set nonce(e){this.#Qe=(0,o.getNumber)(e,"value")}get gasLimit(){return this.#Xe}set gasLimit(e){this.#Xe=(0,o.getBigInt)(e)}get gasPrice(){const e=this.#et;return null!=e||0!==this.type&&1!==this.type?e:c}set gasPrice(e){this.#et=null==e?null:(0,o.getBigInt)(e,"gasPrice")}get maxPriorityFeePerGas(){const e=this.#tt;return null==e?2===this.type||3===this.type?c:null:e}set maxPriorityFeePerGas(e){this.#tt=null==e?null:(0,o.getBigInt)(e,"maxPriorityFeePerGas")}get maxFeePerGas(){const e=this.#nt;return null==e?2===this.type||3===this.type?c:null:e}set maxFeePerGas(e){this.#nt=null==e?null:(0,o.getBigInt)(e,"maxFeePerGas")}get data(){return this.#n}set data(e){this.#n=(0,o.hexlify)(e)}get value(){return this.#rt}set value(e){this.#rt=(0,o.getBigInt)(e,"value")}get chainId(){return this.#ne}set chainId(e){this.#ne=(0,o.getBigInt)(e)}get signature(){return this.#at||null}set signature(e){this.#at=null==e?null:i.Signature.from(e)}get accessList(){const e=this.#it||null;return null==e?1===this.type||2===this.type||3===this.type?[]:null:e}set accessList(e){this.#it=null==e?null:(0,s.accessListify)(e)}get maxFeePerBlobGas(){const e=this.#ot;return null==e&&3===this.type?c:e}set maxFeePerBlobGas(e){this.#ot=null==e?null:(0,o.getBigInt)(e,"maxFeePerBlobGas")}get blobVersionedHashes(){let e=this.#st;return null==e&&3===this.type?[]:e}set blobVersionedHashes(e){if(null!=e){(0,o.assertArgument)(Array.isArray(e),"blobVersionedHashes must be an Array","value",e),e=e.slice();for(let t=0;t<e.length;t++)(0,o.assertArgument)((0,o.isHexString)(e[t],32),"invalid blobVersionedHash",`value[${t}]`,e[t])}this.#st=e}get blobs(){return null==this.#ct?null:this.#ct.map((e=>Object.assign({},e)))}set blobs(e){if(null==e)return void(this.#ct=null);const t=[],n=[];for(let r=0;r<e.length;r++){const a=e[r];if((0,o.isBytesLike)(a)){(0,o.assert)(this.#ft,"adding a raw blob requires a KZG library","UNSUPPORTED_OPERATION",{operation:"set blobs()"});let e=(0,o.getBytes)(a);if((0,o.assertArgument)(e.length<=b,"blob is too large",`blobs[${r}]`,a),e.length!==b){const t=new Uint8Array(b);t.set(e),e=t}const i=this.#ft.blobToKzgCommitment(e),s=(0,o.hexlify)(this.#ft.computeBlobKzgProof(e,i));t.push({data:(0,o.hexlify)(e),commitment:(0,o.hexlify)(i),proof:s}),n.push(y(1,i))}else{const e=(0,o.hexlify)(a.commitment);t.push({data:(0,o.hexlify)(a.data),commitment:e,proof:(0,o.hexlify)(a.proof)}),n.push(y(1,e))}}this.#ct=t,this.#st=n}get kzg(){return this.#ft}set kzg(e){this.#ft=e}constructor(){this.#Je=null,this.#Ye=null,this.#Qe=0,this.#Xe=c,this.#et=null,this.#tt=null,this.#nt=null,this.#n="0x",this.#rt=c,this.#ne=c,this.#at=null,this.#it=null,this.#ot=null,this.#st=null,this.#ct=null,this.#ft=null}get hash(){return null==this.signature?null:(0,i.keccak256)(this.#lt(!0,!1))}get unsignedHash(){return(0,i.keccak256)(this.unsignedSerialized)}get from(){return null==this.signature?null:(0,f.recoverAddress)(this.unsignedHash,this.signature)}get fromPublicKey(){return null==this.signature?null:i.SigningKey.recoverPublicKey(this.unsignedHash,this.signature)}isSigned(){return null!=this.signature}#lt(e,t){(0,o.assert)(!e||null!=this.signature,"cannot serialize unsigned transaction; maybe you meant .unsignedSerialized","UNSUPPORTED_OPERATION",{operation:".serialized"});const n=e?this.signature:null;switch(this.inferType()){case 0:return function(e,t){const n=[E(e.nonce,"nonce"),E(e.gasPrice||0,"gasPrice"),E(e.gasLimit,"gasLimit"),e.to||"0x",E(e.value,"value"),e.data];let r=c;if(e.chainId!=c)r=(0,o.getBigInt)(e.chainId,"tx.chainId"),(0,o.assertArgument)(!t||null==t.networkV||t.legacyChainId===r,"tx.chainId/sig.v mismatch","sig",t);else if(e.signature){const t=e.signature.legacyChainId;null!=t&&(r=t)}if(!t)return r!==c&&(n.push((0,o.toBeArray)(r)),n.push("0x"),n.push("0x")),(0,o.encodeRlp)(n);let a=BigInt(27+t.yParity);return r!==c?a=i.Signature.getChainIdV(r,t.v):BigInt(t.v)!==a&&(0,o.assertArgument)(!1,"tx.chainId/sig.v mismatch","sig",t),n.push((0,o.toBeArray)(a)),n.push((0,o.toBeArray)(t.r)),n.push((0,o.toBeArray)(t.s)),(0,o.encodeRlp)(n)}(this,n);case 1:return function(e,t){const n=[E(e.chainId,"chainId"),E(e.nonce,"nonce"),E(e.gasPrice||0,"gasPrice"),E(e.gasLimit,"gasLimit"),e.to||"0x",E(e.value,"value"),e.data,A(e.accessList||[])];return t&&(n.push(E(t.yParity,"recoveryParam")),n.push((0,o.toBeArray)(t.r)),n.push((0,o.toBeArray)(t.s))),(0,o.concat)(["0x01",(0,o.encodeRlp)(n)])}(this,n);case 2:return function(e,t){const n=[E(e.chainId,"chainId"),E(e.nonce,"nonce"),E(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),E(e.maxFeePerGas||0,"maxFeePerGas"),E(e.gasLimit,"gasLimit"),e.to||"0x",E(e.value,"value"),e.data,A(e.accessList||[])];return t&&(n.push(E(t.yParity,"yParity")),n.push((0,o.toBeArray)(t.r)),n.push((0,o.toBeArray)(t.s))),(0,o.concat)(["0x02",(0,o.encodeRlp)(n)])}(this,n);case 3:return function(e,t,n){const r=[E(e.chainId,"chainId"),E(e.nonce,"nonce"),E(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),E(e.maxFeePerGas||0,"maxFeePerGas"),E(e.gasLimit,"gasLimit"),e.to||a.ZeroAddress,E(e.value,"value"),e.data,A(e.accessList||[]),E(e.maxFeePerBlobGas||0,"maxFeePerBlobGas"),P(e.blobVersionedHashes||[],"blobVersionedHashes")];return t&&(r.push(E(t.yParity,"yParity")),r.push((0,o.toBeArray)(t.r)),r.push((0,o.toBeArray)(t.s)),n)?(0,o.concat)(["0x03",(0,o.encodeRlp)([r,n.map((e=>e.data)),n.map((e=>e.commitment)),n.map((e=>e.proof))])]):(0,o.concat)(["0x03",(0,o.encodeRlp)(r)])}(this,n,t?this.blobs:null)}(0,o.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:".serialized"})}get serialized(){return this.#lt(!0,!0)}get unsignedSerialized(){return this.#lt(!1,!1)}inferType(){const e=this.inferTypes();return e.indexOf(2)>=0?2:e.pop()}inferTypes(){const e=null!=this.gasPrice,t=null!=this.maxFeePerGas||null!=this.maxPriorityFeePerGas,n=null!=this.accessList,r=null!=this.#ot||this.#st;null!=this.maxFeePerGas&&null!=this.maxPriorityFeePerGas&&(0,o.assert)(this.maxFeePerGas>=this.maxPriorityFeePerGas,"priorityFee cannot be more than maxFee","BAD_DATA",{value:this}),(0,o.assert)(!t||0!==this.type&&1!==this.type,"transaction type cannot have maxFeePerGas or maxPriorityFeePerGas","BAD_DATA",{value:this}),(0,o.assert)(0!==this.type||!n,"legacy transaction cannot have accessList","BAD_DATA",{value:this});const a=[];return null!=this.type?a.push(this.type):t?a.push(2):e?(a.push(1),n||a.push(0)):n?(a.push(1),a.push(2)):(r&&this.to||(a.push(0),a.push(1),a.push(2)),a.push(3)),a.sort(),a}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}clone(){return T.from(this)}toJSON(){const e=e=>null==e?null:e.toString();return{type:this.type,to:this.to,data:this.data,nonce:this.nonce,gasLimit:e(this.gasLimit),gasPrice:e(this.gasPrice),maxPriorityFeePerGas:e(this.maxPriorityFeePerGas),maxFeePerGas:e(this.maxFeePerGas),value:e(this.value),chainId:e(this.chainId),sig:this.signature?this.signature.toJSON():null,accessList:this.accessList}}static from(e){if(null==e)return new T;if("string"===typeof e){const t=(0,o.getBytes)(e);if(t[0]>=127)return T.from(function(e){const t=(0,o.decodeRlp)(e);(0,o.assertArgument)(Array.isArray(t)&&(9===t.length||6===t.length),"invalid field count for legacy transaction","data",e);const n={type:0,nonce:v(t[0],"nonce"),gasPrice:w(t[1],"gasPrice"),gasLimit:w(t[2],"gasLimit"),to:m(t[3]),value:w(t[4],"value"),data:(0,o.hexlify)(t[5]),chainId:c};if(6===t.length)return n;const r=w(t[6],"v"),a=w(t[7],"r"),s=w(t[8],"s");if(a===c&&s===c)n.chainId=r;else{let e=(r-p)/l;e<c&&(e=c),n.chainId=e,(0,o.assertArgument)(e!==c||r===u||r===d,"non-canonical legacy v","v",t[6]),n.signature=i.Signature.from({r:(0,o.zeroPadValue)(t[7],32),s:(0,o.zeroPadValue)(t[8],32),v:r})}return n}(t));switch(t[0]){case 1:return T.from(function(e){const t=(0,o.decodeRlp)((0,o.getBytes)(e).slice(1));(0,o.assertArgument)(Array.isArray(t)&&(8===t.length||11===t.length),"invalid field count for transaction type: 1","data",(0,o.hexlify)(e));const n={type:1,chainId:w(t[0],"chainId"),nonce:v(t[1],"nonce"),gasPrice:w(t[2],"gasPrice"),gasLimit:w(t[3],"gasLimit"),to:m(t[4]),value:w(t[5],"value"),data:(0,o.hexlify)(t[6]),accessList:g(t[7],"accessList")};return 8===t.length||_(n,t.slice(8)),n}(t));case 2:return T.from(function(e){const t=(0,o.decodeRlp)((0,o.getBytes)(e).slice(1));(0,o.assertArgument)(Array.isArray(t)&&(9===t.length||12===t.length),"invalid field count for transaction type: 2","data",(0,o.hexlify)(e));const n={type:2,chainId:w(t[0],"chainId"),nonce:v(t[1],"nonce"),maxPriorityFeePerGas:w(t[2],"maxPriorityFeePerGas"),maxFeePerGas:w(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:w(t[4],"gasLimit"),to:m(t[5]),value:w(t[6],"value"),data:(0,o.hexlify)(t[7]),accessList:g(t[8],"accessList")};return 9===t.length||_(n,t.slice(9)),n}(t));case 3:return T.from(function(e){let t=(0,o.decodeRlp)((0,o.getBytes)(e).slice(1)),n="3",r=null;if(4===t.length&&Array.isArray(t[0])){n="3 (network format)";const e=t[1],a=t[2],i=t[3];(0,o.assertArgument)(Array.isArray(e),"invalid network format: blobs not an array","fields[1]",e),(0,o.assertArgument)(Array.isArray(a),"invalid network format: commitments not an array","fields[2]",a),(0,o.assertArgument)(Array.isArray(i),"invalid network format: proofs not an array","fields[3]",i),(0,o.assertArgument)(e.length===a.length,"invalid network format: blobs/commitments length mismatch","fields",t),(0,o.assertArgument)(e.length===i.length,"invalid network format: blobs/proofs length mismatch","fields",t),r=[];for(let n=0;n<t[1].length;n++)r.push({data:e[n],commitment:a[n],proof:i[n]});t=t[0]}(0,o.assertArgument)(Array.isArray(t)&&(11===t.length||14===t.length),`invalid field count for transaction type: ${n}`,"data",(0,o.hexlify)(e));const a={type:3,chainId:w(t[0],"chainId"),nonce:v(t[1],"nonce"),maxPriorityFeePerGas:w(t[2],"maxPriorityFeePerGas"),maxFeePerGas:w(t[3],"maxFeePerGas"),gasPrice:null,gasLimit:w(t[4],"gasLimit"),to:m(t[5]),value:w(t[6],"value"),data:(0,o.hexlify)(t[7]),accessList:g(t[8],"accessList"),maxFeePerBlobGas:w(t[9],"maxFeePerBlobGas"),blobVersionedHashes:t[10]};r&&(a.blobs=r),(0,o.assertArgument)(null!=a.to,`invalid address for transaction type: ${n}`,"data",e),(0,o.assertArgument)(Array.isArray(a.blobVersionedHashes),"invalid blobVersionedHashes: must be an array","data",e);for(let i=0;i<a.blobVersionedHashes.length;i++)(0,o.assertArgument)((0,o.isHexString)(a.blobVersionedHashes[i],32),`invalid blobVersionedHash at index ${i}: must be length 32`,"data",e);return 11===t.length||_(a,t.slice(11)),a}(t))}(0,o.assert)(!1,"unsupported transaction type","UNSUPPORTED_OPERATION",{operation:"from"})}const t=new T;return null!=e.type&&(t.type=e.type),null!=e.to&&(t.to=e.to),null!=e.nonce&&(t.nonce=e.nonce),null!=e.gasLimit&&(t.gasLimit=e.gasLimit),null!=e.gasPrice&&(t.gasPrice=e.gasPrice),null!=e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=e.maxPriorityFeePerGas),null!=e.maxFeePerGas&&(t.maxFeePerGas=e.maxFeePerGas),null!=e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=e.maxFeePerBlobGas),null!=e.data&&(t.data=e.data),null!=e.value&&(t.value=e.value),null!=e.chainId&&(t.chainId=e.chainId),null!=e.signature&&(t.signature=i.Signature.from(e.signature)),null!=e.accessList&&(t.accessList=e.accessList),null!=e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),null!=e.kzg&&(t.kzg=e.kzg),null!=e.blobs&&(t.blobs=e.blobs),null!=e.hash&&((0,o.assertArgument)(t.isSigned(),"unsigned transaction cannot define '.hash'","tx",e),(0,o.assertArgument)(t.hash===e.hash,"hash mismatch","tx",e)),null!=e.from&&((0,o.assertArgument)(t.isSigned(),"unsigned transaction cannot define '.from'","tx",e),(0,o.assertArgument)(t.from.toLowerCase()===(e.from||"").toLowerCase(),"from mismatch","tx",e)),t}}t.Transaction=T},40102:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBase58=t.encodeBase58=void 0;const r=n(94202),a=n(29727),i=n(91525),o="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";let s=null;function f(e){if(null==s){s={};for(let e=0;e<o.length;e++)s[o[e]]=BigInt(e)}const t=s[e];return(0,a.assertArgument)(null!=t,"invalid base58 value","letter",e),t}const c=BigInt(0),l=BigInt(58);t.encodeBase58=function(e){const t=(0,r.getBytes)(e);let n=(0,i.toBigInt)(t),a="";for(;n;)a=o[Number(n%l)]+a,n/=l;for(let r=0;r<t.length&&!t[r];r++)a=o[0]+a;return a},t.decodeBase58=function(e){let t=c;for(let n=0;n<e.length;n++)t*=l,t+=f(e[n]);return t}},55728:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeBase64=t.decodeBase64=void 0;const r=n(94202);t.decodeBase64=function(e){e=atob(e);const t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return(0,r.getBytes)(t)},t.encodeBase64=function(e){const t=(0,r.getBytes)(e);let n="";for(let r=0;r<t.length;r++)n+=String.fromCharCode(t[r]);return btoa(n)}},94202:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=void 0;const r=n(29727);function a(e,t,n){if(e instanceof Uint8Array)return n?new Uint8Array(e):e;if("string"===typeof e&&e.match(/^0x([0-9a-f][0-9a-f])*$/i)){const t=new Uint8Array((e.length-2)/2);let n=2;for(let r=0;r<t.length;r++)t[r]=parseInt(e.substring(n,n+2),16),n+=2;return t}(0,r.assertArgument)(!1,"invalid BytesLike value",t||"value",e)}function i(e,t){return a(e,t,!1)}function o(e,t){return!("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(("number"!==typeof t||e.length===2+2*t)&&(!0!==t||e.length%2===0))}t.getBytes=i,t.getBytesCopy=function(e,t){return a(e,t,!0)},t.isHexString=o,t.isBytesLike=function(e){return o(e,!0)||e instanceof Uint8Array};const s="0123456789abcdef";function f(e){const t=i(e);let n="0x";for(let r=0;r<t.length;r++){const e=t[r];n+=s[(240&e)>>4]+s[15&e]}return n}function c(e,t,n){const a=i(e);(0,r.assert)(t>=a.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(a),length:t,offset:t+1});const o=new Uint8Array(t);return o.fill(0),n?o.set(a,t-a.length):o.set(a,0),f(o)}t.hexlify=f,t.concat=function(e){return"0x"+e.map((e=>f(e).substring(2))).join("")},t.dataLength=function(e){return o(e,!0)?(e.length-2)/2:i(e).length},t.dataSlice=function(e,t,n){const a=i(e);return null!=n&&n>a.length&&(0,r.assert)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:a,length:a.length,offset:n}),f(a.slice(null==t?0:t,null==n?a.length:n))},t.stripZerosLeft=function(e){let t=f(e).substring(2);for(;t.startsWith("00");)t=t.substring(2);return"0x"+t},t.zeroPadValue=function(e,t){return c(e,t,!0)},t.zeroPadBytes=function(e,t){return c(e,t,!1)}},29727:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assertPrivate=t.assertNormalize=t.assertArgumentCount=t.assertArgument=t.assert=t.makeError=t.isCallException=t.isError=void 0;const r=n(81855),a=n(67161);function i(e){if(null==e)return"null";if(Array.isArray(e))return"[ "+e.map(i).join(", ")+" ]";if(e instanceof Uint8Array){const t="0123456789abcdef";let n="0x";for(let r=0;r<e.length;r++)n+=t[e[r]>>4],n+=t[15&e[r]];return n}if("object"===typeof e&&"function"===typeof e.toJSON)return i(e.toJSON());switch(typeof e){case"boolean":case"symbol":case"number":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{const t=Object.keys(e);return t.sort(),"{ "+t.map((t=>`${i(t)}: ${i(e[t])}`)).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function o(e,t){return e&&e.code===t}function s(e,t,n){let o,s=e;{const a=[];if(n){if("message"in n||"code"in n||"name"in n)throw new Error(`value will overwrite populated values: ${i(n)}`);for(const e in n){if("shortMessage"===e)continue;const t=n[e];a.push(e+"="+i(t))}}a.push(`code=${t}`),a.push(`version=${r.version}`),a.length&&(e+=" ("+a.join(", ")+")")}switch(t){case"INVALID_ARGUMENT":o=new TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":o=new RangeError(e);break;default:o=new Error(e)}return(0,a.defineProperties)(o,{code:t}),n&&Object.assign(o,n),null==o.shortMessage&&(0,a.defineProperties)(o,{shortMessage:s}),o}function f(e,t,n,r){if(!e)throw s(t,n,r)}t.isError=o,t.isCallException=function(e){return o(e,"CALL_EXCEPTION")},t.makeError=s,t.assert=f,t.assertArgument=function(e,t,n,r){f(e,t,"INVALID_ARGUMENT",{argument:n,value:r})},t.assertArgumentCount=function(e,t,n){null==n&&(n=""),n&&(n=": "+n),f(e>=t,"missing arguemnt"+n,"MISSING_ARGUMENT",{count:e,expectedCount:t}),f(e<=t,"too many arguments"+n,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})};const c=["NFD","NFC","NFKD","NFKC"].reduce(((e,t)=>{try{if("test"!=="test".normalize(t))throw new Error("bad");if("NFD"===t){const e=String.fromCharCode(233).normalize("NFD");if(e!==String.fromCharCode(101,769))throw new Error("broken")}e.push(t)}catch(n){}return e}),[]);t.assertNormalize=function(e){f(c.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})},t.assertPrivate=function(e,t,n){if(null==n&&(n=""),e!==t){let e=n,t="new";n&&(e+=".",t+=" "+n),f(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}}},57390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventPayload=void 0;const r=n(67161);t.EventPayload=class{filter;emitter;#ut;constructor(e,t,n){this.#ut=t,(0,r.defineProperties)(this,{emitter:e,filter:n})}async removeListener(){null!=this.#ut&&await this.emitter.off(this.filter,this.#ut)}}},87107:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FetchResponse=t.FetchRequest=t.FetchCancelSignal=void 0;const r=n(55728),a=n(94202),i=n(29727),o=n(67161),s=n(3897),f=n(4783);let c=(0,f.createGetUrl)();const l=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),u=new RegExp("^ipfs://(ipfs/)?(.*)$","i");let d=!1;async function p(e,t){try{const t=e.match(l);if(!t)throw new Error("invalid data");return new w(200,"OK",{"content-type":t[1]||"text/plain"},t[2]?(0,r.decodeBase64)(t[3]):(n=t[3],(0,s.toUtf8Bytes)(n.replace(/%([0-9a-f][0-9a-f])/gi,((e,t)=>String.fromCharCode(parseInt(t,16)))))))}catch(a){return new w(599,"BAD REQUEST (invalid data: URI)",{},null,new v(e))}var n}function h(e){return async function(t,n){try{const n=t.match(u);if(!n)throw new Error("invalid link");return new v(`${e}${n[2]}`)}catch(r){return new w(599,"BAD REQUEST (invalid IPFS URI)",{},null,new v(t))}}}const b={data:p,ipfs:h("https://gateway.ipfs.io/ipfs/")},y=new WeakMap;class m{#dt;#pt;constructor(e){this.#dt=[],this.#pt=!1,y.set(e,(()=>{if(!this.#pt){this.#pt=!0;for(const e of this.#dt)setTimeout((()=>{e()}),0);this.#dt=[]}}))}addListener(e){(0,i.assert)(!this.#pt,"singal already cancelled","UNSUPPORTED_OPERATION",{operation:"fetchCancelSignal.addCancelListener"}),this.#dt.push(e)}get cancelled(){return this.#pt}checkSignal(){(0,i.assert)(!this.cancelled,"cancelled","CANCELLED",{})}}function g(e){if(null==e)throw new Error("missing signal; should not happen");return e.checkSignal(),e}t.FetchCancelSignal=m;class v{#ht;#bt;#yt;#mt;#gt;#ae;#vt;#wt;#Et;#At;#Pt;#_t;#Tt;#kt;#Ct;get url(){return this.#ae}set url(e){this.#ae=String(e)}get body(){return null==this.#vt?null:new Uint8Array(this.#vt)}set body(e){if(null==e)this.#vt=void 0,this.#wt=void 0;else if("string"===typeof e)this.#vt=(0,s.toUtf8Bytes)(e),this.#wt="text/plain";else if(e instanceof Uint8Array)this.#vt=e,this.#wt="application/octet-stream";else{if("object"!==typeof e)throw new Error("invalid body");this.#vt=(0,s.toUtf8Bytes)(JSON.stringify(e)),this.#wt="application/json"}}hasBody(){return null!=this.#vt}get method(){return this.#mt?this.#mt:this.hasBody()?"POST":"GET"}set method(e){null==e&&(e=""),this.#mt=String(e).toUpperCase()}get headers(){const e=Object.assign({},this.#yt);return this.#Et&&(e.authorization=`Basic ${(0,r.encodeBase64)((0,s.toUtf8Bytes)(this.#Et))}`),this.allowGzip&&(e["accept-encoding"]="gzip"),null==e["content-type"]&&this.#wt&&(e["content-type"]=this.#wt),this.body&&(e["content-length"]=String(this.body.length)),e}getHeader(e){return this.headers[e.toLowerCase()]}setHeader(e,t){this.#yt[String(e).toLowerCase()]=String(t)}clearHeaders(){this.#yt={}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n<t.length){const r=t[n++];return{value:[r,e[r]],done:!1}}return{value:void 0,done:!0}}}}get credentials(){return this.#Et||null}setCredentials(e,t){(0,i.assertArgument)(!e.match(/:/),"invalid basic authentication username","username","[REDACTED]"),this.#Et=`${e}:${t}`}get allowGzip(){return this.#bt}set allowGzip(e){this.#bt=!!e}get allowInsecureAuthentication(){return!!this.#ht}set allowInsecureAuthentication(e){this.#ht=!!e}get timeout(){return this.#gt}set timeout(e){(0,i.assertArgument)(e>=0,"timeout must be non-zero","timeout",e),this.#gt=e}get preflightFunc(){return this.#At||null}set preflightFunc(e){this.#At=e}get processFunc(){return this.#Pt||null}set processFunc(e){this.#Pt=e}get retryFunc(){return this.#_t||null}set retryFunc(e){this.#_t=e}get getUrlFunc(){return this.#Ct||c}set getUrlFunc(e){this.#Ct=e}constructor(e){this.#ae=String(e),this.#ht=!1,this.#bt=!0,this.#yt={},this.#mt="",this.#gt=3e5,this.#kt={slotInterval:250,maxAttempts:12},this.#Ct=null}toString(){return`<FetchRequest method=${JSON.stringify(this.method)} url=${JSON.stringify(this.url)} headers=${JSON.stringify(this.headers)} body=${this.#vt?(0,a.hexlify)(this.#vt):"null"}>`}setThrottleParams(e){null!=e.slotInterval&&(this.#kt.slotInterval=e.slotInterval),null!=e.maxAttempts&&(this.#kt.maxAttempts=e.maxAttempts)}async#xt(e,t,n,r,a){if(e>=this.#kt.maxAttempts)return a.makeServerError("exceeded maximum retry limit");(0,i.assert)(E()<=t,"timeout","TIMEOUT",{operation:"request.send",reason:"timeout",request:r}),n>0&&await function(e){return new Promise((t=>setTimeout(t,e)))}(n);let o=this.clone();const s=(o.url.split(":")[0]||"").toLowerCase();if(s in b){const e=await b[s](o.url,g(r.#Tt));if(e instanceof w){let t=e;if(this.processFunc){g(r.#Tt);try{t=await this.processFunc(o,t)}catch(l){null!=l.throttle&&"number"===typeof l.stall||t.makeServerError("error in post-processing function",l).assertOk()}}return t}o=e}this.preflightFunc&&(o=await this.preflightFunc(o));const f=await this.getUrlFunc(o,g(r.#Tt));let c=new w(f.statusCode,f.statusMessage,f.headers,f.body,r);if(301===c.statusCode||302===c.statusCode){try{const n=c.headers.location||"";return o.redirect(n).#xt(e+1,t,0,r,c)}catch(l){}return c}if(429===c.statusCode&&(null==this.retryFunc||await this.retryFunc(o,c,e))){const n=c.headers["retry-after"];let a=this.#kt.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return"string"===typeof n&&n.match(/^[1-9][0-9]*$/)&&(a=parseInt(n)),o.clone().#xt(e+1,t,a,r,c)}if(this.processFunc){g(r.#Tt);try{c=await this.processFunc(o,c)}catch(l){null!=l.throttle&&"number"===typeof l.stall||c.makeServerError("error in post-processing function",l).assertOk();let n=this.#kt.slotInterval*Math.trunc(Math.random()*Math.pow(2,e));return l.stall>=0&&(n=l.stall),o.clone().#xt(e+1,t,n,r,c)}}return c}send(){return(0,i.assert)(null==this.#Tt,"request already sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.send"}),this.#Tt=new m(this),this.#xt(0,E()+this.timeout,0,this,new w(0,"",{},null,this))}cancel(){(0,i.assert)(null!=this.#Tt,"request has not been sent","UNSUPPORTED_OPERATION",{operation:"fetchRequest.cancel"});const e=y.get(this);if(!e)throw new Error("missing signal; should not happen");e()}redirect(e){const t=this.url.split(":")[0].toLowerCase(),n=e.split(":")[0].toLowerCase();(0,i.assert)("GET"===this.method&&("https"!==t||"http"!==n)&&e.match(/^https?:/),"unsupported redirect","UNSUPPORTED_OPERATION",{operation:`redirect(${this.method} ${JSON.stringify(this.url)} => ${JSON.stringify(e)})`});const r=new v(e);return r.method="GET",r.allowGzip=this.allowGzip,r.timeout=this.timeout,r.#yt=Object.assign({},this.#yt),this.#vt&&(r.#vt=new Uint8Array(this.#vt)),r.#wt=this.#wt,r}clone(){const e=new v(this.url);return e.#mt=this.#mt,this.#vt&&(e.#vt=this.#vt),e.#wt=this.#wt,e.#yt=Object.assign({},this.#yt),e.#Et=this.#Et,this.allowGzip&&(e.allowGzip=!0),e.timeout=this.timeout,this.allowInsecureAuthentication&&(e.allowInsecureAuthentication=!0),e.#At=this.#At,e.#Pt=this.#Pt,e.#_t=this.#_t,e.#kt=Object.assign({},this.#kt),e.#Ct=this.#Ct,e}static lockConfig(){d=!0}static getGateway(e){return b[e.toLowerCase()]||null}static registerGateway(e,t){if("http"===(e=e.toLowerCase())||"https"===e)throw new Error(`cannot intercept ${e}; use registerGetUrl`);if(d)throw new Error("gateways locked");b[e]=t}static registerGetUrl(e){if(d)throw new Error("gateways locked");c=e}static createGetUrlFunc(e){return(0,f.createGetUrl)(e)}static createDataGateway(){return p}static createIpfsGatewayFunc(e){return h(e)}}t.FetchRequest=v;class w{#Ot;#St;#yt;#vt;#oe;#Rt;toString(){return`<FetchResponse status=${this.statusCode} body=${this.#vt?(0,a.hexlify)(this.#vt):"null"}>`}get statusCode(){return this.#Ot}get statusMessage(){return this.#St}get headers(){return Object.assign({},this.#yt)}get body(){return null==this.#vt?null:new Uint8Array(this.#vt)}get bodyText(){try{return null==this.#vt?"":(0,s.toUtf8String)(this.#vt)}catch(e){(0,i.assert)(!1,"response body is not valid UTF-8 data","UNSUPPORTED_OPERATION",{operation:"bodyText",info:{response:this}})}}get bodyJson(){try{return JSON.parse(this.bodyText)}catch(e){(0,i.assert)(!1,"response body is not valid JSON","UNSUPPORTED_OPERATION",{operation:"bodyJson",info:{response:this}})}}[Symbol.iterator](){const e=this.headers,t=Object.keys(e);let n=0;return{next:()=>{if(n<t.length){const r=t[n++];return{value:[r,e[r]],done:!1}}return{value:void 0,done:!0}}}}constructor(e,t,n,r,a){this.#Ot=e,this.#St=t,this.#yt=Object.keys(n).reduce(((e,t)=>(e[t.toLowerCase()]=String(n[t]),e)),{}),this.#vt=null==r?null:new Uint8Array(r),this.#oe=a||null,this.#Rt={message:""}}makeServerError(e,t){let n;n=e?`CLIENT ESCALATED SERVER ERROR (${this.statusCode} ${this.statusMessage}; ${e})`:`CLIENT ESCALATED SERVER ERROR (${e=`${this.statusCode} ${this.statusMessage}`})`;const r=new w(599,n,this.headers,this.body,this.#oe||void 0);return r.#Rt={message:e,error:t},r}throwThrottleError(e,t){null==t?t=-1:(0,i.assertArgument)(Number.isInteger(t)&&t>=0,"invalid stall timeout","stall",t);const n=new Error(e||"throttling requests");throw(0,o.defineProperties)(n,{stall:t,throttle:!0}),n}getHeader(e){return this.headers[e.toLowerCase()]}hasBody(){return null!=this.#vt}get request(){return this.#oe}ok(){return""===this.#Rt.message&&this.statusCode>=200&&this.statusCode<300}assertOk(){if(this.ok())return;let{message:e,error:t}=this.#Rt;""===e&&(e=`server response ${this.statusCode} ${this.statusMessage}`);let n=null;this.request&&(n=this.request.url);let r=null;try{this.#vt&&(r=(0,s.toUtf8String)(this.#vt))}catch(a){}(0,i.assert)(!1,e,"SERVER_ERROR",{request:this.request||"unknown request",response:this,error:t,info:{requestUrl:n,responseBody:r,responseStatus:`${this.statusCode} ${this.statusMessage}`}})}}function E(){return(new Date).getTime()}t.FetchResponse=w},86842:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FixedNumber=void 0;const r=n(94202),a=n(29727),i=n(91525),o=n(67161),s=BigInt(-1),f=BigInt(0),c=BigInt(1),l=BigInt(5),u={};let d="0000";for(;d.length<80;)d+=d;function p(e){let t=d;for(;t.length<e;)t+=t;return BigInt("1"+t.substring(0,e))}function h(e,t,n){const r=BigInt(t.width);if(t.signed){const t=c<<r-c;(0,a.assert)(null==n||e>=-t&&e<t,"overflow","NUMERIC_FAULT",{operation:n,fault:"overflow",value:e}),e=e>f?(0,i.fromTwos)((0,i.mask)(e,r),r):-(0,i.fromTwos)((0,i.mask)(-e,r),r)}else{const t=c<<r;(0,a.assert)(null==n||e>=0&&e<t,"overflow","NUMERIC_FAULT",{operation:n,fault:"overflow",value:e}),e=(e%t+t)%t&t-c}return e}function b(e){"number"===typeof e&&(e=`fixed128x${e}`);let t=!0,n=128,r=18;if("string"===typeof e)if("fixed"===e);else if("ufixed"===e)t=!1;else{const i=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);(0,a.assertArgument)(i,"invalid fixed format","format",e),t="u"!==i[1],n=parseInt(i[2]),r=parseInt(i[3])}else if(e){const i=e,o=(e,t,n)=>null==i[e]?n:((0,a.assertArgument)(typeof i[e]===t,"invalid fixed format ("+e+" not "+t+")","format."+e,i[e]),i[e]);t=o("signed","boolean",t),n=o("width","number",n),r=o("decimals","number",r)}(0,a.assertArgument)(n%8===0,"invalid FixedNumber width (not byte aligned)","format.width",n),(0,a.assertArgument)(r<=80,"invalid FixedNumber decimals (too large)","format.decimals",r);return{signed:t,width:n,decimals:r,name:(t?"":"u")+"fixed"+String(n)+"x"+String(r)}}class y{format;#It;#Nt;#Bt;_value;constructor(e,t,n){(0,a.assertPrivate)(e,u,"FixedNumber"),this.#Nt=t,this.#It=n;const r=function(e,t){let n="";e<f&&(n="-",e*=s);let r=e.toString();if(0===t)return n+r;for(;r.length<=t;)r=d+r;const a=r.length-t;for(r=r.substring(0,a)+"."+r.substring(a);"0"===r[0]&&"."!==r[1];)r=r.substring(1);for(;"0"===r[r.length-1]&&"."!==r[r.length-2];)r=r.substring(0,r.length-1);return n+r}(t,n.decimals);(0,o.defineProperties)(this,{format:n.name,_value:r}),this.#Bt=p(n.decimals)}get signed(){return this.#It.signed}get width(){return this.#It.width}get decimals(){return this.#It.decimals}get value(){return this.#Nt}#jt(e){(0,a.assertArgument)(this.format===e.format,"incompatible format; use fixedNumber.toFormat","other",e)}#Dt(e,t){return e=h(e,this.#It,t),new y(u,e,this.#It)}#Lt(e,t){return this.#jt(e),this.#Dt(this.#Nt+e.#Nt,t)}addUnsafe(e){return this.#Lt(e)}add(e){return this.#Lt(e,"add")}#Mt(e,t){return this.#jt(e),this.#Dt(this.#Nt-e.#Nt,t)}subUnsafe(e){return this.#Mt(e)}sub(e){return this.#Mt(e,"sub")}#Ut(e,t){return this.#jt(e),this.#Dt(this.#Nt*e.#Nt/this.#Bt,t)}mulUnsafe(e){return this.#Ut(e)}mul(e){return this.#Ut(e,"mul")}mulSignal(e){this.#jt(e);const t=this.#Nt*e.#Nt;return(0,a.assert)(t%this.#Bt===f,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),this.#Dt(t/this.#Bt,"mulSignal")}#Ft(e,t){return(0,a.assert)(e.#Nt!==f,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#jt(e),this.#Dt(this.#Nt*this.#Bt/e.#Nt,t)}divUnsafe(e){return this.#Ft(e)}div(e){return this.#Ft(e,"div")}divSignal(e){(0,a.assert)(e.#Nt!==f,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#jt(e);const t=this.#Nt*this.#Bt;return(0,a.assert)(t%e.#Nt===f,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),this.#Dt(t/e.#Nt,"divSignal")}cmp(e){let t=this.value,n=e.value;const r=this.decimals-e.decimals;return r>0?n*=p(r):r<0&&(t*=p(-r)),t<n?-1:t>n?1:0}eq(e){return 0===this.cmp(e)}lt(e){return this.cmp(e)<0}lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=this.#Nt;return this.#Nt<f&&(e-=this.#Bt-c),e=this.#Nt/this.#Bt*this.#Bt,this.#Dt(e,"floor")}ceiling(){let e=this.#Nt;return this.#Nt>f&&(e+=this.#Bt-c),e=this.#Nt/this.#Bt*this.#Bt,this.#Dt(e,"ceiling")}round(e){if(null==e&&(e=0),e>=this.decimals)return this;const t=this.decimals-e,n=l*p(t-1);let r=this.value+n;const a=p(t);return r=r/a*a,h(r,this.#It,"round"),new y(u,r,this.#It)}isZero(){return this.#Nt===f}isNegative(){return this.#Nt<f}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return y.fromString(this.toString(),e)}static fromValue(e,t,n){const r=null==t?0:(0,i.getNumber)(t),o=b(n);let s=(0,i.getBigInt)(e,"value");const c=r-o.decimals;if(c>0){const t=p(c);(0,a.assert)(s%t===f,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),s/=t}else c<0&&(s*=p(-c));return h(s,o,"fromValue"),new y(u,s,o)}static fromString(e,t){const n=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);(0,a.assertArgument)(n&&n[2].length+n[3].length>0,"invalid FixedNumber string value","value",e);const r=b(t);let i=n[2]||"0",o=n[3]||"";for(;o.length<r.decimals;)o+=d;(0,a.assert)(o.substring(r.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:e}),o=o.substring(0,r.decimals);const s=BigInt(n[1]+i+o);return h(s,r,"fromString"),new y(u,s,r)}static fromBytes(e,t){let n=(0,i.toBigInt)((0,r.getBytes)(e,"value"));const a=b(t);return a.signed&&(n=(0,i.fromTwos)(n,a.width)),h(n,a,"fromBytes"),new y(u,n,a)}}t.FixedNumber=y},4783:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUrl=t.createGetUrl=void 0;const r=n(29727);function a(e){return async function(e,t){const n=e.url.split(":")[0].toLowerCase();let a;if((0,r.assert)("http"===n||"https"===n,`unsupported protocol ${n}`,"UNSUPPORTED_OPERATION",{info:{protocol:n},operation:"request"}),(0,r.assert)("https"===n||!e.credentials||e.allowInsecureAuthentication,"insecure authorized connections unsupported","UNSUPPORTED_OPERATION",{operation:"request"}),t){const e=new AbortController;a=e.signal,t.addListener((()=>{e.abort()}))}const i={method:e.method,headers:new Headers(Array.from(e)),body:e.body||void 0,signal:a},o=await fetch(e.url,i),s={};o.headers.forEach(((e,t)=>{s[t.toLowerCase()]=e}));const f=await o.arrayBuffer(),c=null==f?null:new Uint8Array(f);return{statusCode:o.status,statusMessage:o.statusText,headers:s,body:c}}}t.createGetUrl=a;const i=a();t.getUrl=async function(e,t){return i(e,t)}},91588:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.encodeRlp=t.decodeRlp=t.defineProperties=t.resolveProperties=t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.toBigInt=t.getUint=t.getNumber=t.getBigInt=t.mask=t.toTwos=t.fromTwos=t.FixedNumber=t.FetchCancelSignal=t.FetchResponse=t.FetchRequest=t.EventPayload=t.makeError=t.assertNormalize=t.assertPrivate=t.assertArgumentCount=t.assertArgument=t.assert=t.isError=t.isCallException=t.zeroPadBytes=t.zeroPadValue=t.stripZerosLeft=t.dataSlice=t.dataLength=t.concat=t.hexlify=t.isBytesLike=t.isHexString=t.getBytesCopy=t.getBytes=t.encodeBase64=t.decodeBase64=t.encodeBase58=t.decodeBase58=void 0,t.uuidV4=t.Utf8ErrorFuncs=void 0;var r=n(40102);Object.defineProperty(t,"decodeBase58",{enumerable:!0,get:function(){return r.decodeBase58}}),Object.defineProperty(t,"encodeBase58",{enumerable:!0,get:function(){return r.encodeBase58}});var a=n(55728);Object.defineProperty(t,"decodeBase64",{enumerable:!0,get:function(){return a.decodeBase64}}),Object.defineProperty(t,"encodeBase64",{enumerable:!0,get:function(){return a.encodeBase64}});var i=n(94202);Object.defineProperty(t,"getBytes",{enumerable:!0,get:function(){return i.getBytes}}),Object.defineProperty(t,"getBytesCopy",{enumerable:!0,get:function(){return i.getBytesCopy}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return i.isHexString}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return i.isBytesLike}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return i.hexlify}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return i.concat}}),Object.defineProperty(t,"dataLength",{enumerable:!0,get:function(){return i.dataLength}}),Object.defineProperty(t,"dataSlice",{enumerable:!0,get:function(){return i.dataSlice}}),Object.defineProperty(t,"stripZerosLeft",{enumerable:!0,get:function(){return i.stripZerosLeft}}),Object.defineProperty(t,"zeroPadValue",{enumerable:!0,get:function(){return i.zeroPadValue}}),Object.defineProperty(t,"zeroPadBytes",{enumerable:!0,get:function(){return i.zeroPadBytes}});var o=n(29727);Object.defineProperty(t,"isCallException",{enumerable:!0,get:function(){return o.isCallException}}),Object.defineProperty(t,"isError",{enumerable:!0,get:function(){return o.isError}}),Object.defineProperty(t,"assert",{enumerable:!0,get:function(){return o.assert}}),Object.defineProperty(t,"assertArgument",{enumerable:!0,get:function(){return o.assertArgument}}),Object.defineProperty(t,"assertArgumentCount",{enumerable:!0,get:function(){return o.assertArgumentCount}}),Object.defineProperty(t,"assertPrivate",{enumerable:!0,get:function(){return o.assertPrivate}}),Object.defineProperty(t,"assertNormalize",{enumerable:!0,get:function(){return o.assertNormalize}}),Object.defineProperty(t,"makeError",{enumerable:!0,get:function(){return o.makeError}});var s=n(57390);Object.defineProperty(t,"EventPayload",{enumerable:!0,get:function(){return s.EventPayload}});var f=n(87107);Object.defineProperty(t,"FetchRequest",{enumerable:!0,get:function(){return f.FetchRequest}}),Object.defineProperty(t,"FetchResponse",{enumerable:!0,get:function(){return f.FetchResponse}}),Object.defineProperty(t,"FetchCancelSignal",{enumerable:!0,get:function(){return f.FetchCancelSignal}});var c=n(86842);Object.defineProperty(t,"FixedNumber",{enumerable:!0,get:function(){return c.FixedNumber}});var l=n(91525);Object.defineProperty(t,"fromTwos",{enumerable:!0,get:function(){return l.fromTwos}}),Object.defineProperty(t,"toTwos",{enumerable:!0,get:function(){return l.toTwos}}),Object.defineProperty(t,"mask",{enumerable:!0,get:function(){return l.mask}}),Object.defineProperty(t,"getBigInt",{enumerable:!0,get:function(){return l.getBigInt}}),Object.defineProperty(t,"getNumber",{enumerable:!0,get:function(){return l.getNumber}}),Object.defineProperty(t,"getUint",{enumerable:!0,get:function(){return l.getUint}}),Object.defineProperty(t,"toBigInt",{enumerable:!0,get:function(){return l.toBigInt}}),Object.defineProperty(t,"toNumber",{enumerable:!0,get:function(){return l.toNumber}}),Object.defineProperty(t,"toBeHex",{enumerable:!0,get:function(){return l.toBeHex}}),Object.defineProperty(t,"toBeArray",{enumerable:!0,get:function(){return l.toBeArray}}),Object.defineProperty(t,"toQuantity",{enumerable:!0,get:function(){return l.toQuantity}});var u=n(67161);Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return u.resolveProperties}}),Object.defineProperty(t,"defineProperties",{enumerable:!0,get:function(){return u.defineProperties}});var d=n(31910);Object.defineProperty(t,"decodeRlp",{enumerable:!0,get:function(){return d.decodeRlp}});var p=n(14407);Object.defineProperty(t,"encodeRlp",{enumerable:!0,get:function(){return p.encodeRlp}});var h=n(63476);Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return h.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return h.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return h.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return h.parseUnits}});var b=n(3897);Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return b.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return b.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return b.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return b.Utf8ErrorFuncs}});var y=n(72422);Object.defineProperty(t,"uuidV4",{enumerable:!0,get:function(){return y.uuidV4}})},91525:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toQuantity=t.toBeArray=t.toBeHex=t.toNumber=t.getNumber=t.toBigInt=t.getUint=t.getBigInt=t.mask=t.toTwos=t.fromTwos=void 0;const r=n(94202),a=n(29727),i=BigInt(0),o=BigInt(1),s=9007199254740991;function f(e,t){switch(typeof e){case"bigint":return e;case"number":return(0,a.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,a.assertArgument)(e>=-s&&e<=s,"overflow",t||"value",e),BigInt(e);case"string":try{if(""===e)throw new Error("empty string");return"-"===e[0]&&"-"!==e[1]?-BigInt(e.substring(1)):BigInt(e)}catch(n){(0,a.assertArgument)(!1,`invalid BigNumberish string: ${n.message}`,t||"value",e)}}(0,a.assertArgument)(!1,"invalid BigNumberish value",t||"value",e)}function c(e,t){const n=f(e,t);return(0,a.assert)(n>=i,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),n}t.fromTwos=function(e,t){const n=c(e,"value"),r=BigInt(d(t,"width"));if((0,a.assert)(n>>r===i,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),n>>r-o){return-((~n&(o<<r)-o)+o)}return n},t.toTwos=function(e,t){let n=f(e,"value");const r=BigInt(d(t,"width")),s=o<<r-o;if(n<i){n=-n,(0,a.assert)(n<=s,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e});return(~n&(o<<r)-o)+o}return(0,a.assert)(n<s,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),n},t.mask=function(e,t){const n=c(e,"value"),r=BigInt(d(t,"bits"));return n&(o<<r)-o},t.getBigInt=f,t.getUint=c;const l="0123456789abcdef";function u(e){if(e instanceof Uint8Array){let t="0x0";for(const n of e)t+=l[n>>4],t+=l[15&n];return BigInt(t)}return f(e)}function d(e,t){switch(typeof e){case"bigint":return(0,a.assertArgument)(e>=-s&&e<=s,"overflow",t||"value",e),Number(e);case"number":return(0,a.assertArgument)(Number.isInteger(e),"underflow",t||"value",e),(0,a.assertArgument)(e>=-s&&e<=s,"overflow",t||"value",e),e;case"string":try{if(""===e)throw new Error("empty string");return d(BigInt(e),t)}catch(n){(0,a.assertArgument)(!1,`invalid numeric string: ${n.message}`,t||"value",e)}}(0,a.assertArgument)(!1,"invalid numeric value",t||"value",e)}function p(e){const t=c(e,"value");if(t===i)return new Uint8Array([]);let n=t.toString(16);n.length%2&&(n="0"+n);const r=new Uint8Array(n.length/2);for(let a=0;a<r.length;a++){const e=2*a;r[a]=parseInt(n.substring(e,e+2),16)}return r}t.toBigInt=u,t.getNumber=d,t.toNumber=function(e){return d(u(e))},t.toBeHex=function(e,t){let n=c(e,"value").toString(16);if(null==t)n.length%2&&(n="0"+n);else{const r=d(t,"width");for((0,a.assert)(2*r>=n.length,`value exceeds width (${r} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});n.length<2*r;)n="0"+n}return"0x"+n},t.toBeArray=p,t.toQuantity=function(e){let t=(0,r.hexlify)((0,r.isBytesLike)(e)?e:p(e)).substring(2);for(;t.startsWith("0");)t=t.substring(1);return""===t&&(t="0"),"0x"+t}},67161:(e,t)=>{"use strict";function n(e,t,n){const r=t.split("|").map((e=>e.trim()));for(let i=0;i<r.length;i++)switch(t){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof e===t)return}const a=new Error(`invalid value for type ${t}`);throw a.code="INVALID_ARGUMENT",a.argument=`value.${n}`,a.value=e,a}Object.defineProperty(t,"__esModule",{value:!0}),t.defineProperties=t.resolveProperties=void 0,t.resolveProperties=async function(e){const t=Object.keys(e);return(await Promise.all(t.map((t=>Promise.resolve(e[t]))))).reduce(((e,n,r)=>(e[t[r]]=n,e)),{})},t.defineProperties=function(e,t,r){for(let a in t){let i=t[a];const o=r?r[a]:null;o&&n(i,o,a),Object.defineProperty(e,a,{enumerable:!0,value:i,writable:!1})}}},31910:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeRlp=void 0;const r=n(94202),a=n(29727),i=n(94202);function o(e){let t=e.toString(16);for(;t.length<2;)t="0"+t;return"0x"+t}function s(e,t,n){let r=0;for(let a=0;a<n;a++)r=256*r+e[t+a];return r}function f(e,t,n,r){const i=[];for(;n<t+1+r;){const o=c(e,n);i.push(o.result),n+=o.consumed,(0,a.assert)(n<=t+1+r,"child data too short","BUFFER_OVERRUN",{buffer:e,length:r,offset:t})}return{consumed:1+r,result:i}}function c(e,t){(0,a.assert)(0!==e.length,"data too short","BUFFER_OVERRUN",{buffer:e,length:0,offset:1});const n=t=>{(0,a.assert)(t<=e.length,"data short segment too short","BUFFER_OVERRUN",{buffer:e,length:e.length,offset:t})};if(e[t]>=248){const r=e[t]-247;n(t+1+r);const a=s(e,t+1,r);return n(t+1+r+a),f(e,t,t+1+r,r+a)}if(e[t]>=192){const r=e[t]-192;return n(t+1+r),f(e,t,t+1,r)}if(e[t]>=184){const a=e[t]-183;n(t+1+a);const i=s(e,t+1,a);n(t+1+a+i);return{consumed:1+a+i,result:(0,r.hexlify)(e.slice(t+1+a,t+1+a+i))}}if(e[t]>=128){const a=e[t]-128;n(t+1+a);return{consumed:1+a,result:(0,r.hexlify)(e.slice(t+1,t+1+a))}}return{consumed:1,result:o(e[t])}}t.decodeRlp=function(e){const t=(0,i.getBytes)(e,"data"),n=c(t,0);return(0,a.assertArgument)(n.consumed===t.length,"unexpected junk after rlp payload","data",e),n.result}},14407:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encodeRlp=void 0;const r=n(94202);function a(e){const t=[];for(;e;)t.unshift(255&e),e>>=8;return t}function i(e){if(Array.isArray(e)){let t=[];if(e.forEach((function(e){t=t.concat(i(e))})),t.length<=55)return t.unshift(192+t.length),t;const n=a(t.length);return n.unshift(247+n.length),n.concat(t)}const t=Array.prototype.slice.call((0,r.getBytes)(e,"object"));if(1===t.length&&t[0]<=127)return t;if(t.length<=55)return t.unshift(128+t.length),t;const n=a(t.length);return n.unshift(183+n.length),n.concat(t)}const o="0123456789abcdef";t.encodeRlp=function(e){let t="0x";for(const n of i(e))t+=o[n>>4],t+=o[15&n];return t}},63476:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseEther=t.formatEther=t.parseUnits=t.formatUnits=void 0;const r=n(29727),a=n(86842),i=n(91525),o=["wei","kwei","mwei","gwei","szabo","finney","ether"];function s(e,t){let n=18;if("string"===typeof t){const e=o.indexOf(t);(0,r.assertArgument)(e>=0,"invalid unit","unit",t),n=3*e}else null!=t&&(n=(0,i.getNumber)(t,"unit"));return a.FixedNumber.fromValue(e,n,{decimals:n,width:512}).toString()}function f(e,t){(0,r.assertArgument)("string"===typeof e,"value must be a string","value",e);let n=18;if("string"===typeof t){const e=o.indexOf(t);(0,r.assertArgument)(e>=0,"invalid unit","unit",t),n=3*e}else null!=t&&(n=(0,i.getNumber)(t,"unit"));return a.FixedNumber.fromString(e,{decimals:n,width:512}).value}t.formatUnits=s,t.parseUnits=f,t.formatEther=function(e){return s(e,18)},t.parseEther=function(e){return f(e,18)}},3897:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toUtf8CodePoints=t.toUtf8String=t.toUtf8Bytes=t.Utf8ErrorFuncs=void 0;const r=n(94202),a=n(29727);function i(e,t,n,r,a){if("BAD_PREFIX"===e||"UNEXPECTED_CONTINUE"===e){let e=0;for(let r=t+1;r<n.length&&n[r]>>6===2;r++)e++;return e}return"OVERRUN"===e?n.length-t-1:0}function o(e,n){null==n&&(n=t.Utf8ErrorFuncs.error);const a=(0,r.getBytes)(e,"bytes"),i=[];let o=0;for(;o<a.length;){const e=a[o++];if(e>>7===0){i.push(e);continue}let t=null,r=null;if(192===(224&e))t=1,r=127;else if(224===(240&e))t=2,r=2047;else{if(240!==(248&e)){o+=n(128===(192&e)?"UNEXPECTED_CONTINUE":"BAD_PREFIX",o-1,a,i);continue}t=3,r=65535}if(o-1+t>=a.length){o+=n("OVERRUN",o-1,a,i);continue}let s=e&(1<<8-t-1)-1;for(let f=0;f<t;f++){let e=a[o];if(128!=(192&e)){o+=n("MISSING_CONTINUE",o,a,i),s=null;break}s=s<<6|63&e,o++}null!==s&&(s>1114111?o+=n("OUT_OF_RANGE",o-1-t,a,i,s):s>=55296&&s<=57343?o+=n("UTF16_SURROGATE",o-1-t,a,i,s):s<=r?o+=n("OVERLONG",o-1-t,a,i,s):i.push(s))}return i}function s(e,t){(0,a.assertArgument)("string"===typeof e,"invalid string value","str",e),null!=t&&((0,a.assertNormalize)(t),e=e.normalize(t));let n=[];for(let r=0;r<e.length;r++){const t=e.charCodeAt(r);if(t<128)n.push(t);else if(t<2048)n.push(t>>6|192),n.push(63&t|128);else if(55296==(64512&t)){r++;const i=e.charCodeAt(r);(0,a.assertArgument)(r<e.length&&56320===(64512&i),"invalid surrogate pair","str",e);const o=65536+((1023&t)<<10)+(1023&i);n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(63&o|128)}else n.push(t>>12|224),n.push(t>>6&63|128),n.push(63&t|128)}return new Uint8Array(n)}t.Utf8ErrorFuncs=Object.freeze({error:function(e,t,n,r,i){(0,a.assertArgument)(!1,`invalid codepoint at offset ${t}; ${e}`,"bytes",n)},ignore:i,replace:function(e,t,n,r,o){return"OVERLONG"===e?((0,a.assertArgument)("number"===typeof o,"invalid bad code point for replacement","badCodepoint",o),r.push(o),0):(r.push(65533),i(e,t,n))}}),t.toUtf8Bytes=s,t.toUtf8String=function(e,t){return o(e,t).map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")},t.toUtf8CodePoints=function(e,t){return o(s(e,t))}},72422:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uuidV4=void 0;const r=n(94202);t.uuidV4=function(e){const t=(0,r.getBytes)(e,"randomBytes");t[6]=15&t[6]|64,t[8]=63&t[8]|128;const n=(0,r.hexlify)(t);return[n.substring(2,10),n.substring(10,14),n.substring(14,18),n.substring(18,22),n.substring(22,34)].join("-")}},175:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseWallet=void 0;const r=n(30379),a=n(76439),i=n(21642),o=n(15762),s=n(91588);class f extends i.AbstractSigner{address;#zt;constructor(e,t){super(t),(0,s.assertArgument)(e&&"function"===typeof e.sign,"invalid private key","privateKey","[ REDACTED ]"),this.#zt=e;const n=(0,o.computeAddress)(this.signingKey.publicKey);(0,s.defineProperties)(this,{address:n})}get signingKey(){return this.#zt}get privateKey(){return this.signingKey.privateKey}async getAddress(){return this.address}connect(e){return new f(this.#zt,e)}async signTransaction(e){const{to:t,from:n}=await(0,s.resolveProperties)({to:e.to?(0,r.resolveAddress)(e.to,this.provider):void 0,from:e.from?(0,r.resolveAddress)(e.from,this.provider):void 0});null!=t&&(e.to=t),null!=n&&(e.from=n),null!=e.from&&((0,s.assertArgument)((0,r.getAddress)(e.from)===this.address,"transaction from address mismatch","tx.from",e.from),delete e.from);const a=o.Transaction.from(e);return a.signature=this.signingKey.sign(a.unsignedHash),a.serialized}async signMessage(e){return this.signMessageSync(e)}signMessageSync(e){return this.signingKey.sign((0,a.hashMessage)(e)).serialized}async signTypedData(e,t,n){const r=await a.TypedDataEncoder.resolveNames(e,t,n,(async e=>{(0,s.assert)(null!=this.provider,"cannot resolve ENS names without a provider","UNSUPPORTED_OPERATION",{operation:"resolveName",info:{name:e}});const t=await this.provider.resolveName(e);return(0,s.assert)(null!=t,"unconfigured ENS name","UNCONFIGURED_NAME",{value:e}),t}));return this.signingKey.sign(a.TypedDataEncoder.hash(r.domain,t,r.value)).serialized}}t.BaseWallet=f},46474:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getIndexedAccountPath=t.getAccountPath=t.HDNodeVoidWallet=t.HDNodeWallet=t.defaultPath=void 0;const r=n(86425),a=n(21642),i=n(15762),o=n(91588),s=n(36581),f=n(175),c=n(30907),l=n(55911);t.defaultPath="m/44'/60'/0'/0/0";const u=new Uint8Array([66,105,116,99,111,105,110,32,115,101,101,100]),d=2147483648,p=BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");function h(e,t){let n="";for(;e;)n="0123456789abcdef"[e%16]+n,e=Math.trunc(e/16);for(;n.length<2*t;)n="0"+n;return"0x"+n}function b(e){const t=(0,o.getBytes)(e),n=(0,o.dataSlice)((0,r.sha256)((0,r.sha256)(t)),0,4),a=(0,o.concat)([t,n]);return(0,o.encodeBase58)(a)}const y={};function m(e,t,n,a){const i=new Uint8Array(37);e&d?((0,o.assert)(null!=a,"cannot derive child of neutered node","UNSUPPORTED_OPERATION",{operation:"deriveChild"}),i.set((0,o.getBytes)(a),1)):i.set((0,o.getBytes)(n));for(let r=24;r>=0;r-=8)i[33+(r>>3)]=e>>24-r&255;const s=(0,o.getBytes)((0,r.computeHmac)("sha512",t,i));return{IL:s.slice(0,32),IR:s.slice(32)}}function g(e,t){const n=t.split("/");(0,o.assertArgument)(n.length>0,"invalid path","path",t),"m"===n[0]&&((0,o.assertArgument)(0===e.depth,`cannot derive root path (i.e. path starting with "m/") for a node at non-zero depth ${e.depth}`,"path",t),n.shift());let r=e;for(let a=0;a<n.length;a++){const e=n[a];if(e.match(/^[0-9]+'$/)){const t=parseInt(e.substring(0,e.length-1));(0,o.assertArgument)(t<d,"invalid path index",`path[${a}]`,e),r=r.deriveChild(d+t)}else if(e.match(/^[0-9]+$/)){const t=parseInt(e);(0,o.assertArgument)(t<d,"invalid path index",`path[${a}]`,e),r=r.deriveChild(t)}else(0,o.assertArgument)(!1,"invalid path component",`path[${a}]`,e)}return r}class v extends f.BaseWallet{publicKey;fingerprint;parentFingerprint;mnemonic;chainCode;path;index;depth;constructor(e,t,n,a,i,s,f,c,l){super(t,l),(0,o.assertPrivate)(e,y,"HDNodeWallet"),(0,o.defineProperties)(this,{publicKey:t.compressedPublicKey});const u=(0,o.dataSlice)((0,r.ripemd160)((0,r.sha256)(this.publicKey)),0,4);(0,o.defineProperties)(this,{parentFingerprint:n,fingerprint:u,chainCode:a,path:i,index:s,depth:f}),(0,o.defineProperties)(this,{mnemonic:c})}connect(e){return new v(y,this.signingKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.mnemonic,e)}#$t(){const e={address:this.address,privateKey:this.privateKey},t=this.mnemonic;return this.path&&t&&"en"===t.wordlist.locale&&""===t.password&&(e.mnemonic={path:this.path,locale:"en",entropy:t.entropy}),e}async encrypt(e,t){return await(0,l.encryptKeystoreJson)(this.#$t(),e,{progressCallback:t})}encryptSync(e){return(0,l.encryptKeystoreJsonSync)(this.#$t(),e)}get extendedKey(){return(0,o.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),b((0,o.concat)(["0x0488ADE4",h(this.depth,1),this.parentFingerprint,h(this.index,4),this.chainCode,(0,o.concat)(["0x00",this.privateKey])]))}hasPath(){return null!=this.path}neuter(){return new w(y,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,this.provider)}deriveChild(e){const t=(0,o.getNumber)(e,"index");(0,o.assertArgument)(t<=4294967295,"invalid index","index",t);let n=this.path;n&&(n+="/"+(t&~d),t&d&&(n+="'"));const{IR:a,IL:i}=m(t,this.chainCode,this.publicKey,this.privateKey),s=new r.SigningKey((0,o.toBeHex)(((0,o.toBigInt)(i)+BigInt(this.privateKey))%p,32));return new v(y,s,this.fingerprint,(0,o.hexlify)(a),n,t,this.depth+1,this.mnemonic,this.provider)}derivePath(e){return g(this,e)}static#Gt(e,t){(0,o.assertArgument)((0,o.isBytesLike)(e),"invalid seed","seed","[REDACTED]");const n=(0,o.getBytes)(e,"seed");(0,o.assertArgument)(n.length>=16&&n.length<=64,"invalid seed","seed","[REDACTED]");const a=(0,o.getBytes)((0,r.computeHmac)("sha512",u,n)),i=new r.SigningKey((0,o.hexlify)(a.slice(0,32)));return new v(y,i,"0x00000000",(0,o.hexlify)(a.slice(32)),"m",0,0,t,null)}static fromExtendedKey(e){const t=(0,o.toBeArray)((0,o.decodeBase58)(e));(0,o.assertArgument)(82===t.length||b(t.slice(0,78))===e,"invalid extended key","extendedKey","[ REDACTED ]");const n=t[4],a=(0,o.hexlify)(t.slice(5,9)),s=parseInt((0,o.hexlify)(t.slice(9,13)).substring(2),16),f=(0,o.hexlify)(t.slice(13,45)),c=t.slice(45,78);switch((0,o.hexlify)(t.slice(0,4))){case"0x0488b21e":case"0x043587cf":{const e=(0,o.hexlify)(c);return new w(y,(0,i.computeAddress)(e),e,a,f,null,s,n,null)}case"0x0488ade4":case"0x04358394 ":if(0!==c[0])break;return new v(y,new r.SigningKey(c.slice(1)),a,f,null,s,n,null,null)}(0,o.assertArgument)(!1,"invalid extended key prefix","extendedKey","[ REDACTED ]")}static createRandom(e,n,a){null==e&&(e=""),null==n&&(n=t.defaultPath),null==a&&(a=s.LangEn.wordlist());const i=c.Mnemonic.fromEntropy((0,r.randomBytes)(16),e,a);return v.#Gt(i.computeSeed(),i).derivePath(n)}static fromMnemonic(e,n){return n||(n=t.defaultPath),v.#Gt(e.computeSeed(),e).derivePath(n)}static fromPhrase(e,n,r,a){null==n&&(n=""),null==r&&(r=t.defaultPath),null==a&&(a=s.LangEn.wordlist());const i=c.Mnemonic.fromPhrase(e,n,a);return v.#Gt(i.computeSeed(),i).derivePath(r)}static fromSeed(e){return v.#Gt(e,null)}}t.HDNodeWallet=v;class w extends a.VoidSigner{publicKey;fingerprint;parentFingerprint;chainCode;path;index;depth;constructor(e,t,n,a,i,s,f,c,l){super(t,l),(0,o.assertPrivate)(e,y,"HDNodeVoidWallet"),(0,o.defineProperties)(this,{publicKey:n});const u=(0,o.dataSlice)((0,r.ripemd160)((0,r.sha256)(n)),0,4);(0,o.defineProperties)(this,{publicKey:n,fingerprint:u,parentFingerprint:a,chainCode:i,path:s,index:f,depth:c})}connect(e){return new w(y,this.address,this.publicKey,this.parentFingerprint,this.chainCode,this.path,this.index,this.depth,e)}get extendedKey(){return(0,o.assert)(this.depth<256,"Depth too deep","UNSUPPORTED_OPERATION",{operation:"extendedKey"}),b((0,o.concat)(["0x0488B21E",h(this.depth,1),this.parentFingerprint,h(this.index,4),this.chainCode,this.publicKey]))}hasPath(){return null!=this.path}deriveChild(e){const t=(0,o.getNumber)(e,"index");(0,o.assertArgument)(t<=4294967295,"invalid index","index",t);let n=this.path;n&&(n+="/"+(t&~d),t&d&&(n+="'"));const{IR:a,IL:s}=m(t,this.chainCode,this.publicKey,null),f=r.SigningKey.addPoints(s,this.publicKey,!0),c=(0,i.computeAddress)(f);return new w(y,c,f,this.fingerprint,(0,o.hexlify)(a),n,t,this.depth+1,this.provider)}derivePath(e){return g(this,e)}}t.HDNodeVoidWallet=w,t.getAccountPath=function(e){const t=(0,o.getNumber)(e,"index");return(0,o.assertArgument)(t>=0&&t<d,"invalid account index","index",t),`m/44'/60'/${t}'/0/0`},t.getIndexedAccountPath=function(e){const t=(0,o.getNumber)(e,"index");return(0,o.assertArgument)(t>=0&&t<d,"invalid account index","index",t),`m/44'/60'/0'/0/${t}`}},83018:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=t.Mnemonic=t.encryptKeystoreJsonSync=t.encryptKeystoreJson=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.isKeystoreJson=t.decryptCrowdsaleJson=t.isCrowdsaleJson=t.HDNodeVoidWallet=t.HDNodeWallet=t.getIndexedAccountPath=t.getAccountPath=t.defaultPath=t.BaseWallet=void 0;var r=n(175);Object.defineProperty(t,"BaseWallet",{enumerable:!0,get:function(){return r.BaseWallet}});var a=n(46474);Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return a.defaultPath}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return a.getAccountPath}}),Object.defineProperty(t,"getIndexedAccountPath",{enumerable:!0,get:function(){return a.getIndexedAccountPath}}),Object.defineProperty(t,"HDNodeWallet",{enumerable:!0,get:function(){return a.HDNodeWallet}}),Object.defineProperty(t,"HDNodeVoidWallet",{enumerable:!0,get:function(){return a.HDNodeVoidWallet}});var i=n(36003);Object.defineProperty(t,"isCrowdsaleJson",{enumerable:!0,get:function(){return i.isCrowdsaleJson}}),Object.defineProperty(t,"decryptCrowdsaleJson",{enumerable:!0,get:function(){return i.decryptCrowdsaleJson}});var o=n(55911);Object.defineProperty(t,"isKeystoreJson",{enumerable:!0,get:function(){return o.isKeystoreJson}}),Object.defineProperty(t,"decryptKeystoreJsonSync",{enumerable:!0,get:function(){return o.decryptKeystoreJsonSync}}),Object.defineProperty(t,"decryptKeystoreJson",{enumerable:!0,get:function(){return o.decryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJson",{enumerable:!0,get:function(){return o.encryptKeystoreJson}}),Object.defineProperty(t,"encryptKeystoreJsonSync",{enumerable:!0,get:function(){return o.encryptKeystoreJsonSync}});var s=n(30907);Object.defineProperty(t,"Mnemonic",{enumerable:!0,get:function(){return s.Mnemonic}});var f=n(15261);Object.defineProperty(t,"Wallet",{enumerable:!0,get:function(){return f.Wallet}})},36003:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decryptCrowdsaleJson=t.isCrowdsaleJson=void 0;const r=n(32899),a=n(30379),i=n(86425),o=n(76439),s=n(91588),f=n(18925);t.isCrowdsaleJson=function(e){try{if(JSON.parse(e).encseed)return!0}catch(t){}return!1},t.decryptCrowdsaleJson=function(e,t){const n=JSON.parse(e),c=(0,f.getPassword)(t),l=(0,a.getAddress)((0,f.spelunk)(n,"ethaddr:string!")),u=(0,f.looseArrayify)((0,f.spelunk)(n,"encseed:string!"));(0,s.assertArgument)(u&&u.length%16===0,"invalid encseed","json",e);const d=(0,s.getBytes)((0,i.pbkdf2)(c,c,2e3,32,"sha256")).slice(0,16),p=u.slice(0,16),h=u.slice(16),b=new r.CBC(d,p),y=(0,r.pkcs7Strip)((0,s.getBytes)(b.decrypt(h)));let m="";for(let r=0;r<y.length;r++)m+=String.fromCharCode(y[r]);return{address:l,privateKey:(0,o.id)(m)}}},55911:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.encryptKeystoreJson=t.encryptKeystoreJsonSync=t.decryptKeystoreJson=t.decryptKeystoreJsonSync=t.isKeystoreJson=void 0;const r=n(32899),a=n(30379),i=n(86425),o=n(15762),s=n(91588),f=n(18925),c=n(81855),l="m/44'/60'/0'/0/0";function u(e,t){const n=(0,s.getBytes)(t),c=(0,f.spelunk)(e,"crypto.ciphertext:data!"),u=(0,s.hexlify)((0,i.keccak256)((0,s.concat)([n.slice(16,32),c]))).substring(2);(0,s.assertArgument)(u===(0,f.spelunk)(e,"crypto.mac:string!").toLowerCase(),"incorrect password","password","[ REDACTED ]");const d=function(e,t,n){if("aes-128-ctr"===(0,f.spelunk)(e,"crypto.cipher:string")){const a=(0,f.spelunk)(e,"crypto.cipherparams.iv:data!"),i=new r.CTR(t,a);return(0,s.hexlify)(i.decrypt(n))}(0,s.assert)(!1,"unsupported cipher","UNSUPPORTED_OPERATION",{operation:"decrypt"})}(e,n.slice(0,16),c),p=(0,o.computeAddress)(d);if(e.address){let t=e.address.toLowerCase();t.startsWith("0x")||(t="0x"+t),(0,s.assertArgument)((0,a.getAddress)(t)===p,"keystore address/privateKey mismatch","address",e.address)}const h={address:p,privateKey:d};if("0.1"===(0,f.spelunk)(e,"x-ethers.version:string")){const t=n.slice(32,64),a=(0,f.spelunk)(e,"x-ethers.mnemonicCiphertext:data!"),i=(0,f.spelunk)(e,"x-ethers.mnemonicCounter:data!"),o=new r.CTR(t,i);h.mnemonic={path:(0,f.spelunk)(e,"x-ethers.path:string")||l,locale:(0,f.spelunk)(e,"x-ethers.locale:string")||"en",entropy:(0,s.hexlify)((0,s.getBytes)(o.decrypt(a)))}}return h}function d(e){const t=(0,f.spelunk)(e,"crypto.kdf:string");if(t&&"string"===typeof t){if("scrypt"===t.toLowerCase()){const n=(0,f.spelunk)(e,"crypto.kdfparams.salt:data!"),r=(0,f.spelunk)(e,"crypto.kdfparams.n:int!"),a=(0,f.spelunk)(e,"crypto.kdfparams.r:int!"),i=(0,f.spelunk)(e,"crypto.kdfparams.p:int!");(0,s.assertArgument)(r>0&&0===(r&r-1),"invalid kdf.N","kdf.N",r),(0,s.assertArgument)(a>0&&i>0,"invalid kdf","kdf",t);const o=(0,f.spelunk)(e,"crypto.kdfparams.dklen:int!");return(0,s.assertArgument)(32===o,"invalid kdf.dklen","kdf.dflen",o),{name:"scrypt",salt:n,N:r,r:a,p:i,dkLen:64}}if("pbkdf2"===t.toLowerCase()){const t=(0,f.spelunk)(e,"crypto.kdfparams.salt:data!"),n=(0,f.spelunk)(e,"crypto.kdfparams.prf:string!"),r=n.split("-").pop();(0,s.assertArgument)("sha256"===r||"sha512"===r,"invalid kdf.pdf","kdf.pdf",n);const a=(0,f.spelunk)(e,"crypto.kdfparams.c:int!"),i=(0,f.spelunk)(e,"crypto.kdfparams.dklen:int!");return(0,s.assertArgument)(32===i,"invalid kdf.dklen","kdf.dklen",i),{name:"pbkdf2",salt:t,count:a,dkLen:i,algorithm:r}}}(0,s.assertArgument)(!1,"unsupported key-derivation function","kdf",t)}function p(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}function h(e){const t=null!=e.salt?(0,s.getBytes)(e.salt,"options.salt"):(0,i.randomBytes)(32);let n=1<<17,r=8,a=1;return e.scrypt&&(e.scrypt.N&&(n=e.scrypt.N),e.scrypt.r&&(r=e.scrypt.r),e.scrypt.p&&(a=e.scrypt.p)),(0,s.assertArgument)("number"===typeof n&&n>0&&Number.isSafeInteger(n)&&(BigInt(n)&BigInt(n-1))===BigInt(0),"invalid scrypt N parameter","options.N",n),(0,s.assertArgument)("number"===typeof r&&r>0&&Number.isSafeInteger(r),"invalid scrypt r parameter","options.r",r),(0,s.assertArgument)("number"===typeof a&&a>0&&Number.isSafeInteger(a),"invalid scrypt p parameter","options.p",a),{name:"scrypt",dkLen:32,salt:t,N:n,r:r,p:a}}function b(e,t,n,a){const o=(0,s.getBytes)(n.privateKey,"privateKey"),u=null!=a.iv?(0,s.getBytes)(a.iv,"options.iv"):(0,i.randomBytes)(16);(0,s.assertArgument)(16===u.length,"invalid options.iv length","options.iv",a.iv);const d=null!=a.uuid?(0,s.getBytes)(a.uuid,"options.uuid"):(0,i.randomBytes)(16);(0,s.assertArgument)(16===d.length,"invalid options.uuid length","options.uuid",a.iv);const p=e.slice(0,16),h=e.slice(16,32),b=new r.CTR(p,u),y=(0,s.getBytes)(b.encrypt(o)),m=(0,i.keccak256)((0,s.concat)([h,y])),g={address:n.address.substring(2).toLowerCase(),id:(0,s.uuidV4)(d),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,s.hexlify)(u).substring(2)},ciphertext:(0,s.hexlify)(y).substring(2),kdf:"scrypt",kdfparams:{salt:(0,s.hexlify)(t.salt).substring(2),n:t.N,dklen:32,p:t.p,r:t.r},mac:m.substring(2)}};if(n.mnemonic){const t=null!=a.client?a.client:`ethers/${c.version}`,o=n.mnemonic.path||l,u=n.mnemonic.locale||"en",d=e.slice(32,64),p=(0,s.getBytes)(n.mnemonic.entropy,"account.mnemonic.entropy"),h=(0,i.randomBytes)(16),b=new r.CTR(d,h),y=(0,s.getBytes)(b.encrypt(p)),m=new Date,v="UTC--"+(m.getUTCFullYear()+"-"+(0,f.zpad)(m.getUTCMonth()+1,2)+"-"+(0,f.zpad)(m.getUTCDate(),2)+"T"+(0,f.zpad)(m.getUTCHours(),2)+"-"+(0,f.zpad)(m.getUTCMinutes(),2)+"-"+(0,f.zpad)(m.getUTCSeconds(),2)+".0Z")+"--"+g.address;g["x-ethers"]={client:t,gethFilename:v,path:o,locale:u,mnemonicCounter:(0,s.hexlify)(h).substring(2),mnemonicCiphertext:(0,s.hexlify)(y).substring(2),version:"0.1"}}return JSON.stringify(g)}t.isKeystoreJson=function(e){try{const t=JSON.parse(e);if(3===(null!=t.version?parseInt(t.version):0))return!0}catch(t){}return!1},t.decryptKeystoreJsonSync=function(e,t){const n=JSON.parse(e),r=(0,f.getPassword)(t),a=d(n);if("pbkdf2"===a.name){const{salt:e,count:t,dkLen:o,algorithm:s}=a;return u(n,(0,i.pbkdf2)(r,e,t,o,s))}(0,s.assert)("scrypt"===a.name,"cannot be reached","UNKNOWN_ERROR",{params:a});const{salt:o,N:c,r:l,p:p,dkLen:h}=a;return u(n,(0,i.scryptSync)(r,o,c,l,p,h))},t.decryptKeystoreJson=async function(e,t,n){const r=JSON.parse(e),a=(0,f.getPassword)(t),o=d(r);if("pbkdf2"===o.name){n&&(n(0),await p(0));const{salt:e,count:t,dkLen:s,algorithm:f}=o,c=(0,i.pbkdf2)(a,e,t,s,f);return n&&(n(1),await p(0)),u(r,c)}(0,s.assert)("scrypt"===o.name,"cannot be reached","UNKNOWN_ERROR",{params:o});const{salt:c,N:l,r:h,p:b,dkLen:y}=o;return u(r,await(0,i.scrypt)(a,c,l,h,b,y,n))},t.encryptKeystoreJsonSync=function(e,t,n){null==n&&(n={});const r=(0,f.getPassword)(t),a=h(n),o=(0,i.scryptSync)(r,a.salt,a.N,a.r,a.p,64);return b((0,s.getBytes)(o),a,e,n)},t.encryptKeystoreJson=async function(e,t,n){null==n&&(n={});const r=(0,f.getPassword)(t),a=h(n),o=await(0,i.scrypt)(r,a.salt,a.N,a.r,a.p,64,n.progressCallback);return b((0,s.getBytes)(o),a,e,n)}},30907:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Mnemonic=void 0;const r=n(86425),a=n(91588),i=n(36581);function o(e){return(1<<e)-1<<8-e&255}function s(e,t){(0,a.assertNormalize)("NFKD"),null==t&&(t=i.LangEn.wordlist());const n=t.split(e);(0,a.assertArgument)(n.length%3===0&&n.length>=12&&n.length<=24,"invalid mnemonic length","mnemonic","[ REDACTED ]");const s=new Uint8Array(Math.ceil(11*n.length/8));let f=0;for(let r=0;r<n.length;r++){let e=t.getWordIndex(n[r].normalize("NFKD"));(0,a.assertArgument)(e>=0,`invalid mnemonic word at index ${r}`,"mnemonic","[ REDACTED ]");for(let t=0;t<11;t++)e&1<<10-t&&(s[f>>3]|=1<<7-f%8),f++}const c=32*n.length/3,l=o(n.length/3),u=(0,a.getBytes)((0,r.sha256)(s.slice(0,c/8)))[0]&l;return(0,a.assertArgument)(u===(s[s.length-1]&l),"invalid mnemonic checksum","mnemonic","[ REDACTED ]"),(0,a.hexlify)(s.slice(0,c/8))}function f(e,t){(0,a.assertArgument)(e.length%4===0&&e.length>=16&&e.length<=32,"invalid entropy size","entropy","[ REDACTED ]"),null==t&&(t=i.LangEn.wordlist());const n=[0];let s=11;for(let r=0;r<e.length;r++)s>8?(n[n.length-1]<<=8,n[n.length-1]|=e[r],s-=8):(n[n.length-1]<<=s,n[n.length-1]|=e[r]>>8-s,n.push(e[r]&((1<<8-s)-1&255)),s+=3);const f=e.length/4,c=parseInt((0,r.sha256)(e).substring(2,4),16)&o(f);return n[n.length-1]<<=f,n[n.length-1]|=c>>8-f,t.join(n.map((e=>t.getWord(e))))}const c={};class l{phrase;password;wordlist;entropy;constructor(e,t,n,r,o){null==r&&(r=""),null==o&&(o=i.LangEn.wordlist()),(0,a.assertPrivate)(e,c,"Mnemonic"),(0,a.defineProperties)(this,{phrase:n,password:r,wordlist:o,entropy:t})}computeSeed(){const e=(0,a.toUtf8Bytes)("mnemonic"+this.password,"NFKD");return(0,r.pbkdf2)((0,a.toUtf8Bytes)(this.phrase,"NFKD"),e,2048,64,"sha512")}static fromPhrase(e,t,n){const r=s(e,n);return e=f((0,a.getBytes)(r),n),new l(c,r,e,t,n)}static fromEntropy(e,t,n){const r=(0,a.getBytes)(e,"entropy"),i=f(r,n);return new l(c,(0,a.hexlify)(r),i,t,n)}static entropyToPhrase(e,t){return f((0,a.getBytes)(e,"entropy"),t)}static phraseToEntropy(e,t){return s(e,t)}static isValidMnemonic(e,t){try{return s(e,t),!0}catch(n){}return!1}}t.Mnemonic=l},18925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spelunk=t.getPassword=t.zpad=t.looseArrayify=void 0;const r=n(91588);function a(e){return"string"!==typeof e||e.startsWith("0x")||(e="0x"+e),(0,r.getBytesCopy)(e)}t.looseArrayify=a,t.zpad=function(e,t){for(e=String(e);e.length<t;)e="0"+e;return e},t.getPassword=function(e){return"string"===typeof e?(0,r.toUtf8Bytes)(e,"NFKC"):(0,r.getBytesCopy)(e)},t.spelunk=function(e,t){const n=t.match(/^([a-z0-9$_.-]*)(:([a-z]+))?(!)?$/i);(0,r.assertArgument)(null!=n,"invalid path","path",t);const i=n[1],o=n[3],s="!"===n[4];let f=e;for(const r of i.toLowerCase().split(".")){if(Array.isArray(f)){if(!r.match(/^[0-9]+$/))break;f=f[parseInt(r)]}else if("object"===typeof f){let e=null;for(const t in f)if(t.toLowerCase()===r){e=f[t];break}f=e}else f=null;if(null==f)break}if((0,r.assertArgument)(!s||null!=f,"missing required value","path",i),o&&null!=f){if("int"===o){if("string"===typeof f&&f.match(/^-?[0-9]+$/))return parseInt(f);if(Number.isSafeInteger(f))return f}if("number"===o&&"string"===typeof f&&f.match(/^-?[0-9.]*$/))return parseFloat(f);if("data"===o&&"string"===typeof f)return a(f);if("array"===o&&Array.isArray(f))return f;if(o===typeof f)return f;(0,r.assertArgument)(!1,`wrong type found for ${o} `,"path",i)}return f}},15261:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wallet=void 0;const r=n(86425),a=n(91588),i=n(175),o=n(46474),s=n(36003),f=n(55911),c=n(30907);function l(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}class u extends i.BaseWallet{constructor(e,t){"string"!==typeof e||e.startsWith("0x")||(e="0x"+e),super("string"===typeof e?new r.SigningKey(e):e,t)}connect(e){return new u(this.signingKey,e)}async encrypt(e,t){const n={address:this.address,privateKey:this.privateKey};return await(0,f.encryptKeystoreJson)(n,e,{progressCallback:t})}encryptSync(e){const t={address:this.address,privateKey:this.privateKey};return(0,f.encryptKeystoreJsonSync)(t,e)}static#Ht(e){if((0,a.assertArgument)(e,"invalid JSON wallet","json","[ REDACTED ]"),"mnemonic"in e&&e.mnemonic&&"en"===e.mnemonic.locale){const t=c.Mnemonic.fromEntropy(e.mnemonic.entropy),n=o.HDNodeWallet.fromMnemonic(t,e.mnemonic.path);if(n.address===e.address&&n.privateKey===e.privateKey)return n;console.log("WARNING: JSON mismatch address/privateKey != mnemonic; fallback onto private key")}const t=new u(e.privateKey);return(0,a.assertArgument)(t.address===e.address,"address/privateKey mismatch","json","[ REDACTED ]"),t}static async fromEncryptedJson(e,t,n){let r=null;return(0,f.isKeystoreJson)(e)?r=await(0,f.decryptKeystoreJson)(e,t,n):(0,s.isCrowdsaleJson)(e)&&(n&&(n(0),await l(0)),r=(0,s.decryptCrowdsaleJson)(e,t),n&&(n(1),await l(0))),u.#Ht(r)}static fromEncryptedJsonSync(e,t){let n=null;return(0,f.isKeystoreJson)(e)?n=(0,f.decryptKeystoreJsonSync)(e,t):(0,s.isCrowdsaleJson)(e)?n=(0,s.decryptCrowdsaleJson)(e,t):(0,a.assertArgument)(!1,"invalid JSON wallet","json","[ REDACTED ]"),u.#Ht(n)}static createRandom(e){const t=o.HDNodeWallet.createRandom();return e?t.connect(e):t}static fromPhrase(e,t){const n=o.HDNodeWallet.fromPhrase(e);return t?n.connect(t):n}}t.Wallet=u},42702:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeBits=void 0;t.decodeBits=function(e,t){const n=(1<<e)-1,r=[];let a=0,i=0,o=0;for(let s=0;s<t.length;s++)for(a=a<<6|")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".indexOf(t[s]),i+=6;i>=e;){const t=a>>i-e;a&=(1<<i-e)-1,i-=e,0===t?o+=n:(r.push(t+o),o=0)}return r}},33570:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeOwl=t.decode=void 0;const r=n(91588),a=" !#$%&'()*+,-./<=>?@[]^_`{|}~",i=/^[a-z]*$/i;function o(e,t){let n=97;return e.reduce(((e,r)=>(r===t?n++:r.match(i)?e.push(String.fromCharCode(n)+r):(n=97,e.push(r)),e)),[])}function s(e,t){for(let i=a.length-1;i>=0;i--)e=e.split(a[i]).join(t.substring(2*i,2*i+2));const n=[],r=e.replace(/(:|([0-9])|([A-Z][a-z]*))/g,((e,t,r,a)=>{if(r)for(let i=parseInt(r);i>=0;i--)n.push(";");else n.push(t.toLowerCase());return""}));if(r)throw new Error(`leftovers: ${JSON.stringify(r)}`);return o(o(n,";"),":")}t.decode=s,t.decodeOwl=function(e){return(0,r.assertArgument)("0"===e[0],"unsupported auwl data","data",e),s(e.substring(1+2*a.length),e.substring(1,1+2*a.length))}},85732:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeOwlA=void 0;const r=n(91588),a=n(42702),i=n(33570);t.decodeOwlA=function(e,t){let n=(0,i.decodeOwl)(e).join(",");return t.split(/,/g).forEach((e=>{const i=e.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);(0,r.assertArgument)(null!==i,"internal error parsing accents","accents",t);let o=0;const s=(0,a.decodeBits)(parseInt(i[3]),i[4]),f=parseInt(i[2]),c=new RegExp(`([${i[1]}])`,"g");n=n.replace(c,((e,t)=>(0===--s[o]&&(t=String.fromCharCode(t.charCodeAt(0),f),o++),t)))})),n.split(",")}},90423:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wordlists=t.WordlistOwlA=t.WordlistOwl=t.LangEn=t.Wordlist=void 0;var r=n(36554);Object.defineProperty(t,"Wordlist",{enumerable:!0,get:function(){return r.Wordlist}});var a=n(36581);Object.defineProperty(t,"LangEn",{enumerable:!0,get:function(){return a.LangEn}});var i=n(39234);Object.defineProperty(t,"WordlistOwl",{enumerable:!0,get:function(){return i.WordlistOwl}});var o=n(17095);Object.defineProperty(t,"WordlistOwlA",{enumerable:!0,get:function(){return o.WordlistOwlA}});var s=n(33810);Object.defineProperty(t,"wordlists",{enumerable:!0,get:function(){return s.wordlists}})},36581:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LangEn=void 0;const r=n(39234);let a=null;class i extends r.WordlistOwl{constructor(){super("en","0erleonalorenseinceregesticitStanvetearctssi#ch2Athck&tneLl0And#Il.yLeOutO=S|S%b/ra@SurdU'0Ce[Cid|CountCu'Hie=IdOu,-Qui*Ro[TT]T%T*[Tu$0AptDD-tD*[Ju,M.UltV<)Vi)0Rob-0FairF%dRaid0A(EEntRee0Ead0MRRp%tS!_rmBumCoholErtI&LLeyLowMo,O}PhaReadySoT Ways0A>urAz(gOngOuntU'd0Aly,Ch%Ci|G G!GryIm$K!Noun)Nu$O` Sw T&naTiqueXietyY1ArtOlogyPe?P!Pro=Ril1ChCt-EaEnaGueMMedM%MyOundR<+Re,Ri=RowTTefa@Ti,Tw%k0KPe@SaultSetSi,SumeThma0H!>OmTa{T&dT.udeTra@0Ct]D.Gu,NtTh%ToTumn0Era+OcadoOid0AkeA*AyEsomeFulKw?d0Is:ByChel%C#D+GL<)Lc#y~MbooN<aNn RRelyRga(R*lSeS-SketTt!3A^AnAutyCau'ComeEfF%eG(Ha=H(dLie=LowLtN^Nef./TrayTt Twe&Y#d3Cyc!DKeNdOlogyRdR`Tt _{AdeAmeAnketA,EakE[IndOodO[omOu'UeUrUsh_rdAtDyIlMbNeNusOkO,Rd R(gRrowSsTtomUn)XY_{etA(AndA[A=EadEezeI{Id+IefIghtIngIskOccoliOk&OnzeOomO` OwnUsh2Bb!DdyD+tFf$oIldLbLkL!tNd!Nk Rd&Rg R,SS(e[SyTt Y Zz:Bba+B(B!CtusGeKe~LmM aMpNN$N)lNdyNn#NoeNvasNy#Pab!P.$Pta(RRb#RdRgoRpetRryRtSeShS(o/!Su$TT$ogT^Teg%yTt!UghtU'Ut]Ve3Il(gL yM|NsusNturyRe$Rta(_irAlkAmp]An+AosApt Ar+A'AtEapE{Ee'EfErryE,I{&IefIldIm}yOi)Oo'R#-U{!UnkUrn0G?Nnam#Rc!Tiz&TyVil_imApArifyAwAyE<ErkEv I{I|IffImbIn-IpO{OgO'O`OudOwnUbUmpU, Ut^_^A,C#utDeFfeeIlInL!@L%LumnMb(eMeMf%tM-Mm#Mp<yNc tNdu@NfirmNg*[N}@Nsid NtrolNv()OkOlPp PyR$ReRnR*@/Tt#U^UntryUp!Ur'Us(V Yo>_{Ad!AftAmA}AshAt AwlAzyEamEd.EekEwI{etImeIspIt-OpO[Ou^OwdUci$UelUi'Umb!Un^UshYY,$2BeLtu*PPbo?dRiousRr|Rta(R=Sh]/omTe3C!:DMa+MpN)Ng R(gShUght WnY3AlBa>BrisCadeCemb CideCl(eC%a>C*a'ErF&'F(eFyG*eLayLiv M<dMi'Ni$Nti,NyP?tP&dPos.P`PutyRi=ScribeS tSignSkSpair/royTailTe@VelopVi)Vo>3AgramAlAm#dAryCeE'lEtFf G.$Gn.yLemmaNn NosaurRe@RtSag*eScov Sea'ShSmi[S%d Splay/<)V tVideV%)Zzy5Ct%Cum|G~Lph(Ma(Na>NkeyN%OrSeUb!Ve_ftAg#AmaA,-AwEamE[IftIllInkIpI=OpUmY2CkMbNeR(g/T^Ty1Arf1Nam-:G G!RlyRnR`Sily/Sy1HoOlogyOnomy0GeItUca>1F%t0G1GhtTh 2BowD E@r-Eg<tEm|Eph<tEvat%I>Se0B?kBodyBra)Er+Ot]PloyPow Pty0Ab!A@DD![D%'EmyErgyF%)Ga+G(eH<)JoyLi,OughR-hRollSu*T Ti*TryVelope1Isode0U$Uip0AA'OdeOs]R%Upt0CapeSayS&)Ta>0Ern$H-s1Id&)IlOkeOl=1A@Amp!Ce[Ch<+C.eCludeCu'Ecu>Erci'Hau,Hib.I!I,ItOt-P<dPe@Pi*Pla(Po'P*[T&dTra0EEbrow:Br-CeCultyDeIntI`~L'MeMilyMousNNcyNtasyRmSh]TT$Th TigueUltV%.e3Atu*Bru?yD $EEdElMa!N)/iv$T^V W3B Ct]EldGu*LeLmLt N$NdNeNg NishReRmR,Sc$ShTT}[X_gAmeAshAtAv%EeIghtIpOatO{O%Ow UidUshY_mCusGIlLd~owOdOtR)Re,R+tRkRtu}RumRw?dSsil/ UndX_gi!AmeEqu|EshI&dIn+OgOntO,OwnOz&U.2ElNNnyRna)RyTu*:D+tInLaxy~ yMePRa+Rba+Rd&Rl-Rm|SSpTeTh U+Ze3N $NiusN*Nt!Nu(e/u*2O,0AntFtGg!Ng RaffeRlVe_dAn)A*A[IdeImp'ObeOomOryO=OwUe_tDde[LdOdO'RillaSpelSsipV nWn_bA)A(AntApeA[Av.yEatE&IdIefItOc yOupOwUnt_rdE[IdeIltIt?N3M:B.IrLfMm M, NdPpyRb%RdRshR=,TVeWkZ?d3AdAl`ArtAvyD+hogIght~oLmetLpNRo3Dd&Gh~NtPRe/%y5BbyCkeyLdLeLiday~owMeNeyOdPeRnRr%R'Sp.$/TelUrV 5BGeM<Mb!M%Nd*dNgryNtRd!RryRtSb<d3Brid:1EOn0EaEntifyLe2N%e4LLeg$L}[0A+Ita>M&'Mu}Pa@Po'Pro=Pul'0ChCludeComeC*a'DexD-a>Do%Du,ryF<tFl-tF%mHa!H .Iti$Je@JuryMa>N Noc|PutQuiryS<eSe@SideSpi*/$lTa@T e,ToVe,V.eVol=3On0L<dOla>Sue0Em1Ory:CketGu?RZz3AlousAns~yWel9BInKeUr}yY5D+I)MpNg!Ni%Nk/:Ng?oo3EnEpT^upY3CkDD}yNdNgdomSsTT^&TeTt&Wi4EeIfeO{Ow:BBelB%Dd DyKeMpNgua+PtopR+T T(UghUndryVaWWnWsu.Y Zy3Ad AfArnA=Ctu*FtGG$G&dIsu*M#NdNg`NsOp?dSs#Tt Vel3ArB tyBr?yC&'FeFtGhtKeMbM.NkOnQuid/Tt!VeZ?d5AdAnB, C$CkG-NelyNgOpTt yUdUn+VeY$5CkyGga+Mb N?N^Xury3R-s:Ch(eDG-G}tIdIlInJ%KeMm$NNa+Nda>NgoNs]Nu$P!Rb!R^Rg(R(eRketRria+SkSs/ T^T i$ThTrixTt XimumZe3AdowAnAsu*AtCh<-D$DiaLodyLtMb M%yNt]NuRcyR+R.RryShSsa+T$Thod3Dd!DnightLk~]M-NdNimumN%Nu>Rac!Rr%S ySs/akeXXedXtu*5Bi!DelDifyMM|N.%NkeyN, N`OnR$ReRn(gSqu.oTh T]T%Unta(U'VeVie5ChFf(LeLtiplySc!SeumShroomS-/Tu$3Self/ yTh:I=MePk(Rrow/yT]Tu*3ArCkEdGati=G!@I` PhewR=/TTw%kUtr$V WsXt3CeGht5B!I'M(eeOd!Rm$R`SeTab!TeTh(gTi)VelW5C!?Mb R'T:K0EyJe@Li+Scu*S =Ta(Vious0CurE<Tob 0Or1FF Fi)T&2L1Ay0DI=Ymp-0It0CeEI#L(eLy1EnEraIn]Po'T]1An+B.Ch?dD D(?yG<I|Ig($Ph<0Tr-h0H 0Tdo%T TputTside0AlEnEr0NN 0Yg&0/ 0O}:CtDd!GeIrLa)LmNdaNelN-N` P RadeR|RkRrotRtySsT^ThTi|TrolTt nU'VeYm|3A)AnutArAs<tL-<NN$tyNcilOp!Pp Rfe@Rm.Rs#T2O}OtoRa'Ys-$0AnoCn-Ctu*E)GGe#~LotNkO} Pe/olT^Zza_)A}tA,-A>AyEa'Ed+U{UgUn+2EmEtIntL?LeLi)NdNyOlPul?Rt]S.]Ssib!/TatoTt yV tyWd W _@i)Ai'Ed-tEf Epa*Es|EttyEv|I)IdeIm?yIntI%.yIs#Iva>IzeOb!mO)[Odu)Of.OgramOje@Omo>OofOp tyOsp O>@OudOvide2Bl-Dd(g~LpL'Mpk(N^PilPpyR^a'R.yRpo'R'ShTZz!3Ramid:99Al.yAntumArt E,]I{ItIzO>:Bb.Cco#CeCkD?DioIlInI'~yMpN^NdomN+PidReTeTh V&WZ%3AdyAlAs#BelBuildC$lCei=CipeC%dCyc!Du)F!@F%mFu'G]G*tGul?Je@LaxLea'LiefLyMa(Memb M(dMo=Nd NewNtOp&PairPeatPla)P%tQui*ScueSemb!Si,Sour)Sp#'SultTi*T*atTurnUn]Ve$ViewW?d2Y`m0BBb#CeChDeD+F!GhtGidNgOtPp!SkTu$V$V 5AdA,BotBu,CketM<)OfOkieOmSeTa>UghUndU>Y$5Bb DeGLeNNwayR$:DDd!D}[FeIlLadLm#L#LtLu>MeMp!NdTisfyToshiU)Usa+VeY1A!AnA*Att E}HemeHoolI&)I[%sOrp]OutRapRe&RiptRub1AAr^As#AtC#dC*tCt]Cur.yEdEkGm|Le@~M(?Ni%N'Nt&)RiesRvi)Ss]Tt!TupV&_dowAftAllowA*EdEllEriffIeldIftI}IpIv O{OeOotOpOrtOuld O=RimpRugUff!Y0Bl(gCkDeE+GhtGnL|Lk~yLv Mil?Mp!N)NgR&/ Tua>XZe1A>Et^IIllInIrtUll0AbAmEepEnd I)IdeIghtImOg<OtOwUsh0AllArtI!OkeOo`0A{AkeApIffOw0ApCc Ci$CkDaFtL?Ldi LidLut]L=Me#eNgOnRryRtUlUndUpUr)U`0A)A*Ati$AwnEakEci$EedEllEndH eI)Id IkeInIr.L.OilOns%O#OrtOtRayReadR(gY0Ua*UeezeUir*l_b!AdiumAffA+AirsAmpAndArtA>AyEakEelEmEpE*oI{IllIngO{Oma^O}OolOryO=Ra>gyReetRikeR#gRugg!Ud|UffUmb!Y!0Bje@Bm.BwayC)[ChDd&Ff G?G+,ItMm NNnyN'tP PplyP*meReRfa)R+Rpri'RroundR=ySpe@/a(1AllowAmpApArmE?EetIftImIngIt^Ord1MbolMptomRup/em:B!Ck!GIlL|LkNkPeR+tSk/eTtooXi3A^Am~NN<tNnisNtRm/Xt_nkAtEmeEnE%yE*EyIngIsOughtReeRi=RowUmbUnd 0CketDeG LtMb MeNyPRedSsueT!5A,BaccoDayDdl EGe` I!tK&MatoM%rowNeNgueNightOlO`PP-Pp!R^RnadoRtoi'SsT$Uri,W?dW WnY_{AdeAff-Ag-A(Ansf ApAshA=lAyEatEeEndI$IbeI{Igg ImIpOphyOub!U{UeUlyUmpetU,U`Y2BeIt]Mb!NaN}lRkeyRnRt!1El=EntyI)InI,O1PeP-$:5Ly5B*lla0Ab!Awa*C!Cov D DoFairFoldHappyIf%mIqueItIv 'KnownLo{TilUsu$Veil1Da>GradeHoldOnP Set1B<Ge0A+EEdEfulE![U$0Il.y:C<tCuumGueLidL!yL=NNishP%Rious/Ult3H-!L=tNd%Ntu*NueRbRifyRs]RyS'lT <3Ab!Br<tCiousCt%yDeoEw~a+Nta+Ol(Rtu$RusSaS.Su$T$Vid5C$I)IdLc<oLumeTeYa+:GeG#ItLk~LnutNtRfa*RmRri%ShSp/eT VeY3Al`Ap#ArA'lA` BDd(gEk&dIrdLcome/T_!AtEatEelEnE*IpIsp 0DeD`FeLd~NNdowNeNgNkNn Nt ReSdomSeShT}[5LfM<Nd OdOlRdRkRldRryR`_pE{E,!I,I>Ong::Rd3Ar~ow9UUngU`:3BraRo9NeO","0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60")}static wordlist(){return null==a&&(a=new i),a}}t.LangEn=i},39234:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WordlistOwl=void 0;const r=n(76439),a=n(91588),i=n(33570),o=n(36554);class s extends o.Wordlist{#n;#Wt;constructor(e,t,n){super(e),this.#n=t,this.#Wt=n,this.#Vt=null}get _data(){return this.#n}_decodeWords(){return(0,i.decodeOwl)(this.#n)}#Vt;#qt(){if(null==this.#Vt){const e=this._decodeWords();if((0,r.id)(e.join("\n")+"\n")!==this.#Wt)throw new Error(`BIP39 Wordlist for ${this.locale} FAILED`);this.#Vt=e}return this.#Vt}getWord(e){const t=this.#qt();return(0,a.assertArgument)(e>=0&&e<t.length,`invalid word index: ${e}`,"index",e),t[e]}getWordIndex(e){return this.#qt().indexOf(e)}}t.WordlistOwl=s},17095:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WordlistOwlA=void 0;const r=n(39234),a=n(85732);class i extends r.WordlistOwl{#Kt;constructor(e,t,n,r){super(e,t,r),this.#Kt=n}get _accent(){return this.#Kt}_decodeWords(){return(0,a.decodeOwlA)(this._data,this._accent)}}t.WordlistOwlA=i},36554:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Wordlist=void 0;const r=n(91588);t.Wordlist=class{locale;constructor(e){(0,r.defineProperties)(this,{locale:e})}split(e){return e.toLowerCase().split(/\s+/g)}join(e){return e.join(" ")}}},33810:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wordlists=void 0;const r=n(36581);t.wordlists={en:r.LangEn.wordlist()}},90333:(e,t,n)=>{"use strict";n.d(t,{R:()=>B});var r=n(5445),a=n(72055),i=n(95847),o=n(76002),s=n(4872);class f extends a.XI{constructor(e){super("address","address",e,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(e,t){let n=s._.dereference(t,"string");try{n=(0,i.K)(n)}catch(r){return this._throwError(r.message,t)}return e.writeValue(n)}decode(e){return(0,i.K)((0,o.m9)(e.readValue(),20))}}var c=n(9704);class l extends a.XI{coder;constructor(e){super(e.name,e.type,"_",e.dynamic),this.coder=e}defaultValue(){return this.coder.defaultValue()}encode(e,t){return this.coder.encode(e,t)}decode(e){return this.coder.decode(e)}}function u(e,t,n){let i=[];if(Array.isArray(n))i=n;else if(n&&"object"===typeof n){let e={};i=t.map((t=>{const a=t.localName;return(0,r.hu)(a,"cannot encode object for signature with missing names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:n}),(0,r.hu)(!e[a],"cannot encode object for signature with duplicate names","INVALID_ARGUMENT",{argument:"values",info:{coder:t},value:n}),e[a]=!0,n[a]}))}else(0,r.en)(!1,"invalid tuple value","tuple",n);(0,r.en)(t.length===i.length,"types/value length mismatch","tuple",n);let o=new a.QV,s=new a.QV,f=[];t.forEach(((e,t)=>{let n=i[t];if(e.dynamic){let t=s.length;e.encode(s,n);let r=o.writeUpdatableValue();f.push((e=>{r(e+t)}))}else e.encode(o,n)})),f.forEach((e=>{e(o.length)}));let c=e.appendWriter(o);return c+=e.appendWriter(s),c}function d(e,t){let n=[],i=[],o=e.subReader(0);return t.forEach((t=>{let a=null;if(t.dynamic){let n=e.readIndex(),i=o.subReader(n);try{a=t.decode(i)}catch(s){if((0,r.VZ)(s,"BUFFER_OVERRUN"))throw s;a=s,a.baseType=t.name,a.name=t.localName,a.type=t.type}}else try{a=t.decode(e)}catch(s){if((0,r.VZ)(s,"BUFFER_OVERRUN"))throw s;a=s,a.baseType=t.name,a.name=t.localName,a.type=t.type}if(void 0==a)throw new Error("investigate");n.push(a),i.push(t.localName||null)})),a.x4.fromItems(n,i)}class p extends a.XI{coder;length;constructor(e,t,n){super("array",e.type+"["+(t>=0?t:"")+"]",n,-1===t||e.dynamic),(0,c.h)(this,{coder:e,length:t})}defaultValue(){const e=this.coder.defaultValue(),t=[];for(let n=0;n<this.length;n++)t.push(e);return t}encode(e,t){const n=s._.dereference(t,"array");Array.isArray(n)||this._throwError("expected array value",n);let a=this.length;-1===a&&(a=n.length,e.writeValue(n.length)),(0,r.fG)(n.length,a,"coder array"+(this.localName?" "+this.localName:""));let i=[];for(let r=0;r<n.length;r++)i.push(this.coder);return u(e,i,n)}decode(e){let t=this.length;-1===t&&(t=e.readIndex(),(0,r.hu)(t*a.Bx<=e.dataLength,"insufficient data length","BUFFER_OVERRUN",{buffer:e.bytes,offset:t*a.Bx,length:e.dataLength}));let n=[];for(let r=0;r<t;r++)n.push(new l(this.coder));return d(e,n)}}class h extends a.XI{constructor(e){super("bool","bool",e,!1)}defaultValue(){return!1}encode(e,t){const n=s._.dereference(t,"bool");return e.writeValue(n?1:0)}decode(e){return!!e.readValue()}}var b=n(91536);class y extends a.XI{constructor(e,t){super(e,e,t,!0)}defaultValue(){return"0x"}encode(e,t){t=(0,b.h_)(t);let n=e.writeValue(t.length);return n+=e.writeBytes(t),n}decode(e){return e.readBytes(e.readIndex(),!0)}}class m extends y{constructor(e){super("bytes",e)}decode(e){return(0,b.Dv)(super.decode(e))}}class g extends a.XI{size;constructor(e,t){let n="bytes"+String(e);super(n,n,t,!1),(0,c.h)(this,{size:e},{size:"number"})}defaultValue(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}encode(e,t){let n=(0,b.h_)(s._.dereference(t,this.type));return n.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(n)}decode(e){return(0,b.Dv)(e.readBytes(this.size))}}const v=new Uint8Array([]);class w extends a.XI{constructor(e){super("null","",e,!1)}defaultValue(){return null}encode(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes(v)}decode(e){return e.readBytes(0),null}}const E=BigInt(0),A=BigInt(1),P=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");class _ extends a.XI{size;signed;constructor(e,t,n){const r=(t?"int":"uint")+8*e;super(r,r,n,!1),(0,c.h)(this,{size:e,signed:t},{size:"number",signed:"boolean"})}defaultValue(){return 0}encode(e,t){let n=(0,o.yT)(s._.dereference(t,this.type)),r=(0,o.sS)(P,8*a.Bx);if(this.signed){let e=(0,o.sS)(r,8*this.size-1);(n>e||n<-(e+A))&&this._throwError("value out-of-bounds",t),n=(0,o.$j)(n,8*a.Bx)}else(n<E||n>(0,o.sS)(r,8*this.size))&&this._throwError("value out-of-bounds",t);return e.writeValue(n)}decode(e){let t=(0,o.sS)(e.readValue(),8*this.size);return this.signed&&(t=(0,o._Y)(t,8*this.size)),t}}var T=n(96165);class k extends y{constructor(e){super("string",e)}defaultValue(){return""}encode(e,t){return super.encode(e,(0,T.Y0)(s._.dereference(t,"string")))}decode(e){return(0,T.ZN)(super.decode(e))}}class C extends a.XI{coders;constructor(e,t){let n=!1;const r=[];e.forEach((e=>{e.dynamic&&(n=!0),r.push(e.type)}));super("tuple","tuple("+r.join(",")+")",t,n),(0,c.h)(this,{coders:Object.freeze(e.slice())})}defaultValue(){const e=[];this.coders.forEach((t=>{e.push(t.defaultValue())}));const t=this.coders.reduce(((e,t)=>{const n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});return this.coders.forEach(((n,r)=>{let a=n.localName;a&&1===t[a]&&("length"===a&&(a="_length"),null==e[a]&&(e[a]=e[r]))})),Object.freeze(e)}encode(e,t){const n=s._.dereference(t,"tuple");return u(e,this.coders,n)}decode(e){return d(e,this.coders)}}var x=n(83122);const O=new Map;O.set(0,"GENERIC_PANIC"),O.set(1,"ASSERT_FALSE"),O.set(17,"OVERFLOW"),O.set(18,"DIVIDE_BY_ZERO"),O.set(33,"ENUM_RANGE_ERROR"),O.set(34,"BAD_STORAGE_DATA"),O.set(49,"STACK_UNDERFLOW"),O.set(50,"ARRAY_RANGE_ERROR"),O.set(65,"OUT_OF_MEMORY"),O.set(81,"UNINITIALIZED_FUNCTION_CALL");const S=new RegExp(/^bytes([0-9]*)$/),R=new RegExp(/^(u?int)([0-9]*)$/);let I=null,N=1024;class B{#e(e){if(e.isArray())return new p(this.#e(e.arrayChildren),e.arrayLength,e.name);if(e.isTuple())return new C(e.components.map((e=>this.#e(e))),e.name);switch(e.baseType){case"address":return new f(e.name);case"bool":return new h(e.name);case"string":return new k(e.name);case"bytes":return new m(e.name);case"":return new w(e.name)}let t=e.type.match(R);if(t){let n=parseInt(t[2]||"256");return(0,r.en)(0!==n&&n<=256&&n%8===0,"invalid "+t[1]+" bit length","param",e),new _(n/8,"int"===t[1],e.name)}if(t=e.type.match(S),t){let n=parseInt(t[1]);return(0,r.en)(0!==n&&n<=32,"invalid bytes length","param",e),new g(n,e.name)}(0,r.en)(!1,"invalid type","type",e.type)}getDefaultValue(e){const t=e.map((e=>this.#e(x._R.from(e))));return new C(t,"_").defaultValue()}encode(e,t){(0,r.fG)(t.length,e.length,"types/values length mismatch");const n=e.map((e=>this.#e(x._R.from(e)))),i=new C(n,"_"),o=new a.QV;return i.encode(o,t),o.data}decode(e,t,n){const r=e.map((e=>this.#e(x._R.from(e))));return new C(r,"_").decode(new a.Ej(t,n,N))}static _setDefaultMaxInflation(e){(0,r.en)("number"===typeof e&&Number.isInteger(e),"invalid defaultMaxInflation factor","value",e),N=e}static defaultAbiCoder(){return null==I&&(I=new B),I}static getBuiltinCallException(e,t,n){return function(e,t,n,a){let o="missing revert data",s=null,f=null;if(n){o="execution reverted";const e=(0,b.Pw)(n);if(n=(0,b.Dv)(n),0===e.length)o+=" (no data present; likely require(false) occurred",s="require(false)";else if(e.length%32!==4)o+=" (could not decode reason; invalid data length)";else if("0x08c379a0"===(0,b.Dv)(e.slice(0,4)))try{s=a.decode(["string"],e.slice(4))[0],f={signature:"Error(string)",name:"Error",args:[s]},o+=`: ${JSON.stringify(s)}`}catch(l){o+=" (could not decode reason; invalid string data)"}else if("0x4e487b71"===(0,b.Dv)(e.slice(0,4)))try{const t=Number(a.decode(["uint256"],e.slice(4))[0]);f={signature:"Panic(uint256)",name:"Panic",args:[t]},s=`Panic due to ${O.get(t)||"UNKNOWN"}(${t})`,o+=`: ${s}`}catch(l){o+=" (could not decode panic code)"}else o+=" (unknown custom error)"}const c={to:t.to?(0,i.K)(t.to):null,data:t.data||"0x"};return t.from&&(c.from=(0,i.K)(t.from)),(0,r.wf)(o,"CALL_EXCEPTION",{action:e,data:n,reason:s,transaction:c,invocation:null,revert:f})}(e,t,n,B.defaultAbiCoder())}}},72055:(e,t,n)=>{"use strict";n.d(t,{Bx:()=>s,Ej:()=>y,QV:()=>b,XI:()=>h,x4:()=>d});var r=n(76002),a=n(5445),i=n(91536),o=n(9704);const s=32,f=new Uint8Array(s),c=["then"],l={};function u(e,t){const n=new Error(`deferred error during ABI decoding triggered accessing ${e}`);throw n.error=t,n}class d extends Array{#t;constructor(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=t[0];let i=t[1],o=(t[2]||[]).slice(),s=!0;a!==l&&(i=t,o=[],s=!1),super(i.length),i.forEach(((e,t)=>{this[t]=e}));const f=o.reduce(((e,t)=>("string"===typeof t&&e.set(t,(e.get(t)||0)+1),e)),new Map);if(this.#t=Object.freeze(i.map(((e,t)=>{const n=o[t];return null!=n&&1===f.get(n)?n:null}))),s)return Object.freeze(this),new Proxy(this,{get:(e,t,n)=>{if("string"===typeof t){if(t.match(/^[0-9]+$/)){const n=(0,r.Dx)(t,"%index");if(n<0||n>=this.length)throw new RangeError("out of result range");const a=e[n];return a instanceof Error&&u(`index ${n}`,a),a}if(c.indexOf(t)>=0)return Reflect.get(e,t,n);const a=e[t];if(a instanceof Function)return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return a.apply(this===n?e:this,r)};if(!(t in e))return e.getValue.apply(this===n?e:this,[t])}return Reflect.get(e,t,n)}})}toArray(e){const t=[];return this.forEach(((n,r)=>{n instanceof Error&&u(`index ${r}`,n),e&&n instanceof d&&(n=n.toArray(e)),t.push(n)})),t}toObject(e){return this.#t.reduce(((t,n,r)=>{if((0,a.hu)(null!=n,"value at index ${ index } unnamed","UNSUPPORTED_OPERATION",{operation:"toObject()"}),!(n in t)){let r=this.getValue(n);e&&r instanceof d&&(r=r.toObject(e)),t[n]=r}return t}),{})}slice(e,t){null==e&&(e=0),e<0&&(e+=this.length)<0&&(e=0),null==t&&(t=this.length),t<0&&(t+=this.length)<0&&(t=0),t>this.length&&(t=this.length);const n=[],r=[];for(let a=e;a<t;a++)n.push(this[a]),r.push(this.#t[a]);return new d(l,n,r)}filter(e,t){const n=[],r=[];for(let a=0;a<this.length;a++){const i=this[a];i instanceof Error&&u(`index ${a}`,i),e.call(t,i,a,this)&&(n.push(i),r.push(this.#t[a]))}return new d(l,n,r)}map(e,t){const n=[];for(let r=0;r<this.length;r++){const a=this[r];a instanceof Error&&u(`index ${r}`,a),n.push(e.call(t,a,r,this))}return n}getValue(e){const t=this.#t.indexOf(e);if(-1===t)return;const n=this[t];return n instanceof Error&&u(`property ${JSON.stringify(e)}`,n.error),n}static fromItems(e,t){return new d(l,e,t)}}function p(e){let t=(0,r.ot)(e);return(0,a.hu)(t.length<=s,"value out-of-bounds","BUFFER_OVERRUN",{buffer:t,length:s,offset:t.length}),t.length!==s&&(t=(0,i.h_)((0,i.zo)([f.slice(t.length%s),t]))),t}class h{name;type;localName;dynamic;constructor(e,t,n,r){(0,o.h)(this,{name:e,type:t,localName:n,dynamic:r},{name:"string",type:"string",localName:"string",dynamic:"boolean"})}_throwError(e,t){(0,a.en)(!1,e,this.localName,t)}}class b{#n;#r;constructor(){this.#n=[],this.#r=0}get data(){return(0,i.zo)(this.#n)}get length(){return this.#r}#a(e){return this.#n.push(e),this.#r+=e.length,e.length}appendWriter(e){return this.#a((0,i.h_)(e.data))}writeBytes(e){let t=(0,i.h_)(e);const n=t.length%s;return n&&(t=(0,i.h_)((0,i.zo)([t,f.slice(n)]))),this.#a(t)}writeValue(e){return this.#a(p(e))}writeUpdatableValue(){const e=this.#n.length;return this.#n.push(f),this.#r+=s,t=>{this.#n[e]=p(t)}}}class y{allowLoose;#n;#i;#o;#s;#f;constructor(e,t,n){(0,o.h)(this,{allowLoose:!!t}),this.#n=(0,i.h_)(e),this.#o=0,this.#s=null,this.#f=null!=n?n:1024,this.#i=0}get data(){return(0,i.Dv)(this.#n)}get dataLength(){return this.#n.length}get consumed(){return this.#i}get bytes(){return new Uint8Array(this.#n)}#c(e){if(this.#s)return this.#s.#c(e);this.#o+=e,(0,a.hu)(this.#f<1||this.#o<=this.#f*this.dataLength,`compressed ABI data exceeds inflation ratio of ${this.#f} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`,"BUFFER_OVERRUN",{buffer:(0,i.h_)(this.#n),offset:this.#i,length:e,info:{bytesRead:this.#o,dataLength:this.dataLength}})}#l(e,t,n){let r=Math.ceil(t/s)*s;return this.#i+r>this.#n.length&&(this.allowLoose&&n&&this.#i+t<=this.#n.length?r=t:(0,a.hu)(!1,"data out-of-bounds","BUFFER_OVERRUN",{buffer:(0,i.h_)(this.#n),length:this.#n.length,offset:this.#i+r})),this.#n.slice(this.#i,this.#i+r)}subReader(e){const t=new y(this.#n.slice(this.#i+e),this.allowLoose,this.#f);return t.#s=this,t}readBytes(e,t){let n=this.#l(0,e,!!t);return this.#c(e),this.#i+=n.length,n.slice(0,e)}readValue(){return(0,r.Gh)(this.readBytes(s))}readIndex(){return(0,r.He)(this.readBytes(s))}}},83122:(e,t,n)=>{"use strict";n.d(t,{HY:()=>G,IC:()=>V,QV:()=>q,Xg:()=>K,YW:()=>J,_R:()=>$});var r=n(76002),a=n(5445),i=n(9704),o=n(64193);function s(e){const t=new Set;return e.forEach((e=>t.add(e))),Object.freeze(t)}const f=s("external public payable override".split(" ")),c="constant external internal payable private public pure view override",l=s(c.split(" ")),u="constructor error event fallback function receive struct",d=s(u.split(" ")),p="calldata memory storage payable indexed",h=s(p.split(" ")),b=s([u,p,"tuple returns",c].join(" ").split(" ")),y={"(":"OPEN_PAREN",")":"CLOSE_PAREN","[":"OPEN_BRACKET","]":"CLOSE_BRACKET",",":"COMMA","@":"AT"},m=new RegExp("^(\\s*)"),g=new RegExp("^([0-9]+)"),v=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)"),w=new RegExp("^([a-zA-Z$_][a-zA-Z0-9$_]*)$"),E=new RegExp("^(address|bool|bytes([0-9]*)|string|u?int([0-9]*))$");class A{#i;#u;get offset(){return this.#i}get length(){return this.#u.length-this.#i}constructor(e){this.#i=0,this.#u=e.slice()}clone(){return new A(this.#u)}reset(){this.#i=0}#d(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new A(this.#u.slice(e,t).map((t=>Object.freeze(Object.assign({},t,{match:t.match-e,linkBack:t.linkBack-e,linkNext:t.linkNext-e})))))}popKeyword(e){const t=this.peek();if("KEYWORD"!==t.type||!e.has(t.text))throw new Error(`expected keyword ${t.text}`);return this.pop().text}popType(e){if(this.peek().type!==e){const t=this.peek();throw new Error(`expected ${e}; got ${t.type} ${JSON.stringify(t.text)}`)}return this.pop().text}popParen(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=this.#d(this.#i+1,e.match+1);return this.#i=e.match+1,t}popParams(){const e=this.peek();if("OPEN_PAREN"!==e.type)throw new Error("bad start");const t=[];for(;this.#i<e.match-1;){const e=this.peek().linkNext;t.push(this.#d(this.#i+1,e)),this.#i=e}return this.#i=e.match+1,t}peek(){if(this.#i>=this.#u.length)throw new Error("out-of-bounds");return this.#u[this.#i]}peekKeyword(e){const t=this.peekType("KEYWORD");return null!=t&&e.has(t)?t:null}peekType(e){if(0===this.length)return null;const t=this.peek();return t.type===e?t.text:null}pop(){const e=this.peek();return this.#i++,e}toString(){const e=[];for(let t=this.#i;t<this.#u.length;t++){const n=this.#u[t];e.push(`${n.type}:${n.text}`)}return`<TokenString ${e.join(" ")}>`}}function P(e){const t=[],n=t=>{const n=o<e.length?JSON.stringify(e[o]):"$EOI";throw new Error(`invalid token ${n} at ${o}: ${t}`)};let a=[],i=[],o=0;for(;o<e.length;){let s=e.substring(o),f=s.match(m);f&&(o+=f[1].length,s=e.substring(o));const c={depth:a.length,linkBack:-1,linkNext:-1,match:-1,type:"",text:"",offset:o,value:-1};t.push(c);let l=y[s[0]]||"";if(l){if(c.type=l,c.text=s[0],o++,"OPEN_PAREN"===l)a.push(t.length-1),i.push(t.length-1);else if("CLOSE_PAREN"==l)0===a.length&&n("no matching open bracket"),c.match=a.pop(),t[c.match].match=t.length-1,c.depth--,c.linkBack=i.pop(),t[c.linkBack].linkNext=t.length-1;else if("COMMA"===l)c.linkBack=i.pop(),t[c.linkBack].linkNext=t.length-1,i.push(t.length-1);else if("OPEN_BRACKET"===l)c.type="BRACKET";else if("CLOSE_BRACKET"===l){let e=t.pop().text;if(t.length>0&&"NUMBER"===t[t.length-1].type){const n=t.pop().text;e=n+e,t[t.length-1].value=(0,r.Dx)(n)}if(0===t.length||"BRACKET"!==t[t.length-1].type)throw new Error("missing opening bracket");t[t.length-1].text+=e}}else if(f=s.match(v),f){if(c.text=f[1],o+=c.text.length,b.has(c.text)){c.type="KEYWORD";continue}if(c.text.match(E)){c.type="TYPE";continue}c.type="ID"}else{if(f=s.match(g),!f)throw new Error(`unexpected token ${JSON.stringify(s[0])} at position ${o}`);c.text=f[1],c.type="NUMBER",o+=c.text.length}}return new A(t.map((e=>Object.freeze(e))))}function _(e,t){let n=[];for(const r in t.keys())e.has(r)&&n.push(r);if(n.length>1)throw new Error(`conflicting types: ${n.join(", ")}`)}function T(e,t){if(t.peekKeyword(d)){const n=t.pop().text;if(n!==e)throw new Error(`expected ${e}, got ${n}`)}return t.popType("ID")}function k(e,t){const n=new Set;for(;;){const r=e.peekType("KEYWORD");if(null==r||t&&!t.has(r))break;if(e.pop(),n.has(r))throw new Error(`duplicate keywords: ${JSON.stringify(r)}`);n.add(r)}return Object.freeze(n)}function C(e){let t=k(e,l);return _(t,s("constant payable nonpayable".split(" "))),_(t,s("pure view payable nonpayable".split(" "))),t.has("view")?"view":t.has("pure")?"pure":t.has("payable")?"payable":t.has("nonpayable")?"nonpayable":t.has("constant")?"view":"nonpayable"}function x(e,t){return e.popParams().map((e=>$.from(e,t)))}function O(e){if(e.peekType("AT")){if(e.pop(),e.peekType("NUMBER"))return(0,r.yT)(e.pop().text);throw new Error("invalid gas")}return null}function S(e){if(e.length)throw new Error(`unexpected tokens at offset ${e.offset}: ${e.toString()}`)}const R=new RegExp(/^(.*)\[([0-9]*)\]$/);function I(e){const t=e.match(E);if((0,a.en)(t,"invalid type","type",e),"uint"===e)return"uint256";if("int"===e)return"int256";if(t[2]){const n=parseInt(t[2]);(0,a.en)(0!==n&&n<=32,"invalid bytes length","type",e)}else if(t[3]){const n=parseInt(t[3]);(0,a.en)(0!==n&&n<=256&&n%8===0,"invalid numeric width","type",e)}return e}const N={},B=Symbol.for("_ethers_internal"),j="_ParamTypeInternal",D="_ErrorInternal",L="_EventInternal",M="_ConstructorInternal",U="_FallbackInternal",F="_FunctionInternal",z="_StructInternal";class ${name;type;baseType;indexed;components;arrayLength;arrayChildren;constructor(e,t,n,r,o,s,f,c){if((0,a.NK)(e,N,"ParamType"),Object.defineProperty(this,B,{value:j}),s&&(s=Object.freeze(s.slice())),"array"===r){if(null==f||null==c)throw new Error("")}else if(null!=f||null!=c)throw new Error("");if("tuple"===r){if(null==s)throw new Error("")}else if(null!=s)throw new Error("");(0,i.h)(this,{name:t,type:n,baseType:r,indexed:o,components:s,arrayLength:f,arrayChildren:c})}format(e){if(null==e&&(e="sighash"),"json"===e){const t=this.name||"";if(this.isArray()){const e=JSON.parse(this.arrayChildren.format("json"));return e.name=t,e.type+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`,JSON.stringify(e)}const n={type:"tuple"===this.baseType?"tuple":this.type,name:t};return"boolean"===typeof this.indexed&&(n.indexed=this.indexed),this.isTuple()&&(n.components=this.components.map((t=>JSON.parse(t.format(e))))),JSON.stringify(n)}let t="";return this.isArray()?(t+=this.arrayChildren.format(e),t+=`[${this.arrayLength<0?"":String(this.arrayLength)}]`):this.isTuple()?t+="("+this.components.map((t=>t.format(e))).join("full"===e?", ":",")+")":t+=this.type,"sighash"!==e&&(!0===this.indexed&&(t+=" indexed"),"full"===e&&this.name&&(t+=" "+this.name)),t}isArray(){return"array"===this.baseType}isTuple(){return"tuple"===this.baseType}isIndexable(){return null!=this.indexed}walk(e,t){if(this.isArray()){if(!Array.isArray(e))throw new Error("invalid array value");if(-1!==this.arrayLength&&e.length!==this.arrayLength)throw new Error("array is wrong length");const n=this;return e.map((e=>n.arrayChildren.walk(e,t)))}if(this.isTuple()){if(!Array.isArray(e))throw new Error("invalid tuple value");if(e.length!==this.components.length)throw new Error("array is wrong length");const n=this;return e.map(((e,r)=>n.components[r].walk(e,t)))}return t(this.type,e)}#p(e,t,n,r){if(this.isArray()){if(!Array.isArray(t))throw new Error("invalid array value");if(-1!==this.arrayLength&&t.length!==this.arrayLength)throw new Error("array is wrong length");const a=this.arrayChildren,i=t.slice();return i.forEach(((t,r)=>{a.#p(e,t,n,(e=>{i[r]=e}))})),void r(i)}if(this.isTuple()){const a=this.components;let i;if(Array.isArray(t))i=t.slice();else{if(null==t||"object"!==typeof t)throw new Error("invalid tuple value");i=a.map((e=>{if(!e.name)throw new Error("cannot use object value with unnamed components");if(!(e.name in t))throw new Error(`missing value for component ${e.name}`);return t[e.name]}))}if(i.length!==this.components.length)throw new Error("array is wrong length");return i.forEach(((t,r)=>{a[r].#p(e,t,n,(e=>{i[r]=e}))})),void r(i)}const a=n(this.type,t);a.then?e.push(async function(){r(await a)}()):r(a)}async walkAsync(e,t){const n=[],r=[e];return this.#p(n,e,t,(e=>{r[0]=e})),n.length&&await Promise.all(n),r[0]}static from(e,t){if($.isParamType(e))return e;if("string"===typeof e)try{return $.from(P(e),t)}catch(f){(0,a.en)(!1,"invalid param type","obj",e)}else if(e instanceof A){let n="",r="",a=null;k(e,s(["tuple"])).has("tuple")||e.peekType("OPEN_PAREN")?(r="tuple",a=e.popParams().map((e=>$.from(e))),n=`tuple(${a.map((e=>e.format())).join(",")})`):(n=I(e.popType("TYPE")),r=n);let i=null,o=null;for(;e.length&&e.peekType("BRACKET");){const t=e.pop();i=new $(N,"",n,r,null,a,o,i),o=t.value,n+=t.text,r="array",a=null}let f=null;if(k(e,h).has("indexed")){if(!t)throw new Error("");f=!0}const c=e.peekType("ID")?e.pop().text:"";if(e.length)throw new Error("leftover tokens");return new $(N,c,n,r,f,a,o,i)}const n=e.name;(0,a.en)(!n||"string"===typeof n&&n.match(w),"invalid name","obj.name",n);let r=e.indexed;null!=r&&((0,a.en)(t,"parameter cannot be indexed","obj.indexed",e.indexed),r=!!r);let i=e.type,o=i.match(R);if(o){const t=parseInt(o[2]||"-1"),a=$.from({type:o[1],components:e.components});return new $(N,n||"",i,"array",r,null,t,a)}if("tuple"===i||i.startsWith("tuple(")||i.startsWith("(")){const t=null!=e.components?e.components.map((e=>$.from(e))):null;return new $(N,n||"",i,"tuple",r,t,null,null)}return i=I(e.type),new $(N,n||"",i,i,r,null,null,null)}static isParamType(e){return e&&e[B]===j}}class G{type;inputs;constructor(e,t,n){(0,a.NK)(e,N,"Fragment"),n=Object.freeze(n.slice()),(0,i.h)(this,{type:t,inputs:n})}static from(e){if("string"===typeof e){try{G.from(JSON.parse(e))}catch(t){}return G.from(P(e))}if(e instanceof A){switch(e.peekKeyword(d)){case"constructor":return K.from(e);case"error":return V.from(e);case"event":return q.from(e);case"fallback":case"receive":return Z.from(e);case"function":return J.from(e);case"struct":return Y.from(e)}}else if("object"===typeof e){switch(e.type){case"constructor":return K.from(e);case"error":return V.from(e);case"event":return q.from(e);case"fallback":case"receive":return Z.from(e);case"function":return J.from(e);case"struct":return Y.from(e)}(0,a.hu)(!1,`unsupported type: ${e.type}`,"UNSUPPORTED_OPERATION",{operation:"Fragment.from"})}(0,a.en)(!1,"unsupported frgament object","obj",e)}static isConstructor(e){return K.isFragment(e)}static isError(e){return V.isFragment(e)}static isEvent(e){return q.isFragment(e)}static isFunction(e){return J.isFragment(e)}static isStruct(e){return Y.isFragment(e)}}class H extends G{name;constructor(e,t,n,r){super(e,t,r),(0,a.en)("string"===typeof n&&n.match(w),"invalid identifier","name",n),r=Object.freeze(r.slice()),(0,i.h)(this,{name:n})}}function W(e,t){return"("+t.map((t=>t.format(e))).join("full"===e?", ":",")+")"}class V extends H{constructor(e,t,n){super(e,"error",t,n),Object.defineProperty(this,B,{value:D})}get selector(){return(0,o.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("error"),t.push(this.name+W(e,this.inputs)),t.join(" ")}static from(e){if(V.isFragment(e))return e;if("string"===typeof e)return V.from(P(e));if(e instanceof A){const t=T("error",e),n=x(e);return S(e),new V(N,t,n)}return new V(N,e.name,e.inputs?e.inputs.map($.from):[])}static isFragment(e){return e&&e[B]===D}}class q extends H{anonymous;constructor(e,t,n,r){super(e,"event",t,n),Object.defineProperty(this,B,{value:L}),(0,i.h)(this,{anonymous:r})}get topicHash(){return(0,o.id)(this.format("sighash"))}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("event"),t.push(this.name+W(e,this.inputs)),"sighash"!==e&&this.anonymous&&t.push("anonymous"),t.join(" ")}static getTopicHash(e,t){t=(t||[]).map((e=>$.from(e)));return new q(N,e,t,!1).topicHash}static from(e){if(q.isFragment(e))return e;if("string"===typeof e)try{return q.from(P(e))}catch(t){(0,a.en)(!1,"invalid event fragment","obj",e)}else if(e instanceof A){const t=T("event",e),n=x(e,!0),r=!!k(e,s(["anonymous"])).has("anonymous");return S(e),new q(N,t,n,r)}return new q(N,e.name,e.inputs?e.inputs.map((e=>$.from(e,!0))):[],!!e.anonymous)}static isFragment(e){return e&&e[B]===L}}class K extends G{payable;gas;constructor(e,t,n,r,a){super(e,t,n),Object.defineProperty(this,B,{value:M}),(0,i.h)(this,{payable:r,gas:a})}format(e){if((0,a.hu)(null!=e&&"sighash"!==e,"cannot format a constructor for sighash","UNSUPPORTED_OPERATION",{operation:"format(sighash)"}),"json"===e)return JSON.stringify({type:"constructor",stateMutability:this.payable?"payable":"undefined",payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e))))});const t=[`constructor${W(e,this.inputs)}`];return this.payable&&t.push("payable"),null!=this.gas&&t.push(`@${this.gas.toString()}`),t.join(" ")}static from(e){if(K.isFragment(e))return e;if("string"===typeof e)try{return K.from(P(e))}catch(t){(0,a.en)(!1,"invalid constuctor fragment","obj",e)}else if(e instanceof A){k(e,s(["constructor"]));const t=x(e),n=!!k(e,f).has("payable"),r=O(e);return S(e),new K(N,"constructor",t,n,r)}return new K(N,"constructor",e.inputs?e.inputs.map($.from):[],!!e.payable,null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[B]===M}}class Z extends G{payable;constructor(e,t,n){super(e,"fallback",t),Object.defineProperty(this,B,{value:U}),(0,i.h)(this,{payable:n})}format(e){const t=0===this.inputs.length?"receive":"fallback";if("json"===e){const e=this.payable?"payable":"nonpayable";return JSON.stringify({type:t,stateMutability:e})}return`${t}()${this.payable?" payable":""}`}static from(e){if(Z.isFragment(e))return e;if("string"===typeof e)try{return Z.from(P(e))}catch(t){(0,a.en)(!1,"invalid fallback fragment","obj",e)}else if(e instanceof A){const t=e.toString(),n=e.peekKeyword(s(["fallback","receive"]));(0,a.en)(n,"type must be fallback or receive","obj",t);if("receive"===e.popKeyword(s(["fallback","receive"]))){const t=x(e);return(0,a.en)(0===t.length,"receive cannot have arguments","obj.inputs",t),k(e,s(["payable"])),S(e),new Z(N,[],!0)}let r=x(e);r.length?(0,a.en)(1===r.length&&"bytes"===r[0].type,"invalid fallback inputs","obj.inputs",r.map((e=>e.format("minimal"))).join(", ")):r=[$.from("bytes")];const i=C(e);if((0,a.en)("nonpayable"===i||"payable"===i,"fallback cannot be constants","obj.stateMutability",i),k(e,s(["returns"])).has("returns")){const t=x(e);(0,a.en)(1===t.length&&"bytes"===t[0].type,"invalid fallback outputs","obj.outputs",t.map((e=>e.format("minimal"))).join(", "))}return S(e),new Z(N,r,"payable"===i)}if("receive"===e.type)return new Z(N,[],!0);if("fallback"===e.type){const t=[$.from("bytes")],n="payable"===e.stateMutability;return new Z(N,t,n)}(0,a.en)(!1,"invalid fallback description","obj",e)}static isFragment(e){return e&&e[B]===U}}class J extends H{constant;outputs;stateMutability;payable;gas;constructor(e,t,n,r,a,o){super(e,"function",t,r),Object.defineProperty(this,B,{value:F}),a=Object.freeze(a.slice());const s="view"===n||"pure"===n,f="payable"===n;(0,i.h)(this,{constant:s,gas:o,outputs:a,payable:f,stateMutability:n})}get selector(){return(0,o.id)(this.format("sighash")).substring(0,10)}format(e){if(null==e&&(e="sighash"),"json"===e)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:null!=this.gas?this.gas:void 0,inputs:this.inputs.map((t=>JSON.parse(t.format(e)))),outputs:this.outputs.map((t=>JSON.parse(t.format(e))))});const t=[];return"sighash"!==e&&t.push("function"),t.push(this.name+W(e,this.inputs)),"sighash"!==e&&("nonpayable"!==this.stateMutability&&t.push(this.stateMutability),this.outputs&&this.outputs.length&&(t.push("returns"),t.push(W(e,this.outputs))),null!=this.gas&&t.push(`@${this.gas.toString()}`)),t.join(" ")}static getSelector(e,t){t=(t||[]).map((e=>$.from(e)));return new J(N,e,"view",t,[],null).selector}static from(e){if(J.isFragment(e))return e;if("string"===typeof e)try{return J.from(P(e))}catch(n){(0,a.en)(!1,"invalid function fragment","obj",e)}else if(e instanceof A){const t=T("function",e),n=x(e),r=C(e);let a=[];k(e,s(["returns"])).has("returns")&&(a=x(e));const i=O(e);return S(e),new J(N,t,r,n,a,i)}let t=e.stateMutability;return null==t&&(t="payable","boolean"===typeof e.constant?(t="view",e.constant||(t="payable","boolean"!==typeof e.payable||e.payable||(t="nonpayable"))):"boolean"!==typeof e.payable||e.payable||(t="nonpayable")),new J(N,e.name,t,e.inputs?e.inputs.map($.from):[],e.outputs?e.outputs.map($.from):[],null!=e.gas?e.gas:null)}static isFragment(e){return e&&e[B]===F}}class Y extends H{constructor(e,t,n){super(e,"struct",t,n),Object.defineProperty(this,B,{value:z})}format(){throw new Error("@TODO")}static from(e){if("string"===typeof e)try{return Y.from(P(e))}catch(t){(0,a.en)(!1,"invalid struct fragment","obj",e)}else if(e instanceof A){const t=T("struct",e),n=x(e);return S(e),new Y(N,t,n)}return new Y(N,e.name,e.inputs?e.inputs.map($.from):[])}static isFragment(e){return e&&e[B]===z}}},27482:(e,t,n)=>{"use strict";n.d(t,{vU:()=>v});var r=n(20451),a=n(64193),i=n(9704),o=n(5445),s=n(91536),f=n(76002),c=n(90333),l=n(72055),u=n(83122),d=n(4872);class p{fragment;name;signature;topic;args;constructor(e,t,n){const r=e.name,a=e.format();(0,i.h)(this,{fragment:e,name:r,signature:a,topic:t,args:n})}}class h{fragment;name;args;signature;selector;value;constructor(e,t,n,r){const a=e.name,o=e.format();(0,i.h)(this,{fragment:e,name:a,args:n,signature:o,selector:t,value:r})}}class b{fragment;name;args;signature;selector;constructor(e,t,n){const r=e.name,a=e.format();(0,i.h)(this,{fragment:e,name:r,args:n,signature:a,selector:t})}}class y{hash;_isIndexed;static isIndexed(e){return!(!e||!e._isIndexed)}constructor(e){(0,i.h)(this,{hash:e,_isIndexed:!0})}}const m={0:"generic panic",1:"assert(false)",17:"arithmetic overflow",18:"division or modulo by zero",33:"enum overflow",34:"invalid encoded storage byte array accessed",49:"out-of-bounds array access; popping on an empty array",50:"out-of-bounds access of an array or bytesN",65:"out of memory",81:"uninitialized function"},g={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:e=>`reverted with reason string ${JSON.stringify(e)}`},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"],reason:e=>{let t="unknown panic code";return e>=0&&e<=255&&m[e.toString()]&&(t=m[e.toString()]),`reverted with panic code 0x${e.toString(16)} (${t})`}}};class v{fragments;deploy;fallback;receive;#h;#b;#y;#m;constructor(e){let t=[];t="string"===typeof e?JSON.parse(e):e,this.#y=new Map,this.#h=new Map,this.#b=new Map;const n=[];for(const i of t)try{n.push(u.HY.from(i))}catch(s){console.log(`[Warning] Invalid Fragment ${JSON.stringify(i)}:`,s.message)}(0,i.h)(this,{fragments:Object.freeze(n)});let r=null,a=!1;this.#m=this.getAbiCoder(),this.fragments.forEach(((e,t)=>{let n;switch(e.type){case"constructor":return this.deploy?void console.log("duplicate definition - constructor"):void(0,i.h)(this,{deploy:e});case"fallback":return void(0===e.inputs.length?a=!0:((0,o.en)(!r||e.payable!==r.payable,"conflicting fallback fragments",`fragments[${t}]`,e),r=e,a=r.payable));case"function":n=this.#y;break;case"event":n=this.#b;break;case"error":n=this.#h;break;default:return}const s=e.format();n.has(s)||n.set(s,e)})),this.deploy||(0,i.h)(this,{deploy:u.Xg.from("constructor()")}),(0,i.h)(this,{fallback:r,receive:a})}format(e){const t=e?"minimal":"full";return this.fragments.map((e=>e.format(t)))}formatJson(){const e=this.fragments.map((e=>e.format("json")));return JSON.stringify(e.map((e=>JSON.parse(e))))}getAbiCoder(){return c.R.defaultAbiCoder()}#g(e,t,n){if((0,s.A7)(e)){const t=e.toLowerCase();for(const e of this.#y.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){const r=[];for(const[t,n]of this.#y)t.split("(")[0]===e&&r.push(n);if(t){const e=t.length>0?t[t.length-1]:null;let n=t.length,a=!0;d._.isTyped(e)&&"overrides"===e.type&&(a=!1,n--);for(let t=r.length-1;t>=0;t--){const e=r[t].inputs.length;e===n||a&&e===n-1||r.splice(t,1)}for(let i=r.length-1;i>=0;i--){const e=r[i].inputs;for(let n=0;n<t.length;n++)if(d._.isTyped(t[n])){if(n>=e.length){if("overrides"===t[n].type)continue;r.splice(i,1);break}if(t[n].type!==e[n].baseType){r.splice(i,1);break}}}}if(1===r.length&&t&&t.length!==r[0].inputs.length){const e=t[t.length-1];(null==e||Array.isArray(e)||"object"!==typeof e)&&r.splice(0,1)}if(0===r.length)return null;if(r.length>1&&n){const t=r.map((e=>JSON.stringify(e.format()))).join(", ");(0,o.en)(!1,`ambiguous function description (i.e. matches ${t})`,"key",e)}return r[0]}const r=this.#y.get(u.YW.from(e).format());return r||null}getFunctionName(e){const t=this.#g(e,null,!1);return(0,o.en)(t,"no matching function","key",e),t.name}hasFunction(e){return!!this.#g(e,null,!1)}getFunction(e,t){return this.#g(e,t||null,!0)}forEachFunction(e){const t=Array.from(this.#y.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n<t.length;n++){const r=t[n];e(this.#y.get(r),n)}}#v(e,t,n){if((0,s.A7)(e)){const t=e.toLowerCase();for(const e of this.#b.values())if(t===e.topicHash)return e;return null}if(-1===e.indexOf("(")){const r=[];for(const[t,n]of this.#b)t.split("(")[0]===e&&r.push(n);if(t){for(let e=r.length-1;e>=0;e--)r[e].inputs.length<t.length&&r.splice(e,1);for(let e=r.length-1;e>=0;e--){const n=r[e].inputs;for(let a=0;a<t.length;a++)if(d._.isTyped(t[a])&&t[a].type!==n[a].baseType){r.splice(e,1);break}}}if(0===r.length)return null;if(r.length>1&&n){const t=r.map((e=>JSON.stringify(e.format()))).join(", ");(0,o.en)(!1,`ambiguous event description (i.e. matches ${t})`,"key",e)}return r[0]}const r=this.#b.get(u.QV.from(e).format());return r||null}getEventName(e){const t=this.#v(e,null,!1);return(0,o.en)(t,"no matching event","key",e),t.name}hasEvent(e){return!!this.#v(e,null,!1)}getEvent(e,t){return this.#v(e,t||null,!0)}forEachEvent(e){const t=Array.from(this.#b.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n<t.length;n++){const r=t[n];e(this.#b.get(r),n)}}getError(e,t){if((0,s.A7)(e)){const t=e.toLowerCase();if(g[t])return u.IC.from(g[t].signature);for(const e of this.#h.values())if(t===e.selector)return e;return null}if(-1===e.indexOf("(")){const t=[];for(const[n,r]of this.#h)n.split("(")[0]===e&&t.push(r);if(0===t.length)return"Error"===e?u.IC.from("error Error(string)"):"Panic"===e?u.IC.from("error Panic(uint256)"):null;if(t.length>1){const n=t.map((e=>JSON.stringify(e.format()))).join(", ");(0,o.en)(!1,`ambiguous error description (i.e. ${n})`,"name",e)}return t[0]}if("Error(string)"===(e=u.IC.from(e).format()))return u.IC.from("error Error(string)");if("Panic(uint256)"===e)return u.IC.from("error Panic(uint256)");const n=this.#h.get(e);return n||null}forEachError(e){const t=Array.from(this.#h.keys());t.sort(((e,t)=>e.localeCompare(t)));for(let n=0;n<t.length;n++){const r=t[n];e(this.#h.get(r),n)}}_decodeParams(e,t){return this.#m.decode(e,t)}_encodeParams(e,t){return this.#m.encode(e,t)}encodeDeploy(e){return this._encodeParams(this.deploy.inputs,e||[])}decodeErrorResult(e,t){if("string"===typeof e){const t=this.getError(e);(0,o.en)(t,"unknown error","fragment",e),e=t}return(0,o.en)((0,s.QB)(t,0,4)===e.selector,`data signature does not match error ${e.name}.`,"data",t),this._decodeParams(e.inputs,(0,s.QB)(t,4))}encodeErrorResult(e,t){if("string"===typeof e){const t=this.getError(e);(0,o.en)(t,"unknown error","fragment",e),e=t}return(0,s.zo)([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionData(e,t){if("string"===typeof e){const t=this.getFunction(e);(0,o.en)(t,"unknown function","fragment",e),e=t}return(0,o.en)((0,s.QB)(t,0,4)===e.selector,`data signature does not match function ${e.name}.`,"data",t),this._decodeParams(e.inputs,(0,s.QB)(t,4))}encodeFunctionData(e,t){if("string"===typeof e){const t=this.getFunction(e);(0,o.en)(t,"unknown function","fragment",e),e=t}return(0,s.zo)([e.selector,this._encodeParams(e.inputs,t||[])])}decodeFunctionResult(e,t){if("string"===typeof e){const t=this.getFunction(e);(0,o.en)(t,"unknown function","fragment",e),e=t}let n="invalid length for result data";const r=(0,s.h_)(t);if(r.length%32===0)try{return this.#m.decode(e.outputs,r)}catch(a){n="could not decode result data"}(0,o.hu)(!1,n,"BAD_DATA",{value:(0,s.Dv)(r),info:{method:e.name,signature:e.format()}})}makeError(e,t){const n=(0,s.Pw)(e,"data"),r=c.R.getBuiltinCallException("call",t,n);if(r.message.startsWith("execution reverted (unknown custom error)")){const e=(0,s.Dv)(n.slice(0,4)),t=this.getError(e);if(t)try{const e=this.#m.decode(t.inputs,n.slice(4));r.revert={name:t.name,signature:t.format(),args:e},r.reason=r.revert.signature,r.message=`execution reverted: ${r.reason}`}catch(i){r.message="execution reverted (coult not decode custom error)"}}const a=this.parseTransaction(t);return a&&(r.invocation={method:a.name,signature:a.signature,args:a.args}),r}encodeFunctionResult(e,t){if("string"===typeof e){const t=this.getFunction(e);(0,o.en)(t,"unknown function","fragment",e),e=t}return(0,s.Dv)(this.#m.encode(e.outputs,t||[]))}encodeFilterTopics(e,t){if("string"===typeof e){const t=this.getEvent(e);(0,o.en)(t,"unknown event","eventFragment",e),e=t}(0,o.hu)(t.length<=e.inputs.length,`too many arguments for ${e.format()}`,"UNEXPECTED_ARGUMENT",{count:t.length,expectedCount:e.inputs.length});const n=[];e.anonymous||n.push(e.topicHash);const i=(e,t)=>"string"===e.type?(0,a.id)(t):"bytes"===e.type?(0,r.w)((0,s.Dv)(t)):("bool"===e.type&&"boolean"===typeof t?t=t?"0x01":"0x00":e.type.match(/^u?int/)?t=(0,f.m9)(t):e.type.match(/^bytes/)?t=(0,s.SK)(t,32):"address"===e.type&&this.#m.encode(["address"],[t]),(0,s.U3)((0,s.Dv)(t),32));for(t.forEach(((t,r)=>{const a=e.inputs[r];a.indexed?null==t?n.push(null):"array"===a.baseType||"tuple"===a.baseType?(0,o.en)(!1,"filtering with tuples or arrays not supported","contract."+a.name,t):Array.isArray(t)?n.push(t.map((e=>i(a,e)))):n.push(i(a,t)):(0,o.en)(null==t,"cannot filter non-indexed parameters; must be null","contract."+a.name,t)}));n.length&&null===n[n.length-1];)n.pop();return n}encodeEventLog(e,t){if("string"===typeof e){const t=this.getEvent(e);(0,o.en)(t,"unknown event","eventFragment",e),e=t}const n=[],i=[],s=[];return e.anonymous||n.push(e.topicHash),(0,o.en)(t.length===e.inputs.length,"event arguments/values mismatch","values",t),e.inputs.forEach(((e,o)=>{const f=t[o];if(e.indexed)if("string"===e.type)n.push((0,a.id)(f));else if("bytes"===e.type)n.push((0,r.w)(f));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(this.#m.encode([e.type],[f]))}else i.push(e),s.push(f)})),{data:this.#m.encode(i,s),topics:n}}decodeEventLog(e,t,n){if("string"===typeof e){const t=this.getEvent(e);(0,o.en)(t,"unknown event","eventFragment",e),e=t}if(null!=n&&!e.anonymous){const t=e.topicHash;(0,o.en)((0,s.A7)(n[0],32)&&n[0].toLowerCase()===t,"fragment/topic mismatch","topics[0]",n[0]),n=n.slice(1)}const r=[],a=[],i=[];e.inputs.forEach(((e,t)=>{e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(r.push(u._R.from({type:"bytes32",name:e.name})),i.push(!0)):(r.push(e),i.push(!1)):(a.push(e),i.push(!1))}));const f=null!=n?this.#m.decode(r,(0,s.zo)(n)):null,c=this.#m.decode(a,t,!0),d=[],p=[];let h=0,b=0;return e.inputs.forEach(((e,t)=>{let n=null;if(e.indexed)if(null==f)n=new y(null);else if(i[t])n=new y(f[b++]);else try{n=f[b++]}catch(r){n=r}else try{n=c[h++]}catch(r){n=r}d.push(n),p.push(e.name||null)})),l.x4.fromItems(d,p)}parseTransaction(e){const t=(0,s.Pw)(e.data,"tx.data"),n=(0,f.yT)(null!=e.value?e.value:0,"tx.value"),r=this.getFunction((0,s.Dv)(t.slice(0,4)));if(!r)return null;const a=this.#m.decode(r.inputs,t.slice(4));return new h(r,r.selector,a,n)}parseCallResult(e){throw new Error("@TODO")}parseLog(e){const t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new p(t,t.topicHash,this.decodeEventLog(t,e.data,e.topics))}parseError(e){const t=(0,s.Dv)(e),n=this.getError((0,s.QB)(t,0,4));if(!n)return null;const r=this.#m.decode(n.inputs,(0,s.QB)(t,4));return new b(n,n.selector,r)}static from(e){return e instanceof v?e:"string"===typeof e?new v(JSON.parse(e)):"function"===typeof e.format?new v(e.format("json")):new v(e)}}},4872:(e,t,n)=>{"use strict";n.d(t,{_:()=>c});var r=n(5445),a=n(9704);const i={};function o(e,t){let n=!1;return t<0&&(n=!0,t*=-1),new c(i,`${n?"":"u"}int${t}`,e,{signed:n,width:t})}function s(e,t){return new c(i,`bytes${t||""}`,e,{size:t})}const f=Symbol.for("_ethers_typed");class c{type;value;#w;_typedSymbol;constructor(e,t,n,o){null==o&&(o=null),(0,r.NK)(i,e,"Typed"),(0,a.h)(this,{_typedSymbol:f,type:t,value:n}),this.#w=o,this.format()}format(){if("array"===this.type)throw new Error("");if("dynamicArray"===this.type)throw new Error("");return"tuple"===this.type?`tuple(${this.value.map((e=>e.format())).join(",")})`:this.type}defaultValue(){return 0}minValue(){return 0}maxValue(){return 0}isBigInt(){return!!this.type.match(/^u?int[0-9]+$/)}isData(){return this.type.startsWith("bytes")}isString(){return"string"===this.type}get tupleName(){if("tuple"!==this.type)throw TypeError("not a tuple");return this.#w}get arrayLength(){if("array"!==this.type)throw TypeError("not an array");return!0===this.#w?-1:!1===this.#w?this.value.length:null}static from(e,t){return new c(i,e,t)}static uint8(e){return o(e,8)}static uint16(e){return o(e,16)}static uint24(e){return o(e,24)}static uint32(e){return o(e,32)}static uint40(e){return o(e,40)}static uint48(e){return o(e,48)}static uint56(e){return o(e,56)}static uint64(e){return o(e,64)}static uint72(e){return o(e,72)}static uint80(e){return o(e,80)}static uint88(e){return o(e,88)}static uint96(e){return o(e,96)}static uint104(e){return o(e,104)}static uint112(e){return o(e,112)}static uint120(e){return o(e,120)}static uint128(e){return o(e,128)}static uint136(e){return o(e,136)}static uint144(e){return o(e,144)}static uint152(e){return o(e,152)}static uint160(e){return o(e,160)}static uint168(e){return o(e,168)}static uint176(e){return o(e,176)}static uint184(e){return o(e,184)}static uint192(e){return o(e,192)}static uint200(e){return o(e,200)}static uint208(e){return o(e,208)}static uint216(e){return o(e,216)}static uint224(e){return o(e,224)}static uint232(e){return o(e,232)}static uint240(e){return o(e,240)}static uint248(e){return o(e,248)}static uint256(e){return o(e,256)}static uint(e){return o(e,256)}static int8(e){return o(e,-8)}static int16(e){return o(e,-16)}static int24(e){return o(e,-24)}static int32(e){return o(e,-32)}static int40(e){return o(e,-40)}static int48(e){return o(e,-48)}static int56(e){return o(e,-56)}static int64(e){return o(e,-64)}static int72(e){return o(e,-72)}static int80(e){return o(e,-80)}static int88(e){return o(e,-88)}static int96(e){return o(e,-96)}static int104(e){return o(e,-104)}static int112(e){return o(e,-112)}static int120(e){return o(e,-120)}static int128(e){return o(e,-128)}static int136(e){return o(e,-136)}static int144(e){return o(e,-144)}static int152(e){return o(e,-152)}static int160(e){return o(e,-160)}static int168(e){return o(e,-168)}static int176(e){return o(e,-176)}static int184(e){return o(e,-184)}static int192(e){return o(e,-192)}static int200(e){return o(e,-200)}static int208(e){return o(e,-208)}static int216(e){return o(e,-216)}static int224(e){return o(e,-224)}static int232(e){return o(e,-232)}static int240(e){return o(e,-240)}static int248(e){return o(e,-248)}static int256(e){return o(e,-256)}static int(e){return o(e,-256)}static bytes1(e){return s(e,1)}static bytes2(e){return s(e,2)}static bytes3(e){return s(e,3)}static bytes4(e){return s(e,4)}static bytes5(e){return s(e,5)}static bytes6(e){return s(e,6)}static bytes7(e){return s(e,7)}static bytes8(e){return s(e,8)}static bytes9(e){return s(e,9)}static bytes10(e){return s(e,10)}static bytes11(e){return s(e,11)}static bytes12(e){return s(e,12)}static bytes13(e){return s(e,13)}static bytes14(e){return s(e,14)}static bytes15(e){return s(e,15)}static bytes16(e){return s(e,16)}static bytes17(e){return s(e,17)}static bytes18(e){return s(e,18)}static bytes19(e){return s(e,19)}static bytes20(e){return s(e,20)}static bytes21(e){return s(e,21)}static bytes22(e){return s(e,22)}static bytes23(e){return s(e,23)}static bytes24(e){return s(e,24)}static bytes25(e){return s(e,25)}static bytes26(e){return s(e,26)}static bytes27(e){return s(e,27)}static bytes28(e){return s(e,28)}static bytes29(e){return s(e,29)}static bytes30(e){return s(e,30)}static bytes31(e){return s(e,31)}static bytes32(e){return s(e,32)}static address(e){return new c(i,"address",e)}static bool(e){return new c(i,"bool",!!e)}static bytes(e){return new c(i,"bytes",e)}static string(e){return new c(i,"string",e)}static array(e,t){throw new Error("not implemented yet")}static tuple(e,t){throw new Error("not implemented yet")}static overrides(e){return new c(i,"overrides",Object.assign({},e))}static isTyped(e){return e&&"object"===typeof e&&"_typedSymbol"in e&&e._typedSymbol===f}static dereference(e,t){if(c.isTyped(e)){if(e.type!==t)throw new Error(`invalid type: expecetd ${t}, got ${e.type}`);return e.value}return e}}},95847:(e,t,n)=>{"use strict";n.d(t,{K:()=>p});var r=n(20451),a=n(91536),i=n(5445);const o=BigInt(0),s=BigInt(36);function f(e){const t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let r=0;r<40;r++)n[r]=t[r].charCodeAt(0);const i=(0,a.Pw)((0,r.w)(n));for(let r=0;r<40;r+=2)i[r>>1]>>4>=8&&(t[r]=t[r].toUpperCase()),(15&i[r>>1])>=8&&(t[r+1]=t[r+1].toUpperCase());return"0x"+t.join("")}const c={};for(let h=0;h<10;h++)c[String(h)]=String(h);for(let h=0;h<26;h++)c[String.fromCharCode(65+h)]=String(10+h);const l=15;function u(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((e=>c[e])).join("");for(;t.length>=l;){let e=t.substring(0,l);t=parseInt(e,10)%97+t.substring(e.length)}let n=String(98-parseInt(t,10)%97);for(;n.length<2;)n="0"+n;return n}const d=function(){const e={};for(let t=0;t<36;t++){e["0123456789abcdefghijklmnopqrstuvwxyz"[t]]=BigInt(t)}return e}();function p(e){if((0,i.en)("string"===typeof e,"invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);const t=f(e);return(0,i.en)(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){(0,i.en)(e.substring(2,4)===u(e),"bad icap checksum","address",e);let t=function(e){e=e.toLowerCase();let t=o;for(let n=0;n<e.length;n++)t=t*s+d[e[n]];return t}(e.substring(4)).toString(16);for(;t.length<40;)t="0"+t;return f("0x"+t)}(0,i.en)(!1,"invalid address","address",e)}},72967:(e,t,n)=>{"use strict";n.d(t,{RC:()=>i,UJ:()=>o,ru:()=>f});var r=n(5445),a=n(95847);function i(e){return e&&"function"===typeof e.getAddress}function o(e){try{return(0,a.K)(e),!0}catch(t){}return!1}async function s(e,t){const n=await t;return null!=n&&"0x0000000000000000000000000000000000000000"!==n||((0,r.hu)("string"!==typeof e,"unconfigured name","UNCONFIGURED_NAME",{value:e}),(0,r.en)(!1,"invalid AddressLike value; did not resolve to a value address","target",e)),(0,a.K)(n)}function f(e,t){return"string"===typeof e?e.match(/^0x[0-9a-f]{40}$/i)?(0,a.K)(e):((0,r.hu)(null!=t,"ENS resolution requires a provider","UNSUPPORTED_OPERATION",{operation:"resolveName"}),s(e,t.resolveName(e))):i(e)?s(e,e.getAddress()):e&&"function"===typeof e.then?s(e,e):void(0,r.en)(!1,"unsupported addressable value","target",e)}},7325:(e,t,n)=>{"use strict";n.d(t,{CH:()=>F});var r=n(4872),a=n(27482),i=n(72967),o=n(38977),s=n(9704),f=n(5445),c=n(76002),l=n(91536),u=n(73404);class d extends o.Zb{interface;fragment;args;constructor(e,t,n){super(e,e.provider);const r=t.decodeEventLog(n,e.data,e.topics);(0,s.h)(this,{args:r,fragment:n,interface:t})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}class p extends o.Zb{error;constructor(e,t){super(e,e.provider),(0,s.h)(this,{error:t})}}class h extends o.IX{#A;constructor(e,t,n){super(n,t),this.#A=e}get logs(){return super.logs.map((e=>{const t=e.topics.length?this.#A.getEvent(e.topics[0]):null;if(t)try{return new d(e,this.#A,t)}catch(n){return new p(e,n)}return e}))}}class b extends o.Mw{#A;constructor(e,t,n){super(n,t),this.#A=e}async wait(e,t){const n=await super.wait(e,t);return null==n?null:new h(this.#A,this.provider,n)}}class y extends u.Z{log;constructor(e,t,n,r){super(e,t,n),(0,s.h)(this,{log:r})}async getBlock(){return await this.log.getBlock()}async getTransaction(){return await this.log.getTransaction()}async getTransactionReceipt(){return await this.log.getTransactionReceipt()}}class m extends y{constructor(e,t,n,r,a){super(e,t,n,new d(a,e.interface,r));const i=e.interface.decodeEventLog(r,this.log.data,this.log.topics);(0,s.h)(this,{args:i,fragment:r})}get eventName(){return this.fragment.name}get eventSignature(){return this.fragment.format()}}const g=BigInt(0);function v(e){return e&&"function"===typeof e.call}function w(e){return e&&"function"===typeof e.estimateGas}function E(e){return e&&"function"===typeof e.resolveName}function A(e){return e&&"function"===typeof e.sendTransaction}function P(e){if(null!=e){if(E(e))return e;if(e.provider)return e.provider}}class _{#E;fragment;constructor(e,t,n){if((0,s.h)(this,{fragment:t}),t.inputs.length<n.length)throw new Error("too many arguments");const r=T(e.runner,"resolveName"),a=E(r)?r:null;this.#E=async function(){const r=await Promise.all(t.inputs.map(((e,t)=>null==n[t]?null:e.walkAsync(n[t],((e,t)=>"address"===e?Array.isArray(t)?Promise.all(t.map((e=>(0,i.ru)(e,a)))):(0,i.ru)(t,a):t)))));return e.interface.encodeFilterTopics(t,r)}()}getTopicFilter(){return this.#E}}function T(e,t){return null==e?null:"function"===typeof e[t]?e:e.provider&&"function"===typeof e.provider[t]?e.provider:null}function k(e){return null==e?null:e.provider||null}async function C(e,t){const n=r._.dereference(e,"overrides");(0,f.en)("object"===typeof n,"invalid overrides parameter","overrides",e);const a=(0,o.kK)(n);return(0,f.en)(null==a.to||(t||[]).indexOf("to")>=0,"cannot override to","overrides.to",a.to),(0,f.en)(null==a.data||(t||[]).indexOf("data")>=0,"cannot override data","overrides.data",a.data),a.from&&(a.from=a.from),a}function x(e){const t=async function(t){const n=await C(t,["data"]);n.to=await e.getAddress(),n.from&&(n.from=await(0,i.ru)(n.from,P(e.runner)));const r=e.interface,a=(0,c.yT)(n.value||g,"overrides.value")===g,o="0x"===(n.data||"0x");!r.fallback||r.fallback.payable||!r.receive||o||a||(0,f.en)(!1,"cannot send data to receive or send value to non-payable fallback","overrides",t),(0,f.en)(r.fallback||o,"cannot send data to receive-only contract","overrides.data",n.data);const s=r.receive||r.fallback&&r.fallback.payable;return(0,f.en)(s||a,"cannot send value to non-payable fallback","overrides.value",n.value),(0,f.en)(r.fallback||o,"cannot send data to receive-only contract","overrides.data",n.data),n},n=async function(n){const r=e.runner;(0,f.hu)(A(r),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const a=await r.sendTransaction(await t(n)),i=k(e.runner);return new b(e.interface,i,a)},r=async e=>await n(e);return(0,s.h)(r,{_contract:e,estimateGas:async function(n){const r=T(e.runner,"estimateGas");return(0,f.hu)(w(r),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await r.estimateGas(await t(n))},populateTransaction:t,send:n,staticCall:async function(n){const r=T(e.runner,"call");(0,f.hu)(v(r),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const a=await t(n);try{return await r.call(a)}catch(i){if((0,f.Hl)(i)&&i.data)throw e.interface.makeError(i.data,a);throw i}}}),r}function O(e,t){const n=function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];const i=e.interface.getFunction(t,r);return(0,f.hu)(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),i},a=async function(){for(var t=arguments.length,a=new Array(t),o=0;o<t;o++)a[o]=arguments[o];const f=n(...a);let c={};if(f.inputs.length+1===a.length&&(c=await C(a.pop()),c.from&&(c.from=await(0,i.ru)(c.from,P(e.runner)))),f.inputs.length!==a.length)throw new Error("internal error: fragment inputs doesn't match arguments; should not happen");const l=await async function(e,t,n){const a=T(e,"resolveName"),o=E(a)?a:null;return await Promise.all(t.map(((e,t)=>e.walkAsync(n[t],((e,t)=>(t=r._.dereference(t,e),"address"===e?(0,i.ru)(t,o):t))))))}(e.runner,f.inputs,a);return Object.assign({},c,await(0,s.m)({to:e.getAddress(),data:e.interface.encodeFunctionData(f,l)}))},o=async function(){const e=await l(...arguments);return 1===e.length?e[0]:e},c=async function(){const t=e.runner;(0,f.hu)(A(t),"contract runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const n=await t.sendTransaction(await a(...arguments)),r=k(e.runner);return new b(e.interface,r,n)},l=async function(){const t=T(e.runner,"call");(0,f.hu)(v(t),"contract runner does not support calling","UNSUPPORTED_OPERATION",{operation:"call"});const r=await a(...arguments);let i="0x";try{i=await t.call(r)}catch(s){if((0,f.Hl)(s)&&s.data)throw e.interface.makeError(s.data,r);throw s}const o=n(...arguments);return e.interface.decodeFunctionResult(o,i)},u=async function(){return n(...arguments).constant?await o(...arguments):await c(...arguments)};return(0,s.h)(u,{name:e.interface.getFunctionName(t),_contract:e,_key:t,getFragment:n,estimateGas:async function(){const t=T(e.runner,"estimateGas");return(0,f.hu)(w(t),"contract runner does not support gas estimation","UNSUPPORTED_OPERATION",{operation:"estimateGas"}),await t.estimateGas(await a(...arguments))},populateTransaction:a,send:c,staticCall:o,staticCallResult:l}),Object.defineProperty(u,"fragment",{configurable:!1,enumerable:!0,get:()=>{const n=e.interface.getFunction(t);return(0,f.hu)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),n}}),u}const S=Symbol.for("_ethersInternal_contract"),R=new WeakMap;function I(e){return R.get(e[S])}async function N(e,t){let n,r=null;if(Array.isArray(t)){const r=function(t){if((0,l.A7)(t,32))return t;const n=e.interface.getEvent(t);return(0,f.en)(n,"unknown fragment","name",t),n.topicHash};n=t.map((e=>null==e?null:Array.isArray(e)?e.map(r):r(e)))}else"*"===t?n=[null]:"string"===typeof t?(0,l.A7)(t,32)?n=[t]:(r=e.interface.getEvent(t),(0,f.en)(r,"unknown fragment","event",t),n=[r.topicHash]):(a=t)&&"object"===typeof a&&"getTopicFilter"in a&&"function"===typeof a.getTopicFilter&&a.fragment?n=await t.getTopicFilter():"fragment"in t?(r=t.fragment,n=[r.topicHash]):(0,f.en)(!1,"unknown event name","event",t);var a;n=n.map((e=>{if(null==e)return null;if(Array.isArray(e)){const t=Array.from(new Set(e.map((e=>e.toLowerCase()))).values());return 1===t.length?t[0]:(t.sort(),t)}return e.toLowerCase()}));return{fragment:r,tag:n.map((e=>null==e?"null":Array.isArray(e)?e.join("|"):e)).join("&"),topics:n}}async function B(e,t){const{subs:n}=I(e);return n.get((await N(e,t)).tag)||null}async function j(e,t,n){const r=k(e.runner);(0,f.hu)(r,"contract runner does not support subscribing","UNSUPPORTED_OPERATION",{operation:t});const{fragment:a,tag:i,topics:o}=await N(e,n),{addr:s,subs:c}=I(e);let l=c.get(i);if(!l){const t={address:s||e,topics:o},f=t=>{let r=a;if(null==r)try{r=e.interface.getEvent(t.topics[0])}catch(i){}if(r){const i=r,o=a?e.interface.decodeEventLog(a,t.data,t.topics):[];L(e,n,o,(r=>new m(e,r,n,i,t)))}else L(e,n,[],(r=>new y(e,r,n,t)))};let u=[];l={tag:i,listeners:[],start:()=>{u.length||u.push(r.on(t,f))},stop:async()=>{if(0==u.length)return;let e=u;u=[],await Promise.all(e),r.off(t,f)}},c.set(i,l)}return l}let D=Promise.resolve();async function L(e,t,n,r){try{await D}catch(i){}const a=async function(e,t,n,r){await D;const a=await B(e,t);if(!a)return!1;const o=a.listeners.length;return a.listeners=a.listeners.filter((t=>{let{listener:a,once:o}=t;const s=Array.from(n);r&&s.push(r(o?null:a));try{a.call(e,...s)}catch(i){}return!o})),0===a.listeners.length&&(a.stop(),I(e).subs.delete(a.tag)),o>0}(e,t,n,r);return D=a,await a}const M=["then"];class U{target;interface;runner;filters;[S];fallback;constructor(e,t,n,r){(0,f.en)("string"===typeof e||(0,i.RC)(e),"invalid value for Contract target","target",e),null==n&&(n=null);const o=a.vU.from(t);let c;(0,s.h)(this,{target:e,runner:n,interface:o}),Object.defineProperty(this,S,{value:{}});let u=null,d=null;if(r){const e=k(n);d=new b(this.interface,e,r)}let p=new Map;if("string"===typeof e)if((0,l.A7)(e))u=e,c=Promise.resolve(e);else{const t=T(n,"resolveName");if(!E(t))throw(0,f.wf)("contract runner does not support name resolution","UNSUPPORTED_OPERATION",{operation:"resolveName"});c=t.resolveName(e).then((t=>{if(null==t)throw(0,f.wf)("an ENS name used for a contract target must be correctly configured","UNCONFIGURED_NAME",{value:e});return I(this).addr=t,t}))}else c=e.getAddress().then((e=>{if(null==e)throw new Error("TODO");return I(this).addr=e,e}));var h,y;h=this,y={addrPromise:c,addr:u,deployTx:d,subs:p},R.set(h[S],y);const m=new Proxy({},{get:(e,t,n)=>{if("symbol"===typeof t||M.indexOf(t)>=0)return Reflect.get(e,t,n);try{return this.getEvent(t)}catch(r){if(!(0,f.VZ)(r,"INVALID_ARGUMENT")||"key"!==r.argument)throw r}},has:(e,t)=>M.indexOf(t)>=0?Reflect.has(e,t):Reflect.has(e,t)||this.interface.hasEvent(String(t))});return(0,s.h)(this,{filters:m}),(0,s.h)(this,{fallback:o.receive||o.fallback?x(this):null}),new Proxy(this,{get:(e,t,n)=>{if("symbol"===typeof t||t in e||M.indexOf(t)>=0)return Reflect.get(e,t,n);try{return e.getFunction(t)}catch(r){if(!(0,f.VZ)(r,"INVALID_ARGUMENT")||"key"!==r.argument)throw r}},has:(e,t)=>"symbol"===typeof t||t in e||M.indexOf(t)>=0?Reflect.has(e,t):e.interface.hasFunction(t)})}connect(e){return new U(this.target,this.interface,e)}attach(e){return new U(e,this.interface,this.runner)}async getAddress(){return await I(this).addrPromise}async getDeployedCode(){const e=k(this.runner);(0,f.hu)(e,"runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"getDeployedCode"});const t=await e.getCode(await this.getAddress());return"0x"===t?null:t}async waitForDeployment(){const e=this.deploymentTransaction();if(e)return await e.wait(),this;if(null!=await this.getDeployedCode())return this;const t=k(this.runner);return(0,f.hu)(null!=t,"contract runner does not support .provider","UNSUPPORTED_OPERATION",{operation:"waitForDeployment"}),new Promise(((e,n)=>{const r=async()=>{try{if(null!=await this.getDeployedCode())return e(this);t.once("block",r)}catch(a){n(a)}};r()}))}deploymentTransaction(){return I(this).deployTx}getFunction(e){"string"!==typeof e&&(e=e.format());return O(this,e)}getEvent(e){return"string"!==typeof e&&(e=e.format()),function(e,t){const n=function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];const i=e.interface.getEvent(t,r);return(0,f.hu)(i,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t,args:r}}),i},r=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return new _(e,n(...r),r)};return(0,s.h)(r,{name:e.interface.getEventName(t),_contract:e,_key:t,getFragment:n}),Object.defineProperty(r,"fragment",{configurable:!1,enumerable:!0,get:()=>{const n=e.interface.getEvent(t);return(0,f.hu)(n,"no matching fragment","UNSUPPORTED_OPERATION",{operation:"fragment",info:{key:t}}),n}}),r}(this,e)}async queryTransaction(e){throw new Error("@TODO")}async queryFilter(e,t,n){null==t&&(t=0),null==n&&(n="latest");const{addr:r,addrPromise:a}=I(this),i=r||await a,{fragment:s,topics:c}=await N(this,e),l={address:i,topics:c,fromBlock:t,toBlock:n},u=k(this.runner);return(0,f.hu)(u,"contract runner does not have a provider","UNSUPPORTED_OPERATION",{operation:"queryFilter"}),(await u.getLogs(l)).map((e=>{let t=s;if(null==t)try{t=this.interface.getEvent(e.topics[0])}catch(n){}if(t)try{return new d(e,this.interface,t)}catch(n){return new p(e,n)}return new o.Zb(e,u)}))}async on(e,t){const n=await j(this,"on",e);return n.listeners.push({listener:t,once:!1}),n.start(),this}async once(e,t){const n=await j(this,"once",e);return n.listeners.push({listener:t,once:!0}),n.start(),this}async emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return await L(this,e,n,null)}async listenerCount(e){if(e){const t=await B(this,e);return t?t.listeners.length:0}const{subs:t}=I(this);let n=0;for(const{listeners:r}of t.values())n+=r.length;return n}async listeners(e){if(e){const t=await B(this,e);return t?t.listeners.map((e=>{let{listener:t}=e;return t})):[]}const{subs:t}=I(this);let n=[];for(const{listeners:r}of t.values())n=n.concat(r.map((e=>{let{listener:t}=e;return t})));return n}async off(e,t){const n=await B(this,e);if(!n)return this;if(t){const e=n.listeners.map((e=>{let{listener:t}=e;return t})).indexOf(t);e>=0&&n.listeners.splice(e,1)}return null!=t&&0!==n.listeners.length||(n.stop(),I(this).subs.delete(n.tag)),this}async removeAllListeners(e){if(e){const t=await B(this,e);if(!t)return this;t.stop(),I(this).subs.delete(t.tag)}else{const{subs:e}=I(this);for(const{tag:t,stop:n}of e.values())n(),e.delete(t)}return this}async addListener(e,t){return await this.on(e,t)}async removeListener(e,t){return await this.off(e,t)}static buildClass(e){return class extends U{constructor(t){super(t,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null)}}}static from(e,t,n){null==n&&(n=null);return new this(e,t,n)}}class F extends(function(){return U}()){}},20451:(e,t,n)=>{"use strict";n.d(t,{w:()=>f});var r=n(61089),a=n(91536);let i=!1;const o=function(e){return(0,r.fr)(e)};let s=o;function f(e){const t=(0,a.Pw)(e,"data");return(0,a.Dv)(s(t))}f._=o,f.lock=function(){i=!0},f.register=function(e){if(i)throw new TypeError("keccak256 is locked");s=e},Object.freeze(f)},64193:(e,t,n)=>{"use strict";n.d(t,{id:()=>i});var r=n(20451),a=n(96165);function i(e){return(0,r.w)((0,a.Y0)(e))}},38977:(e,t,n)=>{"use strict";n.d(t,{IX:()=>b,Mw:()=>y,Zb:()=>h,gO:()=>p,jW:()=>u,kK:()=>d});var r=n(9704),a=n(91536),i=n(76002),o=n(5445),s=n(22883);const f=BigInt(0);function c(e){return null==e?null:e}function l(e){return null==e?null:e.toString()}class u{gasPrice;maxFeePerGas;maxPriorityFeePerGas;constructor(e,t,n){(0,r.h)(this,{gasPrice:c(e),maxFeePerGas:c(t),maxPriorityFeePerGas:c(n)})}toJSON(){const{gasPrice:e,maxFeePerGas:t,maxPriorityFeePerGas:n}=this;return{_type:"FeeData",gasPrice:l(e),maxFeePerGas:l(t),maxPriorityFeePerGas:l(n)}}}function d(e){const t={};e.to&&(t.to=e.to),e.from&&(t.from=e.from),e.data&&(t.data=(0,a.Dv)(e.data));const n="chainId,gasLimit,gasPrice,maxFeePerBlobGas,maxFeePerGas,maxPriorityFeePerGas,value".split(/,/);for(const a of n)a in e&&null!=e[a]&&(t[a]=(0,i.yT)(e[a],`request.${a}`));const r="type,nonce".split(/,/);for(const a of r)a in e&&null!=e[a]&&(t[a]=(0,i.Dx)(e[a],`request.${a}`));return e.accessList&&(t.accessList=(0,s.z)(e.accessList)),"blockTag"in e&&(t.blockTag=e.blockTag),"enableCcipRead"in e&&(t.enableCcipRead=!!e.enableCcipRead),"customData"in e&&(t.customData=e.customData),"blobVersionedHashes"in e&&e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes.slice()),"kzg"in e&&(t.kzg=e.kzg),"blobs"in e&&e.blobs&&(t.blobs=e.blobs.map((e=>(0,a.Zq)(e)?(0,a.Dv)(e):Object.assign({},e)))),t}class p{provider;number;hash;timestamp;parentHash;parentBeaconBlockRoot;nonce;difficulty;gasLimit;gasUsed;stateRoot;receiptsRoot;blobGasUsed;excessBlobGas;miner;prevRandao;extraData;baseFeePerGas;#Ne;constructor(e,t){this.#Ne=e.transactions.map((e=>"string"!==typeof e?new y(e,t):e)),(0,r.h)(this,{provider:t,hash:c(e.hash),number:e.number,timestamp:e.timestamp,parentHash:e.parentHash,parentBeaconBlockRoot:e.parentBeaconBlockRoot,nonce:e.nonce,difficulty:e.difficulty,gasLimit:e.gasLimit,gasUsed:e.gasUsed,blobGasUsed:e.blobGasUsed,excessBlobGas:e.excessBlobGas,miner:e.miner,prevRandao:c(e.prevRandao),extraData:e.extraData,baseFeePerGas:c(e.baseFeePerGas),stateRoot:e.stateRoot,receiptsRoot:e.receiptsRoot})}get transactions(){return this.#Ne.map((e=>"string"===typeof e?e:e.hash))}get prefetchedTransactions(){const e=this.#Ne.slice();return 0===e.length?[]:((0,o.hu)("object"===typeof e[0],"transactions were not prefetched with block request","UNSUPPORTED_OPERATION",{operation:"transactionResponses()"}),e)}toJSON(){const{baseFeePerGas:e,difficulty:t,extraData:n,gasLimit:r,gasUsed:a,hash:i,miner:o,prevRandao:s,nonce:f,number:c,parentHash:u,parentBeaconBlockRoot:d,stateRoot:p,receiptsRoot:h,timestamp:b,transactions:y}=this;return{_type:"Block",baseFeePerGas:l(e),difficulty:l(t),extraData:n,gasLimit:l(r),gasUsed:l(a),blobGasUsed:l(this.blobGasUsed),excessBlobGas:l(this.excessBlobGas),hash:i,miner:o,prevRandao:s,nonce:f,number:c,parentHash:u,timestamp:b,parentBeaconBlockRoot:d,stateRoot:p,receiptsRoot:h,transactions:y}}[Symbol.iterator](){let e=0;const t=this.transactions;return{next:()=>e<this.length?{value:t[e++],done:!1}:{value:void 0,done:!0}}}get length(){return this.#Ne.length}get date(){return null==this.timestamp?null:new Date(1e3*this.timestamp)}async getTransaction(e){let t;if("number"===typeof e)t=this.#Ne[e];else{const n=e.toLowerCase();for(const e of this.#Ne){if("string"===typeof e){if(e!==n)continue;t=e;break}if(e.hash!==n){t=e;break}}}if(null==t)throw new Error("no such tx");return"string"===typeof t?await this.provider.getTransaction(t):t}getPrefetchedTransaction(e){const t=this.prefetchedTransactions;if("number"===typeof e)return t[e];e=e.toLowerCase();for(const n of t)if(n.hash===e)return n;(0,o.en)(!1,"no matching transaction","indexOrHash",e)}isMined(){return!!this.hash}isLondon(){return!!this.baseFeePerGas}orphanedEvent(){if(!this.isMined())throw new Error("");return{orphan:"drop-block",hash:(e=this).hash,number:e.number};var e}}class h{provider;transactionHash;blockHash;blockNumber;removed;address;data;topics;index;transactionIndex;constructor(e,t){this.provider=t;const n=Object.freeze(e.topics.slice());(0,r.h)(this,{transactionHash:e.transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,removed:e.removed,address:e.address,data:e.data,topics:n,index:e.index,transactionIndex:e.transactionIndex})}toJSON(){const{address:e,blockHash:t,blockNumber:n,data:r,index:a,removed:i,topics:o,transactionHash:s,transactionIndex:f}=this;return{_type:"log",address:e,blockHash:t,blockNumber:n,data:r,index:a,removed:i,topics:o,transactionHash:s,transactionIndex:f}}async getBlock(){const e=await this.provider.getBlock(this.blockHash);return(0,o.hu)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransaction(){const e=await this.provider.getTransaction(this.transactionHash);return(0,o.hu)(!!e,"failed to find transaction","UNKNOWN_ERROR",{}),e}async getTransactionReceipt(){const e=await this.provider.getTransactionReceipt(this.transactionHash);return(0,o.hu)(!!e,"failed to find transaction receipt","UNKNOWN_ERROR",{}),e}removedEvent(){return{orphan:"drop-log",log:{transactionHash:(e=this).transactionHash,blockHash:e.blockHash,blockNumber:e.blockNumber,address:e.address,data:e.data,topics:Object.freeze(e.topics.slice()),index:e.index}};var e}}class b{provider;to;from;contractAddress;hash;index;blockHash;blockNumber;logsBloom;gasUsed;blobGasUsed;cumulativeGasUsed;gasPrice;blobGasPrice;type;status;root;#Be;constructor(e,t){this.#Be=Object.freeze(e.logs.map((e=>new h(e,t))));let n=f;null!=e.effectiveGasPrice?n=e.effectiveGasPrice:null!=e.gasPrice&&(n=e.gasPrice),(0,r.h)(this,{provider:t,to:e.to,from:e.from,contractAddress:e.contractAddress,hash:e.hash,index:e.index,blockHash:e.blockHash,blockNumber:e.blockNumber,logsBloom:e.logsBloom,gasUsed:e.gasUsed,cumulativeGasUsed:e.cumulativeGasUsed,blobGasUsed:e.blobGasUsed,gasPrice:n,blobGasPrice:e.blobGasPrice,type:e.type,status:e.status,root:e.root})}get logs(){return this.#Be}toJSON(){const{to:e,from:t,contractAddress:n,hash:r,index:a,blockHash:i,blockNumber:o,logsBloom:s,logs:f,status:c,root:u}=this;return{_type:"TransactionReceipt",blockHash:i,blockNumber:o,contractAddress:n,cumulativeGasUsed:l(this.cumulativeGasUsed),from:t,gasPrice:l(this.gasPrice),blobGasUsed:l(this.blobGasUsed),blobGasPrice:l(this.blobGasPrice),gasUsed:l(this.gasUsed),hash:r,index:a,logs:f,logsBloom:s,root:u,status:c,to:e}}get length(){return this.logs.length}[Symbol.iterator](){let e=0;return{next:()=>e<this.length?{value:this.logs[e++],done:!1}:{value:void 0,done:!0}}}get fee(){return this.gasUsed*this.gasPrice}async getBlock(){const e=await this.provider.getBlock(this.blockHash);if(null==e)throw new Error("TODO");return e}async getTransaction(){const e=await this.provider.getTransaction(this.hash);if(null==e)throw new Error("TODO");return e}async getResult(){return await this.provider.getTransactionResult(this.hash)}async confirmations(){return await this.provider.getBlockNumber()-this.blockNumber+1}removedEvent(){return g(this)}reorderedEvent(e){return(0,o.hu)(!e||e.isMined(),"unmined 'other' transction cannot be orphaned","UNSUPPORTED_OPERATION",{operation:"reorderedEvent(other)"}),m(this,e)}}class y{provider;blockNumber;blockHash;index;hash;type;to;from;nonce;gasLimit;gasPrice;maxPriorityFeePerGas;maxFeePerGas;maxFeePerBlobGas;data;value;chainId;signature;accessList;blobVersionedHashes;#je;constructor(e,t){this.provider=t,this.blockNumber=null!=e.blockNumber?e.blockNumber:null,this.blockHash=null!=e.blockHash?e.blockHash:null,this.hash=e.hash,this.index=e.index,this.type=e.type,this.from=e.from,this.to=e.to||null,this.gasLimit=e.gasLimit,this.nonce=e.nonce,this.data=e.data,this.value=e.value,this.gasPrice=e.gasPrice,this.maxPriorityFeePerGas=null!=e.maxPriorityFeePerGas?e.maxPriorityFeePerGas:null,this.maxFeePerGas=null!=e.maxFeePerGas?e.maxFeePerGas:null,this.maxFeePerBlobGas=null!=e.maxFeePerBlobGas?e.maxFeePerBlobGas:null,this.chainId=e.chainId,this.signature=e.signature,this.accessList=null!=e.accessList?e.accessList:null,this.blobVersionedHashes=null!=e.blobVersionedHashes?e.blobVersionedHashes:null,this.#je=-1}toJSON(){const{blockNumber:e,blockHash:t,index:n,hash:r,type:a,to:i,from:o,nonce:s,data:f,signature:c,accessList:u,blobVersionedHashes:d}=this;return{_type:"TransactionResponse",accessList:u,blockNumber:e,blockHash:t,blobVersionedHashes:d,chainId:l(this.chainId),data:f,from:o,gasLimit:l(this.gasLimit),gasPrice:l(this.gasPrice),hash:r,maxFeePerGas:l(this.maxFeePerGas),maxPriorityFeePerGas:l(this.maxPriorityFeePerGas),maxFeePerBlobGas:l(this.maxFeePerBlobGas),nonce:s,signature:c,to:i,index:n,type:a,value:l(this.value)}}async getBlock(){let e=this.blockNumber;if(null==e){const t=await this.getTransaction();t&&(e=t.blockNumber)}if(null==e)return null;const t=this.provider.getBlock(e);if(null==t)throw new Error("TODO");return t}async getTransaction(){return this.provider.getTransaction(this.hash)}async confirmations(){if(null==this.blockNumber){const{tx:e,blockNumber:t}=await(0,r.m)({tx:this.getTransaction(),blockNumber:this.provider.getBlockNumber()});return null==e||null==e.blockNumber?0:t-e.blockNumber+1}return await this.provider.getBlockNumber()-this.blockNumber+1}async wait(e,t){const n=null==e?1:e,a=null==t?0:t;let i=this.#je,s=-1,c=-1===i;const l=async()=>{if(c)return null;const{blockNumber:e,nonce:t}=await(0,r.m)({blockNumber:this.provider.getBlockNumber(),nonce:this.provider.getTransactionCount(this.from)});if(t<this.nonce)return void(i=e);if(c)return null;const a=await this.getTransaction();if(!a||null==a.blockNumber)for(-1===s&&(s=i-3,s<this.#je&&(s=this.#je));s<=e;){if(c)return null;const t=await this.provider.getBlock(s,!0);if(null==t)return;for(const e of t)if(e===this.hash)return;for(let r=0;r<t.length;r++){const a=await t.getTransaction(r);if(a.from===this.from&&a.nonce===this.nonce){if(c)return null;const t=await this.provider.getTransactionReceipt(a.hash);if(null==t)return;if(e-t.blockNumber+1<n)return;let r="replaced";a.data===this.data&&a.to===this.to&&a.value===this.value?r="repriced":"0x"===a.data&&a.from===a.to&&a.value===f&&(r="cancelled"),(0,o.hu)(!1,"transaction was replaced","TRANSACTION_REPLACED",{cancelled:"replaced"===r||"cancelled"===r,reason:r,replacement:a.replaceableTransaction(i),hash:a.hash,receipt:t})}}s++}},u=e=>{if(null==e||0!==e.status)return e;(0,o.hu)(!1,"transaction execution reverted","CALL_EXCEPTION",{action:"sendTransaction",data:null,reason:null,invocation:null,revert:null,transaction:{to:e.to,from:e.from,data:""},receipt:e})},d=await this.provider.getTransactionReceipt(this.hash);if(0===n)return u(d);if(d){if(await d.confirmations()>=n)return u(d)}else if(await l(),0===n)return null;const p=new Promise(((e,t)=>{const r=[],s=()=>{r.forEach((e=>e()))};if(r.push((()=>{c=!0})),a>0){const e=setTimeout((()=>{s(),t((0,o.wf)("wait for transaction timeout","TIMEOUT"))}),a);r.push((()=>{clearTimeout(e)}))}const f=async r=>{if(await r.confirmations()>=n){s();try{e(u(r))}catch(a){t(a)}}};if(r.push((()=>{this.provider.off(this.hash,f)})),this.provider.on(this.hash,f),i>=0){const e=async()=>{try{await l()}catch(n){if((0,o.VZ)(n,"TRANSACTION_REPLACED"))return s(),void t(n)}c||this.provider.once("block",e)};r.push((()=>{this.provider.off("block",e)})),this.provider.once("block",e)}}));return await p}isMined(){return null!=this.blockHash}isLegacy(){return 0===this.type}isBerlin(){return 1===this.type}isLondon(){return 2===this.type}isCancun(){return 3===this.type}removedEvent(){return(0,o.hu)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),g(this)}reorderedEvent(e){return(0,o.hu)(this.isMined(),"unmined transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),(0,o.hu)(!e||e.isMined(),"unmined 'other' transaction canot be orphaned","UNSUPPORTED_OPERATION",{operation:"removeEvent()"}),m(this,e)}replaceableTransaction(e){(0,o.en)(Number.isInteger(e)&&e>=0,"invalid startBlock","startBlock",e);const t=new y(this,this.provider);return t.#je=e,t}}function m(e,t){return{orphan:"reorder-transaction",tx:e,other:t}}function g(e){return{orphan:"drop-transaction",tx:e}}},22883:(e,t,n)=>{"use strict";n.d(t,{z:()=>s});var r=n(95847),a=n(5445),i=n(91536);function o(e,t){return{address:(0,r.K)(e),storageKeys:t.map(((e,t)=>((0,a.en)((0,i.A7)(e,32),"invalid slot",`storageKeys[${t}]`,e),e.toLowerCase())))}}function s(e){if(Array.isArray(e))return e.map(((t,n)=>Array.isArray(t)?((0,a.en)(2===t.length,"invalid slot set",`value[${n}]`,t),o(t[0],t[1])):((0,a.en)(null!=t&&"object"===typeof t,"invalid address-slot set","value",e),o(t.address,t.storageKeys))));(0,a.en)(null!=e&&"object"===typeof e,"invalid access list","value",e);const t=Object.keys(e).map((t=>{const n=e[t].reduce(((e,t)=>(e[t]=!0,e)),{});return o(t,Object.keys(n).sort())}));return t.sort(((e,t)=>e.address.localeCompare(t.address))),t}},91536:(e,t,n)=>{"use strict";n.d(t,{A7:()=>s,Dv:()=>l,M5:()=>d,Pw:()=>i,QB:()=>p,SK:()=>y,U3:()=>b,Zq:()=>f,h_:()=>o,zo:()=>u});var r=n(5445);function a(e,t,n){if(e instanceof Uint8Array)return n?new Uint8Array(e):e;if("string"===typeof e&&e.match(/^0x([0-9a-f][0-9a-f])*$/i)){const t=new Uint8Array((e.length-2)/2);let n=2;for(let r=0;r<t.length;r++)t[r]=parseInt(e.substring(n,n+2),16),n+=2;return t}(0,r.en)(!1,"invalid BytesLike value",t||"value",e)}function i(e,t){return a(e,t,!1)}function o(e,t){return a(e,t,!0)}function s(e,t){return!("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(("number"!==typeof t||e.length===2+2*t)&&(!0!==t||e.length%2===0))}function f(e){return s(e,!0)||e instanceof Uint8Array}const c="0123456789abcdef";function l(e){const t=i(e);let n="0x";for(let r=0;r<t.length;r++){const e=t[r];n+=c[(240&e)>>4]+c[15&e]}return n}function u(e){return"0x"+e.map((e=>l(e).substring(2))).join("")}function d(e){return s(e,!0)?(e.length-2)/2:i(e).length}function p(e,t,n){const a=i(e);return null!=n&&n>a.length&&(0,r.hu)(!1,"cannot slice beyond data bounds","BUFFER_OVERRUN",{buffer:a,length:a.length,offset:n}),l(a.slice(null==t?0:t,null==n?a.length:n))}function h(e,t,n){const a=i(e);(0,r.hu)(t>=a.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(a),length:t,offset:t+1});const o=new Uint8Array(t);return o.fill(0),n?o.set(a,t-a.length):o.set(a,0),l(o)}function b(e,t){return h(e,t,!0)}function y(e,t){return h(e,t,!1)}},5445:(e,t,n)=>{"use strict";n.d(t,{hu:()=>c,en:()=>l,fG:()=>u,fA:()=>p,NK:()=>h,Hl:()=>s,VZ:()=>o,wf:()=>f});const r="6.12.0";var a=n(9704);function i(e){if(null==e)return"null";if(Array.isArray(e))return"[ "+e.map(i).join(", ")+" ]";if(e instanceof Uint8Array){const t="0123456789abcdef";let n="0x";for(let r=0;r<e.length;r++)n+=t[e[r]>>4],n+=t[15&e[r]];return n}if("object"===typeof e&&"function"===typeof e.toJSON)return i(e.toJSON());switch(typeof e){case"boolean":case"symbol":case"number":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{const t=Object.keys(e);return t.sort(),"{ "+t.map((t=>`${i(t)}: ${i(e[t])}`)).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function o(e,t){return e&&e.code===t}function s(e){return o(e,"CALL_EXCEPTION")}function f(e,t,n){let o,s=e;{const a=[];if(n){if("message"in n||"code"in n||"name"in n)throw new Error(`value will overwrite populated values: ${i(n)}`);for(const e in n){if("shortMessage"===e)continue;const t=n[e];a.push(e+"="+i(t))}}a.push(`code=${t}`),a.push(`version=${r}`),a.length&&(e+=" ("+a.join(", ")+")")}switch(t){case"INVALID_ARGUMENT":o=new TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":o=new RangeError(e);break;default:o=new Error(e)}return(0,a.h)(o,{code:t}),n&&Object.assign(o,n),null==o.shortMessage&&(0,a.h)(o,{shortMessage:s}),o}function c(e,t,n,r){if(!e)throw f(t,n,r)}function l(e,t,n,r){c(e,t,"INVALID_ARGUMENT",{argument:n,value:r})}function u(e,t,n){null==n&&(n=""),n&&(n=": "+n),c(e>=t,"missing arguemnt"+n,"MISSING_ARGUMENT",{count:e,expectedCount:t}),c(e<=t,"too many arguments"+n,"UNEXPECTED_ARGUMENT",{count:e,expectedCount:t})}const d=["NFD","NFC","NFKD","NFKC"].reduce(((e,t)=>{try{if("test"!=="test".normalize(t))throw new Error("bad");if("NFD"===t){const e=String.fromCharCode(233).normalize("NFD");if(e!==String.fromCharCode(101,769))throw new Error("broken")}e.push(t)}catch(n){}return e}),[]);function p(e){c(d.indexOf(e)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:e}})}function h(e,t,n){if(null==n&&(n=""),e!==t){let e=n,t="new";n&&(e+=".",t+=" "+n),c(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}}},73404:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(9704);class a{filter;emitter;#ut;constructor(e,t,n){this.#ut=t,(0,r.h)(this,{emitter:e,filter:n})}async removeListener(){null!=this.#ut&&await this.emitter.off(this.filter,this.#ut)}}},76002:(e,t,n)=>{"use strict";n.d(t,{$j:()=>c,B4:()=>v,Dx:()=>b,Gh:()=>h,He:()=>y,_Y:()=>f,m9:()=>m,ot:()=>g,sS:()=>l,yT:()=>u});var r=n(91536),a=n(5445);const i=BigInt(0),o=BigInt(1),s=9007199254740991;function f(e,t){const n=d(e,"value"),r=BigInt(b(t,"width"));if((0,a.hu)(n>>r===i,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:e}),n>>r-o){return-((~n&(o<<r)-o)+o)}return n}function c(e,t){let n=u(e,"value");const r=BigInt(b(t,"width")),s=o<<r-o;if(n<i){n=-n,(0,a.hu)(n<=s,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e});return(~n&(o<<r)-o)+o}return(0,a.hu)(n<s,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:e}),n}function l(e,t){const n=d(e,"value"),r=BigInt(b(t,"bits"));return n&(o<<r)-o}function u(e,t){switch(typeof e){case"bigint":return e;case"number":return(0,a.en)(Number.isInteger(e),"underflow",t||"value",e),(0,a.en)(e>=-s&&e<=s,"overflow",t||"value",e),BigInt(e);case"string":try{if(""===e)throw new Error("empty string");return"-"===e[0]&&"-"!==e[1]?-BigInt(e.substring(1)):BigInt(e)}catch(n){(0,a.en)(!1,`invalid BigNumberish string: ${n.message}`,t||"value",e)}}(0,a.en)(!1,"invalid BigNumberish value",t||"value",e)}function d(e,t){const n=u(e,t);return(0,a.hu)(n>=i,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),n}const p="0123456789abcdef";function h(e){if(e instanceof Uint8Array){let t="0x0";for(const n of e)t+=p[n>>4],t+=p[15&n];return BigInt(t)}return u(e)}function b(e,t){switch(typeof e){case"bigint":return(0,a.en)(e>=-s&&e<=s,"overflow",t||"value",e),Number(e);case"number":return(0,a.en)(Number.isInteger(e),"underflow",t||"value",e),(0,a.en)(e>=-s&&e<=s,"overflow",t||"value",e),e;case"string":try{if(""===e)throw new Error("empty string");return b(BigInt(e),t)}catch(n){(0,a.en)(!1,`invalid numeric string: ${n.message}`,t||"value",e)}}(0,a.en)(!1,"invalid numeric value",t||"value",e)}function y(e){return b(h(e))}function m(e,t){let n=d(e,"value").toString(16);if(null==t)n.length%2&&(n="0"+n);else{const r=b(t,"width");for((0,a.hu)(2*r>=n.length,`value exceeds width (${r} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});n.length<2*r;)n="0"+n}return"0x"+n}function g(e){const t=d(e,"value");if(t===i)return new Uint8Array([]);let n=t.toString(16);n.length%2&&(n="0"+n);const r=new Uint8Array(n.length/2);for(let a=0;a<r.length;a++){const e=2*a;r[a]=parseInt(n.substring(e,e+2),16)}return r}function v(e){let t=(0,r.Dv)((0,r.Zq)(e)?e:g(e)).substring(2);for(;t.startsWith("0");)t=t.substring(1);return""===t&&(t="0"),"0x"+t}},9704:(e,t,n)=>{"use strict";function r(e,t,n){const r=t.split("|").map((e=>e.trim()));for(let i=0;i<r.length;i++)switch(t){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof e===t)return}const a=new Error(`invalid value for type ${t}`);throw a.code="INVALID_ARGUMENT",a.argument=`value.${n}`,a.value=e,a}async function a(e){const t=Object.keys(e);return(await Promise.all(t.map((t=>Promise.resolve(e[t]))))).reduce(((e,n,r)=>(e[t[r]]=n,e)),{})}function i(e,t,n){for(let a in t){let i=t[a];const o=n?n[a]:null;o&&r(i,o,a),Object.defineProperty(e,a,{enumerable:!0,value:i,writable:!1})}}n.d(t,{h:()=>i,m:()=>a})},46595:(e,t,n)=>{"use strict";n.d(t,{dF:()=>w,bM:()=>g,fi:()=>E,vz:()=>v});var r=n(5445),a=n(91536),i=n(76002),o=n(9704);const s=BigInt(-1),f=BigInt(0),c=BigInt(1),l=BigInt(5),u={};let d="0000";for(;d.length<80;)d+=d;function p(e){let t=d;for(;t.length<e;)t+=t;return BigInt("1"+t.substring(0,e))}function h(e,t,n){const a=BigInt(t.width);if(t.signed){const t=c<<a-c;(0,r.hu)(null==n||e>=-t&&e<t,"overflow","NUMERIC_FAULT",{operation:n,fault:"overflow",value:e}),e=e>f?(0,i._Y)((0,i.sS)(e,a),a):-(0,i._Y)((0,i.sS)(-e,a),a)}else{const t=c<<a;(0,r.hu)(null==n||e>=0&&e<t,"overflow","NUMERIC_FAULT",{operation:n,fault:"overflow",value:e}),e=(e%t+t)%t&t-c}return e}function b(e){"number"===typeof e&&(e=`fixed128x${e}`);let t=!0,n=128,a=18;if("string"===typeof e)if("fixed"===e);else if("ufixed"===e)t=!1;else{const i=e.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);(0,r.en)(i,"invalid fixed format","format",e),t="u"!==i[1],n=parseInt(i[2]),a=parseInt(i[3])}else if(e){const i=e,o=(e,t,n)=>null==i[e]?n:((0,r.en)(typeof i[e]===t,"invalid fixed format ("+e+" not "+t+")","format."+e,i[e]),i[e]);t=o("signed","boolean",t),n=o("width","number",n),a=o("decimals","number",a)}(0,r.en)(n%8===0,"invalid FixedNumber width (not byte aligned)","format.width",n),(0,r.en)(a<=80,"invalid FixedNumber decimals (too large)","format.decimals",a);return{signed:t,width:n,decimals:a,name:(t?"":"u")+"fixed"+String(n)+"x"+String(a)}}class y{format;#It;#Nt;#Bt;_value;constructor(e,t,n){(0,r.NK)(e,u,"FixedNumber"),this.#Nt=t,this.#It=n;const a=function(e,t){let n="";e<f&&(n="-",e*=s);let r=e.toString();if(0===t)return n+r;for(;r.length<=t;)r=d+r;const a=r.length-t;for(r=r.substring(0,a)+"."+r.substring(a);"0"===r[0]&&"."!==r[1];)r=r.substring(1);for(;"0"===r[r.length-1]&&"."!==r[r.length-2];)r=r.substring(0,r.length-1);return n+r}(t,n.decimals);(0,o.h)(this,{format:n.name,_value:a}),this.#Bt=p(n.decimals)}get signed(){return this.#It.signed}get width(){return this.#It.width}get decimals(){return this.#It.decimals}get value(){return this.#Nt}#jt(e){(0,r.en)(this.format===e.format,"incompatible format; use fixedNumber.toFormat","other",e)}#Dt(e,t){return e=h(e,this.#It,t),new y(u,e,this.#It)}#Lt(e,t){return this.#jt(e),this.#Dt(this.#Nt+e.#Nt,t)}addUnsafe(e){return this.#Lt(e)}add(e){return this.#Lt(e,"add")}#Mt(e,t){return this.#jt(e),this.#Dt(this.#Nt-e.#Nt,t)}subUnsafe(e){return this.#Mt(e)}sub(e){return this.#Mt(e,"sub")}#Ut(e,t){return this.#jt(e),this.#Dt(this.#Nt*e.#Nt/this.#Bt,t)}mulUnsafe(e){return this.#Ut(e)}mul(e){return this.#Ut(e,"mul")}mulSignal(e){this.#jt(e);const t=this.#Nt*e.#Nt;return(0,r.hu)(t%this.#Bt===f,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),this.#Dt(t/this.#Bt,"mulSignal")}#Ft(e,t){return(0,r.hu)(e.#Nt!==f,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#jt(e),this.#Dt(this.#Nt*this.#Bt/e.#Nt,t)}divUnsafe(e){return this.#Ft(e)}div(e){return this.#Ft(e,"div")}divSignal(e){(0,r.hu)(e.#Nt!==f,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#jt(e);const t=this.#Nt*this.#Bt;return(0,r.hu)(t%e.#Nt===f,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),this.#Dt(t/e.#Nt,"divSignal")}cmp(e){let t=this.value,n=e.value;const r=this.decimals-e.decimals;return r>0?n*=p(r):r<0&&(t*=p(-r)),t<n?-1:t>n?1:0}eq(e){return 0===this.cmp(e)}lt(e){return this.cmp(e)<0}lte(e){return this.cmp(e)<=0}gt(e){return this.cmp(e)>0}gte(e){return this.cmp(e)>=0}floor(){let e=this.#Nt;return this.#Nt<f&&(e-=this.#Bt-c),e=this.#Nt/this.#Bt*this.#Bt,this.#Dt(e,"floor")}ceiling(){let e=this.#Nt;return this.#Nt>f&&(e+=this.#Bt-c),e=this.#Nt/this.#Bt*this.#Bt,this.#Dt(e,"ceiling")}round(e){if(null==e&&(e=0),e>=this.decimals)return this;const t=this.decimals-e,n=l*p(t-1);let r=this.value+n;const a=p(t);return r=r/a*a,h(r,this.#It,"round"),new y(u,r,this.#It)}isZero(){return this.#Nt===f}isNegative(){return this.#Nt<f}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(e){return y.fromString(this.toString(),e)}static fromValue(e,t,n){const a=null==t?0:(0,i.Dx)(t),o=b(n);let s=(0,i.yT)(e,"value");const c=a-o.decimals;if(c>0){const t=p(c);(0,r.hu)(s%t===f,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:e}),s/=t}else c<0&&(s*=p(-c));return h(s,o,"fromValue"),new y(u,s,o)}static fromString(e,t){const n=e.match(/^(-?)([0-9]*)\.?([0-9]*)$/);(0,r.en)(n&&n[2].length+n[3].length>0,"invalid FixedNumber string value","value",e);const a=b(t);let i=n[2]||"0",o=n[3]||"";for(;o.length<a.decimals;)o+=d;(0,r.hu)(o.substring(a.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:e}),o=o.substring(0,a.decimals);const s=BigInt(n[1]+i+o);return h(s,a,"fromString"),new y(u,s,a)}static fromBytes(e,t){let n=(0,i.Gh)((0,a.Pw)(e,"value"));const r=b(t);return r.signed&&(n=(0,i._Y)(n,r.width)),h(n,r,"fromBytes"),new y(u,n,r)}}const m=["wei","kwei","mwei","gwei","szabo","finney","ether"];function g(e,t){let n=18;if("string"===typeof t){const e=m.indexOf(t);(0,r.en)(e>=0,"invalid unit","unit",t),n=3*e}else null!=t&&(n=(0,i.Dx)(t,"unit"));return y.fromValue(e,n,{decimals:n,width:512}).toString()}function v(e,t){(0,r.en)("string"===typeof e,"value must be a string","value",e);let n=18;if("string"===typeof t){const e=m.indexOf(t);(0,r.en)(e>=0,"invalid unit","unit",t),n=3*e}else null!=t&&(n=(0,i.Dx)(t,"unit"));return y.fromString(e,{decimals:n,width:512}).value}function w(e){return g(e,18)}function E(e){return v(e,18)}},96165:(e,t,n)=>{"use strict";n.d(t,{Y0:()=>f,ZN:()=>c});var r=n(91536),a=n(5445);function i(e,t,n,r,a){if("BAD_PREFIX"===e||"UNEXPECTED_CONTINUE"===e){let e=0;for(let r=t+1;r<n.length&&n[r]>>6===2;r++)e++;return e}return"OVERRUN"===e?n.length-t-1:0}const o=Object.freeze({error:function(e,t,n,r,i){(0,a.en)(!1,`invalid codepoint at offset ${t}; ${e}`,"bytes",n)},ignore:i,replace:function(e,t,n,r,o){return"OVERLONG"===e?((0,a.en)("number"===typeof o,"invalid bad code point for replacement","badCodepoint",o),r.push(o),0):(r.push(65533),i(e,t,n))}});function s(e,t){null==t&&(t=o.error);const n=(0,r.Pw)(e,"bytes"),a=[];let i=0;for(;i<n.length;){const e=n[i++];if(e>>7===0){a.push(e);continue}let r=null,o=null;if(192===(224&e))r=1,o=127;else if(224===(240&e))r=2,o=2047;else{if(240!==(248&e)){i+=t(128===(192&e)?"UNEXPECTED_CONTINUE":"BAD_PREFIX",i-1,n,a);continue}r=3,o=65535}if(i-1+r>=n.length){i+=t("OVERRUN",i-1,n,a);continue}let s=e&(1<<8-r-1)-1;for(let f=0;f<r;f++){let e=n[i];if(128!=(192&e)){i+=t("MISSING_CONTINUE",i,n,a),s=null;break}s=s<<6|63&e,i++}null!==s&&(s>1114111?i+=t("OUT_OF_RANGE",i-1-r,n,a,s):s>=55296&&s<=57343?i+=t("UTF16_SURROGATE",i-1-r,n,a,s):s<=o?i+=t("OVERLONG",i-1-r,n,a,s):a.push(s))}return a}function f(e,t){(0,a.en)("string"===typeof e,"invalid string value","str",e),null!=t&&((0,a.fA)(t),e=e.normalize(t));let n=[];for(let r=0;r<e.length;r++){const t=e.charCodeAt(r);if(t<128)n.push(t);else if(t<2048)n.push(t>>6|192),n.push(63&t|128);else if(55296==(64512&t)){r++;const i=e.charCodeAt(r);(0,a.en)(r<e.length&&56320===(64512&i),"invalid surrogate pair","str",e);const o=65536+((1023&t)<<10)+(1023&i);n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(63&o|128)}else n.push(t>>12|224),n.push(t>>6&63|128),n.push(63&t|128)}return new Uint8Array(n)}function c(e,t){return s(e,t).map((e=>e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e))))).join("")}},90701:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>i,__asyncDelegator:()=>E,__asyncGenerator:()=>w,__asyncValues:()=>A,__await:()=>v,__awaiter:()=>l,__classPrivateFieldGet:()=>C,__classPrivateFieldIn:()=>O,__classPrivateFieldSet:()=>x,__createBinding:()=>d,__decorate:()=>s,__exportStar:()=>p,__extends:()=>a,__generator:()=>u,__importDefault:()=>k,__importStar:()=>T,__makeTemplateObject:()=>P,__metadata:()=>c,__param:()=>f,__read:()=>b,__rest:()=>o,__spread:()=>y,__spreadArray:()=>g,__spreadArrays:()=>m,__values:()=>h});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},i.apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n}function s(e,t,n,r){var a,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function f(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(a,i){function o(e){try{f(r.next(e))}catch(t){i(t)}}function s(e){try{f(r.throw(e))}catch(t){i(t)}}function f(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}f((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(a=2&i[0]?r.return:i[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,i[1])).done)return a;switch(r=0,a&&(i=[2&i[0],a.value]),i[0]){case 0:case 1:a=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!(a=(a=o.trys).length>0&&a[a.length-1])&&(6===i[0]||2===i[0])){o=0;continue}if(3===i[0]&&(!a||i[1]>a[0]&&i[1]<a[3])){o.label=i[1];break}if(6===i[0]&&o.label<a[1]){o.label=a[1],a=i;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(i);break}a[2]&&o.ops.pop(),o.trys.pop();continue}i=t.call(e,o)}catch(s){i=[6,s],r=0}finally{n=a=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}var d=Object.create?function(e,t,n,r){void 0===r&&(r=n);var a=Object.getOwnPropertyDescriptor(t,n);a&&!("get"in a?!t.__esModule:a.writable||a.configurable)||(a={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,a)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function p(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||d(t,e,n)}function h(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,a,i=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)o.push(r.value)}catch(s){a={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return o}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(b(arguments[t]));return e}function m(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),a=0;for(t=0;t<n;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)r[a]=i[o];return r}function g(e,t,n){if(n||2===arguments.length)for(var r,a=0,i=t.length;a<i;a++)!r&&a in t||(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return e.concat(r||Array.prototype.slice.call(t))}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function w(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,a=n.apply(e,t||[]),i=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){a[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=a[e](t)).value instanceof v?Promise.resolve(n.value.v).then(f,c):l(i[0][2],n)}catch(r){l(i[0][3],r)}var n}function f(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function E(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,a){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:a?a(t):t}:a}}function A(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=h(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,a){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,a,(t=e[n](t)).done,t.value)}))}}}function P(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var _=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&d(t,e,n);return _(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function C(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function x(e,t,n,r,a){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!a)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof t?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?a.call(e,n):a?a.value=n:t.set(e,n),n}function O(e,t){if(null===t||"object"!==typeof t&&"function"!==typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof e?t===e:e.has(t)}},97143:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,o){if("function"!==typeof r)throw new TypeError("The listener must be a function");var s=new a(r,i||e,o),f=n?n+t:t;return e._events[f]?e._events[f].fn?e._events[f]=[e._events[f],s]:e._events[f].push(s):(e._events[f]=s,e._eventsCount++),e}function o(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,a=[];if(0===this._eventsCount)return a;for(r in e=this._events)t.call(e,r)&&a.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},s.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var a=0,i=r.length,o=new Array(i);a<i;a++)o[a]=r[a].fn;return o},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,a,i,o){var s=n?n+e:e;if(!this._events[s])return!1;var f,c,l=this._events[s],u=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),u){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,a),!0;case 5:return l.fn.call(l.context,t,r,a,i),!0;case 6:return l.fn.call(l.context,t,r,a,i,o),!0}for(c=1,f=new Array(u-1);c<u;c++)f[c-1]=arguments[c];l.fn.apply(l.context,f)}else{var d,p=l.length;for(c=0;c<p;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),u){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,r);break;case 4:l[c].fn.call(l[c].context,t,r,a);break;default:if(!f)for(d=1,f=new Array(u-1);d<u;d++)f[d-1]=arguments[d];l[c].fn.apply(l[c].context,f)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,a){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return o(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||a&&!s.once||r&&s.context!==r||o(this,i);else{for(var f=0,c=[],l=s.length;f<l;f++)(s[f].fn!==t||a&&!s[f].once||r&&s[f].context!==r)&&c.push(s[f]);c.length?this._events[i]=1===c.length?c[0]:c:o(this,i)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&o(this,t)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s},62110:(e,t,n)=>{"use strict";var r=n(48309),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function f(e){return r.isMemo(e)?o:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var c=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var a=p(n);a&&a!==h&&e(t,a,r)}var o=l(n);u&&(o=o.concat(u(n)));for(var s=f(t),b=f(n),y=0;y<o.length;++y){var m=o[y];if(!i[m]&&(!r||!r[m])&&(!b||!b[m])&&(!s||!s[m])){var g=d(n,m);try{c(t,m,g)}catch(v){}}}}return t}},746:(e,t)=>{"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,f=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,u=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,b=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,m=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function E(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case u:case i:case s:case o:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case y:case b:case f:return e;default:return t}}case a:return t}}}function A(e){return E(e)===u}t.AsyncMode=l,t.ConcurrentMode=u,t.ContextConsumer=c,t.ContextProvider=f,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=y,t.Memo=b,t.Portal=a,t.Profiler=s,t.StrictMode=o,t.Suspense=p,t.isAsyncMode=function(e){return A(e)||E(e)===l},t.isConcurrentMode=A,t.isContextConsumer=function(e){return E(e)===c},t.isContextProvider=function(e){return E(e)===f},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return E(e)===d},t.isFragment=function(e){return E(e)===i},t.isLazy=function(e){return E(e)===y},t.isMemo=function(e){return E(e)===b},t.isPortal=function(e){return E(e)===a},t.isProfiler=function(e){return E(e)===s},t.isStrictMode=function(e){return E(e)===o},t.isSuspense=function(e){return E(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===u||e===s||e===o||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===b||e.$$typeof===f||e.$$typeof===c||e.$$typeof===d||e.$$typeof===g||e.$$typeof===v||e.$$typeof===w||e.$$typeof===m)},t.typeOf=E},48309:(e,t,n)=>{"use strict";e.exports=n(746)},84038:(e,t)=>{t.read=function(e,t,n,r,a){var i,o,s=8*a-r-1,f=(1<<s)-1,c=f>>1,l=-7,u=n?a-1:0,d=n?-1:1,p=e[t+u];for(u+=d,i=p&(1<<-l)-1,p>>=-l,l+=s;l>0;i=256*i+e[t+u],u+=d,l-=8);for(o=i&(1<<-l)-1,i>>=-l,l+=r;l>0;o=256*o+e[t+u],u+=d,l-=8);if(0===i)i=1-c;else{if(i===f)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,r),i-=c}return(p?-1:1)*o*Math.pow(2,i-r)},t.write=function(e,t,n,r,a,i){var o,s,f,c=8*i-a-1,l=(1<<c)-1,u=l>>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=l):(o=Math.floor(Math.log(t)/Math.LN2),t*(f=Math.pow(2,-o))<1&&(o--,f*=2),(t+=o+u>=1?d/f:d*Math.pow(2,1-u))*f>=2&&(o++,f/=2),o+u>=l?(s=0,o=l):o+u>=1?(s=(t*f-1)*Math.pow(2,a),o+=u):(s=t*Math.pow(2,u-1)*Math.pow(2,a),o=0));a>=8;e[n+p]=255&s,p+=h,s/=256,a-=8);for(o=o<<a|s,c+=a;c>0;e[n+p]=255&o,p+=h,o/=256,c-=8);e[n+p-h]|=128*b}},80759:(e,t,n)=>{"use strict";function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map((function(e){return"'"+e+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function a(e){return!!e&&!!e[W]}function i(e){var t;return!!e&&(function(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;var n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===V}(e)||Array.isArray(e)||!!e[H]||!!(null===(t=e.constructor)||void 0===t?void 0:t[H])||d(e)||p(e))}function o(e,t,n){void 0===n&&(n=!1),0===s(e)?(n?Object.keys:q)(e).forEach((function(r){n&&"symbol"==typeof r||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function s(e){var t=e[W];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:d(e)?2:p(e)?3:0}function f(e,t){return 2===s(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){return 2===s(e)?e.get(t):e[t]}function l(e,t,n){var r=s(e);2===r?e.set(t,n):3===r?e.add(n):e[t]=n}function u(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function d(e){return F&&e instanceof Map}function p(e){return z&&e instanceof Set}function h(e){return e.o||e.t}function b(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=K(e);delete t[W];for(var n=q(t),r=0;r<n.length;r++){var a=n[r],i=t[a];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(Object.getPrototypeOf(e),t)}function y(e,t){return void 0===t&&(t=!1),g(e)||a(e)||!i(e)||(s(e)>1&&(e.set=e.add=e.clear=e.delete=m),Object.freeze(e),t&&o(e,(function(e,t){return y(t,!0)}),!0)),e}function m(){r(2)}function g(e){return null==e||"object"!=typeof e||Object.isFrozen(e)}function v(e){var t=Z[e];return t||r(18,e),t}function w(){return M}function E(e,t){t&&(v("Patches"),e.u=[],e.s=[],e.v=t)}function A(e){P(e),e.p.forEach(T),e.p=null}function P(e){e===M&&(M=e.l)}function _(e){return M={p:[],l:M,h:e,m:!0,_:0}}function T(e){var t=e[W];0===t.i||1===t.i?t.j():t.g=!0}function k(e,t){t._=t.p.length;var n=t.p[0],a=void 0!==e&&e!==n;return t.h.O||v("ES5").S(t,e,a),a?(n[W].P&&(A(t),r(4)),i(e)&&(e=C(t,e),t.l||O(t,e)),t.u&&v("Patches").M(n[W].t,e,t.u,t.s)):e=C(t,n,[]),A(t),t.u&&t.v(t.u,t.s),e!==G?e:void 0}function C(e,t,n){if(g(t))return t;var r=t[W];if(!r)return o(t,(function(a,i){return x(e,r,t,a,i,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return O(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var a=4===r.i||5===r.i?r.o=b(r.k):r.o,i=a,s=!1;3===r.i&&(i=new Set(a),a.clear(),s=!0),o(i,(function(t,i){return x(e,r,a,t,i,n,s)})),O(e,a,!1),n&&e.u&&v("Patches").N(r,n,e.u,e.s)}return r.o}function x(e,t,n,r,o,s,c){if(a(o)){var u=C(e,o,s&&t&&3!==t.i&&!f(t.R,r)?s.concat(r):void 0);if(l(n,r,u),!a(u))return;e.m=!1}else c&&n.add(o);if(i(o)&&!g(o)){if(!e.h.D&&e._<1)return;C(e,o),t&&t.A.l||O(e,o)}}function O(e,t,n){void 0===n&&(n=!1),!e.l&&e.h.D&&e.m&&y(t,n)}function S(e,t){var n=e[W];return(n?h(n):e)[t]}function R(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function I(e){e.P||(e.P=!0,e.l&&I(e.l))}function N(e){e.o||(e.o=b(e.t))}function B(e,t,n){var r=d(t)?v("MapSet").F(t,n):p(t)?v("MapSet").T(t,n):e.O?function(e,t){var n=Array.isArray(e),r={i:n?1:0,A:t?t.A:w(),P:!1,I:!1,R:{},l:t,t:e,k:null,o:null,j:null,C:!1},a=r,i=J;n&&(a=[r],i=Y);var o=Proxy.revocable(a,i),s=o.revoke,f=o.proxy;return r.k=f,r.j=s,f}(t,n):v("ES5").J(t,n);return(n?n.A:w()).p.push(r),r}function j(e){return a(e)||r(22,e),function e(t){if(!i(t))return t;var n,r=t[W],a=s(t);if(r){if(!r.P&&(r.i<4||!v("ES5").K(r)))return r.t;r.I=!0,n=D(t,a),r.I=!1}else n=D(t,a);return o(n,(function(t,a){r&&c(r.t,t)===a||l(n,t,e(a))})),3===a?new Set(n):n}(e)}function D(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return b(e)}n.d(t,{ZP:()=>te});var L,M,U="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),F="undefined"!=typeof Map,z="undefined"!=typeof Set,$="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,G=U?Symbol.for("immer-nothing"):((L={})["immer-nothing"]=!0,L),H=U?Symbol.for("immer-draftable"):"__$immer_draftable",W=U?Symbol.for("immer-state"):"__$immer_state",V=("undefined"!=typeof Symbol&&Symbol.iterator,""+Object.prototype.constructor),q="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,K=Object.getOwnPropertyDescriptors||function(e){var t={};return q(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Z={},J={get:function(e,t){if(t===W)return e;var n=h(e);if(!f(n,t))return function(e,t,n){var r,a=R(t,n);return a?"value"in a?a.value:null===(r=a.get)||void 0===r?void 0:r.call(e.k):void 0}(e,n,t);var r=n[t];return e.I||!i(r)?r:r===S(e.t,t)?(N(e),e.o[t]=B(e.A.h,r,e)):r},has:function(e,t){return t in h(e)},ownKeys:function(e){return Reflect.ownKeys(h(e))},set:function(e,t,n){var r=R(h(e),t);if(null==r?void 0:r.set)return r.set.call(e.k,n),!0;if(!e.P){var a=S(h(e),t),i=null==a?void 0:a[W];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(u(n,a)&&(void 0!==n||f(e.t,t)))return!0;N(e),I(e)}return e.o[t]===n&&(void 0!==n||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return void 0!==S(e.t,t)||t in e.t?(e.R[t]=!1,N(e),I(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=h(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r?{writable:!0,configurable:1!==e.i||"length"!==t,enumerable:r.enumerable,value:n[t]}:r},defineProperty:function(){r(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){r(12)}},Y={};o(J,(function(e,t){Y[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Y.deleteProperty=function(e,t){return Y.set.call(this,e,t,void 0)},Y.set=function(e,t,n){return J.set.call(this,e[0],t,n,e[0])};var Q=function(){function e(e){var t=this;this.O=$,this.D=!0,this.produce=function(e,n,a){if("function"==typeof e&&"function"!=typeof n){var o=n;n=e;var s=t;return function(e){var t=this;void 0===e&&(e=o);for(var r=arguments.length,a=Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return s.produce(e,(function(e){var r;return(r=n).call.apply(r,[t,e].concat(a))}))}}var f;if("function"!=typeof n&&r(6),void 0!==a&&"function"!=typeof a&&r(7),i(e)){var c=_(t),l=B(t,e,void 0),u=!0;try{f=n(l),u=!1}finally{u?A(c):P(c)}return"undefined"!=typeof Promise&&f instanceof Promise?f.then((function(e){return E(c,a),k(e,c)}),(function(e){throw A(c),e})):(E(c,a),k(f,c))}if(!e||"object"!=typeof e){if(void 0===(f=n(e))&&(f=e),f===G&&(f=void 0),t.D&&y(f,!0),a){var d=[],p=[];v("Patches").M(e,f,d,p),a(d,p)}return f}r(21,e)},this.produceWithPatches=function(e,n){if("function"==typeof e)return function(n){for(var r=arguments.length,a=Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(a))}))};var r,a,i=t.produce(e,n,(function(e,t){r=e,a=t}));return"undefined"!=typeof Promise&&i instanceof Promise?i.then((function(e){return[e,r,a]})):[i,r,a]},"boolean"==typeof(null==e?void 0:e.useProxies)&&this.setUseProxies(e.useProxies),"boolean"==typeof(null==e?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze)}var t=e.prototype;return t.createDraft=function(e){i(e)||r(8),a(e)&&(e=j(e));var t=_(this),n=B(this,e,void 0);return n[W].C=!0,P(t),n},t.finishDraft=function(e,t){var n=(e&&e[W]).A;return E(n,t),k(void 0,n)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!$&&r(20),this.O=e},t.applyPatches=function(e,t){var n;for(n=t.length-1;n>=0;n--){var r=t[n];if(0===r.path.length&&"replace"===r.op){e=r.value;break}}n>-1&&(t=t.slice(n+1));var i=v("Patches").$;return a(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}(),X=new Q,ee=X.produce;X.produceWithPatches.bind(X),X.setAutoFreeze.bind(X),X.setUseProxies.bind(X),X.applyPatches.bind(X),X.createDraft.bind(X),X.finishDraft.bind(X);const te=ee},92176:e=>{"use strict";e.exports=function(e,t,n,r,a,i,o,s){if(!e){var f;if(void 0===t)f=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,a,i,o,s],l=0;(f=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw f.framesToPop=1,f}}},33640:function(e,t,n){var r=n(19778).Buffer;"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g&&n.g,e.exports=function(){"use strict";var e="3.7.7",t=e,n="function"===typeof r,a="function"===typeof TextDecoder?new TextDecoder:void 0,i="function"===typeof TextEncoder?new TextEncoder:void 0,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=Array.prototype.slice.call(o),f=function(e){var t={};return e.forEach((function(e,n){return t[e]=n})),t}(s),c=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,l=String.fromCharCode.bind(String),u="function"===typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):function(e){return new Uint8Array(Array.prototype.slice.call(e,0))},d=function(e){return e.replace(/=/g,"").replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"}))},p=function(e){return e.replace(/[^A-Za-z0-9\+\/]/g,"")},h=function(e){for(var t,n,r,a,i="",o=e.length%3,f=0;f<e.length;){if((n=e.charCodeAt(f++))>255||(r=e.charCodeAt(f++))>255||(a=e.charCodeAt(f++))>255)throw new TypeError("invalid character found");i+=s[(t=n<<16|r<<8|a)>>18&63]+s[t>>12&63]+s[t>>6&63]+s[63&t]}return o?i.slice(0,o-3)+"===".substring(o):i},b="function"===typeof btoa?function(e){return btoa(e)}:n?function(e){return r.from(e,"binary").toString("base64")}:h,y=n?function(e){return r.from(e).toString("base64")}:function(e){for(var t=4096,n=[],r=0,a=e.length;r<a;r+=t)n.push(l.apply(null,e.subarray(r,r+t)));return b(n.join(""))},m=function(e,t){return void 0===t&&(t=!1),t?d(y(e)):y(e)},g=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?l(192|t>>>6)+l(128|63&t):l(224|t>>>12&15)+l(128|t>>>6&63)+l(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return l(240|t>>>18&7)+l(128|t>>>12&63)+l(128|t>>>6&63)+l(128|63&t)},v=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,w=function(e){return e.replace(v,g)},E=n?function(e){return r.from(e,"utf8").toString("base64")}:i?function(e){return y(i.encode(e))}:function(e){return b(w(e))},A=function(e,t){return void 0===t&&(t=!1),t?d(E(e)):E(e)},P=function(e){return A(e,!0)},_=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,T=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return l(55296+(t>>>10))+l(56320+(1023&t));case 3:return l((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return l((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},k=function(e){return e.replace(_,T)},C=function(e){if(e=e.replace(/\s+/g,""),!c.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));for(var t,n,r,a="",i=0;i<e.length;)t=f[e.charAt(i++)]<<18|f[e.charAt(i++)]<<12|(n=f[e.charAt(i++)])<<6|(r=f[e.charAt(i++)]),a+=64===n?l(t>>16&255):64===r?l(t>>16&255,t>>8&255):l(t>>16&255,t>>8&255,255&t);return a},x="function"===typeof atob?function(e){return atob(p(e))}:n?function(e){return r.from(e,"base64").toString("binary")}:C,O=n?function(e){return u(r.from(e,"base64"))}:function(e){return u(x(e).split("").map((function(e){return e.charCodeAt(0)})))},S=function(e){return O(I(e))},R=n?function(e){return r.from(e,"base64").toString("utf8")}:a?function(e){return a.decode(O(e))}:function(e){return k(x(e))},I=function(e){return p(e.replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})))},N=function(e){return R(I(e))},B=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}},j=function(){var e=function(e,t){return Object.defineProperty(String.prototype,e,B(t))};e("fromBase64",(function(){return N(this)})),e("toBase64",(function(e){return A(this,e)})),e("toBase64URI",(function(){return A(this,!0)})),e("toBase64URL",(function(){return A(this,!0)})),e("toUint8Array",(function(){return S(this)}))},D=function(){var e=function(e,t){return Object.defineProperty(Uint8Array.prototype,e,B(t))};e("toBase64",(function(e){return m(this,e)})),e("toBase64URI",(function(){return m(this,!0)})),e("toBase64URL",(function(){return m(this,!0)}))},L=function(){j(),D()},M={version:e,VERSION:t,atob:x,atobPolyfill:C,btoa:b,btoaPolyfill:h,fromBase64:N,toBase64:A,encode:A,encodeURI:P,encodeURL:P,utob:w,btou:k,decode:N,isValid:function(e){if("string"!==typeof e)return!1;var t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},fromUint8Array:m,toUint8Array:S,extendString:j,extendUint8Array:D,extendBuiltins:L,Base64:{}};return Object.keys(M).forEach((function(e){return M.Base64[e]=M[e]})),M}()},50908:(e,t,n)=>{var r=n(68136)(n(97009),"DataView");e.exports=r},29676:(e,t,n)=>{var r=n(85403),a=n(62747),i=n(16037),o=n(94154),s=n(77728);function f(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}f.prototype.clear=r,f.prototype.delete=a,f.prototype.get=i,f.prototype.has=o,f.prototype.set=s,e.exports=f},38384:(e,t,n)=>{var r=n(43894),a=n(8699),i=n(64957),o=n(87184),s=n(87109);function f(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}f.prototype.clear=r,f.prototype.delete=a,f.prototype.get=i,f.prototype.has=o,f.prototype.set=s,e.exports=f},95797:(e,t,n)=>{var r=n(68136)(n(97009),"Map");e.exports=r},78059:(e,t,n)=>{var r=n(34086),a=n(9255),i=n(29186),o=n(13423),s=n(73739);function f(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}f.prototype.clear=r,f.prototype.delete=a,f.prototype.get=i,f.prototype.has=o,f.prototype.set=s,e.exports=f},78319:(e,t,n)=>{var r=n(68136)(n(97009),"Promise");e.exports=r},23924:(e,t,n)=>{var r=n(68136)(n(97009),"Set");e.exports=r},20692:(e,t,n)=>{var r=n(78059),a=n(35774),i=n(41596);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=a,o.prototype.has=i,e.exports=o},22854:(e,t,n)=>{var r=n(38384),a=n(20511),i=n(50835),o=n(90707),s=n(18832),f=n(35077);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=a,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=s,c.prototype.set=f,e.exports=c},87197:(e,t,n)=>{var r=n(97009).Symbol;e.exports=r},46219:(e,t,n)=>{var r=n(97009).Uint8Array;e.exports=r},7091:(e,t,n)=>{var r=n(68136)(n(97009),"WeakMap");e.exports=r},13665:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},4550:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},84903:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}},47538:(e,t,n)=>{var r=n(86478),a=n(34963),i=n(93629),o=n(5174),s=n(26800),f=n(19102),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&a(e),u=!n&&!l&&o(e),d=!n&&!l&&!u&&f(e),p=n||l||u||d,h=p?r(e.length,String):[],b=h.length;for(var y in e)!t&&!c.call(e,y)||p&&("length"==y||u&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,b))||h.push(y);return h}},68950:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}},41705:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}},47897:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},18463:(e,t,n)=>{var r=n(32526),a=n(29231),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var o=e[t];i.call(e,t)&&a(o,n)&&(void 0!==n||t in e)||r(e,t,n)}},27112:(e,t,n)=>{var r=n(29231);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},11855:(e,t,n)=>{var r=n(64503),a=n(12742);e.exports=function(e,t){return e&&r(t,a(t),e)}},95076:(e,t,n)=>{var r=n(64503),a=n(73961);e.exports=function(e,t){return e&&r(t,a(t),e)}},32526:(e,t,n)=>{var r=n(48528);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},31905:(e,t,n)=>{var r=n(22854),a=n(4550),i=n(18463),o=n(11855),s=n(95076),f=n(94523),c=n(10291),l=n(52455),u=n(57636),d=n(38248),p=n(55341),h=n(88383),b=n(39243),y=n(39759),m=n(40548),g=n(93629),v=n(5174),w=n(60103),E=n(8092),A=n(36995),P=n(12742),_=n(73961),T="[object Arguments]",k="[object Function]",C="[object Object]",x={};x[T]=x["[object Array]"]=x["[object ArrayBuffer]"]=x["[object DataView]"]=x["[object Boolean]"]=x["[object Date]"]=x["[object Float32Array]"]=x["[object Float64Array]"]=x["[object Int8Array]"]=x["[object Int16Array]"]=x["[object Int32Array]"]=x["[object Map]"]=x["[object Number]"]=x[C]=x["[object RegExp]"]=x["[object Set]"]=x["[object String]"]=x["[object Symbol]"]=x["[object Uint8Array]"]=x["[object Uint8ClampedArray]"]=x["[object Uint16Array]"]=x["[object Uint32Array]"]=!0,x["[object Error]"]=x[k]=x["[object WeakMap]"]=!1,e.exports=function e(t,n,O,S,R,I){var N,B=1&n,j=2&n,D=4&n;if(O&&(N=R?O(t,S,R,I):O(t)),void 0!==N)return N;if(!E(t))return t;var L=g(t);if(L){if(N=b(t),!B)return c(t,N)}else{var M=h(t),U=M==k||"[object GeneratorFunction]"==M;if(v(t))return f(t,B);if(M==C||M==T||U&&!R){if(N=j||U?{}:m(t),!B)return j?u(t,s(N,t)):l(t,o(N,t))}else{if(!x[M])return R?t:{};N=y(t,M,B)}}I||(I=new r);var F=I.get(t);if(F)return F;I.set(t,N),A(t)?t.forEach((function(r){N.add(e(r,n,O,r,t,I))})):w(t)&&t.forEach((function(r,a){N.set(a,e(r,n,O,a,t,I))}));var z=L?void 0:(D?j?p:d:j?_:P)(t);return a(z||t,(function(r,a){z&&(r=t[a=r]),i(N,a,e(r,n,O,a,t,I))})),N}},65763:(e,t,n)=>{var r=n(8092),a=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(a)return a(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},2045:e=>{e.exports=function(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}},55182:(e,t,n)=>{var r=n(41705),a=n(73529);e.exports=function e(t,n,i,o,s){var f=-1,c=t.length;for(i||(i=a),s||(s=[]);++f<c;){var l=t[f];n>0&&i(l)?n>1?e(l,n-1,i,o,s):r(s,l):o||(s[s.length]=l)}return s}},98667:(e,t,n)=>{var r=n(43082),a=n(69793);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[a(t[n++])];return n&&n==i?e:void 0}},61986:(e,t,n)=>{var r=n(41705),a=n(93629);e.exports=function(e,t,n){var i=t(e);return a(e)?i:r(i,n(e))}},39066:(e,t,n)=>{var r=n(87197),a=n(81587),i=n(43581),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?a(e):i(e)}},90529:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},4906:(e,t,n)=>{var r=n(39066),a=n(43141);e.exports=function(e){return a(e)&&"[object Arguments]"==r(e)}},71848:(e,t,n)=>{var r=n(93355),a=n(43141);e.exports=function e(t,n,i,o,s){return t===n||(null==t||null==n||!a(t)&&!a(n)?t!==t&&n!==n:r(t,n,i,o,e,s))}},93355:(e,t,n)=>{var r=n(22854),a=n(15305),i=n(92206),o=n(88078),s=n(88383),f=n(93629),c=n(5174),l=n(19102),u="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,b,y,m){var g=f(e),v=f(t),w=g?d:s(e),E=v?d:s(t),A=(w=w==u?p:w)==p,P=(E=E==u?p:E)==p,_=w==E;if(_&&c(e)){if(!c(t))return!1;g=!0,A=!1}if(_&&!A)return m||(m=new r),g||l(e)?a(e,t,n,b,y,m):i(e,t,w,n,b,y,m);if(!(1&n)){var T=A&&h.call(e,"__wrapped__"),k=P&&h.call(t,"__wrapped__");if(T||k){var C=T?e.value():e,x=k?t.value():t;return m||(m=new r),y(C,x,n,b,m)}}return!!_&&(m||(m=new r),o(e,t,n,b,y,m))}},53085:(e,t,n)=>{var r=n(88383),a=n(43141);e.exports=function(e){return a(e)&&"[object Map]"==r(e)}},8856:(e,t,n)=>{var r=n(22854),a=n(71848);e.exports=function(e,t,n,i){var o=n.length,s=o,f=!i;if(null==e)return!s;for(e=Object(e);o--;){var c=n[o];if(f&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<s;){var l=(c=n[o])[0],u=e[l],d=c[1];if(f&&c[2]){if(void 0===u&&!(l in e))return!1}else{var p=new r;if(i)var h=i(u,d,l,e,t,p);if(!(void 0===h?a(d,u,3,i,p):h))return!1}}return!0}},26703:(e,t,n)=>{var r=n(74786),a=n(257),i=n(8092),o=n(27907),s=/^\[object .+?Constructor\]$/,f=Function.prototype,c=Object.prototype,l=f.toString,u=c.hasOwnProperty,d=RegExp("^"+l.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||a(e))&&(r(e)?d:s).test(o(e))}},48680:(e,t,n)=>{var r=n(88383),a=n(43141);e.exports=function(e){return a(e)&&"[object Set]"==r(e)}},68150:(e,t,n)=>{var r=n(39066),a=n(24635),i=n(43141),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&a(e.length)&&!!o[r(e)]}},56025:(e,t,n)=>{var r=n(97080),a=n(24322),i=n(2100),o=n(93629),s=n(10038);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?o(e)?a(e[0],e[1]):r(e):s(e)}},43654:(e,t,n)=>{var r=n(62936),a=n(75964),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return a(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},8664:(e,t,n)=>{var r=n(8092),a=n(62936),i=n(4221),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=a(e),n=[];for(var s in e)("constructor"!=s||!t&&o.call(e,s))&&n.push(s);return n}},97080:(e,t,n)=>{var r=n(8856),a=n(79091),i=n(50284);e.exports=function(e){var t=a(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},24322:(e,t,n)=>{var r=n(71848),a=n(26181),i=n(75658),o=n(25823),s=n(25072),f=n(50284),c=n(69793);e.exports=function(e,t){return o(e)&&s(t)?f(c(e),t):function(n){var o=a(n,e);return void 0===o&&o===t?i(n,e):r(t,o,3)}}},9586:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},4084:(e,t,n)=>{var r=n(98667);e.exports=function(e){return function(t){return r(t,e)}}},7532:(e,t,n)=>{var r=n(71547),a=n(48528),i=n(2100),o=a?function(e,t){return a(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=o},2646:e=>{e.exports=function(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}},86478:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},2446:(e,t,n)=>{var r=n(87197),a=n(68950),i=n(93629),o=n(70152),s=r?r.prototype:void 0,f=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return a(t,e)+"";if(o(t))return f?f.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n}},20821:(e,t,n)=>{var r=n(26050),a=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(a,""):e}},16194:e=>{e.exports=function(e){return function(t){return e(t)}}},86555:(e,t,n)=>{var r=n(43082),a=n(15727),i=n(68978),o=n(69793);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[o(a(t))]}},60075:e=>{e.exports=function(e,t){return e.has(t)}},43082:(e,t,n)=>{var r=n(93629),a=n(25823),i=n(10170),o=n(63518);e.exports=function(e,t){return r(e)?e:a(e,t)?[e]:i(o(e))}},7010:(e,t,n)=>{var r=n(46219);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},94523:(e,t,n)=>{e=n.nmd(e);var r=n(97009),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},61022:(e,t,n)=>{var r=n(7010);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},18503:e=>{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},64720:(e,t,n)=>{var r=n(87197),a=r?r.prototype:void 0,i=a?a.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},40613:(e,t,n)=>{var r=n(7010);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},10291:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},64503:(e,t,n)=>{var r=n(18463),a=n(32526);e.exports=function(e,t,n,i){var o=!n;n||(n={});for(var s=-1,f=t.length;++s<f;){var c=t[s],l=i?i(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),o?a(n,c,l):r(n,c,l)}return n}},52455:(e,t,n)=>{var r=n(64503),a=n(65918);e.exports=function(e,t){return r(e,a(e),t)}},57636:(e,t,n)=>{var r=n(64503),a=n(38487);e.exports=function(e,t){return r(e,a(e),t)}},65525:(e,t,n)=>{var r=n(97009)["__core-js_shared__"];e.exports=r},95481:(e,t,n)=>{var r=n(56025),a=n(21473),i=n(12742);e.exports=function(e){return function(t,n,o){var s=Object(t);if(!a(t)){var f=r(n,3);t=i(t),n=function(e){return f(s[e],e,s)}}var c=e(t,n,o);return c>-1?s[f?t[c]:c]:void 0}}},26013:(e,t,n)=>{var r=n(93977);e.exports=function(e){return r(e)?void 0:e}},48528:(e,t,n)=>{var r=n(68136),a=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=a},15305:(e,t,n)=>{var r=n(20692),a=n(47897),i=n(60075);e.exports=function(e,t,n,o,s,f){var c=1&n,l=e.length,u=t.length;if(l!=u&&!(c&&u>l))return!1;var d=f.get(e),p=f.get(t);if(d&&p)return d==t&&p==e;var h=-1,b=!0,y=2&n?new r:void 0;for(f.set(e,t),f.set(t,e);++h<l;){var m=e[h],g=t[h];if(o)var v=c?o(g,m,h,t,e,f):o(m,g,h,e,t,f);if(void 0!==v){if(v)continue;b=!1;break}if(y){if(!a(t,(function(e,t){if(!i(y,t)&&(m===e||s(m,e,n,o,f)))return y.push(t)}))){b=!1;break}}else if(m!==g&&!s(m,g,n,o,f)){b=!1;break}}return f.delete(e),f.delete(t),b}},92206:(e,t,n)=>{var r=n(87197),a=n(46219),i=n(29231),o=n(15305),s=n(90234),f=n(22230),c=r?r.prototype:void 0,l=c?c.valueOf:void 0;e.exports=function(e,t,n,r,c,u,d){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!u(new a(e),new a(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=s;case"[object Set]":var h=1&r;if(p||(p=f),e.size!=t.size&&!h)return!1;var b=d.get(e);if(b)return b==t;r|=2,d.set(e,t);var y=o(p(e),p(t),r,c,u,d);return d.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},88078:(e,t,n)=>{var r=n(38248),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,s){var f=1&n,c=r(e),l=c.length;if(l!=r(t).length&&!f)return!1;for(var u=l;u--;){var d=c[u];if(!(f?d in t:a.call(t,d)))return!1}var p=s.get(e),h=s.get(t);if(p&&h)return p==t&&h==e;var b=!0;s.set(e,t),s.set(t,e);for(var y=f;++u<l;){var m=e[d=c[u]],g=t[d];if(i)var v=f?i(g,m,d,t,e,s):i(m,g,d,e,t,s);if(!(void 0===v?m===g||o(m,g,n,i,s):v)){b=!1;break}y||(y="constructor"==d)}if(b&&!y){var w=e.constructor,E=t.constructor;w==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof E&&E instanceof E||(b=!1)}return s.delete(e),s.delete(t),b}},27038:(e,t,n)=>{var r=n(25506),a=n(64262),i=n(79156);e.exports=function(e){return i(a(e,void 0,r),e+"")}},31032:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},38248:(e,t,n)=>{var r=n(61986),a=n(65918),i=n(12742);e.exports=function(e){return r(e,i,a)}},55341:(e,t,n)=>{var r=n(61986),a=n(38487),i=n(73961);e.exports=function(e){return r(e,i,a)}},32799:(e,t,n)=>{var r=n(55964);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},79091:(e,t,n)=>{var r=n(25072),a=n(12742);e.exports=function(e){for(var t=a(e),n=t.length;n--;){var i=t[n],o=e[i];t[n]=[i,o,r(o)]}return t}},68136:(e,t,n)=>{var r=n(26703),a=n(30040);e.exports=function(e,t){var n=a(e,t);return r(n)?n:void 0}},31137:(e,t,n)=>{var r=n(12709)(Object.getPrototypeOf,Object);e.exports=r},81587:(e,t,n)=>{var r=n(87197),a=Object.prototype,i=a.hasOwnProperty,o=a.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(f){}var a=o.call(e);return r&&(t?e[s]=n:delete e[s]),a}},65918:(e,t,n)=>{var r=n(84903),a=n(68174),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,s=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:a;e.exports=s},38487:(e,t,n)=>{var r=n(41705),a=n(31137),i=n(65918),o=n(68174),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=a(e);return t}:o;e.exports=s},88383:(e,t,n)=>{var r=n(50908),a=n(95797),i=n(78319),o=n(23924),s=n(7091),f=n(39066),c=n(27907),l="[object Map]",u="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",b=c(r),y=c(a),m=c(i),g=c(o),v=c(s),w=f;(r&&w(new r(new ArrayBuffer(1)))!=h||a&&w(new a)!=l||i&&w(i.resolve())!=u||o&&w(new o)!=d||s&&w(new s)!=p)&&(w=function(e){var t=f(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case b:return h;case y:return l;case m:return u;case g:return d;case v:return p}return t}),e.exports=w},30040:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},86417:(e,t,n)=>{var r=n(43082),a=n(34963),i=n(93629),o=n(26800),s=n(24635),f=n(69793);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,u=!1;++c<l;){var d=f(t[c]);if(!(u=null!=e&&n(e,d)))break;e=e[d]}return u||++c!=l?u:!!(l=null==e?0:e.length)&&s(l)&&o(d,l)&&(i(e)||a(e))}},85403:(e,t,n)=>{var r=n(49620);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},62747:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},16037:(e,t,n)=>{var r=n(49620),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return a.call(t,e)?t[e]:void 0}},94154:(e,t,n)=>{var r=n(49620),a=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:a.call(t,e)}},77728:(e,t,n)=>{var r=n(49620);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},39243:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,r=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},39759:(e,t,n)=>{var r=n(7010),a=n(61022),i=n(18503),o=n(64720),s=n(40613);e.exports=function(e,t,n){var f=e.constructor;switch(t){case"[object ArrayBuffer]":return r(e);case"[object Boolean]":case"[object Date]":return new f(+e);case"[object DataView]":return a(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,n);case"[object Map]":case"[object Set]":return new f;case"[object Number]":case"[object String]":return new f(e);case"[object RegExp]":return i(e);case"[object Symbol]":return o(e)}}},40548:(e,t,n)=>{var r=n(65763),a=n(31137),i=n(62936);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(a(e))}},73529:(e,t,n)=>{var r=n(87197),a=n(34963),i=n(93629),o=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||a(e)||!!(o&&e&&e[o])}},26800:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},25823:(e,t,n)=>{var r=n(93629),a=n(70152),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!a(e))||(o.test(e)||!i.test(e)||null!=t&&e in Object(t))}},55964:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},257:(e,t,n)=>{var r=n(65525),a=function(){var e=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!a&&a in e}},62936:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},25072:(e,t,n)=>{var r=n(8092);e.exports=function(e){return e===e&&!r(e)}},43894:e=>{e.exports=function(){this.__data__=[],this.size=0}},8699:(e,t,n)=>{var r=n(27112),a=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():a.call(t,n,1),--this.size,!0)}},64957:(e,t,n)=>{var r=n(27112);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},87184:(e,t,n)=>{var r=n(27112);e.exports=function(e){return r(this.__data__,e)>-1}},87109:(e,t,n)=>{var r=n(27112);e.exports=function(e,t){var n=this.__data__,a=r(n,e);return a<0?(++this.size,n.push([e,t])):n[a][1]=t,this}},34086:(e,t,n)=>{var r=n(29676),a=n(38384),i=n(95797);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||a),string:new r}}},9255:(e,t,n)=>{var r=n(32799);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},29186:(e,t,n)=>{var r=n(32799);e.exports=function(e){return r(this,e).get(e)}},13423:(e,t,n)=>{var r=n(32799);e.exports=function(e){return r(this,e).has(e)}},73739:(e,t,n)=>{var r=n(32799);e.exports=function(e,t){var n=r(this,e),a=n.size;return n.set(e,t),this.size+=n.size==a?0:1,this}},90234:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},50284:e=>{e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},14634:(e,t,n)=>{var r=n(49151);e.exports=function(e){var t=r(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},49620:(e,t,n)=>{var r=n(68136)(Object,"create");e.exports=r},75964:(e,t,n)=>{var r=n(12709)(Object.keys,Object);e.exports=r},4221:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},49494:(e,t,n)=>{e=n.nmd(e);var r=n(31032),a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(t){}}();e.exports=s},43581:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},12709:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},64262:(e,t,n)=>{var r=n(13665),a=Math.max;e.exports=function(e,t,n){return t=a(void 0===t?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=a(i.length-t,0),f=Array(s);++o<s;)f[o]=i[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=i[o];return c[t]=n(f),r(e,this,c)}}},68978:(e,t,n)=>{var r=n(98667),a=n(2646);e.exports=function(e,t){return t.length<2?e:r(e,a(t,0,-1))}},97009:(e,t,n)=>{var r=n(31032),a="object"==typeof self&&self&&self.Object===Object&&self,i=r||a||Function("return this")();e.exports=i},35774:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},41596:e=>{e.exports=function(e){return this.__data__.has(e)}},22230:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},79156:(e,t,n)=>{var r=n(7532),a=n(83197)(r);e.exports=a},83197:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var a=t(),i=16-(a-r);if(r=a,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},20511:(e,t,n)=>{var r=n(38384);e.exports=function(){this.__data__=new r,this.size=0}},50835:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},90707:e=>{e.exports=function(e){return this.__data__.get(e)}},18832:e=>{e.exports=function(e){return this.__data__.has(e)}},35077:(e,t,n)=>{var r=n(38384),a=n(95797),i=n(78059);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!a||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.size,this}},10170:(e,t,n)=>{var r=n(14634),a=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(a,(function(e,n,r,a){t.push(r?a.replace(i,"$1"):n||e)})),t}));e.exports=o},69793:(e,t,n)=>{var r=n(70152);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}},27907:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(n){}try{return e+""}catch(n){}}return""}},26050:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},71547:e=>{e.exports=function(e){return function(){return e}}},29231:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},61211:(e,t,n)=>{var r=n(95481)(n(51475));e.exports=r},51475:(e,t,n)=>{var r=n(2045),a=n(56025),i=n(39753),o=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var f=null==n?0:i(n);return f<0&&(f=o(s+f,0)),r(e,a(t,3),f)}},25506:(e,t,n)=>{var r=n(55182);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},26181:(e,t,n)=>{var r=n(98667);e.exports=function(e,t,n){var a=null==e?void 0:r(e,t);return void 0===a?n:a}},75658:(e,t,n)=>{var r=n(90529),a=n(86417);e.exports=function(e,t){return null!=e&&a(e,t,r)}},2100:e=>{e.exports=function(e){return e}},34963:(e,t,n)=>{var r=n(4906),a=n(43141),i=Object.prototype,o=i.hasOwnProperty,s=i.propertyIsEnumerable,f=r(function(){return arguments}())?r:function(e){return a(e)&&o.call(e,"callee")&&!s.call(e,"callee")};e.exports=f},93629:e=>{var t=Array.isArray;e.exports=t},21473:(e,t,n)=>{var r=n(74786),a=n(24635);e.exports=function(e){return null!=e&&a(e.length)&&!r(e)}},5174:(e,t,n)=>{e=n.nmd(e);var r=n(97009),a=n(49488),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?r.Buffer:void 0,f=(s?s.isBuffer:void 0)||a;e.exports=f},18111:(e,t,n)=>{var r=n(71848);e.exports=function(e,t){return r(e,t)}},74786:(e,t,n)=>{var r=n(39066),a=n(8092);e.exports=function(e){if(!a(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},24635:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},60103:(e,t,n)=>{var r=n(53085),a=n(16194),i=n(49494),o=i&&i.isMap,s=o?a(o):r;e.exports=s},8092:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},43141:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},93977:(e,t,n)=>{var r=n(39066),a=n(31137),i=n(43141),o=Function.prototype,s=Object.prototype,f=o.toString,c=s.hasOwnProperty,l=f.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=a(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&f.call(n)==l}},36995:(e,t,n)=>{var r=n(48680),a=n(16194),i=n(49494),o=i&&i.isSet,s=o?a(o):r;e.exports=s},70152:(e,t,n)=>{var r=n(39066),a=n(43141);e.exports=function(e){return"symbol"==typeof e||a(e)&&"[object Symbol]"==r(e)}},19102:(e,t,n)=>{var r=n(68150),a=n(16194),i=n(49494),o=i&&i.isTypedArray,s=o?a(o):r;e.exports=s},12742:(e,t,n)=>{var r=n(47538),a=n(43654),i=n(21473);e.exports=function(e){return i(e)?r(e):a(e)}},73961:(e,t,n)=>{var r=n(47538),a=n(8664),i=n(21473);e.exports=function(e){return i(e)?r(e,!0):a(e)}},15727:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},763:function(e,t,n){var r;e=n.nmd(e),function(){var a,i="Expected a function",o="__lodash_hash_undefined__",s="__lodash_placeholder__",f=16,c=32,l=64,u=128,d=256,p=1/0,h=9007199254740991,b=NaN,y=4294967295,m=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",f],["flip",512],["partial",c],["partialRight",l],["rearg",d]],g="[object Arguments]",v="[object Array]",w="[object Boolean]",E="[object Date]",A="[object Error]",P="[object Function]",_="[object GeneratorFunction]",T="[object Map]",k="[object Number]",C="[object Object]",x="[object Promise]",O="[object RegExp]",S="[object Set]",R="[object String]",I="[object Symbol]",N="[object WeakMap]",B="[object ArrayBuffer]",j="[object DataView]",D="[object Float32Array]",L="[object Float64Array]",M="[object Int8Array]",U="[object Int16Array]",F="[object Int32Array]",z="[object Uint8Array]",$="[object Uint8ClampedArray]",G="[object Uint16Array]",H="[object Uint32Array]",W=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Z=/[&<>"']/g,J=RegExp(K.source),Y=RegExp(Z.source),Q=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,re=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ae=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(ae.source),oe=/^\s+/,se=/\s/,fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,be=/\w*$/,ye=/^[-+]0x[0-9a-f]+$/i,me=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,we=/^(?:0|[1-9]\d*)$/,Ee=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ae=/($^)/,Pe=/['\n\r\u2028\u2029\\]/g,_e="\\ud800-\\udfff",Te="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",xe="A-Z\\xc0-\\xd6\\xd8-\\xde",Oe="\\ufe0e\\ufe0f",Se="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Re="['\u2019]",Ie="["+_e+"]",Ne="["+Se+"]",Be="["+Te+"]",je="\\d+",De="["+ke+"]",Le="["+Ce+"]",Me="[^"+_e+Se+je+ke+Ce+xe+"]",Ue="\\ud83c[\\udffb-\\udfff]",Fe="[^"+_e+"]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",$e="[\\ud800-\\udbff][\\udc00-\\udfff]",Ge="["+xe+"]",He="\\u200d",We="(?:"+Le+"|"+Me+")",Ve="(?:"+Ge+"|"+Me+")",qe="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ke="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ze="(?:"+Be+"|"+Ue+")"+"?",Je="["+Oe+"]?",Ye=Je+Ze+("(?:"+He+"(?:"+[Fe,ze,$e].join("|")+")"+Je+Ze+")*"),Qe="(?:"+[De,ze,$e].join("|")+")"+Ye,Xe="(?:"+[Fe+Be+"?",Be,ze,$e,Ie].join("|")+")",et=RegExp(Re,"g"),tt=RegExp(Be,"g"),nt=RegExp(Ue+"(?="+Ue+")|"+Xe+Ye,"g"),rt=RegExp([Ge+"?"+Le+"+"+qe+"(?="+[Ne,Ge,"$"].join("|")+")",Ve+"+"+Ke+"(?="+[Ne,Ge+We,"$"].join("|")+")",Ge+"?"+We+"+"+qe,Ge+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",je,Qe].join("|"),"g"),at=RegExp("["+He+_e+Te+Oe+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],st=-1,ft={};ft[D]=ft[L]=ft[M]=ft[U]=ft[F]=ft[z]=ft[$]=ft[G]=ft[H]=!0,ft[g]=ft[v]=ft[B]=ft[w]=ft[j]=ft[E]=ft[A]=ft[P]=ft[T]=ft[k]=ft[C]=ft[O]=ft[S]=ft[R]=ft[N]=!1;var ct={};ct[g]=ct[v]=ct[B]=ct[j]=ct[w]=ct[E]=ct[D]=ct[L]=ct[M]=ct[U]=ct[F]=ct[T]=ct[k]=ct[C]=ct[O]=ct[S]=ct[R]=ct[I]=ct[z]=ct[$]=ct[G]=ct[H]=!0,ct[A]=ct[P]=ct[N]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,dt=parseInt,pt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,bt=pt||ht||Function("return this")(),yt=t&&!t.nodeType&&t,mt=yt&&e&&!e.nodeType&&e,gt=mt&&mt.exports===yt,vt=gt&&pt.process,wt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(t){}}(),Et=wt&&wt.isArrayBuffer,At=wt&&wt.isDate,Pt=wt&&wt.isMap,_t=wt&&wt.isRegExp,Tt=wt&&wt.isSet,kt=wt&&wt.isTypedArray;function Ct(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function xt(e,t,n,r){for(var a=-1,i=null==e?0:e.length;++a<i;){var o=e[a];t(r,o,n(o),e)}return r}function Ot(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function St(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Rt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function It(e,t){for(var n=-1,r=null==e?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}function Nt(e,t){return!!(null==e?0:e.length)&&Gt(e,t,0)>-1}function Bt(e,t,n){for(var r=-1,a=null==e?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}function jt(e,t){for(var n=-1,r=null==e?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}function Dt(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}function Lt(e,t,n,r){var a=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++a]);++a<i;)n=t(n,e[a],a,e);return n}function Mt(e,t,n,r){var a=null==e?0:e.length;for(r&&a&&(n=e[--a]);a--;)n=t(n,e[a],a,e);return n}function Ut(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ft=qt("length");function zt(e,t,n){var r;return n(e,(function(e,n,a){if(t(e,n,a))return r=n,!1})),r}function $t(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}function Gt(e,t,n){return t===t?function(e,t,n){var r=n-1,a=e.length;for(;++r<a;)if(e[r]===t)return r;return-1}(e,t,n):$t(e,Wt,n)}function Ht(e,t,n,r){for(var a=n-1,i=e.length;++a<i;)if(r(e[a],t))return a;return-1}function Wt(e){return e!==e}function Vt(e,t){var n=null==e?0:e.length;return n?Jt(e,t)/n:b}function qt(e){return function(t){return null==t?a:t[e]}}function Kt(e){return function(t){return null==e?a:e[t]}}function Zt(e,t,n,r,a){return a(e,(function(e,a,i){n=r?(r=!1,e):t(n,e,a,i)})),n}function Jt(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);o!==a&&(n=n===a?o:n+o)}return n}function Yt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Qt(e){return e?e.slice(0,yn(e)+1).replace(oe,""):e}function Xt(e){return function(t){return e(t)}}function en(e,t){return jt(t,(function(t){return e[t]}))}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Gt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Gt(t,e[n],0)>-1;);return n}var an=Kt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),on=Kt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function sn(e){return"\\"+lt[e]}function fn(e){return at.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,a=0,i=[];++n<r;){var o=e[n];o!==t&&o!==s||(e[n]=s,i[a++]=n)}return i}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function pn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function hn(e){return fn(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Ft(e)}function bn(e){return fn(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split("")}(e)}function yn(e){for(var t=e.length;t--&&se.test(e.charAt(t)););return t}var mn=Kt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var gn=function e(t){var n=(t=null==t?bt:gn.defaults(bt.Object(),t,gn.pick(bt,ot))).Array,r=t.Date,se=t.Error,_e=t.Function,Te=t.Math,ke=t.Object,Ce=t.RegExp,xe=t.String,Oe=t.TypeError,Se=n.prototype,Re=_e.prototype,Ie=ke.prototype,Ne=t["__core-js_shared__"],Be=Re.toString,je=Ie.hasOwnProperty,De=0,Le=function(){var e=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Me=Ie.toString,Ue=Be.call(ke),Fe=bt._,ze=Ce("^"+Be.call(je).replace(ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=gt?t.Buffer:a,Ge=t.Symbol,He=t.Uint8Array,We=$e?$e.allocUnsafe:a,Ve=ln(ke.getPrototypeOf,ke),qe=ke.create,Ke=Ie.propertyIsEnumerable,Ze=Se.splice,Je=Ge?Ge.isConcatSpreadable:a,Ye=Ge?Ge.iterator:a,Qe=Ge?Ge.toStringTag:a,Xe=function(){try{var e=ui(ke,"defineProperty");return e({},"",{}),e}catch(t){}}(),nt=t.clearTimeout!==bt.clearTimeout&&t.clearTimeout,at=r&&r.now!==bt.Date.now&&r.now,lt=t.setTimeout!==bt.setTimeout&&t.setTimeout,pt=Te.ceil,ht=Te.floor,yt=ke.getOwnPropertySymbols,mt=$e?$e.isBuffer:a,vt=t.isFinite,wt=Se.join,Ft=ln(ke.keys,ke),Kt=Te.max,vn=Te.min,wn=r.now,En=t.parseInt,An=Te.random,Pn=Se.reverse,_n=ui(t,"DataView"),Tn=ui(t,"Map"),kn=ui(t,"Promise"),Cn=ui(t,"Set"),xn=ui(t,"WeakMap"),On=ui(ke,"create"),Sn=xn&&new xn,Rn={},In=Li(_n),Nn=Li(Tn),Bn=Li(kn),jn=Li(Cn),Dn=Li(xn),Ln=Ge?Ge.prototype:a,Mn=Ln?Ln.valueOf:a,Un=Ln?Ln.toString:a;function Fn(e){if(ts(e)&&!Ho(e)&&!(e instanceof Hn)){if(e instanceof Gn)return e;if(je.call(e,"__wrapped__"))return Mi(e)}return new Gn(e)}var zn=function(){function e(){}return function(t){if(!es(t))return{};if(qe)return qe(t);e.prototype=t;var n=new e;return e.prototype=a,n}}();function $n(){}function Gn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=a}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Zn(e){var t=this.__data__=new Vn(e);this.size=t.size}function Jn(e,t){var n=Ho(e),r=!n&&Go(e),a=!n&&!r&&Ko(e),i=!n&&!r&&!a&&cs(e),o=n||r||a||i,s=o?Yt(e.length,xe):[],f=s.length;for(var c in e)!t&&!je.call(e,c)||o&&("length"==c||a&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||gi(c,f))||s.push(c);return s}function Yn(e){var t=e.length;return t?e[Kr(0,t-1)]:a}function Qn(e,t){return Bi(Oa(e),sr(t,0,e.length))}function Xn(e){return Bi(Oa(e))}function er(e,t,n){(n!==a&&!Fo(e[t],n)||n===a&&!(t in e))&&ir(e,t,n)}function tr(e,t,n){var r=e[t];je.call(e,t)&&Fo(r,n)&&(n!==a||t in e)||ir(e,t,n)}function nr(e,t){for(var n=e.length;n--;)if(Fo(e[n][0],t))return n;return-1}function rr(e,t,n,r){return dr(e,(function(e,a,i){t(r,e,n(e),i)})),r}function ar(e,t){return e&&Sa(t,Rs(t),e)}function ir(e,t,n){"__proto__"==t&&Xe?Xe(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function or(e,t){for(var r=-1,i=t.length,o=n(i),s=null==e;++r<i;)o[r]=s?a:ks(e,t[r]);return o}function sr(e,t,n){return e===e&&(n!==a&&(e=e<=n?e:n),t!==a&&(e=e>=t?e:t)),e}function fr(e,t,n,r,i,o){var s,f=1&t,c=2&t,l=4&t;if(n&&(s=i?n(e,r,i,o):n(e)),s!==a)return s;if(!es(e))return e;var u=Ho(e);if(u){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&je.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!f)return Oa(e,s)}else{var d=hi(e),p=d==P||d==_;if(Ko(e))return Pa(e,f);if(d==C||d==g||p&&!i){if(s=c||p?{}:yi(e),!f)return c?function(e,t){return Sa(e,pi(e),t)}(e,function(e,t){return e&&Sa(t,Is(t),e)}(s,e)):function(e,t){return Sa(e,di(e),t)}(e,ar(s,e))}else{if(!ct[d])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case B:return _a(e);case w:case E:return new r(+e);case j:return function(e,t){var n=t?_a(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case D:case L:case M:case U:case F:case z:case $:case G:case H:return Ta(e,n);case T:return new r;case k:case R:return new r(e);case O:return function(e){var t=new e.constructor(e.source,be.exec(e));return t.lastIndex=e.lastIndex,t}(e);case S:return new r;case I:return a=e,Mn?ke(Mn.call(a)):{}}var a}(e,d,f)}}o||(o=new Zn);var h=o.get(e);if(h)return h;o.set(e,s),os(e)?e.forEach((function(r){s.add(fr(r,t,n,r,e,o))})):ns(e)&&e.forEach((function(r,a){s.set(a,fr(r,t,n,a,e,o))}));var b=u?a:(l?c?ai:ri:c?Is:Rs)(e);return Ot(b||e,(function(r,a){b&&(r=e[a=r]),tr(s,a,fr(r,t,n,a,e,o))})),s}function cr(e,t,n){var r=n.length;if(null==e)return!r;for(e=ke(e);r--;){var i=n[r],o=t[i],s=e[i];if(s===a&&!(i in e)||!o(s))return!1}return!0}function lr(e,t,n){if("function"!=typeof e)throw new Oe(i);return Si((function(){e.apply(a,n)}),t)}function ur(e,t,n,r){var a=-1,i=Nt,o=!0,s=e.length,f=[],c=t.length;if(!s)return f;n&&(t=jt(t,Xt(n))),r?(i=Bt,o=!1):t.length>=200&&(i=tn,o=!1,t=new Kn(t));e:for(;++a<s;){var l=e[a],u=null==n?l:n(l);if(l=r||0!==l?l:0,o&&u===u){for(var d=c;d--;)if(t[d]===u)continue e;f.push(l)}else i(t,u,r)||f.push(l)}return f}Fn.templateSettings={escape:Q,evaluate:X,interpolate:ee,variable:"",imports:{_:Fn}},Fn.prototype=$n.prototype,Fn.prototype.constructor=Fn,Gn.prototype=zn($n.prototype),Gn.prototype.constructor=Gn,Hn.prototype=zn($n.prototype),Hn.prototype.constructor=Hn,Wn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===o?a:n}return je.call(t,e)?t[e]:a},Wn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==a:je.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===a?o:t,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(e){var t=this.__data__,n=nr(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ze.call(t,n,1),--this.size,!0)},Vn.prototype.get=function(e){var t=this.__data__,n=nr(t,e);return n<0?a:t[n][1]},Vn.prototype.has=function(e){return nr(this.__data__,e)>-1},Vn.prototype.set=function(e,t){var n=this.__data__,r=nr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(Tn||Vn),string:new Wn}},qn.prototype.delete=function(e){var t=ci(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return ci(this,e).get(e)},qn.prototype.has=function(e){return ci(this,e).has(e)},qn.prototype.set=function(e,t){var n=ci(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,o),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Zn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Zn.prototype.get=function(e){return this.__data__.get(e)},Zn.prototype.has=function(e){return this.__data__.has(e)},Zn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!Tn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var dr=Na(wr),pr=Na(Er,!0);function hr(e,t){var n=!0;return dr(e,(function(e,r,a){return n=!!t(e,r,a)})),n}function br(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],s=t(o);if(null!=s&&(f===a?s===s&&!fs(s):n(s,f)))var f=s,c=o}return c}function yr(e,t){var n=[];return dr(e,(function(e,r,a){t(e,r,a)&&n.push(e)})),n}function mr(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=mi),a||(a=[]);++i<o;){var s=e[i];t>0&&n(s)?t>1?mr(s,t-1,n,r,a):Dt(a,s):r||(a[a.length]=s)}return a}var gr=Ba(),vr=Ba(!0);function wr(e,t){return e&&gr(e,t,Rs)}function Er(e,t){return e&&vr(e,t,Rs)}function Ar(e,t){return It(t,(function(t){return Yo(e[t])}))}function Pr(e,t){for(var n=0,r=(t=va(t,e)).length;null!=e&&n<r;)e=e[Di(t[n++])];return n&&n==r?e:a}function _r(e,t,n){var r=t(e);return Ho(e)?r:Dt(r,n(e))}function Tr(e){return null==e?e===a?"[object Undefined]":"[object Null]":Qe&&Qe in ke(e)?function(e){var t=je.call(e,Qe),n=e[Qe];try{e[Qe]=a;var r=!0}catch(o){}var i=Me.call(e);r&&(t?e[Qe]=n:delete e[Qe]);return i}(e):function(e){return Me.call(e)}(e)}function kr(e,t){return e>t}function Cr(e,t){return null!=e&&je.call(e,t)}function xr(e,t){return null!=e&&t in ke(e)}function Or(e,t,r){for(var i=r?Bt:Nt,o=e[0].length,s=e.length,f=s,c=n(s),l=1/0,u=[];f--;){var d=e[f];f&&t&&(d=jt(d,Xt(t))),l=vn(d.length,l),c[f]=!r&&(t||o>=120&&d.length>=120)?new Kn(f&&d):a}d=e[0];var p=-1,h=c[0];e:for(;++p<o&&u.length<l;){var b=d[p],y=t?t(b):b;if(b=r||0!==b?b:0,!(h?tn(h,y):i(u,y,r))){for(f=s;--f;){var m=c[f];if(!(m?tn(m,y):i(e[f],y,r)))continue e}h&&h.push(y),u.push(b)}}return u}function Sr(e,t,n){var r=null==(e=Ci(e,t=va(t,e)))?e:e[Di(Zi(t))];return null==r?a:Ct(r,e,n)}function Rr(e){return ts(e)&&Tr(e)==g}function Ir(e,t,n,r,i){return e===t||(null==e||null==t||!ts(e)&&!ts(t)?e!==e&&t!==t:function(e,t,n,r,i,o){var s=Ho(e),f=Ho(t),c=s?v:hi(e),l=f?v:hi(t),u=(c=c==g?C:c)==C,d=(l=l==g?C:l)==C,p=c==l;if(p&&Ko(e)){if(!Ko(t))return!1;s=!0,u=!1}if(p&&!u)return o||(o=new Zn),s||cs(e)?ti(e,t,n,r,i,o):function(e,t,n,r,a,i,o){switch(n){case j:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case B:return!(e.byteLength!=t.byteLength||!i(new He(e),new He(t)));case w:case E:case k:return Fo(+e,+t);case A:return e.name==t.name&&e.message==t.message;case O:case R:return e==t+"";case T:var s=cn;case S:var f=1&r;if(s||(s=dn),e.size!=t.size&&!f)return!1;var c=o.get(e);if(c)return c==t;r|=2,o.set(e,t);var l=ti(s(e),s(t),r,a,i,o);return o.delete(e),l;case I:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,c,n,r,i,o);if(!(1&n)){var h=u&&je.call(e,"__wrapped__"),b=d&&je.call(t,"__wrapped__");if(h||b){var y=h?e.value():e,m=b?t.value():t;return o||(o=new Zn),i(y,m,n,r,o)}}if(!p)return!1;return o||(o=new Zn),function(e,t,n,r,i,o){var s=1&n,f=ri(e),c=f.length,l=ri(t),u=l.length;if(c!=u&&!s)return!1;var d=c;for(;d--;){var p=f[d];if(!(s?p in t:je.call(t,p)))return!1}var h=o.get(e),b=o.get(t);if(h&&b)return h==t&&b==e;var y=!0;o.set(e,t),o.set(t,e);var m=s;for(;++d<c;){var g=e[p=f[d]],v=t[p];if(r)var w=s?r(v,g,p,t,e,o):r(g,v,p,e,t,o);if(!(w===a?g===v||i(g,v,n,r,o):w)){y=!1;break}m||(m="constructor"==p)}if(y&&!m){var E=e.constructor,A=t.constructor;E==A||!("constructor"in e)||!("constructor"in t)||"function"==typeof E&&E instanceof E&&"function"==typeof A&&A instanceof A||(y=!1)}return o.delete(e),o.delete(t),y}(e,t,n,r,i,o)}(e,t,n,r,Ir,i))}function Nr(e,t,n,r){var i=n.length,o=i,s=!r;if(null==e)return!o;for(e=ke(e);i--;){var f=n[i];if(s&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++i<o;){var c=(f=n[i])[0],l=e[c],u=f[1];if(s&&f[2]){if(l===a&&!(c in e))return!1}else{var d=new Zn;if(r)var p=r(l,u,c,e,t,d);if(!(p===a?Ir(u,l,3,r,d):p))return!1}}return!0}function Br(e){return!(!es(e)||(t=e,Le&&Le in t))&&(Yo(e)?ze:ge).test(Li(e));var t}function jr(e){return"function"==typeof e?e:null==e?rf:"object"==typeof e?Ho(e)?zr(e[0],e[1]):Fr(e):pf(e)}function Dr(e){if(!Pi(e))return Ft(e);var t=[];for(var n in ke(e))je.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Lr(e){if(!es(e))return function(e){var t=[];if(null!=e)for(var n in ke(e))t.push(n);return t}(e);var t=Pi(e),n=[];for(var r in e)("constructor"!=r||!t&&je.call(e,r))&&n.push(r);return n}function Mr(e,t){return e<t}function Ur(e,t){var r=-1,a=Vo(e)?n(e.length):[];return dr(e,(function(e,n,i){a[++r]=t(e,n,i)})),a}function Fr(e){var t=li(e);return 1==t.length&&t[0][2]?Ti(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function zr(e,t){return wi(e)&&_i(t)?Ti(Di(e),t):function(n){var r=ks(n,e);return r===a&&r===t?Cs(n,e):Ir(t,r,3)}}function $r(e,t,n,r,i){e!==t&&gr(t,(function(o,s){if(i||(i=new Zn),es(o))!function(e,t,n,r,i,o,s){var f=xi(e,n),c=xi(t,n),l=s.get(c);if(l)return void er(e,n,l);var u=o?o(f,c,n+"",e,t,s):a,d=u===a;if(d){var p=Ho(c),h=!p&&Ko(c),b=!p&&!h&&cs(c);u=c,p||h||b?Ho(f)?u=f:qo(f)?u=Oa(f):h?(d=!1,u=Pa(c,!0)):b?(d=!1,u=Ta(c,!0)):u=[]:as(c)||Go(c)?(u=f,Go(f)?u=ms(f):es(f)&&!Yo(f)||(u=yi(c))):d=!1}d&&(s.set(c,u),i(u,c,r,o,s),s.delete(c));er(e,n,u)}(e,t,s,n,$r,r,i);else{var f=r?r(xi(e,s),o,s+"",e,t,i):a;f===a&&(f=o),er(e,s,f)}}),Is)}function Gr(e,t){var n=e.length;if(n)return gi(t+=t<0?n:0,n)?e[t]:a}function Hr(e,t,n){t=t.length?jt(t,(function(e){return Ho(e)?function(t){return Pr(t,1===e.length?e[0]:e)}:e})):[rf];var r=-1;t=jt(t,Xt(fi()));var a=Ur(e,(function(e,n,a){var i=jt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(a,(function(e,t){return function(e,t,n){var r=-1,a=e.criteria,i=t.criteria,o=a.length,s=n.length;for(;++r<o;){var f=ka(a[r],i[r]);if(f)return r>=s?f:f*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Wr(e,t,n){for(var r=-1,a=t.length,i={};++r<a;){var o=t[r],s=Pr(e,o);n(s,o)&&Xr(i,va(o,e),s)}return i}function Vr(e,t,n,r){var a=r?Ht:Gt,i=-1,o=t.length,s=e;for(e===t&&(t=Oa(t)),n&&(s=jt(e,Xt(n)));++i<o;)for(var f=0,c=t[i],l=n?n(c):c;(f=a(s,l,f,r))>-1;)s!==e&&Ze.call(s,f,1),Ze.call(e,f,1);return e}function qr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==i){var i=a;gi(a)?Ze.call(e,a,1):ua(e,a)}}return e}function Kr(e,t){return e+ht(An()*(t-e+1))}function Zr(e,t){var n="";if(!e||t<1||t>h)return n;do{t%2&&(n+=e),(t=ht(t/2))&&(e+=e)}while(t);return n}function Jr(e,t){return Ri(ki(e,t,rf),e+"")}function Yr(e){return Yn(Fs(e))}function Qr(e,t){var n=Fs(e);return Bi(n,sr(t,0,n.length))}function Xr(e,t,n,r){if(!es(e))return e;for(var i=-1,o=(t=va(t,e)).length,s=o-1,f=e;null!=f&&++i<o;){var c=Di(t[i]),l=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(i!=s){var u=f[c];(l=r?r(u,c,f):a)===a&&(l=es(u)?u:gi(t[i+1])?[]:{})}tr(f,c,l),f=f[c]}return e}var ea=Sn?function(e,t){return Sn.set(e,t),e}:rf,ta=Xe?function(e,t){return Xe(e,"toString",{configurable:!0,enumerable:!1,value:ef(t),writable:!0})}:rf;function na(e){return Bi(Fs(e))}function ra(e,t,r){var a=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=n(i);++a<i;)o[a]=e[a+t];return o}function aa(e,t){var n;return dr(e,(function(e,r,a){return!(n=t(e,r,a))})),!!n}function ia(e,t,n){var r=0,a=null==e?r:e.length;if("number"==typeof t&&t===t&&a<=2147483647){for(;r<a;){var i=r+a>>>1,o=e[i];null!==o&&!fs(o)&&(n?o<=t:o<t)?r=i+1:a=i}return a}return oa(e,t,rf,n)}function oa(e,t,n,r){var i=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=n(t))!==t,f=null===t,c=fs(t),l=t===a;i<o;){var u=ht((i+o)/2),d=n(e[u]),p=d!==a,h=null===d,b=d===d,y=fs(d);if(s)var m=r||b;else m=l?b&&(r||p):f?b&&p&&(r||!h):c?b&&p&&!h&&(r||!y):!h&&!y&&(r?d<=t:d<t);m?i=u+1:o=u}return vn(o,4294967294)}function sa(e,t){for(var n=-1,r=e.length,a=0,i=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!Fo(s,f)){var f=s;i[a++]=0===o?0:o}}return i}function fa(e){return"number"==typeof e?e:fs(e)?b:+e}function ca(e){if("string"==typeof e)return e;if(Ho(e))return jt(e,ca)+"";if(fs(e))return Un?Un.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function la(e,t,n){var r=-1,a=Nt,i=e.length,o=!0,s=[],f=s;if(n)o=!1,a=Bt;else if(i>=200){var c=t?null:Za(e);if(c)return dn(c);o=!1,a=tn,f=new Kn}else f=t?[]:s;e:for(;++r<i;){var l=e[r],u=t?t(l):l;if(l=n||0!==l?l:0,o&&u===u){for(var d=f.length;d--;)if(f[d]===u)continue e;t&&f.push(u),s.push(l)}else a(f,u,n)||(f!==s&&f.push(u),s.push(l))}return s}function ua(e,t){return null==(e=Ci(e,t=va(t,e)))||delete e[Di(Zi(t))]}function da(e,t,n,r){return Xr(e,t,n(Pr(e,t)),r)}function pa(e,t,n,r){for(var a=e.length,i=r?a:-1;(r?i--:++i<a)&&t(e[i],i,e););return n?ra(e,r?0:i,r?i+1:a):ra(e,r?i+1:0,r?a:i)}function ha(e,t){var n=e;return n instanceof Hn&&(n=n.value()),Lt(t,(function(e,t){return t.func.apply(t.thisArg,Dt([e],t.args))}),n)}function ba(e,t,r){var a=e.length;if(a<2)return a?la(e[0]):[];for(var i=-1,o=n(a);++i<a;)for(var s=e[i],f=-1;++f<a;)f!=i&&(o[i]=ur(o[i]||s,e[f],t,r));return la(mr(o,1),t,r)}function ya(e,t,n){for(var r=-1,i=e.length,o=t.length,s={};++r<i;){var f=r<o?t[r]:a;n(s,e[r],f)}return s}function ma(e){return qo(e)?e:[]}function ga(e){return"function"==typeof e?e:rf}function va(e,t){return Ho(e)?e:wi(e,t)?[e]:ji(gs(e))}var wa=Jr;function Ea(e,t,n){var r=e.length;return n=n===a?r:n,!t&&n>=r?e:ra(e,t,n)}var Aa=nt||function(e){return bt.clearTimeout(e)};function Pa(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function _a(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Ta(e,t){var n=t?_a(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ka(e,t){if(e!==t){var n=e!==a,r=null===e,i=e===e,o=fs(e),s=t!==a,f=null===t,c=t===t,l=fs(t);if(!f&&!l&&!o&&e>t||o&&s&&c&&!f&&!l||r&&s&&c||!n&&c||!i)return 1;if(!r&&!o&&!l&&e<t||l&&n&&i&&!r&&!o||f&&n&&i||!s&&i||!c)return-1}return 0}function Ca(e,t,r,a){for(var i=-1,o=e.length,s=r.length,f=-1,c=t.length,l=Kt(o-s,0),u=n(c+l),d=!a;++f<c;)u[f]=t[f];for(;++i<s;)(d||i<o)&&(u[r[i]]=e[i]);for(;l--;)u[f++]=e[i++];return u}function xa(e,t,r,a){for(var i=-1,o=e.length,s=-1,f=r.length,c=-1,l=t.length,u=Kt(o-f,0),d=n(u+l),p=!a;++i<u;)d[i]=e[i];for(var h=i;++c<l;)d[h+c]=t[c];for(;++s<f;)(p||i<o)&&(d[h+r[s]]=e[i++]);return d}function Oa(e,t){var r=-1,a=e.length;for(t||(t=n(a));++r<a;)t[r]=e[r];return t}function Sa(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var f=t[o],c=r?r(n[f],e[f],f,n,e):a;c===a&&(c=e[f]),i?ir(n,f,c):tr(n,f,c)}return n}function Ra(e,t){return function(n,r){var a=Ho(n)?xt:rr,i=t?t():{};return a(n,e,fi(r,2),i)}}function Ia(e){return Jr((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:a,s=i>2?n[2]:a;for(o=e.length>3&&"function"==typeof o?(i--,o):a,s&&vi(n[0],n[1],s)&&(o=i<3?a:o,i=1),t=ke(t);++r<i;){var f=n[r];f&&e(t,f,r,o)}return t}))}function Na(e,t){return function(n,r){if(null==n)return n;if(!Vo(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=ke(n);(t?i--:++i<a)&&!1!==r(o[i],i,o););return n}}function Ba(e){return function(t,n,r){for(var a=-1,i=ke(t),o=r(t),s=o.length;s--;){var f=o[e?s:++a];if(!1===n(i[f],f,i))break}return t}}function ja(e){return function(t){var n=fn(t=gs(t))?bn(t):a,r=n?n[0]:t.charAt(0),i=n?Ea(n,1).join(""):t.slice(1);return r[e]()+i}}function Da(e){return function(t){return Lt(Ys(Gs(t).replace(et,"")),e,"")}}function La(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=zn(e.prototype),r=e.apply(n,t);return es(r)?r:n}}function Ma(e){return function(t,n,r){var i=ke(t);if(!Vo(t)){var o=fi(n,3);t=Rs(t),n=function(e){return o(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[o?t[s]:s]:a}}function Ua(e){return ni((function(t){var n=t.length,r=n,o=Gn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Oe(i);if(o&&!f&&"wrapper"==oi(s))var f=new Gn([],!0)}for(r=f?r:n;++r<n;){var c=oi(s=t[r]),l="wrapper"==c?ii(s):a;f=l&&Ei(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?f[oi(l[0])].apply(f,l[3]):1==s.length&&Ei(s)?f[c]():f.thru(s)}return function(){var e=arguments,r=e[0];if(f&&1==e.length&&Ho(r))return f.plant(r).value();for(var a=0,i=n?t[a].apply(this,e):r;++a<n;)i=t[a].call(this,i);return i}}))}function Fa(e,t,r,i,o,s,f,c,l,d){var p=t&u,h=1&t,b=2&t,y=24&t,m=512&t,g=b?a:La(e);return function u(){for(var v=arguments.length,w=n(v),E=v;E--;)w[E]=arguments[E];if(y)var A=si(u),P=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(w,A);if(i&&(w=Ca(w,i,o,y)),s&&(w=xa(w,s,f,y)),v-=P,y&&v<d){var _=un(w,A);return qa(e,t,Fa,u.placeholder,r,w,_,c,l,d-v)}var T=h?r:this,k=b?T[e]:e;return v=w.length,c?w=function(e,t){var n=e.length,r=vn(t.length,n),i=Oa(e);for(;r--;){var o=t[r];e[r]=gi(o,n)?i[o]:a}return e}(w,c):m&&v>1&&w.reverse(),p&&l<v&&(w.length=l),this&&this!==bt&&this instanceof u&&(k=g||La(k)),k.apply(T,w)}}function za(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,a,i){t(r,n(e),a,i)})),r}(n,e,t(r),{})}}function $a(e,t){return function(n,r){var i;if(n===a&&r===a)return t;if(n!==a&&(i=n),r!==a){if(i===a)return r;"string"==typeof n||"string"==typeof r?(n=ca(n),r=ca(r)):(n=fa(n),r=fa(r)),i=e(n,r)}return i}}function Ga(e){return ni((function(t){return t=jt(t,Xt(fi())),Jr((function(n){var r=this;return e(t,(function(e){return Ct(e,r,n)}))}))}))}function Ha(e,t){var n=(t=t===a?" ":ca(t)).length;if(n<2)return n?Zr(t,e):t;var r=Zr(t,pt(e/hn(t)));return fn(t)?Ea(bn(r),0,e).join(""):r.slice(0,e)}function Wa(e){return function(t,r,i){return i&&"number"!=typeof i&&vi(t,r,i)&&(r=i=a),t=ps(t),r===a?(r=t,t=0):r=ps(r),function(e,t,r,a){for(var i=-1,o=Kt(pt((t-e)/(r||1)),0),s=n(o);o--;)s[a?o:++i]=e,e+=r;return s}(t,r,i=i===a?t<r?1:-1:ps(i),e)}}function Va(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ys(t),n=ys(n)),e(t,n)}}function qa(e,t,n,r,i,o,s,f,u,d){var p=8&t;t|=p?c:l,4&(t&=~(p?l:c))||(t&=-4);var h=[e,t,i,p?o:a,p?s:a,p?a:o,p?a:s,f,u,d],b=n.apply(a,h);return Ei(e)&&Oi(b,h),b.placeholder=r,Ii(b,e,t)}function Ka(e){var t=Te[e];return function(e,n){if(e=ys(e),(n=null==n?0:vn(hs(n),292))&&vt(e)){var r=(gs(e)+"e").split("e");return+((r=(gs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Za=Cn&&1/dn(new Cn([,-0]))[1]==p?function(e){return new Cn(e)}:cf;function Ja(e){return function(t){var n=hi(t);return n==T?cn(t):n==S?pn(t):function(e,t){return jt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Ya(e,t,r,o,p,h,b,y){var m=2&t;if(!m&&"function"!=typeof e)throw new Oe(i);var g=o?o.length:0;if(g||(t&=-97,o=p=a),b=b===a?b:Kt(hs(b),0),y=y===a?y:hs(y),g-=p?p.length:0,t&l){var v=o,w=p;o=p=a}var E=m?a:ii(e),A=[e,t,r,o,p,v,w,h,b,y];if(E&&function(e,t){var n=e[1],r=t[1],a=n|r,i=a<131,o=r==u&&8==n||r==u&&n==d&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!o)return e;1&r&&(e[2]=t[2],a|=1&n?0:4);var f=t[3];if(f){var c=e[3];e[3]=c?Ca(c,f,t[4]):f,e[4]=c?un(e[3],s):t[4]}(f=t[5])&&(c=e[5],e[5]=c?xa(c,f,t[6]):f,e[6]=c?un(e[5],s):t[6]);(f=t[7])&&(e[7]=f);r&u&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=a}(A,E),e=A[0],t=A[1],r=A[2],o=A[3],p=A[4],!(y=A[9]=A[9]===a?m?0:e.length:Kt(A[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)P=8==t||t==f?function(e,t,r){var i=La(e);return function o(){for(var s=arguments.length,f=n(s),c=s,l=si(o);c--;)f[c]=arguments[c];var u=s<3&&f[0]!==l&&f[s-1]!==l?[]:un(f,l);return(s-=u.length)<r?qa(e,t,Fa,o.placeholder,a,f,u,a,a,r-s):Ct(this&&this!==bt&&this instanceof o?i:e,this,f)}}(e,t,y):t!=c&&33!=t||p.length?Fa.apply(a,A):function(e,t,r,a){var i=1&t,o=La(e);return function t(){for(var s=-1,f=arguments.length,c=-1,l=a.length,u=n(l+f),d=this&&this!==bt&&this instanceof t?o:e;++c<l;)u[c]=a[c];for(;f--;)u[c++]=arguments[++s];return Ct(d,i?r:this,u)}}(e,t,r,o);else var P=function(e,t,n){var r=1&t,a=La(e);return function t(){return(this&&this!==bt&&this instanceof t?a:e).apply(r?n:this,arguments)}}(e,t,r);return Ii((E?ea:Oi)(P,A),e,t)}function Qa(e,t,n,r){return e===a||Fo(e,Ie[n])&&!je.call(r,n)?t:e}function Xa(e,t,n,r,i,o){return es(e)&&es(t)&&(o.set(t,e),$r(e,t,a,Xa,o),o.delete(t)),e}function ei(e){return as(e)?a:e}function ti(e,t,n,r,i,o){var s=1&n,f=e.length,c=t.length;if(f!=c&&!(s&&c>f))return!1;var l=o.get(e),u=o.get(t);if(l&&u)return l==t&&u==e;var d=-1,p=!0,h=2&n?new Kn:a;for(o.set(e,t),o.set(t,e);++d<f;){var b=e[d],y=t[d];if(r)var m=s?r(y,b,d,t,e,o):r(b,y,d,e,t,o);if(m!==a){if(m)continue;p=!1;break}if(h){if(!Ut(t,(function(e,t){if(!tn(h,t)&&(b===e||i(b,e,n,r,o)))return h.push(t)}))){p=!1;break}}else if(b!==y&&!i(b,y,n,r,o)){p=!1;break}}return o.delete(e),o.delete(t),p}function ni(e){return Ri(ki(e,a,Hi),e+"")}function ri(e){return _r(e,Rs,di)}function ai(e){return _r(e,Is,pi)}var ii=Sn?function(e){return Sn.get(e)}:cf;function oi(e){for(var t=e.name+"",n=Rn[t],r=je.call(Rn,t)?n.length:0;r--;){var a=n[r],i=a.func;if(null==i||i==e)return a.name}return t}function si(e){return(je.call(Fn,"placeholder")?Fn:e).placeholder}function fi(){var e=Fn.iteratee||af;return e=e===af?jr:e,arguments.length?e(arguments[0],arguments[1]):e}function ci(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function li(e){for(var t=Rs(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,_i(a)]}return t}function ui(e,t){var n=function(e,t){return null==e?a:e[t]}(e,t);return Br(n)?n:a}var di=yt?function(e){return null==e?[]:(e=ke(e),It(yt(e),(function(t){return Ke.call(e,t)})))}:yf,pi=yt?function(e){for(var t=[];e;)Dt(t,di(e)),e=Ve(e);return t}:yf,hi=Tr;function bi(e,t,n){for(var r=-1,a=(t=va(t,e)).length,i=!1;++r<a;){var o=Di(t[r]);if(!(i=null!=e&&n(e,o)))break;e=e[o]}return i||++r!=a?i:!!(a=null==e?0:e.length)&&Xo(a)&&gi(o,a)&&(Ho(e)||Go(e))}function yi(e){return"function"!=typeof e.constructor||Pi(e)?{}:zn(Ve(e))}function mi(e){return Ho(e)||Go(e)||!!(Je&&e&&e[Je])}function gi(e,t){var n=typeof e;return!!(t=null==t?h:t)&&("number"==n||"symbol"!=n&&we.test(e))&&e>-1&&e%1==0&&e<t}function vi(e,t,n){if(!es(n))return!1;var r=typeof t;return!!("number"==r?Vo(n)&&gi(t,n.length):"string"==r&&t in n)&&Fo(n[t],e)}function wi(e,t){if(Ho(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!fs(e))||(ne.test(e)||!te.test(e)||null!=t&&e in ke(t))}function Ei(e){var t=oi(e),n=Fn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=ii(n);return!!r&&e===r[0]}(_n&&hi(new _n(new ArrayBuffer(1)))!=j||Tn&&hi(new Tn)!=T||kn&&hi(kn.resolve())!=x||Cn&&hi(new Cn)!=S||xn&&hi(new xn)!=N)&&(hi=function(e){var t=Tr(e),n=t==C?e.constructor:a,r=n?Li(n):"";if(r)switch(r){case In:return j;case Nn:return T;case Bn:return x;case jn:return S;case Dn:return N}return t});var Ai=Ne?Yo:mf;function Pi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ie)}function _i(e){return e===e&&!es(e)}function Ti(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==a||e in ke(n)))}}function ki(e,t,r){return t=Kt(t===a?e.length-1:t,0),function(){for(var a=arguments,i=-1,o=Kt(a.length-t,0),s=n(o);++i<o;)s[i]=a[t+i];i=-1;for(var f=n(t+1);++i<t;)f[i]=a[i];return f[t]=r(s),Ct(e,this,f)}}function Ci(e,t){return t.length<2?e:Pr(e,ra(t,0,-1))}function xi(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Oi=Ni(ea),Si=lt||function(e,t){return bt.setTimeout(e,t)},Ri=Ni(ta);function Ii(e,t,n){var r=t+"";return Ri(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(fe,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Ot(m,(function(n){var r="_."+n[0];t&n[1]&&!Nt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(le):[]}(r),n)))}function Ni(e){var t=0,n=0;return function(){var r=wn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(a,arguments)}}function Bi(e,t){var n=-1,r=e.length,i=r-1;for(t=t===a?r:t;++n<t;){var o=Kr(n,i),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var ji=function(e){var t=Bo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(re,(function(e,n,r,a){t.push(r?a.replace(pe,"$1"):n||e)})),t}));function Di(e){if("string"==typeof e||fs(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Li(e){if(null!=e){try{return Be.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Mi(e){if(e instanceof Hn)return e.clone();var t=new Gn(e.__wrapped__,e.__chain__);return t.__actions__=Oa(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ui=Jr((function(e,t){return qo(e)?ur(e,mr(t,1,qo,!0)):[]})),Fi=Jr((function(e,t){var n=Zi(t);return qo(n)&&(n=a),qo(e)?ur(e,mr(t,1,qo,!0),fi(n,2)):[]})),zi=Jr((function(e,t){var n=Zi(t);return qo(n)&&(n=a),qo(e)?ur(e,mr(t,1,qo,!0),a,n):[]}));function $i(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:hs(n);return a<0&&(a=Kt(r+a,0)),$t(e,fi(t,3),a)}function Gi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==a&&(i=hs(n),i=n<0?Kt(r+i,0):vn(i,r-1)),$t(e,fi(t,3),i,!0)}function Hi(e){return(null==e?0:e.length)?mr(e,1):[]}function Wi(e){return e&&e.length?e[0]:a}var Vi=Jr((function(e){var t=jt(e,ma);return t.length&&t[0]===e[0]?Or(t):[]})),qi=Jr((function(e){var t=Zi(e),n=jt(e,ma);return t===Zi(n)?t=a:n.pop(),n.length&&n[0]===e[0]?Or(n,fi(t,2)):[]})),Ki=Jr((function(e){var t=Zi(e),n=jt(e,ma);return(t="function"==typeof t?t:a)&&n.pop(),n.length&&n[0]===e[0]?Or(n,a,t):[]}));function Zi(e){var t=null==e?0:e.length;return t?e[t-1]:a}var Ji=Jr(Yi);function Yi(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}var Qi=ni((function(e,t){var n=null==e?0:e.length,r=or(e,t);return qr(e,jt(t,(function(e){return gi(e,n)?+e:e})).sort(ka)),r}));function Xi(e){return null==e?e:Pn.call(e)}var eo=Jr((function(e){return la(mr(e,1,qo,!0))})),to=Jr((function(e){var t=Zi(e);return qo(t)&&(t=a),la(mr(e,1,qo,!0),fi(t,2))})),no=Jr((function(e){var t=Zi(e);return t="function"==typeof t?t:a,la(mr(e,1,qo,!0),a,t)}));function ro(e){if(!e||!e.length)return[];var t=0;return e=It(e,(function(e){if(qo(e))return t=Kt(e.length,t),!0})),Yt(t,(function(t){return jt(e,qt(t))}))}function ao(e,t){if(!e||!e.length)return[];var n=ro(e);return null==t?n:jt(n,(function(e){return Ct(t,a,e)}))}var io=Jr((function(e,t){return qo(e)?ur(e,t):[]})),oo=Jr((function(e){return ba(It(e,qo))})),so=Jr((function(e){var t=Zi(e);return qo(t)&&(t=a),ba(It(e,qo),fi(t,2))})),fo=Jr((function(e){var t=Zi(e);return t="function"==typeof t?t:a,ba(It(e,qo),a,t)})),co=Jr(ro);var lo=Jr((function(e){var t=e.length,n=t>1?e[t-1]:a;return n="function"==typeof n?(e.pop(),n):a,ao(e,n)}));function uo(e){var t=Fn(e);return t.__chain__=!0,t}function po(e,t){return t(e)}var ho=ni((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return or(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&gi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:po,args:[i],thisArg:a}),new Gn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(a),e}))):this.thru(i)}));var bo=Ra((function(e,t,n){je.call(e,n)?++e[n]:ir(e,n,1)}));var yo=Ma($i),mo=Ma(Gi);function go(e,t){return(Ho(e)?Ot:dr)(e,fi(t,3))}function vo(e,t){return(Ho(e)?St:pr)(e,fi(t,3))}var wo=Ra((function(e,t,n){je.call(e,n)?e[n].push(t):ir(e,n,[t])}));var Eo=Jr((function(e,t,r){var a=-1,i="function"==typeof t,o=Vo(e)?n(e.length):[];return dr(e,(function(e){o[++a]=i?Ct(t,e,r):Sr(e,t,r)})),o})),Ao=Ra((function(e,t,n){ir(e,n,t)}));function Po(e,t){return(Ho(e)?jt:Ur)(e,fi(t,3))}var _o=Ra((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var To=Jr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&vi(e,t[0],t[1])?t=[]:n>2&&vi(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,mr(t,1),[])})),ko=at||function(){return bt.Date.now()};function Co(e,t,n){return t=n?a:t,t=e&&null==t?e.length:t,Ya(e,u,a,a,a,a,t)}function xo(e,t){var n;if("function"!=typeof t)throw new Oe(i);return e=hs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=a),n}}var Oo=Jr((function(e,t,n){var r=1;if(n.length){var a=un(n,si(Oo));r|=c}return Ya(e,r,t,n,a)})),So=Jr((function(e,t,n){var r=3;if(n.length){var a=un(n,si(So));r|=c}return Ya(t,r,e,n,a)}));function Ro(e,t,n){var r,o,s,f,c,l,u=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Oe(i);function b(t){var n=r,i=o;return r=o=a,u=t,f=e.apply(i,n)}function y(e){var n=e-l;return l===a||n>=t||n<0||p&&e-u>=s}function m(){var e=ko();if(y(e))return g(e);c=Si(m,function(e){var n=t-(e-l);return p?vn(n,s-(e-u)):n}(e))}function g(e){return c=a,h&&r?b(e):(r=o=a,f)}function v(){var e=ko(),n=y(e);if(r=arguments,o=this,l=e,n){if(c===a)return function(e){return u=e,c=Si(m,t),d?b(e):f}(l);if(p)return Aa(c),c=Si(m,t),b(l)}return c===a&&(c=Si(m,t)),f}return t=ys(t)||0,es(n)&&(d=!!n.leading,s=(p="maxWait"in n)?Kt(ys(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h),v.cancel=function(){c!==a&&Aa(c),u=0,r=l=o=c=a},v.flush=function(){return c===a?f:g(ko())},v}var Io=Jr((function(e,t){return lr(e,1,t)})),No=Jr((function(e,t,n){return lr(e,ys(t)||0,n)}));function Bo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(i);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(Bo.Cache||qn),n}function jo(e){if("function"!=typeof e)throw new Oe(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Bo.Cache=qn;var Do=wa((function(e,t){var n=(t=1==t.length&&Ho(t[0])?jt(t[0],Xt(fi())):jt(mr(t,1),Xt(fi()))).length;return Jr((function(r){for(var a=-1,i=vn(r.length,n);++a<i;)r[a]=t[a].call(this,r[a]);return Ct(e,this,r)}))})),Lo=Jr((function(e,t){var n=un(t,si(Lo));return Ya(e,c,a,t,n)})),Mo=Jr((function(e,t){var n=un(t,si(Mo));return Ya(e,l,a,t,n)})),Uo=ni((function(e,t){return Ya(e,d,a,a,a,t)}));function Fo(e,t){return e===t||e!==e&&t!==t}var zo=Va(kr),$o=Va((function(e,t){return e>=t})),Go=Rr(function(){return arguments}())?Rr:function(e){return ts(e)&&je.call(e,"callee")&&!Ke.call(e,"callee")},Ho=n.isArray,Wo=Et?Xt(Et):function(e){return ts(e)&&Tr(e)==B};function Vo(e){return null!=e&&Xo(e.length)&&!Yo(e)}function qo(e){return ts(e)&&Vo(e)}var Ko=mt||mf,Zo=At?Xt(At):function(e){return ts(e)&&Tr(e)==E};function Jo(e){if(!ts(e))return!1;var t=Tr(e);return t==A||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function Yo(e){if(!es(e))return!1;var t=Tr(e);return t==P||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qo(e){return"number"==typeof e&&e==hs(e)}function Xo(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function es(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ts(e){return null!=e&&"object"==typeof e}var ns=Pt?Xt(Pt):function(e){return ts(e)&&hi(e)==T};function rs(e){return"number"==typeof e||ts(e)&&Tr(e)==k}function as(e){if(!ts(e)||Tr(e)!=C)return!1;var t=Ve(e);if(null===t)return!0;var n=je.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Be.call(n)==Ue}var is=_t?Xt(_t):function(e){return ts(e)&&Tr(e)==O};var os=Tt?Xt(Tt):function(e){return ts(e)&&hi(e)==S};function ss(e){return"string"==typeof e||!Ho(e)&&ts(e)&&Tr(e)==R}function fs(e){return"symbol"==typeof e||ts(e)&&Tr(e)==I}var cs=kt?Xt(kt):function(e){return ts(e)&&Xo(e.length)&&!!ft[Tr(e)]};var ls=Va(Mr),us=Va((function(e,t){return e<=t}));function ds(e){if(!e)return[];if(Vo(e))return ss(e)?bn(e):Oa(e);if(Ye&&e[Ye])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ye]());var t=hi(e);return(t==T?cn:t==S?dn:Fs)(e)}function ps(e){return e?(e=ys(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function hs(e){var t=ps(e),n=t%1;return t===t?n?t-n:t:0}function bs(e){return e?sr(hs(e),0,y):0}function ys(e){if("number"==typeof e)return e;if(fs(e))return b;if(es(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=es(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=me.test(e);return n||ve.test(e)?dt(e.slice(2),n?2:8):ye.test(e)?b:+e}function ms(e){return Sa(e,Is(e))}function gs(e){return null==e?"":ca(e)}var vs=Ia((function(e,t){if(Pi(t)||Vo(t))Sa(t,Rs(t),e);else for(var n in t)je.call(t,n)&&tr(e,n,t[n])})),ws=Ia((function(e,t){Sa(t,Is(t),e)})),Es=Ia((function(e,t,n,r){Sa(t,Is(t),e,r)})),As=Ia((function(e,t,n,r){Sa(t,Rs(t),e,r)})),Ps=ni(or);var _s=Jr((function(e,t){e=ke(e);var n=-1,r=t.length,i=r>2?t[2]:a;for(i&&vi(t[0],t[1],i)&&(r=1);++n<r;)for(var o=t[n],s=Is(o),f=-1,c=s.length;++f<c;){var l=s[f],u=e[l];(u===a||Fo(u,Ie[l])&&!je.call(e,l))&&(e[l]=o[l])}return e})),Ts=Jr((function(e){return e.push(a,Xa),Ct(Bs,a,e)}));function ks(e,t,n){var r=null==e?a:Pr(e,t);return r===a?n:r}function Cs(e,t){return null!=e&&bi(e,t,xr)}var xs=za((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),e[t]=n}),ef(rf)),Os=za((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Me.call(t)),je.call(e,t)?e[t].push(n):e[t]=[n]}),fi),Ss=Jr(Sr);function Rs(e){return Vo(e)?Jn(e):Dr(e)}function Is(e){return Vo(e)?Jn(e,!0):Lr(e)}var Ns=Ia((function(e,t,n){$r(e,t,n)})),Bs=Ia((function(e,t,n,r){$r(e,t,n,r)})),js=ni((function(e,t){var n={};if(null==e)return n;var r=!1;t=jt(t,(function(t){return t=va(t,e),r||(r=t.length>1),t})),Sa(e,ai(e),n),r&&(n=fr(n,7,ei));for(var a=t.length;a--;)ua(n,t[a]);return n}));var Ds=ni((function(e,t){return null==e?{}:function(e,t){return Wr(e,t,(function(t,n){return Cs(e,n)}))}(e,t)}));function Ls(e,t){if(null==e)return{};var n=jt(ai(e),(function(e){return[e]}));return t=fi(t),Wr(e,n,(function(e,n){return t(e,n[0])}))}var Ms=Ja(Rs),Us=Ja(Is);function Fs(e){return null==e?[]:en(e,Rs(e))}var zs=Da((function(e,t,n){return t=t.toLowerCase(),e+(n?$s(t):t)}));function $s(e){return Js(gs(e).toLowerCase())}function Gs(e){return(e=gs(e))&&e.replace(Ee,an).replace(tt,"")}var Hs=Da((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ws=Da((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Vs=ja("toLowerCase");var qs=Da((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Ks=Da((function(e,t,n){return e+(n?" ":"")+Js(t)}));var Zs=Da((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Js=ja("toUpperCase");function Ys(e,t,n){return e=gs(e),(t=n?a:t)===a?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Qs=Jr((function(e,t){try{return Ct(e,a,t)}catch(n){return Jo(n)?n:new se(n)}})),Xs=ni((function(e,t){return Ot(t,(function(t){t=Di(t),ir(e,t,Oo(e[t],e))})),e}));function ef(e){return function(){return e}}var tf=Ua(),nf=Ua(!0);function rf(e){return e}function af(e){return jr("function"==typeof e?e:fr(e,1))}var of=Jr((function(e,t){return function(n){return Sr(n,e,t)}})),sf=Jr((function(e,t){return function(n){return Sr(e,n,t)}}));function ff(e,t,n){var r=Rs(t),a=Ar(t,r);null!=n||es(t)&&(a.length||!r.length)||(n=t,t=e,e=this,a=Ar(t,Rs(t)));var i=!(es(n)&&"chain"in n)||!!n.chain,o=Yo(e);return Ot(a,(function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Oa(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Dt([this.value()],arguments))})})),e}function cf(){}var lf=Ga(jt),uf=Ga(Rt),df=Ga(Ut);function pf(e){return wi(e)?qt(Di(e)):function(e){return function(t){return Pr(t,e)}}(e)}var hf=Wa(),bf=Wa(!0);function yf(){return[]}function mf(){return!1}var gf=$a((function(e,t){return e+t}),0),vf=Ka("ceil"),wf=$a((function(e,t){return e/t}),1),Ef=Ka("floor");var Af=$a((function(e,t){return e*t}),1),Pf=Ka("round"),_f=$a((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Oe(i);return e=hs(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Co,Fn.assign=vs,Fn.assignIn=ws,Fn.assignInWith=Es,Fn.assignWith=As,Fn.at=Ps,Fn.before=xo,Fn.bind=Oo,Fn.bindAll=Xs,Fn.bindKey=So,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ho(e)?e:[e]},Fn.chain=uo,Fn.chunk=function(e,t,r){t=(r?vi(e,t,r):t===a)?1:Kt(hs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,f=n(pt(i/t));o<i;)f[s++]=ra(e,o,o+=t);return f},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,a=[];++t<n;){var i=e[t];i&&(a[r++]=i)}return a},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=n(e-1),r=arguments[0],a=e;a--;)t[a-1]=arguments[a];return Dt(Ho(r)?Oa(r):[r],mr(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=fi();return e=t?jt(e,(function(e){if("function"!=typeof e[1])throw new Oe(i);return[n(e[0]),e[1]]})):[],Jr((function(n){for(var r=-1;++r<t;){var a=e[r];if(Ct(a[0],this,n))return Ct(a[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=Rs(e);return function(n){return cr(n,e,t)}}(fr(e,1))},Fn.constant=ef,Fn.countBy=bo,Fn.create=function(e,t){var n=zn(e);return null==t?n:ar(n,t)},Fn.curry=function e(t,n,r){var i=Ya(t,8,a,a,a,a,a,n=r?a:n);return i.placeholder=e.placeholder,i},Fn.curryRight=function e(t,n,r){var i=Ya(t,f,a,a,a,a,a,n=r?a:n);return i.placeholder=e.placeholder,i},Fn.debounce=Ro,Fn.defaults=_s,Fn.defaultsDeep=Ts,Fn.defer=Io,Fn.delay=No,Fn.difference=Ui,Fn.differenceBy=Fi,Fn.differenceWith=zi,Fn.drop=function(e,t,n){var r=null==e?0:e.length;return r?ra(e,(t=n||t===a?1:hs(t))<0?0:t,r):[]},Fn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?ra(e,0,(t=r-(t=n||t===a?1:hs(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?pa(e,fi(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?pa(e,fi(t,3),!0):[]},Fn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&vi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=hs(n))<0&&(n=-n>i?0:i+n),(r=r===a||r>i?i:hs(r))<0&&(r+=i),r=n>r?0:bs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Fn.filter=function(e,t){return(Ho(e)?It:yr)(e,fi(t,3))},Fn.flatMap=function(e,t){return mr(Po(e,t),1)},Fn.flatMapDeep=function(e,t){return mr(Po(e,t),p)},Fn.flatMapDepth=function(e,t,n){return n=n===a?1:hs(n),mr(Po(e,t),n)},Fn.flatten=Hi,Fn.flattenDeep=function(e){return(null==e?0:e.length)?mr(e,p):[]},Fn.flattenDepth=function(e,t){return(null==e?0:e.length)?mr(e,t=t===a?1:hs(t)):[]},Fn.flip=function(e){return Ya(e,512)},Fn.flow=tf,Fn.flowRight=nf,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r},Fn.functions=function(e){return null==e?[]:Ar(e,Rs(e))},Fn.functionsIn=function(e){return null==e?[]:Ar(e,Is(e))},Fn.groupBy=wo,Fn.initial=function(e){return(null==e?0:e.length)?ra(e,0,-1):[]},Fn.intersection=Vi,Fn.intersectionBy=qi,Fn.intersectionWith=Ki,Fn.invert=xs,Fn.invertBy=Os,Fn.invokeMap=Eo,Fn.iteratee=af,Fn.keyBy=Ao,Fn.keys=Rs,Fn.keysIn=Is,Fn.map=Po,Fn.mapKeys=function(e,t){var n={};return t=fi(t,3),wr(e,(function(e,r,a){ir(n,t(e,r,a),e)})),n},Fn.mapValues=function(e,t){var n={};return t=fi(t,3),wr(e,(function(e,r,a){ir(n,r,t(e,r,a))})),n},Fn.matches=function(e){return Fr(fr(e,1))},Fn.matchesProperty=function(e,t){return zr(e,fr(t,1))},Fn.memoize=Bo,Fn.merge=Ns,Fn.mergeWith=Bs,Fn.method=of,Fn.methodOf=sf,Fn.mixin=ff,Fn.negate=jo,Fn.nthArg=function(e){return e=hs(e),Jr((function(t){return Gr(t,e)}))},Fn.omit=js,Fn.omitBy=function(e,t){return Ls(e,jo(fi(t)))},Fn.once=function(e){return xo(2,e)},Fn.orderBy=function(e,t,n,r){return null==e?[]:(Ho(t)||(t=null==t?[]:[t]),Ho(n=r?a:n)||(n=null==n?[]:[n]),Hr(e,t,n))},Fn.over=lf,Fn.overArgs=Do,Fn.overEvery=uf,Fn.overSome=df,Fn.partial=Lo,Fn.partialRight=Mo,Fn.partition=_o,Fn.pick=Ds,Fn.pickBy=Ls,Fn.property=pf,Fn.propertyOf=function(e){return function(t){return null==e?a:Pr(e,t)}},Fn.pull=Ji,Fn.pullAll=Yi,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,fi(n,2)):e},Fn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,a,n):e},Fn.pullAt=Qi,Fn.range=hf,Fn.rangeRight=bf,Fn.rearg=Uo,Fn.reject=function(e,t){return(Ho(e)?It:yr)(e,jo(fi(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,a=[],i=e.length;for(t=fi(t,3);++r<i;){var o=e[r];t(o,r,e)&&(n.push(o),a.push(r))}return qr(e,a),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Oe(i);return Jr(e,t=t===a?t:hs(t))},Fn.reverse=Xi,Fn.sampleSize=function(e,t,n){return t=(n?vi(e,t,n):t===a)?1:hs(t),(Ho(e)?Qn:Qr)(e,t)},Fn.set=function(e,t,n){return null==e?e:Xr(e,t,n)},Fn.setWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:Xr(e,t,n,r)},Fn.shuffle=function(e){return(Ho(e)?Xn:na)(e)},Fn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&vi(e,t,n)?(t=0,n=r):(t=null==t?0:hs(t),n=n===a?r:hs(n)),ra(e,t,n)):[]},Fn.sortBy=To,Fn.sortedUniq=function(e){return e&&e.length?sa(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?sa(e,fi(t,2)):[]},Fn.split=function(e,t,n){return n&&"number"!=typeof n&&vi(e,t,n)&&(t=n=a),(n=n===a?y:n>>>0)?(e=gs(e))&&("string"==typeof t||null!=t&&!is(t))&&!(t=ca(t))&&fn(e)?Ea(bn(e),0,n):e.split(t,n):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Oe(i);return t=null==t?0:Kt(hs(t),0),Jr((function(n){var r=n[t],a=Ea(n,0,t);return r&&Dt(a,r),Ct(e,this,a)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?ra(e,1,t):[]},Fn.take=function(e,t,n){return e&&e.length?ra(e,0,(t=n||t===a?1:hs(t))<0?0:t):[]},Fn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ra(e,(t=r-(t=n||t===a?1:hs(t)))<0?0:t,r):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?pa(e,fi(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?pa(e,fi(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var r=!0,a=!0;if("function"!=typeof e)throw new Oe(i);return es(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Ro(e,t,{leading:r,maxWait:t,trailing:a})},Fn.thru=po,Fn.toArray=ds,Fn.toPairs=Ms,Fn.toPairsIn=Us,Fn.toPath=function(e){return Ho(e)?jt(e,Di):fs(e)?[e]:Oa(ji(gs(e)))},Fn.toPlainObject=ms,Fn.transform=function(e,t,n){var r=Ho(e),a=r||Ko(e)||cs(e);if(t=fi(t,4),null==n){var i=e&&e.constructor;n=a?r?new i:[]:es(e)&&Yo(i)?zn(Ve(e)):{}}return(a?Ot:wr)(e,(function(e,r,a){return t(n,e,r,a)})),n},Fn.unary=function(e){return Co(e,1)},Fn.union=eo,Fn.unionBy=to,Fn.unionWith=no,Fn.uniq=function(e){return e&&e.length?la(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?la(e,fi(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:a,e&&e.length?la(e,a,t):[]},Fn.unset=function(e,t){return null==e||ua(e,t)},Fn.unzip=ro,Fn.unzipWith=ao,Fn.update=function(e,t,n){return null==e?e:da(e,t,ga(n))},Fn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:a,null==e?e:da(e,t,ga(n),r)},Fn.values=Fs,Fn.valuesIn=function(e){return null==e?[]:en(e,Is(e))},Fn.without=io,Fn.words=Ys,Fn.wrap=function(e,t){return Lo(ga(t),e)},Fn.xor=oo,Fn.xorBy=so,Fn.xorWith=fo,Fn.zip=co,Fn.zipObject=function(e,t){return ya(e||[],t||[],tr)},Fn.zipObjectDeep=function(e,t){return ya(e||[],t||[],Xr)},Fn.zipWith=lo,Fn.entries=Ms,Fn.entriesIn=Us,Fn.extend=ws,Fn.extendWith=Es,ff(Fn,Fn),Fn.add=gf,Fn.attempt=Qs,Fn.camelCase=zs,Fn.capitalize=$s,Fn.ceil=vf,Fn.clamp=function(e,t,n){return n===a&&(n=t,t=a),n!==a&&(n=(n=ys(n))===n?n:0),t!==a&&(t=(t=ys(t))===t?t:0),sr(ys(e),t,n)},Fn.clone=function(e){return fr(e,4)},Fn.cloneDeep=function(e){return fr(e,5)},Fn.cloneDeepWith=function(e,t){return fr(e,5,t="function"==typeof t?t:a)},Fn.cloneWith=function(e,t){return fr(e,4,t="function"==typeof t?t:a)},Fn.conformsTo=function(e,t){return null==t||cr(e,t,Rs(t))},Fn.deburr=Gs,Fn.defaultTo=function(e,t){return null==e||e!==e?t:e},Fn.divide=wf,Fn.endsWith=function(e,t,n){e=gs(e),t=ca(t);var r=e.length,i=n=n===a?r:sr(hs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Fn.eq=Fo,Fn.escape=function(e){return(e=gs(e))&&Y.test(e)?e.replace(Z,on):e},Fn.escapeRegExp=function(e){return(e=gs(e))&&ie.test(e)?e.replace(ae,"\\$&"):e},Fn.every=function(e,t,n){var r=Ho(e)?Rt:hr;return n&&vi(e,t,n)&&(t=a),r(e,fi(t,3))},Fn.find=yo,Fn.findIndex=$i,Fn.findKey=function(e,t){return zt(e,fi(t,3),wr)},Fn.findLast=mo,Fn.findLastIndex=Gi,Fn.findLastKey=function(e,t){return zt(e,fi(t,3),Er)},Fn.floor=Ef,Fn.forEach=go,Fn.forEachRight=vo,Fn.forIn=function(e,t){return null==e?e:gr(e,fi(t,3),Is)},Fn.forInRight=function(e,t){return null==e?e:vr(e,fi(t,3),Is)},Fn.forOwn=function(e,t){return e&&wr(e,fi(t,3))},Fn.forOwnRight=function(e,t){return e&&Er(e,fi(t,3))},Fn.get=ks,Fn.gt=zo,Fn.gte=$o,Fn.has=function(e,t){return null!=e&&bi(e,t,Cr)},Fn.hasIn=Cs,Fn.head=Wi,Fn.identity=rf,Fn.includes=function(e,t,n,r){e=Vo(e)?e:Fs(e),n=n&&!r?hs(n):0;var a=e.length;return n<0&&(n=Kt(a+n,0)),ss(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Gt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var a=null==n?0:hs(n);return a<0&&(a=Kt(r+a,0)),Gt(e,t,a)},Fn.inRange=function(e,t,n){return t=ps(t),n===a?(n=t,t=0):n=ps(n),function(e,t,n){return e>=vn(t,n)&&e<Kt(t,n)}(e=ys(e),t,n)},Fn.invoke=Ss,Fn.isArguments=Go,Fn.isArray=Ho,Fn.isArrayBuffer=Wo,Fn.isArrayLike=Vo,Fn.isArrayLikeObject=qo,Fn.isBoolean=function(e){return!0===e||!1===e||ts(e)&&Tr(e)==w},Fn.isBuffer=Ko,Fn.isDate=Zo,Fn.isElement=function(e){return ts(e)&&1===e.nodeType&&!as(e)},Fn.isEmpty=function(e){if(null==e)return!0;if(Vo(e)&&(Ho(e)||"string"==typeof e||"function"==typeof e.splice||Ko(e)||cs(e)||Go(e)))return!e.length;var t=hi(e);if(t==T||t==S)return!e.size;if(Pi(e))return!Dr(e).length;for(var n in e)if(je.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return Ir(e,t)},Fn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:a)?n(e,t):a;return r===a?Ir(e,t,a,n):!!r},Fn.isError=Jo,Fn.isFinite=function(e){return"number"==typeof e&&vt(e)},Fn.isFunction=Yo,Fn.isInteger=Qo,Fn.isLength=Xo,Fn.isMap=ns,Fn.isMatch=function(e,t){return e===t||Nr(e,t,li(t))},Fn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:a,Nr(e,t,li(t),n)},Fn.isNaN=function(e){return rs(e)&&e!=+e},Fn.isNative=function(e){if(Ai(e))throw new se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Br(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=rs,Fn.isObject=es,Fn.isObjectLike=ts,Fn.isPlainObject=as,Fn.isRegExp=is,Fn.isSafeInteger=function(e){return Qo(e)&&e>=-9007199254740991&&e<=h},Fn.isSet=os,Fn.isString=ss,Fn.isSymbol=fs,Fn.isTypedArray=cs,Fn.isUndefined=function(e){return e===a},Fn.isWeakMap=function(e){return ts(e)&&hi(e)==N},Fn.isWeakSet=function(e){return ts(e)&&"[object WeakSet]"==Tr(e)},Fn.join=function(e,t){return null==e?"":wt.call(e,t)},Fn.kebabCase=Hs,Fn.last=Zi,Fn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==a&&(i=(i=hs(n))<0?Kt(r+i,0):vn(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):$t(e,Wt,i,!0)},Fn.lowerCase=Ws,Fn.lowerFirst=Vs,Fn.lt=ls,Fn.lte=us,Fn.max=function(e){return e&&e.length?br(e,rf,kr):a},Fn.maxBy=function(e,t){return e&&e.length?br(e,fi(t,2),kr):a},Fn.mean=function(e){return Vt(e,rf)},Fn.meanBy=function(e,t){return Vt(e,fi(t,2))},Fn.min=function(e){return e&&e.length?br(e,rf,Mr):a},Fn.minBy=function(e,t){return e&&e.length?br(e,fi(t,2),Mr):a},Fn.stubArray=yf,Fn.stubFalse=mf,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=Af,Fn.nth=function(e,t){return e&&e.length?Gr(e,hs(t)):a},Fn.noConflict=function(){return bt._===this&&(bt._=Fe),this},Fn.noop=cf,Fn.now=ko,Fn.pad=function(e,t,n){e=gs(e);var r=(t=hs(t))?hn(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return Ha(ht(a),n)+e+Ha(pt(a),n)},Fn.padEnd=function(e,t,n){e=gs(e);var r=(t=hs(t))?hn(e):0;return t&&r<t?e+Ha(t-r,n):e},Fn.padStart=function(e,t,n){e=gs(e);var r=(t=hs(t))?hn(e):0;return t&&r<t?Ha(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),En(gs(e).replace(oe,""),t||0)},Fn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&vi(e,t,n)&&(t=n=a),n===a&&("boolean"==typeof t?(n=t,t=a):"boolean"==typeof e&&(n=e,e=a)),e===a&&t===a?(e=0,t=1):(e=ps(e),t===a?(t=e,e=0):t=ps(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=An();return vn(e+i*(t-e+ut("1e-"+((i+"").length-1))),t)}return Kr(e,t)},Fn.reduce=function(e,t,n){var r=Ho(e)?Lt:Zt,a=arguments.length<3;return r(e,fi(t,4),n,a,dr)},Fn.reduceRight=function(e,t,n){var r=Ho(e)?Mt:Zt,a=arguments.length<3;return r(e,fi(t,4),n,a,pr)},Fn.repeat=function(e,t,n){return t=(n?vi(e,t,n):t===a)?1:hs(t),Zr(gs(e),t)},Fn.replace=function(){var e=arguments,t=gs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,n){var r=-1,i=(t=va(t,e)).length;for(i||(i=1,e=a);++r<i;){var o=null==e?a:e[Di(t[r])];o===a&&(r=i,o=n),e=Yo(o)?o.call(e):o}return e},Fn.round=Pf,Fn.runInContext=e,Fn.sample=function(e){return(Ho(e)?Yn:Yr)(e)},Fn.size=function(e){if(null==e)return 0;if(Vo(e))return ss(e)?hn(e):e.length;var t=hi(e);return t==T||t==S?e.size:Dr(e).length},Fn.snakeCase=qs,Fn.some=function(e,t,n){var r=Ho(e)?Ut:aa;return n&&vi(e,t,n)&&(t=a),r(e,fi(t,3))},Fn.sortedIndex=function(e,t){return ia(e,t)},Fn.sortedIndexBy=function(e,t,n){return oa(e,t,fi(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ia(e,t);if(r<n&&Fo(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return ia(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return oa(e,t,fi(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=ia(e,t,!0)-1;if(Fo(e[n],t))return n}return-1},Fn.startCase=Ks,Fn.startsWith=function(e,t,n){return e=gs(e),n=null==n?0:sr(hs(n),0,e.length),t=ca(t),e.slice(n,n+t.length)==t},Fn.subtract=_f,Fn.sum=function(e){return e&&e.length?Jt(e,rf):0},Fn.sumBy=function(e,t){return e&&e.length?Jt(e,fi(t,2)):0},Fn.template=function(e,t,n){var r=Fn.templateSettings;n&&vi(e,t,n)&&(t=a),e=gs(e),t=Es({},t,r,Qa);var i,o,s=Es({},t.imports,r.imports,Qa),f=Rs(s),c=en(s,f),l=0,u=t.interpolate||Ae,d="__p += '",p=Ce((t.escape||Ae).source+"|"+u.source+"|"+(u===ee?he:Ae).source+"|"+(t.evaluate||Ae).source+"|$","g"),h="//# sourceURL="+(je.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++st+"]")+"\n";e.replace(p,(function(t,n,r,a,s,f){return r||(r=a),d+=e.slice(l,f).replace(Pe,sn),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),s&&(o=!0,d+="';\n"+s+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=f+t.length,t})),d+="';\n";var b=je.call(t,"variable")&&t.variable;if(b){if(de.test(b))throw new se("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(o?d.replace(W,""):d).replace(V,"$1").replace(q,"$1;"),d="function("+(b||"obj")+") {\n"+(b?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var y=Qs((function(){return _e(f,h+"return "+d).apply(a,c)}));if(y.source=d,Jo(y))throw y;return y},Fn.times=function(e,t){if((e=hs(e))<1||e>h)return[];var n=y,r=vn(e,y);t=fi(t),e-=y;for(var a=Yt(r,t);++n<e;)t(n);return a},Fn.toFinite=ps,Fn.toInteger=hs,Fn.toLength=bs,Fn.toLower=function(e){return gs(e).toLowerCase()},Fn.toNumber=ys,Fn.toSafeInteger=function(e){return e?sr(hs(e),-9007199254740991,h):0===e?e:0},Fn.toString=gs,Fn.toUpper=function(e){return gs(e).toUpperCase()},Fn.trim=function(e,t,n){if((e=gs(e))&&(n||t===a))return Qt(e);if(!e||!(t=ca(t)))return e;var r=bn(e),i=bn(t);return Ea(r,nn(r,i),rn(r,i)+1).join("")},Fn.trimEnd=function(e,t,n){if((e=gs(e))&&(n||t===a))return e.slice(0,yn(e)+1);if(!e||!(t=ca(t)))return e;var r=bn(e);return Ea(r,0,rn(r,bn(t))+1).join("")},Fn.trimStart=function(e,t,n){if((e=gs(e))&&(n||t===a))return e.replace(oe,"");if(!e||!(t=ca(t)))return e;var r=bn(e);return Ea(r,nn(r,bn(t))).join("")},Fn.truncate=function(e,t){var n=30,r="...";if(es(t)){var i="separator"in t?t.separator:i;n="length"in t?hs(t.length):n,r="omission"in t?ca(t.omission):r}var o=(e=gs(e)).length;if(fn(e)){var s=bn(e);o=s.length}if(n>=o)return e;var f=n-hn(r);if(f<1)return r;var c=s?Ea(s,0,f).join(""):e.slice(0,f);if(i===a)return c+r;if(s&&(f+=c.length-f),is(i)){if(e.slice(f).search(i)){var l,u=c;for(i.global||(i=Ce(i.source,gs(be.exec(i))+"g")),i.lastIndex=0;l=i.exec(u);)var d=l.index;c=c.slice(0,d===a?f:d)}}else if(e.indexOf(ca(i),f)!=f){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+r},Fn.unescape=function(e){return(e=gs(e))&&J.test(e)?e.replace(K,mn):e},Fn.uniqueId=function(e){var t=++De;return gs(e)+t},Fn.upperCase=Zs,Fn.upperFirst=Js,Fn.each=go,Fn.eachRight=vo,Fn.first=Wi,ff(Fn,function(){var e={};return wr(Fn,(function(t,n){je.call(Fn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),Fn.VERSION="4.17.21",Ot(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),Ot(["drop","take"],(function(e,t){Hn.prototype[e]=function(n){n=n===a?1:Kt(hs(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,y),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ot(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:fi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Ot(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),Ot(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(rf)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Jr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Sr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(jo(fi(e)))},Hn.prototype.slice=function(e,t){e=hs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==a&&(n=(t=hs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(y)},wr(Hn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Fn[r?"take"+("last"==t?"Right":""):t],o=r||/^find/.test(t);i&&(Fn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,f=t instanceof Hn,c=s[0],l=f||Ho(t),u=function(e){var t=i.apply(Fn,Dt([e],s));return r&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(f=l=!1);var d=this.__chain__,p=!!this.__actions__.length,h=o&&!d,b=f&&!p;if(!o&&l){t=b?t:new Hn(this);var y=e.apply(t,s);return y.__actions__.push({func:po,args:[u],thisArg:a}),new Gn(y,d)}return h&&b?e.apply(this,s):(y=this.thru(u),h?r?y.value()[0]:y.value():y)})})),Ot(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Se[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var a=this.value();return t.apply(Ho(a)?a:[],e)}return this[n]((function(n){return t.apply(Ho(n)?n:[],e)}))}})),wr(Hn.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";je.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[Fa(a,2).name]=[{name:"wrapper",func:a}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Oa(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Oa(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Oa(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ho(e),r=t<0,a=n?e.length:0,i=function(e,t,n){var r=-1,a=n.length;for(;++r<a;){var i=n[r],o=i.size;switch(i.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=vn(t,e+o);break;case"takeRight":e=Kt(e,t-o)}}return{start:e,end:t}}(0,a,this.__views__),o=i.start,s=i.end,f=s-o,c=r?s:o-1,l=this.__iteratees__,u=l.length,d=0,p=vn(f,this.__takeCount__);if(!n||!r&&a==f&&p==f)return ha(e,this.__actions__);var h=[];e:for(;f--&&d<p;){for(var b=-1,y=e[c+=t];++b<u;){var m=l[b],g=m.iteratee,v=m.type,w=g(y);if(2==v)y=w;else if(!w){if(1==v)continue e;break e}}h[d++]=y}return h},Fn.prototype.at=ho,Fn.prototype.chain=function(){return uo(this)},Fn.prototype.commit=function(){return new Gn(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===a&&(this.__values__=ds(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?a:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,n=this;n instanceof $n;){var r=Mi(n);r.__index__=0,r.__values__=a,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:po,args:[Xi],thisArg:a}),new Gn(t,this.__chain__)}return this.thru(Xi)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return ha(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,Ye&&(Fn.prototype[Ye]=function(){return this}),Fn}();bt._=gn,(r=function(){return gn}.call(t,n,t,e))===a||(e.exports=r)}.call(this)},49151:(e,t,n)=>{var r=n(78059);function a(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(a.Cache||r),n}a.Cache=r,e.exports=a},24242:(e,t,n)=>{var r=n(68950),a=n(31905),i=n(86555),o=n(43082),s=n(64503),f=n(26013),c=n(27038),l=n(55341),u=c((function(e,t){var n={};if(null==e)return n;var c=!1;t=r(t,(function(t){return t=o(t,e),c||(c=t.length>1),t})),s(e,l(e),n),c&&(n=a(n,7,f));for(var u=t.length;u--;)i(n,t[u]);return n}));e.exports=u},10038:(e,t,n)=>{var r=n(9586),a=n(4084),i=n(25823),o=n(69793);e.exports=function(e){return i(e)?r(o(e)):a(e)}},68174:e=>{e.exports=function(){return[]}},49488:e=>{e.exports=function(){return!1}},91495:(e,t,n)=>{var r=n(42582),a=1/0;e.exports=function(e){return e?(e=r(e))===a||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},39753:(e,t,n)=>{var r=n(91495);e.exports=function(e){var t=r(e),n=t%1;return t===t?n?t-n:t:0}},42582:(e,t,n)=>{var r=n(20821),a=n(8092),i=n(70152),o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,f=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(a(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=a(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=s.test(e);return n||f.test(e)?c(e.slice(2),n?2:8):o.test(e)?NaN:+e}},63518:(e,t,n)=>{var r=n(2446);e.exports=function(e){return null==e?"":r(e)}},69341:(e,t,n)=>{"use strict";const r=n(20400),a=Symbol("max"),i=Symbol("length"),o=Symbol("lengthCalculator"),s=Symbol("allowStale"),f=Symbol("maxAge"),c=Symbol("dispose"),l=Symbol("noDisposeOnSet"),u=Symbol("lruList"),d=Symbol("cache"),p=Symbol("updateAgeOnGet"),h=()=>1;const b=(e,t,n)=>{const r=e[d].get(t);if(r){const t=r.value;if(y(e,t)){if(g(e,r),!e[s])return}else n&&(e[p]&&(r.value.now=Date.now()),e[u].unshiftNode(r));return t.value}},y=(e,t)=>{if(!t||!t.maxAge&&!e[f])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[f]&&n>e[f]},m=e=>{if(e[i]>e[a])for(let t=e[u].tail;e[i]>e[a]&&null!==t;){const n=t.prev;g(e,t),t=n}},g=(e,t)=>{if(t){const n=t.value;e[c]&&e[c](n.key,n.value),e[i]-=n.length,e[d].delete(n.key),e[u].removeNode(t)}};class v{constructor(e,t,n,r,a){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=a||0}}const w=(e,t,n,r)=>{let a=n.value;y(e,a)&&(g(e,n),e[s]||(a=void 0)),a&&t.call(r,a.value,a.key,e)};e.exports=class{constructor(e){if("number"===typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!==typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[a]=e.max||1/0;const t=e.length||h;if(this[o]="function"!==typeof t?h:t,this[s]=e.stale||!1,e.maxAge&&"number"!==typeof e.maxAge)throw new TypeError("maxAge must be a number");this[f]=e.maxAge||0,this[c]=e.dispose,this[l]=e.noDisposeOnSet||!1,this[p]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!==typeof e||e<0)throw new TypeError("max must be a non-negative number");this[a]=e||1/0,m(this)}get max(){return this[a]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!==typeof e)throw new TypeError("maxAge must be a non-negative number");this[f]=e,m(this)}get maxAge(){return this[f]}set lengthCalculator(e){"function"!==typeof e&&(e=h),e!==this[o]&&(this[o]=e,this[i]=0,this[u].forEach((e=>{e.length=this[o](e.value,e.key),this[i]+=e.length}))),m(this)}get lengthCalculator(){return this[o]}get length(){return this[i]}get itemCount(){return this[u].length}rforEach(e,t){t=t||this;for(let n=this[u].tail;null!==n;){const r=n.prev;w(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[u].head;null!==n;){const r=n.next;w(this,e,n,t),n=r}}keys(){return this[u].toArray().map((e=>e.key))}values(){return this[u].toArray().map((e=>e.value))}reset(){this[c]&&this[u]&&this[u].length&&this[u].forEach((e=>this[c](e.key,e.value))),this[d]=new Map,this[u]=new r,this[i]=0}dump(){return this[u].map((e=>!y(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[u]}set(e,t,n){if((n=n||this[f])&&"number"!==typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,s=this[o](t,e);if(this[d].has(e)){if(s>this[a])return g(this,this[d].get(e)),!1;const o=this[d].get(e).value;return this[c]&&(this[l]||this[c](e,o.value)),o.now=r,o.maxAge=n,o.value=t,this[i]+=s-o.length,o.length=s,this.get(e),m(this),!0}const p=new v(e,t,s,r,n);return p.length>this[a]?(this[c]&&this[c](e,t),!1):(this[i]+=p.length,this[u].unshift(p),this[d].set(e,this[u].head),m(this),!0)}has(e){if(!this[d].has(e))return!1;const t=this[d].get(e).value;return!y(this,t)}get(e){return b(this,e,!0)}peek(e){return b(this,e,!1)}pop(){const e=this[u].tail;return e?(g(this,e),e.value):null}del(e){g(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],a=r.e||0;if(0===a)this.set(r.k,r.v);else{const e=a-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[d].forEach(((e,t)=>b(this,t,!1)))}}},5126:(e,t,n)=>{"use strict";n.d(t,{kU:()=>u,Dp:()=>l,ET:()=>d});const r=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r<n.length;r++)n[r]=255;for(var a=0;a<e.length;a++){var i=e.charAt(a),o=i.charCodeAt(0);if(255!==n[o])throw new TypeError(i+" is ambiguous");n[o]=a}var s=e.length,f=e.charAt(0),c=Math.log(s)/Math.log(256),l=Math.log(256)/Math.log(s);function u(e){if("string"!==typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;var t=0;if(" "!==e[t]){for(var r=0,a=0;e[t]===f;)r++,t++;for(var i=(e.length-t)*c+1>>>0,o=new Uint8Array(i);e[t];){var l=n[e.charCodeAt(t)];if(255===l)return;for(var u=0,d=i-1;(0!==l||u<a)&&-1!==d;d--,u++)l+=s*o[d]>>>0,o[d]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");a=u,t++}if(" "!==e[t]){for(var p=i-a;p!==i&&0===o[p];)p++;for(var h=new Uint8Array(r+(i-p)),b=r;p!==i;)h[b++]=o[p++];return h}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var n=0,r=0,a=0,i=t.length;a!==i&&0===t[a];)a++,n++;for(var o=(i-a)*l+1>>>0,c=new Uint8Array(o);a!==i;){for(var u=t[a],d=0,p=o-1;(0!==u||d<r)&&-1!==p;p--,d++)u+=256*c[p]>>>0,c[p]=u%s>>>0,u=u/s>>>0;if(0!==u)throw new Error("Non-zero carry");r=d,a++}for(var h=o-r;h!==o&&0===c[h];)h++;for(var b=f.repeat(n);h<o;++h)b+=e.charAt(c[h]);return b},decodeUnsafe:u,decode:function(e){var n=u(e);if(n)return n;throw new Error(`Non-${t} character`)}}};var a=n(29205);class i{constructor(e,t,n){this.name=e,this.prefix=t,this.baseEncode=n}encode(e){if(e instanceof Uint8Array)return`${this.prefix}${this.baseEncode(e)}`;throw Error("Unknown type, must be binary type")}}class o{constructor(e,t,n){if(this.name=e,this.prefix=t,void 0===t.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=t.codePointAt(0),this.baseDecode=n}decode(e){if("string"===typeof e){if(e.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(e)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(e.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(e){return f(this,e)}}class s{constructor(e){this.decoders=e}or(e){return f(this,e)}decode(e){const t=e[0],n=this.decoders[t];if(n)return n.decode(e);throw RangeError(`Unable to decode multibase string ${JSON.stringify(e)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const f=(e,t)=>new s({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class c{constructor(e,t,n,r){this.name=e,this.prefix=t,this.baseEncode=n,this.baseDecode=r,this.encoder=new i(e,t,n),this.decoder=new o(e,t,r)}encode(e){return this.encoder.encode(e)}decode(e){return this.decoder.decode(e)}}const l=e=>{let{name:t,prefix:n,encode:r,decode:a}=e;return new c(t,n,r,a)},u=e=>{let{prefix:t,name:n,alphabet:i}=e;const{encode:o,decode:s}=r(i,n);return l({prefix:t,name:n,encode:o,decode:e=>(0,a.coerce)(s(e))})},d=e=>{let{name:t,prefix:n,bitsPerChar:r,alphabet:a}=e;return l({prefix:n,name:t,encode:e=>((e,t,n)=>{const r="="===t[t.length-1],a=(1<<n)-1;let i="",o=0,s=0;for(let f=0;f<e.length;++f)for(s=s<<8|e[f],o+=8;o>n;)o-=n,i+=t[a&s>>o];if(o&&(i+=t[a&s<<n-o]),r)for(;i.length*n&7;)i+="=";return i})(e,a,r),decode:e=>((e,t,n,r)=>{const a={};for(let l=0;l<t.length;++l)a[t[l]]=l;let i=e.length;for(;"="===e[i-1];)--i;const o=new Uint8Array(i*n/8|0);let s=0,f=0,c=0;for(let l=0;l<i;++l){const t=a[e[l]];if(void 0===t)throw new SyntaxError(`Non-${r} character`);f=f<<n|t,s+=n,s>=8&&(s-=8,o[c++]=255&f>>s)}if(s>=n||255&f<<8-s)throw new SyntaxError("Unexpected end of data");return o})(e,a,r,t)})}},98525:(e,t,n)=>{"use strict";n.r(t),n.d(t,{base32:()=>a,base32hex:()=>f,base32hexpad:()=>l,base32hexpadupper:()=>u,base32hexupper:()=>c,base32pad:()=>o,base32padupper:()=>s,base32upper:()=>i,base32z:()=>d});var r=n(5126);const a=(0,r.ET)({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),i=(0,r.ET)({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),o=(0,r.ET)({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),s=(0,r.ET)({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),f=(0,r.ET)({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),c=(0,r.ET)({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),l=(0,r.ET)({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),u=(0,r.ET)({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),d=(0,r.ET)({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5})},83130:(e,t,n)=>{"use strict";n.r(t),n.d(t,{base58btc:()=>a,base58flickr:()=>i});var r=n(5126);const a=(0,r.kU)({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),i=(0,r.kU)({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"})},29205:(e,t,n)=>{"use strict";n.r(t),n.d(t,{coerce:()=>s,empty:()=>r,equals:()=>o,fromHex:()=>i,fromString:()=>c,isBinary:()=>f,toHex:()=>a,toString:()=>l});const r=new Uint8Array(0),a=e=>e.reduce(((e,t)=>e+t.toString(16).padStart(2,"0")),""),i=e=>{const t=e.match(/../g);return t?new Uint8Array(t.map((e=>parseInt(e,16)))):r},o=(e,t)=>{if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(let n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0},s=e=>{if(e instanceof Uint8Array&&"Uint8Array"===e.constructor.name)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},f=e=>e instanceof ArrayBuffer||ArrayBuffer.isView(e),c=e=>(new TextEncoder).encode(e),l=e=>(new TextDecoder).decode(e)},61267:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Digest:()=>f,create:()=>i,decode:()=>o,equals:()=>s});var r=n(29205),a=n(32290);const i=(e,t)=>{const n=t.byteLength,r=a.encodingLength(e),i=r+a.encodingLength(n),o=new Uint8Array(i+n);return a.encodeTo(e,o,0),a.encodeTo(n,o,r),o.set(t,i),new f(e,n,t,o)},o=e=>{const t=(0,r.coerce)(e),[n,i]=a.decode(t),[o,s]=a.decode(t.subarray(i)),c=t.subarray(i+s);if(c.byteLength!==o)throw new Error("Incorrect length");return new f(n,o,c,t)},s=(e,t)=>e===t||e.code===t.code&&e.size===t.size&&(0,r.equals)(e.bytes,t.bytes);class f{constructor(e,t,n,r){this.code=e,this.size=t,this.digest=n,this.bytes=r}}},82023:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Hasher:()=>i,from:()=>a});var r=n(61267);const a=e=>{let{name:t,code:n,encode:r}=e;return new i(t,n,r)};class i{constructor(e,t,n){this.name=e,this.code=t,this.encode=n}digest(e){if(e instanceof Uint8Array){const t=this.encode(e);return t instanceof Uint8Array?r.create(this.code,t):t.then((e=>r.create(this.code,e)))}throw Error("Unknown type, must be binary type")}}},18644:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CID:()=>f,bytes:()=>s,digest:()=>a,hasher:()=>w,varint:()=>r});var r=n(32290),a=n(61267),i=n(83130),o=n(98525),s=n(29205);class f{constructor(e,t,n,r){this.code=t,this.version=e,this.multihash=n,this.bytes=r,this.byteOffset=r.byteOffset,this.byteLength=r.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:m,byteLength:m,code:y,version:y,multihash:y,bytes:y,_baseCache:m,asCID:m})}toV0(){if(0===this.version)return this;{const{code:e,multihash:t}=this;if(e!==d)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(t.code!==p)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return f.createV0(t)}}toV1(){switch(this.version){case 0:{const{code:e,digest:t}=this.multihash,n=a.create(e,t);return f.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(e){return e&&this.code===e.code&&this.version===e.version&&a.equals(this.multihash,e.multihash)}toString(e){const{bytes:t,version:n,_baseCache:r}=this;return 0===n?l(t,r,e||i.base58btc.encoder):u(t,r,e||o.base32.encoder)}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(e){return g(/^0\.0/,v),!(!e||!e[b]&&e.asCID!==e)}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(e){if(e instanceof f)return e;if(null!=e&&e.asCID===e){const{version:t,code:n,multihash:r,bytes:a}=e;return new f(t,n,r,a||h(t,n,r.bytes))}if(null!=e&&!0===e[b]){const{version:t,multihash:n,code:r}=e,i=a.decode(n);return f.create(t,r,i)}return null}static create(e,t,n){if("number"!==typeof t)throw new Error("String codecs are no longer supported");switch(e){case 0:if(t!==d)throw new Error(`Version 0 CID must use dag-pb (code: ${d}) block encoding`);return new f(e,t,n,n.bytes);case 1:{const r=h(e,t,n.bytes);return new f(e,t,n,r)}default:throw new Error("Invalid version")}}static createV0(e){return f.create(0,d,e)}static createV1(e,t){return f.create(1,e,t)}static decode(e){const[t,n]=f.decodeFirst(e);if(n.length)throw new Error("Incorrect length");return t}static decodeFirst(e){const t=f.inspectBytes(e),n=t.size-t.multihashSize,r=(0,s.coerce)(e.subarray(n,n+t.multihashSize));if(r.byteLength!==t.multihashSize)throw new Error("Incorrect length");const i=r.subarray(t.multihashSize-t.digestSize),o=new a.Digest(t.multihashCode,t.digestSize,i,r);return[0===t.version?f.createV0(o):f.createV1(t.codec,o),e.subarray(t.size)]}static inspectBytes(e){let t=0;const n=()=>{const[n,a]=r.decode(e.subarray(t));return t+=a,n};let a=n(),i=d;if(18===a?(a=0,t=0):1===a&&(i=n()),0!==a&&1!==a)throw new RangeError(`Invalid CID version ${a}`);const o=t,s=n(),f=n(),c=t+f;return{version:a,codec:i,multihashCode:s,digestSize:f,multihashSize:c-o,size:c}}static parse(e,t){const[n,r]=c(e,t),a=f.decode(r);return a._baseCache.set(n,e),a}}const c=(e,t)=>{switch(e[0]){case"Q":{const n=t||i.base58btc;return[i.base58btc.prefix,n.decode(`${i.base58btc.prefix}${e}`)]}case i.base58btc.prefix:{const n=t||i.base58btc;return[i.base58btc.prefix,n.decode(e)]}case o.base32.prefix:{const n=t||o.base32;return[o.base32.prefix,n.decode(e)]}default:if(null==t)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[e[0],t.decode(e)]}},l=(e,t,n)=>{const{prefix:r}=n;if(r!==i.base58btc.prefix)throw Error(`Cannot string encode V0 in ${n.name} encoding`);const a=t.get(r);if(null==a){const a=n.encode(e).slice(1);return t.set(r,a),a}return a},u=(e,t,n)=>{const{prefix:r}=n,a=t.get(r);if(null==a){const a=n.encode(e);return t.set(r,a),a}return a},d=112,p=18,h=(e,t,n)=>{const a=r.encodingLength(e),i=a+r.encodingLength(t),o=new Uint8Array(i+n.byteLength);return r.encodeTo(e,o,0),r.encodeTo(t,o,a),o.set(n,i),o},b=Symbol.for("@ipld/js-cid/CID"),y={writable:!1,configurable:!1,enumerable:!0},m={writable:!1,enumerable:!1,configurable:!1},g=(e,t)=>{if(!e.test("0.0.0-dev"))throw new Error(t);console.warn(t)},v="CID.isCID(v) is deprecated and will be removed in the next major release.\nFollowing code pattern:\n\nif (CID.isCID(value)) {\n  doSomethingWithCID(value)\n}\n\nIs replaced with:\n\nconst cid = CID.asCID(value)\nif (cid) {\n  // Make sure to use cid instead of value\n  doSomethingWithCID(cid)\n}\n";var w=n(82023)},32290:(e,t,n)=>{"use strict";n.r(t),n.d(t,{decode:()=>w,encodeTo:()=>E,encodingLength:()=>A});var r=function e(t,n,r){n=n||[];var s=r=r||0;for(;t>=o;)n[r++]=255&t|a,t/=128;for(;t&i;)n[r++]=255&t|a,t>>>=7;return n[r]=0|t,e.bytes=r-s+1,n},a=128,i=-128,o=Math.pow(2,31);var s=function e(t,n){var r,a=0,i=0,o=n=n||0,s=t.length;do{if(o>=s)throw e.bytes=0,new RangeError("Could not decode varint");r=t[o++],a+=i<28?(r&c)<<i:(r&c)*Math.pow(2,i),i+=7}while(r>=f);return e.bytes=o-n,a},f=128,c=127;var l=Math.pow(2,7),u=Math.pow(2,14),d=Math.pow(2,21),p=Math.pow(2,28),h=Math.pow(2,35),b=Math.pow(2,42),y=Math.pow(2,49),m=Math.pow(2,56),g=Math.pow(2,63);const v={encode:r,decode:s,encodingLength:function(e){return e<l?1:e<u?2:e<d?3:e<p?4:e<h?5:e<b?6:e<y?7:e<m?8:e<g?9:10}},w=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return[v.decode(e,t),v.decode.bytes]},E=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return v.encode(e,t,n),t},A=e=>v.encodingLength(e)},29606:e=>{e.exports=function e(t,n,r){function a(o,s){if(!n[o]){if(!t[o]){if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var c=n[o]={exports:{}};t[o][0].call(c.exports,(function(e){return a(t[o][1][e]||e)}),c,c.exports,e,t,n,r)}return n[o].exports}for(var i=void 0,o=0;o<r.length;o++)a(r[o]);return a}({1:[function(e,t,n){!function(e){"use strict";var n,r=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,i=Math.ceil,o=Math.floor,s="[BigNumber Error] ",f=s+"Number primitive has more than 15 significant digits: ",c=1e14,l=14,u=9007199254740991,d=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],p=1e7,h=1e9;function b(e){var t=0|e;return 0<e||e===t?t:t-1}function y(e){for(var t,n,r=1,a=e.length,i=e[0]+"";r<a;){for(t=e[r++]+"",n=l-t.length;n--;t="0"+t);i+=t}for(a=i.length;48===i.charCodeAt(--a););return i.slice(0,a+1||1)}function m(e,t){var n,r,a=e.c,i=t.c,o=e.s,s=t.s,f=e.e,c=t.e;if(!o||!s)return null;if(n=a&&!a[0],r=i&&!i[0],n||r)return n?r?0:-s:o;if(o!=s)return o;if(n=o<0,r=f==c,!a||!i)return r?0:!a^n?1:-1;if(!r)return c<f^n?1:-1;for(s=(f=a.length)<(c=i.length)?f:c,o=0;o<s;o++)if(a[o]!=i[o])return a[o]>i[o]^n?1:-1;return f==c?0:c<f^n?1:-1}function g(e,t,n,r){if(e<t||n<e||e!==o(e))throw Error(s+(r||"Argument")+("number"==typeof e?e<t||n<e?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function v(e){var t=e.c.length-1;return b(e.e/l)==t&&e.c[t]%2!=0}function w(e,t){return(1<e.length?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function E(e,t,n){var r,a;if(t<0){for(a=n+".";++t;a+=n);e=a+e}else if(++t>(r=e.length)){for(a=n,t-=r;--t;a+=n);e+=a}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}(n=function e(t){var n,A,P,_,T,k,C,x,O,S,R,I=W.prototype={constructor:W,toString:null,valueOf:null},N=new W(1),B=20,j=4,D=-7,L=21,M=-1e7,U=1e7,F=!1,z=1,$=0,G={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},H="0123456789abcdefghijklmnopqrstuvwxyz";function W(e,t){var n,a,i,s,c,d,p,h,b=this;if(!(b instanceof W))return new W(e,t);if(null==t){if(e&&!0===e._isBigNumber)return b.s=e.s,void(!e.c||e.e>U?b.c=b.e=null:e.e<M?b.c=[b.e=0]:(b.e=e.e,b.c=e.c.slice()));if((d="number"==typeof e)&&0*e==0){if(b.s=1/e<0?(e=-e,-1):1,e===~~e){for(s=0,c=e;10<=c;c/=10,s++);return void(U<s?b.c=b.e=null:(b.e=s,b.c=[e]))}h=String(e)}else{if(!r.test(h=String(e)))return P(b,h,d);b.s=45==h.charCodeAt(0)?(h=h.slice(1),-1):1}-1<(s=h.indexOf("."))&&(h=h.replace(".","")),0<(c=h.search(/e/i))?(s<0&&(s=c),s+=+h.slice(c+1),h=h.substring(0,c)):s<0&&(s=h.length)}else{if(g(t,2,H.length,"Base"),10==t)return X(b=new W(e),B+b.e+1,j);if(h=String(e),d="number"==typeof e){if(0*e!=0)return P(b,h,d,t);if(b.s=1/e<0?(h=h.slice(1),-1):1,W.DEBUG&&15<h.replace(/^0\.0*|\./,"").length)throw Error(f+e)}else b.s=45===h.charCodeAt(0)?(h=h.slice(1),-1):1;for(n=H.slice(0,t),s=c=0,p=h.length;c<p;c++)if(n.indexOf(a=h.charAt(c))<0){if("."==a){if(s<c){s=p;continue}}else if(!i&&(h==h.toUpperCase()&&(h=h.toLowerCase())||h==h.toLowerCase()&&(h=h.toUpperCase()))){i=!0,c=-1,s=0;continue}return P(b,String(e),d,t)}d=!1,-1<(s=(h=A(h,t,10,b.s)).indexOf("."))?h=h.replace(".",""):s=h.length}for(c=0;48===h.charCodeAt(c);c++);for(p=h.length;48===h.charCodeAt(--p););if(h=h.slice(c,++p)){if(p-=c,d&&W.DEBUG&&15<p&&(u<e||e!==o(e)))throw Error(f+b.s*e);if((s=s-c-1)>U)b.c=b.e=null;else if(s<M)b.c=[b.e=0];else{if(b.e=s,b.c=[],c=(s+1)%l,s<0&&(c+=l),c<p){for(c&&b.c.push(+h.slice(0,c)),p-=l;c<p;)b.c.push(+h.slice(c,c+=l));c=l-(h=h.slice(c)).length}else c-=p;for(;c--;h+="0");b.c.push(+h)}}else b.c=[b.e=0]}function V(e,t,n,r){for(var a,i,o=[0],s=0,f=e.length;s<f;){for(i=o.length;i--;o[i]*=t);for(o[0]+=r.indexOf(e.charAt(s++)),a=0;a<o.length;a++)o[a]>n-1&&(null==o[a+1]&&(o[a+1]=0),o[a+1]+=o[a]/n|0,o[a]%=n)}return o.reverse()}function q(e,t,n){var r,a,i,o,s=0,f=e.length,c=t%p,l=t/p|0;for(e=e.slice();f--;)s=((a=c*(i=e[f]%p)+(r=l*i+(o=e[f]/p|0)*c)%p*p+s)/n|0)+(r/p|0)+l*o,e[f]=a%n;return s&&(e=[s].concat(e)),e}function K(e,t,n,r){var a,i;if(n!=r)i=r<n?1:-1;else for(a=i=0;a<n;a++)if(e[a]!=t[a]){i=e[a]>t[a]?1:-1;break}return i}function Z(e,t,n,r){for(var a=0;n--;)e[n]-=a,a=e[n]<t[n]?1:0,e[n]=a*r+e[n]-t[n];for(;!e[0]&&1<e.length;e.splice(0,1));}function J(e,t,n,r){var a,i,o,s,f;if(null==n?n=j:g(n,0,8),!e.c)return e.toString();if(a=e.c[0],o=e.e,null==t)f=y(e.c),f=1==r||2==r&&(o<=D||L<=o)?w(f,o):E(f,o,"0");else if(i=(e=X(new W(e),t,n)).e,s=(f=y(e.c)).length,1==r||2==r&&(t<=i||i<=D)){for(;s<t;f+="0",s++);f=w(f,i)}else if(t-=o,f=E(f,i,"0"),s<i+1){if(0<--t)for(f+=".";t--;f+="0");}else if(0<(t+=i-s))for(i+1==s&&(f+=".");t--;f+="0");return e.s<0&&a?"-"+f:f}function Y(e,t){for(var n,r=1,a=new W(e[0]);r<e.length;r++){if(!(n=new W(e[r])).s){a=n;break}t.call(a,n)&&(a=n)}return a}function Q(e,t,n){for(var r=1,a=t.length;!t[--a];t.pop());for(a=t[0];10<=a;a/=10,r++);return(n=r+n*l-1)>U?e.c=e.e=null:n<M?e.c=[e.e=0]:(e.e=n,e.c=t),e}function X(e,t,n,r){var a,s,f,u,p,h,b,y=e.c,m=d;if(y){e:{for(a=1,u=y[0];10<=u;u/=10,a++);if((s=t-a)<0)s+=l,f=t,b=(p=y[h=0])/m[a-f-1]%10|0;else if((h=i((s+1)/l))>=y.length){if(!r)break e;for(;y.length<=h;y.push(0));p=b=0,f=(s%=l)-l+(a=1)}else{for(p=u=y[h],a=1;10<=u;u/=10,a++);b=(f=(s%=l)-l+a)<0?0:p/m[a-f-1]%10|0}if(r=r||t<0||null!=y[h+1]||(f<0?p:p%m[a-f-1]),r=n<4?(b||r)&&(0==n||n==(e.s<0?3:2)):5<b||5==b&&(4==n||r||6==n&&(0<s?0<f?p/m[a-f]:0:y[h-1])%10&1||n==(e.s<0?8:7)),t<1||!y[0])return y.length=0,r?(t-=e.e+1,y[0]=m[(l-t%l)%l],e.e=-t||0):y[0]=e.e=0,e;if(0==s?(y.length=h,u=1,h--):(y.length=h+1,u=m[l-s],y[h]=0<f?o(p/m[a-f]%m[f])*u:0),r)for(;;){if(0==h){for(s=1,f=y[0];10<=f;f/=10,s++);for(f=y[0]+=u,u=1;10<=f;f/=10,u++);s!=u&&(e.e++,y[0]==c&&(y[0]=1));break}if(y[h]+=u,y[h]!=c)break;y[h--]=0,u=1}for(s=y.length;0===y[--s];y.pop());}e.e>U?e.c=e.e=null:e.e<M&&(e.c=[e.e=0])}return e}function ee(e){var t,n=e.e;return null===n?e.toString():(t=y(e.c),t=n<=D||L<=n?w(t,n):E(t,n,"0"),e.s<0?"-"+t:t)}return W.clone=e,W.ROUND_UP=0,W.ROUND_DOWN=1,W.ROUND_CEIL=2,W.ROUND_FLOOR=3,W.ROUND_HALF_UP=4,W.ROUND_HALF_DOWN=5,W.ROUND_HALF_EVEN=6,W.ROUND_HALF_CEIL=7,W.ROUND_HALF_FLOOR=8,W.EUCLID=9,W.config=W.set=function(e){var t,n;if(null!=e){if("object"!=typeof e)throw Error(s+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(g(n=e[t],0,h,t),B=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(g(n=e[t],0,8,t),j=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(g(n[0],-h,0,t),g(n[1],0,h,t),D=n[0],L=n[1]):(g(n,-h,h,t),D=-(L=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)g(n[0],-h,-1,t),g(n[1],1,h,t),M=n[0],U=n[1];else{if(g(n,-h,h,t),!n)throw Error(s+t+" cannot be zero: "+n);M=-(U=n<0?-n:n)}if(e.hasOwnProperty(t="CRYPTO")){if((n=e[t])!==!!n)throw Error(s+t+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw F=!n,Error(s+"crypto unavailable");F=n}else F=n}if(e.hasOwnProperty(t="MODULO_MODE")&&(g(n=e[t],0,9,t),z=n),e.hasOwnProperty(t="POW_PRECISION")&&(g(n=e[t],0,h,t),$=n),e.hasOwnProperty(t="FORMAT")){if("object"!=typeof(n=e[t]))throw Error(s+t+" not an object: "+n);G=n}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.$|[+-.\s]|(.).*\1/.test(n))throw Error(s+t+" invalid: "+n);H=n}}return{DECIMAL_PLACES:B,ROUNDING_MODE:j,EXPONENTIAL_AT:[D,L],RANGE:[M,U],CRYPTO:F,MODULO_MODE:z,POW_PRECISION:$,FORMAT:G,ALPHABET:H}},W.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!W.DEBUG)return!0;var t,n,r=e.c,a=e.e,i=e.s;e:if("[object Array]"=={}.toString.call(r)){if((1===i||-1===i)&&-h<=a&&a<=h&&a===o(a)){if(0===r[0]){if(0===a&&1===r.length)return!0;break e}if((t=(a+1)%l)<1&&(t+=l),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||c<=n||n!==o(n))break e;if(0!==n)return!0}}}else if(null===r&&null===a&&(null===i||1===i||-1===i))return!0;throw Error(s+"Invalid BigNumber: "+e)},W.maximum=W.max=function(){return Y(arguments,I.lt)},W.minimum=W.min=function(){return Y(arguments,I.gt)},W.random=(_=9007199254740992,T=Math.random()*_&2097151?function(){return o(Math.random()*_)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,n,r,a,f,c=0,u=[],p=new W(N);if(null==e?e=B:g(e,0,h),a=i(e/l),F)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(a*=2));c<a;)9e15<=(f=131072*t[c]+(t[c+1]>>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(u.push(f%1e14),c+=2);c=a/2}else{if(!crypto.randomBytes)throw F=!1,Error(s+"crypto unavailable");for(t=crypto.randomBytes(a*=7);c<a;)9e15<=(f=281474976710656*(31&t[c])+1099511627776*t[c+1]+4294967296*t[c+2]+16777216*t[c+3]+(t[c+4]<<16)+(t[c+5]<<8)+t[c+6])?crypto.randomBytes(7).copy(t,c):(u.push(f%1e14),c+=7);c=a/7}if(!F)for(;c<a;)(f=T())<9e15&&(u[c++]=f%1e14);for(a=u[--c],e%=l,a&&e&&(f=d[l-e],u[c]=o(a/f)*f);0===u[c];u.pop(),c--);if(c<0)u=[r=0];else{for(r=-1;0===u[0];u.splice(0,1),r-=l);for(c=1,f=u[0];10<=f;f/=10,c++);c<l&&(r-=l-c)}return p.e=r,p.c=u,p}),W.sum=function(){for(var e=1,t=arguments,n=new W(t[0]);e<t.length;)n=n.plus(t[e++]);return n},k="0123456789",A=function(e,t,r,a,i){var o,s,f,c,l,u,d,p,h=e.indexOf("."),b=B,m=j;for(0<=h&&(c=$,$=0,e=e.replace(".",""),u=(p=new W(t)).pow(e.length-h),$=c,p.c=V(E(y(u.c),u.e,"0"),10,r,k),p.e=p.c.length),f=c=(d=V(e,t,r,i?(o=H,k):(o=k,H))).length;0==d[--c];d.pop());if(!d[0])return o.charAt(0);if(h<0?--f:(u.c=d,u.e=f,u.s=a,d=(u=n(u,p,b,m,r)).c,l=u.r,f=u.e),h=d[s=f+b+1],c=r/2,l=l||s<0||null!=d[s+1],l=m<4?(null!=h||l)&&(0==m||m==(u.s<0?3:2)):c<h||h==c&&(4==m||l||6==m&&1&d[s-1]||m==(u.s<0?8:7)),s<1||!d[0])e=l?E(o.charAt(1),-b,o.charAt(0)):o.charAt(0);else{if(d.length=s,l)for(--r;++d[--s]>r;)d[s]=0,s||(++f,d=[1].concat(d));for(c=d.length;!d[--c];);for(h=0,e="";h<=c;e+=o.charAt(d[h++]));e=E(e,f,o.charAt(0))}return e},n=function(e,t,n,r,a){var i,s,f,u,d,p,h,y,m,g,v,w,E,A,P,_,T,k=e.s==t.s?1:-1,C=e.c,x=t.c;if(!(C&&C[0]&&x&&x[0]))return new W(e.s&&t.s&&(C?!x||C[0]!=x[0]:x)?C&&0==C[0]||!x?0*k:k/0:NaN);for(m=(y=new W(k)).c=[],k=n+(s=e.e-t.e)+1,a||(a=c,s=b(e.e/l)-b(t.e/l),k=k/l|0),f=0;x[f]==(C[f]||0);f++);if(x[f]>(C[f]||0)&&s--,k<0)m.push(1),u=!0;else{for(A=C.length,_=x.length,k+=2,1<(d=o(a/(x[f=0]+1)))&&(x=q(x,d,a),C=q(C,d,a),_=x.length,A=C.length),E=_,v=(g=C.slice(0,_)).length;v<_;g[v++]=0);T=x.slice(),T=[0].concat(T),P=x[0],x[1]>=a/2&&P++;do{if(d=0,(i=K(x,g,_,v))<0){if(w=g[0],_!=v&&(w=w*a+(g[1]||0)),1<(d=o(w/P)))for(a<=d&&(d=a-1),h=(p=q(x,d,a)).length,v=g.length;1==K(p,g,h,v);)d--,Z(p,_<h?T:x,h,a),h=p.length,i=1;else 0==d&&(i=d=1),h=(p=x.slice()).length;if(h<v&&(p=[0].concat(p)),Z(g,p,v,a),v=g.length,-1==i)for(;K(x,g,_,v)<1;)d++,Z(g,_<v?T:x,v,a),v=g.length}else 0===i&&(d++,g=[0]);m[f++]=d,g[0]?g[v++]=C[E]||0:(g=[C[E]],v=1)}while((E++<A||null!=g[0])&&k--);u=null!=g[0],m[0]||m.splice(0,1)}if(a==c){for(f=1,k=m[0];10<=k;k/=10,f++);X(y,n+(y.e=f+s*l-1)+1,r,u)}else y.e=s,y.r=+u;return y},C=/^(-?)0([xbo])(?=\w[\w.]*$)/i,x=/^([^.]+)\.$/,O=/^\.([^.]+)$/,S=/^-?(Infinity|NaN)$/,R=/^\s*\+(?=[\w.])|^\s+|\s+$/g,P=function(e,t,n,r){var a,i=n?t:t.replace(R,"");if(S.test(i))e.s=isNaN(i)?null:i<0?-1:1;else{if(!n&&(i=i.replace(C,(function(e,t,n){return a="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=a?e:t})),r&&(a=r,i=i.replace(x,"$1").replace(O,"0.$1")),t!=i))return new W(i,a);if(W.DEBUG)throw Error(s+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},I.absoluteValue=I.abs=function(){var e=new W(this);return e.s<0&&(e.s=1),e},I.comparedTo=function(e,t){return m(this,new W(e,t))},I.decimalPlaces=I.dp=function(e,t){var n,r,a;if(null!=e)return g(e,0,h),null==t?t=j:g(t,0,8),X(new W(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((a=n.length-1)-b(this.e/l))*l,a=n[a])for(;a%10==0;a/=10,r--);return r<0&&(r=0),r},I.dividedBy=I.div=function(e,t){return n(this,new W(e,t),B,j)},I.dividedToIntegerBy=I.idiv=function(e,t){return n(this,new W(e,t),0,1)},I.exponentiatedBy=I.pow=function(e,t){var n,r,a,f,c,u,d,p,h=this;if((e=new W(e)).c&&!e.isInteger())throw Error(s+"Exponent not an integer: "+ee(e));if(null!=t&&(t=new W(t)),c=14<e.e,!h.c||!h.c[0]||1==h.c[0]&&!h.e&&1==h.c.length||!e.c||!e.c[0])return p=new W(Math.pow(+ee(h),c?2-v(e):+ee(e))),t?p.mod(t):p;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new W(NaN);(r=!u&&h.isInteger()&&t.isInteger())&&(h=h.mod(t))}else{if(9<e.e&&(0<h.e||h.e<-1||(0==h.e?1<h.c[0]||c&&24e7<=h.c[1]:h.c[0]<8e13||c&&h.c[0]<=9999975e7)))return f=h.s<0&&v(e)?-0:0,-1<h.e&&(f=1/f),new W(u?1/f:f);$&&(f=i($/l+2))}for(d=c?(n=new W(.5),u&&(e.s=1),v(e)):(a=Math.abs(+ee(e)))%2,p=new W(N);;){if(d){if(!(p=p.times(h)).c)break;f?p.c.length>f&&(p.c.length=f):r&&(p=p.mod(t))}if(a){if(0===(a=o(a/2)))break;d=a%2}else if(X(e=e.times(n),e.e+1,1),14<e.e)d=v(e);else{if(0==(a=+ee(e)))break;d=a%2}h=h.times(h),f?h.c&&h.c.length>f&&(h.c.length=f):r&&(h=h.mod(t))}return r?p:(u&&(p=N.div(p)),t?p.mod(t):f?X(p,$,j,void 0):p)},I.integerValue=function(e){var t=new W(this);return null==e?e=j:g(e,0,8),X(t,t.e+1,e)},I.isEqualTo=I.eq=function(e,t){return 0===m(this,new W(e,t))},I.isFinite=function(){return!!this.c},I.isGreaterThan=I.gt=function(e,t){return 0<m(this,new W(e,t))},I.isGreaterThanOrEqualTo=I.gte=function(e,t){return 1===(t=m(this,new W(e,t)))||0===t},I.isInteger=function(){return!!this.c&&b(this.e/l)>this.c.length-2},I.isLessThan=I.lt=function(e,t){return m(this,new W(e,t))<0},I.isLessThanOrEqualTo=I.lte=function(e,t){return-1===(t=m(this,new W(e,t)))||0===t},I.isNaN=function(){return!this.s},I.isNegative=function(){return this.s<0},I.isPositive=function(){return 0<this.s},I.isZero=function(){return!!this.c&&0==this.c[0]},I.minus=function(e,t){var n,r,a,i,o=this,s=o.s;if(t=(e=new W(e,t)).s,!s||!t)return new W(NaN);if(s!=t)return e.s=-t,o.plus(e);var f=o.e/l,u=e.e/l,d=o.c,p=e.c;if(!f||!u){if(!d||!p)return d?(e.s=-t,e):new W(p?o:NaN);if(!d[0]||!p[0])return p[0]?(e.s=-t,e):new W(d[0]?o:3==j?-0:0)}if(f=b(f),u=b(u),d=d.slice(),s=f-u){for((a=(i=s<0)?(s=-s,d):(u=f,p)).reverse(),t=s;t--;a.push(0));a.reverse()}else for(r=(i=(s=d.length)<(t=p.length))?s:t,s=t=0;t<r;t++)if(d[t]!=p[t]){i=d[t]<p[t];break}if(i&&(a=d,d=p,p=a,e.s=-e.s),0<(t=(r=p.length)-(n=d.length)))for(;t--;d[n++]=0);for(t=c-1;s<r;){if(d[--r]<p[r]){for(n=r;n&&!d[--n];d[n]=t);--d[n],d[r]+=c}d[r]-=p[r]}for(;0==d[0];d.splice(0,1),--u);return d[0]?Q(e,d,u):(e.s=3==j?-1:1,e.c=[e.e=0],e)},I.modulo=I.mod=function(e,t){var r,a,i=this;return e=new W(e,t),!i.c||!e.s||e.c&&!e.c[0]?new W(NaN):!e.c||i.c&&!i.c[0]?new W(i):(9==z?(a=e.s,e.s=1,r=n(i,e,0,3),e.s=a,r.s*=a):r=n(i,e,0,z),(e=i.minus(r.times(e))).c[0]||1!=z||(e.s=i.s),e)},I.multipliedBy=I.times=function(e,t){var n,r,a,i,o,s,f,u,d,h,y,m,g,v,w,E=this,A=E.c,P=(e=new W(e,t)).c;if(!(A&&P&&A[0]&&P[0]))return!E.s||!e.s||A&&!A[0]&&!P||P&&!P[0]&&!A?e.c=e.e=e.s=null:(e.s*=E.s,A&&P?(e.c=[0],e.e=0):e.c=e.e=null),e;for(r=b(E.e/l)+b(e.e/l),e.s*=E.s,(f=A.length)<(h=P.length)&&(g=A,A=P,P=g,a=f,f=h,h=a),a=f+h,g=[];a--;g.push(0));for(v=c,w=p,a=h;0<=--a;){for(n=0,y=P[a]%w,m=P[a]/w|0,i=a+(o=f);a<i;)n=((u=y*(u=A[--o]%w)+(s=m*u+(d=A[o]/w|0)*y)%w*w+g[i]+n)/v|0)+(s/w|0)+m*d,g[i--]=u%v;g[i]=n}return n?++r:g.splice(0,1),Q(e,g,r)},I.negated=function(){var e=new W(this);return e.s=-e.s||null,e},I.plus=function(e,t){var n,r=this,a=r.s;if(t=(e=new W(e,t)).s,!a||!t)return new W(NaN);if(a!=t)return e.s=-t,r.minus(e);var i=r.e/l,o=e.e/l,s=r.c,f=e.c;if(!i||!o){if(!s||!f)return new W(a/0);if(!s[0]||!f[0])return f[0]?e:new W(s[0]?r:0*a)}if(i=b(i),o=b(o),s=s.slice(),a=i-o){for((n=0<a?(o=i,f):(a=-a,s)).reverse();a--;n.push(0));n.reverse()}for((a=s.length)-(t=f.length)<0&&(n=f,f=s,s=n,t=a),a=0;t;)a=(s[--t]=s[t]+f[t]+a)/c|0,s[t]=c===s[t]?0:s[t]%c;return a&&(s=[a].concat(s),++o),Q(e,s,o)},I.precision=I.sd=function(e,t){var n,r,a;if(null!=e&&e!==!!e)return g(e,1,h),null==t?t=j:g(t,0,8),X(new W(this),e,t);if(!(n=this.c))return null;if(r=(a=n.length-1)*l+1,a=n[a]){for(;a%10==0;a/=10,r--);for(a=n[0];10<=a;a/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},I.shiftedBy=function(e){return g(e,-u,u),this.times("1e"+e)},I.squareRoot=I.sqrt=function(){var e,t,r,a,i,o=this,s=o.c,f=o.s,c=o.e,l=B+4,u=new W("0.5");if(1!==f||!s||!s[0])return new W(!f||f<0&&(!s||s[0])?NaN:s?o:1/0);if((r=0==(f=Math.sqrt(+ee(o)))||f==1/0?(((t=y(s)).length+c)%2==0&&(t+="0"),f=Math.sqrt(+t),c=b((c+1)/2)-(c<0||c%2),new W(t=f==1/0?"1e"+c:(t=f.toExponential()).slice(0,t.indexOf("e")+1)+c)):new W(f+"")).c[0])for((f=(c=r.e)+l)<3&&(f=0);;)if(i=r,r=u.times(i.plus(n(o,i,l,1))),y(i.c).slice(0,f)===(t=y(r.c)).slice(0,f)){if(r.e<c&&--f,"9999"!=(t=t.slice(f-3,f+1))&&(a||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(X(r,r.e+B+2,1),e=!r.times(r).eq(o));break}if(!a&&(X(i,i.e+B+2,0),i.times(i).eq(o))){r=i;break}l+=4,f+=4,a=1}return X(r,r.e+B+1,j,e)},I.toExponential=function(e,t){return null!=e&&(g(e,0,h),e++),J(this,e,t,1)},I.toFixed=function(e,t){return null!=e&&(g(e,0,h),e=e+this.e+1),J(this,e,t)},I.toFormat=function(e,t,n){var r;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=G;else if("object"!=typeof n)throw Error(s+"Argument not an object: "+n);if(r=this.toFixed(e,t),this.c){var a,i=r.split("."),o=+n.groupSize,f=+n.secondaryGroupSize,c=n.groupSeparator||"",l=i[0],u=i[1],d=this.s<0,p=d?l.slice(1):l,h=p.length;if(f&&(a=o,o=f,h-=f=a),0<o&&0<h){for(a=h%o||o,l=p.substr(0,a);a<h;a+=o)l+=c+p.substr(a,o);0<f&&(l+=c+p.slice(a)),d&&(l="-"+l)}r=u?l+(n.decimalSeparator||"")+((f=+n.fractionGroupSize)?u.replace(new RegExp("\\d{"+f+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):u):l}return(n.prefix||"")+r+(n.suffix||"")},I.toFraction=function(e){var t,r,a,i,o,f,c,u,p,h,b,m,g=this,v=g.c;if(null!=e&&(!(c=new W(e)).isInteger()&&(c.c||1!==c.s)||c.lt(N)))throw Error(s+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+ee(c));if(!v)return new W(g);for(t=new W(N),p=r=new W(N),a=u=new W(N),m=y(v),o=t.e=m.length-g.e-1,t.c[0]=d[(f=o%l)<0?l+f:f],e=!e||0<c.comparedTo(t)?0<o?t:p:c,f=U,U=1/0,c=new W(m),u.c[0]=0;h=n(c,t,0,1),1!=(i=r.plus(h.times(a))).comparedTo(e);)r=a,a=i,p=u.plus(h.times(i=p)),u=i,t=c.minus(h.times(i=t)),c=i;return i=n(e.minus(r),a,0,1),u=u.plus(i.times(p)),r=r.plus(i.times(a)),u.s=p.s=g.s,b=n(p,a,o*=2,j).minus(g).abs().comparedTo(n(u,r,o,j).minus(g).abs())<1?[p,a]:[u,r],U=f,b},I.toNumber=function(){return+ee(this)},I.toPrecision=function(e,t){return null!=e&&g(e,1,h),J(this,e,t,2)},I.toString=function(e){var t,n=this,r=n.s,a=n.e;return null===a?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(t=null==e?a<=D||L<=a?w(y(n.c),a):E(y(n.c),a,"0"):10===e?E(y((n=X(new W(n),B+a+1,j)).c),n.e,"0"):(g(e,2,H.length,"Base"),A(E(y(n.c),a,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},I.valueOf=I.toJSON=function(){return ee(this)},I._isBigNumber=!0,a&&(I[Symbol.toStringTag]="BigNumber",I[Symbol.for("nodejs.util.inspect.custom")]=I.valueOf),null!=t&&W.set(t),W}()).default=n.BigNumber=n,void 0!==t&&t.exports?t.exports=n:(e=e||("undefined"!=typeof self&&self?self:window)).BigNumber=n}(this)},{}],2:[function(e,t,n){"use strict";t.exports={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th"},bytes:{binarySuffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],decimalSuffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}}},{}],3:[function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],r=!0,a=!1,i=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(a)throw i}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var a=e("./globalState"),i=e("./validating"),o=e("./parsing"),s=e("bignumber.js"),f={trillion:Math.pow(10,12),billion:Math.pow(10,9),million:Math.pow(10,6),thousand:Math.pow(10,3)},c={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1,roundingFunction:Math.round,spaceSeparatedAbbreviation:!1},l=a.currentBytes(),u=l.binarySuffixes,d=l.decimalSuffixes,p={general:{scale:1024,suffixes:d,marker:"bd"},binary:{scale:1024,suffixes:u,marker:"b"},decimal:{scale:1e3,suffixes:d,marker:"d"}};function h(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length?arguments[2]:void 0;if("string"==typeof t&&(t=o.parseFormat(t)),!i.validateFormat(t))return"ERROR: invalid format";var r=t.prefix||"",s=t.postfix||"",f=function(e,t,n){switch(t.output){case"currency":return function(e,t,n){var r=n.currentCurrency(),a=Object.assign({},t),i=Object.assign({},c,a),o=void 0,s="",f=!!i.totalLength||!!i.forceAverage||i.average,l=a.currencyPosition||r.position,u=a.currencySymbol||r.symbol,d=void 0!==i.spaceSeparatedCurrency?i.spaceSeparatedCurrency:i.spaceSeparated;void 0===a.lowPrecision&&(a.lowPrecision=!1),d&&(s=" "),"infix"===l&&(o=s+u+s);var p=v({instance:e,providedFormat:a,state:n,decimalSeparator:o});return"prefix"===l&&(p=e._value<0&&"sign"===i.negative?"-".concat(s).concat(u).concat(p.slice(1)):0<e._value&&i.forceSign?"+".concat(s).concat(u).concat(p.slice(1)):u+s+p),l&&"postfix"!==l||(p=p+(s=!i.spaceSeparatedAbbreviation&&f?"":s)+u),p}(e,t=w(t,a.currentCurrencyDefaultFormat()),a);case"percent":return function(e,t,n,r){var a=t.prefixSymbol,i=v({instance:r(100*e._value),providedFormat:t,state:n}),o=Object.assign({},c,t);return a?"%".concat(o.spaceSeparated?" ":"").concat(i):"".concat(i).concat(o.spaceSeparated?" ":"","%")}(e,t=w(t,a.currentPercentageDefaultFormat()),a,n);case"byte":return function(e,t,n,r){var a=t.base||"binary",i=Object.assign({},c,t),o=n.currentBytes(),s=o.binarySuffixes,f=o.decimalSuffixes,l={general:{scale:1024,suffixes:f||d,marker:"bd"},binary:{scale:1024,suffixes:s||u,marker:"b"},decimal:{scale:1e3,suffixes:f||d,marker:"d"}}[a],p=b(e._value,l.suffixes,l.scale),h=p.value,y=p.suffix,m=v({instance:r(h),providedFormat:t,state:n,defaults:n.currentByteDefaultFormat()});return"".concat(m).concat(i.spaceSeparated?" ":"").concat(y)}(e,t=w(t,a.currentByteDefaultFormat()),a,n);case"time":return t=w(t,a.currentTimeDefaultFormat()),function(e){var t=Math.floor(e._value/60/60),n=Math.floor((e._value-60*t*60)/60),r=Math.round(e._value-60*t*60-60*n);return"".concat(t,":").concat(n<10?"0":"").concat(n,":").concat(r<10?"0":"").concat(r)}(e);case"ordinal":return function(e,t,n){var r=n.currentOrdinal(),a=Object.assign({},c,t),i=v({instance:e,providedFormat:t,state:n}),o=r(e._value);return"".concat(i).concat(a.spaceSeparated?" ":"").concat(o)}(e,t=w(t,a.currentOrdinalDefaultFormat()),a);default:return v({instance:e,providedFormat:t,numbro:n})}}(e,t,n);return(f=r+f)+s}function b(e,t,n){var r=t[0],a=Math.abs(e);if(n<=a){for(var i=1;i<t.length;++i){var o=Math.pow(n,i),s=Math.pow(n,i+1);if(o<=a&&a<s){r=t[i],e/=o;break}}r===t[0]&&(e/=Math.pow(n,t.length-1),r=t[t.length-1])}return{value:e,suffix:r}}function y(e){for(var t="",n=0;n<e;n++)t+="0";return t}function m(e,t,n){var a=2<arguments.length&&void 0!==n?n:Math.round;return-1!==e.toString().indexOf("e")?function(e,t){var n=e.toString(),a=r(n.split("e"),2),i=a[0],o=a[1],s=r(i.split("."),2),f=s[0],c=s[1],l=void 0===c?"":c;if(0<+o)n=f+l+y(o-l.length);else{var u=".";u=+f<0?"-0".concat(u):"0".concat(u);var d=(y(-o-1)+Math.abs(f)+l).substr(0,t);d.length<t&&(d+=y(t-d.length)),n=u+d}return 0<+o&&0<t&&(n+=".".concat(y(t))),n}(e,t):new s(a(+"".concat(e,"e+").concat(t))/Math.pow(10,t)).toFixed(t)}function g(e,t,n,r,a){var i=r.currentDelimiters(),o=i.thousands;a=a||i.decimal;var s=i.thousandsSize||3,f=e.toString(),c=f.split(".")[0],l=f.split(".")[1],u=t<0&&0===c.indexOf("-");return n&&(u&&(c=c.slice(1)),function(e,t){for(var n=[],r=0,a=e;0<a;a--)r===t&&(n.unshift(a),r=0),r++;return n}(c.length,s).forEach((function(e,t){c=c.slice(0,e+t)+o+c.slice(e+t)})),u&&(c="-".concat(c))),l?c+a+l:c}function v(e){var t=e.instance,n=e.providedFormat,i=e.state,o=void 0===i?a:i,s=e.decimalSeparator,l=e.defaults,u=void 0===l?o.currentDefaults():l,d=t._value;if(0===d&&o.hasZeroFormat())return o.getZeroFormat();if(!isFinite(d))return d.toString();var p,h,b,y,v,w,E,A,P=Object.assign({},c,u,n),_=P.totalLength,T=_?0:P.characteristic,k=P.optionalCharacteristic,C=P.forceAverage,x=P.lowPrecision,O=!!_||!!C||P.average,S=_?-1:O&&void 0===n.mantissa?0:P.mantissa,R=!_&&(void 0===n.optionalMantissa?-1===S:P.optionalMantissa),I=P.trimMantissa,N=P.thousandSeparated,B=P.spaceSeparated,j=P.negative,D=P.forceSign,L=P.exponential,M=P.roundingFunction,U="";if(O){var F=function(e){var t=e.value,n=e.forceAverage,r=e.lowPrecision,a=void 0===r||r,i=e.abbreviations,o=e.spaceSeparated,s=void 0!==o&&o,c=e.totalLength,l=void 0===c?0:c,u=e.roundingFunction,d=void 0===u?Math.round:u,p="",h=Math.abs(t),b=-1;if(n&&i[n]&&f[n]?(p=i[n],t/=f[n]):h>=f.trillion||a&&1===d(h/f.trillion)?(p=i.trillion,t/=f.trillion):h<f.trillion&&h>=f.billion||a&&1===d(h/f.billion)?(p=i.billion,t/=f.billion):h<f.billion&&h>=f.million||a&&1===d(h/f.million)?(p=i.million,t/=f.million):(h<f.million&&h>=f.thousand||a&&1===d(h/f.thousand))&&(p=i.thousand,t/=f.thousand),p=p&&(s?" ":"")+p,l){var y=t<0,m=t.toString().split(".")[0],g=y?m.length-1:m.length;b=Math.max(l-g,0)}return{value:t,abbreviation:p,mantissaPrecision:b}}({value:d,forceAverage:C,lowPrecision:x,abbreviations:o.currentAbbreviations(),spaceSeparated:B,roundingFunction:M,totalLength:_});d=F.value,U+=F.abbreviation,_&&(S=F.mantissaPrecision)}if(L){var z=(h=(p={value:d,characteristicPrecision:T}).value,y=void 0===(b=p.characteristicPrecision)?0:b,w=(v=r(h.toExponential().split("e"),2))[0],E=v[1],A=+w,y&&1<y&&(A*=Math.pow(10,y-1),E=0<=(E-=y-1)?"+".concat(E):E),{value:A,abbreviation:"e".concat(E)});d=z.value,U=z.abbreviation+U}var $,G,H,W=function(e,t,n,a,i,o){if(-1===a)return e;var s=m(t,a,o),f=r(s.toString().split("."),2),c=f[0],l=f[1],u=void 0===l?"":l;if(u.match(/^0+$/)&&(n||i))return c;var d=u.match(/0+$/);return i&&d?"".concat(c,".").concat(u.toString().slice(0,d.index)):s.toString()}(d.toString(),d,R,S,I,M);return W=g(W=function(e,t,n,a){var i=e,o=r(i.toString().split("."),2),s=o[0],f=o[1];if(s.match(/^-?0$/)&&n)return f?"".concat(s.replace("0",""),".").concat(f):s.replace("0","");var c=t<0&&0===s.indexOf("-");if(c&&(s=s.slice(1),i=i.slice(1)),s.length<a)for(var l=a-s.length,u=0;u<l;u++)i="0".concat(i);return c&&(i="-".concat(i)),i.toString()}(W,d,k,T),d,N,o,s),(O||L)&&(W+=U),(D||d<0)&&($=W,H=j,W=0===(G=d)?$:0==+$?$.replace("-",""):0<G?"+".concat($):"sign"===H?$:"(".concat($.replace("-",""),")")),W}function w(e,t){if(!e)return t;var n=Object.keys(e);return 1===n.length&&"output"===n[0]?t:e}t.exports=function(e){return{format:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return h.apply(void 0,n.concat([e]))},getByteUnit:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=p.general;return b(e._value,t.suffixes,t.scale).suffix}.apply(void 0,n.concat([e]))},getBinaryByteUnit:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=p.binary;return b(e._value,t.suffixes,t.scale).suffix}.apply(void 0,n.concat([e]))},getDecimalByteUnit:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(e){var t=p.decimal;return b(e._value,t.suffixes,t.scale).suffix}.apply(void 0,n.concat([e]))},formatOrDefault:w}}},{"./globalState":4,"./parsing":8,"./validating":10,"bignumber.js":1}],4:[function(e,t,n){"use strict";var r=e("./en-US"),a=e("./validating"),i=e("./parsing"),o={},s=void 0,f={},c=null,l={};function u(e){s=e}function d(){return f[s]}o.languages=function(){return Object.assign({},f)},o.currentLanguage=function(){return s},o.currentBytes=function(){return d().bytes||{}},o.currentCurrency=function(){return d().currency},o.currentAbbreviations=function(){return d().abbreviations},o.currentDelimiters=function(){return d().delimiters},o.currentOrdinal=function(){return d().ordinal},o.currentDefaults=function(){return Object.assign({},d().defaults,l)},o.currentOrdinalDefaultFormat=function(){return Object.assign({},o.currentDefaults(),d().ordinalFormat)},o.currentByteDefaultFormat=function(){return Object.assign({},o.currentDefaults(),d().byteFormat)},o.currentPercentageDefaultFormat=function(){return Object.assign({},o.currentDefaults(),d().percentageFormat)},o.currentCurrencyDefaultFormat=function(){return Object.assign({},o.currentDefaults(),d().currencyFormat)},o.currentTimeDefaultFormat=function(){return Object.assign({},o.currentDefaults(),d().timeFormat)},o.setDefaults=function(e){e=i.parseFormat(e),a.validateFormat(e)&&(l=e)},o.getZeroFormat=function(){return c},o.setZeroFormat=function(e){return c="string"==typeof e?e:null},o.hasZeroFormat=function(){return null!==c},o.languageData=function(e){if(e){if(f[e])return f[e];throw new Error('Unknown tag "'.concat(e,'"'))}return d()},o.registerLanguage=function(e){var t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];if(!a.validateLanguage(e))throw new Error("Invalid language data");f[e.languageTag]=e,t&&u(e.languageTag)},o.setLanguage=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:r.languageTag;if(!f[e]){var n=e.split("-")[0],a=Object.keys(f).find((function(e){return e.split("-")[0]===n}));return f[a]?void u(a):void u(t)}u(e)},o.registerLanguage(r),s=r.languageTag,t.exports=o},{"./en-US":2,"./parsing":8,"./validating":10}],5:[function(e,t,n){"use strict";t.exports=function(t){return{loadLanguagesInNode:function(n){return r=t,void n.forEach((function(t){var n=void 0;try{n=e("../languages/".concat(t))}catch(n){console.error('Unable to load "'.concat(t,'". No matching language file found.'))}n&&r.registerLanguage(n)}));var r}}}},{}],6:[function(e,t,n){"use strict";var r=e("bignumber.js");function a(e,t,n){var a=new r(e._value),i=t;return n.isNumbro(t)&&(i=t._value),i=new r(i),e._value=a.minus(i).toNumber(),e}t.exports=function(e){return{add:function(t,n){return i=n,o=e,s=new r((a=t)._value),f=i,o.isNumbro(i)&&(f=i._value),f=new r(f),a._value=s.plus(f).toNumber(),a;var a,i,o,s,f},subtract:function(t,n){return a(t,n,e)},multiply:function(t,n){return i=n,o=e,s=new r((a=t)._value),f=i,o.isNumbro(i)&&(f=i._value),f=new r(f),a._value=s.times(f).toNumber(),a;var a,i,o,s,f},divide:function(t,n){return i=n,o=e,s=new r((a=t)._value),f=i,o.isNumbro(i)&&(f=i._value),f=new r(f),a._value=s.dividedBy(f).toNumber(),a;var a,i,o,s,f},set:function(t,n){return r=t,i=a=n,e.isNumbro(a)&&(i=a._value),r._value=i,r;var r,a,i},difference:function(t,n){return r=n,a(o=(i=e)(t._value),r,i),Math.abs(o._value);var r,i,o},BigNumber:r}}},{"bignumber.js":1}],7:[function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=e("./globalState"),i=e("./validating"),o=e("./loading")(p),s=e("./unformatting"),f=e("./formatting")(p),c=e("./manipulating")(p),l=e("./parsing"),u=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._value=t}var t,n,i;return t=e,(n=[{key:"clone",value:function(){return p(this._value)}},{key:"format",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};return f.format(this,t)}},{key:"formatCurrency",value:function(e){return"string"==typeof e&&(e=l.parseFormat(e)),(e=f.formatOrDefault(e,a.currentCurrencyDefaultFormat())).output="currency",f.format(this,e)}},{key:"formatTime",value:function(e){var t=0<arguments.length&&void 0!==e?e:{};return t.output="time",f.format(this,t)}},{key:"binaryByteUnits",value:function(){return f.getBinaryByteUnit(this)}},{key:"decimalByteUnits",value:function(){return f.getDecimalByteUnit(this)}},{key:"byteUnits",value:function(){return f.getByteUnit(this)}},{key:"difference",value:function(e){return c.difference(this,e)}},{key:"add",value:function(e){return c.add(this,e)}},{key:"subtract",value:function(e){return c.subtract(this,e)}},{key:"multiply",value:function(e){return c.multiply(this,e)}},{key:"divide",value:function(e){return c.divide(this,e)}},{key:"set",value:function(e){return c.set(this,d(e))}},{key:"value",value:function(){return this._value}},{key:"valueOf",value:function(){return this._value}}])&&r(t.prototype,n),i&&r(t,i),e}();function d(e){var t=e;return p.isNumbro(e)?t=e._value:"string"==typeof e?t=p.unformat(e):isNaN(e)&&(t=NaN),t}function p(e){return new u(d(e))}p.version="2.3.6",p.isNumbro=function(e){return e instanceof u},p.language=a.currentLanguage,p.registerLanguage=a.registerLanguage,p.setLanguage=a.setLanguage,p.languages=a.languages,p.languageData=a.languageData,p.zeroFormat=a.setZeroFormat,p.defaultFormat=a.currentDefaults,p.setDefaults=a.setDefaults,p.defaultCurrencyFormat=a.currentCurrencyDefaultFormat,p.validate=i.validate,p.loadLanguagesInNode=o.loadLanguagesInNode,p.unformat=s.unformat,p.BigNumber=c.BigNumber,t.exports=p},{"./formatting":3,"./globalState":4,"./loading":5,"./manipulating":6,"./parsing":8,"./unformatting":9,"./validating":10}],8:[function(e,t,n){"use strict";t.exports={parseFormat:function(e){var t,n,r,a,i,o,s,f,c,l,u,d,p,h,b,y,m,g,v,w,E,A,P=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"string"!=typeof e?e:(n=P,i=P,function(e,t){if(-1===e.indexOf("$")){if(-1===e.indexOf("%"))return-1!==e.indexOf("bd")?(t.output="byte",t.base="general"):-1!==e.indexOf("b")?(t.output="byte",t.base="binary"):-1!==e.indexOf("d")?(t.output="byte",t.base="decimal"):-1===e.indexOf(":")?-1!==e.indexOf("o")&&(t.output="ordinal"):t.output="time";t.output="percent"}else t.output="currency"}(e=(o=(a=e=(r=(t=e).match(/^{([^}]*)}/))?(n.prefix=r[1],t.slice(r[0].length)):t).match(/{([^}]*)}$/))?(i.postfix=o[1],a.slice(0,-o[0].length)):a,P),s=P,(f=e.match(/[1-9]+[0-9]*/))&&(s.totalLength=+f[0]),c=P,(l=e.split(".")[0].match(/0+/))&&(c.characteristic=l[0].length),function(e,t){if(-1!==e.indexOf(".")){var n=e.split(".")[0];t.optionalCharacteristic=-1===n.indexOf("0")}}(e,P),u=P,-1!==e.indexOf("a")&&(u.average=!0),p=P,-1!==(d=e).indexOf("K")?p.forceAverage="thousand":-1!==d.indexOf("M")?p.forceAverage="million":-1!==d.indexOf("B")?p.forceAverage="billion":-1!==d.indexOf("T")&&(p.forceAverage="trillion"),function(e,t){var n=e.split(".")[1];if(n){var r=n.match(/0+/);r&&(t.mantissa=r[0].length)}}(e,P),b=P,(h=e).match(/\[\.]/)?b.optionalMantissa=!0:h.match(/\./)&&(b.optionalMantissa=!1),y=P,(m=e.split(".")[1])&&(y.trimMantissa=-1!==m.indexOf("[")),g=P,-1!==e.indexOf(",")&&(g.thousandSeparated=!0),v=P,-1!==e.indexOf(" ")&&(v.spaceSeparated=!0,v.spaceSeparatedCurrency=!0,(v.average||v.forceAverage)&&(v.spaceSeparatedAbbreviation=!0)),E=P,(w=e).match(/^\+?\([^)]*\)$/)&&(E.negative="parenthesis"),w.match(/^\+?-/)&&(E.negative="sign"),A=P,e.match(/^\+/)&&(A.forceSign=!0),P)}}},{}],9:[function(e,t,n){"use strict";var r=[{key:"ZiB",factor:Math.pow(1024,7)},{key:"ZB",factor:Math.pow(1e3,7)},{key:"YiB",factor:Math.pow(1024,8)},{key:"YB",factor:Math.pow(1e3,8)},{key:"TiB",factor:Math.pow(1024,4)},{key:"TB",factor:Math.pow(1e3,4)},{key:"PiB",factor:Math.pow(1024,5)},{key:"PB",factor:Math.pow(1e3,5)},{key:"MiB",factor:Math.pow(1024,2)},{key:"MB",factor:Math.pow(1e3,2)},{key:"KiB",factor:Math.pow(1024,1)},{key:"KB",factor:Math.pow(1e3,1)},{key:"GiB",factor:Math.pow(1024,3)},{key:"GB",factor:Math.pow(1e3,3)},{key:"EiB",factor:Math.pow(1024,6)},{key:"EB",factor:Math.pow(1e3,6)},{key:"B",factor:1}];function a(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}function i(e,t,n,i,o,s,f){var c=2<arguments.length&&void 0!==n?n:"",l=3<arguments.length?i:void 0,u=4<arguments.length?o:void 0,d=5<arguments.length?s:void 0,p=6<arguments.length?f:void 0;if(""!==e)return e===u?0:function e(t,n,i,o,s,f,c){var l=2<arguments.length&&void 0!==i?i:"",u=3<arguments.length?o:void 0,d=4<arguments.length?s:void 0,p=5<arguments.length?f:void 0,h=6<arguments.length?c:void 0;if(!isNaN(+t))return+t;var b="",y=t.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(y!==t)return-1*e(y,n,l,u,d,p,h);for(var m=0;m<r.length;m++){var g=r[m];if((b=t.replace(RegExp("([0-9 ])(".concat(g.key,")$")),"$1"))!==t)return e(b,n,l,u,d,p,h)*g.factor}if((b=t.replace("%",""))!==t)return e(b,n,l,u,d,p,h)/100;var v=parseFloat(t);if(!isNaN(v)){var w=u(v);if(w&&"."!==w&&(b=t.replace(new RegExp("".concat(a(w),"$")),""))!==t)return e(b,n,l,u,d,p,h);var E={};Object.keys(p).forEach((function(e){E[p[e]]=e}));for(var A=Object.keys(E).sort().reverse(),P=A.length,_=0;_<P;_++){var T=A[_],k=E[T];if((b=t.replace(T,""))!==t){var C=void 0;switch(k){case"thousand":C=Math.pow(10,3);break;case"million":C=Math.pow(10,6);break;case"billion":C=Math.pow(10,9);break;case"trillion":C=Math.pow(10,12)}return e(b,n,l,u,d,p,h)*C}}}}(function(e,t,n){var r=2<arguments.length&&void 0!==n?n:"",i=e.replace(r,"");return(i=i.replace(new RegExp("([0-9])".concat(a(t.thousands),"([0-9])"),"g"),"$1$2")).replace(t.decimal,".")}(e,t,c),t,c,l,u,d,p)}t.exports={unformat:function(t,n){var r,a,o,s=e("./globalState"),f=s.currentDelimiters(),c=s.currentCurrency().symbol,l=s.currentOrdinal(),u=s.getZeroFormat(),d=s.currentAbbreviations(),p=void 0;if("string"==typeof t)p=function(e,t){if(e.indexOf(":")&&":"!==t.thousands){var n=e.split(":");if(3===n.length){var r=+n[0],a=+n[1],i=+n[2];return!isNaN(r)&&!isNaN(a)&&!isNaN(i)}}}(t,f)?(a=+(r=t.split(":"))[0],o=+r[1],+r[2]+60*o+3600*a):i(t,f,c,l,u,d,n);else{if("number"!=typeof t)return;p=t}if(void 0!==p)return p}}},{"./globalState":4}],10:[function(e,t,n){"use strict";function r(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var i=e("./unformatting"),o=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,s={output:{type:"string",validValues:["currency","percent","byte","time","ordinal","number"]},base:{type:"string",validValues:["decimal","binary","general"],restriction:function(e,t){return"byte"===t.output},message:"`base` must be provided only when the output is `byte`",mandatory:function(e){return"byte"===e.output}},characteristic:{type:"number",restriction:function(e){return 0<=e},message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",lowPrecision:{type:"boolean",restriction:function(e,t){return!0===t.average},message:"`lowPrecision` must be provided only when the option `average` is set"},currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:function(e){return 0<=e},message:"value must be positive"},{restriction:function(e,t){return!t.exponential},message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:function(e){return 0<=e},message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",roundingFunction:"function",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",spaceSeparatedAbbreviation:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:function(e,t){return"percent"===t.output},message:"`prefixSymbol` can be provided only when the output is `percent`"}},f={languageTag:{type:"string",mandatory:!0,restriction:function(e){return e.match(o)},message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",ordinal:{type:"function",mandatory:!0},bytes:{type:"object",children:{binarySuffixes:"object",decimalSuffixes:"object"}},currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};function c(e){return void 0!==i.unformat(e)}function l(e,t,n,i){var o=3<arguments.length&&void 0!==i&&i,f=Object.keys(e).map((function(r){if(!t[r])return console.error("".concat(n," Invalid key: ").concat(r)),!1;var i=e[r],o=t[r];if("string"==typeof o&&(o={type:o}),"format"===o.type){if(!l(i,s,"[Validate ".concat(r,"]"),!0))return!1}else if(a(i)!==o.type)return console.error("".concat(n," ").concat(r,' type mismatched: "').concat(o.type,'" expected, "').concat(a(i),'" provided')),!1;if(o.restrictions&&o.restrictions.length)for(var f=o.restrictions.length,c=0;c<f;c++){var u=o.restrictions[c],d=u.restriction,p=u.message;if(!d(i,e))return console.error("".concat(n," ").concat(r," invalid value: ").concat(p)),!1}return o.restriction&&!o.restriction(i,e)?(console.error("".concat(n," ").concat(r," invalid value: ").concat(o.message)),!1):o.validValues&&-1===o.validValues.indexOf(i)?(console.error("".concat(n," ").concat(r," invalid value: must be among ").concat(JSON.stringify(o.validValues),', "').concat(i,'" provided')),!1):!(o.children&&!l(i,o.children,"[Validate ".concat(r,"]")))}));return o||f.push.apply(f,r(Object.keys(t).map((function(r){var a=t[r];if("string"==typeof a&&(a={type:a}),a.mandatory){var i=a.mandatory;if("function"==typeof i&&(i=i(e)),i&&void 0===e[r])return console.error("".concat(n,' Missing mandatory key "').concat(r,'"')),!1}return!0})))),f.reduce((function(e,t){return e&&t}),!0)}function u(e){return l(e,s,"[Validate format]")}t.exports={validate:function(e,t){var n=c(e),r=u(t);return n&&r},validateFormat:u,validateInput:c,validateLanguage:function(e){return l(e,f,"[Validate language]")}}},{"./unformatting":9}]},{},[7])(7)},59043:(e,t,n)=>{"use strict";const{Deflate:r,deflate:a,deflateRaw:i,gzip:o}=n(76106),{Inflate:s,inflate:f,inflateRaw:c,ungzip:l}=n(93371),u=n(67500);e.exports.Deflate=r,e.exports.deflate=a,e.exports.deflateRaw=i,e.exports.gzip=o,e.exports.Inflate=s,e.exports.inflate=f,e.exports.inflateRaw=c,e.exports.ungzip=l,e.exports.constants=u},76106:(e,t,n)=>{"use strict";const r=n(42849),a=n(28661),i=n(82985),o=n(3470),s=n(25806),f=Object.prototype.toString,{Z_NO_FLUSH:c,Z_SYNC_FLUSH:l,Z_FULL_FLUSH:u,Z_FINISH:d,Z_OK:p,Z_STREAM_END:h,Z_DEFAULT_COMPRESSION:b,Z_DEFAULT_STRATEGY:y,Z_DEFLATED:m}=n(67500);function g(e){this.options=a.assign({level:b,method:m,chunkSize:16384,windowBits:15,memLevel:8,strategy:y},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;let n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==p)throw new Error(o[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){let e;if(e="string"===typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===f.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,n=r.deflateSetDictionary(this.strm,e),n!==p)throw new Error(o[n]);this._dict_set=!0}}function v(e,t){const n=new g(t);if(n.push(e,!0),n.err)throw n.msg||o[n.err];return n.result}g.prototype.push=function(e,t){const n=this.strm,a=this.options.chunkSize;let o,s;if(this.ended)return!1;for(s=t===~~t?t:!0===t?d:c,"string"===typeof e?n.input=i.string2buf(e):"[object ArrayBuffer]"===f.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;)if(0===n.avail_out&&(n.output=new Uint8Array(a),n.next_out=0,n.avail_out=a),(s===l||s===u)&&n.avail_out<=6)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else{if(o=r.deflate(n,s),o===h)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),o=r.deflateEnd(this.strm),this.onEnd(o),this.ended=!0,o===p;if(0!==n.avail_out){if(s>0&&n.next_out>0)this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;else if(0===n.avail_in)break}else this.onData(n.output)}return!0},g.prototype.onData=function(e){this.chunks.push(e)},g.prototype.onEnd=function(e){e===p&&(this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},e.exports.Deflate=g,e.exports.deflate=v,e.exports.deflateRaw=function(e,t){return(t=t||{}).raw=!0,v(e,t)},e.exports.gzip=function(e,t){return(t=t||{}).gzip=!0,v(e,t)},e.exports.constants=n(67500)},93371:(e,t,n)=>{"use strict";const r=n(21168),a=n(28661),i=n(82985),o=n(3470),s=n(25806),f=n(35730),c=Object.prototype.toString,{Z_NO_FLUSH:l,Z_FINISH:u,Z_OK:d,Z_STREAM_END:p,Z_NEED_DICT:h,Z_STREAM_ERROR:b,Z_DATA_ERROR:y,Z_MEM_ERROR:m}=n(67500);function g(e){this.options=a.assign({chunkSize:65536,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&0===(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;let n=r.inflateInit2(this.strm,t.windowBits);if(n!==d)throw new Error(o[n]);if(this.header=new f,r.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"===typeof t.dictionary?t.dictionary=i.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=r.inflateSetDictionary(this.strm,t.dictionary),n!==d)))throw new Error(o[n])}function v(e,t){const n=new g(t);if(n.push(e),n.err)throw n.msg||o[n.err];return n.result}g.prototype.push=function(e,t){const n=this.strm,a=this.options.chunkSize,o=this.options.dictionary;let s,f,g;if(this.ended)return!1;for(f=t===~~t?t:!0===t?u:l,"[object ArrayBuffer]"===c.call(e)?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(0===n.avail_out&&(n.output=new Uint8Array(a),n.next_out=0,n.avail_out=a),s=r.inflate(n,f),s===h&&o&&(s=r.inflateSetDictionary(n,o),s===d?s=r.inflate(n,f):s===y&&(s=h));n.avail_in>0&&s===p&&n.state.wrap>0&&0!==e[n.next_in];)r.inflateReset(n),s=r.inflate(n,f);switch(s){case b:case y:case h:case m:return this.onEnd(s),this.ended=!0,!1}if(g=n.avail_out,n.next_out&&(0===n.avail_out||s===p))if("string"===this.options.to){let e=i.utf8border(n.output,n.next_out),t=n.next_out-e,r=i.buf2string(n.output,e);n.next_out=t,n.avail_out=a-t,t&&n.output.set(n.output.subarray(e,e+t),0),this.onData(r)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(s!==d||0!==g){if(s===p)return s=r.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(0===n.avail_in)break}}return!0},g.prototype.onData=function(e){this.chunks.push(e)},g.prototype.onEnd=function(e){e===d&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},e.exports.Inflate=g,e.exports.inflate=v,e.exports.inflateRaw=function(e,t){return(t=t||{}).raw=!0,v(e,t)},e.exports.ungzip=v,e.exports.constants=n(67500)},28661:e=>{"use strict";const t=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);e.exports.assign=function(e){const n=Array.prototype.slice.call(arguments,1);for(;n.length;){const r=n.shift();if(r){if("object"!==typeof r)throw new TypeError(r+"must be non-object");for(const n in r)t(r,n)&&(e[n]=r[n])}}return e},e.exports.flattenChunks=e=>{let t=0;for(let r=0,a=e.length;r<a;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,a=0,i=e.length;r<i;r++){let t=e[r];n.set(t,a),a+=t.length}return n}},82985:e=>{"use strict";let t=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(r){t=!1}const n=new Uint8Array(256);for(let a=0;a<256;a++)n[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;n[254]=n[254]=1,e.exports.string2buf=e=>{if("function"===typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(e);let t,n,r,a,i,o=e.length,s=0;for(a=0;a<o;a++)n=e.charCodeAt(a),55296===(64512&n)&&a+1<o&&(r=e.charCodeAt(a+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),a++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(s),i=0,a=0;i<s;a++)n=e.charCodeAt(a),55296===(64512&n)&&a+1<o&&(r=e.charCodeAt(a+1),56320===(64512&r)&&(n=65536+(n-55296<<10)+(r-56320),a++)),n<128?t[i++]=n:n<2048?(t[i++]=192|n>>>6,t[i++]=128|63&n):n<65536?(t[i++]=224|n>>>12,t[i++]=128|n>>>6&63,t[i++]=128|63&n):(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63,t[i++]=128|n>>>6&63,t[i++]=128|63&n);return t};e.exports.buf2string=(e,r)=>{const a=r||e.length;if("function"===typeof TextDecoder&&TextDecoder.prototype.decode)return(new TextDecoder).decode(e.subarray(0,r));let i,o;const s=new Array(2*a);for(o=0,i=0;i<a;){let t=e[i++];if(t<128){s[o++]=t;continue}let r=n[t];if(r>4)s[o++]=65533,i+=r-1;else{for(t&=2===r?31:3===r?15:7;r>1&&i<a;)t=t<<6|63&e[i++],r--;r>1?s[o++]=65533:t<65536?s[o++]=t:(t-=65536,s[o++]=55296|t>>10&1023,s[o++]=56320|1023&t)}}return((e,n)=>{if(n<65534&&e.subarray&&t)return String.fromCharCode.apply(null,e.length===n?e:e.subarray(0,n));let r="";for(let t=0;t<n;t++)r+=String.fromCharCode(e[t]);return r})(s,o)},e.exports.utf8border=(e,t)=>{(t=t||e.length)>e.length&&(t=e.length);let r=t-1;for(;r>=0&&128===(192&e[r]);)r--;return r<0||0===r?t:r+n[e[r]]>t?r:t}},98409:e=>{"use strict";e.exports=(e,t,n,r)=>{let a=65535&e|0,i=e>>>16&65535|0,o=0;for(;0!==n;){o=n>2e3?2e3:n,n-=o;do{a=a+t[r++]|0,i=i+a|0}while(--o);a%=65521,i%=65521}return a|i<<16|0}},67500:e=>{"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},91656:e=>{"use strict";const t=new Uint32Array((()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t})());e.exports=(e,n,r,a)=>{const i=t,o=a+r;e^=-1;for(let t=a;t<o;t++)e=e>>>8^i[255&(e^n[t])];return-1^e}},42849:(e,t,n)=>{"use strict";const{_tr_init:r,_tr_stored_block:a,_tr_flush_block:i,_tr_tally:o,_tr_align:s}=n(90889),f=n(98409),c=n(91656),l=n(3470),{Z_NO_FLUSH:u,Z_PARTIAL_FLUSH:d,Z_FULL_FLUSH:p,Z_FINISH:h,Z_BLOCK:b,Z_OK:y,Z_STREAM_END:m,Z_STREAM_ERROR:g,Z_DATA_ERROR:v,Z_BUF_ERROR:w,Z_DEFAULT_COMPRESSION:E,Z_FILTERED:A,Z_HUFFMAN_ONLY:P,Z_RLE:_,Z_FIXED:T,Z_DEFAULT_STRATEGY:k,Z_UNKNOWN:C,Z_DEFLATED:x}=n(67500),O=258,S=262,R=42,I=113,N=666,B=(e,t)=>(e.msg=l[t],t),j=e=>2*e-(e>4?9:0),D=e=>{let t=e.length;for(;--t>=0;)e[t]=0},L=e=>{let t,n,r,a=e.w_size;t=e.hash_size,r=t;do{n=e.head[--r],e.head[r]=n>=a?n-a:0}while(--t);t=a,r=t;do{n=e.prev[--r],e.prev[r]=n>=a?n-a:0}while(--t)};let M=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask;const U=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))},F=(e,t)=>{i(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,U(e.strm)},z=(e,t)=>{e.pending_buf[e.pending++]=t},$=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t},G=(e,t,n,r)=>{let a=e.avail_in;return a>r&&(a=r),0===a?0:(e.avail_in-=a,t.set(e.input.subarray(e.next_in,e.next_in+a),n),1===e.state.wrap?e.adler=f(e.adler,t,a,n):2===e.state.wrap&&(e.adler=c(e.adler,t,a,n)),e.next_in+=a,e.total_in+=a,a)},H=(e,t)=>{let n,r,a=e.max_chain_length,i=e.strstart,o=e.prev_length,s=e.nice_match;const f=e.strstart>e.w_size-S?e.strstart-(e.w_size-S):0,c=e.window,l=e.w_mask,u=e.prev,d=e.strstart+O;let p=c[i+o-1],h=c[i+o];e.prev_length>=e.good_match&&(a>>=2),s>e.lookahead&&(s=e.lookahead);do{if(n=t,c[n+o]===h&&c[n+o-1]===p&&c[n]===c[i]&&c[++n]===c[i+1]){i+=2,n++;do{}while(c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&c[++i]===c[++n]&&i<d);if(r=O-(d-i),i=d-O,r>o){if(e.match_start=t,o=r,r>=s)break;p=c[i+o-1],h=c[i+o]}}}while((t=u[t&l])>f&&0!==--a);return o<=e.lookahead?o:e.lookahead},W=e=>{const t=e.w_size;let n,r,a;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-S)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),L(e),r+=t),0===e.strm.avail_in)break;if(n=G(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=3)for(a=e.strstart-e.insert,e.ins_h=e.window[a],e.ins_h=M(e,e.ins_h,e.window[a+1]);e.insert&&(e.ins_h=M(e,e.ins_h,e.window[a+3-1]),e.prev[a&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=a,a++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<S&&0!==e.strm.avail_in)},V=(e,t)=>{let n,r,i,o=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,s=0,f=e.strm.avail_in;do{if(n=65535,i=e.bi_valid+42>>3,e.strm.avail_out<i)break;if(i=e.strm.avail_out-i,r=e.strstart-e.block_start,n>r+e.strm.avail_in&&(n=r+e.strm.avail_in),n>i&&(n=i),n<o&&(0===n&&t!==h||t===u||n!==r+e.strm.avail_in))break;s=t===h&&n===r+e.strm.avail_in?1:0,a(e,0,0,s),e.pending_buf[e.pending-4]=n,e.pending_buf[e.pending-3]=n>>8,e.pending_buf[e.pending-2]=~n,e.pending_buf[e.pending-1]=~n>>8,U(e.strm),r&&(r>n&&(r=n),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+r),e.strm.next_out),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r,e.block_start+=r,n-=r),n&&(G(e.strm,e.strm.output,e.strm.next_out,n),e.strm.next_out+=n,e.strm.avail_out-=n,e.strm.total_out+=n)}while(0===s);return f-=e.strm.avail_in,f&&(f>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=f&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-f,e.strm.next_in),e.strstart),e.strstart+=f,e.insert+=f>e.w_size-e.insert?e.w_size-e.insert:f),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),s?4:t!==u&&t!==h&&0===e.strm.avail_in&&e.strstart===e.block_start?2:(i=e.window_size-e.strstart,e.strm.avail_in>i&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,i+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),i>e.strm.avail_in&&(i=e.strm.avail_in),i&&(G(e.strm,e.window,e.strstart,i),e.strstart+=i,e.insert+=i>e.w_size-e.insert?e.w_size-e.insert:i),e.high_water<e.strstart&&(e.high_water=e.strstart),i=e.bi_valid+42>>3,i=e.pending_buf_size-i>65535?65535:e.pending_buf_size-i,o=i>e.w_size?e.w_size:i,r=e.strstart-e.block_start,(r>=o||(r||t===h)&&t!==u&&0===e.strm.avail_in&&r<=i)&&(n=r>i?i:r,s=t===h&&0===e.strm.avail_in&&n===r?1:0,a(e,e.block_start,n,s),e.block_start+=n,U(e.strm)),s?3:1)},q=(e,t)=>{let n,r;for(;;){if(e.lookahead<S){if(W(e),e.lookahead<S&&t===u)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=M(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-S&&(e.match_length=H(e,n)),e.match_length>=3)if(r=o(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=M(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=M(e,e.ins_h,e.window[e.strstart+1]);else r=o(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(F(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,t===h?(F(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(F(e,!1),0===e.strm.avail_out)?1:2},K=(e,t)=>{let n,r,a;for(;;){if(e.lookahead<S){if(W(e),e.lookahead<S&&t===u)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=3&&(e.ins_h=M(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-S&&(e.match_length=H(e,n),e.match_length<=5&&(e.strategy===A||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){a=e.strstart+e.lookahead-3,r=o(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=a&&(e.ins_h=M(e,e.ins_h,e.window[e.strstart+3-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,r&&(F(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if(r=o(e,0,e.window[e.strstart-1]),r&&F(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=o(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,t===h?(F(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(F(e,!1),0===e.strm.avail_out)?1:2};function Z(e,t,n,r,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=a}const J=[new Z(0,0,0,0,V),new Z(4,4,8,4,q),new Z(4,5,16,8,q),new Z(4,6,32,32,q),new Z(4,4,16,16,K),new Z(8,16,32,32,K),new Z(8,16,128,128,K),new Z(8,32,128,256,K),new Z(32,128,258,1024,K),new Z(32,258,258,4096,K)];function Y(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(1146),this.dyn_dtree=new Uint16Array(122),this.bl_tree=new Uint16Array(78),D(this.dyn_ltree),D(this.dyn_dtree),D(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(16),this.heap=new Uint16Array(573),D(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(573),D(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Q=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==R&&57!==t.status&&69!==t.status&&73!==t.status&&91!==t.status&&103!==t.status&&t.status!==I&&t.status!==N?1:0},X=e=>{if(Q(e))return B(e,g);e.total_in=e.total_out=0,e.data_type=C;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=2===t.wrap?57:t.wrap?R:I,e.adler=2===t.wrap?0:1,t.last_flush=-2,r(t),y},ee=e=>{const t=X(e);var n;return t===y&&((n=e.state).window_size=2*n.w_size,D(n.head),n.max_lazy_match=J[n.level].max_lazy,n.good_match=J[n.level].good_length,n.nice_match=J[n.level].nice_length,n.max_chain_length=J[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=2,n.match_available=0,n.ins_h=0),t},te=(e,t,n,r,a,i)=>{if(!e)return g;let o=1;if(t===E&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),a<1||a>9||n!==x||r<8||r>15||t<0||t>9||i<0||i>T||8===r&&1!==o)return B(e,g);8===r&&(r=9);const s=new Y;return e.state=s,s.strm=e,s.status=R,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=a+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+3-1)/3),s.window=new Uint8Array(2*s.w_size),s.head=new Uint16Array(s.hash_size),s.prev=new Uint16Array(s.w_size),s.lit_bufsize=1<<a+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=new Uint8Array(s.pending_buf_size),s.sym_buf=s.lit_bufsize,s.sym_end=3*(s.lit_bufsize-1),s.level=t,s.strategy=i,s.method=n,ee(e)};e.exports.deflateInit=(e,t)=>te(e,t,x,15,8,k),e.exports.deflateInit2=te,e.exports.deflateReset=ee,e.exports.deflateResetKeep=X,e.exports.deflateSetHeader=(e,t)=>Q(e)||2!==e.state.wrap?g:(e.state.gzhead=t,y),e.exports.deflate=(e,t)=>{if(Q(e)||t>b||t<0)return e?B(e,g):g;const n=e.state;if(!e.output||0!==e.avail_in&&!e.input||n.status===N&&t!==h)return B(e,0===e.avail_out?w:g);const r=n.last_flush;if(n.last_flush=t,0!==n.pending){if(U(e),0===e.avail_out)return n.last_flush=-1,y}else if(0===e.avail_in&&j(t)<=j(r)&&t!==h)return B(e,w);if(n.status===N&&0!==e.avail_in)return B(e,w);if(n.status===R&&0===n.wrap&&(n.status=I),n.status===R){let t=x+(n.w_bits-8<<4)<<8,r=-1;if(r=n.strategy>=P||n.level<2?0:n.level<6?1:6===n.level?2:3,t|=r<<6,0!==n.strstart&&(t|=32),t+=31-t%31,$(n,t),0!==n.strstart&&($(n,e.adler>>>16),$(n,65535&e.adler)),e.adler=1,n.status=I,U(e),0!==n.pending)return n.last_flush=-1,y}if(57===n.status)if(e.adler=0,z(n,31),z(n,139),z(n,8),n.gzhead)z(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),z(n,255&n.gzhead.time),z(n,n.gzhead.time>>8&255),z(n,n.gzhead.time>>16&255),z(n,n.gzhead.time>>24&255),z(n,9===n.level?2:n.strategy>=P||n.level<2?4:0),z(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(z(n,255&n.gzhead.extra.length),z(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=c(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69;else if(z(n,0),z(n,0),z(n,0),z(n,0),z(n,0),z(n,9===n.level?2:n.strategy>=P||n.level<2?4:0),z(n,3),n.status=I,U(e),0!==n.pending)return n.last_flush=-1,y;if(69===n.status){if(n.gzhead.extra){let t=n.pending,r=(65535&n.gzhead.extra.length)-n.gzindex;for(;n.pending+r>n.pending_buf_size;){let a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>t&&(e.adler=c(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex+=a,U(e),0!==n.pending)return n.last_flush=-1,y;t=0,r-=a}let a=new Uint8Array(n.gzhead.extra);n.pending_buf.set(a.subarray(n.gzindex,n.gzindex+r),n.pending),n.pending+=r,n.gzhead.hcrc&&n.pending>t&&(e.adler=c(e.adler,n.pending_buf,n.pending-t,t)),n.gzindex=0}n.status=73}if(73===n.status){if(n.gzhead.name){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=c(e.adler,n.pending_buf,n.pending-r,r)),U(e),0!==n.pending)return n.last_flush=-1,y;r=0}t=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,z(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=c(e.adler,n.pending_buf,n.pending-r,r)),n.gzindex=0}n.status=91}if(91===n.status){if(n.gzhead.comment){let t,r=n.pending;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>r&&(e.adler=c(e.adler,n.pending_buf,n.pending-r,r)),U(e),0!==n.pending)return n.last_flush=-1,y;r=0}t=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,z(n,t)}while(0!==t);n.gzhead.hcrc&&n.pending>r&&(e.adler=c(e.adler,n.pending_buf,n.pending-r,r))}n.status=103}if(103===n.status){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(U(e),0!==n.pending))return n.last_flush=-1,y;z(n,255&e.adler),z(n,e.adler>>8&255),e.adler=0}if(n.status=I,U(e),0!==n.pending)return n.last_flush=-1,y}if(0!==e.avail_in||0!==n.lookahead||t!==u&&n.status!==N){let r=0===n.level?V(n,t):n.strategy===P?((e,t)=>{let n;for(;;){if(0===e.lookahead&&(W(e),0===e.lookahead)){if(t===u)return 1;break}if(e.match_length=0,n=o(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(F(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===h?(F(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(F(e,!1),0===e.strm.avail_out)?1:2})(n,t):n.strategy===_?((e,t)=>{let n,r,a,i;const s=e.window;for(;;){if(e.lookahead<=O){if(W(e),e.lookahead<=O&&t===u)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(a=e.strstart-1,r=s[a],r===s[++a]&&r===s[++a]&&r===s[++a])){i=e.strstart+O;do{}while(r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&r===s[++a]&&a<i);e.match_length=O-(i-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(n=o(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(F(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,t===h?(F(e,!0),0===e.strm.avail_out?3:4):e.sym_next&&(F(e,!1),0===e.strm.avail_out)?1:2})(n,t):J[n.level].func(n,t);if(3!==r&&4!==r||(n.status=N),1===r||3===r)return 0===e.avail_out&&(n.last_flush=-1),y;if(2===r&&(t===d?s(n):t!==b&&(a(n,0,0,!1),t===p&&(D(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),U(e),0===e.avail_out))return n.last_flush=-1,y}return t!==h?y:n.wrap<=0?m:(2===n.wrap?(z(n,255&e.adler),z(n,e.adler>>8&255),z(n,e.adler>>16&255),z(n,e.adler>>24&255),z(n,255&e.total_in),z(n,e.total_in>>8&255),z(n,e.total_in>>16&255),z(n,e.total_in>>24&255)):($(n,e.adler>>>16),$(n,65535&e.adler)),U(e),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?y:m)},e.exports.deflateEnd=e=>{if(Q(e))return g;const t=e.state.status;return e.state=null,t===I?B(e,v):y},e.exports.deflateSetDictionary=(e,t)=>{let n=t.length;if(Q(e))return g;const r=e.state,a=r.wrap;if(2===a||1===a&&r.status!==R||r.lookahead)return g;if(1===a&&(e.adler=f(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){0===a&&(D(r.head),r.strstart=0,r.block_start=0,r.insert=0);let e=new Uint8Array(r.w_size);e.set(t.subarray(n-r.w_size,n),0),t=e,n=r.w_size}const i=e.avail_in,o=e.next_in,s=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,W(r);r.lookahead>=3;){let e=r.strstart,t=r.lookahead-2;do{r.ins_h=M(r,r.ins_h,r.window[e+3-1]),r.prev[e&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=e,e++}while(--t);r.strstart=e,r.lookahead=2,W(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=o,e.input=s,e.avail_in=i,r.wrap=a,y},e.exports.deflateInfo="pako deflate (from Nodeca project)"},35730:e=>{"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},90374:e=>{"use strict";const t=16209;e.exports=function(e,n){let r,a,i,o,s,f,c,l,u,d,p,h,b,y,m,g,v,w,E,A,P,_,T,k;const C=e.state;r=e.next_in,T=e.input,a=r+(e.avail_in-5),i=e.next_out,k=e.output,o=i-(n-e.avail_out),s=i+(e.avail_out-257),f=C.dmax,c=C.wsize,l=C.whave,u=C.wnext,d=C.window,p=C.hold,h=C.bits,b=C.lencode,y=C.distcode,m=(1<<C.lenbits)-1,g=(1<<C.distbits)-1;e:do{h<15&&(p+=T[r++]<<h,h+=8,p+=T[r++]<<h,h+=8),v=b[p&m];t:for(;;){if(w=v>>>24,p>>>=w,h-=w,w=v>>>16&255,0===w)k[i++]=65535&v;else{if(!(16&w)){if(0===(64&w)){v=b[(65535&v)+(p&(1<<w)-1)];continue t}if(32&w){C.mode=16191;break e}e.msg="invalid literal/length code",C.mode=t;break e}E=65535&v,w&=15,w&&(h<w&&(p+=T[r++]<<h,h+=8),E+=p&(1<<w)-1,p>>>=w,h-=w),h<15&&(p+=T[r++]<<h,h+=8,p+=T[r++]<<h,h+=8),v=y[p&g];n:for(;;){if(w=v>>>24,p>>>=w,h-=w,w=v>>>16&255,!(16&w)){if(0===(64&w)){v=y[(65535&v)+(p&(1<<w)-1)];continue n}e.msg="invalid distance code",C.mode=t;break e}if(A=65535&v,w&=15,h<w&&(p+=T[r++]<<h,h+=8,h<w&&(p+=T[r++]<<h,h+=8)),A+=p&(1<<w)-1,A>f){e.msg="invalid distance too far back",C.mode=t;break e}if(p>>>=w,h-=w,w=i-o,A>w){if(w=A-w,w>l&&C.sane){e.msg="invalid distance too far back",C.mode=t;break e}if(P=0,_=d,0===u){if(P+=c-w,w<E){E-=w;do{k[i++]=d[P++]}while(--w);P=i-A,_=k}}else if(u<w){if(P+=c+u-w,w-=u,w<E){E-=w;do{k[i++]=d[P++]}while(--w);if(P=0,u<E){w=u,E-=w;do{k[i++]=d[P++]}while(--w);P=i-A,_=k}}}else if(P+=u-w,w<E){E-=w;do{k[i++]=d[P++]}while(--w);P=i-A,_=k}for(;E>2;)k[i++]=_[P++],k[i++]=_[P++],k[i++]=_[P++],E-=3;E&&(k[i++]=_[P++],E>1&&(k[i++]=_[P++]))}else{P=i-A;do{k[i++]=k[P++],k[i++]=k[P++],k[i++]=k[P++],E-=3}while(E>2);E&&(k[i++]=k[P++],E>1&&(k[i++]=k[P++]))}break}}break}}while(r<a&&i<s);E=h>>3,r-=E,h-=E<<3,p&=(1<<h)-1,e.next_in=r,e.next_out=i,e.avail_in=r<a?a-r+5:5-(r-a),e.avail_out=i<s?s-i+257:257-(i-s),C.hold=p,C.bits=h}},21168:(e,t,n)=>{"use strict";const r=n(98409),a=n(91656),i=n(90374),o=n(26583),{Z_FINISH:s,Z_BLOCK:f,Z_TREES:c,Z_OK:l,Z_STREAM_END:u,Z_NEED_DICT:d,Z_STREAM_ERROR:p,Z_DATA_ERROR:h,Z_MEM_ERROR:b,Z_BUF_ERROR:y,Z_DEFLATED:m}=n(67500),g=16180,v=16190,w=16191,E=16192,A=16194,P=16199,_=16200,T=16206,k=16209,C=16210,x=e=>(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24);function O(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const S=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<g||t.mode>16211?1:0},R=e=>{if(S(e))return p;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=g,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(852),t.distcode=t.distdyn=new Int32Array(592),t.sane=1,t.back=-1,l},I=e=>{if(S(e))return p;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,R(e)},N=(e,t)=>{let n;if(S(e))return p;const r=e.state;return t<0?(n=0,t=-t):(n=5+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?p:(null!==r.window&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,I(e))},B=(e,t)=>{if(!e)return p;const n=new O;e.state=n,n.strm=e,n.window=null,n.mode=g;const r=N(e,t);return r!==l&&(e.state=null),r};let j,D,L=!0;const M=e=>{if(L){j=new Int32Array(512),D=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(o(1,e.lens,0,288,j,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;o(2,e.lens,0,32,D,0,e.work,{bits:5}),L=!1}e.lencode=j,e.lenbits=9,e.distcode=D,e.distbits=5},U=(e,t,n,r)=>{let a;const i=e.state;return null===i.window&&(i.wsize=1<<i.wbits,i.wnext=0,i.whave=0,i.window=new Uint8Array(i.wsize)),r>=i.wsize?(i.window.set(t.subarray(n-i.wsize,n),0),i.wnext=0,i.whave=i.wsize):(a=i.wsize-i.wnext,a>r&&(a=r),i.window.set(t.subarray(n-r,n-r+a),i.wnext),(r-=a)?(i.window.set(t.subarray(n-r,n),0),i.wnext=r,i.whave=i.wsize):(i.wnext+=a,i.wnext===i.wsize&&(i.wnext=0),i.whave<i.wsize&&(i.whave+=a))),0};e.exports.inflateReset=I,e.exports.inflateReset2=N,e.exports.inflateResetKeep=R,e.exports.inflateInit=e=>B(e,15),e.exports.inflateInit2=B,e.exports.inflate=(e,t)=>{let n,O,R,I,N,B,j,D,L,F,z,$,G,H,W,V,q,K,Z,J,Y,Q,X=0;const ee=new Uint8Array(4);let te,ne;const re=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(S(e)||!e.output||!e.input&&0!==e.avail_in)return p;n=e.state,n.mode===w&&(n.mode=E),N=e.next_out,R=e.output,j=e.avail_out,I=e.next_in,O=e.input,B=e.avail_in,D=n.hold,L=n.bits,F=B,z=j,Q=l;e:for(;;)switch(n.mode){case g:if(0===n.wrap){n.mode=E;break}for(;L<16;){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}if(2&n.wrap&&35615===D){0===n.wbits&&(n.wbits=15),n.check=0,ee[0]=255&D,ee[1]=D>>>8&255,n.check=a(n.check,ee,2,0),D=0,L=0,n.mode=16181;break}if(n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&D)<<8)+(D>>8))%31){e.msg="incorrect header check",n.mode=k;break}if((15&D)!==m){e.msg="unknown compression method",n.mode=k;break}if(D>>>=4,L-=4,Y=8+(15&D),0===n.wbits&&(n.wbits=Y),Y>15||Y>n.wbits){e.msg="invalid window size",n.mode=k;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=512&D?16189:w,D=0,L=0;break;case 16181:for(;L<16;){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}if(n.flags=D,(255&n.flags)!==m){e.msg="unknown compression method",n.mode=k;break}if(57344&n.flags){e.msg="unknown header flags set",n.mode=k;break}n.head&&(n.head.text=D>>8&1),512&n.flags&&4&n.wrap&&(ee[0]=255&D,ee[1]=D>>>8&255,n.check=a(n.check,ee,2,0)),D=0,L=0,n.mode=16182;case 16182:for(;L<32;){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}n.head&&(n.head.time=D),512&n.flags&&4&n.wrap&&(ee[0]=255&D,ee[1]=D>>>8&255,ee[2]=D>>>16&255,ee[3]=D>>>24&255,n.check=a(n.check,ee,4,0)),D=0,L=0,n.mode=16183;case 16183:for(;L<16;){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}n.head&&(n.head.xflags=255&D,n.head.os=D>>8),512&n.flags&&4&n.wrap&&(ee[0]=255&D,ee[1]=D>>>8&255,n.check=a(n.check,ee,2,0)),D=0,L=0,n.mode=16184;case 16184:if(1024&n.flags){for(;L<16;){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}n.length=D,n.head&&(n.head.extra_len=D),512&n.flags&&4&n.wrap&&(ee[0]=255&D,ee[1]=D>>>8&255,n.check=a(n.check,ee,2,0)),D=0,L=0}else n.head&&(n.head.extra=null);n.mode=16185;case 16185:if(1024&n.flags&&($=n.length,$>B&&($=B),$&&(n.head&&(Y=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(O.subarray(I,I+$),Y)),512&n.flags&&4&n.wrap&&(n.check=a(n.check,O,$,I)),B-=$,I+=$,n.length-=$),n.length))break e;n.length=0,n.mode=16186;case 16186:if(2048&n.flags){if(0===B)break e;$=0;do{Y=O[I+$++],n.head&&Y&&n.length<65536&&(n.head.name+=String.fromCharCode(Y))}while(Y&&$<B);if(512&n.flags&&4&n.wrap&&(n.check=a(n.check,O,$,I)),B-=$,I+=$,Y)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=16187;case 16187:if(4096&n.flags){if(0===B)break e;$=0;do{Y=O[I+$++],n.head&&Y&&n.length<65536&&(n.head.comment+=String.fromCharCode(Y))}while(Y&&$<B);if(512&n.flags&&4&n.wrap&&(n.check=a(n.check,O,$,I)),B-=$,I+=$,Y)break e}else n.head&&(n.head.comment=null);n.mode=16188;case 16188:if(512&n.flags){for(;L<16;){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}if(4&n.wrap&&D!==(65535&n.check)){e.msg="header crc mismatch",n.mode=k;break}D=0,L=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=w;break;case 16189:for(;L<32;){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}e.adler=n.check=x(D),D=0,L=0,n.mode=v;case v:if(0===n.havedict)return e.next_out=N,e.avail_out=j,e.next_in=I,e.avail_in=B,n.hold=D,n.bits=L,d;e.adler=n.check=1,n.mode=w;case w:if(t===f||t===c)break e;case E:if(n.last){D>>>=7&L,L-=7&L,n.mode=T;break}for(;L<3;){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}switch(n.last=1&D,D>>>=1,L-=1,3&D){case 0:n.mode=16193;break;case 1:if(M(n),n.mode=P,t===c){D>>>=2,L-=2;break e}break;case 2:n.mode=16196;break;case 3:e.msg="invalid block type",n.mode=k}D>>>=2,L-=2;break;case 16193:for(D>>>=7&L,L-=7&L;L<32;){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}if((65535&D)!==(D>>>16^65535)){e.msg="invalid stored block lengths",n.mode=k;break}if(n.length=65535&D,D=0,L=0,n.mode=A,t===c)break e;case A:n.mode=16195;case 16195:if($=n.length,$){if($>B&&($=B),$>j&&($=j),0===$)break e;R.set(O.subarray(I,I+$),N),B-=$,I+=$,j-=$,N+=$,n.length-=$;break}n.mode=w;break;case 16196:for(;L<14;){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}if(n.nlen=257+(31&D),D>>>=5,L-=5,n.ndist=1+(31&D),D>>>=5,L-=5,n.ncode=4+(15&D),D>>>=4,L-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=k;break}n.have=0,n.mode=16197;case 16197:for(;n.have<n.ncode;){for(;L<3;){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}n.lens[re[n.have++]]=7&D,D>>>=3,L-=3}for(;n.have<19;)n.lens[re[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,te={bits:n.lenbits},Q=o(0,n.lens,0,19,n.lencode,0,n.work,te),n.lenbits=te.bits,Q){e.msg="invalid code lengths set",n.mode=k;break}n.have=0,n.mode=16198;case 16198:for(;n.have<n.nlen+n.ndist;){for(;X=n.lencode[D&(1<<n.lenbits)-1],W=X>>>24,V=X>>>16&255,q=65535&X,!(W<=L);){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}if(q<16)D>>>=W,L-=W,n.lens[n.have++]=q;else{if(16===q){for(ne=W+2;L<ne;){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}if(D>>>=W,L-=W,0===n.have){e.msg="invalid bit length repeat",n.mode=k;break}Y=n.lens[n.have-1],$=3+(3&D),D>>>=2,L-=2}else if(17===q){for(ne=W+3;L<ne;){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}D>>>=W,L-=W,Y=0,$=3+(7&D),D>>>=3,L-=3}else{for(ne=W+7;L<ne;){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}D>>>=W,L-=W,Y=0,$=11+(127&D),D>>>=7,L-=7}if(n.have+$>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=k;break}for(;$--;)n.lens[n.have++]=Y}}if(n.mode===k)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=k;break}if(n.lenbits=9,te={bits:n.lenbits},Q=o(1,n.lens,0,n.nlen,n.lencode,0,n.work,te),n.lenbits=te.bits,Q){e.msg="invalid literal/lengths set",n.mode=k;break}if(n.distbits=6,n.distcode=n.distdyn,te={bits:n.distbits},Q=o(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,te),n.distbits=te.bits,Q){e.msg="invalid distances set",n.mode=k;break}if(n.mode=P,t===c)break e;case P:n.mode=_;case _:if(B>=6&&j>=258){e.next_out=N,e.avail_out=j,e.next_in=I,e.avail_in=B,n.hold=D,n.bits=L,i(e,z),N=e.next_out,R=e.output,j=e.avail_out,I=e.next_in,O=e.input,B=e.avail_in,D=n.hold,L=n.bits,n.mode===w&&(n.back=-1);break}for(n.back=0;X=n.lencode[D&(1<<n.lenbits)-1],W=X>>>24,V=X>>>16&255,q=65535&X,!(W<=L);){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}if(V&&0===(240&V)){for(K=W,Z=V,J=q;X=n.lencode[J+((D&(1<<K+Z)-1)>>K)],W=X>>>24,V=X>>>16&255,q=65535&X,!(K+W<=L);){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}D>>>=K,L-=K,n.back+=K}if(D>>>=W,L-=W,n.back+=W,n.length=q,0===V){n.mode=16205;break}if(32&V){n.back=-1,n.mode=w;break}if(64&V){e.msg="invalid literal/length code",n.mode=k;break}n.extra=15&V,n.mode=16201;case 16201:if(n.extra){for(ne=n.extra;L<ne;){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}n.length+=D&(1<<n.extra)-1,D>>>=n.extra,L-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=16202;case 16202:for(;X=n.distcode[D&(1<<n.distbits)-1],W=X>>>24,V=X>>>16&255,q=65535&X,!(W<=L);){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}if(0===(240&V)){for(K=W,Z=V,J=q;X=n.distcode[J+((D&(1<<K+Z)-1)>>K)],W=X>>>24,V=X>>>16&255,q=65535&X,!(K+W<=L);){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}D>>>=K,L-=K,n.back+=K}if(D>>>=W,L-=W,n.back+=W,64&V){e.msg="invalid distance code",n.mode=k;break}n.offset=q,n.extra=15&V,n.mode=16203;case 16203:if(n.extra){for(ne=n.extra;L<ne;){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}n.offset+=D&(1<<n.extra)-1,D>>>=n.extra,L-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=k;break}n.mode=16204;case 16204:if(0===j)break e;if($=z-j,n.offset>$){if($=n.offset-$,$>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=k;break}$>n.wnext?($-=n.wnext,G=n.wsize-$):G=n.wnext-$,$>n.length&&($=n.length),H=n.window}else H=R,G=N-n.offset,$=n.length;$>j&&($=j),j-=$,n.length-=$;do{R[N++]=H[G++]}while(--$);0===n.length&&(n.mode=_);break;case 16205:if(0===j)break e;R[N++]=n.length,j--,n.mode=_;break;case T:if(n.wrap){for(;L<32;){if(0===B)break e;B--,D|=O[I++]<<L,L+=8}if(z-=j,e.total_out+=z,n.total+=z,4&n.wrap&&z&&(e.adler=n.check=n.flags?a(n.check,R,z,N-z):r(n.check,R,z,N-z)),z=j,4&n.wrap&&(n.flags?D:x(D))!==n.check){e.msg="incorrect data check",n.mode=k;break}D=0,L=0}n.mode=16207;case 16207:if(n.wrap&&n.flags){for(;L<32;){if(0===B)break e;B--,D+=O[I++]<<L,L+=8}if(4&n.wrap&&D!==(4294967295&n.total)){e.msg="incorrect length check",n.mode=k;break}D=0,L=0}n.mode=16208;case 16208:Q=u;break e;case k:Q=h;break e;case C:return b;default:return p}return e.next_out=N,e.avail_out=j,e.next_in=I,e.avail_in=B,n.hold=D,n.bits=L,(n.wsize||z!==e.avail_out&&n.mode<k&&(n.mode<T||t!==s))&&U(e,e.output,e.next_out,z-e.avail_out)?(n.mode=C,b):(F-=e.avail_in,z-=e.avail_out,e.total_in+=F,e.total_out+=z,n.total+=z,4&n.wrap&&z&&(e.adler=n.check=n.flags?a(n.check,R,z,e.next_out-z):r(n.check,R,z,e.next_out-z)),e.data_type=n.bits+(n.last?64:0)+(n.mode===w?128:0)+(n.mode===P||n.mode===A?256:0),(0===F&&0===z||t===s)&&Q===l&&(Q=y),Q)},e.exports.inflateEnd=e=>{if(S(e))return p;let t=e.state;return t.window&&(t.window=null),e.state=null,l},e.exports.inflateGetHeader=(e,t)=>{if(S(e))return p;const n=e.state;return 0===(2&n.wrap)?p:(n.head=t,t.done=!1,l)},e.exports.inflateSetDictionary=(e,t)=>{const n=t.length;let a,i,o;return S(e)?p:(a=e.state,0!==a.wrap&&a.mode!==v?p:a.mode===v&&(i=1,i=r(i,t,n,0),i!==a.check)?h:(o=U(e,t,n,n),o?(a.mode=C,b):(a.havedict=1,l)))},e.exports.inflateInfo="pako inflate (from Nodeca project)"},26583:e=>{"use strict";const t=15,n=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),r=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),a=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),i=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);e.exports=(e,o,s,f,c,l,u,d)=>{const p=d.bits;let h,b,y,m,g,v,w=0,E=0,A=0,P=0,_=0,T=0,k=0,C=0,x=0,O=0,S=null;const R=new Uint16Array(16),I=new Uint16Array(16);let N,B,j,D=null;for(w=0;w<=t;w++)R[w]=0;for(E=0;E<f;E++)R[o[s+E]]++;for(_=p,P=t;P>=1&&0===R[P];P--);if(_>P&&(_=P),0===P)return c[l++]=20971520,c[l++]=20971520,d.bits=1,0;for(A=1;A<P&&0===R[A];A++);for(_<A&&(_=A),C=1,w=1;w<=t;w++)if(C<<=1,C-=R[w],C<0)return-1;if(C>0&&(0===e||1!==P))return-1;for(I[1]=0,w=1;w<t;w++)I[w+1]=I[w]+R[w];for(E=0;E<f;E++)0!==o[s+E]&&(u[I[o[s+E]]++]=E);if(0===e?(S=D=u,v=20):1===e?(S=n,D=r,v=257):(S=a,D=i,v=0),O=0,E=0,w=A,g=l,T=_,k=0,y=-1,x=1<<_,m=x-1,1===e&&x>852||2===e&&x>592)return 1;for(;;){N=w-k,u[E]+1<v?(B=0,j=u[E]):u[E]>=v?(B=D[u[E]-v],j=S[u[E]-v]):(B=96,j=0),h=1<<w-k,b=1<<T,A=b;do{b-=h,c[g+(O>>k)+b]=N<<24|B<<16|j|0}while(0!==b);for(h=1<<w-1;O&h;)h>>=1;if(0!==h?(O&=h-1,O+=h):O=0,E++,0===--R[w]){if(w===P)break;w=o[s+u[E]]}if(w>_&&(O&m)!==y){for(0===k&&(k=_),g+=A,T=w-k,C=1<<T;T+k<P&&(C-=R[T+k],!(C<=0));)T++,C<<=1;if(x+=1<<T,1===e&&x>852||2===e&&x>592)return 1;y=O&m,c[y]=_<<24|T<<16|g-l|0}}return 0!==O&&(c[g+O]=w-k<<24|64<<16|0),d.bits=_,0}},3470:e=>{"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},90889:e=>{"use strict";function t(e){let t=e.length;for(;--t>=0;)e[t]=0}const n=256,r=286,a=30,i=15,o=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),s=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),c=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),l=new Array(576);t(l);const u=new Array(60);t(u);const d=new Array(512);t(d);const p=new Array(256);t(p);const h=new Array(29);t(h);const b=new Array(a);function y(e,t,n,r,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=a,this.has_stree=e&&e.length}let m,g,v;function w(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}t(b);const E=e=>e<256?d[e]:d[256+(e>>>7)],A=(e,t)=>{e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255},P=(e,t,n)=>{e.bi_valid>16-n?(e.bi_buf|=t<<e.bi_valid&65535,A(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=n-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},_=(e,t,n)=>{P(e,n[2*t],n[2*t+1])},T=(e,t)=>{let n=0;do{n|=1&e,e>>>=1,n<<=1}while(--t>0);return n>>>1},k=(e,t,n)=>{const r=new Array(16);let a,o,s=0;for(a=1;a<=i;a++)s=s+n[a-1]<<1,r[a]=s;for(o=0;o<=t;o++){let t=e[2*o+1];0!==t&&(e[2*o]=T(r[t]++,t))}},C=e=>{let t;for(t=0;t<r;t++)e.dyn_ltree[2*t]=0;for(t=0;t<a;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},x=e=>{e.bi_valid>8?A(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},O=(e,t,n,r)=>{const a=2*t,i=2*n;return e[a]<e[i]||e[a]===e[i]&&r[t]<=r[n]},S=(e,t,n)=>{const r=e.heap[n];let a=n<<1;for(;a<=e.heap_len&&(a<e.heap_len&&O(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!O(t,r,e.heap[a],e.depth));)e.heap[n]=e.heap[a],n=a,a<<=1;e.heap[n]=r},R=(e,t,r)=>{let a,i,f,c,l=0;if(0!==e.sym_next)do{a=255&e.pending_buf[e.sym_buf+l++],a+=(255&e.pending_buf[e.sym_buf+l++])<<8,i=e.pending_buf[e.sym_buf+l++],0===a?_(e,i,t):(f=p[i],_(e,f+n+1,t),c=o[f],0!==c&&(i-=h[f],P(e,i,c)),a--,f=E(a),_(e,f,r),c=s[f],0!==c&&(a-=b[f],P(e,a,c)))}while(l<e.sym_next);_(e,256,t)},I=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.elems;let s,f,c,l=-1;for(e.heap_len=0,e.heap_max=573,s=0;s<o;s++)0!==n[2*s]?(e.heap[++e.heap_len]=l=s,e.depth[s]=0):n[2*s+1]=0;for(;e.heap_len<2;)c=e.heap[++e.heap_len]=l<2?++l:0,n[2*c]=1,e.depth[c]=0,e.opt_len--,a&&(e.static_len-=r[2*c+1]);for(t.max_code=l,s=e.heap_len>>1;s>=1;s--)S(e,n,s);c=o;do{s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],S(e,n,1),f=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=f,n[2*c]=n[2*s]+n[2*f],e.depth[c]=(e.depth[s]>=e.depth[f]?e.depth[s]:e.depth[f])+1,n[2*s+1]=n[2*f+1]=c,e.heap[1]=c++,S(e,n,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],((e,t)=>{const n=t.dyn_tree,r=t.max_code,a=t.stat_desc.static_tree,o=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,c=t.stat_desc.max_length;let l,u,d,p,h,b,y=0;for(p=0;p<=i;p++)e.bl_count[p]=0;for(n[2*e.heap[e.heap_max]+1]=0,l=e.heap_max+1;l<573;l++)u=e.heap[l],p=n[2*n[2*u+1]+1]+1,p>c&&(p=c,y++),n[2*u+1]=p,u>r||(e.bl_count[p]++,h=0,u>=f&&(h=s[u-f]),b=n[2*u],e.opt_len+=b*(p+h),o&&(e.static_len+=b*(a[2*u+1]+h)));if(0!==y){do{for(p=c-1;0===e.bl_count[p];)p--;e.bl_count[p]--,e.bl_count[p+1]+=2,e.bl_count[c]--,y-=2}while(y>0);for(p=c;0!==p;p--)for(u=e.bl_count[p];0!==u;)d=e.heap[--l],d>r||(n[2*d+1]!==p&&(e.opt_len+=(p-n[2*d+1])*n[2*d],n[2*d+1]=p),u--)}})(e,t),k(n,l,e.bl_count)},N=(e,t,n)=>{let r,a,i=-1,o=t[1],s=0,f=7,c=4;for(0===o&&(f=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)a=o,o=t[2*(r+1)+1],++s<f&&a===o||(s<c?e.bl_tree[2*a]+=s:0!==a?(a!==i&&e.bl_tree[2*a]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,s=0,i=a,0===o?(f=138,c=3):a===o?(f=6,c=3):(f=7,c=4))},B=(e,t,n)=>{let r,a,i=-1,o=t[1],s=0,f=7,c=4;for(0===o&&(f=138,c=3),r=0;r<=n;r++)if(a=o,o=t[2*(r+1)+1],!(++s<f&&a===o)){if(s<c)do{_(e,a,e.bl_tree)}while(0!==--s);else 0!==a?(a!==i&&(_(e,a,e.bl_tree),s--),_(e,16,e.bl_tree),P(e,s-3,2)):s<=10?(_(e,17,e.bl_tree),P(e,s-3,3)):(_(e,18,e.bl_tree),P(e,s-11,7));s=0,i=a,0===o?(f=138,c=3):a===o?(f=6,c=3):(f=7,c=4)}};let j=!1;const D=(e,t,n,r)=>{P(e,0+(r?1:0),3),x(e),A(e,n),A(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n};e.exports._tr_init=e=>{j||((()=>{let e,t,n,c,w;const E=new Array(16);for(n=0,c=0;c<28;c++)for(h[c]=n,e=0;e<1<<o[c];e++)p[n++]=c;for(p[n-1]=c,w=0,c=0;c<16;c++)for(b[c]=w,e=0;e<1<<s[c];e++)d[w++]=c;for(w>>=7;c<a;c++)for(b[c]=w<<7,e=0;e<1<<s[c]-7;e++)d[256+w++]=c;for(t=0;t<=i;t++)E[t]=0;for(e=0;e<=143;)l[2*e+1]=8,e++,E[8]++;for(;e<=255;)l[2*e+1]=9,e++,E[9]++;for(;e<=279;)l[2*e+1]=7,e++,E[7]++;for(;e<=287;)l[2*e+1]=8,e++,E[8]++;for(k(l,287,E),e=0;e<a;e++)u[2*e+1]=5,u[2*e]=T(e,5);m=new y(l,o,257,r,i),g=new y(u,s,0,a,i),v=new y(new Array(0),f,0,19,7)})(),j=!0),e.l_desc=new w(e.dyn_ltree,m),e.d_desc=new w(e.dyn_dtree,g),e.bl_desc=new w(e.bl_tree,v),e.bi_buf=0,e.bi_valid=0,C(e)},e.exports._tr_stored_block=D,e.exports._tr_flush_block=(e,t,r,a)=>{let i,o,s=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=(e=>{let t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<n;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0})(e)),I(e,e.l_desc),I(e,e.d_desc),s=(e=>{let t;for(N(e,e.dyn_ltree,e.l_desc.max_code),N(e,e.dyn_dtree,e.d_desc.max_code),I(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*c[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t})(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==t?D(e,t,r,a):4===e.strategy||o===i?(P(e,2+(a?1:0),3),R(e,l,u)):(P(e,4+(a?1:0),3),((e,t,n,r)=>{let a;for(P(e,t-257,5),P(e,n-1,5),P(e,r-4,4),a=0;a<r;a++)P(e,e.bl_tree[2*c[a]+1],3);B(e,e.dyn_ltree,t-1),B(e,e.dyn_dtree,n-1)})(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),R(e,e.dyn_ltree,e.dyn_dtree)),C(e),a&&x(e)},e.exports._tr_tally=(e,t,r)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=r,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(p[r]+n+1)]++,e.dyn_dtree[2*E(t)]++),e.sym_next===e.sym_end),e.exports._tr_align=e=>{P(e,2,3),_(e,256,l),(e=>{16===e.bi_valid?(A(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)})(e)}},25806:e=>{"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},1426:e=>{var t,n,r=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===a||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:a}catch(e){t=a}try{n="function"===typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,f=[],c=!1,l=-1;function u(){c&&s&&(c=!1,s.length?f=s.concat(f):l=-1,f.length&&d())}function d(){if(!c){var e=o(u);c=!0;for(var t=f.length;t;){for(s=f,f=[];++l<t;)s&&s[l].run();l=-1,t=f.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new p(e,t)),1!==f.length||c||o(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},80888:(e,t,n)=>{"use strict";var r=n(79047);function a(){}function i(){}i.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,i,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:a};return n.PropTypes=n,n}},52007:(e,t,n)=>{e.exports=n(80888)()},79047:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},20741:(e,t,n)=>{const r=n(36887),a=n(5054),i=n(30416),o=n(9413);function s(e,t,n,i,o){const s=[].slice.call(arguments,1),f=s.length,c="function"===typeof s[f-1];if(!c&&!r())throw new Error("Callback required as last argument");if(!c){if(f<1)throw new Error("Too few arguments provided");return 1===f?(n=t,t=i=void 0):2!==f||t.getContext||(i=n,n=t,t=void 0),new Promise((function(r,o){try{const o=a.create(n,i);r(e(o,t,i))}catch(s){o(s)}}))}if(f<2)throw new Error("Too few arguments provided");2===f?(o=n,n=t,t=i=void 0):3===f&&(t.getContext&&"undefined"===typeof o?(o=i,i=void 0):(o=i,i=n,n=t,t=void 0));try{const r=a.create(n,i);o(null,e(r,t,i))}catch(l){o(l)}}t.create=a.create,t.toCanvas=s.bind(null,i.render),t.toDataURL=s.bind(null,i.renderToDataURL),t.toString=s.bind(null,(function(e,t,n){return o.render(e,n)}))},36887:e=>{e.exports=function(){return"function"===typeof Promise&&Promise.prototype&&Promise.prototype.then}},23234:(e,t,n)=>{const r=n(2338).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];const t=Math.floor(e/7)+2,n=r(e),a=145===n?26:2*Math.ceil((n-13)/(2*t-2)),i=[n-7];for(let r=1;r<t-1;r++)i[r]=i[r-1]-a;return i.push(6),i.reverse()},t.getPositions=function(e){const n=[],r=t.getRowColCoords(e),a=r.length;for(let t=0;t<a;t++)for(let e=0;e<a;e++)0===t&&0===e||0===t&&e===a-1||t===a-1&&0===e||n.push([r[t],r[e]]);return n}},28295:(e,t,n)=>{const r=n(91337),a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function i(e){this.mode=r.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=45*a.indexOf(this.data[t]);n+=a.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(a.indexOf(this.data[t]),6)},e.exports=i},75673:e=>{function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){const t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(let n=0;n<t;n++)this.putBit(1===(e>>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},32988:e=>{function t(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,n,r){const a=e*this.size+t;this.data[a]=n,r&&(this.reservedBit[a]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},40639:(e,t,n)=>{const r=n(10153),a=n(91337);function i(e){this.mode=a.BYTE,"string"===typeof e&&(e=r(e)),this.data=new Uint8Array(e)}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,n=this.data.length;t<n;t++)e.put(this.data[t],8)},e.exports=i},43180:(e,t,n)=>{const r=n(78955),a=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case r.L:return a[4*(e-1)+0];case r.M:return a[4*(e-1)+1];case r.Q:return a[4*(e-1)+2];case r.H:return a[4*(e-1)+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case r.L:return i[4*(e-1)+0];case r.M:return i[4*(e-1)+1];case r.Q:return i[4*(e-1)+2];case r.H:return i[4*(e-1)+3];default:return}}},78955:(e,t)=>{t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&"undefined"!==typeof e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}(e)}catch(r){return n}}},48947:(e,t,n)=>{const r=n(2338).getSymbolSize;t.getPositions=function(e){const t=r(e);return[[0,0],[t-7,0],[0,t-7]]}},27435:(e,t,n)=>{const r=n(2338),a=r.getBCHDigit(1335);t.getEncodedBits=function(e,t){const n=e.bit<<3|t;let i=n<<10;for(;r.getBCHDigit(i)-a>=0;)i^=1335<<r.getBCHDigit(i)-a;return 21522^(n<<10|i)}},81239:(e,t)=>{const n=new Uint8Array(512),r=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)n[t]=e,r[e]=t,e<<=1,256&e&&(e^=285);for(let t=255;t<512;t++)n[t]=n[t-255]}(),t.log=function(e){if(e<1)throw new Error("log("+e+")");return r[e]},t.exp=function(e){return n[e]},t.mul=function(e,t){return 0===e||0===t?0:n[r[e]+r[t]]}},58588:(e,t,n)=>{const r=n(91337),a=n(2338);function i(e){this.mode=r.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=a.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}},e.exports=i},66823:(e,t)=>{t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const n=3,r=3,a=40,i=10;function o(e,n,r){switch(e){case t.Patterns.PATTERN000:return(n+r)%2===0;case t.Patterns.PATTERN001:return n%2===0;case t.Patterns.PATTERN010:return r%3===0;case t.Patterns.PATTERN011:return(n+r)%3===0;case t.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2===0;case t.Patterns.PATTERN101:return n*r%2+n*r%3===0;case t.Patterns.PATTERN110:return(n*r%2+n*r%3)%2===0;case t.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){const t=e.size;let r=0,a=0,i=0,o=null,s=null;for(let f=0;f<t;f++){a=i=0,o=s=null;for(let c=0;c<t;c++){let t=e.get(f,c);t===o?a++:(a>=5&&(r+=n+(a-5)),o=t,a=1),t=e.get(c,f),t===s?i++:(i>=5&&(r+=n+(i-5)),s=t,i=1)}a>=5&&(r+=n+(a-5)),i>=5&&(r+=n+(i-5))}return r},t.getPenaltyN2=function(e){const t=e.size;let n=0;for(let r=0;r<t-1;r++)for(let a=0;a<t-1;a++){const t=e.get(r,a)+e.get(r,a+1)+e.get(r+1,a)+e.get(r+1,a+1);4!==t&&0!==t||n++}return n*r},t.getPenaltyN3=function(e){const t=e.size;let n=0,r=0,i=0;for(let a=0;a<t;a++){r=i=0;for(let o=0;o<t;o++)r=r<<1&2047|e.get(a,o),o>=10&&(1488===r||93===r)&&n++,i=i<<1&2047|e.get(o,a),o>=10&&(1488===i||93===i)&&n++}return n*a},t.getPenaltyN4=function(e){let t=0;const n=e.data.length;for(let r=0;r<n;r++)t+=e.data[r];return Math.abs(Math.ceil(100*t/n/5)-10)*i},t.applyMask=function(e,t){const n=t.size;for(let r=0;r<n;r++)for(let a=0;a<n;a++)t.isReserved(a,r)||t.xor(a,r,o(e,a,r))},t.getBestMask=function(e,n){const r=Object.keys(t.Patterns).length;let a=0,i=1/0;for(let o=0;o<r;o++){n(o),t.applyMask(o,e);const r=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(o,e),r<i&&(i=r,a=o)}return a}},91337:(e,t,n)=>{const r=n(78402),a=n(28650);t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!r.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return a.testNumeric(e)?t.NUMERIC:a.testAlphanumeric(e)?t.ALPHANUMERIC:a.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,n){if(t.isValid(e))return e;try{return function(e){if("string"!==typeof e)throw new Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}(e)}catch(r){return n}}},20320:(e,t,n)=>{const r=n(91337);function a(e){this.mode=r.NUMERIC,this.data=e.toString()}a.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},a.prototype.getLength=function(){return this.data.length},a.prototype.getBitsLength=function(){return a.getBitsLength(this.data.length)},a.prototype.write=function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);const a=this.data.length-t;a>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*a+1))},e.exports=a},89203:(e,t,n)=>{const r=n(81239);t.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let a=0;a<e.length;a++)for(let i=0;i<t.length;i++)n[a+i]^=r.mul(e[a],t[i]);return n},t.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const e=n[0];for(let i=0;i<t.length;i++)n[i]^=r.mul(t[i],e);let a=0;for(;a<n.length&&0===n[a];)a++;n=n.slice(a)}return n},t.generateECPolynomial=function(e){let n=new Uint8Array([1]);for(let a=0;a<e;a++)n=t.mul(n,new Uint8Array([1,r.exp(a)]));return n}},5054:(e,t,n)=>{const r=n(2338),a=n(78955),i=n(75673),o=n(32988),s=n(23234),f=n(48947),c=n(66823),l=n(43180),u=n(220),d=n(81265),p=n(27435),h=n(91337),b=n(72179);function y(e,t,n){const r=e.size,a=p.getEncodedBits(t,n);let i,o;for(i=0;i<15;i++)o=1===(a>>i&1),i<6?e.set(i,8,o,!0):i<8?e.set(i+1,8,o,!0):e.set(r-15+i,8,o,!0),i<8?e.set(8,r-i-1,o,!0):i<9?e.set(8,15-i-1+1,o,!0):e.set(8,15-i-1,o,!0);e.set(r-8,8,1,!0)}function m(e,t,n){const a=new i;n.forEach((function(t){a.put(t.mode.bit,4),a.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(a)}));const o=8*(r.getSymbolTotalCodewords(e)-l.getTotalCodewordsCount(e,t));for(a.getLengthInBits()+4<=o&&a.put(0,4);a.getLengthInBits()%8!==0;)a.putBit(0);const s=(o-a.getLengthInBits())/8;for(let r=0;r<s;r++)a.put(r%2?17:236,8);return function(e,t,n){const a=r.getSymbolTotalCodewords(t),i=l.getTotalCodewordsCount(t,n),o=a-i,s=l.getBlocksCount(t,n),f=a%s,c=s-f,d=Math.floor(a/s),p=Math.floor(o/s),h=p+1,b=d-p,y=new u(b);let m=0;const g=new Array(s),v=new Array(s);let w=0;const E=new Uint8Array(e.buffer);for(let r=0;r<s;r++){const e=r<c?p:h;g[r]=E.slice(m,m+e),v[r]=y.encode(g[r]),m+=e,w=Math.max(w,e)}const A=new Uint8Array(a);let P,_,T=0;for(P=0;P<w;P++)for(_=0;_<s;_++)P<g[_].length&&(A[T++]=g[_][P]);for(P=0;P<b;P++)for(_=0;_<s;_++)A[T++]=v[_][P];return A}(a,e,t)}function g(e,t,n,a){let i;if(Array.isArray(e))i=b.fromArray(e);else{if("string"!==typeof e)throw new Error("Invalid data");{let r=t;if(!r){const t=b.rawSplit(e);r=d.getBestVersionForData(t,n)}i=b.fromString(e,r||40)}}const l=d.getBestVersionForData(i,n);if(!l)throw new Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<l)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+l+".\n")}else t=l;const u=m(t,n,i),p=r.getSymbolSize(t),h=new o(p);return function(e,t){const n=e.size,r=f.getPositions(t);for(let a=0;a<r.length;a++){const t=r[a][0],i=r[a][1];for(let r=-1;r<=7;r++)if(!(t+r<=-1||n<=t+r))for(let a=-1;a<=7;a++)i+a<=-1||n<=i+a||(r>=0&&r<=6&&(0===a||6===a)||a>=0&&a<=6&&(0===r||6===r)||r>=2&&r<=4&&a>=2&&a<=4?e.set(t+r,i+a,!0,!0):e.set(t+r,i+a,!1,!0))}}(h,t),function(e){const t=e.size;for(let n=8;n<t-8;n++){const t=n%2===0;e.set(n,6,t,!0),e.set(6,n,t,!0)}}(h),function(e,t){const n=s.getPositions(t);for(let r=0;r<n.length;r++){const t=n[r][0],a=n[r][1];for(let n=-2;n<=2;n++)for(let r=-2;r<=2;r++)-2===n||2===n||-2===r||2===r||0===n&&0===r?e.set(t+n,a+r,!0,!0):e.set(t+n,a+r,!1,!0)}}(h,t),y(h,n,0),t>=7&&function(e,t){const n=e.size,r=d.getEncodedBits(t);let a,i,o;for(let s=0;s<18;s++)a=Math.floor(s/3),i=s%3+n-8-3,o=1===(r>>s&1),e.set(a,i,o,!0),e.set(i,a,o,!0)}(h,t),function(e,t){const n=e.size;let r=-1,a=n-1,i=7,o=0;for(let s=n-1;s>0;s-=2)for(6===s&&s--;;){for(let n=0;n<2;n++)if(!e.isReserved(a,s-n)){let r=!1;o<t.length&&(r=1===(t[o]>>>i&1)),e.set(a,s-n,r),i--,-1===i&&(o++,i=7)}if(a+=r,a<0||n<=a){a-=r,r=-r;break}}}(h,u),isNaN(a)&&(a=c.getBestMask(h,y.bind(null,h,n))),c.applyMask(a,h),y(h,n,a),{modules:h,version:t,errorCorrectionLevel:n,maskPattern:a,segments:i}}t.create=function(e,t){if("undefined"===typeof e||""===e)throw new Error("No input text");let n,i,o=a.M;return"undefined"!==typeof t&&(o=a.from(t.errorCorrectionLevel,a.M),n=d.from(t.version),i=c.from(t.maskPattern),t.toSJISFunc&&r.setToSJISFunction(t.toSJISFunc)),g(e,n,o,i)}},220:(e,t,n)=>{const r=n(89203);function a(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},a.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),a=this.degree-n.length;if(a>0){const e=new Uint8Array(this.degree);return e.set(n,a),e}return n},e.exports=a},28650:(e,t)=>{const n="[0-9]+";let r="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";r=r.replace(/u/g,"\\u");const a="(?:(?![A-Z0-9 $%*+\\-./:]|"+r+")(?:.|[\r\n]))+";t.KANJI=new RegExp(r,"g"),t.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=new RegExp(a,"g"),t.NUMERIC=new RegExp(n,"g"),t.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const i=new RegExp("^"+r+"$"),o=new RegExp("^"+n+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return o.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},72179:(e,t,n)=>{const r=n(91337),a=n(20320),i=n(28295),o=n(40639),s=n(58588),f=n(28650),c=n(2338),l=n(90951);function u(e){return unescape(encodeURIComponent(e)).length}function d(e,t,n){const r=[];let a;for(;null!==(a=e.exec(n));)r.push({data:a[0],index:a.index,mode:t,length:a[0].length});return r}function p(e){const t=d(f.NUMERIC,r.NUMERIC,e),n=d(f.ALPHANUMERIC,r.ALPHANUMERIC,e);let a,i;c.isKanjiModeEnabled()?(a=d(f.BYTE,r.BYTE,e),i=d(f.KANJI,r.KANJI,e)):(a=d(f.BYTE_KANJI,r.BYTE,e),i=[]);return t.concat(n,a,i).sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function h(e,t){switch(t){case r.NUMERIC:return a.getBitsLength(e);case r.ALPHANUMERIC:return i.getBitsLength(e);case r.KANJI:return s.getBitsLength(e);case r.BYTE:return o.getBitsLength(e)}}function b(e,t){let n;const f=r.getBestModeForData(e);if(n=r.from(t,f),n!==r.BYTE&&n.bit<f.bit)throw new Error('"'+e+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(f));switch(n!==r.KANJI||c.isKanjiModeEnabled()||(n=r.BYTE),n){case r.NUMERIC:return new a(e);case r.ALPHANUMERIC:return new i(e);case r.KANJI:return new s(e);case r.BYTE:return new o(e)}}t.fromArray=function(e){return e.reduce((function(e,t){return"string"===typeof t?e.push(b(t,null)):t.data&&e.push(b(t.data,t.mode)),e}),[])},t.fromString=function(e,n){const a=function(e){const t=[];for(let n=0;n<e.length;n++){const a=e[n];switch(a.mode){case r.NUMERIC:t.push([a,{data:a.data,mode:r.ALPHANUMERIC,length:a.length},{data:a.data,mode:r.BYTE,length:a.length}]);break;case r.ALPHANUMERIC:t.push([a,{data:a.data,mode:r.BYTE,length:a.length}]);break;case r.KANJI:t.push([a,{data:a.data,mode:r.BYTE,length:u(a.data)}]);break;case r.BYTE:t.push([{data:a.data,mode:r.BYTE,length:u(a.data)}])}}return t}(p(e,c.isKanjiModeEnabled())),i=function(e,t){const n={},a={start:{}};let i=["start"];for(let o=0;o<e.length;o++){const s=e[o],f=[];for(let e=0;e<s.length;e++){const c=s[e],l=""+o+e;f.push(l),n[l]={node:c,lastCount:0},a[l]={};for(let e=0;e<i.length;e++){const o=i[e];n[o]&&n[o].node.mode===c.mode?(a[o][l]=h(n[o].lastCount+c.length,c.mode)-h(n[o].lastCount,c.mode),n[o].lastCount+=c.length):(n[o]&&(n[o].lastCount=c.length),a[o][l]=h(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,t))}}i=f}for(let r=0;r<i.length;r++)a[i[r]].end=0;return{map:a,table:n}}(a,n),o=l.find_path(i.map,"start","end"),s=[];for(let t=1;t<o.length-1;t++)s.push(i.table[o[t]].node);return t.fromArray(function(e){return e.reduce((function(e,t){const n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}(s))},t.rawSplit=function(e){return t.fromArray(p(e,c.isKanjiModeEnabled()))}},2338:(e,t)=>{let n;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return r[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!==typeof e)throw new Error('"toSJISFunc" is not a valid function.');n=e},t.isKanjiModeEnabled=function(){return"undefined"!==typeof n},t.toSJIS=function(e){return n(e)}},78402:(e,t)=>{t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},81265:(e,t,n)=>{const r=n(2338),a=n(43180),i=n(78955),o=n(91337),s=n(78402),f=r.getBCHDigit(7973);function c(e,t){return o.getCharCountIndicator(e,t)+4}function l(e,t){let n=0;return e.forEach((function(e){const r=c(e.mode,t);n+=r+e.getBitsLength()})),n}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!s.isValid(e))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=o.BYTE);const i=8*(r.getSymbolTotalCodewords(e)-a.getTotalCodewordsCount(e,t));if(n===o.MIXED)return i;const f=i-c(n,e);switch(n){case o.NUMERIC:return Math.floor(f/10*3);case o.ALPHANUMERIC:return Math.floor(f/11*2);case o.KANJI:return Math.floor(f/13);case o.BYTE:default:return Math.floor(f/8)}},t.getBestVersionForData=function(e,n){let r;const a=i.from(n,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,n){for(let r=1;r<=40;r++)if(l(e,r)<=t.getCapacity(r,n,o.MIXED))return r}(e,a);if(0===e.length)return 1;r=e[0]}else r=e;return function(e,n,r){for(let a=1;a<=40;a++)if(n<=t.getCapacity(a,r,e))return a}(r.mode,r.getLength(),a)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;r.getBCHDigit(t)-f>=0;)t^=7973<<r.getBCHDigit(t)-f;return e<<12|t}},30416:(e,t,n)=>{const r=n(83605);t.render=function(e,t,n){let a=n,i=t;"undefined"!==typeof a||t&&t.getContext||(a=t,t=void 0),t||(i=function(){try{return document.createElement("canvas")}catch(e){throw new Error("You need to specify a canvas element")}}()),a=r.getOptions(a);const o=r.getImageWidth(e.modules.size,a),s=i.getContext("2d"),f=s.createImageData(o,o);return r.qrToImageData(f.data,e,a),function(e,t,n){e.clearRect(0,0,t.width,t.height),t.style||(t.style={}),t.height=n,t.width=n,t.style.height=n+"px",t.style.width=n+"px"}(s,i,o),s.putImageData(f,0,0),i},t.renderToDataURL=function(e,n,r){let a=r;"undefined"!==typeof a||n&&n.getContext||(a=n,n=void 0),a||(a={});const i=t.render(e,n,a),o=a.type||"image/png",s=a.rendererOpts||{};return i.toDataURL(o,s.quality)}},9413:(e,t,n)=>{const r=n(83605);function a(e,t){const n=e.a/255,r=t+'="'+e.hex+'"';return n<1?r+" "+t+'-opacity="'+n.toFixed(2).slice(1)+'"':r}function i(e,t,n){let r=e+t;return"undefined"!==typeof n&&(r+=" "+n),r}t.render=function(e,t,n){const o=r.getOptions(t),s=e.modules.size,f=e.modules.data,c=s+2*o.margin,l=o.color.light.a?"<path "+a(o.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+a(o.color.dark,"stroke")+' d="'+function(e,t,n){let r="",a=0,o=!1,s=0;for(let f=0;f<e.length;f++){const c=Math.floor(f%t),l=Math.floor(f/t);c||o||(o=!0),e[f]?(s++,f>0&&c>0&&e[f-1]||(r+=o?i("M",c+n,.5+l+n):i("m",a,0),a=0,o=!1),c+1<t&&e[f+1]||(r+=i("h",s),s=0)):a++}return r}(f,s,o.margin)+'"/>',d='viewBox="0 0 '+c+" "+c+'"',p='<svg xmlns="http://www.w3.org/2000/svg" '+(o.width?'width="'+o.width+'" height="'+o.width+'" ':"")+d+' shape-rendering="crispEdges">'+l+u+"</svg>\n";return"function"===typeof n&&n(null,p),p}},83605:(e,t)=>{function n(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");const n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});const t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,a=e.scale||4;return{width:r,scale:r?4:a,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){const r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){const a=n.modules.size,i=n.modules.data,o=t.getScale(a,r),s=Math.floor((a+2*r.margin)*o),f=r.margin*o,c=[r.color.light,r.color.dark];for(let t=0;t<s;t++)for(let n=0;n<s;n++){let l=4*(t*s+n),u=r.color.light;if(t>=f&&n>=f&&t<s-f&&n<s-f){u=c[i[Math.floor((t-f)/o)*a+Math.floor((n-f)/o)]?1:0]}e[l++]=u.r,e[l++]=u.g,e[l++]=u.b,e[l]=u.a}}},60173:(e,t,n)=>{"use strict";var r,a=n(72791),i=(r=a)&&"object"===typeof r&&"default"in r?r.default:r,o=n(1338),s=new o,f=s.getBrowser(),c=s.getCPU(),l=s.getDevice(),u=s.getEngine(),d=s.getOS(),p=s.getUA(),h=function(e){return s.setUA(e)},b=function(e){if(e){var t=new o(e);return{UA:t,browser:t.getBrowser(),cpu:t.getCPU(),device:t.getDevice(),engine:t.getEngine(),os:t.getOS(),ua:t.getUA(),setUserAgent:function(e){return t.setUA(e)}}}console.error("No userAgent string was provided")},y=Object.freeze({ClientUAInstance:s,browser:f,cpu:c,device:l,engine:u,os:d,ua:p,setUa:h,parseUserAgent:b});function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){return g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(){return E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function P(e,t){return P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},P(e,t)}function _(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(f){s=!0,a=f}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var x="mobile",O="tablet",S="smarttv",R="console",I="wearable",N="embedded",B=void 0,j={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},D={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},L={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},M=function(e){return e||(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none")},U=function(){return!("undefined"===typeof window||!window.navigator&&!navigator)&&(window.navigator||navigator)},F=function(e){var t=U();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},z=function(e,t,n,r){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{vendor:M(t.vendor),model:M(t.model),os:M(n.name),osVersion:M(n.version),ua:M(r)})};var $=function(e){return e.type===x},G=function(e){return e.type===O},H=function(e){var t=e.type;return t===x||t===O},W=function(e){return e.type===S},V=function(e){return e.type===B},q=function(e){return e.type===I},K=function(e){return e.type===R},Z=function(e){return e.type===N},J=function(e){var t=e.vendor;return M(t)},Y=function(e){var t=e.model;return M(t)},Q=function(e){var t=e.type;return M(t,"browser")},X=function(e){return e.name===D.Android},ee=function(e){return e.name===D.Windows},te=function(e){return e.name===D.MAC_OS},ne=function(e){return e.name===D.WindowsPhone},re=function(e){return e.name===D.IOS},ae=function(e){var t=e.version;return M(t)},ie=function(e){var t=e.name;return M(t)},oe=function(e){return e.name===j.Chrome},se=function(e){return e.name===j.Firefox},fe=function(e){return e.name===j.Chromium},ce=function(e){return e.name===j.Edge},le=function(e){return e.name===j.Yandex},ue=function(e){var t=e.name;return t===j.Safari||t===j.MobileSafari},de=function(e){return e.name===j.MobileSafari},pe=function(e){return e.name===j.Opera},he=function(e){var t=e.name;return t===j.InternetExplorer||t===j.Ie},be=function(e){return e.name===j.MIUI},ye=function(e){return e.name===j.SamsungBrowser},me=function(e){var t=e.version;return M(t)},ge=function(e){var t=e.major;return M(t)},ve=function(e){var t=e.name;return M(t)},we=function(e){var t=e.name;return M(t)},Ee=function(e){var t=e.version;return M(t)},Ae=function(){var e=U(),t=e&&e.userAgent&&e.userAgent.toLowerCase();return"string"===typeof t&&/electron/.test(t)},Pe=function(e){return"string"===typeof e&&-1!==e.indexOf("Edg/")},_e=function(){var e=U();return e&&(/iPad|iPhone|iPod/.test(e.platform)||"MacIntel"===e.platform&&e.maxTouchPoints>1)&&!window.MSStream},Te=function(){return F("iPad")},ke=function(){return F("iPhone")},Ce=function(){return F("iPod")},xe=function(e){return M(e)};function Oe(e){var t=e||y,n=t.device,r=t.browser,a=t.os,i=t.engine,o=t.ua;return{isSmartTV:W(n),isConsole:K(n),isWearable:q(n),isEmbedded:Z(n),isMobileSafari:de(r)||Te(),isChromium:fe(r),isMobile:H(n)||Te(),isMobileOnly:$(n),isTablet:G(n)||Te(),isBrowser:V(n),isDesktop:V(n),isAndroid:X(a),isWinPhone:ne(a),isIOS:re(a)||Te(),isChrome:oe(r),isFirefox:se(r),isSafari:ue(r),isOpera:pe(r),isIE:he(r),osVersion:ae(a),osName:ie(a),fullBrowserVersion:me(r),browserVersion:ge(r),browserName:ve(r),mobileVendor:J(n),mobileModel:Y(n),engineName:we(i),engineVersion:Ee(i),getUA:xe(o),isEdge:ce(r)||Pe(o),isYandex:le(r),deviceType:Q(n),isIOS13:_e(),isIPad13:Te(),isIPhone13:ke(),isIPod13:Ce(),isElectron:Ae(),isEdgeChromium:Pe(o),isLegacyEdge:ce(r)&&!Pe(o),isWindows:ee(a),isMacOs:te(a),isMIUI:be(r),isSamsungBrowser:ye(r)}}var Se=W(l),Re=K(l),Ie=q(l),Ne=Z(l),Be=de(f)||Te(),je=fe(f),De=H(l)||Te(),Le=$(l),Me=G(l)||Te(),Ue=V(l),Fe=V(l),ze=X(d),$e=ne(d),Ge=re(d)||Te(),He=oe(f),We=se(f),Ve=ue(f),qe=pe(f),Ke=he(f),Ze=ae(d),Je=ie(d),Ye=me(f),Qe=ge(f),Xe=ve(f),et=J(l),tt=Y(l),nt=we(u),rt=Ee(u),at=xe(p),it=ce(f)||Pe(p),ot=le(f),st=Q(l),ft=_e(),ct=Te(),lt=ke(),ut=Ce(),dt=Ae(),pt=Pe(p),ht=ce(f)&&!Pe(p),bt=ee(d),yt=te(d),mt=be(f),gt=ye(f);function vt(e){var t=e||window.navigator.userAgent;return b(t)}t.nI=Fe,t.tq=De},34463:(e,t,n)=>{"use strict";var r=n(72791),a=n(45296);function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function f(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)o.add(t[e])}var l=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),u=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function b(e,t,n,r,a,i,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new b(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new b(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new b(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new b(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new b(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new b(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)}));var m=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function v(e,t,n,r){var a=y.hasOwnProperty(t)?y[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!u.call(h,e)||!u.call(p,e)&&(d.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(m,g);y[t]=new b(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(m,g);y[t]=new b(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(m,g);y[t]=new b(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=Symbol.for("react.element"),A=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),C=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),S=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),I=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var B=Symbol.iterator;function j(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=B&&e[B]||e["@@iterator"])?e:null}var D,L=Object.assign;function M(e){if(void 0===D)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);D=t&&t[1]||""}return"\n"+D+e}var U=!1;function F(e,t){if(!e||U)return"";U=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var a=c.stack.split("\n"),i=r.stack.split("\n"),o=a.length-1,s=i.length-1;1<=o&&0<=s&&a[o]!==i[s];)s--;for(;1<=o&&0<=s;o--,s--)if(a[o]!==i[s]){if(1!==o||1!==s)do{if(o--,0>--s||a[o]!==i[s]){var f="\n"+a[o].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}}while(1<=o&&0<=s);break}}}finally{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function z(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return e=F(e.type,!1);case 11:return e=F(e.type.render,!1);case 1:return e=F(e.type,!0);default:return""}}function $(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case P:return"Fragment";case A:return"Portal";case T:return"Profiler";case _:return"StrictMode";case O:return"Suspense";case S:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case k:return(e._context.displayName||"Context")+".Provider";case x:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case R:return null!==(t=e.displayName||null)?t:$(e.type)||"Memo";case I:t=e._payload,e=e._init;try{return $(e(t))}catch(n){}}return null}function G(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var a=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Z(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function J(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function Q(e,t){Y(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function X(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(i(92));if(te(n)){if(1<n.length)throw Error(i(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ie(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fe(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,le,ue=(le=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return le(e,t)}))}:le);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function be(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=be(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var me=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(me[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function Ee(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ae=null,Pe=null,_e=null;function Te(e){if(e=va(e)){if("function"!==typeof Ae)throw Error(i(280));var t=e.stateNode;t&&(t=Ea(t),Ae(e.stateNode,e.type,t))}}function ke(e){Pe?_e?_e.push(e):_e=[e]:Pe=e}function Ce(){if(Pe){var e=Pe,t=_e;if(_e=Pe=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function xe(e,t){return e(t)}function Oe(){}var Se=!1;function Re(e,t,n){if(Se)return e(t,n);Se=!0;try{return xe(e,t,n)}finally{Se=!1,(null!==Pe||null!==_e)&&(Oe(),Ce())}}function Ie(e,t){var n=e.stateNode;if(null===n)return null;var r=Ea(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(i(231,t,typeof n));return n}var Ne=!1;if(l)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(le){Ne=!1}function je(e,t,n,r,a,i,o,s,f){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(l){this.onError(l)}}var De=!1,Le=null,Me=!1,Ue=null,Fe={onError:function(e){De=!0,Le=e}};function ze(e,t,n,r,a,i,o,s,f){De=!1,Le=null,je.apply(Fe,arguments)}function $e(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ge(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if($e(e)!==e)throw Error(i(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(i(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var o=a.alternate;if(null===o){if(null!==(r=a.return)){n=r;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return He(a),e;if(o===r)return He(a),t;o=o.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=o;else{for(var s=!1,f=a.child;f;){if(f===n){s=!0,n=a,r=o;break}if(f===r){s=!0,r=a,n=o;break}f=f.sibling}if(!s){for(f=o.child;f;){if(f===n){s=!0,n=o,r=a;break}if(f===r){s=!0,r=o,n=a;break}f=f.sibling}if(!s)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(3!==n.tag)throw Error(i(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var qe=a.unstable_scheduleCallback,Ke=a.unstable_cancelCallback,Ze=a.unstable_shouldYield,Je=a.unstable_requestPaint,Ye=a.unstable_now,Qe=a.unstable_getCurrentPriorityLevel,Xe=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,rt=a.unstable_IdlePriority,at=null,it=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/ft|0)|0},st=Math.log,ft=Math.LN2;var ct=64,lt=4194304;function ut(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,i=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~a;0!==s?r=ut(s):0!==(i&=o)&&(r=ut(i))}else 0!==(o=n&~a)?r=ut(o):0!==i&&(r=ut(i));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&a)&&((a=r&-r)>=(i=t&-t)||16===a&&0!==(4194240&i)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-ot(t)),r|=e[n],t&=~a;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function bt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var vt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var Et,At,Pt,_t,Tt,kt=!1,Ct=[],xt=null,Ot=null,St=null,Rt=new Map,It=new Map,Nt=[],Bt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function jt(e,t){switch(e){case"focusin":case"focusout":xt=null;break;case"dragenter":case"dragleave":Ot=null;break;case"mouseover":case"mouseout":St=null;break;case"pointerover":case"pointerout":Rt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":It.delete(t.pointerId)}}function Dt(e,t,n,r,a,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},null!==t&&(null!==(t=va(t))&&At(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Lt(e){var t=ga(e.target);if(null!==t){var n=$e(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(n)))return e.blockedOn=t,void Tt(e.priority,(function(){Pt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=va(n))&&At(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function Ut(e,t,n){Mt(e)&&n.delete(t)}function Ft(){kt=!1,null!==xt&&Mt(xt)&&(xt=null),null!==Ot&&Mt(Ot)&&(Ot=null),null!==St&&Mt(St)&&(St=null),Rt.forEach(Ut),It.forEach(Ut)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,kt||(kt=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Ft)))}function $t(e){function t(t){return zt(t,e)}if(0<Ct.length){zt(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==xt&&zt(xt,e),null!==Ot&&zt(Ot,e),null!==St&&zt(St,e),Rt.forEach(t),It.forEach(t),n=0;n<Nt.length;n++)(r=Nt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Nt.length&&null===(n=Nt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Nt.shift()}var Gt=w.ReactCurrentBatchConfig,Ht=!0;function Wt(e,t,n,r){var a=vt,i=Gt.transition;Gt.transition=null;try{vt=1,qt(e,t,n,r)}finally{vt=a,Gt.transition=i}}function Vt(e,t,n,r){var a=vt,i=Gt.transition;Gt.transition=null;try{vt=4,qt(e,t,n,r)}finally{vt=a,Gt.transition=i}}function qt(e,t,n,r){if(Ht){var a=Zt(e,t,n,r);if(null===a)Hr(e,t,r,Kt,n),jt(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return xt=Dt(xt,e,t,n,r,a),!0;case"dragenter":return Ot=Dt(Ot,e,t,n,r,a),!0;case"mouseover":return St=Dt(St,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Rt.set(i,Dt(Rt.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,It.set(i,Dt(It.get(i)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(jt(e,r),4&t&&-1<Bt.indexOf(e)){for(;null!==a;){var i=va(a);if(null!==i&&Et(i),null===(i=Zt(e,t,n,r))&&Hr(e,t,r,Kt,n),i===a)break;a=i}null!==a&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Kt=null;function Zt(e,t,n,r){if(Kt=null,null!==(e=ga(e=Ee(r))))if(null===(t=$e(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ge(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Jt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Xe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Qt=null,Xt=null;function en(){if(Xt)return Xt;var e,t,n=Qt,r=n.length,a="value"in Yt?Yt.value:Yt.textContent,i=a.length;for(e=0;e<r&&n[e]===a[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===a[i-t];t++);return Xt=a.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,a,i){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(a):a[o]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,fn,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=an(cn),un=L({},cn,{view:0,detail:0}),dn=an(un),pn=L({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==fn&&(fn&&"mousemove"===e.type?(on=e.screenX-fn.screenX,sn=e.screenY-fn.screenY):sn=on=0,fn=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=an(pn),bn=an(L({},pn,{dataTransfer:0})),yn=an(L({},un,{relatedTarget:0})),mn=an(L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=an(gn),wn=an(L({},cn,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},An={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Pn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Pn[e])&&!!t[e]}function Tn(){return _n}var kn=L({},un,{key:function(e){if(e.key){var t=En[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?An[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=an(kn),xn=an(L({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=an(L({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),Sn=an(L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=L({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),In=an(Rn),Nn=[9,13,27,32],Bn=l&&"CompositionEvent"in window,jn=null;l&&"documentMode"in document&&(jn=document.documentMode);var Dn=l&&"TextEvent"in window&&!jn,Ln=l&&(!Bn||jn&&8<jn&&11>=jn),Mn=String.fromCharCode(32),Un=!1;function Fn(e,t){switch(e){case"keyup":return-1!==Nn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var $n=!1;var Gn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Gn[e.type]:"textarea"===t}function Wn(e,t,n,r){ke(r),0<(t=Vr(t,"onChange")).length&&(n=new ln("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,qn=null;function Kn(e){Mr(e,0)}function Zn(e){if(q(wa(e)))return e}function Jn(e,t){if("change"===e)return t}var Yn=!1;if(l){var Qn;if(l){var Xn="oninput"in document;if(!Xn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Xn="function"===typeof er.oninput}Qn=Xn}else Qn=!1;Yn=Qn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),qn=Vn=null)}function nr(e){if("value"===e.propertyName&&Zn(qn)){var t=[];Wn(t,qn,e,Ee(e)),Re(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Zn(qn)}function ir(e,t){if("click"===e)return Zn(t)}function or(e,t){if("input"===e||"change"===e)return Zn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function fr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!u.call(t,a)||!sr(e[a],t[a]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function ur(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ur(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ur(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,i=Math.min(r.start,a);r=void 0===r.end?i:Math.min(r.end,a),!e.extend&&i>r&&(a=r,r=i,i=a),a=lr(n,i);var o=lr(n,r);a&&o&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var br=l&&"documentMode"in document&&11>=document.documentMode,yr=null,mr=null,gr=null,vr=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==yr||yr!==K(r)||("selectionStart"in(r=yr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&fr(gr,r)||(gr=r,0<(r=Vr(mr,"onSelect")).length&&(t=new ln("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function Er(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ar={animationend:Er("Animation","AnimationEnd"),animationiteration:Er("Animation","AnimationIteration"),animationstart:Er("Animation","AnimationStart"),transitionend:Er("Transition","TransitionEnd")},Pr={},_r={};function Tr(e){if(Pr[e])return Pr[e];if(!Ar[e])return e;var t,n=Ar[e];for(t in n)if(n.hasOwnProperty(t)&&t in _r)return Pr[e]=n[t];return e}l&&(_r=document.createElement("div").style,"AnimationEvent"in window||(delete Ar.animationend.animation,delete Ar.animationiteration.animation,delete Ar.animationstart.animation),"TransitionEvent"in window||delete Ar.transitionend.transition);var kr=Tr("animationend"),Cr=Tr("animationiteration"),xr=Tr("animationstart"),Or=Tr("transitionend"),Sr=new Map,Rr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ir(e,t){Sr.set(e,t),f(t,[e])}for(var Nr=0;Nr<Rr.length;Nr++){var Br=Rr[Nr];Ir(Br.toLowerCase(),"on"+(Br[0].toUpperCase()+Br.slice(1)))}Ir(kr,"onAnimationEnd"),Ir(Cr,"onAnimationIteration"),Ir(xr,"onAnimationStart"),Ir("dblclick","onDoubleClick"),Ir("focusin","onFocus"),Ir("focusout","onBlur"),Ir(Or,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Dr=new Set("cancel close invalid load scroll toggle".split(" ").concat(jr));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,o,s,f,c){if(ze.apply(this,arguments),De){if(!De)throw Error(i(198));var l=Le;De=!1,Le=null,Me||(Me=!0,Ue=l)}}(r,t,void 0,e),e.currentTarget=null}function Mr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],f=s.instance,c=s.currentTarget;if(s=s.listener,f!==i&&a.isPropagationStopped())break e;Lr(a,s,c),i=f}else for(o=0;o<r.length;o++){if(f=(s=r[o]).instance,c=s.currentTarget,s=s.listener,f!==i&&a.isPropagationStopped())break e;Lr(a,s,c),i=f}}}if(Me)throw e=Ue,Me=!1,Ue=null,e}function Ur(e,t){var n=t[ba];void 0===n&&(n=t[ba]=new Set);var r=e+"__bubble";n.has(r)||(Gr(t,e,2,!1),n.add(r))}function Fr(e,t,n){var r=0;t&&(r|=4),Gr(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function $r(e){if(!e[zr]){e[zr]=!0,o.forEach((function(t){"selectionchange"!==t&&(Dr.has(t)||Fr(t,!1,e),Fr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Fr("selectionchange",!1,t))}}function Gr(e,t,n,r){switch(Jt(t)){case 1:var a=Wt;break;case 4:a=Vt;break;default:a=qt}n=a.bind(null,t,n,e),a=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,a){var i=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===o)for(o=r.return;null!==o;){var f=o.tag;if((3===f||4===f)&&((f=o.stateNode.containerInfo)===a||8===f.nodeType&&f.parentNode===a))return;o=o.return}for(;null!==s;){if(null===(o=ga(s)))return;if(5===(f=o.tag)||6===f){r=i=o;continue e}s=s.parentNode}}r=r.return}Re((function(){var r=i,a=Ee(n),o=[];e:{var s=Sr.get(e);if(void 0!==s){var f=ln,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":f=Cn;break;case"focusin":c="focus",f=yn;break;case"focusout":c="blur",f=yn;break;case"beforeblur":case"afterblur":f=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=bn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=On;break;case kr:case Cr:case xr:f=mn;break;case Or:f=Sn;break;case"scroll":f=dn;break;case"wheel":f=In;break;case"copy":case"cut":case"paste":f=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=xn}var l=0!==(4&t),u=!l&&"scroll"===e,d=l?null!==s?s+"Capture":null:s;l=[];for(var p,h=r;null!==h;){var b=(p=h).stateNode;if(5===p.tag&&null!==b&&(p=b,null!==d&&(null!=(b=Ie(h,d))&&l.push(Wr(h,b,p)))),u)break;h=h.return}0<l.length&&(s=new f(s,c,null,n,a),o.push({event:s,listeners:l}))}}if(0===(7&t)){if(f="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!ga(c)&&!c[ha])&&(f||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,f?(f=r,null!==(c=(c=n.relatedTarget||n.toElement)?ga(c):null)&&(c!==(u=$e(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(f=null,c=r),f!==c)){if(l=hn,b="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(l=xn,b="onPointerLeave",d="onPointerEnter",h="pointer"),u=null==f?s:wa(f),p=null==c?s:wa(c),(s=new l(b,h+"leave",f,n,a)).target=u,s.relatedTarget=p,b=null,ga(a)===r&&((l=new l(d,h+"enter",c,n,a)).target=p,l.relatedTarget=u,b=l),u=b,f&&c)e:{for(d=c,h=0,p=l=f;p;p=qr(p))h++;for(p=0,b=d;b;b=qr(b))p++;for(;0<h-p;)l=qr(l),h--;for(;0<p-h;)d=qr(d),p--;for(;h--;){if(l===d||null!==d&&l===d.alternate)break e;l=qr(l),d=qr(d)}l=null}else l=null;null!==f&&Kr(o,s,f,l,!1),null!==c&&null!==u&&Kr(o,u,c,l,!0)}if("select"===(f=(s=r?wa(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===f&&"file"===s.type)var y=Jn;else if(Hn(s))if(Yn)y=or;else{y=ar;var m=rr}else(f=s.nodeName)&&"input"===f.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(y=ir);switch(y&&(y=y(e,r))?Wn(o,y,n,a):(m&&m(e,s,r),"focusout"===e&&(m=s._wrapperState)&&m.controlled&&"number"===s.type&&ee(s,"number",s.value)),m=r?wa(r):window,e){case"focusin":(Hn(m)||"true"===m.contentEditable)&&(yr=m,mr=r,gr=null);break;case"focusout":gr=mr=yr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,wr(o,n,a);break;case"selectionchange":if(br)break;case"keydown":case"keyup":wr(o,n,a)}var g;if(Bn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else $n?Fn(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Ln&&"ko"!==n.locale&&($n||"onCompositionStart"!==v?"onCompositionEnd"===v&&$n&&(g=en()):(Qt="value"in(Yt=a)?Yt.value:Yt.textContent,$n=!0)),0<(m=Vr(r,v)).length&&(v=new wn(v,e,null,n,a),o.push({event:v,listeners:m}),g?v.data=g:null!==(g=zn(n))&&(v.data=g))),(g=Dn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Un=!0,Mn);case"textInput":return(e=t.data)===Mn&&Un?null:e;default:return null}}(e,n):function(e,t){if($n)return"compositionend"===e||!Bn&&Fn(e,t)?(e=en(),Xt=Qt=Yt=null,$n=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(a=new wn("onBeforeInput","beforeinput",null,n,a),o.push({event:a,listeners:r}),a.data=g))}Mr(o,t)}))}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,i=a.stateNode;5===a.tag&&null!==i&&(a=i,null!=(i=Ie(e,n))&&r.unshift(Wr(e,i,a)),null!=(i=Ie(e,t))&&r.push(Wr(e,i,a))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,a){for(var i=t._reactName,o=[];null!==n&&n!==r;){var s=n,f=s.alternate,c=s.stateNode;if(null!==f&&f===r)break;5===s.tag&&null!==c&&(s=c,a?null!=(f=Ie(n,i))&&o.unshift(Wr(n,f,s)):a||null!=(f=Ie(n,i))&&o.push(Wr(n,f,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Zr=/\r\n?/g,Jr=/\u0000|\uFFFD/g;function Yr(e){return("string"===typeof e?e:""+e).replace(Zr,"\n").replace(Jr,"")}function Qr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(i(425))}function Xr(){}var ea=null,ta=null;function na(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ra="function"===typeof setTimeout?setTimeout:void 0,aa="function"===typeof clearTimeout?clearTimeout:void 0,ia="function"===typeof Promise?Promise:void 0,oa="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ia?function(e){return ia.resolve(null).then(e).catch(sa)}:ra;function sa(e){setTimeout((function(){throw e}))}function fa(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void $t(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);$t(t)}function ca(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function la(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var ua=Math.random().toString(36).slice(2),da="__reactFiber$"+ua,pa="__reactProps$"+ua,ha="__reactContainer$"+ua,ba="__reactEvents$"+ua,ya="__reactListeners$"+ua,ma="__reactHandles$"+ua;function ga(e){var t=e[da];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ha]||n[da]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=la(e);null!==e;){if(n=e[da])return n;e=la(e)}return t}n=(e=n).parentNode}return null}function va(e){return!(e=e[da]||e[ha])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wa(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function Ea(e){return e[pa]||null}var Aa=[],Pa=-1;function _a(e){return{current:e}}function Ta(e){0>Pa||(e.current=Aa[Pa],Aa[Pa]=null,Pa--)}function ka(e,t){Pa++,Aa[Pa]=e.current,e.current=t}var Ca={},xa=_a(Ca),Oa=_a(!1),Sa=Ca;function Ra(e,t){var n=e.type.contextTypes;if(!n)return Ca;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,i={};for(a in n)i[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Ia(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Na(){Ta(Oa),Ta(xa)}function Ba(e,t,n){if(xa.current!==Ca)throw Error(i(168));ka(xa,t),ka(Oa,n)}function ja(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(i(108,G(e)||"Unknown",a));return L({},n,r)}function Da(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ca,Sa=xa.current,ka(xa,e),ka(Oa,Oa.current),!0}function La(e,t,n){var r=e.stateNode;if(!r)throw Error(i(169));n?(e=ja(e,t,Sa),r.__reactInternalMemoizedMergedChildContext=e,Ta(Oa),Ta(xa),ka(xa,e)):Ta(Oa),ka(Oa,n)}var Ma=null,Ua=!1,Fa=!1;function za(e){null===Ma?Ma=[e]:Ma.push(e)}function $a(){if(!Fa&&null!==Ma){Fa=!0;var e=0,t=vt;try{var n=Ma;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ma=null,Ua=!1}catch(a){throw null!==Ma&&(Ma=Ma.slice(e+1)),qe(Xe,$a),a}finally{vt=t,Fa=!1}}return null}var Ga=[],Ha=0,Wa=null,Va=0,qa=[],Ka=0,Za=null,Ja=1,Ya="";function Qa(e,t){Ga[Ha++]=Va,Ga[Ha++]=Wa,Wa=e,Va=t}function Xa(e,t,n){qa[Ka++]=Ja,qa[Ka++]=Ya,qa[Ka++]=Za,Za=e;var r=Ja;e=Ya;var a=32-ot(r)-1;r&=~(1<<a),n+=1;var i=32-ot(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,Ja=1<<32-ot(t)+a|n<<a|r,Ya=i+e}else Ja=1<<i|n<<a|r,Ya=e}function ei(e){null!==e.return&&(Qa(e,1),Xa(e,1,0))}function ti(e){for(;e===Wa;)Wa=Ga[--Ha],Ga[Ha]=null,Va=Ga[--Ha],Ga[Ha]=null;for(;e===Za;)Za=qa[--Ka],qa[Ka]=null,Ya=qa[--Ka],qa[Ka]=null,Ja=qa[--Ka],qa[Ka]=null}var ni=null,ri=null,ai=!1,ii=null;function oi(e,t){var n=Nc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function si(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,ni=e,ri=ca(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ni=e,ri=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Za?{id:Ja,overflow:Ya}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Nc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,ni=e,ri=null,!0);default:return!1}}function fi(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ci(e){if(ai){var t=ri;if(t){var n=t;if(!si(e,t)){if(fi(e))throw Error(i(418));t=ca(n.nextSibling);var r=ni;t&&si(e,t)?oi(r,n):(e.flags=-4097&e.flags|2,ai=!1,ni=e)}}else{if(fi(e))throw Error(i(418));e.flags=-4097&e.flags|2,ai=!1,ni=e}}}function li(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ni=e}function ui(e){if(e!==ni)return!1;if(!ai)return li(e),ai=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=ri)){if(fi(e))throw di(),Error(i(418));for(;t;)oi(e,t),t=ca(t.nextSibling)}if(li(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ri=ca(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ri=null}}else ri=ni?ca(e.stateNode.nextSibling):null;return!0}function di(){for(var e=ri;e;)e=ca(e.nextSibling)}function pi(){ri=ni=null,ai=!1}function hi(e){null===ii?ii=[e]:ii.push(e)}var bi=w.ReactCurrentBatchConfig;function yi(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var mi=_a(null),gi=null,vi=null,wi=null;function Ei(){wi=vi=gi=null}function Ai(e){var t=mi.current;Ta(mi),e._currentValue=t}function Pi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function _i(e,t){gi=e,wi=vi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ws=!0),e.firstContext=null)}function Ti(e){var t=e._currentValue;if(wi!==e)if(e={context:e,memoizedValue:t,next:null},null===vi){if(null===gi)throw Error(i(308));vi=e,gi.dependencies={lanes:0,firstContext:e}}else vi=vi.next=e;return t}var ki=null;function Ci(e){null===ki?ki=[e]:ki.push(e)}function xi(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Ci(t)):(n.next=a.next,a.next=n),t.interleaved=n,Oi(e,r)}function Oi(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Si=!1;function Ri(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ii(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ni(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Bi(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Sf)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Oi(e,n)}return null===(a=r.interleaved)?(t.next=t,Ci(r)):(t.next=a.next,a.next=t),r.interleaved=t,Oi(e,n)}function ji(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function Di(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?a=i=o:i=i.next=o,n=n.next}while(null!==n);null===i?a=i=t:i=i.next=t}else a=i=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Li(e,t,n,r){var a=e.updateQueue;Si=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var f=s,c=f.next;f.next=null,null===o?i=c:o.next=c,o=f;var l=e.alternate;null!==l&&((s=(l=l.updateQueue).lastBaseUpdate)!==o&&(null===s?l.firstBaseUpdate=c:s.next=c,l.lastBaseUpdate=f))}if(null!==i){var u=a.baseState;for(o=0,l=c=f=null,s=i;;){var d=s.lane,p=s.eventTime;if((r&d)===d){null!==l&&(l=l.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,b=s;switch(d=t,p=n,b.tag){case 1:if("function"===typeof(h=b.payload)){u=h.call(p,u,d);break e}u=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(d="function"===typeof(h=b.payload)?h.call(p,u,d):h)||void 0===d)break e;u=L({},u,d);break e;case 2:Si=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=a.effects)?a.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===l?(c=l=p,f=u):l=l.next=p,o|=d;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(d=s).next,d.next=null,a.lastBaseUpdate=d,a.shared.pending=null}}if(null===l&&(f=u),a.baseState=f,a.firstBaseUpdate=c,a.lastBaseUpdate=l,null!==(t=a.shared.interleaved)){a=t;do{o|=a.lane,a=a.next}while(a!==t)}else null===i&&(a.shared.lanes=0);Mf|=o,e.lanes=o,e.memoizedState=u}}function Mi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!==typeof a)throw Error(i(191,a));a.call(r)}}}var Ui=(new r.Component).refs;function Fi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var zi={isMounted:function(e){return!!(e=e._reactInternals)&&$e(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=nc(),a=rc(e),i=Ni(r,a);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Bi(e,i,a))&&(ac(t,e,a,r),ji(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=nc(),a=rc(e),i=Ni(r,a);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=Bi(e,i,a))&&(ac(t,e,a,r),ji(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=nc(),r=rc(e),a=Ni(n,r);a.tag=2,void 0!==t&&null!==t&&(a.callback=t),null!==(t=Bi(e,a,r))&&(ac(t,e,r,n),ji(t,e,r))}};function $i(e,t,n,r,a,i,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,o):!t.prototype||!t.prototype.isPureReactComponent||(!fr(n,r)||!fr(a,i))}function Gi(e,t,n){var r=!1,a=Ca,i=t.contextType;return"object"===typeof i&&null!==i?i=Ti(i):(a=Ia(t)?Sa:xa.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ra(e,a):Ca),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=zi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=i),t}function Hi(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&zi.enqueueReplaceState(t,t.state,null)}function Wi(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Ui,Ri(e);var i=t.contextType;"object"===typeof i&&null!==i?a.context=Ti(i):(i=Ia(t)?Sa:xa.current,a.context=Ra(e,i)),a.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(Fi(e,t,i,n),a.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof a.getSnapshotBeforeUpdate||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||(t=a.state,"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&zi.enqueueReplaceState(a,a.state,null),Li(e,n,a,r),a.state=e.memoizedState),"function"===typeof a.componentDidMount&&(e.flags|=4194308)}function Vi(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(i(309));var r=n.stateNode}if(!r)throw Error(i(147,e));var a=r,o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;t===Ui&&(t=a.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function qi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Ki(e){return(0,e._init)(e._payload)}function Zi(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=jc(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function f(e,t,n,r){return null===t||6!==t.tag?((t=Uc(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){var i=n.type;return i===P?u(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===I&&Ki(i)===t.type)?((r=a(t,n.props)).ref=Vi(e,t,n),r.return=e,r):((r=Dc(n.type,n.key,n.props,null,e.mode,r)).ref=Vi(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Fc(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function u(e,t,n,r,i){return null===t||7!==t.tag?((t=Lc(n,e.mode,r,i)).return=e,t):((t=a(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Uc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Dc(t.type,t.key,t.props,null,e.mode,n)).ref=Vi(e,null,t),n.return=e,n;case A:return(t=Fc(t,e.mode,n)).return=e,t;case I:return d(e,(0,t._init)(t._payload),n)}if(te(t)||j(t))return(t=Lc(t,e.mode,n,null)).return=e,t;qi(e,t)}return null}function p(e,t,n,r){var a=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==a?null:f(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===a?c(e,t,n,r):null;case A:return n.key===a?l(e,t,n,r):null;case I:return p(e,t,(a=n._init)(n._payload),r)}if(te(n)||j(n))return null!==a?null:u(e,t,n,r,null);qi(e,n)}return null}function h(e,t,n,r,a){if("string"===typeof r&&""!==r||"number"===typeof r)return f(t,e=e.get(n)||null,""+r,a);if("object"===typeof r&&null!==r){switch(r.$$typeof){case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case A:return l(t,e=e.get(null===r.key?n:r.key)||null,r,a);case I:return h(e,t,n,(0,r._init)(r._payload),a)}if(te(r)||j(r))return u(t,e=e.get(n)||null,r,a,null);qi(t,r)}return null}function b(a,i,s,f){for(var c=null,l=null,u=i,b=i=0,y=null;null!==u&&b<s.length;b++){u.index>b?(y=u,u=null):y=u.sibling;var m=p(a,u,s[b],f);if(null===m){null===u&&(u=y);break}e&&u&&null===m.alternate&&t(a,u),i=o(m,i,b),null===l?c=m:l.sibling=m,l=m,u=y}if(b===s.length)return n(a,u),ai&&Qa(a,b),c;if(null===u){for(;b<s.length;b++)null!==(u=d(a,s[b],f))&&(i=o(u,i,b),null===l?c=u:l.sibling=u,l=u);return ai&&Qa(a,b),c}for(u=r(a,u);b<s.length;b++)null!==(y=h(u,a,b,s[b],f))&&(e&&null!==y.alternate&&u.delete(null===y.key?b:y.key),i=o(y,i,b),null===l?c=y:l.sibling=y,l=y);return e&&u.forEach((function(e){return t(a,e)})),ai&&Qa(a,b),c}function y(a,s,f,c){var l=j(f);if("function"!==typeof l)throw Error(i(150));if(null==(f=l.call(f)))throw Error(i(151));for(var u=l=null,b=s,y=s=0,m=null,g=f.next();null!==b&&!g.done;y++,g=f.next()){b.index>y?(m=b,b=null):m=b.sibling;var v=p(a,b,g.value,c);if(null===v){null===b&&(b=m);break}e&&b&&null===v.alternate&&t(a,b),s=o(v,s,y),null===u?l=v:u.sibling=v,u=v,b=m}if(g.done)return n(a,b),ai&&Qa(a,y),l;if(null===b){for(;!g.done;y++,g=f.next())null!==(g=d(a,g.value,c))&&(s=o(g,s,y),null===u?l=g:u.sibling=g,u=g);return ai&&Qa(a,y),l}for(b=r(a,b);!g.done;y++,g=f.next())null!==(g=h(b,a,y,g.value,c))&&(e&&null!==g.alternate&&b.delete(null===g.key?y:g.key),s=o(g,s,y),null===u?l=g:u.sibling=g,u=g);return e&&b.forEach((function(e){return t(a,e)})),ai&&Qa(a,y),l}return function e(r,i,o,f){if("object"===typeof o&&null!==o&&o.type===P&&null===o.key&&(o=o.props.children),"object"===typeof o&&null!==o){switch(o.$$typeof){case E:e:{for(var c=o.key,l=i;null!==l;){if(l.key===c){if((c=o.type)===P){if(7===l.tag){n(r,l.sibling),(i=a(l,o.props.children)).return=r,r=i;break e}}else if(l.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===I&&Ki(c)===l.type){n(r,l.sibling),(i=a(l,o.props)).ref=Vi(r,l,o),i.return=r,r=i;break e}n(r,l);break}t(r,l),l=l.sibling}o.type===P?((i=Lc(o.props.children,r.mode,f,o.key)).return=r,r=i):((f=Dc(o.type,o.key,o.props,null,r.mode,f)).ref=Vi(r,i,o),f.return=r,r=f)}return s(r);case A:e:{for(l=o.key;null!==i;){if(i.key===l){if(4===i.tag&&i.stateNode.containerInfo===o.containerInfo&&i.stateNode.implementation===o.implementation){n(r,i.sibling),(i=a(i,o.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Fc(o,r.mode,f)).return=r,r=i}return s(r);case I:return e(r,i,(l=o._init)(o._payload),f)}if(te(o))return b(r,i,o,f);if(j(o))return y(r,i,o,f);qi(r,o)}return"string"===typeof o&&""!==o||"number"===typeof o?(o=""+o,null!==i&&6===i.tag?(n(r,i.sibling),(i=a(i,o)).return=r,r=i):(n(r,i),(i=Uc(o,r.mode,f)).return=r,r=i),s(r)):n(r,i)}}var Ji=Zi(!0),Yi=Zi(!1),Qi={},Xi=_a(Qi),eo=_a(Qi),to=_a(Qi);function no(e){if(e===Qi)throw Error(i(174));return e}function ro(e,t){switch(ka(to,t),ka(eo,e),ka(Xi,Qi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fe(null,"");break;default:t=fe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ta(Xi),ka(Xi,t)}function ao(){Ta(Xi),Ta(eo),Ta(to)}function io(e){no(to.current);var t=no(Xi.current),n=fe(t,e.type);t!==n&&(ka(eo,e),ka(Xi,n))}function oo(e){eo.current===e&&(Ta(Xi),Ta(eo))}var so=_a(0);function fo(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var co=[];function lo(){for(var e=0;e<co.length;e++)co[e]._workInProgressVersionPrimary=null;co.length=0}var uo=w.ReactCurrentDispatcher,po=w.ReactCurrentBatchConfig,ho=0,bo=null,yo=null,mo=null,go=!1,vo=!1,wo=0,Eo=0;function Ao(){throw Error(i(321))}function Po(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function _o(e,t,n,r,a,o){if(ho=o,bo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,uo.current=null===e||null===e.memoizedState?ss:fs,e=n(r,a),vo){o=0;do{if(vo=!1,wo=0,25<=o)throw Error(i(301));o+=1,mo=yo=null,t.updateQueue=null,uo.current=cs,e=n(r,a)}while(vo)}if(uo.current=os,t=null!==yo&&null!==yo.next,ho=0,mo=yo=bo=null,go=!1,t)throw Error(i(300));return e}function To(){var e=0!==wo;return wo=0,e}function ko(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===mo?bo.memoizedState=mo=e:mo=mo.next=e,mo}function Co(){if(null===yo){var e=bo.alternate;e=null!==e?e.memoizedState:null}else e=yo.next;var t=null===mo?bo.memoizedState:mo.next;if(null!==t)mo=t,yo=e;else{if(null===e)throw Error(i(310));e={memoizedState:(yo=e).memoizedState,baseState:yo.baseState,baseQueue:yo.baseQueue,queue:yo.queue,next:null},null===mo?bo.memoizedState=mo=e:mo=mo.next=e}return mo}function xo(e,t){return"function"===typeof t?t(e):t}function Oo(e){var t=Co(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=yo,a=r.baseQueue,o=n.pending;if(null!==o){if(null!==a){var s=a.next;a.next=o.next,o.next=s}r.baseQueue=a=o,n.pending=null}if(null!==a){o=a.next,r=r.baseState;var f=s=null,c=null,l=o;do{var u=l.lane;if((ho&u)===u)null!==c&&(c=c.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:e(r,l.action);else{var d={lane:u,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};null===c?(f=c=d,s=r):c=c.next=d,bo.lanes|=u,Mf|=u}l=l.next}while(null!==l&&l!==o);null===c?s=r:c.next=f,sr(r,t.memoizedState)||(ws=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{o=a.lane,bo.lanes|=o,Mf|=o,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function So(e){var t=Co(),n=t.queue;if(null===n)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{o=e(o,s.action),s=s.next}while(s!==a);sr(o,t.memoizedState)||(ws=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Ro(){}function Io(e,t){var n=bo,r=Co(),a=t(),o=!sr(r.memoizedState,a);if(o&&(r.memoizedState=a,ws=!0),r=r.queue,Ho(jo.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==mo&&1&mo.memoizedState.tag){if(n.flags|=2048,Uo(9,Bo.bind(null,n,r,a,t),void 0,null),null===Rf)throw Error(i(349));0!==(30&ho)||No(n,t,a)}return a}function No(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=bo.updateQueue)?(t={lastEffect:null,stores:null},bo.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Bo(e,t,n,r){t.value=n,t.getSnapshot=r,Do(t)&&Lo(e)}function jo(e,t,n){return n((function(){Do(t)&&Lo(e)}))}function Do(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Lo(e){var t=Oi(e,1);null!==t&&ac(t,e,1,-1)}function Mo(e){var t=ko();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xo,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,bo,e),[t.memoizedState,e]}function Uo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=bo.updateQueue)?(t={lastEffect:null,stores:null},bo.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fo(){return Co().memoizedState}function zo(e,t,n,r){var a=ko();bo.flags|=e,a.memoizedState=Uo(1|t,n,void 0,void 0===r?null:r)}function $o(e,t,n,r){var a=Co();r=void 0===r?null:r;var i=void 0;if(null!==yo){var o=yo.memoizedState;if(i=o.destroy,null!==r&&Po(r,o.deps))return void(a.memoizedState=Uo(t,n,i,r))}bo.flags|=e,a.memoizedState=Uo(1|t,n,i,r)}function Go(e,t){return zo(8390656,8,e,t)}function Ho(e,t){return $o(2048,8,e,t)}function Wo(e,t){return $o(4,2,e,t)}function Vo(e,t){return $o(4,4,e,t)}function qo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ko(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,$o(4,4,qo.bind(null,t,e),n)}function Zo(){}function Jo(e,t){var n=Co();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Po(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Yo(e,t){var n=Co();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Po(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Qo(e,t,n){return 0===(21&ho)?(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=n):(sr(n,t)||(n=bt(),bo.lanes|=n,Mf|=n,e.baseState=!0),t)}function Xo(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=po.transition;po.transition={};try{e(!1),t()}finally{vt=n,po.transition=r}}function es(){return Co().memoizedState}function ts(e,t,n){var r=rc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))as(t,n);else if(null!==(n=xi(e,t,n,r))){ac(n,e,r,nc()),is(n,t,r)}}function ns(e,t,n){var r=rc(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))as(t,a);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=i(o,n);if(a.hasEagerState=!0,a.eagerState=s,sr(s,o)){var f=t.interleaved;return null===f?(a.next=a,Ci(t)):(a.next=f.next,f.next=a),void(t.interleaved=a)}}catch(c){}null!==(n=xi(e,t,a,r))&&(ac(n,e,r,a=nc()),is(n,t,r))}}function rs(e){var t=e.alternate;return e===bo||null!==t&&t===bo}function as(e,t){vo=go=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function is(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var os={readContext:Ti,useCallback:Ao,useContext:Ao,useEffect:Ao,useImperativeHandle:Ao,useInsertionEffect:Ao,useLayoutEffect:Ao,useMemo:Ao,useReducer:Ao,useRef:Ao,useState:Ao,useDebugValue:Ao,useDeferredValue:Ao,useTransition:Ao,useMutableSource:Ao,useSyncExternalStore:Ao,useId:Ao,unstable_isNewReconciler:!1},ss={readContext:Ti,useCallback:function(e,t){return ko().memoizedState=[e,void 0===t?null:t],e},useContext:Ti,useEffect:Go,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,zo(4194308,4,qo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zo(4194308,4,e,t)},useInsertionEffect:function(e,t){return zo(4,2,e,t)},useMemo:function(e,t){var n=ko();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ko();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,bo,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},ko().memoizedState=e},useState:Mo,useDebugValue:Zo,useDeferredValue:function(e){return ko().memoizedState=e},useTransition:function(){var e=Mo(!1),t=e[0];return e=Xo.bind(null,e[1]),ko().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=bo,a=ko();if(ai){if(void 0===n)throw Error(i(407));n=n()}else{if(n=t(),null===Rf)throw Error(i(349));0!==(30&ho)||No(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Go(jo.bind(null,r,o,e),[e]),r.flags|=2048,Uo(9,Bo.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ko(),t=Rf.identifierPrefix;if(ai){var n=Ya;t=":"+t+"R"+(n=(Ja&~(1<<32-ot(Ja)-1)).toString(32)+n),0<(n=wo++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Eo++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},fs={readContext:Ti,useCallback:Jo,useContext:Ti,useEffect:Ho,useImperativeHandle:Ko,useInsertionEffect:Wo,useLayoutEffect:Vo,useMemo:Yo,useReducer:Oo,useRef:Fo,useState:function(){return Oo(xo)},useDebugValue:Zo,useDeferredValue:function(e){return Qo(Co(),yo.memoizedState,e)},useTransition:function(){return[Oo(xo)[0],Co().memoizedState]},useMutableSource:Ro,useSyncExternalStore:Io,useId:es,unstable_isNewReconciler:!1},cs={readContext:Ti,useCallback:Jo,useContext:Ti,useEffect:Ho,useImperativeHandle:Ko,useInsertionEffect:Wo,useLayoutEffect:Vo,useMemo:Yo,useReducer:So,useRef:Fo,useState:function(){return So(xo)},useDebugValue:Zo,useDeferredValue:function(e){var t=Co();return null===yo?t.memoizedState=e:Qo(t,yo.memoizedState,e)},useTransition:function(){return[So(xo)[0],Co().memoizedState]},useMutableSource:Ro,useSyncExternalStore:Io,useId:es,unstable_isNewReconciler:!1};function ls(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var a=n}catch(i){a="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:a,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ps="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Ni(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vf||(Vf=!0,qf=r),ds(0,t)},n}function bs(e,t,n){(n=Ni(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){ds(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Kf?Kf=new Set([this]):Kf.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ys(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Cc.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,n,r,a){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Ni(-1,1)).tag=2,Bi(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var vs=w.ReactCurrentOwner,ws=!1;function Es(e,t,n,r){t.child=null===e?Yi(t,null,n,r):Ji(t,e.child,n,r)}function As(e,t,n,r,a){n=n.render;var i=t.ref;return _i(t,a),r=_o(e,t,n,r,i,a),n=To(),null===e||ws?(ai&&n&&ei(t),t.flags|=1,Es(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Ws(e,t,a))}function Ps(e,t,n,r,a){if(null===e){var i=n.type;return"function"!==typeof i||Bc(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dc(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,_s(e,t,i,r,a))}if(i=e.child,0===(e.lanes&a)){var o=i.memoizedProps;if((n=null!==(n=n.compare)?n:fr)(o,r)&&e.ref===t.ref)return Ws(e,t,a)}return t.flags|=1,(e=jc(i,r)).ref=t.ref,e.return=t,t.child=e}function _s(e,t,n,r,a){if(null!==e){var i=e.memoizedProps;if(fr(i,r)&&e.ref===t.ref){if(ws=!1,t.pendingProps=r=i,0===(e.lanes&a))return t.lanes=e.lanes,Ws(e,t,a);0!==(131072&e.flags)&&(ws=!0)}}return Cs(e,t,n,r,a)}function Ts(e,t,n){var r=t.pendingProps,a=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},ka(jf,Bf),Bf|=n;else{if(0===(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,ka(jf,Bf),Bf|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,ka(jf,Bf),Bf|=r}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,ka(jf,Bf),Bf|=r;return Es(e,t,a,n),t.child}function ks(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,a){var i=Ia(n)?Sa:xa.current;return i=Ra(t,i),_i(t,a),n=_o(e,t,n,r,i,a),r=To(),null===e||ws?(ai&&r&&ei(t),t.flags|=1,Es(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Ws(e,t,a))}function xs(e,t,n,r,a){if(Ia(n)){var i=!0;Da(t)}else i=!1;if(_i(t,a),null===t.stateNode)Hs(e,t),Gi(t,n,r),Wi(t,n,r,a),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var f=o.context,c=n.contextType;"object"===typeof c&&null!==c?c=Ti(c):c=Ra(t,c=Ia(n)?Sa:xa.current);var l=n.getDerivedStateFromProps,u="function"===typeof l||"function"===typeof o.getSnapshotBeforeUpdate;u||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||f!==c)&&Hi(t,o,r,c),Si=!1;var d=t.memoizedState;o.state=d,Li(t,r,o,a),f=t.memoizedState,s!==r||d!==f||Oa.current||Si?("function"===typeof l&&(Fi(t,n,l,r),f=t.memoizedState),(s=Si||$i(t,n,s,r,d,f,c))?(u||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4194308)):("function"===typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=f),o.props=r,o.state=f,o.context=c,r=s):("function"===typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Ii(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:yi(t.type,s),o.props=c,u=t.pendingProps,d=o.context,"object"===typeof(f=n.contextType)&&null!==f?f=Ti(f):f=Ra(t,f=Ia(n)?Sa:xa.current);var p=n.getDerivedStateFromProps;(l="function"===typeof p||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==u||d!==f)&&Hi(t,o,r,f),Si=!1,d=t.memoizedState,o.state=d,Li(t,r,o,a);var h=t.memoizedState;s!==u||d!==h||Oa.current||Si?("function"===typeof p&&(Fi(t,n,p,r),h=t.memoizedState),(c=Si||$i(t,n,c,r,d,h,f)||!1)?(l||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,f),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,f)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=f,r=c):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Os(e,t,n,r,i,a)}function Os(e,t,n,r,a,i){ks(e,t);var o=0!==(128&t.flags);if(!r&&!o)return a&&La(t,n,!1),Ws(e,t,i);r=t.stateNode,vs.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Ji(t,e.child,null,i),t.child=Ji(t,null,s,i)):Es(e,t,s,i),t.memoizedState=r.state,a&&La(t,n,!0),t.child}function Ss(e){var t=e.stateNode;t.pendingContext?Ba(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ba(0,t.context,!1),ro(e,t.containerInfo)}function Rs(e,t,n,r,a){return pi(),hi(a),t.flags|=256,Es(e,t,n,r),t.child}var Is,Ns,Bs,js,Ds={dehydrated:null,treeContext:null,retryLane:0};function Ls(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ms(e,t,n){var r,a=t.pendingProps,o=so.current,s=!1,f=0!==(128&t.flags);if((r=f)||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),ka(so,1&o),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(f=a.children,e=a.fallback,s?(a=t.mode,s=t.child,f={mode:"hidden",children:f},0===(1&a)&&null!==s?(s.childLanes=0,s.pendingProps=f):s=Mc(f,a,0,null),e=Lc(e,a,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ls(n),t.memoizedState=Ds,e):Us(t,f));if(null!==(o=e.memoizedState)&&null!==(r=o.dehydrated))return function(e,t,n,r,a,o,s){if(n)return 256&t.flags?(t.flags&=-257,Fs(e,t,s,r=us(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(o=r.fallback,a=t.mode,r=Mc({mode:"visible",children:r.children},a,0,null),(o=Lc(o,a,s,null)).flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,0!==(1&t.mode)&&Ji(t,e.child,null,s),t.child.memoizedState=Ls(s),t.memoizedState=Ds,o);if(0===(1&t.mode))return Fs(e,t,s,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var f=r.dgst;return r=f,Fs(e,t,s,r=us(o=Error(i(419)),r,void 0))}if(f=0!==(s&e.childLanes),ws||f){if(null!==(r=Rf)){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!==(a&(r.suspendedLanes|s))?0:a)&&a!==o.retryLane&&(o.retryLane=a,Oi(e,a),ac(r,e,a,-1))}return mc(),Fs(e,t,s,r=us(Error(i(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Oc.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,ri=ca(a.nextSibling),ni=t,ai=!0,ii=null,null!==e&&(qa[Ka++]=Ja,qa[Ka++]=Ya,qa[Ka++]=Za,Ja=e.id,Ya=e.overflow,Za=t),t=Us(t,r.children),t.flags|=4096,t)}(e,t,f,a,r,o,n);if(s){s=a.fallback,f=t.mode,r=(o=e.child).sibling;var c={mode:"hidden",children:a.children};return 0===(1&f)&&t.child!==o?((a=t.child).childLanes=0,a.pendingProps=c,t.deletions=null):(a=jc(o,c)).subtreeFlags=14680064&o.subtreeFlags,null!==r?s=jc(r,s):(s=Lc(s,f,n,null)).flags|=2,s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,f=null===(f=e.child.memoizedState)?Ls(n):{baseLanes:f.baseLanes|n,cachePool:null,transitions:f.transitions},s.memoizedState=f,s.childLanes=e.childLanes&~n,t.memoizedState=Ds,a}return e=(s=e.child).sibling,a=jc(s,{mode:"visible",children:a.children}),0===(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function Us(e,t){return(t=Mc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Fs(e,t,n,r){return null!==r&&hi(r),Ji(t,e.child,null,n),(e=Us(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function zs(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Pi(e.return,t,n)}function $s(e,t,n,r,a){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=a)}function Gs(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;if(Es(e,t,r.children,n),0!==(2&(r=so.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&zs(e,n,t);else if(19===e.tag)zs(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ka(so,r),0===(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===fo(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),$s(t,!1,a,n,i);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===fo(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}$s(t,!0,n,null,i);break;case"together":$s(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ws(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Mf|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(n=jc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=jc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vs(e,t){if(!ai)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function qs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(ti(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qs(t),null;case 1:case 17:return Ia(t.type)&&Na(),qs(t),null;case 3:return r=t.stateNode,ao(),Ta(Oa),Ta(xa),lo(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(ui(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ii&&(fc(ii),ii=null))),Ns(e,t),qs(t),null;case 5:oo(t);var a=no(to.current);if(n=t.type,null!==e&&null!=t.stateNode)Bs(e,t,n,r,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(i(166));return qs(t),null}if(e=no(Xi.current),ui(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[da]=t,r[pa]=o,e=0!==(1&t.mode),n){case"dialog":Ur("cancel",r),Ur("close",r);break;case"iframe":case"object":case"embed":Ur("load",r);break;case"video":case"audio":for(a=0;a<jr.length;a++)Ur(jr[a],r);break;case"source":Ur("error",r);break;case"img":case"image":case"link":Ur("error",r),Ur("load",r);break;case"details":Ur("toggle",r);break;case"input":J(r,o),Ur("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ur("invalid",r);break;case"textarea":ae(r,o),Ur("invalid",r)}for(var f in ge(n,o),a=null,o)if(o.hasOwnProperty(f)){var c=o[f];"children"===f?"string"===typeof c?r.textContent!==c&&(!0!==o.suppressHydrationWarning&&Qr(r.textContent,c,e),a=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==o.suppressHydrationWarning&&Qr(r.textContent,c,e),a=["children",""+c]):s.hasOwnProperty(f)&&null!=c&&"onScroll"===f&&Ur("scroll",r)}switch(n){case"input":V(r),X(r,o,!0);break;case"textarea":V(r),oe(r);break;case"select":case"option":break;default:"function"===typeof o.onClick&&(r.onclick=Xr)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{f=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=f.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=f.createElement(n,{is:r.is}):(e=f.createElement(n),"select"===n&&(f=e,r.multiple?f.multiple=!0:r.size&&(f.size=r.size))):e=f.createElementNS(e,n),e[da]=t,e[pa]=r,Is(e,t,!1,!1),t.stateNode=e;e:{switch(f=ve(n,r),n){case"dialog":Ur("cancel",e),Ur("close",e),a=r;break;case"iframe":case"object":case"embed":Ur("load",e),a=r;break;case"video":case"audio":for(a=0;a<jr.length;a++)Ur(jr[a],e);a=r;break;case"source":Ur("error",e),a=r;break;case"img":case"image":case"link":Ur("error",e),Ur("load",e),a=r;break;case"details":Ur("toggle",e),a=r;break;case"input":J(e,r),a=Z(e,r),Ur("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=L({},r,{value:void 0}),Ur("invalid",e);break;case"textarea":ae(e,r),a=re(e,r),Ur("invalid",e)}for(o in ge(n,a),c=a)if(c.hasOwnProperty(o)){var l=c[o];"style"===o?ye(e,l):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&ue(e,l):"children"===o?"string"===typeof l?("textarea"!==n||""!==l)&&de(e,l):"number"===typeof l&&de(e,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(s.hasOwnProperty(o)?null!=l&&"onScroll"===o&&Ur("scroll",e):null!=l&&v(e,o,l,f))}switch(n){case"input":V(e),X(e,r,!1);break;case"textarea":V(e),oe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?ne(e,!!r.multiple,o,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return qs(t),null;case 6:if(e&&null!=t.stateNode)js(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(i(166));if(n=no(to.current),no(Xi.current),ui(t)){if(r=t.stateNode,n=t.memoizedProps,r[da]=t,(o=r.nodeValue!==n)&&null!==(e=ni))switch(e.tag){case 3:Qr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qr(r.nodeValue,n,0!==(1&e.mode))}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[da]=t,t.stateNode=r}return qs(t),null;case 13:if(Ta(so),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ai&&null!==ri&&0!==(1&t.mode)&&0===(128&t.flags))di(),pi(),t.flags|=98560,o=!1;else if(o=ui(t),null!==r&&null!==r.dehydrated){if(null===e){if(!o)throw Error(i(318));if(!(o=null!==(o=t.memoizedState)?o.dehydrated:null))throw Error(i(317));o[da]=t}else pi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;qs(t),o=!1}else null!==ii&&(fc(ii),ii=null),o=!0;if(!o)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&so.current)?0===Df&&(Df=3):mc())),null!==t.updateQueue&&(t.flags|=4),qs(t),null);case 4:return ao(),Ns(e,t),null===e&&$r(t.stateNode.containerInfo),qs(t),null;case 10:return Ai(t.type._context),qs(t),null;case 19:if(Ta(so),null===(o=t.memoizedState))return qs(t),null;if(r=0!==(128&t.flags),null===(f=o.rendering))if(r)Vs(o,!1);else{if(0!==Df||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(f=fo(e))){for(t.flags|=128,Vs(o,!1),null!==(r=f.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(f=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=f.childLanes,o.lanes=f.lanes,o.child=f.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=f.memoizedProps,o.memoizedState=f.memoizedState,o.updateQueue=f.updateQueue,o.type=f.type,e=f.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return ka(so,1&so.current|2),t.child}e=e.sibling}null!==o.tail&&Ye()>Hf&&(t.flags|=128,r=!0,Vs(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=fo(f))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vs(o,!0),null===o.tail&&"hidden"===o.tailMode&&!f.alternate&&!ai)return qs(t),null}else 2*Ye()-o.renderingStartTime>Hf&&1073741824!==n&&(t.flags|=128,r=!0,Vs(o,!1),t.lanes=4194304);o.isBackwards?(f.sibling=t.child,t.child=f):(null!==(n=o.last)?n.sibling=f:t.child=f,o.last=f)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ye(),t.sibling=null,n=so.current,ka(so,r?1&n|2:1&n),t):(qs(t),null);case 22:case 23:return pc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Bf)&&(qs(t),6&t.subtreeFlags&&(t.flags|=8192)):qs(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Zs(e,t){switch(ti(t),t.tag){case 1:return Ia(t.type)&&Na(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return ao(),Ta(Oa),Ta(xa),lo(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return oo(t),null;case 13:if(Ta(so),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));pi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ta(so),null;case 4:return ao(),null;case 10:return Ai(t.type._context),null;case 22:case 23:return pc(),null;default:return null}}Is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ns=function(){},Bs=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,no(Xi.current);var i,o=null;switch(n){case"input":a=Z(e,a),r=Z(e,r),o=[];break;case"select":a=L({},a,{value:void 0}),r=L({},r,{value:void 0}),o=[];break;case"textarea":a=re(e,a),r=re(e,r),o=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=Xr)}for(l in ge(n,r),n=null,a)if(!r.hasOwnProperty(l)&&a.hasOwnProperty(l)&&null!=a[l])if("style"===l){var f=a[l];for(i in f)f.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?o||(o=[]):(o=o||[]).push(l,null));for(l in r){var c=r[l];if(f=null!=a?a[l]:void 0,r.hasOwnProperty(l)&&c!==f&&(null!=c||null!=f))if("style"===l)if(f){for(i in f)!f.hasOwnProperty(i)||c&&c.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in c)c.hasOwnProperty(i)&&f[i]!==c[i]&&(n||(n={}),n[i]=c[i])}else n||(o||(o=[]),o.push(l,n)),n=c;else"dangerouslySetInnerHTML"===l?(c=c?c.__html:void 0,f=f?f.__html:void 0,null!=c&&f!==c&&(o=o||[]).push(l,c)):"children"===l?"string"!==typeof c&&"number"!==typeof c||(o=o||[]).push(l,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(s.hasOwnProperty(l)?(null!=c&&"onScroll"===l&&Ur("scroll",e),o||f===c||(o=[])):(o=o||[]).push(l,c))}n&&(o=o||[]).push("style",n);var l=o;(t.updateQueue=l)&&(t.flags|=4)}},js=function(e,t,n,r){n!==r&&(t.flags|=4)};var Js=!1,Ys=!1,Qs="function"===typeof WeakSet?WeakSet:Set,Xs=null;function ef(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){kc(e,t,r)}else n.current=null}function tf(e,t,n){try{n()}catch(r){kc(e,t,r)}}var nf=!1;function rf(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var i=a.destroy;a.destroy=void 0,void 0!==i&&tf(t,n,i)}a=a.next}while(a!==r)}}function af(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function of(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function sf(e){var t=e.alternate;null!==t&&(e.alternate=null,sf(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[da],delete t[pa],delete t[ba],delete t[ya],delete t[ma])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ff(e){return 5===e.tag||3===e.tag||4===e.tag}function cf(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ff(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function lf(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(lf(e,t,n),e=e.sibling;null!==e;)lf(e,t,n),e=e.sibling}function uf(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(uf(e,t,n),e=e.sibling;null!==e;)uf(e,t,n),e=e.sibling}var df=null,pf=!1;function hf(e,t,n){for(n=n.child;null!==n;)bf(e,t,n),n=n.sibling}function bf(e,t,n){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(at,n)}catch(s){}switch(n.tag){case 5:Ys||ef(n,t);case 6:var r=df,a=pf;df=null,hf(e,t,n),pf=a,null!==(df=r)&&(pf?(e=df,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):df.removeChild(n.stateNode));break;case 18:null!==df&&(pf?(e=df,n=n.stateNode,8===e.nodeType?fa(e.parentNode,n):1===e.nodeType&&fa(e,n),$t(e)):fa(df,n.stateNode));break;case 4:r=df,a=pf,df=n.stateNode.containerInfo,pf=!0,hf(e,t,n),df=r,pf=a;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var i=a,o=i.destroy;i=i.tag,void 0!==o&&(0!==(2&i)||0!==(4&i))&&tf(n,t,o),a=a.next}while(a!==r)}hf(e,t,n);break;case 1:if(!Ys&&(ef(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){kc(n,t,s)}hf(e,t,n);break;case 21:hf(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,hf(e,t,n),Ys=r):hf(e,t,n);break;default:hf(e,t,n)}}function yf(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Qs),t.forEach((function(t){var r=Sc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function mf(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var o=e,s=t,f=s;e:for(;null!==f;){switch(f.tag){case 5:df=f.stateNode,pf=!1;break e;case 3:case 4:df=f.stateNode.containerInfo,pf=!0;break e}f=f.return}if(null===df)throw Error(i(160));bf(o,s,a),df=null,pf=!1;var c=a.alternate;null!==c&&(c.return=null),a.return=null}catch(l){kc(a,t,l)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)gf(t,e),t=t.sibling}function gf(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(mf(t,e),vf(e),4&r){try{rf(3,e,e.return),af(3,e)}catch(y){kc(e,e.return,y)}try{rf(5,e,e.return)}catch(y){kc(e,e.return,y)}}break;case 1:mf(t,e),vf(e),512&r&&null!==n&&ef(n,n.return);break;case 5:if(mf(t,e),vf(e),512&r&&null!==n&&ef(n,n.return),32&e.flags){var a=e.stateNode;try{de(a,"")}catch(y){kc(e,e.return,y)}}if(4&r&&null!=(a=e.stateNode)){var o=e.memoizedProps,s=null!==n?n.memoizedProps:o,f=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===f&&"radio"===o.type&&null!=o.name&&Y(a,o),ve(f,s);var l=ve(f,o);for(s=0;s<c.length;s+=2){var u=c[s],d=c[s+1];"style"===u?ye(a,d):"dangerouslySetInnerHTML"===u?ue(a,d):"children"===u?de(a,d):v(a,u,d,l)}switch(f){case"input":Q(a,o);break;case"textarea":ie(a,o);break;case"select":var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var h=o.value;null!=h?ne(a,!!o.multiple,h,!1):p!==!!o.multiple&&(null!=o.defaultValue?ne(a,!!o.multiple,o.defaultValue,!0):ne(a,!!o.multiple,o.multiple?[]:"",!1))}a[pa]=o}catch(y){kc(e,e.return,y)}}break;case 6:if(mf(t,e),vf(e),4&r){if(null===e.stateNode)throw Error(i(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(y){kc(e,e.return,y)}}break;case 3:if(mf(t,e),vf(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{$t(t.containerInfo)}catch(y){kc(e,e.return,y)}break;case 4:default:mf(t,e),vf(e);break;case 13:mf(t,e),vf(e),8192&(a=e.child).flags&&(o=null!==a.memoizedState,a.stateNode.isHidden=o,!o||null!==a.alternate&&null!==a.alternate.memoizedState||(Gf=Ye())),4&r&&yf(e);break;case 22:if(u=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(l=Ys)||u,mf(t,e),Ys=l):mf(t,e),vf(e),8192&r){if(l=null!==e.memoizedState,(e.stateNode.isHidden=l)&&!u&&0!==(1&e.mode))for(Xs=e,u=e.child;null!==u;){for(d=Xs=u;null!==Xs;){switch(h=(p=Xs).child,p.tag){case 0:case 11:case 14:case 15:rf(4,p,p.return);break;case 1:ef(p,p.return);var b=p.stateNode;if("function"===typeof b.componentWillUnmount){r=p,n=p.return;try{t=r,b.props=t.memoizedProps,b.state=t.memoizedState,b.componentWillUnmount()}catch(y){kc(r,n,y)}}break;case 5:ef(p,p.return);break;case 22:if(null!==p.memoizedState){Pf(d);continue}}null!==h?(h.return=p,Xs=h):Pf(d)}u=u.sibling}e:for(u=null,d=e;;){if(5===d.tag){if(null===u){u=d;try{a=d.stateNode,l?"function"===typeof(o=a.style).setProperty?o.setProperty("display","none","important"):o.display="none":(f=d.stateNode,s=void 0!==(c=d.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,f.style.display=be("display",s))}catch(y){kc(e,e.return,y)}}}else if(6===d.tag){if(null===u)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(y){kc(e,e.return,y)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:mf(t,e),vf(e),4&r&&yf(e);case 21:}}function vf(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ff(n)){var r=n;break e}n=n.return}throw Error(i(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(de(a,""),r.flags&=-33),uf(e,cf(e),a);break;case 3:case 4:var o=r.stateNode.containerInfo;lf(e,cf(e),o);break;default:throw Error(i(161))}}catch(s){kc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function wf(e,t,n){Xs=e,Ef(e,t,n)}function Ef(e,t,n){for(var r=0!==(1&e.mode);null!==Xs;){var a=Xs,i=a.child;if(22===a.tag&&r){var o=null!==a.memoizedState||Js;if(!o){var s=a.alternate,f=null!==s&&null!==s.memoizedState||Ys;s=Js;var c=Ys;if(Js=o,(Ys=f)&&!c)for(Xs=a;null!==Xs;)f=(o=Xs).child,22===o.tag&&null!==o.memoizedState?_f(a):null!==f?(f.return=o,Xs=f):_f(a);for(;null!==i;)Xs=i,Ef(i,t,n),i=i.sibling;Xs=a,Js=s,Ys=c}Af(e)}else 0!==(8772&a.subtreeFlags)&&null!==i?(i.return=a,Xs=i):Af(e)}}function Af(e){for(;null!==Xs;){var t=Xs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ys||af(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:yi(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&Mi(t,o,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Mi(t,s,n)}break;case 5:var f=t.stateNode;if(null===n&&4&t.flags){n=f;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var l=t.alternate;if(null!==l){var u=l.memoizedState;if(null!==u){var d=u.dehydrated;null!==d&&$t(d)}}}break;default:throw Error(i(163))}Ys||512&t.flags&&of(t)}catch(p){kc(t,t.return,p)}}if(t===e){Xs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Xs=n;break}Xs=t.return}}function Pf(e){for(;null!==Xs;){var t=Xs;if(t===e){Xs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Xs=n;break}Xs=t.return}}function _f(e){for(;null!==Xs;){var t=Xs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{af(4,t)}catch(f){kc(t,n,f)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(f){kc(t,a,f)}}var i=t.return;try{of(t)}catch(f){kc(t,i,f)}break;case 5:var o=t.return;try{of(t)}catch(f){kc(t,o,f)}}}catch(f){kc(t,t.return,f)}if(t===e){Xs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Xs=s;break}Xs=t.return}}var Tf,kf=Math.ceil,Cf=w.ReactCurrentDispatcher,xf=w.ReactCurrentOwner,Of=w.ReactCurrentBatchConfig,Sf=0,Rf=null,If=null,Nf=0,Bf=0,jf=_a(0),Df=0,Lf=null,Mf=0,Uf=0,Ff=0,zf=null,$f=null,Gf=0,Hf=1/0,Wf=null,Vf=!1,qf=null,Kf=null,Zf=!1,Jf=null,Yf=0,Qf=0,Xf=null,ec=-1,tc=0;function nc(){return 0!==(6&Sf)?Ye():-1!==ec?ec:ec=Ye()}function rc(e){return 0===(1&e.mode)?1:0!==(2&Sf)&&0!==Nf?Nf&-Nf:null!==bi.transition?(0===tc&&(tc=bt()),tc):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Jt(e.type)}function ac(e,t,n,r){if(50<Qf)throw Qf=0,Xf=null,Error(i(185));mt(e,n,r),0!==(2&Sf)&&e===Rf||(e===Rf&&(0===(2&Sf)&&(Uf|=n),4===Df&&cc(e,Nf)),ic(e,r),1===n&&0===Sf&&0===(1&t.mode)&&(Hf=Ye()+500,Ua&&$a()))}function ic(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes;0<i;){var o=31-ot(i),s=1<<o,f=a[o];-1===f?0!==(s&n)&&0===(s&r)||(a[o]=pt(s,t)):f<=t&&(e.expiredLanes|=s),i&=~s}}(e,t);var r=dt(e,e===Rf?Nf:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){Ua=!0,za(e)}(lc.bind(null,e)):za(lc.bind(null,e)),oa((function(){0===(6&Sf)&&$a()})),n=null;else{switch(wt(r)){case 1:n=Xe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Rc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(ec=-1,tc=0,0!==(6&Sf))throw Error(i(327));var n=e.callbackNode;if(_c()&&e.callbackNode!==n)return null;var r=dt(e,e===Rf?Nf:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=gc(e,r);else{t=r;var a=Sf;Sf|=2;var o=yc();for(Rf===e&&Nf===t||(Wf=null,Hf=Ye()+500,hc(e,t));;)try{wc();break}catch(f){bc(e,f)}Ei(),Cf.current=o,Sf=a,null!==If?t=0:(Rf=null,Nf=0,t=Df)}if(0!==t){if(2===t&&(0!==(a=ht(e))&&(r=a,t=sc(e,a))),1===t)throw n=Lf,hc(e,0),cc(e,r),ic(e,Ye()),n;if(6===t)cc(e,r);else{if(a=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!sr(i(),a))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=gc(e,r))&&(0!==(o=ht(e))&&(r=o,t=sc(e,o))),1===t))throw n=Lf,hc(e,0),cc(e,r),ic(e,Ye()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(i(345));case 2:case 5:Pc(e,$f,Wf);break;case 3:if(cc(e,r),(130023424&r)===r&&10<(t=Gf+500-Ye())){if(0!==dt(e,0))break;if(((a=e.suspendedLanes)&r)!==r){nc(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ra(Pc.bind(null,e,$f,Wf),t);break}Pc(e,$f,Wf);break;case 4:if(cc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var s=31-ot(r);o=1<<s,(s=t[s])>a&&(a=s),r&=~o}if(r=a,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*kf(r/1960))-r)){e.timeoutHandle=ra(Pc.bind(null,e,$f,Wf),r);break}Pc(e,$f,Wf);break;default:throw Error(i(329))}}}return ic(e,Ye()),e.callbackNode===n?oc.bind(null,e):null}function sc(e,t){var n=zf;return e.current.memoizedState.isDehydrated&&(hc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=$f,$f=n,null!==t&&fc(t)),e}function fc(e){null===$f?$f=e:$f.push.apply($f,e)}function cc(e,t){for(t&=~Ff,t&=~Uf,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&Sf))throw Error(i(327));_c();var t=dt(e,0);if(0===(1&t))return ic(e,Ye()),null;var n=gc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=sc(e,r))}if(1===n)throw n=Lf,hc(e,0),cc(e,t),ic(e,Ye()),n;if(6===n)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pc(e,$f,Wf),ic(e,Ye()),null}function uc(e,t){var n=Sf;Sf|=1;try{return e(t)}finally{0===(Sf=n)&&(Hf=Ye()+500,Ua&&$a())}}function dc(e){null!==Jf&&0===Jf.tag&&0===(6&Sf)&&_c();var t=Sf;Sf|=1;var n=Of.transition,r=vt;try{if(Of.transition=null,vt=1,e)return e()}finally{vt=r,Of.transition=n,0===(6&(Sf=t))&&$a()}}function pc(){Bf=jf.current,Ta(jf)}function hc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==If)for(n=If.return;null!==n;){var r=n;switch(ti(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Na();break;case 3:ao(),Ta(Oa),Ta(xa),lo();break;case 5:oo(r);break;case 4:ao();break;case 13:case 19:Ta(so);break;case 10:Ai(r.type._context);break;case 22:case 23:pc()}n=n.return}if(Rf=e,If=e=jc(e.current,null),Nf=Bf=t,Df=0,Lf=null,Ff=Uf=Mf=0,$f=zf=null,null!==ki){for(t=0;t<ki.length;t++)if(null!==(r=(n=ki[t]).interleaved)){n.interleaved=null;var a=r.next,i=n.pending;if(null!==i){var o=i.next;i.next=a,r.next=o}n.pending=r}ki=null}return e}function bc(e,t){for(;;){var n=If;try{if(Ei(),uo.current=os,go){for(var r=bo.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}go=!1}if(ho=0,mo=yo=bo=null,vo=!1,wo=0,xf.current=null,null===n||null===n.return){Df=1,Lf=t,If=null;break}e:{var o=e,s=n.return,f=n,c=t;if(t=Nf,f.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var l=c,u=f,d=u.tag;if(0===(1&u.mode)&&(0===d||11===d||15===d)){var p=u.alternate;p?(u.updateQueue=p.updateQueue,u.memoizedState=p.memoizedState,u.lanes=p.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=ms(s);if(null!==h){h.flags&=-257,gs(h,s,f,0,t),1&h.mode&&ys(o,l,t),c=l;var b=(t=h).updateQueue;if(null===b){var y=new Set;y.add(c),t.updateQueue=y}else b.add(c);break e}if(0===(1&t)){ys(o,l,t),mc();break e}c=Error(i(426))}else if(ai&&1&f.mode){var m=ms(s);if(null!==m){0===(65536&m.flags)&&(m.flags|=256),gs(m,s,f,0,t),hi(ls(c,f));break e}}o=c=ls(c,f),4!==Df&&(Df=2),null===zf?zf=[o]:zf.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t,Di(o,hs(0,c,t));break e;case 1:f=c;var g=o.type,v=o.stateNode;if(0===(128&o.flags)&&("function"===typeof g.getDerivedStateFromError||null!==v&&"function"===typeof v.componentDidCatch&&(null===Kf||!Kf.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t,Di(o,bs(o,f,t));break e}}o=o.return}while(null!==o)}Ac(n)}catch(w){t=w,If===n&&null!==n&&(If=n=n.return);continue}break}}function yc(){var e=Cf.current;return Cf.current=os,null===e?os:e}function mc(){0!==Df&&3!==Df&&2!==Df||(Df=4),null===Rf||0===(268435455&Mf)&&0===(268435455&Uf)||cc(Rf,Nf)}function gc(e,t){var n=Sf;Sf|=2;var r=yc();for(Rf===e&&Nf===t||(Wf=null,hc(e,t));;)try{vc();break}catch(a){bc(e,a)}if(Ei(),Sf=n,Cf.current=r,null!==If)throw Error(i(261));return Rf=null,Nf=0,Df}function vc(){for(;null!==If;)Ec(If)}function wc(){for(;null!==If&&!Ze();)Ec(If)}function Ec(e){var t=Tf(e.alternate,e,Bf);e.memoizedProps=e.pendingProps,null===t?Ac(e):If=t,xf.current=null}function Ac(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ks(n,t,Bf)))return void(If=n)}else{if(null!==(n=Zs(n,t)))return n.flags&=32767,void(If=n);if(null===e)return Df=6,void(If=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(If=t);If=t=e}while(null!==t);0===Df&&(Df=5)}function Pc(e,t,n){var r=vt,a=Of.transition;try{Of.transition=null,vt=1,function(e,t,n,r){do{_c()}while(null!==Jf);if(0!==(6&Sf))throw Error(i(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-ot(n),i=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~i}}(e,o),e===Rf&&(If=Rf=null,Nf=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Zf||(Zf=!0,Rc(tt,(function(){return _c(),null}))),o=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||o){o=Of.transition,Of.transition=null;var s=vt;vt=1;var f=Sf;Sf|=4,xf.current=null,function(e,t){if(ea=Ht,pr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(E){n=null;break e}var s=0,f=-1,c=-1,l=0,u=0,d=e,p=null;t:for(;;){for(var h;d!==n||0!==a&&3!==d.nodeType||(f=s+a),d!==o||0!==r&&3!==d.nodeType||(c=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++l===a&&(f=s),p===o&&++u===r&&(c=s),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}n=-1===f||-1===c?null:{start:f,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},Ht=!1,Xs=t;null!==Xs;)if(e=(t=Xs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Xs=e;else for(;null!==Xs;){t=Xs;try{var b=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==b){var y=b.memoizedProps,m=b.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:yi(t.type,y),m);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(i(163))}}catch(E){kc(t,t.return,E)}if(null!==(e=t.sibling)){e.return=t.return,Xs=e;break}Xs=t.return}b=nf,nf=!1}(e,n),gf(n,e),hr(ta),Ht=!!ea,ta=ea=null,e.current=n,wf(n,e,a),Je(),Sf=f,vt=s,Of.transition=o}else e.current=n;if(Zf&&(Zf=!1,Jf=e,Yf=a),o=e.pendingLanes,0===o&&(Kf=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(at,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ic(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(Vf)throw Vf=!1,e=qf,qf=null,e;0!==(1&Yf)&&0!==e.tag&&_c(),o=e.pendingLanes,0!==(1&o)?e===Xf?Qf++:(Qf=0,Xf=e):Qf=0,$a()}(e,t,n,r)}finally{Of.transition=a,vt=r}return null}function _c(){if(null!==Jf){var e=wt(Yf),t=Of.transition,n=vt;try{if(Of.transition=null,vt=16>e?16:e,null===Jf)var r=!1;else{if(e=Jf,Jf=null,Yf=0,0!==(6&Sf))throw Error(i(331));var a=Sf;for(Sf|=4,Xs=e.current;null!==Xs;){var o=Xs,s=o.child;if(0!==(16&Xs.flags)){var f=o.deletions;if(null!==f){for(var c=0;c<f.length;c++){var l=f[c];for(Xs=l;null!==Xs;){var u=Xs;switch(u.tag){case 0:case 11:case 15:rf(8,u,o)}var d=u.child;if(null!==d)d.return=u,Xs=d;else for(;null!==Xs;){var p=(u=Xs).sibling,h=u.return;if(sf(u),u===l){Xs=null;break}if(null!==p){p.return=h,Xs=p;break}Xs=h}}}var b=o.alternate;if(null!==b){var y=b.child;if(null!==y){b.child=null;do{var m=y.sibling;y.sibling=null,y=m}while(null!==y)}}Xs=o}}if(0!==(2064&o.subtreeFlags)&&null!==s)s.return=o,Xs=s;else e:for(;null!==Xs;){if(0!==(2048&(o=Xs).flags))switch(o.tag){case 0:case 11:case 15:rf(9,o,o.return)}var g=o.sibling;if(null!==g){g.return=o.return,Xs=g;break e}Xs=o.return}}var v=e.current;for(Xs=v;null!==Xs;){var w=(s=Xs).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Xs=w;else e:for(s=v;null!==Xs;){if(0!==(2048&(f=Xs).flags))try{switch(f.tag){case 0:case 11:case 15:af(9,f)}}catch(A){kc(f,f.return,A)}if(f===s){Xs=null;break e}var E=f.sibling;if(null!==E){E.return=f.return,Xs=E;break e}Xs=f.return}}if(Sf=a,$a(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(at,e)}catch(A){}r=!0}return r}finally{vt=n,Of.transition=t}}return!1}function Tc(e,t,n){e=Bi(e,t=hs(0,t=ls(n,t),1),1),t=nc(),null!==e&&(mt(e,1,t),ic(e,t))}function kc(e,t,n){if(3===e.tag)Tc(e,e,n);else for(;null!==t;){if(3===t.tag){Tc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Kf||!Kf.has(r))){t=Bi(t,e=bs(t,e=ls(n,e),1),1),e=nc(),null!==t&&(mt(t,1,e),ic(t,e));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=nc(),e.pingedLanes|=e.suspendedLanes&n,Rf===e&&(Nf&n)===n&&(4===Df||3===Df&&(130023424&Nf)===Nf&&500>Ye()-Gf?hc(e,0):Ff|=n),ic(e,t)}function xc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=lt,0===(130023424&(lt<<=1))&&(lt=4194304)));var n=nc();null!==(e=Oi(e,t))&&(mt(e,t,n),ic(e,n))}function Oc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),xc(e,n)}function Sc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(i(314))}null!==r&&r.delete(t),xc(e,n)}function Rc(e,t){return qe(e,t)}function Ic(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nc(e,t,n,r){return new Ic(e,t,n,r)}function Bc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function jc(e,t){var n=e.alternate;return null===n?((n=Nc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dc(e,t,n,r,a,o){var s=2;if(r=e,"function"===typeof e)Bc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case P:return Lc(n.children,a,o,t);case _:s=8,a|=8;break;case T:return(e=Nc(12,n,t,2|a)).elementType=T,e.lanes=o,e;case O:return(e=Nc(13,n,t,a)).elementType=O,e.lanes=o,e;case S:return(e=Nc(19,n,t,a)).elementType=S,e.lanes=o,e;case N:return Mc(n,a,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case k:s=10;break e;case C:s=9;break e;case x:s=11;break e;case R:s=14;break e;case I:s=16,r=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Nc(s,n,t,a)).elementType=e,t.type=r,t.lanes=o,t}function Lc(e,t,n,r){return(e=Nc(7,e,r,t)).lanes=n,e}function Mc(e,t,n,r){return(e=Nc(22,e,r,t)).elementType=N,e.lanes=n,e.stateNode={isHidden:!1},e}function Uc(e,t,n){return(e=Nc(6,e,null,t)).lanes=n,e}function Fc(e,t,n){return(t=Nc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zc(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function $c(e,t,n,r,a,i,o,s,f){return e=new zc(e,t,n,s,f),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Nc(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ri(i),e}function Gc(e){if(!e)return Ca;e:{if($e(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ia(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var n=e.type;if(Ia(n))return ja(e,n,t)}return t}function Hc(e,t,n,r,a,i,o,s,f){return(e=$c(n,r,!0,e,0,i,0,s,f)).context=Gc(null),n=e.current,(i=Ni(r=nc(),a=rc(n))).callback=void 0!==t&&null!==t?t:null,Bi(n,i,a),e.current.lanes=a,mt(e,a,r),ic(e,r),e}function Wc(e,t,n,r){var a=t.current,i=nc(),o=rc(a);return n=Gc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Ni(i,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Bi(a,t,o))&&(ac(e,a,o,i),ji(e,a,o)),o}function Vc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Kc(e,t){qc(e,t),(e=e.alternate)&&qc(e,t)}Tf=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Oa.current)ws=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return ws=!1,function(e,t,n){switch(t.tag){case 3:Ss(t),pi();break;case 5:io(t);break;case 1:Ia(t.type)&&Da(t);break;case 4:ro(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;ka(mi,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(ka(so,1&so.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ms(e,t,n):(ka(so,1&so.current),null!==(e=Ws(e,t,n))?e.sibling:null);ka(so,1&so.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Gs(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),ka(so,so.current),r)break;return null;case 22:case 23:return t.lanes=0,Ts(e,t,n)}return Ws(e,t,n)}(e,t,n);ws=0!==(131072&e.flags)}else ws=!1,ai&&0!==(1048576&t.flags)&&Xa(t,Va,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var a=Ra(t,xa.current);_i(t,n),a=_o(null,t,r,e,a,n);var o=To();return t.flags|=1,"object"===typeof a&&null!==a&&"function"===typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ia(r)?(o=!0,Da(t)):o=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Ri(t),a.updater=zi,t.stateNode=a,a._reactInternals=t,Wi(t,r,e,n),t=Os(null,t,r,!0,o,n)):(t.tag=0,ai&&o&&ei(t),Es(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"===typeof e)return Bc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===x)return 11;if(e===R)return 14}return 2}(r),e=yi(r,e),a){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=xs(null,t,r,e,n);break e;case 11:t=As(null,t,r,e,n);break e;case 14:t=Ps(null,t,r,yi(r.type,e),n);break e}throw Error(i(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,Cs(e,t,r,a=t.elementType===r?a:yi(r,a),n);case 1:return r=t.type,a=t.pendingProps,xs(e,t,r,a=t.elementType===r?a:yi(r,a),n);case 3:e:{if(Ss(t),null===e)throw Error(i(387));r=t.pendingProps,a=(o=t.memoizedState).element,Ii(e,t),Li(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Rs(e,t,r,n,a=ls(Error(i(423)),t));break e}if(r!==a){t=Rs(e,t,r,n,a=ls(Error(i(424)),t));break e}for(ri=ca(t.stateNode.containerInfo.firstChild),ni=t,ai=!0,ii=null,n=Yi(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(pi(),r===a){t=Ws(e,t,n);break e}Es(e,t,r,n)}t=t.child}return t;case 5:return io(t),null===e&&ci(t),r=t.type,a=t.pendingProps,o=null!==e?e.memoizedProps:null,s=a.children,na(r,a)?s=null:null!==o&&na(r,o)&&(t.flags|=32),ks(e,t),Es(e,t,s,n),t.child;case 6:return null===e&&ci(t),null;case 13:return Ms(e,t,n);case 4:return ro(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ji(t,null,r,n):Es(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,As(e,t,r,a=t.elementType===r?a:yi(r,a),n);case 7:return Es(e,t,t.pendingProps,n),t.child;case 8:case 12:return Es(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,ka(mi,r._currentValue),r._currentValue=s,null!==o)if(sr(o.value,s)){if(o.children===a.children&&!Oa.current){t=Ws(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var f=o.dependencies;if(null!==f){s=o.child;for(var c=f.firstContext;null!==c;){if(c.context===r){if(1===o.tag){(c=Ni(-1,n&-n)).tag=2;var l=o.updateQueue;if(null!==l){var u=(l=l.shared).pending;null===u?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}o.lanes|=n,null!==(c=o.alternate)&&(c.lanes|=n),Pi(o.return,n,t),f.lanes|=n;break}c=c.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(i(341));s.lanes|=n,null!==(f=s.alternate)&&(f.lanes|=n),Pi(s,n,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}Es(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,_i(t,n),r=r(a=Ti(a)),t.flags|=1,Es(e,t,r,n),t.child;case 14:return a=yi(r=t.type,t.pendingProps),Ps(e,t,r,a=yi(r.type,a),n);case 15:return _s(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:yi(r,a),Hs(e,t),t.tag=1,Ia(r)?(e=!0,Da(t)):e=!1,_i(t,n),Gi(t,r,a),Wi(t,r,a,n),Os(null,t,r,!0,e,n);case 19:return Gs(e,t,n);case 22:return Ts(e,t,n)}throw Error(i(156,t.tag))};var Zc="function"===typeof reportError?reportError:function(e){console.error(e)};function Jc(e){this._internalRoot=e}function Yc(e){this._internalRoot=e}function Qc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function el(){}function tl(e,t,n,r,a){var i=n._reactRootContainer;if(i){var o=i;if("function"===typeof a){var s=a;a=function(){var e=Vc(o);s.call(e)}}Wc(t,o,e,a)}else o=function(e,t,n,r,a){if(a){if("function"===typeof r){var i=r;r=function(){var e=Vc(o);i.call(e)}}var o=Hc(t,r,e,0,null,!1,0,"",el);return e._reactRootContainer=o,e[ha]=o.current,$r(8===e.nodeType?e.parentNode:e),dc(),o}for(;a=e.lastChild;)e.removeChild(a);if("function"===typeof r){var s=r;r=function(){var e=Vc(f);s.call(e)}}var f=$c(e,0,!1,null,0,!1,0,"",el);return e._reactRootContainer=f,e[ha]=f.current,$r(8===e.nodeType?e.parentNode:e),dc((function(){Wc(t,f,n,r)})),f}(n,t,e,a,r);return Vc(o)}Yc.prototype.render=Jc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Wc(e,t,null,null)},Yc.prototype.unmount=Jc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;dc((function(){Wc(null,e,null,null)})),t[ha]=null}},Yc.prototype.unstable_scheduleHydration=function(e){if(e){var t=_t();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Nt.length&&0!==t&&t<Nt[n].priority;n++);Nt.splice(n,0,e),0===n&&Lt(e)}},Et=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ut(t.pendingLanes);0!==n&&(gt(t,1|n),ic(t,Ye()),0===(6&Sf)&&(Hf=Ye()+500,$a()))}break;case 13:dc((function(){var t=Oi(e,1);if(null!==t){var n=nc();ac(t,e,1,n)}})),Kc(e,1)}},At=function(e){if(13===e.tag){var t=Oi(e,134217728);if(null!==t)ac(t,e,134217728,nc());Kc(e,134217728)}},Pt=function(e){if(13===e.tag){var t=rc(e),n=Oi(e,t);if(null!==n)ac(n,e,t,nc());Kc(e,t)}},_t=function(){return vt},Tt=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},Ae=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=Ea(r);if(!a)throw Error(i(90));q(r),Q(r,a)}}}break;case"textarea":ie(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},xe=uc,Oe=dc;var nl={usingClientEntryPoint:!1,Events:[va,wa,Ea,ke,Ce,uc]},rl={findFiberByHostInstance:ga,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},al={bundleType:rl.bundleType,version:rl.version,rendererPackageName:rl.rendererPackageName,rendererConfig:rl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:rl.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var il=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!il.isDisabled&&il.supportsFiber)try{at=il.inject(al),it=il}catch(le){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nl,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Qc(t))throw Error(i(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:A,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Qc(e))throw Error(i(299));var n=!1,r="",a=Zc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=$c(e,1,!1,null,0,n,0,r,a),e[ha]=t.current,$r(8===e.nodeType?e.parentNode:e),new Jc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return dc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(i(200));return tl(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Qc(e))throw Error(i(405));var r=null!=n&&n.hydratedSources||null,a=!1,o="",s=Zc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Hc(t,null,e,1,null!=n?n:null,a,0,o,s),e[ha]=t.current,$r(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Yc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(i(200));return tl(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(i(40));return!!e._reactRootContainer&&(dc((function(){tl(null,null,e,!1,(function(){e._reactRootContainer=null,e[ha]=null}))})),!0)},t.unstable_batchedUpdates=uc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return tl(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:(e,t,n)=>{"use strict";var r=n(54164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},54164:(e,t,n)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(34463)},50077:e=>{var t="undefined"!==typeof Element,n="function"===typeof Map,r="function"===typeof Set,a="function"===typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(e,o){if(e===o)return!0;if(e&&o&&"object"==typeof e&&"object"==typeof o){if(e.constructor!==o.constructor)return!1;var s,f,c,l;if(Array.isArray(e)){if((s=e.length)!=o.length)return!1;for(f=s;0!==f--;)if(!i(e[f],o[f]))return!1;return!0}if(n&&e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(l=e.entries();!(f=l.next()).done;)if(!o.has(f.value[0]))return!1;for(l=e.entries();!(f=l.next()).done;)if(!i(f.value[1],o.get(f.value[0])))return!1;return!0}if(r&&e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(l=e.entries();!(f=l.next()).done;)if(!o.has(f.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(o)){if((s=e.length)!=o.length)return!1;for(f=s;0!==f--;)if(e[f]!==o[f])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"===typeof e.valueOf&&"function"===typeof o.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString&&"function"===typeof e.toString&&"function"===typeof o.toString)return e.toString()===o.toString();if((s=(c=Object.keys(e)).length)!==Object.keys(o).length)return!1;for(f=s;0!==f--;)if(!Object.prototype.hasOwnProperty.call(o,c[f]))return!1;if(t&&e instanceof Element)return!1;for(f=s;0!==f--;)if(("_owner"!==c[f]&&"__v"!==c[f]&&"__o"!==c[f]||!e.$$typeof)&&!i(e[c[f]],o[c[f]]))return!1;return!0}return e!==e&&o!==o}e.exports=function(e,t){try{return i(e,t)}catch(n){if((n.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw n}}},57567:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=e||"";t&&(i=e.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,(function(e,t,r){return t>0&&t+e.length!==r.length&&e.search(n)>-1&&":"!==r.charAt(t-2)&&("-"!==r.charAt(t+e.length)||"-"===r.charAt(t-1))&&r.charAt(t-1).search(/[^\s-]/)<0?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)})));a&&(i=function(e){if(function(e){return"string"===typeof e&&-1!==e.indexOf("@")}(e))return console.warn("This arg looks like an email address, redacting."),r;return e}(i));return i};var n=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;var r="REDACTED (Potential Email Address)"},97848:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.GA4=void 0;var r=c(n(37666)),a=c(n(57567)),i=["eventCategory","eventAction","eventLabel","eventValue","hitType"],o=["title","location"],s=["page","hitType"],f=["action","category","label","value","nonInteraction","transport"];function c(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function u(e){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,a,i=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);o=!0);}catch(f){s=!0,a=f}finally{try{o||null==n.return||n.return()}finally{if(s)throw a}}return i}(e,t)||y(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){if(e){if("string"===typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,"reset",(function(){t.isInitialized=!1,t._testMode=!1,t._currentMeasurementId,t._hasLoadedGA=!1,t._isQueuing=!1,t._queueGtag=[]})),v(this,"_gtag",(function(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];t._testMode||t._isQueuing?t._queueGtag.push(n):r.default.apply(void 0,n)})),v(this,"_loadGA",(function(e,n){if("undefined"!==typeof window&&"undefined"!==typeof document&&!t._hasLoadedGA){var r=document.createElement("script");r.async=!0,r.src="https://www.googletagmanager.com/gtag/js?id=".concat(e),n&&r.setAttribute("nonce",n),document.body.appendChild(r),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},t._hasLoadedGA=!0}})),v(this,"_toGtagOptions",(function(e){if(e){var t={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"};return Object.entries(e).reduce((function(e,n){var r=b(n,2),a=r[0],i=r[1];return t[a]?e[t[a]]=i:e[a]=i,e}),{})}})),v(this,"initialize",(function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("Require GA_MEASUREMENT_ID");var r="string"===typeof e?[{trackingId:e}]:e;t._currentMeasurementId=r[0].trackingId;var a=n.gaOptions,i=n.gtagOptions,o=n.legacyDimensionMetric,s=void 0===o||o,f=n.nonce,c=n.testMode,l=void 0!==c&&c;if(t._testMode=l,l||t._loadGA(t._currentMeasurementId,f),t.isInitialized||(t._gtag("js",new Date),r.forEach((function(e){var n=t._appendCustomMap(h(h(h({send_page_view:!1},t._toGtagOptions(h(h({},a),e.gaOptions))),i),e.gtagOptions),s);t._gtag("config",e.trackingId,n)}))),t.isInitialized=!0,!l){var u=d(t._queueGtag);for(t._queueGtag=[],t._isQueuing=!1;u.length;){var p=u.shift();t._gtag.apply(t,d(p)),"get"===p[0]&&(t._isQueuing=!0)}}})),v(this,"set",(function(e){e?"object"===u(e)?(0===Object.keys(e).length&&console.warn("empty `fieldsObject` given to .set()"),t._gaCommand("set",e)):console.warn("Expected `fieldsObject` arg to be an Object"):console.warn("`fieldsObject` is required in .set()")})),v(this,"_gaCommandSendEvent",(function(e,n,r,a,i){t._gtag("event",n,h(h({event_category:e,event_label:r,value:a},i&&{non_interaction:i.nonInteraction}),t._toGtagOptions(i)))})),v(this,"_gaCommandSendEventParameters",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("string"===typeof n[0])t._gaCommandSendEvent.apply(t,d(n.slice(1)));else{var a=n[0],o=a.eventCategory,s=a.eventAction,f=a.eventLabel,c=a.eventValue,u=(a.hitType,l(a,i));t._gaCommandSendEvent(o,s,f,c,u)}})),v(this,"_gaCommandSendTiming",(function(e,n,r,a){t._gtag("event","timing_complete",{name:n,value:r,event_category:e,event_label:a})})),v(this,"_gaCommandSendPageview",(function(e,n){if(n&&Object.keys(n).length){var r=t._toGtagOptions(n),a=r.title,i=r.location,s=l(r,o);t._gtag("event","page_view",h(h(h(h({},e&&{page_path:e}),a&&{page_title:a}),i&&{page_location:i}),s))}else e?t._gtag("event","page_view",{page_path:e}):t._gtag("event","page_view")})),v(this,"_gaCommandSendPageviewParameters",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("string"===typeof n[0])t._gaCommandSendPageview.apply(t,d(n.slice(1)));else{var a=n[0],i=a.page,o=(a.hitType,l(a,s));t._gaCommandSendPageview(i,o)}})),v(this,"_gaCommandSend",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var a="string"===typeof n[0]?n[0]:n[0].hitType;switch(a){case"event":t._gaCommandSendEventParameters.apply(t,n);break;case"pageview":t._gaCommandSendPageviewParameters.apply(t,n);break;case"timing":t._gaCommandSendTiming.apply(t,d(n.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(a));break;default:console.warn("Send command doesn't exist: ".concat(a))}})),v(this,"_gaCommandSet",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];"string"===typeof n[0]&&(n[0]=v({},n[0],n[1])),t._gtag("set",t._toGtagOptions(n[0]))})),v(this,"_gaCommand",(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];switch(e){case"send":t._gaCommandSend.apply(t,r);break;case"set":t._gaCommandSet.apply(t,r);break;default:console.warn("Command doesn't exist: ".concat(e))}})),v(this,"ga",(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];if("string"===typeof n[0])t._gaCommand.apply(t,n);else{var a=n[0];t._gtag("get",t._currentMeasurementId,"client_id",(function(e){t._isQueuing=!1;var n=t._queueGtag;for(a({get:function(n){return"clientId"===n?e:"trackingId"===n?t._currentMeasurementId:"apiVersion"===n?"1":void 0}});n.length;){var r=n.shift();t._gtag.apply(t,d(r))}})),t._isQueuing=!0}return t.ga})),v(this,"event",(function(e,n){if("string"===typeof e)t._gtag("event",e,t._toGtagOptions(n));else{var r=e.action,i=e.category,o=e.label,s=e.value,c=e.nonInteraction,u=e.transport,d=l(e,f);if(!i||!r)return void console.warn("args.category AND args.action are required in event()");var p={hitType:"event",eventCategory:(0,a.default)(i),eventAction:(0,a.default)(r)};o&&(p.eventLabel=(0,a.default)(o)),"undefined"!==typeof s&&("number"!==typeof s?console.warn("Expected `args.value` arg to be a Number."):p.eventValue=s),"undefined"!==typeof c&&("boolean"!==typeof c?console.warn("`args.nonInteraction` must be a boolean."):p.nonInteraction=c),"undefined"!==typeof u&&("string"!==typeof u?console.warn("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(u)&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),p.transport=u)),Object.keys(d).filter((function(e){return"dimension"===e.substr(0,9)})).forEach((function(e){p[e]=d[e]})),Object.keys(d).filter((function(e){return"metric"===e.substr(0,6)})).forEach((function(e){p[e]=d[e]})),t._gaCommand("send",p)}})),v(this,"send",(function(e){t._gaCommand("send",e)})),v(this,"pageview",(function(e,n,r){var a=null===e||void 0===e?void 0:e.trim();""!==a?t._gaCommand("send","pageview",a,{title:r}):console.warn("path cannot be an empty string in .pageview()")})),this.reset()}var t,n,c;return t=e,n=[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}},{key:"_appendCustomMap",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&!arguments[1])return e;e.custom_map||(e.custom_map={});for(var t=1;t<=200;t++)e.custom_map["dimension".concat(t)]||(e.custom_map["dimension".concat(t)]="dimension".concat(t)),e.custom_map["metric".concat(t)]||(e.custom_map["metric".concat(t)]="metric".concat(t));return e}},{key:"outboundLink",value:function(e,t){var n=e.label;if("function"===typeof t)if(n){var r={hitType:"event",eventCategory:"Outbound",eventAction:"Click",eventLabel:(0,a.default)(n)},i=!1,o=setTimeout((function(){i=!0,t()}),250);r.hitCallback=function(){clearTimeout(o),i||t()},this._gaCommand("send",r)}else console.warn("args.label is required in outboundLink()");else console.warn("hitCallback function is required")}}],n&&g(t.prototype,n),c&&g(t,c),e}();t.GA4=w;var E=new w;t.default=E},37666:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;"undefined"!==typeof window&&("undefined"===typeof window.gtag&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(r=window).gtag.apply(r,t))};t.default=n},10757:(e,t,n)=>{"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.ZP=void 0;var a=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!==typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var a={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var f=o?Object.getOwnPropertyDescriptor(e,s):null;f&&(f.get||f.set)?Object.defineProperty(a,s,f):a[s]=e[s]}a.default=e,n&&n.set(e,a);return a}(n(97848));function i(e){if("function"!==typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}a.GA4;var o=a.default;t.ZP=o},6907:(e,t,n)=>{"use strict";n.d(t,{B6:()=>W,ql:()=>X});var r=n(72791),a=n(52007),i=n.n(a),o=n(50077),s=n.n(o),f=n(92176),c=n.n(f),l=n(79613),u=n.n(l);function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function p(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function b(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(a[n]=e[n]);return a}var y={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},m={rel:["amphtml","canonical","alternate"]},g={type:["application/ld+json"]},v={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},w=Object.keys(y).map((function(e){return y[e]})),E={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},A=Object.keys(E).reduce((function(e,t){return e[E[t]]=t,e}),{}),P=function(e,t){for(var n=e.length-1;n>=0;n-=1){var r=e[n];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},_=function(e){var t=P(e,y.TITLE),n=P(e,"titleTemplate");if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,(function(){return t}));var r=P(e,"defaultTitle");return t||r||void 0},T=function(e){return P(e,"onChangeClientState")||function(){}},k=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return d({},e,t)}),{})},C=function(e,t){return t.filter((function(e){return void 0!==e[y.BASE]})).map((function(e){return e[y.BASE]})).reverse().reduce((function(t,n){if(!t.length)for(var r=Object.keys(n),a=0;a<r.length;a+=1){var i=r[a].toLowerCase();if(-1!==e.indexOf(i)&&n[i])return t.concat(n)}return t}),[])},x=function(e,t,n){var r={};return n.filter((function(t){return!!Array.isArray(t[e])||(void 0!==t[e]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+e+' should be of type "Array". Instead found type "'+typeof t[e]+'"'),!1)})).map((function(t){return t[e]})).reverse().reduce((function(e,n){var a={};n.filter((function(e){for(var n,i=Object.keys(e),o=0;o<i.length;o+=1){var s=i[o],f=s.toLowerCase();-1===t.indexOf(f)||"rel"===n&&"canonical"===e[n].toLowerCase()||"rel"===f&&"stylesheet"===e[f].toLowerCase()||(n=f),-1===t.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(n=s)}if(!n||!e[n])return!1;var c=e[n].toLowerCase();return r[n]||(r[n]={}),a[n]||(a[n]={}),!r[n][c]&&(a[n][c]=!0,!0)})).reverse().forEach((function(t){return e.push(t)}));for(var i=Object.keys(a),o=0;o<i.length;o+=1){var s=i[o],f=d({},r[s],a[s]);r[s]=f}return e}),[]).reverse()},O=function(e,t){if(Array.isArray(e)&&e.length)for(var n=0;n<e.length;n+=1)if(e[n][t])return!0;return!1},S=function(e){return Array.isArray(e)?e.join(""):e},R=function(e,t){return Array.isArray(e)?e.reduce((function(e,n){return function(e,t){for(var n=Object.keys(e),r=0;r<n.length;r+=1)if(t[n[r]]&&t[n[r]].includes(e[n[r]]))return!0;return!1}(n,t)?e.priority.push(n):e.default.push(n),e}),{priority:[],default:[]}):{default:e}},I=function(e,t){var n;return d({},e,((n={})[t]=void 0,n))},N=[y.NOSCRIPT,y.SCRIPT,y.STYLE],B=function(e,t){return void 0===t&&(t=!0),!1===t?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},j=function(e){return Object.keys(e).reduce((function(t,n){var r=void 0!==e[n]?n+'="'+e[n]+'"':""+n;return t?t+" "+r:r}),"")},D=function(e,t){return void 0===t&&(t={}),Object.keys(e).reduce((function(t,n){return t[E[n]||n]=e[n],t}),t)},L=function(e,t){return t.map((function(t,n){var a,i=((a={key:n})["data-rh"]=!0,a);return Object.keys(t).forEach((function(e){var n=E[e]||e;"innerHTML"===n||"cssText"===n?i.dangerouslySetInnerHTML={__html:t.innerHTML||t.cssText}:i[n]=t[e]})),r.createElement(e,i)}))},M=function(e,t,n){switch(e){case y.TITLE:return{toComponent:function(){return n=t.titleAttributes,(a={key:e=t.title})["data-rh"]=!0,i=D(n,a),[r.createElement(y.TITLE,i,e)];var e,n,a,i},toString:function(){return function(e,t,n,r){var a=j(n),i=S(t);return a?"<"+e+' data-rh="true" '+a+">"+B(i,r)+"</"+e+">":"<"+e+' data-rh="true">'+B(i,r)+"</"+e+">"}(e,t.title,t.titleAttributes,n)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return D(t)},toString:function(){return j(t)}};default:return{toComponent:function(){return L(e,t)},toString:function(){return function(e,t,n){return t.reduce((function(t,r){var a=Object.keys(r).filter((function(e){return!("innerHTML"===e||"cssText"===e)})).reduce((function(e,t){var a=void 0===r[t]?t:t+'="'+B(r[t],n)+'"';return e?e+" "+a:a}),""),i=r.innerHTML||r.cssText||"",o=-1===N.indexOf(e);return t+"<"+e+' data-rh="true" '+a+(o?"/>":">"+i+"</"+e+">")}),"")}(e,t,n)}}}},U=function(e){var t=e.baseTag,n=e.bodyAttributes,r=e.encode,a=e.htmlAttributes,i=e.noscriptTags,o=e.styleTags,s=e.title,f=void 0===s?"":s,c=e.titleAttributes,l=e.linkTags,u=e.metaTags,d=e.scriptTags,p={toComponent:function(){},toString:function(){return""}};if(e.prioritizeSeoTags){var h=function(e){var t=e.linkTags,n=e.scriptTags,r=e.encode,a=R(e.metaTags,v),i=R(t,m),o=R(n,g);return{priorityMethods:{toComponent:function(){return[].concat(L(y.META,a.priority),L(y.LINK,i.priority),L(y.SCRIPT,o.priority))},toString:function(){return M(y.META,a.priority,r)+" "+M(y.LINK,i.priority,r)+" "+M(y.SCRIPT,o.priority,r)}},metaTags:a.default,linkTags:i.default,scriptTags:o.default}}(e);p=h.priorityMethods,l=h.linkTags,u=h.metaTags,d=h.scriptTags}return{priority:p,base:M(y.BASE,t,r),bodyAttributes:M("bodyAttributes",n,r),htmlAttributes:M("htmlAttributes",a,r),link:M(y.LINK,l,r),meta:M(y.META,u,r),noscript:M(y.NOSCRIPT,i,r),script:M(y.SCRIPT,d,r),style:M(y.STYLE,o,r),title:M(y.TITLE,{title:f,titleAttributes:c},r)}},F=[],z=function(e,t){var n=this;void 0===t&&(t="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(e){n.context.helmet=e},helmetInstances:{get:function(){return n.canUseDOM?F:n.instances},add:function(e){(n.canUseDOM?F:n.instances).push(e)},remove:function(e){var t=(n.canUseDOM?F:n.instances).indexOf(e);(n.canUseDOM?F:n.instances).splice(t,1)}}},this.context=e,this.canUseDOM=t,t||(e.helmet=U({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},$=r.createContext({}),G=i().shape({setHelmet:i().func,helmetInstances:i().shape({get:i().func,add:i().func,remove:i().func})}),H="undefined"!=typeof document,W=function(e){function t(n){var r;return(r=e.call(this,n)||this).helmetData=new z(r.props.context,t.canUseDOM),r}return p(t,e),t.prototype.render=function(){return r.createElement($.Provider,{value:this.helmetData.value},this.props.children)},t}(r.Component);W.canUseDOM=H,W.propTypes={context:i().shape({helmet:i().shape()}),children:i().node.isRequired},W.defaultProps={context:{}},W.displayName="HelmetProvider";var V=function(e,t){var n,r=document.head||document.querySelector(y.HEAD),a=r.querySelectorAll(e+"[data-rh]"),i=[].slice.call(a),o=[];return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&("innerHTML"===a?r.innerHTML=t.innerHTML:"cssText"===a?r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText)):r.setAttribute(a,void 0===t[a]?"":t[a]));r.setAttribute("data-rh","true"),i.some((function(e,t){return n=t,r.isEqualNode(e)}))?i.splice(n,1):o.push(r)})),i.forEach((function(e){return e.parentNode.removeChild(e)})),o.forEach((function(e){return r.appendChild(e)})),{oldTags:i,newTags:o}},q=function(e,t){var n=document.getElementsByTagName(e)[0];if(n){for(var r=n.getAttribute("data-rh"),a=r?r.split(","):[],i=[].concat(a),o=Object.keys(t),s=0;s<o.length;s+=1){var f=o[s],c=t[f]||"";n.getAttribute(f)!==c&&n.setAttribute(f,c),-1===a.indexOf(f)&&a.push(f);var l=i.indexOf(f);-1!==l&&i.splice(l,1)}for(var u=i.length-1;u>=0;u-=1)n.removeAttribute(i[u]);a.length===i.length?n.removeAttribute("data-rh"):n.getAttribute("data-rh")!==o.join(",")&&n.setAttribute("data-rh",o.join(","))}},K=function(e,t){var n=e.baseTag,r=e.htmlAttributes,a=e.linkTags,i=e.metaTags,o=e.noscriptTags,s=e.onChangeClientState,f=e.scriptTags,c=e.styleTags,l=e.title,u=e.titleAttributes;q(y.BODY,e.bodyAttributes),q(y.HTML,r),function(e,t){void 0!==e&&document.title!==e&&(document.title=S(e)),q(y.TITLE,t)}(l,u);var d={baseTag:V(y.BASE,n),linkTags:V(y.LINK,a),metaTags:V(y.META,i),noscriptTags:V(y.NOSCRIPT,o),scriptTags:V(y.SCRIPT,f),styleTags:V(y.STYLE,c)},p={},h={};Object.keys(d).forEach((function(e){var t=d[e],n=t.newTags,r=t.oldTags;n.length&&(p[e]=n),r.length&&(h[e]=d[e].oldTags)})),t&&t(),s(e,p,h)},Z=null,J=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).rendered=!1,t}p(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!u()(e,this.props)},n.componentDidUpdate=function(){this.emitChange()},n.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},n.emitChange=function(){var e,t,n=this.props.context,r=n.setHelmet,a=null,i=(e=n.helmetInstances.get().map((function(e){var t=d({},e.props);return delete t.context,t})),{baseTag:C(["href"],e),bodyAttributes:k("bodyAttributes",e),defer:P(e,"defer"),encode:P(e,"encodeSpecialCharacters"),htmlAttributes:k("htmlAttributes",e),linkTags:x(y.LINK,["rel","href"],e),metaTags:x(y.META,["name","charset","http-equiv","property","itemprop"],e),noscriptTags:x(y.NOSCRIPT,["innerHTML"],e),onChangeClientState:T(e),scriptTags:x(y.SCRIPT,["src","innerHTML"],e),styleTags:x(y.STYLE,["cssText"],e),title:_(e),titleAttributes:k("titleAttributes",e),prioritizeSeoTags:O(e,"prioritizeSeoTags")});W.canUseDOM?(t=i,Z&&cancelAnimationFrame(Z),t.defer?Z=requestAnimationFrame((function(){K(t,(function(){Z=null}))})):(K(t),Z=null)):U&&(a=U(i)),r(a)},n.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},n.render=function(){return this.init(),null},t}(r.Component);J.propTypes={context:G.isRequired},J.displayName="HelmetDispatcher";var Y=["children"],Q=["children"],X=function(e){function t(){return e.apply(this,arguments)||this}p(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return!s()(I(this.props,"helmetData"),I(e,"helmetData"))},n.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case y.SCRIPT:case y.NOSCRIPT:return{innerHTML:t};case y.STYLE:return{cssText:t};default:throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},n.flattenArrayTypeChildren=function(e){var t,n=e.child,r=e.arrayTypeChildren;return d({},r,((t={})[n.type]=[].concat(r[n.type]||[],[d({},e.newChildProps,this.mapNestedChildrenToProps(n,e.nestedChildren))]),t))},n.mapObjectTypeChildren=function(e){var t,n,r=e.child,a=e.newProps,i=e.newChildProps,o=e.nestedChildren;switch(r.type){case y.TITLE:return d({},a,((t={})[r.type]=o,t.titleAttributes=d({},i),t));case y.BODY:return d({},a,{bodyAttributes:d({},i)});case y.HTML:return d({},a,{htmlAttributes:d({},i)});default:return d({},a,((n={})[r.type]=d({},i),n))}},n.mapArrayTypeChildrenToProps=function(e,t){var n=d({},t);return Object.keys(e).forEach((function(t){var r;n=d({},n,((r={})[t]=e[t],r))})),n},n.warnOnInvalidChildren=function(e,t){return c()(w.some((function(t){return e.type===t})),"function"==typeof e.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+w.join(", ")+" are allowed. Helmet does not support rendering <"+e.type+"> elements. Refer to our API for more information."),c()(!t||"string"==typeof t||Array.isArray(t)&&!t.some((function(e){return"string"!=typeof e})),"Helmet expects a string as a child of <"+e.type+">. Did you forget to wrap your children in braces? ( <"+e.type+">{``}</"+e.type+"> ) Refer to our API for more information."),!0},n.mapChildrenToProps=function(e,t){var n=this,a={};return r.Children.forEach(e,(function(e){if(e&&e.props){var r=e.props,i=r.children,o=b(r,Y),s=Object.keys(o).reduce((function(e,t){return e[A[t]||t]=o[t],e}),{}),f=e.type;switch("symbol"==typeof f?f=f.toString():n.warnOnInvalidChildren(e,i),f){case y.FRAGMENT:t=n.mapChildrenToProps(i,t);break;case y.LINK:case y.META:case y.NOSCRIPT:case y.SCRIPT:case y.STYLE:a=n.flattenArrayTypeChildren({child:e,arrayTypeChildren:a,newChildProps:s,nestedChildren:i});break;default:t=n.mapObjectTypeChildren({child:e,newProps:t,newChildProps:s,nestedChildren:i})}}})),this.mapArrayTypeChildrenToProps(a,t)},n.render=function(){var e=this.props,t=e.children,n=b(e,Q),a=d({},n),i=n.helmetData;return t&&(a=this.mapChildrenToProps(t,a)),!i||i instanceof z||(i=new z(i.context,i.instances)),i?r.createElement(J,d({},a,{context:i.value,helmetData:void 0})):r.createElement($.Consumer,null,(function(e){return r.createElement(J,d({},a,{context:e}))}))},t}(r.Component);X.propTypes={base:i().object,bodyAttributes:i().object,children:i().oneOfType([i().arrayOf(i().node),i().node]),defaultTitle:i().string,defer:i().bool,encodeSpecialCharacters:i().bool,htmlAttributes:i().object,link:i().arrayOf(i().object),meta:i().arrayOf(i().object),noscript:i().arrayOf(i().object),onChangeClientState:i().func,script:i().arrayOf(i().object),style:i().arrayOf(i().object),title:i().string,titleAttributes:i().object,titleTemplate:i().string,prioritizeSeoTags:i().bool,helmetData:i().object},X.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},X.displayName="Helmet"},11087:(e,t,n)=>{"use strict";n.d(t,{OL:()=>b,VK:()=>u,lr:()=>g,rU:()=>h});var r=n(72791),a=n(57689),i=n(58278);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function f(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}const c=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],l=["aria-current","caseSensitive","className","end","style","to","children"];function u(e){let{basename:t,children:n,window:o}=e,s=r.useRef();null==s.current&&(s.current=(0,i.lX)({window:o,v5Compat:!0}));let f=s.current,[c,l]=r.useState({action:f.action,location:f.location});return r.useLayoutEffect((()=>f.listen(l)),[f]),r.createElement(a.F0,{basename:t,children:n,location:c.location,navigationType:c.action,navigator:f})}const d="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,p=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,h=r.forwardRef((function(e,t){let n,{onClick:f,relative:l,reloadDocument:u,replace:h,state:b,target:y,to:m,preventScrollReset:g}=e,v=s(e,c),{basename:w}=r.useContext(a.Us),E=!1;if("string"===typeof m&&p.test(m)&&(n=m,d)){let e=new URL(window.location.href),t=m.startsWith("//")?new URL(e.protocol+m):new URL(m),n=(0,i.Zn)(t.pathname,w);t.origin===e.origin&&null!=n?m=n+t.search+t.hash:E=!0}let A=(0,a.oQ)(m,{relative:l}),P=function(e,t){let{target:n,replace:o,state:s,preventScrollReset:f,relative:c}=void 0===t?{}:t,l=(0,a.s0)(),u=(0,a.TH)(),d=(0,a.WU)(e,{relative:c});return r.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==o?o:(0,i.Ep)(u)===(0,i.Ep)(d);l(e,{replace:n,state:s,preventScrollReset:f,relative:c})}}),[u,l,d,o,s,n,e,f,c])}(m,{replace:h,state:b,target:y,preventScrollReset:g,relative:l});return r.createElement("a",o({},v,{href:n||A,onClick:E||u?f:function(e){f&&f(e),e.defaultPrevented||P(e)},ref:t,target:y}))}));const b=r.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:i=!1,className:f="",end:c=!1,style:u,to:d,children:p}=e,b=s(e,l),y=(0,a.WU)(d,{relative:b.relative}),m=(0,a.TH)(),g=r.useContext(a.FR),{navigator:v}=r.useContext(a.Us),w=v.encodeLocation?v.encodeLocation(y).pathname:y.pathname,E=m.pathname,A=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(E=E.toLowerCase(),A=A?A.toLowerCase():null,w=w.toLowerCase());let P,_=E===w||!c&&E.startsWith(w)&&"/"===E.charAt(w.length),T=null!=A&&(A===w||!c&&A.startsWith(w)&&"/"===A.charAt(w.length)),k=_?n:void 0;P="function"===typeof f?f({isActive:_,isPending:T}):[f,_?"active":null,T?"pending":null].filter(Boolean).join(" ");let C="function"===typeof u?u({isActive:_,isPending:T}):u;return r.createElement(h,o({},b,{"aria-current":k,className:P,ref:t,style:C,to:d}),"function"===typeof p?p({isActive:_,isPending:T}):p)}));var y,m;function g(e){let t=r.useRef(f(e)),n=r.useRef(!1),i=(0,a.TH)(),o=r.useMemo((()=>function(e,t){let n=f(e);if(t)for(let r of t.keys())n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}));return n}(i.search,n.current?null:t.current)),[i.search]),s=(0,a.s0)(),c=r.useCallback(((e,t)=>{const r=f("function"===typeof e?e(o):e);n.current=!0,s("?"+r,t)}),[s,o]);return[o,c]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(y||(y={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(m||(m={}))},57689:(e,t,n)=>{"use strict";var r;n.d(t,{AW:()=>D,F0:()=>L,FR:()=>p,Fg:()=>j,TH:()=>E,UO:()=>T,Us:()=>h,WU:()=>k,Z5:()=>M,bS:()=>P,oQ:()=>v,s0:()=>_,ur:()=>A});var a=n(58278),i=n(72791);const o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},{useState:s,useEffect:f,useLayoutEffect:c,useDebugValue:l}=r||(r=n.t(i,2));function u(e){const t=e.getSnapshot,n=e.value;try{const e=t();return!o(n,e)}catch(r){return!0}}"undefined"===typeof window||"undefined"===typeof window.document||window.document.createElement,(r||(r=n.t(i,2))).useSyncExternalStore;const d=i.createContext(null);const p=i.createContext(null);const h=i.createContext(null);const b=i.createContext(null);const y=i.createContext({outlet:null,matches:[]});const m=i.createContext(null);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}function v(e,t){let{relative:n}=void 0===t?{}:t;w()||(0,a.J0)(!1);let{basename:r,navigator:o}=i.useContext(h),{hash:s,pathname:f,search:c}=k(e,{relative:n}),l=f;return"/"!==r&&(l="/"===f?r:(0,a.RQ)([r,f])),o.createHref({pathname:l,search:c,hash:s})}function w(){return null!=i.useContext(b)}function E(){return w()||(0,a.J0)(!1),i.useContext(b).location}function A(){return i.useContext(b).navigationType}function P(e){w()||(0,a.J0)(!1);let{pathname:t}=E();return i.useMemo((()=>(0,a.LX)(e,t)),[t,e])}function _(){w()||(0,a.J0)(!1);let{basename:e,navigator:t}=i.useContext(h),{matches:n}=i.useContext(y),{pathname:r}=E(),o=JSON.stringify((0,a.Zq)(n).map((e=>e.pathnameBase))),s=i.useRef(!1);return i.useEffect((()=>{s.current=!0})),i.useCallback((function(n,i){if(void 0===i&&(i={}),!s.current)return;if("number"===typeof n)return void t.go(n);let f=(0,a.pC)(n,JSON.parse(o),r,"path"===i.relative);"/"!==e&&(f.pathname="/"===f.pathname?e:(0,a.RQ)([e,f.pathname])),(i.replace?t.replace:t.push)(f,i.state,i)}),[e,t,o,r])}function T(){let{matches:e}=i.useContext(y),t=e[e.length-1];return t?t.params:{}}function k(e,t){let{relative:n}=void 0===t?{}:t,{matches:r}=i.useContext(y),{pathname:o}=E(),s=JSON.stringify((0,a.Zq)(r).map((e=>e.pathnameBase)));return i.useMemo((()=>(0,a.pC)(e,JSON.parse(s),o,"path"===n)),[e,s,o,n])}function C(){let e=function(){var e;let t=i.useContext(m),n=N(I.UseRouteError),r=B(I.UseRouteError);if(t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=(0,a.WK)(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r};return i.createElement(i.Fragment,null,i.createElement("h2",null,"Unexpected Application Error!"),i.createElement("h3",{style:{fontStyle:"italic"}},t),n?i.createElement("pre",{style:o},n):null,null)}class x extends i.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?i.createElement(y.Provider,{value:this.props.routeContext},i.createElement(m.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function O(e){let{routeContext:t,match:n,children:r}=e,a=i.useContext(d);return a&&a.static&&a.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=n.route.id),i.createElement(y.Provider,{value:t},r)}function S(e,t,n){if(void 0===t&&(t=[]),null==e){if(null==n||!n.errors)return null;e=n.matches}let r=e,o=null==n?void 0:n.errors;if(null!=o){let e=r.findIndex((e=>e.route.id&&(null==o?void 0:o[e.route.id])));e>=0||(0,a.J0)(!1),r=r.slice(0,Math.min(r.length,e+1))}return r.reduceRight(((e,a,s)=>{let f=a.route.id?null==o?void 0:o[a.route.id]:null,c=null;n&&(c=a.route.ErrorBoundary?i.createElement(a.route.ErrorBoundary,null):a.route.errorElement?a.route.errorElement:i.createElement(C,null));let l=t.concat(r.slice(0,s+1)),u=()=>{let t=e;return f?t=c:a.route.Component?t=i.createElement(a.route.Component,null):a.route.element&&(t=a.route.element),i.createElement(O,{match:a,routeContext:{outlet:e,matches:l},children:t})};return n&&(a.route.ErrorBoundary||a.route.errorElement||0===s)?i.createElement(x,{location:n.location,component:c,error:f,children:u(),routeContext:{outlet:null,matches:l}}):u()}),null)}var R,I;function N(e){let t=i.useContext(p);return t||(0,a.J0)(!1),t}function B(e){let t=function(e){let t=i.useContext(y);return t||(0,a.J0)(!1),t}(),n=t.matches[t.matches.length-1];return n.route.id||(0,a.J0)(!1),n.route.id}!function(e){e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator"}(R||(R={})),function(e){e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(I||(I={}));function j(e){let{to:t,replace:n,state:r,relative:o}=e;w()||(0,a.J0)(!1);let s=i.useContext(p),f=_();return i.useEffect((()=>{s&&"idle"!==s.navigation.state||f(t,{replace:n,state:r,relative:o})})),null}function D(e){(0,a.J0)(!1)}function L(e){let{basename:t="/",children:n=null,location:r,navigationType:o=a.aU.Pop,navigator:s,static:f=!1}=e;w()&&(0,a.J0)(!1);let c=t.replace(/^\/*/,"/"),l=i.useMemo((()=>({basename:c,navigator:s,static:f})),[c,s,f]);"string"===typeof r&&(r=(0,a.cP)(r));let{pathname:u="/",search:d="",hash:p="",state:y=null,key:m="default"}=r,g=i.useMemo((()=>{let e=(0,a.Zn)(u,c);return null==e?null:{location:{pathname:e,search:d,hash:p,state:y,key:m},navigationType:o}}),[c,u,d,p,y,m,o]);return null==g?null:i.createElement(h.Provider,{value:l},i.createElement(b.Provider,{children:n,value:g}))}function M(e){let{children:t,location:n}=e,r=i.useContext(d);return function(e,t){w()||(0,a.J0)(!1);let{navigator:n}=i.useContext(h),r=i.useContext(p),{matches:o}=i.useContext(y),s=o[o.length-1],f=s?s.params:{},c=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let l,u=E();if(t){var d;let e="string"===typeof t?(0,a.cP)(t):t;"/"===c||(null==(d=e.pathname)?void 0:d.startsWith(c))||(0,a.J0)(!1),l=e}else l=u;let m=l.pathname||"/",v="/"===c?m:m.slice(c.length)||"/",A=(0,a.fp)(e,{pathname:v}),P=S(A&&A.map((e=>Object.assign({},e,{params:Object.assign({},f,e.params),pathname:(0,a.RQ)([c,n.encodeLocation?n.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:(0,a.RQ)([c,n.encodeLocation?n.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),o,r||void 0);return t&&P?i.createElement(b.Provider,{value:{location:g({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:a.aU.Pop}},P):P}(r&&!t?r.router.routes:z(t),n)}var U;!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(U||(U={}));new Promise((()=>{}));class F extends i.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:n}=this.props,r=null,a=U.pending;if(n instanceof Promise)if(this.state.error){U.error;let e=this.state.error;Promise.reject().catch((()=>{})),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_error",{get:()=>e})}else n._tracked?(n,void 0!==r._error?U.error:void 0!==r._data?U.success:U.pending):(U.pending,Object.defineProperty(n,"_tracked",{get:()=>!0}),n.then((e=>Object.defineProperty(n,"_data",{get:()=>e})),(e=>Object.defineProperty(n,"_error",{get:()=>e}))));else U.success,Promise.resolve(),Object.defineProperty(r,"_tracked",{get:()=>!0}),Object.defineProperty(r,"_data",{get:()=>n});if(a===U.error&&r._error instanceof AbortedDeferredError)throw neverSettledPromise;if(a===U.error&&!t)throw r._error;if(a===U.error)return React.createElement(AwaitContext.Provider,{value:r,children:t});if(a===U.success)return React.createElement(AwaitContext.Provider,{value:r,children:e});throw r}}function z(e,t){void 0===t&&(t=[]);let n=[];return i.Children.forEach(e,((e,r)=>{if(!i.isValidElement(e))return;let o=[...t,r];if(e.type===i.Fragment)return void n.push.apply(n,z(e.props.children,o));e.type!==D&&(0,a.J0)(!1),e.props.index&&e.props.children&&(0,a.J0)(!1);let s={id:e.props.id||o.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(s.children=z(e.props.children,o)),n.push(s)})),n}},95545:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=n(72791).createContext(null)},66374:(e,t,n)=>{"use strict";var r=n(72791),a=Symbol.for("react.element"),i=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,i={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)o.call(t,r)&&!f.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:a,type:e,key:c,ref:l,props:i,_owner:s.current}}t.Fragment=i,t.jsx=c,t.jsxs=c},59117:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),f=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,y={};function m(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}function g(){}function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=m.prototype;var w=v.prototype=new g;w.constructor=v,b(w,m.prototype),w.isPureReactComponent=!0;var E=Array.isArray,A=Object.prototype.hasOwnProperty,P={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,r){var a,i={},o=null,s=null;if(null!=t)for(a in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)A.call(t,a)&&!_.hasOwnProperty(a)&&(i[a]=t[a]);var f=arguments.length-2;if(1===f)i.children=r;else if(1<f){for(var c=Array(f),l=0;l<f;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(a in f=e.defaultProps)void 0===i[a]&&(i[a]=f[a]);return{$$typeof:n,type:e,key:o,ref:s,props:i,_owner:P.current}}function k(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function x(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,a,i,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var f=!1;if(null===e)f=!0;else switch(s){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case n:case r:f=!0}}if(f)return o=o(f=e),e=""===i?"."+x(f,0):i,E(o)?(a="",null!=e&&(a=e.replace(C,"$&/")+"/"),O(o,t,a,"",(function(e){return e}))):null!=o&&(k(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,a+(!o.key||f&&f.key===o.key?"":(""+o.key).replace(C,"$&/")+"/")+e)),t.push(o)),1;if(f=0,i=""===i?".":i+":",E(e))for(var c=0;c<e.length;c++){var l=i+x(s=e[c],c);f+=O(s,t,a,l,o)}else if(l=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof l)for(e=l.call(e),c=0;!(s=e.next()).done;)f+=O(s=s.value,t,a,l=i+x(s,c++),o);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return f}function S(e,t,n){if(null==e)return e;var r=[],a=0;return O(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function R(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var I={current:null},N={transition:null},B={ReactCurrentDispatcher:I,ReactCurrentBatchConfig:N,ReactCurrentOwner:P};t.Children={map:S,forEach:function(e,t,n){S(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return S(e,(function(){t++})),t},toArray:function(e){return S(e,(function(e){return e}))||[]},only:function(e){if(!k(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=m,t.Fragment=a,t.Profiler=o,t.PureComponent=v,t.StrictMode=i,t.Suspense=l,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=b({},e.props),i=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=P.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var f=e.type.defaultProps;for(c in t)A.call(t,c)&&!_.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==f?f[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=r;else if(1<c){f=Array(c);for(var l=0;l<c;l++)f[l]=arguments[l+2];a.children=f}return{$$typeof:n,type:e.type,key:i,ref:o,props:a,_owner:s}},t.createContext=function(e){return(e={$$typeof:f,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=k,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:R}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return I.current.useCallback(e,t)},t.useContext=function(e){return I.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return I.current.useDeferredValue(e)},t.useEffect=function(e,t){return I.current.useEffect(e,t)},t.useId=function(){return I.current.useId()},t.useImperativeHandle=function(e,t,n){return I.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return I.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return I.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return I.current.useMemo(e,t)},t.useReducer=function(e,t,n){return I.current.useReducer(e,t,n)},t.useRef=function(e){return I.current.useRef(e)},t.useState=function(e){return I.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return I.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return I.current.useTransition()},t.version="18.2.0"},72791:(e,t,n)=>{"use strict";e.exports=n(59117)},80184:(e,t,n)=>{"use strict";e.exports=n(66374)},36813:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<i(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,f=e[s],c=s+1,l=e[c];if(0>i(f,n))c<a&&0>i(l,f)?(e[r]=l,e[c]=n,r=c):(e[r]=f,e[s]=n,r=s);else{if(!(c<a&&0>i(l,n)))break e;e[r]=l,e[c]=n,r=c}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,f=s.now();t.unstable_now=function(){return s.now()-f}}var c=[],l=[],u=1,d=null,p=3,h=!1,b=!1,y=!1,m="function"===typeof setTimeout?setTimeout:null,g="function"===typeof clearTimeout?clearTimeout:null,v="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(l);null!==t;){if(null===t.callback)a(l);else{if(!(t.startTime<=e))break;a(l),t.sortIndex=t.expirationTime,n(c,t)}t=r(l)}}function E(e){if(y=!1,w(e),!b)if(null!==r(c))b=!0,N(A);else{var t=r(l);null!==t&&B(E,t.startTime-e)}}function A(e,n){b=!1,y&&(y=!1,g(k),k=-1),h=!0;var i=p;try{for(w(n),d=r(c);null!==d&&(!(d.expirationTime>n)||e&&!O());){var o=d.callback;if("function"===typeof o){d.callback=null,p=d.priorityLevel;var s=o(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?d.callback=s:d===r(c)&&a(c),w(n)}else a(c);d=r(c)}if(null!==d)var f=!0;else{var u=r(l);null!==u&&B(E,u.startTime-n),f=!1}return f}finally{d=null,p=i,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var P,_=!1,T=null,k=-1,C=5,x=-1;function O(){return!(t.unstable_now()-x<C)}function S(){if(null!==T){var e=t.unstable_now();x=e;var n=!0;try{n=T(!0,e)}finally{n?P():(_=!1,T=null)}}else _=!1}if("function"===typeof v)P=function(){v(S)};else if("undefined"!==typeof MessageChannel){var R=new MessageChannel,I=R.port2;R.port1.onmessage=S,P=function(){I.postMessage(null)}}else P=function(){m(S,0)};function N(e){T=e,_||(_=!0,P())}function B(e,n){k=m((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){b||h||(b=!0,N(A))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,a,i){var o=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?o+i:o:i=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:u++,callback:a,priorityLevel:e,startTime:i,expirationTime:s=i+s,sortIndex:-1},i>o?(e.sortIndex=i,n(l,e),null===r(c)&&e===r(l)&&(y?(g(k),k=-1):y=!0,B(E,i-o))):(e.sortIndex=s,n(c,e),b||h||(b=!0,N(A))),e},t.unstable_shouldYield=O,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},45296:(e,t,n)=>{"use strict";e.exports=n(36813)},79613:e=>{e.exports=function(e,t,n,r){var a=n?n.call(r,e,t):void 0;if(void 0!==a)return!!a;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),f=0;f<i.length;f++){var c=i[f];if(!s(c))return!1;var l=e[c],u=t[c];if(!1===(a=n?n.call(r,l,u,c):void 0)||void 0===a&&l!==u)return!1}return!0}},1338:function(e,t,n){var r;!function(a,i){"use strict";var o="function",s="undefined",f="object",c="string",l="major",u="model",d="name",p="type",h="vendor",b="version",y="architecture",m="console",g="mobile",v="tablet",w="smarttv",E="wearable",A="embedded",P="Amazon",_="Apple",T="ASUS",k="BlackBerry",C="Browser",x="Chrome",O="Firefox",S="Google",R="Huawei",I="LG",N="Microsoft",B="Motorola",j="Opera",D="Samsung",L="Sharp",M="Sony",U="Xiaomi",F="Zebra",z="Facebook",$="Chromium OS",G="Mac OS",H=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},W=function(e,t){return typeof e===c&&-1!==V(t).indexOf(V(e))},V=function(e){return e.toLowerCase()},q=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},K=function(e,t){for(var n,r,a,s,c,l,u=0;u<t.length&&!c;){var d=t[u],p=t[u+1];for(n=r=0;n<d.length&&!c&&d[n];)if(c=d[n++].exec(e))for(a=0;a<p.length;a++)l=c[++r],typeof(s=p[a])===f&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):i:this[s[0]]=l?s[1].call(this,l,s[2]):i:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):i):this[s]=l||i;u+=2}},Z=function(e,t){for(var n in t)if(typeof t[n]===f&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(W(t[n][r],e))return"?"===n?i:n}else if(W(t[n],e))return"?"===n?i:n;return e},J={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,b],[/opios[\/ ]+([\w\.]+)/i],[b,[d,j+" Mini"]],[/\bopr\/([\w\.]+)/i],[b,[d,j]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[d,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(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,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,b],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[d,"UC"+C]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[d,"Smart Lenovo "+C]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+C],b],[/\bfocus\/([\w\.]+)/i],[b,[d,O+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[d,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[d,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[d,"MIUI "+C]],[/fxios\/([-\w\.]+)/i],[b,[d,O]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+C]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+C],b],[/samsungbrowser\/([\w\.]+)/i],[b,[d,D+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],b],[/metasr[\/ ]?([\d\.]+)/i],[b,[d,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[d,b],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,z],b],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[d,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[d,x+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,x+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[d,"Android "+C]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[b,Z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[d,O+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[d,b],[/(cobalt)\/([\w\.]+)/i],[d,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,V]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/windows (ce|mobile); ppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[y,/ower/,"",V]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[y,V]]],device:[[/\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],[u,[h,D],[p,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[h,D],[p,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[h,_],[p,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[h,_],[p,v]],[/(macintosh);/i],[u,[h,_]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[h,L],[p,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[h,R],[p,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[h,R],[p,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[h,U],[p,g]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[h,U],[p,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[h,"OPPO"],[p,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[h,"Vivo"],[p,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[h,"Realme"],[p,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[h,B],[p,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[h,B],[p,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[h,I],[p,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[h,I],[p,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[h,"Lenovo"],[p,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[h,"Nokia"],[p,g]],[/(pixel c)\b/i],[u,[h,S],[p,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[h,S],[p,g]],[/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],[u,[h,M],[p,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[h,M],[p,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[h,"OnePlus"],[p,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[h,P],[p,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[h,P],[p,g]],[/(playbook);[-\w\),; ]+(rim)/i],[u,h,[p,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[h,k],[p,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[h,T],[p,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[h,T],[p,g]],[/(nexus 9)/i],[u,[h,"HTC"],[p,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[u,/_/g," "],[p,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[h,"Acer"],[p,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[h,"Meizu"],[p,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[h,"Ulefone"],[p,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,u,[p,g]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,u,[p,v]],[/(surface duo)/i],[u,[h,N],[p,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[h,"Fairphone"],[p,g]],[/(u304aa)/i],[u,[h,"AT&T"],[p,g]],[/\bsie-(\w*)/i],[u,[h,"Siemens"],[p,g]],[/\b(rct\w+) b/i],[u,[h,"RCA"],[p,v]],[/\b(venue[\d ]{2,7}) b/i],[u,[h,"Dell"],[p,v]],[/\b(q(?:mv|ta)\w+) b/i],[u,[h,"Verizon"],[p,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[h,"Barnes & Noble"],[p,v]],[/\b(tm\d{3}\w+) b/i],[u,[h,"NuVision"],[p,v]],[/\b(k88) b/i],[u,[h,"ZTE"],[p,v]],[/\b(nx\d{3}j) b/i],[u,[h,"ZTE"],[p,g]],[/\b(gen\d{3}) b.+49h/i],[u,[h,"Swiss"],[p,g]],[/\b(zur\d{3}) b/i],[u,[h,"Swiss"],[p,v]],[/\b((zeki)?tb.*\b) b/i],[u,[h,"Zeki"],[p,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],u,[p,v]],[/\b(ns-?\w{0,9}) b/i],[u,[h,"Insignia"],[p,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[h,"NextBook"],[p,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],u,[p,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],u,[p,g]],[/\b(ph-1) /i],[u,[h,"Essential"],[p,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[h,"Envizen"],[p,v]],[/\b(trio[-\w\. ]+) b/i],[u,[h,"MachSpeed"],[p,v]],[/\btu_(1491) b/i],[u,[h,"Rotor"],[p,v]],[/(shield[\w ]+) b/i],[u,[h,"Nvidia"],[p,v]],[/(sprint) (\w+)/i],[h,u,[p,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[h,N],[p,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[h,F],[p,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[h,F],[p,g]],[/smart-tv.+(samsung)/i],[h,[p,w]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[h,D],[p,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,I],[p,w]],[/(apple) ?tv/i],[h,[u,_+" TV"],[p,w]],[/crkey/i],[[u,x+"cast"],[h,S],[p,w]],[/droid.+aft(\w+)( bui|\))/i],[u,[h,P],[p,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[h,L],[p,w]],[/(bravia[\w ]+)( bui|\))/i],[u,[h,M],[p,w]],[/(mitv-\w{5}) bui/i],[u,[h,U],[p,w]],[/Hbbtv.*(technisat) (.*);/i],[h,u,[p,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,q],[u,q],[p,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,u,[p,m]],[/droid.+; (shield) bui/i],[u,[h,"Nvidia"],[p,m]],[/(playstation [345portablevi]+)/i],[u,[h,M],[p,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[h,N],[p,m]],[/((pebble))app/i],[h,u,[p,E]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[h,_],[p,E]],[/droid.+; (glass) \d/i],[u,[h,S],[p,E]],[/droid.+; (wt63?0{2,3})\)/i],[u,[h,F],[p,E]],[/(quest( 2| pro)?)/i],[u,[h,z],[p,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[p,A]],[/(aeobc)\b/i],[u,[h,P],[p,A]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[p,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[p,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,g]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,b],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[d,[b,Z,J]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,Z,J],[d,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,G],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,b],[/\(bb(10);/i],[b,[d,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[d,O+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[d,x+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,$],b],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([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,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,b],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,b]]},Q=function(e,t){if(typeof e===f&&(t=e,e=i),!(this instanceof Q))return new Q(e,t).getResult();var n=typeof a!==s&&a.navigator?a.navigator:i,r=e||(n&&n.userAgent?n.userAgent:""),m=n&&n.userAgentData?n.userAgentData:i,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(Y,t):Y,E=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[d]=i,t[b]=i,K.call(t,r,w.browser),t[l]=typeof(e=t[b])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:i,E&&n&&n.brave&&typeof n.brave.isBrave==o&&(t[d]="Brave"),t},this.getCPU=function(){var e={};return e[y]=i,K.call(e,r,w.cpu),e},this.getDevice=function(){var e={};return e[h]=i,e[u]=i,e[p]=i,K.call(e,r,w.device),E&&!e[p]&&m&&m.mobile&&(e[p]=g),E&&"Macintosh"==e[u]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[u]="iPad",e[p]=v),e},this.getEngine=function(){var e={};return e[d]=i,e[b]=i,K.call(e,r,w.engine),e},this.getOS=function(){var e={};return e[d]=i,e[b]=i,K.call(e,r,w.os),E&&!e[d]&&m&&"Unknown"!=m.platform&&(e[d]=m.platform.replace(/chrome os/i,$).replace(/macos/i,G)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>500?q(e,500):e,this},this.setUA(r),this};Q.VERSION="1.0.37",Q.BROWSER=H([d,b,l]),Q.CPU=H([y]),Q.DEVICE=H([u,h,p,m,g,w,v,E,A]),Q.ENGINE=Q.OS=H([d,b]),typeof t!==s?(e.exports&&(t=e.exports=Q),t.UAParser=Q):n.amdO?(r=function(){return Q}.call(t,n,t,e))===i||(e.exports=r):typeof a!==s&&(a.UAParser=Q);var X=typeof a!==s&&(a.jQuery||a.Zepto);if(X&&!X.ua){var ee=new Q;X.ua=ee.getResult(),X.ua.get=function(){return ee.getUA()},X.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"===typeof window?window:this)},54184:function(e,t,n){var r;!function(a,i){"use strict";var o="function",s="undefined",f="object",c="string",l="major",u="model",d="name",p="type",h="vendor",b="version",y="architecture",m="console",g="mobile",v="tablet",w="smarttv",E="wearable",A="embedded",P="Amazon",_="Apple",T="ASUS",k="BlackBerry",C="Browser",x="Chrome",O="Firefox",S="Google",R="Huawei",I="LG",N="Microsoft",B="Motorola",j="Opera",D="Samsung",L="Sharp",M="Sony",U="Xiaomi",F="Zebra",z="Facebook",$="Chromium OS",G="Mac OS",H=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},W=function(e,t){return typeof e===c&&-1!==V(t).indexOf(V(e))},V=function(e){return e.toLowerCase()},q=function(e,t){if(typeof e===c)return e=e.replace(/^\s\s*/,""),typeof t===s?e:e.substring(0,500)},K=function(e,t){for(var n,r,a,s,c,l,u=0;u<t.length&&!c;){var d=t[u],p=t[u+1];for(n=r=0;n<d.length&&!c&&d[n];)if(c=d[n++].exec(e))for(a=0;a<p.length;a++)l=c[++r],typeof(s=p[a])===f&&s.length>0?2===s.length?typeof s[1]==o?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:3===s.length?typeof s[1]!==o||s[1].exec&&s[1].test?this[s[0]]=l?l.replace(s[1],s[2]):i:this[s[0]]=l?s[1].call(this,l,s[2]):i:4===s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):i):this[s]=l||i;u+=2}},Z=function(e,t){for(var n in t)if(typeof t[n]===f&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(W(t[n][r],e))return"?"===n?i:n}else if(W(t[n],e))return"?"===n?i:n;return e},J={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Y={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[b,[d,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[b,[d,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[d,b],[/opios[\/ ]+([\w\.]+)/i],[b,[d,j+" Mini"]],[/\bopr\/([\w\.]+)/i],[b,[d,j]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[b,[d,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(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,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[d,b],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[b,[d,"UC"+C]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[b,[d,"WeChat"]],[/konqueror\/([\w\.]+)/i],[b,[d,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[b,[d,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[b,[d,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[b,[d,"Smart Lenovo "+C]],[/(avast|avg)\/([\w\.]+)/i],[[d,/(.+)/,"$1 Secure "+C],b],[/\bfocus\/([\w\.]+)/i],[b,[d,O+" Focus"]],[/\bopt\/([\w\.]+)/i],[b,[d,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[b,[d,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[b,[d,"Dolphin"]],[/coast\/([\w\.]+)/i],[b,[d,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[b,[d,"MIUI "+C]],[/fxios\/([-\w\.]+)/i],[b,[d,O]],[/\bqihu|(qi?ho?o?|360)browser/i],[[d,"360 "+C]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[d,/(.+)/,"$1 "+C],b],[/samsungbrowser\/([\w\.]+)/i],[b,[d,D+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[d,/_/g," "],b],[/metasr[\/ ]?([\d\.]+)/i],[b,[d,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[d,"Sogou Mobile"],b],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[d,b],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[d],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[d,z],b],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[d,b],[/\bgsa\/([\w\.]+) .*safari\//i],[b,[d,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[b,[d,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[b,[d,x+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[d,x+" WebView"],b],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[b,[d,"Android "+C]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[d,b],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[b,[d,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[b,d],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[d,[b,Z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[d,b],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[d,"Netscape"],b],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[b,[d,O+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[d,b],[/(cobalt)\/([\w\.]+)/i],[d,[b,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,V]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/windows (ce|mobile); ppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[y,/ower/,"",V]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[y,V]]],device:[[/\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],[u,[h,D],[p,v]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[h,D],[p,g]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[u,[h,_],[p,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[h,_],[p,v]],[/(macintosh);/i],[u,[h,_]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[h,L],[p,g]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[h,R],[p,v]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[u,[h,R],[p,g]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[h,U],[p,g]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[h,U],[p,v]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[h,"OPPO"],[p,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[h,"Vivo"],[p,g]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[u,[h,"Realme"],[p,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[h,B],[p,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[h,B],[p,v]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[h,I],[p,v]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[h,I],[p,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[h,"Lenovo"],[p,v]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[h,"Nokia"],[p,g]],[/(pixel c)\b/i],[u,[h,S],[p,v]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[h,S],[p,g]],[/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],[u,[h,M],[p,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[h,M],[p,v]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[h,"OnePlus"],[p,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[h,P],[p,v]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[h,P],[p,g]],[/(playbook);[-\w\),; ]+(rim)/i],[u,h,[p,v]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[h,k],[p,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[h,T],[p,v]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[h,T],[p,g]],[/(nexus 9)/i],[u,[h,"HTC"],[p,v]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[u,/_/g," "],[p,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[h,"Acer"],[p,v]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[h,"Meizu"],[p,g]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[u,[h,"Ulefone"],[p,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,u,[p,g]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,u,[p,v]],[/(surface duo)/i],[u,[h,N],[p,v]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[h,"Fairphone"],[p,g]],[/(u304aa)/i],[u,[h,"AT&T"],[p,g]],[/\bsie-(\w*)/i],[u,[h,"Siemens"],[p,g]],[/\b(rct\w+) b/i],[u,[h,"RCA"],[p,v]],[/\b(venue[\d ]{2,7}) b/i],[u,[h,"Dell"],[p,v]],[/\b(q(?:mv|ta)\w+) b/i],[u,[h,"Verizon"],[p,v]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[h,"Barnes & Noble"],[p,v]],[/\b(tm\d{3}\w+) b/i],[u,[h,"NuVision"],[p,v]],[/\b(k88) b/i],[u,[h,"ZTE"],[p,v]],[/\b(nx\d{3}j) b/i],[u,[h,"ZTE"],[p,g]],[/\b(gen\d{3}) b.+49h/i],[u,[h,"Swiss"],[p,g]],[/\b(zur\d{3}) b/i],[u,[h,"Swiss"],[p,v]],[/\b((zeki)?tb.*\b) b/i],[u,[h,"Zeki"],[p,v]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],u,[p,v]],[/\b(ns-?\w{0,9}) b/i],[u,[h,"Insignia"],[p,v]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[h,"NextBook"],[p,v]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],u,[p,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],u,[p,g]],[/\b(ph-1) /i],[u,[h,"Essential"],[p,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[h,"Envizen"],[p,v]],[/\b(trio[-\w\. ]+) b/i],[u,[h,"MachSpeed"],[p,v]],[/\btu_(1491) b/i],[u,[h,"Rotor"],[p,v]],[/(shield[\w ]+) b/i],[u,[h,"Nvidia"],[p,v]],[/(sprint) (\w+)/i],[h,u,[p,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[h,N],[p,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[h,F],[p,v]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[h,F],[p,g]],[/smart-tv.+(samsung)/i],[h,[p,w]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[h,D],[p,w]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,I],[p,w]],[/(apple) ?tv/i],[h,[u,_+" TV"],[p,w]],[/crkey/i],[[u,x+"cast"],[h,S],[p,w]],[/droid.+aft(\w+)( bui|\))/i],[u,[h,P],[p,w]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[u,[h,L],[p,w]],[/(bravia[\w ]+)( bui|\))/i],[u,[h,M],[p,w]],[/(mitv-\w{5}) bui/i],[u,[h,U],[p,w]],[/Hbbtv.*(technisat) (.*);/i],[h,u,[p,w]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,q],[u,q],[p,w]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[p,w]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,u,[p,m]],[/droid.+; (shield) bui/i],[u,[h,"Nvidia"],[p,m]],[/(playstation [345portablevi]+)/i],[u,[h,M],[p,m]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[h,N],[p,m]],[/((pebble))app/i],[h,u,[p,E]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[u,[h,_],[p,E]],[/droid.+; (glass) \d/i],[u,[h,S],[p,E]],[/droid.+; (wt63?0{2,3})\)/i],[u,[h,F],[p,E]],[/(quest( 2| pro)?)/i],[u,[h,z],[p,E]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[p,A]],[/(aeobc)\b/i],[u,[h,P],[p,A]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[u,[p,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[p,v]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[p,v]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[p,g]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[b,[d,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[b,[d,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[d,b],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[b,d]],os:[[/microsoft (windows) (vista|xp)/i],[d,b],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[d,[b,Z,J]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[b,Z,J],[d,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[b,/_/g,"."],[d,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[d,G],[b,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[b,d],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[d,b],[/\(bb(10);/i],[b,[d,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[b,[d,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[b,[d,O+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[b,[d,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[b,[d,"watchOS"]],[/crkey\/([\d\.]+)/i],[b,[d,x+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[d,$],b],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([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,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[d,b],[/(sunos) ?([\w\.\d]*)/i],[[d,"Solaris"],b],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[d,b]]},Q=function(e,t){if(typeof e===f&&(t=e,e=i),!(this instanceof Q))return new Q(e,t).getResult();var n=typeof a!==s&&a.navigator?a.navigator:i,r=e||(n&&n.userAgent?n.userAgent:""),m=n&&n.userAgentData?n.userAgentData:i,w=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(Y,t):Y,E=n&&n.userAgent==r;return this.getBrowser=function(){var e,t={};return t[d]=i,t[b]=i,K.call(t,r,w.browser),t[l]=typeof(e=t[b])===c?e.replace(/[^\d\.]/g,"").split(".")[0]:i,E&&n&&n.brave&&typeof n.brave.isBrave==o&&(t[d]="Brave"),t},this.getCPU=function(){var e={};return e[y]=i,K.call(e,r,w.cpu),e},this.getDevice=function(){var e={};return e[h]=i,e[u]=i,e[p]=i,K.call(e,r,w.device),E&&!e[p]&&m&&m.mobile&&(e[p]=g),E&&"Macintosh"==e[u]&&n&&typeof n.standalone!==s&&n.maxTouchPoints&&n.maxTouchPoints>2&&(e[u]="iPad",e[p]=v),e},this.getEngine=function(){var e={};return e[d]=i,e[b]=i,K.call(e,r,w.engine),e},this.getOS=function(){var e={};return e[d]=i,e[b]=i,K.call(e,r,w.os),E&&!e[d]&&m&&"Unknown"!=m.platform&&(e[d]=m.platform.replace(/chrome os/i,$).replace(/macos/i,G)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return r},this.setUA=function(e){return r=typeof e===c&&e.length>500?q(e,500):e,this},this.setUA(r),this};Q.VERSION="1.0.37",Q.BROWSER=H([d,b,l]),Q.CPU=H([y]),Q.DEVICE=H([u,h,p,m,g,w,v,E,A]),Q.ENGINE=Q.OS=H([d,b]),typeof t!==s?(e.exports&&(t=e.exports=Q),t.UAParser=Q):n.amdO?(r=function(){return Q}.call(t,n,t,e))===i||(e.exports=r):typeof a!==s&&(a.UAParser=Q);var X=typeof a!==s&&(a.jQuery||a.Zepto);if(X&&!X.ua){var ee=new Q;X.ua=ee.getResult(),X.ua.get=function(){return ee.getUA()},X.ua.set=function(e){ee.setUA(e);var t=ee.getResult();for(var n in t)X.ua[n]=t[n]}}}("object"===typeof window?window:this)},51561:(e,t,n)=>{"use strict";var r=n(72791);var a="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=r.useState,o=r.useEffect,s=r.useLayoutEffect,f=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(r){return!0}}var l="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),a=r[0].inst,l=r[1];return s((function(){a.value=n,a.getSnapshot=t,c(a)&&l({inst:a})}),[e,n,t]),o((function(){return c(a)&&l({inst:a}),e((function(){c(a)&&l({inst:a})}))}),[e]),f(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:l},47595:(e,t,n)=>{"use strict";var r=n(72791),a=n(37248);var i="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=a.useSyncExternalStore,s=r.useRef,f=r.useEffect,c=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var u=s(null);if(null===u.current){var d={hasValue:!1,value:null};u.current=d}else d=u.current;u=c((function(){function e(e){if(!f){if(f=!0,o=e,e=r(e),void 0!==a&&d.hasValue){var t=d.value;if(a(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return void 0!==a&&a(t,n)?t:(o=e,s=n)}var o,s,f=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,a]);var p=o(e,u[0],u[1]);return f((function(){d.hasValue=!0,d.value=p}),[p]),l(p),p}},37248:(e,t,n)=>{"use strict";e.exports=n(51561)},30327:(e,t,n)=>{"use strict";e.exports=n(47595)},74303:(e,t,n)=>{"use strict";function r(e){return"string"===typeof e?{address:e,type:"json-rpc"}:e}n.d(t,{T:()=>r})},15869:(e,t,n)=>{"use strict";n.d(t,{r:()=>w});var r=n(65388),a=n(95397);class i extends a.G{constructor(e){let{data:t}=e;super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidMetadataError"})}}class o extends a.G{constructor(e){let{reason:t}=e;super(`ENS NFT avatar URI is invalid. ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarInvalidNftUriError"})}}class s extends a.G{constructor(e){let{uri:t}=e;super(`Unable to resolve ENS avatar URI "${t}". The URI may be malformed, invalid, or does not respond with a valid image.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUriResolutionError"})}}class f extends a.G{constructor(e){let{namespace:t}=e;super(`ENS NFT avatar namespace "${t}" is not supported. Must be "erc721" or "erc1155".`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EnsAvatarUnsupportedNamespaceError"})}}const c=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,l=/^(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>\/.*)?$/,u=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,d=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;function p(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function h(e){let{uri:t,gatewayUrls:n}=e;const r=u.test(t);if(r)return{uri:t,isOnChain:!0,isEncoded:r};const a=p(null===n||void 0===n?void 0:n.ipfs,"https://ipfs.io"),i=p(null===n||void 0===n?void 0:n.arweave,"https://arweave.net"),o=t.match(c),{protocol:f,subpath:h,target:b,subtarget:y=""}=(null===o||void 0===o?void 0:o.groups)||{},m="ipns:/"===f||"ipns/"===h,g="ipfs:/"===f||"ipfs/"===h||l.test(t);if(t.startsWith("http")&&!m&&!g){let e=t;return null!==n&&void 0!==n&&n.arweave&&(e=t.replace(/https:\/\/arweave.net/g,null===n||void 0===n?void 0:n.arweave)),{uri:e,isOnChain:!1,isEncoded:!1}}if((m||g)&&b)return{uri:`${a}/${m?"ipns":"ipfs"}/${b}${y}`,isOnChain:!1,isEncoded:!1};if("ar:/"===f&&b)return{uri:`${i}/${b}${y||""}`,isOnChain:!1,isEncoded:!1};let v=t.replace(d,"");if(v.startsWith("<svg")&&(v=`data:image/svg+xml;base64,${btoa(v)}`),v.startsWith("data:")||v.startsWith("{"))return{uri:v,isOnChain:!0,isEncoded:!1};throw new s({uri:t})}function b(e){if("object"!==typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new i({data:e});return e.image||e.image_url||e.image_data}async function y(e){let{gatewayUrls:t,uri:n}=e;const{uri:r,isOnChain:a}=h({uri:n,gatewayUrls:t});if(a)return r;const i=await async function(e){try{const t=await fetch(e,{method:"HEAD"});if(200===t.status){const e=t.headers.get("content-type");return null===e||void 0===e?void 0:e.startsWith("image/")}return!1}catch(t){return("object"!==typeof t||"undefined"===typeof t.response)&&!!globalThis.hasOwnProperty("Image")&&new Promise((t=>{const n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=e}))}}(r);if(i)return r;throw new s({uri:n})}async function m(e,t){let{gatewayUrls:n,record:a}=t;return/eip155:/i.test(a)?async function(e,t){let{gatewayUrls:n,record:a}=t;const i=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));const[n,r,a]=t.split("/"),[i,s]=n.split(":"),[f,c]=r.split(":");if(!i||"eip155"!==i.toLowerCase())throw new o({reason:"Only EIP-155 supported"});if(!s)throw new o({reason:"Chain ID not found"});if(!c)throw new o({reason:"Contract address not found"});if(!a)throw new o({reason:"Token ID not found"});if(!f)throw new o({reason:"ERC namespace not found"});return{chainID:parseInt(s),namespace:f.toLowerCase(),contractAddress:c,tokenID:a}}(a),c=await async function(e,t){let{nft:n}=t;if("erc721"===n.namespace)return(0,r.L)(e,{address:n.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(n.tokenID)]});if("erc1155"===n.namespace)return(0,r.L)(e,{address:n.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(n.tokenID)]});throw new f({namespace:n.namespace})}(e,{nft:i}),{uri:l,isOnChain:u,isEncoded:d}=h({uri:c,gatewayUrls:n});if(u&&(l.includes("data:application/json;base64,")||l.startsWith("{"))){const e=d?atob(l.replace("data:application/json;base64,","")):l;return y({uri:b(JSON.parse(e)),gatewayUrls:n})}let p=i.tokenID;"erc1155"===i.namespace&&(p=p.replace("0x","").padStart(64,"0"));return async function(e){let{gatewayUrls:t,uri:n}=e;try{const e=await fetch(n).then((e=>e.json()));return await y({gatewayUrls:t,uri:b(e)})}catch{throw new s({uri:n})}}({gatewayUrls:n,uri:l.replace(/(?:0x)?{id}/,p)})}(e,{gatewayUrls:n,record:a}):y({uri:a,gatewayUrls:n})}var g=n(52838),v=n(53531);async function w(e,t){let{blockNumber:n,blockTag:r,assetGatewayUrls:a,name:i,gatewayUrls:o,strict:s,universalResolverAddress:f}=t;const c=await(0,g.s)(e,v.g,"getEnsText")({blockNumber:n,blockTag:r,key:"avatar",name:i,universalResolverAddress:f,gatewayUrls:o,strict:s});if(!c)return null;try{return await m(e,{record:c,gatewayUrls:a})}catch{return null}}},20402:(e,t,n)=>{"use strict";n.d(t,{w:()=>l});var r=n(43294),a=n(64352),i=n(71386),o=n(66751),s=n(67044),f=n(52838),c=n(65388);async function l(e,t){let{address:n,blockNumber:l,blockTag:u,gatewayUrls:d,strict:p,universalResolverAddress:h}=t,b=h;if(!b){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");b=(0,a.L)({blockNumber:l,chain:e.chain,contract:"ensUniversalResolver"})}const y=`${n.toLowerCase().substring(2)}.addr.reverse`;try{const t={address:b,abi:r.du,functionName:"reverse",args:[(0,i.NC)((0,s.T)(y))],blockNumber:l,blockTag:u},a=(0,f.s)(e,c.L,"readContract"),[o,p]=d?await a({...t,args:[...t.args,d]}):await a(t);return n.toLowerCase()!==p.toLowerCase()?null:o}catch(m){if(p)throw m;if((0,o.c)(m,"reverse"))return null;throw m}}},53531:(e,t,n)=>{"use strict";n.d(t,{g:()=>p});var r=n(43294),a=n(45604),i=n(73184),o=n(64352),s=n(71386),f=n(66751),c=n(46782),l=n(67044),u=n(52838),d=n(65388);async function p(e,t){let{blockNumber:n,blockTag:p,name:h,key:b,gatewayUrls:y,strict:m,universalResolverAddress:g}=t,v=g;if(!v){if(!e.chain)throw new Error("client chain not configured. universalResolverAddress is required.");v=(0,o.L)({blockNumber:n,chain:e.chain,contract:"ensUniversalResolver"})}try{const t={address:v,abi:r.k3,functionName:"resolve",args:[(0,s.NC)((0,l.T)(h)),(0,i.R)({abi:r.nZ,functionName:"text",args:[(0,c.V)(h),b]})],blockNumber:n,blockTag:p},o=(0,u.s)(e,d.L,"readContract"),f=y?await o({...t,args:[...t.args,y]}):await o(t);if("0x"===f[0])return null;const m=(0,a.k)({abi:r.nZ,functionName:"text",data:f[0]});return""===m?null:m}catch(w){if(m)throw w;if((0,f.c)(w,"resolve"))return null;throw w}}},96696:(e,t,n)=>{"use strict";n.d(t,{RE:()=>P});var r=n(74303),a=n(43294);const i="0x82ad56cb";var o=n(75899),s=n(95397),f=n(48944),c=n(86011),l=n(70514),u=n(94951),d=n(45604),p=n(73184),h=n(11406),b=n(64352),y=n(71386),m=n(14846),g=n(88173);var v=n(37190),w=n(86307),E=n(10943),A=n(94347);async function P(e,t){var o;const{account:l=e.account,batch:u=Boolean(null===(o=e.batch)||void 0===o?void 0:o.multicall),blockNumber:h,blockTag:P="latest",accessList:_,blobs:T,data:C,gas:x,gasPrice:O,maxFeePerBlobGas:S,maxFeePerGas:R,maxPriorityFeePerGas:I,nonce:N,to:B,value:j,stateOverride:D,...L}=t,M=l?(0,r.T)(l):void 0;try{var U,F,z;(0,A.F)(t);const n=(h?(0,y.eC)(h):void 0)||P,r=k(D),o=null===(U=e.chain)||void 0===U||null===(F=U.formatters)||void 0===F||null===(z=F.transactionRequest)||void 0===z?void 0:z.format,s=(o||w.tG)({...(0,v.K)(L,{format:o}),from:null===M||void 0===M?void 0:M.address,accessList:_,blobs:T,data:C,gas:x,gasPrice:O,maxFeePerBlobGas:S,maxFeePerGas:R,maxPriorityFeePerGas:I,nonce:N,to:B,value:j});if(u&&function(e){let{request:t}=e;const{data:n,to:r,...a}=t;return!!n&&(!n.startsWith(i)&&(!!r&&!(Object.values(a).filter((e=>"undefined"!==typeof e)).length>0)))}({request:s})&&!r)try{return await async function(e,t){var n;const{batchSize:r=1024,wait:i=0}="object"===typeof(null===(n=e.batch)||void 0===n?void 0:n.multicall)?e.batch.multicall:{},{blockNumber:o,blockTag:s="latest",data:l,multicallAddress:u,to:h}=t;let m=u;if(!m){if(!e.chain)throw new f.pZ;m=(0,b.L)({blockNumber:o,chain:e.chain,contract:"multicall3"})}const g=o?(0,y.eC)(o):void 0,v=g||s,{schedule:w}=(0,E.S)({id:`${e.uid}.${v}`,wait:i,shouldSplitBatch(e){const t=e.reduce(((e,t)=>{let{data:n}=t;return e+(n.length-2)}),0);return t>2*r},fn:async t=>{const n=t.map((e=>({allowFailure:!0,callData:e.data,target:e.to}))),r=(0,p.R)({abi:a.F8,args:[n],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{data:r,to:m},v]});return(0,d.k)({abi:a.F8,args:[n],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:A,success:P}]=await w({data:l,to:h});if(!P)throw new c.VQ({data:A});return"0x"===A?{data:void 0}:{data:A}}(e,{...s,blockNumber:h,blockTag:P})}catch($){if(!($ instanceof f.pZ)&&!($ instanceof f.mm))throw $}const l=await e.request({method:"eth_call",params:r?[s,n,r]:[s,n]});return"0x"===l?{data:void 0}:{data:l}}catch($){const r=function(e){var t;if(!(e instanceof s.G))return;const n=e.walk();return"object"===typeof(null===n||void 0===n?void 0:n.data)?null===(t=n.data)||void 0===t?void 0:t.data:n.data}($),{offchainLookup:a,offchainLookupSignature:i}=await n.e(2848).then(n.bind(n,32848));if(!1!==e.ccipRead&&(null===r||void 0===r?void 0:r.slice(0,10))===i&&B)return{data:await a(e,{data:r,to:B})};throw function(e,t){let{docsPath:n,...r}=t;const a=(()=>{const t=(0,g.k)(e,r);return t instanceof m.cj?e:t})();return new c.cg(a,{docsPath:n,...r})}($,{...t,account:M,chain:e.chain})}}function _(e){if(e&&0!==e.length)return e.reduce(((e,t)=>{let{slot:n,value:r}=t;if(66!==n.length)throw new l.W_({size:n.length,targetSize:66,type:"hex"});if(66!==r.length)throw new l.W_({size:r.length,targetSize:66,type:"hex"});return e[n]=r,e}),{})}function T(e){const{balance:t,nonce:n,state:r,stateDiff:a,code:i}=e,o={};if(void 0!==i&&(o.code=i),void 0!==t&&(o.balance=(0,y.eC)(t)),void 0!==n&&(o.nonce=(0,y.eC)(n)),void 0!==r&&(o.state=_(r)),void 0!==a){if(o.state)throw new u.Z8;o.stateDiff=_(a)}return o}function k(e){if(!e)return;const t={};for(const{address:n,...r}of e){if(!(0,h.U)(n,{strict:!1}))throw new o.b({address:n});if(t[n])throw new u.Nc({address:n});t[n]=T(r)}return t}},62501:(e,t,n)=>{"use strict";n.d(t,{C:()=>c,X:()=>f});var r=n(83692),a=n(52838),i=n(11488),o=n(75619),s=n(17846);async function f(e,t){return c(e,t)}async function c(e,t){var n,f;const{block:c,chain:l=e.chain,request:u,type:d="eip1559"}=t||{},p=await(async()=>{var t,n;return"function"===typeof(null===l||void 0===l||null===(t=l.fees)||void 0===t?void 0:t.baseFeeMultiplier)?l.fees.baseFeeMultiplier({block:c,client:e,request:u}):(null===l||void 0===l||null===(n=l.fees)||void 0===n?void 0:n.baseFeeMultiplier)??1.2})();if(p<1)throw new r.Fz;const h=10**((null===(n=p.toString().split(".")[1])||void 0===n?void 0:n.length)??0),b=e=>e*BigInt(Math.ceil(p*h))/BigInt(h),y=c||await(0,a.s)(e,o.Q,"getBlock")({});if("function"===typeof(null===l||void 0===l||null===(f=l.fees)||void 0===f?void 0:f.estimateFeesPerGas)){const t=await l.fees.estimateFeesPerGas({block:c,client:e,multiply:b,request:u,type:d});if(null!==t)return t}if("eip1559"===d){if("bigint"!==typeof y.baseFeePerGas)throw new r.e5;const t="bigint"===typeof(null===u||void 0===u?void 0:u.maxPriorityFeePerGas)?u.maxPriorityFeePerGas:await(0,i.h)(e,{block:y,chain:l,request:u}),n=b(y.baseFeePerGas);return{maxFeePerGas:(null===u||void 0===u?void 0:u.maxFeePerGas)??n+t,maxPriorityFeePerGas:t}}return{gasPrice:(null===u||void 0===u?void 0:u.gasPrice)??b(await(0,a.s)(e,s.o,"getGasPrice")({}))}}},70173:(e,t,n)=>{"use strict";n.d(t,{Q:()=>y});var r=n(74303),a=n(71386),i=n(69101),o=n(49015),s=n(95397),f=n(53917);class c extends s.G{constructor(e,t){var n;let{account:r,docsPath:a,chain:s,data:c,gas:l,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,to:b,value:y}=t;const m=(0,f.xr)({from:null===r||void 0===r?void 0:r.address,to:b,value:"undefined"!==typeof y&&`${(0,i.d)(y)} ${(null===s||void 0===s||null===(n=s.nativeCurrency)||void 0===n?void 0:n.symbol)||"ETH"}`,data:c,gas:l,gasPrice:"undefined"!==typeof u&&`${(0,o.o)(u)} gwei`,maxFeePerGas:"undefined"!==typeof d&&`${(0,o.o)(d)} gwei`,maxPriorityFeePerGas:"undefined"!==typeof p&&`${(0,o.o)(p)} gwei`,nonce:h});super(e.shortMessage,{cause:e,docsPath:a,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EstimateGasExecutionError"}),this.cause=e}}var l=n(14846),u=n(88173);var d=n(37190),p=n(86307),h=n(94347),b=n(66385);async function y(e,t){const n=t.account??e.account,i=n?(0,r.T)(n):void 0;try{var o,s,f;const{accessList:n,blobs:r,blobVersionedHashes:c,blockNumber:l,blockTag:u,data:y,gas:m,gasPrice:g,maxFeePerBlobGas:v,maxFeePerGas:w,maxPriorityFeePerGas:E,nonce:A,to:P,value:_,...T}=await(0,b.Z)(e,{...t,parameters:"local"===(null===i||void 0===i?void 0:i.type)?void 0:["blobVersionedHashes"]}),k=(l?(0,a.eC)(l):void 0)||u;(0,h.F)(t);const C=null===(o=e.chain)||void 0===o||null===(s=o.formatters)||void 0===s||null===(f=s.transactionRequest)||void 0===f?void 0:f.format,x=(C||p.tG)({...(0,d.K)(T,{format:C}),from:null===i||void 0===i?void 0:i.address,accessList:n,blobs:r,blobVersionedHashes:c,data:y,gas:m,gasPrice:g,maxFeePerBlobGas:v,maxFeePerGas:w,maxPriorityFeePerGas:E,nonce:A,to:P,value:_}),O=await e.request({method:"eth_estimateGas",params:k?[x,k]:[x]});return BigInt(O)}catch(y){throw function(e,t){let{docsPath:n,...r}=t;const a=(()=>{const t=(0,u.k)(e,r);return t instanceof l.cj?e:t})();return new c(a,{docsPath:n,...r})}(y,{...t,account:i,chain:e.chain})}}},11488:(e,t,n)=>{"use strict";n.d(t,{_:()=>f,h:()=>c});var r=n(83692),a=n(58657),i=n(52838),o=n(75619),s=n(17846);async function f(e,t){return c(e,t)}async function c(e,t){var n,f,c;const{block:l,chain:u=e.chain,request:d}=t||{};if("function"===typeof(null===u||void 0===u||null===(n=u.fees)||void 0===n?void 0:n.defaultPriorityFee)){const t=l||await(0,i.s)(e,o.Q,"getBlock")({});return u.fees.defaultPriorityFee({block:t,client:e,request:d})}if("undefined"!==typeof(null===u||void 0===u||null===(f=u.fees)||void 0===f?void 0:f.defaultPriorityFee))return null===u||void 0===u||null===(c=u.fees)||void 0===c?void 0:c.defaultPriorityFee;try{const t=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,a.y_)(t)}catch{const[t,n]=await Promise.all([l?Promise.resolve(l):(0,i.s)(e,o.Q,"getBlock")({}),(0,i.s)(e,s.o,"getGasPrice")({})]);if("bigint"!==typeof t.baseFeePerGas)throw new r.e5;const a=n-t.baseFeePerGas;return a<0n?0n:a}}},52971:(e,t,n)=>{"use strict";n.d(t,{s:()=>a});var r=n(71386);async function a(e,t){let{address:n,blockNumber:a,blockTag:i="latest"}=t;const o=a?(0,r.eC)(a):void 0,s=await e.request({method:"eth_getBalance",params:[n,o||i]});return BigInt(s)}},75619:(e,t,n)=>{"use strict";n.d(t,{Q:()=>o});var r=n(862),a=n(71386),i=n(16521);async function o(e){var t,n,o;let{blockHash:s,blockNumber:f,blockTag:c,includeTransactions:l}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const u=c??"latest",d=l??!1,p=void 0!==f?(0,a.eC)(f):void 0;let h=null;if(h=s?await e.request({method:"eth_getBlockByHash",params:[s,d]}):await e.request({method:"eth_getBlockByNumber",params:[p||u,d]}),!h)throw new r.f({blockHash:s,blockNumber:f});return((null===(t=e.chain)||void 0===t||null===(n=t.formatters)||void 0===n||null===(o=n.block)||void 0===o?void 0:o.format)||i.Z)(h)}},4099:(e,t,n)=>{"use strict";n.d(t,{z:()=>s});const r=new Map,a=new Map;async function i(e,t){let{cacheKey:n,cacheTime:i=1/0}=t;const o=function(e){const t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:n=>t.set(e,n)}),n=t(e,r),i=t(e,a);return{clear:()=>{n.clear(),i.clear()},promise:n,response:i}}(n),s=o.response.get();if(s&&i>0){if((new Date).getTime()-s.created.getTime()<i)return s.data}let f=o.promise.get();f||(f=e(),o.promise.set(f));try{const e=await f;return o.response.set({created:new Date,data:e}),e}finally{o.promise.clear()}}const o=e=>`blockNumber.${e}`;async function s(e){let{cacheTime:t=e.cacheTime}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await i((()=>e.request({method:"eth_blockNumber"})),{cacheKey:o(e.uid),cacheTime:t});return BigInt(n)}},12950:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(58657);async function a(e){const t=await e.request({method:"eth_chainId"});return(0,r.ly)(t)}},17846:(e,t,n)=>{"use strict";async function r(e){const t=await e.request({method:"eth_gasPrice"});return BigInt(t)}n.d(t,{o:()=>r})},77034:(e,t,n)=>{"use strict";n.d(t,{K:()=>i});var r=n(58657),a=n(71386);async function i(e,t){let{address:n,blockTag:i="latest",blockNumber:o}=t;const s=await e.request({method:"eth_getTransactionCount",params:[n,o?(0,a.eC)(o):i]});return(0,r.ly)(s)}},42450:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(43294),a=n(38475),i=n(95397),o=n(86011),s=n(45604),f=n(73184),c=n(64352),l=n(60158),u=n(52838),d=n(65388);async function p(e,t){var n;const{allowFailure:p=!0,batchSize:h,blockNumber:b,blockTag:y,multicallAddress:m,stateOverride:g}=t,v=t.contracts,w=h??("object"===typeof(null===(n=e.batch)||void 0===n?void 0:n.multicall)&&e.batch.multicall.batchSize||1024);let E=m;if(!E){if(!e.chain)throw new Error("client chain not configured. multicallAddress is required.");E=(0,c.L)({blockNumber:b,chain:e.chain,contract:"multicall3"})}const A=[[]];let P=0,_=0;for(let r=0;r<v.length;r++){const{abi:e,address:t,args:n,functionName:a}=v[r];try{const r=(0,f.R)({abi:e,args:n,functionName:a});_+=(r.length-2)/2,w>0&&_>w&&A[P].length>0&&(P++,_=(r.length-2)/2,A[P]=[]),A[P]=[...A[P],{allowFailure:!0,callData:r,target:t}]}catch(C){const r=(0,l.S)(C,{abi:e,address:t,args:n,docsPath:"/docs/contract/multicall",functionName:a});if(!p)throw r;A[P]=[...A[P],{allowFailure:!0,callData:"0x",target:t}]}}const T=await Promise.allSettled(A.map((t=>(0,u.s)(e,d.L,"readContract")({abi:r.F8,address:E,args:[t],blockNumber:b,blockTag:y,functionName:"aggregate3",stateOverride:g})))),k=[];for(let r=0;r<T.length;r++){const e=T[r];if("rejected"===e.status){if(!p)throw e.reason;for(let t=0;t<A[r].length;t++)k.push({status:"failure",error:e.reason,result:void 0});continue}const t=e.value;for(let n=0;n<t.length;n++){const{returnData:e,success:i}=t[n],{callData:f}=A[r][n],{abi:c,address:u,functionName:d,args:h}=v[k.length];try{if("0x"===f)throw new a.wb;if(!i)throw new o.VQ({data:e});const t=(0,s.k)({abi:c,args:h,data:e,functionName:d});k.push(p?{result:t,status:"success"}:t)}catch(C){const e=(0,l.S)(C,{abi:c,address:u,args:h,docsPath:"/docs/contract/multicall",functionName:d});if(!p)throw e;k.push({error:e,result:void 0,status:"failure"})}}}if(k.length!==v.length)throw new i.G("multicall results mismatch");return k}},65388:(e,t,n)=>{"use strict";n.d(t,{L:()=>f});var r=n(45604),a=n(73184),i=n(60158),o=n(52838),s=n(96696);async function f(e,t){const{abi:n,address:f,args:c,functionName:l,...u}=t,d=(0,a.R)({abi:n,args:c,functionName:l});try{const{data:t}=await(0,o.s)(e,s.RE,"call")({...u,data:d,to:f});return(0,r.k)({abi:n,args:c,functionName:l,data:t||"0x"})}catch(p){throw(0,i.S)(p,{abi:n,address:f,args:c,docsPath:"/docs/contract/readContract",functionName:l})}}},83875:(e,t,n)=>{"use strict";n.d(t,{q:()=>c});var r=n(58657),a=n(52838),i=n(49162),o=n(11685),s=n(1275),f=n(4099);function c(e,t){let{emitOnBegin:n=!1,emitMissed:c=!1,onBlockNumber:l,onError:u,poll:d,pollingInterval:p=e.pollingInterval}=t;let h;return("undefined"!==typeof d?d:"webSocket"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].config.type))?(()=>{const t=(0,s.P)(["watchBlockNumber",e.uid,n,c,p]);return(0,i.N7)(t,{onBlockNumber:l,onError:u},(t=>(0,o.$)((async()=>{try{const n=await(0,a.s)(e,f.z,"getBlockNumber")({cacheTime:0});if(h){if(n===h)return;if(n-h>1&&c)for(let e=h+1n;e<n;e++)t.onBlockNumber(e,h),h=e}(!h||n>h)&&(t.onBlockNumber(n,h),h=n)}catch(r){var n;null===(n=t.onError)||void 0===n||n.call(t,r)}}),{emitOnBegin:n,interval:p})))})():(()=>{const t=(0,s.P)(["watchBlockNumber",e.uid,n,c]);return(0,i.N7)(t,{onBlockNumber:l,onError:u},(t=>{let n=!0,a=()=>n=!1;return(async()=>{try{const i=(()=>{if("fallback"===e.transport.type){const t=e.transport.transports.find((e=>"webSocket"===e.config.type));return t?t.value:e.transport}return e.transport})(),{unsubscribe:o}=await i.subscribe({params:["newHeads"],onData(e){var a;if(!n)return;const i=(0,r.y_)(null===(a=e.result)||void 0===a?void 0:a.number);t.onBlockNumber(i,h),h=i},onError(e){var n;null===(n=t.onError)||void 0===n||n.call(t,e)}});a=o,n||a()}catch(i){null===u||void 0===u||u(i)}})(),()=>a()}))})()}},66385:(e,t,n)=>{"use strict";n.d(t,{Q:()=>S,Z:()=>R});var r=n(74303),a=n(62501),i=n(70173),o=n(75619),s=n(77034),f=n(83692),c=n(14950),l=n(71386);function u(e){const{kzg:t}=e,n=e.to??("string"===typeof e.blobs[0]?"hex":"bytes"),r="string"===typeof e.blobs[0]?e.blobs.map((e=>(0,c.nr)(e))):e.blobs,a=[];for(const i of r)a.push(Uint8Array.from(t.blobToKzgCommitment(i)));return"bytes"===n?a:a.map((e=>(0,l.ci)(e)))}function d(e){const{kzg:t}=e,n=e.to??("string"===typeof e.blobs[0]?"hex":"bytes"),r="string"===typeof e.blobs[0]?e.blobs.map((e=>(0,c.nr)(e))):e.blobs,a="string"===typeof e.commitments[0]?e.commitments.map((e=>(0,c.nr)(e))):e.commitments,i=[];for(let o=0;o<r.length;o++){const e=r[o],n=a[o];i.push(Uint8Array.from(t.computeBlobKzgProof(e,n)))}return"bytes"===n?i:i.map((e=>(0,l.ci)(e)))}var p=n(58533),h=n(49141);function b(e){const{commitment:t,version:n=1}=e,r=e.to??("string"===typeof t?"hex":"bytes"),a=function(e,t){const n=t||"hex",r=(0,p.J)((0,h.v)(e,{strict:!1})?(0,c.O0)(e):e);return"bytes"===n?r:(0,l.NC)(r)}(t,"bytes");return a.set([n],0),"bytes"===r?a:(0,l.ci)(a)}const y=32,m=4096,g=y*m,v=6*g-1-1*m*6;var w=n(95397);class E extends w.G{constructor(e){let{maxSize:t,size:n}=e;super("Blob size is too large.",{metaMessages:[`Max: ${t} bytes`,`Given: ${n} bytes`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlobSizeTooLargeError"})}}class A extends w.G{constructor(){super("Blob data must not be empty."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"EmptyBlobError"})}}var P=n(76231),_=n(46880);function T(e){const{data:t,kzg:n,to:r}=e,a=e.blobs??function(e){const t=e.to??("string"===typeof e.data?"hex":"bytes"),n="string"===typeof e.data?(0,c.nr)(e.data):e.data,r=(0,_.d)(n);if(!r)throw new A;if(r>v)throw new E({maxSize:v,size:r});const a=[];let i=!0,o=0;for(;i;){const e=(0,P.q)(new Uint8Array(g));let t=0;for(;t<m;){const r=n.slice(o,o+(y-1));if(e.pushByte(0),e.pushBytes(r),r.length<31){e.pushByte(128),i=!1;break}t++,o+=31}a.push(e)}return"bytes"===t?a.map((e=>e.bytes)):a.map((e=>(0,l.ci)(e.bytes)))}({data:t,to:r}),i=e.commitments??u({blobs:a,kzg:n,to:r}),o=e.proofs??d({blobs:a,commitments:i,kzg:n,to:r}),s=[];for(let f=0;f<a.length;f++)s.push({blob:a[f],commitment:i[f],proof:o[f]});return s}var k=n(52838),C=n(94347),x=n(53917);var O=n(12950);const S=["blobVersionedHashes","chainId","fees","gas","nonce","type"];async function R(e,t){const{account:n=e.account,blobs:c,chain:l,chainId:p,gas:h,kzg:y,nonce:m,parameters:g=S,type:v}=t,w=n?(0,r.T)(n):void 0,E={...t,...w?{from:null===w||void 0===w?void 0:w.address}:{}};let A;async function P(){return A||(A=await(0,k.s)(e,o.Q,"getBlock")({blockTag:"latest"}),A)}if((g.includes("blobVersionedHashes")||g.includes("sidecars"))&&c&&y){const e=u({blobs:c,kzg:y});if(g.includes("blobVersionedHashes")){const t=function(e){const{commitments:t,version:n}=e,r=e.to??("string"===typeof t[0]?"hex":"bytes"),a=[];for(const i of t)a.push(b({commitment:i,to:r,version:n}));return a}({commitments:e,to:"hex"});E.blobVersionedHashes=t}if(g.includes("sidecars")){const t=T({blobs:c,commitments:e,proofs:d({blobs:c,commitments:e,kzg:y}),to:"hex"});E.sidecars=t}}if(g.includes("chainId")&&(E.chainId=l?l.id:"undefined"!==typeof p?p:await(0,k.s)(e,O.L,"getChainId")({})),g.includes("nonce")&&"undefined"===typeof m&&w&&(E.nonce=await(0,k.s)(e,s.K,"getTransactionCount")({address:w.address,blockTag:"pending"})),(g.includes("fees")||g.includes("type"))&&"undefined"===typeof v)try{E.type=function(e){if(e.type)return e.type;if("undefined"!==typeof e.blobs||"undefined"!==typeof e.blobVersionedHashes||"undefined"!==typeof e.maxFeePerBlobGas||"undefined"!==typeof e.sidecars)return"eip4844";if("undefined"!==typeof e.maxFeePerGas||"undefined"!==typeof e.maxPriorityFeePerGas)return"eip1559";if("undefined"!==typeof e.gasPrice)return"undefined"!==typeof e.accessList?"eip2930":"legacy";throw new x.j3({transaction:e})}(E)}catch{const e=await P();E.type="bigint"===typeof(null===e||void 0===e?void 0:e.baseFeePerGas)?"eip1559":"legacy"}if(g.includes("fees"))if("legacy"!==E.type&&"eip2930"!==E.type){if("undefined"===typeof E.maxFeePerGas||"undefined"===typeof E.maxPriorityFeePerGas){const n=await P(),{maxFeePerGas:r,maxPriorityFeePerGas:i}=await(0,a.C)(e,{block:n,chain:l,request:E});if("undefined"===typeof t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<i)throw new f.ld({maxPriorityFeePerGas:i});E.maxPriorityFeePerGas=i,E.maxFeePerGas=r}}else{if("undefined"!==typeof t.maxFeePerGas||"undefined"!==typeof t.maxPriorityFeePerGas)throw new f.e5;const n=await P(),{gasPrice:r}=await(0,a.C)(e,{block:n,chain:l,request:E,type:"legacy"});E.gasPrice=r}return g.includes("gas")&&"undefined"===typeof h&&(E.gas=await(0,k.s)(e,i.Q,"estimateGas")({...E,account:w?{address:w.address,type:"json-rpc"}:void 0})),(0,C.F)(E),delete E.parameters,E}},4534:(e,t,n)=>{"use strict";async function r(e,t){let{serializedTransaction:n}=t;return e.request({method:"eth_sendRawTransaction",params:[n]},{retryCount:0})}n.d(t,{p:()=>r})},49822:(e,t,n)=>{"use strict";n.d(t,{l:()=>o});var r=n(74303),a=n(75618),i=n(71386);async function o(e,t){let{account:n=e.account,message:o}=t;if(!n)throw new a.o({docsPath:"/docs/actions/wallet/signMessage"});const s=(0,r.T)(n);if("local"===s.type)return s.signMessage({message:o});const f="string"===typeof o?(0,i.$G)(o):o.raw instanceof Uint8Array?(0,i.NC)(o.raw):o.raw;return e.request({method:"personal_sign",params:[f,s.address]},{retryCount:0})}},85223:(e,t,n)=>{"use strict";n.d(t,{R:()=>r});const r=(0,n(31476).a)({id:1,name:"Ethereum",nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://cloudflare-eth.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://etherscan.io",apiUrl:"https://api.etherscan.io/api"}},contracts:{ensRegistry:{address:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"},ensUniversalResolver:{address:"0xce01f8eee7E479C928F8919abD53E553a36CeF67",blockCreated:19258213},multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:14353601}}})},30802:(e,t,n)=>{"use strict";n.d(t,{e:()=>f});var r=n(74303);const a=256;let i,o=a;function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:11;if(!i||o+e>2*a){i="",o=0;for(let e=0;e<a;e++)i+=(256+256*Math.random()|0).toString(16).substring(1)}return i.substring(o,o+++e)}function f(e){const{batch:t,cacheTime:n=e.pollingInterval??4e3,ccipRead:a,key:i="base",name:o="Base Client",pollingInterval:f=4e3,type:c="base"}=e,l=e.chain,u=e.account?(0,r.T)(e.account):void 0,{config:d,request:p,value:h}=e.transport({chain:l,pollingInterval:f}),b={account:u,batch:t,cacheTime:n,ccipRead:a,chain:l,key:i,name:o,pollingInterval:f,request:p,transport:{...d,...h},type:c,uid:s()};return Object.assign(b,{extend:function e(t){return n=>{const r=n(t);for(const e in b)delete r[e];const a={...t,...r};return Object.assign(a,{extend:e(a)})}}(b)})}},23730:(e,t,n)=>{"use strict";n.d(t,{q:()=>f});var r=n(95397),a=n(62890),i=n(74490),o=n(78651);function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return async function(n){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{retryDelay:f=150,retryCount:c=3}={...t,...s};return(0,o.J)((async()=>{try{return await e(n)}catch(t){const e=t;switch(e.code){case i.s7.code:throw new i.s7(e);case i.B.code:throw new i.B(e);case i.LX.code:throw new i.LX(e);case i.nY.code:throw new i.nY(e);case i.XS.code:throw new i.XS(e);case i.yR.code:throw new i.yR(e);case i.Og.code:throw new i.Og(e);case i.pT.code:throw new i.pT(e);case i.KB.code:throw new i.KB(e);case i.gS.code:throw new i.gS(e);case i.Pv.code:throw new i.Pv(e);case i.GD.code:throw new i.GD(e);case i.ab.code:throw new i.ab(e);case i.PE.code:throw new i.PE(e);case i.Ts.code:throw new i.Ts(e);case i.u5.code:throw new i.u5(e);case i.I0.code:throw new i.I0(e);case i.x3.code:throw new i.x3(e);case 5e3:throw new i.ab(e);default:if(t instanceof r.G)throw t;throw new i.ir(e)}}}),{delay:e=>{let{count:t,error:n}=e;if(n&&n instanceof a.Gg){var r;const e=null===n||void 0===n||null===(r=n.headers)||void 0===r?void 0:r.get("Retry-After");if(null!==e&&void 0!==e&&e.match(/\d/))return 1e3*parseInt(e)}return~~(1<<t)*f},retryCount:c,shouldRetry:e=>{let{error:t}=e;return function(e){if("code"in e&&"number"===typeof e.code)return-1===e.code||(e.code===i.Pv.code||e.code===i.XS.code);if(e instanceof a.Gg&&e.status)return 403===e.status||(408===e.status||(413===e.status||(429===e.status||(500===e.status||(502===e.status||(503===e.status||504===e.status))))));return!0}(t)}})}}function f(e,t){let{key:n,name:r,request:a,retryCount:i=3,retryDelay:o=150,timeout:f,type:c}=e;return{config:{key:n,name:r,request:a,retryCount:i,retryDelay:o,timeout:f,type:c},request:s(a,{retryCount:i,retryDelay:o}),value:t}}},43294:(e,t,n)=>{"use strict";n.d(t,{$o:()=>c,F8:()=>r,X$:()=>f,du:()=>o,k3:()=>i,nZ:()=>s});const r=[{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"}],a=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],i=[...a,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",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"}]}],o=[...a,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],s=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],f=[{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"}]}],c=[{inputs:[{internalType:"address",name:"_signer",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"bytes",name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"}]},19514:(e,t,n)=>{"use strict";n.d(t,{$:()=>r,Up:()=>a,hZ:()=>i});const r={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."},a={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},i={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},10664:(e,t,n)=>{"use strict";n.d(t,{Bd:()=>i,Zn:()=>a,ez:()=>r});const r={gwei:9,wei:18},a={ether:-9,wei:9},i={ether:-18,gwei:-9}},38475:(e,t,n)=>{"use strict";n.d(t,{CI:()=>_,FM:()=>h,Gy:()=>A,KY:()=>w,M4:()=>u,MX:()=>g,S4:()=>v,SM:()=>E,cO:()=>s,dh:()=>P,fM:()=>o,fs:()=>d,gr:()=>l,hn:()=>T,lC:()=>b,mv:()=>y,wM:()=>k,wb:()=>c,xB:()=>f,xL:()=>m,yP:()=>p});var r=n(62934),a=n(46880),i=n(95397);class o extends i.G{constructor(e){let{docsPath:t}=e;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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorNotFoundError"})}}class s extends i.G{constructor(e){let{docsPath:t}=e;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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiConstructorParamsNotFoundError"})}}class f extends i.G{constructor(e){let{data:t,params:n,size:a}=e;super([`Data size of ${a} bytes is too small for given parameters.`].join("\n"),{metaMessages:[`Params: (${(0,r.h)(n,{includeName:!0})})`,`Data:   ${t} (${a} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=n,this.size=a}}class c extends i.G{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiDecodingZeroDataError"})}}class l extends i.G{constructor(e){let{expectedLength:t,givenLength:n,type:r}=e;super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${n}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingArrayLengthMismatchError"})}}class u extends i.G{constructor(e){let{expectedSize:t,value:n}=e;super(`Size of bytes "${n}" (bytes${(0,a.d)(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingBytesSizeMismatchError"})}}class d extends i.G{constructor(e){let{expectedLength:t,givenLength:n}=e;super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${n}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEncodingLengthMismatchError"})}}class p extends i.G{constructor(e,t){let{docsPath:n}=t;super([`Encoded error signature "${e}" 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=${e}.`].join("\n"),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class h extends i.G{constructor(e){let{docsPath:t}=e;super("Cannot extract event signature from empty topics.",{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureEmptyTopicsError"})}}class b extends i.G{constructor(e,t){let{docsPath:n}=t;super([`Encoded event signature "${e}" 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=${e}.`].join("\n"),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventSignatureNotFoundError"})}}class y extends i.G{constructor(e){let{docsPath:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super([`Event ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiEventNotFoundError"})}}class m extends i.G{constructor(e){let{docsPath:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join("\n"),{docsPath:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionNotFoundError"})}}class g extends i.G{constructor(e,t){let{docsPath:n}=t;super([`Function "${e}" 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:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiFunctionOutputsNotFoundError"})}}class v extends i.G{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,r.t)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,r.t)(t.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:"AbiItemAmbiguityError"})}}class w extends i.G{constructor(e){let{expectedSize:t,givenSize:n}=e;super(`Expected bytes${t}, got bytes${n}.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BytesSizeMismatchError"})}}class E extends i.G{constructor(e){let{abiItem:t,data:n,params:a,size:i}=e;super([`Data size of ${i} bytes is too small for non-indexed event parameters.`].join("\n"),{metaMessages:[`Params: (${(0,r.h)(a,{includeName:!0})})`,`Data:   ${n} (${i} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=n,this.params=a,this.size=i}}class A extends i.G{constructor(e){let{abiItem:t,param:n}=e;super([`Expected a topic for indexed event parameter${n.name?` "${n.name}"`:""} on event "${(0,r.t)(t,{includeName:!0})}".`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=t}}class P extends i.G{constructor(e,t){let{docsPath:n}=t;super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiEncodingType"})}}class _ extends i.G{constructor(e,t){let{docsPath:n}=t;super([`Type "${e}" is not a valid decoding type.`,"Please provide a valid ABI type."].join("\n"),{docsPath:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiDecodingType"})}}class T extends i.G{constructor(e){super([`Value "${e}" is not a valid array.`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidArrayError"})}}class k extends i.G{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidDefinitionTypeError"})}}},75618:(e,t,n)=>{"use strict";n.d(t,{o:()=>a});var r=n(95397);class a extends r.G{constructor(){let{docsPath:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(["Could not find an Account to execute with this Action.","Please provide an Account with the `account` argument on the Action, or by supplying an `account` to the WalletClient."].join("\n"),{docsPath:e,docsSlug:"account"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountNotFoundError"})}}},75899:(e,t,n)=>{"use strict";n.d(t,{b:()=>a});var r=n(95397);class a extends r.G{constructor(e){let{address:t}=e;super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}},95397:(e,t,n)=>{"use strict";n.d(t,{G:()=>a});var r=n(37536);class a extends Error{constructor(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(),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:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:(0,r.bo)()});const i=n.cause instanceof a?n.cause.details:null!==(t=n.cause)&&void 0!==t&&t.message?n.cause.message:n.details,o=n.cause instanceof a&&n.cause.docsPath||n.docsPath;this.message=[e||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: https://viem.sh${o}${n.docsSlug?`#${n.docsSlug}`:""}`]:[],...i?[`Details: ${i}`]:[],`Version: ${this.version}`].join("\n"),n.cause&&(this.cause=n.cause),this.details=i,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=e}walk(e){return i(this,e)}}function i(e,t){return null!==t&&void 0!==t&&t(e)?e:e&&"object"===typeof e&&"cause"in e?i(e.cause,t):t?null:e}},862:(e,t,n)=>{"use strict";n.d(t,{f:()=>a});var r=n(95397);class a extends r.G{constructor(e){let{blockHash:t,blockNumber:n}=e,r="Block";t&&(r=`Block at hash "${t}"`),n&&(r=`Block at number "${n}"`),super(`${r} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BlockNotFoundError"})}}},48944:(e,t,n)=>{"use strict";n.d(t,{Bk:()=>o,Yl:()=>i,mm:()=>a,pZ:()=>s});var r=n(95397);class a extends r.G{constructor(e){let{blockNumber:t,chain:n,contract:r}=e;super(`Chain "${n.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${r.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}class i extends r.G{constructor(e){let{chain:t,currentChainId:n}=e;super(`The current chain of the wallet (id: ${n}) does not match the target chain for the transaction (id: ${t.id} \u2013 ${t.name}).`,{metaMessages:[`Current Chain ID:  ${n}`,`Expected Chain ID: ${t.id} \u2013 ${t.name}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainMismatchError"})}}class o extends r.G{constructor(){super(["No chain was provided to the request.","Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainNotFoundError"})}}class s extends r.G{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}},86011:(e,t,n)=>{"use strict";n.d(t,{cg:()=>m,uq:()=>g,Lu:()=>v,Dk:()=>w,VQ:()=>E});var r=n(74303),a=n(19514),i=n(35299),o=n(62934),s=n(1275);function f(e){let{abiItem:t,args:n,includeFunctionName:r=!0,includeName:a=!1}=e;if("name"in t&&"inputs"in t&&t.inputs)return`${r?t.name:""}(${t.inputs.map(((e,t)=>`${a&&e.name?`${e.name}: `:""}${"object"===typeof n[t]?(0,s.P)(n[t]):n[t]}`)).join(", ")})`}var c=n(81345),l=n(69101),u=n(49015),d=n(38475),p=n(95397),h=n(94951),b=n(53917),y=n(37536);class m extends p.G{constructor(e,t){var n;let{account:a,docsPath:i,chain:o,data:s,gas:f,gasPrice:c,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:y,to:m,value:g,stateOverride:v}=t;const w=a?(0,r.T)(a):void 0;let E=(0,b.xr)({from:null===w||void 0===w?void 0:w.address,to:m,value:"undefined"!==typeof g&&`${(0,l.d)(g)} ${(null===o||void 0===o||null===(n=o.nativeCurrency)||void 0===n?void 0:n.symbol)||"ETH"}`,data:s,gas:f,gasPrice:"undefined"!==typeof c&&`${(0,u.o)(c)} gwei`,maxFeePerGas:"undefined"!==typeof d&&`${(0,u.o)(d)} gwei`,maxPriorityFeePerGas:"undefined"!==typeof p&&`${(0,u.o)(p)} gwei`,nonce:y});v&&(E+=`\n${(0,h.Bj)(v)}`),super(e.shortMessage,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",E].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CallExecutionError"}),this.cause=e}}class g extends p.G{constructor(e,t){let{abi:n,args:r,contractAddress:a,docsPath:i,functionName:s,sender:l}=t;const u=(0,c.mE)({abi:n,args:r,name:s}),d=u?f({abiItem:u,args:r,includeFunctionName:!1,includeName:!1}):void 0,p=u?(0,o.t)(u,{includeName:!0}):void 0,h=(0,b.xr)({address:a&&(0,y.CR)(a),function:p,args:d&&"()"!==d&&`${[...Array((null===s||void 0===s?void 0:s.length)??0).keys()].map((()=>" ")).join("")}${d}`,sender:l});super(e.shortMessage||`An unknown error occurred while executing the contract function "${s}".`,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Contract Call:",h].filter(Boolean)}),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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionExecutionError"}),this.abi=n,this.args=r,this.cause=e,this.contractAddress=a,this.functionName=s,this.sender=l}}class v extends p.G{constructor(e){let t,n,r,s,c,{abi:l,data:u,functionName:p,message:h}=e;if(u&&"0x"!==u)try{n=(0,i.p)({abi:l,data:u});const{abiItem:e,errorName:t,args:c}=n;if("Error"===t)s=c[0];else if("Panic"===t){const[e]=c;s=a.$[e]}else{const n=e?(0,o.t)(e,{includeName:!0}):void 0,a=e&&c?f({abiItem:e,args:c,includeFunctionName:!1,includeName:!1}):void 0;r=[n?`Error: ${n}`:"",a&&"()"!==a?`       ${[...Array((null===t||void 0===t?void 0:t.length)??0).keys()].map((()=>" ")).join("")}${a}`:""]}}catch(b){t=b}else h&&(s=h);t instanceof d.yP&&(c=t.signature,r=[`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(s&&"execution reverted"!==s||c?[`The contract function "${p}" reverted with the following ${c?"signature":"reason"}:`,s||c].join("\n"):`The contract function "${p}" reverted.`,{cause:t,metaMessages:r}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{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=n,this.reason=s,this.signature=c}}class w extends p.G{constructor(e){let{functionName:t}=e;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."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ContractFunctionZeroDataError"})}}class E extends p.G{constructor(e){let{data:t,message:n}=e;super(n||""),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RawContractError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t}}},75823:(e,t,n)=>{"use strict";n.d(t,{KD:()=>o,T_:()=>a,lQ:()=>i});var r=n(95397);class a extends r.G{constructor(e){let{offset:t}=e;super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}}class i extends r.G{constructor(e){let{length:t,position:n}=e;super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}}class o extends r.G{constructor(e){let{count:t,limit:n}=e;super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RecursiveReadLimitExceededError"})}}},70514:(e,t,n)=>{"use strict";n.d(t,{$s:()=>i,W_:()=>o,mV:()=>a});var r=n(95397);class a extends r.G{constructor(e){let{offset:t,position:n,size:r}=e;super(`Slice ${"start"===n?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${r}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class i extends r.G{constructor(e){let{size:t,targetSize:n,type:r}=e;super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}class o extends r.G{constructor(e){let{size:t,targetSize:n,type:r}=e;super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${n} ${r} long, but is ${t} ${r} long.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesLengthError"})}}},15065:(e,t,n)=>{"use strict";n.d(t,{Cd:()=>o,J5:()=>a,M6:()=>s,yr:()=>i});var r=n(95397);class a extends r.G{constructor(e){let{max:t,min:n,signed:r,size:a,value:i}=e;super(`Number "${i}" is not in safe ${a?`${8*a}-bit ${r?"signed":"unsigned"} `:""}integer range ${t?`(${n} to ${t})`:`(above ${n})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class i extends r.G{constructor(e){super(`Bytes value "${e}" is not a valid boolean. 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:"InvalidBytesBooleanError"})}}class o extends r.G{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidHexBooleanError"})}}class s extends r.G{constructor(e){let{givenSize:t,maxSize:n}=e;super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}},83692:(e,t,n)=>{"use strict";n.d(t,{Fz:()=>i,e5:()=>o,ld:()=>s});var r=n(49015),a=n(95397);class i extends a.G{constructor(){super("`baseFeeMultiplier` must be greater than 1."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseFeeScalarError"})}}class o extends a.G{constructor(){super("Chain does not support EIP-1559 fees."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Eip1559FeesNotSupportedError"})}}class s extends a.G{constructor(e){let{maxPriorityFeePerGas:t}=e;super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,r.o)(t)} gwei).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MaxFeePerGasTooLowError"})}}},14846:(e,t,n)=>{"use strict";n.d(t,{C_:()=>u,G$:()=>s,Hh:()=>o,M_:()=>i,WF:()=>d,ZI:()=>f,cj:()=>y,cs:()=>b,dR:()=>p,pZ:()=>h,se:()=>l,vU:()=>c});var r=n(49015),a=n(95397);class i extends a.G{constructor(){var e;let{cause:t,message:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=null===n||void 0===n||null===(e=n.replace("execution reverted: ",""))||void 0===e?void 0:e.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(i,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(i,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class o extends a.G{constructor(){let{cause:e,maxFeePerGas:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(o,"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 s extends a.G{constructor(){let{cause:e,maxFeePerGas:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,r.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(s,"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 f extends a.G{constructor(){let{cause:e,nonce:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class c extends a.G{constructor(){let{cause:e,nonce:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class l extends a.G{constructor(){let{cause:e,nonce:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class u extends a.G{constructor(){let{cause:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:e,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."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class d extends a.G{constructor(){let{cause:e,gas:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class p extends a.G{constructor(){let{cause:e,gas:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class h extends a.G{constructor(e){let{cause:t}=e;super("The transaction type is not supported for this chain.",{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class b extends a.G{constructor(){let{cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super([`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,r.o)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${n?` = ${(0,r.o)(n)} gwei`:""}).`].join("\n"),{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(b,"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 y extends a.G{constructor(e){let{cause:t}=e;super(`An error occurred while executing: ${null===t||void 0===t?void 0:t.shortMessage}`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}},62890:(e,t,n)=>{"use strict";n.d(t,{Gg:()=>o,W5:()=>f,bs:()=>s});var r=n(1275),a=n(95397),i=n(37536);class o extends a.G{constructor(e){let{body:t,details:n,headers:a,status:o,url:s}=e;super("HTTP request failed.",{details:n,metaMessages:[o&&`Status: ${o}`,`URL: ${(0,i.Gr)(s)}`,t&&`Request body: ${(0,r.P)(t)}`].filter(Boolean)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"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=a,this.status=o,this.url=s}}class s extends a.G{constructor(e){let{body:t,error:n,url:a}=e;super("RPC Request failed.",{cause:n,details:n.message,metaMessages:[`URL: ${(0,i.Gr)(a)}`,`Request body: ${(0,r.P)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=n.code}}class f extends a.G{constructor(e){let{body:t,url:n}=e;super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,i.Gr)(n)}`,`Request body: ${(0,r.P)(t)}`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TimeoutError"})}}},74490:(e,t,n)=>{"use strict";n.d(t,{B:()=>f,GD:()=>g,I0:()=>P,KB:()=>b,LX:()=>c,Og:()=>p,PE:()=>w,Pv:()=>m,Ts:()=>E,XS:()=>u,ab:()=>v,gS:()=>y,ir:()=>T,nY:()=>l,pT:()=>h,s7:()=>s,u5:()=>A,x3:()=>_,yR:()=>d});var r=n(95397),a=n(62890);class i extends r.G{constructor(e,t){let{code:n,docsPath:r,metaMessages:i,shortMessage:o}=t;super(o,{cause:e,docsPath:r,metaMessages:i||(null===e||void 0===e?void 0:e.metaMessages)}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=e.name,this.code=e instanceof a.bs?e.code:n??-1}}class o extends i{constructor(e,t){super(e,t),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderRpcError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class s extends i{constructor(e){super(e,{code:s.code,shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ParseRpcError"})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class f extends i{constructor(e){super(e,{code:f.code,shortMessage:"JSON is not a valid request object."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidRequestRpcError"})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class c extends i{constructor(e){super(e,{code:c.code,shortMessage:"The method does not exist / is not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotFoundRpcError"})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class l extends i{constructor(e){super(e,{code:l.code,shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join("\n")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParamsRpcError"})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class u extends i{constructor(e){super(e,{code:u.code,shortMessage:"An internal error was received."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InternalRpcError"})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class d extends i{constructor(e){super(e,{code:d.code,shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join("\n")}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidInputRpcError"})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class p extends i{constructor(e){super(e,{code:p.code,shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class h extends i{constructor(e){super(e,{code:h.code,shortMessage:"Requested resource not available."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceUnavailableRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class b extends i{constructor(e){super(e,{code:b.code,shortMessage:"Transaction creation failed."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionRejectedRpcError"})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class y extends i{constructor(e){super(e,{code:y.code,shortMessage:"Method is not implemented."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"MethodNotSupportedRpcError"})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class m extends i{constructor(e){super(e,{code:m.code,shortMessage:"Request exceeds defined limit."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"LimitExceededRpcError"})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class g extends i{constructor(e){super(e,{code:g.code,shortMessage:"Version of JSON-RPC protocol is not supported."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"JsonRpcVersionUnsupportedError"})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class v extends o{constructor(e){super(e,{code:v.code,shortMessage:"User rejected the request."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UserRejectedRequestError"})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class w extends o{constructor(e){super(e,{code:w.code,shortMessage:"The requested method and/or account has not been authorized by the user."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnauthorizedProviderError"})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class E extends o{constructor(e){super(e,{code:E.code,shortMessage:"The Provider does not support the requested method."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnsupportedProviderMethodError"})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class A extends o{constructor(e){super(e,{code:A.code,shortMessage:"The Provider is disconnected from all chains."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ProviderDisconnectedError"})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class P extends o{constructor(e){super(e,{code:P.code,shortMessage:"The Provider is not connected to the requested chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDisconnectedError"})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class _ extends o{constructor(e){super(e,{code:_.code,shortMessage:"An error occurred when attempting to switch chain."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SwitchChainError"})}}Object.defineProperty(_,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class T extends i{constructor(e){super(e,{shortMessage:"An unknown RPC error occurred."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownRpcError"})}}},94951:(e,t,n)=>{"use strict";n.d(t,{Bj:()=>s,Nc:()=>a,Z8:()=>i});var r=n(95397);class a extends r.G{constructor(e){let{address:t}=e;super(`State for account "${t}" is set multiple times.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AccountStateConflictError"})}}class i extends r.G{constructor(){super("state and stateDiff are set on the same account."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"StateAssignmentConflictError"})}}function o(e){return e.reduce(((e,t)=>{let{slot:n,value:r}=t;return`${e}        ${n}: ${r}\n`}),"")}function s(e){return e.reduce(((e,t)=>{let{address:n,...r}=t,a=`${e}    ${n}:\n`;return r.nonce&&(a+=`      nonce: ${r.nonce}\n`),r.balance&&(a+=`      balance: ${r.balance}\n`),r.code&&(a+=`      code: ${r.code}\n`),r.state&&(a+="      state:\n",a+=o(r.state)),r.stateDiff&&(a+="      stateDiff:\n",a+=o(r.stateDiff)),a}),"  State Override:\n").slice(0,-1)}},53917:(e,t,n)=>{"use strict";n.d(t,{Bh:()=>l,Yb:()=>u,j3:()=>f,mc:()=>d,mk:()=>c,xY:()=>s,xr:()=>o});var r=n(69101),a=n(49015),i=n(95397);function o(e){const t=Object.entries(e).map((e=>{let[t,n]=e;return void 0===n||!1===n?null:[t,n]})).filter(Boolean),n=t.reduce(((e,t)=>{let[n]=t;return Math.max(e,n.length)}),0);return t.map((e=>{let[t,r]=e;return`  ${`${t}:`.padEnd(n+1)}  ${r}`})).join("\n")}class s extends i.G{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")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class f extends i.G{constructor(e){let{transaction:t}=e;super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",o(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","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class c extends i.G{constructor(e,t){var n;let{account:i,docsPath:s,chain:f,data:c,gas:l,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:p,nonce:h,to:b,value:y}=t;const m=o({chain:f&&`${null===f||void 0===f?void 0:f.name} (id: ${null===f||void 0===f?void 0:f.id})`,from:null===i||void 0===i?void 0:i.address,to:b,value:"undefined"!==typeof y&&`${(0,r.d)(y)} ${(null===f||void 0===f||null===(n=f.nativeCurrency)||void 0===n?void 0:n.symbol)||"ETH"}`,data:c,gas:l,gasPrice:"undefined"!==typeof u&&`${(0,a.o)(u)} gwei`,maxFeePerGas:"undefined"!==typeof d&&`${(0,a.o)(d)} gwei`,maxPriorityFeePerGas:"undefined"!==typeof p&&`${(0,a.o)(p)} gwei`,nonce:h});super(e.shortMessage,{cause:e,docsPath:s,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",m].filter(Boolean)}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionExecutionError"}),this.cause=e}}class l extends i.G{constructor(e){let{blockHash:t,blockNumber:n,blockTag:r,hash:a,index:i}=e,o="Transaction";r&&void 0!==i&&(o=`Transaction at block time "${r}" at index "${i}"`),t&&void 0!==i&&(o=`Transaction at block hash "${t}" at index "${i}"`),n&&void 0!==i&&(o=`Transaction at block number "${n}" at index "${i}"`),a&&(o=`Transaction with hash "${a}"`),super(`${o} could not be found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionNotFoundError"})}}class u extends i.G{constructor(e){let{hash:t}=e;super(`Transaction receipt with hash "${t}" could not be found. The Transaction may not be processed on a block yet.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionReceiptNotFoundError"})}}class d extends i.G{constructor(e){let{hash:t}=e;super(`Timed out while waiting for transaction with hash "${t}" to be confirmed.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WaitForTransactionReceiptTimeoutError"})}}},37536:(e,t,n)=>{"use strict";n.d(t,{CR:()=>r,Gr:()=>a,bo:()=>i});const r=e=>e,a=e=>e,i=()=>"viem@2.9.31"},15530:(e,t,n)=>{"use strict";n.d(t,{r:()=>g});var r=n(38475),a=n(86694),i=n(76231),o=n(46880),s=n(80760),f=n(37881),c=n(15065),l=n(58657),u=n(71386);function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"undefined"!==typeof t.size&&(0,l.Yf)(e,{size:t.size});const n=(0,u.ci)(e,t);return(0,l.y_)(n,t)}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if("undefined"!==typeof t.size&&((0,l.Yf)(n,{size:t.size}),n=(0,f.f)(n)),n.length>1||n[0]>1)throw new c.yr(n);return Boolean(n[0])}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"undefined"!==typeof t.size&&(0,l.Yf)(e,{size:t.size});const n=(0,u.ci)(e,t);return(0,l.ly)(n,t)}function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;return"undefined"!==typeof t.size&&((0,l.Yf)(n,{size:t.size}),n=(0,f.f)(n,{dir:"right"})),(new TextDecoder).decode(n)}var y=n(14950),m=n(4451);function g(e,t){const n="string"===typeof t?(0,y.nr)(t):t,a=(0,i.q)(n);if(0===(0,o.d)(n)&&e.length>0)throw new r.wb;if((0,o.d)(t)&&(0,o.d)(t)<32)throw new r.xB({data:"string"===typeof t?t:(0,u.ci)(t),params:e,size:(0,o.d)(t)});let s=0;const f=[];for(let r=0;r<e.length;++r){const t=e[r];a.setPosition(s);const[n,i]=v(a,t,{staticPosition:0});s+=i,f.push(n)}return f}function v(e,t,n){let{staticPosition:i}=n;const o=(0,m.S)(t.type);if(o){const[n,r]=o;return function(e,t,n){let{length:r,staticPosition:a}=n;if(!r){const n=a+h(e.readBytes(E)),r=n+w;e.setPosition(n);const i=h(e.readBytes(w)),o=A(t);let s=0;const f=[];for(let a=0;a<i;++a){e.setPosition(r+(o?32*a:s));const[n,i]=v(e,t,{staticPosition:r});s+=i,f.push(n)}return e.setPosition(a+32),[f,32]}if(A(t)){const n=a+h(e.readBytes(E)),i=[];for(let a=0;a<r;++a){e.setPosition(n+32*a);const[r]=v(e,t,{staticPosition:n});i.push(r)}return e.setPosition(a+32),[i,32]}let i=0;const o=[];for(let s=0;s<r;++s){const[n,r]=v(e,t,{staticPosition:a+i});i+=r,o.push(n)}return[o,i]}(e,{...t,type:r},{length:n,staticPosition:i})}if("tuple"===t.type)return function(e,t,n){let{staticPosition:r}=n;const a=0===t.components.length||t.components.some((e=>{let{name:t}=e;return!t})),i=a?[]:{};let o=0;if(A(t)){const n=r+h(e.readBytes(E));for(let r=0;r<t.components.length;++r){const s=t.components[r];e.setPosition(n+o);const[f,c]=v(e,s,{staticPosition:n});o+=c,i[a?r:null===s||void 0===s?void 0:s.name]=f}return e.setPosition(r+32),[i,32]}for(let s=0;s<t.components.length;++s){const n=t.components[s],[f,c]=v(e,n,{staticPosition:r});i[a?s:null===n||void 0===n?void 0:n.name]=f,o+=c}return[i,o]}(e,t,{staticPosition:i});if("address"===t.type)return function(e){const t=e.readBytes(32);return[(0,a.x)((0,u.ci)((0,s.T4)(t,-20))),32]}(e);if("bool"===t.type)return function(e){return[p(e.readBytes(32),{size:32}),32]}(e);if(t.type.startsWith("bytes"))return function(e,t,n){let{staticPosition:r}=n;const[a,i]=t.type.split("bytes");if(!i){const t=h(e.readBytes(32));e.setPosition(r+t);const n=h(e.readBytes(32));if(0===n)return e.setPosition(r+32),["0x",32];const a=e.readBytes(n);return e.setPosition(r+32),[(0,u.ci)(a),32]}const o=(0,u.ci)(e.readBytes(parseInt(i),32));return[o,32]}(e,t,{staticPosition:i});if(t.type.startsWith("uint")||t.type.startsWith("int"))return function(e,t){const n=t.type.startsWith("int"),r=parseInt(t.type.split("int")[1]||"256"),a=e.readBytes(32);return[r>48?d(a,{signed:n}):h(a,{signed:n}),32]}(e,t);if("string"===t.type)return function(e,t){let{staticPosition:n}=t;const r=h(e.readBytes(32)),a=n+r;e.setPosition(a);const i=h(e.readBytes(32));if(0===i)return e.setPosition(n+32),["",32];const o=e.readBytes(i,32),s=b((0,f.f)(o));return e.setPosition(n+32),[s,32]}(e,{staticPosition:i});throw new r.CI(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const w=32,E=32;function A(e){var t;const{type:n}=e;if("string"===n)return!0;if("bytes"===n)return!0;if(n.endsWith("[]"))return!0;if("tuple"===n)return null===(t=e.components)||void 0===t?void 0:t.some(A);const r=(0,m.S)(e.type);return!(!r||!A({...e,type:r[1]}))}},35299:(e,t,n)=>{"use strict";n.d(t,{p:()=>c});var r=n(19514),a=n(38475),i=n(80760),o=n(73978),s=n(15530),f=n(62934);function c(e){const{abi:t,data:n}=e,c=(0,i.tP)(n,0,4);if("0x"===c)throw new a.wb;const l=[...t||[],r.Up,r.hZ].find((e=>"error"===e.type&&c===(0,o.C)((0,f.t)(e))));if(!l)throw new a.yP(c,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,s.r)(l.inputs,(0,i.tP)(n,4)):void 0,errorName:l.name}}},45604:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var r=n(38475),a=n(15530),i=n(81345);const o="/docs/contract/decodeFunctionResult";function s(e){const{abi:t,args:n,functionName:s,data:f}=e;let c=t[0];if(s){const e=(0,i.mE)({abi:t,args:n,name:s});if(!e)throw new r.xL(s,{docsPath:o});c=e}if("function"!==c.type)throw new r.xL(void 0,{docsPath:o});if(!c.outputs)throw new r.MX(c.name,{docsPath:o});const l=(0,a.r)(c.outputs,f);return l&&l.length>1?l:l&&1===l.length?l[0]:void 0}},4451:(e,t,n)=>{"use strict";n.d(t,{E:()=>d,S:()=>b});var r=n(38475),a=n(75899),i=n(95397),o=n(11406),s=n(91623),f=n(51121),c=n(46880),l=n(80760),u=n(71386);function d(e,t){if(e.length!==t.length)throw new r.fs({expectedLength:e.length,givenLength:t.length});const n=function(e){let{params:t,values:n}=e;const r=[];for(let a=0;a<t.length;a++)r.push(p({param:t[a],value:n[a]}));return r}({params:e,values:t}),a=h(n);return 0===a.length?"0x":a}function p(e){let{param:t,value:n}=e;const d=b(t.type);if(d){const[e,a]=d;return function(e,t){let{length:n,param:a}=t;const i=null===n;if(!Array.isArray(e))throw new r.hn(e);if(!i&&e.length!==n)throw new r.gr({expectedLength:n,givenLength:e.length,type:`${a.type}[${n}]`});let o=!1;const f=[];for(let r=0;r<e.length;r++){const t=p({param:a,value:e[r]});t.dynamic&&(o=!0),f.push(t)}if(i||o){const e=h(f);if(i){const t=(0,u.eC)(f.length,{size:32});return{dynamic:!0,encoded:f.length>0?(0,s.zo)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,s.zo)(f.map((e=>{let{encoded:t}=e;return t})))}}(n,{length:e,param:{...t,type:a}})}if("tuple"===t.type)return function(e,t){let{param:n}=t,r=!1;const a=[];for(let i=0;i<n.components.length;i++){const t=n.components[i],o=p({param:t,value:e[Array.isArray(e)?i:t.name]});a.push(o),o.dynamic&&(r=!0)}return{dynamic:r,encoded:r?h(a):(0,s.zo)(a.map((e=>{let{encoded:t}=e;return t})))}}(n,{param:t});if("address"===t.type)return function(e){if(!(0,o.U)(e))throw new a.b({address:e});return{dynamic:!1,encoded:(0,f.gc)(e.toLowerCase())}}(n);if("bool"===t.type)return function(e){if("boolean"!==typeof e)throw new i.G(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,f.gc)((0,u.C4)(e))}}(n);if(t.type.startsWith("uint")||t.type.startsWith("int")){return function(e,t){let{signed:n}=t;return{dynamic:!1,encoded:(0,u.eC)(e,{size:32,signed:n})}}(n,{signed:t.type.startsWith("int")})}if(t.type.startsWith("bytes"))return function(e,t){let{param:n}=t;const[,a]=n.type.split("bytes"),i=(0,c.d)(e);if(!a){let t=e;return i%32!==0&&(t=(0,f.gc)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,s.zo)([(0,f.gc)((0,u.eC)(i,{size:32})),t])}}if(i!==parseInt(a))throw new r.M4({expectedSize:parseInt(a),value:e});return{dynamic:!1,encoded:(0,f.gc)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type)return function(e){const t=(0,u.$G)(e),n=Math.ceil((0,c.d)(t)/32),r=[];for(let a=0;a<n;a++)r.push((0,f.gc)((0,l.tP)(t,32*a,32*(a+1)),{dir:"right"}));return{dynamic:!0,encoded:(0,s.zo)([(0,f.gc)((0,u.eC)((0,c.d)(t),{size:32})),...r])}}(n);throw new r.dh(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function h(e){let t=0;for(let i=0;i<e.length;i++){const{dynamic:n,encoded:r}=e[i];t+=n?32:(0,c.d)(r)}const n=[],r=[];let a=0;for(let i=0;i<e.length;i++){const{dynamic:o,encoded:s}=e[i];o?(n.push((0,u.eC)(t+a,{size:32})),r.push(s),a+=(0,c.d)(s)):n.push(s)}return(0,s.zo)([...n,...r])}function b(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},76988:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var r=n(38475),a=n(91623),i=n(4451);const o="/docs/contract/encodeDeployData";function s(e){const{abi:t,args:n,bytecode:s}=e;if(!n||0===n.length)return s;const f=t.find((e=>"type"in e&&"constructor"===e.type));if(!f)throw new r.fM({docsPath:o});if(!("inputs"in f))throw new r.cO({docsPath:o});if(!f.inputs||0===f.inputs.length)throw new r.cO({docsPath:o});const c=(0,i.E)(f.inputs,n);return(0,a.SM)([s,c])}},73184:(e,t,n)=>{"use strict";n.d(t,{R:()=>l});var r=n(91623),a=n(4451),i=n(38475),o=n(73978),s=n(62934),f=n(81345);const c="/docs/contract/encodeFunctionData";function l(e){const{args:t}=e,{abi:n,functionName:l}=(()=>{var t;return 1===e.abi.length&&null!==(t=e.functionName)&&void 0!==t&&t.startsWith("0x")?e:function(e){const{abi:t,args:n,functionName:r}=e;let a=t[0];if(r){const e=(0,f.mE)({abi:t,args:n,name:r});if(!e)throw new i.xL(r,{docsPath:c});a=e}if("function"!==a.type)throw new i.xL(void 0,{docsPath:c});return{abi:[a],functionName:(0,o.C)((0,s.t)(a))}}(e)})(),u=n[0],d=l,p="inputs"in u&&u.inputs?(0,a.E)(u.inputs,t??[]):void 0;return(0,r.SM)([d,p??"0x"])}},62934:(e,t,n)=>{"use strict";n.d(t,{h:()=>i,t:()=>a});var r=n(38475);function a(e){let{includeName:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new r.wM(e.type);return`${e.name}(${i(e.inputs,{includeName:t})})`}function i(e){let{includeName:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e?e.map((e=>function(e,t){let{includeName:n}=t;if(e.type.startsWith("tuple"))return`(${i(e.components,{includeName:n})})${e.type.slice(5)}`;return e.type+(n&&e.name?` ${e.name}`:"")}(e,{includeName:t}))).join(t?", ":","):""}},81345:(e,t,n)=>{"use strict";n.d(t,{mE:()=>f});var r=n(38475),a=n(49141),i=n(11406),o=n(86605),s=n(73978);function f(e){const{abi:t,args:n=[],name:i}=e,f=(0,a.v)(i,{strict:!1}),u=t.filter((e=>f?"function"===e.type?(0,s.C)(e)===i:"event"===e.type&&(0,o.n)(e)===i:"name"in e&&e.name===i));if(0===u.length)return;if(1===u.length)return u[0];let d;for(const a of u){if(!("inputs"in a))continue;if(!n||0===n.length){if(!a.inputs||0===a.inputs.length)return a;continue}if(!a.inputs)continue;if(0===a.inputs.length)continue;if(a.inputs.length!==n.length)continue;if(n.every(((e,t)=>{const n="inputs"in a&&a.inputs[t];return!!n&&c(e,n)}))){if(d&&"inputs"in d&&d.inputs){const e=l(a.inputs,d.inputs,n);if(e)throw new r.S4({abiItem:a,type:e[0]},{abiItem:d,type:e[1]})}d=a}}return d||u[0]}function c(e,t){const n=typeof e,r=t.type;switch(r){case"address":return(0,i.U)(e,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:return"tuple"===r&&"components"in t?Object.values(t.components).every(((t,n)=>c(Object.values(e)[n],t))):/^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||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)&&(Array.isArray(e)&&e.every((e=>c(e,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")}))))}}function l(e,t,n){for(const r in e){const a=e[r],o=t[r];if("tuple"===a.type&&"tuple"===o.type&&"components"in a&&"components"in o)return l(a.components,o.components,n[r]);const s=[a.type,o.type];if(!(!s.includes("address")||!s.includes("bytes20"))||(s.includes("address")&&s.includes("string")||!(!s.includes("address")||!s.includes("bytes")))&&(0,i.U)(n[r],{strict:!1}))return s}}},86694:(e,t,n)=>{"use strict";n.d(t,{K:()=>f,x:()=>s});var r=n(75899),a=n(14950),i=n(77941),o=n(11406);function s(e,t){const n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=(0,i.w)((0,a.qX)(n),"bytes"),o=(t?n.substring(`${t}0x`.length):n).split("");for(let a=0;a<40;a+=2)r[a>>1]>>4>=8&&o[a]&&(o[a]=o[a].toUpperCase()),(15&r[a>>1])>=8&&o[a+1]&&(o[a+1]=o[a+1].toUpperCase());return`0x${o.join("")}`}function f(e,t){if(!(0,o.U)(e,{strict:!1}))throw new r.b({address:e});return s(e,t)}},11406:(e,t,n)=>{"use strict";n.d(t,{U:()=>s});class r extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}set(e,t){return super.set(e,t),this.maxSize&&this.size>this.maxSize&&this.delete(this.keys().next().value),this}}var a=n(86694);const i=/^0x[a-fA-F0-9]{40}$/,o=new r(8192);function s(e,t){const{strict:n=!0}=t??{};if(o.has(e))return o.get(e);const r=!!i.test(e)&&(e.toLowerCase()===e||!n||(0,a.x)(e)===e);return o.set(e,r),r}},31476:(e,t,n)=>{"use strict";function r(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}n.d(t,{a:()=>r})},64352:(e,t,n)=>{"use strict";n.d(t,{L:()=>a});var r=n(48944);function a(e){var t;let{blockNumber:n,chain:a,contract:i}=e;const o=null===a||void 0===a||null===(t=a.contracts)||void 0===t?void 0:t[i];if(!o)throw new r.mm({chain:a,contract:{name:i}});if(n&&o.blockCreated&&o.blockCreated>n)throw new r.mm({blockNumber:n,chain:a,contract:{name:i,blockCreated:o.blockCreated}});return o.address}},76231:(e,t,n)=>{"use strict";n.d(t,{q:()=>i});var r=n(75823);const a={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:1/0,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new r.KD({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new r.lQ({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new r.T_({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new r.T_({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===1/0)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function i(e){let{recursiveReadLimit:t=8192}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Object.create(a);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}},91623:(e,t,n)=>{"use strict";function r(e){return"string"===typeof e[0]?a(e):function(e){let t=0;for(const a of e)t+=a.length;const n=new Uint8Array(t);let r=0;for(const a of e)n.set(a,r),r+=a.length;return n}(e)}function a(e){return`0x${e.reduce(((e,t)=>e+t.replace("0x","")),"")}`}n.d(t,{SM:()=>a,zo:()=>r})},49141:(e,t,n)=>{"use strict";function r(e){let{strict:t=!0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return!!e&&("string"===typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")))}n.d(t,{v:()=>r})},51121:(e,t,n)=>{"use strict";n.d(t,{gc:()=>i,vk:()=>a});var r=n(70514);function a(e){let{dir:t,size:n=32}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e?i(e,{dir:t,size:n}):function(e){let{dir:t,size:n=32}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===n)return e;if(e.length>n)throw new r.$s({size:e.length,targetSize:n,type:"bytes"});const a=new Uint8Array(n);for(let r=0;r<n;r++){const i="right"===t;a[i?r:n-r-1]=e[i?r:e.length-r-1]}return a}(e,{dir:t,size:n})}function i(e){let{dir:t,size:n=32}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null===n)return e;const a=e.replace("0x","");if(a.length>2*n)throw new r.$s({size:Math.ceil(a.length/2),targetSize:n,type:"hex"});return`0x${a["right"===t?"padEnd":"padStart"](2*n,"0")}`}},46880:(e,t,n)=>{"use strict";n.d(t,{d:()=>a});var r=n(49141);function a(e){return(0,r.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},80760:(e,t,n)=>{"use strict";n.d(t,{T4:()=>c,tP:()=>o});var r=n(70514),a=n(49141),i=n(46880);function o(e,t,n){let{strict:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,a.v)(e,{strict:!1})?function(e,t,n){let{strict:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};s(e,t);const a=`0x${e.replace("0x","").slice(2*(t??0),2*(n??e.length))}`;r&&f(a,t,n);return a}(e,t,n,{strict:r}):c(e,t,n,{strict:r})}function s(e,t){if("number"===typeof t&&t>0&&t>(0,i.d)(e)-1)throw new r.mV({offset:t,position:"start",size:(0,i.d)(e)})}function f(e,t,n){if("number"===typeof t&&"number"===typeof n&&(0,i.d)(e)!==n-t)throw new r.mV({offset:n,position:"end",size:(0,i.d)(e)})}function c(e,t,n){let{strict:r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};s(e,t);const a=e.slice(t,n);return r&&f(a,t,n),a}},37881:(e,t,n)=>{"use strict";function r(e){let{dir:t="left"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="string"===typeof e?e.replace("0x",""):e,r=0;for(let a=0;a<n.length-1&&"0"===n["left"===t?a:n.length-a-1].toString();a++)r++;return n="left"===t?n.slice(r):n.slice(0,n.length-r),"string"===typeof e?(1===n.length&&"right"===t&&(n=`${n}0`),`0x${n.length%2===1?`0${n}`:n}`):n}n.d(t,{f:()=>r})},58657:(e,t,n)=>{"use strict";n.d(t,{XA:()=>c,Yf:()=>s,ly:()=>l,rR:()=>u,y_:()=>f});var r=n(15065),a=n(46880),i=n(37881),o=n(14950);function s(e,t){let{size:n}=t;if((0,a.d)(e)>n)throw new r.M6({givenSize:(0,a.d)(e),maxSize:n})}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{signed:n}=t;t.size&&s(e,{size:t.size});const r=BigInt(e);if(!n)return r;const a=(e.length-2)/2;return r<=(1n<<8n*BigInt(a)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*a,"f")}`)-1n}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;if(t.size&&(s(n,{size:t.size}),n=(0,i.f)(n)),"0x00"===(0,i.f)(n))return!1;if("0x01"===(0,i.f)(n))return!0;throw new r.Cd(n)}function l(e){return Number(f(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}function u(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,o.nr)(e);return t.size&&(s(n,{size:t.size}),n=(0,i.f)(n,{dir:"right"})),(new TextDecoder).decode(n)}},14950:(e,t,n)=>{"use strict";n.d(t,{O0:()=>c,nr:()=>d,qX:()=>p});var r=n(95397),a=n(49141),i=n(51121),o=n(58657),s=n(71386);const f=new TextEncoder;function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"number"===typeof e||"bigint"===typeof e?function(e,t){const n=(0,s.eC)(e,t);return d(n)}(e,t):"boolean"===typeof e?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Uint8Array(1);if(n[0]=Number(e),"number"===typeof t.size)return(0,o.Yf)(n,{size:t.size}),(0,i.vk)(n,{size:t.size});return n}(e,t):(0,a.v)(e)?d(e,t):p(e,t)}const l={zero:48,nine:57,A:65,F:70,a:97,f:102};function u(e){return e>=l.zero&&e<=l.nine?e-l.zero:e>=l.A&&e<=l.F?e-(l.A-10):e>=l.a&&e<=l.f?e-(l.a-10):void 0}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e;t.size&&((0,o.Yf)(n,{size:t.size}),n=(0,i.vk)(n,{dir:"right",size:t.size}));let a=n.slice(2);a.length%2&&(a=`0${a}`);const s=a.length/2,f=new Uint8Array(s);for(let i=0,o=0;i<s;i++){const e=u(a.charCodeAt(o++)),t=u(a.charCodeAt(o++));if(void 0===e||void 0===t)throw new r.G(`Invalid byte sequence ("${a[o-2]}${a[o-1]}" in "${a}").`);f[i]=16*e+t}return f}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=f.encode(e);return"number"===typeof t.size?((0,o.Yf)(n,{size:t.size}),(0,i.vk)(n,{dir:"right",size:t.size})):n}},71386:(e,t,n)=>{"use strict";n.d(t,{$G:()=>d,C4:()=>f,NC:()=>s,ci:()=>c,eC:()=>l});var r=n(15065),a=n(51121),i=n(58657);const o=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function s(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"number"===typeof e||"bigint"===typeof e?l(e,t):"string"===typeof e?d(e,t):"boolean"===typeof e?f(e,t):c(e,t)}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=`0x${Number(e)}`;return"number"===typeof t.size?((0,i.Yf)(n,{size:t.size}),(0,a.vk)(n,{size:t.size})):n}function c(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="";for(let a=0;a<e.length;a++)n+=o[e[a]];const r=`0x${n}`;return"number"===typeof t.size?((0,i.Yf)(r,{size:t.size}),(0,a.vk)(r,{dir:"right",size:t.size})):r}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{signed:n,size:i}=t,o=BigInt(e);let s;i?s=n?(1n<<8n*BigInt(i)-1n)-1n:2n**(8n*BigInt(i))-1n:"number"===typeof e&&(s=BigInt(Number.MAX_SAFE_INTEGER));const f="bigint"===typeof s&&n?-s-1n:0;if(s&&o>s||o<f){const t="bigint"===typeof e?"n":"";throw new r.J5({max:s?`${s}${t}`:void 0,min:`${f}${t}`,signed:n,size:i,value:`${e}${t}`})}const c=`0x${(n&&o<0?(1n<<BigInt(8*i))+BigInt(o):o).toString(16)}`;return i?(0,a.vk)(c,{size:i}):c}const u=new TextEncoder;function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(u.encode(e),t)}},21082:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r=n(49141);function a(e){if(66!==e.length)return null;if(0!==e.indexOf("["))return null;if(65!==e.indexOf("]"))return null;const t=`0x${e.slice(1,65)}`;return(0,r.v)(t)?t:null}},66751:(e,t,n)=>{"use strict";n.d(t,{c:()=>o});var r=n(19514),a=n(95397),i=n(86011);function o(e,t){var n,o,s,f,c,l;if(!(e instanceof a.G))return!1;const u=e.walk((e=>e instanceof i.Lu));return u instanceof i.Lu&&("ResolverNotFound"===(null===(n=u.data)||void 0===n?void 0:n.errorName)||("ResolverWildcardNotSupported"===(null===(o=u.data)||void 0===o?void 0:o.errorName)||("ResolverNotContract"===(null===(s=u.data)||void 0===s?void 0:s.errorName)||("ResolverError"===(null===(f=u.data)||void 0===f?void 0:f.errorName)||("HttpError"===(null===(c=u.data)||void 0===c?void 0:c.errorName)||(!(null===(l=u.reason)||void 0===l||!l.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&u.reason===r.$[50]))))))}},46782:(e,t,n)=>{"use strict";n.d(t,{V:()=>f});var r=n(91623),a=n(14950),i=n(71386),o=n(77941),s=n(21082);function f(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,i.ci)(t);const n=e.split(".");for(let i=n.length-1;i>=0;i-=1){const e=(0,s.i)(n[i]),f=e?(0,a.O0)(e):(0,o.w)((0,a.qX)(n[i]),"bytes");t=(0,o.w)((0,r.zo)([t,f]),"bytes")}return(0,i.ci)(t)}},67044:(e,t,n)=>{"use strict";n.d(t,{T:()=>f});var r=n(14950);var a=n(71386),i=n(77941),o=n(21082);function s(e){const t=new Uint8Array(32).fill(0);return e?(0,o.i)(e)||(0,i.w)((0,r.qX)(e)):(0,a.ci)(t)}function f(e){const t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);const n=new Uint8Array((0,r.qX)(t).byteLength+2);let a=0;const i=t.split(".");for(let o=0;o<i.length;o++){let e=(0,r.qX)(i[o]);e.byteLength>255&&(e=(0,r.qX)(`[${s(i[o]).slice(2)}]`)),n[a]=e.length,n.set(e,a+1),a+=e.length+1}return n.byteLength!==a+1?n.slice(0,a+1):n}},60158:(e,t,n)=>{"use strict";n.d(t,{S:()=>f});var r=n(38475),a=n(95397),i=n(86011),o=n(74490);const s=3;function f(e,t){let{abi:n,address:f,args:c,docsPath:l,functionName:u,sender:d}=t;const{code:p,data:h,message:b,shortMessage:y}=e instanceof i.VQ?e:e instanceof a.G?e.walk((e=>"data"in e))||e.walk():{},m=e instanceof r.wb?new i.Dk({functionName:u}):[s,o.XS.code].includes(p)&&(h||b||y)?new i.Lu({abi:n,data:"object"===typeof h?h.data:h,functionName:u,message:y??b}):e;return new i.uq(m,{abi:n,args:c,contractAddress:f,docsPath:l,functionName:u,sender:d})}},88173:(e,t,n)=>{"use strict";n.d(t,{k:()=>i});var r=n(95397),a=n(14846);function i(e,t){const n=(e.details||"").toLowerCase(),i=e instanceof r.G?e.walk((e=>e.code===a.M_.code)):e;return i instanceof r.G?new a.M_({cause:e,message:i.details}):a.M_.nodeMessage.test(n)?new a.M_({cause:e,message:e.details}):a.Hh.nodeMessage.test(n)?new a.Hh({cause:e,maxFeePerGas:null===t||void 0===t?void 0:t.maxFeePerGas}):a.G$.nodeMessage.test(n)?new a.G$({cause:e,maxFeePerGas:null===t||void 0===t?void 0:t.maxFeePerGas}):a.ZI.nodeMessage.test(n)?new a.ZI({cause:e,nonce:null===t||void 0===t?void 0:t.nonce}):a.vU.nodeMessage.test(n)?new a.vU({cause:e,nonce:null===t||void 0===t?void 0:t.nonce}):a.se.nodeMessage.test(n)?new a.se({cause:e,nonce:null===t||void 0===t?void 0:t.nonce}):a.C_.nodeMessage.test(n)?new a.C_({cause:e}):a.WF.nodeMessage.test(n)?new a.WF({cause:e,gas:null===t||void 0===t?void 0:t.gas}):a.dR.nodeMessage.test(n)?new a.dR({cause:e,gas:null===t||void 0===t?void 0:t.gas}):a.pZ.nodeMessage.test(n)?new a.pZ({cause:e}):a.cs.nodeMessage.test(n)?new a.cs({cause:e,maxFeePerGas:null===t||void 0===t?void 0:t.maxFeePerGas,maxPriorityFeePerGas:null===t||void 0===t?void 0:t.maxPriorityFeePerGas}):new a.cj({cause:e})}},16521:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(38667);function a(e){var t;const n=null===(t=e.transactions)||void 0===t?void 0:t.map((e=>"string"===typeof e?e:(0,r.Tr)(e)));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}},37190:(e,t,n)=>{"use strict";function r(e,t){let{format:n}=t;if(!n)return{};const r={};return function t(n){const a=Object.keys(n);for(const i of a)i in e&&(r[i]=e[i]),n[i]&&"object"===typeof n[i]&&!Array.isArray(n[i])&&t(n[i])}(n(e||{})),r}n.d(t,{K:()=>r})},38667:(e,t,n)=>{"use strict";n.d(t,{Tr:()=>i,c8:()=>a});var r=n(58657);const a={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844"};function i(e){const t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,r.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,r.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?a[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"===typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}},86307:(e,t,n)=>{"use strict";n.d(t,{tG:()=>i});var r=n(71386);const a={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3"};function i(e){const t={};return"undefined"!==typeof e.accessList&&(t.accessList=e.accessList),"undefined"!==typeof e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),"undefined"!==typeof e.blobs&&("string"!==typeof e.blobs[0]?t.blobs=e.blobs.map((e=>(0,r.ci)(e))):t.blobs=e.blobs),"undefined"!==typeof e.data&&(t.data=e.data),"undefined"!==typeof e.from&&(t.from=e.from),"undefined"!==typeof e.gas&&(t.gas=(0,r.eC)(e.gas)),"undefined"!==typeof e.gasPrice&&(t.gasPrice=(0,r.eC)(e.gasPrice)),"undefined"!==typeof e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=(0,r.eC)(e.maxFeePerBlobGas)),"undefined"!==typeof e.maxFeePerGas&&(t.maxFeePerGas=(0,r.eC)(e.maxFeePerGas)),"undefined"!==typeof e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=(0,r.eC)(e.maxPriorityFeePerGas)),"undefined"!==typeof e.nonce&&(t.nonce=(0,r.eC)(e.nonce)),"undefined"!==typeof e.to&&(t.to=e.to),"undefined"!==typeof e.type&&(t.type=a[e.type]),"undefined"!==typeof e.value&&(t.value=(0,r.eC)(e.value)),t}},52838:(e,t,n)=>{"use strict";function r(e,t,n){return r=>{var a,i;return(null===(a=e[t.name])||void 0===a?void 0:a.call(e,r))??(null===(i=e[n])||void 0===i?void 0:i.call(e,r))??t(e,r)}}n.d(t,{s:()=>r})},77941:(e,t,n)=>{"use strict";n.d(t,{w:()=>s});var r=n(61089),a=n(49141),i=n(14950),o=n(71386);function s(e,t){const n=t||"hex",s=(0,r.fr)((0,a.v)(e,{strict:!1})?(0,i.O0)(e):e);return"bytes"===n?s:(0,o.NC)(s)}},86605:(e,t,n)=>{"use strict";n.d(t,{n:()=>r});const r=n(84398).r},73978:(e,t,n)=>{"use strict";n.d(t,{C:()=>i});var r=n(80760),a=n(84398);const i=e=>(0,r.tP)((0,a.r)(e),0,4)},84398:(e,t,n)=>{"use strict";n.d(t,{r:()=>u});var r=n(14950),a=n(77941);const i=e=>(0,a.w)((0,r.O0)(e));const o=/^tuple(?<array>(\[(\d*)\])*)$/;function s(e){let t=e.type;if(o.test(e.type)&&"components"in e){t="(";const n=e.components.length;for(let a=0;a<n;a++){t+=s(e.components[a]),a<n-1&&(t+=", ")}const r=function(e,t){const n=e.exec(t);return null===n||void 0===n?void 0:n.groups}(o,e.type);return t+=`)${(null===r||void 0===r?void 0:r.array)??""}`,s({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function f(e){let t="";const n=e.length;for(let r=0;r<n;r++){t+=s(e[r]),r!==n-1&&(t+=", ")}return t}var c=n(95397);const l=e=>function(e){let t=!0,n="",r=0,a="",i=!1;for(let o=0;o<e.length;o++){const s=e[o];if(["(",")",","].includes(s)&&(t=!0),"("===s&&r++,")"===s&&r--,t)if(0!==r)" "!==s?(a+=s,n+=s):","!==e[o-1]&&","!==n&&",("!==n&&(n="",t=!1);else if(" "===s&&["event","function",""].includes(a))a="";else if(a+=s,")"===s){i=!0;break}}if(!i)throw new c.G("Unable to normalize signature.");return a}((()=>{return"string"===typeof e?e:"function"===(t=e).type?`function ${t.name}(${f(t.inputs)})${t.stateMutability&&"nonpayable"!==t.stateMutability?` ${t.stateMutability}`:""}${t.outputs.length?` returns (${f(t.outputs)})`:""}`:"event"===t.type?`event ${t.name}(${f(t.inputs)})`:"error"===t.type?`error ${t.name}(${f(t.inputs)})`:"constructor"===t.type?`constructor(${f(t.inputs)})${"payable"===t.stateMutability?" payable":""}`:"fallback"===t.type?"fallback()":"receive() external payable";var t})());function u(e){return t=l(e),i(t);var t}},49162:(e,t,n)=>{"use strict";n.d(t,{N7:()=>o});const r=new Map,a=new Map;let i=0;function o(e,t,n){const o=++i,s=()=>r.get(e)||[],f=()=>{const t=a.get(e);1===s().length&&t&&t(),(()=>{const t=s();r.set(e,t.filter((e=>e.id!==o)))})()},c=s();if(r.set(e,[...c,{id:o,fns:t}]),c&&c.length>0)return f;const l={};for(const r in t)l[r]=function(){const e=s();if(0!==e.length){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];for(const t of e){var i,o;null===(i=(o=t.fns)[r])||void 0===i||i.call(o,...n)}}};const u=n(l);return"function"===typeof u&&a.set(e,u),f}},11685:(e,t,n)=>{"use strict";n.d(t,{$:()=>a});var r=n(68977);function a(e,t){let{emitOnBegin:n,initialWaitTime:a,interval:i}=t,o=!0;const s=()=>o=!1;return(async()=>{let t;n&&(t=await e({unpoll:s}));const f=await(null===a||void 0===a?void 0:a(t))??i;await(0,r.D)(f);const c=async()=>{o&&(await e({unpoll:s}),await(0,r.D)(i),c())};c()})(),s}},10943:(e,t,n)=>{"use strict";n.d(t,{S:()=>a});const r=new Map;function a(e){let{fn:t,id:n,shouldSplitBatch:a,wait:i=0,sort:o}=e;const s=async()=>{const e=c();f();const n=e.map((e=>{let{args:t}=e;return t}));0!==n.length&&t(n).then((t=>{o&&Array.isArray(t)&&t.sort(o);for(let r=0;r<e.length;r++){var n;const{pendingPromise:a}=e[r];null===(n=a.resolve)||void 0===n||n.call(a,[t[r],t])}})).catch((t=>{for(let r=0;r<e.length;r++){var n;const{pendingPromise:a}=e[r];null===(n=a.reject)||void 0===n||n.call(a,t)}}))},f=()=>r.delete(n),c=()=>r.get(n)||[],l=e=>r.set(n,[...c(),e]);return{flush:f,async schedule(e){const t={},n=new Promise(((e,n)=>{t.resolve=e,t.reject=n}));(null===a||void 0===a?void 0:a([...c().map((e=>{let{args:t}=e;return t})),e]))&&s();return c().length>0?(l({args:e,pendingPromise:t}),n):(l({args:e,pendingPromise:t}),setTimeout(s,i),n)}}}},78651:(e,t,n)=>{"use strict";n.d(t,{J:()=>a});var r=n(68977);function a(e){let{delay:t=100,retryCount:n=2,shouldRetry:a=(()=>!0)}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(((i,o)=>{const s=async function(){let{count:f=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{const t=await e();i(t)}catch(c){if(f<n&&await a({count:f,error:c}))return(async e=>{let{error:n}=e;const a="function"===typeof t?t({count:f,error:n}):t;a&&await(0,r.D)(a),s({count:f+1})})({error:c});o(c)}};s()}))}},35293:(e,t,n)=>{"use strict";function r(e,t){let{errorInstance:n=new Error("timed out"),timeout:r,signal:a}=t;return new Promise(((t,i)=>{(async()=>{let o;try{const s=new AbortController;r>0&&(o=setTimeout((()=>{a?s.abort():i(n)}),r)),t(await e({signal:(null===s||void 0===s?void 0:s.signal)||null}))}catch(s){"AbortError"===s.name&&i(n),i(s)}finally{clearTimeout(o)}})()}))}n.d(t,{F:()=>r})},1275:(e,t,n)=>{"use strict";n.d(t,{P:()=>r});const r=(e,t,n)=>JSON.stringify(e,((e,n)=>{const r="bigint"===typeof n?n.toString():n;return"function"===typeof t?t(e,r):r}),n)},94347:(e,t,n)=>{"use strict";n.d(t,{F:()=>f});var r=n(74303),a=n(75899),i=n(14846),o=n(53917),s=n(11406);function f(e){const{account:t,gasPrice:n,maxFeePerGas:f,maxPriorityFeePerGas:c,to:l}=e,u=t?(0,r.T)(t):void 0;if(u&&!(0,s.U)(u.address))throw new a.b({address:u.address});if(l&&!(0,s.U)(l))throw new a.b({address:l});if("undefined"!==typeof n&&("undefined"!==typeof f||"undefined"!==typeof c))throw new o.xY;if(f&&f>2n**256n-1n)throw new i.Hh({maxFeePerGas:f});if(c&&f&&c>f)throw new i.cs({maxFeePerGas:f,maxPriorityFeePerGas:c})}},51859:(e,t,n)=>{"use strict";n.d(t,{cj:()=>u,iC:()=>l});var r=n(38475),a=n(75899),i=n(11406),o=n(46880),s=n(71386);const f=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,c=/^(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 l(e){const{domain:t,message:n,primaryType:l,types:u}=e,d=(e,t)=>{for(const n of e){const{name:e,type:l}=n,p=t[e],h=l.match(c);if(h&&("number"===typeof p||"bigint"===typeof p)){const[e,t,n]=h;(0,s.eC)(p,{signed:"int"===t,size:parseInt(n)/8})}if("address"===l&&"string"===typeof p&&!(0,i.U)(p))throw new a.b({address:p});const b=l.match(f);if(b){const[e,t]=b;if(t&&(0,o.d)(p)!==parseInt(t))throw new r.KY({expectedSize:parseInt(t),givenSize:(0,o.d)(p)})}const y=u[l];y&&d(y,p)}};if(u.EIP712Domain&&t&&d(u.EIP712Domain,t),"EIP712Domain"!==l){const e=u[l];d(e,n)}}function u(e){let{domain:t}=e;return["string"===typeof(null===t||void 0===t?void 0:t.name)&&{name:"name",type:"string"},(null===t||void 0===t?void 0:t.version)&&{name:"version",type:"string"},"number"===typeof(null===t||void 0===t?void 0:t.chainId)&&{name:"chainId",type:"uint256"},(null===t||void 0===t?void 0:t.verifyingContract)&&{name:"verifyingContract",type:"address"},(null===t||void 0===t?void 0:t.salt)&&{name:"salt",type:"bytes32"}].filter(Boolean)}},69101:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});var r=n(10664),a=n(26971);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wei";return(0,a.b)(e,r.ez[t])}},49015:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(10664),a=n(26971);function i(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"wei";return(0,a.b)(e,r.Zn[t])}},26971:(e,t,n)=>{"use strict";function r(e,t){let n=e.toString();const r=n.startsWith("-");r&&(n=n.slice(1)),n=n.padStart(t,"0");let[a,i]=[n.slice(0,n.length-t),n.slice(n.length-t)];return i=i.replace(/(0+)$/,""),`${r?"-":""}${a||"0"}${i?`.${i}`:""}`}n.d(t,{b:()=>r})},68977:(e,t,n)=>{"use strict";async function r(e){return new Promise((t=>setTimeout(t,e)))}n.d(t,{D:()=>r})},59212:(e,t,n)=>{"use strict";n.d(t,{V:()=>s,F:()=>f});var r=n(72791);let a=!1;function i(e,t){const{initialState:n,reconnectOnMount:r}=t;return n&&!e._internal.store.persist.hasHydrated()&&e.setState({...n,connections:r?n.connections:new Map,status:r?"reconnecting":"disconnected"}),{async onMount(){if(e._internal.ssr){var t;await e._internal.store.persist.rehydrate();const n=null===(t=e._internal.mipd)||void 0===t?void 0:t.getProviders().map(e._internal.connectors.providerDetailToConnector).map(e._internal.connectors.setup);e._internal.connectors.setState((e=>[...e,...n??[]]))}r?async function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(a)return[];a=!0,e.setState((e=>({...e,status:e.current?"reconnecting":"connecting"})));const r=[];if(null!==(t=n.connectors)&&void 0!==t&&t.length)for(const a of n.connectors){let t;t="function"===typeof a?e._internal.connectors.setup(a):a,r.push(t)}else r.push(...e.connectors);let i;try{var o;i=await(null===(o=e.storage)||void 0===o?void 0:o.getItem("recentConnectorId"))}catch{}const s={};for(const[,a]of e.state.connections)s[a.connector.id]=1;i&&(s[i]=0);const f=Object.keys(s).length>0?[...r].sort(((e,t)=>(s[e.id]??10)-(s[t.id]??10))):r;let c=!1;const l=[],u=[];for(const a of f){const t=await a.getProvider();if(!t)continue;if(u.some((e=>e===t)))continue;if(!await a.isAuthorized())continue;const n=await a.connect({isReconnecting:!0}).catch((()=>null));n&&(a.emitter.off("connect",e._internal.events.connect),a.emitter.on("change",e._internal.events.change),a.emitter.on("disconnect",e._internal.events.disconnect),e.setState((e=>{const t=new Map(c?e.connections:new Map).set(a.uid,{accounts:n.accounts,chainId:n.chainId,connector:a});return{...e,current:c?e.current:a.uid,connections:t}})),l.push({accounts:n.accounts,chainId:n.chainId,connector:a}),u.push(t),c=!0)}"reconnecting"!==e.state.status&&"connecting"!==e.state.status||(c?e.setState((e=>({...e,status:"connected"}))):e.setState((e=>({...e,connections:new Map,current:null,status:"disconnected"})))),a=!1}(e):e.storage&&e.setState((e=>({...e,connections:new Map})))}}}function o(e){const{children:t,config:n,initialState:a,reconnectOnMount:o=!0}=e,{onMount:s}=i(n,{initialState:a,reconnectOnMount:o});n._internal.ssr||s();const f=(0,r.useRef)(!0);return(0,r.useEffect)((()=>{if(f.current&&n._internal.ssr)return s(),()=>{f.current=!1}}),[]),t}const s=(0,r.createContext)(void 0);function f(e){const{children:t,config:n}=e,a={value:n};return(0,r.createElement)(o,e,(0,r.createElement)(s.Provider,a,t))}},77404:(e,t,n)=>{"use strict";n.d(t,{m:()=>l});var r=n(47441),a=n(32441),i=n(81229),o=n(78821),s=n(72791),f=n(30327);const c=e=>"object"===typeof e&&!Array.isArray(e);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,i.Z)(e);return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.v;const a=(0,s.useRef)([]),i=(0,f.useSyncExternalStoreWithSelector)(e,t,n,(e=>e),((e,t)=>{if(c(e)&&c(t)&&a.current.length){for(const n of a.current)if(!r(e[n],t[n]))return!1;return!0}return r(e,t)}));if(c(i)){const e={...i};return Object.defineProperties(e,Object.entries(e).reduce(((e,t)=>{let[n,r]=t;return{...e,[n]:{configurable:!1,enumerable:!0,get:()=>(a.current.includes(n)||a.current.push(n),r)}}}),{})),e}return i}((e=>(0,r.u)(t,{onChange:e})),(()=>(0,a.D)(t)))}},40268:(e,t,n)=>{"use strict";function r(e){return e.state.chainId}n.d(t,{x:()=>o});var a=n(72791),i=n(81229);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,i.Z)(e);return(0,a.useSyncExternalStore)((e=>function(e,t){const{onChange:n}=t;return e.subscribe((e=>e.chainId),n)}(t,{onChange:e})),(()=>r(t)),(()=>r(t)))}},81229:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var r=n(72791),a=n(59212),i=n(85594);class o extends i.G{constructor(){super(...arguments),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiError"})}get docsBaseUrl(){return"https://wagmi.sh/react"}get version(){return"wagmi@2.9.3"}}class s extends o{constructor(){super("`useConfig` must be used within `WagmiProvider`.",{docsPath:"/api/WagmiProvider"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"WagmiProviderNotFoundError"})}}function f(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).config??(0,r.useContext)(a.V);if(!e)throw new s;return e}},51476:(e,t,n)=>{"use strict";n.d(t,{q:()=>u});var r=n(33874);function a(e){return{mutationFn:t=>async function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(n.connector)t=n.connector;else{const{connections:n,current:r}=e.state,a=n.get(r);t=null===a||void 0===a?void 0:a.connector}const r=e.state.connections;t&&(await t.disconnect(),t.emitter.off("change",e._internal.events.change),t.emitter.off("disconnect",e._internal.events.disconnect),t.emitter.on("connect",e._internal.events.connect),r.delete(t.uid)),e.setState((e=>{if(0===r.size)return{...e,connections:new Map,current:null,status:"disconnected"};const t=r.values().next().value;return{...e,connections:new Map(r),current:t.connector.uid}}));{var a,i;const t=e.state.current;if(!t)return;const n=null===(a=e.state.connections.get(t))||void 0===a?void 0:a.connector;if(!n)return;await(null===(i=e.storage)||void 0===i?void 0:i.setItem("recentConnectorId",n.id))}}(e,t),mutationKey:["disconnect"]}}var i=n(81229),o=n(78821);let s=[];function f(e){const t=[...e.state.connections.values()];return"reconnecting"===e.state.status||(0,o.v)(s,t)?s:(s=t,t)}var c=n(72791);function l(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,i.Z)(e);return(0,c.useSyncExternalStore)((e=>function(e,t){const{onChange:n}=t;return e.subscribe((()=>f(e)),n,{equalityFn:o.v})}(t,{onChange:e})),(()=>f(t)),(()=>f(t)))}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mutation:t}=e,n=(0,i.Z)(e),o=a(n),{mutate:s,mutateAsync:f,...c}=(0,r.D)({...t,...o});return{...c,connectors:l({config:n}).map((e=>e.connector)),disconnect:s,disconnectAsync:f}}},98659:(e,t,n)=>{"use strict";n.d(t,{Q:()=>c});var r=n(33874),a=n(49822),i=n(46105),o=n(51857);function s(e){return{mutationFn:t=>async function(e,t){const{account:n,connector:r,...s}=t;let f;return f="object"===typeof n&&"local"===n.type?e.getClient():await(0,o.e)(e,{account:n,connector:r}),(0,i.s)(f,a.l,"signMessage")({...s,...n?{account:n}:{}})}(e,t),mutationKey:["signMessage"]}}var f=n(81229);function c(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{mutation:t}=e,n=s((0,f.Z)(e)),{mutate:a,mutateAsync:i,...o}=(0,r.D)({...t,...n});return{...o,signMessage:a,signMessageAsync:i}}},33618:(e,t,n)=>{"use strict";n.d(t,{aM:()=>i});var r=n(84765),a=n(91124);function i(e){const t=(0,r.a)({...e,queryKeyHashFn:a.kq});return t.queryKey=e.queryKey,t}},54175:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},20400:(e,t,n)=>{"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"===typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,a=arguments.length;n<a;n++)t.push(arguments[n]);return t}function a(e,t,n){var r=t===e.head?new s(n,null,t,e):new s(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function i(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function o(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,n,r){if(!(this instanceof s))return new s(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=r,r.Node=s,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)i(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,a=this.head;null!==a;)n.push(e.call(t,a.value,this)),a=a.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,a=this.tail;null!==a;)n.push(e.call(t,a.value,this)),a=a.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var a=0;null!==r;a++)n=e(n,r.value,a),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var a=this.length-1;null!==r;a--)n=e(n,r.value,a),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var a=0,i=this.head;null!==i&&a<e;a++)i=i.next;for(;null!==i&&a<t;a++,i=i.next)n.push(i.value);return n},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var a=this.length,i=this.tail;null!==i&&a>t;a--)i=i.prev;for(;null!==i&&a>e;a--,i=i.prev)n.push(i.value);return n},r.prototype.splice=function(e,t){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var n=0,r=this.head;null!==r&&n<e;n++)r=r.next;var i=[];for(n=0;r&&n<t;n++)i.push(r.value),r=this.removeNode(r);null===r&&(r=this.tail),r!==this.head&&r!==this.tail&&(r=r.prev);for(n=0;n<(arguments.length<=2?0:arguments.length-2);n++)r=a(this,r,n+2<2||arguments.length<=n+2?void 0:arguments[n+2]);return i},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(54175)(r)}catch(f){}},37380:(e,t,n)=>{"use strict";n.d(t,{Ue:()=>c});const r=e=>{let t;const n=new Set,r=(e,r)=>{const a="function"===typeof e?e(t):e;if(!Object.is(a,t)){const e=t;t=(null!=r?r:"object"!==typeof a)?a:Object.assign({},t,a),n.forEach((n=>n(t,e)))}},a=()=>t,i={setState:r,getState:a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,a,i),i},a=e=>e?r(e):r;var i=n(72791),o=n(30327);const{useSyncExternalStoreWithSelector:s}=o;const f=e=>{"function"!==typeof e&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t="function"===typeof e?a(e):e,n=(e,n)=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.getState,n=arguments.length>2?arguments[2]:void 0;const r=s(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,i.useDebugValue)(r),r}(t,e,n);return Object.assign(n,t),n},c=e=>e?f(e):f},62990:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/index.1c5e66572d1ca185f0b4.cjs"},15753:(e,t,n)=>{"use strict";e.exports=n.p+"static/media/index.1c5e66572d1ca185f0b4.cjs"},53282:e=>{"use strict";e.exports=JSON.parse('[{"inputs":[{"internalType":"contract IEAS","name":"eas","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"AccessDenied","type":"error"},{"inputs":[],"name":"DeadlineExpired","type":"error"},{"inputs":[],"name":"InvalidEAS","type":"error"},{"inputs":[],"name":"InvalidLength","type":"error"},{"inputs":[],"name":"InvalidShortString","type":"error"},{"inputs":[],"name":"InvalidSignature","type":"error"},{"inputs":[],"name":"NotFound","type":"error"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"StringTooLong","type":"error"},{"inputs":[],"name":"UsedSignature","type":"error"},{"anonymous":false,"inputs":[],"name":"EIP712DomainChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"inputs":[{"components":[{"internalType":"bytes32","name":"schema","type":"bytes32"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint64","name":"expirationTime","type":"uint64"},{"internalType":"bool","name":"revocable","type":"bool"},{"internalType":"bytes32","name":"refUID","type":"bytes32"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct AttestationRequestData","name":"data","type":"tuple"}],"internalType":"struct AttestationRequest","name":"request","type":"tuple"}],"name":"attest","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"schema","type":"bytes32"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint64","name":"expirationTime","type":"uint64"},{"internalType":"bool","name":"revocable","type":"bool"},{"internalType":"bytes32","name":"refUID","type":"bytes32"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct AttestationRequestData","name":"data","type":"tuple"},{"components":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct Signature","name":"signature","type":"tuple"},{"internalType":"address","name":"attester","type":"address"},{"internalType":"uint64","name":"deadline","type":"uint64"}],"internalType":"struct DelegatedProxyAttestationRequest","name":"delegatedRequest","type":"tuple"}],"name":"attestByDelegation","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"eip712Domain","outputs":[{"internalType":"bytes1","name":"fields","type":"bytes1"},{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"version","type":"string"},{"internalType":"uint256","name":"chainId","type":"uint256"},{"internalType":"address","name":"verifyingContract","type":"address"},{"internalType":"bytes32","name":"salt","type":"bytes32"},{"internalType":"uint256[]","name":"extensions","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAttestTypeHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes32","name":"uid","type":"bytes32"}],"name":"getAttester","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeparator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getEAS","outputs":[{"internalType":"contract IEAS","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getName","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRevokeTypeHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"isAttester","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"schema","type":"bytes32"},{"components":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint64","name":"expirationTime","type":"uint64"},{"internalType":"bool","name":"revocable","type":"bool"},{"internalType":"bytes32","name":"refUID","type":"bytes32"},{"internalType":"bytes","name":"data","type":"bytes"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct AttestationRequestData[]","name":"data","type":"tuple[]"},{"components":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct Signature[]","name":"signatures","type":"tuple[]"},{"internalType":"address","name":"attester","type":"address"},{"internalType":"uint64","name":"deadline","type":"uint64"}],"internalType":"struct MultiDelegatedProxyAttestationRequest[]","name":"multiDelegatedRequests","type":"tuple[]"}],"name":"multiAttestByDelegation","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"schema","type":"bytes32"},{"components":[{"internalType":"bytes32","name":"uid","type":"bytes32"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct RevocationRequestData[]","name":"data","type":"tuple[]"},{"components":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct Signature[]","name":"signatures","type":"tuple[]"},{"internalType":"address","name":"revoker","type":"address"},{"internalType":"uint64","name":"deadline","type":"uint64"}],"internalType":"struct MultiDelegatedProxyRevocationRequest[]","name":"multiDelegatedRequests","type":"tuple[]"}],"name":"multiRevokeByDelegation","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"schema","type":"bytes32"},{"components":[{"internalType":"bytes32","name":"uid","type":"bytes32"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct RevocationRequestData","name":"data","type":"tuple"}],"internalType":"struct RevocationRequest","name":"request","type":"tuple"}],"name":"revoke","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes32","name":"schema","type":"bytes32"},{"components":[{"internalType":"bytes32","name":"uid","type":"bytes32"},{"internalType":"uint256","name":"value","type":"uint256"}],"internalType":"struct RevocationRequestData","name":"data","type":"tuple"},{"components":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct Signature","name":"signature","type":"tuple"},{"internalType":"address","name":"revoker","type":"address"},{"internalType":"uint64","name":"deadline","type":"uint64"}],"internalType":"struct DelegatedProxyRevocationRequest","name":"delegatedRequest","type":"tuple"}],"name":"revokeByDelegation","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"attester","type":"address"},{"internalType":"bool","name":"enable","type":"bool"}],"name":"toggleAttester","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"version","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"}]')},44615:e=>{"use strict";e.exports=JSON.parse('[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"bytes32","name":"_root","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ERC721EnumerableForbiddenBatchMint","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721IncorrectOwner","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721InsufficientApproval","type":"error"},{"inputs":[{"internalType":"address","name":"approver","type":"address"}],"name":"ERC721InvalidApprover","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"ERC721InvalidOperator","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"ERC721InvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC721InvalidReceiver","type":"error"},{"inputs":[{"internalType":"address","name":"sender","type":"address"}],"name":"ERC721InvalidSender","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ERC721NonexistentToken","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"ERC721OutOfBoundsIndex","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"length","type":"uint256"}],"name":"StringsInsufficientHexLength","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"metadata","outputs":[{"internalType":"address","name":"deployer","type":"address"},{"internalType":"address","name":"firstDeployedContract","type":"address"},{"internalType":"address","name":"bestDeployedContract","type":"address"},{"internalType":"uint256","name":"rarityData","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"components":[{"internalType":"address","name":"deployer","type":"address"},{"internalType":"address","name":"firstDeployedContract","type":"address"},{"internalType":"address","name":"bestDeployedContract","type":"address"},{"internalType":"uint256","name":"rarityData","type":"uint256"}],"internalType":"struct ScrollGenesisNFT.Metadata","name":"meta","type":"tuple"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mintData","outputs":[{"internalType":"uint64","name":"mintAt","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"}]')}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.m=e,n.amdO={},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;n.t=function(r,a){if(1&a&&(r=this(r)),8&a)return r;if("object"===typeof r&&r){if(4&a&&r.__esModule)return r;if(16&a&&"function"===typeof r.then)return r}var i=Object.create(null);n.r(i);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&a&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>o[e]=()=>r[e]));return o.default=()=>r,n.d(i,o),i}})(),n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce(((t,r)=>(n.f[r](e,t),t)),[])),n.u=e=>"static/js/"+e+"."+{345:"49188132",409:"976ec77c",518:"55007395",544:"7d7209ed",606:"a7ad59bb",613:"f70fea93",663:"8dd4bff3",787:"b37eb668",854:"ce14a547",1250:"40ef9130",1388:"6a6418c1",1546:"4fc720b4",1722:"4c05a585",1743:"8ffafb61",1778:"4828e0c1",1798:"da08d248",1825:"77328f56",1885:"29a954c8",2018:"ab1166ec",2455:"409ad9bb",2587:"32079ddf",2658:"01c6b8c4",2697:"2cff5940",2782:"d696a9eb",2848:"c2bc9336",2878:"b209a695",2895:"ab2da4f2",2956:"06e4748b",3224:"f2c443b3",3295:"c98cb8c8",3568:"4d337c09",3682:"468be0c3",3931:"57c75a54",3954:"955905c7",4226:"fd9d8fe9",4631:"f1aad8f5",4726:"2945b10b",4798:"b885d704",4839:"5ce973c9",5224:"8068fade",5254:"6cf738b1",5262:"c540eca1",5273:"4b70b4df",5316:"ee7cfabc",5387:"e09c6b1a",5406:"841cdc70",5419:"48137f02",5639:"8af3bd65",5723:"060a7e17",6360:"35d1619f",6453:"5baa2ec2",6647:"011d1958",6677:"9aaa7d6e",6684:"8c54613c",6732:"2633457d",7064:"c0b17880",7173:"b9bef20a",7265:"5111384f",7500:"02b6c51a",7740:"3c3550bb",7969:"1201634c",7991:"7ebba8ec",8142:"a7333fe2",8268:"76601041",8277:"967f7ccc",8287:"0e436585",8338:"7ee2c9a0",8650:"7deb751c",8653:"ebf995e1",8657:"912250fa",8810:"d8a696cf",8831:"1a664f61",8943:"704f5118",9106:"0ada08fb",9255:"edfebb4b",9288:"53ca8832",9422:"122a2db6",9537:"9644f57e",9788:"4f06f095",9815:"c69b4db1",9906:"51c3632c"}[e]+".chunk.js",n.miniCssF=e=>"static/css/"+e+".3769740f.chunk.css",n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="scroll.io:";n.l=(r,a,i,o)=>{if(e[r])e[r].push(a);else{var s,f;if(void 0!==i)for(var c=document.getElementsByTagName("script"),l=0;l<c.length;l++){var u=c[l];if(u.getAttribute("src")==r||u.getAttribute("data-webpack")==t+i){s=u;break}}s||(f=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+i),s.src=r),e[r]=[a];var d=(t,n)=>{s.onerror=s.onload=null,clearTimeout(p);var a=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((e=>e(n))),t)return t(n)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),f&&document.head.appendChild(s)}}})(),n.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="/",(()=>{if("undefined"!==typeof document){var e=e=>new Promise(((t,r)=>{var a=n.miniCssF(e),i=n.p+a;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var a=(o=n[r]).getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(a===e||a===t))return o}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var o;if((a=(o=i[r]).getAttribute("data-href"))===e||a===t)return o}})(a,i))return t();((e,t,n,r,a)=>{var i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.onerror=i.onload=n=>{if(i.onerror=i.onload=null,"load"===n.type)r();else{var o=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.href||t,f=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");f.code="CSS_CHUNK_LOAD_FAILED",f.type=o,f.request=s,i.parentNode&&i.parentNode.removeChild(i),a(f)}},i.href=t,n?n.parentNode.insertBefore(i,n.nextSibling):document.head.appendChild(i)})(e,i,null,t,r)})),t={179:0};n.f.miniCss=(n,r)=>{t[n]?r.push(t[n]):0!==t[n]&&{7991:1}[n]&&r.push(t[n]=e(n).then((()=>{t[n]=0}),(e=>{throw delete t[n],e})))}}})(),(()=>{var e={179:0};n.f.j=(t,r)=>{var a=n.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else{var i=new Promise(((n,r)=>a=e[t]=[n,r]));r.push(a[2]=i);var o=n.p+n.u(t),s=new Error;n.l(o,(r=>{if(n.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var i=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+i+": "+o+")",s.name="ChunkLoadError",s.type=i,s.request=o,a[1](s)}}),"chunk-"+t,t)}};var t=(t,r)=>{var a,i,o=r[0],s=r[1],f=r[2],c=0;if(o.some((t=>0!==e[t]))){for(a in s)n.o(s,a)&&(n.m[a]=s[a]);if(f)f(n)}for(t&&t(r);c<o.length;c++)i=o[c],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0},r=self.webpackChunkscroll_io=self.webpackChunkscroll_io||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),n.nc=void 0,(()=>{"use strict";var e=n(60173),t=n(1250),r=n(10757),a=n(11087),i=n(62309),o=n(72791),s=n(6907),f=n(57689),c=n(79346),l=n(74223),u=n(80184);const d=(0,l.Z)((0,u.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"}),"ArrowUpward");var p=n(19756),h=n(22122),b=n(28182),y=n(94419),m=n(23701),g=n(14036),v=n(31402),w=n(75878),E=n(21217);function A(e){return(0,E.Z)("MuiFab",e)}const P=(0,w.Z)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]);var _=n(66934);const T=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],k=(0,_.ZP)(m.Z,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>(0,_.FO)(e)||"classes"===e,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${(0,g.Z)(n.size)}`],"inherit"===n.color&&t.colorInherit,t[(0,g.Z)(n.size)],t[n.color]]}})((e=>{let{theme:t,ownerState:n}=e;var r,a;return(0,h.Z)({},t.typography.button,{minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:null==(r=(a=t.palette).getContrastText)?void 0:r.call(a,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},[`&.${P.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]}},"small"===n.size&&{width:40,height:40},"medium"===n.size&&{width:48,height:48},"extended"===n.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===n.variant&&"small"===n.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===n.variant&&"medium"===n.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===n.color&&{color:"inherit"})}),(e=>{let{theme:t,ownerState:n}=e;return(0,h.Z)({},"inherit"!==n.color&&"default"!==n.color&&null!=(t.vars||t).palette[n.color]&&{color:(t.vars||t).palette[n.color].contrastText,backgroundColor:(t.vars||t).palette[n.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[n.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[n.color].main}}})}),(e=>{let{theme:t}=e;return{[`&.${P.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}})),C=o.forwardRef((function(e,t){const n=(0,v.Z)({props:e,name:"MuiFab"}),{children:r,className:a,color:i="default",component:o="button",disabled:s=!1,disableFocusRipple:f=!1,focusVisibleClassName:c,size:l="large",variant:d="circular"}=n,m=(0,p.Z)(n,T),w=(0,h.Z)({},n,{color:i,component:o,disabled:s,disableFocusRipple:f,size:l,variant:d}),E=(e=>{const{color:t,variant:n,classes:r,size:a}=e,i={root:["root",n,`size${(0,g.Z)(a)}`,"inherit"===t?"colorInherit":t]},o=(0,y.Z)(i,A,r);return(0,h.Z)({},r,o)})(w);return(0,u.jsx)(k,(0,h.Z)({className:(0,b.default)(E.root,a),component:o,disabled:s,focusRipple:!f,focusVisibleClassName:(0,b.default)(E.focusVisible,c),ownerState:w,ref:t},m,{classes:E,children:r}))}));var x=n(68870);const O=(0,_.ZP)(C)((e=>{let{theme:t}=e;return{"&:hover":{background:t.palette.primary.light}}})),S=()=>{const[e,t]=(0,o.useState)(!1),n=()=>{window.pageYOffset>300?t(!0):t(!1)};(0,o.useEffect)((()=>(window.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n)})),[]);return(0,u.jsx)(u.Fragment,{children:e&&(0,u.jsx)(x.Z,{sx:{position:"fixed",bottom:30,right:30,zIndex:100},children:(0,u.jsx)(O,{color:"primary",onClick:()=>{window.scrollTo({top:0,behavior:"smooth"})},children:(0,u.jsx)(d,{})})})})};function R(e,t,n,r){var a,i=!1,o=0;function s(){a&&clearTimeout(a)}function f(){for(var f=arguments.length,c=new Array(f),l=0;l<f;l++)c[l]=arguments[l];var u=this,d=Date.now()-o;function p(){o=Date.now(),n.apply(u,c)}i||(r&&!a&&p(),s(),void 0===r&&d>e?p():!0!==t&&(a=setTimeout(r?function(){a=void 0}:p,void 0===r?e-d:e)))}return"boolean"!==typeof t&&(r=n,n=t,t=void 0),f.cancel=function(){s(),i=!0},f}var I=function(){};function N(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.addEventListener&&e.addEventListener.apply(e,t)}function B(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e&&e.removeEventListener&&e.removeEventListener.apply(e,t)}var j="undefined"!==typeof window,D=["mousemove","mousedown","resize","keydown","touchstart","wheel"];const L=function(e,t,n){void 0===e&&(e=6e4),void 0===t&&(t=!1),void 0===n&&(n=D);var r=(0,o.useState)(t),a=r[0],i=r[1];return(0,o.useEffect)((function(){for(var t,r=!0,o=a,s=function(e){r&&(o=e,i(e))},f=R(50,(function(){o&&s(!1),clearTimeout(t),t=setTimeout((function(){return s(!0)}),e)})),c=function(){document.hidden||f()},l=0;l<n.length;l++)N(window,n[l],f);return N(document,"visibilitychange",c),t=setTimeout((function(){return s(!0)}),e),function(){r=!1;for(var e=0;e<n.length;e++)B(window,n[e],f);B(document,"visibilitychange",c)}}),[e,n]),a};let M=!1,U=!1;const F=e=>{L(e||6e4)&&(M||U||(U=!0,fetch("/asset-manifest.json").then((e=>e.json())).then((e=>Object.values(e.files).map((e=>"string"!==typeof e||e.endsWith(".map")?Promise.resolve():fetch(e))))).then(Promise.all).then((()=>{M=!0,U=!1})).catch((e=>{U=!1,console.warn("failed to fetch all assets in asset-manifest.json",e)}))))};var z=n(881);const $=e=>{(0,o.useEffect)((()=>(z.e((t=>{t.setTag("page",e)})),()=>{z.e((e=>{e.setTag("page","")}))})),[e])};const G=function(e,t,n){if(!j)return[t,I,I];if(!e)throw new Error("useLocalStorage key may not be falsy");var r=n?n.raw?function(e){return e}:n.deserializer:JSON.parse,a=(0,o.useRef)((function(e){try{var a=n?n.raw?String:n.serializer:JSON.stringify,o=localStorage.getItem(e);return null!==o?r(o):(t&&localStorage.setItem(e,a(t)),t)}catch(i){return t}})),i=(0,o.useState)((function(){return a.current(e)})),s=i[0],f=i[1];(0,o.useLayoutEffect)((function(){return f(a.current(e))}),[e]);var c=(0,o.useCallback)((function(t){try{var a="function"===typeof t?t(s):t;if("undefined"===typeof a)return;var o=void 0;o=n?n.raw?"string"===typeof a?a:JSON.stringify(a):n.serializer?n.serializer(a):JSON.stringify(a):JSON.stringify(a),localStorage.setItem(e,o),f(r(o))}catch(i){}}),[e,f]),l=(0,o.useCallback)((function(){try{localStorage.removeItem(e),f(void 0)}catch(i){}}),[e,f]);return[s,c,l]};var H=n(84710),W=n(25677);const V=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"0.0.0";const[t,n,r]=e.split(".").map(Number);return{major:t,minor:n,patch:r}},q=(0,i.Oi)("REACT_APP_SCROLL_ENVIRONMENT").toLocaleLowerCase(),K=e=>{let{children:t}=e;const[n,r]=(0,o.useState)(!1),[a,s]=G(H.Ji);return(0,o.useEffect)((()=>{const e=(0,i.Oi)("REACT_APP_VERSION");if((0,W.rV)(H.pB)!==q&&(0,W.Jo)(),((e,t)=>{const n=V(e),r=V(t);return n.major!==r.major||n.minor!==r.minor})(a,e)){const e=(0,W.rV)(H.lk);(0,W.Jo)(),null!==e&&void 0!==e&&e.includes("orderedTxDB")&&(0,W.LS)(H.lk,e)}(0,W.LS)(H.pB,q),s(e),r(!0)}),[]),n?t:null},Z=o.lazy((()=>Promise.all([n.e(7991),n.e(5254)]).then(n.bind(n,75281)))),J=e=>{let{...t}=e;const n=(0,f.TH)();return n.pathname.match("/.*/$")?(0,u.jsx)(f.Fg,{replace:!0,...t,to:{pathname:n.pathname.replace(/\/+$/,""),search:n.search}}):null};const Y=function(){let e=(0,f.TH)();return $(e.pathname),F(),o.useEffect((()=>{r.ZP.send({hitType:"pageview",page:`${e.pathname}${e.search}`})}),[e]),(0,u.jsxs)(s.B6,{children:[(0,u.jsx)(J,{}),(0,u.jsxs)(o.Suspense,{fallback:(0,u.jsx)(c.Z,{}),children:[(0,u.jsx)(K,{children:(0,u.jsx)(f.Z5,{children:(0,u.jsx)(f.AW,{path:"/*",element:(0,u.jsx)(Z,{})})})}),(0,u.jsx)(S,{})]})]})};n(21005);const Q=e=>{e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((t=>{let{getCLS:n,getFID:r,getFCP:a,getLCP:i,getTTFB:o}=t;n(e),r(e),a(e),i(e),o(e)}))};var X=n(61979);const ee=o.createContext(null);function te(){return o.useContext(ee)}const ne="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";const re=function(e){const{children:t,theme:n}=e,r=te(),a=o.useMemo((()=>{const e=null===r?n:function(e,t){if("function"===typeof t)return t(e);return(0,h.Z)({},e,t)}(r,n);return null!=e&&(e[ne]=null!==r),e}),[n,r]);return(0,u.jsx)(ee.Provider,{value:a,children:t})};var ae=n(29886),ie=n(69120);const oe={};function se(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return o.useMemo((()=>{const a=e&&t[e]||t;if("function"===typeof n){const i=n(a),o=e?(0,h.Z)({},t,{[e]:i}):i;return r?()=>o:o}return e?(0,h.Z)({},t,{[e]:n}):(0,h.Z)({},t,n)}),[e,t,n,r])}const fe=function(e){const{children:t,theme:n,themeId:r}=e,a=(0,ie.Z)(oe),i=te()||oe,o=se(r,a,n),s=se(r,i,n,!0);return(0,u.jsx)(re,{theme:s,children:(0,u.jsx)(ae.T.Provider,{value:o,children:t})})};var ce=n(988);const le=["theme"];function ue(e){let{theme:t}=e,n=(0,p.Z)(e,le);const r=t[ce.Z];return(0,u.jsx)(fe,(0,h.Z)({},n,{themeId:r?ce.Z:void 0,theme:r||t}))}(0,X.Z)({});var de=n(12065);const pe=(0,X.Z)(),he={primary:{light:"#F18740",main:"#FF684B",dark:"#FFDEB5",contrastText:"#FFF8F3"},secondary:{main:"#595959"},text:{primary:"#101010",secondary:"#595959",disabled:"#FFDEB5"},info:{light:"#E5F6FE",main:"#0095DA"},success:{light:"#DFFCF8",main:"#0F8E7E"},warning:{light:"#FFF8CB",main:"#C14800"},error:{light:"#FFD7E2",main:"#DC3347"},action:{disabled:"rgba(51, 51, 51, 0.3)",disabledBackground:"rgba(51, 51, 51, 0.1)"},divider:"#101010",background:{default:"#FFF",paper:"#FFF"},themeBackground:{light:"#FFF8F3",dark:"#101010",normal:"#FFF0DD",highlight:"#FFDEB5",optionHightlight:"#FFE6C8",tag:"#262626",transparent:"transparent",brand:"#FFEEDA"},border:{main:"#000"},link:{main:"#FF684B"},tagSuccess:{light:"#2FCE741A",main:"#2FCE74",contrastText:"#FFFFFF"},tagWarning:{light:"#ffb21c1A",main:"#FFB21C",contrastText:"#FFFFFF"},tagCommitted:{light:"#29C2CE1A",main:"#29C2CE",contrastText:"#FFFFFF"},tagSkipped:{light:"#BD63E21A",main:"#BD63E2",contrastText:"#FFFFFF"},tagUnknown:{light:"#FF4F641A",main:"#FF4F64",contrastText:"#FFFFFF"}},be={fontFamily:["TransSansPremium","system-ui","BlinkMacSystemFont","Roboto","Helvetica Neue","Segoe UI","Arial","sans-serif","Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"].join(","),h1:{fontWeight:500,fontSize:"4.8rem",lineHeight:"5.6rem",[pe.breakpoints.down("sm")]:{fontSize:"2.4rem",lineHeight:"3.2rem"}},h3:{fontWeight:500,fontSize:"3.4rem",lineHeight:"4rem",[pe.breakpoints.down("sm")]:{fontSize:"2.4rem",lineHeight:"3.2rem"}},h4:{fontSize:"3.4rem",fontWeight:500,[pe.breakpoints.down("sm")]:{fontSize:"2.4rem"}},h5:{fontSize:"2.4rem",fontWeight:600,[pe.breakpoints.down("sm")]:{fontSize:"1.6rem"}},h6:{fontSize:"2.0rem",fontWeight:500,[pe.breakpoints.down("sm")]:{fontSize:"1.6rem"}},subtitle1:{fontSize:"2rem",lineHeight:"3.2rem",[pe.breakpoints.down("sm")]:{fontSize:"1.6rem",lineHeight:"2.6rem"}},subtitle2:{fontSize:"1.6rem",fontWeight:400,[pe.breakpoints.down("sm")]:{fontSize:"1.4rem",fontWeight:500}},body1:{fontWeight:400,fontSize:"1.6rem",lineHeight:1.4},H1:{fontSize:"6.4rem",lineHeight:"normal",fontWeight:600,[pe.breakpoints.down("sm")]:{fontSize:"3.6rem"}},H2:{fontSize:"4.8rem",lineHeight:"normal",fontWeight:600,[pe.breakpoints.down("sm")]:{fontSize:"3.2rem"}},H3:{fontSize:"4.6rem",lineHeight:"normal",fontWeight:500},H4:{fontSize:"2.4rem",lineHeight:1.4,fontWeight:600,[pe.breakpoints.down("sm")]:{fontSize:"2rem"}},Body1:{fontSize:"2.6rem",lineHeight:1.4,fontWeight:400,[pe.breakpoints.down("sm")]:{fontSize:"2rem"}},Body2:{fontSize:"2.4rem",lineHeight:"normal",fontWeight:400},Body3:{fontSize:"2.0rem",lineHeight:1.4,fontWeight:400}},ye={none:"none",sharp:"0px 2px 4px rgba(0,0,0,.1)",buttonHover:"#FEE7E0 0.4rem 0.4rem",select:"0px 4px 4px rgba(0, 0, 0, 0.15)",tile:"2px 2px 10px 2px rgba(131, 131, 131, 0.4)"},me="all 0.15s ease-out",ge=(0,X.Z)({singleLineEllipsis:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},multilineEllipsis:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:"4",overflow:"hidden"},shape:{borderRadius:27},palette:he,typography:be,boxShadows:ye,components:{MuiContainer:{styleOverrides:{root:e=>{let{theme:t}=e;return{maxWidth:"152rem !important",[t.breakpoints.up("xs")]:{paddingLeft:"2rem",paddingRight:"2rem"},[t.breakpoints.up("md")]:{paddingLeft:"6rem",paddingRight:"6rem"}}}}},MuiTooltip:{styleOverrides:{tooltip:{fontSize:"1.4rem",borderRadius:"0.6rem"}},defaultProps:{enterTouchDelay:0,leaveTouchDelay:1e4}},MuiChip:{styleOverrides:{root:{fontSize:"1.6rem",height:"3.8rem",borderRadius:"1.9rem",padding:"0 1.6rem"}}},MuiButtonBase:{defaultProps:{disableRipple:!0}},MuiButton:{defaultProps:{variant:"outlined",color:"primary"},styleOverrides:{root:{fontSize:"2rem",fontWeight:500,lineHeight:"normal",padding:"0 3.5rem",height:"4.6rem",textTransform:"inherit",borderRadius:"0.6rem",backgroundColor:"#f0f0f0",boxShadow:ye.none,"&:hover":{boxShadow:ye.none,backgroundColor:"#5B5B5B",color:he.primary.contrastText},"@media(max-width: 600px)":{padding:0}}},variants:[{props:{variant:"contained",color:"primary"},style:{backgroundColor:he.primary.main,"&:hover":{backgroundColor:he.primary.main}}},{props:{variant:"contained",color:"secondary"},style:{backgroundColor:he.themeBackground.dark,color:he.primary.contrastText,"&:hover":{backgroundColor:he.themeBackground.dark},"&.Mui-disabled":{backgroundColor:he.themeBackground.dark,color:(0,de.Fq)(he.primary.contrastText,.6),opacity:.8}}},{props:{variant:"contained",color:"info"},style:{backgroundColor:he.themeBackground.normal,color:he.text.primary,"&:hover":{backgroundColor:he.themeBackground.normal}}},{props:{variant:"outlined",color:"primary"},style:{borderColor:he.text.primary,color:he.text.primary,backgroundColor:he.background.default,"&:hover":{color:he.primary.main,backgroundColor:he.background.default}}},{props:{variant:"outlined",color:"secondary"},style:{borderColor:he.primary.main,color:he.primary.main,backgroundColor:he.background.default,width:"21.5rem","&:hover":{backgroundColor:he.background.default,borderColor:he.primary.main}}},{props:{disabled:!0},style:{border:"none !important",color:he.action.disabled,backgroundColor:he.action.disabledBackground}}]},MuiLoadingButton:{styleOverrides:{root:{width:"15rem",height:"4.4rem",fontSize:"1.6rem",fontWeight:600,borderRadius:"0.5rem"}},defaultProps:{variant:"contained",color:"primary"},variants:[{props:{variant:"contained",color:"primary"},style:{backgroundColor:he.primary.main,"&:hover":{backgroundColor:(0,de.$n)(he.primary.main,.1)}}},{props:{variant:"contained",color:"primary",loading:!0},style:{backgroundColor:`${he.primary.main} !important`}}]},MuiMenuItem:{styleOverrides:{root:{fontWeight:700,fontSize:"1.8rem",transition:me}}},MuiPopover:{styleOverrides:{paper:{boxShadow:ye.none}}},MuiTypography:{defaultProps:{variantMapping:{H1:"h1",H2:"h2",H3:"h3",H4:"h4",Body1:"p",Body2:"p",Body3:"p"}},styleOverrides:{root:{cursor:"default",transition:me,color:he.text.primary},gutterBottom:{marginBottom:"0.7rem"}}},MuiTableRow:{styleOverrides:{root:{"&:nth-last-of-type(1) .MuiTableCell-body":{borderBottom:"unset"}}}},MuiTableCell:{styleOverrides:{root:e=>{let{theme:t}=e;return{borderColor:he.divider,[t.breakpoints.down("sm")]:{padding:"1.6rem 2.4rem"}}},head:{color:he.text.secondary,fontSize:"1.4rem",fontWeight:500}}},MuiDialog:{styleOverrides:{paper:e=>{let{theme:t}=e;return{[t.breakpoints.down("sm")]:{margin:"0 1.6rem"}}}}},MuiAlert:{styleOverrides:{root:e=>{let{theme:t,ownerState:n}=e;return{borderRadius:"1rem",fontSize:"1.6rem",lineHeight:"normal",padding:"1.2rem 2.5rem",width:"100%",boxSizing:"border-box",color:n.severity&&he[n.severity].main,backgroundColor:n.severity&&he[n.severity].light,alignItems:"center"}},icon:e=>{let{theme:t,ownerState:n}=e;return{display:"flex",alignItems:"center",fontSize:"2.4rem",marginRight:"1.8rem",padding:0,color:`${n.severity&&he[n.severity].main} !important`}},message:{padding:0}}},MuiAccordion:{styleOverrides:{root:e=>{let{theme:t}=e;return{borderBottom:`1px solid ${t.palette.border.main}`,"&:before":{backgroundColor:"unset"},"&.MuiPaper-root":{boxShadow:"unset"},"&.Mui-expanded":{margin:0}}}}},MuiAccordionSummary:{styleOverrides:{root:{padding:0},content:e=>{let{theme:t}=e;return{margin:"3.4rem 0","&.Mui-expanded":{margin:"3.4rem 0"},[t.breakpoints.down("sm")]:{margin:"2.8rem 0","&.Mui-expanded":{margin:"2.8rem 0"}}}}}},MuiAccordionDetails:{styleOverrides:{root:{display:"block",padding:"0 0 3.2rem"}}},MuiSvgIcon:{styleOverrides:{root:{cursor:"pointer",fontSize:"2.2rem"}}},MuiLink:{styleOverrides:{root:e=>{let{theme:t}=e;return{color:t.palette.link.main,fontSize:"1.6rem",fontWeight:600,cursor:"pointer"}}}}}}),ve=ge,we=e=>{let{children:t}=e;const n=(0,o.useMemo)((()=>(0,X.Z)(ve)),[false]);return(0,u.jsx)(ue,{theme:n,children:t})},Ee=t.createRoot(document.getElementById("root"));if(window.onerror=function(e,t,n,r,a){console.log("Global error captured:",a)},window.addEventListener("unhandledrejection",(function(e){console.log("Unhandled rejection captured:",e.reason)})),"production"===(0,i.Oi)("NODE_ENV")){const t=(0,i.Oi)("REACT_APP_GOOGLE_ANALYTICS_ID");"string"===typeof t&&(r.ZP.initialize(t),r.ZP.set({customBrowserType:e.tq?"web3"in window||"ethereum"in window?"mobileWeb3":"mobileRegular":"desktop"}),r.ZP.event("web_version",{version:(0,i.Oi)("REACT_APP_VERSION")}))}Ee.render((0,u.jsx)(we,{children:(0,u.jsx)(a.VK,{children:(0,u.jsx)(Y,{})})})),Q()})()})();
//# sourceMappingURL=main.7b5cf4dd.js.map